@gientech/modual 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/LeftOutlined-C1Tv2UIq.js +35 -0
- package/assets/chevron-right-CrkLSPrQ.js +6 -0
- package/assets/createLucideIcon-Bj5DlX2s.js +21 -0
- package/assets/index-BW1L5s38.js +10 -0
- package/assets/index-Bt4pq4lJ.js +1 -0
- package/assets/index-CGHNxHzA.js +167 -0
- package/assets/index-CpW6Dhpp.js +1 -0
- package/assets/index-Df9lUffW.js +1 -0
- package/assets/index-DkrRMiqX.js +1 -0
- package/assets/index-E7FJJ9zV.js +30 -0
- package/assets/index-JdQHnMoG.js +1 -0
- package/assets/index-NIGUFBhG.js +6 -0
- package/assets/plus-B679mjyt.js +6 -0
- package/assets/style.css +1 -1
- package/assets/style2.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/x-CdZQbi--.js +6 -0
- package/chat.js +303 -248
- package/database.js +2 -2
- package/databaseId.js +26 -1
- package/databaseTable.js +18 -1
- package/gientechStreamFilesReader.js +12 -1
- package/modelManage.js +1 -1
- package/package.json +1 -1
- package/sensitive.js +1 -1
- package/streamFilesReader.js +55 -62
- package/assets/index-BMSRZNG4.js +0 -1
package/chat.js
CHANGED
|
@@ -1,346 +1,276 @@
|
|
|
1
|
-
import"./assets/jsx-runtime-vC1aA8e7.js";import*as m from"react";import X,{isValidElement as Ju,version as Cv,useContext as rt,createContext as Yr,useRef as Ne,useLayoutEffect as xv,useEffect as bt,useState as Kr,forwardRef as xn,useMemo as da,Children as rb,useImperativeHandle as ef,cloneElement as nb,createElement as nc}from"react";import"@mxmweb/zui";import*as wv from"react-dom";import Zi,{createPortal as Sv}from"react-dom";import"clipboard";import"react-flip-toolkit";import"@mxmweb/rtext";import"./assets/index-BMSRZNG4.js";/* empty css */function ob(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ul={exports:{}};/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import{j as B}from"./assets/jsx-runtime-vC1aA8e7.js";import*as f from"react";import be,{forwardRef as jr,useMemo as Lt,useRef as wt,useCallback as ma,useImperativeHandle as Do,createContext as ra,useState as dt,useEffect as ft,useContext as $n,Component as ap,createElement as Sa,PureComponent as $0,version as E0,useLayoutEffect as k0,isValidElement as I0}from"react";import{a as kn}from"./assets/index-NIGUFBhG.js";import{Icon as qt,defaultTheme as Qc,deepMergeTheme as O0}from"@mxmweb/zui";import*as N0 from"react-dom";import od,{flushSync as ji,createPortal as D0}from"react-dom";import op from"clipboard";import{Flipper as M0,Flipped as F0}from"react-flip-toolkit";import{ChatMessageAdapter as id}from"@mxmweb/rtext";import{i as ip,g as sp,a as lp,b as cp,c as up,d as dp,e as fp,B as P0,t as j0,f as mp,h as R0,j as A0,k as T0,u as Zc,l as Ri,m as eu,R as _0,n as B0,I as Qr,o as L0,C as sd}from"./assets/index-E7FJJ9zV.js";import{g as tu,t as z0,F as Xt,u as pp}from"./assets/index-BW1L5s38.js";import{w as zt,K as Et,c as Mo,g as nu,s as gp,_ as Nt,a as oe,b as pe,T as ru,d as Oe,e as J,u as H0,i as au,f as ye,h as rt,j as vp,k as an,l as In,m as hp,o as Vn,n as es,p as ts,q as aa,r as oa,t as ns,C as rs,v as mn,I as hn,x as cn,y as Fr,z as V0,A as vo,B as fe,D as Fo,E as as,F as rr,G as Hn,H as yp,J as Ai,L as pn,M as mr,N as bp,O as os,P as Ut,Q as ia,R as ou,S as ld,U as K0,V as xp,W as W0,X as iu,Y as sa,Z as mi,$ as Rn,a0 as Cp,a1 as la,a2 as Po,a3 as Fa,a4 as q0,a5 as U0,a6 as Y0,a7 as is,a8 as wp,a9 as G0,aa as ss,ab as ls,ac as jo,ad as gn,ae as cs,af as Sp,ag as X0,ah as J0,ai as $p,aj as Q0,ak as Z0,al as Ep,am as ey,an as Nl,ao as Ti,ap as ty,aq as ny,ar as ry,as as Xe,at as Dl,au as kr,av as bn,aw as ay,ax as cd,ay as oy,az as iy,aA as Vt,aB as us,aC as Go}from"./assets/index-CGHNxHzA.js";import{B as sy}from"./assets/index-Df9lUffW.js";import{F as $a,i as Ia,s as kp,a as Ip,b as Op,c as Np,d as _i,R as ly,e as cy,g as uy,f as dy,h as fy,u as my,j as py,L as gy,S as vy}from"./assets/LeftOutlined-C1Tv2UIq.js";import{T as Ro,g as hy,a as yy,b as Dp,c as by,d as xy}from"./assets/index-JdQHnMoG.js";import{g as ud,P as Cy,a as Mp,S as wy,T as Fp}from"./assets/index-DkrRMiqX.js";import{u as Zr}from"./assets/index-CpW6Dhpp.js";/* empty css */import{c as gr}from"./assets/createLucideIcon-Bj5DlX2s.js";import{P as Pp}from"./assets/plus-B679mjyt.js";import{X as su}from"./assets/x-CdZQbi--.js";import{C as Sy}from"./assets/chevron-right-CrkLSPrQ.js";var $y=Et.ESC,Ey=Et.TAB;function ky(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=f.useRef(!1),s=function(){if(t){var d,g;(d=n.current)===null||d===void 0||(g=d.focus)===null||g===void 0||g.call(d),r==null||r(!1)}},l=function(){var d;return(d=o.current)!==null&&d!==void 0&&d.focus?(o.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case $y:s();break;case Ey:{var g=!1;i.current||(g=l()),g?d.preventDefault():s();break}}};f.useEffect(function(){return t?(window.addEventListener("keydown",c),a&&zt(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}},[t])}var Iy=jr(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=Lt(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Mo(t,nu(o));return be.createElement(be.Fragment,null,r&&be.createElement("div",{className:"".concat(a,"-arrow")}),be.cloneElement(o,{ref:gp(o)?i:void 0}))}),pa={adjustX:1,adjustY:1},ga=[0,0],Oy={topLeft:{points:["bl","tl"],overflow:pa,offset:[0,-4],targetOffset:ga},top:{points:["bc","tc"],overflow:pa,offset:[0,-4],targetOffset:ga},topRight:{points:["br","tr"],overflow:pa,offset:[0,-4],targetOffset:ga},bottomLeft:{points:["tl","bl"],overflow:pa,offset:[0,4],targetOffset:ga},bottom:{points:["tc","bc"],overflow:pa,offset:[0,4],targetOffset:ga},bottomRight:{points:["tr","br"],overflow:pa,offset:[0,4],targetOffset:ga}},Ny=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dy(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,g=e.placements,h=g===void 0?Oy:g,v=e.getPopupContainer,m=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,x=e.visible,w=e.trigger,C=w===void 0?["hover"]:w,S=e.autoFocus,E=e.overlay,k=e.children,$=e.onVisibleChange,O=Nt(e,Ny),D=be.useState(),P=oe(D,2),R=P[0],N=P[1],I="visible"in e?x:R,M=be.useRef(null),F=be.useRef(null),j=be.useRef(null);be.useImperativeHandle(t,function(){return M.current});var A=function(U){N(U),$==null||$(U)};ky({visible:I,triggerRef:j,onVisibleChange:A,autoFocus:S,overlayRef:F});var _=function(U){var Z=e.onOverlayClick;N(!1),Z&&Z(U)},L=function(){return be.createElement(Iy,{ref:F,overlay:E,prefixCls:i,arrow:a})},z=function(){return typeof E=="function"?L:L()},T=function(){var U=e.minOverlayWidthMatchTrigger,Z=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?U:!Z},H=function(){var U=e.openClassName;return U!==void 0?U:"".concat(i,"-open")},W=be.cloneElement(k,{className:pe((n=k.props)===null||n===void 0?void 0:n.className,I&&H()),ref:gp(k)?Mo(j,nu(k)):void 0}),K=p;return!K&&C.indexOf("contextMenu")!==-1&&(K=["click"]),be.createElement(ru,Oe({builtinPlacements:h},O,{prefixCls:i,ref:M,popupClassName:pe(b,J({},"".concat(i,"-show-arrow"),a)),popupStyle:y,action:C,showAction:m,hideAction:K,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:T()?"minWidth":"",popup:z(),onPopupVisibleChange:A,onPopupClick:_,getPopupContainer:v}),W)}const My=be.forwardRef(Dy),Fy=e=>typeof e!="object"&&typeof e!="function"||e===null;var jp=f.createContext(null);function Rp(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Ap(e){var t=f.useContext(jp);return Rp(t,e)}var Py=["children","locked"],nr=f.createContext(null);function jy(e,t){var n=ye({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function ho(e){var t=e.children,n=e.locked,r=Nt(e,Py),a=f.useContext(nr),o=H0(function(){return jy(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!au(i[1],s[1],!0))});return f.createElement(nr.Provider,{value:o},t)}var Ry=[],Tp=f.createContext(null);function ds(){return f.useContext(Tp)}var _p=f.createContext(Ry);function Pa(e){var t=f.useContext(_p);return f.useMemo(function(){return e!==void 0?[].concat(rt(t),[e]):t},[t,e])}var Bp=f.createContext(null),lu=f.createContext({});function dd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(vp(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Ay(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=rt(e.querySelectorAll("*")).filter(function(r){return dd(r,t)});return dd(e,t)&&n.unshift(e),n}var Ml=Et.LEFT,Fl=Et.RIGHT,Pl=Et.UP,pi=Et.DOWN,gi=Et.ENTER,Lp=Et.ESC,Ga=Et.HOME,Xa=Et.END,fd=[Pl,pi,Ml,Fl];function Ty(e,t,n,r){var a,o="prev",i="next",s="children",l="parent";if(e==="inline"&&r===gi)return{inlineTrigger:!0};var c=J(J({},Pl,o),pi,i),u=J(J(J(J({},Ml,n?i:o),Fl,n?o:i),pi,s),gi,s),d=J(J(J(J(J(J({},Pl,o),pi,i),gi,s),Lp,l),Ml,n?s:l),Fl,n?l:s),g={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},h=(a=g["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(h){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function _y(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function By(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function cu(e,t){var n=Ay(e,!0);return n.filter(function(r){return t.has(r)})}function md(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=cu(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var jl=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Rp(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function Ly(e,t,n,r,a,o,i,s,l,c){var u=f.useRef(),d=f.useRef();d.current=t;var g=function(){zt.cancel(u.current)};return f.useEffect(function(){return function(){g()}},[]),function(h){var v=h.which;if([].concat(fd,[gi,Lp,Ga,Xa]).includes(v)){var m=o(),p=jl(m,r),b=p,y=b.elements,x=b.key2element,w=b.element2key,C=x.get(t),S=By(C,y),E=w.get(S),k=Ty(e,i(E,!0).length===1,n,v);if(!k&&v!==Ga&&v!==Xa)return;(fd.includes(v)||[Ga,Xa].includes(v))&&h.preventDefault();var $=function(F){if(F){var j=F,A=F.querySelector("a");A!=null&&A.getAttribute("href")&&(j=A);var _=w.get(F);s(_),g(),u.current=zt(function(){d.current===_&&j.focus()})}};if([Ga,Xa].includes(v)||k.sibling||!S){var O;!S||e==="inline"?O=a.current:O=_y(S);var D,P=cu(O,y);v===Ga?D=P[0]:v===Xa?D=P[P.length-1]:D=md(O,y,S,k.offset),$(D)}else if(k.inlineTrigger)l(E);else if(k.offset>0)l(E,!0),g(),u.current=zt(function(){p=jl(m,r);var M=S.getAttribute("aria-controls"),F=document.getElementById(M),j=md(F,p.elements);$(j)},5);else if(k.offset<0){var R=i(E,!0),N=R[R.length-2],I=x.get(N);l(N,!1),$(I)}}c==null||c(h)}}function zy(e){Promise.resolve().then(e)}var uu="__RC_UTIL_PATH_SPLIT__",pd=function(t){return t.join(uu)},Hy=function(t){return t.split(uu)},Rl="rc-menu-more";function Vy(){var e=f.useState({}),t=oe(e,2),n=t[1],r=wt(new Map),a=wt(new Map),o=f.useState([]),i=oe(o,2),s=i[0],l=i[1],c=wt(0),u=wt(!1),d=function(){u.current||n({})},g=ma(function(x,w){var C=pd(w);a.current.set(C,x),r.current.set(x,C),c.current+=1;var S=c.current;zy(function(){S===c.current&&d()})},[]),h=ma(function(x,w){var C=pd(w);a.current.delete(C),r.current.delete(x)},[]),v=ma(function(x){l(x)},[]),m=ma(function(x,w){var C=r.current.get(x)||"",S=Hy(C);return w&&s.includes(S[0])&&S.unshift(Rl),S},[s]),p=ma(function(x,w){return x.filter(function(C){return C!==void 0}).some(function(C){var S=m(C,!0);return S.includes(w)})},[m]),b=function(){var w=rt(r.current.keys());return s.length&&w.push(Rl),w},y=ma(function(x){var w="".concat(r.current.get(x)).concat(uu),C=new Set;return rt(a.current.keys()).forEach(function(S){S.startsWith(w)&&C.add(a.current.get(S))}),C},[]);return f.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:g,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:m,getKeys:b,getSubPathKeys:y}}function ro(e){var t=f.useRef(e);t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var Ky=Math.random().toFixed(5).toString().slice(2),gd=0;function Wy(e){var t=an(e,{value:e}),n=oe(t,2),r=n[0],a=n[1];return f.useEffect(function(){gd+=1;var o="".concat(Ky,"-").concat(gd);a("rc-menu-uuid-".concat(o))},[]),r}function zp(e,t,n,r){var a=f.useContext(nr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function Hp(e){var t=f.useContext(nr),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*a}:{paddingLeft:o*a}}function Vp(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=f.createElement(t,ye({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var qy=["item"];function Bi(e){var t=e.item,n=Nt(e,qy);return Object.defineProperty(n,"item",{get:function(){return In(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Uy=["title","attribute","elementRef"],Yy=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Gy=["active"],Xy=(function(e){es(n,e);var t=ts(n);function n(){return aa(this,n),t.apply(this,arguments)}return oa(n,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Nt(a,Uy),c=Vn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return In(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement($a.Item,Oe({},i,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),n})(f.Component),Jy=f.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var o=e.disabled,i=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,g=e.onKeyDown,h=e.onFocus,v=Nt(e,Yy),m=Ap(a),p=f.useContext(nr),b=p.prefixCls,y=p.onItemClick,x=p.disabled,w=p.overflowDisabled,C=p.itemIcon,S=p.selectedKeys,E=p.onActive,k=f.useContext(lu),$=k._internalRenderMenuItem,O="".concat(b,"-item"),D=f.useRef(),P=f.useRef(),R=x||o,N=hp(t,P),I=Pa(a),M=function(Z){return{key:a,keyPath:rt(I).reverse(),item:D.current,domEvent:Z}},F=i||C,j=zp(a,R,c,u),A=j.active,_=Nt(j,Gy),L=S.includes(a),z=Hp(I.length),T=function(Z){if(!R){var Q=M(Z);d==null||d(Bi(Q)),y(Q)}},H=function(Z){if(g==null||g(Z),Z.which===Et.ENTER){var Q=M(Z);d==null||d(Bi(Q)),y(Q)}},W=function(Z){E(a),h==null||h(Z)},K={};e.role==="option"&&(K["aria-selected"]=L);var G=f.createElement(Xy,Oe({ref:D,elementRef:N,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":w&&m?null:m},Vn(v,["extra"]),_,K,{component:"li","aria-disabled":o,style:ye(ye({},z),n),className:pe(O,J(J(J({},"".concat(O,"-active"),A),"".concat(O,"-selected"),L),"".concat(O,"-disabled"),R),r),onClick:T,onKeyDown:H,onFocus:W}),s,f.createElement(Vp,{props:ye(ye({},e),{},{isSelected:L}),icon:F}));return $&&(G=$(G,e,{selected:L})),G});function Qy(e,t){var n=e.eventKey,r=ds(),a=Pa(n);return f.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:f.createElement(Jy,Oe({},e,{ref:t}))}const fs=f.forwardRef(Qy);var Zy=["className","children"],eb=function(t,n){var r=t.className,a=t.children,o=Nt(t,Zy),i=f.useContext(nr),s=i.prefixCls,l=i.mode,c=i.rtl;return f.createElement("ul",Oe({className:pe(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),a)},du=f.forwardRef(eb);du.displayName="SubMenuList";function fu(e,t){return ns(e).map(function(n,r){if(f.isValidElement(n)){var a,o,i=n.key,s=(a=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(rt(t),[r]).join("-")));var c={key:s,eventKey:s};return f.cloneElement(n,c)}return n})}var xn={adjustX:1,adjustY:1},tb={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},leftTop:{points:["tr","tl"],overflow:xn},leftBottom:{points:["br","bl"],overflow:xn},rightTop:{points:["tl","tr"],overflow:xn},rightBottom:{points:["bl","br"],overflow:xn}},nb={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},rightTop:{points:["tr","tl"],overflow:xn},rightBottom:{points:["br","bl"],overflow:xn},leftTop:{points:["tl","tr"],overflow:xn},leftBottom:{points:["bl","br"],overflow:xn}};function Kp(e,t,n){if(t)return t;if(n)return n[e]||n.other}var rb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ab(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=f.useContext(nr),g=d.getPopupContainer,h=d.rtl,v=d.subMenuOpenDelay,m=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,x=d.rootClassName,w=d.motion,C=d.defaultMotions,S=f.useState(!1),E=oe(S,2),k=E[0],$=E[1],O=h?ye(ye({},nb),p):ye(ye({},tb),p),D=rb[c],P=Kp(c,w,C),R=f.useRef(P);c!=="inline"&&(R.current=P);var N=ye(ye({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=f.useRef();return f.useEffect(function(){return I.current=zt(function(){$(n)}),function(){zt.cancel(I.current)}},[n]),f.createElement(ru,{prefixCls:t,popupClassName:pe("".concat(t,"-popup"),J({},"".concat(t,"-rtl"),h),i,x),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:O,popupPlacement:D,popupVisible:k,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:m,onPopupVisibleChange:u,forceRender:y,popupMotion:N,fresh:!0},r)}function ob(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,o="inline",i=f.useContext(nr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,g=f.useRef(!1);g.current=d===o;var h=f.useState(!g.current),v=oe(h,2),m=v[0],p=v[1],b=g.current?n:!1;f.useEffect(function(){g.current&&p(!1)},[d]);var y=ye({},Kp(o,c,u));r.length>1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!g.current&&!w&&p(!0),x==null?void 0:x(w)},m?null:f.createElement(ho,{mode:o,locked:!g.current},f.createElement(rs,Oe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var C=w.className,S=w.style;return f.createElement(du,{id:t,className:C,style:S},a)}))}var ib=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sb=["active"],lb=f.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,g=e.popupOffset,h=e.popupStyle,v=e.onClick,m=e.onMouseEnter,p=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=Nt(e,ib),C=Ap(o),S=f.useContext(nr),E=S.prefixCls,k=S.mode,$=S.openKeys,O=S.disabled,D=S.overflowDisabled,P=S.activeKey,R=S.selectedKeys,N=S.itemIcon,I=S.expandIcon,M=S.onItemClick,F=S.onOpenChange,j=S.onActive,A=f.useContext(lu),_=A._internalRenderSubMenuItem,L=f.useContext(Bp),z=L.isSubPathKey,T=Pa(),H="".concat(E,"-submenu"),W=O||i,K=f.useRef(),G=f.useRef(),U=c??N,Z=u??I,Q=$.includes(o),Y=!D&&Q,ee=z(R,o),ce=zp(o,W,y,x),me=ce.active,we=Nt(ce,sb),se=f.useState(!1),ge=oe(se,2),Ee=ge[0],Te=ge[1],Pe=function(ue){W||Te(ue)},he=function(ue){Pe(!0),m==null||m({key:o,domEvent:ue})},ke=function(ue){Pe(!1),p==null||p({key:o,domEvent:ue})},de=f.useMemo(function(){return me||(k!=="inline"?Ee||z([P],o):!1)},[k,me,P,Ee,o,z]),Re=Hp(T.length),He=function(ue){W||(b==null||b({key:o,domEvent:ue}),k==="inline"&&F(o,!Q))},Ke=ro(function($e){v==null||v(Bi($e)),M($e)}),tt=function(ue){k!=="inline"&&F(o,ue)},qe=function(){j(o)},We=C&&"".concat(C,"-popup"),lt=f.useMemo(function(){return f.createElement(Vp,{icon:k!=="horizontal"?Z:void 0,props:ye(ye({},e),{},{isOpen:Y,isSubMenu:!0})},f.createElement("i",{className:"".concat(H,"-arrow")}))},[k,Z,e,Y,H]),Fe=f.createElement("div",Oe({role:"menuitem",style:Re,className:"".concat(H,"-title"),tabIndex:W?null:-1,ref:K,title:typeof a=="string"?a:null,"data-menu-id":D&&C?null:C,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":We,"aria-disabled":W,onClick:He,onFocus:qe},we),a,lt),ae=f.useRef(k);if(k!=="inline"&&T.length>1?ae.current="vertical":ae.current=k,!D){var Le=ae.current;Fe=f.createElement(ab,{mode:Le,prefixCls:H,visible:!s&&Y&&k!=="inline",popupClassName:d,popupOffset:g,popupStyle:h,popup:f.createElement(ho,{mode:Le==="horizontal"?"vertical":Le},f.createElement(du,{id:We,ref:G},l)),disabled:W,onVisibleChange:tt},Fe)}var Ce=f.createElement($a.Item,Oe({ref:t,role:"none"},w,{component:"li",style:n,className:pe(H,"".concat(H,"-").concat(k),r,J(J(J(J({},"".concat(H,"-open"),Y),"".concat(H,"-active"),de),"".concat(H,"-selected"),ee),"".concat(H,"-disabled"),W)),onMouseEnter:he,onMouseLeave:ke}),Fe,!D&&f.createElement(ob,{id:We,open:Y,keyPath:T},l));return _&&(Ce=_(Ce,e,{selected:ee,active:de,open:Y,disabled:W})),f.createElement(ho,{onItemClick:Ke,mode:k==="horizontal"?"vertical":k,itemIcon:U,expandIcon:Z},Ce)}),ms=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Pa(n),o=fu(r,a),i=ds();f.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=f.createElement(lb,Oe({ref:t},e),o),f.createElement(_p.Provider,{value:a},s)});function mu(e){var t=e.className,n=e.style,r=f.useContext(nr),a=r.prefixCls,o=ds();return o?null:f.createElement("li",{role:"separator",className:pe("".concat(a,"-item-divider"),t),style:n})}var cb=["className","title","eventKey","children"],ub=f.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Nt(e,cb),i=f.useContext(nr),s=i.prefixCls,l="".concat(s,"-item-group");return f.createElement("li",Oe({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:pe(l,n)}),f.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),pu=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Pa(n),o=fu(r,a),i=ds();return i?o:f.createElement(ub,Oe({ref:t},Vn(e,["warnKey"])),o)}),db=["label","children","key","type","extra"];function Al(e,t,n){var r=t.item,a=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(s,l){if(s&&mn(s)==="object"){var c=s,u=c.label,d=c.children,g=c.key,h=c.type,v=c.extra,m=Nt(c,db),p=g??"tmp-".concat(l);return d||h==="group"?h==="group"?f.createElement(a,Oe({key:p},m,{title:u}),Al(d,t,n)):f.createElement(o,Oe({key:p},m,{title:u}),Al(d,t,n)):h==="divider"?f.createElement(i,Oe({key:p},m)):f.createElement(r,Oe({key:p},m,{extra:v}),u,(!!v||v===0)&&f.createElement("span",{className:"".concat(n,"-item-extra")},v))}return null}).filter(function(s){return s})}function vd(e,t,n,r,a){var o=e,i=ye({divider:mu,item:fs,group:pu,submenu:ms},r);return t&&(o=Al(t,i,a)),fu(o,n)}var fb=["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"],_r=[],mb=f.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,i=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,d=r.items,g=r.children,h=r.direction,v=r.id,m=r.mode,p=m===void 0?"vertical":m,b=r.inlineCollapsed,y=r.disabled,x=r.disabledOverflow,w=r.subMenuOpenDelay,C=w===void 0?.1:w,S=r.subMenuCloseDelay,E=S===void 0?.1:S,k=r.forceSubMenuRender,$=r.defaultOpenKeys,O=r.openKeys,D=r.activeKey,P=r.defaultActiveFirst,R=r.selectable,N=R===void 0?!0:R,I=r.multiple,M=I===void 0?!1:I,F=r.defaultSelectedKeys,j=r.selectedKeys,A=r.onSelect,_=r.onDeselect,L=r.inlineIndent,z=L===void 0?24:L,T=r.motion,H=r.defaultMotions,W=r.triggerSubMenuAction,K=W===void 0?"hover":W,G=r.builtinPlacements,U=r.itemIcon,Z=r.expandIcon,Q=r.overflowedIndicator,Y=Q===void 0?"...":Q,ee=r.overflowedIndicatorPopupClassName,ce=r.getPopupContainer,me=r.onClick,we=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var ge=r._internalRenderMenuItem,Ee=r._internalRenderSubMenuItem,Te=r._internalComponents,Pe=Nt(r,fb),he=f.useMemo(function(){return[vd(g,d,_r,Te,o),vd(g,d,_r,{},o)]},[g,d,Te]),ke=oe(he,2),de=ke[0],Re=ke[1],He=f.useState(!1),Ke=oe(He,2),tt=Ke[0],qe=Ke[1],We=f.useRef(),lt=Wy(v),Fe=h==="rtl",ae=an($,{value:O,postState:function(It){return It||_r}}),Le=oe(ae,2),Ce=Le[0],$e=Le[1],ue=function(It){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function dn(){$e(It),we==null||we(It)}Dt?ji(dn):dn()},ie=f.useState(Ce),xe=oe(ie,2),_e=xe[0],ze=xe[1],st=f.useRef(!1),Ne=f.useMemo(function(){return(p==="inline"||p==="vertical")&&b?["vertical",b]:[p,!1]},[p,b]),Ie=oe(Ne,2),Ue=Ie[0],Ye=Ie[1],bt=Ue==="inline",At=f.useState(Ue),Ht=oe(At,2),Ft=Ht[0],Yt=Ht[1],Tt=f.useState(Ye),tn=oe(Tt,2),un=tn[0],Pt=tn[1];f.useEffect(function(){Yt(Ue),Pt(Ye),st.current&&(bt?$e(_e):ue(_r))},[Ue,Ye]);var Tn=f.useState(0),q=oe(Tn,2),V=q[0],ne=q[1],le=V>=de.length-1||Ft!=="horizontal"||x;f.useEffect(function(){bt&&ze(Ce)},[Ce]),f.useEffect(function(){return st.current=!0,function(){st.current=!1}},[]);var Se=Vy(),Ae=Se.registerPath,ct=Se.unregisterPath,Qe=Se.refreshOverflowKeys,it=Se.isSubPathKey,gt=Se.getKeyPath,Ve=Se.getKeys,ht=Se.getSubPathKeys,Ze=f.useMemo(function(){return{registerPath:Ae,unregisterPath:ct}},[Ae,ct]),kt=f.useMemo(function(){return{isSubPathKey:it}},[it]);f.useEffect(function(){Qe(le?_r:de.slice(V+1).map(function(Bt){return Bt.key}))},[V,le]);var je=an(D||P&&((n=de[0])===null||n===void 0?void 0:n.key),{value:D}),De=oe(je,2),Me=De[0],Be=De[1],et=ro(function(Bt){Be(Bt)}),yt=ro(function(){Be(void 0)});Do(t,function(){return{list:We.current,focus:function(It){var Dt,dn=Ve(),Ge=jl(dn,lt),nt=Ge.elements,sn=Ge.key2element,Kn=Ge.element2key,Ar=cu(We.current,nt),Yo=Me??(Ar[0]?Kn.get(Ar[0]):(Dt=de.find(function(St){return!St.props.disabled}))===null||Dt===void 0?void 0:Dt.key),Tr=sn.get(Yo);if(Yo&&Tr){var Ya;Tr==null||(Ya=Tr.focus)===null||Ya===void 0||Ya.call(Tr,It)}}}});var vt=an(F||[],{value:j,postState:function(It){return Array.isArray(It)?It:It==null?_r:[It]}}),_t=oe(vt,2),jt=_t[0],nn=_t[1],Dn=function(It){if(N){var Dt=It.key,dn=jt.includes(Dt),Ge;M?dn?Ge=jt.filter(function(sn){return sn!==Dt}):Ge=[].concat(rt(jt),[Dt]):Ge=[Dt],nn(Ge);var nt=ye(ye({},It),{},{selectedKeys:Ge});dn?_==null||_(nt):A==null||A(nt)}!M&&Ce.length&&Ft!=="inline"&&ue(_r)},Mn=ro(function(Bt){me==null||me(Bi(Bt)),Dn(Bt)}),Gn=ro(function(Bt,It){var Dt=Ce.filter(function(Ge){return Ge!==Bt});if(It)Dt.push(Bt);else if(Ft!=="inline"){var dn=ht(Bt);Dt=Dt.filter(function(Ge){return!dn.has(Ge)})}au(Ce,Dt,!0)||ue(Dt,!0)}),xr=function(It,Dt){var dn=Dt??!Ce.includes(It);Gn(It,dn)},Ka=Ly(Ft,Me,Fe,lt,We,Ve,gt,Be,xr,se);f.useEffect(function(){qe(!0)},[]);var Wa=f.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:Ee}},[ge,Ee]),qa=Ft!=="horizontal"||x?de:de.map(function(Bt,It){return f.createElement(ho,{key:Bt.key,overflowDisabled:It>V},Bt)}),Ua=f.createElement($a,Oe({id:v,ref:We,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:fs,className:pe(o,"".concat(o,"-root"),"".concat(o,"-").concat(Ft),l,J(J({},"".concat(o,"-inline-collapsed"),un),"".concat(o,"-rtl"),Fe),i),dir:h,style:s,role:"menu",tabIndex:u,data:qa,renderRawItem:function(It){return It},renderRawRest:function(It){var Dt=It.length,dn=Dt?de.slice(-Dt):null;return f.createElement(ms,{eventKey:Rl,title:Y,disabled:le,internalPopupClose:Dt===0,popupClassName:ee},dn)},maxCount:Ft!=="horizontal"||x?$a.INVALIDATE:$a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(It){ne(It)},onKeyDown:Ka},Pe));return f.createElement(lu.Provider,{value:Wa},f.createElement(jp.Provider,{value:lt},f.createElement(ho,{prefixCls:o,rootClassName:i,mode:Ft,openKeys:Ce,rtl:Fe,disabled:y,motion:tt?T:null,defaultMotions:tt?H:null,activeKey:Me,onActive:et,onInactive:yt,selectedKeys:jt,inlineIndent:z,subMenuOpenDelay:C,subMenuCloseDelay:E,forceSubMenuRender:k,builtinPlacements:G,triggerSubMenuAction:K,getPopupContainer:ce,itemIcon:U,expandIcon:Z,onItemClick:Mn,onOpenChange:Gn},f.createElement(Bp.Provider,{value:kt},Ua),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Tp.Provider,{value:Ze},Re)))))}),Ao=mb;Ao.Item=fs;Ao.SubMenu=ms;Ao.ItemGroup=pu;Ao.Divider=mu;const Wp=f.createContext({});var pb={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"},gb=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:pb}))},qp=f.forwardRef(gb);const Li=ra({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var vb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Up=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=vb(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=f.useContext(cn),i=o("menu",t),s=pe({[`${i}-item-divider-dashed`]:!!r},n);return f.createElement(mu,Object.assign({className:s},a))},Yp=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:g}=f.useContext(Li),h=x=>{const w=r==null?void 0:r[0],C=f.createElement("span",{className:pe(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!a||f.isValidElement(r)&&r.type==="span")&&r&&x&&c&&typeof w=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},w.charAt(0)):C},{siderCollapsed:v}=f.useContext(Wp);let m=o;typeof o>"u"?m=c?r:"":o===!1&&(m="");const p={title:m};!v&&!g&&(p.title=null,p.open=!1);const b=ns(r).length;let y=f.createElement(fs,Object.assign({},Vn(e,["title","icon","danger"]),{className:pe({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(a?b+1:b)===1},n),title:typeof o=="string"?o:void 0}),Fr(a,{className:pe(f.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h(g));return d||(y=f.createElement(Ro,Object.assign({},p,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var hb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const zi=f.createContext(null),yb=f.forwardRef((e,t)=>{const{children:n}=e,r=hb(e,["children"]),a=f.useContext(zi),o=f.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=V0(n),s=hp(t,i?nu(n):null);return f.createElement(zi.Provider,{value:o},f.createElement(vo,{space:!0},i?f.cloneElement(n,{ref:s}):n))}),bb=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${fe(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
|
|
2
|
+
> ${t}-item-active,
|
|
3
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},xb=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${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(${fe(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${fe(t)})`}}}}),hd=e=>Fo(e),yd=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:i,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:g,motionDurationSlow:h,motionEaseInOut:v,motionEaseOut:m,itemPaddingInline:p,motionDurationMid:b,itemHoverColor:y,lineType:x,colorSplit:w,itemDisabledColor:C,dangerItemColor:S,dangerItemHoverColor:E,dangerItemSelectedColor:k,dangerItemActiveBg:$,dangerItemSelectedBg:O,popupBg:D,itemHoverBg:P,itemActiveBg:R,menuSubMenuBg:N,horizontalItemSelectedColor:I,horizontalItemSelectedBg:M,horizontalItemBorderRadius:F,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},hd(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},hd(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${fe(u)} solid transparent`,transition:`border-color ${h} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${fe(g)} ${x} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${fe(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(",")}}}}}},bd=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:fe(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
|
|
5
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:fe(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
6
|
+
${t}-submenu-title`]:{paddingInlineEnd:u}}},Cb=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:g,paddingXS:h,boxShadowSecondary:v,collapsedWidth:m,collapsedIconSize:p}=e,b={height:r,lineHeight:fe(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},bd(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},bd(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${fe(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${g}`,`background ${g}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,
|
|
7
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
8
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
9
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${fe(e.calc(p).div(2).equal())} - ${fe(c)})`,textOverflow:"clip",[`
|
|
10
|
+
${t}-submenu-arrow,
|
|
11
|
+
${t}-submenu-expand-icon
|
|
12
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:fe(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},as),{paddingInline:h})}}]},xd=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},bp()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Cd=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${fe(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${fe(i)})`}}}}},wb=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:g,subMenuItemBorderRadius:h,menuArrowSize:v,menuArrowOffset:m,lineType:p,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},Ai()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),Ai()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${fe(s)} ${fe(l)}`,fontSize:y,lineHeight:b,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xd(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${fe(e.calc(r).mul(2).equal())} ${fe(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:g,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:g},xd(e)),Cd(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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}}}),Cd(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
13
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fe(m)})`},"&::after":{transform:`rotate(45deg) translateX(${fe(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${fe(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${fe(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${fe(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Sb=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:g,lineWidth:h,lineWidthBold:v,controlItemBgActive:m,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:x,marginXXS:w,padding:C,fontSize:S,controlHeightSM:E,fontSizeLG:k,colorTextLightSolid:$,colorErrorHover:O}=e,D=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,P=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,R=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,N=new mr($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:g,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:D,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:h,activeBarBorderWidth:P,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:x,itemMarginBlock:w,itemPaddingInline:C,horizontalLineHeight:`${b*1.15}px`,iconSize:S,iconMarginInlineEnd:E-S,collapsedIconSize:k,groupTitleFontSize:S,darkItemDisabledColor:new mr($).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:$,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:o,itemWidth:D?`calc(100% + ${P}px)`:`calc(100% - ${R*2}px)`}},$b=(e,t=e,n=!0)=>rr("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:g,darkItemSelectedBg:h,darkDangerItemSelectedBg:v,darkItemHoverBg:m,darkGroupTitleColor:p,darkItemHoverColor:b,darkItemDisabledColor:y,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:C,popupBg:S,darkPopupBg:E}=a,k=a.calc(s).div(7).mul(5).equal(),$=Hn(a,{menuArrowSize:k,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(k).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:S}),O=Hn($,{itemColor:l,itemHoverColor:b,groupTitleColor:p,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:u,popupBg:E,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:C,dangerItemSelectedBg:v,menuSubMenuBg:d,horizontalItemSelectedColor:g,horizontalItemSelectedBg:h});return[wb($),bb($),Cb($),yd($,"light"),yd(O,"dark"),xb($),tu($),Ia($,"slide-up"),Ia($,"slide-down"),yp($,"zoom-big")]},Sb,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t),Gp=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=f.useContext(Li),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=Pa();let d;if(!r)d=l&&!u.length&&a&&typeof a=="string"?f.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):f.createElement("span",{className:`${s}-title-content`},a);else{const v=f.isValidElement(a)&&a.type==="span";d=f.createElement(f.Fragment,null,Fr(r,{className:pe(f.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),v?a:f.createElement("span",{className:`${s}-title-content`},a))}const g=f.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[h]=os("Menu");return f.createElement(Li.Provider,{value:g},f.createElement(ms,Object.assign({},Vn(e,["icon"]),{title:d,popupClassName:pe(s,n,`${s}-${o||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var Eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function zs(e){return e===null||e===!1}const kb={item:Yp,submenu:Gp,divider:Up},Ib=jr((e,t)=>{var n;const r=f.useContext(zi),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:l}=f.useContext(cn),c=o(),{prefixCls:u,className:d,style:g,theme:h="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:p,siderCollapsed:b,rootClassName:y,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:S}=e,E=Eb(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Vn(E,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const $=Ut((...z)=>{var T;C==null||C.apply(void 0,z),(T=a.onClick)===null||T===void 0||T.call(a)}),O=a.mode||x,D=w??a.selectable,P=p??b,R={horizontal:{motionName:`${c}-slide-up`},inline:ou(c),other:{motionName:`${c}-zoom-big`}},N=o("menu",u||a.prefixCls),I=ia(N),[M,F,j]=$b(N,I,!r),A=pe(`${N}-${h}`,l==null?void 0:l.className,d),_=f.useMemo(()=>{var z,T;if(typeof v=="function"||zs(v))return v||null;if(typeof a.expandIcon=="function"||zs(a.expandIcon))return a.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||zs(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const H=(z=v??(a==null?void 0:a.expandIcon))!==null&&z!==void 0?z:l==null?void 0:l.expandIcon;return Fr(H,{className:pe(`${N}-submenu-expand-icon`,f.isValidElement(H)?(T=H.props)===null||T===void 0?void 0:T.className:void 0)})},[v,a==null?void 0:a.expandIcon,l==null?void 0:l.expandIcon,N]),L=f.useMemo(()=>({prefixCls:N,inlineCollapsed:P||!1,direction:s,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:m}),[N,P,s,m,h]);return M(f.createElement(zi.Provider,{value:null},f.createElement(Li.Provider,{value:L},f.createElement(Ao,Object.assign({getPopupContainer:i,overflowedIndicator:f.createElement(qp,null),overflowedIndicatorPopupClassName:pe(N,`${N}-${h}`,S),mode:O,selectable:D,onClick:$},k,{inlineCollapsed:P,style:Object.assign(Object.assign({},l==null?void 0:l.style),g),className:A,prefixCls:N,direction:s,defaultMotions:R,expandIcon:_,ref:t,rootClassName:pe(y,F,a.rootClassName,j,I),_internalComponents:kb})))))}),To=jr((e,t)=>{const n=wt(null),r=f.useContext(Wp);return Do(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),f.createElement(Ib,Object.assign({ref:n},e,r))});To.Item=Yp;To.SubMenu=Gp;To.Divider=Up;To.ItemGroup=pu;const Ob=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},Nb=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:g,fontSizeIcon:h,controlPaddingHorizontal:v,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
14
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
15
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
|
|
16
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
|
|
17
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
|
|
18
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Np},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
|
|
19
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
|
|
20
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
|
|
21
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
|
|
22
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
|
|
23
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Op},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
24
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
|
|
25
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ip},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
|
|
26
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
|
|
27
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:kp}}},hy(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},pn(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ld(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${fe(c)} ${fe(v)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${fe(c)} ${fe(v)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ld(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${fe(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${fe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ia(e,"slide-up"),Ia(e,"slide-down"),_i(e,"move-up"),_i(e,"move-down"),yp(e,"zoom-big")]]},Db=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},yy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Dp(e)),Mb=rr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=Hn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Nb(o),Ob(o)]},Db,{resetStyle:!1}),ps=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:g,overlayStyle:h,open:v,onOpenChange:m,visible:p,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:w=!0,placement:C="",overlay:S,transitionName:E,destroyOnHidden:k,destroyPopupOnHide:$}=e,{getPopupContainer:O,getPrefixCls:D,direction:P,dropdown:R}=f.useContext(cn),N=c||l;K0();const I=f.useMemo(()=>{const ge=D();return E!==void 0?E:C.includes("top")?`${ge}-slide-down`:`${ge}-slide-up`},[D,C,E]),M=f.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:P==="rtl"?"bottomRight":"bottomLeft",[C,P]),F=D("dropdown",a),j=ia(F),[A,_,L]=Mb(F,j),[,z]=xp(),T=f.Children.only(Fy(o)?f.createElement("span",null,o):o),H=Fr(T,{className:pe(`${F}-trigger`,{[`${F}-rtl`]:P==="rtl"},T.props.className),disabled:(t=T.props.disabled)!==null&&t!==void 0?t:s}),W=s?[]:i,K=!!(W!=null&&W.includes("contextMenu")),[G,U]=an(!1,{value:v??p}),Z=Ut(ge=>{m==null||m(ge,{source:"trigger"}),b==null||b(ge),U(ge)}),Q=pe(d,g,_,L,j,R==null?void 0:R.className,{[`${F}-rtl`]:P==="rtl"}),Y=by({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:w,offset:z.marginXXS,arrowWidth:r?z.sizePopupArrow:0,borderRadius:z.borderRadius}),ee=f.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),U(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ce=()=>{let ge;return n!=null&&n.items?ge=f.createElement(To,Object.assign({},n)):typeof S=="function"?ge=S():ge=S,N&&(ge=N(ge)),ge=f.Children.only(typeof ge=="string"?f.createElement("span",null,ge):ge),f.createElement(yb,{prefixCls:`${F}-menu`,rootClassName:pe(L,j),expandIcon:f.createElement("span",{className:`${F}-menu-submenu-arrow`},P==="rtl"?f.createElement(ly,{className:`${F}-menu-submenu-arrow-icon`}):f.createElement(cy,{className:`${F}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ee,validator:({mode:Ee})=>{}},ge)},[me,we]=os("Dropdown",h==null?void 0:h.zIndex);let se=f.createElement(My,Object.assign({alignPoint:K},Vn(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:x,visible:G,builtinPlacements:Y,arrow:!!r,overlayClassName:Q,prefixCls:F,getPopupContainer:u||O,transitionName:I,trigger:W,overlay:ce,placement:M,onVisibleChange:Z,overlayStyle:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),h),{zIndex:me}),autoDestroy:k??$}),H);return me&&(se=f.createElement(W0.Provider,{value:we},se)),A(se)},Fb=iu(ps,"align",void 0,"dropdown",e=>e),Pb=e=>f.createElement(Fb,Object.assign({},e),f.createElement("span",null));ps._InternalPanelDoNotUseOrYouWillBeFired=Pb;var vi={exports:{}},jb=vi.exports,wd;function Rb(){return wd||(wd=1,(function(e,t){(function(n,r){e.exports=r()})(jb,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",g="quarter",h="year",v="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var I=["th","st","nd","rd"],M=N%100;return"["+N+(I[(M-20)%10]||I[M]||I[0])+"]"}},x=function(N,I,M){var F=String(N);return!F||F.length>=I?N:""+Array(I+1-F.length).join(M)+N},w={s:x,z:function(N){var I=-N.utcOffset(),M=Math.abs(I),F=Math.floor(M/60),j=M%60;return(I<=0?"+":"-")+x(F,2,"0")+":"+x(j,2,"0")},m:function N(I,M){if(I.date()<M.date())return-N(M,I);var F=12*(M.year()-I.year())+(M.month()-I.month()),j=I.clone().add(F,d),A=M-j<0,_=I.clone().add(F+(A?-1:1),d);return+(-(F+(M-j)/(A?j-_:_-j))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:d,y:h,w:u,d:c,D:v,h:l,m:s,s:i,ms:o,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",S={};S[C]=y;var E="$isDayjsObject",k=function(N){return N instanceof P||!(!N||!N[E])},$=function N(I,M,F){var j;if(!I)return C;if(typeof I=="string"){var A=I.toLowerCase();S[A]&&(j=A),M&&(S[A]=M,j=A);var _=I.split("-");if(!j&&_.length>1)return N(_[0])}else{var L=I.name;S[L]=I,j=L}return!F&&j&&(C=j),j||!F&&C},O=function(N,I){if(k(N))return N.clone();var M=typeof I=="object"?I:{};return M.date=N,M.args=arguments,new P(M)},D=w;D.l=$,D.i=k,D.w=function(N,I){return O(N,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var P=(function(){function N(M){this.$L=$(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[E]=!0}var I=N.prototype;return I.parse=function(M){this.$d=(function(F){var j=F.date,A=F.utc;if(j===null)return new Date(NaN);if(D.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var _=j.match(p);if(_){var L=_[2]-1||0,z=(_[7]||"0").substring(0,3);return A?new Date(Date.UTC(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,z)):new Date(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,z)}}return new Date(j)})(M),this.init()},I.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},I.$utils=function(){return D},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(M,F){var j=O(M);return this.startOf(F)<=j&&j<=this.endOf(F)},I.isAfter=function(M,F){return O(M)<this.startOf(F)},I.isBefore=function(M,F){return this.endOf(F)<O(M)},I.$g=function(M,F,j){return D.u(M)?this[F]:this.set(j,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,F){var j=this,A=!!D.u(F)||F,_=D.p(M),L=function(Z,Q){var Y=D.w(j.$u?Date.UTC(j.$y,Q,Z):new Date(j.$y,Q,Z),j);return A?Y:Y.endOf(c)},z=function(Z,Q){return D.w(j.toDate()[Z].apply(j.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Q)),j)},T=this.$W,H=this.$M,W=this.$D,K="set"+(this.$u?"UTC":"");switch(_){case h:return A?L(1,0):L(31,11);case d:return A?L(1,H):L(0,H+1);case u:var G=this.$locale().weekStart||0,U=(T<G?T+7:T)-G;return L(A?W-U:W+(6-U),H);case c:case v:return z(K+"Hours",0);case l:return z(K+"Minutes",1);case s:return z(K+"Seconds",2);case i:return z(K+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,F){var j,A=D.p(M),_="set"+(this.$u?"UTC":""),L=(j={},j[c]=_+"Date",j[v]=_+"Date",j[d]=_+"Month",j[h]=_+"FullYear",j[l]=_+"Hours",j[s]=_+"Minutes",j[i]=_+"Seconds",j[o]=_+"Milliseconds",j)[A],z=A===c?this.$D+(F-this.$W):F;if(A===d||A===h){var T=this.clone().set(v,1);T.$d[L](z),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else L&&this.$d[L](z);return this.init(),this},I.set=function(M,F){return this.clone().$set(M,F)},I.get=function(M){return this[D.p(M)]()},I.add=function(M,F){var j,A=this;M=Number(M);var _=D.p(F),L=function(H){var W=O(A);return D.w(W.date(W.date()+Math.round(H*M)),A)};if(_===d)return this.set(d,this.$M+M);if(_===h)return this.set(h,this.$y+M);if(_===c)return L(1);if(_===u)return L(7);var z=(j={},j[s]=r,j[l]=a,j[i]=n,j)[_]||1,T=this.$d.getTime()+M*z;return D.w(T,this)},I.subtract=function(M,F){return this.add(-1*M,F)},I.format=function(M){var F=this,j=this.$locale();if(!this.isValid())return j.invalidDate||m;var A=M||"YYYY-MM-DDTHH:mm:ssZ",_=D.z(this),L=this.$H,z=this.$m,T=this.$M,H=j.weekdays,W=j.months,K=j.meridiem,G=function(Q,Y,ee,ce){return Q&&(Q[Y]||Q(F,A))||ee[Y].slice(0,ce)},U=function(Q){return D.s(L%12||12,Q,"0")},Z=K||function(Q,Y,ee){var ce=Q<12?"AM":"PM";return ee?ce.toLowerCase():ce};return A.replace(b,(function(Q,Y){return Y||(function(ee){switch(ee){case"YY":return String(F.$y).slice(-2);case"YYYY":return D.s(F.$y,4,"0");case"M":return T+1;case"MM":return D.s(T+1,2,"0");case"MMM":return G(j.monthsShort,T,W,3);case"MMMM":return G(W,T);case"D":return F.$D;case"DD":return D.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return G(j.weekdaysMin,F.$W,H,2);case"ddd":return G(j.weekdaysShort,F.$W,H,3);case"dddd":return H[F.$W];case"H":return String(L);case"HH":return D.s(L,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Z(L,z,!0);case"A":return Z(L,z,!1);case"m":return String(z);case"mm":return D.s(z,2,"0");case"s":return String(F.$s);case"ss":return D.s(F.$s,2,"0");case"SSS":return D.s(F.$ms,3,"0");case"Z":return _}return null})(Q)||_.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,F,j){var A,_=this,L=D.p(F),z=O(M),T=(z.utcOffset()-this.utcOffset())*r,H=this-z,W=function(){return D.m(_,z)};switch(L){case h:A=W()/12;break;case d:A=W();break;case g:A=W()/3;break;case u:A=(H-T)/6048e5;break;case c:A=(H-T)/864e5;break;case l:A=H/a;break;case s:A=H/r;break;case i:A=H/n;break;default:A=H}return j?A:D.a(A)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return S[this.$L]},I.locale=function(M,F){if(!M)return this.$L;var j=this.clone(),A=$(M,F,!0);return A&&(j.$L=A),j},I.clone=function(){return D.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},N})(),R=P.prototype;return O.prototype=R,[["$ms",o],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach((function(N){R[N[1]]=function(I){return this.$g(I,N[0],N[1])}})),O.extend=function(N,I){return N.$i||(N(I,P,O),N.$i=!0),O},O.locale=$,O.isDayjs=k,O.unix=function(N){return O(1e3*N)},O.en=S[C],O.Ls=S,O.p={},O}))})(vi)),vi.exports}var Ab=Rb();const Cn=sa(Ab);var hi={exports:{}},Tb=hi.exports,Sd;function _b(){return Sd||(Sd=1,(function(e,t){(function(n,r){e.exports=r()})(Tb,(function(){return function(n,r){r.prototype.weekday=function(a){var o=this.$locale().weekStart||0,i=this.$W,s=(i<o?i+7:i)-o;return this.$utils().u(a)?s:this.subtract(s,"day").add(a,"day")}}}))})(hi)),hi.exports}var Bb=_b();const Lb=sa(Bb);var yi={exports:{}},zb=yi.exports,$d;function Hb(){return $d||($d=1,(function(e,t){(function(n,r){e.exports=r()})(zb,(function(){return function(n,r,a){var o=r.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,g,h,v,m){var p=d.name?d:d.$locale(),b=i(p[g]),y=i(p[h]),x=b||y.map((function(C){return C.slice(0,v)}));if(!m)return x;var w=p.weekStart;return x.map((function(C,S){return x[(S+(w||0))%7]}))},l=function(){return a.Ls[a.locale()]},c=function(d,g){return d.formats[g]||(function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,m,p){return m||p.slice(1)}))})(d.formats[g.toUpperCase()])},u=function(){var d=this;return{months:function(g){return g?g.format("MMMM"):s(d,"months")},monthsShort:function(g){return g?g.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(d,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return c(d.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},a.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(g){return c(d,g)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(d){return s(l(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}}))})(yi)),yi.exports}var Vb=Hb();const Kb=sa(Vb);var bi={exports:{}},Wb=bi.exports,Ed;function qb(){return Ed||(Ed=1,(function(e,t){(function(n,r){e.exports=r()})(Wb,(function(){var n="week",r="year";return function(a,o,i){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var g=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(g,n,!0);return h<0?i(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(bi)),bi.exports}var Ub=qb();const Yb=sa(Ub);var xi={exports:{}},Gb=xi.exports,kd;function Xb(){return kd||(kd=1,(function(e,t){(function(n,r){e.exports=r()})(Gb,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}}))})(xi)),xi.exports}var Jb=Xb();const Qb=sa(Jb);var Ci={exports:{}},Zb=Ci.exports,Id;function ex(){return Id||(Id=1,(function(e,t){(function(n,r){e.exports=r()})(Zb,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}}));return o.bind(this)(u)}}}))})(Ci)),Ci.exports}var tx=ex();const nx=sa(tx);var wi={exports:{}},rx=wi.exports,Od;function ax(){return Od||(Od=1,(function(e,t){(function(n,r){e.exports=r()})(rx,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(b){this[p]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x})(p)}],g=function(p){var b=l[p];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(p,b){var y,x=l.meridiem;if(x){for(var w=1;w<=24;w+=1)if(p.indexOf(x(w,0,b))>-1){y=w>12;break}}else y=p===(b?"pm":"PM");return y},v={A:[s,function(p){this.afternoon=h(p,!1)}],a:[s,function(p){this.afternoon=h(p,!0)}],Q:[a,function(p){this.month=3*(p-1)+1}],S:[a,function(p){this.milliseconds=100*+p}],SS:[o,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[s,function(p){var b=l.ordinal,y=p.match(/\d+/);if(this.day=y[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],w:[i,u("week")],ww:[o,u("week")],M:[i,u("month")],MM:[o,u("month")],MMM:[s,function(p){var b=g("months"),y=(g("monthsShort")||b.map((function(x){return x.slice(0,3)}))).indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(p){var b=g("months").indexOf(p)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(p){this.year=c(p)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function m(p){var b,y;b=p,y=l&&l.formats;for(var x=(p=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,D,P){var R=P&&P.toUpperCase();return D||y[P]||n[P]||y[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,I,M){return I||M.slice(1)}))}))).match(r),w=x.length,C=0;C<w;C+=1){var S=x[C],E=v[S],k=E&&E[0],$=E&&E[1];x[C]=$?{regex:k,parser:$}:S.replace(/^\[|\]$/g,"")}return function(O){for(var D={},P=0,R=0;P<w;P+=1){var N=x[P];if(typeof N=="string")R+=N.length;else{var I=N.regex,M=N.parser,F=O.slice(R),j=I.exec(F)[0];M.call(D,j),O=O.replace(j,"")}}return(function(A){var _=A.afternoon;if(_!==void 0){var L=A.hours;_?L<12&&(A.hours+=12):L===12&&(A.hours=0),delete A.afternoon}})(D),D}}return function(p,b,y){y.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var x=b.prototype,w=x.parse;x.parse=function(C){var S=C.date,E=C.utc,k=C.args;this.$u=E;var $=k[1];if(typeof $=="string"){var O=k[2]===!0,D=k[3]===!0,P=O||D,R=k[2];D&&(R=k[2]),l=this.$locale(),!O&&R&&(l=y.Ls[R]),this.$d=(function(F,j,A,_){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*F);var L=m(j)(F),z=L.year,T=L.month,H=L.day,W=L.hours,K=L.minutes,G=L.seconds,U=L.milliseconds,Z=L.zone,Q=L.week,Y=new Date,ee=H||(z||T?1:Y.getDate()),ce=z||Y.getFullYear(),me=0;z&&!T||(me=T>0?T-1:Y.getMonth());var we,se=W||0,ge=K||0,Ee=G||0,Te=U||0;return Z?new Date(Date.UTC(ce,me,ee,se,ge,Ee,Te+60*Z.offset*1e3)):A?new Date(Date.UTC(ce,me,ee,se,ge,Ee,Te)):(we=new Date(ce,me,ee,se,ge,Ee,Te),Q&&(we=_(we).week(Q).toDate()),we)}catch{return new Date("")}})(S,$,E,y),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),P&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var N=$.length,I=1;I<=N;I+=1){k[1]=$[I-1];var M=y.apply(this,k);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}I===N&&(this.$d=new Date(""))}else w.call(this,C)}}}))})(wi)),wi.exports}var ox=ax();const ix=sa(ox);Cn.extend(ix);Cn.extend(nx);Cn.extend(Lb);Cn.extend(Kb);Cn.extend(Yb);Cn.extend(Qb);Cn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var sx={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Br=function(t){var n=sx[t];return n||t.split("_")[0]},lx={getNow:function(){var t=Cn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Cn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Cn().locale(Br(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Br(t)).weekday(0)},getWeek:function(t,n){return n.locale(Br(t)).week()},getShortWeekDays:function(t){return Cn().locale(Br(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Cn().locale(Br(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Br(t)).format(r)},parse:function(t,n,r){for(var a=Br(t),o=0;o<r.length;o+=1){var i=r[o],s=n;if(i.includes("wo")||i.includes("Wo")){for(var l=s.split("-")[0],c=s.split("-")[1],u=Cn(l,"YYYY").startOf("year").locale(a),d=0;d<=52;d+=1){var g=u.add(d,"week");if(g.format("Wo")===c)return g}return null}var h=Cn(s,i,!0).locale(a);if(h.isValid())return h}return null}}};function cx(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var ar=f.createContext(null),ux={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Xp(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,o=e.transitionName,i=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,d=u===void 0?ux:u,g=e.direction,h=e.visible,v=e.onClose,m=f.useContext(ar),p=m.prefixCls,b="".concat(p,"-dropdown"),y=cx(c,g==="rtl");return f.createElement(ru,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:d,prefixCls:b,popupTransitionName:o,popup:t,popupAlign:a,popupVisible:h,popupClassName:pe(r,J(J({},"".concat(b,"-range"),l),"".concat(b,"-rtl"),g==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(w){w||v()}},s)}function gu(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function ca(e){return e==null?[]:Array.isArray(e)?e:[e]}function co(e,t,n){var r=rt(e);return r[t]=n,r}function gs(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function Jp(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Qp(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(o){return e[o]});return r!==a?e[a]:void 0}function Zp(e){return gs(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function vu(e,t,n,r){var a=f.useMemo(function(){return e||function(i,s){var l=i;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),o=f.useCallback(function(i,s){return a(i,ye(ye({},s),{},{range:r}))},[a,r]);return o}function eg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=f.useState([!1,!1]),a=oe(r,2),o=a[0],i=a[1],s=function(u,d){i(function(g){return co(g,d,u)})},l=f.useMemo(function(){return o.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,o,t,n]);return[l,s]}function tg(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function dx(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,g=e.fieldQuarterFormat,h=e.yearFormat,v=e.cellYearFormat,m=e.cellQuarterFormat,p=e.dayFormat,b=e.cellDateFormat,y=tg(t,n,r,a,o);return ye(ye({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:b||p||"D"})}function ng(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return be.useMemo(function(){return dx(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Ja(e,t,n){return n??t.some(function(r){return e.includes(r)})}var fx=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function mx(e){var t=gs(e,fx),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=mn(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function px(e){return e&&typeof e=="string"}function rg(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function ag(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var l,c,u,d=[o,i,s].some(function(v){return v===!1}),g=[o,i,s].some(function(v){return v===!0}),h=d?!0:!g;o=(l=o)!==null&&l!==void 0?l:h,i=(c=i)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[o,i,s,a]}function og(e){var t=e.showTime,n=mx(e),r=oe(n,2),a=r[0],o=r[1],i=t&&mn(t)==="object"?t:{},s=ye(ye({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,g=rg(c,u,d,l),h=ag(g,c,u,d,l),v=oe(h,3);return c=v[0],u=v[1],d=v[2],[s,ye(ye({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function ig(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=Jp(e,a,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=ca(c[u])[0];if(px(d)){l=d;break}}var g=i.showHour,h=i.showMinute,v=i.showSecond,m=i.showMillisecond,p=i.use12Hours,b=Ja(l,["a","A","LT","LLL","LTS"],p),y=rg(g,h,v,m);y||(g=Ja(l,["H","h","k","LT","LLL"]),h=Ja(l,["m","LT","LLL"]),v=Ja(l,["s","LTS"]),m=Ja(l,["SSS"]));var x=ag(y,g,h,v,m),w=oe(x,3);g=w[0],h=w[1],v=w[2];var C=t||tg(g,h,v,m,b);return ye(ye({},i),{},{format:C,showHour:g,showMinute:h,showSecond:v,showMillisecond:m,use12Hours:b})}return null}function gx(e,t,n){if(t===!1)return null;var r=t&&mn(t)==="object"?t:{};return r.clearIcon||n||f.createElement("span",{className:"".concat(e,"-clear-btn")})}var Hs=7;function Rr(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Tl(e,t,n){return Rr(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function ea(e,t,n){return Rr(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Nd(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function vx(e,t,n){return Rr(t,n,function(){return ea(e,t,n)&&Nd(e,t)===Nd(e,n)})}function hu(e,t,n){return Rr(t,n,function(){return ea(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function yu(e,t,n){return Rr(t,n,function(){return ea(e,t,n)&&hu(e,t,n)&&e.getDate(t)===e.getDate(n)})}function sg(e,t,n){return Rr(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function lg(e,t,n){return Rr(t,n,function(){return yu(e,t,n)&&sg(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function ao(e,t,n,r){return Rr(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return ea(e,a,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Sn(e,t,n,r,a){switch(a){case"date":return yu(e,n,r);case"week":return ao(e,t.locale,n,r);case"month":return hu(e,n,r);case"quarter":return vx(e,n,r);case"year":return ea(e,n,r);case"decade":return Tl(e,n,r);case"time":return sg(e,n,r);default:return lg(e,n,r)}}function vs(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Xo(e,t,n,r,a){return Sn(e,t,n,r,a)?!0:e.isAfter(n,r)}function hx(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),o=t.getWeekDay(a),i=t.addDate(a,r-o);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function rn(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Hi(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function yx(e,t,n,r,a){var o=Ut(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!Sn(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!Sn(e,t,a,i,s.type))});return o}function bx(e,t,n){return f.useMemo(function(){var r=Jp(e,t,n),a=ca(r),o=a[0],i=mn(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function xx(e,t,n){return typeof e[0]=="function"||n?!0:t}function Cx(e,t,n,r){var a=Ut(function(o,i){var s=ye({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var l,c=i&&i.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,o,c,{from:s.from}))||{},d=u.disabledHours,g=u.disabledMinutes,h=u.disabledSeconds,v=u.disabledMilliseconds,m=r.disabledHours,p=r.disabledMinutes,b=r.disabledSeconds,y=d||m,x=g||p,w=h||b,C=e.getHour(o),S=e.getMinute(o),E=e.getSecond(o),k=e.getMillisecond(o);if(y&&y().includes(C)||x&&x(C).includes(S)||w&&w(C,S).includes(E)||v&&v(C,S,E).includes(k))return!0}return!1});return a}function Jo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=f.useMemo(function(){var r=e&&ca(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function cg(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,g=e.order,h=g===void 0?!0:g,v=e.components,m=v===void 0?{}:v,p=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,w=e.multiple,C=e.format,S=e.inputReadOnly,E=e.disabledDate,k=e.minDate,$=e.maxDate,O=e.showTime,D=e.value,P=e.defaultValue,R=e.pickerValue,N=e.defaultPickerValue,I=Jo(D),M=Jo(P),F=Jo(R),j=Jo(N),A=o==="date"&&O?"datetime":o,_=A==="time"||A==="datetime",L=_||w,z=x??_,T=og(e),H=oe(T,4),W=H[0],K=H[1],G=H[2],U=H[3],Z=ng(r,K),Q=f.useMemo(function(){return ig(A,G,U,W,Z)},[A,G,U,W,Z]),Y=f.useMemo(function(){return ye(ye({},e),{},{prefixCls:s,locale:Z,picker:o,styles:c,classNames:d,order:h,components:ye({input:p},m),clearIcon:gx(s,b,y),showTime:Q,value:I,defaultValue:M,pickerValue:F,defaultPickerValue:j},t==null?void 0:t())},[e]),ee=bx(A,Z,C),ce=oe(ee,2),me=ce[0],we=ce[1],se=xx(me,S,w),ge=yx(n,r,E,k,$),Ee=Cx(n,o,ge,Q),Te=f.useMemo(function(){return ye(ye({},Y),{},{needConfirm:z,inputReadOnly:se,disabledDate:ge})},[Y,z,se,ge]);return[Te,A,L,me,we,Ee]}function wx(e,t,n){var r=an(t,{value:e}),a=oe(r,2),o=a[0],i=a[1],s=be.useRef(e),l=be.useRef(),c=function(){zt.cancel(l.current)},u=Ut(function(){i(s.current),n&&o!==s.current&&n(s.current)}),d=Ut(function(g,h){c(),s.current=g,g||h?u():l.current=zt(u)});return be.useEffect(function(){return c},[]),[o,d]}function ug(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(u){return u})?!1:e,o=wx(a,t||!1,r),i=oe(o,2),s=i[0],l=i[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function dg(e){var t=f.useRef();return f.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function fg(e,t){return f.useMemo(function(){return e||(t?(In(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=oe(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function bu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=f.useRef(t);r.current=t,mi(function(){if(e)r.current(e);else{var a=zt(function(){r.current(e)},n);return function(){zt.cancel(a)}}},[e])}function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=f.useState(0),a=oe(r,2),o=a[0],i=a[1],s=f.useState(!1),l=oe(s,2),c=l[0],u=l[1],d=f.useRef([]),g=f.useRef(null),h=f.useRef(null),v=function(w){g.current=w},m=function(w){return g.current===w},p=function(w){u(w)},b=function(w){return w&&(h.current=w),h.current},y=function(w){var C=d.current,S=new Set(C.filter(function(k){return w[k]||t[k]})),E=C[C.length-1]===0?1:0;return S.size>=2||e[E]?null:E};return bu(c||n,function(){c||(d.current=[],v(null))}),f.useEffect(function(){c&&d.current.push(o)},[c,o]),[c,p,b,o,i,y,d.current,v,m]}function Sx(e,t,n,r,a,o){var i=n[n.length-1],s=function(c,u){var d=oe(e,2),g=d[0],h=d[1],v=ye(ye({},u),{},{from:Qp(e,n)});return i===1&&t[0]&&g&&!Sn(r,a,g,c,v.type)&&r.isAfter(g,c)||i===0&&t[1]&&h&&!Sn(r,a,h,c,v.type)&&r.isAfter(c,h)?!0:o==null?void 0:o(c,v)};return s}function oo(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Vs=[];function pg(e,t,n,r,a,o,i,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Vs,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Vs,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Vs,d=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,v=i==="time",m=o||0,p=function(F){var j=e.getNow();return v&&(j=Hi(e,j)),l[F]||n[F]||j},b=oe(c,2),y=b[0],x=b[1],w=an(function(){return p(0)},{value:y}),C=oe(w,2),S=C[0],E=C[1],k=an(function(){return p(1)},{value:x}),$=oe(k,2),O=$[0],D=$[1],P=f.useMemo(function(){var M=[S,O][m];return v?M:Hi(e,M,u[m])},[v,S,O,m,e,u]),R=function(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",A=[E,D][m];A(F);var _=[S,O];_[m]=F,d&&(!Sn(e,t,S,_[0],i)||!Sn(e,t,O,_[1],i))&&d(_,{source:j,range:m===1?"end":"start",mode:r})},N=function(F,j){if(s){var A={date:"month",week:"month",month:"year",quarter:"year"},_=A[i];if(_&&!Sn(e,t,F,j,_))return oo(e,i,j,-1);if(i==="year"&&F){var L=Math.floor(e.getYear(F)/10),z=Math.floor(e.getYear(j)/10);if(L!==z)return oo(e,i,j,-1)}}return j},I=f.useRef(null);return Rn(function(){if(a&&!l[m]){var M=v?null:e.getNow();if(I.current!==null&&I.current!==m?M=[S,O][m^1]:n[m]?M=m===0?n[0]:N(n[0],n[1]):n[m^1]&&(M=n[m^1]),M){g&&e.isAfter(g,M)&&(M=g);var F=s?oo(e,i,M,1):M;h&&e.isAfter(F,h)&&(M=s?oo(e,i,h,-1):h),R(M,"reset")}}},[a,m,n[m]]),f.useEffect(function(){a?I.current=m:I.current=null},[a,m]),Rn(function(){a&&l&&l[m]&&R(l[m],"reset")},[a,m]),[P,R]}function gg(e,t){var n=f.useRef(e),r=f.useState({}),a=oe(r,2),o=a[1],i=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,o({})};return[i,s,i(!0)]}var $x=[];function vg(e,t,n){var r=function(i){return i.map(function(s){return rn(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var l=Math.max(i.length,s.length),c=-1,u=0;u<l;u+=1){var d=i[u]||null,g=s[u]||null;if(d!==g&&!lg(e,d,g)){c=u;break}}return[c<0,c!==0]};return[r,a]}function hg(e,t){return rt(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function Ex(e){var t=gg(e),n=oe(t,2),r=n[0],a=n[1],o=Ut(function(){a(e)});return f.useEffect(function(){o()},[e]),[r,a]}function yg(e,t,n,r,a,o,i,s,l){var c=an(o,{value:i}),u=oe(c,2),d=u[0],g=u[1],h=d||$x,v=Ex(h),m=oe(v,2),p=m[0],b=m[1],y=vg(e,t,n),x=oe(y,2),w=x[0],C=x[1],S=Ut(function(k){var $=rt(k);if(r)for(var O=0;O<2;O+=1)$[O]=$[O]||null;else a&&($=hg($.filter(function(M){return M}),e));var D=C(p(),$),P=oe(D,2),R=P[0],N=P[1];if(!R&&(b($),s)){var I=w($);s($,I,{range:N?"end":"start"})}}),E=function(){l&&l(p())};return[h,g,p,S,E]}function bg(e,t,n,r,a,o,i,s,l,c){var u=e.generateConfig,d=e.locale,g=e.picker,h=e.onChange,v=e.allowEmpty,m=e.order,p=o.some(function(R){return R})?!1:m,b=vg(u,d,i),y=oe(b,2),x=y[0],w=y[1],C=gg(t),S=oe(C,2),E=S[0],k=S[1],$=Ut(function(){k(t)});f.useEffect(function(){$()},[t]);var O=Ut(function(R){var N=R===null,I=rt(R||E());if(N)for(var M=Math.max(o.length,I.length),F=0;F<M;F+=1)o[F]||(I[F]=null);p&&I[0]&&I[1]&&(I=hg(I,u)),a(I);var j=I,A=oe(j,2),_=A[0],L=A[1],z=!_,T=!L,H=v?(!z||v[0])&&(!T||v[1]):!0,W=!m||z||T||Sn(u,d,_,L,g)||u.isAfter(L,_),K=(o[0]||!_||!c(_,{activeIndex:0}))&&(o[1]||!L||!c(L,{from:_,activeIndex:1})),G=N||H&&W&&K;if(G){n(I);var U=w(I,t),Z=oe(U,1),Q=Z[0];h&&!Q&&h(N&&I.every(function(Y){return!Y})?null:I,x(I))}return G}),D=Ut(function(R,N){var I=co(E(),R,r()[R]);k(I),N&&O()}),P=!s&&!l;return bu(!P,function(){P&&(O(),a(t),$())},2),[D,O]}function xg(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function kx(e,t,n,r,a,o){var i=e;function s(d,g,h){var v=o[d](i),m=h.find(function(x){return x.value===v});if(!m||m.disabled){var p=h.filter(function(x){return!x.disabled}),b=rt(p).reverse(),y=b.find(function(x){return x.value<=v})||p[0];y&&(v=y.value,i=o[g](i,v))}return v}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",a(l,c,u)),i}function Qo(){return[]}function Zo(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=a.includes(l);(!c||!r)&&i.push({label:gu(l,o),value:l,disabled:c})}return i}function xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,g=d===void 0?100:d,h=r.hideDisabledOptions,v=r.disabledTime,m=r.disabledHours,p=r.disabledMinutes,b=r.disabledSeconds,y=f.useMemo(function(){return n||e.getNow()},[n,e]),x=f.useCallback(function(j){var A=(v==null?void 0:v(j))||{};return[A.disabledHours||m||Qo,A.disabledMinutes||p||Qo,A.disabledSeconds||b||Qo,A.disabledMilliseconds||Qo]},[v,m,p,b]),w=f.useMemo(function(){return x(y)},[y,x]),C=oe(w,4),S=C[0],E=C[1],k=C[2],$=C[3],O=f.useCallback(function(j,A,_,L){var z=Zo(0,23,i,h,j()),T=a?z.map(function(G){return ye(ye({},G),{},{label:gu(G.value%12||12,2)})}):z,H=function(U){return Zo(0,59,l,h,A(U))},W=function(U,Z){return Zo(0,59,u,h,_(U,Z))},K=function(U,Z,Q){return Zo(0,999,g,h,L(U,Z,Q),3)};return[T,H,W,K]},[h,i,a,g,l,u]),D=f.useMemo(function(){return O(S,E,k,$)},[O,S,E,k,$]),P=oe(D,4),R=P[0],N=P[1],I=P[2],M=P[3],F=function(A,_){var L=function(){return R},z=N,T=I,H=M;if(_){var W=x(_),K=oe(W,4),G=K[0],U=K[1],Z=K[2],Q=K[3],Y=O(G,U,Z,Q),ee=oe(Y,4),ce=ee[0],me=ee[1],we=ee[2],se=ee[3];L=function(){return ce},z=me,T=we,H=se}var ge=kx(A,L,z,T,H,e);return ge};return[F,R,N,I,M]}function Ix(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,g=f.useContext(ar),h=g.prefixCls,v=g.locale,m=g.button,p=m===void 0?"button":m,b=u.getNow(),y=xu(u,o,b),x=oe(y,1),w=x[0],C=r==null?void 0:r(t),S=d(b,{type:t}),E=function(){if(!S){var N=w(b);s(N)}},k="".concat(h,"-now"),$="".concat(k,"-btn"),O=a&&f.createElement("li",{className:k},f.createElement("a",{className:pe($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:E},n==="date"?v.today:v.now)),D=c&&f.createElement("li",{className:"".concat(h,"-ok")},f.createElement(p,{disabled:l,onClick:i},v.ok)),P=(O||D)&&f.createElement("ul",{className:"".concat(h,"-ranges")},O,D);return!C&&!P?null:f.createElement("div",{className:"".concat(h,"-footer")},C&&f.createElement("div",{className:"".concat(h,"-footer-extra")},C),P)}function Cg(e,t,n){function r(a,o){var i=a.findIndex(function(l){return Sn(e,t,l,o,n)});if(i===-1)return[].concat(rt(a),[o]);var s=rt(a);return s.splice(i,1),s}return r}var ua=f.createContext(null);function hs(){return f.useContext(ua)}function ja(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,g=e.values,h=e.pickerValue,v=e.onSelect,m=e.prevIcon,p=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),w={now:x,values:g,pickerValue:h,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:a,generateConfig:r,onSelect:v,panelType:t,prevIcon:m,nextIcon:p,superPrevIcon:b,superNextIcon:y};return[w,x]}var Dr=f.createContext({});function _o(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,g=d===void 0?!0:d,h=e.disabledDate,v=hs(),m=v.prefixCls,p=v.panelType,b=v.now,y=v.disabledDate,x=v.cellRender,w=v.onHover,C=v.hoverValue,S=v.hoverRangeValue,E=v.generateConfig,k=v.values,$=v.locale,O=v.onSelect,D=h||y,P="".concat(m,"-cell"),R=f.useContext(Dr),N=R.onCellDblClick,I=function(T){return k.some(function(H){return H&&Sn(E,$,T,H,p)})},M=[],F=0;F<t;F+=1){for(var j=[],A=void 0,_=function(){var T=F*n+L,H=a(r,T),W=D==null?void 0:D(H,{type:p});L===0&&(A=H,o&&j.push(o(A)));var K=!1,G=!1,U=!1;if(g&&S){var Z=oe(S,2),Q=Z[0],Y=Z[1];K=vs(E,Q,Y,H),G=Sn(E,$,H,Q,p),U=Sn(E,$,H,Y,p)}var ee=s?rn(H,{locale:$,format:s,generateConfig:E}):void 0,ce=f.createElement("div",{className:"".concat(P,"-inner")},l(H));j.push(f.createElement("td",{key:L,title:ee,className:pe(P,ye(J(J(J(J(J(J({},"".concat(P,"-disabled"),W),"".concat(P,"-hover"),(C||[]).some(function(me){return Sn(E,$,H,me,p)})),"".concat(P,"-in-range"),K&&!G&&!U),"".concat(P,"-range-start"),G),"".concat(P,"-range-end"),U),"".concat(m,"-cell-selected"),!S&&p!=="week"&&I(H)),c(H))),onClick:function(){W||O(H)},onDoubleClick:function(){!W&&N&&N()},onMouseEnter:function(){W||w==null||w(H)},onMouseLeave:function(){W||w==null||w(null)}},x?x(H,{prefixCls:m,originNode:ce,today:b,type:p,locale:$}):ce))},L=0;L<n;L+=1)_();M.push(f.createElement("tr",{key:F,className:i==null?void 0:i(A)},j))}return f.createElement("div",{className:"".concat(m,"-body")},f.createElement("table",{className:"".concat(m,"-content")},u&&f.createElement("thead",null,f.createElement("tr",null,u)),f.createElement("tbody",null,M)))}var ei={visibility:"hidden"};function Ra(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,o=e.getEnd,i=e.children,s=hs(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"\u2039":c,d=s.nextIcon,g=d===void 0?"\u203A":d,h=s.superPrevIcon,v=h===void 0?"\xAB":h,m=s.superNextIcon,p=m===void 0?"\xBB":m,b=s.minDate,y=s.maxDate,x=s.generateConfig,w=s.locale,C=s.pickerValue,S=s.panelType,E="".concat(l,"-header"),k=f.useContext(Dr),$=k.hidePrev,O=k.hideNext,D=k.hideHeader,P=f.useMemo(function(){if(!b||!t||!o)return!1;var z=o(t(-1,C));return!Xo(x,w,z,b,S)},[b,t,C,o,x,w,S]),R=f.useMemo(function(){if(!b||!n||!o)return!1;var z=o(n(-1,C));return!Xo(x,w,z,b,S)},[b,n,C,o,x,w,S]),N=f.useMemo(function(){if(!y||!t||!a)return!1;var z=a(t(1,C));return!Xo(x,w,y,z,S)},[y,t,C,a,x,w,S]),I=f.useMemo(function(){if(!y||!n||!a)return!1;var z=a(n(1,C));return!Xo(x,w,y,z,S)},[y,n,C,a,x,w,S]),M=function(T){t&&r(t(T,C))},F=function(T){n&&r(n(T,C))};if(D)return null;var j="".concat(E,"-prev-btn"),A="".concat(E,"-next-btn"),_="".concat(E,"-super-prev-btn"),L="".concat(E,"-super-next-btn");return f.createElement("div",{className:E},n&&f.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return F(-1)},tabIndex:-1,className:pe(_,R&&"".concat(_,"-disabled")),disabled:R,style:$?ei:{}},v),t&&f.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return M(-1)},tabIndex:-1,className:pe(j,P&&"".concat(j,"-disabled")),disabled:P,style:$?ei:{}},u),f.createElement("div",{className:"".concat(E,"-view")},i),t&&f.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return M(1)},tabIndex:-1,className:pe(A,N&&"".concat(A,"-disabled")),disabled:N,style:O?ei:{}},g),n&&f.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return F(1)},tabIndex:-1,className:pe(L,I&&"".concat(L,"-disabled")),disabled:I,style:O?ei:{}},p))}function ys(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,o=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,d=e.disabledDate,g=e.onSelect,h=e.onHover,v=e.showWeek,m="".concat(t,"-").concat(r,"-panel"),p="".concat(t,"-cell"),b=u==="week",y=ja(e,u),x=oe(y,2),w=x[0],C=x[1],S=o.locale.getWeekFirstDay(a.locale),E=o.setDate(i,1),k=hx(a.locale,o,E),$=o.getMonth(i),O=v===void 0?b:v,D=O?function(z){var T=d==null?void 0:d(z,{type:"week"});return f.createElement("td",{key:"week",className:pe(p,"".concat(p,"-week"),J({},"".concat(p,"-disabled"),T)),onClick:function(){T||g(z)},onMouseEnter:function(){T||h==null||h(z)},onMouseLeave:function(){T||h==null||h(null)}},f.createElement("div",{className:"".concat(p,"-inner")},o.locale.getWeek(a.locale,z)))}:null,P=[],R=a.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(a.locale):[]);D&&P.push(f.createElement("th",{key:"empty"},f.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var N=0;N<Hs;N+=1)P.push(f.createElement("th",{key:N},R[(N+S)%Hs]));var I=function(T,H){return o.addDate(T,H)},M=function(T){return rn(T,{locale:a,format:a.cellDateFormat,generateConfig:o})},F=function(T){var H=J(J({},"".concat(t,"-cell-in-view"),hu(o,T,i)),"".concat(t,"-cell-today"),yu(o,T,C));return H},j=a.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(a.locale):[]),A=f.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){l("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},rn(i,{locale:a,format:a.yearFormat,generateConfig:o})),_=f.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){l("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?rn(i,{locale:a,format:a.monthFormat,generateConfig:o}):j[$]),L=a.monthBeforeYear?[_,A]:[A,_];return f.createElement(ua.Provider,{value:w},f.createElement("div",{className:pe(m,v&&"".concat(m,"-show-week"))},f.createElement(Ra,{offset:function(T){return o.addMonth(i,T)},superOffset:function(T){return o.addYear(i,T)},onChange:s,getStart:function(T){return o.setDate(T,1)},getEnd:function(T){var H=o.setDate(T,1);return H=o.addMonth(H,1),o.addDate(H,-1)}},L),f.createElement(_o,Oe({titleFormat:a.fieldDateFormat},e,{colNum:Hs,rowNum:6,baseDate:k,headerCells:P,getCellDate:I,getCellText:M,getCellClassName:F,prefixColumn:D,cellSelection:!b}))))}var Ox=1/3;function Nx(e,t){var n=f.useRef(!1),r=f.useRef(null),a=f.useRef(null),o=function(){return n.current},i=function(){zt.cancel(r.current),n.current=!1},s=f.useRef(),l=function(){var d=e.current;if(a.current=null,s.current=0,d){var g=d.querySelector('[data-value="'.concat(t,'"]')),h=d.querySelector("li"),v=function m(){i(),n.current=!0,s.current+=1;var p=d.scrollTop,b=h.offsetTop,y=g.offsetTop,x=y-b;if(y===0&&g!==h||!vp(d)){s.current<=5&&(r.current=zt(m));return}var w=p+(x-p)*Ox,C=Math.abs(x-w);if(a.current!==null&&a.current<C){i();return}if(a.current=C,C<=1){d.scrollTop=x,i();return}d.scrollTop=w,r.current=zt(m)};g&&h&&v()}},c=Ut(l);return[c,i,o]}var Dx=300;function Mx(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function Qa(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,o=e.onChange,i=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=hs(),u=c.prefixCls,d=c.cellRender,g=c.now,h=c.locale,v="".concat(u,"-time-panel"),m="".concat(u,"-time-panel-cell"),p=f.useRef(null),b=f.useRef(),y=function(){clearTimeout(b.current)},x=Nx(p,n??r),w=oe(x,3),C=w[0],S=w[1],E=w[2];Rn(function(){return C(),y(),function(){S(),y()}},[n,r,Mx(t)]);var k=function(D){y();var P=D.target;!E()&&l&&(b.current=setTimeout(function(){var R=p.current,N=R.querySelector("li").offsetTop,I=Array.from(R.querySelectorAll("li")),M=I.map(function(L){return L.offsetTop-N}),F=M.map(function(L,z){return t[z].disabled?Number.MAX_SAFE_INTEGER:Math.abs(L-P.scrollTop)}),j=Math.min.apply(Math,rt(F)),A=F.findIndex(function(L){return L===j}),_=t[A];_&&!_.disabled&&o(_.value)},Dx))},$="".concat(v,"-column");return f.createElement("ul",{className:$,ref:p,"data-type":a,onScroll:k},t.map(function(O){var D=O.label,P=O.value,R=O.disabled,N=f.createElement("div",{className:"".concat(m,"-inner")},D);return f.createElement("li",{key:P,className:pe(m,J(J({},"".concat(m,"-selected"),n===P),"".concat(m,"-disabled"),R)),onClick:function(){R||o(P)},onDoubleClick:function(){!R&&s&&s()},onMouseEnter:function(){i(P)},onMouseLeave:function(){i(null)},"data-value":P},d?d(P,{prefixCls:u,originNode:N,today:g,type:"time",subType:a,locale:h}):N)}))}function Cr(e){return e<12}function Fx(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,o=e.use12Hours,i=e.changeOnScroll,s=hs(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,g=s.onSelect,h=s.onHover,v=h===void 0?function(){}:h,m=s.pickerValue,p=(c==null?void 0:c[0])||null,b=f.useContext(Dr),y=b.onCellDblClick,x=xu(u,e,p),w=oe(x,5),C=w[0],S=w[1],E=w[2],k=w[3],$=w[4],O=function(xe){var _e=p&&u[xe](p),ze=m&&u[xe](m);return[_e,ze]},D=O("getHour"),P=oe(D,2),R=P[0],N=P[1],I=O("getMinute"),M=oe(I,2),F=M[0],j=M[1],A=O("getSecond"),_=oe(A,2),L=_[0],z=_[1],T=O("getMillisecond"),H=oe(T,2),W=H[0],K=H[1],G=R===null?null:Cr(R)?"am":"pm",U=f.useMemo(function(){return o?Cr(R)?S.filter(function(ie){return Cr(ie.value)}):S.filter(function(ie){return!Cr(ie.value)}):S},[R,S,o]),Z=function(xe,_e){var ze,st=xe.filter(function(Ne){return!Ne.disabled});return _e??(st==null||(ze=st[0])===null||ze===void 0?void 0:ze.value)},Q=Z(S,R),Y=f.useMemo(function(){return E(Q)},[E,Q]),ee=Z(Y,F),ce=f.useMemo(function(){return k(Q,ee)},[k,Q,ee]),me=Z(ce,L),we=f.useMemo(function(){return $(Q,ee,me)},[$,Q,ee,me]),se=Z(we,W),ge=f.useMemo(function(){if(!o)return[];var ie=u.getNow(),xe=u.setHour(ie,6),_e=u.setHour(ie,18),ze=function(Ne,Ie){var Ue=d.cellMeridiemFormat;return Ue?rn(Ne,{generateConfig:u,locale:d,format:Ue}):Ie};return[{label:ze(xe,"AM"),value:"am",disabled:S.every(function(st){return st.disabled||!Cr(st.value)})},{label:ze(_e,"PM"),value:"pm",disabled:S.every(function(st){return st.disabled||Cr(st.value)})}]},[S,o,u,d]),Ee=function(xe){var _e=C(xe);g(_e)},Te=f.useMemo(function(){var ie=p||m||u.getNow(),xe=function(ze){return ze!=null};return xe(R)?(ie=u.setHour(ie,R),ie=u.setMinute(ie,F),ie=u.setSecond(ie,L),ie=u.setMillisecond(ie,W)):xe(N)?(ie=u.setHour(ie,N),ie=u.setMinute(ie,j),ie=u.setSecond(ie,z),ie=u.setMillisecond(ie,K)):xe(Q)&&(ie=u.setHour(ie,Q),ie=u.setMinute(ie,ee),ie=u.setSecond(ie,me),ie=u.setMillisecond(ie,se)),ie},[p,m,R,F,L,W,Q,ee,me,se,N,j,z,K,u]),Pe=function(xe,_e){return xe===null?null:u[_e](Te,xe)},he=function(xe){return Pe(xe,"setHour")},ke=function(xe){return Pe(xe,"setMinute")},de=function(xe){return Pe(xe,"setSecond")},Re=function(xe){return Pe(xe,"setMillisecond")},He=function(xe){return xe===null?null:xe==="am"&&!Cr(R)?u.setHour(Te,R-12):xe==="pm"&&Cr(R)?u.setHour(Te,R+12):Te},Ke=function(xe){Ee(he(xe))},tt=function(xe){Ee(ke(xe))},qe=function(xe){Ee(de(xe))},We=function(xe){Ee(Re(xe))},lt=function(xe){Ee(He(xe))},Fe=function(xe){v(he(xe))},ae=function(xe){v(ke(xe))},Le=function(xe){v(de(xe))},Ce=function(xe){v(Re(xe))},$e=function(xe){v(He(xe))},ue={onDblClick:y,changeOnScroll:i};return f.createElement("div",{className:"".concat(l,"-content")},t&&f.createElement(Qa,Oe({units:U,value:R,optionalValue:N,type:"hour",onChange:Ke,onHover:Fe},ue)),n&&f.createElement(Qa,Oe({units:Y,value:F,optionalValue:j,type:"minute",onChange:tt,onHover:ae},ue)),r&&f.createElement(Qa,Oe({units:ce,value:L,optionalValue:z,type:"second",onChange:qe,onHover:Le},ue)),a&&f.createElement(Qa,Oe({units:we,value:W,optionalValue:K,type:"millisecond",onChange:We,onHover:Ce},ue)),o&&f.createElement(Qa,Oe({units:ge,value:G,type:"meridiem",onChange:lt,onHover:$e},ue)))}function wg(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,o=e.showTime,i=o||{},s=i.format,l="".concat(t,"-time-panel"),c=ja(e,"time"),u=oe(c,1),d=u[0];return f.createElement(ua.Provider,{value:d},f.createElement("div",{className:pe(l)},f.createElement(Ra,null,n?rn(n,{locale:r,format:s,generateConfig:a}):"\xA0"),f.createElement(Fx,o)))}function Px(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,o=e.value,i=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=xu(n,r),u=oe(c,1),d=u[0],g=function(p){return o?Hi(n,p,o):Hi(n,p,i)},h=function(p){s==null||s(p&&g(p))},v=function(p){var b=g(p);a(d(b,b))};return f.createElement("div",{className:l},f.createElement(ys,Oe({},e,{onSelect:v,onHover:h})),f.createElement(wg,e))}function jx(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=ja(e,"decade"),c=oe(l,1),u=c[0],d=function(S){var E=Math.floor(r.getYear(S)/100)*100;return r.setYear(S,E)},g=function(S){var E=d(S);return r.addYear(E,99)},h=d(a),v=g(a),m=r.addYear(h,-10),p=function(S,E){return r.addYear(S,E*10)},b=function(S){var E=n.cellYearFormat,k=rn(S,{locale:n,format:E,generateConfig:r}),$=rn(r.addYear(S,9),{locale:n,format:E,generateConfig:r});return"".concat(k,"-").concat($)},y=function(S){return J({},"".concat(t,"-cell-in-view"),Tl(r,S,h)||Tl(r,S,v)||vs(r,h,v,S))},x=o?function(C,S){var E=r.setDate(C,1),k=r.setMonth(E,0),$=r.setYear(k,Math.floor(r.getYear(k)/10)*10),O=r.addYear($,10),D=r.addDate(O,-1);return o($,S)&&o(D,S)}:null,w="".concat(rn(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(rn(v,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(ua.Provider,{value:u},f.createElement("div",{className:s},f.createElement(Ra,{superOffset:function(S){return r.addYear(a,S*100)},onChange:i,getStart:d,getEnd:g},w),f.createElement(_o,Oe({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:m,getCellDate:p,getCellText:b,getCellClassName:y}))))}function Rx(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=ja(e,"month"),u=oe(c,1),d=u[0],g=r.setMonth(a,0),h=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),v=function(w,C){return r.addMonth(w,C)},m=function(w){var C=r.getMonth(w);return n.monthFormat?rn(w,{locale:n,format:n.monthFormat,generateConfig:r}):h[C]},p=function(){return J({},"".concat(t,"-cell-in-view"),!0)},b=o?function(x,w){var C=r.setDate(x,1),S=r.setMonth(C,r.getMonth(C)+1),E=r.addDate(S,-1);return o(C,w)&&o(E,w)}:null,y=f.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},rn(a,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(ua.Provider,{value:d},f.createElement("div",{className:l},f.createElement(Ra,{superOffset:function(w){return r.addYear(a,w)},onChange:i,getStart:function(w){return r.setMonth(w,0)},getEnd:function(w){return r.setMonth(w,11)}},y),f.createElement(_o,Oe({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:v,getCellText:m,getCellClassName:p}))))}function Ax(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),l=ja(e,"quarter"),c=oe(l,1),u=c[0],d=r.setMonth(a,0),g=function(b,y){return r.addMonth(b,y*3)},h=function(b){return rn(b,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},v=function(){return J({},"".concat(t,"-cell-in-view"),!0)},m=f.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},rn(a,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(ua.Provider,{value:u},f.createElement("div",{className:s},f.createElement(Ra,{superOffset:function(b){return r.addYear(a,b)},onChange:o,getStart:function(b){return r.setMonth(b,0)},getEnd:function(b){return r.setMonth(b,11)}},m),f.createElement(_o,Oe({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:g,getCellText:h,getCellClassName:v}))))}function Tx(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,o=e.hoverValue,i=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(d){var g={};if(i){var h=oe(i,2),v=h[0],m=h[1],p=ao(n,s,v,d),b=ao(n,s,m,d);g["".concat(l,"-range-start")]=p,g["".concat(l,"-range-end")]=b,g["".concat(l,"-range-hover")]=!p&&!b&&vs(n,v,m,d)}return o&&(g["".concat(l,"-hover")]=o.some(function(y){return ao(n,s,d,y)})),pe(l,J({},"".concat(l,"-selected"),!i&&ao(n,s,a,d)),g)};return f.createElement(ys,Oe({},e,{mode:"week",panelName:"week",rowClassName:c}))}function _x(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=ja(e,"year"),u=oe(c,1),d=u[0],g=function(E){var k=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,k)},h=function(E){var k=g(E);return r.addYear(k,9)},v=g(a),m=h(a),p=r.addYear(v,-1),b=function(E,k){return r.addYear(E,k)},y=function(E){return rn(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(E){return J({},"".concat(t,"-cell-in-view"),ea(r,E,v)||ea(r,E,m)||vs(r,v,m,E))},w=o?function(S,E){var k=r.setMonth(S,0),$=r.setDate(k,1),O=r.addYear($,1),D=r.addDate(O,-1);return o($,E)&&o(D,E)}:null,C=f.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},rn(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-",rn(m,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(ua.Provider,{value:d},f.createElement("div",{className:l},f.createElement(Ra,{superOffset:function(E){return r.addYear(a,E*10)},onChange:i,getStart:g,getEnd:h},C),f.createElement(_o,Oe({},e,{disabledDate:w,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:b,getCellText:y,getCellClassName:x}))))}var Bx={date:ys,datetime:Px,week:Tx,month:Rx,quarter:Ax,year:_x,decade:jx,time:wg};function Lx(e,t){var n,r=e.locale,a=e.generateConfig,o=e.direction,i=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,d=e.value,g=e.onChange,h=e.onSelect,v=e.defaultPickerValue,m=e.pickerValue,p=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,w=x===void 0?"date":x,C=e.showTime,S=e.hoverValue,E=e.hoverRangeValue,k=e.cellRender,$=e.dateRender,O=e.monthCellRender,D=e.components,P=D===void 0?{}:D,R=e.hideHeader,N=((n=f.useContext(ar))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",I=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:I.current}});var M=og(e),F=oe(M,4),j=F[0],A=F[1],_=F[2],L=F[3],z=ng(r,A),T=w==="date"&&C?"datetime":w,H=f.useMemo(function(){return ig(T,_,L,j,z)},[T,_,L,j,z]),W=a.getNow(),K=an(w,{value:b,postState:function($e){return $e||"date"}}),G=oe(K,2),U=G[0],Z=G[1],Q=U==="date"&&H?"datetime":U,Y=Cg(a,r,T),ee=an(u,{value:d}),ce=oe(ee,2),me=ce[0],we=ce[1],se=f.useMemo(function(){var Ce=ca(me).filter(function($e){return $e});return c?Ce:Ce.slice(0,1)},[me,c]),ge=Ut(function(Ce){we(Ce),g&&(Ce===null||se.length!==Ce.length||se.some(function($e,ue){return!Sn(a,r,$e,Ce[ue],T)}))&&(g==null||g(c?Ce:Ce[0]))}),Ee=Ut(function(Ce){if(h==null||h(Ce),U===w){var $e=c?Y(se,Ce):[Ce];ge($e)}}),Te=an(v||se[0]||W,{value:m}),Pe=oe(Te,2),he=Pe[0],ke=Pe[1];f.useEffect(function(){se[0]&&!m&&ke(se[0])},[se[0]]);var de=function($e,ue){y==null||y($e||m,ue||U)},Re=function($e){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ke($e),p==null||p($e),ue&&de($e)},He=function($e,ue){Z($e),ue&&Re(ue),de(ue,$e)},Ke=function($e){if(Ee($e),Re($e),U!==w){var ue=["decade","year"],ie=[].concat(ue,["month"]),xe={quarter:[].concat(ue,["quarter"]),week:[].concat(rt(ie),["week"]),date:[].concat(rt(ie),["date"])},_e=xe[w]||ie,ze=_e.indexOf(U),st=_e[ze+1];st&&He(st,$e)}},tt=f.useMemo(function(){var Ce,$e;if(Array.isArray(E)){var ue=oe(E,2);Ce=ue[0],$e=ue[1]}else Ce=E;return!Ce&&!$e?null:(Ce=Ce||$e,$e=$e||Ce,a.isAfter(Ce,$e)?[$e,Ce]:[Ce,$e])},[E,a]),qe=vu(k,$,O),We=P[Q]||Bx[Q]||ys,lt=f.useContext(Dr),Fe=f.useMemo(function(){return ye(ye({},lt),{},{hideHeader:R})},[lt,R]),ae="".concat(N,"-panel"),Le=gs(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return f.createElement(Dr.Provider,{value:Fe},f.createElement("div",{ref:I,tabIndex:l,className:pe(ae,J({},"".concat(ae,"-rtl"),o==="rtl"))},f.createElement(We,Oe({},Le,{showTime:H,prefixCls:N,locale:z,generateConfig:a,onModeChange:He,pickerValue:he,onPickerValueChange:function($e){Re($e,!0)},value:se[0],onSelect:Ke,values:se,cellRender:qe,hoverRangeValue:tt,hoverValue:S}))))}var Ks=f.memo(f.forwardRef(Lx));function zx(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,l=e.hoverValue,c=f.useContext(ar),u=c.prefixCls,d=c.generateConfig,g=f.useCallback(function(y,x){return oo(d,t,y,x)},[d,t]),h=f.useMemo(function(){return g(r,1)},[r,g]),v=function(x){a(g(x,-1))},m={onCellDblClick:function(){o&&i()}},p=t==="time",b=ye(ye({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return s?b.hoverRangeValue=l:b.hoverValue=l,n?f.createElement("div",{className:"".concat(u,"-panels")},f.createElement(Dr.Provider,{value:ye(ye({},m),{},{hideNext:!0})},f.createElement(Ks,b)),f.createElement(Dr.Provider,{value:ye(ye({},m),{},{hidePrev:!0})},f.createElement(Ks,Oe({},b,{pickerValue:h,onPickerValueChange:v})))):f.createElement(Dr.Provider,{value:ye({},m)},f.createElement(Ks,b))}function Dd(e){return typeof e=="function"?e():e}function Hx(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?f.createElement("div",{className:"".concat(t,"-presets")},f.createElement("ul",null,n.map(function(o,i){var s=o.label,l=o.value;return f.createElement("li",{key:i,onClick:function(){r(Dd(l))},onMouseEnter:function(){a(Dd(l))},onMouseLeave:function(){a(null)}},s)}))):null}function Sg(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,g=e.onFocus,h=e.onBlur,v=e.onPanelMouseDown,m=e.direction,p=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,S=f.useContext(ar),E=S.prefixCls,k="".concat(E,"-panel"),$=m==="rtl",O=f.useRef(null),D=f.useRef(null),P=f.useState(0),R=oe(P,2),N=R[0],I=R[1],M=f.useState(0),F=oe(M,2),j=F[0],A=F[1],_=f.useState(0),L=oe(_,2),z=L[0],T=L[1],H=function(Ke){Ke.width&&I(Ke.width)},W=oe(l,3),K=W[0],G=W[1],U=W[2],Z=f.useState(0),Q=oe(Z,2),Y=Q[0],ee=Q[1];f.useEffect(function(){ee(10)},[K]),f.useEffect(function(){if(o&&D.current){var He,Ke=((He=O.current)===null||He===void 0?void 0:He.offsetWidth)||0,tt=D.current.getBoundingClientRect();if(!tt.height||tt.right<0){ee(function(Fe){return Math.max(0,Fe-1)});return}var qe=($?G-Ke:K)-tt.left;if(T(qe),N&&N<U){var We=$?tt.right-(G-Ke+N):K+Ke-tt.left-N,lt=Math.max(0,We);A(lt)}else A(0)}},[Y,$,N,K,G,U,o]);function ce(He){return He.filter(function(Ke){return Ke})}var me=f.useMemo(function(){return ce(ca(p))},[p]),we=r==="time"&&!me.length,se=f.useMemo(function(){return we?ce([x]):me},[we,me,x]),ge=we?x:me,Ee=f.useMemo(function(){return se.length?se.some(function(He){return y(He)}):!0},[se,y]),Te=function(){we&&b(x),w(),C()},Pe=f.createElement("div",{className:"".concat(E,"-panel-layout")},f.createElement(Hx,{prefixCls:E,presets:c,onClick:d,onHover:u}),f.createElement("div",null,f.createElement(zx,Oe({},e,{value:ge})),f.createElement(Ix,Oe({},e,{showNow:i?!1:a,invalid:Ee,onSubmit:Te}))));t&&(Pe=t(Pe));var he="".concat(k,"-container"),ke="marginLeft",de="marginRight",Re=f.createElement("div",{onMouseDown:v,tabIndex:-1,className:pe(he,"".concat(E,"-").concat(n,"-panel-container")),style:J(J({},$?de:ke,j),$?ke:de,"auto"),onFocus:g,onBlur:h},Pe);return o&&(Re=f.createElement("div",{onMouseDown:v,ref:D,className:pe("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},f.createElement("div",{ref:O,className:"".concat(E,"-range-arrow"),style:{left:z}}),f.createElement(Cp,{onResize:H},Re))),Re}function $g(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,d=e.onFocus,g=e.onBlur,h=e.onInputChange,v=e.onInvalid,m=e.open,p=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,w=e.name,C=e.autoComplete,S=e.id,E=e.value,k=e.invalid,$=e.placeholder,O=e.disabled,D=e.activeIndex,P=e.allHelp,R=e.picker,N=function(z,T){var H=a.locale.parse(o.locale,z,[T]);return H&&a.isValidate(H)?H:null},I=n[0],M=f.useCallback(function(L){return rn(L,{locale:o,format:I,generateConfig:a})},[o,a,I]),F=f.useMemo(function(){return E.map(M)},[E,M]),j=f.useMemo(function(){var L=R==="time"?8:10,z=typeof I=="function"?I(a.getNow()).length:I.length;return Math.max(L,z)+2},[I,R,a]),A=function(z){for(var T=0;T<n.length;T+=1){var H=n[T];if(typeof H=="string"){var W=N(z,H);if(W)return W}}return!1},_=function(z){function T(K){return z!==void 0?K[z]:K}var H=la(e,{aria:!0,data:!0}),W=ye(ye({},H),{},{format:r,validateFormat:function(G){return!!A(G)},preserveInvalidOnBlur:i,readOnly:s,required:l,"aria-required":c,name:w,autoComplete:C,size:j,id:T(S),value:T(F)||"",invalid:T(k),placeholder:T($),active:D===z,helped:P||x&&D===z,disabled:T(O),onFocus:function(G){d(G,z)},onBlur:function(G){g(G,z)},onSubmit:u,onChange:function(G){h();var U=A(G);if(U){v(!1,z),y(U,z);return}v(!!G,z)},onHelp:function(){p(!0,{index:z})},onKeyDown:function(G){var U=!1;if(b==null||b(G,function(){U=!0}),!G.defaultPrevented&&!U)switch(G.key){case"Escape":p(!1,{index:z});break;case"Enter":m||p(!0);break}}},t==null?void 0:t({valueTexts:F}));return Object.keys(W).forEach(function(K){W[K]===void 0&&delete W[K]}),W};return[_,M]}var Vx=["onMouseEnter","onMouseLeave"];function Eg(e){return f.useMemo(function(){return gs(e,Vx)},[e])}var Kx=["icon","type"],Wx=["onClear"];function bs(e){var t=e.icon,n=e.type,r=Nt(e,Kx),a=f.useContext(ar),o=a.prefixCls;return t?f.createElement("span",Oe({className:"".concat(o,"-").concat(n)},r),t):null}function _l(e){var t=e.onClear,n=Nt(e,Wx);return f.createElement(bs,Oe({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var Ws=["YYYY","MM","DD","HH","mm","ss","SSS"],Md="\u9867",qx=(function(){function e(t){aa(this,e),J(this,"format",void 0),J(this,"maskFormat",void 0),J(this,"cells",void 0),J(this,"maskCells",void 0),this.format=t;var n=Ws.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Md.repeat(s.length)});var a=new RegExp("(".concat(Ws.join("|"),")")),o=(t.split(a)||[]).filter(function(s){return s}),i=0;this.cells=o.map(function(s){var l=Ws.includes(s),c=i,u=i+s.length;return i=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return oa(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,o=r.end;return[a||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],o=n[r];if(!o||a!==Md&&a!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,o=0;o<this.maskCells.length;o+=1){var i=this.maskCells[o],s=i.start,l=i.end;if(n>=s&&n<=l)return o;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c<r&&(r=c,a=o)}return a}}]),e})();function Ux(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var Yx=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Bl=f.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,o=e.suffixIcon,i=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,d=e.onSubmit,g=e.onKeyDown,h=e.preserveInvalidOnBlur,v=h===void 0?!1:h,m=e.invalid,p=e.clearIcon,b=Nt(e,Yx),y=e.value,x=e.onFocus,w=e.onBlur,C=e.onMouseUp,S=f.useContext(ar),E=S.prefixCls,k=S.input,$=k===void 0?"input":k,O="".concat(E,"-input"),D=f.useState(!1),P=oe(D,2),R=P[0],N=P[1],I=f.useState(y),M=oe(I,2),F=M[0],j=M[1],A=f.useState(""),_=oe(A,2),L=_[0],z=_[1],T=f.useState(null),H=oe(T,2),W=H[0],K=H[1],G=f.useState(null),U=oe(G,2),Z=U[0],Q=U[1],Y=F||"";f.useEffect(function(){j(y)},[y]);var ee=f.useRef(),ce=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:ee.current,inputElement:ce.current,focus:function(Ce){ce.current.focus(Ce)},blur:function(){ce.current.blur()}}});var me=f.useMemo(function(){return new qx(i||"")},[i]),we=f.useMemo(function(){return c?[0,0]:me.getSelection(W)},[me,W,c]),se=oe(we,2),ge=se[0],Ee=se[1],Te=function(Ce){Ce&&Ce!==i&&Ce!==y&&u()},Pe=Ut(function(Le){s(Le)&&l(Le),j(Le),Te(Le)}),he=function(Ce){if(!i){var $e=Ce.target.value;Te($e),j($e),l($e)}},ke=function(Ce){var $e=Ce.clipboardData.getData("text");s($e)&&Pe($e)},de=f.useRef(!1),Re=function(){de.current=!0},He=function(Ce){var $e=Ce.target,ue=$e.selectionStart,ie=me.getMaskCellIndex(ue);K(ie),Q({}),C==null||C(Ce),de.current=!1},Ke=function(Ce){N(!0),K(0),z(""),x(Ce)},tt=function(Ce){w(Ce)},qe=function(Ce){N(!1),tt(Ce)};bu(n,function(){!n&&!v&&j(y)});var We=function(Ce){Ce.key==="Enter"&&s(Y)&&d(),g==null||g(Ce)},lt=function(Ce){We(Ce);var $e=Ce.key,ue=null,ie=null,xe=Ee-ge,_e=i.slice(ge,Ee),ze=function(Ue){K(function(Ye){var bt=Ye+Ue;return bt=Math.max(bt,0),bt=Math.min(bt,me.size()-1),bt})},st=function(Ue){var Ye=Ux(_e),bt=oe(Ye,3),At=bt[0],Ht=bt[1],Ft=bt[2],Yt=Y.slice(ge,Ee),Tt=Number(Yt);if(isNaN(Tt))return String(Ft||(Ue>0?At:Ht));var tn=Tt+Ue,un=Ht-At+1;return String(At+(un+tn-At)%un)};switch($e){case"Backspace":case"Delete":ue="",ie=_e;break;case"ArrowLeft":ue="",ze(-1);break;case"ArrowRight":ue="",ze(1);break;case"ArrowUp":ue="",ie=st(1);break;case"ArrowDown":ue="",ie=st(-1);break;default:isNaN(Number($e))||(ue=L+$e,ie=ue);break}if(ue!==null&&(z(ue),ue.length>=xe&&(ze(1),z(""))),ie!==null){var Ne=Y.slice(0,ge)+gu(ie,xe)+Y.slice(Ee);Pe(Ne.slice(0,i.length))}Q({})},Fe=f.useRef();Rn(function(){if(!(!R||!i||de.current)){if(!me.match(Y)){Pe(i);return}return ce.current.setSelectionRange(ge,Ee),Fe.current=zt(function(){ce.current.setSelectionRange(ge,Ee)}),function(){zt.cancel(Fe.current)}}},[me,i,R,Y,W,ge,Ee,Z,Pe]);var ae=i?{onFocus:Ke,onBlur:qe,onKeyDown:lt,onMouseDown:Re,onMouseUp:He,onPaste:ke}:{};return f.createElement("div",{ref:ee,className:pe(O,J(J({},"".concat(O,"-active"),n&&a),"".concat(O,"-placeholder"),c))},f.createElement($,Oe({ref:ce,"aria-invalid":m,autoComplete:"off"},b,{onKeyDown:We,onBlur:tt},ae,{value:Y,onChange:he})),f.createElement(bs,{type:"suffix",icon:o}),p)}),Gx=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Xx=["index"];function Jx(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,g=e.style,h=e.onClick,v=e.onClear,m=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var p=e.disabled,b=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,S=e.tabIndex,E=Nt(e,Gx),k=y==="rtl",$=f.useContext(ar),O=$.prefixCls,D=f.useMemo(function(){if(typeof n=="string")return[n];var Z=n||{};return[Z.start,Z.end]},[n]),P=f.useRef(),R=f.useRef(),N=f.useRef(),I=function(Q){var Y;return(Y=[R,N][Q])===null||Y===void 0?void 0:Y.current};f.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(Q){if(mn(Q)==="object"){var Y,ee=Q||{},ce=ee.index,me=ce===void 0?0:ce,we=Nt(ee,Xx);(Y=I(me))===null||Y===void 0||Y.focus(we)}else{var se;(se=I(Q??0))===null||se===void 0||se.focus()}},blur:function(){var Q,Y;(Q=I(0))===null||Q===void 0||Q.blur(),(Y=I(1))===null||Y===void 0||Y.blur()}}});var M=Eg(E),F=f.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),j=$g(ye(ye({},e),{},{id:D,placeholder:F})),A=oe(j,1),_=A[0],L=f.useState({position:"absolute",width:0}),z=oe(L,2),T=z[0],H=z[1],W=Ut(function(){var Z=I(l);if(Z){var Q=Z.nativeElement.getBoundingClientRect(),Y=P.current.getBoundingClientRect(),ee=Q.left-Y.left;H(function(ce){return ye(ye({},ce),{},{width:Q.width,left:ee})}),x([Q.left,Q.right,Y.width])}});f.useEffect(function(){W()},[l]);var K=a&&(m[0]&&!p[0]||m[1]&&!p[1]),G=C&&!p[0],U=C&&!G&&!p[1];return f.createElement(Cp,{onResize:W},f.createElement("div",Oe({},M,{className:pe(O,"".concat(O,"-range"),J(J(J(J({},"".concat(O,"-focused"),c),"".concat(O,"-disabled"),p.every(function(Z){return Z})),"".concat(O,"-invalid"),b.some(function(Z){return Z})),"".concat(O,"-rtl"),k),d),style:g,ref:P,onClick:h,onMouseDown:function(Q){var Y=Q.target;Y!==R.current.inputElement&&Y!==N.current.inputElement&&Q.preventDefault(),w==null||w(Q)}}),r&&f.createElement("div",{className:"".concat(O,"-prefix")},r),f.createElement(Bl,Oe({ref:R},_(0),{autoFocus:G,tabIndex:S,"date-range":"start"})),f.createElement("div",{className:"".concat(O,"-range-separator")},s),f.createElement(Bl,Oe({ref:N},_(1),{autoFocus:U,tabIndex:S,"date-range":"end"})),f.createElement("div",{className:"".concat(O,"-active-bar"),style:T}),f.createElement(bs,{type:"suffix",icon:o}),K&&f.createElement(_l,{icon:a,onClear:v})))}var Qx=f.forwardRef(Jx);function Fd(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function ti(e){return e===1?"end":"start"}function Zx(e,t){var n=cg(e,function(){var St=e.disabled,ut=e.allowEmpty,Ct=Fd(St,!1),Wt=Fd(ut,!1);return{disabled:Ct,allowEmpty:Wt}}),r=oe(n,6),a=r[0],o=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=a.prefixCls,d=a.styles,g=a.classNames,h=a.defaultValue,v=a.value,m=a.needConfirm,p=a.onKeyDown,b=a.disabled,y=a.allowEmpty,x=a.disabledDate,w=a.minDate,C=a.maxDate,S=a.defaultOpen,E=a.open,k=a.onOpenChange,$=a.locale,O=a.generateConfig,D=a.picker,P=a.showNow,R=a.showToday,N=a.showTime,I=a.mode,M=a.onPanelChange,F=a.onCalendarChange,j=a.onOk,A=a.defaultPickerValue,_=a.pickerValue,L=a.onPickerValueChange,z=a.inputReadOnly,T=a.suffixIcon,H=a.onFocus,W=a.onBlur,K=a.presets,G=a.ranges,U=a.components,Z=a.cellRender,Q=a.dateRender,Y=a.monthCellRender,ee=a.onClick,ce=dg(t),me=ug(E,S,b,k),we=oe(me,2),se=we[0],ge=we[1],Ee=function(ut,Ct){(b.some(function(Wt){return!Wt})||!ut)&&ge(ut,Ct)},Te=yg(O,$,s,!0,!1,h,v,F,j),Pe=oe(Te,5),he=Pe[0],ke=Pe[1],de=Pe[2],Re=Pe[3],He=Pe[4],Ke=de(),tt=mg(b,y,se),qe=oe(tt,9),We=qe[0],lt=qe[1],Fe=qe[2],ae=qe[3],Le=qe[4],Ce=qe[5],$e=qe[6],ue=qe[7],ie=qe[8],xe=function(ut,Ct){lt(!0),H==null||H(ut,{range:ti(Ct??ae)})},_e=function(ut,Ct){lt(!1),W==null||W(ut,{range:ti(Ct??ae)})},ze=f.useMemo(function(){if(!N)return null;var St=N.disabledTime,ut=St?function(Ct){var Wt=ti(ae),fn=Qp(Ke,$e,ae);return St(Ct,Wt,{from:fn})}:void 0;return ye(ye({},N),{},{disabledTime:ut})},[N,ae,Ke,$e]),st=an([D,D],{value:I}),Ne=oe(st,2),Ie=Ne[0],Ue=Ne[1],Ye=Ie[ae]||D,bt=Ye==="date"&&ze?"datetime":Ye,At=bt===D&&bt!=="time",Ht=xg(D,Ye,P,R,!0),Ft=bg(a,he,ke,de,Re,b,s,We,se,c),Yt=oe(Ft,2),Tt=Yt[0],tn=Yt[1],un=Sx(Ke,b,$e,O,$,x),Pt=eg(Ke,c,y),Tn=oe(Pt,2),q=Tn[0],V=Tn[1],ne=pg(O,$,Ke,Ie,se,ae,o,At,A,_,ze==null?void 0:ze.defaultOpenValue,L,w,C),le=oe(ne,2),Se=le[0],Ae=le[1],ct=Ut(function(St,ut,Ct){var Wt=co(Ie,ae,ut);if((Wt[0]!==Ie[0]||Wt[1]!==Ie[1])&&Ue(Wt),M&&Ct!==!1){var fn=rt(Ke);St&&(fn[ae]=St),M(fn,Wt)}}),Qe=function(ut,Ct){return co(Ke,Ct,ut)},it=function(ut,Ct){var Wt=Ke;ut&&(Wt=Qe(ut,ae)),ue(ae);var fn=Ce(Wt);Re(Wt),Tt(ae,fn===null),fn===null?Ee(!1,{force:!0}):Ct||ce.current.focus({index:fn})},gt=function(ut){var Ct,Wt=ut.target.getRootNode();if(!ce.current.nativeElement.contains((Ct=Wt.activeElement)!==null&&Ct!==void 0?Ct:document.activeElement)){var fn=b.findIndex(function(S0){return!S0});fn>=0&&ce.current.focus({index:fn})}Ee(!0),ee==null||ee(ut)},Ve=function(){tn(null),Ee(!1,{force:!0})},ht=f.useState(null),Ze=oe(ht,2),kt=Ze[0],je=Ze[1],De=f.useState(null),Me=oe(De,2),Be=Me[0],et=Me[1],yt=f.useMemo(function(){return Be||Ke},[Ke,Be]);f.useEffect(function(){se||et(null)},[se]);var vt=f.useState([0,0,0]),_t=oe(vt,2),jt=_t[0],nn=_t[1],Dn=fg(K,G),Mn=function(ut){et(ut),je("preset")},Gn=function(ut){var Ct=tn(ut);Ct&&Ee(!1,{force:!0})},xr=function(ut){it(ut)},Ka=function(ut){et(ut?Qe(ut,ae):null),je("cell")},Wa=function(ut){Ee(!0),xe(ut)},qa=function(){Fe("panel")},Ua=function(ut){var Ct=co(Ke,ae,ut);Re(Ct),!m&&!i&&o===bt&&it(ut)},Bt=function(){Ee(!1)},It=vu(Z,Q,Y,ti(ae)),Dt=Ke[ae]||null,dn=Ut(function(St){return c(St,{activeIndex:ae})}),Ge=f.useMemo(function(){var St=la(a,!1),ut=Vn(a,[].concat(rt(Object.keys(St)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ut},[a]),nt=f.createElement(Sg,Oe({},Ge,{showNow:Ht,showTime:ze,range:!0,multiplePanel:At,activeInfo:jt,disabledDate:un,onFocus:Wa,onBlur:_e,onPanelMouseDown:qa,picker:D,mode:Ye,internalMode:bt,onPanelChange:ct,format:l,value:Dt,isInvalid:dn,onChange:null,onSelect:Ua,pickerValue:Se,defaultOpenValue:ca(N==null?void 0:N.defaultOpenValue)[ae],onPickerValueChange:Ae,hoverValue:yt,onHover:Ka,needConfirm:m,onSubmit:it,onOk:He,presets:Dn,onPresetHover:Mn,onPresetSubmit:Gn,onNow:xr,cellRender:It})),sn=function(ut,Ct){var Wt=Qe(ut,Ct);Re(Wt)},Kn=function(){Fe("input")},Ar=function(ut,Ct){var Wt=$e.length,fn=$e[Wt-1];if(Wt&&fn!==Ct&&m&&!y[fn]&&!ie(fn)&&Ke[fn]){ce.current.focus({index:fn});return}Fe("input"),Ee(!0,{inherit:!0}),ae!==Ct&&se&&!m&&i&&it(null,!0),Le(Ct),xe(ut,Ct)},Yo=function(ut,Ct){if(Ee(!1),!m&&Fe()==="input"){var Wt=Ce(Ke);Tt(ae,Wt===null)}_e(ut,Ct)},Tr=function(ut,Ct){ut.key==="Tab"&&it(null,!0),p==null||p(ut,Ct)},Ya=f.useMemo(function(){return{prefixCls:u,locale:$,generateConfig:O,button:U.button,input:U.input}},[u,$,O,U.button,U.input]);return Rn(function(){se&&ae!==void 0&&ct(null,D,!1)},[se,ae,D]),Rn(function(){var St=Fe();!se&&St==="input"&&(Ee(!1),it(null,!0)),!se&&i&&!m&&St==="panel"&&(Ee(!0),it())},[se]),f.createElement(ar.Provider,{value:Ya},f.createElement(Xp,Oe({},Zp(a),{popupElement:nt,popupStyle:d.popup,popupClassName:g.popup,visible:se,onClose:Bt,range:!0}),f.createElement(Qx,Oe({},a,{ref:ce,suffixIcon:T,activeIndex:We||se?ae:null,activeHelp:!!Be,allHelp:!!Be&&kt==="preset",focused:We,onFocus:Ar,onBlur:Yo,onKeyDown:Tr,onSubmit:it,value:yt,maskFormat:l,onChange:sn,onInputChange:Kn,format:s,inputReadOnly:z,disabled:b,open:se,onOpenChange:Ee,onClick:gt,onClear:Ve,invalid:q,onInvalid:V,onActiveInfo:nn}))))}var e1=f.forwardRef(Zx);function t1(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"\xD7":a,i=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),g="".concat(d,"-overflow");function h(p,b){return f.createElement("span",{className:pe("".concat(d,"-item")),title:typeof p=="string"?p:null},f.createElement("span",{className:"".concat(d,"-item-content")},p),!s&&b&&f.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:b,className:"".concat(d,"-item-remove")},o))}function v(p){var b=i(p),y=function(w){w&&w.stopPropagation(),r(p)};return h(b,y)}function m(p){var b="+ ".concat(p.length," ...");return h(b)}return f.createElement("div",{className:u},f.createElement($a,{prefixCls:g,data:n,renderItem:v,renderRest:m,itemKey:function(b){return i(b)},maxCount:l}),!n.length&&f.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var n1=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function r1(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,g=e.onClick,h=e.onClear,v=e.internalPicker,m=e.value,p=e.onChange,b=e.onSubmit;e.onInputChange;var y=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,C=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,$=e.tabIndex,O=e.removeIcon,D=Nt(e,n1),P=S==="rtl",R=f.useContext(ar),N=R.prefixCls,I=f.useRef(),M=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:I.current,focus:function(G){var U;(U=M.current)===null||U===void 0||U.focus(G)},blur:function(){var G;(G=M.current)===null||G===void 0||G.blur()}}});var F=Eg(D),j=function(G){p([G])},A=function(G){var U=m.filter(function(Z){return Z&&!Sn(l,s,Z,G,v)});p(U),n||b()},_=$g(ye(ye({},e),{},{onChange:j}),function(K){var G=K.valueTexts;return{value:G[0]||"",active:i}}),L=oe(_,2),z=L[0],T=L[1],H=!!(a&&m.length&&!w),W=y?f.createElement(f.Fragment,null,f.createElement(t1,{prefixCls:N,value:m,onRemove:A,formatDate:T,maxTagCount:x,disabled:w,removeIcon:O,placeholder:c}),f.createElement("input",{className:"".concat(N,"-multiple-input"),value:m.map(T).join(","),ref:M,readOnly:!0,autoFocus:k,tabIndex:$}),f.createElement(bs,{type:"suffix",icon:o}),H&&f.createElement(_l,{icon:a,onClear:h})):f.createElement(Bl,Oe({ref:M},z(),{autoFocus:k,tabIndex:$,suffixIcon:o,clearIcon:H&&f.createElement(_l,{icon:a,onClear:h}),showActiveCls:!1}));return f.createElement("div",Oe({},F,{className:pe(N,J(J(J(J(J({},"".concat(N,"-multiple"),y),"".concat(N,"-focused"),i),"".concat(N,"-disabled"),w),"".concat(N,"-invalid"),C),"".concat(N,"-rtl"),P),u),style:d,ref:I,onClick:g,onMouseDown:function(G){var U,Z=G.target;Z!==((U=M.current)===null||U===void 0?void 0:U.inputElement)&&G.preventDefault(),E==null||E(G)}}),r&&f.createElement("div",{className:"".concat(N,"-prefix")},r),W)}var a1=f.forwardRef(r1);function o1(e,t){var n=cg(e),r=oe(n,6),a=r[0],o=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=a,d=u.prefixCls,g=u.styles,h=u.classNames,v=u.order,m=u.defaultValue,p=u.value,b=u.needConfirm,y=u.onChange,x=u.onKeyDown,w=u.disabled,C=u.disabledDate,S=u.minDate,E=u.maxDate,k=u.defaultOpen,$=u.open,O=u.onOpenChange,D=u.locale,P=u.generateConfig,R=u.picker,N=u.showNow,I=u.showToday,M=u.showTime,F=u.mode,j=u.onPanelChange,A=u.onCalendarChange,_=u.onOk,L=u.multiple,z=u.defaultPickerValue,T=u.pickerValue,H=u.onPickerValueChange,W=u.inputReadOnly,K=u.suffixIcon,G=u.removeIcon,U=u.onFocus,Z=u.onBlur,Q=u.presets,Y=u.components,ee=u.cellRender,ce=u.dateRender,me=u.monthCellRender,we=u.onClick,se=dg(t);function ge(Ge){return Ge===null?null:L?Ge:Ge[0]}var Ee=Cg(P,D,o),Te=ug($,k,[w],O),Pe=oe(Te,2),he=Pe[0],ke=Pe[1],de=function(nt,sn,Kn){if(A){var Ar=ye({},Kn);delete Ar.range,A(ge(nt),ge(sn),Ar)}},Re=function(nt){_==null||_(ge(nt))},He=yg(P,D,s,!1,v,m,p,de,Re),Ke=oe(He,5),tt=Ke[0],qe=Ke[1],We=Ke[2],lt=Ke[3],Fe=Ke[4],ae=We(),Le=mg([w]),Ce=oe(Le,4),$e=Ce[0],ue=Ce[1],ie=Ce[2],xe=Ce[3],_e=function(nt){ue(!0),U==null||U(nt,{})},ze=function(nt){ue(!1),Z==null||Z(nt,{})},st=an(R,{value:F}),Ne=oe(st,2),Ie=Ne[0],Ue=Ne[1],Ye=Ie==="date"&&M?"datetime":Ie,bt=xg(R,Ie,N,I),At=y&&function(Ge,nt){y(ge(Ge),ge(nt))},Ht=bg(ye(ye({},a),{},{onChange:At}),tt,qe,We,lt,[],s,$e,he,c),Ft=oe(Ht,2),Yt=Ft[1],Tt=eg(ae,c),tn=oe(Tt,2),un=tn[0],Pt=tn[1],Tn=f.useMemo(function(){return un.some(function(Ge){return Ge})},[un]),q=function(nt,sn){if(H){var Kn=ye(ye({},sn),{},{mode:sn.mode[0]});delete Kn.range,H(nt[0],Kn)}},V=pg(P,D,ae,[Ie],he,xe,o,!1,z,T,ca(M==null?void 0:M.defaultOpenValue),q,S,E),ne=oe(V,2),le=ne[0],Se=ne[1],Ae=Ut(function(Ge,nt,sn){if(Ue(nt),j&&sn!==!1){var Kn=Ge||ae[ae.length-1];j(Kn,nt)}}),ct=function(){Yt(We()),ke(!1,{force:!0})},Qe=function(nt){!w&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),ke(!0),we==null||we(nt)},it=function(){Yt(null),ke(!1,{force:!0})},gt=f.useState(null),Ve=oe(gt,2),ht=Ve[0],Ze=Ve[1],kt=f.useState(null),je=oe(kt,2),De=je[0],Me=je[1],Be=f.useMemo(function(){var Ge=[De].concat(rt(ae)).filter(function(nt){return nt});return L?Ge:Ge.slice(0,1)},[ae,De,L]),et=f.useMemo(function(){return!L&&De?[De]:ae.filter(function(Ge){return Ge})},[ae,De,L]);f.useEffect(function(){he||Me(null)},[he]);var yt=fg(Q),vt=function(nt){Me(nt),Ze("preset")},_t=function(nt){var sn=L?Ee(We(),nt):[nt],Kn=Yt(sn);Kn&&!L&&ke(!1,{force:!0})},jt=function(nt){_t(nt)},nn=function(nt){Me(nt),Ze("cell")},Dn=function(nt){ke(!0),_e(nt)},Mn=function(nt){if(ie("panel"),!(L&&Ye!==R)){var sn=L?Ee(We(),nt):[nt];lt(sn),!b&&!i&&o===Ye&&ct()}},Gn=function(){ke(!1)},xr=vu(ee,ce,me),Ka=f.useMemo(function(){var Ge=la(a,!1),nt=Vn(a,[].concat(rt(Object.keys(Ge)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ye(ye({},nt),{},{multiple:a.multiple})},[a]),Wa=f.createElement(Sg,Oe({},Ka,{showNow:bt,showTime:M,disabledDate:C,onFocus:Dn,onBlur:ze,picker:R,mode:Ie,internalMode:Ye,onPanelChange:Ae,format:l,value:ae,isInvalid:c,onChange:null,onSelect:Mn,pickerValue:le,defaultOpenValue:M==null?void 0:M.defaultOpenValue,onPickerValueChange:Se,hoverValue:Be,onHover:nn,needConfirm:b,onSubmit:ct,onOk:Fe,presets:yt,onPresetHover:vt,onPresetSubmit:_t,onNow:jt,cellRender:xr})),qa=function(nt){lt(nt)},Ua=function(){ie("input")},Bt=function(nt){ie("input"),ke(!0,{inherit:!0}),_e(nt)},It=function(nt){ke(!1),ze(nt)},Dt=function(nt,sn){nt.key==="Tab"&&ct(),x==null||x(nt,sn)},dn=f.useMemo(function(){return{prefixCls:d,locale:D,generateConfig:P,button:Y.button,input:Y.input}},[d,D,P,Y.button,Y.input]);return Rn(function(){he&&xe!==void 0&&Ae(null,R,!1)},[he,xe,R]),Rn(function(){var Ge=ie();!he&&Ge==="input"&&(ke(!1),ct()),!he&&i&&!b&&Ge==="panel"&&ct()},[he]),f.createElement(ar.Provider,{value:dn},f.createElement(Xp,Oe({},Zp(a),{popupElement:Wa,popupStyle:g.popup,popupClassName:h.popup,visible:he,onClose:Gn}),f.createElement(a1,Oe({},a,{ref:se,suffixIcon:K,removeIcon:G,activeHelp:!!De,allHelp:!!De&&ht==="preset",focused:$e,onFocus:Bt,onBlur:It,onKeyDown:Dt,onSubmit:ct,value:et,maskFormat:l,onChange:qa,onInputChange:Ua,internalPicker:o,format:s,inputReadOnly:W,disabled:w,open:he,onOpenChange:ke,onClick:Qe,onClear:it,invalid:Tn,onInvalid:function(nt){Pt(nt,0)}}))))}var i1=f.forwardRef(o1);const kg=f.createContext(null),s1=kg.Provider,Ig=f.createContext(null),l1=Ig.Provider;var c1=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],u1=jr(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,g=e.title,h=e.onChange,v=Nt(e,c1),m=wt(null),p=wt(null),b=an(c,{value:i}),y=oe(b,2),x=y[0],w=y[1];Do(t,function(){return{focus:function(k){var $;($=m.current)===null||$===void 0||$.focus(k)},blur:function(){var k;(k=m.current)===null||k===void 0||k.blur()},input:m.current,nativeElement:p.current}});var C=pe(r,a,J(J({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),S=function(k){s||("checked"in e||w(k.target.checked),h==null||h({target:ye(ye({},e),{},{type:d,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return f.createElement("span",{className:C,title:g,style:o,ref:p},f.createElement("input",Oe({},v,{className:"".concat(r,"-input"),ref:m,onChange:S,disabled:s,checked:!!x,type:d})),f.createElement("span",{className:"".concat(r,"-inner")}))});function d1(e){const t=be.useRef(null),n=()=>{zt.cancel(t.current),t.current=null};return[()=>{n(),t.current=zt(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const f1=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},pn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},m1=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:g,paddingXS:h,dotColorDisabled:v,lineType:m,radioColor:p,radioBgColor:b,calc:y}=e,x=`${t}-inner`,C=y(a).sub(y(4).mul(2)),S=y(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},pn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${fe(u)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
28
|
+
&:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Fo(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:y(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(C).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},p1=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:g,controlHeightLG:h,controlHeightSM:v,paddingXS:m,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:k,colorPrimary:$,colorPrimaryHover:O,colorPrimaryActive:D,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:R,buttonSolidCheckedActiveBg:N,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:fe(I(n).sub(I(a).mul(2)).equal()),background:d,border:`${fe(a)} ${o} ${i}`,borderBlockStartWidth:I(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(a).mul(-1).equal(),insetInlineStart:I(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${fe(a)} ${o} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:g,lineHeight:fe(I(h).sub(I(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:v,paddingInline:I(m).sub(a).equal(),paddingBlock:0,lineHeight:fe(I(v).sub(I(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Fo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:P,borderColor:P,"&:hover":{color:w,background:R,borderColor:R},"&:active":{color:w,background:N,borderColor:N}},"&-disabled":{color:C,backgroundColor:S,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},g1=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:g,colorPrimaryActive:h,colorWhite:v}=e,m=4,p=o,b=t?p-m*2:p-(m+a)*2;return{radioSize:p,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?d:v,radioBgColor:t?s:d}},Og=rr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${fe(n)} ${t}`,o=Hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[f1(o),m1(o),p1(o)]},g1,{unitless:{radioSize:!0,dotSize:!0}});var v1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const h1=(e,t)=>{var n,r;const a=f.useContext(kg),o=f.useContext(Ig),{getPrefixCls:i,direction:s,radio:l}=f.useContext(cn),c=f.useRef(null),u=Mo(t,c),{isFormItemInput:d}=f.useContext(Po),g=M=>{var F,j;(F=e.onChange)===null||F===void 0||F.call(e,M),(j=a==null?void 0:a.onChange)===null||j===void 0||j.call(a,M)},{prefixCls:h,className:v,rootClassName:m,children:p,style:b,title:y}=e,x=v1(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",h),C=((a==null?void 0:a.optionType)||o)==="button",S=C?`${w}-button`:w,E=ia(w),[k,$,O]=Og(w,E),D=Object.assign({},x),P=f.useContext(Fa);a&&(D.name=a.name,D.onChange=g,D.checked=e.value===a.value,D.disabled=(n=D.disabled)!==null&&n!==void 0?n:a.disabled),D.disabled=(r=D.disabled)!==null&&r!==void 0?r:P;const R=pe(`${S}-wrapper`,{[`${S}-wrapper-checked`]:D.checked,[`${S}-wrapper-disabled`]:D.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:d,[`${S}-wrapper-block`]:!!(a!=null&&a.block)},l==null?void 0:l.className,v,m,$,O,E),[N,I]=d1(D.onClick);return k(f.createElement(q0,{component:"Radio",disabled:D.disabled},f.createElement("label",{className:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:N},f.createElement(u1,Object.assign({},D,{className:pe(D.className,{[U0]:!C}),type:"radio",prefixCls:S,ref:u,onClick:I})),p!==void 0?f.createElement("span",{className:`${S}-label`},p):null)))},Vi=f.forwardRef(h1),y1=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(cn),{name:a}=f.useContext(Po),o=Y0(z0(a)),{prefixCls:i,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:g,size:h,style:v,id:m,optionType:p,name:b=o,defaultValue:y,value:x,block:w=!1,onChange:C,onMouseEnter:S,onMouseLeave:E,onFocus:k,onBlur:$}=e,[O,D]=an(y,{value:x}),P=f.useCallback(T=>{const H=O,W=T.target.value;"value"in e||D(W),W!==H&&(C==null||C(T))},[O,D,C]),R=n("radio",i),N=`${R}-group`,I=ia(R),[M,F,j]=Og(R,I);let A=g;c&&c.length>0&&(A=c.map(T=>typeof T=="string"||typeof T=="number"?f.createElement(Vi,{key:T.toString(),prefixCls:R,disabled:d,value:T,checked:O===T},T):f.createElement(Vi,{key:`radio-group-value-options-${T.value}`,prefixCls:R,disabled:T.disabled||d,value:T.value,checked:O===T.value,title:T.title,style:T.style,className:T.className,id:T.id,required:T.required},T.label)));const _=is(h),L=pe(N,`${N}-${u}`,{[`${N}-${_}`]:_,[`${N}-rtl`]:r==="rtl",[`${N}-block`]:w},s,l,F,j,I),z=f.useMemo(()=>({onChange:P,value:O,disabled:d,name:b,optionType:p,block:w}),[P,O,d,b,p,w]);return M(f.createElement("div",Object.assign({},la(e,{aria:!0,data:!0}),{className:L,style:v,onMouseEnter:S,onMouseLeave:E,onFocus:k,onBlur:$,id:m,ref:t}),f.createElement(s1,{value:z},A)))}),b1=f.memo(y1);var x1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const C1=(e,t)=>{const{getPrefixCls:n}=f.useContext(cn),{prefixCls:r}=e,a=x1(e,["prefixCls"]),o=n("radio",r);return f.createElement(l1,{value:"button"},f.createElement(Vi,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},w1=f.forwardRef(C1),xs=Vi;xs.Button=w1;xs.Group=b1;xs.__ANT_RADIO=!0;const qs=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=dy(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:fe(o.itemLineHeight)}}}]},S1=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Hn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Hn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[qs(a,"small"),qs(e),qs(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},uy(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},$1=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:g,cellBgDisabled:h,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:fe(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
29
|
+
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${fe(s)} ${l} ${c}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
|
|
30
|
+
&-in-view${t}-range-start,
|
|
31
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
|
32
|
+
&-in-view${t}-range-start,
|
|
33
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:v}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:g}}},E1=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:g,borderRadiusLG:h,colorPrimary:v,colorTextHeading:m,colorSplit:p,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:x,motionDurationMid:w,colorIconHover:C,fontWeightStrong:S,cellHeight:E,pickerCellPaddingVertical:k,colorTextDisabled:$,colorText:O,fontSize:D,motionDurationSlow:P,withoutTimeCellHeight:R,pickerQuarterPanelContentHeight:N,borderRadiusSM:I,colorTextLightSolid:M,cellHoverBg:F,timeColumnHeight:j,timeColumnWidth:A,timeCellHeight:_,controlItemBgActive:L,marginXXS:z,pickerDatePanelPaddingHorizontal:T,pickerControlIconMargin:H}=e,W=e.calc(i).mul(7).add(e.calc(T).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:v},"&-rtl":{[`${t}-prev-icon,
|
|
34
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
35
|
+
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${fe(l)}`,color:m,borderBottom:`${fe(d)} ${g} ${p}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:fe(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:D,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:fe(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:v}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(k).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${fe(k)} 0`,color:$,cursor:"pointer","&-in-view":{color:O}},$1(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(R).mul(4).equal()},[r]:{padding:`0 ${fe(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${fe(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${fe(l)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${fe(l)} ${fe(T)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:F},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new mr(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${fe(l)} ${fe(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${fe(d)} ${g} ${p}`},[`${t}-date-panel,
|
|
36
|
+
${t}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${t}-date-panel,
|
|
37
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:A,margin:`${fe(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${fe(_)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${fe(d)} ${g} ${p}`},"&-active":{background:new mr(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(z).mul(2)).equal(),height:_,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(_).div(2).equal(),color:O,lineHeight:fe(_),borderRadius:I,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:F}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},k1=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${fe(r)} ${c} ${u}`,"&-extra":{padding:`0 ${fe(a)}`,lineHeight:fe(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${fe(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:fe(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:fe(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},I1=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},O1=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,l=i*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(a-s,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new mr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new mr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},N1=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ip(e)),O1(e)),Dp(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),D1=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},sp(e)),lp(e)),cp(e)),up(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Us=(e,t)=>({padding:`${fe(e)} ${fe(t)}`}),M1=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},F1=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,fontSizeLG:g,inputFontSizeLG:h,fontSizeSM:v,inputFontSizeSM:m,controlHeightSM:p,paddingInlineSM:b,paddingXS:y,marginXS:x,colorIcon:w,lineWidthBold:C,colorPrimary:S,motionDurationSlow:E,zIndexPopup:k,paddingXXS:$,sizePopupArrow:O,colorBgElevated:D,borderRadiusLG:P,boxShadowSecondary:R,borderRadiusSM:N,colorSplit:I,cellHoverBg:M,presetsWidth:F,presetsMaxWidth:j,boxShadowPopoverArrow:A,fontHeight:_,lineHeightLG:L}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},pn(e)),Us(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},fp(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},Us(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??g,lineHeight:L}}),"&-small":Object.assign(Object.assign({},Us(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:m??v}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:u,fontSize:g,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:C,background:S,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${fe(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},pn(e)),E1(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
38
|
+
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
39
|
+
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
40
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
41
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
42
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Op},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
43
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
44
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
45
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Np},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
46
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:kp},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
47
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Ip},[`${n}-panel > ${n}-time-panel`]:{paddingTop:$},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${E} ease-out`},xy(e,D,A)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:D,borderRadius:P,boxShadow:R,transition:`margin ${E}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${fe(o)} ${i} ${I}`,li:Object.assign(Object.assign({},as),{borderRadius:N,paddingInline:y,paddingBlock:e.calc(p).sub(_).div(2).equal(),cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:x},"&:hover":{background:M}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${fe(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Ia(e,"slide-up"),Ia(e,"slide-down"),_i(e,"move-up"),_i(e,"move-down")]},Ng=rr("DatePicker",e=>{const t=Hn(dp(e),I1(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[k1(t),F1(t),D1(t),M1(t),S1(t),wp(e,{focusElCls:`${e.componentCls}-focused`})]},N1);function Fn(e,t){return e[t]}var P1=["children"];function Dg(e,t){return"".concat(e,"-").concat(t)}function j1(e){return e&&e.type&&e.type.isTreeNode}function Bo(e,t){return e??t}function Oa(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function Mg(e){function t(n){var r=ns(n);return r.map(function(a){if(!j1(a))return In(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,l=Nt(i,P1),c=ye({key:o},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(a){return a})}return t(e)}function Ys(e,t,n){var r=Oa(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(g,h){for(var v=Dg(d?d.pos:"0",h),m=Bo(g[o],v),p,b=0;b<a.length;b+=1){var y=a[b];if(g[y]!==void 0){p=g[y];break}}var x=Object.assign(Vn(g,[].concat(rt(a),[o,i])),{title:p,key:m,parent:d,pos:v,children:null,data:g,isStart:[].concat(rt(d?d.isStart:[]),[h===0]),isEnd:[].concat(rt(d?d.isEnd:[]),[h===u.length-1])});return l.push(x),t===!0||s.has(m)?x.children=c(g[i]||[],x):x.children=[],x})}return c(e),l}function R1(e,t,n){var r={};mn(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,o=a.childrenPropName,i=a.externalGetKey,s=a.fieldNames,l=Oa(s),c=l.key,u=l.children,d=o||u,g;i?typeof i=="string"?g=function(m){return m[i]}:typeof i=="function"&&(g=function(m){return i(m)}):g=function(m,p){return Bo(m[c],p)};function h(v,m,p,b){var y=v?v[d]:e,x=v?Dg(p.pos,m):"0",w=v?[].concat(rt(b),[v]):[];if(v){var C=g(v,x),S={node:v,index:m,pos:x,key:C,parentPos:p.node?p.pos:null,level:p.level+1,nodes:w};t(S)}y&&y.forEach(function(E,k){h(E,k,{node:v,pos:x,level:p?p.level+1:-1},w)})}h(null)}function Fg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},d={},g={posEntities:u,keyEntities:d};return n&&(g=n(g)||g),R1(e,function(h){var v=h.node,m=h.index,p=h.pos,b=h.key,y=h.parentPos,x=h.level,w=h.nodes,C={node:v,nodes:w,index:m,key:b,pos:p,level:x},S=Bo(b,p);u[p]=C,d[S]=C,C.parent=u[y],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,g)},{externalGetKey:c,childrenPropName:i,fieldNames:s}),a&&a(g),g}function uo(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=Fn(u,e),g={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return g}function Qt(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,g=e.active,h=e.eventKey,v=ye(ye({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:g,key:h});return"props"in v||Object.defineProperty(v,"props",{get:function(){return In(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}function Pg(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function A1(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function T1(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(d){var g=d.key,h=d.node,v=d.children,m=v===void 0?[]:v;a.has(g)&&!r(h)&&m.filter(function(p){return!r(p.node)}).forEach(function(p){a.add(p.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var g=d.parent,h=d.node;if(!(r(h)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(g.key);return}var v=!0,m=!1;(g.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var b=p.key,y=a.has(b);v&&!y&&(v=!1),!m&&(y||o.has(b))&&(m=!0)}),v&&a.add(g.key),m&&o.add(g.key),l.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Pg(o,a))}}function _1(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(g){var h=g.key,v=g.node,m=g.children,p=m===void 0?[]:m;!o.has(h)&&!i.has(h)&&!a(v)&&p.filter(function(b){return!a(b.node)}).forEach(function(b){o.delete(b.key)})})}i=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(g){var h=g.parent,v=g.node;if(!(a(v)||!g.parent||c.has(g.parent.key))){if(a(g.parent.node)){c.add(h.key);return}var m=!0,p=!1;(h.children||[]).filter(function(b){return!a(b.node)}).forEach(function(b){var y=b.key,x=o.has(y);m&&!x&&(m=!1),!p&&(x||i.has(y))&&(p=!0)}),m||o.delete(h.key),p&&i.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Pg(i,o))}}function Gs(e,t,n,r){var a=[],o;o=A1;var i=new Set(e.filter(function(u){var d=!!Fn(n,u);return d||a.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],g=d.level,h=s.get(g);h||(h=new Set,s.set(g,h)),h.add(d),l=Math.max(l,g)}),In(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=T1(i,s,l,o):c=_1(i,t.halfCheckedKeys,s,l,o),c}const B1=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},pn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},pn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Fo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${fe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
48
|
+
${n}:not(${n}-disabled),
|
|
49
|
+
${t}:not(${t}-disabled)
|
|
50
|
+
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
51
|
+
${n}-checked:not(${n}-disabled),
|
|
52
|
+
${t}-checked:not(${t}-disabled)
|
|
53
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function jg(e,t){const n=Hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return B1(n)}rr("Checkbox",(e,{prefixCls:t})=>[jg(t,e)]);var L1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},z1=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:L1}))},H1=f.forwardRef(z1);function Ll(){return typeof BigInt=="function"}function Rg(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Yr(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function Cu(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Vr(e){var t=String(e);if(Cu(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&wu(t)?t.length-t.indexOf(".")-1:0}function Cs(e){var t=String(e);if(Cu(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ll()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ll()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Vr(t))}return Yr(t).fullStr}function wu(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var V1=(function(){function e(t){if(aa(this,e),J(this,"origin",""),J(this,"negative",void 0),J(this,"integer",void 0),J(this,"decimal",void 0),J(this,"decimalLen",void 0),J(this,"empty",void 0),J(this,"nan",void 0),Rg(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Cu(n)&&(n=Number(n)),n=typeof n=="string"?n:Cs(n),wu(n)){var r=Yr(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return oa(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(o),s=n.alignDecimal(o),l=r(i,s).toString(),c=a(o),u=Yr(l),d=u.negativeStr,g=u.trimStr,h="".concat(d).concat(g.padStart(c+1,"0"));return new e("".concat(h.slice(0,-c),".").concat(h.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Yr("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),K1=(function(){function e(t){if(aa(this,e),J(this,"origin",""),J(this,"number",void 0),J(this,"empty",void 0),Rg(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return oa(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Vr(this.number),Vr(r));return new e(a.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Vr(this.number),Vr(r));return new e(a.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Cs(this.number):this.origin}}]),e})();function Xn(e){return Ll()?new V1(e):new K1(e)}function Si(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Yr(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Xn(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return Si(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function W1(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function q1(e,t){var n=wt(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:l,afterTxt:c}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var d=s[c-1],g=o.indexOf(d,c-1);g!==-1&&(u=g+1)}e.setSelectionRange(u,u)}catch(h){In(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,a]}var U1=function(){var t=dt(!1),n=oe(t,2),r=n[0],a=n[1];return Rn(function(){a(G0())},[]),r},Y1=200,G1=600;function X1(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=f.useRef(),l=f.useRef([]),c=f.useRef();c.current=i;var u=function(){clearTimeout(s.current)},d=function(x,w){x.preventDefault(),u(),c.current(w);function C(){c.current(w),s.current=setTimeout(C,Y1)}s.current=setTimeout(C,G1)};f.useEffect(function(){return function(){u(),l.current.forEach(function(y){return zt.cancel(y)})}},[]);var g=U1();if(g)return null;var h="".concat(t,"-handler"),v=pe(h,"".concat(h,"-up"),J({},"".concat(h,"-up-disabled"),a)),m=pe(h,"".concat(h,"-down"),J({},"".concat(h,"-down-disabled"),o)),p=function(){return l.current.push(zt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f.createElement("div",{className:"".concat(h,"-wrap")},f.createElement("span",Oe({},b,{onMouseDown:function(x){d(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:v}),n||f.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f.createElement("span",Oe({},b,{onMouseDown:function(x){d(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:m}),r||f.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Pd(e){var t=typeof e=="number"?Cs(e):Yr(e).fullStr,n=t.includes(".");return n?Yr(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const J1=(function(){var e=wt(0),t=function(){zt.cancel(e.current)};return ft(function(){return t},[]),function(n){t(),e.current=zt(function(){n()})}});var Q1=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Z1=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],jd=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Rd=function(t){var n=Xn(t);return n.isInvalidate()?null:n},eC=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,g=e.readOnly,h=e.upHandler,v=e.downHandler,m=e.keyboard,p=e.changeOnWheel,b=p===void 0?!1:p,y=e.controls,x=y===void 0?!0:y;e.classNames;var w=e.stringMode,C=e.parser,S=e.formatter,E=e.precision,k=e.decimalSeparator,$=e.onChange,O=e.onInput,D=e.onPressEnter,P=e.onStep,R=e.changeOnBlur,N=R===void 0?!0:R,I=e.domRef,M=Nt(e,Q1),F="".concat(n,"-input"),j=f.useRef(null),A=f.useState(!1),_=oe(A,2),L=_[0],z=_[1],T=f.useRef(!1),H=f.useRef(!1),W=f.useRef(!1),K=f.useState(function(){return Xn(u??c)}),G=oe(K,2),U=G[0],Z=G[1];function Q(Ne){u===void 0&&Z(Ne)}var Y=f.useCallback(function(Ne,Ie){if(!Ie)return E>=0?E:Math.max(Vr(Ne),Vr(l))},[E,l]),ee=f.useCallback(function(Ne){var Ie=String(Ne);if(C)return C(Ie);var Ue=Ie;return k&&(Ue=Ue.replace(k,".")),Ue.replace(/[^\w.-]+/g,"")},[C,k]),ce=f.useRef(""),me=f.useCallback(function(Ne,Ie){if(S)return S(Ne,{userTyping:Ie,input:String(ce.current)});var Ue=typeof Ne=="number"?Cs(Ne):Ne;if(!Ie){var Ye=Y(Ue,Ie);if(wu(Ue)&&(k||Ye>=0)){var bt=k||".";Ue=Si(Ue,bt,Ye)}}return Ue},[S,Y,k]),we=f.useState(function(){var Ne=c??u;return U.isInvalidate()&&["string","number"].includes(mn(Ne))?Number.isNaN(Ne)?"":Ne:me(U.toString(),!1)}),se=oe(we,2),ge=se[0],Ee=se[1];ce.current=ge;function Te(Ne,Ie){Ee(me(Ne.isInvalidate()?Ne.toString(!1):Ne.toString(!Ie),Ie))}var Pe=f.useMemo(function(){return Rd(i)},[i,E]),he=f.useMemo(function(){return Rd(o)},[o,E]),ke=f.useMemo(function(){return!Pe||!U||U.isInvalidate()?!1:Pe.lessEquals(U)},[Pe,U]),de=f.useMemo(function(){return!he||!U||U.isInvalidate()?!1:U.lessEquals(he)},[he,U]),Re=q1(j.current,L),He=oe(Re,2),Ke=He[0],tt=He[1],qe=function(Ie){return Pe&&!Ie.lessEquals(Pe)?Pe:he&&!he.lessEquals(Ie)?he:null},We=function(Ie){return!qe(Ie)},lt=function(Ie,Ue){var Ye=Ie,bt=We(Ye)||Ye.isEmpty();if(!Ye.isEmpty()&&!Ue&&(Ye=qe(Ye)||Ye,bt=!0),!g&&!d&&bt){var At=Ye.toString(),Ht=Y(At,Ue);return Ht>=0&&(Ye=Xn(Si(At,".",Ht)),We(Ye)||(Ye=Xn(Si(At,".",Ht,!0)))),Ye.equals(U)||(Q(Ye),$==null||$(Ye.isEmpty()?null:jd(w,Ye)),u===void 0&&Te(Ye,Ue)),Ye}return U},Fe=J1(),ae=function Ne(Ie){if(Ke(),ce.current=Ie,Ee(Ie),!H.current){var Ue=ee(Ie),Ye=Xn(Ue);Ye.isNaN()||lt(Ye,!0)}O==null||O(Ie),Fe(function(){var bt=Ie;C||(bt=Ie.replace(/。/g,".")),bt!==Ie&&Ne(bt)})},Le=function(){H.current=!0},Ce=function(){H.current=!1,ae(j.current.value)},$e=function(Ie){ae(Ie.target.value)},ue=function(Ie){var Ue;if(!(Ie&&ke||!Ie&&de)){T.current=!1;var Ye=Xn(W.current?Pd(l):l);Ie||(Ye=Ye.negate());var bt=(U||Xn(0)).add(Ye.toString()),At=lt(bt,!1);P==null||P(jd(w,At),{offset:W.current?Pd(l):l,type:Ie?"up":"down"}),(Ue=j.current)===null||Ue===void 0||Ue.focus()}},ie=function(Ie){var Ue=Xn(ee(ge)),Ye;Ue.isNaN()?Ye=lt(U,Ie):Ye=lt(Ue,Ie),u!==void 0?Te(U,!1):Ye.isNaN()||Te(Ye,!1)},xe=function(){T.current=!0},_e=function(Ie){var Ue=Ie.key,Ye=Ie.shiftKey;T.current=!0,W.current=Ye,Ue==="Enter"&&(H.current||(T.current=!1),ie(!1),D==null||D(Ie)),m!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ue)&&(ue(Ue==="Up"||Ue==="ArrowUp"),Ie.preventDefault())},ze=function(){T.current=!1,W.current=!1};f.useEffect(function(){if(b&&L){var Ne=function(Ye){ue(Ye.deltaY<0),Ye.preventDefault()},Ie=j.current;if(Ie)return Ie.addEventListener("wheel",Ne,{passive:!1}),function(){return Ie.removeEventListener("wheel",Ne)}}});var st=function(){N&&ie(!1),z(!1),T.current=!1};return mi(function(){U.isInvalidate()||Te(U,!1)},[E,S]),mi(function(){var Ne=Xn(u);Z(Ne);var Ie=Xn(ee(ge));(!Ne.equals(Ie)||!T.current||S)&&Te(Ne,T.current)},[u]),mi(function(){S&&tt()},[ge]),f.createElement("div",{ref:I,className:pe(n,r,J(J(J(J(J({},"".concat(n,"-focused"),L),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!We(U))),style:a,onFocus:function(){z(!0)},onBlur:st,onKeyDown:_e,onKeyUp:ze,onCompositionStart:Le,onCompositionEnd:Ce,onBeforeInput:xe},x&&f.createElement(X1,{prefixCls:n,upNode:h,downNode:v,upDisabled:ke,downDisabled:de,onStep:ue}),f.createElement("div",{className:"".concat(F,"-wrap")},f.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:l},M,{ref:Mo(j,t),className:F,value:ge,onChange:$e,disabled:d,readOnly:g}))))}),tC=f.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,g=e.classNames,h=Nt(e,Z1),v=f.useRef(null),m=f.useRef(null),p=f.useRef(null),b=function(x){p.current&&j0(p.current,x)};return f.useImperativeHandle(t,function(){return W1(p.current,{focus:b,nativeElement:v.current.nativeElement||m.current})}),f.createElement(P0,{className:d,triggerFocus:b,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},f.createElement(eC,Oe({prefixCls:o,disabled:n,ref:p,domRef:m,className:g==null?void 0:g.input},h)))});const nC=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ip(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new mr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Ad=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},rC=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:g,paddingInlineLG:h,colorIcon:v,motionDurationMid:m,handleHoverColor:p,handleOpacity:b,paddingInline:y,paddingBlock:x,handleBg:w,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:E,borderRadiusLG:k,controlWidth:$,handleBorderColor:O,filledHandleBg:D,lineHeightLG:P,calc:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),mp(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:a}),sp(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${O}`}}})),cp(e,{[`${t}-handler-wrap`]:{background:D,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),lp(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${O}`}}})),up(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:P,borderRadius:k,[`input${t}-input`]:{height:R(s).sub(R(n).mul(2)).equal(),padding:`${fe(g)} ${fe(h)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:R(l).sub(R(n).mul(2)).equal(),padding:`${fe(d)} ${fe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},pn(e)),R0(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},A0(e)),T0(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{width:"100%",padding:`${fe(x)} ${fe(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),fp(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
54
|
+
${t}-handler-up-inner,
|
|
55
|
+
${t}-handler-down-inner
|
|
56
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${fe(n)} ${r} ${O}`,transition:`all ${m} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
|
|
57
|
+
${t}-handler-up-inner,
|
|
58
|
+
${t}-handler-down-inner
|
|
59
|
+
`]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},bp()),{color:v,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},Ad(e,"lg")),Ad(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
60
|
+
${t}-handler-up-disabled,
|
|
61
|
+
${t}-handler-down-disabled
|
|
62
|
+
`]:{cursor:"not-allowed"},[`
|
|
63
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
64
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
65
|
+
`]:{color:S}})}]},aC=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:g}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${fe(n)} 0`}},mp(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:l,[`input${t}-input`]:{padding:`${fe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${fe(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${g}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},oC=rr("InputNumber",e=>{const t=Hn(e,dp(e));return[rC(t),aC(t),wp(t)]},nC,{unitless:{handleOpacity:!0},resetFont:!1});var iC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ag=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(cn),a=f.useRef(null);f.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:g,suffix:h,bordered:v,readOnly:m,status:p,controls:b,variant:y}=e,x=iC(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),C=ia(w),[S,E,k]=oC(w,C),{compactSize:$,compactItemClassnames:O}=ss(w,r);let D=f.createElement(H1,{className:`${w}-handler-up-inner`}),P=f.createElement(fy,{className:`${w}-handler-down-inner`});const R=typeof b=="boolean"?b:void 0;typeof b=="object"&&(D=typeof b.upIcon>"u"?D:f.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),P=typeof b.downIcon>"u"?P:f.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:N,status:I,isFormItemInput:M,feedbackIcon:F}=f.useContext(Po),j=eu(I,p),A=is(U=>{var Z;return(Z=s??$)!==null&&Z!==void 0?Z:U}),_=f.useContext(Fa),L=l??_,[z,T]=Zc("inputNumber",y,v),H=N&&f.createElement(f.Fragment,null,F),W=pe({[`${w}-lg`]:A==="large",[`${w}-sm`]:A==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:M},E),K=`${w}-group`,G=f.createElement(tC,Object.assign({ref:a,disabled:L,className:pe(k,C,o,i,O),upHandler:D,downHandler:P,prefixCls:w,readOnly:m,controls:R,prefix:g,suffix:H||h,addonBefore:u&&f.createElement(vo,{form:!0,space:!0},u),addonAfter:d&&f.createElement(vo,{form:!0,space:!0},d),classNames:{input:W,variant:pe({[`${w}-${z}`]:T},Ri(w,j,N)),affixWrapper:pe({[`${w}-affix-wrapper-sm`]:A==="small",[`${w}-affix-wrapper-lg`]:A==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1||L||m},E),wrapper:pe({[`${K}-rtl`]:r==="rtl"},E),groupWrapper:pe({[`${w}-group-wrapper-sm`]:A==="small",[`${w}-group-wrapper-lg`]:A==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${z}`]:T},Ri(`${w}-group-wrapper`,j,N),E)}},x));return S(G)}),zl=Ag,sC=e=>f.createElement(ls,{theme:{components:{InputNumber:{handleVisible:!0}}}},f.createElement(Ag,Object.assign({},e)));zl._InternalPanelDoNotUseOrYouWillBeFired=sC;function Hl(e,t,n){return(e-t)/(n-t)}function Su(e,t,n,r){var a=Hl(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function Lr(e,t){return Array.isArray(e)?e[t]:e}var da=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),lC=f.createContext({}),cC=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Td=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,g=e.onChangeComplete,h=e.onFocus,v=e.onMouseEnter,m=Nt(e,cC),p=f.useContext(da),b=p.min,y=p.max,x=p.direction,w=p.disabled,C=p.keyboard,S=p.range,E=p.tabIndex,k=p.ariaLabelForHandle,$=p.ariaLabelledByForHandle,O=p.ariaRequired,D=p.ariaValueTextFormatterForHandle,P=p.styles,R=p.classNames,N="".concat(n,"-handle"),I=function(W){w||o(W,a)},M=function(W){h==null||h(W,a)},F=function(W){v(W,a)},j=function(W){if(!w&&C){var K=null;switch(W.which||W.keyCode){case Et.LEFT:K=x==="ltr"||x==="btt"?-1:1;break;case Et.RIGHT:K=x==="ltr"||x==="btt"?1:-1;break;case Et.UP:K=x!=="ttb"?1:-1;break;case Et.DOWN:K=x!=="ttb"?-1:1;break;case Et.HOME:K="min";break;case Et.END:K="max";break;case Et.PAGE_UP:K=2;break;case Et.PAGE_DOWN:K=-2;break;case Et.BACKSPACE:case Et.DELETE:i(a);break}K!==null&&(W.preventDefault(),d(K,a))}},A=function(W){switch(W.which||W.keyCode){case Et.LEFT:case Et.RIGHT:case Et.UP:case Et.DOWN:case Et.HOME:case Et.END:case Et.PAGE_UP:case Et.PAGE_DOWN:g==null||g();break}},_=Su(x,r,b,y),L={};if(a!==null){var z;L={tabIndex:w?null:Lr(E,a),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":Lr(k,a),"aria-labelledby":Lr($,a),"aria-required":Lr(O,a),"aria-valuetext":(z=Lr(D,a))===null||z===void 0?void 0:z(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:I,onTouchStart:I,onFocus:M,onMouseEnter:F,onKeyDown:j,onKeyUp:A}}var T=f.createElement("div",Oe({ref:t,className:pe(N,J(J(J({},"".concat(N,"-").concat(a+1),a!==null&&S),"".concat(N,"-dragging"),c),"".concat(N,"-dragging-delete"),u),R.handle),style:ye(ye(ye({},_),s),P.handle)},L,m));return l&&(T=l(T,{index:a,prefixCls:n,value:r,dragging:c,draggingDelete:u})),T}),uC=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],dC=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,g=Nt(e,uC),h=f.useRef({}),v=f.useState(!1),m=oe(v,2),p=m[0],b=m[1],y=f.useState(-1),x=oe(y,2),w=x[0],C=x[1],S=function(D){C(D),b(!0)},E=function(D,P){S(P),d==null||d(D)},k=function(D,P){S(P)};f.useImperativeHandle(t,function(){return{focus:function(D){var P;(P=h.current[D])===null||P===void 0||P.focus()},hideHelp:function(){ji(function(){b(!1)})}}});var $=ye({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:k},g);return f.createElement(f.Fragment,null,i.map(function(O,D){var P=c===D;return f.createElement(Td,Oe({ref:function(N){N?h.current[D]=N:delete h.current[D]},dragging:P,draggingDelete:P&&u,style:Lr(r,D),key:D,value:O,valueIndex:D},$))}),l&&p&&f.createElement(Td,Oe({key:"a11y"},$,{value:i[w],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),fC=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=f.useContext(da),l=s.min,c=s.max,u=s.direction,d=s.includedStart,g=s.includedEnd,h=s.included,v="".concat(n,"-text"),m=Su(u,o,l,c);return f.createElement("span",{className:pe(v,J({},"".concat(v,"-active"),h&&d<=o&&o<=g)),style:ye(ye({},m),r),onMouseDown:function(b){b.stopPropagation()},onClick:function(){i(o)}},a)},mC=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?f.createElement("div",{className:o},r.map(function(i){var s=i.value,l=i.style,c=i.label;return f.createElement(fC,{key:s,prefixCls:o,style:l,value:s,onClick:a},c)})):null},pC=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=f.useContext(da),s=i.min,l=i.max,c=i.direction,u=i.included,d=i.includedStart,g=i.includedEnd,h="".concat(n,"-dot"),v=u&&d<=r&&r<=g,m=ye(ye({},Su(c,r,s,l)),typeof a=="function"?a(r):a);return v&&(m=ye(ye({},m),typeof o=="function"?o(r):o)),f.createElement("span",{className:pe(h,J({},"".concat(h,"-active"),v)),style:m})},gC=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=f.useContext(da),l=s.min,c=s.max,u=s.step,d=f.useMemo(function(){var g=new Set;if(r.forEach(function(v){g.add(v.value)}),a&&u!==null)for(var h=l;h<=c;)g.add(h),h+=u;return Array.from(g)},[l,c,u,a,r]);return f.createElement("div",{className:"".concat(n,"-step")},d.map(function(g){return f.createElement(pC,{prefixCls:n,key:g,value:g,style:o,activeStyle:i})}))},_d=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,l=t.replaceCls,c=f.useContext(da),u=c.direction,d=c.min,g=c.max,h=c.disabled,v=c.range,m=c.classNames,p="".concat(n,"-track"),b=Hl(a,d,g),y=Hl(o,d,g),x=function(E){!h&&s&&s(E,-1)},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%")}var C=l||pe(p,J(J({},"".concat(p,"-").concat(i+1),i!==null&&v),"".concat(n,"-track-draggable"),s),m.track);return f.createElement("div",{className:C,style:ye(ye({},w),r),onMouseDown:x,onTouchStart:x})},vC=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=f.useContext(da),l=s.included,c=s.range,u=s.min,d=s.styles,g=s.classNames,h=f.useMemo(function(){if(!c){if(a.length===0)return[];var m=o??u,p=a[0];return[{start:Math.min(m,p),end:Math.max(m,p)}]}for(var b=[],y=0;y<a.length-1;y+=1)b.push({start:a[y],end:a[y+1]});return b},[a,c,o,u]);if(!l)return null;var v=h!=null&&h.length&&(g.tracks||d.tracks)?f.createElement(_d,{index:null,prefixCls:n,start:h[0].start,end:h[h.length-1].end,replaceCls:pe(g.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return f.createElement(f.Fragment,null,v,h.map(function(m,p){var b=m.start,y=m.end;return f.createElement(_d,{index:p,prefixCls:n,style:ye(ye({},Lr(r,p)),d.track),start:b,end:y,key:p,onStartMove:i})}))},hC=130;function Bd(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function yC(e,t,n,r,a,o,i,s,l,c,u){var d=f.useState(null),g=oe(d,2),h=g[0],v=g[1],m=f.useState(-1),p=oe(m,2),b=p[0],y=p[1],x=f.useState(!1),w=oe(x,2),C=w[0],S=w[1],E=f.useState(n),k=oe(E,2),$=k[0],O=k[1],D=f.useState(n),P=oe(D,2),R=P[0],N=P[1],I=f.useRef(null),M=f.useRef(null),F=f.useRef(null),j=f.useContext(lC),A=j.onDragStart,_=j.onDragChange;Rn(function(){b===-1&&O(n)},[n,b]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",M.current),F.current&&(F.current.removeEventListener("touchmove",I.current),F.current.removeEventListener("touchend",M.current))}},[]);var L=function(K,G,U){G!==void 0&&v(G),O(K);var Z=K;U&&(Z=K.filter(function(Q,Y){return Y!==b})),i(Z),_&&_({rawValues:K,deleteIndex:U?b:-1,draggingIndex:b,draggingValue:G})},z=Ut(function(W,K,G){if(W===-1){var U=R[0],Z=R[R.length-1],Q=r-U,Y=a-Z,ee=K*(a-r);ee=Math.max(ee,Q),ee=Math.min(ee,Y);var ce=o(U+ee);ee=ce-U;var me=R.map(function(Ee){return Ee+ee});L(me)}else{var we=(a-r)*K,se=rt($);se[W]=R[W];var ge=l(se,we,W,"dist");L(ge.values,ge.value,G)}}),T=function(K,G,U){K.stopPropagation();var Z=U||n,Q=Z[G];y(G),v(Q),N(Z),O(Z),S(!1);var Y=Bd(K),ee=Y.pageX,ce=Y.pageY,me=!1;A&&A({rawValues:Z,draggingIndex:G,draggingValue:Q});var we=function(Ee){Ee.preventDefault();var Te=Bd(Ee),Pe=Te.pageX,he=Te.pageY,ke=Pe-ee,de=he-ce,Re=e.current.getBoundingClientRect(),He=Re.width,Ke=Re.height,tt,qe;switch(t){case"btt":tt=-de/Ke,qe=ke;break;case"ttb":tt=de/Ke,qe=ke;break;case"rtl":tt=-ke/He,qe=de;break;default:tt=ke/He,qe=de}me=c?Math.abs(qe)>hC&&u<$.length:!1,S(me),z(G,tt,me)},se=function ge(Ee){Ee.preventDefault(),document.removeEventListener("mouseup",ge),document.removeEventListener("mousemove",we),F.current&&(F.current.removeEventListener("touchmove",I.current),F.current.removeEventListener("touchend",M.current)),I.current=null,M.current=null,F.current=null,s(me),y(-1),S(!1)};document.addEventListener("mouseup",se),document.addEventListener("mousemove",we),K.currentTarget.addEventListener("touchend",se),K.currentTarget.addEventListener("touchmove",we),I.current=we,M.current=se,F.current=K.currentTarget},H=f.useMemo(function(){var W=rt(n).sort(function(Q,Y){return Q-Y}),K=rt($).sort(function(Q,Y){return Q-Y}),G={};K.forEach(function(Q){G[Q]=(G[Q]||0)+1}),W.forEach(function(Q){G[Q]=(G[Q]||0)-1});var U=c?1:0,Z=Object.values(G).reduce(function(Q,Y){return Q+Math.abs(Y)},0);return Z<=U?$:n},[n,$,c]);return[b,h,C,H,T]}function bC(e,t,n,r,a,o){var i=f.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=f.useCallback(function(h){if(n!==null){var v=e+Math.round((i(h)-e)/n)*n,m=function(x){return(String(x).split(".")[1]||"").length},p=Math.max(m(n),m(t),m(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=f.useCallback(function(h){var v=i(h),m=r.map(function(y){return y.value});n!==null&&m.push(s(h)),m.push(e,t);var p=m[0],b=t-e;return m.forEach(function(y){var x=Math.abs(v-y);x<=b&&(p=y,b=x)}),p},[e,t,r,n,i,s]),c=function h(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,x=v[p],w=x+m,C=[];r.forEach(function(O){C.push(O.value)}),C.push(e,t),C.push(s(x));var S=m>0?1:-1;b==="unit"?C.push(s(x+S*n)):C.push(s(w)),C=C.filter(function(O){return O!==null}).filter(function(O){return m<0?O<=x:O>=x}),b==="unit"&&(C=C.filter(function(O){return O!==x}));var E=b==="unit"?x:w;y=C[0];var k=Math.abs(y-E);if(C.forEach(function(O){var D=Math.abs(O-E);D<k&&(y=O,k=D)}),y===void 0)return m<0?e:t;if(b==="dist")return y;if(Math.abs(m)>1){var $=rt(v);return $[p]=y,h($,m-S,p,b)}return y}else{if(m==="min")return e;if(m==="max")return t}},u=function(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],x=c(v,m,p,b);return{value:x,changed:x!==y}},d=function(v){return o===null&&v===0||typeof o=="number"&&v<o},g=function(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v.map(l),x=y[p],w=c(y,m,p,b);if(y[p]=w,a===!1){var C=o||0;p>0&&y[p-1]!==x&&(y[p]=Math.max(y[p],y[p-1]+C)),p<y.length-1&&y[p+1]!==x&&(y[p]=Math.min(y[p],y[p+1]-C))}else if(typeof o=="number"||o===null){for(var S=p+1;S<y.length;S+=1)for(var E=!0;d(y[S]-y[S-1])&&E;){var k=u(y,1,S);y[S]=k.value,E=k.changed}for(var $=p;$>0;$-=1)for(var O=!0;d(y[$]-y[$-1])&&O;){var D=u(y,-1,$-1);y[$-1]=D.value,O=D.changed}for(var P=y.length-1;P>0;P-=1)for(var R=!0;d(y[P]-y[P-1])&&R;){var N=u(y,-1,P-1);y[P-1]=N.value,R=N.changed}for(var I=0;I<y.length-1;I+=1)for(var M=!0;d(y[I+1]-y[I])&&M;){var F=u(y,1,I+1);y[I+1]=F.value,M=F.changed}}return{value:y[p],values:y}};return[l,g]}function xC(e){return Lt(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,a=e.maxCount;return[!0,t,!t&&n,r||0,a]},[e])}var CC=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,a=e.className,o=e.style,i=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,g=d===void 0?!0:d,h=e.autoFocus,v=e.onFocus,m=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,x=y===void 0?100:y,w=e.step,C=w===void 0?1:w,S=e.value,E=e.defaultValue,k=e.range,$=e.count,O=e.onChange,D=e.onBeforeChange,P=e.onAfterChange,R=e.onChangeComplete,N=e.allowCross,I=N===void 0?!0:N,M=e.pushable,F=M===void 0?!1:M,j=e.reverse,A=e.vertical,_=e.included,L=_===void 0?!0:_,z=e.startPoint,T=e.trackStyle,H=e.handleStyle,W=e.railStyle,K=e.dotStyle,G=e.activeDotStyle,U=e.marks,Z=e.dots,Q=e.handleRender,Y=e.activeHandleRender,ee=e.track,ce=e.tabIndex,me=ce===void 0?0:ce,we=e.ariaLabelForHandle,se=e.ariaLabelledByForHandle,ge=e.ariaRequired,Ee=e.ariaValueTextFormatterForHandle,Te=f.useRef(null),Pe=f.useRef(null),he=f.useMemo(function(){return A?j?"ttb":"btt":j?"rtl":"ltr"},[j,A]),ke=xC(k),de=oe(ke,5),Re=de[0],He=de[1],Ke=de[2],tt=de[3],qe=de[4],We=f.useMemo(function(){return isFinite(b)?b:0},[b]),lt=f.useMemo(function(){return isFinite(x)?x:100},[x]),Fe=f.useMemo(function(){return C!==null&&C<=0?1:C},[C]),ae=f.useMemo(function(){return typeof F=="boolean"?F?Fe:!1:F>=0?F:!1},[F,Fe]),Le=f.useMemo(function(){return Object.keys(U||{}).map(function(je){var De=U[je],Me={value:Number(je)};return De&&mn(De)==="object"&&!f.isValidElement(De)&&("label"in De||"style"in De)?(Me.style=De.style,Me.label=De.label):Me.label=De,Me}).filter(function(je){var De=je.label;return De||typeof De=="number"}).sort(function(je,De){return je.value-De.value})},[U]),Ce=bC(We,lt,Fe,Le,I,ae),$e=oe(Ce,2),ue=$e[0],ie=$e[1],xe=an(E,{value:S}),_e=oe(xe,2),ze=_e[0],st=_e[1],Ne=f.useMemo(function(){var je=ze==null?[]:Array.isArray(ze)?ze:[ze],De=oe(je,1),Me=De[0],Be=Me===void 0?We:Me,et=ze===null?[]:[Be];if(Re){if(et=rt(je),$||ze===void 0){var yt=$>=0?$+1:2;for(et=et.slice(0,yt);et.length<yt;){var vt;et.push((vt=et[et.length-1])!==null&&vt!==void 0?vt:We)}}et.sort(function(_t,jt){return _t-jt})}return et.forEach(function(_t,jt){et[jt]=ue(_t)}),et},[ze,Re,We,$,ue]),Ie=function(De){return Re?De:De[0]},Ue=Ut(function(je){var De=rt(je).sort(function(Me,Be){return Me-Be});O&&!au(De,Ne,!0)&&O(Ie(De)),st(De)}),Ye=Ut(function(je){je&&Te.current.hideHelp();var De=Ie(Ne);P==null||P(De),In(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),R==null||R(De)}),bt=function(De){if(!(u||!He||Ne.length<=tt)){var Me=rt(Ne);Me.splice(De,1),D==null||D(Ie(Me)),Ue(Me);var Be=Math.max(0,De-1);Te.current.hideHelp(),Te.current.focus(Be)}},At=yC(Pe,he,Ne,We,lt,ue,Ue,Ye,ie,He,tt),Ht=oe(At,5),Ft=Ht[0],Yt=Ht[1],Tt=Ht[2],tn=Ht[3],un=Ht[4],Pt=function(De,Me){if(!u){var Be=rt(Ne),et=0,yt=0,vt=lt-We;Ne.forEach(function(Mn,Gn){var xr=Math.abs(De-Mn);xr<=vt&&(vt=xr,et=Gn),Mn<De&&(yt=Gn)});var _t=et;He&&vt!==0&&(!qe||Ne.length<qe)?(Be.splice(yt+1,0,De),_t=yt+1):Be[et]=De,Re&&!Ne.length&&$===void 0&&Be.push(De);var jt=Ie(Be);if(D==null||D(jt),Ue(Be),Me){var nn,Dn;(nn=document.activeElement)===null||nn===void 0||(Dn=nn.blur)===null||Dn===void 0||Dn.call(nn),Te.current.focus(_t),un(Me,_t,Be)}else P==null||P(jt),In(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),R==null||R(jt)}},Tn=function(De){De.preventDefault();var Me=Pe.current.getBoundingClientRect(),Be=Me.width,et=Me.height,yt=Me.left,vt=Me.top,_t=Me.bottom,jt=Me.right,nn=De.clientX,Dn=De.clientY,Mn;switch(he){case"btt":Mn=(_t-Dn)/et;break;case"ttb":Mn=(Dn-vt)/et;break;case"rtl":Mn=(jt-nn)/Be;break;default:Mn=(nn-yt)/Be}var Gn=We+Mn*(lt-We);Pt(ue(Gn),De)},q=f.useState(null),V=oe(q,2),ne=V[0],le=V[1],Se=function(De,Me){if(!u){var Be=ie(Ne,De,Me);D==null||D(Ie(Ne)),Ue(Be.values),le(Be.value)}};f.useEffect(function(){if(ne!==null){var je=Ne.indexOf(ne);je>=0&&Te.current.focus(je)}le(null)},[ne]);var Ae=f.useMemo(function(){return Ke&&Fe===null?!1:Ke},[Ke,Fe]),ct=Ut(function(je,De){un(je,De),D==null||D(Ie(Ne))}),Qe=Ft!==-1;f.useEffect(function(){if(!Qe){var je=Ne.lastIndexOf(Yt);Te.current.focus(je)}},[Qe]);var it=f.useMemo(function(){return rt(tn).sort(function(je,De){return je-De})},[tn]),gt=f.useMemo(function(){return Re?[it[0],it[it.length-1]]:[We,it[0]]},[it,Re,We]),Ve=oe(gt,2),ht=Ve[0],Ze=Ve[1];f.useImperativeHandle(t,function(){return{focus:function(){Te.current.focus(0)},blur:function(){var De,Me=document,Be=Me.activeElement;(De=Pe.current)!==null&&De!==void 0&&De.contains(Be)&&(Be==null||Be.blur())}}}),f.useEffect(function(){h&&Te.current.focus(0)},[]);var kt=f.useMemo(function(){return{min:We,max:lt,direction:he,disabled:u,keyboard:g,step:Fe,included:L,includedStart:ht,includedEnd:Ze,range:Re,tabIndex:me,ariaLabelForHandle:we,ariaLabelledByForHandle:se,ariaRequired:ge,ariaValueTextFormatterForHandle:Ee,styles:s||{},classNames:i||{}}},[We,lt,he,u,g,Fe,L,ht,Ze,Re,me,we,se,ge,Ee,s,i]);return f.createElement(da.Provider,{value:kt},f.createElement("div",{ref:Pe,className:pe(r,a,J(J(J(J({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),A),"".concat(r,"-horizontal"),!A),"".concat(r,"-with-marks"),Le.length)),style:o,onMouseDown:Tn,id:l},f.createElement("div",{className:pe("".concat(r,"-rail"),i==null?void 0:i.rail),style:ye(ye({},W),s==null?void 0:s.rail)}),ee!==!1&&f.createElement(vC,{prefixCls:r,style:T,values:Ne,startPoint:z,onStartMove:Ae?ct:void 0}),f.createElement(gC,{prefixCls:r,marks:Le,dots:Z,style:K,activeStyle:G}),f.createElement(dC,{ref:Te,prefixCls:r,style:H,values:tn,draggingIndex:Ft,draggingDelete:Tt,onStartMove:ct,onOffsetChange:Se,onFocus:v,onBlur:m,handleRender:Q,activeHandleRender:Y,onChangeComplete:Ye,onDelete:He?bt:void 0}),f.createElement(mC,{prefixCls:r,marks:Le,onClick:Pt})))});const wC=ra({}),Ld=f.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,o=wt(null),i=n&&!r,s=wt(null);function l(){zt.cancel(s.current),s.current=null}function c(){s.current=zt(()=>{var u;(u=o.current)===null||u===void 0||u.forceAlign(),s.current=null})}return f.useEffect(()=>(i?c():l(),l),[i,e.title,a]),f.createElement(Ro,Object.assign({ref:Mo(o,t)},e,{open:i}))}),SC=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:g,handleActiveOutlineColor:h,handleLineWidth:v,handleLineWidthHover:m,motionDurationMid:p}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",height:r,margin:`${fe(i)} ${fe(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${fe(o)} ${fe(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${p}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${p}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${fe(v)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(v).mul(-1).equal(),insetBlockStart:c(v).mul(-1).equal(),width:c(u).add(c(v).mul(2)).equal(),height:c(u).add(c(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${fe(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
66
|
+
inset-inline-start ${p},
|
|
67
|
+
inset-block-start ${p},
|
|
68
|
+
width ${p},
|
|
69
|
+
height ${p},
|
|
70
|
+
box-shadow ${p},
|
|
71
|
+
outline ${p}
|
|
72
|
+
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(m).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(m).mul(-1).equal(),width:c(d).add(c(m).mul(2)).equal(),height:c(d).add(c(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${fe(m)} ${g}`,outline:`6px solid ${h}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${fe(v)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
73
|
+
${t}-dot
|
|
74
|
+
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${fe(v)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
75
|
+
${t}-mark-text,
|
|
76
|
+
${t}-dot
|
|
77
|
+
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Tg=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",h=s(r).mul(3).sub(a).div(2).equal(),v=s(a).sub(r).div(2).equal(),m=t?{borderWidth:`${fe(v)} 0`,transform:`translateY(${fe(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${fe(v)}`,transform:`translateX(${fe(e.calc(v).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[d]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:s(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},$C=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Tg(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},EC=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Tg(e,!1)),{height:"100%"})}},kC=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new mr(i).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new mr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},IC=rr("Slider",e=>{const t=Hn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[SC(t),$C(t),EC(t)]},kC);function Xs(){const[e,t]=f.useState(!1),n=f.useRef(null),r=()=>{zt.cancel(n.current)},a=o=>{r(),o?t(o):n.current=zt(()=>{t(o)})};return f.useEffect(()=>r,[]),[e,a]}var OC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function NC(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const DC=be.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:g,tooltip:h={},onChangeComplete:v,classNames:m,styles:p}=e,b=OC(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:w,className:C,style:S,classNames:E,styles:k,getPopupContainer:$}=jo("slider"),O=be.useContext(Fa),D=s??O,{handleRender:P,direction:R}=be.useContext(wC),I=(R||w)==="rtl",[M,F]=Xs(),[j,A]=Xs(),_=Object.assign({},h),{open:L,placement:z,getPopupContainer:T,prefixCls:H,formatter:W}=_,K=L??u,G=(M||j)&&K!==!1,U=NC(W,c),[Z,Q]=Xs(),Y=Re=>{v==null||v(Re),Q(!1)},ee=(Re,He)=>Re||(He?I?"left":"right":"top"),ce=x("slider",n),[me,we,se]=IC(ce),ge=pe(a,C,E.root,m==null?void 0:m.root,o,{[`${ce}-rtl`]:I,[`${ce}-lock`]:Z},we,se);I&&!b.vertical&&(b.reverse=!b.reverse),be.useEffect(()=>{const Re=()=>{zt(()=>{A(!1)},1)};return document.addEventListener("mouseup",Re),()=>{document.removeEventListener("mouseup",Re)}},[]);const Ee=r&&!K,Te=P||((Re,He)=>{const{index:Ke}=He,tt=Re.props;function qe(ae,Le,Ce){var $e,ue,ie,xe;Ce&&((ue=($e=b)[ae])===null||ue===void 0||ue.call($e,Le)),(xe=(ie=tt)[ae])===null||xe===void 0||xe.call(ie,Le)}const We=Object.assign(Object.assign({},tt),{onMouseEnter:ae=>{F(!0),qe("onMouseEnter",ae)},onMouseLeave:ae=>{F(!1),qe("onMouseLeave",ae)},onMouseDown:ae=>{A(!0),Q(!0),qe("onMouseDown",ae)},onFocus:ae=>{var Le;A(!0),(Le=b.onFocus)===null||Le===void 0||Le.call(b,ae),qe("onFocus",ae,!0)},onBlur:ae=>{var Le;A(!1),(Le=b.onBlur)===null||Le===void 0||Le.call(b,ae),qe("onBlur",ae,!0)}}),lt=be.cloneElement(Re,We),Fe=(!!K||G)&&U!==null;return Ee?lt:be.createElement(Ld,Object.assign({},_,{prefixCls:x("tooltip",H??l),title:U?U(He.value):"",value:He.value,open:Fe,placement:ee(z??g,y),key:Ke,classNames:{root:`${ce}-tooltip`},getPopupContainer:T||d||$}),lt)}),Pe=Ee?(Re,He)=>{const Ke=be.cloneElement(Re,{style:Object.assign(Object.assign({},Re.props.style),{visibility:"hidden"})});return be.createElement(Ld,Object.assign({},_,{prefixCls:x("tooltip",H??l),title:U?U(He.value):"",open:U!==null&&G,placement:ee(z??g,y),key:"tooltip",classNames:{root:`${ce}-tooltip`},getPopupContainer:T||d||$,draggingDelete:He.draggingDelete}),Ke)}:void 0,he=Object.assign(Object.assign(Object.assign(Object.assign({},k.root),S),p==null?void 0:p.root),i),ke=Object.assign(Object.assign({},k.tracks),p==null?void 0:p.tracks),de=pe(E.tracks,m==null?void 0:m.tracks);return me(be.createElement(CC,Object.assign({},b,{classNames:Object.assign({handle:pe(E.handle,m==null?void 0:m.handle),rail:pe(E.rail,m==null?void 0:m.rail),track:pe(E.track,m==null?void 0:m.track)},de?{tracks:de}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},k.handle),p==null?void 0:p.handle),rail:Object.assign(Object.assign({},k.rail),p==null?void 0:p.rail),track:Object.assign(Object.assign({},k.track),p==null?void 0:p.track)},Object.keys(ke).length?{tracks:ke}:{}),step:b.step,range:r,className:ge,style:he,disabled:D,ref:t,prefixCls:ce,handleRender:Te,activeHandleRender:Pe,onChangeComplete:Y})))});var MC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},FC=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:MC}))},_g=f.forwardRef(FC),PC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},jC=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:PC}))},Bg=f.forwardRef(jC),RC={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},AC=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:RC}))},TC=f.forwardRef(AC);function _C(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function BC(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Lg(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=my(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[f.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[LC,zC]=["week","WeekPicker"],[HC,VC]=["month","MonthPicker"],[KC,WC]=["year","YearPicker"],[qC,UC]=["quarter","QuarterPicker"],[Vl,zd]=["time","TimePicker"],YC=e=>f.createElement(gn,Object.assign({size:"small",type:"primary"},e));function zg(e){return Lt(()=>Object.assign({button:YC},e),[e])}function Hg(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const i=n[o],s=a[o];if(i&&typeof i=="object")if(s&&typeof s=="object")r[o]=Hg(i,r[o],s);else{const{_default:l}=i;r[o]=r[o]||{},r[o][l]=pe(r[o][l],s)}else r[o]=pe(r[o],s)}),r),{})}function GC(e,...t){return f.useMemo(()=>Hg.apply(void 0,[e].concat(t)),[t])}function XC(...e){return f.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function Kl(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?Kl(o,a):o}}),n}function JC(e,t,n){const r=GC.apply(void 0,[n].concat(rt(e))),a=XC.apply(void 0,rt(t));return f.useMemo(()=>[Kl(r,n),Kl(a,n)],[r,a])}const Vg=(e,t,n,r,a)=>{const{classNames:o,styles:i}=jo(e),[s,l]=JC([o,t],[i,n],{popup:{_default:"root"}});return f.useMemo(()=>{var c,u;const d=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:pe((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),g=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),a)})});return[d,g]},[s,l,r,a])};var QC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZC=e=>jr((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:l,style:c,placement:u,size:d,disabled:g,bordered:h=!0,placeholder:v,popupStyle:m,popupClassName:p,dropdownClassName:b,status:y,rootClassName:x,variant:w,picker:C,styles:S,classNames:E}=n,k=QC(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),$=C===Vl?"timePicker":"datePicker",O=f.useRef(null),{getPrefixCls:D,direction:P,getPopupContainer:R,rangePicker:N}=$n(cn),I=D("picker",o),{compactSize:M,compactItemClassnames:F}=ss(I,P),j=D(),[A,_]=Zc("rangePicker",w,h),L=ia(I),[z,T,H]=Ng(I,L),[W,K]=Vg($,E,S,p||b,m),[G]=Lg(n,I),U=zg(s),Z=is(Pe=>{var he;return(he=d??M)!==null&&he!==void 0?he:Pe}),Q=f.useContext(Fa),Y=g??Q,ee=$n(Po),{hasFeedback:ce,status:me,feedbackIcon:we}=ee,se=f.createElement(f.Fragment,null,C===Vl?f.createElement(Bg,null):f.createElement(_g,null),ce&&we);Do(r,()=>O.current);const[ge]=cs("Calendar",Sp),Ee=Object.assign(Object.assign({},ge),n.locale),[Te]=os("DatePicker",(a=K.popup.root)===null||a===void 0?void 0:a.zIndex);return z(f.createElement(vo,{space:!0},f.createElement(e1,Object.assign({separator:f.createElement("span",{"aria-label":"to",className:`${I}-separator`},f.createElement(TC,null)),disabled:Y,ref:O,placement:u,placeholder:BC(Ee,C,v),suffixIcon:se,prevIcon:f.createElement("span",{className:`${I}-prev-icon`}),nextIcon:f.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:C},k,{className:pe({[`${I}-${Z}`]:Z,[`${I}-${A}`]:_},Ri(I,eu(me,y),ce),T,F,l,N==null?void 0:N.className,H,L,x,W.root),style:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),c),K.root),locale:Ee.lang,prefixCls:I,getPopupContainer:i||R,generateConfig:e,components:U,direction:P,classNames:{popup:pe(T,H,L,x,W.popup.root)},styles:{popup:Object.assign(Object.assign({},K.popup.root),{zIndex:Te})},allowClear:G}))))});var ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tw=e=>{const t=(l,c)=>{const u=c===zd?"timePicker":"datePicker";return jr((g,h)=>{var v;const{prefixCls:m,getPopupContainer:p,components:b,style:y,className:x,rootClassName:w,size:C,bordered:S,placement:E,placeholder:k,popupStyle:$,popupClassName:O,dropdownClassName:D,disabled:P,status:R,variant:N,onCalendarChange:I,styles:M,classNames:F}=g,j=ew(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:A,direction:_,getPopupContainer:L,[u]:z}=$n(cn),T=A("picker",m),{compactSize:H,compactItemClassnames:W}=ss(T,_),K=f.useRef(null),[G,U]=Zc("datePicker",N,S),Z=ia(T),[Q,Y,ee]=Ng(T,Z);Do(h,()=>K.current);const ce={showToday:!0},me=l||g.picker,we=A(),{onSelect:se,multiple:ge}=j,Ee=se&&l==="time"&&!ge,Te=(ue,ie,xe)=>{I==null||I(ue,ie,xe),Ee&&se(ue)},[Pe,he]=Vg(u,F,M,O||D,$),[ke,de]=Lg(g,T),Re=zg(b),He=is(ue=>{var ie;return(ie=C??H)!==null&&ie!==void 0?ie:ue}),Ke=f.useContext(Fa),tt=P??Ke,qe=$n(Po),{hasFeedback:We,status:lt,feedbackIcon:Fe}=qe,ae=f.createElement(f.Fragment,null,me==="time"?f.createElement(Bg,null):f.createElement(_g,null),We&&Fe),[Le]=cs("DatePicker",Sp),Ce=Object.assign(Object.assign({},Le),g.locale),[$e]=os("DatePicker",(v=he.popup.root)===null||v===void 0?void 0:v.zIndex);return Q(f.createElement(vo,{space:!0},f.createElement(i1,Object.assign({ref:K,placeholder:_C(Ce,me,k),suffixIcon:ae,placement:E,prevIcon:f.createElement("span",{className:`${T}-prev-icon`}),nextIcon:f.createElement("span",{className:`${T}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${T}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${T}-super-next-icon`}),transitionName:`${we}-slide-up`,picker:l,onCalendarChange:Te},ce,j,{locale:Ce.lang,className:pe({[`${T}-${He}`]:He,[`${T}-${G}`]:U},Ri(T,eu(lt,R),We),Y,W,z==null?void 0:z.className,x,ee,Z,w,Pe.root),style:Object.assign(Object.assign(Object.assign({},z==null?void 0:z.style),y),he.root),prefixCls:T,getPopupContainer:p||L,generateConfig:e,components:Re,direction:_,disabled:tt,classNames:{popup:pe(Y,ee,Z,w,Pe.popup.root)},styles:{popup:Object.assign(Object.assign({},he.popup.root),{zIndex:$e})},allowClear:ke,removeIcon:de}))))})},n=t(),r=t(LC,zC),a=t(HC,VC),o=t(KC,WC),i=t(qC,UC),s=t(Vl,zd);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},Kg=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=tw(e),s=ZC(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=a,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=i,l},Aa=Kg(lx),nw=iu(Aa,"popupAlign",void 0,"picker");Aa._InternalPanelDoNotUseOrYouWillBeFired=nw;const rw=iu(Aa.RangePicker,"popupAlign",void 0,"picker");Aa._InternalRangePanelDoNotUseOrYouWillBeFired=rw;Aa.generatePicker=Kg;function Hd(e){return["small","middle","large"].includes(e)}function Vd(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Wg=be.createContext({latestIndex:0}),aw=Wg.Provider,ow=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:o}=f.useContext(Wg);return n==null?null:f.createElement(f.Fragment,null,f.createElement("div",{className:e,style:a},n),t<o&&r&&f.createElement("span",{className:`${e}-split`},r))};var iw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sw=f.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:o,className:i,style:s,classNames:l,styles:c}=jo("space"),{size:u=o??"small",align:d,className:g,rootClassName:h,children:v,direction:m="horizontal",prefixCls:p,split:b,style:y,wrap:x=!1,classNames:w,styles:C}=e,S=iw(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,k]=Array.isArray(u)?u:[u,u],$=Hd(k),O=Hd(E),D=Vd(k),P=Vd(E),R=ns(v,{keepEmpty:!0}),N=d===void 0&&m==="horizontal"?"center":d,I=r("space",p),[M,F,j]=X0(I),A=pe(I,i,F,`${I}-${m}`,{[`${I}-rtl`]:a==="rtl",[`${I}-align-${N}`]:N,[`${I}-gap-row-${k}`]:$,[`${I}-gap-col-${E}`]:O},g,h,j),_=pe(`${I}-item`,(n=w==null?void 0:w.item)!==null&&n!==void 0?n:l.item);let L=0;const z=R.map((W,K)=>{var G;W!=null&&(L=K);const U=(W==null?void 0:W.key)||`${_}-${K}`;return f.createElement(ow,{className:_,key:U,index:K,split:b,style:(G=C==null?void 0:C.item)!==null&&G!==void 0?G:c.item},W)}),T=f.useMemo(()=>({latestIndex:L}),[L]);if(R.length===0)return null;const H={};return x&&(H.flexWrap="wrap"),!O&&P&&(H.columnGap=E),!$&&D&&(H.rowGap=k),M(f.createElement("div",Object.assign({ref:t,className:A,style:Object.assign(Object.assign(Object.assign({},H),s),y)},S),f.createElement(aw,{value:T},z)))}),qg=sw;qg.Compact=J0;var lw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ug=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f.useContext(cn),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:g,menu:h,arrow:v,autoFocus:m,overlay:p,trigger:b,align:y,open:x,onOpenChange:w,placement:C,getPopupContainer:S,href:E,icon:k=f.createElement(qp,null),title:$,buttonsRender:O=Y=>Y,mouseEnterDelay:D,mouseLeaveDelay:P,overlayClassName:R,overlayStyle:N,destroyOnHidden:I,destroyPopupOnHide:M,dropdownRender:F,popupRender:j}=e,A=lw(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"]),_=n("dropdown",a),L=`${_}-button`,T={menu:h,arrow:v,autoFocus:m,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:P,overlayClassName:R,overlayStyle:N,destroyOnHidden:I,popupRender:j||F},{compactSize:H,compactItemClassnames:W}=ss(_,r),K=pe(L,W,g);"destroyPopupOnHide"in e&&(T.destroyPopupOnHide=M),"overlay"in e&&(T.overlay=p),"open"in e&&(T.open=x),"placement"in e?T.placement=C:T.placement=r==="rtl"?"bottomLeft":"bottomRight";const G=f.createElement(gn,{type:o,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:$},d),U=f.createElement(gn,{type:o,danger:i,icon:k}),[Z,Q]=O([G,U]);return f.createElement(qg.Compact,Object.assign({className:K,size:H,block:!0},A),Z,f.createElement(ps,Object.assign({},T),Q))};Ug.__ANT_BUTTON=!0;const Yg=ps;Yg.Button=Ug;const cw=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:o,colorWarning:i,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},uw=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Gg=rr("Popconfirm",e=>cw(e),uw,{resetStyle:!1});var dw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Xg=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:o,cancelText:i,okText:s,okType:l="primary",icon:c=f.createElement($p,null),showCancel:u=!0,close:d,onConfirm:g,onCancel:h,onPopupClick:v}=e,{getPrefixCls:m}=f.useContext(cn),[p]=cs("Popconfirm",Ep.Popconfirm),b=ud(a),y=ud(o);return f.createElement("div",{className:`${t}-inner-content`,onClick:v},f.createElement("div",{className:`${t}-message`},c&&f.createElement("span",{className:`${t}-message-icon`},c),f.createElement("div",{className:`${t}-message-text`},b&&f.createElement("div",{className:`${t}-title`},b),y&&f.createElement("div",{className:`${t}-description`},y))),f.createElement("div",{className:`${t}-buttons`},u&&f.createElement(gn,Object.assign({onClick:h,size:"small"},r),i||(p==null?void 0:p.cancelText)),f.createElement(Q0,{buttonProps:Object.assign(Object.assign({size:"small"},Z0(l)),n),actionFn:g,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(p==null?void 0:p.okText))))},fw=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,o=dw(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=f.useContext(cn),s=i("popconfirm",t),[l]=Gg(s);return l(f.createElement(Cy,{placement:n,className:pe(s,r),style:a,content:f.createElement(Xg,Object.assign({prefixCls:s},o))}))};var mw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const pw=f.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:o="top",trigger:i="click",okType:s="primary",icon:l=f.createElement($p,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:g,overlayStyle:h,styles:v,classNames:m}=e,p=mw(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:y,style:x,classNames:w,styles:C}=jo("popconfirm"),[S,E]=an(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=(F,j)=>{E(F,!0),g==null||g(F),d==null||d(F,j)},$=F=>{k(!1,F)},O=F=>{var j;return(j=e.onConfirm)===null||j===void 0?void 0:j.call(void 0,F)},D=F=>{var j;k(!1,F),(j=e.onCancel)===null||j===void 0||j.call(void 0,F)},P=(F,j)=>{const{disabled:A=!1}=e;A||k(F,j)},R=b("popconfirm",a),N=pe(R,y,u,w.root,m==null?void 0:m.root),I=pe(w.body,m==null?void 0:m.body),[M]=Gg(R);return M(f.createElement(Mp,Object.assign({},Vn(p,["title"]),{trigger:i,placement:o,onOpenChange:P,open:S,ref:t,classNames:{root:N,body:I},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),x),h),v==null?void 0:v.root),body:Object.assign(Object.assign({},C.body),v==null?void 0:v.body)},content:f.createElement(Xg,Object.assign({okType:s,icon:l},e,{prefixCls:R,close:$,onConfirm:O,onCancel:D})),"data-popover-inject":!0}),c))}),Jg=pw;Jg._InternalPanelDoNotUseOrYouWillBeFired=fw;var gw={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},vw=function(){var t=wt([]),n=wt(null);return ft(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},Kd=0,hw=ey();function yw(){var e;return hw?(e=Kd,Kd+=1):e="TEST_OR_SSR",e}const bw=(function(e){var t=f.useState(),n=oe(t,2),r=n[0],a=n[1];return f.useEffect(function(){a("rc_progress_".concat(yw()))},[]),e||r});var Wd=function(t){var n=t.bg,r=t.children;return f.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function qd(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var xw=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,g=r&&mn(r)==="object",h=g?"#FFF":void 0,v=u/2,m=f.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:v,cy:v,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:i,ref:t});if(!g)return m;var p="".concat(a,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=qd(r,(360-d)/360),x=qd(r,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return f.createElement(f.Fragment,null,f.createElement("mask",{id:p},m),f.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(p,")")},f.createElement(Wd,{bg:C},f.createElement(Wd,{bg:w}))))}),io=100,Js=function(t,n,r,a,o,i,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,g=r/100*360*((360-i)/360),h=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-a)/100*n;c==="round"&&a!==100&&(v+=u/2,v>=n&&(v=n-.01));var m=io/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+d,transform:"rotate(".concat(o+g+h,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Cw=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ud(e){var t=e??[];return Array.isArray(t)?t:[t]}var ww=function(t){var n=ye(ye({},gw),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,g=n.strokeLinecap,h=n.style,v=n.className,m=n.strokeColor,p=n.percent,b=Nt(n,Cw),y=io/2,x=bw(r),w="".concat(x,"-gradient"),C=y-i/2,S=Math.PI*2*C,E=c>0?90+c/2:-90,k=S*((360-c)/360),$=mn(o)==="object"?o:{count:o,gap:2},O=$.count,D=$.gap,P=Ud(p),R=Ud(m),N=R.find(function(L){return L&&mn(L)==="object"}),I=N&&mn(N)==="object",M=I?"butt":g,F=Js(S,k,0,100,E,c,u,d,M,i),j=vw(),A=function(){var z=0;return P.map(function(T,H){var W=R[H]||R[R.length-1],K=Js(S,k,z,T,E,c,u,W,M,i);return z+=T,f.createElement(xw,{key:H,color:W,ptg:T,radius:C,prefixCls:a,gradientId:w,style:K,strokeLinecap:M,strokeWidth:i,gapDegree:c,ref:function(U){j[H]=U},size:io})}).reverse()},_=function(){var z=Math.round(O*(P[0]/100)),T=100/O,H=0;return new Array(O).fill(null).map(function(W,K){var G=K<=z-1?R[0]:d,U=G&&mn(G)==="object"?"url(#".concat(w,")"):void 0,Z=Js(S,k,H,T,E,c,u,G,"butt",i,D);return H+=(k-Z.strokeDashoffset+D)*100/k,f.createElement("circle",{key:K,className:"".concat(a,"-circle-path"),r:C,cx:y,cy:y,stroke:U,strokeWidth:i,opacity:1,style:Z,ref:function(Y){j[K]=Y}})})};return f.createElement("svg",Oe({className:pe("".concat(a,"-circle"),v),viewBox:"0 0 ".concat(io," ").concat(io),style:h,id:r,role:"presentation"},b),!O&&f.createElement("circle",{className:"".concat(a,"-circle-trail"),r:C,cx:y,cy:y,stroke:d,strokeLinecap:M,strokeWidth:s||i,style:F}),O?_():A())};function Mr(e){return!e||e<0?0:e>100?100:e}function Ki({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const Sw=({percent:e,success:t,successPercent:n})=>{const r=Mr(Ki({success:t,successPercent:n}));return[r,Mr(Mr(e)-r)]},$w=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Nl.green,t||null]},ws=(e,t,n)=>{var r,a,o,i;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,l=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,l]},Ew=3,kw=e=>Ew/e*100,Iw=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:l,success:c,size:u=i,steps:d}=e,[g,h]=ws(u,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(kw(g),6));const m={width:g,height:h,fontSize:g*.15+6},p=f.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),b=Sw(e),y=a||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=$w({success:c,strokeColor:e.strokeColor}),C=pe(`${t}-inner`,{[`${t}-circle-gradient`]:x}),S=f.createElement(ww,{steps:d,percent:d?b[1]:b,strokeWidth:v,trailWidth:v,strokeColor:d?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:p,gapPosition:y}),E=g<=20,k=f.createElement("div",{className:C,style:m},S,!E&&l);return E?f.createElement(Ro,{title:l},k):k},Wi="--progress-line-stroke-color",Qg="--progress-percent",Yd=e=>{const t=e?"100%":"-100%";return new Ti(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ow=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Wi})`]},height:"100%",width:`calc(1 / var(${Qg}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${fe(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Yd(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Yd(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Nw=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Dw=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Mw=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Fw=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Pw=rr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Ow(n),Nw(n),Dw(n),Mw(n)]},Fw);var jw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Rw=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},Aw=(e,t)=>{const{from:n=Nl.blue,to:r=Nl.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=jw(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=Rw(o),l=`linear-gradient(${a}, ${s})`;return{background:l,[Wi]:l}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Wi]:i}},Tw=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:g,type:h}=u,v=i&&typeof i!="string"?Aw(i,n):{[Wi]:i,background:i},m=s==="square"||s==="butt"?0:void 0,p=a??[-1,o||(a==="small"?6:8)],[b,y]=ws(p,"line",{strokeWidth:o}),x={backgroundColor:c||void 0,borderRadius:m},w=Object.assign(Object.assign({width:`${Mr(r)}%`,height:y,borderRadius:m},v),{[Qg]:Mr(r)/100}),C=Ki(e),S={width:`${Mr(C)}%`,height:y,borderRadius:m,backgroundColor:d==null?void 0:d.strokeColor},E={width:b<0?"100%":b},k=f.createElement("div",{className:`${t}-inner`,style:x},f.createElement("div",{className:pe(`${t}-bg`,`${t}-bg-${h}`),style:w},h==="inner"&&l),C!==void 0&&f.createElement("div",{className:`${t}-success-bg`,style:S})),$=h==="outer"&&g==="start",O=h==="outer"&&g==="end";return h==="outer"&&g==="center"?f.createElement("div",{className:`${t}-layout-bottom`},k,l):f.createElement("div",{className:`${t}-outer`,style:E},$&&l,k,O&&l)},_w=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:i,trailColor:s=null,prefixCls:l,children:c}=e,u=r(n*(a/100)),g=t??[t==="small"?2:14,o],[h,v]=ws(g,"step",{steps:n,strokeWidth:o}),m=h/n,p=Array.from({length:n});for(let b=0;b<n;b++){const y=Array.isArray(i)?i[b]:i;p[b]=f.createElement("div",{key:b,className:pe(`${l}-steps-item`,{[`${l}-steps-item-active`]:b<=u-1}),style:{backgroundColor:b<=u-1?y:s,width:m,height:v}})}return f.createElement("div",{className:`${l}-steps-outer`},p,c)};var Bw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Lw=["normal","exception","active","success"],zw=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:g,style:h,percentPosition:v={}}=e,m=Bw(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:b="outer"}=v,y=Array.isArray(i)?i[0]:i,x=typeof i=="string"||Array.isArray(i)?i:void 0,w=f.useMemo(()=>{if(y){const A=typeof y=="string"?y:Object.values(y)[0];return new mr(A).isLight()}return!1},[i]),C=f.useMemo(()=>{var A,_;const L=Ki(e);return parseInt(L!==void 0?(A=L??0)===null||A===void 0?void 0:A.toString():(_=s??0)===null||_===void 0?void 0:_.toString(),10)},[s,e.success,e.successPercent]),S=f.useMemo(()=>!Lw.includes(d)&&C>=100?"success":d||"normal",[d,C]),{getPrefixCls:E,direction:k,progress:$}=f.useContext(cn),O=E("progress",n),[D,P,R]=Pw(O),N=u==="line",I=N&&!o,M=f.useMemo(()=>{if(!c)return null;const A=Ki(e);let _;const L=g||(T=>`${T}%`),z=N&&w&&b==="inner";return b==="inner"||g||S!=="exception"&&S!=="success"?_=L(Mr(s),Mr(A)):S==="exception"?_=N?f.createElement(ty,null):f.createElement(ny,null):S==="success"&&(_=N?f.createElement(ry,null):f.createElement(py,null)),f.createElement("span",{className:pe(`${O}-text`,{[`${O}-text-bright`]:z,[`${O}-text-${p}`]:I,[`${O}-text-${b}`]:I}),title:typeof _=="string"?_:void 0},_)},[c,s,C,S,u,O,g]);let F;u==="line"?F=o?f.createElement(_w,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof o=="object"?o.count:o}),M):f.createElement(Tw,Object.assign({},e,{strokeColor:y,prefixCls:O,direction:k,percentPosition:{align:p,type:b}}),M):(u==="circle"||u==="dashboard")&&(F=f.createElement(Iw,Object.assign({},e,{strokeColor:y,prefixCls:O,progressStatus:S}),M));const j=pe(O,`${O}-status-${S}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&ws(l,"circle")[0]<=20,[`${O}-line`]:I,[`${O}-line-align-${p}`]:I,[`${O}-line-position-${b}`]:I,[`${O}-steps`]:o,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:k==="rtl"},$==null?void 0:$.className,r,a,P,R);return D(f.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:j,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},Vn(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))});var Hw={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Vw=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:Hw}))},Kw=f.forwardRef(Vw),Ww={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qw=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:Ww}))},Uw=f.forwardRef(qw),Yw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Gw=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:Yw}))},Xw=f.forwardRef(Gw),Jw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Qw=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:Jw}))},Zg=f.forwardRef(Qw),Zw={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},eS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:Zw}))},tS=f.forwardRef(eS),nS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},rS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:nS}))},aS=f.forwardRef(rS),oS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},iS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:oS}))},sS=f.forwardRef(iS),lS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},cS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:lS}))},uS=f.forwardRef(cS),dS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},fS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:dS}))},mS=f.forwardRef(fS),pS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},gS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:pS}))},vS=f.forwardRef(gS),hS={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},yS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:hS}))},bS=f.forwardRef(yS),xS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},CS=function(t,n){return f.createElement(hn,Oe({},t,{ref:n,icon:xS}))},wS=f.forwardRef(CS),$u=f.createContext(null),SS=f.createContext({}),$S=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(f.createElement("span",{key:l,className:pe(i,J(J({},"".concat(i,"-start"),a[l]),"".concat(i,"-end"),o[l]))}));return f.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const ES=f.memo($S);var kS=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Gd="open",Xd="close",IS="---",yo=function(t){var n,r,a,o=t.eventKey,i=t.className,s=t.style,l=t.dragOver,c=t.dragOverGapTop,u=t.dragOverGapBottom,d=t.isLeaf,g=t.isStart,h=t.isEnd,v=t.expanded,m=t.selected,p=t.checked,b=t.halfChecked,y=t.loading,x=t.domRef,w=t.active,C=t.data,S=t.onMouseMove,E=t.selectable,k=Nt(t,kS),$=be.useContext($u),O=be.useContext(SS),D=be.useRef(null),P=be.useState(!1),R=oe(P,2),N=R[0],I=R[1],M=!!($.disabled||t.disabled||(n=O.nodeDisabled)!==null&&n!==void 0&&n.call(O,C)),F=be.useMemo(function(){return!$.checkable||t.checkable===!1?!1:$.checkable},[$.checkable,t.checkable]),j=function(ae){M||$.onNodeSelect(ae,Qt(t))},A=function(ae){M||!F||t.disableCheckbox||$.onNodeCheck(ae,Qt(t),!p)},_=be.useMemo(function(){return typeof E=="boolean"?E:$.selectable},[E,$.selectable]),L=function(ae){$.onNodeClick(ae,Qt(t)),_?j(ae):A(ae)},z=function(ae){$.onNodeDoubleClick(ae,Qt(t))},T=function(ae){$.onNodeMouseEnter(ae,Qt(t))},H=function(ae){$.onNodeMouseLeave(ae,Qt(t))},W=function(ae){$.onNodeContextMenu(ae,Qt(t))},K=be.useMemo(function(){return!!($.draggable&&(!$.draggable.nodeDraggable||$.draggable.nodeDraggable(C)))},[$.draggable,C]),G=function(ae){ae.stopPropagation(),I(!0),$.onNodeDragStart(ae,t);try{ae.dataTransfer.setData("text/plain","")}catch{}},U=function(ae){ae.preventDefault(),ae.stopPropagation(),$.onNodeDragEnter(ae,t)},Z=function(ae){ae.preventDefault(),ae.stopPropagation(),$.onNodeDragOver(ae,t)},Q=function(ae){ae.stopPropagation(),$.onNodeDragLeave(ae,t)},Y=function(ae){ae.stopPropagation(),I(!1),$.onNodeDragEnd(ae,t)},ee=function(ae){ae.preventDefault(),ae.stopPropagation(),I(!1),$.onNodeDrop(ae,t)},ce=function(ae){y||$.onNodeExpand(ae,Qt(t))},me=be.useMemo(function(){var Fe=Fn($.keyEntities,o)||{},ae=Fe.children;return!!(ae||[]).length},[$.keyEntities,o]),we=be.useMemo(function(){return d===!1?!1:d||!$.loadData&&!me||$.loadData&&t.loaded&&!me},[d,$.loadData,me,t.loaded]);be.useEffect(function(){y||typeof $.loadData=="function"&&v&&!we&&!t.loaded&&$.onNodeLoad(Qt(t))},[y,$.loadData,$.onNodeLoad,v,we,t]);var se=be.useMemo(function(){var Fe;return(Fe=$.draggable)!==null&&Fe!==void 0&&Fe.icon?be.createElement("span",{className:"".concat($.prefixCls,"-draggable-icon")},$.draggable.icon):null},[$.draggable]),ge=function(ae){var Le=t.switcherIcon||$.switcherIcon;return typeof Le=="function"?Le(ye(ye({},t),{},{isLeaf:ae})):Le},Ee=function(){if(we){var ae=ge(!0);return ae!==!1?be.createElement("span",{className:pe("".concat($.prefixCls,"-switcher"),"".concat($.prefixCls,"-switcher-noop"))},ae):null}var Le=ge(!1);return Le!==!1?be.createElement("span",{onClick:ce,className:pe("".concat($.prefixCls,"-switcher"),"".concat($.prefixCls,"-switcher_").concat(v?Gd:Xd))},Le):null},Te=be.useMemo(function(){if(!F)return null;var Fe=typeof F!="boolean"?F:null;return be.createElement("span",{className:pe("".concat($.prefixCls,"-checkbox"),J(J(J({},"".concat($.prefixCls,"-checkbox-checked"),p),"".concat($.prefixCls,"-checkbox-indeterminate"),!p&&b),"".concat($.prefixCls,"-checkbox-disabled"),M||t.disableCheckbox)),onClick:A,role:"checkbox","aria-checked":b?"mixed":p,"aria-disabled":M||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Fe)},[F,p,b,M,t.disableCheckbox,t.title]),Pe=be.useMemo(function(){return we?null:v?Gd:Xd},[we,v]),he=be.useMemo(function(){return be.createElement("span",{className:pe("".concat($.prefixCls,"-iconEle"),"".concat($.prefixCls,"-icon__").concat(Pe||"docu"),J({},"".concat($.prefixCls,"-icon_loading"),y))})},[$.prefixCls,Pe,y]),ke=be.useMemo(function(){var Fe=!!$.draggable,ae=!t.disabled&&Fe&&$.dragOverNodeKey===o;return ae?$.dropIndicatorRender({dropPosition:$.dropPosition,dropLevelOffset:$.dropLevelOffset,indent:$.indent,prefixCls:$.prefixCls,direction:$.direction}):null},[$.dropPosition,$.dropLevelOffset,$.indent,$.prefixCls,$.direction,$.draggable,$.dragOverNodeKey,$.dropIndicatorRender]),de=be.useMemo(function(){var Fe=t.title,ae=Fe===void 0?IS:Fe,Le="".concat($.prefixCls,"-node-content-wrapper"),Ce;if($.showIcon){var $e=t.icon||$.icon;Ce=$e?be.createElement("span",{className:pe("".concat($.prefixCls,"-iconEle"),"".concat($.prefixCls,"-icon__customize"))},typeof $e=="function"?$e(t):$e):he}else $.loadData&&y&&(Ce=he);var ue;return typeof ae=="function"?ue=ae(C):$.titleRender?ue=$.titleRender(C):ue=ae,be.createElement("span",{ref:D,title:typeof ae=="string"?ae:"",className:pe(Le,"".concat(Le,"-").concat(Pe||"normal"),J({},"".concat($.prefixCls,"-node-selected"),!M&&(m||N))),onMouseEnter:T,onMouseLeave:H,onContextMenu:W,onClick:L,onDoubleClick:z},Ce,be.createElement("span",{className:"".concat($.prefixCls,"-title")},ue),ke)},[$.prefixCls,$.showIcon,t,$.icon,he,$.titleRender,C,Pe,T,H,W,L,z]),Re=la(k,{aria:!0,data:!0}),He=Fn($.keyEntities,o)||{},Ke=He.level,tt=h[h.length-1],qe=!M&&K,We=$.draggingNodeKey===o,lt=E!==void 0?{"aria-selected":!!E}:void 0;return be.createElement("div",Oe({ref:x,role:"treeitem","aria-expanded":d?void 0:v,className:pe(i,"".concat($.prefixCls,"-treenode"),(a={},J(J(J(J(J(J(J(J(J(J(a,"".concat($.prefixCls,"-treenode-disabled"),M),"".concat($.prefixCls,"-treenode-switcher-").concat(v?"open":"close"),!d),"".concat($.prefixCls,"-treenode-checkbox-checked"),p),"".concat($.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat($.prefixCls,"-treenode-selected"),m),"".concat($.prefixCls,"-treenode-loading"),y),"".concat($.prefixCls,"-treenode-active"),w),"".concat($.prefixCls,"-treenode-leaf-last"),tt),"".concat($.prefixCls,"-treenode-draggable"),K),"dragging",We),J(J(J(J(J(J(J(a,"drop-target",$.dropTargetKey===o),"drop-container",$.dropContainerKey===o),"drag-over",!M&&l),"drag-over-gap-top",!M&&c),"drag-over-gap-bottom",!M&&u),"filter-node",(r=$.filterTreeNode)===null||r===void 0?void 0:r.call($,Qt(t))),"".concat($.prefixCls,"-treenode-leaf"),we))),style:s,draggable:qe,onDragStart:qe?G:void 0,onDragEnter:K?U:void 0,onDragOver:K?Z:void 0,onDragLeave:K?Q:void 0,onDrop:K?ee:void 0,onDragEnd:K?Y:void 0,onMouseMove:S},lt,Re),be.createElement(ES,{prefixCls:$.prefixCls,level:Ke,isStart:g,isEnd:h}),se,Ee(),Te,de)};yo.isTreeNode=1;function vr(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function wr(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Eu(e){return e.split("-")}function OS(e,t){var n=[],r=Fn(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,l=i.children;n.push(s),a(l)})}return a(r.children),n}function NS(e){if(e.parent){var t=Eu(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function DS(e){var t=Eu(e.pos);return Number(t[t.length-1])===0}function Jd(e,t,n,r,a,o,i,s,l,c){var u,d=e.clientX,g=e.clientY,h=e.target.getBoundingClientRect(),v=h.top,m=h.height,p=(c==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-d),b=(p-12)/r,y=l.filter(function(M){var F;return(F=s[M])===null||F===void 0||(F=F.children)===null||F===void 0?void 0:F.length}),x=Fn(s,n.eventKey);if(g<v+m/2){var w=i.findIndex(function(M){return M.key===x.key}),C=w<=0?0:w-1,S=i[C].key;x=Fn(s,S)}var E=x.key,k=x,$=x.key,O=0,D=0;if(!y.includes(E))for(var P=0;P<b&&NS(x);P+=1)x=x.parent,D+=1;var R=t.data,N=x.node,I=!0;return DS(x)&&x.level===0&&g<v+m/2&&o({dragNode:R,dropNode:N,dropPosition:-1})&&x.key===n.eventKey?O=-1:(k.children||[]).length&&y.includes($)?o({dragNode:R,dropNode:N,dropPosition:0})?O=0:I=!1:D===0?b>-1.5?o({dragNode:R,dropNode:N,dropPosition:1})?O=1:I=!1:o({dragNode:R,dropNode:N,dropPosition:0})?O=0:o({dragNode:R,dropNode:N,dropPosition:1})?O=1:I=!1:o({dragNode:R,dropNode:N,dropPosition:1})?O=1:I=!1,{dropPosition:O,dropLevelOffset:D,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:$,dropContainerKey:O===0?null:((u=x.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:I}}function Qd(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Qs(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mn(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return In(!1,"`checkedKeys` is not an array or an object"),null;return t}function Wl(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Fn(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),rt(n)}var MS=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*a;break;case 1:o.bottom=0,o.left=-r*a;break;case 0:o.bottom=0,o.left=a;break}return be.createElement("div",{style:o})};function ev(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function FS(e,t){var n=f.useState(!1),r=oe(n,2),a=r[0],o=r[1];Rn(function(){if(a)return e(),function(){t()}},[a]),Rn(function(){return o(!0),function(){o(!1)}},[])}var PS=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],jS=f.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,i=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=Nt(e,PS),g=f.useState(!0),h=oe(g,2),v=h[0],m=h[1],p=f.useContext($u),b=p.prefixCls,y=o&&i!=="hide";Rn(function(){o&&y!==v&&m(y)},[o]);var x=function(){o&&s()},w=f.useRef(!1),C=function(){o&&!w.current&&(w.current=!0,l())};FS(x,C);var S=function(k){y===k&&C()};return o?f.createElement(rs,Oe({ref:t,visible:v},a,{motionAppear:i==="show",onVisibleChanged:S}),function(E,k){var $=E.className,O=E.style;return f.createElement("div",{ref:k,className:pe("".concat(b,"-treenode-motion"),$),style:O},o.map(function(D){var P=Object.assign({},(ev(D.data),D.data)),R=D.title,N=D.key,I=D.isStart,M=D.isEnd;delete P.children;var F=uo(N,u);return f.createElement(yo,Oe({},P,F,{title:R,active:c,data:D.data,key:N,isStart:I,isEnd:M}))}))}):f.createElement(yo,Oe({domRef:t,className:n,style:r},d,{active:c}))});function RS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(c){s.set(c,!0)});var l=i.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function Zd(e,t,n){var r=e.findIndex(function(s){return s.key===n}),a=e[r+1],o=t.findIndex(function(s){return s.key===n});if(a){var i=t.findIndex(function(s){return s.key===a.key});return t.slice(o+1,i)}return t.slice(o+1)}var AS=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ef={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},TS=function(){},ta="RC_TREE_MOTION_".concat(Math.random()),ql={key:ta},tv={key:ta,level:0,index:0,pos:"0",node:ql,nodes:[ql]},tf={parent:null,children:[],pos:tv.pos,data:ql,title:null,key:ta,isStart:[],isEnd:[]};function nf(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function rf(e){var t=e.key,n=e.pos;return Bo(t,n)}function _S(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var BS=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,g=e.dragging,h=e.dragOverNodeKey,v=e.dropPosition,m=e.motion,p=e.height,b=e.itemHeight,y=e.virtual,x=e.scrollWidth,w=e.focusable,C=e.activeItem,S=e.focused,E=e.tabIndex,k=e.onKeyDown,$=e.onFocus,O=e.onBlur,D=e.onActiveChange,P=e.onListChangeStart,R=e.onListChangeEnd,N=Nt(e,AS),I=f.useRef(null),M=f.useRef(null);f.useImperativeHandle(t,function(){return{scrollTo:function(ke){I.current.scrollTo(ke)},getIndentWidth:function(){return M.current.offsetWidth}}});var F=f.useState(a),j=oe(F,2),A=j[0],_=j[1],L=f.useState(r),z=oe(L,2),T=z[0],H=z[1],W=f.useState(r),K=oe(W,2),G=K[0],U=K[1],Z=f.useState([]),Q=oe(Z,2),Y=Q[0],ee=Q[1],ce=f.useState(null),me=oe(ce,2),we=me[0],se=me[1],ge=f.useRef(r);ge.current=r;function Ee(){var he=ge.current;H(he),U(he),ee([]),se(null),R()}Rn(function(){_(a);var he=RS(A,a);if(he.key!==null)if(he.add){var ke=T.findIndex(function(qe){var We=qe.key;return We===he.key}),de=nf(Zd(T,r,he.key),y,p,b),Re=T.slice();Re.splice(ke+1,0,tf),U(Re),ee(de),se("show")}else{var He=r.findIndex(function(qe){var We=qe.key;return We===he.key}),Ke=nf(Zd(r,T,he.key),y,p,b),tt=r.slice();tt.splice(He+1,0,tf),U(tt),ee(Ke),se("hide")}else T!==r&&(H(r),U(r))},[a,r]),f.useEffect(function(){g||Ee()},[g]);var Te=m?G:r,Pe={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:i,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:v,keyEntities:u};return f.createElement(f.Fragment,null,S&&C&&f.createElement("span",{style:ef,"aria-live":"assertive"},_S(C)),f.createElement("div",null,f.createElement("input",{style:ef,disabled:w===!1||d,tabIndex:w!==!1?E:null,onKeyDown:k,onFocus:$,onBlur:O,value:"",onChange:TS,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(n,"-indent")},f.createElement("div",{ref:M,className:"".concat(n,"-indent-unit")}))),f.createElement(gy,Oe({},N,{data:Te,itemKey:rf,height:p,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:I,role:"tree",onVisibleChange:function(ke){ke.every(function(de){return rf(de)!==ta})&&Ee()}}),function(he){var ke=he.pos,de=Object.assign({},(ev(he.data),he.data)),Re=he.title,He=he.key,Ke=he.isStart,tt=he.isEnd,qe=Bo(He,ke);delete de.key,delete de.children;var We=uo(qe,Pe);return f.createElement(jS,Oe({},de,We,{title:Re,active:!!C&&He===C.key,pos:ke,data:he.data,isStart:Ke,isEnd:tt,motion:m,motionNodes:He===ta?Y:null,motionType:we,onMotionStart:P,onMotionEnd:Ee,treeNodeRequiredProps:Pe,onMouseMove:function(){D(null)}}))}))}),LS=10,ku=(function(e){es(n,e);var t=ts(n);function n(){var r;aa(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o)),J(Xe(r),"destroyed",!1),J(Xe(r),"delayedDragEnterLogic",void 0),J(Xe(r),"loadingRetryTimes",{}),J(Xe(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Oa()}),J(Xe(r),"dragStartMousePosition",null),J(Xe(r),"dragNodeProps",null),J(Xe(r),"currentMouseOverDroppableNodeKey",null),J(Xe(r),"listRef",f.createRef()),J(Xe(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,g=r.props.onDragStart,h=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var v=vr(u,h);r.setState({draggingNodeKey:h,dragChildrenKeys:OS(h,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(v),window.addEventListener("dragend",r.onWindowDragEnd),g==null||g({event:s,node:Qt(l)})}),J(Xe(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,g=c.dragChildrenKeys,h=c.flattenNodes,v=c.indent,m=r.props,p=m.onDragEnter,b=m.onExpand,y=m.allowDrop,x=m.direction,w=l.pos,C=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==C&&(r.currentMouseOverDroppableNodeKey=C),!r.dragNodeProps){r.resetDragState();return}var S=Jd(s,r.dragNodeProps,l,v,r.dragStartMousePosition,y,h,d,u,x),E=S.dropPosition,k=S.dropLevelOffset,$=S.dropTargetKey,O=S.dropContainerKey,D=S.dropTargetPos,P=S.dropAllowed,R=S.dragOverNodeKey;if(g.includes($)||!P){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(N){clearTimeout(r.delayedDragEnterLogic[N])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[w]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var N=rt(u),I=Fn(d,l.eventKey);I&&(I.children||[]).length&&(N=wr(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(N),b==null||b(N,{node:Qt(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===$&&k===0){r.resetDragState();return}r.setState({dragOverNodeKey:R,dropPosition:E,dropLevelOffset:k,dropTargetKey:$,dropContainerKey:O,dropTargetPos:D,dropAllowed:P}),p==null||p({event:s,node:Qt(l),expandedKeys:u})}),J(Xe(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,g=c.keyEntities,h=c.expandedKeys,v=c.indent,m=r.props,p=m.onDragOver,b=m.allowDrop,y=m.direction;if(r.dragNodeProps){var x=Jd(s,r.dragNodeProps,l,v,r.dragStartMousePosition,b,d,g,h,y),w=x.dropPosition,C=x.dropLevelOffset,S=x.dropTargetKey,E=x.dropContainerKey,k=x.dropTargetPos,$=x.dropAllowed,O=x.dragOverNodeKey;u.includes(S)||!$||(r.dragNodeProps.eventKey===S&&C===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():w===r.state.dropPosition&&C===r.state.dropLevelOffset&&S===r.state.dropTargetKey&&E===r.state.dropContainerKey&&k===r.state.dropTargetPos&&$===r.state.dropAllowed&&O===r.state.dragOverNodeKey||r.setState({dropPosition:w,dropLevelOffset:C,dropTargetKey:S,dropContainerKey:E,dropTargetPos:k,dropAllowed:$,dragOverNodeKey:O}),p==null||p({event:s,node:Qt(l)}))}}),J(Xe(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:s,node:Qt(l)})}),J(Xe(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),J(Xe(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:Qt(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),J(Xe(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,g=d.dragChildrenKeys,h=d.dropPosition,v=d.dropTargetKey,m=d.dropTargetPos,p=d.dropAllowed;if(p){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var y=ye(ye({},uo(v,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===v,data:Fn(r.state.keyEntities,v).node}),x=g.includes(v);In(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=Eu(m),C={event:s,node:Qt(y),dragNode:r.dragNodeProps?Qt(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(g),dropToGap:h!==0,dropPosition:h+Number(w[w.length-1])};u||b==null||b(C),r.dragNodeProps=null}}}),J(Xe(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),J(Xe(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,g=l.expanded,h=l.key,v=l.isLeaf;if(!(v||s.shiftKey||s.metaKey||s.ctrlKey)){var m=d.filter(function(b){return b.key===h})[0],p=Qt(ye(ye({},uo(h,r.getTreeNodeRequiredProps())),{},{data:m.data}));r.setExpandedKeys(g?vr(u,h):wr(u,h)),r.onNodeExpand(s,p)}}),J(Xe(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),J(Xe(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),J(Xe(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,g=u.fieldNames,h=r.props,v=h.onSelect,m=h.multiple,p=l.selected,b=l[g.key],y=!p;y?m?c=wr(c,b):c=[b]:c=vr(c,b);var x=c.map(function(w){var C=Fn(d,w);return C?C.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),v==null||v(c,{event:"select",selected:y,node:l,selectedNodes:x,nativeEvent:s.nativeEvent})}),J(Xe(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,g=u.checkedKeys,h=u.halfCheckedKeys,v=r.props,m=v.checkStrictly,p=v.onCheck,b=l.key,y,x={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(m){var w=c?wr(g,b):vr(g,b),C=vr(h,b);y={checked:w,halfChecked:C},x.checkedNodes=w.map(function(D){return Fn(d,D)}).filter(Boolean).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:w})}else{var S=Gs([].concat(rt(g),[b]),!0,d),E=S.checkedKeys,k=S.halfCheckedKeys;if(!c){var $=new Set(E);$.delete(b);var O=Gs(Array.from($),{halfCheckedKeys:k},d);E=O.checkedKeys,k=O.halfCheckedKeys}y=E,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=k,E.forEach(function(D){var P=Fn(d,D);if(P){var R=P.node,N=P.pos;x.checkedNodes.push(R),x.checkedNodesPositions.push({node:R,pos:N})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:k})}p==null||p(y,x)}),J(Xe(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=Fn(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var g=new Promise(function(h,v){r.setState(function(m){var p=m.loadedKeys,b=p===void 0?[]:p,y=m.loadingKeys,x=y===void 0?[]:y,w=r.props,C=w.loadData,S=w.onLoad;if(!C||b.includes(c)||x.includes(c))return null;var E=C(s);return E.then(function(){var k=r.state.loadedKeys,$=wr(k,c);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(O){return{loadingKeys:vr(O.loadingKeys,c)}}),h()}).catch(function(k){if(r.setState(function(O){return{loadingKeys:vr(O.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=LS){var $=r.state.loadedKeys;In(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:wr($,c)}),h()}v(k)}),{loadingKeys:wr(x,c)}})});return g.catch(function(){}),g}}),J(Xe(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),J(Xe(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),J(Xe(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),J(Xe(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),J(Xe(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),J(Xe(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,g=s.checkedKeys,h=s.halfCheckedKeys,v=s.dragOverNodeKey,m=s.dropPosition,p=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:g||[],halfCheckedKeys:h||[],dragOverNodeKey:v,dropPosition:m,keyEntities:p}}),J(Xe(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,d=Ys(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:d},!0)}),J(Xe(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,g=u.fieldNames,h=r.props,v=h.onExpand,m=h.loadData,p=l.expanded,b=l[g.key];if(!d){var y=c.includes(b),x=!p;if(In(p&&y||!p&&!y,"Expand state not sync with index check"),c=x?wr(c,b):vr(c,b),r.setExpandedKeys(c),v==null||v(c,{node:l,expanded:x,nativeEvent:s.nativeEvent}),x&&m){var w=r.onNodeLoad(l);w&&w.then(function(){var C=Ys(r.state.treeData,c,g);r.setUncontrolledState({flattenNodes:C})}).catch(function(){var C=r.state.expandedKeys,S=vr(C,b);r.setExpandedKeys(S)})}}}),J(Xe(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),J(Xe(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),J(Xe(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,d=c.itemScrollOffset,g=d===void 0?0:d;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:g}),u==null||u(s))}),J(Xe(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(u){var d=u.key;return d===l})||null}),J(Xe(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,d=c.findIndex(function(v){var m=v.key;return m===u});d===-1&&s<0&&(d=c.length),d=(d+s+c.length)%c.length;var g=c[d];if(g){var h=g.key;r.onActiveChange(h)}else r.onActiveChange(null)}),J(Xe(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,g=l.fieldNames,h=r.props,v=h.onKeyDown,m=h.checkable,p=h.selectable;switch(s.which){case Et.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Et.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var b=r.getActiveItem();if(b&&b.data){var y=r.getTreeNodeRequiredProps(),x=b.data.isLeaf===!1||!!(b.data[g.children]||[]).length,w=Qt(ye(ye({},uo(c,y)),{},{data:b.data,active:!0}));switch(s.which){case Et.LEFT:{x&&u.includes(c)?r.onNodeExpand({},w):b.parent&&r.onActiveChange(b.parent.key),s.preventDefault();break}case Et.RIGHT:{x&&!u.includes(c)?r.onNodeExpand({},w):b.children&&b.children.length&&r.onActiveChange(b.children[0].key),s.preventDefault();break}case Et.ENTER:case Et.SPACE:{m&&!w.disabled&&w.checkable!==!1&&!w.disableCheckbox?r.onNodeCheck({},w,!d.includes(c)):!m&&p&&!w.disabled&&w.selectable!==!1&&r.onNodeSelect({},w);break}}}v==null||v(s)}),J(Xe(r),"setUncontrolledState",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,g={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){d=!1;return}u=!0,g[h]=s[h]}),u&&(!l||d)&&r.setState(ye(ye({},g),c))}}),J(Xe(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return oa(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,l=a.draggingNodeKey,c=a.activeKey,u=a.dropLevelOffset,d=a.dropContainerKey,g=a.dropTargetKey,h=a.dropPosition,v=a.dragOverNodeKey,m=a.indent,p=this.props,b=p.prefixCls,y=p.className,x=p.style,w=p.showLine,C=p.focusable,S=p.tabIndex,E=S===void 0?0:S,k=p.selectable,$=p.showIcon,O=p.icon,D=p.switcherIcon,P=p.draggable,R=p.checkable,N=p.checkStrictly,I=p.disabled,M=p.motion,F=p.loadData,j=p.filterTreeNode,A=p.height,_=p.itemHeight,L=p.scrollWidth,z=p.virtual,T=p.titleRender,H=p.dropIndicatorRender,W=p.onContextMenu,K=p.onScroll,G=p.direction,U=p.rootClassName,Z=p.rootStyle,Q=la(this.props,{aria:!0,data:!0}),Y;P&&(mn(P)==="object"?Y=P:typeof P=="function"?Y={nodeDraggable:P}:Y={});var ee={prefixCls:b,selectable:k,showIcon:$,icon:O,switcherIcon:D,draggable:Y,draggingNodeKey:l,checkable:R,checkStrictly:N,disabled:I,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:g,dropPosition:h,dragOverNodeKey:v,indent:m,direction:G,dropIndicatorRender:H,loadData:F,filterTreeNode:j,titleRender:T,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return f.createElement($u.Provider,{value:ee},f.createElement("div",{className:pe(b,y,U,J(J(J({},"".concat(b,"-show-line"),w),"".concat(b,"-focused"),o),"".concat(b,"-active-focused"),c!==null)),style:Z},f.createElement(BS,Oe({ref:this.listRef,prefixCls:b,style:x,data:i,disabled:I,selectable:k,checkable:!!R,motion:M,dragging:l!==null,height:A,itemHeight:_,virtual:z,focusable:C,focused:o,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:K,scrollWidth:L},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function l(E){return!i&&a.hasOwnProperty(E)||i&&i[E]!==a[E]}var c,u=o.fieldNames;if(l("fieldNames")&&(u=Oa(a.fieldNames),s.fieldNames=u),l("treeData")?c=a.treeData:l("children")&&(In(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Mg(a.children)),c){s.treeData=c;var d=Fg(c,{fieldNames:u});s.keyEntities=ye(J({},ta,tv),d.keyEntities)}var g=s.keyEntities||o.keyEntities;if(l("expandedKeys")||i&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?Wl(a.expandedKeys,g):a.expandedKeys;else if(!i&&a.defaultExpandAll){var h=ye({},g);delete h[ta];var v=[];Object.keys(h).forEach(function(E){var k=h[E];k.children&&k.children.length&&v.push(k.key)}),s.expandedKeys=v}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?Wl(a.defaultExpandedKeys,g):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var m=Ys(c||o.treeData,s.expandedKeys||o.expandedKeys,u);s.flattenNodes=m}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=Qd(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=Qd(a.defaultSelectedKeys,a))),a.checkable){var p;if(l("checkedKeys")?p=Qs(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?p=Qs(a.defaultCheckedKeys)||{}:c&&(p=Qs(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),p){var b=p,y=b.checkedKeys,x=y===void 0?[]:y,w=b.halfCheckedKeys,C=w===void 0?[]:w;if(!a.checkStrictly){var S=Gs(x,!0,g);x=S.checkedKeys,C=S.halfCheckedKeys}s.checkedKeys=x,s.halfCheckedKeys=C}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n})(f.Component);J(ku,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:MS,allowDrop:function(){return!0},expandAction:!1});J(ku,"TreeNode",yo);const zS=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:o,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:n}}}}}),HS=new Ti("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),VS=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),KS=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${fe(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),WS=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:i,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},pn(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Fo(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:HS,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:fe(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},VS(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},KS(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${fe(t.calc(o).div(2).equal())} !important`}})}},qS=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=Hn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[WS(e,i),n&&zS(i)].filter(Boolean)},US=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},YS=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},US(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},GS=rr("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:jg(`${t}-checkbox`,e)},qS(t,e),tu(e)],YS),af=4;function XS(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",l={[i]:-n*a+af,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[i]=a+af;break}return be.createElement("div",{style:l,className:`${r}-drop-indicator`})}const JS=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:o,showLine:i,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:c,loading:u}=o;if(u)return f.isValidElement(s)?s:f.createElement(Dl,{className:`${r}-switcher-loading-icon`});let d;if(i&&typeof i=="object"&&(d=i.showLeafIcon),l){if(!i)return null;if(typeof d!="boolean"&&d){const v=typeof d=="function"?d(o):d,m=`${r}-switcher-line-custom-icon`;return f.isValidElement(v)?Fr(v,{className:pe((t=v.props)===null||t===void 0?void 0:t.className,m)}):v}return d?f.createElement(Zg,{className:`${r}-switcher-line-icon`}):f.createElement("span",{className:`${r}-switcher-leaf-line`})}const g=`${r}-switcher-icon`,h=typeof a=="function"?a(o):a;return f.isValidElement(h)?Fr(h,{className:pe((n=h.props)===null||n===void 0?void 0:n.className,g)}):h!==void 0?h:i?c?f.createElement(mS,{className:`${r}-switcher-line-icon`}):f.createElement(wS,{className:`${r}-switcher-line-icon`}):f.createElement(Kw,{className:g})},nv=be.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=be.useContext(cn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:g,blockNode:h=!1,children:v,checkable:m=!1,selectable:p=!0,draggable:b,motion:y,style:x}=e,w=r("tree",s),C=r(),S=y??Object.assign(Object.assign({},ou(C)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:m,selectable:p,showIcon:c,motion:S,blockNode:h,showLine:!!u,dropIndicatorRender:XS}),[k,$,O]=GS(w),[,D]=xp(),P=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),R=be.useMemo(()=>{if(!b)return!1;let I={};switch(typeof b){case"function":I.nodeDraggable=b;break;case"object":I=Object.assign({},b);break}return I.icon!==!1&&(I.icon=I.icon||be.createElement(uS,null)),I},[b]),N=I=>be.createElement(JS,{prefixCls:w,switcherIcon:d,switcherLoadingIcon:g,treeNodeProps:I,showLine:u});return k(be.createElement(ku,Object.assign({itemHeight:P,ref:t,virtual:o},E,{style:Object.assign(Object.assign({},i==null?void 0:i.style),x),prefixCls:w,className:pe({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:h,[`${w}-unselectable`]:!p,[`${w}-rtl`]:a==="rtl"},i==null?void 0:i.className,l,$,O),direction:a,checkable:m&&be.createElement("span",{className:`${w}-checkbox-inner`}),selectable:p,switcherIcon:N,draggable:R}),v))}),of=0,Zs=1,sf=2;function Iu(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],l=i[a];t(s,i)!==!1&&Iu(l||[],t,n)}e.forEach(o)}function QS({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const o=[];let i=of;if(n&&n===r)return[n];if(!n||!r)return[];function s(l){return l===n||l===r}return Iu(e,l=>{if(i===sf)return!1;if(s(l)){if(o.push(l),i===of)i=Zs;else if(i===Zs)return i=sf,!1}else i===Zs&&o.push(l);return t.includes(l)},Oa(a)),o}function el(e,t,n){const r=rt(t),a=[];return Iu(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},Oa(n)),a}var lf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ZS(e){const{isLeaf:t,expanded:n}=e;return t?f.createElement(Zg,null):n?f.createElement(aS,null):f.createElement(sS,null)}function cf({treeData:e,children:t}){return e||Mg(t)}const e2=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=lf(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=f.useRef(null),s=f.useRef(null),l=()=>{const{keyEntities:k}=Fg(cf(o));let $;return n?$=Object.keys(k):r?$=Wl(o.expandedKeys||a||[],k):$=o.expandedKeys||a||[],$},[c,u]=f.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,g]=f.useState(()=>l());f.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),f.useEffect(()=>{"expandedKeys"in o&&g(o.expandedKeys)},[o.expandedKeys]);const h=(k,$)=>{var O;return"expandedKeys"in o||g(k),(O=o.onExpand)===null||O===void 0?void 0:O.call(o,k,$)},v=(k,$)=>{var O;const{multiple:D,fieldNames:P}=o,{node:R,nativeEvent:N}=$,{key:I=""}=R,M=cf(o),F=Object.assign(Object.assign({},$),{selected:!0}),j=(N==null?void 0:N.ctrlKey)||(N==null?void 0:N.metaKey),A=N==null?void 0:N.shiftKey;let _;D&&j?(_=k,i.current=I,s.current=_,F.selectedNodes=el(M,_,P)):D&&A?(_=Array.from(new Set([].concat(rt(s.current||[]),rt(QS({treeData:M,expandedKeys:d,startKey:I,endKey:i.current,fieldNames:P}))))),F.selectedNodes=el(M,_,P)):(_=[I],i.current=I,s.current=_,F.selectedNodes=el(M,_,P)),(O=o.onSelect)===null||O===void 0||O.call(o,_,F),"selectedKeys"in o||u(_)},{getPrefixCls:m,direction:p}=f.useContext(cn),{prefixCls:b,className:y,showIcon:x=!0,expandAction:w="click"}=o,C=lf(o,["prefixCls","className","showIcon","expandAction"]),S=m("tree",b),E=pe(`${S}-directory`,{[`${S}-directory-rtl`]:p==="rtl"},y);return f.createElement(nv,Object.assign({icon:ZS,ref:t,blockNode:!0},C,{showIcon:x,expandAction:w,prefixCls:S,className:E,expandedKeys:d,selectedKeys:c,onSelect:v,onExpand:h}))},t2=f.forwardRef(e2),Ou=nv;Ou.DirectoryTree=t2;Ou.TreeNode=yo;const tl=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(In(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0});function n2(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function uf(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function r2(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(n2(e,t),uf(t)):e.onSuccess(uf(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var a2=(function(){var e=kr(bn().mark(function t(n,r){var a,o,i,s,l,c,u,d;return bn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=kr(bn().mark(function m(p){return bn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(x){p.file(function(w){r(w)?(p.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),x(w)):x(null)})}));case 1:case"end":return y.stop()}},m)})),c.apply(this,arguments)},l=function(m){return c.apply(this,arguments)},s=function(){return s=kr(bn().mark(function m(p){var b,y,x,w,C;return bn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:b=p.createReader(),y=[];case 2:return E.next=5,new Promise(function(k){b.readEntries(k,function(){return k([])})});case 5:if(x=E.sent,w=x.length,w){E.next=9;break}return E.abrupt("break",12);case 9:for(C=0;C<w;C++)y.push(x[C]);E.next=2;break;case 12:return E.abrupt("return",y);case 13:case"end":return E.stop()}},m)})),s.apply(this,arguments)},i=function(m){return s.apply(this,arguments)},a=[],o=[],n.forEach(function(v){return o.push(v.webkitGetAsEntry())}),u=(function(){var v=kr(bn().mark(function m(p,b){var y,x;return bn().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(p){C.next=2;break}return C.abrupt("return");case 2:if(p.path=b||"",!p.isFile){C.next=10;break}return C.next=6,l(p);case 6:y=C.sent,y&&a.push(y),C.next=15;break;case 10:if(!p.isDirectory){C.next=15;break}return C.next=13,i(p);case 13:x=C.sent,o.push.apply(o,rt(x));case 15:case"end":return C.stop()}},m)}));return function(p,b){return v.apply(this,arguments)}})(),d=0;case 9:if(!(d<o.length)){h.next=15;break}return h.next=12,u(o[d]);case 12:d++,h.next=9;break;case 15:return h.abrupt("return",a);case 16:case"end":return h.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}})(),o2=+new Date,i2=0;function nl(){return"rc-upload-".concat(o2,"-").concat(++i2)}var s2=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],l2=(function(e){es(n,e);var t=ts(n);function n(){var r;aa(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o)),J(Xe(r),"state",{uid:nl()}),J(Xe(r),"reqs",{}),J(Xe(r),"fileInput",void 0),J(Xe(r),"_isMounted",void 0),J(Xe(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,g=rt(d).filter(function(h){return!u||tl(h,c)});r.uploadFiles(g),r.reset()}),J(Xe(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),J(Xe(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),J(Xe(r),"onDataTransferFiles",(function(){var s=kr(bn().mark(function l(c,u){var d,g,h,v,m,p,b;return bn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(d=r.props,g=d.multiple,h=d.accept,v=d.directory,m=rt(c.items||[]),p=rt(c.files||[]),(p.length>0||m.some(function(w){return w.kind==="file"}))&&(u==null||u()),!v){x.next=11;break}return x.next=7,a2(Array.prototype.slice.call(m),function(w){return tl(w,r.props.accept)});case 7:p=x.sent,r.uploadFiles(p),x.next=14;break;case 11:b=rt(p).filter(function(w){return tl(w,h)}),g===!1&&(b=p.slice(0,1)),r.uploadFiles(b);case 14:case"end":return x.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}})()),J(Xe(r),"onFilePaste",(function(){var s=kr(bn().mark(function l(c){var u,d;return bn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=r.props.pastable,u){h.next=3;break}return h.abrupt("return");case 3:if(c.type!=="paste"){h.next=6;break}return d=c.clipboardData,h.abrupt("return",r.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),J(Xe(r),"onFileDragOver",function(s){s.preventDefault()}),J(Xe(r),"onFileDrop",(function(){var s=kr(bn().mark(function l(c){var u;return bn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(c.preventDefault(),c.type!=="drop"){g.next=4;break}return u=c.dataTransfer,g.abrupt("return",r.onDataTransferFiles(u));case 4:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),J(Xe(r),"uploadFiles",function(s){var l=rt(s),c=l.map(function(u){return u.uid=nl(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(g){var h=g.origin,v=g.parsedFile;return{file:h,parsedFile:v}})),u.filter(function(g){return g.parsedFile!==null}).forEach(function(g){r.post(g)})})}),J(Xe(r),"processFile",(function(){var s=kr(bn().mark(function l(c,u){var d,g,h,v,m,p,b,y,x;return bn().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(d=r.props.beforeUpload,g=c,!d){C.next=14;break}return C.prev=3,C.next=6,d(c,u);case 6:g=C.sent,C.next=12;break;case 9:C.prev=9,C.t0=C.catch(3),g=!1;case 12:if(g!==!1){C.next=14;break}return C.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(h=r.props.action,typeof h!="function"){C.next=21;break}return C.next=18,h(c);case 18:v=C.sent,C.next=22;break;case 21:v=h;case 22:if(m=r.props.data,typeof m!="function"){C.next=29;break}return C.next=26,m(c);case 26:p=C.sent,C.next=30;break;case 29:p=m;case 30:return b=(mn(g)==="object"||typeof g=="string")&&g?g:c,b instanceof File?y=b:y=new File([b],c.name,{type:c.type}),x=y,x.uid=c.uid,C.abrupt("return",{origin:c,data:p,parsedFile:x,action:v});case 35:case"end":return C.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}})()),J(Xe(r),"saveFileInput",function(s){r.fileInput=s}),r}return oa(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var o=this.props.pastable;o&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!o&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var o=this,i=a.data,s=a.origin,l=a.action,c=a.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,g=u.customRequest,h=u.name,v=u.headers,m=u.withCredentials,p=u.method,b=s.uid,y=g||r2,x={action:l,filename:h,data:i,file:c,headers:v,withCredentials:m,method:p||"post",onProgress:function(C){var S=o.props.onProgress;S==null||S(C,c)},onSuccess:function(C,S){var E=o.props.onSuccess;E==null||E(C,c,S),delete o.reqs[b]},onError:function(C,S){var E=o.props.onError;E==null||E(C,S,c),delete o.reqs[b]}};d(s),this.reqs[b]=y(x)}}},{key:"reset",value:function(){this.setState({uid:nl()})}},{key:"abort",value:function(a){var o=this.reqs;if(a){var i=a.uid?a.uid:a;o[i]&&o[i].abort&&o[i].abort(),delete o[i]}else Object.keys(o).forEach(function(s){o[s]&&o[s].abort&&o[s].abort(),delete o[s]})}},{key:"render",value:function(){var a=this.props,o=a.component,i=a.prefixCls,s=a.className,l=a.classNames,c=l===void 0?{}:l,u=a.disabled,d=a.id,g=a.name,h=a.style,v=a.styles,m=v===void 0?{}:v,p=a.multiple,b=a.accept,y=a.capture,x=a.children,w=a.directory,C=a.openFileDialogOnClick,S=a.onMouseEnter,E=a.onMouseLeave,k=a.hasControlInside,$=Nt(a,s2),O=pe(J(J(J({},i,!0),"".concat(i,"-disabled"),u),s,s)),D=w?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},P=u?{}:{onClick:C?this.onClick:function(){},onKeyDown:C?this.onKeyDown:function(){},onMouseEnter:S,onMouseLeave:E,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:k?void 0:"0"};return be.createElement(o,Oe({},P,{className:O,role:k?void 0:"button",style:h}),be.createElement("input",Oe({},la($,{aria:!0,data:!0}),{id:d,name:g,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(N){return N.stopPropagation()},key:this.state.uid,style:ye({display:"none"},m.input),className:c.input,accept:b},D,{multiple:p,onChange:this.onChange},y!=null?{capture:y}:{})),x)}}]),n})(ap);function rl(){}var Ul=(function(e){es(n,e);var t=ts(n);function n(){var r;aa(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o)),J(Xe(r),"uploader",void 0),J(Xe(r),"saveUploader",function(s){r.uploader=s}),r}return oa(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return be.createElement(l2,Oe({},this.props,{ref:this.saveUploader}))}}]),n})(ap);J(Ul,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:rl,onError:rl,onSuccess:rl,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const c2=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
78
|
+
&:not(${t}-disabled):hover,
|
|
79
|
+
&-hover:not(${t}-disabled)
|
|
80
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${fe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
81
|
+
p${t}-text,
|
|
82
|
+
p${t}-hint
|
|
83
|
+
`]:{color:e.colorTextDisabled}}}}}},u2=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:o}=e,i=`${t}-list-item`,s=`${i}-actions`,l=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ai()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},as),{padding:`0 ${fe(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
84
|
+
${l}:focus-visible,
|
|
85
|
+
&.picture ${l}
|
|
86
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${l}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},d2=e=>{const{componentCls:t}=e,n=new Ti("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Ti("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ay(e)},n,r]},f2=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`;return{[`${t}-wrapper`]:{[`
|
|
87
|
+
${i}${i}-picture,
|
|
88
|
+
${i}${i}-picture-card,
|
|
89
|
+
${i}${i}-picture-circle
|
|
90
|
+
`]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},as),{width:r,height:r,lineHeight:fe(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${fe(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${cd[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${cd.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},m2=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`,l=e.uploadPicCardSize;return{[`
|
|
91
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
92
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
93
|
+
`]:Object.assign(Object.assign({},Ai()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
94
|
+
${n}-eye,
|
|
95
|
+
${n}-download,
|
|
96
|
+
${n}-delete
|
|
97
|
+
`]:{zIndex:10,width:r,margin:`0 ${fe(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},p2=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},g2=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},pn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},v2=e=>({actionsColor:e.colorIcon}),h2=rr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=Hn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[g2(i),c2(i),f2(i),m2(i),u2(i),d2(i),p2(i),tu(i)]},v2);function ni(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ri(e,t){const n=rt(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function al(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function y2(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const b2=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},rv=e=>e.indexOf("image/")===0,x2=e=>{if(e.type&&!e.thumbUrl)return rv(e.type);const t=e.thumbUrl||e.url||"",n=b2(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Sr=200;function C2(e){return new Promise(t=>{if(!e.type||!rv(e.type)){t("");return}const n=document.createElement("canvas");n.width=Sr,n.height=Sr,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Sr}px; height: ${Sr}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=Sr,l=Sr,c=0,u=0;o>i?(l=i*(Sr/o),u=-(l-s)/2):(s=o*(Sr/i),c=-(s-l)/2),r.drawImage(a,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(d)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const w2=f.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:o,items:i,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:v,previewIcon:m,removeIcon:p,downloadIcon:b,extra:y,onPreview:x,onDownload:w,onClose:C},S)=>{var E,k;const{status:$}=o,[O,D]=f.useState($);f.useEffect(()=>{$!=="removed"&&D($)},[$]);const[P,R]=f.useState(!1);f.useEffect(()=>{const ee=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(ee)}},[]);const N=l(o);let I=f.createElement("div",{className:`${e}-icon`},N);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(O==="uploading"||!o.thumbUrl&&!o.url){const ee=pe(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!=="uploading"});I=f.createElement("div",{className:ee},N)}else{const ee=d!=null&&d(o)?f.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:`${e}-list-item-image`,crossOrigin:o.crossOrigin}):N,ce=pe(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(o)});I=f.createElement("a",{className:ce,onClick:me=>x(o,me),href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ee)}const M=pe(`${e}-list-item`,`${e}-list-item-${O}`),F=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,j=(typeof h=="function"?h(o):h)?c((typeof p=="function"?p(o):p)||f.createElement(Uw,null),()=>C(o),e,r.removeFile,!0):null,A=(typeof v=="function"?v(o):v)&&O==="done"?c((typeof b=="function"?b(o):b)||f.createElement(Xw,null),()=>w(o),e,r.downloadFile):null,_=a!=="picture-card"&&a!=="picture-circle"&&f.createElement("span",{key:"download-delete",className:pe(`${e}-list-item-actions`,{picture:a==="picture"})},A,j),L=typeof y=="function"?y(o):y,z=L&&f.createElement("span",{className:`${e}-list-item-extra`},L),T=pe(`${e}-list-item-name`),H=o.url?f.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:o.name},F,{href:o.url,onClick:ee=>x(o,ee)}),o.name,z):f.createElement("span",{key:"view",className:T,onClick:ee=>x(o,ee),title:o.name},o.name,z),W=(typeof g=="function"?g(o):g)&&(o.url||o.thumbUrl)?f.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ee=>x(o,ee),title:r.previewFile},typeof m=="function"?m(o):m||f.createElement(_0,null)):null,K=(a==="picture-card"||a==="picture-circle")&&O!=="uploading"&&f.createElement("span",{className:`${e}-list-item-actions`},W,O==="done"&&A,j),{getPrefixCls:G}=f.useContext(cn),U=G(),Z=f.createElement("div",{className:M},I,H,_,K,P&&f.createElement(rs,{motionName:`${U}-fade`,visible:O==="uploading",motionDeadline:2e3},({className:ee})=>{const ce="percent"in o?f.createElement(zw,Object.assign({type:"line",percent:o.percent,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]},s)):null;return f.createElement("div",{className:pe(`${e}-list-item-progress`,ee)},ce)})),Q=o.response&&typeof o.response=="string"?o.response:((E=o.error)===null||E===void 0?void 0:E.statusText)||((k=o.error)===null||k===void 0?void 0:k.message)||r.uploadError,Y=O==="error"?f.createElement(Ro,{title:Q,getPopupContainer:ee=>ee.parentNode},Z):Z;return f.createElement("div",{className:pe(`${e}-list-item-container`,t),style:n,ref:S},u?u(Y,o,i,{download:w.bind(null,o),preview:x.bind(null,o),remove:C.bind(null,o)}):Y)}),S2=(e,t)=>{const{listType:n="text",previewFile:r=C2,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:l,isImageUrl:c=x2,prefixCls:u,items:d=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:v=!1,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,progress:x={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:C=!0,itemRender:S,disabled:E}=e,k=B0(),[$,O]=f.useState(!1),D=["picture-card","picture-circle"].includes(n);f.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(T=>{!(T.originFileObj instanceof File||T.originFileObj instanceof Blob)||T.thumbUrl!==void 0||(T.thumbUrl="",r==null||r(T.originFileObj).then(H=>{T.thumbUrl=H||"",k()}))})},[n,d,r]),f.useEffect(()=>{O(!0)},[]);const P=(T,H)=>{if(a)return H==null||H.preventDefault(),a(T)},R=T=>{typeof o=="function"?o(T):T.url&&window.open(T.url)},N=T=>{i==null||i(T)},I=T=>{if(l)return l(T,n);const H=T.status==="uploading";if(n.startsWith("picture")){const W=n==="picture"?f.createElement(Dl,null):s.uploading,K=c!=null&&c(T)?f.createElement(bS,null):f.createElement(tS,null);return H?W:K}return H?f.createElement(Dl,null):f.createElement(vS,null)},M=(T,H,W,K,G)=>{const U={type:"text",size:"small",title:K,onClick:Z=>{var Q,Y;H(),f.isValidElement(T)&&((Y=(Q=T.props).onClick)===null||Y===void 0||Y.call(Q,Z))},className:`${W}-list-item-action`,disabled:G?E:!1};return f.isValidElement(T)?f.createElement(gn,Object.assign({},U,{icon:Fr(T,Object.assign(Object.assign({},T.props),{onClick:()=>{}}))})):f.createElement(gn,Object.assign({},U),f.createElement("span",null,T))};f.useImperativeHandle(t,()=>({handlePreview:P,handleDownload:R}));const{getPrefixCls:F}=f.useContext(cn),j=F("upload",u),A=F(),_=pe(`${j}-list`,`${j}-list-${n}`),L=f.useMemo(()=>Vn(ou(A),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[A]),z=Object.assign(Object.assign({},D?{}:L),{motionDeadline:2e3,motionName:`${j}-${D?"animate-inline":"animate"}`,keys:rt(d.map(T=>({key:T.uid,file:T}))),motionAppear:$});return f.createElement("div",{className:_},f.createElement(oy,Object.assign({},z,{component:!1}),({key:T,file:H,className:W,style:K})=>f.createElement(w2,{key:T,locale:s,prefixCls:j,className:W,style:K,file:H,items:d,progress:x,listType:n,isImgUrl:c,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:v,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,iconRender:I,actionIconRender:M,itemRender:S,onPreview:P,onDownload:R,onClose:N})),w&&f.createElement(rs,Object.assign({},z,{visible:C,forceRender:!0}),({className:T,style:H})=>Fr(w,W=>({className:pe(W.className,T),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:T?"none":void 0}),W.style)}))))},$2=f.forwardRef(S2);var E2=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):a(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const so=`__LIST_IGNORE_${Date.now()}__`,k2=(e,t)=>{const n=jo("upload"),{fileList:r,defaultFileList:a,onRemove:o,showUploadList:i=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:g,disabled:h,locale:v,iconRender:m,isImageUrl:p,progress:b,prefixCls:y,className:x,type:w="select",children:C,style:S,itemRender:E,maxCount:k,data:$={},multiple:O=!1,hasControlInside:D=!0,action:P="",accept:R="",supportServerRender:N=!0,rootClassName:I}=e,M=f.useContext(Fa),F=h??M,j=e.customRequest||n.customRequest,[A,_]=an(a||[],{value:r,postState:ue=>ue??[]}),[L,z]=f.useState("drop"),T=f.useRef(null),H=f.useRef(null);f.useMemo(()=>{const ue=Date.now();(r||[]).forEach((ie,xe)=>{!ie.uid&&!Object.isFrozen(ie)&&(ie.uid=`__AUTO__${ue}_${xe}__`)})},[r]);const W=(ue,ie,xe)=>{let _e=rt(ie),ze=!1;k===1?_e=_e.slice(-1):k&&(ze=_e.length>k,_e=_e.slice(0,k)),ji(()=>{_(_e)});const st={file:ue,fileList:_e};xe&&(st.event=xe),(!ze||ue.status==="removed"||_e.some(Ne=>Ne.uid===ue.uid))&&ji(()=>{u==null||u(st)})},K=(ue,ie)=>E2(void 0,void 0,void 0,function*(){const{beforeUpload:xe,transformFile:_e}=e;let ze=ue;if(xe){const st=yield xe(ue,ie);if(st===!1)return!1;if(delete ue[so],st===so)return Object.defineProperty(ue,so,{value:!0,configurable:!0}),!1;typeof st=="object"&&st&&(ze=st)}return _e&&(ze=yield _e(ze)),ze}),G=ue=>{const ie=ue.filter(ze=>!ze.file[so]);if(!ie.length)return;const xe=ie.map(ze=>ni(ze.file));let _e=rt(A);xe.forEach(ze=>{_e=ri(ze,_e)}),xe.forEach((ze,st)=>{let Ne=ze;if(ie[st].parsedFile)ze.status="uploading";else{const{originFileObj:Ie}=ze;let Ue;try{Ue=new File([Ie],Ie.name,{type:Ie.type})}catch{Ue=new Blob([Ie],{type:Ie.type}),Ue.name=Ie.name,Ue.lastModifiedDate=new Date,Ue.lastModified=new Date().getTime()}Ue.uid=ze.uid,Ne=Ue}W(Ne,_e)})},U=(ue,ie,xe)=>{try{typeof ue=="string"&&(ue=JSON.parse(ue))}catch{}if(!al(ie,A))return;const _e=ni(ie);_e.status="done",_e.percent=100,_e.response=ue,_e.xhr=xe;const ze=ri(_e,A);W(_e,ze)},Z=(ue,ie)=>{if(!al(ie,A))return;const xe=ni(ie);xe.status="uploading",xe.percent=ue.percent;const _e=ri(xe,A);W(xe,_e,ue)},Q=(ue,ie,xe)=>{if(!al(xe,A))return;const _e=ni(xe);_e.error=ue,_e.response=ie,_e.status="error";const ze=ri(_e,A);W(_e,ze)},Y=ue=>{let ie;Promise.resolve(typeof o=="function"?o(ue):o).then(xe=>{var _e;if(xe===!1)return;const ze=y2(ue,A);ze&&(ie=Object.assign(Object.assign({},ue),{status:"removed"}),A==null||A.forEach(st=>{const Ne=ie.uid!==void 0?"uid":"name";st[Ne]===ie[Ne]&&!Object.isFrozen(st)&&(st.status="removed")}),(_e=T.current)===null||_e===void 0||_e.abort(ie),W(ie,ze))})},ee=ue=>{z(ue.type),ue.type==="drop"&&(d==null||d(ue))};f.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:U,onProgress:Z,onError:Q,fileList:A,upload:T.current,nativeElement:H.current}));const{getPrefixCls:ce,direction:me,upload:we}=f.useContext(cn),se=ce("upload",y),ge=Object.assign(Object.assign({onBatchStart:G,onError:Q,onProgress:Z,onSuccess:U},e),{customRequest:j,data:$,multiple:O,action:P,accept:R,supportServerRender:N,prefixCls:se,disabled:F,beforeUpload:K,onChange:void 0,hasControlInside:D});delete ge.className,delete ge.style,(!C||F)&&delete ge.id;const Ee=`${se}-wrapper`,[Te,Pe,he]=h2(se,Ee),[ke]=cs("Upload",Ep.Upload),{showRemoveIcon:de,showPreviewIcon:Re,showDownloadIcon:He,removeIcon:Ke,previewIcon:tt,downloadIcon:qe,extra:We}=typeof i=="boolean"?{}:i,lt=typeof de>"u"?!F:de,Fe=(ue,ie)=>i?f.createElement($2,{prefixCls:se,listType:s,items:A,previewFile:g,onPreview:l,onDownload:c,onRemove:Y,showRemoveIcon:lt,showPreviewIcon:Re,showDownloadIcon:He,removeIcon:Ke,previewIcon:tt,downloadIcon:qe,iconRender:m,extra:We,locale:Object.assign(Object.assign({},ke),v),isImageUrl:p,progress:b,appendAction:ue,appendActionVisible:ie,itemRender:E,disabled:F}):ue,ae=pe(Ee,x,I,Pe,he,we==null?void 0:we.className,{[`${se}-rtl`]:me==="rtl",[`${se}-picture-card-wrapper`]:s==="picture-card",[`${se}-picture-circle-wrapper`]:s==="picture-circle"}),Le=Object.assign(Object.assign({},we==null?void 0:we.style),S);if(w==="drag"){const ue=pe(Pe,se,`${se}-drag`,{[`${se}-drag-uploading`]:A.some(ie=>ie.status==="uploading"),[`${se}-drag-hover`]:L==="dragover",[`${se}-disabled`]:F,[`${se}-rtl`]:me==="rtl"});return Te(f.createElement("span",{className:ae,ref:H},f.createElement("div",{className:ue,style:Le,onDrop:ee,onDragOver:ee,onDragLeave:ee},f.createElement(Ul,Object.assign({},ge,{ref:T,className:`${se}-btn`}),f.createElement("div",{className:`${se}-drag-container`},C))),Fe()))}const Ce=pe(se,`${se}-select`,{[`${se}-disabled`]:F,[`${se}-hidden`]:!C}),$e=f.createElement("div",{className:Ce,style:Le},f.createElement(Ul,Object.assign({},ge,{ref:T})));return Te(s==="picture-card"||s==="picture-circle"?f.createElement("span",{className:ae,ref:H},Fe($e,!!C)):f.createElement("span",{className:ae,ref:H},$e,Fe()))},av=f.forwardRef(k2);var I2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const O2=f.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:a=!1}=e,o=I2(e,["style","height","hasControlInside"]);return f.createElement(av,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Nu=av;Nu.Dragger=O2;Nu.LIST_IGNORE=so;function N2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iy(e,t)}var df=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function D2(e,t){return!!(e===t||df(e)&&df(t))}function M2(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!D2(e[n],t[n]))return!1;return!0}function ol(e,t){t===void 0&&(t=M2);var n,r=[],a,o=!1;function i(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return o&&n===this&&t(s,r)||(a=e.apply(this,s),o=!0,n=this,r=s),a}return i}var F2=typeof performance=="object"&&typeof performance.now=="function",ff=F2?function(){return performance.now()}:function(){return Date.now()};function mf(e){cancelAnimationFrame(e.id)}function P2(e,t){var n=ff();function r(){ff()-n>=t?e.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var il=-1;function pf(e){if(e===void 0&&(e=!1),il===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),il=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return il}var va=null;function gf(e){if(e===void 0&&(e=!1),va===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?va="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?va="negative":va="positive-ascending"),document.body.removeChild(t),va}return va}var j2=150,R2=function(t,n){return t};function A2(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=(function(d){N2(g,d);function g(v){var m;return m=d.call(this,v)||this,m._instanceProps=l(m.props,Xe(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:Xe(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=ol(function(p,b,y,x){return m.props.onItemsRendered({overscanStartIndex:p,overscanStopIndex:b,visibleStartIndex:y,visibleStopIndex:x})}),m._callOnScroll=void 0,m._callOnScroll=ol(function(p,b,y){return m.props.onScroll({scrollDirection:p,scrollOffset:b,scrollUpdateWasRequested:y})}),m._getItemStyle=void 0,m._getItemStyle=function(p){var b=m.props,y=b.direction,x=b.itemSize,w=b.layout,C=m._getItemStyleCache(c&&x,c&&w,c&&y),S;if(C.hasOwnProperty(p))S=C[p];else{var E=n(m.props,p,m._instanceProps),k=a(m.props,p,m._instanceProps),$=y==="horizontal"||w==="horizontal",O=y==="rtl",D=$?E:0;C[p]=S={position:"absolute",left:O?void 0:D,right:O?D:void 0,top:$?0:E,height:$?"100%":k,width:$?k:"100%"}}return S},m._getItemStyleCache=void 0,m._getItemStyleCache=ol(function(p,b,y){return{}}),m._onScrollHorizontal=function(p){var b=p.currentTarget,y=b.clientWidth,x=b.scrollLeft,w=b.scrollWidth;m.setState(function(C){if(C.scrollOffset===x)return null;var S=m.props.direction,E=x;if(S==="rtl")switch(gf()){case"negative":E=-x;break;case"positive-descending":E=w-y-x;break}return E=Math.max(0,Math.min(E,w-y)),{isScrolling:!0,scrollDirection:C.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(p){var b=p.currentTarget,y=b.clientHeight,x=b.scrollHeight,w=b.scrollTop;m.setState(function(C){if(C.scrollOffset===w)return null;var S=Math.max(0,Math.min(w,x-y));return{isScrolling:!0,scrollDirection:C.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(p){var b=m.props.outerRef;m._outerRef=p,typeof b=="function"?b(p):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=p)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&mf(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=P2(m._resetIsScrolling,j2)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}g.getDerivedStateFromProps=function(m,p){return T2(m,p),u(m),null};var h=g.prototype;return h.scrollTo=function(m){m=Math.max(0,m),this.setState(function(p){return p.scrollOffset===m?null:{scrollDirection:p.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(m,p){p===void 0&&(p="auto");var b=this.props,y=b.itemCount,x=b.layout,w=this.state.scrollOffset;m=Math.max(0,Math.min(m,y-1));var C=0;if(this._outerRef){var S=this._outerRef;x==="vertical"?C=S.scrollWidth>S.clientWidth?pf():0:C=S.scrollHeight>S.clientHeight?pf():0}this.scrollTo(o(this.props,m,p,w,this._instanceProps,C))},h.componentDidMount=function(){var m=this.props,p=m.direction,b=m.initialScrollOffset,y=m.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;p==="horizontal"||y==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},h.componentDidUpdate=function(){var m=this.props,p=m.direction,b=m.layout,y=this.state,x=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var C=this._outerRef;if(p==="horizontal"||b==="horizontal")if(p==="rtl")switch(gf()){case"negative":C.scrollLeft=-x;break;case"positive-ascending":C.scrollLeft=x;break;default:var S=C.clientWidth,E=C.scrollWidth;C.scrollLeft=E-S-x;break}else C.scrollLeft=x;else C.scrollTop=x}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&mf(this._resetIsScrollingTimeoutId)},h.render=function(){var m=this.props,p=m.children,b=m.className,y=m.direction,x=m.height,w=m.innerRef,C=m.innerElementType,S=m.innerTagName,E=m.itemCount,k=m.itemData,$=m.itemKey,O=$===void 0?R2:$,D=m.layout,P=m.outerElementType,R=m.outerTagName,N=m.style,I=m.useIsScrolling,M=m.width,F=this.state.isScrolling,j=y==="horizontal"||D==="horizontal",A=j?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),L=_[0],z=_[1],T=[];if(E>0)for(var H=L;H<=z;H++)T.push(Sa(p,{data:k,key:O(H,k),index:H,isScrolling:I?F:void 0,style:this._getItemStyle(H)}));var W=r(this.props,this._instanceProps);return Sa(P||R||"div",{className:b,onScroll:A,ref:this._outerRefSetter,style:Oe({position:"relative",height:x,width:M,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},N)},Sa(C||S||"div",{children:T,ref:w,style:{height:j?"100%":W,pointerEvents:F?"none":void 0,width:j?W:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var p=this._getRangeToRender(),b=p[0],y=p[1],x=p[2],w=p[3];this._callOnItemsRendered(b,y,x,w)}}if(typeof this.props.onScroll=="function"){var C=this.state,S=C.scrollDirection,E=C.scrollOffset,k=C.scrollUpdateWasRequested;this._callOnScroll(S,E,k)}},h._getRangeToRender=function(){var m=this.props,p=m.itemCount,b=m.overscanCount,y=this.state,x=y.isScrolling,w=y.scrollDirection,C=y.scrollOffset;if(p===0)return[0,0,0,0];var S=i(this.props,C,this._instanceProps),E=s(this.props,S,C,this._instanceProps),k=!x||w==="backward"?Math.max(1,b):1,$=!x||w==="forward"?Math.max(1,b):1;return[Math.max(0,S-k),Math.max(0,Math.min(p-1,E+$)),S,E]},g})($0),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var T2=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},_2=50,ba=function(t,n,r){var a=t,o=a.itemSize,i=r.itemMetadataMap,s=r.lastMeasuredIndex;if(n>s){var l=0;if(s>=0){var c=i[s];l=c.offset+c.size}for(var u=s+1;u<=n;u++){var d=o(u);i[u]={offset:l,size:d},l+=d}r.lastMeasuredIndex=n}return i[n]},B2=function(t,n,r){var a=n.itemMetadataMap,o=n.lastMeasuredIndex,i=o>0?a[o].offset:0;return i>=r?ov(t,n,o,0,r):L2(t,n,Math.max(0,o),r)},ov=function(t,n,r,a,o){for(;a<=r;){var i=a+Math.floor((r-a)/2),s=ba(t,i,n).offset;if(s===o)return i;s<o?a=i+1:s>o&&(r=i-1)}return a>0?a-1:0},L2=function(t,n,r,a){for(var o=t.itemCount,i=1;r<o&&ba(t,r,n).offset<a;)r+=i,i*=2;return ov(t,n,Math.min(r,o-1),Math.floor(r/2),a)},vf=function(t,n){var r=t.itemCount,a=n.itemMetadataMap,o=n.estimatedItemSize,i=n.lastMeasuredIndex,s=0;if(i>=r&&(i=r-1),i>=0){var l=a[i];s=l.offset+l.size}var c=r-i-1,u=c*o;return s+u},z2=A2({getItemOffset:function(t,n,r){return ba(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:vf,getOffsetForIndexAndAlignment:function(t,n,r,a,o,i){var s=t.direction,l=t.height,c=t.layout,u=t.width,d=s==="horizontal"||c==="horizontal",g=d?u:l,h=ba(t,n,o),v=vf(t,o),m=Math.max(0,Math.min(v-g,h.offset)),p=Math.max(0,h.offset-g+h.size+i);switch(r==="smart"&&(a>=p-g&&a<=m+g?r="auto":r="center"),r){case"start":return m;case"end":return p;case"center":return Math.round(p+(m-p)/2);case"auto":default:return a>=p&&a<=m?a:a<p?p:m}},getStartIndexForOffset:function(t,n,r){return B2(t,r,n)},getStopIndexForStartIndex:function(t,n,r,a){for(var o=t.direction,i=t.height,s=t.itemCount,l=t.layout,c=t.width,u=o==="horizontal"||l==="horizontal",d=u?c:i,g=ba(t,n,a),h=r+d,v=g.offset+g.size,m=n;m<s-1&&v<h;)m++,v+=ba(t,m,a).size;return m},initInstanceProps:function(t,n){var r=t,a=r.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:a||_2,lastMeasuredIndex:-1};return n.resetAfterIndex=function(i,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,i-1),n._getItemStyleCache(-1),s&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}});async function H2(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function V2(e){let t,n,r,a=!1;return function(i){t===void 0?(t=i,n=0,r=-1):t=W2(t,i);const s=t.length;let l=0;for(;n<s;){a&&(t[n]===10&&(l=++n),a=!1);let c=-1;for(;n<s&&c===-1;++n)switch(t[n]){case 58:r===-1&&(r=n-l);break;case 13:a=!0;case 10:c=n;break}if(c===-1)break;e(t.subarray(l,c),r),l=n,r=-1}l===s?t=void 0:l!==0&&(t=t.subarray(l),n-=l)}}function K2(e,t,n){let r=hf();const a=new TextDecoder;return function(i,s){if(i.length===0)n==null||n(r),r=hf();else if(s>0){const l=a.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=a.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+`
|
|
98
|
+
`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const d=parseInt(u,10);isNaN(d)||t(r.retry=d);break}}}}function W2(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function hf(){return{data:"",event:"",id:"",retry:void 0}}var q2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Yl="text/event-stream",U2=1e3,yf="last-event-id";function Y2(e,t){var{signal:n,headers:r,onopen:a,onmessage:o,onclose:i,onerror:s,openWhenHidden:l,fetch:c}=t,u=q2(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((d,g)=>{const h=Object.assign({},r);h.accept||(h.accept=Yl);let v;function m(){v.abort(),document.hidden||C()}l||document.addEventListener("visibilitychange",m);let p=U2,b=0;function y(){document.removeEventListener("visibilitychange",m),window.clearTimeout(b),v.abort()}n==null||n.addEventListener("abort",()=>{y(),d()});const x=c??window.fetch,w=a??G2;async function C(){var S;v=new AbortController;try{const E=await x(e,Object.assign(Object.assign({},u),{headers:h,signal:v.signal}));await w(E),await H2(E.body,V2(K2(k=>{k?h[yf]=k:delete h[yf]},k=>{p=k},o))),i==null||i(),y(),d()}catch(E){if(!v.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:p;window.clearTimeout(b),b=window.setTimeout(C,k)}catch(k){y(),g(k)}}}C()})}function G2(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(Yl)))throw new Error(`Expected content-type to be ${Yl}, Actual: ${t}`)}function iv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bf={exports:{}},Za={};/**
|
|
6
99
|
* @license React
|
|
7
|
-
* react-
|
|
100
|
+
* react-jsx-runtime.production.min.js
|
|
8
101
|
*
|
|
9
102
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
103
|
*
|
|
11
104
|
* This source code is licensed under the MIT license found in the
|
|
12
105
|
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var cd;function hb(){if(cd)return Ve;cd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function v(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case o:case n:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case l:case d:case f:case a:return g;default:return b}}case t:return b}}}return Ve.ContextConsumer=i,Ve.ContextProvider=a,Ve.Element=e,Ve.ForwardRef=l,Ve.Fragment=r,Ve.Lazy=d,Ve.Memo=f,Ve.Portal=t,Ve.Profiler=o,Ve.StrictMode=n,Ve.Suspense=c,Ve.SuspenseList=u,Ve.isAsyncMode=function(){return!1},Ve.isConcurrentMode=function(){return!1},Ve.isContextConsumer=function(g){return v(g)===i},Ve.isContextProvider=function(g){return v(g)===a},Ve.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ve.isForwardRef=function(g){return v(g)===l},Ve.isFragment=function(g){return v(g)===r},Ve.isLazy=function(g){return v(g)===d},Ve.isMemo=function(g){return v(g)===f},Ve.isPortal=function(g){return v(g)===t},Ve.isProfiler=function(g){return v(g)===o},Ve.isStrictMode=function(g){return v(g)===n},Ve.isSuspense=function(g){return v(g)===c},Ve.isSuspenseList=function(g){return v(g)===u},Ve.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===c||g===u||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===a||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},Ve.typeOf=v,Ve}var ud;function pb(){return ud||(ud=1,fl.exports=hb()),fl.exports}var dl=pb();function tf(e,t,r){var n=m.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var yb=Number(Cv.split(".")[0]),rf=function(t,r){typeof t=="function"?t(r):be(t)==="object"&&t&&"current"in t&&(t.current=r)},wn=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(a){r.forEach(function(i){rf(i,a)})}},ms=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tf(function(){return wn.apply(void 0,r)},r,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},Mo=function(t){var r,n;if(!t)return!1;if(Fv(t)&&yb>=19)return!0;var o=dl.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==dl.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==dl.ForwardRef)};function Fv(e){return Ju(e)&&!Ev(e)}var za=function(t){if(t&&Fv(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},ac=m.createContext(null);function bb(e){var t=e.children,r=e.onBatchResize,n=m.useRef(0),o=m.useRef([]),a=m.useContext(ac),i=m.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(o.current),o.current=[])}),a==null||a(s,l,c)},[r,a]);return m.createElement(ac.Provider,{value:i},t)}var Mv=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,a){return o[0]===r?(n=a,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];r.call(n,i[1],i[0])}},t})()})(),ic=typeof window<"u"&&typeof document<"u"&&window.document===document,Yi=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Cb=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Yi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),xb=2;function wb(e,t){var r=!1,n=!1,o=0;function a(){r&&(r=!1,e()),n&&s()}function i(){Cb(a)}function s(){var l=Date.now();if(r){if(l-o<xb)return;n=!0}else r=!0,n=!1,setTimeout(i,t);o=l}return s}var Sb=20,Eb=["top","right","bottom","left","width","height","size","weight"],$b=typeof MutationObserver<"u",Ob=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=wb(this.refresh.bind(this),Sb)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ic||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$b?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ic||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=Eb.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Rv=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Co=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Yi}),Av=gs(0,0,0,0);function Qi(e){return parseFloat(e)||0}function fd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var a=e["border-"+o+"-width"];return n+Qi(a)},0)}function Pb(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var a=o[n],i=e["padding-"+a];r[a]=Qi(i)}return r}function Fb(e){var t=e.getBBox();return gs(0,0,t.width,t.height)}function Mb(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Av;var n=Co(e).getComputedStyle(e),o=Pb(n),a=o.left+o.right,i=o.top+o.bottom,s=Qi(n.width),l=Qi(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=fd(n,"left","right")+a),Math.round(l+i)!==r&&(l-=fd(n,"top","bottom")+i)),!Ab(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return gs(o.left,o.top,s,l)}var Rb=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Co(e).SVGGraphicsElement}:function(e){return e instanceof Co(e).SVGElement&&typeof e.getBBox=="function"}})();function Ab(e){return e===Co(e).document.documentElement}function Tb(e){return ic?Rb(e)?Fb(e):Mb(e):Av}function jb(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return Rv(i,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),i}function gs(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Ib=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=gs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Tb(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),_b=(function(){function e(t,r){var n=jb(r);Rv(this,{target:t,contentRect:n})}return e})(),kb=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Mv,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Co(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ib(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Co(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new _b(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Tv=typeof WeakMap<"u"?new WeakMap:new Mv,jv=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ob.getInstance(),n=new kb(t,r,this);Tv.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){jv.prototype[e]=function(){var t;return(t=Tv.get(this))[e].apply(t,arguments)}});var Nb=(function(){return typeof Yi.ResizeObserver<"u"?Yi.ResizeObserver:jv})(),mn=new Map;function Lb(e){e.forEach(function(t){var r,n=t.target;(r=mn.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var Iv=new Nb(Lb);function zb(e,t){mn.has(e)||(mn.set(e,new Set),Iv.observe(e)),mn.get(e).add(t)}function Bb(e,t){mn.has(e)&&(mn.get(e).delete(t),mn.get(e).size||(Iv.unobserve(e),mn.delete(e)))}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ov(n.key),n)}}function Rt(e,t,r){return t&&dd(e.prototype,t),r&&dd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function va(e,t){return va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},va(e,t)}function Sn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&va(e,t)}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ha(e)}function nf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nf=function(){return!!e})()}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Db(e,t){if(t&&(be(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Me(e)}function En(e){var t=nf();return function(){var r,n=ha(e);if(t){var o=ha(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Db(this,r)}}var Hb=(function(e){Sn(r,e);var t=En(r);function r(){return Mt(this,r),t.apply(this,arguments)}return Rt(r,[{key:"render",value:function(){return this.props.children}}]),r})(m.Component);function Vb(e,t){var r=e.children,n=e.disabled,o=m.useRef(null),a=m.useRef(null),i=m.useContext(ac),s=typeof r=="function",l=s?r(o):r,c=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m.isValidElement(l)&&Mo(l),f=u?za(l):null,d=ms(f,o),p=function(){var b;return Ti(o.current)||(o.current&&be(o.current)==="object"?Ti((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Ti(a.current)};m.useImperativeHandle(t,function(){return p()});var h=m.useRef(e);h.current=e;var v=m.useCallback(function(g){var b=h.current,y=b.onResize,C=b.data,S=g.getBoundingClientRect(),x=S.width,E=S.height,w=g.offsetWidth,$=g.offsetHeight,O=Math.floor(x),P=Math.floor(E);if(c.current.width!==O||c.current.height!==P||c.current.offsetWidth!==w||c.current.offsetHeight!==$){var M={width:O,height:P,offsetWidth:w,offsetHeight:$};c.current=M;var T=w===Math.round(x)?x:w,I=$===Math.round(E)?E:$,R=D(D({},M),{},{offsetWidth:T,offsetHeight:I});i==null||i(R,g,C),y&&Promise.resolve().then(function(){y(R,g)})}},[]);return m.useEffect(function(){var g=p();return g&&!n&&zb(g,v),function(){return Bb(g,v)}},[o.current,n]),m.createElement(Hb,{ref:a},u?m.cloneElement(l,{ref:d}):l)}var Wb=m.forwardRef(Vb),qb="rc-observer-key";function Ub(e,t){var r=e.children,n=typeof r=="function"?[r]:ma(r);return n.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(qb,"-").concat(a);return m.createElement(Wb,qe({},e,{key:i,ref:a===0?t:void 0}),o)})}var vs=m.forwardRef(Ub);vs.Collection=bb;function sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Gb(e){if(Array.isArray(e))return sc(e)}function _v(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function of(e,t){if(e){if(typeof e=="string")return sc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sc(e,t):void 0}}function Xb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e){return Gb(e)||_v(e)||of(e)||Xb()}var kv=function(t){return+setTimeout(t,16)},Nv=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(kv=function(t){return window.requestAnimationFrame(t)},Nv=function(t){return window.cancelAnimationFrame(t)});var md=0,af=new Map;function Lv(e){af.delete(e)}var yr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;md+=1;var n=md;function o(a){if(a===0)Lv(n),t();else{var i=kv(function(){o(a-1)});af.set(n,i)}}return o(r),n};yr.cancel=function(e){var t=af.get(e);return Lv(e),Nv(t)};function zv(e){if(Array.isArray(e))return e}function Kb(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Bv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(e,t){return zv(e)||Kb(e,t)||of(e,t)||Bv()}function pa(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Zb(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var gd="data-rc-order",vd="data-rc-priority",Yb="rc-util-key",lc=new Map;function Dv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Yb}function hs(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Qb(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sf(e){return Array.from((lc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Hv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!sr())return null;var r=t.csp,n=t.prepend,o=t.priority,a=o===void 0?0:o,i=Qb(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(gd,i),s&&a&&l.setAttribute(vd,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=hs(t),u=c.firstChild;if(n){if(s){var f=(t.styles||sf(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(gd)))return!1;var p=Number(d.getAttribute(vd)||0);return a>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Vv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=hs(t);return(t.styles||sf(r)).find(function(n){return n.getAttribute(Dv(t))===e})}function ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Vv(e,t);if(r){var n=hs(t);n.removeChild(r)}}function Jb(e,t){var r=lc.get(e);if(!r||!Zb(document,r)){var n=Hv("",t),o=n.parentNode;lc.set(e,o),e.removeChild(n)}}function Gr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=hs(r),o=sf(n),a=D(D({},r),{},{styles:o});Jb(n,a);var i=Vv(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Hv(e,a);return u.setAttribute(Dv(a),t),u}function e1(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ft(e,t){if(e==null)return{};var r,n,o=e1(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function cc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(ar(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&be(a)==="object"&&be(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(d){return o(a[d],i[d],c)})}return!1}return o(e,t)}var t1="%";function uc(e){return e.join(t1)}var r1=(function(){function e(t){Mt(this,e),k(this,"instanceId",void 0),k(this,"cache",new Map),k(this,"extracted",new Set),this.instanceId=t}return Rt(e,[{key:"get",value:function(r){return this.opGet(uc(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(uc(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),a=n(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e})(),xo="data-token-hash",Ar="data-css-hash",gn="__cssinjs_instance__";function n1(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ar,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[gn]=o[gn]||e,o[gn]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Ar,"]"))).forEach(function(o){var a=o.getAttribute(Ar);if(n[a]){if(o[gn]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else n[a]=!0})}return new r1(e)}var Ba=m.createContext({hashPriority:"low",cache:n1(),defaultCache:!0});function o1(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var lf=(function(){function e(){Mt(this,e),k(this,"cache",void 0),k(this,"keys",void 0),k(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Rt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=ee(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=ee(a,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var a;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!o1(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();k(lf,"MAX_CACHE_SIZE",20);k(lf,"MAX_CACHE_OFFSET",5);var hd=0,Wv=(function(){function e(t){Mt(this,e),k(this,"derivatives",void 0),k(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=hd,t.length===0&&(t.length>0,void 0),hd+=1}return Rt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),ml=new lf;function fc(e){var t=Array.isArray(e)?e:[e];return ml.has(t)||ml.set(t,new Wv(t)),ml.get(t)}var a1=new WeakMap,gl={};function i1(e,t){for(var r=a1,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(gl)||r.set(gl,e()),r.get(gl)}var pd=new WeakMap;function oa(e){var t=pd.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Wv?t+=n.id:n&&be(n)==="object"?t+=oa(n):t+=n}),t=pa(t),pd.set(e,t)),t}function yd(e,t){return pa("".concat(t,"_").concat(oa(e)))}var dc=sr();function Ae(e){return typeof e=="number"?"".concat(e,"px"):e}function Ji(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=D(D({},n),{},k(k({},xo,t),Ar,r)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var ji=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},s1=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var a=ee(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},qv=function(t,r,n){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=ee(i,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var d,p=ji(u,n==null?void 0:n.prefix);o[p]=typeof f=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(p,")")}}),[a,s1(o,r,{scope:n==null?void 0:n.scope})]},bd=sr()?m.useLayoutEffect:m.useEffect,dt=function(t,r){var n=m.useRef(!0);bd(function(){return t(n.current)},r),bd(function(){return n.current=!1,function(){n.current=!0}},[])},Cd=function(t,r){dt(function(n){if(!n)return t()},r)},l1=D({},m),xd=l1.useInsertionEffect,c1=function(t,r,n){m.useMemo(t,n),dt(function(){return r(!0)},n)},u1=xd?function(e,t,r){return xd(function(){return e(),t()},r)}:c1,f1=D({},m),d1=f1.useInsertionEffect,m1=function(t){var r=[],n=!1;function o(a){n||r.push(a)}return m.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),o},g1=function(){return function(t){t()}},v1=typeof d1<"u"?m1:g1;function cf(e,t,r,n,o){var a=m.useContext(Ba),i=a.cache,s=[e].concat(ie(t)),l=uc(s),c=v1([l]),u=function(h){i.opUpdate(l,function(v){var g=v||[void 0,void 0],b=ee(g,2),y=b[0],C=y===void 0?0:y,S=b[1],x=S,E=x||r(),w=[C,E];return h?h(w):w})};m.useMemo(function(){u()},[l]);var f=i.opGet(l),d=f[1];return u1(function(){o==null||o(d)},function(p){return u(function(h){var v=ee(h,2),g=v[0],b=v[1];return p&&g===0&&(o==null||o(d)),[g+1,b]}),function(){i.opUpdate(l,function(h){var v=h||[],g=ee(v,2),b=g[0],y=b===void 0?0:b,C=g[1],S=y-1;return S===0?(c(function(){(p||!i.opGet(l))&&(n==null||n(C,!1))}),null):[y-1,C]})}},[l]),d}var h1={},p1="css",Tn=new Map;function y1(e){Tn.set(e,(Tn.get(e)||0)+1)}function b1(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(xo,'="').concat(e,'"]'));r.forEach(function(n){if(n[gn]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var C1=0;function x1(e,t){Tn.set(e,(Tn.get(e)||0)-1);var r=new Set;Tn.forEach(function(n,o){n<=0&&r.add(o)}),Tn.size-r.size>C1&&r.forEach(function(n){b1(n,t),Tn.delete(n)})}var w1=function(t,r,n,o){var a=n.getDerivativeToken(t),i=D(D({},a),r);return o&&(i=o(i)),i},Uv="token";function S1(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=rt(Ba),o=n.cache.instanceId,a=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?h1:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,p=i1(function(){return Object.assign.apply(Object,[{}].concat(ie(t)))},t),h=oa(p),v=oa(c),g=d?oa(d):"",b=cf(Uv,[s,e.id,h,v,g],function(){var y,C=f?f(p,c,e):w1(p,c,e,u),S=D({},C),x="";if(d){var E=qv(C,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),w=ee(E,2);C=w[0],x=w[1]}var $=yd(C,s);C._tokenKey=$,S._tokenKey=yd(S,s);var O=(y=d==null?void 0:d.key)!==null&&y!==void 0?y:$;C._themeKey=O,y1(O);var P="".concat(p1,"-").concat(pa($));return C._hashId=P,[C,P,S,x,(d==null?void 0:d.key)||""]},function(y){x1(y[0]._themeKey,o)},function(y){var C=ee(y,4),S=C[0],x=C[3];if(d&&x){var E=Gr(x,pa("css-variables-".concat(S._themeKey)),{mark:Ar,prepend:"queue",attachTo:a,priority:-999});E[gn]=o,E.setAttribute(xo,S._themeKey)}});return b}var E1=function(t,r,n){var o=ee(t,5),a=o[2],i=o[3],s=o[4],l=n||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Ji(i,s,u,d,c);return[f,u,p]},$1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gv="comm",Xv="rule",Kv="decl",O1="@import",P1="@namespace",F1="@keyframes",M1="@layer",Zv=Math.abs,uf=String.fromCharCode;function Yv(e){return e.trim()}function Ii(e,t,r){return e.replace(t,r)}function R1(e,t,r){return e.indexOf(t,r)}function ho(e,t){return e.charCodeAt(t)|0}function wo(e,t,r){return e.slice(t,r)}function Nr(e){return e.length}function A1(e){return e.length}function mi(e,t){return t.push(e),e}var ps=1,So=1,Qv=0,br=0,pt=0,Ro="";function ff(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ps,column:So,length:i,return:"",siblings:s}}function T1(){return pt}function j1(){return pt=br>0?ho(Ro,--br):0,So--,pt===10&&(So=1,ps--),pt}function Tr(){return pt=br<Qv?ho(Ro,br++):0,So++,pt===10&&(So=1,ps++),pt}function vn(){return ho(Ro,br)}function _i(){return br}function ys(e,t){return wo(Ro,e,t)}function ba(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I1(e){return ps=So=1,Qv=Nr(Ro=e),br=0,[]}function _1(e){return Ro="",e}function vl(e){return Yv(ys(br-1,mc(e===91?e+2:e===40?e+1:e)))}function k1(e){for(;(pt=vn())&&pt<33;)Tr();return ba(e)>2||ba(pt)>3?"":" "}function N1(e,t){for(;--t&&Tr()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return ys(e,_i()+(t<6&&vn()==32&&Tr()==32))}function mc(e){for(;Tr();)switch(pt){case e:return br;case 34:case 39:e!==34&&e!==39&&mc(pt);break;case 40:e===41&&mc(e);break;case 92:Tr();break}return br}function L1(e,t){for(;Tr()&&e+pt!==57;)if(e+pt===84&&vn()===47)break;return"/*"+ys(t,br-1)+"*"+uf(e===47?e:Tr())}function z1(e){for(;!ba(vn());)Tr();return ys(e,br)}function B1(e){return _1(ki("",null,null,null,[""],e=I1(e),0,[0],e))}function ki(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,f=i,d=0,p=0,h=0,v=1,g=1,b=1,y=0,C="",S=o,x=a,E=n,w=C;g;)switch(h=y,y=Tr()){case 40:if(h!=108&&ho(w,f-1)==58){R1(w+=Ii(vl(y),"&","&\f"),"&\f",Zv(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=vl(y);break;case 9:case 10:case 13:case 32:w+=k1(h);break;case 92:w+=N1(_i()-1,7);continue;case 47:switch(vn()){case 42:case 47:mi(D1(L1(Tr(),_i()),t,r,l),l),(ba(h||1)==5||ba(vn()||1)==5)&&Nr(w)&&wo(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*v:s[c++]=Nr(w)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(w=Ii(w,/\f/g,"")),p>0&&(Nr(w)-f||v===0&&h===47)&&mi(p>32?Sd(w+";",n,r,f-1,l):Sd(Ii(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(mi(E=wd(w,t,r,c,u,o,s,C,S=[],x=[],f,a),a),y===123)if(u===0)ki(w,t,E,E,S,a,f,s,x);else{switch(d){case 99:if(ho(w,3)===110)break;case 108:if(ho(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ki(e,E,E,n&&mi(wd(e,E,E,0,0,o,s,C,o,S=[],f,x),x),o,x,f,s,n?S:x):ki(w,E,E,E,[""],x,0,s,x)}}c=u=p=0,v=b=1,C=w="",f=i;break;case 58:f=1+Nr(w),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&j1()==125)continue}switch(w+=uf(y),y*v){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Nr(w)-1)*b,b=1;break;case 64:vn()===45&&(w+=vl(Tr())),d=vn(),u=f=Nr(C=w+=z1(_i())),y++;break;case 45:h===45&&Nr(w)==2&&(v=0)}}return a}function wd(e,t,r,n,o,a,i,s,l,c,u,f){for(var d=o-1,p=o===0?a:[""],h=A1(p),v=0,g=0,b=0;v<n;++v)for(var y=0,C=wo(e,d+1,d=Zv(g=i[v])),S=e;y<h;++y)(S=Yv(g>0?p[y]+" "+C:Ii(C,/&\f/g,p[y])))&&(l[b++]=S);return ff(e,t,r,o===0?Xv:s,l,c,u,f)}function D1(e,t,r,n){return ff(e,t,r,Gv,uf(T1()),wo(e,2,-2),0,n)}function Sd(e,t,r,n,o){return ff(e,t,r,Kv,wo(e,0,n),wo(e,n+1,-1),n,o)}function gc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function H1(e,t,r,n){switch(e.type){case M1:if(e.children.length)break;case O1:case P1:case Kv:return e.return=e.return||e.value;case Gv:return"";case F1:return e.return=e.value+"{"+gc(e.children,n)+"}";case Xv:if(!Nr(e.value=e.props.join(",")))return""}return Nr(r=gc(e.children,n))?e.return=e.value+"{"+r+"}":""}var Ed="data-ant-cssinjs-cache-path",Jv="_FILE_STYLE__",Bn,eh=!0;function V1(){if(!Bn&&(Bn={},sr())){var e=document.createElement("div");e.className=Ed,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=ee(a,2),s=i[0],l=i[1];Bn[s]=l});var r=document.querySelector("style[".concat(Ed,"]"));if(r){var n;eh=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function W1(e){return V1(),!!Bn[e]}function q1(e){var t=Bn[e],r=null;if(t&&sr())if(eh)r=Jv;else{var n=document.querySelector("style[".concat(Ar,'="').concat(Bn[e],'"]'));n?r=n.innerHTML:delete Bn[e]}return[r,t]}var U1="_skip_check_",th="_multi_value_";function Ni(e){var t=gc(B1(e),H1);return t.replace(/\{%%%\:[^;];}/g,";")}function G1(e){return be(e)==="object"&&e&&(U1 in e||th in e)}function $d(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ie(l.slice(1))).join(" ")});return a.join(",")}var X1=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var d="",p={};function h(b){var y=b.getName(s);if(!p[y]){var C=e(b.style,r,{root:!1,parentSelectors:i}),S=ee(C,1),x=S[0];p[y]="@keyframes ".concat(b.getName(s)).concat(x)}}function v(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(C){Array.isArray(C)?v(C,y):C&&y.push(C)}),y}var g=v(Array.isArray(t)?t:[t]);return g.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")d+="".concat(y,`
|
|
16
|
-
`);else if(y._keyframe)h(y);else{var C=f.reduce(function(S,x){var E;return(x==null||(E=x.visit)===null||E===void 0?void 0:E.call(x,S))||S},y);Object.keys(C).forEach(function(S){var x=C[S];if(be(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!G1(x)){var E=!1,w=S.trim(),$=!1;(o||a)&&s?w.startsWith("@")?E=!0:w==="&"?w=$d("",s,c):w=$d(S,s,c):o&&!s&&(w==="&"||w==="")&&(w="",$=!0);var O=e(x,r,{root:$,injectHash:E,parentSelectors:[].concat(ie(i),[w])}),P=ee(O,2),M=P[0],T=P[1];p=D(D({},p),T),d+="".concat(w).concat(M)}else{let j=function(F,A){var _=F.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),N=A;!$1[F]&&typeof N=="number"&&N!==0&&(N="".concat(N,"px")),F==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(h(A),N=A.getName(s)),d+="".concat(_,":").concat(N,";")};var I,R=(I=x==null?void 0:x.value)!==null&&I!==void 0?I:x;be(x)==="object"&&x!==null&&x!==void 0&&x[th]&&Array.isArray(R)?R.forEach(function(F){j(S,F)}):j(S,R)}})}}),o?l&&(d&&(d="@layer ".concat(l.name," {").concat(d,"}")),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
|
|
17
|
-
`))):d="{".concat(d,"}"),[d,p]};function rh(e,t){return pa("".concat(e.join("%")).concat(t))}function K1(){return null}var nh="style";function vc(e,t){var r=e.token,n=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=m.useContext(Ba),f=u.autoClear;u.mock;var d=u.defaultCache,p=u.hashPriority,h=u.container,v=u.ssrInline,g=u.transformers,b=u.linters,y=u.cache,C=u.layer,S=r._tokenKey,x=[S];C&&x.push("layer"),x.push.apply(x,ie(n));var E=dc,w=cf(nh,x,function(){var T=x.join("|");if(W1(T)){var I=q1(T),R=ee(I,2),j=R[0],F=R[1];if(j)return[j,S,F,{},s,c]}var A=t(),_=X1(A,{hashId:o,hashPriority:p,layer:C?a:void 0,path:n.join("-"),transformers:g,linters:b}),N=ee(_,2),W=N[0],U=N[1],L=Ni(W),V=rh(x,L);return[L,S,V,U,s,c]},function(T,I){var R=ee(T,3),j=R[2];(I||f)&&dc&&ya(j,{mark:Ar,attachTo:h})},function(T){var I=ee(T,4),R=I[0];I[1];var j=I[2],F=I[3];if(E&&R!==Jv){var A={mark:Ar,prepend:C?!1:"queue",attachTo:h,priority:c},_=typeof i=="function"?i():i;_&&(A.csp={nonce:_});var N=[],W=[];Object.keys(F).forEach(function(L){L.startsWith("@layer")?N.push(L):W.push(L)}),N.forEach(function(L){Gr(Ni(F[L]),"_layer-".concat(L),D(D({},A),{},{prepend:!0}))});var U=Gr(R,j,A);U[gn]=y.instanceId,U.setAttribute(xo,S),W.forEach(function(L){Gr(Ni(F[L]),"_effect-".concat(L),A)})}}),$=ee(w,3),O=$[0],P=$[1],M=$[2];return function(T){var I;return!v||E||!d?I=m.createElement(K1,null):I=m.createElement("style",qe({},k(k({},xo,P),Ar,M),{dangerouslySetInnerHTML:{__html:O}})),m.createElement(m.Fragment,null,I,T)}}var Z1=function(t,r,n){var o=ee(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},d=f.plain;if(c)return null;var p=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=Ji(a,i,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var g=Ni(l[v]),b=Ji(g,i,"_effect-".concat(v),h,d);v.startsWith("@layer")?p=b+p:p+=b}}),[u,s,p]},oh="cssVar",Y1=function(t,r){var n=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=rt(Ba),f=u.cache.instanceId,d=u.container,p=s._tokenKey,h=[].concat(ie(t.path),[n,c,p]),v=cf(oh,h,function(){var g=r(),b=qv(g,n,{prefix:o,unitless:a,ignore:i,scope:c}),y=ee(b,2),C=y[0],S=y[1],x=rh(h,S);return[C,S,x,n]},function(g){var b=ee(g,3),y=b[2];dc&&ya(y,{mark:Ar,attachTo:d})},function(g){var b=ee(g,3),y=b[1],C=b[2];if(y){var S=Gr(y,C,{mark:Ar,prepend:"queue",attachTo:d,priority:-999});S[gn]=f,S.setAttribute(xo,n)}});return v},Q1=function(t,r,n){var o=ee(t,4),a=o[1],i=o[2],s=o[3],l=n||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Ji(a,s,i,f,c);return[u,i,d]};k(k(k({},nh,Z1),Uv,E1),oh,Q1);var Ut=(function(){function e(t,r){Mt(this,e),k(this,"name",void 0),k(this,"style",void 0),k(this,"_keyframe",!0),this.name=t,this.style=r}return Rt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function to(e){return e.notSplit=!0,e}to(["borderTop","borderBottom"]),to(["borderTop"]),to(["borderBottom"]),to(["borderLeft","borderRight"]),to(["borderLeft"]),to(["borderRight"]);var df=Yr({});function J1(e){return zv(e)||_v(e)||of(e)||Bv()}function pr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function ah(e,t,r,n){if(!t.length)return r;var o=J1(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=ie(e):s=D({},e),n&&r===void 0&&i.length===1?delete s[a][i[0]]:s[a]=ah(s[a],i,r,n),s}function hr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!pr(e,t.slice(0,-1))?e:ah(e,t,r,n)}function eC(e){return be(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Od(e){return Array.isArray(e)?[]:{}}var tC=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function co(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Od(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=pr(o,i),u=Array.isArray(c);if(u||eC(c)){if(!l.has(c)){l.add(c);var f=pr(n,i);u?n=hr(n,i,[]):(!f||be(f)!=="object")&&(n=hr(n,i,Od(c))),tC(c).forEach(function(d){a([].concat(ie(i),[d]),l)})}}else n=hr(n,i,c)}a([])}),n}function rC(){}const nC=m.createContext({}),bs=()=>{const e=()=>{};return e.deprecated=rC,e},ih=Yr(void 0);var oC={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},aC={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},iC=D(D({},aC),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const sh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Pd={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},iC),timePickerLocale:Object.assign({},sh)},Qt="${label} is not a valid ${type}",Wn={locale:"en",Pagination:oC,DatePicker:Pd,TimePicker:sh,Calendar:Pd,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Wn.Modal);let Li=[];const Fd=()=>Li.reduce((e,t)=>Object.assign(Object.assign({},e),t),Wn.Modal);function sC(e){if(e){const t=Object.assign({},e);return Li.push(t),Fd(),()=>{Li=Li.filter(r=>r!==t),Fd()}}Object.assign({},Wn.Modal)}const mf=Yr(void 0),lC=(e,t)=>{const r=m.useContext(mf),n=m.useMemo(()=>{var a;const i=Wn[e],s=(a=r==null?void 0:r[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),o=m.useMemo(()=>{const a=r==null?void 0:r.locale;return r!=null&&r.exist&&!a?Wn.locale:a},[r]);return[n,o]},cC="internalMark",uC=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;m.useEffect(()=>sC(t==null?void 0:t.Modal),[t]);const o=m.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m.createElement(mf.Provider,{value:o},r)},lh={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ca=Object.assign(Object.assign({},lh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
18
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
19
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Ot=Math.round;function hl(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Md=(e,t,r)=>r===0?e:e/100;function Ko(e,t){const r=t||255;return e>r?r:e<0?0:e}class it{constructor(t){k(this,"isValid",!0),k(this,"r",0),k(this,"g",0),k(this,"b",0),k(this,"a",1),k(this,"_h",void 0),k(this,"_s",void 0),k(this,"_l",void 0),k(this,"_v",void 0),k(this,"_max",void 0),k(this,"_min",void 0),k(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof it)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Ko(t.r),this.g=Ko(t.g),this.b=Ko(t.b),this.a=typeof t.a=="number"?Ko(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ot(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,a=s=>(n[s]-this[s])*o+this[s],i={r:Ot(a("r")),g:Ot(a("g")),b:Ot(a("b")),a:Ot(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=a=>Ot((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Ot(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Ot(this.getSaturation()*100),n=Ot(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Ko(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const d=Ot(n*255);this.r=d,this.g=d,this.b=d}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=n-c/2;this.r=Ot((a+f)*255),this.g=Ot((i+f)*255),this.b=Ot((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const a=Ot(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=Ot(n*(1-r)*255),u=Ot(n*(1-r*l)*255),f=Ot(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=hl(t,Md);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=hl(t,Md);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=hl(t,(n,o)=>o.includes("%")?Ot(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var gi=2,Rd=.16,fC=.05,dC=.05,mC=.15,ch=5,uh=4,gC=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ad(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-gi*t:Math.round(e.h)+gi*t:n=r?Math.round(e.h)+gi*t:Math.round(e.h)-gi*t,n<0?n+=360:n>=360&&(n-=360),n}function Td(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Rd*t:t===uh?n=e.s+Rd:n=e.s+fC*t,n>1&&(n=1),r&&t===ch&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function jd(e,t,r){var n;return r?n=e.v+dC*t:n=e.v-mC*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function xa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new it(e),o=n.toHsv(),a=ch;a>0;a-=1){var i=new it({h:Ad(o,a,!0),s:Td(o,a,!0),v:jd(o,a,!0)});r.push(i)}r.push(n);for(var s=1;s<=uh;s+=1){var l=new it({h:Ad(o,s),s:Td(o,s),v:jd(o,s)});r.push(l)}return t.theme==="dark"?gC.map(function(c){var u=c.index,f=c.amount;return new it(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var pl={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},hc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];hc.primary=hc[5];var pc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];pc.primary=pc[5];var yc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yc.primary=yc[5];var bc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bc.primary=bc[5];var Cc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Cc.primary=Cc[5];var xc=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];xc.primary=xc[5];var wc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wc.primary=wc[5];var Sc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Sc.primary=Sc[5];var es=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];es.primary=es[5];var Ec=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ec.primary=Ec[5];var $c=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$c.primary=$c[5];var Oc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Oc.primary=Oc[5];var Pc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pc.primary=Pc[5];var yl={red:hc,volcano:pc,orange:yc,gold:bc,yellow:Cc,lime:xc,green:wc,cyan:Sc,blue:es,geekblue:Ec,purple:$c,magenta:Oc,grey:Pc};function vC(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),d=t(o),p=t(a),h=t(i),v=r(l,c),g=e.colorLink||e.colorInfo,b=t(g),y=new it(p[1]).mix(new it(p[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:y,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new it("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const hC=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function pC(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},hC(n))}const yC=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function zi(e){return(e+8)/e}function bC(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,a=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:zi(r)}))}const CC=e=>{const t=bC(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function xC(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const ur=(e,t)=>new it(e).setA(t).toRgbString(),Zo=(e,t)=>new it(e).darken(t).toHexString(),wC=e=>{const t=xa(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},SC=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:ur(n,.88),colorTextSecondary:ur(n,.65),colorTextTertiary:ur(n,.45),colorTextQuaternary:ur(n,.25),colorFill:ur(n,.15),colorFillSecondary:ur(n,.06),colorFillTertiary:ur(n,.04),colorFillQuaternary:ur(n,.02),colorBgSolid:ur(n,1),colorBgSolidHover:ur(n,.75),colorBgSolidActive:ur(n,.95),colorBgLayout:Zo(r,4),colorBgContainer:Zo(r,0),colorBgElevated:Zo(r,0),colorBgSpotlight:ur(n,.85),colorBgBlur:"transparent",colorBorder:Zo(r,15),colorBorderSecondary:Zo(r,6)}};function EC(e){pl.pink=pl.magenta,yl.pink=yl.magenta;const t=Object.keys(lh).map(r=>{const n=e[r]===pl[r]?yl[r]:xa(e[r]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),vC(e,{generateColorPalettes:wC,generateNeutralColorPalettes:SC})),CC(e.fontSize)),xC(e)),yC(e)),pC(e))}const fh=fc(EC),Fc={token:Ca,override:{override:Ca},hashed:!0},dh=X.createContext(Fc),wa="ant",Cs="anticon",$C=["outlined","borderless","filled","underlined"],OC=(e,t)=>t||(e?`${wa}-${e}`:wa),nt=m.createContext({getPrefixCls:OC,iconPrefixCls:Cs}),{Consumer:lI}=nt,Id={};function Da(e){const t=m.useContext(nt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Id,styles:Id},a),{getPrefixCls:r,direction:n,getPopupContainer:o})}const PC=`-ant-${Date.now()}-${Math.random()}`;function FC(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new it(i),c=xa(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new it(t.primaryColor),s=xa(i.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(i,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(i,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(i,c=>c.setA(c.a*.12));const l=new it(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
20
|
-
:root {
|
|
21
|
-
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
22
|
-
`)}
|
|
23
|
-
}
|
|
24
|
-
`.trim()}function MC(e,t){const r=FC(e,t);sr()&&Gr(r,`${PC}-dynamic-theme`)}const bn=m.createContext(!1),mh=({children:e,disabled:t})=>{const r=m.useContext(bn);return m.createElement(bn.Provider,{value:t??r},e)},qn=m.createContext(void 0),RC=({children:e,size:t})=>{const r=m.useContext(qn);return m.createElement(qn.Provider,{value:t||r},e)};function AC(){const e=rt(bn),t=rt(qn);return{componentDisabled:e,componentSize:t}}var gh=Rt(function e(){Mt(this,e)}),vh="CALC_UNIT",TC=new RegExp(vh,"g");function bl(e){return typeof e=="number"?"".concat(e).concat(vh):e}var jC=(function(e){Sn(r,e);var t=En(r);function r(n,o){var a;Mt(this,r),a=t.call(this),k(Me(a),"result",""),k(Me(a),"unitlessCssVar",void 0),k(Me(a),"lowPriority",void 0);var i=be(n);return a.unitlessCssVar=o,n instanceof r?a.result="(".concat(n.result,")"):i==="number"?a.result=bl(n):i==="string"&&(a.result=n),a}return Rt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(bl(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(bl(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(TC,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(gh),IC=(function(e){Sn(r,e);var t=En(r);function r(n){var o;return Mt(this,r),o=t.call(this),k(Me(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return Rt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})(gh),_C=function(t,r){var n=t==="css"?jC:IC;return function(o){return new n(o,r)}},_d=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function kt(e){var t=m.useRef();t.current=e;var r=m.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}function Eo(e){var t=m.useRef(!1),r=m.useState(e),n=ee(r,2),o=n[0],a=n[1];m.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}function Cl(e){return e!==void 0}function xs(e,t){var r=t||{},n=r.defaultValue,o=r.value,a=r.onChange,i=r.postState,s=Eo(function(){return Cl(o)?o:Cl(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=ee(s,2),c=l[0],u=l[1],f=o!==void 0?o:c,d=i?i(f):f,p=kt(a),h=Eo([f]),v=ee(h,2),g=v[0],b=v[1];Cd(function(){var C=g[0];c!==C&&p(c,C)},[g]),Cd(function(){Cl(o)||u(o)},[o]);var y=kt(function(C,S){u(C,S),b([f],S)});return[d,y]}function kd(e,t,r,n){var o=D({},t[e]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(s){var l=ee(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=D(D({},r),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var hh=typeof CSSINJS_STATISTIC<"u",Mc=!0;function At(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!hh)return Object.assign.apply(Object,[{}].concat(t));Mc=!1;var n={};return t.forEach(function(o){if(be(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Mc=!0,n}var Nd={};function kC(){}var NC=function(t){var r,n=t,o=kC;return hh&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){if(Mc){var l;(l=r)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;Nd[i]={global:Array.from(r),component:D(D({},(l=Nd[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function Ld(e,t,r){if(typeof r=="function"){var n;return r(At(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function LC(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(a){return Ae(a)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(a){return Ae(a)}).join(","),")")}}}var zC=1e3*60*10,BC=(function(){function e(){Mt(this,e),k(this,"map",new Map),k(this,"objectIDMap",new WeakMap),k(this,"nextID",0),k(this,"lastAccessBeat",new Map),k(this,"accessBeat",0)}return Rt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(a){return a&&be(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(be(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,a){n-o>zC&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),zd=new BC;function DC(e,t){return X.useMemo(function(){var r=zd.get(t);if(r)return r;var n=e();return zd.set(t,n),n},t)}var HC=function(){return{}};function VC(e){var t=e.useCSP,r=t===void 0?HC:t,n=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(d,p,h,v){var g=Array.isArray(d)?d[0]:d;function b($){return"".concat(String(g)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(v==null?void 0:v.unitless)||{},C=typeof s=="function"?s(d):{},S=D(D({},C),{},k({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){S[b($)]=y[$]});var x=D(D({},v),{},{unitless:S,prefixToken:b}),E=u(d,p,h,x),w=c(g,h,x);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,P=E($,O),M=ee(P,2),T=M[1],I=w(O),R=ee(I,2),j=R[0],F=R[1];return[j,T,F]}}function c(d,p,h){var v=h.unitless,g=h.injectStyle,b=g===void 0?!0:g,y=h.prefixToken,C=h.ignore,S=function(w){var $=w.rootCls,O=w.cssVar,P=O===void 0?{}:O,M=n(),T=M.realToken;return Y1({path:[d],prefix:P.prefix,key:P.key,unitless:v,ignore:C,token:T,scope:$},function(){var I=Ld(d,T,p),R=kd(d,T,I,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(I).forEach(function(j){R[y(j)]=R[j],delete R[j]}),R}),null},x=function(w){var $=n(),O=$.cssVar;return[function(P){return b&&O?X.createElement(X.Fragment,null,X.createElement(S,{rootCls:w,cssVar:O,component:d}),P):P},O==null?void 0:O.key]};return x}function u(d,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(d)?d:[d,d],b=ee(g,1),y=b[0],C=g.join("-"),S=e.layer||{name:"antd"};return function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,w=n(),$=w.theme,O=w.realToken,P=w.hashId,M=w.token,T=w.cssVar,I=o(),R=I.rootPrefixCls,j=I.iconPrefixCls,F=r(),A=T?"css":"js",_=DC(function(){var B=new Set;return T&&Object.keys(v.unitless||{}).forEach(function(z){B.add(ji(z,T.prefix)),B.add(ji(z,_d(y,T.prefix)))}),_C(A,B)},[A,y,T==null?void 0:T.prefix]),N=LC(A),W=N.max,U=N.min,L={theme:$,token:M,hashId:P,nonce:function(){return F.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof a=="function"&&vc(D(D({},L),{},{clientOnly:!1,path:["Shared",R]}),function(){return a(M,{prefix:{rootPrefixCls:R,iconPrefixCls:j},csp:F})});var V=vc(D(D({},L),{},{path:[C,x,j]}),function(){if(v.injectStyle===!1)return[];var B=NC(M),z=B.token,q=B.flush,Y=Ld(y,O,h),Z=".".concat(x),Q=kd(y,O,Y,{deprecatedTokens:v.deprecatedTokens});T&&Y&&be(Y)==="object"&&Object.keys(Y).forEach(function(se){Y[se]="var(".concat(ji(se,_d(y,T.prefix)),")")});var J=At(z,{componentCls:Z,prefixCls:x,iconCls:".".concat(j),antCls:".".concat(R),calc:_,max:W,min:U},T?Y:Q),ne=p(J,{hashId:P,prefixCls:x,rootPrefixCls:R,iconPrefixCls:j});q(y,Q);var ae=typeof i=="function"?i(J,x,E,v.resetFont):null;return[v.resetStyle===!1?null:ae,ne]});return[V,P]}}function f(d,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(d,p,h,D({resetStyle:!1,order:-998},v)),b=function(C){var S=C.prefixCls,x=C.rootCls,E=x===void 0?S:x;return g(S,E),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Un=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],WC="5.27.1";function xl(e){return e>=0&&e<=255}function ta(e,t){const{r,g:n,b:o,a}=new it(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new it(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-i*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(xl(u)&&xl(f)&&xl(d))return new it({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new it({r,g:n,b:o,a:1}).toRgbString()}var qC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function ph(e){const{override:t}=e,r=qC(e,["override"]),n=Object.assign({},t);Object.keys(Ca).forEach(d=>{delete n[d]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ta(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ta(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ta(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ta(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
25
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
-
`,boxShadowSecondary:`
|
|
29
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
-
`,boxShadowTertiary:`
|
|
33
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
34
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
35
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
36
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
37
|
-
0 1px 2px -2px ${new it("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
38
|
-
0 3px 6px 0 ${new it("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
39
|
-
0 5px 12px 4px ${new it("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
40
|
-
`,boxShadowDrawerRight:`
|
|
41
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
42
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
43
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
44
|
-
`,boxShadowDrawerLeft:`
|
|
45
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
46
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
47
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
48
|
-
`,boxShadowDrawerUp:`
|
|
49
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
-
`,boxShadowDrawerDown:`
|
|
53
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Bd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const yh={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},UC={motionBase:!0,motionUnit:!0},GC={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bh=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=Bd(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=ph(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=Bd(l,["theme"]);let f=u;c&&(f=bh(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function Qr(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=X.useContext(dh),a=`${WC}-${t||""}`,i=r||fh,[s,l,c]=S1(i,[Ca,e],{salt:a,override:n,getComputedToken:bh,formatToken:ph,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:yh,ignore:UC,preserve:GC}});return[i,c,t?l:"",s,o]}const Ao=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ch=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),XC=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),KC=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ZC=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},YC=(e,t)=>({outline:`${Ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),QC=(e,t)=>({"&:focus-visible":YC(e)}),xh=e=>({[`.${e}`]:Object.assign(Object.assign({},Ch()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Wr,genComponentStyleHook:JC,genSubStyleComponent:wh}=VC({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=rt(nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Qr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=rt(nt);return e??{}},getResetStyles:(e,t)=>{var r;const n=KC(e);return[n,{"&":n},xh((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:Cs)]},getCommonStyle:ZC,getCompUnitless:()=>yh});function ex(e,t){return Un.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const tx=(e,t)=>{const[r,n]=Qr();return vc({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>xh(e))},rx=Object.assign({},m),{useId:Dd}=rx,nx=()=>"",ox=typeof Dd>"u"?nx:Dd;function ax(e,t,r){var n;bs();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Fc),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:Fc.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=ox();return tf(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(d=>{c[d]=Object.assign(Object.assign({},c[d]),e.components[d])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!cc(c,f,!0)}))}var ix=["children"],Sh=m.createContext({});function sx(e){var t=e.children,r=Ft(e,ix);return m.createElement(Sh.Provider,{value:r},t)}var lx=(function(e){Sn(r,e);var t=En(r);function r(){return Mt(this,r),t.apply(this,arguments)}return Rt(r,[{key:"render",value:function(){return this.props.children}}]),r})(m.Component);function cx(e){var t=m.useReducer(function(s){return s+1},0),r=ee(t,2),n=r[1],o=m.useRef(e),a=kt(function(){return o.current}),i=kt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var un="none",vi="appear",hi="enter",pi="leave",Hd="none",Pr="prepare",uo="start",fo="active",gf="end",Eh="prepared";function Vd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function ux(e,t){var r={animationend:Vd("Animation","AnimationEnd"),transitionend:Vd("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var fx=ux(sr(),typeof window<"u"?window:{}),$h={};if(sr()){var dx=document.createElement("div");$h=dx.style}var yi={};function Oh(e){if(yi[e])return yi[e];var t=fx[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in $h)return yi[e]=t[a],yi[e]}return""}var Ph=Oh("animationend"),Fh=Oh("transitionend"),Mh=!!(Ph&&Fh),Wd=Ph||"animationend",qd=Fh||"transitionend";function Ud(e,t){if(!e)return null;if(be(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const mx=(function(e){var t=Ne();function r(o){o&&(o.removeEventListener(qd,e),o.removeEventListener(Wd,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(qd,e),o.addEventListener(Wd,e),t.current=o)}return m.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Rh=sr()?xv:bt;const gx=(function(){var e=m.useRef(null);function t(){yr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=yr(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return m.useEffect(function(){return function(){t()}},[]),[r,t]});var vx=[Pr,uo,fo,gf],hx=[Pr,Eh],Ah=!1,px=!0;function Th(e){return e===fo||e===gf}const yx=(function(e,t,r){var n=Eo(Hd),o=ee(n,2),a=o[0],i=o[1],s=gx(),l=ee(s,2),c=l[0],u=l[1];function f(){i(Pr,!0)}var d=t?hx:vx;return Rh(function(){if(a!==Hd&&a!==gf){var p=d.indexOf(a),h=d[p+1],v=r(a);v===Ah?i(h,!0):h&&c(function(g){function b(){g.isCanceled()||i(h,!0)}v===!0?b():Promise.resolve(v).then(b)})}},[e,a]),m.useEffect(function(){return function(){u()}},[]),[f,a]});function bx(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,p=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,g=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,C=n.onEnterActive,S=n.onLeaveActive,x=n.onAppearEnd,E=n.onEnterEnd,w=n.onLeaveEnd,$=n.onVisibleChanged,O=Eo(),P=ee(O,2),M=P[0],T=P[1],I=cx(un),R=ee(I,2),j=R[0],F=R[1],A=Eo(null),_=ee(A,2),N=_[0],W=_[1],U=j(),L=Ne(!1),V=Ne(null);function B(){return r()}var z=Ne(!1);function q(){F(un),W(null,!0)}var Y=kt(function(ue){var ge=j();if(ge!==un){var de=B();if(!(ue&&!ue.deadline&&ue.target!==de)){var te=z.current,ye;ge===vi&&te?ye=x==null?void 0:x(de,ue):ge===hi&&te?ye=E==null?void 0:E(de,ue):ge===pi&&te&&(ye=w==null?void 0:w(de,ue)),te&&ye!==!1&&q()}}}),Z=mx(Y),Q=ee(Z,1),J=Q[0],ne=function(ge){switch(ge){case vi:return k(k(k({},Pr,d),uo,v),fo,y);case hi:return k(k(k({},Pr,p),uo,g),fo,C);case pi:return k(k(k({},Pr,h),uo,b),fo,S);default:return{}}},ae=m.useMemo(function(){return ne(U)},[U]),se=yx(U,!e,function(ue){if(ue===Pr){var ge=ae[Pr];return ge?ge(B()):Ah}if(re in ae){var de;W(((de=ae[re])===null||de===void 0?void 0:de.call(ae,B(),null))||null)}return re===fo&&U!==un&&(J(B()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){Y({deadline:!0})},u))),re===Eh&&q(),px}),le=ee(se,2),ce=le[0],re=le[1],ve=Th(re);z.current=ve;var me=Ne(null);Rh(function(){if(!(L.current&&me.current===t)){T(t);var ue=L.current;L.current=!0;var ge;!ue&&t&&s&&(ge=vi),ue&&t&&a&&(ge=hi),(ue&&!t&&c||!ue&&f&&!t&&c)&&(ge=pi);var de=ne(ge);ge&&(e||de[Pr])?(F(ge),ce()):F(un),me.current=t}},[t]),bt(function(){(U===vi&&!s||U===hi&&!a||U===pi&&!c)&&F(un)},[s,a,c]),bt(function(){return function(){L.current=!1,clearTimeout(V.current)}},[]);var he=m.useRef(!1);bt(function(){M&&(he.current=!0),M!==void 0&&U===un&&((he.current||M)&&($==null||$(M)),he.current=!0)},[M,U]);var Le=N;return ae[Pr]&&re===uo&&(Le=D({transition:"none"},Le)),[U,re,Le,M??t]}function Cx(e){var t=e;be(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=m.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,d=o.motionName,p=o.leavedClassName,h=o.eventProps,v=m.useContext(Sh),g=v.motion,b=r(o,g),y=Ne(),C=Ne();function S(){try{return y.current instanceof HTMLElement?y.current:Ti(C.current)}catch{return null}}var x=bx(b,s,S,o),E=ee(x,4),w=E[0],$=E[1],O=E[2],P=E[3],M=m.useRef(P);P&&(M.current=!0);var T=m.useCallback(function(_){y.current=_,rf(a,_)},[a]),I,R=D(D({},h),{},{visible:s});if(!f)I=null;else if(w===un)P?I=f(D({},R),T):!c&&M.current&&p?I=f(D(D({},R),{},{className:p}),T):u||!c&&!p?I=f(D(D({},R),{},{style:{display:"none"}}),T):I=null;else{var j;$===Pr?j="prepare":Th($)?j="active":$===uo&&(j="start");var F=Ud(d,"".concat(w,"-").concat(j));I=f(D(D({},R),{},{className:oe(Ud(d,w),k(k({},F,F&&j),d,typeof d=="string")),style:O}),T)}if(m.isValidElement(I)&&Mo(I)){var A=za(I);A||(I=m.cloneElement(I,{ref:T}))}return m.createElement(lx,{ref:C},I)});return n.displayName="CSSMotion",n}const To=Cx(Mh);var Rc="add",Ac="keep",Tc="remove",wl="removed";function xx(e){var t;return e&&be(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function jc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(xx)}function wx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=jc(e),i=jc(t);a.forEach(function(c){for(var u=!1,f=n;f<o;f+=1){var d=i[f];if(d.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(p){return D(D({},p),{},{status:Rc})})),n=f),r.push(D(D({},d),{},{status:Ac})),n+=1,u=!0;break}}u||r.push(D(D({},c),{},{status:Tc}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return D(D({},c),{},{status:Rc})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==Tc}),r.forEach(function(u){u.key===c&&(u.status=Ac)})}),r}var Sx=["component","children","onVisibleChanged","onAllRemoved"],Ex=["status"],$x=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ox(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,r=(function(n){Sn(a,n);var o=En(a);function a(){var i;Mt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),k(Me(i),"state",{keyEntities:[]}),k(Me(i),"removeKey",function(u){i.setState(function(f){var d=f.keyEntities.map(function(p){return p.key!==u?p:D(D({},p),{},{status:wl})});return{keyEntities:d}},function(){var f=i.state.keyEntities,d=f.filter(function(p){var h=p.status;return h!==wl}).length;d===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Rt(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged;c.onAllRemoved;var p=Ft(c,Sx),h=u||m.Fragment,v={};return $x.forEach(function(g){v[g]=p[g],delete p[g]}),delete p.keys,m.createElement(h,p,l.map(function(g,b){var y=g.status,C=Ft(g,Ex),S=y===Rc||y===Ac;return m.createElement(t,qe({},v,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(E){d==null||d(E,{key:C.key}),E||s.removeKey(C.key)}}),function(x,E){return f(D(D({},x),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=jc(c),d=wx(u,f);return{keyEntities:d.filter(function(p){var h=u.find(function(v){var g=v.key;return p.key===g});return!(h&&h.status===wl&&p.status===Tc)})}}}]),a})(m.Component);return k(r,"defaultProps",{component:"div"}),r}const jh=Ox(Mh),Gd=m.createContext(!0);function Px(e){const t=m.useContext(Gd),{children:r}=e,[,n]=Qr(),{motion:o}=n,a=m.useRef(!1);return a.current||(a.current=t!==o),a.current?m.createElement(Gd.Provider,{value:o},m.createElement(sx,{motion:o},r)):r}const Fx=()=>null;var Mx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Rx=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ts,Ih,_h,kh;function Bi(){return ts||wa}function Ax(){return Ih||Cs}function Tx(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const jx=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(ts=t),r!==void 0&&(Ih=r),"holderRender"in e&&(kh=o),n&&(Tx(n)?MC(Bi(),n):_h=n)},Ix=()=>({getPrefixCls:(e,t)=>t||(e?`${Bi()}-${e}`:Bi()),getIconPrefixCls:Ax,getRootPrefixCls:()=>ts||Bi(),getTheme:()=>_h,holderRender:kh}),_x=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:S,segmented:x,statistic:E,spin:w,calendar:$,carousel:O,cascader:P,collapse:M,typography:T,checkbox:I,descriptions:R,divider:j,drawer:F,skeleton:A,steps:_,image:N,layout:W,list:U,mentions:L,modal:V,progress:B,result:z,slider:q,breadcrumb:Y,menu:Z,pagination:Q,input:J,textArea:ne,empty:ae,badge:se,radio:le,rate:ce,switch:re,transfer:ve,avatar:me,message:he,tag:Le,table:ue,card:ge,tabs:de,timeline:te,timePicker:ye,upload:Ie,notification:st,tree:Ze,colorPicker:Qe,datePicker:$t,rangePicker:Ue,flex:He,wave:Te,dropdown:Ce,warning:Ye,tour:xt,tooltip:ze,popover:lt,popconfirm:Sr,floatButton:$n,floatButtonGroup:en,variant:On,inputNumber:tn,treeSelect:Xt}=e,vt=m.useCallback((we,Fe)=>{const{prefixCls:et}=e;if(Fe)return Fe;const Ge=et||b.getPrefixCls("");return we?`${Ge}-${we}`:Ge},[b.getPrefixCls,e.prefixCls]),Je=y||b.iconPrefixCls||Cs,Ht=r||b.csp;tx(Je,Ht);const ht=ax(C,b.theme,{prefixCls:vt("")}),De={csp:Ht,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||g,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??p,popupOverflow:v,getPrefixCls:vt,iconPrefixCls:Je,theme:ht,segmented:x,statistic:E,spin:w,calendar:$,carousel:O,cascader:P,collapse:M,typography:T,checkbox:I,descriptions:R,divider:j,drawer:F,skeleton:A,steps:_,image:N,input:J,textArea:ne,layout:W,list:U,mentions:L,modal:V,progress:B,result:z,slider:q,breadcrumb:Y,menu:Z,pagination:Q,empty:ae,badge:se,radio:le,rate:ce,switch:re,transfer:ve,avatar:me,message:he,tag:Le,table:ue,card:ge,tabs:de,timeline:te,timePicker:ye,upload:Ie,notification:st,tree:Ze,colorPicker:Qe,datePicker:$t,rangePicker:Ue,flex:He,wave:Te,dropdown:Ce,warning:Ye,tour:xt,tooltip:ze,popover:lt,popconfirm:Sr,floatButton:$n,floatButtonGroup:en,variant:On,inputNumber:tn,treeSelect:Xt},je=Object.assign({},b);Object.keys(De).forEach(we=>{De[we]!==void 0&&(je[we]=De[we])}),Rx.forEach(we=>{const Fe=e[we];Fe&&(je[we]=Fe)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const tt=tf(()=>je,je,(we,Fe)=>{const et=Object.keys(we),Ge=Object.keys(Fe);return et.length!==Ge.length||et.some(zt=>we[zt]!==Fe[zt])}),{layer:Kt}=m.useContext(Ba),Tt=m.useMemo(()=>({prefixCls:Je,csp:Ht,layer:Kt?"antd":void 0}),[Je,Ht,Kt]);let Pe=m.createElement(m.Fragment,null,m.createElement(Fx,{dropdownMatchSelectWidth:p}),t);const Er=m.useMemo(()=>{var we,Fe,et,Ge;return co(((we=Wn.Form)===null||we===void 0?void 0:we.defaultValidateMessages)||{},((et=(Fe=tt.locale)===null||Fe===void 0?void 0:Fe.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((Ge=tt.form)===null||Ge===void 0?void 0:Ge.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[tt,i==null?void 0:i.validateMessages]);Object.keys(Er).length>0&&(Pe=m.createElement(ih.Provider,{value:Er},Pe)),s&&(Pe=m.createElement(uC,{locale:s,_ANT_MARK__:cC},Pe)),Pe=m.createElement(df.Provider,{value:Tt},Pe),l&&(Pe=m.createElement(RC,{size:l},Pe)),Pe=m.createElement(Px,null,Pe);const $r=m.useMemo(()=>{const we=ht||{},{algorithm:Fe,token:et,components:Ge,cssVar:zt}=we,rn=Mx(we,["algorithm","token","components","cssVar"]),Vt=Fe&&(!Array.isArray(Fe)||Fe.length>0)?fc(Fe):fh,jt={};Object.entries(Ge||{}).forEach(([Yt,nn])=>{const Be=Object.assign({},nn);"algorithm"in Be&&(Be.algorithm===!0?Be.theme=Vt:(Array.isArray(Be.algorithm)||typeof Be.algorithm=="function")&&(Be.theme=fc(Be.algorithm)),delete Be.algorithm),jt[Yt]=Be});const Zt=Object.assign(Object.assign({},Ca),et);return Object.assign(Object.assign({},rn),{theme:Vt,token:Zt,components:jt,override:Object.assign({override:Zt},jt),cssVar:zt})},[ht]);return C&&(Pe=m.createElement(dh.Provider,{value:$r},Pe)),tt.warning&&(Pe=m.createElement(nC.Provider,{value:tt.warning},Pe)),S!==void 0&&(Pe=m.createElement(mh,{disabled:S},Pe)),m.createElement(nt.Provider,{value:tt},Pe)},jo=e=>{const t=m.useContext(nt),r=m.useContext(mf);return m.createElement(_x,Object.assign({parentContext:t,legacyLocale:r},e))};jo.ConfigContext=nt;jo.SizeContext=qn;jo.config=jx;jo.useConfig=AC;Object.defineProperty(jo,"SizeContext",{get:()=>qn});var kx={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Nh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Nx(e){return Nh(e)instanceof ShadowRoot}function rs(e){return Nx(e)?Nh(e):null}function Lx(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function zx(e,t){ar(e,"[@ant-design/icons] ".concat(t))}function Xd(e){return be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(be(e.icon)==="object"||typeof e.icon=="function")}function Kd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Lx(r)]=n}return t},{})}function Ic(e,t,r){return r?X.createElement(e.tag,D(D({key:t},Kd(e.attrs)),r),(e.children||[]).map(function(n,o){return Ic(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):X.createElement(e.tag,D({key:t},Kd(e.attrs)),(e.children||[]).map(function(n,o){return Ic(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Lh(e){return xa(e)[0]}function zh(e){return e?Array.isArray(e)?e:[e]:[]}var Bx=`
|
|
57
|
-
.anticon {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
color: inherit;
|
|
61
|
-
font-style: normal;
|
|
62
|
-
line-height: 0;
|
|
63
|
-
text-align: center;
|
|
64
|
-
text-transform: none;
|
|
65
|
-
vertical-align: -0.125em;
|
|
66
|
-
text-rendering: optimizeLegibility;
|
|
67
|
-
-webkit-font-smoothing: antialiased;
|
|
68
|
-
-moz-osx-font-smoothing: grayscale;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.anticon > * {
|
|
72
|
-
line-height: 1;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.anticon svg {
|
|
76
|
-
display: inline-block;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.anticon::before {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.anticon .anticon-icon {
|
|
84
|
-
display: block;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.anticon[tabindex] {
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.anticon-spin::before,
|
|
92
|
-
.anticon-spin {
|
|
93
|
-
display: inline-block;
|
|
94
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
95
|
-
animation: loadingCircle 1s infinite linear;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@-webkit-keyframes loadingCircle {
|
|
99
|
-
100% {
|
|
100
|
-
-webkit-transform: rotate(360deg);
|
|
101
|
-
transform: rotate(360deg);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@keyframes loadingCircle {
|
|
106
|
-
100% {
|
|
107
|
-
-webkit-transform: rotate(360deg);
|
|
108
|
-
transform: rotate(360deg);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
`,Dx=function(t){var r=rt(df),n=r.csp,o=r.prefixCls,a=r.layer,i=Bx;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
112
|
-
`).concat(i,`
|
|
113
|
-
}`)),bt(function(){var s=t.current,l=rs(s);Gr(i,"@ant-design-icons",{prepend:!a,csp:n,attachTo:l})},[])},Hx=["icon","className","onClick","style","primaryColor","secondaryColor"],aa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Vx(e){var t=e.primaryColor,r=e.secondaryColor;aa.primaryColor=t,aa.secondaryColor=r||Lh(t),aa.calculated=!!r}function Wx(){return D({},aa)}var Io=function(t){var r=t.icon,n=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Ft(t,Hx),c=m.useRef(),u=aa;if(i&&(u={primaryColor:i,secondaryColor:s||Lh(i)}),Dx(c),zx(Xd(r),"icon should be icon definiton, but got ".concat(r)),!Xd(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=D(D({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Ic(f.icon,"svg-".concat(f.name),D(D({className:n,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Io.displayName="IconReact";Io.getTwoToneColors=Wx;Io.setTwoToneColors=Vx;function Bh(e){var t=zh(e),r=ee(t,2),n=r[0],o=r[1];return Io.setTwoToneColors({primaryColor:n,secondaryColor:o})}function qx(){var e=Io.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ux=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bh(es.primary);var lr=m.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ft(e,Ux),u=m.useContext(df),f=u.prefixCls,d=f===void 0?"anticon":f,p=u.rootClassName,h=oe(p,d,k(k({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!o||n.name==="loading"),r),v=i;v===void 0&&s&&(v=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=zh(l),y=ee(b,2),C=y[0],S=y[1];return m.createElement("span",qe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),m.createElement(Io,{icon:n,primaryColor:C,secondaryColor:S,style:g}))});lr.displayName="AntdIcon";lr.getTwoToneColor=qx;lr.setTwoToneColor=Bh;var Gx=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:kx}))},Dh=m.forwardRef(Gx),Xx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Kx=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:Xx}))},vf=m.forwardRef(Kx),Zx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Yx=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:Zx}))},Qx=m.forwardRef(Yx),Jx={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},ew=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:Jx}))},Hh=m.forwardRef(ew),tw={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"},rw=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:tw}))},nw=m.forwardRef(rw),ow=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
114
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
115
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
116
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
117
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
118
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
119
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
120
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
121
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
122
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
123
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
124
|
-
summary tabIndex target title type useMap value width wmode wrap`,aw=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
125
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
126
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
127
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
128
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
129
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
130
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,iw="".concat(ow," ").concat(aw).split(/[\s\n]+/),sw="aria-",lw="data-";function Zd(e,t){return e.indexOf(t)===0}function Vh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=D({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Zd(o,sw))||r.data&&Zd(o,lw)||r.attr&&iw.includes(o))&&(n[o]=e[o])}),n}function Wh(e){return e&&X.isValidElement(e)&&e.type===X.Fragment}const cw=(e,t,r)=>X.isValidElement(e)?X.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function $o(e,t){return cw(e,e,t)}const Yd=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Qd=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",bi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Qd(r.overflowY,t)||Qd(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},Ci=(e,t,r,n,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=r||i>=t&&s>=r?a-e-n:i>t&&s<r||a<e&&s>r?i-t+o:0,uw=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Jd=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:F=>F!==c;if(!Yd(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Yd(h)&&f(h);){if(h=uw(h),h===d){p.push(h);break}h!=null&&h===document.body&&bi(h)&&!bi(document.documentElement)||h!=null&&bi(h,u)&&p.push(h)}const v=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,g=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:C,width:S,top:x,right:E,bottom:w,left:$}=e.getBoundingClientRect(),{top:O,right:P,bottom:M,left:T}=(F=>{const A=window.getComputedStyle(F);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(e);let I=s==="start"||s==="nearest"?x-O:s==="end"?w+M:x+C/2-O+M,R=l==="center"?$+S/2-T+P:l==="end"?E+P:$-T;const j=[];for(let F=0;F<p.length;F++){const A=p[F],{height:_,width:N,top:W,right:U,bottom:L,left:V}=A.getBoundingClientRect();if(i==="if-needed"&&x>=0&&$>=0&&w<=g&&E<=v&&(A===d&&!bi(A)||x>=W&&w<=L&&$>=V&&E<=U))return j;const B=getComputedStyle(A),z=parseInt(B.borderLeftWidth,10),q=parseInt(B.borderTopWidth,10),Y=parseInt(B.borderRightWidth,10),Z=parseInt(B.borderBottomWidth,10);let Q=0,J=0;const ne="offsetWidth"in A?A.offsetWidth-A.clientWidth-z-Y:0,ae="offsetHeight"in A?A.offsetHeight-A.clientHeight-q-Z:0,se="offsetWidth"in A?A.offsetWidth===0?0:N/A.offsetWidth:0,le="offsetHeight"in A?A.offsetHeight===0?0:_/A.offsetHeight:0;if(d===A)Q=s==="start"?I:s==="end"?I-g:s==="nearest"?Ci(y,y+g,g,q,Z,y+I,y+I+C,C):I-g/2,J=l==="start"?R:l==="center"?R-v/2:l==="end"?R-v:Ci(b,b+v,v,z,Y,b+R,b+R+S,S),Q=Math.max(0,Q+y),J=Math.max(0,J+b);else{Q=s==="start"?I-W-q:s==="end"?I-L+Z+ae:s==="nearest"?Ci(W,L,_,q,Z+ae,I,I+C,C):I-(W+_/2)+ae/2,J=l==="start"?R-V-z:l==="center"?R-(V+N/2)+ne/2:l==="end"?R-U+Y+ne:Ci(V,U,N,z,Y+ne,R,R+S,S);const{scrollLeft:ce,scrollTop:re}=A;Q=le===0?0:Math.max(0,Math.min(re+Q/le,A.scrollHeight-_/le+ae)),J=se===0?0:Math.max(0,Math.min(ce+J/se,A.scrollWidth-N/se+ne)),I+=re-Q,R+=ce-J}j.push({el:A,top:Q,left:J})}return j},fw=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function dw(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Jd(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Jd(e,fw(t))){const s=a-r.top+r.bottom,l=i-r.left+r.right;o.scroll({top:s,left:l,behavior:n})}}const Zn=e=>{const[,,,,t]=Qr();return t?`${e}-css-var`:""};var mw={ENTER:13},qh=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,d=e.closable,p=e.closeIcon,h=p===void 0?"x":p,v=e.props,g=e.onClick,b=e.onNoticeClose,y=e.times,C=e.hovering,S=m.useState(!1),x=ee(S,2),E=x[0],w=x[1],$=m.useState(0),O=ee($,2),P=O[0],M=O[1],T=m.useState(0),I=ee(T,2),R=I[0],j=I[1],F=C||E,A=i>0&&s,_=function(){b(u)},N=function(z){(z.key==="Enter"||z.code==="Enter"||z.keyCode===mw.ENTER)&&_()};m.useEffect(function(){if(!F&&i>0){var B=Date.now()-R,z=setTimeout(function(){_()},i*1e3-R);return function(){c&&clearTimeout(z),j(Date.now()-B)}}},[i,F,y]),m.useEffect(function(){if(!F&&A&&(c||R===0)){var B=performance.now(),z,q=function Y(){cancelAnimationFrame(z),z=requestAnimationFrame(function(Z){var Q=Z+R-B,J=Math.min(Q/(i*1e3),1);M(J*100),J<1&&Y()})};return q(),function(){c&&cancelAnimationFrame(z)}}},[i,R,F,A,y]);var W=m.useMemo(function(){return be(d)==="object"&&d!==null?d:d?{closeIcon:h}:{}},[d,h]),U=Vh(W,!0),L=100-(!P||P<0?0:P>100?100:P),V="".concat(r,"-notice");return m.createElement("div",qe({},v,{ref:t,className:oe(V,o,k({},"".concat(V,"-closable"),d)),style:n,onMouseEnter:function(z){var q;w(!0),v==null||(q=v.onMouseEnter)===null||q===void 0||q.call(v,z)},onMouseLeave:function(z){var q;w(!1),v==null||(q=v.onMouseLeave)===null||q===void 0||q.call(v,z)},onClick:g}),m.createElement("div",{className:"".concat(V,"-content")},f),d&&m.createElement("a",qe({tabIndex:0,className:"".concat(V,"-close"),onKeyDown:N,"aria-label":"Close"},U,{onClick:function(z){z.preventDefault(),z.stopPropagation(),_()}}),W.closeIcon),A&&m.createElement("progress",{className:"".concat(V,"-progress"),max:"100",value:L},L+"%"))}),Uh=X.createContext({}),gw=function(t){var r=t.children,n=t.classNames;return X.createElement(Uh.Provider,{value:{classNames:n}},r)},em=8,tm=3,rm=16,vw=function(t){var r={offset:em,threshold:tm,gap:rm};if(t&&be(t)==="object"){var n,o,a;r.offset=(n=t.offset)!==null&&n!==void 0?n:em,r.threshold=(o=t.threshold)!==null&&o!==void 0?o:tm,r.gap=(a=t.gap)!==null&&a!==void 0?a:rm}return[!!t,r]},hw=["className","style","classNames","styles"],pw=function(t){var r=t.configList,n=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=rt(Uh),d=f.classNames,p=Ne({}),h=Kr(null),v=ee(h,2),g=v[0],b=v[1],y=Kr([]),C=ee(y,2),S=C[0],x=C[1],E=r.map(function(F){return{config:F,key:String(F.key)}}),w=vw(u),$=ee(w,2),O=$[0],P=$[1],M=P.offset,T=P.threshold,I=P.gap,R=O&&(S.length>0||E.length<=T),j=typeof s=="function"?s(n):s;return bt(function(){O&&S.length>1&&x(function(F){return F.filter(function(A){return E.some(function(_){var N=_.key;return A===N})})})},[S,E,O]),bt(function(){var F;if(O&&p.current[(F=E[E.length-1])===null||F===void 0?void 0:F.key]){var A;b(p.current[(A=E[E.length-1])===null||A===void 0?void 0:A.key])}},[E,O]),X.createElement(jh,qe({key:n,className:oe(o,"".concat(o,"-").concat(n),d==null?void 0:d.list,a,k(k({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),R)),style:i,keys:E,motionAppear:!0},j,{onAllRemoved:function(){l(n)}}),function(F,A){var _=F.config,N=F.className,W=F.style,U=F.index,L=_,V=L.key,B=L.times,z=String(V),q=_,Y=q.className,Z=q.style,Q=q.classNames,J=q.styles,ne=Ft(q,hw),ae=E.findIndex(function(te){return te.key===z}),se={};if(O){var le=E.length-1-(ae>-1?ae:U-1),ce=n==="top"||n==="bottom"?"-50%":"0";if(le>0){var re,ve,me;se.height=R?(re=p.current[z])===null||re===void 0?void 0:re.offsetHeight:g==null?void 0:g.offsetHeight;for(var he=0,Le=0;Le<le;Le++){var ue;he+=((ue=p.current[E[E.length-1-Le].key])===null||ue===void 0?void 0:ue.offsetHeight)+I}var ge=(R?he:le*M)*(n.startsWith("top")?1:-1),de=!R&&g!==null&&g!==void 0&&g.offsetWidth&&(ve=p.current[z])!==null&&ve!==void 0&&ve.offsetWidth?((g==null?void 0:g.offsetWidth)-M*2*(le<3?le:3))/((me=p.current[z])===null||me===void 0?void 0:me.offsetWidth):1;se.transform="translate3d(".concat(ce,", ").concat(ge,"px, 0) scaleX(").concat(de,")")}else se.transform="translate3d(".concat(ce,", 0, 0)")}return X.createElement("div",{ref:A,className:oe("".concat(o,"-notice-wrapper"),N,Q==null?void 0:Q.wrapper),style:D(D(D({},W),se),J==null?void 0:J.wrapper),onMouseEnter:function(){return x(function(ye){return ye.includes(z)?ye:[].concat(ie(ye),[z])})},onMouseLeave:function(){return x(function(ye){return ye.filter(function(Ie){return Ie!==z})})}},X.createElement(qh,qe({},ne,{ref:function(ye){ae>-1?p.current[z]=ye:delete p.current[z]},prefixCls:o,classNames:Q,styles:J,className:oe(Y,d==null?void 0:d.notice),style:Z,times:B,key:V,eventKey:V,onNoticeClose:c,hovering:O&&S.length>0})))})},yw=m.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-notification":r,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=m.useState([]),p=ee(d,2),h=p[0],v=p[1],g=function(O){var P,M=h.find(function(T){return T.key===O});M==null||(P=M.onClose)===null||P===void 0||P.call(M),v(function(T){return T.filter(function(I){return I.key!==O})})};m.useImperativeHandle(t,function(){return{open:function(O){v(function(P){var M=ie(P),T=M.findIndex(function(j){return j.key===O.key}),I=D({},O);if(T>=0){var R;I.times=(((R=P[T])===null||R===void 0?void 0:R.times)||0)+1,M[T]=I}else I.times=0,M.push(I);return i>0&&M.length>i&&(M=M.slice(-i)),M})},close:function(O){g(O)},destroy:function(){v([])}}});var b=m.useState({}),y=ee(b,2),C=y[0],S=y[1];m.useEffect(function(){var $={};h.forEach(function(O){var P=O.placement,M=P===void 0?"topRight":P;M&&($[M]=$[M]||[],$[M].push(O))}),Object.keys(C).forEach(function(O){$[O]=$[O]||[]}),S($)},[h]);var x=function(O){S(function(P){var M=D({},P),T=M[O]||[];return T.length||delete M[O],M})},E=m.useRef(!1);if(m.useEffect(function(){Object.keys(C).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[C]),!o)return null;var w=Object.keys(C);return Sv(m.createElement(m.Fragment,null,w.map(function($){var O=C[$],P=m.createElement(pw,{key:$,configList:O,placement:$,prefixCls:n,className:s==null?void 0:s($),style:l==null?void 0:l($),motion:a,onNoticeClose:g,onAllNoticeRemoved:x,stack:u});return f?f(P,{prefixCls:n,key:$}):P})),o)}),bw=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Cw=function(){return document.body},nm=0;function xw(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function ww(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,r=t===void 0?Cw:t,n=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Ft(e,bw),d=m.useState(),p=ee(d,2),h=p[0],v=p[1],g=m.useRef(),b=m.createElement(yw,{container:h,ref:g,prefixCls:o,motion:n,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=m.useState([]),C=ee(y,2),S=C[0],x=C[1],E=kt(function($){var O=xw(f,$);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(nm),nm+=1),x(function(P){return[].concat(ie(P),[{type:"open",config:O}])})}),w=m.useMemo(function(){return{open:E,close:function(O){x(function(P){return[].concat(ie(P),[{type:"close",key:O}])})},destroy:function(){x(function(O){return[].concat(ie(O),[{type:"destroy"}])})}}},[]);return m.useEffect(function(){v(r())}),m.useEffect(function(){if(g.current&&S.length){S.forEach(function(P){switch(P.type){case"open":g.current.open(P.config);break;case"close":g.current.close(P.key);break;case"destroy":g.current.destroy();break}});var $,O;x(function(P){return($!==P||!O)&&($=P,O=P.filter(function(M){return!S.includes(M)})),O})}},[S]),[w,b]}var Sw={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Ew=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:Sw}))},hf=m.forwardRef(Ew);const Gh=X.createContext(void 0),fn=100,$w=10,Ow=fn*$w,Xh={Modal:fn,Drawer:fn,Popover:fn,Popconfirm:fn,Tooltip:fn,Tour:fn,FloatButton:fn},Pw={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Fw(e){return e in Xh}const Mw=(e,t)=>{const[,r]=Qr(),n=X.useContext(Gh),o=Fw(e);let a;if(t!==void 0)a=[t,t];else{let i=n??0;o?i+=(n?0:r.zIndexPopupBase)+Xh[e]:i+=Pw[e],a=[n===void 0?t:i,i]}return a},Rw=e=>{const{componentCls:t,iconCls:r,boxShadow:n,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:v,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,C=new Ut("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),S=new Ut("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:h,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:a},[`${t}-error > ${r}`]:{color:i},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r},
|
|
131
|
-
${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Ao(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
132
|
-
${t}-move-up-appear,
|
|
133
|
-
${t}-move-up-enter
|
|
134
|
-
`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
135
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
136
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
137
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Aw=e=>({zIndexPopup:e.zIndexPopupBase+Ow+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Kh=Wr("Message",e=>{const t=At(e,{height:150});return Rw(t)},Aw);var Tw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const jw={info:m.createElement(nw,null),success:m.createElement(Dh,null),error:m.createElement(vf,null),warning:m.createElement(Hh,null),loading:m.createElement(hf,null)},Zh=({prefixCls:e,type:t,icon:r,children:n})=>m.createElement("div",{className:oe(`${e}-custom-content`,`${e}-${t}`)},r||jw[t],m.createElement("span",null,n)),Iw=e=>{const{prefixCls:t,className:r,type:n,icon:o,content:a}=e,i=Tw(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=m.useContext(nt),l=t||s("message"),c=Zn(l),[u,f,d]=Kh(l,c);return u(m.createElement(qh,Object.assign({},i,{prefixCls:l,className:oe(r,f,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:m.createElement(Zh,{prefixCls:l,type:n,icon:o},a)})))};function _w(e,t){return{motionName:t??`${e}-move-up`}}function pf(e){let t;const r=new Promise(o=>{t=e(()=>{o(!0)})}),n=()=>{t==null||t()};return n.then=(o,a)=>r.then(o,a),n.promise=r,n}var kw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Nw=8,Lw=3,zw=({children:e,prefixCls:t})=>{const r=Zn(t),[n,o,a]=Kh(t,r);return n(m.createElement(gw,{classNames:{list:oe(o,a,r)}},e))},Bw=(e,{prefixCls:t,key:r})=>m.createElement(zw,{prefixCls:t,key:r},e),Dw=m.forwardRef((e,t)=>{const{top:r,prefixCls:n,getContainer:o,maxCount:a,duration:i=Lw,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:p}=m.useContext(nt),h=n||u("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:r??Nw}),g=()=>oe({[`${h}-rtl`]:s??p==="rtl"}),b=()=>_w(h,l),y=m.createElement("span",{className:`${h}-close-x`},m.createElement(Qx,{className:`${h}-close-icon`})),[C,S]=ww({prefixCls:h,style:v,className:g,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:Bw});return m.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:h,message:d})),S});let om=0;function Yh(e){const t=m.useRef(null);return bs(),[m.useMemo(()=>{const n=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:f}=t.current,d=`${u}-notice`,{content:p,icon:h,type:v,key:g,className:b,style:y,onClose:C}=l,S=kw(l,["content","icon","type","key","className","style","onClose"]);let x=g;return x==null&&(om+=1,x=`antd-message-${om}`),pf(E=>(c(Object.assign(Object.assign({},S),{key:x,content:m.createElement(Zh,{prefixCls:u,type:v,icon:h},p),placement:"top",className:oe(v&&`${d}-${v}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{C==null||C(),E()}})),()=>{n(x)}))},i={open:o,destroy:l=>{var c;l!==void 0?n(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,d)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let h,v;typeof f=="function"?v=f:(h=f,v=d);const g=Object.assign(Object.assign({onClose:v,duration:h},p),{type:l});return o(g)};i[l]=c}),i},[]),m.createElement(Dw,Object.assign({key:"message-holder"},e,{ref:t}))]}function Hw(e){return Yh(e)}function Qh(e,t){this.v=e,this.k=t}function It(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}It=function(i,s,l,c){function u(f,d){It(i,f,function(p){return this._invoke(f,d,p)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(u("next",0),u("throw",1),u("return",2))},It(e,t,r,n)}function yf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(p,h,v,g){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return It(y,"_invoke",(function(C,S,x){var E,w,$,O=0,P=x||[],M=!1,T={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(j,F){return E=j,w=0,$=e,T.n=F,i}};function I(R,j){for(w=R,$=j,t=0;!M&&O&&!F&&t<P.length;t++){var F,A=P[t],_=T.p,N=A[2];R>3?(F=N===j)&&($=A[(w=A[4])?5:(w=3,3)],A[4]=A[5]=e):A[0]<=_&&((F=R<2&&_<A[1])?(w=0,T.v=j,T.n=A[1]):_<N&&(F=R<3||A[0]>j||j>N)&&(A[4]=R,A[5]=j,T.n=N,w=0))}if(F||R>1)return i;throw M=!0,j}return function(R,j,F){if(O>1)throw TypeError("Generator is already running");for(M&&j===1&&I(j,F),w=j,$=F;(t=w<2?e:$)||!M;){E||(w?w<3?(w>1&&(T.n=-1),I(w,$)):T.n=$:T.v=$);try{if(O=2,E){if(w||(R="next"),t=E[R]){if(!(t=t.call(E,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,w<2&&(w=0)}else w===1&&(t=E.return)&&t.call(E),w<2&&($=TypeError("The iterator does not provide a '"+R+"' method"),w=1);E=e}else if((t=(M=T.n<0)?$:C.call(S,T))!==i)break}catch(A){E=e,w=1,$=A}finally{O=1}}return{value:t,done:M}}})(p,v,g),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(It(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function d(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,It(p,o,"GeneratorFunction")),p.prototype=Object.create(f),p}return l.prototype=c,It(f,"constructor",c),It(c,"constructor",l),l.displayName="GeneratorFunction",It(c,o,"GeneratorFunction"),It(f),It(f,o,"Generator"),It(f,n,function(){return this}),It(f,"toString",function(){return"[object Generator]"}),(yf=function(){return{w:a,m:d}})()}function ns(e,t){function r(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof Qh?t.resolve(c.v).then(function(u){r("next",u,i,s)},function(u){r("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return r("throw",u,i,s)})}catch(u){s(u)}}var n;this.next||(It(ns.prototype),It(ns.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),It(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){r(o,i,l,c)})}return n=n?n.then(s,s):s()},!0)}function Jh(e,t,r,n,o){return new ns(yf().w(e,t,r,n),o||Promise)}function Vw(e,t,r,n,o){var a=Jh(e,t,r,n,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function Ww(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function am(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(be(e)+" is not iterable")}function Lt(){var e=yf(),t=e.m(Lt),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,d){return l(c.a,o[f],d)},delegateYield:function(f,d,p){return s.resultName=d,l(c.d,am(f),p)},finish:function(f){return l(c.f,f)}},l=function(f,d,p){c.p=s.prev,c.n=s.next;try{return f(d,p)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Lt=function(){return{wrap:function(l,c,u,f){return e.w(a(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Qh(l,c)},AsyncIterator:ns,async:function(l,c,u,f,d){return(n(c)?Jh:Vw)(a(l),c,u,f,d)},keys:Ww,values:am}})()}function im(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Yn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){im(a,n,o,i,s,"next",l)}function s(l){im(a,n,o,i,s,"throw",l)}i(void 0)})}}var Ha=D({},wv),qw=Ha.version,Sl=Ha.render,Uw=Ha.unmountComponentAtNode,ws;try{var Gw=Number((qw||"").split(".")[0]);Gw>=18&&(ws=Ha.createRoot)}catch{}function sm(e){var t=Ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&be(t)==="object"&&(t.usingClientEntryPoint=e)}var os="__rc_react_root__";function Xw(e,t){sm(!0);var r=t[os]||ws(t);sm(!1),r.render(e),t[os]=r}function Kw(e,t){Sl==null||Sl(e,t)}function Zw(e,t){if(ws){Xw(e,t);return}Kw(e,t)}function Yw(e){return _c.apply(this,arguments)}function _c(){return _c=Yn(Lt().mark(function e(t){return Lt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[os])===null||o===void 0||o.unmount(),delete t[os]}));case 1:case"end":return n.stop()}},e)})),_c.apply(this,arguments)}function Qw(e){Uw(e)}function Jw(e){return kc.apply(this,arguments)}function kc(){return kc=Yn(Lt().mark(function e(t){return Lt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(ws===void 0){n.next=2;break}return n.abrupt("return",Yw(t));case 2:Qw(t);case 3:case"end":return n.stop()}},e)})),kc.apply(this,arguments)}const eS=(e,t)=>(Zw(e,t),()=>Jw(t));let tS=eS;function ep(e){return tS}const El=()=>({height:0,opacity:0}),lm=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},rS=e=>({height:e?e.offsetHeight:0}),$l=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",cm=(e=wa)=>({motionName:`${e}-motion-collapse`,onAppearStart:El,onEnterStart:El,onAppearActive:lm,onEnterActive:lm,onLeaveStart:rS,onLeaveActive:El,onAppearEnd:$l,onEnterEnd:$l,onLeaveEnd:$l,motionDeadline:500}),nS=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Va(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const bf=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),oS=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},aS=JC("Wave",oS),tp=`${wa}-wave-target`;function iS(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function sS(e){var t;const{borderTopColor:r,borderColor:n,backgroundColor:o}=getComputedStyle(e);return(t=[r,n,o].find(iS))!==null&&t!==void 0?t:null}function Ol(e){return Number.isNaN(e)?0:e}const lS=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,a=m.useRef(null),i=m.useRef(null);m.useEffect(()=>{i.current=o()},[]);const[s,l]=m.useState(null),[c,u]=m.useState([]),[f,d]=m.useState(0),[p,h]=m.useState(0),[v,g]=m.useState(0),[b,y]=m.useState(0),[C,S]=m.useState(!1),x={left:f,top:p,width:v,height:b,borderRadius:c.map($=>`${$}px`).join(" ")};s&&(x["--wave-color"]=s);function E(){const $=getComputedStyle(r);l(sS(r));const O=$.position==="static",{borderLeftWidth:P,borderTopWidth:M}=$;d(O?r.offsetLeft:Ol(-parseFloat(P))),h(O?r.offsetTop:Ol(-parseFloat(M))),g(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:I,borderBottomLeftRadius:R,borderBottomRightRadius:j}=$;u([T,I,j,R].map(F=>Ol(parseFloat(F))))}if(m.useEffect(()=>{if(r){const $=yr(()=>{E(),S(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(r)),()=>{yr.cancel($),O==null||O.disconnect()}}},[]),!C)return null;const w=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(tp));return m.createElement(To,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,O)=>{var P,M;if(O.deadline||O.propertyName==="opacity"){const T=(P=a.current)===null||P===void 0?void 0:P.parentElement;(M=i.current)===null||M===void 0||M.call(i).then(()=>{T==null||T.remove()})}return!1}},({className:$},O)=>m.createElement("div",{ref:wn(a,O),className:oe(t,$,{"wave-quick":w}),style:x}))},cS=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=ep();let i=null;function s(){return i}i=a(m.createElement(lS,Object.assign({},t,{target:e,registerUnmount:s})),o)},uS=(e,t,r)=>{const{wave:n}=m.useContext(nt),[,o,a]=Qr(),i=kt(c=>{const u=e.current;if(n!=null&&n.disabled||!u)return;const f=u.querySelector(`.${tp}`)||u,{showEffect:d}=n||{};(d||cS)(f,{className:t,token:o,component:r,event:c,hashId:a})}),s=m.useRef(null);return c=>{yr.cancel(s.current),s.current=yr(()=>{i(c)})}},fS=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=rt(nt),a=Ne(null),i=o("wave"),[,s]=aS(i),l=uS(a,oe(i,s),n);if(X.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||r)return;const f=d=>{!bf(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!X.isValidElement(t))return t??null;const c=Mo(t)?wn(za(t),a):a;return $o(t,{ref:c})},_o=e=>{const t=X.useContext(qn);return X.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},rp=m.createContext(null),Ss=(e,t)=>{const r=m.useContext(rp),n=m.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=r,s=o==="vertical"?"-vertical-":"-";return oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},dS=e=>{const{children:t}=e;return m.createElement(rp.Provider,{value:null},t)};var mS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const np=m.createContext(void 0),gS=e=>{const{getPrefixCls:t,direction:r}=m.useContext(nt),{prefixCls:n,size:o,className:a}=e,i=mS(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Qr(),c=m.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=oe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},a,l);return m.createElement(np.Provider,{value:o},m.createElement("div",Object.assign({},i,{className:u})))},um=/^[\u4E00-\u9FA5]{2}$/,Nc=um.test.bind(um);function fm(e){return typeof e=="string"}function Pl(e){return e==="text"||e==="link"}function vS(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&fm(e.type)&&Nc(e.props.children)?$o(e,{children:e.props.children.split("").join(r)}):fm(e)?Nc(e)?X.createElement("span",null,e.split("").join(r)):X.createElement("span",null,e):Wh(e)?X.createElement("span",null,e):e}function hS(e,t){let r=!1;const n=[];return X.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=i}),X.Children.map(n,o=>vS(o,t))}["default","primary","danger"].concat(ie(Un));const Lc=xn((e,t)=>{const{className:r,style:n,children:o,prefixCls:a}=e,i=oe(`${a}-icon`,r);return X.createElement("span",{ref:t,className:i,style:n},o)}),dm=xn((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:a}=e,i=oe(`${r}-loading-icon`,n);return X.createElement(Lc,{prefixCls:r,className:i,style:o,ref:t},X.createElement(hf,{className:a}))}),Fl=()=>({width:0,opacity:0,transform:"scale(0)"}),Ml=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),pS=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:a,mount:i}=e,s=!!r;return n?X.createElement(dm,{prefixCls:t,className:o,style:a}):X.createElement(To,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Fl,onAppearActive:Ml,onEnterStart:Fl,onEnterActive:Ml,onLeaveStart:Ml,onLeaveActive:Fl},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},a),c);return X.createElement(dm,{prefixCls:t,className:oe(o,l),style:f,ref:u})})},mm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),yS=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},mm(`${t}-primary`,o),mm(`${t}-danger`,a)]}};var bS=["b"],CS=["v"],Rl=function(t){return Math.round(Number(t||0))},xS=function(t){if(t instanceof it)return t;if(t&&be(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=Ft(r,bS);return D(D({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Sa=(function(e){Sn(r,e);var t=En(r);function r(n){return Mt(this,r),t.call(this,xS(n))}return Rt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Rl(o.s*100),i=Rl(o.b*100),s=Rl(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=Ft(o,CS);return D(D({},i),{},{b:a,a:this.a})}}]),r})(it),wS=function(t){return t instanceof Sa?t:new Sa(t)};wS("#1677ff");const SS=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",ES=(e,t)=>e?SS(e,t):"";let zc=(function(){function e(t){Mt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new Sa(this.colors[0].color.metaColor)):this.metaColor=new Sa(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Rt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return ES(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const a=r.colors[o];return n.percent===a.percent&&n.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])})();const $S=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
138
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
139
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),OS=e=>({animationDuration:e,animationFillMode:"both"}),PS=e=>({animationDuration:e,animationFillMode:"both"}),FS=(e,t,r,n,o=!1)=>{const a=o?"&":"";return{[`
|
|
140
|
-
${a}${e}-enter,
|
|
141
|
-
${a}${e}-appear
|
|
142
|
-
`]:Object.assign(Object.assign({},OS(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},PS(n)),{animationPlayState:"paused"}),[`
|
|
143
|
-
${a}${e}-enter${e}-enter-active,
|
|
144
|
-
${a}${e}-appear${e}-appear-active
|
|
145
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Cf=new Ut("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),MS=new Ut("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gm=new Ut("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vm=new Ut("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RS=new Ut("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),AS=new Ut("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),TS=new Ut("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),jS=new Ut("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),IS=new Ut("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),_S=new Ut("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kS=new Ut("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),NS=new Ut("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),LS={zoom:{inKeyframes:Cf,outKeyframes:MS},"zoom-big":{inKeyframes:gm,outKeyframes:vm},"zoom-big-fast":{inKeyframes:gm,outKeyframes:vm},"zoom-left":{inKeyframes:TS,outKeyframes:jS},"zoom-right":{inKeyframes:IS,outKeyframes:_S},"zoom-up":{inKeyframes:RS,outKeyframes:AS},"zoom-down":{inKeyframes:kS,outKeyframes:NS}},zS=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=LS[t];return[FS(n,o,a,e.motionDurationFast),{[`
|
|
146
|
-
${n}-enter,
|
|
147
|
-
${n}-appear
|
|
148
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BS=e=>e instanceof zc?e:new zc(e),DS=(e,t)=>{const{r,g:n,b:o,a}=e.toRgb(),i=new Sa(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:r*.299+n*.587+o*.114>192},op=e=>{const{paddingInline:t,onlyIconSize:r}=e;return At(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ap=e=>{var t,r,n,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:zi(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:zi(l),d=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:zi(c),p=DS(new zc(e.colorBgSolid),"#fff")?"#000":"#fff",h=Un.reduce((v,g)=>Object.assign(Object.assign({},v),{[`${g}ShadowColor`]:`0 ${Ae(e.controlOutlineWidth)} 0 ${ta(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)})},HS=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ch(),"> a":{color:"currentColor"},"&:not(:disabled)":QC(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},ip=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),VS=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),WS=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),qS=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Es=(e,t,r,n,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},ip(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),US=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},qS(e))}),GS=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),$s=(e,t,r,n)=>{const a=n&&["link","text"].includes(n)?GS:US;return Object.assign(Object.assign({},a(e)),ip(e.componentCls,t,r))},Os=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},$s(e,n,o))}),Ps=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},$s(e,n,o))}),Fs=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ms=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},$s(e,r,n))}),Vr=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},$s(e,n,o,r))}),XS=e=>{const{componentCls:t}=e;return Un.reduce((r,n)=>{const o=e[`${n}6`],a=e[`${n}1`],i=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},Os(e,e.colorTextLightSolid,o,{background:i},{background:c})),Ps(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Fs(e)),Ms(e,a,{color:o,background:s},{color:o,background:l})),Vr(e,o,"link",{color:i},{color:c})),Vr(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},KS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Os(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Fs(e)),Ms(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Es(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Vr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ZS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Ps(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Fs(e)),Ms(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Vr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Vr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Es(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),YS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Os(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ps(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fs(e)),Ms(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Vr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Vr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Es(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),QS=e=>Object.assign(Object.assign({},Vr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Es(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),JS=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:KS(e),[`${t}-color-primary`]:ZS(e),[`${t}-color-dangerous`]:YS(e),[`${t}-color-link`]:QS(e)},XS(e))},eE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ps(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Vr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Os(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Vr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xf=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${Ae(l)} ${Ae(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:VS(e)},{[`${r}${r}-round${t}`]:WS(e)}]},tE=e=>{const t=At(e,{fontSize:e.contentFontSize});return xf(t,e.componentCls)},rE=e=>{const t=At(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return xf(t,`${e.componentCls}-sm`)},nE=e=>{const t=At(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return xf(t,`${e.componentCls}-lg`)},oE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aE=Wr("Button",e=>{const t=op(e);return[HS(t),tE(t),rE(t),nE(t),oE(t),JS(t),eE(t),yS(t)]},ap,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function iE(e,t,r,n){const{focusElCls:o,focus:a,borderElCls:i}=r,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function sE(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function sp(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},iE(e,n,t,r)),sE(r,n,t))}}function lE(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function cE(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function uE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},lE(e,t,e.componentCls)),cE(e.componentCls,t))}}const fE=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,a=o(n).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},dE=wh(["Button","compact"],e=>{const t=op(e);return[sp(t),uE(t),fE(t)]},ap);var mE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function gE(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const vE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},hE=X.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:d,disabled:p,className:h,rootClassName:v,children:g,icon:b,iconPosition:y="start",ghost:C=!1,block:S=!1,htmlType:x="button",classNames:E,style:w={},autoInsertSpace:$,autoFocus:O}=e,P=mE(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:T}=X.useContext(nt),I=u||(T==null?void 0:T.shape)||"default",[R,j]=da(()=>{if(i&&s)return[i,s];if(l||c){const ze=vE[M]||[];return c?["danger",ze[1]]:ze}return T!=null&&T.color&&(T!=null&&T.variant)?[T.color,T.variant]:["default","outlined"]},[l,i,s,c,T==null?void 0:T.variant,T==null?void 0:T.color]),A=R==="danger"?"dangerous":R,{getPrefixCls:_,direction:N,autoInsertSpace:W,className:U,style:L,classNames:V,styles:B}=Da("button"),z=(r=$??W)!==null&&r!==void 0?r:!0,q=_("btn",a),[Y,Z,Q]=aE(q),J=rt(bn),ne=p??J,ae=rt(np),se=da(()=>gE(o),[o]),[le,ce]=Kr(se.loading),[re,ve]=Kr(!1),me=Ne(null),he=ms(t,me),Le=rb.count(g)===1&&!b&&!Pl(j),ue=Ne(!0);X.useEffect(()=>(ue.current=!1,()=>{ue.current=!0}),[]),dt(()=>{let ze=null;se.delay>0?ze=setTimeout(()=>{ze=null,ce(!0)},se.delay):ce(se.loading);function lt(){ze&&(clearTimeout(ze),ze=null)}return lt},[se.delay,se.loading]),bt(()=>{if(!me.current||!z)return;const ze=me.current.textContent||"";Le&&Nc(ze)?re||ve(!0):re&&ve(!1)}),bt(()=>{O&&me.current&&me.current.focus()},[]);const ge=X.useCallback(ze=>{var lt;if(le||ne){ze.preventDefault();return}(lt=e.onClick)===null||lt===void 0||lt.call(e,("href"in e,ze))},[e.onClick,le,ne]),{compactSize:de,compactItemClassnames:te}=Ss(q,N),ye={large:"lg",small:"sm",middle:void 0},Ie=_o(ze=>{var lt,Sr;return(Sr=(lt=f??de)!==null&<!==void 0?lt:ae)!==null&&Sr!==void 0?Sr:ze}),st=Ie&&(n=ye[Ie])!==null&&n!==void 0?n:"",Ze=le?"loading":b,Qe=Va(P,["navigate"]),$t=oe(q,Z,Q,{[`${q}-${I}`]:I!=="default"&&I,[`${q}-${M}`]:M,[`${q}-dangerous`]:c,[`${q}-color-${A}`]:A,[`${q}-variant-${j}`]:j,[`${q}-${st}`]:st,[`${q}-icon-only`]:!g&&g!==0&&!!Ze,[`${q}-background-ghost`]:C&&!Pl(j),[`${q}-loading`]:le,[`${q}-two-chinese-chars`]:re&&z&&!le,[`${q}-block`]:S,[`${q}-rtl`]:N==="rtl",[`${q}-icon-end`]:y==="end"},te,h,v,U),Ue=Object.assign(Object.assign({},L),w),He=oe(E==null?void 0:E.icon,V.icon),Te=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),B.icon||{}),Ce=b&&!le?X.createElement(Lc,{prefixCls:q,className:He,style:Te},b):o&&typeof o=="object"&&o.icon?X.createElement(Lc,{prefixCls:q,className:He,style:Te},o.icon):X.createElement(pS,{existIcon:!!b,prefixCls:q,loading:le,mount:ue.current}),Ye=g||g===0?hS(g,Le&&z):null;if(Qe.href!==void 0)return Y(X.createElement("a",Object.assign({},Qe,{className:oe($t,{[`${q}-disabled`]:ne}),href:ne?void 0:Qe.href,style:Ue,onClick:ge,ref:he,tabIndex:ne?-1:0}),Ce,Ye));let xt=X.createElement("button",Object.assign({},P,{type:x,className:$t,style:Ue,onClick:ge,disabled:ne,ref:he}),Ce,Ye,te&&X.createElement(dE,{prefixCls:q}));return Pl(j)||(xt=X.createElement(fS,{component:"Button",disabled:le},xt)),Y(xt)}),wf=hE;wf.Group=gS;wf.__ANT_BUTTON=!0;var lp=m.createContext(null),hm=[];function pE(e,t){var r=m.useState(function(){if(!sr())return null;var h=document.createElement("div");return h}),n=ee(r,1),o=n[0],a=m.useRef(!1),i=m.useContext(lp),s=m.useState(hm),l=ee(s,2),c=l[0],u=l[1],f=i||(a.current?void 0:function(h){u(function(v){var g=[h].concat(ie(v));return g})});function d(){o.parentElement||document.body.appendChild(o),a.current=!0}function p(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return dt(function(){return e?i?i(d):d():p(),p},[e]),dt(function(){c.length&&(c.forEach(function(h){return h()}),u(hm))},[c]),[o,f]}function yE(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";Gr(`
|
|
149
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
150
|
-
`).concat(u,`
|
|
151
|
-
`).concat(f,`
|
|
152
|
-
}`),t)}catch(h){console.error(h),o=l,a=c}}document.body.appendChild(r);var d=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,p=e&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ya(t),{width:d,height:p}}function bE(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:yE(e)}function CE(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var xE="rc-util-locker-".concat(Date.now()),pm=0;function wE(e){var t=!!e,r=m.useState(function(){return pm+=1,"".concat(xE,"_").concat(pm)}),n=ee(r,1),o=n[0];dt(function(){if(t){var a=bE(document.body).width,i=CE();Gr(`
|
|
153
|
-
html body {
|
|
154
|
-
overflow-y: hidden;
|
|
155
|
-
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
156
|
-
}`),o)}else ya(o);return function(){ya(o)}},[t,o])}var SE=!1;function EE(e){return SE}var ym=function(t){return t===!1?!1:!sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},cp=m.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=m.useState(r),c=ee(l,2),u=c[0],f=c[1],d=u||r;m.useEffect(function(){(i||r)&&f(r)},[r,i]);var p=m.useState(function(){return ym(o)}),h=ee(p,2),v=h[0],g=h[1];m.useEffect(function(){var M=ym(o);g(M??null)});var b=pE(d&&!v),y=ee(b,2),C=y[0],S=y[1],x=v??C;wE(n&&r&&sr()&&(x===C||x===document.body));var E=null;if(s&&Mo(s)&&t){var w=s;E=w.ref}var $=ms(E,t);if(!d||!sr()||v===void 0)return null;var O=x===!1||EE(),P=s;return t&&(P=m.cloneElement(s,{ref:$})),m.createElement(lp.Provider,{value:S},O?P:Sv(P,x))});function $E(){var e=D({},m);return e.useId}var bm=0,Cm=$E();const up=Cm?(function(t){var r=Cm();return t||r}):(function(t){var r=m.useState("ssr-id"),n=ee(r,2),o=n[0],a=n[1];return m.useEffect(function(){var i=bm;bm+=1,a("rc_unique_".concat(i))},[]),t||o});var kn="RC_FORM_INTERNAL_HOOKS",Xe=function(){ar(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Gn=m.createContext({getFieldValue:Xe,getFieldsValue:Xe,getFieldError:Xe,getFieldWarning:Xe,getFieldsError:Xe,isFieldsTouched:Xe,isFieldTouched:Xe,isFieldValidating:Xe,isFieldsValidating:Xe,resetFields:Xe,setFields:Xe,setFieldValue:Xe,setFieldsValue:Xe,validateFields:Xe,submit:Xe,getInternalHooks:function(){return Xe(),{dispatch:Xe,initEntityValue:Xe,registerField:Xe,useSubscribe:Xe,setInitialValues:Xe,destroyForm:Xe,setCallbacks:Xe,registerWatch:Xe,getFields:Xe,setValidateMessages:Xe,setPreserve:Xe,getInitialValue:Xe}}}),Ea=m.createContext(null);function Bc(e){return e==null?[]:Array.isArray(e)?e:[e]}function OE(e){return e&&!!e._init}function Dc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Hc=Dc();function PE(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function FE(e,t,r){if(nf())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&va(o,r.prototype),o}function Vc(e){var t=typeof Map=="function"?new Map:void 0;return Vc=function(n){if(n===null||!PE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return FE(n,arguments,ha(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),va(o,n)},Vc(e)}var ME=/%[sdj%]/g,RE=function(){};function Wc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function nr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(ME,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function AE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function St(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||AE(t)&&typeof e=="string"&&!e)}function TE(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,ie(s||[])),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function xm(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function jE(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ie(e[r]||[]))}),t}var wm=(function(e){Sn(r,e);var t=En(r);function r(n,o){var a;return Mt(this,r),a=t.call(this,"Async Validation Error"),k(Me(a),"errors",void 0),k(Me(a),"fields",void 0),a.errors=n,a.fields=o,a}return Rt(r)})(Vc(Error));function IE(e,t,r,n,o){if(t.first){var a=new Promise(function(d,p){var h=function(b){return n(b),b.length?p(new wm(b,Wc(b))):d(o)},v=jE(e);xm(v,r,h)});return a.catch(function(d){return d}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(d,p){var h=function(g){if(u.push.apply(u,g),c++,c===l)return n(u),u.length?p(new wm(u,Wc(u))):d(o)};s.length||(n(u),d(o)),s.forEach(function(v){var g=e[v];i.indexOf(v)!==-1?xm(g,r,h):TE(g,r,h)})});return f.catch(function(d){return d}),f}function _E(e){return!!(e&&e.message!==void 0)}function kE(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Sm(e,t){return function(r){var n;return e.fullFields?n=kE(t,e.fullFields):n=t[r.field||e.fullField],_E(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Em(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];be(n)==="object"&&be(e[r])==="object"?e[r]=D(D({},e[r]),n):e[r]=n}}return e}var ro="enum",NE=function(t,r,n,o,a){t[ro]=Array.isArray(t[ro])?t[ro]:[],t[ro].indexOf(r)===-1&&o.push(nr(a.messages[ro],t.fullField,t[ro].join(", ")))},LE=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(nr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(nr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},zE=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,d=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(d?f="number":p?f="string":h&&(f="array"),!f)return!1;h&&(u=r.length),p&&(u=r.replace(c,"_").length),i?u!==t.len&&o.push(nr(a.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(nr(a.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(nr(a.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(nr(a.messages[f].range,t.fullField,t.min,t.max))},fp=function(t,r,n,o,a,i){t.required&&(!n.hasOwnProperty(t.field)||St(r,i||t.type))&&o.push(nr(a.messages.required,t.fullField))},xi;const BE=(function(){if(xi)return xi;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};u.v4=function(x){return x&&x.exact?l:new RegExp("".concat(t(x)).concat(r).concat(t(x)),"g")},u.v6=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(p,"|").concat(h,"|").concat(v).concat(g).concat(b,")").concat(y).concat(C);return xi=new RegExp("(?:^".concat(S,"$)"),"i"),xi});var $m={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ra={integer:function(t){return ra.number(t)&&parseInt(t,10)===t},float:function(t){return ra.number(t)&&!ra.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return be(t)==="object"&&!ra.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($m.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(BE())},hex:function(t){return typeof t=="string"&&!!t.match($m.hex)}},DE=function(t,r,n,o,a){if(t.required&&r===void 0){fp(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?ra[s](r)||o.push(nr(a.messages.types[s],t.fullField,t.type)):s&&be(r)!==t.type&&o.push(nr(a.messages.types[s],t.fullField,t.type))},HE=function(t,r,n,o,a){(/^\s+$/.test(r)||r==="")&&o.push(nr(a.messages.whitespace,t.fullField))};const _e={required:fp,whitespace:HE,type:DE,range:zE,enum:NE,pattern:LE};var VE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a)}n(i)},WE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();_e.required(t,r,o,i,a,"array"),r!=null&&(_e.type(t,r,o,i,a),_e.range(t,r,o,i,a))}n(i)},qE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&_e.type(t,r,o,i,a)}n(i)},UE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r,"date")&&!t.required)return n();if(_e.required(t,r,o,i,a),!St(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),_e.type(t,l,o,i,a),l&&_e.range(t,l.getTime(),o,i,a)}}n(i)},GE="enum",XE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&_e[GE](t,r,o,i,a)}n(i)},KE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&(_e.type(t,r,o,i,a),_e.range(t,r,o,i,a))}n(i)},ZE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&(_e.type(t,r,o,i,a),_e.range(t,r,o,i,a))}n(i)},YE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&_e.type(t,r,o,i,a)}n(i)},QE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&(_e.type(t,r,o,i,a),_e.range(t,r,o,i,a))}n(i)},JE=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),r!==void 0&&_e.type(t,r,o,i,a)}n(i)},e$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r,"string")&&!t.required)return n();_e.required(t,r,o,i,a),St(r,"string")||_e.pattern(t,r,o,i,a)}n(i)},t$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r)&&!t.required)return n();_e.required(t,r,o,i,a),St(r)||_e.type(t,r,o,i,a)}n(i)},r$=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":be(r);_e.required(t,r,o,i,a,s),n(i)},n$=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(St(r,"string")&&!t.required)return n();_e.required(t,r,o,i,a,"string"),St(r,"string")||(_e.type(t,r,o,i,a),_e.range(t,r,o,i,a),_e.pattern(t,r,o,i,a),t.whitespace===!0&&_e.whitespace(t,r,o,i,a))}n(i)},Al=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(St(r,i)&&!t.required)return n();_e.required(t,r,o,s,a,i),St(r,i)||_e.type(t,r,o,s,a)}n(s)};const ia={string:n$,method:YE,number:QE,boolean:qE,regexp:t$,integer:ZE,float:KE,array:WE,object:JE,enum:XE,pattern:e$,date:UE,url:Al,hex:Al,email:Al,required:r$,any:VE};var Wa=(function(){function e(t){Mt(this,e),k(this,"rules",null),k(this,"_messages",Hc),this.define(t)}return Rt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(be(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];n.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=Em(Dc(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(h){var v=[],g={};function b(C){if(Array.isArray(C)){var S;v=(S=v).concat.apply(S,ie(C))}else v.push(C)}for(var y=0;y<h.length;y++)b(h[y]);v.length?(g=Wc(v),l(v,g)):l(null,i)}if(s.messages){var u=this.messages();u===Hc&&(u=Dc()),Em(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},d=s.keys||Object.keys(this.rules);d.forEach(function(h){var v=n.rules[h],g=i[h];v.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===r&&(i=D({},i)),g=i[h]=y.transform(g),g!=null&&(y.type=y.type||(Array.isArray(g)?"array":be(g)))),typeof y=="function"?y={validator:y}:y=D({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=n.getType(y),f[h]=f[h]||[],f[h].push({rule:y,value:g,source:i,field:h}))})});var p={};return IE(f,s,function(h,v){var g=h.rule,b=(g.type==="object"||g.type==="array")&&(be(g.fields)==="object"||be(g.defaultField)==="object");b=b&&(g.required||!g.required&&h.value),g.field=h.field;function y(w,$){return D(D({},$),{},{fullField:"".concat(g.fullField,".").concat(w),fullFields:g.fullFields?[].concat(ie(g.fullFields),[w]):[w]})}function C(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(w)?w:[w];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&g.message!==void 0&&($=[].concat(g.message));var O=$.map(Sm(g,i));if(s.first&&O.length)return p[g.field]=1,v(O);if(!b)v(O);else{if(g.required&&!h.value)return g.message!==void 0?O=[].concat(g.message).map(Sm(g,i)):s.error&&(O=[s.error(g,nr(s.messages.required,g.field))]),v(O);var P={};g.defaultField&&Object.keys(h.value).map(function(I){P[I]=g.defaultField}),P=D(D({},P),h.rule.fields);var M={};Object.keys(P).forEach(function(I){var R=P[I],j=Array.isArray(R)?R:[R];M[I]=j.map(y.bind(null,I))});var T=new e(M);T.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),T.validate(h.value,h.rule.options||s,function(I){var R=[];O&&O.length&&R.push.apply(R,ie(O)),I&&I.length&&R.push.apply(R,ie(I)),v(R.length?R:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,h.value,C,h.source,s);else if(g.validator){try{S=g.validator(g,h.value,C,h.source,s)}catch(w){var x,E;(x=(E=console).error)===null||x===void 0||x.call(E,w),s.suppressValidatorError||setTimeout(function(){throw w},0),C(w.message)}S===!0?C():S===!1?C(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):S instanceof Array?C(S):S instanceof Error&&C(S.message)}S&&S.then&&S.then(function(){return C()},function(w){return C(w)})},function(h){c(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ia.hasOwnProperty(r.type))throw new Error(nr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?ia.required:ia[this.getType(r)]||void 0}}]),e})();k(Wa,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ia[t]=r});k(Wa,"warning",RE);k(Wa,"messages",Hc);k(Wa,"validators",ia);var Jt="'${name}' is not a valid ${type}",dp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Om=Wa;function o$(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Pm="CODE_LOGIC_ERROR";function qc(e,t,r,n,o){return Uc.apply(this,arguments)}function Uc(){return Uc=Yn(Lt().mark(function e(t,r,n,o,a){var i,s,l,c,u,f,d,p,h;return Lt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=D({},n),delete i.ruleIndex,Om.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Pm)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Om(k({},t,[i])),u=co(dp,o.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(k({},t,r),D({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(b,y){var C=b.message,S=C===Pm?u.default:C;return m.isValidElement(S)?m.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(b,y){return qc("".concat(t,".").concat(y),b,l,o,a)}));case 21:return d=g.sent,g.abrupt("return",d.reduce(function(b,y){return[].concat(ie(b),ie(y))},[]));case 23:return p=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),h=f.map(function(b){return typeof b=="string"?o$(b,p):b}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Uc.apply(this,arguments)}function a$(e,t,r,n,o,a){var i=e.join("."),s=r.map(function(u,f){var d=u.validator,p=D(D({},u),{},{ruleIndex:f});return d&&(p.validator=function(h,v,g){var b=!1,y=function(){for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];Promise.resolve().then(function(){ar(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,E)})},C=d(h,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",ar(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){g()}).catch(function(S){g(S||" ")})}),p}).sort(function(u,f){var d=u.warningOnly,p=u.ruleIndex,h=f.warningOnly,v=f.ruleIndex;return!!d==!!h?p-v:d?1:-1}),l;if(o===!0)l=new Promise((function(){var u=Yn(Lt().mark(function f(d,p){var h,v,g;return Lt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return v=s[h],y.next=5,qc(i,t,v,n,a);case 5:if(g=y.sent,!g.length){y.next=9;break}return p([{errors:g,rule:v}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:d([]);case 13:case"end":return y.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return qc(i,t,u,n,a).then(function(f){return{errors:f,rule:u}})});l=(o?s$(c):i$(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function i$(e){return Gc.apply(this,arguments)}function Gc(){return Gc=Yn(Lt().mark(function e(t){return Lt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,ie(o));return i}));case 1:case"end":return n.stop()}},e)})),Gc.apply(this,arguments)}function s$(e){return Xc.apply(this,arguments)}function Xc(){return Xc=Yn(Lt().mark(function e(t){var r;return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Xc.apply(this,arguments)}function ut(e){return Bc(e)}function Fm(e,t){var r={};return t.forEach(function(n){var o=pr(e,n);r=hr(r,n,o)}),r}function po(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return mp(t,n,r)})}function mp(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function l$(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||be(e)!=="object"||be(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ie(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function c$(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&be(t.target)==="object"&&e in t.target?t.target[e]:t}function Mm(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(ie(e.slice(0,r)),[o],ie(e.slice(r,t)),ie(e.slice(t+1,n))):a<0?[].concat(ie(e.slice(0,t)),ie(e.slice(t+1,r+1)),[o],ie(e.slice(r+1,n))):e}var u$=["name"],fr=[];function Tl(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var Sf=(function(e){Sn(r,e);var t=En(r);function r(n){var o;if(Mt(this,r),o=t.call(this,n),k(Me(o),"state",{resetCount:0}),k(Me(o),"cancelRegisterFunc",null),k(Me(o),"mounted",!1),k(Me(o),"touched",!1),k(Me(o),"dirty",!1),k(Me(o),"validatePromise",void 0),k(Me(o),"prevValidating",void 0),k(Me(o),"errors",fr),k(Me(o),"warnings",fr),k(Me(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,ut(f)),o.cancelRegisterFunc=null}),k(Me(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(ie(d),ie(c)):[]}),k(Me(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),k(Me(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),k(Me(o),"metaCache",null),k(Me(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=D(D({},o.getMeta()),{},{destroy:l});cc(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),k(Me(o),"onStoreChange",function(l,c,u){var f=o.props,d=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,v=f.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(g),S=c&&po(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!cc(y,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=fr,o.warnings=fr,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=fr,o.warnings=fr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(d&&Tl(d,l,g,y,C,u)){o.reRender();return}break}case"setField":{var x=u.data;if(S){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||fr),"warnings"in x&&(o.warnings=x.warnings||fr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&po(c,b,!0)){o.reRender();return}if(d&&!b.length&&Tl(d,l,g,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(ut);if(E.some(function(w){return po(u.relatedFields,w)})){o.reRender();return}break}default:if(S||(!h.length||b.length||d)&&Tl(d,l,g,y,C,u)){o.reRender();return}break}d===!0&&o.reRender()}),k(Me(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},d=f.triggerName,p=f.validateOnly,h=p===void 0?!1:p,v=Promise.resolve().then(Yn(Lt().mark(function g(){var b,y,C,S,x,E,w;return Lt().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,S=b.messageVariables,x=b.validateDebounce,E=o.getRules(),d&&(E=E.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var T=Bc(M);return T.includes(d)})),!(x&&d)){O.next=10;break}return O.next=8,new Promise(function(P){setTimeout(P,x)});case 8:if(o.validatePromise===v){O.next=10;break}return O.abrupt("return",[]);case 10:return w=a$(c,u,E,l,C,S),w.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fr;if(o.validatePromise===v){var M;o.validatePromise=null;var T=[],I=[];(M=P.forEach)===null||M===void 0||M.call(P,function(R){var j=R.rule.warningOnly,F=R.errors,A=F===void 0?fr:F;j?I.push.apply(I,ie(A)):T.push.apply(T,ie(A))}),o.errors=T,o.warnings=I,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",w);case 13:case"end":return O.stop()}},g)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=fr,o.warnings=fr,o.triggerMetaEvent(),o.reRender()),v}),k(Me(o),"isFieldValidating",function(){return!!o.validatePromise}),k(Me(o),"isFieldTouched",function(){return o.touched}),k(Me(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(kn),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),k(Me(o),"getErrors",function(){return o.errors}),k(Me(o),"getWarnings",function(){return o.warnings}),k(Me(o),"isListField",function(){return o.props.isListField}),k(Me(o),"isList",function(){return o.props.isList}),k(Me(o),"isPreserve",function(){return o.props.preserve}),k(Me(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),k(Me(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return D(D({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ma(l);return u.length!==1||!m.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),k(Me(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return pr(l||c(!0),u)}),k(Me(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,p=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,b=c.fieldContext,y=d!==void 0?d:b.validateTrigger,C=o.getNamePath(),S=b.getInternalHooks,x=b.getFieldsValue,E=S(kn),w=E.dispatch,$=o.getValue(),O=g||function(R){return k({},v,R)},P=l[f],M=u!==void 0?O($):{},T=D(D({},l),M);T[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,j=arguments.length,F=new Array(j),A=0;A<j;A++)F[A]=arguments[A];p?R=p.apply(void 0,F):R=c$.apply(void 0,[v].concat(F)),h&&(R=h(R,$,x(!0))),R!==$&&w({type:"updateValue",namePath:C,value:R}),P&&P.apply(void 0,F)};var I=Bc(y||[]);return I.forEach(function(R){var j=T[R];T[R]=function(){j&&j.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&w({type:"validateField",namePath:C,triggerName:R})}}),T}),n.fieldContext){var a=n.fieldContext.getInternalHooks,i=a(kn),s=i.initEntityValue;s(Me(o))}return o}return Rt(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(kn),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:m.isValidElement(s)?c=m.cloneElement(s,this.getControlled(s.props)):(ar(!s,"`children` of Field is not validate ReactElement."),c=s),m.createElement(m.Fragment,{key:o},c)}}]),r})(m.Component);k(Sf,"contextType",Gn);k(Sf,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ef(e){var t,r=e.name,n=Ft(e,u$),o=m.useContext(Gn),a=m.useContext(Ea),i=r!==void 0?ut(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),m.createElement(Sf,qe({key:l,name:i,isListField:s},n,{fieldContext:o}))}function gp(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=m.useContext(Gn),l=m.useContext(Ea),c=m.useRef({keys:[],id:0}),u=c.current,f=m.useMemo(function(){var v=ut(s.prefixName)||[];return[].concat(ie(v),ie(ut(t)))},[s.prefixName,t]),d=m.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),p=m.useMemo(function(){return{getKey:function(g){var b=f.length,y=g[b];return[u.keys[y],g.slice(b+1)]}}},[f]);if(typeof n!="function")return ar(!1,"Form.List only accepts function as children."),null;var h=function(g,b,y){var C=y.source;return C==="internal"?!1:g!==b};return m.createElement(Ea.Provider,{value:p},m.createElement(Gn.Provider,{value:d},m.createElement(Ef,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:i??!!l},function(v,g){var b=v.value,y=b===void 0?[]:b,C=v.onChange,S=s.getFieldValue,x=function(){var O=S(f||[]);return O||[]},E={add:function(O,P){var M=x();P>=0&&P<=M.length?(u.keys=[].concat(ie(u.keys.slice(0,P)),[u.id],ie(u.keys.slice(P))),C([].concat(ie(M.slice(0,P)),[O],ie(M.slice(P))))):(u.keys=[].concat(ie(u.keys),[u.id]),C([].concat(ie(M),[O]))),u.id+=1},remove:function(O){var P=x(),M=new Set(Array.isArray(O)?O:[O]);M.size<=0||(u.keys=u.keys.filter(function(T,I){return!M.has(I)}),C(P.filter(function(T,I){return!M.has(I)})))},move:function(O,P){if(O!==P){var M=x();O<0||O>=M.length||P<0||P>=M.length||(u.keys=Mm(u.keys,O,P),C(Mm(M,O,P)))}}},w=y||[];return Array.isArray(w)||(w=[]),n(w.map(function($,O){var P=u.keys[O];return P===void 0&&(u.keys[O]=u.id,P=u.keys[O],u.id+=1),{name:O,key:P,isListField:!0}}),E,g)})))}function f$(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var vp="__@field_split__";function jl(e){return e.map(function(t){return"".concat(be(t),":").concat(t)}).join(vp)}var no=(function(){function e(){Mt(this,e),k(this,"kvs",new Map)}return Rt(e,[{key:"set",value:function(r,n){this.kvs.set(jl(r),n)}},{key:"get",value:function(r){return this.kvs.get(jl(r))}},{key:"update",value:function(r,n){var o=this.get(r),a=n(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(jl(r))}},{key:"map",value:function(r){return ie(this.kvs.entries()).map(function(n){var o=ee(n,2),a=o[0],i=o[1],s=a.split(vp);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ee(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,a=n.value;return r[o.join(".")]=a,null}),r}}]),e})(),d$=["name"],m$=Rt(function e(t){var r=this;Mt(this,e),k(this,"formHooked",!1),k(this,"forceRootUpdate",void 0),k(this,"subscribable",!0),k(this,"store",{}),k(this,"fieldEntities",[]),k(this,"initialValues",{}),k(this,"callbacks",{}),k(this,"validateMessages",null),k(this,"preserve",null),k(this,"lastValidatePromise",null),k(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),k(this,"getInternalHooks",function(n){return n===kn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ar(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),k(this,"useSubscribe",function(n){r.subscribable=n}),k(this,"prevWithoutPreserves",null),k(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=co(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=hr(i,l,pr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),k(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new no;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),k(this,"getInitialValue",function(n){var o=pr(r.initialValues,n);return n.length?co(o):o}),k(this,"setCallbacks",function(n){r.callbacks=n}),k(this,"setValidateMessages",function(n){r.validateMessages=n}),k(this,"setPreserve",function(n){r.preserve=n}),k(this,"watchList",[]),k(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),k(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),k(this,"timeoutId",null),k(this,"warningUnhooked",function(){}),k(this,"updateStore",function(n){r.store=n}),k(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),k(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new no;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),k(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=ut(a);return o.get(i)||{INVALIDATE_NAME_PATH:ut(a)}})}),k(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&be(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,d,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!a&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!i)c.push(p);else{var g="getMeta"in u?u.getMeta():null;i(g)&&c.push(p)}}),Fm(r.store,c.map(ut))}),k(this,"getFieldValue",function(n){r.warningUnhooked();var o=ut(n);return pr(r.store,o)}),k(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ut(n[i]),errors:[],warnings:[]}})}),k(this,"getFieldError",function(n){r.warningUnhooked();var o=ut(n),a=r.getFieldsError([o])[0];return a.errors}),k(this,"getFieldWarning",function(n){r.warningUnhooked();var o=ut(n),a=r.getFieldsError([o])[0];return a.warnings}),k(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(ut),c=!1):(l=null,c=i):(l=i.map(ut),c=s);var u=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(v){return f(v)||v.isList()}):u.some(f);var d=new no;l.forEach(function(v){d.set(v,[])}),u.forEach(function(v){var g=v.getNamePath();l.forEach(function(b){b.every(function(y,C){return g[C]===y})&&d.update(b,function(y){return[].concat(ie(y),[v])})})});var p=function(g){return g.some(f)},h=d.map(function(v){var g=v.value;return g});return c?h.every(p):h.some(p)}),k(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),k(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(i){return i.isFieldValidating()});var a=n.map(ut);return o.some(function(i){var s=i.getNamePath();return po(a,s)&&i.isFieldValidating()})}),k(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),k(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new no,a=r.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),p=r.getInitialValue(d);if(p!==void 0)ar(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=o.get(d);if(h&&h.size>1)ar(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(d),g=u.isListField();!g&&(!n.skipExist||v===void 0)&&r.updateStore(hr(r.store,d,ie(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ie(ie(c).map(function(f){return f.entity})))}})):s=a,i(s)}),k(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(co(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(ut);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(hr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),k(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=Ft(i,d$),c=ut(s);a.push(c),"value"in l&&r.updateStore(hr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:i})}),r.notifyWatch(a)}),k(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=D(D({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),k(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=pr(r.store,a);i===void 0&&r.updateStore(hr(r.store,a,o))}}),k(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),k(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!mp(f.getNamePath(),o)})){var u=r.store;r.updateStore(hr(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),k(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),k(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=D(D({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),k(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ie(a))}),a}),k(this,"updateValue",function(n,o){var a=ut(n),i=r.store;r.updateStore(hr(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var c=Fm(r.store,[a]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(ie(s)))}),k(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=co(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),k(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),k(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new no;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ut(u);i.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(a.push(d),l(d))}})};return s(n),a}),k(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new no;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return po(n,u)});l.length&&a(l,i)}}),k(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(ut):[],c=[],u=String(Date.now()),f=new Set,d=i||{},p=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var C=y.getNamePath();if(f.add(C.join(u)),!s||po(l,C,p)){var S=y.validateRules(D({validateMessages:D(D({},dp),r.validateMessages)},i));c.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var E,w=[],$=[];return(E=x.forEach)===null||E===void 0||E.call(x,function(O){var P=O.rule.warningOnly,M=O.errors;P?$.push.apply($,ie(M)):w.push.apply(w,ie(M))}),w.length?Promise.reject({name:C,errors:w,warnings:$}):{name:C,errors:w,warnings:$}}))}}});var v=f$(c);r.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function(S){var x=S.name;return x});r.notifyObservers(r.store,C,{type:"validateFinish"}),r.triggerOnFieldsChange(C,y)});var g=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:C,outOfDate:r.lastValidatePromise!==v})});g.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return r.triggerOnFieldsChange(b),g}),k(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function $f(e){var t=m.useRef(),r=m.useState({}),n=ee(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new m$(a);t.current=i.getForm()}return[t.current]}var Kc=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hp=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,a=t.children,i=m.useContext(Kc),s=m.useRef({});return m.createElement(Kc.Provider,{value:D(D({},i),{},{validateMessages:D(D({},i.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=D(D({},s.current),{},k({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=D({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},a)},g$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],v$=function(t,r){var n=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,p=d===void 0?"onChange":d,h=t.onValuesChange,v=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,C=Ft(t,g$),S=m.useRef(null),x=m.useContext(Kc),E=$f(i),w=ee(E,1),$=w[0],O=$.getInternalHooks(kn),P=O.useSubscribe,M=O.setInitialValues,T=O.setCallbacks,I=O.setValidateMessages,R=O.setPreserve,j=O.destroyForm;m.useImperativeHandle(r,function(){return D(D({},$),{},{nativeElement:S.current})}),m.useEffect(function(){return x.registerForm(n,$),function(){x.unregisterForm(n)}},[x,$,n]),I(D(D({},x.validateMessages),f)),T({onValuesChange:h,onFieldsChange:function(B){if(x.triggerFormChange(n,B),v){for(var z=arguments.length,q=new Array(z>1?z-1:0),Y=1;Y<z;Y++)q[Y-1]=arguments[Y];v.apply(void 0,[B].concat(q))}},onFinish:function(B){x.triggerFormFinish(n,B),g&&g(B)},onFinishFailed:b}),R(s);var F=m.useRef(null);M(o,!F.current),F.current||(F.current=!0),m.useEffect(function(){return function(){return j(y)}},[]);var A,_=typeof l=="function";if(_){var N=$.getFieldsValue(!0);A=l(N,$)}else A=l;P(!_);var W=m.useRef();m.useEffect(function(){l$(W.current||[],a||[])||$.setFields(a||[]),W.current=a},[a,$]);var U=m.useMemo(function(){return D(D({},$),{},{validateTrigger:p})},[$,p]),L=m.createElement(Ea.Provider,{value:null},m.createElement(Gn.Provider,{value:U},A));return u===!1?L:m.createElement(u,qe({},C,{ref:S,onSubmit:function(B){B.preventDefault(),B.stopPropagation(),$.submit()},onReset:function(B){var z;B.preventDefault(),$.resetFields(),(z=C.onReset)===null||z===void 0||z.call(C,B)}}),L)};function Rm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function pp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=o===void 0?{}:o,i=OE(a)?{form:a}:a,s=i.form,l=Kr(),c=ee(l,2),u=c[0],f=c[1],d=da(function(){return Rm(u)},[u]),p=Ne(d);p.current=d;var h=rt(Gn),v=s||h,g=v&&v._init,b=ut(n),y=Ne(b);return y.current=b,bt(function(){if(g){var C=v.getFieldsValue,S=v.getInternalHooks,x=S(kn),E=x.registerWatch,w=function(M,T){var I=i.preserve?T:M;return typeof n=="function"?n(I):pr(I,y.current)},$=E(function(P,M){var T=w(P,M),I=Rm(T);p.current!==I&&(p.current=I,f(T))}),O=w(C(),C(!0));return u!==O&&f(O),$}},[g]),u}var h$=m.forwardRef(v$),ko=h$;ko.FormProvider=hp;ko.Field=Ef;ko.List=gp;ko.useForm=$f;ko.useWatch=pp;const Zr=m.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),yp=m.createContext(null),bp=e=>{const t=Va(e,["prefixCls"]);return m.createElement(hp,Object.assign({},t))},Of=m.createContext({prefixCls:""}),Cr=m.createContext({}),Cp=({children:e,status:t,override:r})=>{const n=m.useContext(Cr),o=m.useMemo(()=>{const a=Object.assign({},n);return r&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,r,n]);return m.createElement(Cr.Provider,{value:o},e)},xp=m.createContext(void 0),Zc=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=X.createElement(Cp,{override:!0,status:!0},o)),t&&(o=X.createElement(dS,null,o)),o},p$=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},y$=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},b$=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${n}${t}-${i}`]={display:"none"},a[`${n}-push-${i}`]={insetInlineStart:"auto"},a[`${n}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-offset-${i}`]={marginInlineStart:0},a[`${n}${t}-order-${i}`]={order:0}):(a[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${n}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${n}${t}-order-${i}`]={order:i});return a[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},a},Yc=(e,t)=>b$(e,t),C$=(e,t,r)=>({[`@media (min-width: ${Ae(t)})`]:Object.assign({},Yc(e,r))}),x$=()=>({}),w$=()=>({}),S$=Wr("Grid",p$,x$),E$=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),$$=Wr("Grid",e=>{const t=At(e,{gridColumns:24}),r=E$(t);return delete r.xs,[y$(t),Yc(t,""),Yc(t,"-xs"),Object.keys(r).map(n=>C$(t,r[n],`-${n}`)).reduce((n,o)=>Object.assign(Object.assign({},n),o),{})]},w$),O$=X.createContext({}),P$=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});function F$(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,d=m.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],g=h[0],b=h[1],y=v[0],C=v[1];g===y||!["t","b"].includes(g)?p.top=f:g==="t"?p.top=0:p.bottom=0,b===C||!["l","r"].includes(b)?p.left=c:b==="l"?p.left=0:p.right=0}return m.createElement("div",{ref:d,className:oe("".concat(t,"-arrow"),i),style:p},s)}function M$(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?m.createElement(To,qe({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return m.createElement("div",{style:{zIndex:n},className:oe("".concat(t,"-mask"),s)})}):null}var R$=m.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),A$=m.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,p=e.arrow,h=e.arrowPos,v=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,x=e.portal,E=e.zIndex,w=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,P=e.onPointerDownCapture,M=e.ready,T=e.offsetX,I=e.offsetY,R=e.offsetR,j=e.offsetB,F=e.onAlign,A=e.onPrepare,_=e.stretch,N=e.targetWidth,W=e.targetHeight,U=typeof r=="function"?r():r,L=l||c,V=(C==null?void 0:C.length)>0,B=m.useState(!C||!V),z=ee(B,2),q=z[0],Y=z[1];if(dt(function(){!q&&V&&i&&Y(!0)},[q,V,i]),!q)return null;var Z="auto",Q={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(M||!l){var J,ne=v.points,ae=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),se=ae&&ne[0][1]==="r",le=ae&&ne[0][0]==="b";se?(Q.right=R,Q.left=Z):(Q.left=T,Q.right=Z),le?(Q.bottom=j,Q.top=Z):(Q.top=I,Q.bottom=Z)}var ce={};return _&&(_.includes("height")&&W?ce.height=W:_.includes("minHeight")&&W&&(ce.minHeight=W),_.includes("width")&&N?ce.width=N:_.includes("minWidth")&&N&&(ce.minWidth=N)),l||(ce.pointerEvents="none"),m.createElement(x,{open:y||L,getContainer:C&&function(){return C(i)},autoDestroy:S},m.createElement(M$,{prefixCls:o,open:l,zIndex:E,mask:d,motion:b}),m.createElement(vs,{onResize:F,disabled:!l},function(re){return m.createElement(To,qe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(me){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,me),s(me)}}),function(ve,me){var he=ve.className,Le=ve.style,ue=oe(o,he,n);return m.createElement("div",{ref:wn(re,t,me),className:ue,style:D(D(D(D({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Q),ce),Le),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:w,onMouseLeave:$,onPointerEnter:O,onClick:f,onPointerDownCapture:P},p&&m.createElement(F$,{prefixCls:o,arrow:p,arrowPos:h,align:v}),m.createElement(R$,{cache:!l&&!u},U))})}))}),T$=m.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Mo(r),a=m.useCallback(function(s){rf(t,n?n(s):s)},[n]),i=ms(a,za(r));return o?m.cloneElement(r,{ref:i}):r}),Am=m.createContext(null);function Tm(e){return e?Array.isArray(e)?e:[e]:[]}function j$(e,t,r,n){return m.useMemo(function(){var o=Tm(r??t),a=Tm(n??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function I$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _$(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(I$((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function jm(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function qa(e){return e.ownerDocument.defaultView}function Qc(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=qa(r).getComputedStyle(r),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function $a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Yo(e){return $a(parseFloat(e),0)}function Im(e,t){var r=D({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=qa(n).getComputedStyle(n),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=n.getBoundingClientRect(),d=n.offsetHeight,p=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,g=Yo(s),b=Yo(l),y=Yo(c),C=Yo(u),S=$a(Math.round(f.width/h*1e3)/1e3),x=$a(Math.round(f.height/d*1e3)/1e3),E=(h-v-y-C)*S,w=(d-p-g-b)*x,$=g*x,O=b*x,P=y*S,M=C*S,T=0,I=0;if(a==="clip"){var R=Yo(i);T=R*S,I=R*x}var j=f.x+P-T,F=f.y+$-I,A=j+f.width+2*T-P-M-E,_=F+f.height+2*I-$-O-w;r.left=Math.max(r.left,j),r.top=Math.max(r.top,F),r.right=Math.min(r.right,A),r.bottom=Math.min(r.bottom,_)}}),r}function _m(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function km(e,t){var r=t||[],n=ee(r,2),o=n[0],a=n[1];return[_m(e.width,o),_m(e.height,a)]}function Nm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function oo(e,t){var r=t[0],n=t[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function cn(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function k$(e,t,r,n,o,a,i){var s=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=ee(s,2),c=l[0],u=l[1],f=m.useRef(0),d=m.useMemo(function(){return t?Qc(t):[]},[t]),p=m.useRef({}),h=function(){p.current={}};e||h();var v=kt(function(){if(t&&r&&e){let cr=function(Go,Ur){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Xo=L.x+Go,ui=L.y+Ur,il=Xo+le,sl=ui+se,ll=Math.max(Xo,ln.left),fe=Math.max(ui,ln.top),xe=Math.min(il,ln.right),ot=Math.min(sl,ln.bottom);return Math.max(0,(xe-ll)*(ot-fe))},eo=function(){Vt=L.y+je,jt=Vt+se,Zt=L.x+De,Yt=Zt+le};var y,C,S,x,E=t,w=E.ownerDocument,$=qa(E),O=$.getComputedStyle(E),P=O.position,M=E.style.left,T=E.style.top,I=E.style.right,R=E.style.bottom,j=E.style.overflow,F=D(D({},o[n]),a),A=w.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(A),A.style.left="".concat(E.offsetLeft,"px"),A.style.top="".concat(E.offsetTop,"px"),A.style.position=P,A.style.height="".concat(E.offsetHeight,"px"),A.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var _;if(Array.isArray(r))_={x:r[0],y:r[1],width:0,height:0};else{var N,W,U=r.getBoundingClientRect();U.x=(N=U.x)!==null&&N!==void 0?N:U.left,U.y=(W=U.y)!==null&&W!==void 0?W:U.top,_={x:U.x,y:U.y,width:U.width,height:U.height}}var L=E.getBoundingClientRect(),V=$.getComputedStyle(E),B=V.height,z=V.width;L.x=(C=L.x)!==null&&C!==void 0?C:L.left,L.y=(S=L.y)!==null&&S!==void 0?S:L.top;var q=w.documentElement,Y=q.clientWidth,Z=q.clientHeight,Q=q.scrollWidth,J=q.scrollHeight,ne=q.scrollTop,ae=q.scrollLeft,se=L.height,le=L.width,ce=_.height,re=_.width,ve={left:0,top:0,right:Y,bottom:Z},me={left:-ae,top:-ne,right:Q-ae,bottom:J-ne},he=F.htmlRegion,Le="visible",ue="visibleFirst";he!=="scroll"&&he!==ue&&(he=Le);var ge=he===ue,de=Im(me,d),te=Im(ve,d),ye=he===Le?te:de,Ie=ge?te:ye;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var st=E.getBoundingClientRect();E.style.left=M,E.style.top=T,E.style.right=I,E.style.bottom=R,E.style.overflow=j,(x=E.parentElement)===null||x===void 0||x.removeChild(A);var Ze=$a(Math.round(le/parseFloat(z)*1e3)/1e3),Qe=$a(Math.round(se/parseFloat(B)*1e3)/1e3);if(Ze===0||Qe===0||ga(r)&&!bf(r))return;var $t=F.offset,Ue=F.targetOffset,He=km(L,$t),Te=ee(He,2),Ce=Te[0],Ye=Te[1],xt=km(_,Ue),ze=ee(xt,2),lt=ze[0],Sr=ze[1];_.x-=lt,_.y-=Sr;var $n=F.points||[],en=ee($n,2),On=en[0],tn=en[1],Xt=Nm(tn),vt=Nm(On),Je=oo(_,Xt),Ht=oo(L,vt),ht=D({},F),De=Je.x-Ht.x+Ce,je=Je.y-Ht.y+Ye,tt=cr(De,je),Kt=cr(De,je,te),Tt=oo(_,["t","l"]),Pe=oo(L,["t","l"]),Er=oo(_,["b","r"]),$r=oo(L,["b","r"]),we=F.overflow||{},Fe=we.adjustX,et=we.adjustY,Ge=we.shiftX,zt=we.shiftY,rn=function(Ur){return typeof Ur=="boolean"?Ur:Ur>=0},Vt,jt,Zt,Yt;eo();var nn=rn(et),Be=vt[0]===Xt[0];if(nn&&vt[0]==="t"&&(jt>Ie.bottom||p.current.bt)){var Pn=je;Be?Pn-=se-ce:Pn=Tt.y-$r.y-Ye;var ti=cr(De,Pn),Ks=cr(De,Pn,te);ti>tt||ti===tt&&(!ge||Ks>=Kt)?(p.current.bt=!0,je=Pn,Ye=-Ye,ht.points=[cn(vt,0),cn(Xt,0)]):p.current.bt=!1}if(nn&&vt[0]==="b"&&(Vt<Ie.top||p.current.tb)){var Fn=je;Be?Fn+=se-ce:Fn=Er.y-Pe.y-Ye;var ri=cr(De,Fn),Zs=cr(De,Fn,te);ri>tt||ri===tt&&(!ge||Zs>=Kt)?(p.current.tb=!0,je=Fn,Ye=-Ye,ht.points=[cn(vt,0),cn(Xt,0)]):p.current.tb=!1}var ni=rn(Fe),oi=vt[1]===Xt[1];if(ni&&vt[1]==="l"&&(Yt>Ie.right||p.current.rl)){var Mn=De;oi?Mn-=le-re:Mn=Tt.x-$r.x-Ce;var Rn=cr(Mn,je),Vo=cr(Mn,je,te);Rn>tt||Rn===tt&&(!ge||Vo>=Kt)?(p.current.rl=!0,De=Mn,Ce=-Ce,ht.points=[cn(vt,1),cn(Xt,1)]):p.current.rl=!1}if(ni&&vt[1]==="r"&&(Zt<Ie.left||p.current.lr)){var An=De;oi?An+=le-re:An=Er.x-Pe.x-Ce;var Wo=cr(An,je),Jn=cr(An,je,te);Wo>tt||Wo===tt&&(!ge||Jn>=Kt)?(p.current.lr=!0,De=An,Ce=-Ce,ht.points=[cn(vt,1),cn(Xt,1)]):p.current.lr=!1}eo();var Or=Ge===!0?0:Ge;typeof Or=="number"&&(Zt<te.left&&(De-=Zt-te.left-Ce,_.x+re<te.left+Or&&(De+=_.x-te.left+re-Or)),Yt>te.right&&(De-=Yt-te.right-Ce,_.x>te.right-Or&&(De+=_.x-te.right+Or)));var on=zt===!0?0:zt;typeof on=="number"&&(Vt<te.top&&(je-=Vt-te.top-Ye,_.y+ce<te.top+on&&(je+=_.y-te.top+ce-on)),jt>te.bottom&&(je-=jt-te.bottom-Ye,_.y>te.bottom-on&&(je+=_.y-te.bottom+on)));var an=L.x+De,sn=an+le,qo=L.y+je,Ys=qo+se,ai=_.x,ii=ai+re,si=_.y,Qs=si+ce,Js=Math.max(an,ai),li=Math.min(sn,ii),el=(Js+li)/2,tl=el-an,ci=Math.max(qo,si),rl=Math.min(Ys,Qs),nl=(ci+rl)/2,ol=nl-qo;i==null||i(t,ht);var _r=st.right-L.x-(De+L.width),Uo=st.bottom-L.y-(je+L.height);Ze===1&&(De=Math.round(De),_r=Math.round(_r)),Qe===1&&(je=Math.round(je),Uo=Math.round(Uo));var al={ready:!0,offsetX:De/Ze,offsetY:je/Qe,offsetR:_r/Ze,offsetB:Uo/Qe,arrowX:tl/Ze,arrowY:ol/Qe,scaleX:Ze,scaleY:Qe,align:ht};u(al)}}),g=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&v()})},b=function(){u(function(C){return D(D({},C),{},{ready:!1})})};return dt(b,[n]),dt(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function N$(e,t,r,n,o){dt(function(){if(e&&t&&r){let f=function(){n(),o()};var a=t,i=r,s=Qc(a),l=Qc(i),c=qa(i),u=new Set([c].concat(ie(s),ie(l)));return u.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){u.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}function L$(e,t,r,n,o,a,i,s){var l=m.useRef(e);l.current=e;var c=m.useRef(!1);m.useEffect(function(){if(t&&n&&(!o||a)){var f=function(){c.current=!1},d=function(g){var b;l.current&&!i(((b=g.composedPath)===null||b===void 0||(b=b.call(g))===null||b===void 0?void 0:b[0])||g.target)&&!c.current&&s(!1)},p=qa(n);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0);var h=rs(r);return h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",d,!0),p.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,r,n,o,a]);function u(){c.current=!0}return u}var z$=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function B$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cp,t=m.forwardRef(function(r,n){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,d=r.defaultPopupVisible,p=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,g=r.mouseLeaveDelay,b=g===void 0?.1:g,y=r.focusDelay,C=r.blurDelay,S=r.mask,x=r.maskClosable,E=x===void 0?!0:x,w=r.getPopupContainer,$=r.forceRender,O=r.autoDestroy,P=r.destroyPopupOnHide,M=r.popup,T=r.popupClassName,I=r.popupStyle,R=r.popupPlacement,j=r.builtinPlacements,F=j===void 0?{}:j,A=r.popupAlign,_=r.zIndex,N=r.stretch,W=r.getPopupClassNameFromAlign,U=r.fresh,L=r.alignPoint,V=r.onPopupClick,B=r.onPopupAlign,z=r.arrow,q=r.popupMotion,Y=r.maskMotion,Z=r.popupTransitionName,Q=r.popupAnimation,J=r.maskTransitionName,ne=r.maskAnimation,ae=r.className,se=r.getTriggerDOMNode,le=Ft(r,z$),ce=O||P||!1,re=m.useState(!1),ve=ee(re,2),me=ve[0],he=ve[1];dt(function(){he(P$())},[]);var Le=m.useRef({}),ue=m.useContext(Am),ge=m.useMemo(function(){return{registerSubPopup:function(xe,ot){Le.current[xe]=ot,ue==null||ue.registerSubPopup(xe,ot)}}},[ue]),de=up(),te=m.useState(null),ye=ee(te,2),Ie=ye[0],st=ye[1],Ze=m.useRef(null),Qe=kt(function(fe){Ze.current=fe,ga(fe)&&Ie!==fe&&st(fe),ue==null||ue.registerSubPopup(de,fe)}),$t=m.useState(null),Ue=ee($t,2),He=Ue[0],Te=Ue[1],Ce=m.useRef(null),Ye=kt(function(fe){ga(fe)&&He!==fe&&(Te(fe),Ce.current=fe)}),xt=m.Children.only(i),ze=(xt==null?void 0:xt.props)||{},lt={},Sr=kt(function(fe){var xe,ot,wt=He;return(wt==null?void 0:wt.contains(fe))||((xe=rs(wt))===null||xe===void 0?void 0:xe.host)===fe||fe===wt||(Ie==null?void 0:Ie.contains(fe))||((ot=rs(Ie))===null||ot===void 0?void 0:ot.host)===fe||fe===Ie||Object.values(Le.current).some(function(ct){return(ct==null?void 0:ct.contains(fe))||fe===ct})}),$n=jm(a,q,Q,Z),en=jm(a,Y,ne,J),On=m.useState(d||!1),tn=ee(On,2),Xt=tn[0],vt=tn[1],Je=f??Xt,Ht=kt(function(fe){f===void 0&&vt(fe)});dt(function(){vt(f||!1)},[f]);var ht=m.useRef(Je);ht.current=Je;var De=m.useRef([]);De.current=[];var je=kt(function(fe){var xe;Ht(fe),((xe=De.current[De.current.length-1])!==null&&xe!==void 0?xe:Je)!==fe&&(De.current.push(fe),p==null||p(fe))}),tt=m.useRef(),Kt=function(){clearTimeout(tt.current)},Tt=function(xe){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Kt(),ot===0?je(xe):tt.current=setTimeout(function(){je(xe)},ot*1e3)};m.useEffect(function(){return Kt},[]);var Pe=m.useState(!1),Er=ee(Pe,2),$r=Er[0],we=Er[1];dt(function(fe){(!fe||Je)&&we(!0)},[Je]);var Fe=m.useState(null),et=ee(Fe,2),Ge=et[0],zt=et[1],rn=m.useState(null),Vt=ee(rn,2),jt=Vt[0],Zt=Vt[1],Yt=function(xe){Zt([xe.clientX,xe.clientY])},nn=k$(Je,Ie,L&&jt!==null?jt:He,R,F,A,B),Be=ee(nn,11),Pn=Be[0],ti=Be[1],Ks=Be[2],Fn=Be[3],ri=Be[4],Zs=Be[5],ni=Be[6],oi=Be[7],Mn=Be[8],Rn=Be[9],Vo=Be[10],An=j$(me,l,c,u),Wo=ee(An,2),Jn=Wo[0],Or=Wo[1],on=Jn.has("click"),an=Or.has("click")||Or.has("contextMenu"),sn=kt(function(){$r||Vo()}),qo=function(){ht.current&&L&&an&&Tt(!1)};N$(Je,He,Ie,sn,qo),dt(function(){sn()},[jt,R]),dt(function(){Je&&!(F!=null&&F[R])&&sn()},[JSON.stringify(A)]);var Ys=m.useMemo(function(){var fe=_$(F,a,Rn,L);return oe(fe,W==null?void 0:W(Rn))},[Rn,W,F,a,L]);m.useImperativeHandle(n,function(){return{nativeElement:Ce.current,popupElement:Ze.current,forceAlign:sn}});var ai=m.useState(0),ii=ee(ai,2),si=ii[0],Qs=ii[1],Js=m.useState(0),li=ee(Js,2),el=li[0],tl=li[1],ci=function(){if(N&&He){var xe=He.getBoundingClientRect();Qs(xe.width),tl(xe.height)}},rl=function(){ci(),sn()},nl=function(xe){we(!1),Vo(),h==null||h(xe)},ol=function(){return new Promise(function(xe){ci(),zt(function(){return xe})})};dt(function(){Ge&&(Vo(),Ge(),zt(null))},[Ge]);function _r(fe,xe,ot,wt){lt[fe]=function(ct){var fi;wt==null||wt(ct),Tt(xe,ot);for(var cl=arguments.length,id=new Array(cl>1?cl-1:0),di=1;di<cl;di++)id[di-1]=arguments[di];(fi=ze[fe])===null||fi===void 0||fi.call.apply(fi,[ze,ct].concat(id))}}(on||an)&&(lt.onClick=function(fe){var xe;ht.current&&an?Tt(!1):!ht.current&&on&&(Yt(fe),Tt(!0));for(var ot=arguments.length,wt=new Array(ot>1?ot-1:0),ct=1;ct<ot;ct++)wt[ct-1]=arguments[ct];(xe=ze.onClick)===null||xe===void 0||xe.call.apply(xe,[ze,fe].concat(wt))});var Uo=L$(Je,an,He,Ie,S,E,Sr,Tt),al=Jn.has("hover"),cr=Or.has("hover"),eo,Go;al&&(_r("onMouseEnter",!0,v,function(fe){Yt(fe)}),_r("onPointerEnter",!0,v,function(fe){Yt(fe)}),eo=function(xe){(Je||$r)&&Ie!==null&&Ie!==void 0&&Ie.contains(xe.target)&&Tt(!0,v)},L&&(lt.onMouseMove=function(fe){var xe;(xe=ze.onMouseMove)===null||xe===void 0||xe.call(ze,fe)})),cr&&(_r("onMouseLeave",!1,b),_r("onPointerLeave",!1,b),Go=function(){Tt(!1,b)}),Jn.has("focus")&&_r("onFocus",!0,y),Or.has("focus")&&_r("onBlur",!1,C),Jn.has("contextMenu")&&(lt.onContextMenu=function(fe){var xe;ht.current&&Or.has("contextMenu")?Tt(!1):(Yt(fe),Tt(!0)),fe.preventDefault();for(var ot=arguments.length,wt=new Array(ot>1?ot-1:0),ct=1;ct<ot;ct++)wt[ct-1]=arguments[ct];(xe=ze.onContextMenu)===null||xe===void 0||xe.call.apply(xe,[ze,fe].concat(wt))}),ae&&(lt.className=oe(ze.className,ae));var Ur=m.useRef(!1);Ur.current||(Ur.current=$||Je||$r);var ln=D(D({},ze),lt),Xo={},ui=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ui.forEach(function(fe){le[fe]&&(Xo[fe]=function(){for(var xe,ot=arguments.length,wt=new Array(ot),ct=0;ct<ot;ct++)wt[ct]=arguments[ct];(xe=ln[fe])===null||xe===void 0||xe.call.apply(xe,[ln].concat(wt)),le[fe].apply(le,wt)})});var il=m.cloneElement(xt,D(D({},ln),Xo)),sl={x:Zs,y:ni},ll=z?D({},z!==!0?z:{}):null;return m.createElement(m.Fragment,null,m.createElement(vs,{disabled:!Je,ref:Ye,onResize:rl},m.createElement(T$,{getTriggerDOMNode:se},il)),Ur.current&&m.createElement(Am.Provider,{value:ge},m.createElement(A$,{portal:e,ref:Qe,prefixCls:a,popup:M,className:oe(T,Ys),style:I,target:He,onMouseEnter:eo,onMouseLeave:Go,onPointerEnter:eo,zIndex:_,open:Je,keepDom:$r,fresh:U,onClick:V,onPointerDownCapture:Uo,mask:S,motion:$n,maskMotion:en,onVisibleChanged:nl,onPrepare:ol,forceRender:$,autoDestroy:ce,getPopupContainer:w,align:Rn,arrow:ll,arrowPos:sl,ready:Pn,offsetX:ti,offsetY:Ks,offsetR:Fn,offsetB:ri,onAlign:sn,stretch:N,targetWidth:si/oi,targetHeight:el/Mn})))});return t}const D$=B$(cp);function Jc(e,t,r){return oe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Pf=(e,t)=>t||e,wp=(e,t,r=void 0)=>{var n,o;const{variant:a,[e]:i}=m.useContext(nt),s=m.useContext(xp),l=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:a)!==null&&o!==void 0?o:"outlined";const u=$C.includes(c);return[c,u]};var H$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},V$=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:H$}))},W$=m.forwardRef(V$);const q$=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},U$=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Oa=["xxl","xl","lg","md","sm","xs"],G$=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),X$=e=>{const t=e,r=[].concat(Oa).reverse();return r.forEach((n,o)=>{const a=n.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<r.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${r[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e},K$=()=>{const[,e]=Qr(),t=G$(X$(e));return X.useMemo(()=>{const r=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,r.forEach(i=>i(o)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(o),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);q$(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];U$(i==null?void 0:i.mql,i==null?void 0:i.listener)}),r.clear()}}},[e])};function Z$(){const[,e]=m.useReducer(t=>t+1,0);return e}function Y$(e=!0,t={}){const r=Ne(t),n=Z$(),o=K$();return dt(()=>{const a=o.subscribe(i=>{r.current=i,e&&n()});return()=>o.unsubscribe(a)},[]),r.current}function Sp(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return m.createElement("div",{className:oe("".concat(r,"-content"),i),style:s},m.createElement("div",{className:oe("".concat(r,"-inner"),a),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var ao={shiftX:64,adjustY:1},io={adjustX:1,shiftY:!0},dr=[0,0],Q$={left:{points:["cr","cl"],overflow:io,offset:[-4,0],targetOffset:dr},right:{points:["cl","cr"],overflow:io,offset:[4,0],targetOffset:dr},top:{points:["bc","tc"],overflow:ao,offset:[0,-4],targetOffset:dr},bottom:{points:["tc","bc"],overflow:ao,offset:[0,4],targetOffset:dr},topLeft:{points:["bl","tl"],overflow:ao,offset:[0,-4],targetOffset:dr},leftTop:{points:["tr","tl"],overflow:io,offset:[-4,0],targetOffset:dr},topRight:{points:["br","tr"],overflow:ao,offset:[0,-4],targetOffset:dr},rightTop:{points:["tl","tr"],overflow:io,offset:[4,0],targetOffset:dr},bottomRight:{points:["tr","br"],overflow:ao,offset:[0,4],targetOffset:dr},rightBottom:{points:["bl","br"],overflow:io,offset:[4,0],targetOffset:dr},bottomLeft:{points:["tl","bl"],overflow:ao,offset:[0,4],targetOffset:dr},leftBottom:{points:["br","bl"],overflow:io,offset:[-4,0],targetOffset:dr}},J$=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],e2=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,p=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,g=t.transitionName,b=t.animation,y=t.motion,C=t.placement,S=C===void 0?"right":C,x=t.align,E=x===void 0?{}:x,w=t.destroyTooltipOnHide,$=w===void 0?!1:w,O=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,I=t.id,R=t.showArrow,j=R===void 0?!0:R,F=t.classNames,A=t.styles,_=Ft(t,J$),N=up(I),W=Ne(null);ef(r,function(){return W.current});var U=D({},_);"visible"in t&&(U.popupVisible=t.visible);var L=function(){return m.createElement(Sp,{key:"content",prefixCls:d,id:N,bodyClassName:F==null?void 0:F.body,overlayInnerStyle:D(D({},M),A==null?void 0:A.body)},T)},V=function(){var z=m.Children.only(p),q=(z==null?void 0:z.props)||{},Y=D(D({},q),{},{"aria-describedby":T?N:null});return m.cloneElement(p,Y)};return m.createElement(D$,qe({popupClassName:oe(n,F==null?void 0:F.root),prefixCls:d,popup:L,action:a,builtinPlacements:Q$,popupPlacement:S,ref:W,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:$,mouseLeaveDelay:c,popupStyle:D(D({},u),A==null?void 0:A.root),mouseEnterDelay:s,arrow:j},U),V())};const t2=xn(e2);function r2(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=0,i=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,d=u,p=2*o-s,h=l,v=2*o-a,g=i,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),C=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${d} L ${p} ${h} A ${n} ${n} 0 0 0 ${v} ${g} Z')`;return{arrowShadowWidth:b,arrowPath:S,arrowPolygon:C}}const n2=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ae(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Ep=8;function $p(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Ep:n}}function wi(e,t){return e?t:{}}function o2(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},n2(e,t,o)),{"&:before":{background:t}})]},wi(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ae(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),wi(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ae(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),wi(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),wi(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function a2(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Lm={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i2={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},s2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l2(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a}=e,i=t/2,s={},l=$p({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Lm).forEach(c=>{const u=n&&i2[c]||Lm[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,s2.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-l.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=l.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-l.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=l.arrowOffsetHorizontal*2-i;break}f.overflow=a2(c,l,t,r),f.htmlRegion="visibleFirst"}),s}const c2=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:p}=e,h=t(i).add(p).add(d).equal(),v=t(i).mul(2).add(p).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Ao(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${Ae(e.calc(u).div(2).equal())} ${Ae(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,Ep)}},[`${r}-content`]:{position:"relative"}}),ex(e,(g,{darkColor:b})=>({[`&${r}-${g}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},o2(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},u2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$p({contentRadius:e.borderRadius,limitVerticalRadius:!0})),r2(At(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Op=(e,t=!0)=>Wr("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=n,s=At(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[c2(s),zS(n,"zoom-big-fast")]},u2,{resetStyle:!1,injectStyle:t})(e),f2=Un.map(e=>`${e}-inverse`);function d2(e,t=!0){return t?[].concat(ie(f2),ie(Un)).includes(e):Un.includes(e)}function Pp(e,t){const r=d2(t),n=oe({[`${e}-${t}`]:t&&r}),o={},a={},i=BS(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const m2=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=m.useContext(nt),l=s("tooltip",t),[c,u,f]=Op(l),d=Pp(l,a),p=d.arrowStyle,h=Object.assign(Object.assign({},i),d.overlayStyle),v=oe(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className);return c(m.createElement("div",{className:v,style:p},m.createElement("div",{className:`${l}-arrow`}),m.createElement(Sp,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var g2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const v2=m.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:d,destroyOnHidden:p,arrow:h=!0,title:v,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0,motion:S,getPopupContainer:x,placement:E="top",mouseEnterDelay:w=.1,mouseLeaveDelay:$=.1,overlayStyle:O,rootClassName:P,overlayClassName:M,styles:T,classNames:I}=e,R=g2(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),j=!!h,[,F]=Qr(),{getPopupContainer:A,getPrefixCls:_,direction:N,className:W,style:U,classNames:L,styles:V}=Da("tooltip"),B=bs(),z=m.useRef(null),q=()=>{var Ue;(Ue=z.current)===null||Ue===void 0||Ue.forceAlign()};m.useImperativeHandle(t,()=>{var Ue,He;return{forceAlign:q,forcePopupAlign:()=>{B.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(Ue=z.current)===null||Ue===void 0?void 0:Ue.nativeElement,popupElement:(He=z.current)===null||He===void 0?void 0:He.popupElement}});const[Y,Z]=xs(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Q=!v&&!g&&v!==0,J=Ue=>{var He,Te;Z(Q?!1:Ue),Q||((He=e.onOpenChange)===null||He===void 0||He.call(e,Ue),(Te=e.onVisibleChange)===null||Te===void 0||Te.call(e,Ue))},ne=m.useMemo(()=>{var Ue,He;let Te=y;return typeof h=="object"&&(Te=(He=(Ue=h.pointAtCenter)!==null&&Ue!==void 0?Ue:h.arrowPointAtCenter)!==null&&He!==void 0?He:y),b||l2({arrowPointAtCenter:Te,autoAdjustOverflow:C,arrowWidth:j?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS})},[y,h,b,F]),ae=m.useMemo(()=>v===0?v:g||v||"",[g,v]),se=m.createElement(Zc,{space:!0},typeof ae=="function"?ae():ae),le=_("tooltip",o),ce=_(),re=e["data-popover-inject"];let ve=Y;!("open"in e)&&!("visible"in e)&&Q&&(ve=!1);const me=m.isValidElement(c)&&!Wh(c)?c:m.createElement("span",null,c),he=me.props,Le=!he.className||typeof he.className=="string"?oe(he.className,a||`${le}-open`):he.className,[ue,ge,de]=Op(le,!re),te=Pp(le,s),ye=te.arrowStyle,Ie=oe(M,{[`${le}-rtl`]:N==="rtl"},te.className,P,ge,de,W,L.root,I==null?void 0:I.root),st=oe(L.body,I==null?void 0:I.body),[Ze,Qe]=Mw("Tooltip",R.zIndex),$t=m.createElement(t2,Object.assign({},R,{zIndex:Ze,showArrow:j,placement:E,mouseEnterDelay:w,mouseLeaveDelay:$,prefixCls:le,classNames:{root:Ie,body:st},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye),V.root),U),O),T==null?void 0:T.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},V.body),l),T==null?void 0:T.body),te.overlayStyle)},getTooltipContainer:x||i||A,ref:z,builtinPlacements:ne,overlay:se,visible:ve,onVisibleChange:J,afterVisibleChange:u??f,arrowContent:m.createElement("span",{className:`${le}-arrow-content`}),motion:{motionName:nS(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p??!!d}),ve?$o(me,{className:Le}):me);return ue(m.createElement(Gh.Provider,{value:Qe},$t))}),Fp=v2;Fp._InternalPanelDoNotUseOrYouWillBeFired=m2;var Di={exports:{}},h2=Di.exports,zm;function p2(){return zm||(zm=1,(function(e,t){(function(r,n){e.exports=n()})(h2,(function(){var r=1e3,n=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",d="quarter",p="year",h="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var j=["th","st","nd","rd"],F=R%100;return"["+R+(j[(F-20)%10]||j[F]||j[0])+"]"}},C=function(R,j,F){var A=String(R);return!A||A.length>=j?R:""+Array(j+1-A.length).join(F)+R},S={s:C,z:function(R){var j=-R.utcOffset(),F=Math.abs(j),A=Math.floor(F/60),_=F%60;return(j<=0?"+":"-")+C(A,2,"0")+":"+C(_,2,"0")},m:function R(j,F){if(j.date()<F.date())return-R(F,j);var A=12*(F.year()-j.year())+(F.month()-j.month()),_=j.clone().add(A,f),N=F-_<0,W=j.clone().add(A+(N?-1:1),f);return+(-(A+(F-_)/(N?_-W:W-_))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:p,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:d}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},x="en",E={};E[x]=y;var w="$isDayjsObject",$=function(R){return R instanceof T||!(!R||!R[w])},O=function R(j,F,A){var _;if(!j)return x;if(typeof j=="string"){var N=j.toLowerCase();E[N]&&(_=N),F&&(E[N]=F,_=N);var W=j.split("-");if(!_&&W.length>1)return R(W[0])}else{var U=j.name;E[U]=j,_=U}return!A&&_&&(x=_),_||!A&&x},P=function(R,j){if($(R))return R.clone();var F=typeof j=="object"?j:{};return F.date=R,F.args=arguments,new T(F)},M=S;M.l=O,M.i=$,M.w=function(R,j){return P(R,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var T=(function(){function R(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[w]=!0}var j=R.prototype;return j.parse=function(F){this.$d=(function(A){var _=A.date,N=A.utc;if(_===null)return new Date(NaN);if(M.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var W=_.match(g);if(W){var U=W[2]-1||0,L=(W[7]||"0").substring(0,3);return N?new Date(Date.UTC(W[1],U,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)):new Date(W[1],U,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)}}return new Date(_)})(F),this.init()},j.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},j.$utils=function(){return M},j.isValid=function(){return this.$d.toString()!==v},j.isSame=function(F,A){var _=P(F);return this.startOf(A)<=_&&_<=this.endOf(A)},j.isAfter=function(F,A){return P(F)<this.startOf(A)},j.isBefore=function(F,A){return this.endOf(A)<P(F)},j.$g=function(F,A,_){return M.u(F)?this[A]:this.set(_,F)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(F,A){var _=this,N=!!M.u(A)||A,W=M.p(F),U=function(Q,J){var ne=M.w(_.$u?Date.UTC(_.$y,J,Q):new Date(_.$y,J,Q),_);return N?ne:ne.endOf(c)},L=function(Q,J){return M.w(_.toDate()[Q].apply(_.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(J)),_)},V=this.$W,B=this.$M,z=this.$D,q="set"+(this.$u?"UTC":"");switch(W){case p:return N?U(1,0):U(31,11);case f:return N?U(1,B):U(0,B+1);case u:var Y=this.$locale().weekStart||0,Z=(V<Y?V+7:V)-Y;return U(N?z-Z:z+(6-Z),B);case c:case h:return L(q+"Hours",0);case l:return L(q+"Minutes",1);case s:return L(q+"Seconds",2);case i:return L(q+"Milliseconds",3);default:return this.clone()}},j.endOf=function(F){return this.startOf(F,!1)},j.$set=function(F,A){var _,N=M.p(F),W="set"+(this.$u?"UTC":""),U=(_={},_[c]=W+"Date",_[h]=W+"Date",_[f]=W+"Month",_[p]=W+"FullYear",_[l]=W+"Hours",_[s]=W+"Minutes",_[i]=W+"Seconds",_[a]=W+"Milliseconds",_)[N],L=N===c?this.$D+(A-this.$W):A;if(N===f||N===p){var V=this.clone().set(h,1);V.$d[U](L),V.init(),this.$d=V.set(h,Math.min(this.$D,V.daysInMonth())).$d}else U&&this.$d[U](L);return this.init(),this},j.set=function(F,A){return this.clone().$set(F,A)},j.get=function(F){return this[M.p(F)]()},j.add=function(F,A){var _,N=this;F=Number(F);var W=M.p(A),U=function(B){var z=P(N);return M.w(z.date(z.date()+Math.round(B*F)),N)};if(W===f)return this.set(f,this.$M+F);if(W===p)return this.set(p,this.$y+F);if(W===c)return U(1);if(W===u)return U(7);var L=(_={},_[s]=n,_[l]=o,_[i]=r,_)[W]||1,V=this.$d.getTime()+F*L;return M.w(V,this)},j.subtract=function(F,A){return this.add(-1*F,A)},j.format=function(F){var A=this,_=this.$locale();if(!this.isValid())return _.invalidDate||v;var N=F||"YYYY-MM-DDTHH:mm:ssZ",W=M.z(this),U=this.$H,L=this.$m,V=this.$M,B=_.weekdays,z=_.months,q=_.meridiem,Y=function(J,ne,ae,se){return J&&(J[ne]||J(A,N))||ae[ne].slice(0,se)},Z=function(J){return M.s(U%12||12,J,"0")},Q=q||function(J,ne,ae){var se=J<12?"AM":"PM";return ae?se.toLowerCase():se};return N.replace(b,(function(J,ne){return ne||(function(ae){switch(ae){case"YY":return String(A.$y).slice(-2);case"YYYY":return M.s(A.$y,4,"0");case"M":return V+1;case"MM":return M.s(V+1,2,"0");case"MMM":return Y(_.monthsShort,V,z,3);case"MMMM":return Y(z,V);case"D":return A.$D;case"DD":return M.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return Y(_.weekdaysMin,A.$W,B,2);case"ddd":return Y(_.weekdaysShort,A.$W,B,3);case"dddd":return B[A.$W];case"H":return String(U);case"HH":return M.s(U,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return Q(U,L,!0);case"A":return Q(U,L,!1);case"m":return String(L);case"mm":return M.s(L,2,"0");case"s":return String(A.$s);case"ss":return M.s(A.$s,2,"0");case"SSS":return M.s(A.$ms,3,"0");case"Z":return W}return null})(J)||W.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(F,A,_){var N,W=this,U=M.p(A),L=P(F),V=(L.utcOffset()-this.utcOffset())*n,B=this-L,z=function(){return M.m(W,L)};switch(U){case p:N=z()/12;break;case f:N=z();break;case d:N=z()/3;break;case u:N=(B-V)/6048e5;break;case c:N=(B-V)/864e5;break;case l:N=B/o;break;case s:N=B/n;break;case i:N=B/r;break;default:N=B}return _?N:M.a(N)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return E[this.$L]},j.locale=function(F,A){if(!F)return this.$L;var _=this.clone(),N=O(F,A,!0);return N&&(_.$L=N),_},j.clone=function(){return M.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},R})(),I=T.prototype;return P.prototype=I,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",p],["$D",h]].forEach((function(R){I[R[1]]=function(j){return this.$g(j,R[0],R[1])}})),P.extend=function(R,j){return R.$i||(R(j,T,P),R.$i=!0),P},P.locale=O,P.isDayjs=$,P.unix=function(R){return P(1e3*R)},P.en=E[x],P.Ls=E,P.p={},P}))})(Di)),Di.exports}p2();const y2=["parentNode"],b2="form_item";function sa(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Mp(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:y2.includes(r)?`${b2}_${r}`:r}function Rp(e,t,r,n,o,a){let i=n;return a!==void 0?i=a:r.validating?i="validating":e.length?i="error":t.length?i="warning":(r.touched||o&&r.validated)&&(i="success"),i}var C2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Bm(e){return sa(e).join("_")}function Dm(e,t){const r=t.getFieldInstance(e),n=Pv(r);if(n)return n;const o=Mp(sa(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Ap(e){const[t]=$f(),r=m.useRef({}),n=m.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Bm(o);a?r.current[i]=a:delete r.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=C2(a,["focus"]),l=Dm(o,n);l&&(dw(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&n.focusField(o))},focusField:o=>{var a,i;const s=n.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Dm(o,n))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Bm(o);return r.current[a]}}),[e,t]);return[n]}function Rs(e){return At(e,{inputAffixPadding:e.paddingXXS})}const As=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:C,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:E}=e,w=S||r,$=E||w,O=x||s,P=Math.round((t-w*n)/2*10)/10-o,M=Math.round((a-$*n)/2*10)/10-o,T=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(T,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:C,activeBg:C,inputFontSize:w,inputFontSizeLG:O,inputFontSizeSM:$}},x2=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ff=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},x2(At(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Tp=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Hm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Tp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),w2=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ff(e))}),Hm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Hm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Vm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),S2=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Vm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Vm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ff(e))}})}),E2=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},jp=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t==null?void 0:t.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Wm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},jp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$2=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ff(e))}),Wm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Wm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),qm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),O2=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},qm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),qm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Ip=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Ae(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Um=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ip(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),P2=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ip(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Um(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Um(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),F2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_p=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Ae(t)} ${Ae(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},kp=e=>({padding:`${Ae(e.paddingBlockSM)} ${Ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Np=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ae(e.paddingBlock)} ${Ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},F2(e.colorTextPlaceholder)),{"&-lg":Object.assign({},_p(e)),"&-sm":Object.assign({},kp(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),M2=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},_p(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},kp(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},XC()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
157
|
-
& > ${t}-affix-wrapper,
|
|
158
|
-
& > ${t}-number-affix-wrapper,
|
|
159
|
-
& > ${r}-picker-range
|
|
160
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
161
|
-
& > ${r}-select-auto-complete ${t},
|
|
162
|
-
& > ${r}-cascader-picker ${t},
|
|
163
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
164
|
-
& > ${r}-select:first-child > ${r}-select-selector,
|
|
165
|
-
& > ${r}-select-auto-complete:first-child ${t},
|
|
166
|
-
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
167
|
-
& > ${r}-select:last-child > ${r}-select-selector,
|
|
168
|
-
& > ${r}-cascader-picker:last-child ${t},
|
|
169
|
-
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},R2=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,i=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ao(e)),Np(e)),w2(e)),$2(e)),E2(e)),P2(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},A2=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ae(e.inputAffixPadding)}`}}}},T2=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Np(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),A2(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},j2=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ao(e)),M2(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},S2(e)),O2(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},I2=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
170
|
-
> ${t},
|
|
171
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},_2=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Lp=Wr(["Input","Shared"],e=>{const t=At(e,Rs(e));return[R2(t),T2(t)]},As,{resetFont:!1}),zp=Wr(["Input","Component"],e=>{const t=At(e,Rs(e));return[j2(t),I2(t),_2(t),sp(t)]},As,{resetFont:!1}),Bp=Yr({});var k2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Gm(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const N2=["xs","sm","md","lg","xl","xxl"],Dp=m.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(nt),{gutter:o,wrap:a}=m.useContext(Bp),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:f,className:d,children:p,flex:h,style:v}=e,g=k2(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=r("col",i),[y,C,S]=$$(b),x={};let E={};N2.forEach(O=>{let P={};const M=e[O];typeof M=="number"?P.span=M:typeof M=="object"&&(P=M||{}),delete g[O],E=Object.assign(Object.assign({},E),{[`${b}-${O}-${P.span}`]:P.span!==void 0,[`${b}-${O}-order-${P.order}`]:P.order||P.order===0,[`${b}-${O}-offset-${P.offset}`]:P.offset||P.offset===0,[`${b}-${O}-push-${P.push}`]:P.push||P.push===0,[`${b}-${O}-pull-${P.pull}`]:P.pull||P.pull===0,[`${b}-rtl`]:n==="rtl"}),P.flex&&(E[`${b}-${O}-flex`]=!0,x[`--${b}-${O}-flex`]=Gm(P.flex))});const w=oe(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},d,E,C,S),$={};if(o&&o[0]>0){const O=o[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=Gm(h),a===!1&&!$.minWidth&&($.minWidth=0)),y(m.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},$),v),x),className:w,ref:t}),p))});function L2(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Oa.length;s++){const l=Oa[s];if(o[l]&&a[l]!==void 0){r[i]=a[l];break}}else r[i]=a}),r}var z2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Xm(e,t){const[r,n]=m.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let a=0;a<Oa.length;a++){const i=Oa[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return m.useEffect(()=>{o()},[JSON.stringify(e),t]),r}const B2=m.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=z2(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=m.useContext(nt),p=Y$(!0,null),h=Xm(o,p),v=Xm(n,p),g=f("row",r),[b,y,C]=S$(g),S=L2(l,p),x=oe(g,{[`${g}-no-wrap`]:c===!1,[`${g}-${v}`]:v,[`${g}-${h}`]:h,[`${g}-rtl`]:d==="rtl"},a,y,C),E={},w=S[0]!=null&&S[0]>0?S[0]/-2:void 0;w&&(E.marginLeft=w,E.marginRight=w);const[$,O]=S;E.rowGap=O;const P=m.useMemo(()=>({gutter:[$,O],wrap:c}),[$,O,c]);return b(m.createElement(Bp.Provider,{value:P},m.createElement("div",Object.assign({},u,{className:x,style:Object.assign(Object.assign({},E),i),ref:t}),s)))});function D2(e){return!!(e.addonBefore||e.addonAfter)}function H2(e){return!!(e.prefix||e.suffix||e.allowClear)}function Km(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function as(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=Km(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=Km(t,e,n),r(o);return}r(o)}}function Hp(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Vp=X.forwardRef(function(e,t){var r,n,o,a=e.inputElement,i=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,p=e.style,h=e.disabled,v=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,C=e.value,S=e.handleReset,x=e.hidden,E=e.classes,w=e.classNames,$=e.dataAttrs,O=e.styles,P=e.components,M=e.onClear,T=i??a,I=(P==null?void 0:P.affixWrapper)||"span",R=(P==null?void 0:P.groupWrapper)||"span",j=(P==null?void 0:P.wrapper)||"span",F=(P==null?void 0:P.groupAddon)||"span",A=Ne(null),_=function(ce){var re;(re=A.current)!==null&&re!==void 0&&re.contains(ce.target)&&(b==null||b())},N=H2(e),W=nb(T,{value:C,className:oe((r=T.props)===null||r===void 0?void 0:r.className,!N&&(w==null?void 0:w.variant))||null}),U=Ne(null);if(X.useImperativeHandle(t,function(){return{nativeElement:U.current||A.current}}),N){var L=null;if(y){var V=!h&&!v&&C,B="".concat(s,"-clear-icon"),z=be(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";L=X.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){S==null||S(ce),M==null||M()},onMouseDown:function(ce){return ce.preventDefault()},className:oe(B,k(k({},"".concat(B,"-hidden"),!V),"".concat(B,"-has-suffix"),!!c))},z)}var q="".concat(s,"-affix-wrapper"),Y=oe(q,k(k(k(k(k({},"".concat(s,"-disabled"),h),"".concat(q,"-disabled"),h),"".concat(q,"-focused"),g),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&y&&C),E==null?void 0:E.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),Z=(c||y)&&X.createElement("span",{className:oe("".concat(s,"-suffix"),w==null?void 0:w.suffix),style:O==null?void 0:O.suffix},L,c);W=X.createElement(I,qe({className:Y,style:O==null?void 0:O.affixWrapper,onClick:_},$==null?void 0:$.affixWrapper,{ref:A}),l&&X.createElement("span",{className:oe("".concat(s,"-prefix"),w==null?void 0:w.prefix),style:O==null?void 0:O.prefix},l),W,Z)}if(D2(e)){var Q="".concat(s,"-group"),J="".concat(Q,"-addon"),ne="".concat(Q,"-wrapper"),ae=oe("".concat(s,"-wrapper"),Q,E==null?void 0:E.wrapper,w==null?void 0:w.wrapper),se=oe(ne,k({},"".concat(ne,"-disabled"),h),E==null?void 0:E.group,w==null?void 0:w.groupWrapper);W=X.createElement(R,{className:se,ref:U},X.createElement(j,{className:ae},u&&X.createElement(F,{className:J},u),W,f&&X.createElement(F,{className:J},f)))}return X.cloneElement(W,{className:oe((n=W.props)===null||n===void 0?void 0:n.className,d)||null,style:D(D({},(o=W.props)===null||o===void 0?void 0:o.style),p),hidden:x})}),V2=["show"];function Wp(e,t){return m.useMemo(function(){var r={};t&&(r.show=be(t)==="object"&&t.formatter?t.formatter:!!t),r=D(D({},r),e);var n=r,o=n.show,a=Ft(n,V2);return D(D({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var W2=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],q2=xn(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,p=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,b=e.count,y=e.type,C=y===void 0?"text":y,S=e.classes,x=e.classNames,E=e.styles,w=e.onCompositionStart,$=e.onCompositionEnd,O=Ft(e,W2),P=Kr(!1),M=ee(P,2),T=M[0],I=M[1],R=Ne(!1),j=Ne(!1),F=Ne(null),A=Ne(null),_=function(te){F.current&&Hp(F.current,te)},N=xs(e.defaultValue,{value:e.value}),W=ee(N,2),U=W[0],L=W[1],V=U==null?"":String(U),B=Kr(null),z=ee(B,2),q=z[0],Y=z[1],Z=Wp(b,g),Q=Z.max||h,J=Z.strategy(V),ne=!!Q&&J>Q;ef(t,function(){var de;return{focus:_,blur:function(){var ye;(ye=F.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,Ie,st){var Ze;(Ze=F.current)===null||Ze===void 0||Ze.setSelectionRange(ye,Ie,st)},select:function(){var ye;(ye=F.current)===null||ye===void 0||ye.select()},input:F.current,nativeElement:((de=A.current)===null||de===void 0?void 0:de.nativeElement)||F.current}}),bt(function(){j.current&&(j.current=!1),I(function(de){return de&&f?!1:de})},[f]);var ae=function(te,ye,Ie){var st=ye;if(!R.current&&Z.exceedFormatter&&Z.max&&Z.strategy(ye)>Z.max){if(st=Z.exceedFormatter(ye,{max:Z.max}),ye!==st){var Ze,Qe;Y([((Ze=F.current)===null||Ze===void 0?void 0:Ze.selectionStart)||0,((Qe=F.current)===null||Qe===void 0?void 0:Qe.selectionEnd)||0])}}else if(Ie.source==="compositionEnd")return;L(st),F.current&&as(F.current,te,n,st)};bt(function(){if(q){var de;(de=F.current)===null||de===void 0||de.setSelectionRange.apply(de,ie(q))}},[q]);var se=function(te){ae(te,te.target.value,{source:"change"})},le=function(te){R.current=!1,ae(te,te.currentTarget.value,{source:"compositionEnd"}),$==null||$(te)},ce=function(te){i&&te.key==="Enter"&&!j.current&&(j.current=!0,i(te)),s==null||s(te)},re=function(te){te.key==="Enter"&&(j.current=!1),l==null||l(te)},ve=function(te){I(!0),o==null||o(te)},me=function(te){j.current&&(j.current=!1),I(!1),a==null||a(te)},he=function(te){L(""),_(),F.current&&as(F.current,te,n)},Le=ne&&"".concat(u,"-out-of-range"),ue=function(){var te=Va(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return X.createElement("input",qe({autoComplete:r},te,{onChange:se,onFocus:ve,onBlur:me,onKeyDown:ce,onKeyUp:re,className:oe(u,k({},"".concat(u,"-disabled"),f),x==null?void 0:x.input),style:E==null?void 0:E.input,ref:F,size:d,type:C,onCompositionStart:function(Ie){R.current=!0,w==null||w(Ie)},onCompositionEnd:le}))},ge=function(){var te=Number(Q)>0;if(v||Z.show){var ye=Z.showFormatter?Z.showFormatter({value:V,count:J,maxLength:Q}):"".concat(J).concat(te?" / ".concat(Q):"");return X.createElement(X.Fragment,null,Z.show&&X.createElement("span",{className:oe("".concat(u,"-show-count-suffix"),k({},"".concat(u,"-show-count-has-suffix"),!!v),x==null?void 0:x.count),style:D({},E==null?void 0:E.count)},ye),v)}return null};return X.createElement(Vp,qe({},O,{prefixCls:u,className:oe(p,Le),handleReset:he,value:V,focused:T,triggerFocus:_,suffix:ge(),disabled:f,classes:S,classNames:x,styles:E,ref:A}),ue())});const qp=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:X.createElement(vf,null)}),t};function Up(e,t){const r=Ne([]),n=()=>{r.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return bt(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function U2(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var G2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Ts=xn((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:d,className:p,style:h,styles:v,rootClassName:g,onChange:b,classNames:y,variant:C}=e,S=G2(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,allowClear:w,autoComplete:$,className:O,style:P,classNames:M,styles:T}=Da("input"),I=x("input",r),R=Ne(null),j=Zn(I),[F,A,_]=Lp(I,g),[N]=zp(I,j),{compactSize:W,compactItemClassnames:U}=Ss(I,E),L=_o(me=>{var he;return(he=a??W)!==null&&he!==void 0?he:me}),V=X.useContext(bn),B=i??V,{status:z,hasFeedback:q,feedbackIcon:Y}=rt(Cr),Z=Pf(z,o),Q=U2(e)||!!q;Ne(Q);const J=Up(R,!0),ne=me=>{J(),s==null||s(me)},ae=me=>{J(),l==null||l(me)},se=me=>{J(),b==null||b(me)},le=(q||c)&&X.createElement(X.Fragment,null,c,q&&Y),ce=qp(u??w),[re,ve]=wp("input",C,n);return F(N(X.createElement(q2,Object.assign({ref:wn(t,R),prefixCls:I,autoComplete:$},S,{disabled:B,onBlur:ne,onFocus:ae,style:Object.assign(Object.assign({},P),h),styles:Object.assign(Object.assign({},T),v),suffix:le,allowClear:ce,className:oe(p,g,_,j,U,O),onChange:se,addonBefore:d&&X.createElement(Zc,{form:!0,space:!0},d),addonAfter:f&&X.createElement(Zc,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),M),{input:oe({[`${I}-sm`]:L==="small",[`${I}-lg`]:L==="large",[`${I}-rtl`]:E==="rtl"},y==null?void 0:y.input,M.input,A),variant:oe({[`${I}-${re}`]:ve},Jc(I,Z)),affixWrapper:oe({[`${I}-affix-wrapper-sm`]:L==="small",[`${I}-affix-wrapper-lg`]:L==="large",[`${I}-affix-wrapper-rtl`]:E==="rtl"},A),wrapper:oe({[`${I}-group-rtl`]:E==="rtl"},A),groupWrapper:oe({[`${I}-group-wrapper-sm`]:L==="small",[`${I}-group-wrapper-lg`]:L==="large",[`${I}-group-wrapper-rtl`]:E==="rtl",[`${I}-group-wrapper-${re}`]:ve},Jc(`${I}-group-wrapper`,Z,q),A)})}))))});function X2(e){return e==null?null:typeof e=="object"&&!Ju(e)?e:{title:e}}function is(e){const[t,r]=m.useState(e);return m.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const K2=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
172
|
-
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
173
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},Z2=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Zm=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},Y2=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ao(e)),Z2(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Zm(e,e.controlHeightSM)),"&-large":Object.assign({},Zm(e,e.controlHeightLG))})}},Q2=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ao(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
174
|
-
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Cf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},jn=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),J2=e=>{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label,
|
|
175
|
-
${t}-col-xl-24${r}-label`]:jn(e)}}},eO=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
|
|
176
|
-
> ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},tO=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:jn(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},rO=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
|
|
177
|
-
${n}-col-24${r}-label,
|
|
178
|
-
${n}-col-xl-24${r}-label`]:jn(e)},[`@media (max-width: ${Ae(e.screenXSMax)})`]:[tO(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:jn(e)}}}],[`@media (max-width: ${Ae(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:jn(e)}}},[`@media (max-width: ${Ae(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:jn(e)}}},[`@media (max-width: ${Ae(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:jn(e)}}}}},nO=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Gp=(e,t)=>At(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Mf=Wr("Form",(e,{rootPrefixCls:t})=>{const r=Gp(e,t);return[Y2(r),Q2(r),K2(r),J2(r),eO(r),rO(r),$S(r),Cf]},nO,{order:-1e3}),Ym=[];function Il(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const Xp=({help:e,helpStatus:t,errors:r=Ym,warnings:n=Ym,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=m.useContext(Of),l=`${s}-item-explain`,c=Zn(s),[u,f,d]=Mf(s,c),p=m.useMemo(()=>cm(s),[s]),h=is(r),v=is(n),g=m.useMemo(()=>e!=null?[Il(e,"help",t)]:[].concat(ie(h.map((C,S)=>Il(C,"error","error",S))),ie(v.map((C,S)=>Il(C,"warning","warning",S)))),[e,t,h,v]),b=m.useMemo(()=>{const C={};return g.forEach(({key:S})=>{C[S]=(C[S]||0)+1}),g.map((S,x)=>Object.assign(Object.assign({},S),{key:C[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[g]),y={};return a&&(y.id=`${a}_help`),u(m.createElement(To,{motionDeadline:p.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:i},C=>{const{className:S,style:x}=C;return m.createElement("div",Object.assign({},y,{className:oe(l,S,d,c,o,f),style:x}),m.createElement(jh,Object.assign({keys:b},cm(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:w,error:$,errorStatus:O,className:P,style:M}=E;return m.createElement("div",{key:w,className:oe(P,{[`${l}-${O}`]:O}),style:M},$)}))}))};var oO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const aO=(e,t)=>{const r=m.useContext(bn),{getPrefixCls:n,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=Da("form"),{prefixCls:u,className:f,rootClassName:d,size:p,disabled:h=r,form:v,colon:g,labelAlign:b,labelWrap:y,labelCol:C,wrapperCol:S,hideRequiredMark:x,layout:E="horizontal",scrollToFirstError:w,requiredMark:$,onFinishFailed:O,name:P,style:M,feedbackIcons:T,variant:I}=e,R=oO(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),j=_o(p),F=m.useContext(ih),A=m.useMemo(()=>$!==void 0?$:x?!1:a!==void 0?a:!0,[x,$,a]),_=g??i,N=n("form",u),W=Zn(N),[U,L,V]=Mf(N,W),B=oe(N,`${N}-${E}`,{[`${N}-hide-required-mark`]:A===!1,[`${N}-rtl`]:o==="rtl",[`${N}-${j}`]:j},V,W,L,l,f,d),[z]=Ap(v),{__INTERNAL__:q}=z;q.name=P;const Y=m.useMemo(()=>({name:P,labelAlign:b,labelCol:C,labelWrap:y,wrapperCol:S,layout:E,colon:_,requiredMark:A,itemRef:q.itemRef,form:z,feedbackIcons:T}),[P,b,C,S,E,_,A,z,T]),Z=m.useRef(null);m.useImperativeHandle(t,()=>{var ne;return Object.assign(Object.assign({},z),{nativeElement:(ne=Z.current)===null||ne===void 0?void 0:ne.nativeElement})});const Q=(ne,ae)=>{if(ne){let se={block:"nearest"};typeof ne=="object"&&(se=Object.assign(Object.assign({},se),ne)),z.scrollToField(ae,se)}},J=ne=>{if(O==null||O(ne),ne.errorFields.length){const ae=ne.errorFields[0].name;if(w!==void 0){Q(w,ae);return}s!==void 0&&Q(s,ae)}};return U(m.createElement(xp.Provider,{value:I},m.createElement(mh,{disabled:h},m.createElement(qn.Provider,{value:j},m.createElement(bp,{validateMessages:F},m.createElement(Zr.Provider,{value:Y},m.createElement(Cp,{status:!0},m.createElement(ko,Object.assign({id:P},R,{name:P,onFinishFailed:J,form:z,ref:Z,style:Object.assign(Object.assign({},c),M),className:B})))))))))},iO=m.forwardRef(aO);function sO(e){if(typeof e=="function")return e;const t=ma(e);return t.length<=1?t[0]:t}const Kp=()=>{const{status:e,errors:t=[],warnings:r=[]}=m.useContext(Cr);return{status:e,errors:t,warnings:r}};Kp.Context=Cr;function lO(e){const[t,r]=m.useState(e),n=m.useRef(null),o=m.useRef([]),a=m.useRef(!1);m.useEffect(()=>(a.current=!1,()=>{a.current=!0,yr.cancel(n.current),n.current=null}),[]);function i(s){a.current||(n.current===null&&(o.current=[],n.current=yr(()=>{n.current=null,r(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,i]}function cO(){const{itemRef:e}=m.useContext(Zr),t=m.useRef({});function r(n,o){const a=o&&typeof o=="object"&&za(o),i=n.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=wn(e(n),a)),t.current.ref}return r}const uO=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},fO=wh(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=Gp(e,t);return uO(r)});var dO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const mO=24,gO=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:d,onErrorVisibleChanged:p,label:h}=e,v=`${t}-item`,g=m.useContext(Zr),b=m.useMemo(()=>{let R=Object.assign({},o||g.wrapperCol||{});return h===null&&!n&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(F=>{const A=F?[F]:[],_=pr(g.labelCol,A),N=typeof _=="object"?_:{},W=pr(R,A),U=typeof W=="object"?W:{};"span"in N&&!("offset"in U)&&N.span<mO&&(R=hr(R,[].concat(A,["offset"]),N.span))}),R},[o,g]),y=oe(`${v}-control`,b.className),C=m.useMemo(()=>{const{labelCol:R,wrapperCol:j}=g;return dO(g,["labelCol","wrapperCol"])},[g]),S=m.useRef(null),[x,E]=m.useState(0);dt(()=>{c&&S.current?E(S.current.clientHeight):E(0)},[c]);const w=m.createElement("div",{className:`${v}-control-input`},m.createElement("div",{className:`${v}-control-input-content`},a)),$=m.useMemo(()=>({prefixCls:t,status:r}),[t,r]),O=d!==null||i.length||s.length?m.createElement(Of.Provider,{value:$},m.createElement(Xp,{fieldId:f,errors:i,warnings:s,help:u,helpStatus:r,className:`${v}-explain-connected`,onVisibleChanged:p})):null,P={};f&&(P.id=`${f}_extra`);const M=c?m.createElement("div",Object.assign({},P,{className:`${v}-extra`,ref:S}),c):null,T=O||M?m.createElement("div",{className:`${v}-additional`,style:d?{minHeight:d+x}:{}},O,M):null,I=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:w,errorList:O,extra:M}):m.createElement(m.Fragment,null,w,T);return m.createElement(Zr.Provider,{value:C},m.createElement(Dp,Object.assign({},b,{className:y}),I),m.createElement(fO,{prefixCls:t}))};var vO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},hO=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:vO}))},pO=m.forwardRef(hO),yO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const bO=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[f]=lC("Form"),{labelAlign:d,labelCol:p,labelWrap:h,colon:v}=m.useContext(Zr);if(!t)return null;const g=n||p||{},b=o||d,y=`${e}-item-label`,C=oe(y,b==="left"&&`${y}-left`,g.className,{[`${y}-wrap`]:!!h});let S=t;const x=a===!0||v!==!1&&a!==!1;x&&!c&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const w=X2(l);if(w){const{icon:I=m.createElement(pO,null)}=w,R=yO(w,["icon"]),j=m.createElement(Fp,Object.assign({},R),m.cloneElement(I,{className:`${e}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));S=m.createElement(m.Fragment,null,S,j)}const $=s==="optional",O=typeof s=="function",P=s===!1;O?S=s(S,{required:!!i}):$&&!i&&(S=m.createElement(m.Fragment,null,S,m.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((u=Wn.Form)===null||u===void 0?void 0:u.optional))));let M;P?M="hidden":($||O)&&(M="optional");const T=oe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${M}`]:M,[`${e}-item-no-colon`]:!x});return m.createElement(Dp,Object.assign({},g,{className:C}),m.createElement("label",{htmlFor:r,className:T,title:typeof t=="string"?t:""},S))},CO={success:Dh,warning:Hh,error:vf,validating:hf};function Zp({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:u}=m.useContext(Zr),f=Rp(t,r,i,null,!!n,o),{isFormItemInput:d,status:p,hasFeedback:h,feedbackIcon:v,name:g}=m.useContext(Cr),b=m.useMemo(()=>{var y;let C;if(n){const x=n!==!0&&n.icons||u,E=f&&((y=x==null?void 0:x({status:f,errors:t,warnings:r}))===null||y===void 0?void 0:y[f]),w=f&&CO[f];C=E!==!1&&w?m.createElement("span",{className:oe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||m.createElement(w,null)):null}const S={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:C,isFormItemInput:!0,name:l};return s&&(S.status=(f??p)||"",S.isFormItemInput=d,S.hasFeedback=!!(n??h),S.feedbackIcon=n!==void 0?S.feedbackIcon:v,S.name=l??g),S},[f,n,s,d,p]);return m.createElement(Cr.Provider,{value:b},e)}var xO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function wO(e){const{prefixCls:t,className:r,rootClassName:n,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:d,fieldId:p,required:h,isRequired:v,onSubItemMetaChange:g,layout:b,name:y}=e,C=xO(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),S=`${t}-item`,{requiredMark:x,layout:E}=m.useContext(Zr),w=b||E,$=w==="vertical",O=m.useRef(null),P=is(i),M=is(s),T=a!=null,I=!!(T||i.length||s.length),R=!!O.current&&bf(O.current),[j,F]=m.useState(null);dt(()=>{if(I&&O.current){const U=getComputedStyle(O.current);F(parseInt(U.marginBottom,10))}},[I,R]);const A=U=>{U||F(null)},N=((U=!1)=>{const L=U?P:c.errors,V=U?M:c.warnings;return Rp(L,V,c,"",!!u,l)})(),W=oe(S,r,n,{[`${S}-with-help`]:T||P.length||M.length,[`${S}-has-feedback`]:N&&u,[`${S}-has-success`]:N==="success",[`${S}-has-warning`]:N==="warning",[`${S}-has-error`]:N==="error",[`${S}-is-validating`]:N==="validating",[`${S}-hidden`]:f,[`${S}-${w}`]:w});return m.createElement("div",{className:W,style:o,ref:O},m.createElement(B2,Object.assign({className:`${S}-row`},Va(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),m.createElement(bO,Object.assign({htmlFor:p},e,{requiredMark:x,required:h??v,prefixCls:t,vertical:$})),m.createElement(gO,Object.assign({},e,c,{errors:P,warnings:M,prefixCls:t,status:N,help:a,marginBottom:j,onErrorVisibleChanged:A}),m.createElement(yp.Provider,{value:g},m.createElement(Zp,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:N,name:y},d)))),!!j&&m.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-j}}))}const SO="__SPLIT__";function EO(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const $O=m.memo(({children:e})=>e,(e,t)=>EO(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Qm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function OO(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:p,hidden:h,help:v,layout:g}=e,{getPrefixCls:b}=m.useContext(nt),{name:y}=m.useContext(Zr),C=sO(l),S=typeof C=="function",x=m.useContext(yp),{validateTrigger:E}=m.useContext(Gn),w=p!==void 0?p:E,$=t!=null,O=b("form",a),P=Zn(O),[M,T,I]=Mf(O,P);bs();const R=m.useContext(Ea),j=m.useRef(null),[F,A]=lO({}),[_,N]=Eo(()=>Qm()),W=Y=>{const Z=R==null?void 0:R.getKey(Y.name);if(N(Y.destroy?Qm():Y,!0),r&&v!==!1&&x){let Q=Y.name;if(Y.destroy)Q=j.current||Q;else if(Z!==void 0){const[J,ne]=Z;Q=[J].concat(ie(ne)),j.current=Q}x(Y,Q)}},U=(Y,Z)=>{A(Q=>{const J=Object.assign({},Q),ae=[].concat(ie(Y.name.slice(0,-1)),ie(Z)).join(SO);return Y.destroy?delete J[ae]:J[ae]=Y,J})},[L,V]=m.useMemo(()=>{const Y=ie(_.errors),Z=ie(_.warnings);return Object.values(F).forEach(Q=>{Y.push.apply(Y,ie(Q.errors||[])),Z.push.apply(Z,ie(Q.warnings||[]))}),[Y,Z]},[F,_.errors,_.warnings]),B=cO();function z(Y,Z,Q){return r&&!h?m.createElement(Zp,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:_,errors:L,warnings:V,noStyle:!0,name:t},Y):m.createElement(wO,Object.assign({key:"row"},e,{className:oe(n,I,P,T),prefixCls:O,fieldId:Z,isRequired:Q,errors:L,warnings:V,meta:_,onSubItemMetaChange:U,layout:g,name:t}),Y)}if(!$&&!S&&!o)return M(z(C));let q={};return typeof u=="string"?q.label=u:t&&(q.label=String(t)),f&&(q=Object.assign(Object.assign({},q),f)),M(m.createElement(Ef,Object.assign({},e,{messageVariables:q,trigger:d,validateTrigger:w,onMetaChange:W}),(Y,Z,Q)=>{const J=sa(t).length&&Z?Z.name:[],ne=Mp(J,y),ae=c!==void 0?c:!!(s!=null&&s.some(ce=>{if(ce&&typeof ce=="object"&&ce.required&&!ce.warningOnly)return!0;if(typeof ce=="function"){const re=ce(Q);return(re==null?void 0:re.required)&&!(re!=null&&re.warningOnly)}return!1})),se=Object.assign({},Y);let le=null;if(Array.isArray(C)&&$)le=C;else if(!(S&&(!(i||o)||$))){if(!(o&&!S&&!$))if(m.isValidElement(C)){const ce=Object.assign(Object.assign({},C.props),se);if(ce.id||(ce.id=ne),v||L.length>0||V.length>0||e.extra){const me=[];(v||L.length>0)&&me.push(`${ne}_help`),e.extra&&me.push(`${ne}_extra`),ce["aria-describedby"]=me.join(" ")}L.length>0&&(ce["aria-invalid"]="true"),ae&&(ce["aria-required"]="true"),Mo(C)&&(ce.ref=B(J,C)),new Set([].concat(ie(sa(d)),ie(sa(w)))).forEach(me=>{ce[me]=(...he)=>{var Le,ue,ge,de,te;(ge=se[me])===null||ge===void 0||(Le=ge).call.apply(Le,[se].concat(he)),(te=(de=C.props)[me])===null||te===void 0||(ue=te).call.apply(ue,[de].concat(he))}});const ve=[ce["aria-required"],ce["aria-invalid"],ce["aria-describedby"]];le=m.createElement($O,{control:se,update:C,childProps:ve},$o(C,ce))}else S&&(i||o)&&!$?le=C(Q):le=C}return z(le,ne,ae)}))}const Yp=OO;Yp.useStatus=Kp;var PO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const FO=e=>{var{prefixCls:t,children:r}=e,n=PO(e,["prefixCls","children"]);const{getPrefixCls:o}=m.useContext(nt),a=o("form",t),i=m.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return m.createElement(gp,Object.assign({},n),(s,l,c)=>m.createElement(Of.Provider,{value:i},r(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function MO(){const{form:e}=m.useContext(Zr);return e}const qr=iO;qr.Item=Yp;qr.List=FO;qr.ErrorList=Xp;qr.useForm=Ap;qr.useFormInstance=MO;qr.useWatch=pp;qr.Provider=bp;qr.create=()=>{};var RO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},AO=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:RO}))},TO=m.forwardRef(AO);const jO=e=>{const{getPrefixCls:t,direction:r}=rt(nt),{prefixCls:n,className:o}=e,a=t("input-group",n),i=t("input"),[s,l,c]=zp(i),u=oe(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},l,o),f=rt(Cr),d=da(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(m.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(Cr.Provider,{value:d},e.children)))},IO=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},_O=Wr(["Input","OTP"],e=>{const t=At(e,Rs(e));return IO(t)},As);var kO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const NO=m.forwardRef((e,t)=>{const{className:r,value:n,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=kO(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=m.useContext(nt),u=c("otp"),f=typeof s=="string"?s:n,d=m.useRef(null);m.useImperativeHandle(t,()=>d.current);const p=b=>{o(i,b.target.value)},h=()=>{yr(()=>{var b;const y=(b=d.current)===null||b===void 0?void 0:b.input;document.activeElement===y&&y&&y.select()})},v=b=>{const{key:y,ctrlKey:C,metaKey:S}=b;y==="ArrowLeft"?a(i-1):y==="ArrowRight"?a(i+1):y==="z"&&(C||S)&&b.preventDefault(),h()},g=b=>{b.key==="Backspace"&&!n&&a(i-1),h()};return m.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&m.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),m.createElement(Ts,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:d,value:n,onInput:p,onFocus:h,onKeyDown:v,onKeyUp:g,onMouseDown:h,onMouseUp:h,className:oe(r,{[`${u}-mask-input`]:s})})))});var LO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Si(e){return(e||"").split("")}const zO=e=>{const{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?m.createElement("span",{className:`${r}-separator`},o):null},BO=m.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:d,autoFocus:p,mask:h,type:v,onInput:g,inputMode:b}=e,y=LO(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:S}=m.useContext(nt),x=C("otp",r),E=Vh(y,{aria:!0,data:!0,attr:!0}),[w,$,O]=_O(x),P=_o(B=>o??B),M=m.useContext(Cr),T=Pf(M.status,d),I=m.useMemo(()=>Object.assign(Object.assign({},M),{status:T,hasFeedback:!1,feedbackIcon:null}),[M,T]),R=m.useRef(null),j=m.useRef({});m.useImperativeHandle(t,()=>({focus:()=>{var B;(B=j.current[0])===null||B===void 0||B.focus()},blur:()=>{var B;for(let z=0;z<n;z+=1)(B=j.current[z])===null||B===void 0||B.blur()},nativeElement:R.current}));const F=B=>l?l(B):B,[A,_]=m.useState(()=>Si(F(a||"")));m.useEffect(()=>{i!==void 0&&_(Si(i))},[i]);const N=kt(B=>{_(B),g&&g(B),s&&B.length===n&&B.every(z=>z)&&B.some((z,q)=>A[q]!==z)&&s(B.join(""))}),W=kt((B,z)=>{let q=ie(A);for(let Z=0;Z<B;Z+=1)q[Z]||(q[Z]="");z.length<=1?q[B]=z:q=q.slice(0,B).concat(Si(z)),q=q.slice(0,n);for(let Z=q.length-1;Z>=0&&!q[Z];Z-=1)q.pop();const Y=F(q.map(Z=>Z||" ").join(""));return q=Si(Y).map((Z,Q)=>Z===" "&&!q[Q]?q[Q]:Z),q}),U=(B,z)=>{var q;const Y=W(B,z),Z=Math.min(B+z.length,n-1);Z!==B&&Y[B]!==void 0&&((q=j.current[Z])===null||q===void 0||q.focus()),N(Y)},L=B=>{var z;(z=j.current[B])===null||z===void 0||z.focus()},V={variant:u,disabled:f,status:T,mask:h,type:v,inputMode:b};return w(m.createElement("div",Object.assign({},E,{ref:R,className:oe(x,{[`${x}-sm`]:P==="small",[`${x}-lg`]:P==="large",[`${x}-rtl`]:S==="rtl"},O,$),role:"group"}),m.createElement(Cr.Provider,{value:I},Array.from({length:n}).map((B,z)=>{const q=`otp-${z}`,Y=A[z]||"";return m.createElement(m.Fragment,{key:q},m.createElement(NO,Object.assign({ref:Z=>{j.current[z]=Z},index:z,size:P,htmlSize:1,className:`${x}-input`,onChange:U,value:Y,onActiveChange:L,autoFocus:z===0&&p},V)),z<n-1&&m.createElement(zO,{separator:c,index:z,prefixCls:x}))}))))});var DO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},HO=function(t,r){return m.createElement(lr,qe({},t,{ref:r,icon:DO}))},VO=m.forwardRef(HO),WO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const qO=e=>e?m.createElement(TO,null):m.createElement(VO,null),UO={click:"onClick",hover:"onMouseOver"},GO=m.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:a=qO,suffix:i}=e,s=m.useContext(bn),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[u,f]=Kr(()=>c?o.visible:!1),d=Ne(null);m.useEffect(()=>{c&&f(o.visible)},[c,o]);const p=Up(d),h=()=>{var M;if(l)return;u&&p();const T=!u;f(T),typeof o=="object"&&((M=o.onVisibleChange)===null||M===void 0||M.call(o,T))},v=M=>{const T=UO[n]||"",I=a(u),R={[T]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return m.cloneElement(m.isValidElement(I)?I:m.createElement("span",null,I),R)},{className:g,prefixCls:b,inputPrefixCls:y,size:C}=e,S=WO(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=m.useContext(nt),E=x("input",y),w=x("input-password",b),$=o&&v(w),O=oe(w,g,{[`${w}-${C}`]:!!C}),P=Object.assign(Object.assign({},Va(S,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:O,prefixCls:E,suffix:m.createElement(m.Fragment,null,$,i)});return C&&(P.size=C),m.createElement(Ts,Object.assign({ref:wn(t,d)},P))});var XO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const KO=m.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:p,onCompositionEnd:h,variant:v,onPressEnter:g}=e,b=XO(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:C}=m.useContext(nt),S=m.useRef(!1),x=y("input-search",r),E=y("input",n),{compactSize:w}=Ss(x,C),$=_o(V=>{var B;return(B=a??w)!==null&&B!==void 0?B:V}),O=m.useRef(null),P=V=>{V!=null&&V.target&&V.type==="click"&&f&&f(V.target.value,V,{source:"clear"}),d==null||d(V)},M=V=>{var B;document.activeElement===((B=O.current)===null||B===void 0?void 0:B.input)&&V.preventDefault()},T=V=>{var B,z;f&&f((z=(B=O.current)===null||B===void 0?void 0:B.input)===null||z===void 0?void 0:z.value,V,{source:"input"})},I=V=>{S.current||c||(g==null||g(V),T(V))},R=typeof s=="boolean"?m.createElement(W$,null):null,j=`${x}-button`;let F;const A=s||{},_=A.type&&A.type.__ANT_BUTTON===!0;_||A.type==="button"?F=$o(A,Object.assign({onMouseDown:M,onClick:V=>{var B,z;(z=(B=A==null?void 0:A.props)===null||B===void 0?void 0:B.onClick)===null||z===void 0||z.call(B,V),T(V)},key:"enterButton"},_?{className:j,size:$}:{})):F=m.createElement(wf,{className:j,color:s?"primary":"default",size:$,disabled:u,key:"enterButton",onMouseDown:M,onClick:T,loading:c,icon:R,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(F=[F,$o(l,{key:"addonAfter"})]);const N=oe(x,{[`${x}-rtl`]:C==="rtl",[`${x}-${$}`]:!!$,[`${x}-with-button`]:!!s},o),W=V=>{S.current=!0,p==null||p(V)},U=V=>{S.current=!1,h==null||h(V)},L=Object.assign(Object.assign({},b),{className:N,prefixCls:E,type:"search",size:$,variant:v,onPressEnter:I,onCompositionStart:W,onCompositionEnd:U,addonAfter:F,suffix:i,onChange:P,disabled:u});return m.createElement(Ts,Object.assign({ref:wn(O,t)},L))});var ZO=`
|
|
179
|
-
min-height:0 !important;
|
|
180
|
-
max-height:none !important;
|
|
181
|
-
height:0 !important;
|
|
182
|
-
visibility:hidden !important;
|
|
183
|
-
overflow:hidden !important;
|
|
184
|
-
position:absolute !important;
|
|
185
|
-
z-index:-1000 !important;
|
|
186
|
-
top:0 !important;
|
|
187
|
-
right:0 !important;
|
|
188
|
-
pointer-events: none !important;
|
|
189
|
-
`,YO=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],_l={},er;function QO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_l[r])return _l[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=YO.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(_l[r]=l),l}function JO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;er||(er=document.createElement("textarea"),er.setAttribute("tab-index","-1"),er.setAttribute("aria-hidden","true"),er.setAttribute("name","hiddenTextarea"),document.body.appendChild(er)),e.getAttribute("wrap")?er.setAttribute("wrap",e.getAttribute("wrap")):er.removeAttribute("wrap");var o=QO(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;er.setAttribute("style","".concat(l,";").concat(ZO)),er.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=er.scrollHeight;if(s==="border-box"?d+=i:s==="content-box"&&(d-=a),r!==null||n!==null){er.value=" ";var p=er.scrollHeight-a;r!==null&&(c=p*r,s==="border-box"&&(c=c+a+i),d=Math.max(c,d)),n!==null&&(u=p*n,s==="border-box"&&(u=u+a+i),f=d>u?"":"hidden",d=Math.min(u,d))}var h={height:d,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var eP=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kl=0,Nl=1,Ll=2,tP=m.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange;r.onInternalAutoSize;var d=Ft(r,eP),p=xs(o,{value:a,postState:function(V){return V??""}}),h=ee(p,2),v=h[0],g=h[1],b=function(V){g(V.target.value),f==null||f(V)},y=m.useRef();m.useImperativeHandle(t,function(){return{textArea:y.current}});var C=m.useMemo(function(){return i&&be(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=ee(C,2),x=S[0],E=S[1],w=!!i,$=m.useState(Ll),O=ee($,2),P=O[0],M=O[1],T=m.useState(),I=ee(T,2),R=I[0],j=I[1],F=function(){M(kl)};dt(function(){w&&F()},[a,x,E,w]),dt(function(){if(P===kl)M(Nl);else if(P===Nl){var L=JO(y.current,!1,x,E);M(Ll),j(L)}},[P]);var A=m.useRef(),_=function(){yr.cancel(A.current)},N=function(V){P===Ll&&(s==null||s(V),i&&(_(),A.current=yr(function(){F()})))};m.useEffect(function(){return _},[]);var W=w?R:null,U=D(D({},c),W);return(P===kl||P===Nl)&&(U.overflowY="hidden",U.overflowX="hidden"),m.createElement(vs,{onResize:N,disabled:!(i||s)},m.createElement("textarea",qe({},d,{ref:y,style:U,className:oe(n,l,k({},"".concat(n,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),rP=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],nP=X.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,p=e.prefixCls,h=p===void 0?"rc-textarea":p,v=e.showCount,g=e.count,b=e.className,y=e.style,C=e.disabled,S=e.hidden,x=e.classNames,E=e.styles,w=e.onResize,$=e.onClear,O=e.onPressEnter,P=e.readOnly,M=e.autoSize,T=e.onKeyDown,I=Ft(e,rP),R=xs(n,{value:o,defaultValue:n}),j=ee(R,2),F=j[0],A=j[1],_=F==null?"":String(F),N=X.useState(!1),W=ee(N,2),U=W[0],L=W[1],V=X.useRef(!1),B=X.useState(null),z=ee(B,2),q=z[0],Y=z[1],Z=Ne(null),Q=Ne(null),J=function(){var Ce;return(Ce=Q.current)===null||Ce===void 0?void 0:Ce.textArea},ne=function(){J().focus()};ef(t,function(){var Te;return{resizableTextArea:Q.current,focus:ne,blur:function(){J().blur()},nativeElement:((Te=Z.current)===null||Te===void 0?void 0:Te.nativeElement)||J()}}),bt(function(){L(function(Te){return!C&&Te})},[C]);var ae=X.useState(null),se=ee(ae,2),le=se[0],ce=se[1];X.useEffect(function(){if(le){var Te;(Te=J()).setSelectionRange.apply(Te,ie(le))}},[le]);var re=Wp(g,v),ve=(r=re.max)!==null&&r!==void 0?r:c,me=Number(ve)>0,he=re.strategy(_),Le=!!ve&&he>ve,ue=function(Ce,Ye){var xt=Ye;!V.current&&re.exceedFormatter&&re.max&&re.strategy(Ye)>re.max&&(xt=re.exceedFormatter(Ye,{max:re.max}),Ye!==xt&&ce([J().selectionStart||0,J().selectionEnd||0])),A(xt),as(Ce.currentTarget,Ce,s,xt)},ge=function(Ce){V.current=!0,u==null||u(Ce)},de=function(Ce){V.current=!1,ue(Ce,Ce.currentTarget.value),f==null||f(Ce)},te=function(Ce){ue(Ce,Ce.target.value)},ye=function(Ce){Ce.key==="Enter"&&O&&O(Ce),T==null||T(Ce)},Ie=function(Ce){L(!0),a==null||a(Ce)},st=function(Ce){L(!1),i==null||i(Ce)},Ze=function(Ce){A(""),ne(),as(J(),Ce,s)},Qe=d,$t;re.show&&(re.showFormatter?$t=re.showFormatter({value:_,count:he,maxLength:ve}):$t="".concat(he).concat(me?" / ".concat(ve):""),Qe=X.createElement(X.Fragment,null,Qe,X.createElement("span",{className:oe("".concat(h,"-data-count"),x==null?void 0:x.count),style:E==null?void 0:E.count},$t)));var Ue=function(Ce){var Ye;w==null||w(Ce),(Ye=J())!==null&&Ye!==void 0&&Ye.style.height&&Y(!0)},He=!M&&!v&&!l;return X.createElement(Vp,{ref:Z,value:_,allowClear:l,handleReset:Ze,suffix:Qe,prefixCls:h,classNames:D(D({},x),{},{affixWrapper:oe(x==null?void 0:x.affixWrapper,k(k({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:C,focused:U,className:oe(b,Le&&"".concat(h,"-out-of-range")),style:D(D({},y),q&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $t=="string"?$t:void 0}},hidden:S,readOnly:P,onClear:$},X.createElement(tP,qe({},I,{autoSize:M,maxLength:c,onKeyDown:ye,onChange:te,onFocus:Ie,onBlur:st,onCompositionStart:ge,onCompositionEnd:de,className:oe(x==null?void 0:x.textarea),style:D(D({},E==null?void 0:E.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:h,onResize:Ue,ref:Q,readOnly:P})))});const oP=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
190
|
-
&-allow-clear > ${t},
|
|
191
|
-
&-affix-wrapper${n}-has-feedback ${t}
|
|
192
|
-
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},aP=Wr(["Input","TextArea"],e=>{const t=At(e,Rs(e));return oP(t)},As,{resetFont:!1});var iP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const sP=xn((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:d,styles:p,variant:h,showCount:v,onMouseDown:g,onResize:b}=e,y=iP(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:S,allowClear:x,autoComplete:E,className:w,style:$,classNames:O,styles:P}=Da("textArea"),M=m.useContext(bn),T=i??M,{status:I,hasFeedback:R,feedbackIcon:j}=m.useContext(Cr),F=Pf(I,s),A=m.useRef(null);m.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=A.current)===null||re===void 0?void 0:re.resizableTextArea,focus:ve=>{var me,he;Hp((he=(me=A.current)===null||me===void 0?void 0:me.resizableTextArea)===null||he===void 0?void 0:he.textArea,ve)},blur:()=>{var ve;return(ve=A.current)===null||ve===void 0?void 0:ve.blur()}}});const _=C("input",n),N=Zn(_),[W,U,L]=Lp(_,u),[V]=aP(_,N),{compactSize:B,compactItemClassnames:z}=Ss(_,S),q=_o(re=>{var ve;return(ve=a??B)!==null&&ve!==void 0?ve:re}),[Y,Z]=wp("textArea",h,o),Q=qp(l??x),[J,ne]=m.useState(!1),[ae,se]=m.useState(!1),le=re=>{ne(!0),g==null||g(re);const ve=()=>{ne(!1),document.removeEventListener("mouseup",ve)};document.addEventListener("mouseup",ve)},ce=re=>{var ve,me;if(b==null||b(re),J&&typeof getComputedStyle=="function"){const he=(me=(ve=A.current)===null||ve===void 0?void 0:ve.nativeElement)===null||me===void 0?void 0:me.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&se(!0)}};return W(V(m.createElement(nP,Object.assign({autoComplete:E},y,{style:Object.assign(Object.assign({},$),d),styles:Object.assign(Object.assign({},P),p),disabled:T,allowClear:Q,className:oe(L,N,f,u,z,w,ae&&`${_}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:oe({[`${_}-sm`]:q==="small",[`${_}-lg`]:q==="large"},U,c==null?void 0:c.textarea,O.textarea,J&&`${_}-mouse-active`),variant:oe({[`${_}-${Y}`]:Z},Jc(_,F)),affixWrapper:oe(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:S==="rtl",[`${_}-affix-wrapper-sm`]:q==="small",[`${_}-affix-wrapper-lg`]:q==="large",[`${_}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},U)}),prefixCls:_,suffix:R&&m.createElement("span",{className:`${_}-textarea-suffix`},j),showCount:v,ref:A,onResize:ce,onMouseDown:le}))))}),Qn=Ts;Qn.Group=jO;Qn.Search=KO;Qn.TextArea=sP;Qn.Password=GO;Qn.OTP=BO;let vr=null,Nn=e=>e(),Pa=[],Fa={};function Jm(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:o}=Fa,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:r,maxCount:n,top:o}}const lP=X.forwardRef((e,t)=>{const{messageConfig:r,sync:n}=e,{getPrefixCls:o}=rt(nt),a=Fa.prefixCls||o("message"),i=rt(O$),[s,l]=Yh(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),i.message));return X.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(n(),s[u].apply(s,f))}),{instance:c,sync:n}}),l}),cP=X.forwardRef((e,t)=>{const[r,n]=X.useState(Jm),o=()=>{n(Jm)};X.useEffect(o,[]);const a=Ix(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=X.createElement(lP,{ref:t,sync:o,messageConfig:r});return X.createElement(jo,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),js=()=>{if(!vr){const e=document.createDocumentFragment(),t={fragment:e};vr=t,Nn(()=>{ep()(X.createElement(cP,{ref:n=>{const{instance:o,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,js())})}}),e)});return}vr.instance&&(Pa.forEach(e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":{Nn(()=>{const n=vr.instance.open(Object.assign(Object.assign({},Fa),e.config));n==null||n.then(e.resolve),e.setCloseFn(n)});break}case"destroy":Nn(()=>{vr==null||vr.instance.destroy(e.key)});break;default:Nn(()=>{var n;const o=(n=vr.instance)[t].apply(n,ie(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Pa=[])};function uP(e){Fa=Object.assign(Object.assign({},Fa),e),Nn(()=>{var t;(t=vr==null?void 0:vr.sync)===null||t===void 0||t.call(vr)})}function fP(e){const t=pf(r=>{let n;const o={type:"open",config:e,resolve:r,setCloseFn:a=>{n=a}};return Pa.push(o),()=>{n?Nn(()=>{n()}):o.skipped=!0}});return js(),t}function dP(e,t){const r=pf(n=>{let o;const a={type:e,args:t,resolve:n,setCloseFn:i=>{o=i}};return Pa.push(a),()=>{o?Nn(()=>{o()}):a.skipped=!0}});return js(),r}const mP=e=>{Pa.push({type:"destroy",key:e}),js()},gP=["success","info","warning","error","loading"],vP={open:fP,destroy:mP,config:uP,useMessage:Hw,_InternalPanelDoNotUseOrYouWillBeFired:Iw},Qp=vP;gP.forEach(e=>{Qp[e]=(...t)=>dP(e,t)});function hP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/**
|
|
106
|
+
*/var xf;function X2(){if(xf)return Za;xf=1;var e=be,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var u,d={},g=null,h=null;c!==void 0&&(g=""+c),l.key!==void 0&&(g=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:g,ref:h,props:d,_owner:a.current}}return Za.Fragment=n,Za.jsx=i,Za.jsxs=i,Za}var Cf;function J2(){return Cf||(Cf=1,bf.exports=X2()),bf.exports}var X=J2();const Q2={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.c zap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}},Z2={sm:"240px",md:"260px",lg:"280px"},Gl={sm:"12px",md:"16px",lg:"20px"},sv={sm:"2px",md:"4px",lg:"8px"},e$={sm:"4px",md:"8px",lg:"16px"},t$={sm:"4px",md:"8px",lg:"16px"},n$={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},r$={sm:"1.2",md:"1.5",lg:"2"};/**
|
|
193
107
|
* @license lucide-react v0.456.0 - ISC
|
|
194
108
|
*
|
|
195
109
|
* This source code is licensed under the ISC license.
|
|
196
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const
|
|
111
|
+
*/const a$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
198
112
|
* @license lucide-react v0.456.0 - ISC
|
|
199
113
|
*
|
|
200
114
|
* This source code is licensed under the ISC license.
|
|
201
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/var
|
|
116
|
+
*/var o$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
203
117
|
* @license lucide-react v0.456.0 - ISC
|
|
204
118
|
*
|
|
205
119
|
* This source code is licensed under the ISC license.
|
|
206
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const
|
|
121
|
+
*/const i$=jr(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...s},l)=>Sa("svg",{ref:l,...o$,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lv("lucide",a),...s},[...i.map(([c,u])=>Sa(c,u)),...Array.isArray(o)?o:[o]]));/**
|
|
208
122
|
* @license lucide-react v0.456.0 - ISC
|
|
209
123
|
*
|
|
210
124
|
* This source code is licensed under the ISC license.
|
|
211
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const
|
|
126
|
+
*/const Kt=(e,t)=>{const n=jr(({className:r,...a},o)=>Sa(i$,{ref:o,iconNode:t,className:lv(`lucide-${a$(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
|
|
213
127
|
* @license lucide-react v0.456.0 - ISC
|
|
214
128
|
*
|
|
215
129
|
* This source code is licensed under the ISC license.
|
|
216
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/
|
|
131
|
+
*/Kt("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
218
132
|
* @license lucide-react v0.456.0 - ISC
|
|
219
133
|
*
|
|
220
134
|
* This source code is licensed under the ISC license.
|
|
221
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
-
*/
|
|
136
|
+
*/Kt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
223
137
|
* @license lucide-react v0.456.0 - ISC
|
|
224
138
|
*
|
|
225
139
|
* This source code is licensed under the ISC license.
|
|
226
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
-
*/
|
|
141
|
+
*/const s$=Kt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
228
142
|
* @license lucide-react v0.456.0 - ISC
|
|
229
143
|
*
|
|
230
144
|
* This source code is licensed under the ISC license.
|
|
231
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
-
*/
|
|
146
|
+
*/const l$=Kt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
233
147
|
* @license lucide-react v0.456.0 - ISC
|
|
234
148
|
*
|
|
235
149
|
* This source code is licensed under the ISC license.
|
|
236
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/
|
|
151
|
+
*/const c$=Kt("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
238
152
|
* @license lucide-react v0.456.0 - ISC
|
|
239
153
|
*
|
|
240
154
|
* This source code is licensed under the ISC license.
|
|
241
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/
|
|
156
|
+
*/const u$=Kt("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
243
157
|
* @license lucide-react v0.456.0 - ISC
|
|
244
158
|
*
|
|
245
159
|
* This source code is licensed under the ISC license.
|
|
246
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
-
*/
|
|
161
|
+
*/const d$=Kt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
248
162
|
* @license lucide-react v0.456.0 - ISC
|
|
249
163
|
*
|
|
250
164
|
* This source code is licensed under the ISC license.
|
|
251
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
-
*/
|
|
166
|
+
*/Kt("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
253
167
|
* @license lucide-react v0.456.0 - ISC
|
|
254
168
|
*
|
|
255
169
|
* This source code is licensed under the ISC license.
|
|
256
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
-
*/
|
|
171
|
+
*/Kt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
258
172
|
* @license lucide-react v0.456.0 - ISC
|
|
259
173
|
*
|
|
260
174
|
* This source code is licensed under the ISC license.
|
|
261
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
-
*/
|
|
176
|
+
*/Kt("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/**
|
|
263
177
|
* @license lucide-react v0.456.0 - ISC
|
|
264
178
|
*
|
|
265
179
|
* This source code is licensed under the ISC license.
|
|
266
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
267
|
-
*/
|
|
181
|
+
*/Kt("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
268
182
|
* @license lucide-react v0.456.0 - ISC
|
|
269
183
|
*
|
|
270
184
|
* This source code is licensed under the ISC license.
|
|
271
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
272
|
-
*/
|
|
186
|
+
*/Kt("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
273
187
|
* @license lucide-react v0.456.0 - ISC
|
|
274
188
|
*
|
|
275
189
|
* This source code is licensed under the ISC license.
|
|
276
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
277
|
-
*/
|
|
191
|
+
*/const wf=Kt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
278
192
|
* @license lucide-react v0.456.0 - ISC
|
|
279
193
|
*
|
|
280
194
|
* This source code is licensed under the ISC license.
|
|
281
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
-
*/
|
|
196
|
+
*/Kt("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
283
197
|
* @license lucide-react v0.456.0 - ISC
|
|
284
198
|
*
|
|
285
199
|
* This source code is licensed under the ISC license.
|
|
286
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
287
|
-
*/
|
|
201
|
+
*/Kt("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
|
288
202
|
* @license lucide-react v0.456.0 - ISC
|
|
289
203
|
*
|
|
290
204
|
* This source code is licensed under the ISC license.
|
|
291
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
292
|
-
*/
|
|
206
|
+
*/Kt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
293
207
|
* @license lucide-react v0.456.0 - ISC
|
|
294
208
|
*
|
|
295
209
|
* This source code is licensed under the ISC license.
|
|
296
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
297
|
-
*/
|
|
211
|
+
*/const f$=Kt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
298
212
|
* @license lucide-react v0.456.0 - ISC
|
|
299
213
|
*
|
|
300
214
|
* This source code is licensed under the ISC license.
|
|
301
215
|
* See the LICENSE file in the root directory of this source tree.
|
|
302
|
-
*/
|
|
216
|
+
*/Kt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
303
217
|
* @license lucide-react v0.456.0 - ISC
|
|
304
218
|
*
|
|
305
219
|
* This source code is licensed under the ISC license.
|
|
306
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
307
|
-
*/
|
|
221
|
+
*/Kt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
308
222
|
* @license lucide-react v0.456.0 - ISC
|
|
309
223
|
*
|
|
310
224
|
* This source code is licensed under the ISC license.
|
|
311
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
312
|
-
*/
|
|
226
|
+
*/const m$=Kt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
313
227
|
* @license lucide-react v0.456.0 - ISC
|
|
314
228
|
*
|
|
315
229
|
* This source code is licensed under the ISC license.
|
|
316
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
317
|
-
*/
|
|
231
|
+
*/const p$=Kt("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
318
232
|
* @license lucide-react v0.456.0 - ISC
|
|
319
233
|
*
|
|
320
234
|
* This source code is licensed under the ISC license.
|
|
321
235
|
* See the LICENSE file in the root directory of this source tree.
|
|
322
|
-
*/
|
|
236
|
+
*/const g$=Kt("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
|
|
323
237
|
* @license lucide-react v0.456.0 - ISC
|
|
324
238
|
*
|
|
325
239
|
* This source code is licensed under the ISC license.
|
|
326
240
|
* See the LICENSE file in the root directory of this source tree.
|
|
327
|
-
*/
|
|
241
|
+
*/Kt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
328
242
|
* @license lucide-react v0.456.0 - ISC
|
|
329
243
|
*
|
|
330
244
|
* This source code is licensed under the ISC license.
|
|
331
245
|
* See the LICENSE file in the root directory of this source tree.
|
|
332
|
-
*/at("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var e0={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Rf={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},CP=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],ss={CSS:{},springs:{}};function zr(e,t,r){return Math.min(Math.max(e,t),r)}function la(e,t){return e.indexOf(t)>-1}function zl(e,t){return e.apply(null,t)}var pe={arr:function(e){return Array.isArray(e)},obj:function(e){return la(Object.prototype.toString.call(e),"Object")},pth:function(e){return pe.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||pe.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return pe.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return pe.hex(e)||pe.rgb(e)||pe.hsl(e)},key:function(e){return!e0.hasOwnProperty(e)&&!Rf.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function t0(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(r){return parseFloat(r)}):[]}function r0(e,t){var r=t0(e),n=zr(pe.und(r[0])?1:r[0],.1,100),o=zr(pe.und(r[1])?100:r[1],.1,100),a=zr(pe.und(r[2])?10:r[2],.1,100),i=zr(pe.und(r[3])?0:r[3],.1,100),s=Math.sqrt(o/n),l=a/(2*Math.sqrt(o*n)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,f=l<1?(l*s+-i)/c:-i+s;function d(h){var v=t?t*h/1e3:h;return l<1?v=Math.exp(-v*l*s)*(u*Math.cos(c*v)+f*Math.sin(c*v)):v=(u+f*v)*Math.exp(-v*s),h===0||h===1?h:1-v}function p(){var h=ss.springs[e];if(h)return h;for(var v=1/6,g=0,b=0;;)if(g+=v,d(g)===1){if(b++,b>=16)break}else b=0;var y=g*v*1e3;return ss.springs[e]=y,y}return t?d:p}function xP(e){return e===void 0&&(e=10),function(t){return Math.ceil(zr(t,1e-6,1)*e)*(1/e)}}var wP=(function(){var e=11,t=1/(e-1);function r(u,f){return 1-3*f+3*u}function n(u,f){return 3*f-6*u}function o(u){return 3*u}function a(u,f,d){return((r(f,d)*u+n(f,d))*u+o(f))*u}function i(u,f,d){return 3*r(f,d)*u*u+2*n(f,d)*u+o(f)}function s(u,f,d,p,h){var v,g,b=0;do g=f+(d-f)/2,v=a(g,p,h)-u,v>0?d=g:f=g;while(Math.abs(v)>1e-7&&++b<10);return g}function l(u,f,d,p){for(var h=0;h<4;++h){var v=i(f,d,p);if(v===0)return f;var g=a(f,d,p)-u;f-=g/v}return f}function c(u,f,d,p){if(!(0<=u&&u<=1&&0<=d&&d<=1))return;var h=new Float32Array(e);if(u!==f||d!==p)for(var v=0;v<e;++v)h[v]=a(v*t,u,d);function g(b){for(var y=0,C=1,S=e-1;C!==S&&h[C]<=b;++C)y+=t;--C;var x=(b-h[C])/(h[C+1]-h[C]),E=y+x*t,w=i(E,u,d);return w>=.001?l(b,E,u,d):w===0?E:s(b,y,y+t,u,d)}return function(b){return u===f&&d===p||b===0||b===1?b:a(g(b),f,p)}}return c})(),n0=(function(){var e={linear:function(){return function(n){return n}}},t={Sine:function(){return function(n){return 1-Math.cos(n*Math.PI/2)}},Expo:function(){return function(n){return n?Math.pow(2,10*n-10):0}},Circ:function(){return function(n){return 1-Math.sqrt(1-n*n)}},Back:function(){return function(n){return n*n*(3*n-2)}},Bounce:function(){return function(n){for(var o,a=4;n<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-n,2)}},Elastic:function(n,o){n===void 0&&(n=1),o===void 0&&(o=.5);var a=zr(n,1,10),i=zr(o,.1,2);return function(s){return s===0||s===1?s:-a*Math.pow(2,10*(s-1))*Math.sin((s-1-i/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/i)}}},r=["Quad","Cubic","Quart","Quint"];return r.forEach(function(n,o){t[n]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(n){var o=t[n];e["easeIn"+n]=o,e["easeOut"+n]=function(a,i){return function(s){return 1-o(a,i)(1-s)}},e["easeInOut"+n]=function(a,i){return function(s){return s<.5?o(a,i)(s*2)/2:1-o(a,i)(s*-2+2)/2}},e["easeOutIn"+n]=function(a,i){return function(s){return s<.5?(1-o(a,i)(1-s*2))/2:(o(a,i)(s*2-1)+1)/2}}}),e})();function Af(e,t){if(pe.fnc(e))return e;var r=e.split("(")[0],n=n0[r],o=t0(e);switch(r){case"spring":return r0(e,t);case"cubicBezier":return zl(wP,o);case"steps":return zl(xP,o);default:return zl(n,o)}}function o0(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Is(e,t){for(var r=e.length,n=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<r;a++)if(a in e){var i=e[a];t.call(n,i,a,e)&&o.push(i)}return o}function _s(e){return e.reduce(function(t,r){return t.concat(pe.arr(r)?_s(r):r)},[])}function eg(e){return pe.arr(e)?e:(pe.str(e)&&(e=o0(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Tf(e,t){return e.some(function(r){return r===t})}function jf(e){var t={};for(var r in e)t[r]=e[r];return t}function eu(e,t){var r=jf(e);for(var n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function ks(e,t){var r=jf(e);for(var n in t)r[n]=pe.und(e[n])?t[n]:e[n];return r}function SP(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function EP(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=e.replace(t,function(s,l,c,u){return l+l+c+c+u+u}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),o=parseInt(n[1],16),a=parseInt(n[2],16),i=parseInt(n[3],16);return"rgba("+o+","+a+","+i+",1)"}function $P(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(t[1],10)/360,n=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function i(d,p,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?d+(p-d)*6*h:h<1/2?p:h<2/3?d+(p-d)*(2/3-h)*6:d}var s,l,c;if(n==0)s=l=c=o;else{var u=o<.5?o*(1+n):o+n-o*n,f=2*o-u;s=i(f,u,r+1/3),l=i(f,u,r),c=i(f,u,r-1/3)}return"rgba("+s*255+","+l*255+","+c*255+","+a+")"}function OP(e){if(pe.rgb(e))return SP(e);if(pe.hex(e))return EP(e);if(pe.hsl(e))return $P(e)}function Xr(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function PP(e){if(la(e,"translate")||e==="perspective")return"px";if(la(e,"rotate")||la(e,"skew"))return"deg"}function tu(e,t){return pe.fnc(e)?e(t.target,t.id,t.total):e}function Br(e,t){return e.getAttribute(t)}function If(e,t,r){var n=Xr(t);if(Tf([r,"deg","rad","turn"],n))return t;var o=ss.CSS[t+r];if(!pe.und(o))return o;var a=100,i=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(i),i.style.position="absolute",i.style.width=a+r;var l=a/i.offsetWidth;s.removeChild(i);var c=l*parseFloat(t);return ss.CSS[t+r]=c,c}function a0(e,t,r){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return r?If(e,o,r):o}}function _f(e,t){if(pe.dom(e)&&!pe.inp(e)&&(!pe.nil(Br(e,t))||pe.svg(e)&&e[t]))return"attribute";if(pe.dom(e)&&Tf(CP,t))return"transform";if(pe.dom(e)&&t!=="transform"&&a0(e,t))return"css";if(e[t]!=null)return"object"}function i0(e){if(pe.dom(e)){for(var t=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,n=new Map,o;o=r.exec(t);)n.set(o[1],o[2]);return n}}function FP(e,t,r,n){var o=la(t,"scale")?1:0+PP(t),a=i0(e).get(t)||o;return r&&(r.transforms.list.set(t,a),r.transforms.last=t),n?If(e,a,n):a}function kf(e,t,r,n){switch(_f(e,t)){case"transform":return FP(e,t,n,r);case"css":return a0(e,t,r);case"attribute":return Br(e,t);default:return e[t]||0}}function Nf(e,t){var r=/^(\*=|\+=|-=)/.exec(e);if(!r)return e;var n=Xr(e)||0,o=parseFloat(t),a=parseFloat(e.replace(r[0],""));switch(r[0][0]){case"+":return o+a+n;case"-":return o-a+n;case"*":return o*a+n}}function s0(e,t){if(pe.col(e))return OP(e);if(/\s/g.test(e))return e;var r=Xr(e),n=r?e.substr(0,e.length-r.length):e;return t?n+t:n}function Lf(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function MP(e){return Math.PI*2*Br(e,"r")}function RP(e){return Br(e,"width")*2+Br(e,"height")*2}function AP(e){return Lf({x:Br(e,"x1"),y:Br(e,"y1")},{x:Br(e,"x2"),y:Br(e,"y2")})}function l0(e){for(var t=e.points,r=0,n,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(r+=Lf(n,a)),n=a}return r}function TP(e){var t=e.points;return l0(e)+Lf(t.getItem(t.numberOfItems-1),t.getItem(0))}function c0(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return MP(e);case"rect":return RP(e);case"line":return AP(e);case"polyline":return l0(e);case"polygon":return TP(e)}}function jP(e){var t=c0(e);return e.setAttribute("stroke-dasharray",t),t}function IP(e){for(var t=e.parentNode;pe.svg(t)&&pe.svg(t.parentNode);)t=t.parentNode;return t}function u0(e,t){var r=t||{},n=r.el||IP(e),o=n.getBoundingClientRect(),a=Br(n,"viewBox"),i=o.width,s=o.height,l=r.viewBox||(a?a.split(" "):[0,0,i,s]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:i,h:s,vW:l[2],vH:l[3]}}function _P(e,t){var r=pe.str(e)?o0(e)[0]:e,n=t||100;return function(o){return{property:o,el:r,svg:u0(r),totalLength:c0(r)*(n/100)}}}function kP(e,t,r){function n(u){u===void 0&&(u=0);var f=t+u>=1?t+u:0;return e.el.getPointAtLength(f)}var o=u0(e.el,e.svg),a=n(),i=n(-1),s=n(1),l=r?1:o.w/o.vW,c=r?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*l;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(s.y-i.y,s.x-i.x)*180/Math.PI}}function tg(e,t){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=s0(pe.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(r)?n.match(r).map(Number):[0],strings:pe.str(e)||t?n.split(r):[]}}function zf(e){var t=e?_s(pe.arr(e)?e.map(eg):eg(e)):[];return Is(t,function(r,n,o){return o.indexOf(r)===n})}function f0(e){var t=zf(e);return t.map(function(r,n){return{target:r,id:n,total:t.length,transforms:{list:i0(r)}}})}function NP(e,t){var r=jf(t);if(/^spring/.test(r.easing)&&(r.duration=r0(r.easing)),pe.arr(e)){var n=e.length,o=n===2&&!pe.obj(e[0]);o?e={value:e}:pe.fnc(t.duration)||(r.duration=t.duration/n)}var a=pe.arr(e)?e:[e];return a.map(function(i,s){var l=pe.obj(i)&&!pe.pth(i)?i:{value:i};return pe.und(l.delay)&&(l.delay=s?0:t.delay),pe.und(l.endDelay)&&(l.endDelay=s===a.length-1?t.endDelay:0),l}).map(function(i){return ks(i,r)})}function LP(e){for(var t=Is(_s(e.map(function(a){return Object.keys(a)})),function(a){return pe.key(a)}).reduce(function(a,i){return a.indexOf(i)<0&&a.push(i),a},[]),r={},n=function(a){var i=t[a];r[i]=e.map(function(s){var l={};for(var c in s)pe.key(c)?c==i&&(l.value=s[c]):l[c]=s[c];return l})},o=0;o<t.length;o++)n(o);return r}function zP(e,t){var r=[],n=t.keyframes;n&&(t=ks(LP(n),t));for(var o in t)pe.key(o)&&r.push({name:o,tweens:NP(t[o],e)});return r}function BP(e,t){var r={};for(var n in e){var o=tu(e[n],t);pe.arr(o)&&(o=o.map(function(a){return tu(a,t)}),o.length===1&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function DP(e,t){var r;return e.tweens.map(function(n){var o=BP(n,t),a=o.value,i=pe.arr(a)?a[1]:a,s=Xr(i),l=kf(t.target,e.name,s,t),c=r?r.to.original:l,u=pe.arr(a)?a[0]:c,f=Xr(u)||Xr(l),d=s||f;return pe.und(i)&&(i=c),o.from=tg(u,d),o.to=tg(Nf(i,u),d),o.start=r?r.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Af(o.easing,o.duration),o.isPath=pe.pth(a),o.isPathTargetInsideSVG=o.isPath&&pe.svg(t.target),o.isColor=pe.col(o.from.original),o.isColor&&(o.round=1),r=o,o})}var d0={css:function(e,t,r){return e.style[t]=r},attribute:function(e,t,r){return e.setAttribute(t,r)},object:function(e,t,r){return e[t]=r},transform:function(e,t,r,n,o){if(n.list.set(t,r),t===n.last||o){var a="";n.list.forEach(function(i,s){a+=s+"("+i+") "}),e.style.transform=a}}};function m0(e,t){var r=f0(e);r.forEach(function(n){for(var o in t){var a=tu(t[o],n),i=n.target,s=Xr(a),l=kf(i,o,s,n),c=s||Xr(l),u=Nf(s0(a,c),l),f=_f(i,o);d0[f](i,o,u,n.transforms,!0)}})}function HP(e,t){var r=_f(e.target,t.name);if(r){var n=DP(t,e),o=n[n.length-1];return{type:r,property:t.name,animatable:e,tweens:n,duration:o.end,delay:n[0].delay,endDelay:o.endDelay}}}function VP(e,t){return Is(_s(e.map(function(r){return t.map(function(n){return HP(r,n)})})),function(r){return!pe.und(r)})}function g0(e,t){var r=e.length,n=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=r?Math.max.apply(Math,e.map(function(a){return n(a)+a.duration})):t.duration,o.delay=r?Math.min.apply(Math,e.map(function(a){return n(a)+a.delay})):t.delay,o.endDelay=r?o.duration-Math.max.apply(Math,e.map(function(a){return n(a)+a.duration-a.endDelay})):t.endDelay,o}var rg=0;function WP(e){var t=eu(e0,e),r=eu(Rf,e),n=zP(r,e),o=f0(e.targets),a=VP(o,n),i=g0(a,r),s=rg;return rg++,ks(t,{id:s,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var Rr=[],v0=(function(){var e;function t(){!e&&(!ng()||!gt.suspendWhenDocumentHidden)&&Rr.length>0&&(e=requestAnimationFrame(r))}function r(o){for(var a=Rr.length,i=0;i<a;){var s=Rr[i];s.paused?(Rr.splice(i,1),a--):(s.tick(o),i++)}e=i>0?requestAnimationFrame(r):void 0}function n(){gt.suspendWhenDocumentHidden&&(ng()?e=cancelAnimationFrame(e):(Rr.forEach(function(o){return o._onDocumentVisibility()}),v0()))}return typeof document<"u"&&document.addEventListener("visibilitychange",n),t})();function ng(){return!!document&&document.hidden}function gt(e){e===void 0&&(e={});var t=0,r=0,n=0,o,a=0,i=null;function s(y){var C=window.Promise&&new Promise(function(S){return i=S});return y.finished=C,C}var l=WP(e);s(l);function c(){var y=l.direction;y!=="alternate"&&(l.direction=y!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,o.forEach(function(C){return C.reversed=l.reversed})}function u(y){return l.reversed?l.duration-y:y}function f(){t=0,r=u(l.currentTime)*(1/gt.speed)}function d(y,C){C&&C.seek(y-C.timelineOffset)}function p(y){if(l.reversePlayback)for(var C=a;C--;)d(y,o[C]);else for(var S=0;S<a;S++)d(y,o[S])}function h(y){for(var C=0,S=l.animations,x=S.length;C<x;){var E=S[C],w=E.animatable,$=E.tweens,O=$.length-1,P=$[O];O&&(P=Is($,function(q){return y<q.end})[0]||P);for(var M=zr(y-P.start-P.delay,0,P.duration)/P.duration,T=isNaN(M)?1:P.easing(M),I=P.to.strings,R=P.round,j=[],F=P.to.numbers.length,A=void 0,_=0;_<F;_++){var N=void 0,W=P.to.numbers[_],U=P.from.numbers[_]||0;P.isPath?N=kP(P.value,T*W,P.isPathTargetInsideSVG):N=U+T*(W-U),R&&(P.isColor&&_>2||(N=Math.round(N*R)/R)),j.push(N)}var L=I.length;if(!L)A=j[0];else{A=I[0];for(var V=0;V<L;V++){var B=I[V+1],z=j[V];isNaN(z)||(B?A+=z+B:A+=z+" ")}}d0[E.type](w.target,E.property,A,w.transforms),E.currentValue=A,C++}}function v(y){l[y]&&!l.passThrough&&l[y](l)}function g(){l.remaining&&l.remaining!==!0&&l.remaining--}function b(y){var C=l.duration,S=l.delay,x=C-l.endDelay,E=u(y);l.progress=zr(E/C*100,0,100),l.reversePlayback=E<l.currentTime,o&&p(E),!l.began&&l.currentTime>0&&(l.began=!0,v("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,v("loopBegin")),E<=S&&l.currentTime!==0&&h(0),(E>=x&&l.currentTime!==C||!C)&&h(C),E>S&&E<x?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,v("changeBegin")),v("change"),h(E)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,v("changeComplete")),l.currentTime=zr(E,0,C),l.began&&v("update"),y>=C&&(r=0,g(),l.remaining?(t=n,v("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&c()):(l.paused=!0,l.completed||(l.completed=!0,v("loopComplete"),v("complete"),!l.passThrough&&"Promise"in window&&(i(),s(l)))))}return l.reset=function(){var y=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=y==="reverse",l.remaining=l.loop,o=l.children,a=o.length;for(var C=a;C--;)l.children[C].reset();(l.reversed&&l.loop!==!0||y==="alternate"&&l.loop===1)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=f,l.set=function(y,C){return m0(y,C),l},l.tick=function(y){n=y,t||(t=n),b((n+(r-t))*gt.speed)},l.seek=function(y){b(u(y))},l.pause=function(){l.paused=!0,f()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Rr.push(l),f(),v0())},l.reverse=function(){c(),l.completed=!l.reversed,f()},l.restart=function(){l.reset(),l.play()},l.remove=function(y){var C=zf(y);h0(C,l)},l.reset(),l.autoplay&&l.play(),l}function og(e,t){for(var r=t.length;r--;)Tf(e,t[r].animatable.target)&&t.splice(r,1)}function h0(e,t){var r=t.animations,n=t.children;og(e,r);for(var o=n.length;o--;){var a=n[o],i=a.animations;og(e,i),!i.length&&!a.children.length&&n.splice(o,1)}!r.length&&!n.length&&t.pause()}function qP(e){for(var t=zf(e),r=Rr.length;r--;){var n=Rr[r];h0(t,n)}}function UP(e,t){t===void 0&&(t={});var r=t.direction||"normal",n=t.easing?Af(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,s=i==="first",l=i==="center",c=i==="last",u=pe.arr(e),f=parseFloat(u?e[0]:e),d=u?parseFloat(e[1]):0,p=Xr(u?e[1]:e)||0,h=t.start||0+(u?f:0),v=[],g=0;return function(b,y,C){if(s&&(i=0),l&&(i=(C-1)/2),c&&(i=C-1),!v.length){for(var S=0;S<C;S++){if(!o)v.push(Math.abs(i-S));else{var x=l?(o[0]-1)/2:i%o[0],E=l?(o[1]-1)/2:Math.floor(i/o[0]),w=S%o[0],$=Math.floor(S/o[0]),O=x-w,P=E-$,M=Math.sqrt(O*O+P*P);a==="x"&&(M=-O),a==="y"&&(M=-P),v.push(M)}g=Math.max.apply(Math,v)}n&&(v=v.map(function(I){return n(I/g)*g})),r==="reverse"&&(v=v.map(function(I){return a?I<0?I*-1:-I:Math.abs(g-I)}))}var T=u?(d-f)/g:f;return h+T*(Math.round(v[y]*100)/100)+p}}function GP(e){e===void 0&&(e={});var t=gt(e);return t.duration=0,t.add=function(r,n){var o=Rr.indexOf(t),a=t.children;o>-1&&Rr.splice(o,1);function i(d){d.passThrough=!0}for(var s=0;s<a.length;s++)i(a[s]);var l=ks(r,eu(Rf,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=pe.und(n)?c:Nf(n,c),i(t),t.seek(l.timelineOffset);var u=gt(l);i(u),a.push(u);var f=g0(a,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}gt.version="3.2.1";gt.speed=1;gt.suspendWhenDocumentHidden=!0;gt.running=Rr;gt.remove=qP;gt.get=kf;gt.set=m0;gt.convertPx=If;gt.path=_P;gt.setDashoffset=jP;gt.stagger=UP;gt.timeline=GP;gt.easing=Af;gt.penner=n0;gt.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};Yr({badgeCounts:{},updateBadgeCount:()=>{}});function ru(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function XP(e){if(Array.isArray(e))return ru(e)}function p0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bf(e,t){if(e){if(typeof e=="string")return ru(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ru(e,t):void 0}}function KP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
333
|
-
|
|
334
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(e,t){return y0(e)||ZP(e,t)||Bf(e,t)||b0()}function $e(e){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(e)}function YP(e,t){if($e(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($e(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C0(e){var t=YP(e,"string");return $e(t)=="symbol"?t:t+""}function H(e,t,r){return(t=C0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ma(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Jr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function QP(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var ig="data-rc-order",sg="data-rc-priority",JP="rc-util-key",nu=new Map;function x0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):JP}function Ns(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function eF(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Df(e){return Array.from((nu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function w0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Jr())return null;var r=t.csp,n=t.prepend,o=t.priority,a=o===void 0?0:o,i=eF(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(ig,i),s&&a&&l.setAttribute(sg,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=Ns(t),u=c.firstChild;if(n){if(s){var f=(t.styles||Df(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(ig)))return!1;var p=Number(d.getAttribute(sg)||0);return a>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function S0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ns(t);return(t.styles||Df(r)).find(function(n){return n.getAttribute(x0(t))===e})}function E0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=S0(e,t);if(r){var n=Ns(t);n.removeChild(r)}}function tF(e,t){var r=nu.get(e);if(!r||!QP(document,r)){var n=w0("",t),o=n.parentNode;nu.set(e,o),e.removeChild(n)}}function Dn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ns(r),o=Df(n),a=K(K({},r),{},{styles:o});tF(n,a);var i=S0(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=w0(e,a);return u.setAttribute(x0(a),t),u}function rF(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Cn(e,t){if(e==null)return{};var r,n,o=rF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $0(e,t,r){var n=m.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var ou={},nF=function(e){};function oF(e,t){}function aF(e,t){}function iF(){ou={}}function O0(e,t,r){!t&&!ou[r]&&(e(!1,r),ou[r]=!0)}function ir(e,t){O0(oF,e,t)}function sF(e,t){O0(aF,e,t)}ir.preMessage=nF;ir.resetWarned=iF;ir.noteOnce=sF;function au(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(ir(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&$e(a)==="object"&&$e(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(d){return o(a[d],i[d],c)})}return!1}return o(e,t)}function Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C0(n.key),n)}}function Dt(e,t,r){return t&&lg(e.prototype,t),r&&lg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var lF="%";function iu(e){return e.join(lF)}var cF=(function(){function e(t){Bt(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),H(this,"extracted",new Set),this.instanceId=t}return Dt(e,[{key:"get",value:function(t){return this.opGet(iu(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,r){return this.opUpdate(iu(t),r)}},{key:"opUpdate",value:function(t,r){var n=this.cache.get(t),o=r(n);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Ra="data-token-hash",Hr="data-css-hash",hn="__cssinjs_instance__";function uF(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Hr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[hn]=o[hn]||e,o[hn]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Hr,"]"))).forEach(function(o){var a=o.getAttribute(Hr);if(n[a]){if(o[hn]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else n[a]=!0})}return new cF(e)}var Ua=m.createContext({hashPriority:"low",cache:uF(),defaultCache:!0});function Re(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aa(e,t){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Aa(e,t)}function No(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Aa(e,t)}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ta(e)}function Hf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hf=function(){return!!e})()}function fF(e,t){if(t&&($e(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Re(e)}function Lo(e){var t=Hf();return function(){var r,n=Ta(e);if(t){var o=Ta(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fF(this,r)}}function dF(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Vf=(function(){function e(){Bt(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Dt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var r,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(i){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(i)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(t){var r;return(r=this.internalGet(t,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,c){var u=Oe(l,2),f=u[1];return n.internalGet(c)[1]<f?[c,n.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=Oe(o,1),i=a[0];this.delete(i)}this.keys.push(t)}var s=this.cache;t.forEach(function(l,c){if(c===t.length-1)s.set(l,{value:[r,n.cacheCallTimes++]});else{var u=s.get(l);u?u.map||(u.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(t,r){var n=t.get(r[0]);if(r.length===1){var o;return n.map?t.set(r[0],{map:n.map}):t.delete(r[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,r.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(r[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(r){return!dF(r,t)}),this.deleteByPath(this.cache,t)}}]),e})();H(Vf,"MAX_CACHE_SIZE",20);H(Vf,"MAX_CACHE_OFFSET",5);var cg=0,P0=(function(){function e(t){Bt(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=cg,t.length===0&&(t.length>0,void 0),cg+=1}return Dt(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(r,n){return n(t,r)},void 0)}}]),e})(),Bl=new Vf;function su(e){var t=Array.isArray(e)?e:[e];return Bl.has(t)||Bl.set(t,new P0(t)),Bl.get(t)}var mF=new WeakMap,Dl={};function gF(e,t){for(var r=mF,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Dl)||r.set(Dl,e()),r.get(Dl)}var ug=new WeakMap;function ca(e){var t=ug.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof P0?t+=n.id:n&&$e(n)==="object"?t+=ca(n):t+=n}),t=Ma(t),ug.set(e,t)),t}function fg(e,t){return Ma("".concat(t,"_").concat(ca(e)))}var lu=Jr();function pn(e){return typeof e=="number"?"".concat(e,"px"):e}var Hi=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},vF=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(n){var o=Oe(n,2),a=o[0],i=o[1];return"".concat(a,":").concat(i,";")}).join(""),"}"):""},F0=function(e,t,r){var n={},o={};return Object.entries(e).forEach(function(a){var i,s,l=Oe(a,2),c=l[0],u=l[1];if(r!=null&&(i=r.preserve)!==null&&i!==void 0&&i[c])o[c]=u;else if((typeof u=="string"||typeof u=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[c])){var f,d=Hi(c,r==null?void 0:r.prefix);n[d]=typeof u=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[c])?"".concat(u,"px"):String(u),o[c]="var(".concat(d,")")}}),[o,vF(n,t,{scope:r==null?void 0:r.scope})]},dg=Jr()?m.useLayoutEffect:m.useEffect,hF=function(e,t){var r=m.useRef(!0);dg(function(){return e(r.current)},t),dg(function(){return r.current=!1,function(){r.current=!0}},[])},pF=K({},m),mg=pF.useInsertionEffect,yF=function(e,t,r){m.useMemo(e,r),hF(function(){return t(!0)},r)},bF=mg?function(e,t,r){return mg(function(){return e(),t()},r)}:yF,CF=K({},m),xF=CF.useInsertionEffect,wF=function(e){var t=[],r=!1;function n(o){r||t.push(o)}return m.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(o){return o()})}},e),n},SF=function(){return function(e){e()}},EF=typeof xF<"u"?wF:SF;function Wf(e,t,r,n,o){var a=m.useContext(Ua),i=a.cache,s=[e].concat(Se(t)),l=iu(s),c=EF([l]),u=function(p){i.opUpdate(l,function(h){var v=h||[void 0,void 0],g=Oe(v,2),b=g[0],y=b===void 0?0:b,C=g[1],S=C,x=S||r(),E=[y,x];return p?p(E):E})};m.useMemo(function(){u()},[l]);var f=i.opGet(l),d=f[1];return bF(function(){o==null||o(d)},function(p){return u(function(h){var v=Oe(h,2),g=v[0],b=v[1];return p&&g===0&&(o==null||o(d)),[g+1,b]}),function(){i.opUpdate(l,function(h){var v=h||[],g=Oe(v,2),b=g[0],y=b===void 0?0:b,C=g[1],S=y-1;return S===0?(c(function(){(p||!i.opGet(l))&&(n==null||n(C,!1))}),null):[y-1,C]})}},[l]),d}var $F={},OF="css",In=new Map;function PF(e){In.set(e,(In.get(e)||0)+1)}function FF(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Ra,'="').concat(e,'"]'));r.forEach(function(n){if(n[hn]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var MF=0;function RF(e,t){In.set(e,(In.get(e)||0)-1);var r=new Set;In.forEach(function(n,o){n<=0&&r.add(o)}),In.size-r.size>MF&&r.forEach(function(n){FF(n,t),In.delete(n)})}var AF=function(e,t,r,n){var o=r.getDerivativeToken(e),a=K(K({},o),t);return n&&(a=n(a)),a},TF="token";function jF(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=rt(Ua),o=n.cache.instanceId,a=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?$F:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,p=gF(function(){return Object.assign.apply(Object,[{}].concat(Se(t)))},t),h=ca(p),v=ca(c),g=d?ca(d):"",b=Wf(TF,[s,e.id,h,v,g],function(){var y,C=f?f(p,c,e):AF(p,c,e,u),S=K({},C),x="";if(d){var E=F0(C,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),w=Oe(E,2);C=w[0],x=w[1]}var $=fg(C,s);C._tokenKey=$,S._tokenKey=fg(S,s);var O=(y=d==null?void 0:d.key)!==null&&y!==void 0?y:$;C._themeKey=O,PF(O);var P="".concat(OF,"-").concat(Ma($));return C._hashId=P,[C,P,S,x,(d==null?void 0:d.key)||""]},function(y){RF(y[0]._themeKey,o)},function(y){var C=Oe(y,4),S=C[0],x=C[3];if(d&&x){var E=Dn(x,Ma("css-variables-".concat(S._themeKey)),{mark:Hr,prepend:"queue",attachTo:a,priority:-999});E[hn]=o,E.setAttribute(Ra,S._themeKey)}});return b}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(null,arguments)}var IF={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},M0="comm",R0="rule",A0="decl",_F="@import",kF="@namespace",NF="@keyframes",LF="@layer",T0=Math.abs,qf=String.fromCharCode;function j0(e){return e.trim()}function Vi(e,t,r){return e.replace(t,r)}function zF(e,t,r){return e.indexOf(t,r)}function yo(e,t){return e.charCodeAt(t)|0}function Oo(e,t,r){return e.slice(t,r)}function Lr(e){return e.length}function BF(e){return e.length}function Ei(e,t){return t.push(e),e}var Ls=1,Po=1,I0=0,xr=0,yt=0,zo="";function Uf(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ls,column:Po,length:i,return:"",siblings:s}}function DF(){return yt}function HF(){return yt=xr>0?yo(zo,--xr):0,Po--,yt===10&&(Po=1,Ls--),yt}function jr(){return yt=xr<I0?yo(zo,xr++):0,Po++,yt===10&&(Po=1,Ls++),yt}function yn(){return yo(zo,xr)}function Wi(){return xr}function zs(e,t){return Oo(zo,e,t)}function ja(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function VF(e){return Ls=Po=1,I0=Lr(zo=e),xr=0,[]}function WF(e){return zo="",e}function Hl(e){return j0(zs(xr-1,cu(e===91?e+2:e===40?e+1:e)))}function qF(e){for(;(yt=yn())&&yt<33;)jr();return ja(e)>2||ja(yt)>3?"":" "}function UF(e,t){for(;--t&&jr()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return zs(e,Wi()+(t<6&&yn()==32&&jr()==32))}function cu(e){for(;jr();)switch(yt){case e:return xr;case 34:case 39:e!==34&&e!==39&&cu(yt);break;case 40:e===41&&cu(e);break;case 92:jr();break}return xr}function GF(e,t){for(;jr()&&e+yt!==57&&!(e+yt===84&&yn()===47););return"/*"+zs(t,xr-1)+"*"+qf(e===47?e:jr())}function XF(e){for(;!ja(yn());)jr();return zs(e,xr)}function KF(e){return WF(qi("",null,null,null,[""],e=VF(e),0,[0],e))}function qi(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,f=i,d=0,p=0,h=0,v=1,g=1,b=1,y=0,C="",S=o,x=a,E=n,w=C;g;)switch(h=y,y=jr()){case 40:if(h!=108&&yo(w,f-1)==58){zF(w+=Vi(Hl(y),"&","&\f"),"&\f",T0(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Hl(y);break;case 9:case 10:case 13:case 32:w+=qF(h);break;case 92:w+=UF(Wi()-1,7);continue;case 47:switch(yn()){case 42:case 47:Ei(ZF(GF(jr(),Wi()),t,r,l),l),(ja(h||1)==5||ja(yn()||1)==5)&&Lr(w)&&Oo(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*v:s[c++]=Lr(w)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(w=Vi(w,/\f/g,"")),p>0&&(Lr(w)-f||v===0&&h===47)&&Ei(p>32?vg(w+";",n,r,f-1,l):vg(Vi(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(Ei(E=gg(w,t,r,c,u,o,s,C,S=[],x=[],f,a),a),y===123)if(u===0)qi(w,t,E,E,S,a,f,s,x);else{switch(d){case 99:if(yo(w,3)===110)break;case 108:if(yo(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?qi(e,E,E,n&&Ei(gg(e,E,E,0,0,o,s,C,o,S=[],f,x),x),o,x,f,s,n?S:x):qi(w,E,E,E,[""],x,0,s,x)}}c=u=p=0,v=b=1,C=w="",f=i;break;case 58:f=1+Lr(w),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&HF()==125)continue}switch(w+=qf(y),y*v){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Lr(w)-1)*b,b=1;break;case 64:yn()===45&&(w+=Hl(jr())),d=yn(),u=f=Lr(C=w+=XF(Wi())),y++;break;case 45:h===45&&Lr(w)==2&&(v=0)}}return a}function gg(e,t,r,n,o,a,i,s,l,c,u,f){for(var d=o-1,p=o===0?a:[""],h=BF(p),v=0,g=0,b=0;v<n;++v)for(var y=0,C=Oo(e,d+1,d=T0(g=i[v])),S=e;y<h;++y)(S=j0(g>0?p[y]+" "+C:Vi(C,/&\f/g,p[y])))&&(l[b++]=S);return Uf(e,t,r,o===0?R0:s,l,c,u,f)}function ZF(e,t,r,n){return Uf(e,t,r,M0,qf(DF()),Oo(e,2,-2),0,n)}function vg(e,t,r,n,o){return Uf(e,t,r,A0,Oo(e,0,n),Oo(e,n+1,-1),n,o)}function uu(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function YF(e,t,r,n){switch(e.type){case LF:if(e.children.length)break;case _F:case kF:case A0:return e.return=e.return||e.value;case M0:return"";case NF:return e.return=e.value+"{"+uu(e.children,n)+"}";case R0:if(!Lr(e.value=e.props.join(",")))return""}return Lr(r=uu(e.children,n))?e.return=e.value+"{"+r+"}":""}var hg="data-ant-cssinjs-cache-path",_0="_FILE_STYLE__",Hn,k0=!0;function QF(){if(!Hn&&(Hn={},Jr())){var e=document.createElement("div");e.className=hg,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Oe(a,2),s=i[0],l=i[1];Hn[s]=l});var r=document.querySelector("style[".concat(hg,"]"));if(r){var n;k0=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function JF(e){return QF(),!!Hn[e]}function eM(e){var t=Hn[e],r=null;if(t&&Jr())if(k0)r=_0;else{var n=document.querySelector("style[".concat(Hr,'="').concat(Hn[e],'"]'));n?r=n.innerHTML:delete Hn[e]}return[r,t]}var tM="_skip_check_",N0="_multi_value_";function Vl(e){var t=uu(KF(e),YF);return t.replace(/\{%%%\:[^;];}/g,";")}function rM(e){return $e(e)==="object"&&e&&(tM in e||N0 in e)}function pg(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Se(l.slice(1))).join(" ")});return a.join(",")}var nM=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var d="",p={};function h(b){var y=b.getName(s);if(!p[y]){var C=e(b.style,r,{root:!1,parentSelectors:i}),S=Oe(C,1),x=S[0];p[y]="@keyframes ".concat(b.getName(s)).concat(x)}}function v(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(C){Array.isArray(C)?v(C,y):C&&y.push(C)}),y}var g=v(Array.isArray(t)?t:[t]);return g.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")d+="".concat(y,`
|
|
335
|
-
|
|
336
|
-
|
|
246
|
+
*/const cv=Kt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var uv={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Du={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},v$=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],qi={CSS:{},springs:{}};function cr(e,t,n){return Math.min(Math.max(e,t),n)}function fo(e,t){return e.indexOf(t)>-1}function sl(e,t){return e.apply(null,t)}var Je={arr:function(e){return Array.isArray(e)},obj:function(e){return fo(Object.prototype.toString.call(e),"Object")},pth:function(e){return Je.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Je.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return Je.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Je.hex(e)||Je.rgb(e)||Je.hsl(e)},key:function(e){return!uv.hasOwnProperty(e)&&!Du.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function dv(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function fv(e,t){var n=dv(e),r=cr(Je.und(n[0])?1:n[0],.1,100),a=cr(Je.und(n[1])?100:n[1],.1,100),o=cr(Je.und(n[2])?10:n[2],.1,100),i=cr(Je.und(n[3])?0:n[3],.1,100),s=Math.sqrt(a/r),l=o/(2*Math.sqrt(a*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,d=l<1?(l*s+-i)/c:-i+s;function g(v){var m=t?t*v/1e3:v;return l<1?m=Math.exp(-m*l*s)*(u*Math.cos(c*m)+d*Math.sin(c*m)):m=(u+d*m)*Math.exp(-m*s),v===0||v===1?v:1-m}function h(){var v=qi.springs[e];if(v)return v;for(var m=1/6,p=0,b=0;;)if(p+=m,g(p)===1){if(b++,b>=16)break}else b=0;var y=p*m*1e3;return qi.springs[e]=y,y}return t?g:h}function h$(e){return e===void 0&&(e=10),function(t){return Math.ceil(cr(t,1e-6,1)*e)*(1/e)}}var y$=(function(){var e=11,t=1/(e-1);function n(u,d){return 1-3*d+3*u}function r(u,d){return 3*d-6*u}function a(u){return 3*u}function o(u,d,g){return((n(d,g)*u+r(d,g))*u+a(d))*u}function i(u,d,g){return 3*n(d,g)*u*u+2*r(d,g)*u+a(d)}function s(u,d,g,h,v){var m,p,b=0;do p=d+(g-d)/2,m=o(p,h,v)-u,m>0?g=p:d=p;while(Math.abs(m)>1e-7&&++b<10);return p}function l(u,d,g,h){for(var v=0;v<4;++v){var m=i(d,g,h);if(m===0)return d;var p=o(d,g,h)-u;d-=p/m}return d}function c(u,d,g,h){if(!(0<=u&&u<=1&&0<=g&&g<=1))return;var v=new Float32Array(e);if(u!==d||g!==h)for(var m=0;m<e;++m)v[m]=o(m*t,u,g);function p(b){for(var y=0,x=1,w=e-1;x!==w&&v[x]<=b;++x)y+=t;--x;var C=(b-v[x])/(v[x+1]-v[x]),S=y+C*t,E=i(S,u,g);return E>=.001?l(b,S,u,g):E===0?S:s(b,y,y+t,u,g)}return function(b){return u===d&&g===h||b===0||b===1?b:o(p(b),d,h)}}return c})(),mv=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var a,o=4;r<((a=Math.pow(2,--o))-1)/11;);return 1/Math.pow(4,3-o)-7.5625*Math.pow((a*3-2)/22-r,2)}},Elastic:function(r,a){r===void 0&&(r=1),a===void 0&&(a=.5);var o=cr(r,1,10),i=cr(a,.1,2);return function(s){return s===0||s===1?s:-o*Math.pow(2,10*(s-1))*Math.sin((s-1-i/(Math.PI*2)*Math.asin(1/o))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,a){t[r]=function(){return function(o){return Math.pow(o,a+2)}}}),Object.keys(t).forEach(function(r){var a=t[r];e["easeIn"+r]=a,e["easeOut"+r]=function(o,i){return function(s){return 1-a(o,i)(1-s)}},e["easeInOut"+r]=function(o,i){return function(s){return s<.5?a(o,i)(s*2)/2:1-a(o,i)(s*-2+2)/2}},e["easeOutIn"+r]=function(o,i){return function(s){return s<.5?(1-a(o,i)(1-s*2))/2:(a(o,i)(s*2-1)+1)/2}}}),e})();function Mu(e,t){if(Je.fnc(e))return e;var n=e.split("(")[0],r=mv[n],a=dv(e);switch(n){case"spring":return fv(e,t);case"cubicBezier":return sl(y$,a);case"steps":return sl(h$,a);default:return sl(r,a)}}function pv(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Ss(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o<n;o++)if(o in e){var i=e[o];t.call(r,i,o,e)&&a.push(i)}return a}function $s(e){return e.reduce(function(t,n){return t.concat(Je.arr(n)?$s(n):n)},[])}function Sf(e){return Je.arr(e)?e:(Je.str(e)&&(e=pv(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Fu(e,t){return e.some(function(n){return n===t})}function Pu(e){var t={};for(var n in e)t[n]=e[n];return t}function Xl(e,t){var n=Pu(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function Es(e,t){var n=Pu(e);for(var r in t)n[r]=Je.und(e[r])?t[r]:e[r];return n}function b$(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function x$(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(s,l,c,u){return l+l+c+c+u+u}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),a=parseInt(r[1],16),o=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+a+","+o+","+i+",1)"}function C$(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,a=parseInt(t[3],10)/100,o=t[4]||1;function i(g,h,v){return v<0&&(v+=1),v>1&&(v-=1),v<1/6?g+(h-g)*6*v:v<1/2?h:v<2/3?g+(h-g)*(2/3-v)*6:g}var s,l,c;if(r==0)s=l=c=a;else{var u=a<.5?a*(1+r):a+r-a*r,d=2*a-u;s=i(d,u,n+1/3),l=i(d,u,n),c=i(d,u,n-1/3)}return"rgba("+s*255+","+l*255+","+c*255+","+o+")"}function w$(e){if(Je.rgb(e))return b$(e);if(Je.hex(e))return x$(e);if(Je.hsl(e))return C$(e)}function hr(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function S$(e){if(fo(e,"translate")||e==="perspective")return"px";if(fo(e,"rotate")||fo(e,"skew"))return"deg"}function Jl(e,t){return Je.fnc(e)?e(t.target,t.id,t.total):e}function ur(e,t){return e.getAttribute(t)}function ju(e,t,n){var r=hr(t);if(Fu([n,"deg","rad","turn"],r))return t;var a=qi.CSS[t+n];if(!Je.und(a))return a;var o=100,i=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(i),i.style.position="absolute",i.style.width=o+n;var l=o/i.offsetWidth;s.removeChild(i);var c=l*parseFloat(t);return qi.CSS[t+n]=c,c}function gv(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?ju(e,a,n):a}}function Ru(e,t){if(Je.dom(e)&&!Je.inp(e)&&(!Je.nil(ur(e,t))||Je.svg(e)&&e[t]))return"attribute";if(Je.dom(e)&&Fu(v$,t))return"transform";if(Je.dom(e)&&t!=="transform"&&gv(e,t))return"css";if(e[t]!=null)return"object"}function vv(e){if(Je.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,a;a=n.exec(t);)r.set(a[1],a[2]);return r}}function $$(e,t,n,r){var a=fo(t,"scale")?1:0+S$(t),o=vv(e).get(t)||a;return n&&(n.transforms.list.set(t,o),n.transforms.last=t),r?ju(e,o,r):o}function Au(e,t,n,r){switch(Ru(e,t)){case"transform":return $$(e,t,r,n);case"css":return gv(e,t,n);case"attribute":return ur(e,t);default:return e[t]||0}}function Tu(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=hr(e)||0,a=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return a+o+r;case"-":return a-o+r;case"*":return a*o+r}}function hv(e,t){if(Je.col(e))return w$(e);if(/\s/g.test(e))return e;var n=hr(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function _u(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function E$(e){return Math.PI*2*ur(e,"r")}function k$(e){return ur(e,"width")*2+ur(e,"height")*2}function I$(e){return _u({x:ur(e,"x1"),y:ur(e,"y1")},{x:ur(e,"x2"),y:ur(e,"y2")})}function yv(e){for(var t=e.points,n=0,r,a=0;a<t.numberOfItems;a++){var o=t.getItem(a);a>0&&(n+=_u(r,o)),r=o}return n}function O$(e){var t=e.points;return yv(e)+_u(t.getItem(t.numberOfItems-1),t.getItem(0))}function bv(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return E$(e);case"rect":return k$(e);case"line":return I$(e);case"polyline":return yv(e);case"polygon":return O$(e)}}function N$(e){var t=bv(e);return e.setAttribute("stroke-dasharray",t),t}function D$(e){for(var t=e.parentNode;Je.svg(t)&&Je.svg(t.parentNode);)t=t.parentNode;return t}function xv(e,t){var n=t||{},r=n.el||D$(e),a=r.getBoundingClientRect(),o=ur(r,"viewBox"),i=a.width,s=a.height,l=n.viewBox||(o?o.split(" "):[0,0,i,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:i,h:s,vW:l[2],vH:l[3]}}function M$(e,t){var n=Je.str(e)?pv(e)[0]:e,r=t||100;return function(a){return{property:a,el:n,svg:xv(n),totalLength:bv(n)*(r/100)}}}function F$(e,t,n){function r(u){u===void 0&&(u=0);var d=t+u>=1?t+u:0;return e.el.getPointAtLength(d)}var a=xv(e.el,e.svg),o=r(),i=r(-1),s=r(1),l=n?1:a.w/a.vW,c=n?1:a.h/a.vH;switch(e.property){case"x":return(o.x-a.x)*l;case"y":return(o.y-a.y)*c;case"angle":return Math.atan2(s.y-i.y,s.x-i.x)*180/Math.PI}}function $f(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=hv(Je.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Je.str(e)||t?r.split(n):[]}}function Bu(e){var t=e?$s(Je.arr(e)?e.map(Sf):Sf(e)):[];return Ss(t,function(n,r,a){return a.indexOf(n)===r})}function Cv(e){var t=Bu(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:vv(n)}}})}function P$(e,t){var n=Pu(t);if(/^spring/.test(n.easing)&&(n.duration=fv(n.easing)),Je.arr(e)){var r=e.length,a=r===2&&!Je.obj(e[0]);a?e={value:e}:Je.fnc(t.duration)||(n.duration=t.duration/r)}var o=Je.arr(e)?e:[e];return o.map(function(i,s){var l=Je.obj(i)&&!Je.pth(i)?i:{value:i};return Je.und(l.delay)&&(l.delay=s?0:t.delay),Je.und(l.endDelay)&&(l.endDelay=s===o.length-1?t.endDelay:0),l}).map(function(i){return Es(i,n)})}function j$(e){for(var t=Ss($s(e.map(function(o){return Object.keys(o)})),function(o){return Je.key(o)}).reduce(function(o,i){return o.indexOf(i)<0&&o.push(i),o},[]),n={},r=function(o){var i=t[o];n[i]=e.map(function(s){var l={};for(var c in s)Je.key(c)?c==i&&(l.value=s[c]):l[c]=s[c];return l})},a=0;a<t.length;a++)r(a);return n}function R$(e,t){var n=[],r=t.keyframes;r&&(t=Es(j$(r),t));for(var a in t)Je.key(a)&&n.push({name:a,tweens:P$(t[a],e)});return n}function A$(e,t){var n={};for(var r in e){var a=Jl(e[r],t);Je.arr(a)&&(a=a.map(function(o){return Jl(o,t)}),a.length===1&&(a=a[0])),n[r]=a}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function T$(e,t){var n;return e.tweens.map(function(r){var a=A$(r,t),o=a.value,i=Je.arr(o)?o[1]:o,s=hr(i),l=Au(t.target,e.name,s,t),c=n?n.to.original:l,u=Je.arr(o)?o[0]:c,d=hr(u)||hr(l),g=s||d;return Je.und(i)&&(i=c),a.from=$f(u,g),a.to=$f(Tu(i,u),g),a.start=n?n.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=Mu(a.easing,a.duration),a.isPath=Je.pth(o),a.isPathTargetInsideSVG=a.isPath&&Je.svg(t.target),a.isColor=Je.col(a.from.original),a.isColor&&(a.round=1),n=a,a})}var wv={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,a){if(r.list.set(t,n),t===r.last||a){var o="";r.list.forEach(function(i,s){o+=s+"("+i+") "}),e.style.transform=o}}};function Sv(e,t){var n=Cv(e);n.forEach(function(r){for(var a in t){var o=Jl(t[a],r),i=r.target,s=hr(o),l=Au(i,a,s,r),c=s||hr(l),u=Tu(hv(o,c),l),d=Ru(i,a);wv[d](i,a,u,r.transforms,!0)}})}function _$(e,t){var n=Ru(e.target,t.name);if(n){var r=T$(t,e),a=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:a.end,delay:r[0].delay,endDelay:a.endDelay}}}function B$(e,t){return Ss($s(e.map(function(n){return t.map(function(r){return _$(n,r)})})),function(n){return!Je.und(n)})}function $v(e,t){var n=e.length,r=function(o){return o.timelineOffset?o.timelineOffset:0},a={};return a.duration=n?Math.max.apply(Math,e.map(function(o){return r(o)+o.duration})):t.duration,a.delay=n?Math.min.apply(Math,e.map(function(o){return r(o)+o.delay})):t.delay,a.endDelay=n?a.duration-Math.max.apply(Math,e.map(function(o){return r(o)+o.duration-o.endDelay})):t.endDelay,a}var Ef=0;function L$(e){var t=Xl(uv,e),n=Xl(Du,e),r=R$(n,e),a=Cv(e.targets),o=B$(a,r),i=$v(o,n),s=Ef;return Ef++,Es(t,{id:s,children:[],animatables:a,animations:o,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var Zn=[],Ev=(function(){var e;function t(){!e&&(!kf()||!Rt.suspendWhenDocumentHidden)&&Zn.length>0&&(e=requestAnimationFrame(n))}function n(a){for(var o=Zn.length,i=0;i<o;){var s=Zn[i];s.paused?(Zn.splice(i,1),o--):(s.tick(a),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){Rt.suspendWhenDocumentHidden&&(kf()?e=cancelAnimationFrame(e):(Zn.forEach(function(a){return a._onDocumentVisibility()}),Ev()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function kf(){return!!document&&document.hidden}function Rt(e){e===void 0&&(e={});var t=0,n=0,r=0,a,o=0,i=null;function s(y){var x=window.Promise&&new Promise(function(w){return i=w});return y.finished=x,x}var l=L$(e);s(l);function c(){var y=l.direction;y!=="alternate"&&(l.direction=y!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,a.forEach(function(x){return x.reversed=l.reversed})}function u(y){return l.reversed?l.duration-y:y}function d(){t=0,n=u(l.currentTime)*(1/Rt.speed)}function g(y,x){x&&x.seek(y-x.timelineOffset)}function h(y){if(l.reversePlayback)for(var x=o;x--;)g(y,a[x]);else for(var w=0;w<o;w++)g(y,a[w])}function v(y){for(var x=0,w=l.animations,C=w.length;x<C;){var S=w[x],E=S.animatable,k=S.tweens,$=k.length-1,O=k[$];$&&(O=Ss(k,function(K){return y<K.end})[0]||O);for(var D=cr(y-O.start-O.delay,0,O.duration)/O.duration,P=isNaN(D)?1:O.easing(D),R=O.to.strings,N=O.round,I=[],M=O.to.numbers.length,F=void 0,j=0;j<M;j++){var A=void 0,_=O.to.numbers[j],L=O.from.numbers[j]||0;O.isPath?A=F$(O.value,P*_,O.isPathTargetInsideSVG):A=L+P*(_-L),N&&(O.isColor&&j>2||(A=Math.round(A*N)/N)),I.push(A)}var z=R.length;if(!z)F=I[0];else{F=R[0];for(var T=0;T<z;T++){var H=R[T+1],W=I[T];isNaN(W)||(H?F+=W+H:F+=W+" ")}}wv[S.type](E.target,S.property,F,E.transforms),S.currentValue=F,x++}}function m(y){l[y]&&!l.passThrough&&l[y](l)}function p(){l.remaining&&l.remaining!==!0&&l.remaining--}function b(y){var x=l.duration,w=l.delay,C=x-l.endDelay,S=u(y);l.progress=cr(S/x*100,0,100),l.reversePlayback=S<l.currentTime,a&&h(S),!l.began&&l.currentTime>0&&(l.began=!0,m("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,m("loopBegin")),S<=w&&l.currentTime!==0&&v(0),(S>=C&&l.currentTime!==x||!x)&&v(x),S>w&&S<C?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,m("changeBegin")),m("change"),v(S)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,m("changeComplete")),l.currentTime=cr(S,0,x),l.began&&m("update"),y>=x&&(n=0,p(),l.remaining?(t=r,m("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&c()):(l.paused=!0,l.completed||(l.completed=!0,m("loopComplete"),m("complete"),!l.passThrough&&"Promise"in window&&(i(),s(l)))))}return l.reset=function(){var y=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=y==="reverse",l.remaining=l.loop,a=l.children,o=a.length;for(var x=o;x--;)l.children[x].reset();(l.reversed&&l.loop!==!0||y==="alternate"&&l.loop===1)&&l.remaining++,v(l.reversed?l.duration:0)},l._onDocumentVisibility=d,l.set=function(y,x){return Sv(y,x),l},l.tick=function(y){r=y,t||(t=r),b((r+(n-t))*Rt.speed)},l.seek=function(y){b(u(y))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Zn.push(l),d(),Ev())},l.reverse=function(){c(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.remove=function(y){var x=Bu(y);kv(x,l)},l.reset(),l.autoplay&&l.play(),l}function If(e,t){for(var n=t.length;n--;)Fu(e,t[n].animatable.target)&&t.splice(n,1)}function kv(e,t){var n=t.animations,r=t.children;If(e,n);for(var a=r.length;a--;){var o=r[a],i=o.animations;If(e,i),!i.length&&!o.children.length&&r.splice(a,1)}!n.length&&!r.length&&t.pause()}function z$(e){for(var t=Bu(e),n=Zn.length;n--;){var r=Zn[n];kv(t,r)}}function H$(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?Mu(t.easing):null,a=t.grid,o=t.axis,i=t.from||0,s=i==="first",l=i==="center",c=i==="last",u=Je.arr(e),d=parseFloat(u?e[0]:e),g=u?parseFloat(e[1]):0,h=hr(u?e[1]:e)||0,v=t.start||0+(u?d:0),m=[],p=0;return function(b,y,x){if(s&&(i=0),l&&(i=(x-1)/2),c&&(i=x-1),!m.length){for(var w=0;w<x;w++){if(!a)m.push(Math.abs(i-w));else{var C=l?(a[0]-1)/2:i%a[0],S=l?(a[1]-1)/2:Math.floor(i/a[0]),E=w%a[0],k=Math.floor(w/a[0]),$=C-E,O=S-k,D=Math.sqrt($*$+O*O);o==="x"&&(D=-$),o==="y"&&(D=-O),m.push(D)}p=Math.max.apply(Math,m)}r&&(m=m.map(function(R){return r(R/p)*p})),n==="reverse"&&(m=m.map(function(R){return o?R<0?R*-1:-R:Math.abs(p-R)}))}var P=u?(g-d)/p:d;return v+P*(Math.round(m[y]*100)/100)+h}}function V$(e){e===void 0&&(e={});var t=Rt(e);return t.duration=0,t.add=function(n,r){var a=Zn.indexOf(t),o=t.children;a>-1&&Zn.splice(a,1);function i(g){g.passThrough=!0}for(var s=0;s<o.length;s++)i(o[s]);var l=Es(n,Xl(Du,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Je.und(r)?c:Tu(r,c),i(t),t.seek(l.timelineOffset);var u=Rt(l);i(u),o.push(u);var d=$v(o,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}Rt.version="3.2.1";Rt.speed=1;Rt.suspendWhenDocumentHidden=!0;Rt.running=Zn;Rt.remove=z$;Rt.get=Au;Rt.set=Sv;Rt.convertPx=ju;Rt.path=M$;Rt.setDashoffset=N$;Rt.stagger=H$;Rt.timeline=V$;Rt.easing=Mu;Rt.penner=mv;Rt.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const K$=ra({badgeCounts:{},updateBadgeCount:()=>{}}),W$=()=>{const e=$n(K$);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var Ql={exports:{}},q$=Ql.exports,Of;function U$(){return Of||(Of=1,(function(e,t){(function(n,r){e.exports=r()})(q$,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",g="quarter",h="year",v="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var I=["th","st","nd","rd"],M=N%100;return"["+N+(I[(M-20)%10]||I[M]||I[0])+"]"}},x=function(N,I,M){var F=String(N);return!F||F.length>=I?N:""+Array(I+1-F.length).join(M)+N},w={s:x,z:function(N){var I=-N.utcOffset(),M=Math.abs(I),F=Math.floor(M/60),j=M%60;return(I<=0?"+":"-")+x(F,2,"0")+":"+x(j,2,"0")},m:function N(I,M){if(I.date()<M.date())return-N(M,I);var F=12*(M.year()-I.year())+(M.month()-I.month()),j=I.clone().add(F,d),A=M-j<0,_=I.clone().add(F+(A?-1:1),d);return+(-(F+(M-j)/(A?j-_:_-j))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:d,y:h,w:u,d:c,D:v,h:l,m:s,s:i,ms:o,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",S={};S[C]=y;var E="$isDayjsObject",k=function(N){return N instanceof P||!(!N||!N[E])},$=function N(I,M,F){var j;if(!I)return C;if(typeof I=="string"){var A=I.toLowerCase();S[A]&&(j=A),M&&(S[A]=M,j=A);var _=I.split("-");if(!j&&_.length>1)return N(_[0])}else{var L=I.name;S[L]=I,j=L}return!F&&j&&(C=j),j||!F&&C},O=function(N,I){if(k(N))return N.clone();var M=typeof I=="object"?I:{};return M.date=N,M.args=arguments,new P(M)},D=w;D.l=$,D.i=k,D.w=function(N,I){return O(N,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var P=(function(){function N(M){this.$L=$(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[E]=!0}var I=N.prototype;return I.parse=function(M){this.$d=(function(F){var j=F.date,A=F.utc;if(j===null)return new Date(NaN);if(D.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var _=j.match(p);if(_){var L=_[2]-1||0,z=(_[7]||"0").substring(0,3);return A?new Date(Date.UTC(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,z)):new Date(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,z)}}return new Date(j)})(M),this.init()},I.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},I.$utils=function(){return D},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(M,F){var j=O(M);return this.startOf(F)<=j&&j<=this.endOf(F)},I.isAfter=function(M,F){return O(M)<this.startOf(F)},I.isBefore=function(M,F){return this.endOf(F)<O(M)},I.$g=function(M,F,j){return D.u(M)?this[F]:this.set(j,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,F){var j=this,A=!!D.u(F)||F,_=D.p(M),L=function(Z,Q){var Y=D.w(j.$u?Date.UTC(j.$y,Q,Z):new Date(j.$y,Q,Z),j);return A?Y:Y.endOf(c)},z=function(Z,Q){return D.w(j.toDate()[Z].apply(j.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Q)),j)},T=this.$W,H=this.$M,W=this.$D,K="set"+(this.$u?"UTC":"");switch(_){case h:return A?L(1,0):L(31,11);case d:return A?L(1,H):L(0,H+1);case u:var G=this.$locale().weekStart||0,U=(T<G?T+7:T)-G;return L(A?W-U:W+(6-U),H);case c:case v:return z(K+"Hours",0);case l:return z(K+"Minutes",1);case s:return z(K+"Seconds",2);case i:return z(K+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,F){var j,A=D.p(M),_="set"+(this.$u?"UTC":""),L=(j={},j[c]=_+"Date",j[v]=_+"Date",j[d]=_+"Month",j[h]=_+"FullYear",j[l]=_+"Hours",j[s]=_+"Minutes",j[i]=_+"Seconds",j[o]=_+"Milliseconds",j)[A],z=A===c?this.$D+(F-this.$W):F;if(A===d||A===h){var T=this.clone().set(v,1);T.$d[L](z),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else L&&this.$d[L](z);return this.init(),this},I.set=function(M,F){return this.clone().$set(M,F)},I.get=function(M){return this[D.p(M)]()},I.add=function(M,F){var j,A=this;M=Number(M);var _=D.p(F),L=function(H){var W=O(A);return D.w(W.date(W.date()+Math.round(H*M)),A)};if(_===d)return this.set(d,this.$M+M);if(_===h)return this.set(h,this.$y+M);if(_===c)return L(1);if(_===u)return L(7);var z=(j={},j[s]=r,j[l]=a,j[i]=n,j)[_]||1,T=this.$d.getTime()+M*z;return D.w(T,this)},I.subtract=function(M,F){return this.add(-1*M,F)},I.format=function(M){var F=this,j=this.$locale();if(!this.isValid())return j.invalidDate||m;var A=M||"YYYY-MM-DDTHH:mm:ssZ",_=D.z(this),L=this.$H,z=this.$m,T=this.$M,H=j.weekdays,W=j.months,K=j.meridiem,G=function(Q,Y,ee,ce){return Q&&(Q[Y]||Q(F,A))||ee[Y].slice(0,ce)},U=function(Q){return D.s(L%12||12,Q,"0")},Z=K||function(Q,Y,ee){var ce=Q<12?"AM":"PM";return ee?ce.toLowerCase():ce};return A.replace(b,(function(Q,Y){return Y||(function(ee){switch(ee){case"YY":return String(F.$y).slice(-2);case"YYYY":return D.s(F.$y,4,"0");case"M":return T+1;case"MM":return D.s(T+1,2,"0");case"MMM":return G(j.monthsShort,T,W,3);case"MMMM":return G(W,T);case"D":return F.$D;case"DD":return D.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return G(j.weekdaysMin,F.$W,H,2);case"ddd":return G(j.weekdaysShort,F.$W,H,3);case"dddd":return H[F.$W];case"H":return String(L);case"HH":return D.s(L,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Z(L,z,!0);case"A":return Z(L,z,!1);case"m":return String(z);case"mm":return D.s(z,2,"0");case"s":return String(F.$s);case"ss":return D.s(F.$s,2,"0");case"SSS":return D.s(F.$ms,3,"0");case"Z":return _}return null})(Q)||_.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,F,j){var A,_=this,L=D.p(F),z=O(M),T=(z.utcOffset()-this.utcOffset())*r,H=this-z,W=function(){return D.m(_,z)};switch(L){case h:A=W()/12;break;case d:A=W();break;case g:A=W()/3;break;case u:A=(H-T)/6048e5;break;case c:A=(H-T)/864e5;break;case l:A=H/a;break;case s:A=H/r;break;case i:A=H/n;break;default:A=H}return j?A:D.a(A)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return S[this.$L]},I.locale=function(M,F){if(!M)return this.$L;var j=this.clone(),A=$(M,F,!0);return A&&(j.$L=A),j},I.clone=function(){return D.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},N})(),R=P.prototype;return O.prototype=R,[["$ms",o],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach((function(N){R[N[1]]=function(I){return this.$g(I,N[0],N[1])}})),O.extend=function(N,I){return N.$i||(N(I,P,O),N.$i=!0),O},O.locale=$,O.isDayjs=k,O.unix=function(N){return O(1e3*N)},O.en=S[C],O.Ls=S,O.p={},O}))})(Ql)),Ql.exports}var Y$=U$();const Iv=iv(Y$);function G$(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?X.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?X.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?X.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?X.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/excel",size:18});case"pdf":return n.pdf?X.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/pdf",size:18});case"txt":return n.txt?X.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/txt",size:18});case"md":return n.md?X.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/document",size:18});case"json":return n.json?X.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/json",size:18});case"html":case"htm":return n.html?X.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):X.jsx(qt,{type:"rag/url",size:18});case"xml":default:return X.jsx(qt,{type:"rag/file",size:18})}}const X$=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",J$=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:a="text-gray-400",statusIcon:o,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:d,extra:g,style:h})=>X.jsxs("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:h,children:[X.jsx("div",{className:"pt-1",children:n}),X.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[X.jsxs("div",{className:"flex items-center justify-between gap-1",children:[X.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),X.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:X$(t)})]}),X.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${a}`,children:[o,X.jsx("span",{children:r})]})]}),g,c&&!u&&X.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{d&&l?d(l):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:X.jsx(cv,{className:"w-3.5 h-3.5"})})]});function Q$({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return ft(()=>{e.forEach((a,o)=>{a&&console.log("FilesDisplay currentStatus",a.status)})},[e]),ft(()=>{e.length>0&&e.every(a=>a.status==="finished")&&Rt({targets:".file-display-card",opacity:0,scale:.8,delay:Rt.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),X.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((a,o)=>{var g,h;if(!a||!a.file)return null;const i=a.name||a.file.name,s=(g=a.file)==null?void 0:g.size;let{status:l}=a;l==="finished"&&(l="done");const c={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:X.jsx(wf,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:X.jsx(wf,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:X.jsx(l$,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:X.jsx(s$,{className:"w-3 h-3"}),color:"text-red-500"}}[l||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},u=i.split(".").pop()||"",d=G$(u,r);return X.jsx(J$,{cardId:`file-card-${o}`,fileName:i,fileSize:s,icon:d,statusText:c.text||"\u672A\u77E5",statusColor:c.color||"text-gray-400",statusIcon:c.icon||null,showRemove:l!=="parsing"&&l!=="uploading",onRemoveWithAnim:v=>{Rt({targets:`#${v}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(o)}})},themeColors:(h=r==null?void 0:r.theme)==null?void 0:h.colors},i+o)})})}function Z$({checked:e,onChange:t,icon:n,children:r,styles:a,disabled:o}){var h,v,m,p,b,y,x,w,C,S,E,k,$,O;const i=((v=(h=a==null?void 0:a.theme)==null?void 0:h.colors)==null?void 0:v.primary)||"#00C26A",s=((p=(m=a==null?void 0:a.theme)==null?void 0:m.colors)==null?void 0:p.text)||"#343a40",l=((y=(b=a==null?void 0:a.theme)==null?void 0:b.colors)==null?void 0:y.background)||"#fff",c=((w=(x=a==null?void 0:a.theme)==null?void 0:x.colors)==null?void 0:w.border)||"#dee2e6",u=((S=(C=a==null?void 0:a.theme)==null?void 0:C.colors)==null?void 0:S.disabledBackground)||"#F5F5F5",d=((k=(E=a==null?void 0:a.theme)==null?void 0:E.colors)==null?void 0:k.disabledText)||"#808080",g=((O=($=a==null?void 0:a.theme)==null?void 0:$.colors)==null?void 0:O.disabled)||"#808080";return X.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:o,className:"flex items-center gap-1 bg-white px-3 py-1 rounded-full border transition-all duration-200 text-xs select-none",style:{borderWidth:1.5,outline:"none",cursor:o?"not-allowed":"pointer",minWidth:0,background:o?u:e?i:"transparent",color:o?d:e?l:s,borderColor:o?g:e?i:c},children:[n,X.jsx("span",{children:r})]})}function eE({value:e,eventsEmit:t,styles:n,status:r,onUpload:a,onVoice:o,uploadedFiles:i,onRemoveFile:s,senderConfig:l={},recommandQuestions:c=[],fileUploadStatus:u=[]}={}){var W;const{badgeCounts:d}=W$(),g=wt(null),h=l.switchs||[],[v,m]=dt(()=>{const K={};return h.forEach(G=>{G.type==="checkbox"&&(K[G.name]=G.defaultValue??!1)}),K});ft(()=>{console.log(v,"checkboxStates"),t&&t("sender:configChange",{all:v})},[v]);const[p,b]=dt(e||"");ft(()=>{b(e||"")},[e]);const y=()=>{const K=g.current;if(K){K.style.height="auto";const G=144,U=K.scrollHeight;U<=G?(K.style.height=`${U}px`,K.style.overflowY="hidden"):(K.style.height=`${G}px`,K.style.overflowY="auto")}},x=K=>{b(K.target.value),t&&t("sender:change",K.target.value),y()},w=K=>{K.key==="Enter"&&!K.shiftKey&&(console.log("enter"),K.preventDefault(),t&&t("sender:send"))};ft(()=>{y()},[p]),ft(()=>{let K;try{K=typeof c=="string"?JSON.parse(c):c}catch{K=[]}},[c]);const C=Lt(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const K=JSON.parse(c);return Array.isArray(K)?K:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[S,E]=dt(!1);ft(()=>{if(!C||C.length===0){E(!1);return}E(!1),setTimeout(()=>{E(!0)},0)},[C]),ft(()=>{if(!S)return;const K=document.querySelectorAll(".recommand-question-btn");K.forEach(G=>{const U=G;U.style.visibility="visible",U.style.opacity="0",U.style.transform="translateY(20px)"}),Rt.remove(K),Rt({targets:K,opacity:[0,1],translateY:[20,0],delay:Rt.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{K.forEach(G=>{const U=G;U.removeAttribute("style"),U.style.color=L})}})},[S,C]);const k=Lt(()=>u&&u.length>0?u:i||[],[u,i]),$=Lt(()=>p&&p.trim().length>0,[p]),O=Lt(()=>{const K=p&&p.trim().length>0,G=k&&k.length>0;return K||G},[p,k]),D=Lt(()=>{const K=O?[{icon:X.jsx(cv,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],G=(l.actions||[]).map(U=>({...U,badgeCount:d[U.name]??U.badgeCount??0}));return[...K,...G]},[O,l.actions,d]),P=(W=n==null?void 0:n.theme)==null?void 0:W.colors,R=(P==null?void 0:P.primary)||"#007bff",N=(P==null?void 0:P.text)||"#343a40",I=(P==null?void 0:P.background)||"#ffffff",M=(P==null?void 0:P.border)||"#dee2e6",F=(P==null?void 0:P.background)||"#ffffff",j=(P==null?void 0:P.disabled)||"#808080",A=(P==null?void 0:P.disabledBackground)||"#F5F5F5",_=(P==null?void 0:P.error)||"#FF0000",L=(P==null?void 0:P.disabledText)||"#808080",z="rgba(255, 255, 255, 0.9)",T=(P==null?void 0:P.text)||"#000",H="dynamic-placeholder-style";return ft(()=>{const K=document.getElementById(H)||document.createElement("style");K.id=H,K.innerHTML=`
|
|
247
|
+
.dynamic-placeholder::placeholder {
|
|
248
|
+
color: ${j};
|
|
249
|
+
opacity: 1; /* Firefox */
|
|
250
|
+
}
|
|
251
|
+
.dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
252
|
+
color: ${j};
|
|
253
|
+
}
|
|
254
|
+
.dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
|
|
255
|
+
color: ${j};
|
|
256
|
+
}
|
|
257
|
+
`,document.head.appendChild(K)},[j]),X.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[X.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),X.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),X.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[X.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:S&&C.map((K,G)=>X.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:K,clearFn:()=>{t&&t("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:z,color:L,border:"none"},onMouseEnter:U=>{U.currentTarget.style.color=T},onMouseOut:U=>{U.currentTarget.style.color=L},children:K},G))}),k.length>0&&X.jsx(Q$,{styles:n,uploadedFiles:k,onRemoveFile:s||(()=>{}),eventsEmit:t}),X.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:F,border:`1px solid ${M}`,padding:"0 12px 8px 12px"},children:[X.jsx("textarea",{ref:g,value:p,onChange:x,onKeyDown:w,rows:1,placeholder:"\u6211\u53EF\u4EE5\u9605\u8BFB\u77E5\u8BC6\u5E93\u7684\u8D44\u6599\u5E76\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u56DE\u7B54\u4F60\u7684\u95EE\u9898...",className:`flex-1 py-2 resize-none outline-none border-none min-h-[85px]
|
|
258
|
+
max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:N}}),X.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[D.filter(K=>K.enabled!==!1).map((K,G)=>X.jsx(sy,{count:K.badgeCount,size:"small",style:{backgroundColor:R,color:I,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],showZero:!0,children:X.jsx("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:N,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:K.tip||K.name,onClick:()=>{K.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${K.name}`)},children:K.icon})},K.name||G)),X.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:M}}),X.jsx("div",{className:`
|
|
259
|
+
relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
|
|
260
|
+
transition-all duration-200
|
|
261
|
+
${r==="processing"?"animate-pulse":""}
|
|
262
|
+
`,style:{cursor:r==="processing"||$?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${_}, ${(P==null?void 0:P.error)||"#d9534f"})`:$?`linear-gradient(to bottom right, ${R}, ${(P==null?void 0:P.primary)||"#0275d8"})`:A},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):$&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:X.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!$&&r!=="processing"?L:I},children:r==="processing"?X.jsxs(X.Fragment,{children:[X.jsx(u$,{className:"w-[18px] h-[18px]"}),X.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):X.jsxs(X.Fragment,{children:[X.jsx(m$,{size:12}),X.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),X.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[X.jsx("span",{className:"text-[10px]",style:{color:j},children:"\u652F\u6301\u62D6\u62FD\u6216\u70B9\u51FB\u4E0A\u4F20PDF\u3001Word\u3001\u56FE\u7247\u7B49\u6587\u4EF6"}),X.jsx("div",{className:"flex items-center gap-4",children:h.filter(K=>K.enabled!==!1).map(K=>X.jsx(Z$,{styles:n,checked:v[K.name],disabled:!K.enabled,onChange:G=>{m(U=>({...U,[K.name]:G}))},icon:K.icon,children:K.label},K.name))})]})]})]})}function tE({content:e,time:t,sessionContext:n,eventsEmit:r}){const a=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return X.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[X.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-blue-400 to-blue-500 flex items-center justify-center mr-3 shadow-sm",children:X.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),X.jsx("div",{className:"flex-1",children:X.jsxs("div",{className:"flex-col",children:[X.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Iv(t).format("YYYY-MM-DD HH:mm:ss")}),X.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4 inline-block max-w-[80%] shadow-sm relative prose prose-sm",children:X.jsx("span",{className:"text-gray-700 break-words",children:e})}),X.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:X.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:a,title:"\u91CD\u53D1",children:[X.jsx(f$,{className:"w-4 h-4"}),X.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function nE({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:a}){const o=l=>{r==null||r("action_copy:click",{content:e,event:l})},i=()=>{r==null||r("action_thumbsup",{result:a,sessionContext:n})},s=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return X.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[X.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-purple-400 to-purple-500 flex items-center justify-center mr-3 shadow-sm",children:X.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),X.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:X.jsxs("div",{className:"flex flex-col w-full relative",children:[X.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Iv(t).format("YYYY-MM-DD HH:mm:ss")}),X.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:X.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),X.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[X.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u590D\u5236",children:[X.jsx(d$,{className:"w-4 h-4"}),X.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),X.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${a===1?"text-blue-700":""}`,onClick:i,title:"\u70B9\u8D5E",children:[X.jsx(g$,{className:"w-4 h-4"}),X.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),X.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${a===0?"text-blue-700":""}`,onClick:s,title:"\u70B9\u8E29",children:[X.jsx(p$,{className:"w-4 h-4"}),X.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function rE({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:a,eventsEmit:o}){const i=wt(null);return X.jsxs("div",{style:{direction:"rtl",transform:"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((s,l)=>X.jsx("div",{className:"mb-6",children:s.istype==="user"?n?X.jsx("div",{style:{direction:"ltr"},children:n(s,l)}):X.jsx("div",{style:{direction:"ltr"},children:X.jsx(tE,{...s,sessionContext:r,eventsEmit:o})}):t?X.jsx("div",{style:{direction:"ltr"},children:t(s,l)}):X.jsx("div",{style:{direction:"ltr"},children:X.jsx(nE,{...s,sessionContext:r,eventsEmit:o})})},s.istype==="user"?s.queryId:"relatedTo-"+s.queryId)),X.jsx("div",{ref:i})]})}function Zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aE(e){if(Array.isArray(e))return Zl(e)}function Ov(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lu(e,t){if(e){if(typeof e=="string")return Zl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zl(e,t):void 0}}function oE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
263
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e){return aE(e)||Ov(e)||Lu(e)||oE()}const iE=be.createContext({});function Nv(e){if(Array.isArray(e))return e}function sE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function Dv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
264
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(e,t){return Nv(e)||sE(e,t)||Lu(e,t)||Dv()}function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function lE(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mv(e){var t=lE(e,"string");return mt(t)=="symbol"?t:t+""}function te(e,t,n){return(t=Mv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bo(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function yr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function cE(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Df="data-rc-order",Mf="data-rc-priority",uE="rc-util-key",ec=new Map;function Fv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uE}function ks(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zu(e){return Array.from((ec.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yr())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=dE(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Df,i),s&&o&&l.setAttribute(Mf,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=ks(t),u=c.firstChild;if(r){if(s){var d=(t.styles||zu(c)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(Df)))return!1;var h=Number(g.getAttribute(Mf)||0);return o>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ks(t);return(t.styles||zu(n)).find(function(r){return r.getAttribute(Fv(t))===e})}function Rv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=jv(e,t);if(n){var r=ks(t);r.removeChild(n)}}function fE(e,t){var n=ec.get(e);if(!n||!cE(document,n)){var r=Pv("",t),a=r.parentNode;ec.set(e,a),e.removeChild(r)}}function Gr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ks(n),a=zu(r),o=ve(ve({},n),{},{styles:a});fE(r,o);var i=jv(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Pv(e,o);return u.setAttribute(Fv(o),t),u}function mE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pr(e,t){if(e==null)return{};var n,r,a=mE(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Av(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var tc={},pE=function(e){};function gE(e,t){}function vE(e,t){}function hE(){tc={}}function Tv(e,t,n){!t&&!tc[n]&&(e(!1,n),tc[n]=!0)}function zn(e,t){Tv(gE,e,t)}function yE(e,t){Tv(vE,e,t)}zn.preMessage=pE;zn.resetWarned=hE;zn.noteOnce=yE;function nc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(zn(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var u=0;u<o.length;u++)if(!a(o[u],i[u],c))return!1;return!0}if(o&&i&&mt(o)==="object"&&mt(i)==="object"){var d=Object.keys(o);return d.length!==Object.keys(i).length?!1:d.every(function(g){return a(o[g],i[g],c)})}return!1}return a(e,t)}function On(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mv(r.key),r)}}function Nn(e,t,n){return t&&Ff(e.prototype,t),n&&Ff(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var bE="%";function rc(e){return e.join(bE)}var xE=(function(){function e(t){On(this,e),te(this,"instanceId",void 0),te(this,"cache",new Map),te(this,"extracted",new Set),this.instanceId=t}return Nn(e,[{key:"get",value:function(t){return this.opGet(rc(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(rc(t),n)}},{key:"opUpdate",value:function(t,n){var r=this.cache.get(t),a=n(r);a===null?this.cache.delete(t):this.cache.set(t,a)}}]),e})(),xo="data-token-hash",fr="data-css-hash",Ir="__cssinjs_instance__";function CE(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(fr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[Ir]=a[Ir]||e,a[Ir]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(fr,"]"))).forEach(function(a){var o=a.getAttribute(fr);if(r[o]){if(a[Ir]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else r[o]=!0})}return new xE(e)}var Lo=f.createContext({hashPriority:"low",cache:CE(),defaultCache:!0});function xt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Co(e,t){return Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Co(e,t)}function Ta(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Co(e,t)}function wo(e){return wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wo(e)}function Hu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hu=function(){return!!e})()}function wE(e,t){if(t&&(mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function _a(e){var t=Hu();return function(){var n,r=wo(e);if(t){var a=wo(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return wE(this,n)}}function SE(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Vu=(function(){function e(){On(this,e),te(this,"cache",void 0),te(this,"keys",void 0),te(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Nn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(function(i){if(!o)o=void 0;else{var s;o=(s=o)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(i)}}),(n=o)!==null&&n!==void 0&&n.value&&a&&(o.value[1]=this.cacheCallTimes++),(r=o)===null||r===void 0?void 0:r.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(l,c){var u=ot(l,2),d=u[1];return r.internalGet(c)[1]<d?[c,r.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),o=ot(a,1),i=o[0];this.delete(i)}this.keys.push(t)}var s=this.cache;t.forEach(function(l,c){if(c===t.length-1)s.set(l,{value:[n,r.cacheCallTimes++]});else{var u=s.get(l);u?u.map||(u.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(t,n){var r=t.get(n[0]);if(n.length===1){var a;return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(a=r.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!SE(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();te(Vu,"MAX_CACHE_SIZE",20);te(Vu,"MAX_CACHE_OFFSET",5);var Pf=0,_v=(function(){function e(t){On(this,e),te(this,"derivatives",void 0),te(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Pf,t.length===0&&(t.length>0,void 0),Pf+=1}return Nn(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),ll=new Vu;function ac(e){var t=Array.isArray(e)?e:[e];return ll.has(t)||ll.set(t,new _v(t)),ll.get(t)}var $E=new WeakMap,cl={};function EE(e,t){for(var n=$E,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(cl)||n.set(cl,e()),n.get(cl)}var jf=new WeakMap;function mo(e){var t=jf.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof _v?t+=r.id:r&&mt(r)==="object"?t+=mo(r):t+=r}),t=bo(t),jf.set(e,t)),t}function Rf(e,t){return bo("".concat(t,"_").concat(mo(e)))}var oc=yr();function Or(e){return typeof e=="number"?"".concat(e,"px"):e}var $i=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},kE=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(r){var a=ot(r,2),o=a[0],i=a[1];return"".concat(o,":").concat(i,";")}).join(""),"}"):""},Bv=function(e,t,n){var r={},a={};return Object.entries(e).forEach(function(o){var i,s,l=ot(o,2),c=l[0],u=l[1];if(n!=null&&(i=n.preserve)!==null&&i!==void 0&&i[c])a[c]=u;else if((typeof u=="string"||typeof u=="number")&&!(n!=null&&(s=n.ignore)!==null&&s!==void 0&&s[c])){var d,g=$i(c,n==null?void 0:n.prefix);r[g]=typeof u=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[c])?"".concat(u,"px"):String(u),a[c]="var(".concat(g,")")}}),[a,kE(r,t,{scope:n==null?void 0:n.scope})]},Af=yr()?f.useLayoutEffect:f.useEffect,IE=function(e,t){var n=f.useRef(!0);Af(function(){return e(n.current)},t),Af(function(){return n.current=!1,function(){n.current=!0}},[])},OE=ve({},f),Tf=OE.useInsertionEffect,NE=function(e,t,n){f.useMemo(e,n),IE(function(){return t(!0)},n)},DE=Tf?function(e,t,n){return Tf(function(){return e(),t()},n)}:NE,ME=ve({},f),FE=ME.useInsertionEffect,PE=function(e){var t=[],n=!1;function r(a){n||t.push(a)}return f.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(a){return a()})}},e),r},jE=function(){return function(e){e()}},RE=typeof FE<"u"?PE:jE;function Ku(e,t,n,r,a){var o=f.useContext(Lo),i=o.cache,s=[e].concat(at(t)),l=rc(s),c=RE([l]),u=function(h){i.opUpdate(l,function(v){var m=v||[void 0,void 0],p=ot(m,2),b=p[0],y=b===void 0?0:b,x=p[1],w=x,C=w||n(),S=[y,C];return h?h(S):S})};f.useMemo(function(){u()},[l]);var d=i.opGet(l),g=d[1];return DE(function(){a==null||a(g)},function(h){return u(function(v){var m=ot(v,2),p=m[0],b=m[1];return h&&p===0&&(a==null||a(g)),[p+1,b]}),function(){i.opUpdate(l,function(v){var m=v||[],p=ot(m,2),b=p[0],y=b===void 0?0:b,x=p[1],w=y-1;return w===0?(c(function(){(h||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),g}var AE={},TE="css",zr=new Map;function _E(e){zr.set(e,(zr.get(e)||0)+1)}function BE(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(xo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ir]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var LE=0;function zE(e,t){zr.set(e,(zr.get(e)||0)-1);var n=new Set;zr.forEach(function(r,a){r<=0&&n.add(a)}),zr.size-n.size>LE&&n.forEach(function(r){BE(r,t),zr.delete(r)})}var HE=function(e,t,n,r){var a=n.getDerivativeToken(e),o=ve(ve({},a),t);return r&&(o=r(o)),o},VE="token";function KE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=$n(Lo),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?AE:l,u=n.formatToken,d=n.getComputedToken,g=n.cssVar,h=EE(function(){return Object.assign.apply(Object,[{}].concat(at(t)))},t),v=mo(h),m=mo(c),p=g?mo(g):"",b=Ku(VE,[s,e.id,v,m,p],function(){var y,x=d?d(h,c,e):HE(h,c,e,u),w=ve({},x),C="";if(g){var S=Bv(x,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),E=ot(S,2);x=E[0],C=E[1]}var k=Rf(x,s);x._tokenKey=k,w._tokenKey=Rf(w,s);var $=(y=g==null?void 0:g.key)!==null&&y!==void 0?y:k;x._themeKey=$,_E($);var O="".concat(TE,"-").concat(bo(k));return x._hashId=O,[x,O,w,C,(g==null?void 0:g.key)||""]},function(y){zE(y[0]._themeKey,a)},function(y){var x=ot(y,4),w=x[0],C=x[3];if(g&&C){var S=Gr(C,bo("css-variables-".concat(w._themeKey)),{mark:fr,prepend:"queue",attachTo:o,priority:-999});S[Ir]=a,S.setAttribute(xo,w._themeKey)}});return b}function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vn.apply(null,arguments)}var WE={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lv="comm",zv="rule",Hv="decl",qE="@import",UE="@namespace",YE="@keyframes",GE="@layer",Vv=Math.abs,Wu=String.fromCharCode;function Kv(e){return e.trim()}function Ei(e,t,n){return e.replace(t,n)}function XE(e,t,n){return e.indexOf(t,n)}function Ea(e,t){return e.charCodeAt(t)|0}function Na(e,t,n){return e.slice(t,n)}function lr(e){return e.length}function JE(e){return e.length}function ai(e,t){return t.push(e),e}var Is=1,Da=1,Wv=0,Yn=0,Zt=0,Ba="";function qu(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Is,column:Da,length:i,return:"",siblings:s}}function QE(){return Zt}function ZE(){return Zt=Yn>0?Ea(Ba,--Yn):0,Da--,Zt===10&&(Da=1,Is--),Zt}function er(){return Zt=Yn<Wv?Ea(Ba,Yn++):0,Da++,Zt===10&&(Da=1,Is++),Zt}function Nr(){return Ea(Ba,Yn)}function ki(){return Yn}function Os(e,t){return Na(Ba,e,t)}function So(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ek(e){return Is=Da=1,Wv=lr(Ba=e),Yn=0,[]}function tk(e){return Ba="",e}function ul(e){return Kv(Os(Yn-1,ic(e===91?e+2:e===40?e+1:e)))}function nk(e){for(;(Zt=Nr())&&Zt<33;)er();return So(e)>2||So(Zt)>3?"":" "}function rk(e,t){for(;--t&&er()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Os(e,ki()+(t<6&&Nr()==32&&er()==32))}function ic(e){for(;er();)switch(Zt){case e:return Yn;case 34:case 39:e!==34&&e!==39&&ic(Zt);break;case 40:e===41&&ic(e);break;case 92:er();break}return Yn}function ak(e,t){for(;er()&&e+Zt!==57&&!(e+Zt===84&&Nr()===47););return"/*"+Os(t,Yn-1)+"*"+Wu(e===47?e:er())}function ok(e){for(;!So(Nr());)er();return Os(e,Yn)}function ik(e){return tk(Ii("",null,null,null,[""],e=ek(e),0,[0],e))}function Ii(e,t,n,r,a,o,i,s,l){for(var c=0,u=0,d=i,g=0,h=0,v=0,m=1,p=1,b=1,y=0,x="",w=a,C=o,S=r,E=x;p;)switch(v=y,y=er()){case 40:if(v!=108&&Ea(E,d-1)==58){XE(E+=Ei(ul(y),"&","&\f"),"&\f",Vv(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=ul(y);break;case 9:case 10:case 13:case 32:E+=nk(v);break;case 92:E+=rk(ki()-1,7);continue;case 47:switch(Nr()){case 42:case 47:ai(sk(ak(er(),ki()),t,n,l),l),(So(v||1)==5||So(Nr()||1)==5)&&lr(E)&&Na(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=lr(E)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(E=Ei(E,/\f/g,"")),h>0&&(lr(E)-d||m===0&&v===47)&&ai(h>32?Bf(E+";",r,n,d-1,l):Bf(Ei(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(ai(S=_f(E,t,n,c,u,a,s,x,w=[],C=[],d,o),o),y===123)if(u===0)Ii(E,t,S,S,w,o,d,s,C);else{switch(g){case 99:if(Ea(E,3)===110)break;case 108:if(Ea(E,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ii(e,S,S,r&&ai(_f(e,S,S,0,0,a,s,x,a,w=[],d,C),C),a,C,d,s,r?w:C):Ii(E,S,S,S,[""],C,0,s,C)}}c=u=h=0,m=b=1,x=E="",d=i;break;case 58:d=1+lr(E),h=v;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&ZE()==125)continue}switch(E+=Wu(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(lr(E)-1)*b,b=1;break;case 64:Nr()===45&&(E+=ul(er())),g=Nr(),u=d=lr(x=E+=ok(ki())),y++;break;case 45:v===45&&lr(E)==2&&(m=0)}}return o}function _f(e,t,n,r,a,o,i,s,l,c,u,d){for(var g=a-1,h=a===0?o:[""],v=JE(h),m=0,p=0,b=0;m<r;++m)for(var y=0,x=Na(e,g+1,g=Vv(p=i[m])),w=e;y<v;++y)(w=Kv(p>0?h[y]+" "+x:Ei(x,/&\f/g,h[y])))&&(l[b++]=w);return qu(e,t,n,a===0?zv:s,l,c,u,d)}function sk(e,t,n,r){return qu(e,t,n,Lv,Wu(QE()),Na(e,2,-2),0,r)}function Bf(e,t,n,r,a){return qu(e,t,n,Hv,Na(e,0,r),Na(e,r+1,-1),r,a)}function sc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function lk(e,t,n,r){switch(e.type){case GE:if(e.children.length)break;case qE:case UE:case Hv:return e.return=e.return||e.value;case Lv:return"";case YE:return e.return=e.value+"{"+sc(e.children,r)+"}";case zv:if(!lr(e.value=e.props.join(",")))return""}return lr(n=sc(e.children,r))?e.return=e.value+"{"+n+"}":""}var Lf="data-ant-cssinjs-cache-path",qv="_FILE_STYLE__",Xr,Uv=!0;function ck(){if(!Xr&&(Xr={},yr())){var e=document.createElement("div");e.className=Lf,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=ot(o,2),s=i[0],l=i[1];Xr[s]=l});var n=document.querySelector("style[".concat(Lf,"]"));if(n){var r;Uv=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function uk(e){return ck(),!!Xr[e]}function dk(e){var t=Xr[e],n=null;if(t&&yr())if(Uv)n=qv;else{var r=document.querySelector("style[".concat(fr,'="').concat(Xr[e],'"]'));r?n=r.innerHTML:delete Xr[e]}return[n,t]}var fk="_skip_check_",Yv="_multi_value_";function dl(e){var t=sc(ik(e),lk);return t.replace(/\{%%%\:[^;];}/g,";")}function mk(e){return mt(e)==="object"&&e&&(fk in e||Yv in e)}function zf(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(a).concat(c.slice(u.length)),[c].concat(at(l.slice(1))).join(" ")});return o.join(",")}var pk=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var g="",h={};function v(b){var y=b.getName(s);if(!h[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),w=ot(x,1),C=w[0];h[y]="@keyframes ".concat(b.getName(s)).concat(C)}}function m(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?m(x,y):x&&y.push(x)}),y}var p=m(Array.isArray(t)?t:[t]);return p.forEach(function(b){var y=typeof b=="string"&&!a?{}:b;if(typeof y=="string")g+="".concat(y,`
|
|
265
|
+
`);else if(y._keyframe)v(y);else{var x=d.reduce(function(w,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,w))||w},y);Object.keys(x).forEach(function(w){var C=x[w];if(mt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!mk(C)){var S=!1,E=w.trim(),k=!1;(a||o)&&s?E.startsWith("@")?S=!0:E==="&"?E=zf("",s,c):E=zf(w,s,c):a&&!s&&(E==="&"||E==="")&&(E="",k=!0);var $=e(C,n,{root:k,injectHash:S,parentSelectors:[].concat(at(i),[E])}),O=ot($,2),D=O[0],P=O[1];h=ve(ve({},h),P),g+="".concat(E).concat(D)}else{let I=function(M,F){var j=M.replace(/[A-Z]/g,function(_){return"-".concat(_.toLowerCase())}),A=F;!WE[M]&&typeof A=="number"&&A!==0&&(A="".concat(A,"px")),M==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(v(F),A=F.getName(s)),g+="".concat(j,":").concat(A,";")};var R,N=(R=C==null?void 0:C.value)!==null&&R!==void 0?R:C;mt(C)==="object"&&C!==null&&C!==void 0&&C[Yv]&&Array.isArray(N)?N.forEach(function(M){I(w,M)}):I(w,N)}})}}),a?l&&(g&&(g="@layer ".concat(l.name," {").concat(g,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
|
|
266
|
+
`))):g="{".concat(g,"}"),[g,h]};function Gv(e,t){return bo("".concat(e.join("%")).concat(t))}function gk(){return null}var vk="style";function lc(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f.useContext(Lo),d=u.autoClear;u.mock;var g=u.defaultCache,h=u.hashPriority,v=u.container,m=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,at(r));var S=oc,E=Ku(vk,C,function(){var P=C.join("|");if(uk(P)){var R=dk(P),N=ot(R,2),I=N[0],M=N[1];if(I)return[I,w,M,{},s,c]}var F=t(),j=pk(F,{hashId:a,hashPriority:h,layer:x?o:void 0,path:r.join("-"),transformers:p,linters:b}),A=ot(j,2),_=A[0],L=A[1],z=dl(_),T=Gv(C,z);return[z,w,T,L,s,c]},function(P,R){var N=ot(P,3),I=N[2];(R||d)&&oc&&Rv(I,{mark:fr,attachTo:v})},function(P){var R=ot(P,4),N=R[0],I=R[2],M=R[3];if(S&&N!==qv){var F={mark:fr,prepend:x?!1:"queue",attachTo:v,priority:c},j=typeof i=="function"?i():i;j&&(F.csp={nonce:j});var A=[],_=[];Object.keys(M).forEach(function(z){z.startsWith("@layer")?A.push(z):_.push(z)}),A.forEach(function(z){Gr(dl(M[z]),"_layer-".concat(z),ve(ve({},F),{},{prepend:!0}))});var L=Gr(N,I,F);L[Ir]=y.instanceId,L.setAttribute(xo,w),_.forEach(function(z){Gr(dl(M[z]),"_effect-".concat(z),F)})}}),k=ot(E,3),$=k[0],O=k[1],D=k[2];return function(P){var R;return!m||S||!g?R=f.createElement(gk,null):R=f.createElement("style",vn({},te(te({},xo,O),fr,D),{dangerouslySetInnerHTML:{__html:$}})),f.createElement(f.Fragment,null,R,P)}}var hk="cssVar",yk=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,o=e.ignore,i=e.token,s=e.scope,l=s===void 0?"":s,c=$n(Lo),u=c.cache.instanceId,d=c.container,g=i._tokenKey,h=[].concat(at(e.path),[n,l,g]),v=Ku(hk,h,function(){var m=t(),p=Bv(m,n,{prefix:r,unitless:a,ignore:o,scope:l}),b=ot(p,2),y=b[0],x=b[1],w=Gv(h,x);return[y,x,w,n]},function(m){var p=ot(m,3),b=p[2];oc&&Rv(b,{mark:fr,attachTo:d})},function(m){var p=ot(m,3),b=p[1],y=p[2];if(b){var x=Gr(b,y,{mark:fr,prepend:"queue",attachTo:d,priority:-999});x[Ir]=u,x.setAttribute(xo,n)}});return v},An=(function(){function e(t,n){On(this,e),te(this,"name",void 0),te(this,"style",void 0),te(this,"_keyframe",!0),this.name=t,this.style=n}return Nn(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})(),Uu=ra({});function bk(e){return Nv(e)||Ov(e)||Lu(e)||Dv()}function dr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Xv(e,t,n,r){if(!t.length)return n;var a=bk(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=at(e):s=ve({},e),r&&n===void 0&&i.length===1?delete s[o][i[0]]:s[o]=Xv(s[o],i,n,r),s}function Jn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!dr(e,t.slice(0,-1))?e:Xv(e,t,n,r)}function xk(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Hf(e){return Array.isArray(e)?[]:{}}var Ck=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function xa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Hf(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),c=dr(a,i),u=Array.isArray(c);if(u||xk(c)){if(!l.has(c)){l.add(c);var d=dr(r,i);u?r=Jn(r,i,[]):(!d||mt(d)!=="object")&&(r=Jn(r,i,Hf(c))),Ck(c).forEach(function(g){o([].concat(at(i),[g]),l)})}}else r=Jn(r,i,c)}o([])}),r}const wk=f.createContext({}),Sk=ra(void 0),_n="${label} is not a valid ${type}",Ns={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_n,method:_n,array:_n,object:_n,number:_n,date:_n,boolean:_n,integer:_n,float:_n,regexp:_n,email:_n,url:_n,hex:_n},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},Ns.Modal);let Oi=[];const Vf=()=>Oi.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ns.Modal);function $k(e){if(e){const t=Object.assign({},e);return Oi.push(t),Vf(),()=>{Oi=Oi.filter(n=>n!==t),Vf()}}Object.assign({},Ns.Modal)}const Jv=ra(void 0),Ek="internalMark",kk=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>$k(t==null?void 0:t.Modal),[t]);const a=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(Jv.Provider,{value:a},n)},Qv={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$o=Object.assign(Object.assign({},Qv),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
337
267
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
338
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Pt=Math.round;function Wl(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Cg=(e,t,r)=>r===0?e:e/100;function Qo(e,t){const r=t||255;return e>r?r:e<0?0:e}class mt{constructor(t){H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let n=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):n("rgb")?this.fromRgbString(o):n("hsl")?this.fromHslString(o):(n("hsv")||n("hsb"))&&this.fromHsvString(o)}else if(t instanceof mt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Qo(t.r),this.g=Qo(t.g),this.b=Qo(t.b),this.a=typeof t.a=="number"?Qo(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Pt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,a=s=>(n[s]-this[s])*o+this[s],i={r:Pt(a("r")),g:Pt(a("g")),b:Pt(a("b")),a:Pt(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=a=>Pt((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Pt(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Pt(this.getSaturation()*100),n=Pt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Qo(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const d=Pt(n*255);this.r=d,this.g=d,this.b=d}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=n-c/2;this.r=Pt((a+f)*255),this.g=Pt((i+f)*255),this.b=Pt((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const a=Pt(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=Pt(n*(1-r)*255),u=Pt(n*(1-r*l)*255),f=Pt(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=Wl(t,Cg);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Wl(t,Cg);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Wl(t,(n,o)=>o.includes("%")?Pt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var $i=2,xg=.16,hM=.05,pM=.05,yM=.15,H0=5,V0=4,bM=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function wg(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-$i*t:Math.round(e.h)+$i*t:n=r?Math.round(e.h)+$i*t:Math.round(e.h)-$i*t,n<0?n+=360:n>=360&&(n-=360),n}function Sg(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-xg*t:t===V0?n=e.s+xg:n=e.s+hM*t,n>1&&(n=1),r&&t===H0&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function Eg(e,t,r){var n;return r?n=e.v+pM*t:n=e.v-yM*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function _a(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new mt(e),o=n.toHsv(),a=H0;a>0;a-=1){var i=new mt({h:wg(o,a,!0),s:Sg(o,a,!0),v:Eg(o,a,!0)});r.push(i)}r.push(n);for(var s=1;s<=V0;s+=1){var l=new mt({h:wg(o,s),s:Sg(o,s),v:Eg(o,s)});r.push(l)}return t.theme==="dark"?bM.map(function(c){var u=c.index,f=c.amount;return new mt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var ql={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},du=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];du.primary=du[5];var mu=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mu.primary=mu[5];var gu=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gu.primary=gu[5];var vu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];vu.primary=vu[5];var hu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];hu.primary=hu[5];var pu=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];pu.primary=pu[5];var yu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];yu.primary=yu[5];var bu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];bu.primary=bu[5];var ls=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ls.primary=ls[5];var Cu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Cu.primary=Cu[5];var xu=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xu.primary=xu[5];var wu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wu.primary=wu[5];var Su=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Su.primary=Su[5];var Ul={red:du,volcano:mu,orange:gu,gold:vu,yellow:hu,lime:pu,green:yu,cyan:bu,blue:ls,geekblue:Cu,purple:xu,magenta:wu,grey:Su};function CM(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),d=t(o),p=t(a),h=t(i),v=r(l,c),g=e.colorLink||e.colorInfo,b=t(g),y=new mt(p[1]).mix(new mt(p[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:y,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new mt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const xM=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function wM(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},xM(n))}const SM=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function EM(e){return(e+8)/e}function $M(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,a=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:EM(r)}))}const OM=e=>{const t=$M(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function PM(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const mr=(e,t)=>new mt(e).setA(t).toRgbString(),Jo=(e,t)=>new mt(e).darken(t).toHexString(),FM=e=>{const t=_a(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},MM=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:mr(n,.88),colorTextSecondary:mr(n,.65),colorTextTertiary:mr(n,.45),colorTextQuaternary:mr(n,.25),colorFill:mr(n,.15),colorFillSecondary:mr(n,.06),colorFillTertiary:mr(n,.04),colorFillQuaternary:mr(n,.02),colorBgSolid:mr(n,1),colorBgSolidHover:mr(n,.75),colorBgSolidActive:mr(n,.95),colorBgLayout:Jo(r,4),colorBgContainer:Jo(r,0),colorBgElevated:Jo(r,0),colorBgSpotlight:mr(n,.85),colorBgBlur:"transparent",colorBorder:Jo(r,15),colorBorderSecondary:Jo(r,6)}};function RM(e){ql.pink=ql.magenta,Ul.pink=Ul.magenta;const t=Object.keys(D0).map(r=>{const n=e[r]===ql[r]?Ul[r]:_a(e[r]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),CM(e,{generateColorPalettes:FM,generateNeutralColorPalettes:MM})),OM(e.fontSize)),PM(e)),SM(e)),wM(e))}const W0=su(RM),Eu={token:Ia,override:{override:Ia},hashed:!0},q0=X.createContext(Eu),$u="ant",Xf="anticon",AM=(e,t)=>t||(e?`${$u}-${e}`:$u),ka=m.createContext({getPrefixCls:AM,iconPrefixCls:Xf}),TM=`-ant-${Date.now()}-${Math.random()}`;function jM(e,t){const r={},n=(a,i)=>{let s=a.clone();return s=(i==null?void 0:i(s))||s,s.toRgbString()},o=(a,i)=>{const s=new mt(a),l=_a(s.toRgbString());r[`${i}-color`]=n(s),r[`${i}-color-disabled`]=l[1],r[`${i}-color-hover`]=l[4],r[`${i}-color-active`]=l[6],r[`${i}-color-outline`]=s.clone().setA(.2).toRgbString(),r[`${i}-color-deprecated-bg`]=l[0],r[`${i}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new mt(t.primaryColor),i=_a(a.toRgbString());i.forEach((l,c)=>{r[`primary-${c+1}`]=l}),r["primary-color-deprecated-l-35"]=n(a,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(a,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(a,l=>l.setA(l.a*.12));const s=new mt(i[0]);r["primary-color-active-deprecated-f-30"]=n(s,l=>l.setA(l.a*.3)),r["primary-color-active-deprecated-d-02"]=n(s,l=>l.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
268
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),ln=Math.round;function fl(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Kf=(e,t,n)=>n===0?e:e/100;function eo(e,t){const n=t||255;return e>n?n:e<0?0:e}class Jt{constructor(t){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let r=function(o){return a.startsWith(o)};const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):r("rgb")?this.fromRgbString(a):r("hsl")?this.fromHslString(a):(r("hsv")||r("hsb"))&&this.fromHsvString(a)}else if(t instanceof Jt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=eo(t.r),this.g=eo(t.g),this.b=eo(t.b),this.a=typeof t.a=="number"?eo(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ln(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=s=>(r[s]-this[s])*a+this[s],i={r:ln(o("r")),g:ln(o("g")),b:ln(o("b")),a:ln(o("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>ln((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ln(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ln(this.getSaturation()*100),r=ln(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=eo(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const g=ln(r*255);this.r=g,this.g=g,this.b=g}let o=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=u):l>=1&&l<2?(o=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=r-c/2;this.r=ln((o+d)*255),this.g=ln((i+d)*255),this.b=ln((s+d)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ln(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=ln(r*(1-n)*255),u=ln(r*(1-n*l)*255),d=ln(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=fl(t,Kf);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=fl(t,Kf);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=fl(t,(r,a)=>a.includes("%")?ln(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var oi=2,Wf=.16,Ik=.05,Ok=.05,Nk=.15,Zv=5,eh=4,Dk=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function qf(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-oi*t:Math.round(e.h)+oi*t:r=n?Math.round(e.h)+oi*t:Math.round(e.h)-oi*t,r<0?r+=360:r>=360&&(r-=360),r}function Uf(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Wf*t:t===eh?r=e.s+Wf:r=e.s+Ik*t,r>1&&(r=1),n&&t===Zv&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Yf(e,t,n){var r;return n?r=e.v+Ok*t:r=e.v-Nk*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Eo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Jt(e),a=r.toHsv(),o=Zv;o>0;o-=1){var i=new Jt({h:qf(a,o,!0),s:Uf(a,o,!0),v:Yf(a,o,!0)});n.push(i)}n.push(r);for(var s=1;s<=eh;s+=1){var l=new Jt({h:qf(a,s),s:Uf(a,s),v:Yf(a,s)});n.push(l)}return t.theme==="dark"?Dk.map(function(c){var u=c.index,d=c.amount;return new Jt(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var ml={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},cc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];cc.primary=cc[5];var uc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];uc.primary=uc[5];var dc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];dc.primary=dc[5];var fc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];fc.primary=fc[5];var mc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];mc.primary=mc[5];var pc=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];pc.primary=pc[5];var gc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gc.primary=gc[5];var vc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];vc.primary=vc[5];var Ui=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ui.primary=Ui[5];var hc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];hc.primary=hc[5];var yc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];yc.primary=yc[5];var bc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];bc.primary=bc[5];var xc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];xc.primary=xc[5];var pl={red:cc,volcano:uc,orange:dc,gold:fc,yellow:mc,lime:pc,green:gc,cyan:vc,blue:Ui,geekblue:hc,purple:yc,magenta:bc,grey:xc};function Mk(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:o,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(r),g=t(a),h=t(o),v=t(i),m=n(l,c),p=e.colorLink||e.colorInfo,b=t(p),y=new Jt(h[1]).mix(new Jt(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:y,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Jt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Fk=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function Pk(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Fk(r))}const jk=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Rk(e){return(e+8)/e}function Ak(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Rk(n)}))}const Tk=e=>{const t=Ak(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function _k(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Wn=(e,t)=>new Jt(e).setA(t).toRgbString(),to=(e,t)=>new Jt(e).darken(t).toHexString(),Bk=e=>{const t=Eo(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Lk=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Wn(r,.88),colorTextSecondary:Wn(r,.65),colorTextTertiary:Wn(r,.45),colorTextQuaternary:Wn(r,.25),colorFill:Wn(r,.15),colorFillSecondary:Wn(r,.06),colorFillTertiary:Wn(r,.04),colorFillQuaternary:Wn(r,.02),colorBgSolid:Wn(r,1),colorBgSolidHover:Wn(r,.75),colorBgSolidActive:Wn(r,.95),colorBgLayout:to(n,4),colorBgContainer:to(n,0),colorBgElevated:to(n,0),colorBgSpotlight:Wn(r,.85),colorBgBlur:"transparent",colorBorder:to(n,15),colorBorderSecondary:to(n,6)}};function zk(e){ml.pink=ml.magenta,pl.pink=pl.magenta;const t=Object.keys(Qv).map(n=>{const r=e[n]===ml[n]?pl[n]:Eo(e[n]);return Array.from({length:10},()=>1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Mk(e,{generateColorPalettes:Bk,generateNeutralColorPalettes:Lk})),Tk(e.fontSize)),_k(e)),jk(e)),Pk(e))}const th=ac(zk),Cc={token:$o,override:{override:$o},hashed:!0},nh=be.createContext(Cc),wc="ant",Ds="anticon",Hk=(e,t)=>t||(e?`${wc}-${e}`:wc),Pr=f.createContext({getPrefixCls:Hk,iconPrefixCls:Ds}),Vk=`-ant-${Date.now()}-${Math.random()}`;function Kk(e,t){const n={},r=(o,i)=>{let s=o.clone();return s=(i==null?void 0:i(s))||s,s.toRgbString()},a=(o,i)=>{const s=new Jt(o),l=Eo(s.toRgbString());n[`${i}-color`]=r(s),n[`${i}-color-disabled`]=l[1],n[`${i}-color-hover`]=l[4],n[`${i}-color-active`]=l[6],n[`${i}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=l[0],n[`${i}-color-deprecated-border`]=l[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new Jt(t.primaryColor),i=Eo(o.toRgbString());i.forEach((l,c)=>{n[`primary-${c+1}`]=l}),n["primary-color-deprecated-l-35"]=r(o,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(o,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(o,l=>l.setA(l.a*.12));const s=new Jt(i[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setA(l.a*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
339
269
|
:root {
|
|
340
|
-
${Object.keys(
|
|
270
|
+
${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(`
|
|
341
271
|
`)}
|
|
342
272
|
}
|
|
343
|
-
`.trim()}function
|
|
273
|
+
`.trim()}function Wk(e,t){const n=Kk(e,t);yr()&&Gr(n,`${Vk}-dynamic-theme`)}const Sc=f.createContext(!1),qk=({children:e,disabled:t})=>{const n=f.useContext(Sc);return f.createElement(Sc.Provider,{value:t??n},e)},ko=f.createContext(void 0),Uk=({children:e,size:t})=>{const n=f.useContext(ko);return f.createElement(ko.Provider,{value:t||n},e)};function Yk(){const e=$n(Sc),t=$n(ko);return{componentDisabled:e,componentSize:t}}var rh=Nn(function e(){On(this,e)}),ah="CALC_UNIT",Gk=new RegExp(ah,"g");function gl(e){return typeof e=="number"?"".concat(e).concat(ah):e}var Xk=(function(e){Ta(n,e);var t=_a(n);function n(r,a){var o;On(this,n),o=t.call(this),te(xt(o),"result",""),te(xt(o),"unitlessCssVar",void 0),te(xt(o),"lowPriority",void 0);var i=mt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=gl(r):i==="string"&&(o.result=r),o}return Nn(n,[{key:"add",value:function(r){return r instanceof n?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(gl(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof n?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(gl(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var a=this,o=r||{},i=o.unit,s=!0;return typeof i=="boolean"?s=i:Array.from(this.unitlessCssVar).some(function(l){return a.result.includes(l)})&&(s=!1),this.result=this.result.replace(Gk,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(rh),Jk=(function(e){Ta(n,e);var t=_a(n);function n(r){var a;return On(this,n),a=t.call(this),te(xt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Nn(n,[{key:"add",value:function(r){return r instanceof n?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof n?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof n?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof n?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),n})(rh),Qk=function(e,t){var n=e==="css"?Xk:Jk;return function(r){return new n(r,t)}},Gf=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Yi(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function $c(e){var t=f.useRef(!1),n=f.useState(e),r=ot(n,2),a=r[0],o=r[1];f.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}var Xf={exports:{}},Ot={};/**
|
|
344
274
|
* @license React
|
|
345
275
|
* react-is.production.min.js
|
|
346
276
|
*
|
|
@@ -348,7 +278,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
348
278
|
*
|
|
349
279
|
* This source code is licensed under the MIT license found in the
|
|
350
280
|
* LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/var Pg;function HM(){if(Pg)return We;Pg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function v(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case o:case n:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case l:case d:case f:case a:return g;default:return b}}case t:return b}}}return We.ContextConsumer=i,We.ContextProvider=a,We.Element=e,We.ForwardRef=l,We.Fragment=r,We.Lazy=d,We.Memo=f,We.Portal=t,We.Profiler=o,We.StrictMode=n,We.Suspense=c,We.SuspenseList=u,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(g){return v(g)===i},We.isContextProvider=function(g){return v(g)===a},We.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},We.isForwardRef=function(g){return v(g)===l},We.isFragment=function(g){return v(g)===r},We.isLazy=function(g){return v(g)===d},We.isMemo=function(g){return v(g)===f},We.isPortal=function(g){return v(g)===t},We.isProfiler=function(g){return v(g)===o},We.isStrictMode=function(g){return v(g)===n},We.isSuspense=function(g){return v(g)===c},We.isSuspenseList=function(g){return v(g)===u},We.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===c||g===u||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===a||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},We.typeOf=v,We}var Fg;function VM(){return Fg||(Fg=1,Og.exports=HM()),Og.exports}var Xl=VM(),WM=Symbol.for("react.element"),qM=Symbol.for("react.transitional.element"),UM=Symbol.for("react.fragment");function X0(e){return e&&$e(e)==="object"&&(e.$$typeof===WM||e.$$typeof===qM)&&e.type===UM}var GM=Number(Cv.split(".")[0]),XM=function(e,t){typeof e=="function"?e(t):$e(e)==="object"&&e&&"current"in e&&(e.current=t)},KM=function(e){var t,r;if(!e)return!1;if(K0(e)&&GM>=19)return!0;var n=Xl.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)&&n.$$typeof!==Xl.ForwardRef||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render)&&e.$$typeof!==Xl.ForwardRef)};function K0(e){return Ju(e)&&!X0(e)}var ZM=function(e){if(e&&K0(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Mg(e,t,r,n){var o=K({},t[e]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(s){var l=Oe(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=K(K({},r),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Z0=typeof CSSINJS_STATISTIC<"u",Mu=!0;function Ds(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Z0)return Object.assign.apply(Object,[{}].concat(t));Mu=!1;var n={};return t.forEach(function(o){if($e(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Mu=!0,n}var Rg={};function YM(){}var QM=function(e){var t,r=e,n=YM;return Z0&&typeof Proxy<"u"&&(t=new Set,r=new Proxy(e,{get:function(o,a){if(Mu){var i;(i=t)===null||i===void 0||i.add(a)}return o[a]}}),n=function(o,a){var i;Rg[o]={global:Array.from(t),component:K(K({},(i=Rg[o])===null||i===void 0?void 0:i.component),a)}}),{token:r,keys:t,flush:n}};function Ag(e,t,r){if(typeof r=="function"){var n;return r(Ds(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function JM(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return"max(".concat(r.map(function(o){return pn(o)}).join(","),")")},min:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return"min(".concat(r.map(function(o){return pn(o)}).join(","),")")}}}var eR=1e3*60*10,tR=(function(){function e(){Bt(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return Dt(e,[{key:"set",value:function(t,r){this.clear();var n=this.getCompositeKey(t);this.map.set(n,r),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var r=this.getCompositeKey(t),n=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var r=this,n=t.map(function(o){return o&&$e(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat($e(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var r=this.nextID;return this.objectIDMap.set(t,r),this.nextID+=1,r}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(n,o){r-n>eR&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Tg=new tR;function rR(e,t){return X.useMemo(function(){var r=Tg.get(t);if(r)return r;var n=e();return Tg.set(t,n),n},t)}var nR=function(){return{}};function oR(e){var t=e.useCSP,r=t===void 0?nR:t,n=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(d,p,h,v){var g=Array.isArray(d)?d[0]:d;function b($){return"".concat(String(g)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(v==null?void 0:v.unitless)||{},C=typeof s=="function"?s(d):{},S=K(K({},C),{},H({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){S[b($)]=y[$]});var x=K(K({},v),{},{unitless:S,prefixToken:b}),E=u(d,p,h,x),w=c(g,h,x);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,P=E($,O),M=Oe(P,2),T=M[1],I=w(O),R=Oe(I,2),j=R[0],F=R[1];return[j,T,F]}}function c(d,p,h){var v=h.unitless,g=h.injectStyle,b=g===void 0?!0:g,y=h.prefixToken,C=h.ignore,S=function(E){var w=E.rootCls,$=E.cssVar,O=$===void 0?{}:$,P=n(),M=P.realToken;return sM({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:C,token:M,scope:w},function(){var T=Ag(d,M,p),I=Mg(d,M,T,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(T).forEach(function(R){I[y(R)]=I[R],delete I[R]}),I}),null},x=function(E){var w=n(),$=w.cssVar;return[function(O){return b&&$?X.createElement(X.Fragment,null,X.createElement(S,{rootCls:E,cssVar:$,component:d}),O):O},$==null?void 0:$.key]};return x}function u(d,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(d)?d:[d,d],b=Oe(g,1),y=b[0],C=g.join("-"),S=e.layer||{name:"antd"};return function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,w=n(),$=w.theme,O=w.realToken,P=w.hashId,M=w.token,T=w.cssVar,I=o(),R=I.rootPrefixCls,j=I.iconPrefixCls,F=r(),A=T?"css":"js",_=rR(function(){var B=new Set;return T&&Object.keys(v.unitless||{}).forEach(function(z){B.add(Hi(z,T.prefix)),B.add(Hi(z,$g(y,T.prefix)))}),DM(A,B)},[A,y,T==null?void 0:T.prefix]),N=JM(A),W=N.max,U=N.min,L={theme:$,token:M,hashId:P,nonce:function(){return F.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof a=="function"&&fu(K(K({},L),{},{clientOnly:!1,path:["Shared",R]}),function(){return a(M,{prefix:{rootPrefixCls:R,iconPrefixCls:j},csp:F})});var V=fu(K(K({},L),{},{path:[C,x,j]}),function(){if(v.injectStyle===!1)return[];var B=QM(M),z=B.token,q=B.flush,Y=Ag(y,O,h),Z=".".concat(x),Q=Mg(y,O,Y,{deprecatedTokens:v.deprecatedTokens});T&&Y&&$e(Y)==="object"&&Object.keys(Y).forEach(function(se){Y[se]="var(".concat(Hi(se,$g(y,T.prefix)),")")});var J=Ds(z,{componentCls:Z,prefixCls:x,iconCls:".".concat(j),antCls:".".concat(R),calc:_,max:W,min:U},T?Y:Q),ne=p(J,{hashId:P,prefixCls:x,rootPrefixCls:R,iconPrefixCls:j});q(y,Q);var ae=typeof i=="function"?i(J,x,E,v.resetFont):null;return[v.resetStyle===!1?null:ae,ne]});return[V,P]}}function f(d,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(d,p,h,K({resetStyle:!1,order:-998},v)),b=function(y){var C=y.prefixCls,S=y.rootCls,x=S===void 0?C:S;return g(C,x),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const aR="5.27.1";function Kl(e){return e>=0&&e<=255}function Oi(e,t){const{r,g:n,b:o,a}=new mt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new mt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-i*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(Kl(u)&&Kl(f)&&Kl(d))return new mt({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new mt({r,g:n,b:o,a:1}).toRgbString()}var iR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Y0(e){const{override:t}=e,r=iR(e,["override"]),n=Object.assign({},t);Object.keys(Ia).forEach(f=>{delete n[f]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Oi(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Oi(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Oi(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Oi(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
281
|
+
*/var Jf;function Zk(){if(Jf)return Ot;Jf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function m(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case n:case a:case r:case c:case u:return p;default:switch(p=p&&p.$$typeof,p){case s:case i:case l:case g:case d:case o:return p;default:return b}}case t:return b}}}return Ot.ContextConsumer=i,Ot.ContextProvider=o,Ot.Element=e,Ot.ForwardRef=l,Ot.Fragment=n,Ot.Lazy=g,Ot.Memo=d,Ot.Portal=t,Ot.Profiler=a,Ot.StrictMode=r,Ot.Suspense=c,Ot.SuspenseList=u,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(p){return m(p)===i},Ot.isContextProvider=function(p){return m(p)===o},Ot.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Ot.isForwardRef=function(p){return m(p)===l},Ot.isFragment=function(p){return m(p)===n},Ot.isLazy=function(p){return m(p)===g},Ot.isMemo=function(p){return m(p)===d},Ot.isPortal=function(p){return m(p)===t},Ot.isProfiler=function(p){return m(p)===a},Ot.isStrictMode=function(p){return m(p)===r},Ot.isSuspense=function(p){return m(p)===c},Ot.isSuspenseList=function(p){return m(p)===u},Ot.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===r||p===c||p===u||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===g||p.$$typeof===d||p.$$typeof===o||p.$$typeof===i||p.$$typeof===l||p.$$typeof===v||p.getModuleId!==void 0)},Ot.typeOf=m,Ot}var Qf;function eI(){return Qf||(Qf=1,Xf.exports=Zk()),Xf.exports}var vl=eI(),tI=Symbol.for("react.element"),nI=Symbol.for("react.transitional.element"),rI=Symbol.for("react.fragment");function oh(e){return e&&mt(e)==="object"&&(e.$$typeof===tI||e.$$typeof===nI)&&e.type===rI}var aI=Number(E0.split(".")[0]),oI=function(e,t){typeof e=="function"?e(t):mt(e)==="object"&&e&&"current"in e&&(e.current=t)},iI=function(e){var t,n;if(!e)return!1;if(ih(e)&&aI>=19)return!0;var r=vl.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==vl.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==vl.ForwardRef)};function ih(e){return I0(e)&&!oh(e)}var sI=function(e){if(e&&ih(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Zf(e,t,n,r){var a=ve({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=ot(s,2),c=l[0],u=l[1];if(a!=null&&a[c]||a!=null&&a[u]){var d;(d=a[u])!==null&&d!==void 0||(a[u]=a==null?void 0:a[c])}})}var i=ve(ve({},n),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var sh=typeof CSSINJS_STATISTIC<"u",Ec=!0;function Ms(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!sh)return Object.assign.apply(Object,[{}].concat(t));Ec=!1;var r={};return t.forEach(function(a){if(mt(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),Ec=!0,r}var em={};function lI(){}var cI=function(e){var t,n=e,r=lI;return sh&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(a,o){if(Ec){var i;(i=t)===null||i===void 0||i.add(o)}return a[o]}}),r=function(a,o){var i;em[a]={global:Array.from(t),component:ve(ve({},(i=em[a])===null||i===void 0?void 0:i.component),o)}}),{token:n,keys:t,flush:r}};function tm(e,t,n){if(typeof n=="function"){var r;return n(Ms(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function uI(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"max(".concat(n.map(function(a){return Or(a)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"min(".concat(n.map(function(a){return Or(a)}).join(","),")")}}}var dI=1e3*60*10,fI=(function(){function e(){On(this,e),te(this,"map",new Map),te(this,"objectIDMap",new WeakMap),te(this,"nextID",0),te(this,"lastAccessBeat",new Map),te(this,"accessBeat",0)}return Nn(e,[{key:"set",value:function(t,n){this.clear();var r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(t){var n=this,r=t.map(function(a){return a&&mt(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(mt(a),"_").concat(a)});return r.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,a){n-r>dI&&(t.map.delete(a),t.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),nm=new fI;function mI(e,t){return be.useMemo(function(){var n=nm.get(t);if(n)return n;var r=e();return nm.set(t,r),r},t)}var pI=function(){return{}};function gI(e){var t=e.useCSP,n=t===void 0?pI:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(g,h,v,m){var p=Array.isArray(g)?g[0]:g;function b(k){return"".concat(String(p)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(m==null?void 0:m.unitless)||{},x=typeof s=="function"?s(g):{},w=ve(ve({},x),{},te({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(k){w[b(k)]=y[k]});var C=ve(ve({},m),{},{unitless:w,prefixToken:b}),S=u(g,h,v,C),E=c(p,v,C);return function(k){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,O=S(k,$),D=ot(O,2),P=D[1],R=E($),N=ot(R,2),I=N[0],M=N[1];return[I,P,M]}}function c(g,h,v){var m=v.unitless,p=v.injectStyle,b=p===void 0?!0:p,y=v.prefixToken,x=v.ignore,w=function(S){var E=S.rootCls,k=S.cssVar,$=k===void 0?{}:k,O=r(),D=O.realToken;return yk({path:[g],prefix:$.prefix,key:$.key,unitless:m,ignore:x,token:D,scope:E},function(){var P=tm(g,D,h),R=Zf(g,D,P,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(P).forEach(function(N){R[y(N)]=R[N],delete R[N]}),R}),null},C=function(S){var E=r(),k=E.cssVar;return[function($){return b&&k?be.createElement(be.Fragment,null,be.createElement(w,{rootCls:S,cssVar:k,component:g}),$):$},k==null?void 0:k.key]};return C}function u(g,h,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(g)?g:[g,g],b=ot(p,1),y=b[0],x=p.join("-"),w=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),k=E.theme,$=E.realToken,O=E.hashId,D=E.token,P=E.cssVar,R=a(),N=R.rootPrefixCls,I=R.iconPrefixCls,M=n(),F=P?"css":"js",j=mI(function(){var H=new Set;return P&&Object.keys(m.unitless||{}).forEach(function(W){H.add($i(W,P.prefix)),H.add($i(W,Gf(y,P.prefix)))}),Qk(F,H)},[F,y,P==null?void 0:P.prefix]),A=uI(F),_=A.max,L=A.min,z={theme:k,token:D,hashId:O,nonce:function(){return M.nonce},clientOnly:m.clientOnly,layer:w,order:m.order||-999};typeof o=="function"&&lc(ve(ve({},z),{},{clientOnly:!1,path:["Shared",N]}),function(){return o(D,{prefix:{rootPrefixCls:N,iconPrefixCls:I},csp:M})});var T=lc(ve(ve({},z),{},{path:[x,C,I]}),function(){if(m.injectStyle===!1)return[];var H=cI(D),W=H.token,K=H.flush,G=tm(y,$,v),U=".".concat(C),Z=Zf(y,$,G,{deprecatedTokens:m.deprecatedTokens});P&&G&&mt(G)==="object"&&Object.keys(G).forEach(function(ce){G[ce]="var(".concat($i(ce,Gf(y,P.prefix)),")")});var Q=Ms(W,{componentCls:U,prefixCls:C,iconCls:".".concat(I),antCls:".".concat(N),calc:j,max:_,min:L},P?G:Z),Y=h(Q,{hashId:O,prefixCls:C,rootPrefixCls:N,iconPrefixCls:I});K(y,Z);var ee=typeof i=="function"?i(Q,C,S,m.resetFont):null;return[m.resetStyle===!1?null:ee,Y]});return[T,O]}}function d(g,h,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=u(g,h,v,ve({resetStyle:!1,order:-998},m)),b=function(y){var x=y.prefixCls,w=y.rootCls,C=w===void 0?x:w;return p(x,C),null};return b}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const vI="5.27.1";function hl(e){return e>=0&&e<=255}function ii(e,t){const{r:n,g:r,b:a,a:o}=new Jt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new Jt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-s*(1-c))/c),g=Math.round((a-l*(1-c))/c);if(hl(u)&&hl(d)&&hl(g))return new Jt({r:u,g:d,b:g,a:Math.round(c*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:a,a:1}).toRgbString()}var hI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function lh(e){const{override:t}=e,n=hI(e,["override"]),r=Object.assign({},t);Object.keys($o).forEach(d=>{delete r[d]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,l=992,c=1200,u=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:ii(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:ii(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:ii(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:ii(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
352
282
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
353
283
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
354
284
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -360,10 +290,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
360
290
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
361
291
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
362
292
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
363
|
-
`,screenXS:
|
|
364
|
-
0 1px 2px -2px ${new
|
|
365
|
-
0 3px 6px 0 ${new
|
|
366
|
-
0 5px 12px 4px ${new
|
|
293
|
+
`,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
294
|
+
0 1px 2px -2px ${new Jt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
295
|
+
0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
296
|
+
0 5px 12px 4px ${new Jt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
367
297
|
`,boxShadowDrawerRight:`
|
|
368
298
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
369
299
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
@@ -380,11 +310,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
380
310
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
381
311
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
382
312
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
383
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),
|
|
313
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var rm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ch={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},yI={motionBase:!0,motionUnit:!0},bI={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},uh=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=rm(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=lh(i),o&&Object.entries(o).forEach(([s,l])=>{const{theme:c}=l,u=rm(l,["theme"]);let d=u;c&&(d=uh(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=d}),i};function Fs(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=be.useContext(nh),o=`${vI}-${t||""}`,i=n||th,[s,l,c]=KE(i,[$o,e],{salt:o,override:r,getComputedToken:uh,formatToken:lh,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:ch,ignore:yI,preserve:bI}});return[i,c,t?l:"",s,a]}const Yu=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),xI=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),CI=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),wI=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},dh=e=>({[`.${e}`]:Object.assign(Object.assign({},xI()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:fh}=gI({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=$n(Pr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Fs();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=$n(Pr);return e??{}},getResetStyles:(e,t)=>{var n;const r=CI(e);return[r,{"&":r},dh((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Ds)]},getCommonStyle:wI,getCompUnitless:()=>ch}),SI=(e,t)=>{const[n,r]=Fs();return lc({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>dh(e))},$I=Object.assign({},f),{useId:am}=$I,EI=()=>"",kI=typeof am>"u"?EI:am;function II(e,t,n){var r;const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Cc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Cc.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=kI();return Av(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(g=>{c[g]=Object.assign(Object.assign({},c[g]),e.components[g])});const u=`css-var-${i.replace(/:/g,"")}`,d=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:c,cssVar:d})},[a,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!nc(c,d,!0)}))}var om={exports:{}};/*!
|
|
384
314
|
Copyright (c) 2018 Jed Watson.
|
|
385
315
|
Licensed under the MIT License (MIT), see
|
|
386
316
|
http://jedwatson.github.io/classnames
|
|
387
|
-
*/var kg;function pR(){return kg||(kg=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(_g)),_g.exports}var yR=pR();const ry=hP(yR);function Ng(e){return e instanceof HTMLElement||e instanceof SVGElement}function bR(e){return e&&$e(e)==="object"&&Ng(e.nativeElement)?e.nativeElement:Ng(e)?e:null}function CR(e){var t=bR(e);if(t)return t;if(e instanceof X.Component){var r;return(r=Zi.findDOMNode)===null||r===void 0?void 0:r.call(Zi,e)}return null}var xR=["children"],ny=m.createContext({});function wR(e){var t=e.children,r=Cn(e,xR);return m.createElement(ny.Provider,{value:r},t)}var SR=(function(e){No(r,e);var t=Lo(r);function r(){return Bt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r})(m.Component);function ER(e){var t=m.useReducer(function(s){return s+1},0),r=Oe(t,2),n=r[1],o=m.useRef(e),a=Pu(function(){return o.current}),i=Pu(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var dn="none",Pi="appear",Fi="enter",Mi="leave",Lg="none",Mr="prepare",go="start",vo="active",Yf="end",oy="prepared";function zg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function $R(e,t){var r={animationend:zg("Animation","AnimationEnd"),transitionend:zg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var OR=$R(Jr(),typeof window<"u"?window:{}),ay={};if(Jr()){var PR=document.createElement("div");ay=PR.style}var Ri={};function iy(e){if(Ri[e])return Ri[e];var t=OR[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in ay)return Ri[e]=t[a],Ri[e]}return""}var sy=iy("animationend"),ly=iy("transitionend"),cy=!!(sy&&ly),Bg=sy||"animationend",Dg=ly||"transitionend";function Hg(e,t){if(!e)return null;if($e(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const FR=(function(e){var t=Ne();function r(o){o&&(o.removeEventListener(Dg,e),o.removeEventListener(Bg,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(Dg,e),o.addEventListener(Bg,e),t.current=o)}return m.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var uy=Jr()?xv:bt,fy=function(e){return+setTimeout(e,16)},dy=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(fy=function(e){return window.requestAnimationFrame(e)},dy=function(e){return window.cancelAnimationFrame(e)});var Vg=0,Qf=new Map;function my(e){Qf.delete(e)}var Ru=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vg+=1;var r=Vg;function n(o){if(o===0)my(r),e();else{var a=fy(function(){n(o-1)});Qf.set(r,a)}}return n(t),r};Ru.cancel=function(e){var t=Qf.get(e);return my(e),dy(t)};const MR=(function(){var e=m.useRef(null);function t(){Ru.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Ru(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return m.useEffect(function(){return function(){t()}},[]),[r,t]});var RR=[Mr,go,vo,Yf],AR=[Mr,oy],gy=!1,TR=!0;function vy(e){return e===vo||e===Yf}const jR=(function(e,t,r){var n=Fu(Lg),o=Oe(n,2),a=o[0],i=o[1],s=MR(),l=Oe(s,2),c=l[0],u=l[1];function f(){i(Mr,!0)}var d=t?AR:RR;return uy(function(){if(a!==Lg&&a!==Yf){var p=d.indexOf(a),h=d[p+1],v=r(a);v===gy?i(h,!0):h&&c(function(g){function b(){g.isCanceled()||i(h,!0)}v===!0?b():Promise.resolve(v).then(b)})}},[e,a]),m.useEffect(function(){return function(){u()}},[]),[f,a]});function IR(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,p=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,g=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,C=n.onEnterActive,S=n.onLeaveActive,x=n.onAppearEnd,E=n.onEnterEnd,w=n.onLeaveEnd,$=n.onVisibleChanged,O=Fu(),P=Oe(O,2),M=P[0],T=P[1],I=ER(dn),R=Oe(I,2),j=R[0],F=R[1],A=Fu(null),_=Oe(A,2),N=_[0],W=_[1],U=j(),L=Ne(!1),V=Ne(null);function B(){return r()}var z=Ne(!1);function q(){F(dn),W(null,!0)}var Y=Pu(function(ue){var ge=j();if(ge!==dn){var de=B();if(!(ue&&!ue.deadline&&ue.target!==de)){var te=z.current,ye;ge===Pi&&te?ye=x==null?void 0:x(de,ue):ge===Fi&&te?ye=E==null?void 0:E(de,ue):ge===Mi&&te&&(ye=w==null?void 0:w(de,ue)),te&&ye!==!1&&q()}}}),Z=FR(Y),Q=Oe(Z,1),J=Q[0],ne=function(ue){switch(ue){case Pi:return H(H(H({},Mr,d),go,v),vo,y);case Fi:return H(H(H({},Mr,p),go,g),vo,C);case Mi:return H(H(H({},Mr,h),go,b),vo,S);default:return{}}},ae=m.useMemo(function(){return ne(U)},[U]),se=jR(U,!e,function(ue){if(ue===Mr){var ge=ae[Mr];return ge?ge(B()):gy}if(re in ae){var de;W(((de=ae[re])===null||de===void 0?void 0:de.call(ae,B(),null))||null)}return re===vo&&U!==dn&&(J(B()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){Y({deadline:!0})},u))),re===oy&&q(),TR}),le=Oe(se,2),ce=le[0],re=le[1],ve=vy(re);z.current=ve;var me=Ne(null);uy(function(){if(!(L.current&&me.current===t)){T(t);var ue=L.current;L.current=!0;var ge;!ue&&t&&s&&(ge=Pi),ue&&t&&a&&(ge=Fi),(ue&&!t&&c||!ue&&f&&!t&&c)&&(ge=Mi);var de=ne(ge);ge&&(e||de[Mr])?(F(ge),ce()):F(dn),me.current=t}},[t]),bt(function(){(U===Pi&&!s||U===Fi&&!a||U===Mi&&!c)&&F(dn)},[s,a,c]),bt(function(){return function(){L.current=!1,clearTimeout(V.current)}},[]);var he=m.useRef(!1);bt(function(){M&&(he.current=!0),M!==void 0&&U===dn&&((he.current||M)&&($==null||$(M)),he.current=!0)},[M,U]);var Le=N;return ae[Mr]&&re===go&&(Le=K({transition:"none"},Le)),[U,re,Le,M??t]}function _R(e){var t=e;$e(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=m.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,d=o.motionName,p=o.leavedClassName,h=o.eventProps,v=m.useContext(ny),g=v.motion,b=r(o,g),y=Ne(),C=Ne();function S(){try{return y.current instanceof HTMLElement?y.current:CR(C.current)}catch{return null}}var x=IR(b,s,S,o),E=Oe(x,4),w=E[0],$=E[1],O=E[2],P=E[3],M=m.useRef(P);P&&(M.current=!0);var T=m.useCallback(function(_){y.current=_,XM(a,_)},[a]),I,R=K(K({},h),{},{visible:s});if(!f)I=null;else if(w===dn)P?I=f(K({},R),T):!c&&M.current&&p?I=f(K(K({},R),{},{className:p}),T):u||!c&&!p?I=f(K(K({},R),{},{style:{display:"none"}}),T):I=null;else{var j;$===Mr?j="prepare":vy($)?j="active":$===go&&(j="start");var F=Hg(d,"".concat(w,"-").concat(j));I=f(K(K({},R),{},{className:ry(Hg(d,w),H(H({},F,F&&j),d,typeof d=="string")),style:O}),T)}if(m.isValidElement(I)&&KM(I)){var A=ZM(I);A||(I=m.cloneElement(I,{ref:T}))}return m.createElement(SR,{ref:C},I)});return n.displayName="CSSMotion",n}const kR=_R(cy);var Au="add",Tu="keep",ju="remove",Zl="removed";function NR(e){var t;return e&&$e(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function Iu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(NR)}function LR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=Iu(e),i=Iu(t);a.forEach(function(c){for(var u=!1,f=n;f<o;f+=1){var d=i[f];if(d.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(p){return K(K({},p),{},{status:Au})})),n=f),r.push(K(K({},d),{},{status:Tu})),n+=1,u=!0;break}}u||r.push(K(K({},c),{},{status:ju}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return K(K({},c),{},{status:Au})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==ju}),r.forEach(function(u){u.key===c&&(u.status=Tu)})}),r}var zR=["component","children","onVisibleChanged","onAllRemoved"],BR=["status"],DR=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function HR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kR,r=(function(n){No(a,n);var o=Lo(a);function a(){var i;Bt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),H(Re(i),"state",{keyEntities:[]}),H(Re(i),"removeKey",function(u){i.setState(function(f){var d=f.keyEntities.map(function(p){return p.key!==u?p:K(K({},p),{},{status:Zl})});return{keyEntities:d}},function(){var f=i.state.keyEntities,d=f.filter(function(p){var h=p.status;return h!==Zl}).length;d===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Dt(a,[{key:"render",value:function(){var i=this,s=this.state.keyEntities,l=this.props,c=l.component,u=l.children,f=l.onVisibleChanged,d=Cn(l,zR),p=c||m.Fragment,h={};return DR.forEach(function(v){h[v]=d[v],delete d[v]}),delete d.keys,m.createElement(p,d,s.map(function(v,g){var b=v.status,y=Cn(v,BR),C=b===Au||b===Tu;return m.createElement(t,Xn({},h,{key:y.key,visible:C,eventProps:y,onVisibleChanged:function(S){f==null||f(S,{key:y.key}),S||i.removeKey(y.key)}}),function(S,x){return u(K(K({},S),{},{index:g}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=i.keys,c=s.keyEntities,u=Iu(l),f=LR(c,u);return{keyEntities:f.filter(function(d){var p=c.find(function(h){var v=h.key;return d.key===v});return!(p&&p.status===Zl&&d.status===ju)})}}}]),a})(m.Component);return H(r,"defaultProps",{component:"div"}),r}HR(cy);const Wg=m.createContext(!0);function VR(e){const t=m.useContext(Wg),{children:r}=e,[,n]=Kf(),{motion:o}=n,a=m.useRef(!1);return a.current||(a.current=t!==o),a.current?m.createElement(Wg.Provider,{value:o},m.createElement(wR,{motion:o},r)):r}const WR=()=>null;var qR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const UR=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let hy;function GR(){return hy||$u}function XR(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const KR=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(hy=t),n&&(XR(n)&&IM(GR(),n))},ZR=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:S,segmented:x,statistic:E,spin:w,calendar:$,carousel:O,cascader:P,collapse:M,typography:T,checkbox:I,descriptions:R,divider:j,drawer:F,skeleton:A,steps:_,image:N,layout:W,list:U,mentions:L,modal:V,progress:B,result:z,slider:q,breadcrumb:Y,menu:Z,pagination:Q,input:J,textArea:ne,empty:ae,badge:se,radio:le,rate:ce,switch:re,transfer:ve,avatar:me,message:he,tag:Le,table:ue,card:ge,tabs:de,timeline:te,timePicker:ye,upload:Ie,notification:st,tree:Ze,colorPicker:Qe,datePicker:$t,rangePicker:Ue,flex:He,wave:Te,dropdown:Ce,warning:Ye,tour:xt,tooltip:ze,popover:lt,popconfirm:Sr,floatButton:$n,floatButtonGroup:en,variant:On,inputNumber:tn,treeSelect:Xt}=e,vt=m.useCallback((we,Fe)=>{const{prefixCls:et}=e;if(Fe)return Fe;const Ge=et||b.getPrefixCls("");return we?`${Ge}-${we}`:Ge},[b.getPrefixCls,e.prefixCls]),Je=y||b.iconPrefixCls||Xf,Ht=r||b.csp;dR(Je,Ht);const ht=hR(C,b.theme,{prefixCls:vt("")}),De={csp:Ht,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||g,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??p,popupOverflow:v,getPrefixCls:vt,iconPrefixCls:Je,theme:ht,segmented:x,statistic:E,spin:w,calendar:$,carousel:O,cascader:P,collapse:M,typography:T,checkbox:I,descriptions:R,divider:j,drawer:F,skeleton:A,steps:_,image:N,input:J,textArea:ne,layout:W,list:U,mentions:L,modal:V,progress:B,result:z,slider:q,breadcrumb:Y,menu:Z,pagination:Q,empty:ae,badge:se,radio:le,rate:ce,switch:re,transfer:ve,avatar:me,message:he,tag:Le,table:ue,card:ge,tabs:de,timeline:te,timePicker:ye,upload:Ie,notification:st,tree:Ze,colorPicker:Qe,datePicker:$t,rangePicker:Ue,flex:He,wave:Te,dropdown:Ce,warning:Ye,tour:xt,tooltip:ze,popover:lt,popconfirm:Sr,floatButton:$n,floatButtonGroup:en,variant:On,inputNumber:tn,treeSelect:Xt},je=Object.assign({},b);Object.keys(De).forEach(we=>{De[we]!==void 0&&(je[we]=De[we])}),UR.forEach(we=>{const Fe=e[we];Fe&&(je[we]=Fe)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const tt=$0(()=>je,je,(we,Fe)=>{const et=Object.keys(we),Ge=Object.keys(Fe);return et.length!==Ge.length||et.some(zt=>we[zt]!==Fe[zt])}),{layer:Kt}=m.useContext(Ua),Tt=m.useMemo(()=>({prefixCls:Je,csp:Ht,layer:Kt?"antd":void 0}),[Je,Ht,Kt]);let Pe=m.createElement(m.Fragment,null,m.createElement(WR,{dropdownMatchSelectWidth:p}),t);const Er=m.useMemo(()=>{var we,Fe,et,Ge;return mo(((we=Bs.Form)===null||we===void 0?void 0:we.defaultValidateMessages)||{},((et=(Fe=tt.locale)===null||Fe===void 0?void 0:Fe.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((Ge=tt.form)===null||Ge===void 0?void 0:Ge.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[tt,i==null?void 0:i.validateMessages]);Object.keys(Er).length>0&&(Pe=m.createElement(dM.Provider,{value:Er},Pe)),s&&(Pe=m.createElement(vM,{locale:s,_ANT_MARK__:gM},Pe)),Pe=m.createElement(Gf.Provider,{value:Tt},Pe),l&&(Pe=m.createElement(kM,{size:l},Pe)),Pe=m.createElement(VR,null,Pe);const $r=m.useMemo(()=>{const we=ht||{},{algorithm:Fe,token:et,components:Ge,cssVar:zt}=we,rn=qR(we,["algorithm","token","components","cssVar"]),Vt=Fe&&(!Array.isArray(Fe)||Fe.length>0)?su(Fe):W0,jt={};Object.entries(Ge||{}).forEach(([Yt,nn])=>{const Be=Object.assign({},nn);"algorithm"in Be&&(Be.algorithm===!0?Be.theme=Vt:(Array.isArray(Be.algorithm)||typeof Be.algorithm=="function")&&(Be.theme=su(Be.algorithm)),delete Be.algorithm),jt[Yt]=Be});const Zt=Object.assign(Object.assign({},Ia),et);return Object.assign(Object.assign({},rn),{theme:Vt,token:Zt,components:jt,override:Object.assign({override:Zt},jt),cssVar:zt})},[ht]);return C&&(Pe=m.createElement(q0.Provider,{value:$r},Pe)),tt.warning&&(Pe=m.createElement(fM.Provider,{value:tt.warning},Pe)),S!==void 0&&(Pe=m.createElement(_M,{disabled:S},Pe)),m.createElement(ka.Provider,{value:tt},Pe)},Ga=e=>{const t=m.useContext(ka),r=m.useContext(B0);return m.createElement(ZR,Object.assign({parentContext:t,legacyLocale:r},e))};Ga.ConfigContext=ka;Ga.SizeContext=Na;Ga.config=KR;Ga.useConfig=NM;Object.defineProperty(Ga,"SizeContext",{get:()=>Na});function py(e,t){this.v=e,this.k=t}function _t(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}_t=function(a,i,s,l){function c(u,f){_t(a,u,function(d){return this._invoke(u,f,d)})}i?o?o(a,i,{value:s,enumerable:!l,configurable:!l,writable:!l}):a[i]=s:(c("next",0),c("throw",1),c("return",2))},_t(e,t,r,n)}function Jf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(p,h,v,g){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return _t(y,"_invoke",(function(C,S,x){var E,w,$,O=0,P=x||[],M=!1,T={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(R,j){return E=R,w=0,$=e,T.n=j,i}};function I(R,j){for(w=R,$=j,t=0;!M&&O&&!F&&t<P.length;t++){var F,A=P[t],_=T.p,N=A[2];R>3?(F=N===j)&&($=A[(w=A[4])?5:(w=3,3)],A[4]=A[5]=e):A[0]<=_&&((F=R<2&&_<A[1])?(w=0,T.v=j,T.n=A[1]):_<N&&(F=R<3||A[0]>j||j>N)&&(A[4]=R,A[5]=j,T.n=N,w=0))}if(F||R>1)return i;throw M=!0,j}return function(R,j,F){if(O>1)throw TypeError("Generator is already running");for(M&&j===1&&I(j,F),w=j,$=F;(t=w<2?e:$)||!M;){E||(w?w<3?(w>1&&(T.n=-1),I(w,$)):T.n=$:T.v=$);try{if(O=2,E){if(w||(R="next"),t=E[R]){if(!(t=t.call(E,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,w<2&&(w=0)}else w===1&&(t=E.return)&&t.call(E),w<2&&($=TypeError("The iterator does not provide a '"+R+"' method"),w=1);E=e}else if((t=(M=T.n<0)?$:C.call(S,T))!==i)break}catch(A){E=e,w=1,$=A}finally{O=1}}return{value:t,done:M}}})(p,v,g),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(_t(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function d(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,_t(p,o,"GeneratorFunction")),p.prototype=Object.create(f),p}return l.prototype=c,_t(f,"constructor",c),_t(c,"constructor",l),l.displayName="GeneratorFunction",_t(c,o,"GeneratorFunction"),_t(f),_t(f,o,"Generator"),_t(f,n,function(){return this}),_t(f,"toString",function(){return"[object Generator]"}),(Jf=function(){return{w:a,m:d}})()}function cs(e,t){function r(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof py?t.resolve(c.v).then(function(u){r("next",u,i,s)},function(u){r("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return r("throw",u,i,s)})}catch(u){s(u)}}var n;this.next||(_t(cs.prototype),_t(cs.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),_t(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){r(o,i,l,c)})}return n=n?n.then(s,s):s()},!0)}function yy(e,t,r,n,o){return new cs(Jf().w(e,t,r,n),o||Promise)}function YR(e,t,r,n,o){var a=yy(e,t,r,n,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function QR(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function qg(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError($e(e)+" is not iterable")}function wr(){var e=Jf(),t=e.m(wr),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,f){return l(c.a,o[u],f)},delegateYield:function(u,f,d){return s.resultName=f,l(c.d,qg(u),d)},finish:function(u){return l(c.f,u)}},l=function(u,f,d){c.p=s.prev,c.n=s.next;try{return u(f,d)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(wr=function(){return{wrap:function(i,s,l,c){return e.w(a(i),s,l,c&&c.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(i,s){return new py(i,s)},AsyncIterator:cs,async:function(i,s,l,c,u){return(n(s)?yy:YR)(a(i),s,l,c,u)},keys:QR,values:qg}})()}function Ug(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Xa(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){Ug(a,n,o,i,s,"next",l)}function s(l){Ug(a,n,o,i,s,"throw",l)}i(void 0)})}}var Hs=K({},wv),JR=Hs.version;Hs.render;Hs.unmountComponentAtNode;var eA;try{var tA=Number((JR||"").split(".")[0]);tA>=18&&(eA=Hs.createRoot)}catch{}function by(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rA(e){return by(e)instanceof ShadowRoot}function nA(e){return rA(e)?by(e):null}function oA(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function aA(e,t){ir(e,"[@ant-design/icons] ".concat(t))}function Gg(e){return $e(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&($e(e.icon)==="object"||typeof e.icon=="function")}function Xg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[oA(r)]=n}return t},{})}function _u(e,t,r){return r?X.createElement(e.tag,K(K({key:t},Xg(e.attrs)),r),(e.children||[]).map(function(n,o){return _u(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):X.createElement(e.tag,K({key:t},Xg(e.attrs)),(e.children||[]).map(function(n,o){return _u(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Cy(e){return _a(e)[0]}function xy(e){return e?Array.isArray(e)?e:[e]:[]}var iA=`
|
|
317
|
+
*/var im;function OI(){return im||(im=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(om)),om.exports}var NI=OI();const tr=iv(NI);function sm(e){return e instanceof HTMLElement||e instanceof SVGElement}function DI(e){return e&&mt(e)==="object"&&sm(e.nativeElement)?e.nativeElement:sm(e)?e:null}function MI(e){var t=DI(e);if(t)return t;if(e instanceof be.Component){var n;return(n=od.findDOMNode)===null||n===void 0?void 0:n.call(od,e)}return null}var FI=["children"],mh=f.createContext({});function PI(e){var t=e.children,n=pr(e,FI);return f.createElement(mh.Provider,{value:n},t)}var jI=(function(e){Ta(n,e);var t=_a(n);function n(){return On(this,n),t.apply(this,arguments)}return Nn(n,[{key:"render",value:function(){return this.props.children}}]),n})(f.Component);function RI(e){var t=f.useReducer(function(s){return s+1},0),n=ot(t,2),r=n[1],a=f.useRef(e),o=Yi(function(){return a.current}),i=Yi(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var Er="none",si="appear",li="enter",ci="leave",lm="none",Qn="prepare",Ca="start",wa="active",Gu="end",ph="prepared";function cm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function AI(e,t){var n={animationend:cm("Animation","AnimationEnd"),transitionend:cm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var TI=AI(yr(),typeof window<"u"?window:{}),gh={};if(yr()){var _I=document.createElement("div");gh=_I.style}var ui={};function vh(e){if(ui[e])return ui[e];var t=TI[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in gh)return ui[e]=t[o],ui[e]}return""}var hh=vh("animationend"),yh=vh("transitionend"),bh=!!(hh&&yh),um=hh||"animationend",dm=yh||"transitionend";function fm(e,t){if(!e)return null;if(mt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const BI=(function(e){var t=wt();function n(a){a&&(a.removeEventListener(dm,e),a.removeEventListener(um,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(dm,e),a.addEventListener(um,e),t.current=a)}return f.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var xh=yr()?k0:ft,Ch=function(e){return+setTimeout(e,16)},wh=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ch=function(e){return window.requestAnimationFrame(e)},wh=function(e){return window.cancelAnimationFrame(e)});var mm=0,Xu=new Map;function Sh(e){Xu.delete(e)}var kc=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;mm+=1;var n=mm;function r(a){if(a===0)Sh(n),e();else{var o=Ch(function(){r(a-1)});Xu.set(n,o)}}return r(t),n};kc.cancel=function(e){var t=Xu.get(e);return Sh(e),wh(t)};const LI=(function(){var e=f.useRef(null);function t(){kc.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=kc(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return f.useEffect(function(){return function(){t()}},[]),[n,t]});var zI=[Qn,Ca,wa,Gu],HI=[Qn,ph],$h=!1,VI=!0;function Eh(e){return e===wa||e===Gu}const KI=(function(e,t,n){var r=$c(lm),a=ot(r,2),o=a[0],i=a[1],s=LI(),l=ot(s,2),c=l[0],u=l[1];function d(){i(Qn,!0)}var g=t?HI:zI;return xh(function(){if(o!==lm&&o!==Gu){var h=g.indexOf(o),v=g[h+1],m=n(o);m===$h?i(v,!0):v&&c(function(p){function b(){p.isCanceled()||i(v,!0)}m===!0?b():Promise.resolve(m).then(b)})}},[e,o]),f.useEffect(function(){return function(){u()}},[]),[d,o]});function WI(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,g=r.onAppearPrepare,h=r.onEnterPrepare,v=r.onLeavePrepare,m=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,$=$c(),O=ot($,2),D=O[0],P=O[1],R=RI(Er),N=ot(R,2),I=N[0],M=N[1],F=$c(null),j=ot(F,2),A=j[0],_=j[1],L=I(),z=wt(!1),T=wt(null);function H(){return n()}var W=wt(!1);function K(){M(Er),_(null,!0)}var G=Yi(function(he){var ke=I();if(ke!==Er){var de=H();if(!(he&&!he.deadline&&he.target!==de)){var Re=W.current,He;ke===si&&Re?He=C==null?void 0:C(de,he):ke===li&&Re?He=S==null?void 0:S(de,he):ke===ci&&Re&&(He=E==null?void 0:E(de,he)),Re&&He!==!1&&K()}}}),U=BI(G),Z=ot(U,1),Q=Z[0],Y=function(he){switch(he){case si:return te(te(te({},Qn,g),Ca,m),wa,y);case li:return te(te(te({},Qn,h),Ca,p),wa,x);case ci:return te(te(te({},Qn,v),Ca,b),wa,w);default:return{}}},ee=f.useMemo(function(){return Y(L)},[L]),ce=KI(L,!e,function(he){if(he===Qn){var ke=ee[Qn];return ke?ke(H()):$h}if(se in ee){var de;_(((de=ee[se])===null||de===void 0?void 0:de.call(ee,H(),null))||null)}return se===wa&&L!==Er&&(Q(H()),u>0&&(clearTimeout(T.current),T.current=setTimeout(function(){G({deadline:!0})},u))),se===ph&&K(),VI}),me=ot(ce,2),we=me[0],se=me[1],ge=Eh(se);W.current=ge;var Ee=wt(null);xh(function(){if(!(z.current&&Ee.current===t)){P(t);var he=z.current;z.current=!0;var ke;!he&&t&&s&&(ke=si),he&&t&&o&&(ke=li),(he&&!t&&c||!he&&d&&!t&&c)&&(ke=ci);var de=Y(ke);ke&&(e||de[Qn])?(M(ke),we()):M(Er),Ee.current=t}},[t]),ft(function(){(L===si&&!s||L===li&&!o||L===ci&&!c)&&M(Er)},[s,o,c]),ft(function(){return function(){z.current=!1,clearTimeout(T.current)}},[]);var Te=f.useRef(!1);ft(function(){D&&(Te.current=!0),D!==void 0&&L===Er&&((Te.current||D)&&(k==null||k(D)),Te.current=!0)},[D,L]);var Pe=A;return ee[Qn]&&se===Ca&&(Pe=ve({transition:"none"},Pe)),[L,se,Pe,D??t]}function qI(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=f.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,d=a.children,g=a.motionName,h=a.leavedClassName,v=a.eventProps,m=f.useContext(mh),p=m.motion,b=n(a,p),y=wt(),x=wt();function w(){try{return y.current instanceof HTMLElement?y.current:MI(x.current)}catch{return null}}var C=WI(b,s,w,a),S=ot(C,4),E=S[0],k=S[1],$=S[2],O=S[3],D=f.useRef(O);O&&(D.current=!0);var P=f.useCallback(function(j){y.current=j,oI(o,j)},[o]),R,N=ve(ve({},v),{},{visible:s});if(!d)R=null;else if(E===Er)O?R=d(ve({},N),P):!c&&D.current&&h?R=d(ve(ve({},N),{},{className:h}),P):u||!c&&!h?R=d(ve(ve({},N),{},{style:{display:"none"}}),P):R=null;else{var I;k===Qn?I="prepare":Eh(k)?I="active":k===Ca&&(I="start");var M=fm(g,"".concat(E,"-").concat(I));R=d(ve(ve({},N),{},{className:tr(fm(g,E),te(te({},M,M&&I),g,typeof g=="string")),style:$}),P)}if(f.isValidElement(R)&&iI(R)){var F=sI(R);F||(R=f.cloneElement(R,{ref:P}))}return f.createElement(jI,{ref:x},R)});return r.displayName="CSSMotion",r}const UI=qI(bh);var Ic="add",Oc="keep",Nc="remove",yl="removed";function YI(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},ve(ve({},t),{},{key:String(t.key)})}function Dc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(YI)}function GI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=Dc(e),i=Dc(t);o.forEach(function(c){for(var u=!1,d=r;d<a;d+=1){var g=i[d];if(g.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(h){return ve(ve({},h),{},{status:Ic})})),r=d),n.push(ve(ve({},g),{},{status:Oc})),r+=1,u=!0;break}}u||n.push(ve(ve({},c),{},{status:Nc}))}),r<a&&(n=n.concat(i.slice(r).map(function(c){return ve(ve({},c),{},{status:Ic})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,g=u.status;return d!==c||g!==Nc}),n.forEach(function(u){u.key===c&&(u.status=Oc)})}),n}var XI=["component","children","onVisibleChanged","onAllRemoved"],JI=["status"],QI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ZI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:UI,n=(function(r){Ta(o,r);var a=_a(o);function o(){var i;On(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a.call.apply(a,[this].concat(l)),te(xt(i),"state",{keyEntities:[]}),te(xt(i),"removeKey",function(u){i.setState(function(d){var g=d.keyEntities.map(function(h){return h.key!==u?h:ve(ve({},h),{},{status:yl})});return{keyEntities:g}},function(){var d=i.state.keyEntities,g=d.filter(function(h){var v=h.status;return v!==yl}).length;g===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Nn(o,[{key:"render",value:function(){var i=this,s=this.state.keyEntities,l=this.props,c=l.component,u=l.children,d=l.onVisibleChanged,g=pr(l,XI),h=c||f.Fragment,v={};return QI.forEach(function(m){v[m]=g[m],delete g[m]}),delete g.keys,f.createElement(h,g,s.map(function(m,p){var b=m.status,y=pr(m,JI),x=b===Ic||b===Oc;return f.createElement(t,vn({},v,{key:y.key,visible:x,eventProps:y,onVisibleChanged:function(w){d==null||d(w,{key:y.key}),w||i.removeKey(y.key)}}),function(w,C){return u(ve(ve({},w),{},{index:p}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=i.keys,c=s.keyEntities,u=Dc(l),d=GI(c,u);return{keyEntities:d.filter(function(g){var h=c.find(function(v){var m=v.key;return g.key===m});return!(h&&h.status===yl&&g.status===Nc)})}}}]),o})(f.Component);return te(n,"defaultProps",{component:"div"}),n}const eO=ZI(bh),pm=f.createContext(!0);function tO(e){const t=f.useContext(pm),{children:n}=e,[,r]=Fs(),{motion:a}=r,o=f.useRef(!1);return o.current||(o.current=t!==a),o.current?f.createElement(pm.Provider,{value:a},f.createElement(PI,{motion:a},n)):n}const nO=()=>null;var rO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ju,kh,Ih,Oh;function Ni(){return Ju||wc}function oO(){return kh||Ds}function iO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const sO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Ju=t),n!==void 0&&(kh=n),"holderRender"in e&&(Oh=a),r&&(iO(r)?Wk(Ni(),r):Ih=r)},lO=()=>({getPrefixCls:(e,t)=>t||(e?`${Ni()}-${e}`:Ni()),getIconPrefixCls:oO,getRootPrefixCls:()=>Ju||Ni(),getTheme:()=>Ih,holderRender:Oh}),cO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:g,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:m,legacyLocale:p,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:S,spin:E,calendar:k,carousel:$,cascader:O,collapse:D,typography:P,checkbox:R,descriptions:N,divider:I,drawer:M,skeleton:F,steps:j,image:A,layout:_,list:L,mentions:z,modal:T,progress:H,result:W,slider:K,breadcrumb:G,menu:U,pagination:Z,input:Q,textArea:Y,empty:ee,badge:ce,radio:me,rate:we,switch:se,transfer:ge,avatar:Ee,message:Te,tag:Pe,table:he,card:ke,tabs:de,timeline:Re,timePicker:He,upload:Ke,notification:tt,tree:qe,colorPicker:We,datePicker:lt,rangePicker:Fe,flex:ae,wave:Le,dropdown:Ce,warning:$e,tour:ue,tooltip:ie,popover:xe,popconfirm:_e,floatButton:ze,floatButtonGroup:st,variant:Ne,inputNumber:Ie,treeSelect:Ue}=e,Ye=f.useCallback((V,ne)=>{const{prefixCls:le}=e;if(ne)return ne;const Se=le||b.getPrefixCls("");return V?`${Se}-${V}`:Se},[b.getPrefixCls,e.prefixCls]),bt=y||b.iconPrefixCls||Ds,At=n||b.csp;SI(bt,At);const Ht=II(x,b.theme,{prefixCls:Ye("")}),Ft={csp:At,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||p,direction:c,space:u,splitter:d,virtual:g,popupMatchSelectWidth:v??h,popupOverflow:m,getPrefixCls:Ye,iconPrefixCls:bt,theme:Ht,segmented:C,statistic:S,spin:E,calendar:k,carousel:$,cascader:O,collapse:D,typography:P,checkbox:R,descriptions:N,divider:I,drawer:M,skeleton:F,steps:j,image:A,input:Q,textArea:Y,layout:_,list:L,mentions:z,modal:T,progress:H,result:W,slider:K,breadcrumb:G,menu:U,pagination:Z,empty:ee,badge:ce,radio:me,rate:we,switch:se,transfer:ge,avatar:Ee,message:Te,tag:Pe,table:he,card:ke,tabs:de,timeline:Re,timePicker:He,upload:Ke,notification:tt,tree:qe,colorPicker:We,datePicker:lt,rangePicker:Fe,flex:ae,wave:Le,dropdown:Ce,warning:$e,tour:ue,tooltip:ie,popover:xe,popconfirm:_e,floatButton:ze,floatButtonGroup:st,variant:Ne,inputNumber:Ie,treeSelect:Ue},Yt=Object.assign({},b);Object.keys(Ft).forEach(V=>{Ft[V]!==void 0&&(Yt[V]=Ft[V])}),aO.forEach(V=>{const ne=e[V];ne&&(Yt[V]=ne)}),typeof r<"u"&&(Yt.button=Object.assign({autoInsertSpace:r},Yt.button));const Tt=Av(()=>Yt,Yt,(V,ne)=>{const le=Object.keys(V),Se=Object.keys(ne);return le.length!==Se.length||le.some(Ae=>V[Ae]!==ne[Ae])}),{layer:tn}=f.useContext(Lo),un=f.useMemo(()=>({prefixCls:bt,csp:At,layer:tn?"antd":void 0}),[bt,At,tn]);let Pt=f.createElement(f.Fragment,null,f.createElement(nO,{dropdownMatchSelectWidth:h}),t);const Tn=f.useMemo(()=>{var V,ne,le,Se;return xa(((V=Ns.Form)===null||V===void 0?void 0:V.defaultValidateMessages)||{},((le=(ne=Tt.locale)===null||ne===void 0?void 0:ne.Form)===null||le===void 0?void 0:le.defaultValidateMessages)||{},((Se=Tt.form)===null||Se===void 0?void 0:Se.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Tt,i==null?void 0:i.validateMessages]);Object.keys(Tn).length>0&&(Pt=f.createElement(Sk.Provider,{value:Tn},Pt)),s&&(Pt=f.createElement(kk,{locale:s,_ANT_MARK__:Ek},Pt)),Pt=f.createElement(Uu.Provider,{value:un},Pt),l&&(Pt=f.createElement(Uk,{size:l},Pt)),Pt=f.createElement(tO,null,Pt);const q=f.useMemo(()=>{const V=Ht||{},{algorithm:ne,token:le,components:Se,cssVar:Ae}=V,ct=rO(V,["algorithm","token","components","cssVar"]),Qe=ne&&(!Array.isArray(ne)||ne.length>0)?ac(ne):th,it={};Object.entries(Se||{}).forEach(([Ve,ht])=>{const Ze=Object.assign({},ht);"algorithm"in Ze&&(Ze.algorithm===!0?Ze.theme=Qe:(Array.isArray(Ze.algorithm)||typeof Ze.algorithm=="function")&&(Ze.theme=ac(Ze.algorithm)),delete Ze.algorithm),it[Ve]=Ze});const gt=Object.assign(Object.assign({},$o),le);return Object.assign(Object.assign({},ct),{theme:Qe,token:gt,components:it,override:Object.assign({override:gt},it),cssVar:Ae})},[Ht]);return x&&(Pt=f.createElement(nh.Provider,{value:q},Pt)),Tt.warning&&(Pt=f.createElement(wk.Provider,{value:Tt.warning},Pt)),w!==void 0&&(Pt=f.createElement(qk,{disabled:w},Pt)),f.createElement(Pr.Provider,{value:Tt},Pt)},La=e=>{const t=f.useContext(Pr),n=f.useContext(Jv);return f.createElement(cO,Object.assign({parentContext:t,legacyLocale:n},e))};La.ConfigContext=Pr;La.SizeContext=ko;La.config=sO;La.useConfig=Yk;Object.defineProperty(La,"SizeContext",{get:()=>ko});function Nh(e,t){this.v=e,this.k=t}function yn(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}yn=function(o,i,s,l){function c(u,d){yn(o,u,function(g){return this._invoke(u,d,g)})}i?a?a(o,i,{value:s,enumerable:!l,configurable:!l,writable:!l}):o[i]=s:(c("next",0),c("throw",1),c("return",2))},yn(e,t,n,r)}function Qu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(h,v,m,p){var b=v&&v.prototype instanceof s?v:s,y=Object.create(b.prototype);return yn(y,"_invoke",(function(x,w,C){var S,E,k,$=0,O=C||[],D=!1,P={p:0,n:0,v:e,a:R,f:R.bind(e,4),d:function(N,I){return S=N,E=0,k=e,P.n=I,i}};function R(N,I){for(E=N,k=I,t=0;!D&&$&&!M&&t<O.length;t++){var M,F=O[t],j=P.p,A=F[2];N>3?(M=A===I)&&(k=F[(E=F[4])?5:(E=3,3)],F[4]=F[5]=e):F[0]<=j&&((M=N<2&&j<F[1])?(E=0,P.v=I,P.n=F[1]):j<A&&(M=N<3||F[0]>I||I>A)&&(F[4]=N,F[5]=I,P.n=A,E=0))}if(M||N>1)return i;throw D=!0,I}return function(N,I,M){if($>1)throw TypeError("Generator is already running");for(D&&I===1&&R(I,M),E=I,k=M;(t=E<2?e:k)||!D;){S||(E?E<3?(E>1&&(P.n=-1),R(E,k)):P.n=k:P.v=k);try{if($=2,S){if(E||(N="next"),t=S[N]){if(!(t=t.call(S,k)))throw TypeError("iterator result is not an object");if(!t.done)return t;k=t.value,E<2&&(E=0)}else E===1&&(t=S.return)&&t.call(S),E<2&&(k=TypeError("The iterator does not provide a '"+N+"' method"),E=1);S=e}else if((t=(D=P.n<0)?k:x.call(w,P))!==i)break}catch(F){S=e,E=1,k=F}finally{$=1}}return{value:t,done:D}}})(h,m,p),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(yn(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function g(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,yn(h,a,"GeneratorFunction")),h.prototype=Object.create(d),h}return l.prototype=c,yn(d,"constructor",c),yn(c,"constructor",l),l.displayName="GeneratorFunction",yn(c,a,"GeneratorFunction"),yn(d),yn(d,a,"Generator"),yn(d,r,function(){return this}),yn(d,"toString",function(){return"[object Generator]"}),(Qu=function(){return{w:o,m:g}})()}function Gi(e,t){function n(a,o,i,s){try{var l=e[a](o),c=l.value;return c instanceof Nh?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(yn(Gi.prototype),yn(Gi.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),yn(this,"_invoke",function(a,o,i){function s(){return new t(function(l,c){n(a,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function Dh(e,t,n,r,a){return new Gi(Qu().w(e,t,n,r),a||Promise)}function uO(e,t,n,r,a){var o=Dh(e,t,n,r,a);return o.next().then(function(i){return i.done?i.value:o.next()})}function dO(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function gm(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(mt(e)+" is not iterable")}function En(){var e=Qu(),t=e.m(En),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,d){return l(c.a,a[u],d)},delegateYield:function(u,d,g){return s.resultName=d,l(c.d,gm(u),g)},finish:function(u){return l(c.f,u)}},l=function(u,d,g){c.p=s.prev,c.n=s.next;try{return u(d,g)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(En=function(){return{wrap:function(i,s,l,c){return e.w(o(i),s,l,c&&c.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(i,s){return new Nh(i,s)},AsyncIterator:Gi,async:function(i,s,l,c,u){return(r(s)?Dh:uO)(o(i),s,l,c,u)},keys:dO,values:gm}})()}function vm(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,a)}function fa(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(l){vm(o,r,a,i,s,"next",l)}function s(l){vm(o,r,a,i,s,"throw",l)}i(void 0)})}}var zo=ve({},N0),fO=zo.version,bl=zo.render,mO=zo.unmountComponentAtNode,Ps;try{var pO=Number((fO||"").split(".")[0]);pO>=18&&(Ps=zo.createRoot)}catch{}function hm(e){var t=zo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var Xi="__rc_react_root__";function gO(e,t){hm(!0);var n=t[Xi]||Ps(t);hm(!1),n.render(e),t[Xi]=n}function vO(e,t){bl==null||bl(e,t)}function hO(e,t){if(Ps){gO(e,t);return}vO(e,t)}function yO(e){return Mc.apply(this,arguments)}function Mc(){return Mc=fa(En().mark(function e(t){return En().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Xi])===null||r===void 0||r.unmount(),delete t[Xi]}));case 1:case"end":return n.stop()}},e)})),Mc.apply(this,arguments)}function bO(e){mO(e)}function xO(e){return Fc.apply(this,arguments)}function Fc(){return Fc=fa(En().mark(function e(t){return En().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ps===void 0){n.next=2;break}return n.abrupt("return",yO(t));case 2:bO(t);case 3:case"end":return n.stop()}},e)})),Fc.apply(this,arguments)}const CO=(e,t)=>(hO(e,t),()=>xO(t));let wO=CO;function SO(e){return wO}var $O={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Mh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function EO(e){return Mh(e)instanceof ShadowRoot}function kO(e){return EO(e)?Mh(e):null}function IO(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function OO(e,t){zn(e,"[@ant-design/icons] ".concat(t))}function ym(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function bm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[IO(n)]=r}return t},{})}function Pc(e,t,n){return n?be.createElement(e.tag,ve(ve({key:t},bm(e.attrs)),n),(e.children||[]).map(function(r,a){return Pc(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):be.createElement(e.tag,ve({key:t},bm(e.attrs)),(e.children||[]).map(function(r,a){return Pc(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Fh(e){return Eo(e)[0]}function Ph(e){return e?Array.isArray(e)?e:[e]:[]}var NO=`
|
|
388
318
|
.anticon {
|
|
389
319
|
display: inline-flex;
|
|
390
320
|
align-items: center;
|
|
@@ -439,21 +369,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
439
369
|
transform: rotate(360deg);
|
|
440
370
|
}
|
|
441
371
|
}
|
|
442
|
-
`,
|
|
443
|
-
`).concat(
|
|
444
|
-
}`)),
|
|
445
|
-
|
|
372
|
+
`,DO=function(e){var t=$n(Uu),n=t.csp,r=t.prefixCls,a=t.layer,o=NO;r&&(o=o.replace(/anticon/g,r)),a&&(o="@layer ".concat(a,` {
|
|
373
|
+
`).concat(o,`
|
|
374
|
+
}`)),ft(function(){var i=e.current,s=kO(i);Gr(o,"@ant-design-icons",{prepend:!a,csp:n,attachTo:s})},[])},MO=["icon","className","onClick","style","primaryColor","secondaryColor"],po={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function FO(e){var t=e.primaryColor,n=e.secondaryColor;po.primaryColor=t,po.secondaryColor=n||Fh(t),po.calculated=!!n}function PO(){return ve({},po)}var za=function(e){var t=e.icon,n=e.className,r=e.onClick,a=e.style,o=e.primaryColor,i=e.secondaryColor,s=pr(e,MO),l=f.useRef(),c=po;if(o&&(c={primaryColor:o,secondaryColor:i||Fh(o)}),DO(l),OO(ym(t),"icon should be icon definiton, but got ".concat(t)),!ym(t))return null;var u=t;return u&&typeof u.icon=="function"&&(u=ve(ve({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Pc(u.icon,"svg-".concat(u.name),ve(ve({className:n,onClick:r,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};za.displayName="IconReact";za.getTwoToneColors=PO;za.setTwoToneColors=FO;function jh(e){var t=Ph(e),n=ot(t,2),r=n[0],a=n[1];return za.setTwoToneColors({primaryColor:r,secondaryColor:a})}function jO(){var e=za.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var RO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jh(Ui.primary);var br=f.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=pr(e,RO),u=f.useContext(Uu),d=u.prefixCls,g=d===void 0?"anticon":d,h=u.rootClassName,v=tr(h,g,te(te({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),m=i;m===void 0&&s&&(m=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,b=Ph(l),y=ot(b,2),x=y[0],w=y[1];return f.createElement("span",vn({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:v}),f.createElement(za,{icon:r,primaryColor:x,secondaryColor:w,style:p}))});br.displayName="AntdIcon";br.getTwoToneColor=jO;br.setTwoToneColor=jh;var AO=function(e,t){return f.createElement(br,vn({},e,{ref:t,icon:$O}))},TO=f.forwardRef(AO),_O={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},BO=function(e,t){return f.createElement(br,vn({},e,{ref:t,icon:_O}))},LO=f.forwardRef(BO),zO={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},HO=function(e,t){return f.createElement(br,vn({},e,{ref:t,icon:zO}))},VO=f.forwardRef(HO),KO={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"},WO=function(e,t){return f.createElement(br,vn({},e,{ref:t,icon:KO}))},qO=f.forwardRef(WO),UO={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},YO=function(e,t){return f.createElement(br,vn({},e,{ref:t,icon:UO}))},GO=f.forwardRef(YO),XO={ENTER:13},JO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
375
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
376
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
377
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
378
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
379
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
380
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
381
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
382
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
383
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
384
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
385
|
+
summary tabIndex target title type useMap value width wmode wrap`,QO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
386
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
387
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
388
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
389
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
390
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
391
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ZO="".concat(JO," ").concat(QO).split(/[\s\n]+/),eN="aria-",tN="data-";function xm(e,t){return e.indexOf(t)===0}function nN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=ve({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||xm(a,eN))||n.data&&xm(a,tN)||n.attr&&ZO.includes(a))&&(r[a]=e[a])}),r}var Rh=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,g=e.closable,h=e.closeIcon,v=h===void 0?"x":h,m=e.props,p=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=f.useState(!1),C=ot(w,2),S=C[0],E=C[1],k=f.useState(0),$=ot(k,2),O=$[0],D=$[1],P=f.useState(0),R=ot(P,2),N=R[0],I=R[1],M=x||S,F=i>0&&s,j=function(){b(u)},A=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===XO.ENTER)&&j()};f.useEffect(function(){if(!M&&i>0){var H=Date.now()-N,W=setTimeout(function(){j()},i*1e3-N);return function(){c&&clearTimeout(W),I(Date.now()-H)}}},[i,M,y]),f.useEffect(function(){if(!M&&F&&(c||N===0)){var H=performance.now(),W,K=function G(){cancelAnimationFrame(W),W=requestAnimationFrame(function(U){var Z=U+N-H,Q=Math.min(Z/(i*1e3),1);D(Q*100),Q<1&&G()})};return K(),function(){c&&cancelAnimationFrame(W)}}},[i,N,M,F,y]);var _=f.useMemo(function(){return mt(g)==="object"&&g!==null?g:g?{closeIcon:v}:{}},[g,v]),L=nN(_,!0),z=100-(!O||O<0?0:O>100?100:O),T="".concat(n,"-notice");return f.createElement("div",vn({},m,{ref:t,className:tr(T,a,te({},"".concat(T,"-closable"),g)),style:r,onMouseEnter:function(H){var W;E(!0),m==null||(W=m.onMouseEnter)===null||W===void 0||W.call(m,H)},onMouseLeave:function(H){var W;E(!1),m==null||(W=m.onMouseLeave)===null||W===void 0||W.call(m,H)},onClick:p}),f.createElement("div",{className:"".concat(T,"-content")},d),g&&f.createElement("a",vn({tabIndex:0,className:"".concat(T,"-close"),onKeyDown:A,"aria-label":"Close"},L,{onClick:function(H){H.preventDefault(),H.stopPropagation(),j()}}),_.closeIcon),F&&f.createElement("progress",{className:"".concat(T,"-progress"),max:"100",value:z},z+"%"))}),Ah=be.createContext({}),rN=function(e){var t=e.children,n=e.classNames;return be.createElement(Ah.Provider,{value:{classNames:n}},t)},Cm=8,wm=3,Sm=16,aN=function(e){var t={offset:Cm,threshold:wm,gap:Sm};if(e&&mt(e)==="object"){var n,r,a;t.offset=(n=e.offset)!==null&&n!==void 0?n:Cm,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:wm,t.gap=(a=e.gap)!==null&&a!==void 0?a:Sm}return[!!e,t]},oN=["className","style","classNames","styles"],iN=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,a=e.className,o=e.style,i=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=e.stack,u=$n(Ah),d=u.classNames,g=wt({}),h=dt(null),v=ot(h,2),m=v[0],p=v[1],b=dt([]),y=ot(b,2),x=y[0],w=y[1],C=t.map(function(I){return{config:I,key:String(I.key)}}),S=aN(c),E=ot(S,2),k=E[0],$=E[1],O=$.offset,D=$.threshold,P=$.gap,R=k&&(x.length>0||C.length<=D),N=typeof i=="function"?i(n):i;return ft(function(){k&&x.length>1&&w(function(I){return I.filter(function(M){return C.some(function(F){var j=F.key;return M===j})})})},[x,C,k]),ft(function(){var I;if(k&&g.current[(I=C[C.length-1])===null||I===void 0?void 0:I.key]){var M;p(g.current[(M=C[C.length-1])===null||M===void 0?void 0:M.key])}},[C,k]),be.createElement(eO,vn({key:n,className:tr(r,"".concat(r,"-").concat(n),d==null?void 0:d.list,a,te(te({},"".concat(r,"-stack"),!!k),"".concat(r,"-stack-expanded"),R)),style:o,keys:C,motionAppear:!0},N,{onAllRemoved:function(){s(n)}}),function(I,M){var F=I.config,j=I.className,A=I.style,_=I.index,L=F,z=L.key,T=L.times,H=String(z),W=F,K=W.className,G=W.style,U=W.classNames,Z=W.styles,Q=pr(W,oN),Y=C.findIndex(function(de){return de.key===H}),ee={};if(k){var ce=C.length-1-(Y>-1?Y:_-1),me=n==="top"||n==="bottom"?"-50%":"0";if(ce>0){var we,se,ge;ee.height=R?(we=g.current[H])===null||we===void 0?void 0:we.offsetHeight:m==null?void 0:m.offsetHeight;for(var Ee=0,Te=0;Te<ce;Te++){var Pe;Ee+=((Pe=g.current[C[C.length-1-Te].key])===null||Pe===void 0?void 0:Pe.offsetHeight)+P}var he=(R?Ee:ce*O)*(n.startsWith("top")?1:-1),ke=!R&&m!==null&&m!==void 0&&m.offsetWidth&&(se=g.current[H])!==null&&se!==void 0&&se.offsetWidth?((m==null?void 0:m.offsetWidth)-O*2*(ce<3?ce:3))/((ge=g.current[H])===null||ge===void 0?void 0:ge.offsetWidth):1;ee.transform="translate3d(".concat(me,", ").concat(he,"px, 0) scaleX(").concat(ke,")")}else ee.transform="translate3d(".concat(me,", 0, 0)")}return be.createElement("div",{ref:M,className:tr("".concat(r,"-notice-wrapper"),j,U==null?void 0:U.wrapper),style:ve(ve(ve({},A),ee),Z==null?void 0:Z.wrapper),onMouseEnter:function(){return w(function(de){return de.includes(H)?de:[].concat(at(de),[H])})},onMouseLeave:function(){return w(function(de){return de.filter(function(Re){return Re!==H})})}},be.createElement(Rh,vn({},Q,{ref:function(de){Y>-1?g.current[H]=de:delete g.current[H]},prefixCls:r,classNames:U,styles:Z,className:tr(K,d==null?void 0:d.notice),style:G,times:T,key:z,eventKey:z,onNoticeClose:l,hovering:k&&x.length>0})))})},sN=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,g=f.useState([]),h=ot(g,2),v=h[0],m=h[1],p=function(k){var $,O=v.find(function(D){return D.key===k});O==null||($=O.onClose)===null||$===void 0||$.call(O),m(function(D){return D.filter(function(P){return P.key!==k})})};f.useImperativeHandle(t,function(){return{open:function(k){m(function($){var O=at($),D=O.findIndex(function(N){return N.key===k.key}),P=ve({},k);if(D>=0){var R;P.times=(((R=$[D])===null||R===void 0?void 0:R.times)||0)+1,O[D]=P}else P.times=0,O.push(P);return i>0&&O.length>i&&(O=O.slice(-i)),O})},close:function(k){p(k)},destroy:function(){m([])}}});var b=f.useState({}),y=ot(b,2),x=y[0],w=y[1];f.useEffect(function(){var k={};v.forEach(function($){var O=$.placement,D=O===void 0?"topRight":O;D&&(k[D]=k[D]||[],k[D].push($))}),Object.keys(x).forEach(function($){k[$]=k[$]||[]}),w(k)},[v]);var C=function(k){w(function($){var O=ve({},$),D=O[k]||[];return D.length||delete O[k],O})},S=f.useRef(!1);if(f.useEffect(function(){Object.keys(x).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[x]),!a)return null;var E=Object.keys(x);return D0(f.createElement(f.Fragment,null,E.map(function(k){var $=x[k],O=f.createElement(iN,{key:k,configList:$,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:o,onNoticeClose:p,onAllNoticeRemoved:C,stack:u});return d?d(O,{prefixCls:r,key:k}):O})),a)}),lN=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],cN=function(){return document.body},$m=0;function uN(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(o){var i=a[o];i!==void 0&&(e[o]=i)})}),e}function dN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?cN:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=pr(e,lN),g=f.useState(),h=ot(g,2),v=h[0],m=h[1],p=f.useRef(),b=f.createElement(sN,{container:v,ref:p,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=f.useState([]),x=ot(y,2),w=x[0],C=x[1],S=Yi(function(k){var $=uN(d,k);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat($m),$m+=1),C(function(O){return[].concat(at(O),[{type:"open",config:$}])})}),E=f.useMemo(function(){return{open:S,close:function(k){C(function($){return[].concat(at($),[{type:"close",key:k}])})},destroy:function(){C(function(k){return[].concat(at(k),[{type:"destroy"}])})}}},[]);return f.useEffect(function(){m(n())}),f.useEffect(function(){if(p.current&&w.length){w.forEach(function(O){switch(O.type){case"open":p.current.open(O.config);break;case"close":p.current.close(O.key);break;case"destroy":p.current.destroy();break}});var k,$;C(function(O){return(k!==O||!$)&&(k=O,$=O.filter(function(D){return!w.includes(D)})),$})}},[w]),[E,b]}const Th=e=>{const[,,,,t]=Fs();return t?`${e}-css-var`:""},fN=100,mN=10,pN=fN*mN,gN=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:g,paddingXS:h,borderRadiusLG:v,zIndexPopup:m,contentPadding:p,contentBg:b}=e,y=`${t}-notice`,x=new An("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),w=new An("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:g,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:p,background:b,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
392
|
+
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Yu(e)),{color:a,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
446
393
|
${t}-move-up-appear,
|
|
447
394
|
${t}-move-up-enter
|
|
448
|
-
`]:{animationName:
|
|
395
|
+
`]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
449
396
|
${t}-move-up-appear${t}-move-up-appear-active,
|
|
450
397
|
${t}-move-up-enter${t}-move-up-enter-active
|
|
451
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},pA=e=>({zIndexPopup:e.zIndexPopupBase+vA+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});ty("Message",e=>{const t=Ds(e,{height:150});return hA(t)},pA);var Kg=256;for(;Kg--;)(Kg+256).toString(16).substring(1);Yr({badgeCounts:{},updateBadgeCount:()=>{}});function Sy(e,t){return function(){return e.apply(t,arguments)}}const{toString:yA}=Object.prototype,{getPrototypeOf:td}=Object,{iterator:Vs,toStringTag:Ey}=Symbol,Ws=(e=>t=>{const r=yA.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ir=e=>(e=e.toLowerCase(),t=>Ws(t)===e),qs=e=>t=>typeof t===e,{isArray:Do}=Array,La=qs("undefined");function Ka(e){return e!==null&&!La(e)&&e.constructor!==null&&!La(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $y=Ir("ArrayBuffer");function bA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$y(e.buffer),t}const CA=qs("string"),Wt=qs("function"),Oy=qs("number"),Za=e=>e!==null&&typeof e=="object",xA=e=>e===!0||e===!1,Gi=e=>{if(Ws(e)!=="object")return!1;const t=td(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ey in e)&&!(Vs in e)},wA=e=>{if(!Za(e)||Ka(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},SA=Ir("Date"),EA=Ir("File"),$A=Ir("Blob"),OA=Ir("FileList"),PA=e=>Za(e)&&Wt(e.pipe),FA=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wt(e.append)&&((t=Ws(e))==="formdata"||t==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},MA=Ir("URLSearchParams"),[RA,AA,TA,jA]=["ReadableStream","Request","Response","Headers"].map(Ir),IA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ya(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Do(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Ka(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(n=0;n<i;n++)s=a[n],t.call(null,e[s],s,e)}}function Py(e,t){if(Ka(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fy=e=>!La(e)&&e!==Ln;function ku(){const{caseless:e}=Fy(this)&&this||{},t={},r=(n,o)=>{const a=e&&Py(t,o)||o;Gi(t[a])&&Gi(n)?t[a]=ku(t[a],n):Gi(n)?t[a]=ku({},n):Do(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ya(arguments[n],r);return t}const _A=(e,t,r,{allOwnKeys:n}={})=>(Ya(t,(o,a)=>{r&&Wt(o)?e[a]=Sy(o,r):e[a]=o},{allOwnKeys:n}),e),kA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NA=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},LA=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&td(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},zA=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},BA=e=>{if(!e)return null;if(Do(e))return e;let t=e.length;if(!Oy(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},DA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&td(Uint8Array)),HA=(e,t)=>{const r=(e&&e[Vs]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},VA=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},WA=Ir("HTMLFormElement"),qA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Zg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),UA=Ir("RegExp"),My=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ya(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},GA=e=>{My(e,(t,r)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Wt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},XA=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Do(e)?n(e):n(String(e).split(t)),r},KA=()=>{},ZA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function YA(e){return!!(e&&Wt(e.append)&&e[Ey]==="FormData"&&e[Vs])}const QA=e=>{const t=new Array(10),r=(n,o)=>{if(Za(n)){if(t.indexOf(n)>=0)return;if(Ka(n))return n;if(!("toJSON"in n)){t[o]=n;const a=Do(n)?[]:{};return Ya(n,(i,s)=>{const l=r(i,o+1);!La(l)&&(a[s]=l)}),t[o]=void 0,a}}return n};return r(e,0)},JA=Ir("AsyncFunction"),eT=e=>e&&(Za(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),Ry=((e,t)=>e?setImmediate:t?((r,n)=>(Ln.addEventListener("message",({source:o,data:a})=>{o===Ln&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ln.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Wt(Ln.postMessage)),tT=typeof queueMicrotask<"u"?queueMicrotask.bind(Ln):typeof process<"u"&&process.nextTick||Ry,rT=e=>e!=null&&Wt(e[Vs]),G={isArray:Do,isArrayBuffer:$y,isBuffer:Ka,isFormData:FA,isArrayBufferView:bA,isString:CA,isNumber:Oy,isBoolean:xA,isObject:Za,isPlainObject:Gi,isEmptyObject:wA,isReadableStream:RA,isRequest:AA,isResponse:TA,isHeaders:jA,isUndefined:La,isDate:SA,isFile:EA,isBlob:$A,isRegExp:UA,isFunction:Wt,isStream:PA,isURLSearchParams:MA,isTypedArray:DA,isFileList:OA,forEach:Ya,merge:ku,extend:_A,trim:IA,stripBOM:kA,inherits:NA,toFlatObject:LA,kindOf:Ws,kindOfTest:Ir,endsWith:zA,toArray:BA,forEachEntry:HA,matchAll:VA,isHTMLForm:WA,hasOwnProperty:Zg,hasOwnProp:Zg,reduceDescriptors:My,freezeMethods:GA,toObjectSet:XA,toCamelCase:qA,noop:KA,toFiniteNumber:ZA,findKey:Py,global:Ln,isContextDefined:Fy,isSpecCompliantForm:YA,toJSONObject:QA,isAsyncFn:JA,isThenable:eT,setImmediate:Ry,asap:tT,isIterable:rT};function Ee(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Ay=Ee.prototype,Ty={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ty[e]={value:e}});Object.defineProperties(Ee,Ty);Object.defineProperty(Ay,"isAxiosError",{value:!0});Ee.from=(e,t,r,n,o,a)=>{const i=Object.create(Ay);return G.toFlatObject(e,i,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Ee.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const nT=null;function Nu(e){return G.isPlainObject(e)||G.isArray(e)}function jy(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Yg(e,t,r){return e?e.concat(t).map(function(n,o){return n=jy(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function oT(e){return G.isArray(e)&&!e.some(Nu)}const aT=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function Us(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,h){return!G.isUndefined(h[p])});const n=r.metaTokens,o=r.visitor||c,a=r.dots,i=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(G.isDate(p))return p.toISOString();if(G.isBoolean(p))return p.toString();if(!s&&G.isBlob(p))throw new Ee("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(p)||G.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,h,v){let g=p;if(p&&!v&&typeof p=="object"){if(G.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(G.isArray(p)&&oT(p)||(G.isFileList(p)||G.endsWith(h,"[]"))&&(g=G.toArray(p)))return h=jy(h),g.forEach(function(b,y){!(G.isUndefined(b)||b===null)&&t.append(i===!0?Yg([h],y,a):i===null?h:h+"[]",l(b))}),!1}return Nu(p)?!0:(t.append(Yg(v,h,a),l(p)),!1)}const u=[],f=Object.assign(aT,{defaultVisitor:c,convertValue:l,isVisitable:Nu});function d(p,h){if(!G.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(p),G.forEach(p,function(v,g){(!(G.isUndefined(v)||v===null)&&o.call(t,v,G.isString(g)?g.trim():g,h,f))===!0&&d(v,h?h.concat(g):[g])}),u.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Qg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rd(e,t){this._pairs=[],e&&Us(e,this,t)}const Iy=rd.prototype;Iy.append=function(e,t){this._pairs.push([e,t])};Iy.toString=function(e){const t=e?function(r){return e.call(this,r,Qg)}:Qg;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function iT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _y(e,t,r){if(!t)return e;const n=r&&r.encode||iT;G.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(t,r):a=G.isURLSearchParams(t)?t.toString():new rd(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Jg{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ky={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sT=typeof URLSearchParams<"u"?URLSearchParams:rd,lT=typeof FormData<"u"?FormData:null,cT=typeof Blob<"u"?Blob:null,uT={isBrowser:!0,classes:{URLSearchParams:sT,FormData:lT,Blob:cT},protocols:["http","https","file","blob","url","data"]},nd=typeof window<"u"&&typeof document<"u",Lu=typeof navigator=="object"&&navigator||void 0,fT=nd&&(!Lu||["ReactNative","NativeScript","NS"].indexOf(Lu.product)<0),dT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mT=nd&&window.location.href||"http://localhost",gT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nd,hasStandardBrowserEnv:fT,hasStandardBrowserWebWorkerEnv:dT,navigator:Lu,origin:mT},Symbol.toStringTag,{value:"Module"})),Nt={...gT,...uT};function vT(e,t){return Us(e,new Nt.classes.URLSearchParams,{visitor:function(r,n,o,a){return Nt.isNode&&G.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function hT(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pT(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function Ny(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=a>=r.length;return i=!i&&G.isArray(o)?o.length:i,l?(G.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!G.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&G.isArray(o[i])&&(o[i]=pT(o[i])),!s)}if(G.isFormData(e)&&G.isFunction(e.entries)){const r={};return G.forEachEntry(e,(n,o)=>{t(hT(n),o,r,0)}),r}return null}function yT(e,t,r){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Qa={transitional:ky,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return n?JSON.stringify(Ny(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vT(e,this.formSerializer).toString();if((a=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return Us(a?{"files[]":e}:e,i&&new i,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),yT(e)):e}],transformResponse:[function(e){const t=this.transitional||Qa.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||n)){const o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Ee.from(a,Ee.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Qa.headers[e]={}});const bT=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CT=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
452
|
-
`).forEach(function(
|
|
453
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const r=(this[ev]=this[ev]={accessors:{}}).accessors,n=this.prototype;function o(a){const i=ea(a);r[i]||(ET(n,a),r[i]=!0)}return G.isArray(t)?t.forEach(o):o(t),this}}qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(qt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});G.freezeMethods(qt);function Ql(e,t){const r=this||Qa,n=t||r,o=qt.from(n.headers);let a=n.data;return G.forEach(e,function(i){a=i.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ly(e){return!!(e&&e.__CANCEL__)}function Ho(e,t,r){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,r),this.name="CanceledError"}G.inherits(Ho,Ee,{__CANCEL__:!0});function zy(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $T(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OT(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),c=n[a];i||(i=l),r[o]=s,n[o]=l;let u=a,f=0;for(;u!==o;)f+=r[u++],u=u%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(f*1e3/d):void 0}}function PT(e,t){let r=0,n=1e3/t,o,a;const i=(s,l=Date.now())=>{r=l,o=null,a&&(clearTimeout(a),a=null),e(...s)};return[(...s)=>{const l=Date.now(),c=l-r;c>=n?i(s,l):(o=s,a||(a=setTimeout(()=>{a=null,i(o)},n-c)))},()=>o&&i(o)]}const us=(e,t,r=3)=>{let n=0;const o=OT(50,250);return PT(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-n,c=o(l),u=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},tv=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},rv=e=>(...t)=>G.asap(()=>e(...t)),FT=Nt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Nt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Nt.origin),Nt.navigator&&/(msie|trident)/i.test(Nt.navigator.userAgent)):()=>!0,MT=Nt.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];G.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),G.isString(n)&&i.push("path="+n),G.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function RT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function AT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function By(e,t,r){let n=!RT(t);return e&&(n||r==!1)?AT(e,t):t}const nv=e=>e instanceof qt?{...e}:e;function Kn(e,t){t=t||{};const r={};function n(c,u,f,d){return G.isPlainObject(c)&&G.isPlainObject(u)?G.merge.call({caseless:d},c,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function o(c,u,f,d){if(G.isUndefined(u)){if(!G.isUndefined(c))return n(void 0,c,f,d)}else return n(c,u,f,d)}function a(c,u){if(!G.isUndefined(u))return n(void 0,u)}function i(c,u){if(G.isUndefined(u)){if(!G.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,f){if(f in t)return n(c,u);if(f in e)return n(void 0,c)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,u,f)=>o(nv(c),nv(u),f,!0)};return G.forEach(Object.keys({...e,...t}),function(c){const u=l[c]||o,f=u(e[c],t[c],c);G.isUndefined(f)&&u!==s||(r[c]=f)}),r}const Dy=e=>{const t=Kn({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;t.headers=i=qt.from(i),t.url=_y(By(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(G.isFormData(r)){if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Nt.hasStandardBrowserEnv&&(n&&G.isFunction(n)&&(n=n(t)),n||n!==!1&&FT(t.url))){const c=o&&a&&MT.read(a);c&&i.set(o,c)}return t},TT=typeof XMLHttpRequest<"u",jT=TT&&function(e){return new Promise(function(t,r){const n=Dy(e);let o=n.data;const a=qt.from(n.headers).normalize();let{responseType:i,onUploadProgress:s,onDownloadProgress:l}=n,c,u,f,d,p;function h(){d&&d(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(n.method.toUpperCase(),n.url,!0),v.timeout=n.timeout;function g(){if(!v)return;const y=qt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),C={data:!i||i==="text"||i==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};zy(function(S){t(S),h()},function(S){r(S),h()},C),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const C=n.transitional||ky;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new Ee(y,C.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&G.forEach(a.toJSON(),function(y,C){v.setRequestHeader(C,y)}),G.isUndefined(n.withCredentials)||(v.withCredentials=!!n.withCredentials),i&&i!=="json"&&(v.responseType=n.responseType),l&&([f,p]=us(l,!0),v.addEventListener("progress",f)),s&&v.upload&&([u,d]=us(s),v.upload.addEventListener("progress",u),v.upload.addEventListener("loadend",d)),(n.cancelToken||n.signal)&&(c=y=>{v&&(r(!y||y.type?new Ho(null,e,v):y),v.abort(),v=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const b=$T(n.url);if(b&&Nt.protocols.indexOf(b)===-1){r(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e));return}v.send(o||null)})},IT=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const a=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Ee?u:new Ho(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>G.asap(s),l}},_T=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},kT=async function*(e,t){for await(const r of NT(e))yield*_T(r,t)},NT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},ov=(e,t,r,n)=>{const o=kT(e,t);let a=0,i,s=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(r){let d=a+=f;r(d)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Gs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hy=Gs&&typeof ReadableStream=="function",LT=Gs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zT=Hy&&Vy(()=>{let e=!1;const t=new Request(Nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),av=64*1024,zu=Hy&&Vy(()=>G.isReadableStream(new Response("").body)),fs={stream:zu&&(e=>e.body)};Gs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fs[t]&&(fs[t]=G.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Ee(`Response type '${t}' is not supported`,Ee.ERR_NOT_SUPPORT,n)})})})(new Response);const BT=async e=>{if(e==null)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e))return(await new Request(Nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(G.isArrayBufferView(e)||G.isArrayBuffer(e))return e.byteLength;if(G.isURLSearchParams(e)&&(e=e+""),G.isString(e))return(await LT(e)).byteLength},DT=async(e,t)=>G.toFiniteNumber(e.getContentLength())??BT(t),HT=Gs&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Dy(e);c=c?(c+"").toLowerCase():"text";let p=IT([o,a&&a.toAbortSignal()],i),h;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&zT&&r!=="get"&&r!=="head"&&(g=await DT(u,n))!==0){let x=new Request(t,{method:"POST",body:n,duplex:"half"}),E;if(G.isFormData(n)&&(E=x.headers.get("content-type"))&&u.setContentType(E),x.body){const[w,$]=tv(g,us(rv(l)));n=ov(x.body,av,w,$)}}G.isString(f)||(f=f?"include":"omit");const b="credentials"in Request.prototype;h=new Request(t,{...d,signal:p,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:b?f:void 0});let y=await fetch(h,d);const C=zu&&(c==="stream"||c==="response");if(zu&&(s||C&&v)){const x={};["status","statusText","headers"].forEach(O=>{x[O]=y[O]});const E=G.toFiniteNumber(y.headers.get("content-length")),[w,$]=s&&tv(E,us(rv(s),!0))||[];y=new Response(ov(y.body,av,w,()=>{$&&$(),v&&v()}),x)}c=c||"text";let S=await fs[G.findKey(fs,c)||"text"](y,e);return!C&&v&&v(),await new Promise((x,E)=>{zy(x,E,{data:S,headers:qt.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(b){throw v&&v(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:b.cause||b}):Ee.from(b,b&&b.code,e,h)}}),Bu={http:nT,xhr:jT,fetch:HT};G.forEach(Bu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const iv=e=>`- ${e}`,VT=e=>G.isFunction(e)||e===null||e===!1,Wy={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!VT(r)&&(n=Bu[(i=String(r)).toLowerCase()],n===void 0))throw new Ee(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
|
454
|
-
`+
|
|
455
|
-
`):" "+
|
|
456
|
-
`+
|
|
398
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},vN=e=>({zIndexPopup:e.zIndexPopupBase+pN+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),_h=fh("Message",e=>{const t=Ms(e,{height:150});return gN(t)},vN);var hN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yN={info:f.createElement(qO,null),success:f.createElement(TO,null),error:f.createElement(LO,null),warning:f.createElement(VO,null),loading:f.createElement(GO,null)},Bh=({prefixCls:e,type:t,icon:n,children:r})=>f.createElement("div",{className:tr(`${e}-custom-content`,`${e}-${t}`)},n||yN[t],f.createElement("span",null,r)),bN=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=hN(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=f.useContext(Pr),l=t||s("message"),c=Th(l),[u,d,g]=_h(l,c);return u(f.createElement(Rh,Object.assign({},i,{prefixCls:l,className:tr(n,d,`${l}-notice-pure-panel`,g,c),eventKey:"pure",duration:null,content:f.createElement(Bh,{prefixCls:l,type:r,icon:a},o)})))};var xN={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},CN=function(e,t){return f.createElement(br,vn({},e,{ref:t,icon:xN}))},wN=f.forwardRef(CN);function SN(e,t){return{motionName:t??`${e}-move-up`}}function Zu(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var $N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const EN=8,kN=3,IN=({children:e,prefixCls:t})=>{const n=Th(t),[r,a,o]=_h(t,n);return r(f.createElement(rN,{classNames:{list:tr(a,o,n)}},e))},ON=(e,{prefixCls:t,key:n})=>f.createElement(IN,{prefixCls:t,key:n},e),NN=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=kN,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:g,direction:h}=f.useContext(Pr),v=r||u("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??EN}),p=()=>tr({[`${v}-rtl`]:s??h==="rtl"}),b=()=>SN(v,l),y=f.createElement("span",{className:`${v}-close-x`},f.createElement(wN,{className:`${v}-close-icon`})),[x,w]=dN({prefixCls:v,style:m,className:p,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(a==null?void 0:a())||(d==null?void 0:d())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:ON});return f.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:v,message:g})),w});let Em=0;function Lh(e){const t=f.useRef(null);return[f.useMemo(()=>{const n=o=>{var i;(i=t.current)===null||i===void 0||i.close(o)},r=o=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:i,prefixCls:s,message:l}=t.current,c=`${s}-notice`,{content:u,icon:d,type:g,key:h,className:v,style:m,onClose:p}=o,b=$N(o,["content","icon","type","key","className","style","onClose"]);let y=h;return y==null&&(Em+=1,y=`antd-message-${Em}`),Zu(x=>(i(Object.assign(Object.assign({},b),{key:y,content:f.createElement(Bh,{prefixCls:s,type:g,icon:d},u),placement:"top",className:tr(g&&`${c}-${g}`,v,l==null?void 0:l.className),style:Object.assign(Object.assign({},l==null?void 0:l.style),m),onClose:()=>{p==null||p(),x()}})),()=>{n(y)}))},a={open:r,destroy:o=>{var i;o!==void 0?n(o):(i=t.current)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(o=>{const i=(s,l,c)=>{let u;s&&typeof s=="object"&&"content"in s?u=s:u={content:s};let d,g;typeof l=="function"?g=l:(d=l,g=c);const h=Object.assign(Object.assign({onClose:g,duration:d},u),{type:o});return r(h)};a[o]=i}),a},[]),f.createElement(NN,Object.assign({key:"message-holder"},e,{ref:t}))]}function DN(e){return Lh(e)}let Un=null,Kr=e=>e(),Io=[],Oo={};function km(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Oo,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const MN=be.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=$n(Pr),o=Oo.prefixCls||a("message"),i=$n(iE),[s,l]=Lh(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return be.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...d)=>(r(),s[u].apply(s,d))}),{instance:c,sync:r}}),l}),FN=be.forwardRef((e,t)=>{const[n,r]=be.useState(km),a=()=>{r(km)};be.useEffect(a,[]);const o=lO(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=be.createElement(MN,{ref:t,sync:a,messageConfig:n});return be.createElement(La,{prefixCls:i,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)}),js=()=>{if(!Un){const e=document.createDocumentFragment(),t={fragment:e};Un=t,Kr(()=>{SO()(be.createElement(FN,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,js())})}}),e)});return}Un.instance&&(Io.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Kr(()=>{const r=Un.instance.open(Object.assign(Object.assign({},Oo),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Kr(()=>{Un==null||Un.instance.destroy(e.key)});break;default:Kr(()=>{var r;const a=(r=Un.instance)[t].apply(r,at(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Io=[])};function PN(e){Oo=Object.assign(Object.assign({},Oo),e),Kr(()=>{var t;(t=Un==null?void 0:Un.sync)===null||t===void 0||t.call(Un)})}function jN(e){const t=Zu(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Io.push(a),()=>{r?Kr(()=>{r()}):a.skipped=!0}});return js(),t}function RN(e,t){const n=Zu(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return Io.push(o),()=>{a?Kr(()=>{a()}):o.skipped=!0}});return js(),n}const AN=e=>{Io.push({type:"destroy",key:e}),js()},TN=["success","info","warning","error","loading"],_N={open:jN,destroy:AN,config:PN,useMessage:DN,_InternalPanelDoNotUseOrYouWillBeFired:bN},Di=_N;TN.forEach(e=>{Di[e]=(...t)=>RN(e,t)});var Wr=256,zh=[],Im=256,di;for(;Wr--;)zh[Wr]=(Wr+256).toString(16).substring(1);function BN(e){var t=0,n=e;if(!di||Wr+n>Im*2)for(di="",Wr=0;t<Im;t++)di+=zh[Math.random()*256|0];return di.substring(Wr,Wr+++n)}const LN=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new op(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{Di.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",a=>{Di.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(a){r.destroy(),Di.error("\u590D\u5236\u5931\u8D25: "+a,2)}};function $r(e){return X.jsxs("span",{className:"flex items-center gap-1",children:[X.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&X.jsx(Ro,{title:e.description,className:" cursor-help",children:X.jsx(c$,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&X.jsx(Fp,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function zN(e=[],t,n={}){const[r,a]=be.useState(()=>{const c={};return e.forEach(u=>{u.type==="switch"&&(c[u.name]=n[u.name]??u.defaultValue??!1)}),c}),o=be.useRef(),i=(c,u,d)=>{a(g=>({...g,[c]:u})),o.current&&d&&(u||d.forEach(g=>{o.current.setFieldsValue({[g]:void 0})}))},s=new Set;e.forEach(c=>{c.type==="switch"&&c.controlledItems&&r[c.name]===!1&&c.controlledItems.forEach(u=>s.add(u))});const l=e.map(c=>{var u,d,g,h,v,m;return s.has(c.name)?null:c.type==="divider"?X.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?X.jsx(Xt.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:X.jsx(Qr,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?X.jsx(Xt.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:X.jsx(vy,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?X.jsx(Xt.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:X.jsx(zl,{addonAfter:c.unit?X.jsx("span",{className:"text-[10px] text-gray-300",children:c.unit}):null,min:(u=c.range)==null?void 0:u.min,max:(d=c.range)==null?void 0:d.max,step:c.step,placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="slider"?X.jsxs("div",{className:"mb-6",children:[X.jsxs("div",{className:"flex items-center justify-between mb-3",children:[X.jsx("div",{className:"flex items-center text-sm",children:$r(c)}),X.jsx(Xt.Item,{name:c.name,noStyle:!0,children:X.jsx(zl,{min:(g=c.range)==null?void 0:g.min,max:(h=c.range)==null?void 0:h.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&X.jsx("span",{className:"ml-2",children:c.unit})]}),X.jsx(Xt.Item,{name:c.name,noStyle:!0,children:X.jsx(DC,{min:(v=c.range)==null?void 0:v.min,max:(m=c.range)==null?void 0:m.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?X.jsx(Xt.Item,{label:null,colon:!1,style:{marginBottom:16},children:X.jsxs(L0,{align:"middle",justify:"space-between",children:[X.jsx(sd,{children:$r(c)}),X.jsx(sd,{children:X.jsx(Xt.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:X.jsx(wy,{disabled:c.disabled,checked:r[c.name],onChange:p=>i(c.name,p,c.controlledItems)})})})]})},c.name):c.type==="textarea"?X.jsx(Xt.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:X.jsx(Qr.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?X.jsx(Xt.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:X.jsx(Aa,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?X.jsx(Xt.Item,{label:$r(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:X.jsx(xs.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return be.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(o)},[t]),l}function HN({config:e=[],initialValues:t={},onChange:n,styles:r}){const a=zN(e,r,t),[o]=Xt.useForm();return X.jsx(Xt,{form:o,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(i,s)=>n==null?void 0:n(s),requiredMark:!1,style:{padding:16},children:a})}function VN(){return X.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:X.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function KN(){return X.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:X.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function WN(){return X.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:X.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function qN(){return X.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:X.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function UN(){return X.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[X.jsx("div",{className:"text-2xl text-blue-500 font-bold mb-4",children:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u4E13\u5C5EAI\u52A9\u7406\u3010\u5C0F\u9CB8\u3011"}),X.jsx("div",{className:"text-zinc-500",children:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898\u6216\u9700\u6C42\uFF0C\u6211\u4F1A\u5C3D\u529B\u4E3A\u60A8\u89E3\u7B54\u3002"})]})}function YN(e,t){return t?{...e,...t,colors:{...e.colors,...t.colors},space:{...e.space,...t.space},icons:{...e.icons,...t.icons},others:{...e.others,...t.others}}:e}function GN(e){return{...e,size:Gl[e.size]||e.size,radius:sv[e.radius]||e.radius,padding:e$[e.padding]||e.padding,margin:t$[e.margin]||e.margin,shadow:n$[e.shadow]||e.shadow,lineHeight:r$[e.lineHeight]||e.lineHeight,sidebar:Z2[e.sidebar]||e.sidebar}}function XN({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:a,recommandQuestions:o=[],styles:i,senderConfig:s,fileUploadStatus:l,onSenderConfigChange:c,activeSessionId:u}){const d=wt(null),[g,h]=dt(""),[v,m]=dt([]),[p,b]=dt(!1),y=(t&&t.length>0?t:[]).filter(Y=>Y.enabled!==!1),[x,w]=dt(()=>{var Y;return(Y=y[0])==null?void 0:Y.key}),C=wt({}),[S]=dt(0),E=(e==null?void 0:e.messages)||[],[k,$]=dt({});ft(()=>{n==null||n("fileManager:change",{uploadedFiles:v,removeFile:(Y,ee,ce)=>{m(me=>me.filter((we,se)=>se!==ee))},setUploadedFiles:Y=>{m(ee=>typeof Y=="function"?Y(ee):[...ee,...Y])}})},[v]);const O=()=>{h(""),m([])},D=(Y,ee)=>{if(n)switch(console.log(Y,ee,"core\u5185\u90E8\u8F6C\u53D1"),Y){case"action_copy:click":ee&&LN(ee.content,ee.event);break;case"sender:configChange":$(ee.all),c==null||c(ee),n(Y,ee);break;case"conversation:create":const ce=BN(3);n==null||n("conversation:create",{id:ce});break;case"sender:change":ee&&h(ee);break;case"sender:clear":O();break;case"sender:send_recommandQuestion":{const me={};y.forEach(we=>{we.type==="form"&&(me[we.key]=C.current[we.key]??we.initialValues??{})}),n==null||n("sender:send",{content:ee.content,files:v,status:r,currentData:e,senderConfig:k,formData:me,clearFn:O}),setTimeout(()=>{d.current&&d.current.scrollTo&&d.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const me={};y.forEach(we=>{we.type==="form"&&(me[we.key]=C.current[we.key]??we.initialValues??{})}),n==null||n("sender:send",{content:g,files:v,status:r,currentData:e,senderConfig:k,formData:me,clearFn:O}),setTimeout(()=>{d.current&&d.current.scrollTo&&d.current.scrollTo({top:0,behavior:"smooth"})},120);break}default:n(Y,ee)}},P=Y=>{Y.preventDefault(),b(!1);const ee=Array.from(Y.dataTransfer.files||[]);if(ee.length>0){const ce=ee.filter(me=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(me.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(me.name));ce.length>0&&m(me=>[...me,...ce.map(we=>({file:we,type:I(we)}))])}},R=Y=>{Y.preventDefault(),p||b(!0)},N=Y=>{Y.preventDefault(),b(!1)};function I(Y){return Y.type.startsWith("image")?"image":"document"}const M=Y=>{$(Y.all),c==null||c(Y)},F=()=>{d.current.addEventListener("wheel",Y=>{Y.preventDefault();const{deltaY:ee}=Y;d.current.scrollTop-=ee})},j=wt(null);ft(()=>{if(!j.current)return j.current=setInterval(()=>{var Y;(Y=d==null?void 0:d.current)!=null&&Y.scrollTo&&(F(),clearInterval(j.current),j.current=null)},100),()=>{var Y;clearInterval(j.current),j.current=null,(Y=d==null?void 0:d.current)!=null&&Y.removeEventListener&&d.current.removeEventListener("wheel",F)}},[u]);const A=YN(Q2,i==null?void 0:i.theme),_=GN(A.space),L={...A,space:_,colors:{...A.colors,info:A.colors.info||"#0000FF",background:A.colors.background||"#ffffff",text:A.colors.text||"#343a40",border:A.colors.border||"#dee2e6",disabled:A.colors.disabled||"#808080",disabledBackground:A.colors.disabledBackground||"#F5F5F5",disabledText:A.colors.disabledText||"#808080"}},z={...i,theme:L},T=L.space.radius,H=L.colors.appBackground,W="",K=L.space.shadow,G=y.length===0?0:L.space.sidebar,U=L.space.size,Z=L.space.padding,Q=L.colors.text;return X.jsxs(X.Fragment,{children:[r.app==="initializing"&&(a!=null&&a.AppLoading?X.jsx(a.AppLoading,{}):X.jsx(VN,{})),r.app==="error"&&(a!=null&&a.AppError?X.jsx(a.AppError,{}):X.jsx(WN,{})),r.app==="ready"&&X.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex"},children:[y.length===0?null:X.jsxs("div",{style:{width:G,borderRadius:T,boxShadow:K,background:W,display:"flex",flexDirection:"column",height:"100%"},children:[(a==null?void 0:a.LogoBox)&&X.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${A.colors.border}`,padding:Z,fontSize:Gl.lg,fontWeight:700,color:A.colors.primary,background:W,borderTopLeftRadius:T,borderTopRightRadius:T},children:X.jsx(a.LogoBox,{})}),X.jsxs("div",{style:{width:G,borderRadius:T,background:W,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:y.length>1?55:0,borderBottomRightRadius:T},children:[(()=>{const Y=y.find(ee=>ee.key===x);if(!Y)return null;if(Y.type==="custom")return Y.component;if(Y.type==="form"){const ee=C.current[Y.key]||Y.initialValues||{};return X.jsx(HN,{config:Y.formConfig,initialValues:ee,onChange:ce=>{var me;C.current[Y.key]=ce,(me=Y.onChange)==null||me.call(Y,ce),typeof n=="function"&&n("form:change",{...C.current})},styles:i},Y.key+"_"+S)}return null})(),y.length>1&&X.jsx("div",{style:{display:"flex",gap:12,margin:"0 auto",width:"100%",alignItems:"center",justifyContent:"end",padding:"8px 12px",position:"absolute",bottom:0,borderBottom:`1px solid ${A.colors.border}`,borderTop:`1px solid ${A.colors.border}`,borderBottomRightRadius:T,background:W},children:y.map(Y=>{const ee=Y.icon,ce=x===Y.key;return X.jsx("button",{onClick:()=>w(Y.key),style:{padding:8,borderRadius:sv.md,background:ce?A.colors.primary+"22":"transparent",color:ce?A.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:ce?600:400,transition:"all 0.2s"},title:Y.label,children:ee},Y.key)})})]})]}),X.jsxs("div",{className:"relative ",style:{width:G===0?"100%":`calc(100% - ${G})`,borderRadius:T,background:H,fontSize:U,color:Q,position:"relative",height:"100%",zIndex:p?10:void 0,display:"flex",flexDirection:"column"},onDrop:P,onDragOver:R,onDragLeave:N,children:[p&&X.jsx("div",{style:{position:"absolute",inset:0,background:A.colors.primary+"14",border:`4px dashed ${A.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:T},children:X.jsx("div",{style:{color:A.colors.primary,fontSize:Gl.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),X.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:p?10:void 0,display:"flex",flexDirection:"column"},children:X.jsx("div",{style:{width:"100%",minWidth:520,margin:"0 auto",flex:1,display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:e.isNew?a!=null&&a.WelcomeComponent?X.jsx(a.WelcomeComponent,{}):X.jsx(UN,{}):r.display==="loading"?a!=null&&a.DisplayLoading?X.jsx(a.DisplayLoading,{}):X.jsx(KN,{}):r.display==="error"?a!=null&&a.DisplayError?X.jsx(a.DisplayError,{}):X.jsx(qN,{}):X.jsxs("div",{ref:d,className:"relative px-8",style:{direction:"rtl",transform:"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[X.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),X.jsx("div",{style:{width:"100%",maxWidth:1200},children:X.jsx(rE,{status:r.display,messages:E,eventsEmit:n,renderAiChatBox:a==null?void 0:a.AiChatBox,renderUserChatBox:a==null?void 0:a.UserChatBox})})]})})}),X.jsx(eE,{value:g,status:r.sender,styles:z,recommandQuestions:o,eventsEmit:(Y,ee)=>{D(Y,ee)},uploadedFiles:v,fileUploadStatus:l,onUpload:Y=>{Y&&Y.length>0&&m(ee=>[...ee,...Array.from(Y).map(ce=>({file:ce,type:I(ce)}))])},onRemoveFile:Y=>{m(ee=>ee.filter((ce,me)=>me!==Y))},senderConfig:s,onSenderConfigChange:M})]})]})]})}ra({badgeCounts:{},updateBadgeCount:()=>{}});function Hh(e,t){return function(){return e.apply(t,arguments)}}const{toString:JN}=Object.prototype,{getPrototypeOf:ed}=Object,{iterator:Rs,toStringTag:Vh}=Symbol,As=(e=>t=>{const n=JN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),or=e=>(e=e.toLowerCase(),t=>As(t)===e),Ts=e=>t=>typeof t===e,{isArray:Ha}=Array,No=Ts("undefined");function Ho(e){return e!==null&&!No(e)&&e.constructor!==null&&!No(e.constructor)&&Pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kh=or("ArrayBuffer");function QN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kh(e.buffer),t}const ZN=Ts("string"),Pn=Ts("function"),Wh=Ts("number"),Vo=e=>e!==null&&typeof e=="object",eD=e=>e===!0||e===!1,Mi=e=>{if(As(e)!=="object")return!1;const t=ed(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vh in e)&&!(Rs in e)},tD=e=>{if(!Vo(e)||Ho(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nD=or("Date"),rD=or("File"),aD=or("Blob"),oD=or("FileList"),iD=e=>Vo(e)&&Pn(e.pipe),sD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pn(e.append)&&((t=As(e))==="formdata"||t==="object"&&Pn(e.toString)&&e.toString()==="[object FormData]"))},lD=or("URLSearchParams"),[cD,uD,dD,fD]=["ReadableStream","Request","Response","Headers"].map(or),mD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ko(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Ha(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Ho(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function qh(e,t){if(Ho(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Uh=e=>!No(e)&&e!==qr;function jc(){const{caseless:e}=Uh(this)&&this||{},t={},n=(r,a)=>{const o=e&&qh(t,a)||a;Mi(t[o])&&Mi(r)?t[o]=jc(t[o],r):Mi(r)?t[o]=jc({},r):Ha(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Ko(arguments[r],n);return t}const pD=(e,t,n,{allOwnKeys:r}={})=>(Ko(t,(a,o)=>{n&&Pn(a)?e[o]=Hh(a,n):e[o]=a},{allOwnKeys:r}),e),gD=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vD=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},hD=(e,t,n,r)=>{let a,o,i;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&ed(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yD=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bD=e=>{if(!e)return null;if(Ha(e))return e;let t=e.length;if(!Wh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xD=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ed(Uint8Array)),CD=(e,t)=>{const n=(e&&e[Rs]).call(e);let r;for(;(r=n.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},wD=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},SD=or("HTMLFormElement"),$D=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Om=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ED=or("RegExp"),Yh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ko(n,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(r[o]=i||a)}),Object.defineProperties(e,r)},kD=e=>{Yh(e,(t,n)=>{if(Pn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ID=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Ha(e)?r(e):r(String(e).split(t)),n},OD=()=>{},ND=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function DD(e){return!!(e&&Pn(e.append)&&e[Vh]==="FormData"&&e[Rs])}const MD=e=>{const t=new Array(10),n=(r,a)=>{if(Vo(r)){if(t.indexOf(r)>=0)return;if(Ho(r))return r;if(!("toJSON"in r)){t[a]=r;const o=Ha(r)?[]:{};return Ko(r,(i,s)=>{const l=n(i,a+1);!No(l)&&(o[s]=l)}),t[a]=void 0,o}}return r};return n(e,0)},FD=or("AsyncFunction"),PD=e=>e&&(Vo(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),Gh=((e,t)=>e?setImmediate:t?((n,r)=>(qr.addEventListener("message",({source:a,data:o})=>{a===qr&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),qr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Pn(qr.postMessage)),jD=typeof queueMicrotask<"u"?queueMicrotask.bind(qr):typeof process<"u"&&process.nextTick||Gh,RD=e=>e!=null&&Pn(e[Rs]),re={isArray:Ha,isArrayBuffer:Kh,isBuffer:Ho,isFormData:sD,isArrayBufferView:QN,isString:ZN,isNumber:Wh,isBoolean:eD,isObject:Vo,isPlainObject:Mi,isEmptyObject:tD,isReadableStream:cD,isRequest:uD,isResponse:dD,isHeaders:fD,isUndefined:No,isDate:nD,isFile:rD,isBlob:aD,isRegExp:ED,isFunction:Pn,isStream:iD,isURLSearchParams:lD,isTypedArray:xD,isFileList:oD,forEach:Ko,merge:jc,extend:pD,trim:mD,stripBOM:gD,inherits:vD,toFlatObject:hD,kindOf:As,kindOfTest:or,endsWith:yD,toArray:bD,forEachEntry:CD,matchAll:wD,isHTMLForm:SD,hasOwnProperty:Om,hasOwnProp:Om,reduceDescriptors:Yh,freezeMethods:kD,toObjectSet:ID,toCamelCase:$D,noop:OD,toFiniteNumber:ND,findKey:qh,global:qr,isContextDefined:Uh,isSpecCompliantForm:DD,toJSONObject:MD,isAsyncFn:FD,isThenable:PD,setImmediate:Gh,asap:jD,isIterable:RD};function pt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}re.inherits(pt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const Xh=pt.prototype,Jh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Jh[e]={value:e}});Object.defineProperties(pt,Jh);Object.defineProperty(Xh,"isAxiosError",{value:!0});pt.from=(e,t,n,r,a,o)=>{const i=Object.create(Xh);return re.toFlatObject(e,i,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),pt.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const AD=null;function Rc(e){return re.isPlainObject(e)||re.isArray(e)}function Qh(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function Nm(e,t,n){return e?e.concat(t).map(function(r,a){return r=Qh(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function TD(e){return re.isArray(e)&&!e.some(Rc)}const _D=re.toFlatObject(re,{},null,function(e){return/^is[A-Z]/.test(e)});function _s(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,v){return!re.isUndefined(v[h])});const r=n.metaTokens,a=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(a))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(re.isDate(h))return h.toISOString();if(re.isBoolean(h))return h.toString();if(!s&&re.isBlob(h))throw new pt("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(h)||re.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,m){let p=h;if(h&&!m&&typeof h=="object"){if(re.endsWith(v,"{}"))v=r?v:v.slice(0,-2),h=JSON.stringify(h);else if(re.isArray(h)&&TD(h)||(re.isFileList(h)||re.endsWith(v,"[]"))&&(p=re.toArray(h)))return v=Qh(v),p.forEach(function(b,y){!(re.isUndefined(b)||b===null)&&t.append(i===!0?Nm([v],y,o):i===null?v:v+"[]",l(b))}),!1}return Rc(h)?!0:(t.append(Nm(m,v,o),l(h)),!1)}const u=[],d=Object.assign(_D,{defaultVisitor:c,convertValue:l,isVisitable:Rc});function g(h,v){if(!re.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));u.push(h),re.forEach(h,function(m,p){(!(re.isUndefined(m)||m===null)&&a.call(t,m,re.isString(p)?p.trim():p,v,d))===!0&&g(m,v?v.concat(p):[p])}),u.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Dm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function td(e,t){this._pairs=[],e&&_s(e,this,t)}const Zh=td.prototype;Zh.append=function(e,t){this._pairs.push([e,t])};Zh.toString=function(e){const t=e?function(n){return e.call(this,n,Dm)}:Dm;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function BD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function e0(e,t,n){if(!t)return e;const r=n&&n.encode||BD;re.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=re.isURLSearchParams(t)?t.toString():new td(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Mm{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(n){n!==null&&t(n)})}}const t0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},LD=typeof URLSearchParams<"u"?URLSearchParams:td,zD=typeof FormData<"u"?FormData:null,HD=typeof Blob<"u"?Blob:null,VD={isBrowser:!0,classes:{URLSearchParams:LD,FormData:zD,Blob:HD},protocols:["http","https","file","blob","url","data"]},nd=typeof window<"u"&&typeof document<"u",Ac=typeof navigator=="object"&&navigator||void 0,KD=nd&&(!Ac||["ReactNative","NativeScript","NS"].indexOf(Ac.product)<0),WD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qD=nd&&window.location.href||"http://localhost",UD=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nd,hasStandardBrowserEnv:KD,hasStandardBrowserWebWorkerEnv:WD,navigator:Ac,origin:qD},Symbol.toStringTag,{value:"Module"})),wn={...UD,...VD};function YD(e,t){return _s(e,new wn.classes.URLSearchParams,{visitor:function(n,r,a,o){return wn.isNode&&re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function GD(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XD(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function n0(e){function t(n,r,a,o){let i=n[o++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=o>=n.length;return i=!i&&re.isArray(a)?a.length:i,l?(re.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!s):((!a[i]||!re.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&re.isArray(a[i])&&(a[i]=XD(a[i])),!s)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(r,a)=>{t(GD(r),a,n,0)}),n}return null}function JD(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wo={transitional:t0,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=re.isObject(e);if(a&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return r?JSON.stringify(n0(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return YD(e,this.formSerializer).toString();if((o=re.isFileList(e))||n.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return _s(o?{"files[]":e}:e,i&&new i,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),JD(e)):e}],transformResponse:[function(e){const t=this.transitional||Wo.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?pt.from(o,pt.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wn.classes.FormData,Blob:wn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{Wo.headers[e]={}});const QD=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZD=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
399
|
+
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&QD[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fm=Symbol("internals");function no(e){return e&&String(e).trim().toLowerCase()}function Fi(e){return e===!1||e==null?e:re.isArray(e)?e.map(Fi):String(e)}function eM(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const tM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xl(e,t,n,r,a){if(re.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!re.isString(t)){if(re.isString(r))return t.indexOf(r)!==-1;if(re.isRegExp(r))return r.test(t)}}function nM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rM(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,i){return this[r].call(this,t,a,o,i)},configurable:!0})})}class jn{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(s,l,c){const u=no(l);if(!u)throw new Error("header name must be a non-empty string");const d=re.findKey(a,u);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||l]=Fi(s))}const i=(s,l)=>re.forEach(s,(c,u)=>o(c,u,l));if(re.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(re.isString(t)&&(t=t.trim())&&!tM(t))i(ZD(t),n);else if(re.isObject(t)&&re.isIterable(t)){let s={},l,c;for(const u of t){if(!re.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?re.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=no(t),t){const r=re.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return eM(a);if(re.isFunction(n))return n.call(this,a,r);if(re.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=no(t),t){const r=re.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=no(i),i){const s=re.findKey(r,i);s&&(!n||xl(r,r[s],s,n))&&(delete r[s],a=!0)}}return re.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||xl(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return re.forEach(this,(a,o)=>{const i=re.findKey(r,o);if(i){n[i]=Fi(a),delete n[o];return}const s=t?nM(o):String(o).trim();s!==o&&delete n[o],n[s]=Fi(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
400
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const n=(this[Fm]=this[Fm]={accessors:{}}).accessors,r=this.prototype;function a(o){const i=no(o);n[i]||(rM(r,o),n[i]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}}jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(jn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});re.freezeMethods(jn);function Cl(e,t){const n=this||Wo,r=t||n,a=jn.from(r.headers);let o=r.data;return re.forEach(e,function(i){o=i.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function r0(e){return!!(e&&e.__CANCEL__)}function Va(e,t,n){pt.call(this,e??"canceled",pt.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Va,pt,{__CANCEL__:!0});function a0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new pt("Request failed with status code "+n.status,[pt.ERR_BAD_REQUEST,pt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),c=r[o];i||(i=l),n[a]=s,r[a]=l;let u=o,d=0;for(;u!==a;)d+=n[u++],u=u%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const g=c&&l-c;return g?Math.round(d*1e3/g):void 0}}function iM(e,t){let n=0,r=1e3/t,a,o;const i=(s,l=Date.now())=>{n=l,a=null,o&&(clearTimeout(o),o=null),e(...s)};return[(...s)=>{const l=Date.now(),c=l-n;c>=r?i(s,l):(a=s,o||(o=setTimeout(()=>{o=null,i(a)},r-c)))},()=>a&&i(a)]}const Ji=(e,t,n=3)=>{let r=0;const a=oM(50,250);return iM(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-r,c=a(l),u=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},Pm=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},jm=e=>(...t)=>re.asap(()=>e(...t)),sM=wn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wn.origin),wn.navigator&&/(msie|trident)/i.test(wn.navigator.userAgent)):()=>!0,lM=wn.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const i=[e+"="+encodeURIComponent(t)];re.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),re.isString(r)&&i.push("path="+r),re.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function o0(e,t,n){let r=!cM(t);return e&&(r||n==!1)?uM(e,t):t}const Rm=e=>e instanceof jn?{...e}:e;function na(e,t){t=t||{};const n={};function r(c,u,d,g){return re.isPlainObject(c)&&re.isPlainObject(u)?re.merge.call({caseless:g},c,u):re.isPlainObject(u)?re.merge({},u):re.isArray(u)?u.slice():u}function a(c,u,d,g){if(re.isUndefined(u)){if(!re.isUndefined(c))return r(void 0,c,d,g)}else return r(c,u,d,g)}function o(c,u){if(!re.isUndefined(u))return r(void 0,u)}function i(c,u){if(re.isUndefined(u)){if(!re.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,u,d)=>a(Rm(c),Rm(u),d,!0)};return re.forEach(Object.keys({...e,...t}),function(c){const u=l[c]||a,d=u(e[c],t[c],c);re.isUndefined(d)&&u!==s||(n[c]=d)}),n}const i0=e=>{const t=na({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:s}=t;t.headers=i=jn.from(i),t.url=e0(o0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(re.isFormData(n)){if(wn.hasStandardBrowserEnv||wn.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(wn.hasStandardBrowserEnv&&(r&&re.isFunction(r)&&(r=r(t)),r||r!==!1&&sM(t.url))){const c=a&&o&&lM.read(o);c&&i.set(a,c)}return t},dM=typeof XMLHttpRequest<"u",fM=dM&&function(e){return new Promise(function(t,n){const r=i0(e);let a=r.data;const o=jn.from(r.headers).normalize();let{responseType:i,onUploadProgress:s,onDownloadProgress:l}=r,c,u,d,g,h;function v(){g&&g(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function p(){if(!m)return;const y=jn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};a0(function(w){t(w),v()},function(w){n(w),v()},x),m=null}"onloadend"in m?m.onloadend=p:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(p)},m.onabort=function(){m&&(n(new pt("Request aborted",pt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new pt("Network Error",pt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||t0;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),n(new pt(y,x.clarifyTimeoutError?pt.ETIMEDOUT:pt.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&re.forEach(o.toJSON(),function(y,x){m.setRequestHeader(x,y)}),re.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),i&&i!=="json"&&(m.responseType=r.responseType),l&&([d,h]=Ji(l,!0),m.addEventListener("progress",d)),s&&m.upload&&([u,g]=Ji(s),m.upload.addEventListener("progress",u),m.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(c=y=>{m&&(n(!y||y.type?new Va(null,e,m):y),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const b=aM(r.url);if(b&&wn.protocols.indexOf(b)===-1){n(new pt("Unsupported protocol "+b+":",pt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},mM=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(c){if(!a){a=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof pt?u:new Va(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new pt(`timeout ${t} of ms exceeded`,pt.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>re.asap(s),l}},pM=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},gM=async function*(e,t){for await(const n of vM(e))yield*pM(n,t)},vM=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Am=(e,t,n,r)=>{const a=gM(e,t);let o=0,i,s=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let g=o+=d;n(g)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Bs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",s0=Bs&&typeof ReadableStream=="function",hM=Bs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),l0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yM=s0&&l0(()=>{let e=!1;const t=new Request(wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Tm=64*1024,Tc=s0&&l0(()=>re.isReadableStream(new Response("").body)),Qi={stream:Tc&&(e=>e.body)};Bs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qi[t]&&(Qi[t]=re.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new pt(`Response type '${t}' is not supported`,pt.ERR_NOT_SUPPORT,r)})})})(new Response);const bM=async e=>{if(e==null)return 0;if(re.isBlob(e))return e.size;if(re.isSpecCompliantForm(e))return(await new Request(wn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(re.isArrayBufferView(e)||re.isArrayBuffer(e))return e.byteLength;if(re.isURLSearchParams(e)&&(e=e+""),re.isString(e))return(await hM(e)).byteLength},xM=async(e,t)=>re.toFiniteNumber(e.getContentLength())??bM(t),CM=Bs&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:g}=i0(e);c=c?(c+"").toLowerCase():"text";let h=mM([a,o&&o.toAbortSignal()],i),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let p;try{if(l&&yM&&n!=="get"&&n!=="head"&&(p=await xM(u,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(re.isFormData(r)&&(S=C.headers.get("content-type"))&&u.setContentType(S),C.body){const[E,k]=Pm(p,Ji(jm(l)));r=Am(C.body,Tm,E,k)}}re.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;v=new Request(t,{...g,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let y=await fetch(v,g);const x=Tc&&(c==="stream"||c==="response");if(Tc&&(s||x&&m)){const C={};["status","statusText","headers"].forEach($=>{C[$]=y[$]});const S=re.toFiniteNumber(y.headers.get("content-length")),[E,k]=s&&Pm(S,Ji(jm(s),!0))||[];y=new Response(Am(y.body,Tm,E,()=>{k&&k(),m&&m()}),C)}c=c||"text";let w=await Qi[re.findKey(Qi,c)||"text"](y,e);return!x&&m&&m(),await new Promise((C,S)=>{a0(C,S,{data:w,headers:jn.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:v})})}catch(b){throw m&&m(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new pt("Network Error",pt.ERR_NETWORK,e,v),{cause:b.cause||b}):pt.from(b,b&&b.code,e,v)}}),_c={http:AD,xhr:fM,fetch:CM};re.forEach(_c,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _m=e=>`- ${e}`,wM=e=>re.isFunction(e)||e===null||e===!1,c0={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!wM(n)&&(r=_c[(i=String(n)).toLowerCase()],r===void 0))throw new pt(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+o]=r}if(!r){const o=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
401
|
+
`+o.map(_m).join(`
|
|
402
|
+
`):" "+_m(o[0]):"as no adapter specified";throw new pt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:_c};function wl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Va(null,e)}function Bm(e){return wl(e),e.headers=jn.from(e.headers),e.data=Cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),c0.getAdapter(e.adapter||Wo.adapter)(e).then(function(t){return wl(e),t.data=Cl.call(e,e.transformResponse,t),t.headers=jn.from(t.headers),t},function(t){return r0(t)||(wl(e),t&&t.response&&(t.response.data=Cl.call(e,e.transformResponse,t.response),t.response.headers=jn.from(t.response.headers))),Promise.reject(t)})}const u0="1.11.0",Ls={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ls[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Lm={};Ls.transitional=function(e,t,n){function r(a,o){return"[Axios v"+u0+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,i)=>{if(e===!1)throw new pt(r(o," has been removed"+(t?" in "+t:"")),pt.ERR_DEPRECATED);return t&&!Lm[o]&&(Lm[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,i):!0}};Ls.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function SM(e,t,n){if(typeof e!="object")throw new pt("options must be an object",pt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const s=e[o],l=s===void 0||i(s,o,e);if(l!==!0)throw new pt("option "+o+" must be "+l,pt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pt("Unknown option "+o,pt.ERR_BAD_OPTION)}}const Pi={assertOptions:SM,validators:Ls},ir=Pi.validators;class Jr{constructor(t){this.defaults=t||{},this.interceptors={request:new Mm,response:new Mm}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
403
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=na(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Pi.assertOptions(r,{silentJSONParsing:ir.transitional(ir.boolean),forcedJSONParsing:ir.transitional(ir.boolean),clarifyTimeoutError:ir.transitional(ir.boolean)},!1),a!=null&&(re.isFunction(a)?n.paramsSerializer={serialize:a}:Pi.assertOptions(a,{encode:ir.function,serialize:ir.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Pi.assertOptions(n,{baseUrl:ir.spelling("baseURL"),withXsrfToken:ir.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&re.merge(o.common,o[n.method]);o&&re.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=jn.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,g;if(!l){const v=[Bm.bind(this),void 0];for(v.unshift(...s),v.push(...c),g=v.length,u=Promise.resolve(n);d<g;)u=u.then(v[d++],v[d++]);return u}g=s.length;let h=n;for(d=0;d<g;){const v=s[d++],m=s[d++];try{h=v(h)}catch(p){m.call(this,p);break}}try{u=Bm.call(this,h)}catch(v){return Promise.reject(v)}for(d=0,g=c.length;d<g;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=na(this.defaults,t);const n=o0(t.baseURL,t.url,t.allowAbsoluteUrls);return e0(n,t.params,t.paramsSerializer)}}re.forEach(["delete","get","head","options"],function(e){Jr.prototype[e]=function(t,n){return this.request(na(n||{},{method:e,url:t,data:(n||{}).data}))}});re.forEach(["post","put","patch"],function(e){function t(n){return function(r,a,o){return this.request(na(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}Jr.prototype[e]=t(),Jr.prototype[e+"Form"]=t(!0)});class rd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(a,o,i){r.reason||(r.reason=new Va(a,o,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new rd(function(n){t=n}),cancel:t}}}function $M(e){return function(t){return e.apply(null,t)}}function EM(e){return re.isObject(e)&&e.isAxiosError===!0}const Bc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bc).forEach(([e,t])=>{Bc[t]=e});function d0(e){const t=new Jr(e),n=Hh(Jr.prototype.request,t);return re.extend(n,Jr.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return d0(na(e,r))},n}const en=d0(Wo);en.Axios=Jr;en.CanceledError=Va;en.CancelToken=rd;en.isCancel=r0;en.VERSION=u0;en.toFormData=_s;en.AxiosError=pt;en.Cancel=en.CanceledError;en.all=function(e){return Promise.all(e)};en.spread=$M;en.isAxiosError=EM;en.mergeConfig=na;en.AxiosHeaders=jn;en.formToJSON=e=>n0(re.isHTMLForm(e)?new FormData(e):e);en.getAdapter=c0.getAdapter;en.HttpStatusCode=Bc;en.default=en;const{TextArea:K5}=Qr,{useForm:W5}=Xt,f0=document.createElement("style");f0.textContent=`
|
|
457
404
|
.animate-bounce-slow {
|
|
458
405
|
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
459
406
|
}
|
|
@@ -461,16 +408,124 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
461
408
|
0%, 100% { transform: translateY(0); }
|
|
462
409
|
50% { transform: translateY(-12px); }
|
|
463
410
|
}
|
|
464
|
-
`;document.head.appendChild(Gy);function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return X.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Hu(n)):X0(n)&&n.props?r=r.concat(Hu(n.props.children,t)):r.push(n))}),r}var zn="RC_FORM_INTERNAL_HOOKS",Ke=function(){ir(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Fo=m.createContext({getFieldValue:Ke,getFieldsValue:Ke,getFieldError:Ke,getFieldWarning:Ke,getFieldsError:Ke,isFieldsTouched:Ke,isFieldTouched:Ke,isFieldValidating:Ke,isFieldsValidating:Ke,resetFields:Ke,setFields:Ke,setFieldValue:Ke,setFieldsValue:Ke,validateFields:Ke,submit:Ke,getInternalHooks:function(){return Ke(),{dispatch:Ke,initEntityValue:Ke,registerField:Ke,useSubscribe:Ke,setInitialValues:Ke,destroyForm:Ke,setCallbacks:Ke,registerWatch:Ke,getFields:Ke,setValidateMessages:Ke,setPreserve:Ke,getInitialValue:Ke}}}),ds=m.createContext(null);function Vu(e){return e==null?[]:Array.isArray(e)?e:[e]}function GT(e){return e&&!!e._init}function Wu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var qu=Wu();function XT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function KT(e,t,r){if(Hf())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Aa(o,r.prototype),o}function Uu(e){var t=typeof Map=="function"?new Map:void 0;return Uu=function(r){if(r===null||!XT(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return KT(r,arguments,Ta(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Aa(n,r)},Uu(e)}var ZT=/%[sdj%]/g,YT=function(){};function Gu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function or(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(ZT,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function QT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Et(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||QT(t)&&typeof e=="string"&&!e)}function JT(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,Se(s||[])),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function cv(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function ej(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Se(e[r]||[]))}),t}var uv=(function(e){No(r,e);var t=Lo(r);function r(n,o){var a;return Bt(this,r),a=t.call(this,"Async Validation Error"),H(Re(a),"errors",void 0),H(Re(a),"fields",void 0),a.errors=n,a.fields=o,a}return Dt(r)})(Uu(Error));function tj(e,t,r,n,o){if(t.first){var a=new Promise(function(d,p){var h=function(g){return n(g),g.length?p(new uv(g,Gu(g))):d(o)},v=ej(e);cv(v,r,h)});return a.catch(function(d){return d}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(d,p){var h=function(v){if(u.push.apply(u,v),c++,c===l)return n(u),u.length?p(new uv(u,Gu(u))):d(o)};s.length||(n(u),d(o)),s.forEach(function(v){var g=e[v];i.indexOf(v)!==-1?cv(g,r,h):JT(g,r,h)})});return f.catch(function(d){return d}),f}function rj(e){return!!(e&&e.message!==void 0)}function nj(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function fv(e,t){return function(r){var n;return e.fullFields?n=nj(t,e.fullFields):n=t[r.field||e.fullField],rj(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function dv(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];$e(n)==="object"&&$e(e[r])==="object"?e[r]=K(K({},e[r]),n):e[r]=n}}return e}var so="enum",oj=function(e,t,r,n,o){e[so]=Array.isArray(e[so])?e[so]:[],e[so].indexOf(t)===-1&&n.push(or(o.messages[so],e.fullField,e[so].join(", ")))},aj=function(e,t,r,n,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(or(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||n.push(or(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},ij=function(e,t,r,n,o){var a=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,f=typeof t=="number",d=typeof t=="string",p=Array.isArray(t);if(f?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(c=t.length),d&&(c=t.replace(l,"_").length),a?c!==e.len&&n.push(or(o.messages[u].len,e.fullField,e.len)):i&&!s&&c<e.min?n.push(or(o.messages[u].min,e.fullField,e.min)):s&&!i&&c>e.max?n.push(or(o.messages[u].max,e.fullField,e.max)):i&&s&&(c<e.min||c>e.max)&&n.push(or(o.messages[u].range,e.fullField,e.min,e.max))},Xy=function(e,t,r,n,o,a){e.required&&(!r.hasOwnProperty(e.field)||Et(t,a||e.type))&&n.push(or(o.messages.required,e.fullField))},Ai;const sj=(function(){if(Ai)return Ai;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),u=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};u.v4=function(x){return x&&x.exact?l:new RegExp("".concat(t(x)).concat(r).concat(t(x)),"g")},u.v6=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(p,"|").concat(h,"|").concat(v).concat(g).concat(b,")").concat(y).concat(C);return Ai=new RegExp("(?:^".concat(S,"$)"),"i"),Ai});var mv={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},na={integer:function(e){return na.number(e)&&parseInt(e,10)===e},float:function(e){return na.number(e)&&!na.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return $e(e)==="object"&&!na.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(mv.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(sj())},hex:function(e){return typeof e=="string"&&!!e.match(mv.hex)}},lj=function(e,t,r,n,o){if(e.required&&t===void 0){Xy(e,t,r,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?na[i](t)||n.push(or(o.messages.types[i],e.fullField,e.type)):i&&$e(t)!==e.type&&n.push(or(o.messages.types[i],e.fullField,e.type))},cj=function(e,t,r,n,o){(/^\s+$/.test(t)||t==="")&&n.push(or(o.messages.whitespace,e.fullField))};const ke={required:Xy,whitespace:cj,type:lj,range:ij,enum:oj,pattern:aj};var uj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o)}r(a)},fj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return r();ke.required(e,t,n,a,o,"array"),t!=null&&(ke.type(e,t,n,a,o),ke.range(e,t,n,a,o))}r(a)},dj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&ke.type(e,t,n,a,o)}r(a)},mj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t,"date")&&!e.required)return r();if(ke.required(e,t,n,a,o),!Et(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),ke.type(e,s,n,a,o),s&&ke.range(e,s.getTime(),n,a,o)}}r(a)},gj="enum",vj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&ke[gj](e,t,n,a,o)}r(a)},hj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&(ke.type(e,t,n,a,o),ke.range(e,t,n,a,o))}r(a)},pj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&(ke.type(e,t,n,a,o),ke.range(e,t,n,a,o))}r(a)},yj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&ke.type(e,t,n,a,o)}r(a)},bj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&(ke.type(e,t,n,a,o),ke.range(e,t,n,a,o))}r(a)},Cj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),t!==void 0&&ke.type(e,t,n,a,o)}r(a)},xj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t,"string")&&!e.required)return r();ke.required(e,t,n,a,o),Et(t,"string")||ke.pattern(e,t,n,a,o)}r(a)},wj=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t)&&!e.required)return r();ke.required(e,t,n,a,o),Et(t)||ke.type(e,t,n,a,o)}r(a)},Sj=function(e,t,r,n,o){var a=[],i=Array.isArray(t)?"array":$e(t);ke.required(e,t,n,a,o,i),r(a)},Ej=function(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(Et(t,"string")&&!e.required)return r();ke.required(e,t,n,a,o,"string"),Et(t,"string")||(ke.type(e,t,n,a,o),ke.range(e,t,n,a,o),ke.pattern(e,t,n,a,o),e.whitespace===!0&&ke.whitespace(e,t,n,a,o))}r(a)},ec=function(e,t,r,n,o){var a=e.type,i=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(Et(t,a)&&!e.required)return r();ke.required(e,t,n,i,o,a),Et(t,a)||ke.type(e,t,n,i,o)}r(i)};const fa={string:Ej,method:yj,number:bj,boolean:dj,regexp:wj,integer:pj,float:hj,array:fj,object:Cj,enum:vj,pattern:xj,date:mj,url:ec,hex:ec,email:ec,required:Sj,any:uj};var Ja=(function(){function e(t){Bt(this,e),H(this,"rules",null),H(this,"_messages",qu),this.define(t)}return Dt(e,[{key:"define",value:function(t){var r=this;if(!t)throw new Error("Cannot configure a schema with no rules");if($e(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(n){var o=t[n];r.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=dv(Wu(),t)),this._messages}},{key:"validate",value:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,i=n,s=o;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function l(d){var p=[],h={};function v(b){if(Array.isArray(b)){var y;p=(y=p).concat.apply(y,Se(b))}else p.push(b)}for(var g=0;g<d.length;g++)v(d[g]);p.length?(h=Gu(p),s(p,h)):s(null,a)}if(i.messages){var c=this.messages();c===qu&&(c=Wu()),dv(c,i.messages),i.messages=c}else i.messages=this.messages();var u={},f=i.keys||Object.keys(this.rules);return f.forEach(function(d){var p=r.rules[d],h=a[d];p.forEach(function(v){var g=v;typeof g.transform=="function"&&(a===t&&(a=K({},a)),h=a[d]=g.transform(h),h!=null&&(g.type=g.type||(Array.isArray(h)?"array":$e(h)))),typeof g=="function"?g={validator:g}:g=K({},g),g.validator=r.getValidationMethod(g),g.validator&&(g.field=d,g.fullField=g.fullField||d,g.type=r.getType(g),u[d]=u[d]||[],u[d].push({rule:g,value:h,source:a,field:d}))})}),tj(u,i,function(d,p){var h=d.rule,v=(h.type==="object"||h.type==="array")&&($e(h.fields)==="object"||$e(h.defaultField)==="object");v=v&&(h.required||!h.required&&d.value),h.field=d.field;function g(x,E){return K(K({},E),{},{fullField:"".concat(h.fullField,".").concat(x),fullFields:h.fullFields?[].concat(Se(h.fullFields),[x]):[x]})}function b(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(x)?x:[x];!i.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&h.message!==void 0&&(E=[].concat(h.message));var w=E.map(fv(h,a));if(i.first&&w.length)return p(w);if(!v)p(w);else{if(h.required&&!d.value)return h.message!==void 0?w=[].concat(h.message).map(fv(h,a)):i.error&&(w=[i.error(h,or(i.messages.required,h.field))]),p(w);var $={};h.defaultField&&Object.keys(d.value).map(function(M){$[M]=h.defaultField}),$=K(K({},$),d.rule.fields);var O={};Object.keys($).forEach(function(M){var T=$[M],I=Array.isArray(T)?T:[T];O[M]=I.map(g.bind(null,M))});var P=new e(O);P.messages(i.messages),d.rule.options&&(d.rule.options.messages=i.messages,d.rule.options.error=i.error),P.validate(d.value,d.rule.options||i,function(M){var T=[];w&&w.length&&T.push.apply(T,Se(w)),M&&M.length&&T.push.apply(T,Se(M)),p(T.length?T:null)})}}var y;if(h.asyncValidator)y=h.asyncValidator(h,d.value,b,d.source,i);else if(h.validator){try{y=h.validator(h,d.value,b,d.source,i)}catch(x){var C,S;(C=(S=console).error)===null||C===void 0||C.call(S,x),i.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}y===!0?b():y===!1?b(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):y instanceof Array?b(y):y instanceof Error&&b(y.message)}y&&y.then&&y.then(function(){return b()},function(x){return b(x)})},function(d){l(d)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!fa.hasOwnProperty(t.type))throw new Error(or("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var r=Object.keys(t),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?fa.required:fa[this.getType(t)]||void 0}}]),e})();H(Ja,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");fa[e]=t});H(Ja,"warning",YT);H(Ja,"messages",qu);H(Ja,"validators",fa);var rr="'${name}' is not a valid ${type}",Ky={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:rr,method:rr,array:rr,object:rr,number:rr,date:rr,boolean:rr,integer:rr,float:rr,regexp:rr,email:rr,url:rr,hex:rr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},gv=Ja;function $j(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var vv="CODE_LOGIC_ERROR";function Xu(e,t,r,n,o){return Ku.apply(this,arguments)}function Ku(){return Ku=Xa(wr().mark(function e(t,r,n,o,a){var i,s,l,c,u,f,d,p,h;return wr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return i=K({},n),delete i.ruleIndex,gv.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(vv)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new gv(H({},t,[i])),u=mo(Ky,o.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(H({},t,r),K({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(g,b){var y=g.message,C=y===vv?u.default:y;return m.isValidElement(C)?m.cloneElement(C,{key:"error_".concat(b)}):C}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(r.map(function(g,b){return Xu("".concat(t,".").concat(b),g,l,o,a)}));case 21:return d=v.sent,v.abrupt("return",d.reduce(function(g,b){return[].concat(Se(g),Se(b))},[]));case 23:return p=K(K({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),h=f.map(function(g){return typeof g=="string"?$j(g,p):g}),v.abrupt("return",h);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Ku.apply(this,arguments)}function Oj(e,t,r,n,o,a){var i=e.join("."),s=r.map(function(u,f){var d=u.validator,p=K(K({},u),{},{ruleIndex:f});return d&&(p.validator=function(h,v,g){var b=!1,y=function(){for(var S=arguments.length,x=new Array(S),E=0;E<S;E++)x[E]=arguments[E];Promise.resolve().then(function(){ir(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,x)})},C=d(h,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",ir(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){g()}).catch(function(S){g(S||" ")})}),p}).sort(function(u,f){var d=u.warningOnly,p=u.ruleIndex,h=f.warningOnly,v=f.ruleIndex;return!!d==!!h?p-v:d?1:-1}),l;if(o===!0)l=new Promise((function(){var u=Xa(wr().mark(function f(d,p){var h,v,g;return wr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<s.length)){b.next=12;break}return v=s[h],b.next=5,Xu(i,t,v,n,a);case 5:if(g=b.sent,!g.length){b.next=9;break}return p([{errors:g,rule:v}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:d([]);case 13:case"end":return b.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return Xu(i,t,u,n,a).then(function(f){return{errors:f,rule:u}})});l=(o?Fj(c):Pj(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function Pj(e){return Zu.apply(this,arguments)}function Zu(){return Zu=Xa(wr().mark(function e(t){return wr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(n){var o,a=(o=[]).concat.apply(o,Se(n));return a}));case 1:case"end":return r.stop()}},e)})),Zu.apply(this,arguments)}function Fj(e){return Yu.apply(this,arguments)}function Yu(){return Yu=Xa(wr().mark(function e(t){var r;return wr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=0,n.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(i){i.errors.length&&o([i]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),Yu.apply(this,arguments)}function ft(e){return Vu(e)}function hv(e,t){var r={};return t.forEach(function(n){var o=Dr(e,n);r=Fr(r,n,o)}),r}function bo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Zy(t,n,r)})}function Zy(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function Mj(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||$e(e)!=="object"||$e(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return Se(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function Rj(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&$e(t.target)==="object"&&e in t.target?t.target[e]:t}function pv(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(Se(e.slice(0,r)),[o],Se(e.slice(r,t)),Se(e.slice(t+1,n))):a<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,r+1)),[o],Se(e.slice(r+1,n))):e}var Aj=["name"],gr=[];function tc(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var ad=(function(e){No(r,e);var t=Lo(r);function r(n){var o;if(Bt(this,r),o=t.call(this,n),H(Re(o),"state",{resetCount:0}),H(Re(o),"cancelRegisterFunc",null),H(Re(o),"mounted",!1),H(Re(o),"touched",!1),H(Re(o),"dirty",!1),H(Re(o),"validatePromise",void 0),H(Re(o),"prevValidating",void 0),H(Re(o),"errors",gr),H(Re(o),"warnings",gr),H(Re(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,ft(f)),o.cancelRegisterFunc=null}),H(Re(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(Se(d),Se(c)):[]}),H(Re(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),H(Re(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),H(Re(o),"metaCache",null),H(Re(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=K(K({},o.getMeta()),{},{destroy:l});au(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),H(Re(o),"onStoreChange",function(l,c,u){var f=o.props,d=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,v=f.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(g),S=c&&bo(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!au(y,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=gr,o.warnings=gr,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(d&&tc(d,l,g,y,C,u)){o.reRender();return}break}case"setField":{var x=u.data;if(S){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||gr),"warnings"in x&&(o.warnings=x.warnings||gr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&bo(c,b,!0)){o.reRender();return}if(d&&!b.length&&tc(d,l,g,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(ft);if(E.some(function(w){return bo(u.relatedFields,w)})){o.reRender();return}break}default:if(S||(!h.length||b.length||d)&&tc(d,l,g,y,C,u)){o.reRender();return}break}d===!0&&o.reRender()}),H(Re(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},d=f.triggerName,p=f.validateOnly,h=p===void 0?!1:p,v=Promise.resolve().then(Xa(wr().mark(function g(){var b,y,C,S,x,E,w;return wr().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(o.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,S=b.messageVariables,x=b.validateDebounce,E=o.getRules(),d&&(E=E.filter(function(O){return O}).filter(function(O){var P=O.validateTrigger;if(!P)return!0;var M=Vu(P);return M.includes(d)})),!(x&&d)){$.next=10;break}return $.next=8,new Promise(function(O){setTimeout(O,x)});case 8:if(o.validatePromise===v){$.next=10;break}return $.abrupt("return",[]);case 10:return w=Oj(c,u,E,l,C,S),w.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr;if(o.validatePromise===v){var P;o.validatePromise=null;var M=[],T=[];(P=O.forEach)===null||P===void 0||P.call(O,function(I){var R=I.rule.warningOnly,j=I.errors,F=j===void 0?gr:j;R?T.push.apply(T,Se(F)):M.push.apply(M,Se(F))}),o.errors=M,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),$.abrupt("return",w);case 13:case"end":return $.stop()}},g)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),o.reRender()),v}),H(Re(o),"isFieldValidating",function(){return!!o.validatePromise}),H(Re(o),"isFieldTouched",function(){return o.touched}),H(Re(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(zn),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),H(Re(o),"getErrors",function(){return o.errors}),H(Re(o),"getWarnings",function(){return o.warnings}),H(Re(o),"isListField",function(){return o.props.isListField}),H(Re(o),"isList",function(){return o.props.isList}),H(Re(o),"isPreserve",function(){return o.props.preserve}),H(Re(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),H(Re(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return K(K({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Hu(l);return u.length!==1||!m.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),H(Re(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Dr(l||c(!0),u)}),H(Re(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,p=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,b=c.fieldContext,y=d!==void 0?d:b.validateTrigger,C=o.getNamePath(),S=b.getInternalHooks,x=b.getFieldsValue,E=S(zn),w=E.dispatch,$=o.getValue(),O=g||function(R){return H({},v,R)},P=l[f],M=u!==void 0?O($):{},T=K(K({},l),M);T[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,j=arguments.length,F=new Array(j),A=0;A<j;A++)F[A]=arguments[A];p?R=p.apply(void 0,F):R=Rj.apply(void 0,[v].concat(F)),h&&(R=h(R,$,x(!0))),R!==$&&w({type:"updateValue",namePath:C,value:R}),P&&P.apply(void 0,F)};var I=Vu(y||[]);return I.forEach(function(R){var j=T[R];T[R]=function(){j&&j.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&w({type:"validateField",namePath:C,triggerName:R})}}),T}),n.fieldContext){var a=n.fieldContext.getInternalHooks,i=a(zn),s=i.initEntityValue;s(Re(o))}return o}return Dt(r,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var i=a.getInternalHooks,s=i(zn),l=s.registerField;this.cancelRegisterFunc=l(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),i=a.child,s=a.isFunction,l;return s?l=i:m.isValidElement(i)?l=m.cloneElement(i,this.getControlled(i.props)):(ir(!i,"`children` of Field is not validate ReactElement."),l=i),m.createElement(m.Fragment,{key:n},l)}}]),r})(m.Component);H(ad,"contextType",Fo);H(ad,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Yy(e){var t,r=e.name,n=Cn(e,Aj),o=m.useContext(Fo),a=m.useContext(ds),i=r!==void 0?ft(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),m.createElement(ad,Xn({key:l,name:i,isListField:s},n,{fieldContext:o}))}function Tj(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=m.useContext(Fo),l=m.useContext(ds),c=m.useRef({keys:[],id:0}),u=c.current,f=m.useMemo(function(){var v=ft(s.prefixName)||[];return[].concat(Se(v),Se(ft(t)))},[s.prefixName,t]),d=m.useMemo(function(){return K(K({},s),{},{prefixName:f})},[s,f]),p=m.useMemo(function(){return{getKey:function(v){var g=f.length,b=v[g];return[u.keys[b],v.slice(g+1)]}}},[f]);if(typeof n!="function")return ir(!1,"Form.List only accepts function as children."),null;var h=function(v,g,b){var y=b.source;return y==="internal"?!1:v!==g};return m.createElement(ds.Provider,{value:p},m.createElement(Fo.Provider,{value:d},m.createElement(Yy,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:i??!!l},function(v,g){var b=v.value,y=b===void 0?[]:b,C=v.onChange,S=s.getFieldValue,x=function(){var $=S(f||[]);return $||[]},E={add:function($,O){var P=x();O>=0&&O<=P.length?(u.keys=[].concat(Se(u.keys.slice(0,O)),[u.id],Se(u.keys.slice(O))),C([].concat(Se(P.slice(0,O)),[$],Se(P.slice(O))))):(u.keys=[].concat(Se(u.keys),[u.id]),C([].concat(Se(P),[$]))),u.id+=1},remove:function($){var O=x(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(u.keys=u.keys.filter(function(M,T){return!P.has(T)}),C(O.filter(function(M,T){return!P.has(T)})))},move:function($,O){if($!==O){var P=x();$<0||$>=P.length||O<0||O>=P.length||(u.keys=pv(u.keys,$,O),C(pv(P,$,O)))}}},w=y||[];return Array.isArray(w)||(w=[]),n(w.map(function($,O){var P=u.keys[O];return P===void 0&&(u.keys[O]=u.id,P=u.keys[O],u.id+=1),{name:O,key:P,isListField:!0}}),E,g)})))}function jj(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var Qy="__@field_split__";function rc(e){return e.map(function(t){return"".concat($e(t),":").concat(t)}).join(Qy)}var lo=(function(){function e(){Bt(this,e),H(this,"kvs",new Map)}return Dt(e,[{key:"set",value:function(t,r){this.kvs.set(rc(t),r)}},{key:"get",value:function(t){return this.kvs.get(rc(t))}},{key:"update",value:function(t,r){var n=this.get(t),o=r(n);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(rc(t))}},{key:"map",value:function(t){return Se(this.kvs.entries()).map(function(r){var n=Oe(r,2),o=n[0],a=n[1],i=o.split(Qy);return t({key:i.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=Oe(l,3),u=c[1],f=c[2];return u==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(r){var n=r.key,o=r.value;return t[n.join(".")]=o,null}),t}}]),e})(),Ij=["name"],_j=Dt(function e(t){var r=this;Bt(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),H(this,"getInternalHooks",function(n){return n===zn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ir(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(n){r.subscribable=n}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=mo(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Fr(i,l,Dr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),H(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new lo;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),H(this,"getInitialValue",function(n){var o=Dr(r.initialValues,n);return n.length?mo(o):o}),H(this,"setCallbacks",function(n){r.callbacks=n}),H(this,"setValidateMessages",function(n){r.validateMessages=n}),H(this,"setPreserve",function(n){r.preserve=n}),H(this,"watchList",[]),H(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),H(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){}),H(this,"updateStore",function(n){r.store=n}),H(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),H(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new lo;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),H(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=ft(a);return o.get(i)||{INVALIDATE_NAME_PATH:ft(a)}})}),H(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&$e(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,d,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!a&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!i)c.push(p);else{var g="getMeta"in u?u.getMeta():null;i(g)&&c.push(p)}}),hv(r.store,c.map(ft))}),H(this,"getFieldValue",function(n){r.warningUnhooked();var o=ft(n);return Dr(r.store,o)}),H(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ft(n[i]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(n){r.warningUnhooked();var o=ft(n),a=r.getFieldsError([o])[0];return a.errors}),H(this,"getFieldWarning",function(n){r.warningUnhooked();var o=ft(n),a=r.getFieldsError([o])[0];return a.warnings}),H(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(ft),c=!1):(l=null,c=i):(l=i.map(ft),c=s);var u=r.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(v){return f(v)||v.isList()}):u.some(f);var d=new lo;l.forEach(function(v){d.set(v,[])}),u.forEach(function(v){var g=v.getNamePath();l.forEach(function(b){b.every(function(y,C){return g[C]===y})&&d.update(b,function(y){return[].concat(Se(y),[v])})})});var p=function(v){return v.some(f)},h=d.map(function(v){var g=v.value;return g});return c?h.every(p):h.some(p)}),H(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),H(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(i){return i.isFieldValidating()});var a=n.map(ft);return o.some(function(i){var s=i.getNamePath();return bo(a,s)&&i.isFieldValidating()})}),H(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),H(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new lo,a=r.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(l){l.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var f=c.getNamePath(),d=r.getInitialValue(f);if(d!==void 0)ir(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var p=o.get(f);if(p&&p.size>1)ir(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var h=r.getFieldValue(f),v=c.isListField();!v&&(!n.skipExist||h===void 0)&&r.updateStore(Fr(r.store,f,Se(p)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Se(Se(c).map(function(f){return f.entity})))}})):s=a,i(s)}),H(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(mo(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(ft);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(Fr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),H(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=Cn(i,Ij),c=ft(s);a.push(c),"value"in l&&r.updateStore(Fr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:i})}),r.notifyWatch(a)}),H(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=K(K({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),H(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=Dr(r.store,a);i===void 0&&r.updateStore(Fr(r.store,a,o))}}),H(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),H(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!Zy(f.getNamePath(),o)})){var u=r.store;r.updateStore(Fr(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),H(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),H(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=K(K({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Se(a))}),a}),H(this,"updateValue",function(n,o){var a=ft(n),i=r.store;r.updateStore(Fr(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var c=hv(r.store,[a]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(Se(s)))}),H(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=mo(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),H(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new lo;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ft(u);i.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(a.push(d),l(d))}})};return s(n),a}),H(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new lo;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return bo(n,u)});l.length&&a(l,i)}}),H(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(ft):[],c=[],u=String(Date.now()),f=new Set,d=i||{},p=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var C=y.getNamePath();if(f.add(C.join(u)),!s||bo(l,C,p)){var S=y.validateRules(K({validateMessages:K(K({},Ky),r.validateMessages)},i));c.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var E,w=[],$=[];return(E=x.forEach)===null||E===void 0||E.call(x,function(O){var P=O.rule.warningOnly,M=O.errors;P?$.push.apply($,Se(M)):w.push.apply(w,Se(M))}),w.length?Promise.reject({name:C,errors:w,warnings:$}):{name:C,errors:w,warnings:$}}))}}});var v=jj(c);r.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function(S){var x=S.name;return x});r.notifyObservers(r.store,C,{type:"validateFinish"}),r.triggerOnFieldsChange(C,y)});var g=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:C,outOfDate:r.lastValidatePromise!==v})});g.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return r.triggerOnFieldsChange(b),g}),H(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Jy(e){var t=m.useRef(),r=m.useState({}),n=Oe(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new _j(a);t.current=i.getForm()}return[t.current]}var Qu=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),kj=function(e){var t=e.validateMessages,r=e.onFormChange,n=e.onFormFinish,o=e.children,a=m.useContext(Qu),i=m.useRef({});return m.createElement(Qu.Provider,{value:K(K({},a),{},{validateMessages:K(K({},a.validateMessages),t),triggerFormChange:function(s,l){r&&r(s,{changedFields:l,forms:i.current}),a.triggerFormChange(s,l)},triggerFormFinish:function(s,l){n&&n(s,{values:l,forms:i.current}),a.triggerFormFinish(s,l)},registerForm:function(s,l){s&&(i.current=K(K({},i.current),{},H({},s,l))),a.registerForm(s,l)},unregisterForm:function(s){var l=K({},i.current);delete l[s],i.current=l,a.unregisterForm(s)}})},o)},Nj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Lj=function(e,t){var r=e.name,n=e.initialValues,o=e.fields,a=e.form,i=e.preserve,s=e.children,l=e.component,c=l===void 0?"form":l,u=e.validateMessages,f=e.validateTrigger,d=f===void 0?"onChange":f,p=e.onValuesChange,h=e.onFieldsChange,v=e.onFinish,g=e.onFinishFailed,b=e.clearOnDestroy,y=Cn(e,Nj),C=m.useRef(null),S=m.useContext(Qu),x=Jy(a),E=Oe(x,1),w=E[0],$=w.getInternalHooks(zn),O=$.useSubscribe,P=$.setInitialValues,M=$.setCallbacks,T=$.setValidateMessages,I=$.setPreserve,R=$.destroyForm;m.useImperativeHandle(t,function(){return K(K({},w),{},{nativeElement:C.current})}),m.useEffect(function(){return S.registerForm(r,w),function(){S.unregisterForm(r)}},[S,w,r]),T(K(K({},S.validateMessages),u)),M({onValuesChange:p,onFieldsChange:function(L){if(S.triggerFormChange(r,L),h){for(var V=arguments.length,B=new Array(V>1?V-1:0),z=1;z<V;z++)B[z-1]=arguments[z];h.apply(void 0,[L].concat(B))}},onFinish:function(L){S.triggerFormFinish(r,L),v&&v(L)},onFinishFailed:g}),I(i);var j=m.useRef(null);P(n,!j.current),j.current||(j.current=!0),m.useEffect(function(){return function(){return R(b)}},[]);var F,A=typeof s=="function";if(A){var _=w.getFieldsValue(!0);F=s(_,w)}else F=s;O(!A);var N=m.useRef();m.useEffect(function(){Mj(N.current||[],o||[])||w.setFields(o||[]),N.current=o},[o,w]);var W=m.useMemo(function(){return K(K({},w),{},{validateTrigger:d})},[w,d]),U=m.createElement(ds.Provider,{value:null},m.createElement(Fo.Provider,{value:W},F));return c===!1?U:m.createElement(c,Xn({},y,{ref:C,onSubmit:function(L){L.preventDefault(),L.stopPropagation(),w.submit()},onReset:function(L){var V;L.preventDefault(),w.resetFields(),(V=y.onReset)===null||V===void 0||V.call(y,L)}}),U)};function yv(e){try{return JSON.stringify(e)}catch{return Math.random()}}function zj(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=o===void 0?{}:o,i=GT(a)?{form:a}:a,s=i.form,l=Kr(),c=Oe(l,2),u=c[0],f=c[1],d=da(function(){return yv(u)},[u]),p=Ne(d);p.current=d;var h=rt(Fo),v=s||h,g=v&&v._init,b=ft(n),y=Ne(b);return y.current=b,bt(function(){if(g){var C=v.getFieldsValue,S=v.getInternalHooks,x=S(zn),E=x.registerWatch,w=function(P,M){var T=i.preserve?M:P;return typeof n=="function"?n(T):Dr(T,y.current)},$=E(function(P,M){var T=w(P,M),I=yv(T);p.current!==I&&(p.current=I,f(T))}),O=w(C(),C(!0));return u!==O&&f(O),$}},[g]),u}var Bj=m.forwardRef(Lj),ei=Bj;ei.FormProvider=kj;ei.Field=Yy;ei.List=Tj;ei.useForm=Jy;ei.useWatch=zj;const Dj=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
411
|
+
`;document.head.appendChild(f0);function Lc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return be.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Lc(r)):oh(r)&&r.props?n=n.concat(Lc(r.props.children,t)):n.push(r))}),n}var Ur="RC_FORM_INTERNAL_HOOKS",Mt=function(){zn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ma=f.createContext({getFieldValue:Mt,getFieldsValue:Mt,getFieldError:Mt,getFieldWarning:Mt,getFieldsError:Mt,isFieldsTouched:Mt,isFieldTouched:Mt,isFieldValidating:Mt,isFieldsValidating:Mt,resetFields:Mt,setFields:Mt,setFieldValue:Mt,setFieldsValue:Mt,validateFields:Mt,submit:Mt,getInternalHooks:function(){return Mt(),{dispatch:Mt,initEntityValue:Mt,registerField:Mt,useSubscribe:Mt,setInitialValues:Mt,destroyForm:Mt,setCallbacks:Mt,registerWatch:Mt,getFields:Mt,setValidateMessages:Mt,setPreserve:Mt,getInitialValue:Mt}}}),Zi=f.createContext(null);function zc(e){return e==null?[]:Array.isArray(e)?e:[e]}function kM(e){return e&&!!e._init}function Hc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Vc=Hc();function IM(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function OM(e,t,n){if(Hu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Co(a,n.prototype),a}function Kc(e){var t=typeof Map=="function"?new Map:void 0;return Kc=function(n){if(n===null||!IM(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return OM(n,arguments,wo(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Co(r,n)},Kc(e)}var NM=/%[sdj%]/g,DM=function(){};function Wc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ln(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(NM,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function MM(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function on(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||MM(t)&&typeof e=="string"&&!e)}function FM(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,at(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function zm(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<a?t(e[s],o):n([])}o([])}function PM(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,at(e[n]||[]))}),t}var Hm=(function(e){Ta(n,e);var t=_a(n);function n(r,a){var o;return On(this,n),o=t.call(this,"Async Validation Error"),te(xt(o),"errors",void 0),te(xt(o),"fields",void 0),o.errors=r,o.fields=a,o}return Nn(n)})(Kc(Error));function jM(e,t,n,r,a){if(t.first){var o=new Promise(function(g,h){var v=function(p){return r(p),p.length?h(new Hm(p,Wc(p))):g(a)},m=PM(e);zm(m,n,v)});return o.catch(function(g){return g}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(g,h){var v=function(m){if(u.push.apply(u,m),c++,c===l)return r(u),u.length?h(new Hm(u,Wc(u))):g(a)};s.length||(r(u),g(a)),s.forEach(function(m){var p=e[m];i.indexOf(m)!==-1?zm(p,n,v):FM(p,n,v)})});return d.catch(function(g){return g}),d}function RM(e){return!!(e&&e.message!==void 0)}function AM(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Vm(e,t){return function(n){var r;return e.fullFields?r=AM(t,e.fullFields):r=t[n.field||e.fullField],RM(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Km(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];mt(r)==="object"&&mt(e[n])==="object"?e[n]=ve(ve({},e[n]),r):e[n]=r}}return e}var ha="enum",TM=function(e,t,n,r,a){e[ha]=Array.isArray(e[ha])?e[ha]:[],e[ha].indexOf(t)===-1&&r.push(Ln(a.messages[ha],e.fullField,e[ha].join(", ")))},_M=function(e,t,n,r,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ln(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(t)||r.push(Ln(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},BM=function(e,t,n,r,a){var o=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,d=typeof t=="number",g=typeof t=="string",h=Array.isArray(t);if(d?u="number":g?u="string":h&&(u="array"),!u)return!1;h&&(c=t.length),g&&(c=t.replace(l,"_").length),o?c!==e.len&&r.push(Ln(a.messages[u].len,e.fullField,e.len)):i&&!s&&c<e.min?r.push(Ln(a.messages[u].min,e.fullField,e.min)):s&&!i&&c>e.max?r.push(Ln(a.messages[u].max,e.fullField,e.max)):i&&s&&(c<e.min||c>e.max)&&r.push(Ln(a.messages[u].range,e.fullField,e.min,e.max))},m0=function(e,t,n,r,a,o){e.required&&(!n.hasOwnProperty(e.field)||on(t,o||e.type))&&r.push(Ln(a.messages.required,e.fullField))},fi;const LM=(function(){if(fi)return fi;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(i).concat(t(C),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var d="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,v=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(d,"|www\\.)").concat(g,"(?:localhost|").concat(h,"|").concat(v,"|").concat(m).concat(p).concat(b,")").concat(y).concat(x);return fi=new RegExp("(?:^".concat(w,"$)"),"i"),fi});var Wm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},lo={integer:function(e){return lo.number(e)&&parseInt(e,10)===e},float:function(e){return lo.number(e)&&!lo.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return mt(e)==="object"&&!lo.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Wm.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(LM())},hex:function(e){return typeof e=="string"&&!!e.match(Wm.hex)}},zM=function(e,t,n,r,a){if(e.required&&t===void 0){m0(e,t,n,r,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;o.indexOf(i)>-1?lo[i](t)||r.push(Ln(a.messages.types[i],e.fullField,e.type)):i&&mt(t)!==e.type&&r.push(Ln(a.messages.types[i],e.fullField,e.type))},HM=function(e,t,n,r,a){(/^\s+$/.test(t)||t==="")&&r.push(Ln(a.messages.whitespace,e.fullField))};const $t={required:m0,whitespace:HM,type:zM,range:BM,enum:TM,pattern:_M};var VM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a)}n(o)},KM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();$t.required(e,t,r,o,a,"array"),t!=null&&($t.type(e,t,r,o,a),$t.range(e,t,r,o,a))}n(o)},WM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&$t.type(e,t,r,o,a)}n(o)},qM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t,"date")&&!e.required)return n();if($t.required(e,t,r,o,a),!on(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),$t.type(e,s,r,o,a),s&&$t.range(e,s.getTime(),r,o,a)}}n(o)},UM="enum",YM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&$t[UM](e,t,r,o,a)}n(o)},GM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&($t.type(e,t,r,o,a),$t.range(e,t,r,o,a))}n(o)},XM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&($t.type(e,t,r,o,a),$t.range(e,t,r,o,a))}n(o)},JM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&$t.type(e,t,r,o,a)}n(o)},QM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&($t.type(e,t,r,o,a),$t.range(e,t,r,o,a))}n(o)},ZM=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),t!==void 0&&$t.type(e,t,r,o,a)}n(o)},eF=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t,"string")&&!e.required)return n();$t.required(e,t,r,o,a),on(t,"string")||$t.pattern(e,t,r,o,a)}n(o)},tF=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t)&&!e.required)return n();$t.required(e,t,r,o,a),on(t)||$t.type(e,t,r,o,a)}n(o)},nF=function(e,t,n,r,a){var o=[],i=Array.isArray(t)?"array":mt(t);$t.required(e,t,r,o,a,i),n(o)},rF=function(e,t,n,r,a){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(on(t,"string")&&!e.required)return n();$t.required(e,t,r,o,a,"string"),on(t,"string")||($t.type(e,t,r,o,a),$t.range(e,t,r,o,a),$t.pattern(e,t,r,o,a),e.whitespace===!0&&$t.whitespace(e,t,r,o,a))}n(o)},Sl=function(e,t,n,r,a){var o=e.type,i=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(on(t,o)&&!e.required)return n();$t.required(e,t,r,i,a,o),on(t,o)||$t.type(e,t,r,i,a)}n(i)};const go={string:rF,method:JM,number:QM,boolean:WM,regexp:tF,integer:XM,float:GM,array:KM,object:ZM,enum:YM,pattern:eF,date:qM,url:Sl,hex:Sl,email:Sl,required:nF,any:VM};var qo=(function(){function e(t){On(this,e),te(this,"rules",null),te(this,"_messages",Vc),this.define(t)}return Nn(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(mt(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(r){var a=t[r];n.rules[r]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(t){return t&&(this._messages=Km(Hc(),t)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=t,i=r,s=a;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,o),Promise.resolve(o);function l(g){var h=[],v={};function m(b){if(Array.isArray(b)){var y;h=(y=h).concat.apply(y,at(b))}else h.push(b)}for(var p=0;p<g.length;p++)m(g[p]);h.length?(v=Wc(h),s(h,v)):s(null,o)}if(i.messages){var c=this.messages();c===Vc&&(c=Hc()),Km(c,i.messages),i.messages=c}else i.messages=this.messages();var u={},d=i.keys||Object.keys(this.rules);return d.forEach(function(g){var h=n.rules[g],v=o[g];h.forEach(function(m){var p=m;typeof p.transform=="function"&&(o===t&&(o=ve({},o)),v=o[g]=p.transform(v),v!=null&&(p.type=p.type||(Array.isArray(v)?"array":mt(v)))),typeof p=="function"?p={validator:p}:p=ve({},p),p.validator=n.getValidationMethod(p),p.validator&&(p.field=g,p.fullField=p.fullField||g,p.type=n.getType(p),u[g]=u[g]||[],u[g].push({rule:p,value:v,source:o,field:g}))})}),jM(u,i,function(g,h){var v=g.rule,m=(v.type==="object"||v.type==="array")&&(mt(v.fields)==="object"||mt(v.defaultField)==="object");m=m&&(v.required||!v.required&&g.value),v.field=g.field;function p(C,S){return ve(ve({},S),{},{fullField:"".concat(v.fullField,".").concat(C),fullFields:v.fullFields?[].concat(at(v.fullFields),[C]):[C]})}function b(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=Array.isArray(C)?C:[C];!i.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&v.message!==void 0&&(S=[].concat(v.message));var E=S.map(Vm(v,o));if(i.first&&E.length)return h(E);if(!m)h(E);else{if(v.required&&!g.value)return v.message!==void 0?E=[].concat(v.message).map(Vm(v,o)):i.error&&(E=[i.error(v,Ln(i.messages.required,v.field))]),h(E);var k={};v.defaultField&&Object.keys(g.value).map(function(D){k[D]=v.defaultField}),k=ve(ve({},k),g.rule.fields);var $={};Object.keys(k).forEach(function(D){var P=k[D],R=Array.isArray(P)?P:[P];$[D]=R.map(p.bind(null,D))});var O=new e($);O.messages(i.messages),g.rule.options&&(g.rule.options.messages=i.messages,g.rule.options.error=i.error),O.validate(g.value,g.rule.options||i,function(D){var P=[];E&&E.length&&P.push.apply(P,at(E)),D&&D.length&&P.push.apply(P,at(D)),h(P.length?P:null)})}}var y;if(v.asyncValidator)y=v.asyncValidator(v,g.value,b,g.source,i);else if(v.validator){try{y=v.validator(v,g.value,b,g.source,i)}catch(C){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,C),i.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}y===!0?b():y===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):y instanceof Array?b(y):y instanceof Error&&b(y.message)}y&&y.then&&y.then(function(){return b()},function(C){return b(C)})},function(g){l(g)},o)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!go.hasOwnProperty(t.type))throw new Error(Ln("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?go.required:go[this.getType(t)]||void 0}}]),e})();te(qo,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");go[e]=t});te(qo,"warning",DM);te(qo,"messages",Vc);te(qo,"validators",go);var Bn="'${name}' is not a valid ${type}",p0={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Bn,method:Bn,array:Bn,object:Bn,number:Bn,date:Bn,boolean:Bn,integer:Bn,float:Bn,regexp:Bn,email:Bn,url:Bn,hex:Bn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},qm=qo;function aF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Um="CODE_LOGIC_ERROR";function qc(e,t,n,r,a){return Uc.apply(this,arguments)}function Uc(){return Uc=fa(En().mark(function e(t,n,r,a,o){var i,s,l,c,u,d,g,h,v;return En().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=ve({},r),delete i.ruleIndex,qm.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(Um)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new qm(te({},t,[i])),u=xa(p0,a.validateMessages),c.messages(u),d=[],m.prev=10,m.next=13,Promise.resolve(c.validate(te({},t,n),ve({},a)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(d=m.t0.errors.map(function(p,b){var y=p.message,x=y===Um?u.default:y;return f.isValidElement(x)?f.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!d.length&&l)){m.next=23;break}return m.next=21,Promise.all(n.map(function(p,b){return qc("".concat(t,".").concat(b),p,l,a,o)}));case 21:return g=m.sent,m.abrupt("return",g.reduce(function(p,b){return[].concat(at(p),at(b))},[]));case 23:return h=ve(ve({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),v=d.map(function(p){return typeof p=="string"?aF(p,h):p}),m.abrupt("return",v);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),Uc.apply(this,arguments)}function oF(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(u,d){var g=u.validator,h=ve(ve({},u),{},{ruleIndex:d});return g&&(h.validator=function(v,m,p){var b=!1,y=function(){for(var w=arguments.length,C=new Array(w),S=0;S<w;S++)C[S]=arguments[S];Promise.resolve().then(function(){zn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,C)})},x=g(v,m,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",zn(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){p()}).catch(function(w){p(w||" ")})}),h}).sort(function(u,d){var g=u.warningOnly,h=u.ruleIndex,v=d.warningOnly,m=d.ruleIndex;return!!g==!!v?h-m:g?1:-1}),l;if(a===!0)l=new Promise((function(){var u=fa(En().mark(function d(g,h){var v,m,p;return En().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:v=0;case 1:if(!(v<s.length)){b.next=12;break}return m=s[v],b.next=5,qc(i,t,m,r,o);case 5:if(p=b.sent,!p.length){b.next=9;break}return h([{errors:p,rule:m}]),b.abrupt("return");case 9:v+=1,b.next=1;break;case 12:g([]);case 13:case"end":return b.stop()}},d)}));return function(d,g){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return qc(i,t,u,r,o).then(function(d){return{errors:d,rule:u}})});l=(a?sF(c):iF(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function iF(e){return Yc.apply(this,arguments)}function Yc(){return Yc=fa(En().mark(function e(t){return En().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var a,o=(a=[]).concat.apply(a,at(r));return o}));case 1:case"end":return n.stop()}},e)})),Yc.apply(this,arguments)}function sF(e){return Gc.apply(this,arguments)}function Gc(){return Gc=fa(En().mark(function e(t){var n;return En().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(i){i.errors.length&&a([i]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return r.stop()}},e)})),Gc.apply(this,arguments)}function Gt(e){return zc(e)}function Ym(e,t){var n={};return t.forEach(function(r){var a=dr(e,r);n=Jn(n,r,a)}),n}function ka(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return g0(t,r,n)})}function g0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function lF(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return at(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function cF(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function Gm(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(at(e.slice(0,n)),[a],at(e.slice(n,t)),at(e.slice(t+1,r))):o<0?[].concat(at(e.slice(0,t)),at(e.slice(t+1,n+1)),[a],at(e.slice(n+1,r))):e}var uF=["name"],qn=[];function $l(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var ad=(function(e){Ta(n,e);var t=_a(n);function n(r){var a;if(On(this,n),a=t.call(this,r),te(xt(a),"state",{resetCount:0}),te(xt(a),"cancelRegisterFunc",null),te(xt(a),"mounted",!1),te(xt(a),"touched",!1),te(xt(a),"dirty",!1),te(xt(a),"validatePromise",void 0),te(xt(a),"prevValidating",void 0),te(xt(a),"errors",qn),te(xt(a),"warnings",qn),te(xt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,d=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,Gt(d)),a.cancelRegisterFunc=null}),te(xt(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,d=u.prefixName,g=d===void 0?[]:d;return c!==void 0?[].concat(at(g),at(c)):[]}),te(xt(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(g){return typeof g=="function"?g(d):g})}),te(xt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),te(xt(a),"metaCache",null),te(xt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=ve(ve({},a.getMeta()),{},{destroy:l});nc(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),te(xt(a),"onStoreChange",function(l,c,u){var d=a.props,g=d.shouldUpdate,h=d.dependencies,v=h===void 0?[]:h,m=d.onReset,p=u.store,b=a.getNamePath(),y=a.getValue(l),x=a.getValue(p),w=c&&ka(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!nc(y,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=qn,a.warnings=qn,a.triggerMetaEvent()),u.type){case"reset":if(!c||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=qn,a.warnings=qn,a.triggerMetaEvent(),m==null||m(),a.refresh();return}break;case"remove":{if(g&&$l(g,l,p,y,x,u)){a.reRender();return}break}case"setField":{var C=u.data;if(w){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||qn),"warnings"in C&&(a.warnings=C.warnings||qn),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&ka(c,b,!0)){a.reRender();return}if(g&&!b.length&&$l(g,l,p,y,x,u)){a.reRender();return}break}case"dependenciesUpdate":{var S=v.map(Gt);if(S.some(function(E){return ka(u.relatedFields,E)})){a.reRender();return}break}default:if(w||(!v.length||b.length||g)&&$l(g,l,p,y,x,u)){a.reRender();return}break}g===!0&&a.reRender()}),te(xt(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),d=l||{},g=d.triggerName,h=d.validateOnly,v=h===void 0?!1:h,m=Promise.resolve().then(fa(En().mark(function p(){var b,y,x,w,C,S,E;return En().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(a.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(b=a.props,y=b.validateFirst,x=y===void 0?!1:y,w=b.messageVariables,C=b.validateDebounce,S=a.getRules(),g&&(S=S.filter(function($){return $}).filter(function($){var O=$.validateTrigger;if(!O)return!0;var D=zc(O);return D.includes(g)})),!(C&&g)){k.next=10;break}return k.next=8,new Promise(function($){setTimeout($,C)});case 8:if(a.validatePromise===m){k.next=10;break}return k.abrupt("return",[]);case 10:return E=oF(c,u,S,l,x,w),E.catch(function($){return $}).then(function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qn;if(a.validatePromise===m){var O;a.validatePromise=null;var D=[],P=[];(O=$.forEach)===null||O===void 0||O.call($,function(R){var N=R.rule.warningOnly,I=R.errors,M=I===void 0?qn:I;N?P.push.apply(P,at(M)):D.push.apply(D,at(M))}),a.errors=D,a.warnings=P,a.triggerMetaEvent(),a.reRender()}}),k.abrupt("return",E);case 13:case"end":return k.stop()}},p)})));return v||(a.validatePromise=m,a.dirty=!0,a.errors=qn,a.warnings=qn,a.triggerMetaEvent(),a.reRender()),m}),te(xt(a),"isFieldValidating",function(){return!!a.validatePromise}),te(xt(a),"isFieldTouched",function(){return a.touched}),te(xt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(Ur),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),te(xt(a),"getErrors",function(){return a.errors}),te(xt(a),"getWarnings",function(){return a.warnings}),te(xt(a),"isListField",function(){return a.props.isListField}),te(xt(a),"isList",function(){return a.props.isList}),te(xt(a),"isPreserve",function(){return a.props.preserve}),te(xt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),te(xt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return ve(ve({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=Lc(l);return u.length!==1||!f.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),te(xt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return dr(l||c(!0),u)}),te(xt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,d=c.trigger,g=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,m=c.valuePropName,p=c.getValueProps,b=c.fieldContext,y=g!==void 0?g:b.validateTrigger,x=a.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,S=w(Ur),E=S.dispatch,k=a.getValue(),$=p||function(N){return te({},m,N)},O=l[d],D=u!==void 0?$(k):{},P=ve(ve({},l),D);P[d]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var N,I=arguments.length,M=new Array(I),F=0;F<I;F++)M[F]=arguments[F];h?N=h.apply(void 0,M):N=cF.apply(void 0,[m].concat(M)),v&&(N=v(N,k,C(!0))),N!==k&&E({type:"updateValue",namePath:x,value:N}),O&&O.apply(void 0,M)};var R=zc(y||[]);return R.forEach(function(N){var I=P[N];P[N]=function(){I&&I.apply(void 0,arguments);var M=a.props.rules;M&&M.length&&E({type:"validateField",namePath:x,triggerName:N})}}),P}),r.fieldContext){var o=r.fieldContext.getInternalHooks,i=o(Ur),s=i.initEntityValue;s(xt(a))}return a}return Nn(n,[{key:"componentDidMount",value:function(){var r=this.props,a=r.shouldUpdate,o=r.fieldContext;if(this.mounted=!0,o){var i=o.getInternalHooks,s=i(Ur),l=s.registerField;this.cancelRegisterFunc=l(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var r=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),i=o.child,s=o.isFunction,l;return s?l=i:f.isValidElement(i)?l=f.cloneElement(i,this.getControlled(i.props)):(zn(!i,"`children` of Field is not validate ReactElement."),l=i),f.createElement(f.Fragment,{key:r},l)}}]),n})(f.Component);te(ad,"contextType",Ma);te(ad,"defaultProps",{trigger:"onChange",valuePropName:"value"});function v0(e){var t,n=e.name,r=pr(e,uF),a=f.useContext(Ma),o=f.useContext(Zi),i=n!==void 0?Gt(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((i||[]).join("_"))),f.createElement(ad,vn({key:l,name:i,isListField:s},r,{fieldContext:a}))}function dF(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=f.useContext(Ma),l=f.useContext(Zi),c=f.useRef({keys:[],id:0}),u=c.current,d=f.useMemo(function(){var m=Gt(s.prefixName)||[];return[].concat(at(m),at(Gt(t)))},[s.prefixName,t]),g=f.useMemo(function(){return ve(ve({},s),{},{prefixName:d})},[s,d]),h=f.useMemo(function(){return{getKey:function(m){var p=d.length,b=m[p];return[u.keys[b],m.slice(p+1)]}}},[d]);if(typeof r!="function")return zn(!1,"Form.List only accepts function as children."),null;var v=function(m,p,b){var y=b.source;return y==="internal"?!1:m!==p};return f.createElement(Zi.Provider,{value:h},f.createElement(Ma.Provider,{value:g},f.createElement(v0,{name:[],shouldUpdate:v,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:i??!!l},function(m,p){var b=m.value,y=b===void 0?[]:b,x=m.onChange,w=s.getFieldValue,C=function(){var k=w(d||[]);return k||[]},S={add:function(k,$){var O=C();$>=0&&$<=O.length?(u.keys=[].concat(at(u.keys.slice(0,$)),[u.id],at(u.keys.slice($))),x([].concat(at(O.slice(0,$)),[k],at(O.slice($))))):(u.keys=[].concat(at(u.keys),[u.id]),x([].concat(at(O),[k]))),u.id+=1},remove:function(k){var $=C(),O=new Set(Array.isArray(k)?k:[k]);O.size<=0||(u.keys=u.keys.filter(function(D,P){return!O.has(P)}),x($.filter(function(D,P){return!O.has(P)})))},move:function(k,$){if(k!==$){var O=C();k<0||k>=O.length||$<0||$>=O.length||(u.keys=Gm(u.keys,k,$),x(Gm(O,k,$)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(k,$){var O=u.keys[$];return O===void 0&&(u.keys[$]=u.id,O=u.keys[$],u.id+=1),{name:$,key:O,isListField:!0}}),S,p)})))}function fF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var h0="__@field_split__";function El(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(h0)}var ya=(function(){function e(){On(this,e),te(this,"kvs",new Map)}return Nn(e,[{key:"set",value:function(t,n){this.kvs.set(El(t),n)}},{key:"get",value:function(t){return this.kvs.get(El(t))}},{key:"update",value:function(t,n){var r=this.get(t),a=n(r);a?this.set(t,a):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(El(t))}},{key:"map",value:function(t){return at(this.kvs.entries()).map(function(n){var r=ot(n,2),a=r[0],o=r[1],i=a.split(h0);return t({key:i.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=ot(l,3),u=c[1],d=c[2];return u==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var r=n.key,a=n.value;return t[r.join(".")]=a,null}),t}}]),e})(),mF=["name"],pF=Nn(function e(t){var n=this;On(this,e),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),te(this,"getInternalHooks",function(r){return r===Ur?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(zn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(r){n.subscribable=r}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=xa(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=Jn(i,l,dr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),te(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new ya;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),te(this,"getInitialValue",function(r){var a=dr(n.initialValues,r);return r.length?xa(a):a}),te(this,"setCallbacks",function(r){n.callbacks=r}),te(this,"setValidateMessages",function(r){n.validateMessages=r}),te(this,"setPreserve",function(r){n.preserve=r}),te(this,"watchList",[]),te(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),te(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){}),te(this,"updateStore",function(r){n.store=r}),te(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),te(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new ya;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),te(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Gt(o);return a.get(i)||{INVALIDATE_NAME_PATH:Gt(o)}})}),te(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&mt(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var d,g,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var v,m;if((v=(m=u).isList)!==null&&v!==void 0&&v.call(m))return}else if(!o&&(d=(g=u).isListField)!==null&&d!==void 0&&d.call(g))return;if(!i)c.push(h);else{var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(h)}}),Ym(n.store,c.map(Gt))}),te(this,"getFieldValue",function(r){n.warningUnhooked();var a=Gt(r);return dr(n.store,a)}),te(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Gt(r[i]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(r){n.warningUnhooked();var a=Gt(r),o=n.getFieldsError([a])[0];return o.errors}),te(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Gt(r),o=n.getFieldsError([a])[0];return o.warnings}),te(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,c=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map(Gt),c=!1):(l=null,c=i):(l=i.map(Gt),c=s);var u=n.getFieldEntities(!0),d=function(m){return m.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var g=new ya;l.forEach(function(m){g.set(m,[])}),u.forEach(function(m){var p=m.getNamePath();l.forEach(function(b){b.every(function(y,x){return p[x]===y})&&g.update(b,function(y){return[].concat(at(y),[m])})})});var h=function(m){return m.some(d)},v=g.map(function(m){var p=m.value;return p});return c?v.every(h):v.some(h)}),te(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),te(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(i){return i.isFieldValidating()});var o=r.map(Gt);return a.some(function(i){var s=i.getNamePath();return ka(o,s)&&i.isFieldValidating()})}),te(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),te(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new ya,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=a.get(u)||new Set;d.add({entity:l,value:c}),a.set(u,d)}});var i=function(l){l.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var d=c.getNamePath(),g=n.getInitialValue(d);if(g!==void 0)zn(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=a.get(d);if(h&&h.size>1)zn(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=n.getFieldValue(d),m=c.isListField();!m&&(!r.skipExist||v===void 0)&&n.updateStore(Jn(n.store,d,at(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,at(at(c).map(function(d){return d.entity})))}})):s=o,i(s)}),te(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(xa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Gt);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Jn(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),te(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,l=pr(i,mF),c=Gt(s);o.push(c),"value"in l&&n.updateStore(Jn(n.store,c,l.value)),n.notifyObservers(a,[c],{type:"setField",data:i})}),n.notifyWatch(o)}),te(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=ve(ve({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),te(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=dr(n.store,o);i===void 0&&n.updateStore(Jn(n.store,o,a))}}),te(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),te(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every(function(d){return!g0(d.getNamePath(),a)})){var u=n.store;n.updateStore(Jn(u,a,c,!0)),n.notifyObservers(u,[a],{type:"remove"}),n.triggerDependenciesUpdate(u,a)}}n.notifyWatch([a])}}),te(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),te(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=ve(ve({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,a,i)})}else n.forceRootUpdate()}),te(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(at(o))}),o}),te(this,"updateValue",function(r,a){var o=Gt(r),i=n.store;n.updateStore(Jn(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),l=n.callbacks.onValuesChange;if(l){var c=Ym(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(at(s)))}),te(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=xa(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),te(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),te(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new ya;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Gt(u);i.update(d,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(l),g})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!a.has(d)){a.add(d);var g=d.getNamePath();d.isFieldDirty()&&g.length&&(o.push(g),l(g))}})};return s(r),o}),te(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new ya;a.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return ka(r,u)});l.length&&o(l,i)}}),te(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,l=s?o.map(Gt):[],c=[],u=String(Date.now()),d=new Set,g=i||{},h=g.recursive,v=g.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(v&&!y.isFieldDirty())){var x=y.getNamePath();if(d.add(x.join(u)),!s||ka(l,x,h)){var w=y.validateRules(ve({validateMessages:ve(ve({},p0),n.validateMessages)},i));c.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var S,E=[],k=[];return(S=C.forEach)===null||S===void 0||S.call(C,function($){var O=$.rule.warningOnly,D=$.errors;O?k.push.apply(k,at(D)):E.push.apply(E,at(D))}),E.length?Promise.reject({name:x,errors:E,warnings:k}):{name:x,errors:E,warnings:k}}))}}});var m=fF(c);n.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var x=y.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var p=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==m})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),te(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function y0(e){var t=f.useRef(),n=f.useState({}),r=ot(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new pF(o);t.current=i.getForm()}return[t.current]}var Xc=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),gF=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,a=e.children,o=f.useContext(Xc),i=f.useRef({});return f.createElement(Xc.Provider,{value:ve(ve({},o),{},{validateMessages:ve(ve({},o.validateMessages),t),triggerFormChange:function(s,l){n&&n(s,{changedFields:l,forms:i.current}),o.triggerFormChange(s,l)},triggerFormFinish:function(s,l){r&&r(s,{values:l,forms:i.current}),o.triggerFormFinish(s,l)},registerForm:function(s,l){s&&(i.current=ve(ve({},i.current),{},te({},s,l))),o.registerForm(s,l)},unregisterForm:function(s){var l=ve({},i.current);delete l[s],i.current=l,o.unregisterForm(s)}})},a)},vF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],hF=function(e,t){var n=e.name,r=e.initialValues,a=e.fields,o=e.form,i=e.preserve,s=e.children,l=e.component,c=l===void 0?"form":l,u=e.validateMessages,d=e.validateTrigger,g=d===void 0?"onChange":d,h=e.onValuesChange,v=e.onFieldsChange,m=e.onFinish,p=e.onFinishFailed,b=e.clearOnDestroy,y=pr(e,vF),x=f.useRef(null),w=f.useContext(Xc),C=y0(o),S=ot(C,1),E=S[0],k=E.getInternalHooks(Ur),$=k.useSubscribe,O=k.setInitialValues,D=k.setCallbacks,P=k.setValidateMessages,R=k.setPreserve,N=k.destroyForm;f.useImperativeHandle(t,function(){return ve(ve({},E),{},{nativeElement:x.current})}),f.useEffect(function(){return w.registerForm(n,E),function(){w.unregisterForm(n)}},[w,E,n]),P(ve(ve({},w.validateMessages),u)),D({onValuesChange:h,onFieldsChange:function(z){if(w.triggerFormChange(n,z),v){for(var T=arguments.length,H=new Array(T>1?T-1:0),W=1;W<T;W++)H[W-1]=arguments[W];v.apply(void 0,[z].concat(H))}},onFinish:function(z){w.triggerFormFinish(n,z),m&&m(z)},onFinishFailed:p}),R(i);var I=f.useRef(null);O(r,!I.current),I.current||(I.current=!0),f.useEffect(function(){return function(){return N(b)}},[]);var M,F=typeof s=="function";if(F){var j=E.getFieldsValue(!0);M=s(j,E)}else M=s;$(!F);var A=f.useRef();f.useEffect(function(){lF(A.current||[],a||[])||E.setFields(a||[]),A.current=a},[a,E]);var _=f.useMemo(function(){return ve(ve({},E),{},{validateTrigger:g})},[E,g]),L=f.createElement(Zi.Provider,{value:null},f.createElement(Ma.Provider,{value:_},M));return c===!1?L:f.createElement(c,vn({},y,{ref:x,onSubmit:function(z){z.preventDefault(),z.stopPropagation(),E.submit()},onReset:function(z){var T;z.preventDefault(),E.resetFields(),(T=y.onReset)===null||T===void 0||T.call(y,z)}}),L)};function Xm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function yF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],o=a===void 0?{}:a,i=kM(o)?{form:o}:o,s=i.form,l=dt(),c=ot(l,2),u=c[0],d=c[1],g=Lt(function(){return Xm(u)},[u]),h=wt(g);h.current=g;var v=$n(Ma),m=s||v,p=m&&m._init,b=Gt(r),y=wt(b);return y.current=b,ft(function(){if(p){var x=m.getFieldsValue,w=m.getInternalHooks,C=w(Ur),S=C.registerWatch,E=function(O,D){var P=i.preserve?D:O;return typeof r=="function"?r(P):dr(P,y.current)},k=S(function(O,D){var P=E(O,D),R=Xm(P);h.current!==R&&(h.current=R,d(P))}),$=E(x(),x(!0));return u!==$&&d($),k}},[p]),u}var bF=f.forwardRef(hF),Uo=bF;Uo.FormProvider=gF;Uo.Field=v0;Uo.List=dF;Uo.useForm=y0;Uo.useWatch=yF;const xF=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
465
412
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
466
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),
|
|
413
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),b0=new An("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}});new An("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}});new An("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}});new An("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}});new An("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}});new An("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}});new An("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}});new An("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}});new An("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}});new An("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}});new An("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}});new An("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}});const CF=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
467
414
|
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
468
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${
|
|
469
|
-
&-hidden${
|
|
470
|
-
${t}-col-xl-24${
|
|
471
|
-
> ${
|
|
472
|
-
${
|
|
473
|
-
${
|
|
415
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},wF=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Or(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Or(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Jm=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},SF=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Yu(e)),wF(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Jm(e,e.controlHeightSM)),"&-large":Object.assign({},Jm(e,e.controlHeightLG))})}},$F=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Yu(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
416
|
+
&-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:b0,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Hr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),EF=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
417
|
+
${t}-col-xl-24${n}-label`]:Hr(e)}}},kF=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
418
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},IF=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Hr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},OF=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
419
|
+
${r}-col-24${n}-label,
|
|
420
|
+
${r}-col-xl-24${n}-label`]:Hr(e)},[`@media (max-width: ${Or(e.screenXSMax)})`]:[IF(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Hr(e)}}}],[`@media (max-width: ${Or(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Hr(e)}}},[`@media (max-width: ${Or(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Hr(e)}}},[`@media (max-width: ${Or(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Hr(e)}}}}},NF=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),DF=(e,t)=>Ms(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});fh("Form",(e,{rootPrefixCls:t})=>{const n=DF(e,t);return[SF(n),$F(n),CF(n),EF(n),kF(n),OF(n),xF(n),b0]},NF,{order:-1e3});const MF=en.create({timeout:15e3});MF.interceptors.response.use(e=>e.data&&e.data.success===!1?(Vt.error(e.data.errorMsg||"\u8BF7\u6C42\u5931\u8D25"),Promise.reject(e.data)):e,e=>{var t,n;if(((t=e==null?void 0:e.response)==null?void 0:t.status)===401){const r=new Error("Unauthorized");return r.isAuthError=!0,r.origin=e,Promise.reject(r)}if(((n=e==null?void 0:e.response)==null?void 0:n.status)===500){const r=new Error("Server Error");return r.isAuthError=!0,r.origin=e,Promise.reject(r)}return Promise.reject(e)});/**
|
|
421
|
+
* @license lucide-react v0.456.0 - ISC
|
|
422
|
+
*
|
|
423
|
+
* This source code is licensed under the ISC license.
|
|
424
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
425
|
+
*/const FF=gr("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
426
|
+
* @license lucide-react v0.456.0 - ISC
|
|
427
|
+
*
|
|
428
|
+
* This source code is licensed under the ISC license.
|
|
429
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
430
|
+
*/const PF=gr("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
431
|
+
* @license lucide-react v0.456.0 - ISC
|
|
432
|
+
*
|
|
433
|
+
* This source code is licensed under the ISC license.
|
|
434
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
435
|
+
*/const jF=gr("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
436
|
+
* @license lucide-react v0.456.0 - ISC
|
|
437
|
+
*
|
|
438
|
+
* This source code is licensed under the ISC license.
|
|
439
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
440
|
+
*/const kl=gr("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/**
|
|
441
|
+
* @license lucide-react v0.456.0 - ISC
|
|
442
|
+
*
|
|
443
|
+
* This source code is licensed under the ISC license.
|
|
444
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
445
|
+
*/const RF=gr("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
446
|
+
* @license lucide-react v0.456.0 - ISC
|
|
447
|
+
*
|
|
448
|
+
* This source code is licensed under the ISC license.
|
|
449
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
450
|
+
*/const AF=gr("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
451
|
+
* @license lucide-react v0.456.0 - ISC
|
|
452
|
+
*
|
|
453
|
+
* This source code is licensed under the ISC license.
|
|
454
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
455
|
+
*/const TF=gr("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
|
456
|
+
* @license lucide-react v0.456.0 - ISC
|
|
457
|
+
*
|
|
458
|
+
* This source code is licensed under the ISC license.
|
|
459
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
460
|
+
*/const x0=gr("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
461
|
+
* @license lucide-react v0.456.0 - ISC
|
|
462
|
+
*
|
|
463
|
+
* This source code is licensed under the ISC license.
|
|
464
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
465
|
+
*/const _F=gr("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
466
|
+
* @license lucide-react v0.456.0 - ISC
|
|
467
|
+
*
|
|
468
|
+
* This source code is licensed under the ISC license.
|
|
469
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
470
|
+
*/const BF=gr("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Qm={actions:[{icon:B.jsx(qt,{type:"rag/folder",size:18}),name:"history",badgeCount:0}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"checkbox",defaultValue:!1,enabled:!0,icon:B.jsx(qt,{type:"rag/url",size:12})},{label:"\u63A8\u7406\u601D\u8003",name:"reasoning",type:"checkbox",defaultValue:!1,enabled:!0,icon:B.jsx(qt,{type:"rag/think",size:12})}]};function LF({isActive:e,isNew:t,isDisabled:n,data:r,eventsEmit:a,styles:o={},assistantList:i=[]}){const[s,l]=dt(!1),c=(o==null?void 0:o.colors)||{},u=Lt(()=>{const p=r==null?void 0:r.configId;if(!p||!i||i.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const b=i.find(y=>String(y==null?void 0:y.id)===String(p));if(!b)return"\u672A\u9009\u62E9\u52A9\u624B";if(b!=null&&b.name)return b.name;try{const y=typeof b.configJson=="string"?JSON.parse(b.configJson):b.configJson;return(y==null?void 0:y.config_name)||"\u672A\u9009\u62E9\u52A9\u624B"}catch{return"\u672A\u9009\u62E9\u52A9\u624B"}},[i,r==null?void 0:r.configId]),d=[{key:"rename",icon:B.jsx(TF,{size:12}),label:"\u91CD\u547D\u540D",onClick:p=>{p.domEvent.stopPropagation(),a&&a("conversations:rename_icon_clicked",r)}},{key:"delete",icon:B.jsx(BF,{size:12}),label:"\u5220\u9664",danger:!0,onClick:p=>{p.domEvent.stopPropagation(),a&&a("conversations:delete_icon_clicked",r)}}],g=e?c.activeItemBg||"#f0f4ff":s?c.itemHoverBg||"#f5f7fa":c.itemBg||"transparent",h=e?c.activeItemText||c.primary||"#0122ff":c.itemText||"#333",v=e?c.activeItemBorder||c.primary||"#0122ff":"transparent",m=p=>{const b=Cn(),y=Cn(p);return b.isSame(y,"day")?y.format("HH:mm"):y.format("MM-DD HH:mm")};return B.jsxs("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!n&&a&&a("conversation:item_click",r),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{minHeight:48,background:g,color:h,border:`1px solid ${v}`,...o.item,opacity:n?.5:1},children:[B.jsxs("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[B.jsx("span",{className:"truncate text-sm max-w-[160px] font-medium",title:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD",style:{color:h,fontSize:"14px",lineHeight:"1.4"},children:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD"}),B.jsxs("div",{className:"flex items-center justify-between gap-2",children:[B.jsx("span",{className:"text-xs truncate flex-1",style:{color:e?c.activeItemTextSecondary||"#666":c.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:u}),r.gmtModified&&B.jsx("span",{className:"text-xs flex-shrink-0",style:{color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:m(r.gmtModified)})]})]}),!n&&s&&!t&&B.jsx("div",{className:"absolute top-2 right-3",children:B.jsx(Yg,{menu:{items:d},trigger:["click"],placement:"bottomRight",children:B.jsx(PF,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999"},onClick:p=>p.stopPropagation()})})})]})}function zF(e,t=[{label:"\u5F53\u5929",dayPeriod:1}]){const n=new Date,r={other:[]};return e.forEach(a=>{const o=new Date(a.gmtModified),i=Math.floor((+n-+o)/(1e3*60*60*24));let s=!1;for(const l of t)if(i<=l.dayPeriod){r[l.label]||(r[l.label]=[]),r[l.label].push(a),s=!0;break}s||r.other.push(a)}),r}function HF(e){const{data:t,activedItem:n,onChange:r,onDelete:a,sortRules:o=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:i,assistantList:s,height:l=400,styles:c={}}=e,u=t.map(x=>x.sessionId+"-"+x.gmtModified).join(","),d=Lt(()=>{const x=o.length>0?o:[{label:"\u5F53\u5929",dayPeriod:1}],w=zF(t,x),C=x.every(E=>!w[E.label]||w[E.label].length===0),S=[];return x.forEach(E=>{w[E.label]&&w[E.label].length>0&&(S.push({type:"group",label:E.label}),w[E.label].forEach(k=>S.push({type:"item",data:k})))}),w.other.length>0&&!C&&(S.push({type:"group",label:"\u5176\u4ED6"}),w.other.forEach(E=>S.push({type:"item",data:E}))),C&&w.other.length>0&&w.other.forEach(E=>S.push({type:"item",data:E})),S},[t,o,u]),g=56,h=14,v=x=>d[x].type==="group"?32:g+h,m=wt(null),p=Lt(()=>d.findIndex(x=>{var w;return x.type==="item"&&((w=x.data)==null?void 0:w.sessionId)===n}),[d,n]),b=Lt(()=>d.findIndex(x=>x.type==="item"),[d]);if(ft(()=>{p>-1&&p===b&&m.current&&m.current.scrollToItem(p,"start")},[p,b,d.length]),ft(()=>{m.current&&m.current.resetAfterIndex(0,!0)},[u]),d.length===0)return B.jsx("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const y=(c==null?void 0:c.colors)||{};return B.jsx(M0,{flipKey:u,spring:{stiffness:180,damping:18},children:B.jsx(z2,{ref:m,height:l,width:"100%",itemCount:d.length,itemSize:v,itemKey:x=>{const w=d[x];return w.type==="item"?w.data.sessionId:`group-${w.label}`},style:{overflowX:"hidden"},children:({index:x,style:w})=>{const C=d[x];return C.type==="group"?B.jsx("div",{style:{...w,background:y.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:C.label}):B.jsx(F0,{flipId:C.data.sessionId,children:B.jsx("div",{style:w,className:"px-[12px] py-[2px]",children:B.jsx(LF,{isActive:n===C.data.sessionId,isDisabled:!1,isNew:C.data.isNew,data:C.data,eventsEmit:i,assistantList:s,styles:c})})},C.data.sessionId)}})})}const VF=({value:e,eventsEmit:t,setSearch:n,style:r,styles:a={}})=>{const o=a.colors||{},i=a.radius||"12px",s=o.border||"#e5e7eb",l=o.primary||"#2563eb",c=a.headerBg||o.sidebarBg||o.background||"#fff",[u,d]=be.useState(!1);return B.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...r,background:c,borderTopLeftRadius:i,borderTopRightRadius:i},children:[B.jsx("button",{className:"border-none flex items-center justify-center",onClick:()=>{d(!1),t&&t("conversation:create")},title:"\u65B0\u5EFA\u4F1A\u8BDD",style:{height:42,borderRadius:"90px",background:l,color:o.buttonText||"#fff",fontWeight:600,boxShadow:a.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:u?"0 0":"0 14px",minWidth:u?0:180,width:u?0:void 0,opacity:u?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease"},children:B.jsxs("div",{className:"flex items-center gap-2",children:[B.jsx(Pp,{size:18}),B.jsx("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),u?B.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[B.jsx("input",{className:"flex-1 px-3 py-2 text-sm transition-all",placeholder:"\u641C\u7D22\u4F1A\u8BDD...",value:e,onChange:g=>n(g.target.value),onBlur:()=>d(!1),onKeyDown:g=>{g.key==="Enter"&&d(!1)},style:{minWidth:0,width:"100%",maxWidth:"100%",borderRadius:i,background:o.inputBg||"#f4f4f5",border:`1px solid ${s}`,color:o.text||"#222",outline:"none"}}),B.jsx("button",{className:"flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:o.text||"#222",flexShrink:0},onClick:()=>d(!1),title:"\u6536\u8D77\u641C\u7D22",children:B.jsx(su,{size:16})})]}):B.jsx("button",{className:"ml-auto flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:l,flexShrink:0},onClick:()=>d(!0),title:"\u641C\u7D22",children:B.jsx(_F,{size:18})})]})};function KF(e){const{data:t,sortRules:n,activedItem:r,eventsEmit:a,assistantList:o,styles:i={}}=e,[s,l]=dt(""),c=Lt(()=>s?t.filter(x=>(x.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(s.toLowerCase())):t,[t,s]),u=Lt(()=>[...c].sort((x,w)=>new Date(w.gmtModified).getTime()-new Date(x.gmtModified).getTime()),[c]),d=wt(null),[g,h]=dt(400);ft(()=>{function x(){d.current&&h(d.current.clientHeight)}return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const v=(i==null?void 0:i.colors)||{};i!=null&&i.radius;const m=(i==null?void 0:i.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",p=v.border||"#e5e7eb",b=v.sidebarBg||v.background||"#EAEEFF",y=v.text||"#222";return B.jsxs("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:b,color:y,boxShadow:m,border:`1px solid ${p}`,...i.container},children:[B.jsx(VF,{value:s,setSearch:l,eventsEmit:a,style:i.header,styles:i}),B.jsxs("div",{className:"flex-1 min-h-0 relative",ref:d,style:i.list,children:[B.jsx(HF,{eventsEmit:a,data:u,assistantList:o,activedItem:r,sortRules:n,height:g,styles:i}),B.jsx("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${b}cc, transparent)`}})]})]})}const WF=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new op(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{Vt.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",a=>{Vt.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(a){r.destroy(),Vt.error("\u590D\u5236\u5931\u8D25: "+a,2)}},Zm=e=>{const t=e.toLowerCase().split(".").pop()||"";return/^(jpg|jpeg|png|gif|bmp|webp)$/.test(t)?"image":/^(doc|docx)$/.test(t)?"word":/^(xls|xlsx|csv)$/.test(t)?"excel":/^(ppt|pptx)$/.test(t)?"ppt":t==="pdf"?"pdf":/^(txt|json|md|markdown)$/.test(t)?"text":/^(zip|rar|7z)$/.test(t)?"archive":"file"};function qF(e){const t=[];for(const n of e){if(n.query){const r=n.query.queryId||n.query.id||n.queryId||n.id||Zr(32);t.push({istype:"user",content:n.query.content,time:n.query.gmtCreate,queryId:r,clientSideId:r+"-user",...n.query})}if(n.reply){const r=n.reply.queryId||n.reply.id||n.queryId||n.id||Zr(32);t.push({istype:"ai",content:n.reply.content,isDefault:n.reply.isDefault,time:n.time||n.gmtCreate||Date.now(),queryId:r,clientSideId:r+"-ai",...n.reply})}}return t}const ep=async(e,t,n)=>{try{kn.post(`${e.url}/qa/feedback`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},Il=async(e,t,n)=>{try{kn.delete(`${e.url}/qa/feedback/cancel?queryId=${t.queryId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},UF=(e,t)=>{try{kn.get(`${e.url}/qa/feedback/que/list`,{headers:{Authorization:e.token}}).then(n=>{n.data.success&&t&&t(n.data.data)})}catch(n){console.log("error",n)}},YF=async(e,t,n)=>{try{kn.post(`${e.url}/qa/dialogue/reName`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r):Vt.error("\u7F16\u8F91\u540D\u5B57\u5931\u8D25")}).catch(r=>{var a,o;(o=(a=r==null?void 0:r.response)==null?void 0:a.data)!=null&&o.errorMsg&&Vt.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},GF=async(e,t,n)=>{try{kn.delete(`${e.url}/qa/dialogue/delete?sessionId=${t.sessionId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n(r.data)})}catch(r){console.log("error",r)}},XF=async(e,t,n)=>{console.log("[DEBUG] handleCreateConversation \u8BF7\u6C42",{url:e.url,token:e.token,data:t});try{kn.post(`${e.url}/qa/dialogue/create`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r.data):Vt.error(r.data.errorMsg||"\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25")}).catch(r=>{var a,o;(o=(a=r==null?void 0:r.response)==null?void 0:a.data)!=null&&o.errorMsg&&Vt.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},JF=async(e,t,n)=>{try{const{uid:r,queryId:a}=t;let o=`${e.url}/index/knowledgeBase/file/deleteByUid?uid=${r}`;a&&(o+=`&queryId=${a}`),kn.delete(o,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(i=>{i.data.success?n&&n(!0,i):n&&n(!1,i)}).catch(i=>{n&&n(!1,i)})}catch(r){n&&n(!1,r)}},QF=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,ZF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOkSURBVHgBxZRbTBxlFMd/c2EvXBbZLbsCVhcKaAyh2BKTWrX12RhNmxa1IVp98FEJVGNMY2KItSZtqGjaROMlaDSVxiZeqiRa0FBpIlSkhgK15WoLu7AL3V1md25+7CpUojzYB7/km5OZc+Z35pzz/wb+l3X7PotNL9tvd1yIc8OrYp9pWXZ6JXXdfLOtbdNa4fJazoZdu9xVNUE5petIVS9h/npRfkDKefg/A+OaJuUGvIz3DzD14R6uHv/WCmzbcuNlj7S+3z7+5Xepno7TLeJWWiv2n5zyTcEaT/TJlrfwljxCTm42lgHRmIHDqaIqIsTE43NS7FHCBXKkIzw4eGKkYcdnwmGvBspSy+DpxlrffXtqC6WeqM3+CZ3wnAZLOyXAlsXfOjU7D6EYHLw7zVKvgykcG+r98YmKjdG5BK3nw7w7YQuATdAJWR4IJ2UiswKoiC39+S0+4QjNL0NWgDU7y57ZVlLd2n+FO/Kd7BxxcPOpMKGrCSxNTNm2kVUZ2e1g+5YCxh4q4IW+cAactYTZLi6dxgqw4dUjj+UgfXpSJRAaY9Lt4dZAkoW5YWSXyKwo6ZYbhsFCciPe9hgHtDiB+kqe6huF6jknv2As9/Dj3mv2se4Yh5RhEr4SbD2FpMjomkZ0eoaunl5yxXwqKsspKwsiOVzYqST143k8Xe7gvaN17tHOTi0D/D6U3DqhO7oNNxOlU6heD0cOH2frg/dSU1ywMgRhRmMpvvjoG55t3I0RWWDvuST9iy5q64qtr2/LV9Ill/aNOsb9fnC48a+zGYzF6R/opefsGU59sl88d6V5tpagqekNFg2LgeHN3F/pJS9rET2l4v15Ruav1PHLEdsUJYpXcNjXKA54iCd11gf9ONUkLqeVtu4ciQUjwcCF3wjc4sUlJbhouyjOVek6O2kvT3kGV3e9P/uetlmhi4VpCsU0Wz5o5i6/kIehY8UjyHlLpVt8daKZc1d0qt3zaV2ex09LjYvnhsx3rj8pEq90N1QU+Q+9WJVgbzBPpFIzIrZNsYWVlYyVhJXVtFys6UHWf76O36NDu3nt0fbVJ0Wm6Sedomx5hzPCwYpJygvdkOMVQhbKFjrEFG2JRQjPTHH4Uh4HoptFfy2T5+9clt/qo6fS9MMYilqEL1dCyCQtQsnKhC51yUyCkBLz4qeT77Np3KCme/EvwJVndUcfl0qr6uzKwAb8biemqTCjmYS0RUKhM1zuep2TzZfIpFlefwDISXe8s31UTQAAAABJRU5ErkJggg==",e5=(e,t)=>{const n={...Qc.colors,...e};return`
|
|
471
|
+
.g-welcome-${t} .g-welcome-title {
|
|
472
|
+
background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
|
|
473
|
+
-webkit-background-clip: text;
|
|
474
|
+
background-clip: text;
|
|
475
|
+
color: transparent;
|
|
476
|
+
-webkit-text-fill-color: transparent;
|
|
477
|
+
}
|
|
478
|
+
.g-welcome-${t} .g-welcome-subtitle {
|
|
479
|
+
color: ${n.disabled};
|
|
480
|
+
}
|
|
481
|
+
.g-welcome-${t} .g-welcome-btn {
|
|
482
|
+
background-color: #ffffff;
|
|
483
|
+
border-color: ${n.border};
|
|
484
|
+
color: ${n.text};
|
|
485
|
+
height: 36px;
|
|
486
|
+
border-width: 1px;
|
|
487
|
+
box-shadow: 0 1px 2px rgba(31,35,41,0.04);
|
|
488
|
+
}
|
|
489
|
+
.g-welcome-${t} .g-welcome-btn:hover {
|
|
490
|
+
border-color: ${n.primary};
|
|
491
|
+
color: ${n.primary};
|
|
492
|
+
background-color: #ffffff;
|
|
493
|
+
box-shadow: 0 2px 6px rgba(31,35,41,0.08);
|
|
494
|
+
}
|
|
495
|
+
.g-welcome-${t} .g-welcome-btn.active {
|
|
496
|
+
background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
|
|
497
|
+
border-color: ${n.primary};
|
|
498
|
+
box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
|
|
499
|
+
}
|
|
500
|
+
.g-welcome-${t} .g-welcome-btn .icon-badge {
|
|
501
|
+
width: 24px;
|
|
502
|
+
height: 24px;
|
|
503
|
+
border-radius: 9999px;
|
|
504
|
+
display: inline-flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: center;
|
|
507
|
+
background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
|
|
508
|
+
box-shadow: inset 0 0 0 1px ${n.border};
|
|
509
|
+
}
|
|
510
|
+
.g-welcome-${t} .g-welcome-pagination-btn {
|
|
511
|
+
color: ${n.primary};
|
|
512
|
+
}
|
|
513
|
+
.g-welcome-${t} .g-welcome-pagination-btn:disabled {
|
|
514
|
+
color: ${n.disabled};
|
|
515
|
+
cursor: not-allowed;
|
|
516
|
+
}
|
|
517
|
+
.g-welcome-${t} .g-welcome-pagination-text {
|
|
518
|
+
color: ${n.text};
|
|
519
|
+
}
|
|
520
|
+
`};function t5({config:e,styles:t}){if(!e)return null;const n=JSON.parse(e.configJson),r=Lt(()=>{var a;return{...Qc.colors,...(a=t==null?void 0:t.theme)==null?void 0:a.colors}},[t]);return B.jsxs("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[B.jsxs("div",{className:"flex items-center mb-2",children:[B.jsx("span",{className:"text-md font-bold truncate mr-2",style:{color:r.primary},children:n.config_name||"\u52A9\u624B\u914D\u7F6E"}),B.jsx("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${r.primary}1A`,color:r.disabled},children:n.model_name})]}),B.jsx("div",{className:"border-b my-2",style:{borderColor:r.border}}),B.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:r.text},children:[B.jsxs("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",B.jsx("span",{className:"font-semibold",children:n.max_round})]}),B.jsxs("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",B.jsx("span",{className:"font-semibold",children:n.max_tokens})]}),B.jsxs("div",{children:["\u6E29\u5EA6\uFF1A",B.jsx("span",{className:"font-semibold",children:n.temperature})]}),B.jsxs("div",{children:["\u53EC\u56DE\u6570\uFF1A",B.jsx("span",{className:"font-semibold",children:n.top_k})]}),B.jsxs("div",{children:["\u591A\u6837\u6027\uFF1A",B.jsx("span",{className:"font-semibold",children:n.top_p})]}),B.jsxs("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",B.jsx("span",{className:"font-semibold",children:n.score_threshold})]})]}),B.jsxs("div",{className:"mb-2",children:[B.jsx("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),B.jsx("div",{className:"flex flex-wrap gap-1",children:n.knowledge_base_name?n.knowledge_base_name.split(";").map((a,o)=>B.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${r.primary}1A`,color:r.primary},children:a},o)):B.jsx("span",{className:"text-gray-300",style:{color:r.disabled},children:"\u65E0"})})]}),B.jsxs("div",{className:"mb-2",children:[B.jsx("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),B.jsxs("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!n.enabled_faq&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"FAQ"}),!!n.enabled_graph&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u56FE\u8C31"}),!!n.dependOnKb&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u5F3A\u77E5\u8BC6\u4F9D\u8D56"}),!!n.enabled_table_select&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u8868\u683C\u7B5B\u9009"}),!!n.enabled_rerank&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u7CBE\u6392\u6A21\u5F0F"}),!!n.need_trace_source&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u6EAF\u6E90"}),!!n.is_download&&B.jsx("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function n5(e,t=[],n=60){const[r,a]=dt("");return ft(()=>{a("");let o=0;const i=setInterval(()=>{a(s=>o>=e.length?(clearInterval(i),s):(o++,e.slice(0,o)))},n);return()=>clearInterval(i)},[e,...t]),r}function r5(e){const{assistantList:t,eventsEmit:n,styles:r,selectedId:a,onSelectAssistant:o,productLogo:i}=e,[s,l]=dt(1),c=12,u=wt();ft(()=>{a&&u.current!==a&&(n==null||n("conversation:new_assistant_change",{assistantId:a}),u.current=a)},[a,n]);const d=Lt(()=>Zr(),[]);ft(()=>{var y;if((y=r==null?void 0:r.theme)!=null&&y.colors){const x=document.createElement("style");return x.innerHTML=e5(r.theme.colors,d),x.id=`g-welcome-styles-${d}`,document.head.appendChild(x),()=>{const w=document.getElementById(x.id);w&&w.remove()}}},[r,d]);const g=Lt(()=>t.find(y=>y.id===a),[t,a]),h=Lt(()=>JSON.parse((g==null?void 0:g.configJson)||"{}"),[g]),v=Math.ceil(((t==null?void 0:t.length)||0)/c),m=(t==null?void 0:t.slice((s-1)*c,s*c))||[];ft(()=>{if(a&&t){const y=t.findIndex(x=>x.id===a);if(y!==-1){const x=Math.floor(y/c)+1;l(x)}}},[a,t,c]);const p=h.prologue||"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",b=n5(p,[a],30);return B.jsxs("div",{className:`flex flex-col items-center justify-center h-full w-full g-welcome-${d}`,children:[B.jsx("img",{src:i||QF,alt:"logo",className:"mb-4",style:{width:100,height:100}}),B.jsx("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:b}),B.jsx("div",{className:"text-sm text-gray-500 mb-20",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B\uFF0C\u5F00\u59CB\u4F60\u7684\u667A\u80FD\u95EE\u7B54\u4E4B\u65C5"}),!a&&B.jsx("div",{className:"flex mb-2 g-welcome-subtitle",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B"}),B.jsx("div",{className:"flex flex-wrap gap-3 px-5 justify-center mb-4",children:m&&m.length>0?m.map(y=>{const x=a===y.id;let w=y.icon;try{const C=JSON.parse(y.configJson||"{}");w=w||C.icon||C.avatar||C.logo}catch{}return w=w||ZF,B.jsx(Mp,{content:()=>B.jsx(t5,{config:t.find(C=>C.id===y.id),styles:r}),trigger:"hover",placement:"bottom",children:B.jsxs("button",{className:`g-welcome-btn px-3 cursor-pointer rounded-full border font-medium min-w-[160px] text-sm transition-all flex items-center gap-2 ${x?"active":""}`,onClick:()=>o==null?void 0:o(y.id),title:y.name,children:[B.jsx("span",{className:"icon-badge",children:B.jsx("img",{src:w,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),B.jsx("span",{className:"truncate max-w-[180px]",children:y.name})]})},y.id)}):B.jsx("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})}),v>1&&B.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[B.jsx("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>l(y=>Math.max(1,y-1)),disabled:s===1,children:"\u4E0A\u4E00\u9875"}),B.jsxs("span",{className:"g-welcome-pagination-text",children:[s," / ",v]}),B.jsx("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>l(y=>Math.min(v,y+1)),disabled:s===v,children:"\u4E0B\u4E00\u9875"})]})]})}class Ol extends Error{}let sr=null;const a5=({baseUrl:e,token:t,CSRFToken:n,setChatData:r,activeSessionId:a,setAppStatus:o,setConversationList:i})=>{const s=({content:v,status:m,respTime:p,filePaths:b,reference:y,webReference:x,databaseReference:w,llmType:C,resultType:S,queryId:E,tokens:k})=>{r($=>{var F;if(!$[0])return $;const O=$[0],D=O.messages||[],P=D.length-1;if(P<0)return $;const R=D[P];if(R.istype!=="ai")return $;let N=D.slice();if(b!=null&&b.length){const j=D.length-2;if(j>=0&&((F=D[j])==null?void 0:F.istype)==="user"){const A={...D[j],filePaths:b};N[j]=A}}const I={...R,content:(R.content||"")+v,status:m,respTime:p,filePaths:b,reference:y,webReference:x,databaseReference:w??R.databaseReference,resultType:S,llmType:C,tokens:k,queryId:E||R.queryId||Zr(32)};return I.clientSideId=I.clientSideId||I.queryId+"-ai",N[P]=I,[{...O,isNew:!1,messages:N},...$.slice(1)]})},l=v=>{if(v instanceof Ol)throw o(m=>({...m,display:"error",sender:"ready"})),sr&&(sr.abort(),sr=null),v};return{updateUserFilesMessage:({currentFiles:v})=>{r(m=>{if(!m[0])return m;const p=m[0],b=p.messages||[];if(!b.length)return m;const y=b.length-2;if(y<0||b[y].istype!=="user")return m;const w=b.slice();return w[y]={...b[y],currentFiles:v},[{...p,messages:w},...m.slice(1)]})},api_startChat_re:(v,m)=>{sr&&sr.abort(),sr=new AbortController;const p=`${e}/qa/ai/question_re`;console.log("data",v);const b={...v};Y2(p,{method:"post",signal:sr.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:t||"","X-CSRF-TOKEN-IN":n||""},openWhenHidden:!0,body:JSON.stringify(b),onopen:async y=>{if(y.status===500)throw new Ol("Internal Server Error");if(!y.ok)throw new Ol(`HTTP error: ${y.status}`)},onmessage:y=>{const x=JSON.parse(y.data);if(a!==x.sessionId)return;const{reply:w,resultType:C,respTime:S,reference:E,webReference:k,filePaths:$,status:O,docs:D,llmType:P,databaseReference:R}=x,N=$?JSON.parse($):[];if(O===2&&w&&w.content&&(w.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||w.content.includes("\u5931\u8D25")||w.content.includes("\u9519\u8BEF")||w.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&o(I=>({...I,display:"ready",sender:"ready"})),O===2){if(s({content:w.content||"",status:2,respTime:S,filePaths:N,reference:E||D||"",webReference:k||"",databaseReference:R,llmType:P,resultType:C,queryId:x.queryId,tokens:x.tokens}),o(I=>({...I,display:"ready",sender:"ready"})),m){const I=S||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",I),m(I)}}else s({content:w.content||"",status:O,respTime:S,filePaths:N,reference:E||D||"",webReference:k||"",databaseReference:R,llmType:P,resultType:C,queryId:x.queryId,tokens:x.tokens})},onerror:l})},addEmptyMessage:({queryId:v,content:m,filePaths:p,currentFiles:b})=>{r(y=>{const x=new Date().toISOString(),w=v||Zr(32),C={istype:"user",content:m,time:x,queryId:w,clientSideId:w+"-user",filePaths:p||"",currentFiles:b||[]},S={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:w,clientSideId:w+"-ai"},E=y.find(k=>k.id===a);return E?E.messages.push(C,S):console.warn("addEmptyMessage called without an active session."),[...y]})},setLastEmptyMessage:({now:v})=>{r(m=>{if(!m[0])return m;const p=m[0],b=p.messages||[];if(!b.length)return m;const y=b.length-1;if(y<0)return m;const x=b[y];if(x.istype!=="ai")return m;const w=b.slice();return w[y]={...x,istype:"ai",content:"",time:v,streaming:!0,status:0},[{...p,messages:w},...m.slice(1)]})},stopStream:()=>{sr&&(sr.abort(),sr=null),o(v=>({...v,display:"ready",sender:"ready"}))}}},o5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:tp}=Qr,{useForm:i5}=Xt,C0={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},s5=({open:e,setOpen:t,feedBackList:n,handleConfirm:r})=>{const a={header:{padding:"20px 24px",borderBottom:"1px solid #F0F0F0",margin:0},body:{padding:"16px 24px 20px 24px",borderBottom:"1px solid #F0F0F0"},mask:{},footer:{padding:"16px 24px",margin:0},content:{padding:0,borderRadius:"4px",width:"563px"}},[o]=i5(),[i,s]=dt({}),l=async()=>{try{const c=await o.validateFields();t(!1);const u={...c};Object.entries(i||{}).forEach(d=>{const[g,h]=d;h&&(u[C0[g]]=h)}),r(u)}catch(c){console.log(c);return}};return ft(()=>{e||(o.resetFields(),s(null))},[e]),B.jsx(ls,{modal:{styles:a},children:B.jsxs(us,{open:e,onCancel:()=>t(!1),title:B.jsx("div",{className:"text-[16px] text-[#2A2A2A] font-bold leading-[1]",children:"\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01\u8FD9\u5C06\u5E2E\u52A9\u6211\u4EEC\u4E0D\u65AD\u4F18\u5316\u4E0E\u63D0\u5347\u3002"}),footer:B.jsxs("div",{children:[B.jsx(gn,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),B.jsx(gn,{type:"primary",className:"w-[76px] border-none",onClick:l,children:"\u786E\u8BA4"})]}),children:[B.jsx(l5,{feedBackList:n,treeSelectResult:i,setTreeSelectResult:s}),B.jsxs(Xt,{form:o,layout:"vertical",children:[B.jsx(Xt.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:B.jsx(tp,{})})," ",B.jsx(Xt.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:B.jsx(tp,{})}),B.jsx(Xt.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:B.jsx(Qr,{})}),B.jsx(Xt.Item,{name:"deptName",label:"\u90E8\u95E8",children:B.jsx(Qr,{})})]})]})})},l5=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,a]=dt(!1),[o,i]=dt([]),[s,l]=dt([]),[c,u]=dt([]),[d,g]=dt(null),h=Lt(()=>(l([]),d!=null&&d.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:d.items.map(m=>({title:m,key:m}))}]:[]),[d]),v=m=>{u(p=>Array.isArray(p)&&Array.isArray(s)?Object.entries(t).reduce((y,x)=>{const[w,C]=x,E=(C?C.split(";"):[]).filter(k=>k!==m);return n(k=>({...k||{},[w]:E.join(";")})),[...y,...E]},[]):p)};return ft(()=>{if(i(["\u5168\u9009"]),!t||!(d!=null&&d.que_name))return;const m=t[d.que_name]||"",p=m?m.split(";"):[];l(p)},[h,r]),ft(()=>{t===null&&(u([]),g(null),l([]))},[t]),ft(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",C0),console.log("selectedParent",d)},[t,c]),B.jsxs("div",{className:"relative mb-[24px] z-20",children:[B.jsxs("div",{className:"absolute w-full z-10",children:[B.jsxs("div",{className:"h-[32px] box-border flex items-center justify-between border-[1px] border-solid border-[#D9D9D9] rounded-[4px] cursor-pointer",onClick:()=>a(!r),children:[B.jsx("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),B.jsx("img",{src:o5,width:24,height:24,className:"mr-[16px]"})]}),B.jsxs("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[B.jsxs("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[B.jsx("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((m,p)=>{var b;return B.jsxs("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(d==null?void 0:d.que_name)===m.que_name?"#E6F4FF":""},children:[B.jsx("div",{className:"h-full w-full leading-[32px]",onClick:()=>{g(m)},children:B.jsxs("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[m.que_name,"(",t&&t[m.que_name]?t[m.que_name].split(";").length:0,"/",(b=m==null?void 0:m.items)==null?void 0:b.length,")"]})}),B.jsx(Sy,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},p)})}),B.jsx("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:B.jsx(Ou,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:h,blockNode:!0,checkedKeys:s,expandedKeys:o,onCheck:m=>{Array.isArray(m)&&n(p=>({...p||{},[(d==null?void 0:d.que_name)||""]:(m||[]).filter(b=>b!=="\u5168\u9009").join(";")})),l(m)}})})]}),B.jsxs("div",{className:"flex justify-end h-[40px] items-center",children:[B.jsx(gn,{size:"small",className:"mr-[8px]",onClick:()=>a(!1),children:"\u53D6\u6D88"}),B.jsx(gn,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{u(m=>Array.isArray(m)&&Array.isArray(s)?Object.values(t).reduce((b,y)=>[...b,...y?y.split(";"):[]],[]):m),a(!1)},children:"\u786E\u8BA4"})]})]})]}),B.jsx("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&B.jsxs("div",{children:[B.jsxs("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(m=>{let p="";return Object.entries(t||{}).forEach(b=>{const[y,x]=b;x.indexOf(m)>-1&&(p=y)}),B.jsxs(Fp,{closable:!0,className:"mt-[5px]",onClose:()=>v(m),children:[p,"\uFF08",m,"\uFF09"]},m)})]})]})},np=e=>e?Array.isArray(e)?e.map(r=>"/minio/"+r.split("/").slice(3).join("/")):"/minio/"+e.split("/").slice(3).join("/"):"",rp="http://10.15.12.13:9000/",c5=e=>{if(typeof e=="string"){const t=e.split(".");return t.length?t[t.length-1]:""}else return""},u5=e=>{var C,S,E,k,$,O,D,P;const{file_type:t,file_name:n,url:r,parse_url:a,retrieve_tags:o,file_id:i,parsed_file_type:s,onlyDownloadTypes:l,references:c,eventsEmit:u,styles:d,isUploadFile:g,type:h,collectionItems:v,pdfPages:m=0,fileManagerData:p}=e;if(h==="collection"&&Array.isArray(v)){const I=`calc(90% - ${.5}px)`,M=v.slice(0,4),F=v.length>4,j="\u6253\u5F00\u5408\u96C6",A=()=>{if(p&&t==="pdf"&&!e.pdfPages){const _=((p==null?void 0:p.uploadedFiles)||[]).find(L=>{var z;return((L==null?void 0:L.name)||((z=L==null?void 0:L.file)==null?void 0:z.name))===n});if(!(_!=null&&_.pdfPages)){Vt.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{...e,pdfPages:(_==null?void 0:_.pdfPages)||0})}else u==null||u("reference_file:click",e)};return B.jsxs("div",{className:"user-file relative group flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all bg-white shadow",style:{width:94,height:94,minWidth:94,minHeight:94,borderColor:(S=(C=d==null?void 0:d.theme)==null?void 0:C.colors)==null?void 0:S.border},onClick:A,children:[B.jsx("div",{className:"grid grid-cols-2 items-center justify-center grid-rows-2 gap-1 w-full h-full",style:{width:"100%",height:"100%",gap:1},children:M.map((_,L)=>{var H,W,K,G;if(F&&L===3)return B.jsx("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{width:I,height:I},children:B.jsx("span",{className:"text-xl text-gray-300 font-bold scale-75",children:"..."})},"ellipsis");if(_.file_type==="image"||_.file_type==="jpg"||_.file_type==="jpeg"||_.file_type==="png"||_.file_type==="gif"||_.file_type==="bmp"||_.file_type==="webp")return B.jsx("div",{className:"relative flex items-center justify-center bg-white rounded-lg border overflow-hidden",style:{width:I,height:I,borderColor:(W=(H=d==null?void 0:d.theme)==null?void 0:H.colors)==null?void 0:W.border},children:B.jsx("div",{className:"flex items-center justify-center w-full h-full scale-75",children:B.jsx("img",{src:String(_.url||_.file_path||""),alt:_.file_name||"",className:"object-contain max-w-full max-h-full"})})},_.file_name||L);const T=Jc(String(_.file_type||""),d);return B.jsx("div",{className:"user-file flex flex-col items-center justify-center rounded-lg border bg-gray-50 p-1 text-sm",title:_.file_name,style:{width:I,height:I,borderColor:(G=(K=d==null?void 0:d.theme)==null?void 0:K.colors)==null?void 0:G.border},children:B.jsx("div",{className:"flex items-center justify-center w-full h-full scale-75",children:T})},_.file_name||L)})}),B.jsx("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg pointer-events-none",children:B.jsxs("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[B.jsx(kl,{size:20,className:"mb-1 text-white"}),B.jsx("span",{className:"text-white text-center",style:{fontSize:12},children:j})]})})]})}const b=()=>{if(console.log(a,"parse_url",r,"url"),p&&t==="pdf"&&!m){const R=((p==null?void 0:p.uploadedFiles)||[]).find(N=>{var I;return((N==null?void 0:N.name)||((I=N==null?void 0:N.file)==null?void 0:I.name))===(n||"").replace(/\s+/g,"")});if(!(R!=null&&R.pdfPages)){Vt.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:a,retrieve_tags:o,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:g,pdfPages:R.pdfPages||0})}else u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:a,retrieve_tags:o,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:g,pdfPages:m})},y=Lt(()=>(n||"").split(".").pop()||"",[n]),x=Jc(y,d),w=async()=>{if(r){const R=np(r.indexOf("http")>-1?r:`${rp}/${r}`);if(y.toLowerCase()==="json"){try{const M=await fetch(R);if(!M.ok)throw new Error("\u4E0B\u8F7D\u5931\u8D25");const F=await M.blob(),j=document.createElement("a");j.href=URL.createObjectURL(F),j.download=n||"",document.body.appendChild(j),j.click(),document.body.removeChild(j),setTimeout(()=>URL.revokeObjectURL(j.href),1e3)}catch{alert("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25")}return}const I=document.createElement("a");I.href=R,I.download=n||"",document.body.appendChild(I),I.click(),document.body.removeChild(I)}};return l&&l.includes(y.toLowerCase())?B.jsxs("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:w,style:{borderColor:(k=(E=d==null?void 0:d.theme)==null?void 0:E.colors)==null?void 0:k.border},children:[x,B.jsx("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),B.jsx("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:B.jsxs("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[B.jsx(kl,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),B.jsx("div",{className:"text-white text-center",style:{fontSize:10},children:"\u4E0B\u8F7D\u6587\u4EF6"})]})})]},n):y==="image"||y==="jpg"||y==="jpeg"||y==="png"||y==="gif"||y==="bmp"||y==="webp"?B.jsxs("div",{className:"relative group w-24 h-24 cursor-pointer flex items-center justify-center",onClick:()=>b(),children:[r?B.jsx("img",{src:String(np(r&&r.indexOf("http")>-1?r:`${rp}/${r}`)||""),alt:n||"",className:"w-full h-full object-cover rounded-md border",style:{borderColor:(O=($=d==null?void 0:d.theme)==null?void 0:$.colors)==null?void 0:O.border}}):B.jsx("div",{className:"w-full h-full flex items-center justify-center",children:B.jsx("span",{className:"animate-spin rounded-full border-2 border-gray-300 border-t-blue-500 w-8 h-8 inline-block"})}),B.jsx("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-md",children:B.jsxs("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[B.jsx(jF,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),B.jsx("div",{className:"text-white text-center",children:"\u67E5\u770B\u56FE\u7247"})]})})]},n):B.jsxs("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:b,style:{borderColor:(P=(D=d==null?void 0:d.theme)==null?void 0:D.colors)==null?void 0:P.border},children:[x,B.jsx("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),B.jsx("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:B.jsxs("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[B.jsx(kl,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),B.jsx("div",{className:"text-white text-center",style:{fontSize:10},children:"\u6253\u5F00\u6587\u4EF6"})]})})]},n)},d5=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",f5=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:a="text-gray-400",statusIcon:o,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:d,extra:g,style:h})=>B.jsxs("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:h,children:[B.jsx("div",{className:"pt-1",children:n}),B.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[B.jsxs("div",{className:"flex items-center justify-between gap-1",children:[B.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),B.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:d5(t)})]}),B.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${a}`,children:[o,B.jsx("span",{children:r})]})]}),g,c&&!u&&B.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{d&&l?d(l):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:B.jsx(su,{className:"w-3.5 h-3.5"})})]});function Jc(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?B.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?B.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?B.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?B.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/excel",size:18});case"pdf":return n.pdf?B.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/pdf",size:18});case"txt":return n.txt?B.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/txt",size:18});case"md":return n.md?B.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/document",size:18});case"json":return n.json?B.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/json",size:18});case"html":case"htm":return n.html?B.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):B.jsx(qt,{type:"rag/url",size:18});case"xml":default:return B.jsx(qt,{type:"rag/file",size:18})}}const m5=[{file:{name:"\u4EA7\u54C1\u9700\u6C42\u6587\u6863.pdf",size:1024*1024*2.5,type:"application/pdf"},type:"pdf",status:"uploaded",url:"https://example.com/file1.pdf"},{file:{name:"\u6570\u636E\u5206\u6790\u62A5\u544A.xlsx",size:1024*1024*1.2,type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},type:"excel",status:"uploaded",url:"https://example.com/file3.xlsx"},{file:{name:"\u7CFB\u7EDF\u67B6\u6784\u56FE.png",size:1024*512,type:"image/png"},type:"image",status:"uploaded",url:"https://example.com/file2.png"}];function p5({open:e,onCancel:t,files:n=m5,currentFiles:r=[],onUpload:a,onRemoveFile:o,styles:i,eventsEmit:s}){const l={pending:"\u5F85\u4E0A\u4F20",uploading:"\u4E0A\u4F20\u4E2D",uploaded:"\u5DF2\u4E0A\u4F20",analyzing:"\u89E3\u6790\u4E2D",analyze_failed:"\u89E3\u6790\u5931\u8D25",error:"\u5931\u8D25"},[c,u]=dt([]),d=(m,p)=>{s&&s("uploaded_file:removeFromTemp",{file:m,idx:p})},g=i&&i.theme&&i.theme.colors?i.theme.colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},h=n.map((m,p)=>B.jsxs("div",{className:"relative flex flex-col gap-2.5 items-center justify-center",children:[B.jsx("div",{className:"absolute right-1 top-1 z-10",children:B.jsx(Jg,{title:"\u786E\u8BA4\u4ECE\u4E34\u65F6\u5BF9\u8BDD\u77E5\u8BC6\u5E93\u79FB\u9664\u8BE5\u6587\u4EF6\uFF1F",onConfirm:()=>d(m,p),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",children:B.jsx("button",{className:"bg-white cursor-pointer rounded-full p-0.5",style:{lineHeight:0,color:g&&g.text?g.text:"#FF0000",transition:"background 0.2s, color 0.2s"},onMouseOver:b=>{b.currentTarget.style.color=g&&g.error?g.error:"#FF0000"},onMouseOut:b=>{b.currentTarget.style.color=g.text},title:"\u79FB\u9664",children:B.jsx(su,{className:"w-3 h-3"})})})}),B.jsx(u5,{file_type:c5(m.file.name||m.name),file_name:m.name||m.file.name,url:m.url,retrieve_tags:[],styles:i,isUploadFile:!0,eventsEmit:s,parse_url:m.convertedFilePath,pdfPages:m.pdfPages||0})]},m.file.name+p)),v=r.map((m,p)=>{const b=m.file.name.split(".").pop()||"",y=Jc(b,i);return B.jsx(f5,{cardId:`pending-file-card-${p}`,fileName:m.file.name,fileSize:m.file.size,icon:y,statusText:l[m.status||"pending"],statusColor:"text-gray-400",showRemove:!0,onRemove:()=>o&&o(m,p,"pending"),themeColors:g,style:{boxShadow:"none",height:55,background:"#f8fafc"}},m.file.name+p)});return c.length>0?(g&&g.error&&g.error,g&&g.error&&g.error+"",g&&g.error&&g.error):(g&&g.disabledText&&g.disabledText,g&&g.disabledBackground&&g.disabledBackground,g&&g.disabledText&&g.disabledText),B.jsxs(us,{open:e,onCancel:t,footer:null,title:"\u5BF9\u8BDD\u4E34\u65F6\u6587\u4EF6\u77E5\u8BC6\u5E93",closable:!1,width:800,styles:{body:{padding:"0",maxHeight:"70vh",overflow:"auto"}},children:[B.jsxs("div",{className:"file-manager-modal space-y-6 px-4 py-4",children:[B.jsxs("div",{className:"",children:[B.jsx("div",{className:"flex items-center mb-2 justify-between",children:B.jsxs("div",{className:"flex items-center",children:[B.jsx("span",{className:"text-xs font-semibold text-gray-700",children:"\u5DF2\u4E0A\u4F20\u6587\u4EF6"}),B.jsxs("span",{className:"ml-2 text-xs text-gray-400",children:[n.length," \u4E2A"]})]})}),B.jsx("div",{className:"w-full relative min-h-[200px] max-h-[260px] p-2 overflow-y-auto",style:{overflowX:"hidden"},children:B.jsx("div",{className:"flex flex-wrap gap-1",children:h.length>0?h:B.jsx("div",{className:"flex items-center w-full h-full py-10 justify-center text-gray-400 text-sm",children:"\u6682\u65E0\u5DF2\u4E0A\u4F20\u6587\u4EF6"})})})]}),B.jsxs("div",{children:[B.jsxs("div",{className:"flex items-center mb-2",children:[B.jsx("span",{className:"text-xs font-semibold text-gray-700",children:"\u5F85\u4E0A\u4F20\u6587\u4EF6"}),B.jsxs("span",{className:"ml-2 text-xs text-gray-400",children:[r.length," \u4E2A"]})]}),B.jsxs("div",{className:"flex gap-2 overflow-x-auto pb-2",children:[v,B.jsx(Nu.Dragger,{multiple:!0,showUploadList:!1,beforeUpload:(m,p)=>(m===p[0]&&(a==null||a(p)),!1),className:"!bg-gray-50 !border-dashed !border-gray-300 hover:!border-blue-400 cursor-pointer min-w-[160px] max-w-[220px] flex flex-row items-center justify-center border-2 rounded-lg transition-all",style:{height:45,boxShadow:"none",padding:0},children:B.jsxs("div",{className:"flex flex-row items-center pb-8 justify-center",children:[B.jsx(Pp,{size:20,className:"text-blue-400 mr-2"}),B.jsx("div",{className:"text-xs text-gray-500",children:"\u4E0A\u4F20\u6587\u4EF6"})]})})]})]}),B.jsx("div",{className:"flex justify-end gap-2",children:B.jsx(gn,{type:"primary",onClick:t,children:"\u786E\u8BA4"})})]}),B.jsx("style",{children:`
|
|
521
|
+
.file-manager-modal .ant-upload-wrapper,
|
|
522
|
+
.file-manager-modal .ant-upload-drag,
|
|
523
|
+
.file-manager-modal .ant-upload-drag-container {
|
|
524
|
+
min-height: 55px !important;
|
|
525
|
+
height: 55px !important;
|
|
526
|
+
padding: 0 !important;
|
|
527
|
+
}
|
|
528
|
+
`})]})}function g5(){const[e,t]=dt(0);return ft(()=>{let n;return e<98?n=setTimeout(()=>{t(r=>r+Math.random()*6+1)},80):e<100&&(n=setTimeout(()=>t(100),400)),()=>clearTimeout(n)},[e]),B.jsxs("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[B.jsxs("div",{className:"mb-8 flex flex-col items-center",children:[B.jsx("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),B.jsx("div",{className:"mt-2 text-sm text-[#555555]",children:"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),B.jsxs("div",{className:"relative w-80 max-w-sm",children:[B.jsx("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:B.jsx("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),B.jsxs("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),B.jsxs("div",{className:"mt-8 flex flex-col items-center gap-2",children:[B.jsx("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),B.jsx("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const w0=document.createElement("style");w0.textContent=`
|
|
474
529
|
.animate-bounce-slow {
|
|
475
530
|
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
476
531
|
}
|
|
@@ -478,4 +533,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
478
533
|
0%, 100% { transform: translateY(0); }
|
|
479
534
|
50% { transform: translateY(-12px); }
|
|
480
535
|
}
|
|
481
|
-
`;document.head.appendChild(tb);
|
|
536
|
+
`;document.head.appendChild(w0);function v5(){return B.jsxs("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[B.jsxs("div",{className:"flex items-start gap-4",children:[B.jsx("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),B.jsx("div",{className:"flex-1",children:B.jsx(Go,{active:!0,paragraph:{rows:1}})})]}),B.jsxs("div",{className:"flex items-start gap-4",children:[B.jsx("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),B.jsx("div",{className:"flex-1",children:B.jsx(Go,{active:!0,paragraph:{rows:3}})})]}),B.jsxs("div",{className:"flex items-start gap-4",children:[B.jsx("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),B.jsx("div",{className:"flex-1",children:B.jsx(Go,{active:!0,paragraph:{rows:1}})})]}),B.jsxs("div",{className:"flex items-start gap-4",children:[B.jsx("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),B.jsx("div",{className:"flex-1",children:B.jsx(Go,{active:!0,paragraph:{rows:2}})})]})]})}function h5({msg:e,subMsg:t}){return B.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[B.jsx("div",{className:"mb-6 animate-bounce",children:B.jsx(AF,{size:64,className:"text-[#d70016]"})}),B.jsx("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:e||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),B.jsx("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:t||"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),B.jsx(gn,{type:"primary",icon:B.jsx(x0,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function y5(){return B.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[B.jsx("div",{className:"mb-6 animate-bounce",children:B.jsx(FF,{size:64,className:"text-[#d70016]"})}),B.jsx("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),B.jsx("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),B.jsx(gn,{type:"primary",icon:B.jsx(x0,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}const b5=1e3,x5=3e3,C5=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const a={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[o]=pp();return ft(()=>{if(!e){o.resetFields();return}o.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),B.jsx(ls,{modal:{styles:a},children:B.jsx(us,{title:B.jsx("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:B.jsxs("div",{className:"mt-[16px] flex justify-end",children:[B.jsx(gn,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),B.jsx(gn,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await o.validateFields();t("ok_rename",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:B.jsx(Xt,{form:o,children:B.jsx(Xt.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:B.jsx(Qr,{})})})})})},w5=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const a={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[o]=pp();return ft(()=>{if(!e){o.resetFields();return}o.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),B.jsx(ls,{modal:{styles:a},children:B.jsx(us,{title:B.jsx("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:B.jsxs("div",{className:"mt-[16px] flex justify-end",children:[B.jsx(gn,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),B.jsx(gn,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await o.validateFields();t("ok_remove",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:B.jsx("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${r.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})};function q5(e=XN){return function({token:n,url:r="http://localhost:8888",styles:a,CSRFToken:o,eventsEmit:i,...s}){const l=Lt(()=>O0({theme:Qc,mode:"light"},a),[a]),[c,u]=dt(!1),[d,g]=dt(!1),[h,v]=dt(null),[m,p]=dt([]),[b,y]=dt([]),[x,w]=dt(void 0),[C,S]=dt([]),[E,k]=dt([]),[$,O]=dt(void 0),[D,P]=dt(!1),[R,N]=dt({display:"ready",sender:"ready",app:"initializing"}),[I,M]=dt([]);function F(q,V){if(!V)return q;const ne=Array.isArray(q)?[...q]:{...q};for(const le in V)V[le]!==void 0&&V[le]!==null&&Object.prototype.hasOwnProperty.call(V,le)&&(typeof q[le]=="object"&&q[le]!==null&&!Array.isArray(q[le])&&typeof V[le]=="object"&&V[le]!==null&&!Array.isArray(V[le])?ne[le]=F(q[le],V[le]):ne[le]=V[le]);return ne}const[j,A]=dt(()=>F(Qm,s.senderConfig));ft(()=>{s.senderConfig&&(console.log("hahah",j,s.senderConfig),A(F(Qm,s.senderConfig)))},[s.senderConfig]);const[_,L]=dt([]),[z,T]=dt(()=>({uploadedFiles:[]}));ft(()=>{console.log("fileManagerData",z)},[]),ft(()=>{if(!x)return;const q=b.find(le=>le.id===x);let V=[],ne=!1;if(q&&q.messages){const le=[...q.messages||[]].reverse().find(Se=>Se.istype==="ai");if(le!=null&&le.reference&&le.resultType===5){ne=!0;try{V=JSON.parse(le.reference).map(Ae=>tt(Ae))}catch{}}}ne&&T({uploadedFiles:V})},[b]),ft(()=>{T({uploadedFiles:[]})},[x]);const[H,W]=be.useState(()=>{var V;if(!E||E.length===0)return;const q=E.find(ne=>ne.isDefault);return q?q.id:(V=E[0])==null?void 0:V.id});be.useEffect(()=>{if(!E||E.length===0)return;const q=E.some(V=>V.id===H);if(!H||!q){const V=E.find(ne=>ne.isDefault);W(V?V.id:E[0].id)}},[E]);const[K,G]=dt({}),U=wt(void 0),Z=wt(void 0),Q=wt(void 0);wt({sessionId:""}),wt(null);const[Y,ee]=dt({}),[ce,me]=dt(!1),[we,se]=dt([]),ge=wt(!1),{api_startChat_re:Ee,addEmptyMessage:Te,setLastEmptyMessage:Pe,stopStream:he}=a5({baseUrl:r,CSRFToken:o,token:n,setChatData:y,activeSessionId:x,setAppStatus:N,setConversationList:p}),ke=Lt(()=>{const q={};return(E||[]).forEach(V=>{q[V.id]=V}),q},[E]),de=Lt(()=>{const q=b.find(ne=>ne.id===x)||{id:x,messages:[]},V=q.configId?ke[q.configId]:null;return{...q,assistantInfo:V}},[b,x,ke]),Re=Lt(()=>{if(de.configId&&ke){const q=ke[de.configId];return q!=null&&q.configJson?JSON.parse(q.configJson).is_download:!1}else return!1},[de.configId,ke]),He=Lt(()=>{if((de.configId||$)&&ke){const q=ke[de.configId];if(q!=null&&q.configJson){const V=JSON.parse(q.configJson);return console.log("is_enableThinking",de.configId,ke,$),!!V.thinking}else if($){const V=ke[$];if(V!=null&&V.configJson)return!!JSON.parse(V.configJson).thinking}}return!1},[de.configId,ke,$]);function Ke(q,V){const ne=new Map;return q.forEach(le=>ne.set(le.uid,tt(le))),V.forEach(le=>ne.set(le.uid,tt(le))),Array.from(ne.values())}function tt(q){if(!q||q.file&&q.file.name)return q;const V=q.name||q.fileName||"";return{...q,url:q.filePath||"",uid:q.uid||"",file:{name:V,size:typeof q.size=="string"&&q.size.endsWith("MB")?Number(q.size.replace("MB",""))*1024*1024:q.size||0,type:q.type||""},name:V}}ft(()=>{if(U.current&&U.current!==x){const V=U.current,ne=m.find(Ae=>Ae.sessionId===V&&Ae.isNew),le=b.find(Ae=>Ae.id===V&&Ae.isNew),Se=le&&le.messages&&le.messages.length>0;ne&&!Se&&(p(Ae=>Ae.filter(ct=>ct.sessionId!==V)),y(Ae=>Ae.filter(ct=>ct.id!==V)))}U.current=x;const q=de.messages&&de.messages.length>0?de.messages[de.messages.length-1].recommendQuestion:[];S(q)},[x,m,b,de.messages]),ft(()=>{N(q=>({...q,app:"initializing"})),Promise.all([kn.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}}),kn.get(`${r}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:n}})]).then(([q,V])=>{const ne=q.data.data.records||[];p(ne),x||ie(),k(V.data.data||[]),N(le=>({...le,app:"ready"}))}).catch(q=>{N(V=>({...V,app:"error"}))})},[r,n]),ft(()=>{x&&(N(q=>({...q,display:"loading"})),kn.get(`${r}/qa/dialogue/getDialogBySessionId?sessionId=${x}`,{headers:{Authorization:n}}).then(q=>{var De;if(!q.data.data){N(Me=>({...Me,display:"ready"}));return}const V=((De=q.data.data)==null?void 0:De.queryReplyPairList)||[],ne=qF(V),{sessionId:le,searchConfigDTO:Se,filePath:Ae,configId:ct,reference:Qe,webReference:it,uploadedFiles:gt,fileList:Ve,currentFiles:ht}=q.data.data;if(ne.length>0){const Me=ne.length-1-[...ne].reverse().findIndex(Be=>Be.istype==="ai");Me>=0&&Me<ne.length&&ne[Me].istype==="ai"&&(Qe&&(ne[Me].reference=Qe),it&&(ne[Me].webReference=it))}const Ze=ht||Ve||gt;if(Ze&&ne.length>0){const Me=[...ne].reverse().findIndex(Be=>Be.istype==="user");Me!==-1&&(console.log(ne[ne.length-1-Me].currentFiles,"filesData"),ne[ne.length-1-Me].currentFiles=Ze)}m.find(Me=>Me.sessionId===le)&&p(Me=>Me.map(Be=>Be.sessionId===le?{...Be,searchConfigDTO:Se,filePath:Ae,configId:ct}:Be));const je={configId:q.data.data.configId,filePath:q.data.data.filePath,searchConfigDTO:q.data.data.searchConfigDTO||{},sessionId:q.data.data.sessionId,label:q.data.data.label,kbId:q.data.data.kbId};y(Me=>{const Be=Me.filter(yt=>yt.id!==x);return[{id:x,messages:ne,...je},...Be]}),N(Me=>({...Me,display:"ready"}))}).catch(q=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",q),q.response&&q.response.status===404&&ie(),N(V=>({...V,display:"error"}))}))},[x,r,n]),ft(()=>{const q=z.uploadedFiles.length;A(V=>{const ne=Array.isArray(V.actions)?V.actions:[];return{...V,actions:ne.map(Se=>Se.name==="history"?{...Se,badgeCount:q}:Se)}})},[z.uploadedFiles]),ft(()=>{UF({url:r,token:n},q=>{se(q)})},[]),be.useEffect(()=>{_.length&&y(q=>{if(!q[0])return q;const{messages:V}=q[0];for(let ne=V.length-1;ne>=0;ne--)if(V[ne].istype==="user"){const le=V[ne].currentFiles||[];V[ne].currentFiles=_.map(Se=>{var ct,Qe,it;const Ae=le.find(gt=>gt.uid===Se.uid);return{name:((ct=Se.file)==null?void 0:ct.name)||Se.name,size:((Qe=Se.file)==null?void 0:Qe.size)||Se.size,type:((it=Se.file)==null?void 0:it.type)||Se.type,status:Se.status,uid:Se.uid,url:Se.url||(Ae==null?void 0:Ae.url)||""}});break}return[...q]})},[_]);let qe=null,We=null;const lt=(q,V,ne,le)=>{const Se=q.join(",");let Ae=0;We=()=>{ge.current=!0};const ct=async()=>{if(!ge.current){if(Ae>=b5){ge.current||le("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}Ae++;try{const Qe=await kn.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${Se}`,{headers:{Authorization:n}});if(ge.current)return;if(Qe.data.success){const it=Qe.data.data;ge.current||V(it),it.every(Ve=>Ve.status===3)?ge.current||ne():ge.current||setTimeout(ct,x5)}else ge.current||le(Qe.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch{if(ge.current)return;le("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};ct()},Fe=(q,V)=>{y(ne=>{const le=[...ne];return le[0]&&(le[0]={...le[0],messages:le[0].messages.map(Se=>Se.queryId===q?{...Se,feedbackResult:V}:Se)}),le})},ae=async q=>{var V,ne;if(q)try{const le=(de==null?void 0:de.configId)||((V=ke==null?void 0:ke[(de==null?void 0:de.configId)||""])==null?void 0:V.id)||"",Se=await kn.get(`${r}/qa/ai/recommendQuestion?queryId=${q}&configId=${le||""}`.replace(/\?&/,"?"),{headers:{Authorization:n}});S(((ne=Se.data)==null?void 0:ne.data)||[])}catch{S([])}};function Le(q){const{content:V,audioUrl:ne,filePaths:le,queryId:Se}=q;if(!x||!Se)return;const Ae=(de==null?void 0:de.messages)||[],ct=Ae.findIndex(Ze=>(Ze==null?void 0:Ze.queryId)===Se&&((Ze==null?void 0:Ze.istype)==="ai"||(Ze==null?void 0:Ze.isUser)===!1));let Qe;if(ct>0)for(let Ze=ct-1;Ze>=0;Ze-=1){const kt=Ae[Ze];if((kt==null?void 0:kt.istype)==="user"||(kt==null?void 0:kt.isUser)===!0){Qe=kt;break}}const it=(Qe==null?void 0:Qe.content)??V;if(!it)return;const gt=(Qe==null?void 0:Qe.filePaths)??le,Ve=(typeof gt=="string"&>?JSON.parse(gt):gt||[]).map(Ze=>Ze.uid),ht=Date.now();Pe({now:ht}),N(Ze=>({...Ze,display:"processing",sender:"processing"})),q.clearFn&&q.clearFn(),p(Ze=>Ze.map(kt=>kt.sessionId===x?{...kt,gmtModified:ht}:kt)),Ee({configId:de.configId,content:it,fileUids:Ve,lastDate:ht,name:de.label||"",queryId:Se,sessionId:String(x||""),type:(Qe==null?void 0:Qe.audioUrl)??ne?"audioUrl":"text",audioUrl:((Qe==null?void 0:Qe.audioUrl)??ne)||"",enableThinking:!!K.reasoning,enableWebsearch:!!K.netSearch},Ze=>{ae(Se)})}async function Ce(q,V){if(!x)return;const ne=m.find(le=>le.sessionId===x);if(ne&&ne.isNew){let le=!1;const Se=$||ne.configId,Ae=q&&q.content?q.content.slice(0,20):ne.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((ct,Qe)=>{XF({url:r,token:n,CSRFToken:o},{label:Ae,sessionId:ne.sessionId,sysType:"INT_SESSION",configId:Se},it=>{it&&it.data&&it.data.sessionId?(p(gt=>gt.map(Ve=>Ve.sessionId===ne.sessionId?{...Ve,isNew:!1,configId:Se,label:Ae}:Ve)),y(gt=>gt.map(Ve=>Ve.id===ne.sessionId?{...Ve,isNew:!1,configId:Se,label:Ae}:Ve)),le=!0,ct()):(Vt.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),Qe())})}),!le)return;$e(x,q,V,Se);return}$e(x,q,V)}function $e(q,V,ne,le){const Se="query-"+Zr(32),Ae=m.find(Ve=>Ve.sessionId===q),ct=le||(Ae==null?void 0:Ae.configId)||de.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",ct);const Qe=V&&V.content?V.content.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let it;if(V.files&&V.files.length>0&&(it=V.files.map(Ve=>({name:Ve.file.name,size:Ve.file.size,type:Ve.file.type,filePath:Ve.filePath||"",convertedFilePath:Ve.convertedFilePath||"",uid:Ve.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",V.files),Te({content:V.content||V.text||"",queryId:Se,currentFiles:it,filePaths:it?JSON.stringify(it):void 0}),p(Ve=>Ve.map(ht=>ht.sessionId===q&&ht.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&ht.isNew?{...ht,label:Qe,gmtModified:Date.now(),isNew:!1}:ht)),y(Ve=>Ve.map(ht=>ht.id===q&&ht.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&ht.isNew?{...ht,label:Qe,isNew:!1}:ht)),V.files&&V.files.length>0){N(je=>({...je,sender:"uploading",display:"uploading"})),qe=new AbortController,ge.current=!1;const Ve=V.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),ht=V.files.map((je,De)=>({...je,uid:Ve[De],status:"uploading"}));L(ht);const Ze=new FormData;V.files.forEach(je=>{Ze.append("files",je.file)});const kt=String(q||"");Ze.append("sessionId",kt),Ze.append("uids",Ve.join(",")),kn.post(`${r}/index/knowledgeBase/file/uploadFiles`,Ze,{headers:{Authorization:n,"Content-Type":"multipart/form-data"},signal:qe.signal}).then(je=>{if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",je),!ge.current)if(je.data.success&&Array.isArray(je.data.data)&&je.data.data.length>0){L(Be=>Be.map(et=>{const yt=je.data.data.find(vt=>vt.uid===et.uid);return yt?{...et,...yt}:et})),N(Be=>({...Be,sender:"processing",display:"analyzing"})),L(Be=>Be.map(et=>({...et,status:"parsing"})));const De=je.data.data,Me=De.map(Be=>Be.uid);lt(Me,Be=>{if(L(yt=>yt.map(vt=>{const _t=Be.find(jt=>jt.uid===vt.uid);if(_t)switch(_t.status){case 3:return{...vt,status:"done"};case 4:return{...vt,status:"error"};case 1:case 2:default:return{...vt,status:"parsing"}}return vt})),Be.length>0&&Be.every(yt=>yt.status===3)){L([]);const yt=new Map;(Be||[]).forEach(vt=>{yt.set(vt.id,vt)}),T(vt=>({uploadedFiles:Ke(vt.uploadedFiles,De).map(jt=>{var nn;return{...jt,pdfPages:((nn=yt.get(jt.id))==null?void 0:nn.pdfPages)||0}})}))}},()=>{ne==null||ne(),N(et=>({...et,sender:"processing",display:"processing"})),L(et=>et.map(yt=>{const vt=De.find(_t=>_t.uid===yt.uid);return vt?{...yt,...vt,url:vt.filePath,filePath:vt.filePath,name:vt.fileName||yt.name,convertedFilePath:vt.convertedFilePath||yt.convertedFilePath}:yt})),y(et=>{if(!et[0])return et;const{messages:yt}=et[0];for(let vt=yt.length-1;vt>=0;vt--)if(yt[vt].istype==="user"){const _t=yt[vt].currentFiles||[];yt[vt].currentFiles=_t.map(jt=>{const nn=De.find(Dn=>Dn.uid===jt.uid);return nn?{...jt,...nn}:jt});break}return[...et]});const Be=Date.now();Ee({configId:ct,content:V.content||V.text||"",fileUids:Me,lastDate:Be,name:Qe,queryId:Se,sessionId:String(q||""),type:"text",audioUrl:"",enableThinking:!!K.reasoning,enableWebsearch:!!K.netSearch},et=>{ae(Se)})},Be=>{N(et=>({...et,display:"ready",sender:"ready"})),L(et=>et.map(yt=>({...yt,status:"error",message:Be})))})}else{const De=je.data.errorMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";N(Me=>({...Me,display:"error",sender:"ready"})),L(Me=>Me.map(Be=>({...Be,status:"error",message:De})))}}).catch(je=>{var De,Me;((De=je==null?void 0:je.response)==null?void 0:De.status)===413?(Me=je==null?void 0:je.response)!=null&&Me.statusText.includes("Request Entity Too Large")&&Vt.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):Vt.error("\u7F51\u7EDC\u9519\u8BEF"),N(Be=>({...Be,display:"error",sender:"ready"})),L(Be=>Be.map(et=>({...et,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}N(Ve=>({...Ve,display:"processing",sender:"processing"}));const gt=Date.now();p(Ve=>Ve.map(ht=>ht.sessionId===q?{...ht,gmtModified:gt}:ht)),ne==null||ne(),Ee({configId:ct,content:V.content||V.text||"",fileUids:[],lastDate:gt,name:Qe,queryId:Se,sessionId:String(q||""),type:"text",audioUrl:"",enableThinking:!!K.reasoning,enableWebsearch:!!K.netSearch},Ve=>{ae(Se)})}function ue(q){q.restult==1?Il({url:r,token:n,CSRFToken:o},{queryId:q.queryId},()=>{Fe(q.queryId,null)}):ep({url:r,token:n,CSRFToken:o},{restult:1,queryId:q.queryId},()=>{Fe(q.queryId,1)})}function ie(q){const V=Zr(32),ne={sessionId:V,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};p(le=>[{...ne,messages:[]},...le]),y(le=>[{id:V,messages:[],...ne},...le]),w(V)}const xe=q=>{var Se;const V=new Set([...z.uploadedFiles.map(Ae=>Ae.file.name),...I.map(Ae=>Ae.file.name)]),ne=[],le=new Set;Array.from(q).forEach(Ae=>{V.has(Ae.name)?le.add(Ae.name):(ne.push({file:Ae,type:Zm(Ae.name),status:"pending",preview:Ae.type.startsWith("image")?URL.createObjectURL(Ae):void 0}),V.add(Ae.name))}),le.size>0&&Vt.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(le).join(", ")}`),ne.length>0&&(M(Ae=>[...Ae,...ne]),(Se=Z.current)==null||Se.call(Z,ne))},_e=(q,V,ne)=>{var le;(le=Q.current)==null||le.call(Q,q,V,ne)};function ze(q){if(q!=null&&q.sessionId&&q.sessionId!==x){w(q.sessionId),N(ne=>({...ne,sender:"ready"}));const V=b.find(ne=>ne.id===q.sessionId);if(V&&V.messages&&V.messages.length>0){const ne=[...V.messages].reverse().find(le=>le.istype==="ai");ne&&ne.recommendQuestion?S(ne.recommendQuestion):S([])}else S([])}}const st=async q=>new Promise((V,ne)=>{GF({url:r,token:n,CSRFToken:o},{sessionId:q},le=>{le?(Vt.success("\u5220\u9664\u6210\u529F!"),V(le)):(Vt.error("\u5220\u9664\u5931\u8D25!"),ne(le))})}),Ne=async()=>{try{const V=(await kn.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}})).data.data.records||[];return p(V),V}catch(q){throw Vt.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),q}},Ie=async(q,V)=>new Promise((ne,le)=>{YF({url:r,token:n,CSRFToken:o},{label:V,sessionId:q},Se=>{if(Se){const Ae=Date.now();p(ct=>ct.map(Qe=>Qe.sessionId===q?{...Qe,label:V,gmtModified:Ae}:Qe)),Vt.success("\u91CD\u547D\u540D\u6210\u529F!"),ne(Se)}else Vt.error("\u91CD\u547D\u540D\u5931\u8D25"),le(Se)})}),Ue=q=>{p(V=>{const ne=V.filter(le=>le.sessionId!==q);return x===q&&(ne.length>0?w(ne[0].sessionId):ie()),ne})},Ye=(q,V)=>{const ne=Date.now();p(le=>le.map(Se=>Se.sessionId===q?{...Se,label:V,gmtModified:ne}:Se))},bt=q=>{ep({url:r,token:n,CSRFToken:o},{...q,...Y,restult:0},()=>{Fe(Y.queryId,0)})},At=q=>{const V=q.new_name,ne=h.data.label;V&&V!==ne?h.async_renameConversation(V).then(()=>{h.fn_renameItemInList(V),u(!1)}).catch(()=>{}):u(!1)},Ht=q=>{h.async_deleteConversation().then(()=>{h.fn_removeItemFromList(),g(!1)}).catch(()=>{})},Ft=(q,V)=>{switch(console.log(q,V),q){case"close_remove":g(!1);break;case"close_rename":u(!1);break;case"ok_rename":At(V);break;case"ok_remove":Ht();break}},Yt=async({url:q,params:V,replacePredataFunction:ne})=>{var le,Se;try{const Ae=await kn.post(q,V,{headers:{Authorization:n}}),ct=(Se=(le=Ae==null?void 0:Ae.data)==null?void 0:le.data)==null?void 0:Se.data;ct&&ne(ct)}catch(Ae){console.log("error",Ae)}},Tt=(q,V)=>{var ne,le,Se;switch(console.log(`[Event] ${q}`,V),q){case"retrieve-sql-data:pagingation_click":const{page:Ae,pageSize:ct,fetchUrl:Qe,source:it,replacePredataFunction:gt}=V;Yt({url:`${r}${Qe}`,replacePredataFunction:gt,params:{pageNo:Ae,pageSize:ct,convertedFilePath:it,stream:!1}});break;case"web_referenceFile_title:click":if(!((ne=V==null?void 0:V.data)!=null&&ne.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(V.data.link,"_blank");break;case"conversation:item_click":ze(V);break;case"files:finished_animation_complete":L([]);break;case"conversation:create":ie();break;case"conversation:new_assistant_change":O(V.assistantId);break;case"conversations:rename_icon_clicked":v({data:V,async_renameConversation:Ve=>Ie(V.sessionId,Ve),fn_renameItemInList:Ve=>Ye(V.sessionId,Ve)}),u(!0);break;case"conversations:delete_icon_clicked":v({data:V,async_deleteConversation:()=>st(V.sessionId),async_refreshConversationList:Ne,fn_removeItemFromList:()=>Ue(V.sessionId)}),g(!0);break;case"sender:send":Ce(V,V.clearFn);break;case"sender:send_recommandQuestion":{const Ve=((V==null?void 0:V.content)??"").toString();if(!Ve)break;Ce({content:Ve},()=>{});break}case"chatbox:follow_up_question_click":{const Ve=((V==null?void 0:V.question)??(V==null?void 0:V.content)??"").toString();if(!Ve)break;Ce({content:Ve},()=>{});break}case"sender:action_history":P(!0);break;case"sender:stop":ge.current=!0,qe&&(qe.abort(),qe=null),We&&(We(),We=null),N(Ve=>({...Ve,display:"ready",sender:"ready"})),L([]),he==null||he();break;case"sender:clear":(le=V.clearFn)==null||le.call(V);break;case"sender:configChange":V&&V.all&&G(V.all);break;case"action_copy:click":V&&WF(V.content,V.event);break;case"chatbox:copy":{const Ve=(V==null?void 0:V.content)||"";if(!Ve)break;const ht=async kt=>{try{return await navigator.clipboard.writeText(kt),Vt.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},Ze=kt=>{const je=document.createElement("textarea");je.value=kt,je.style.position="fixed",je.style.opacity="0",document.body.appendChild(je),je.focus(),je.select();try{document.execCommand("copy"),Vt.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{Vt.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(je)};ht(Ve).then(kt=>{kt||Ze(Ve)});break}case"chatbox:repeat":console.log(V,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),Le(V);break;case"action_thumbsup":ue(V);break;case"chatbox:like":ue({queryId:V==null?void 0:V.queryId,restult:V==null?void 0:V.result});break;case"action_thumbsdown":V.restult===0?Il({url:r,token:n,CSRFToken:o},{queryId:V.queryId},()=>{Fe(V.queryId,null)}):(ee(V),me(!0));break;case"chatbox:dislike":(V==null?void 0:V.result)===0?Il({url:r,token:n,CSRFToken:o},{queryId:V.queryId},()=>{Fe(V.queryId,null)}):(ee({queryId:V==null?void 0:V.queryId}),me(!0));break;case"action_retrive_tag":i==null||i("action_retrive_tag",V);break;case"referenceFile_view":i==null||i("referenceFile_view",V);break;case"referenceFile_question":console.log(V,"zhezhhzhzh"),i==null||i("referenceFile_question",V);break;case"referenceFile_download":i==null||i("referenceFile_download",V);break;case"retrive_tag:click":i==null||i("retrive_tag:click",V);break;case"fileManager:change":{const Ve=Array.isArray(V==null?void 0:V.uploadedFiles)?V.uploadedFiles:[];M(Ve),typeof(V==null?void 0:V.setUploadedFiles)=="function"&&(Z.current=V.setUploadedFiles,Q.current=V.removeFile);break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",V);const Ve=(Se=V==null?void 0:V.file)==null?void 0:Se.uid;if(!Ve){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",V);break}const ht=[...de.messages||[]].reverse().find(kt=>kt.istype==="user"),Ze=ht==null?void 0:ht.queryId;JF({url:r,token:n,CSRFToken:o},{uid:Ve,queryId:Ze},(kt,je)=>{if(kt){if(Vt.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),je&&Array.isArray(je.data&&je.data.data)){const De=je.data.data.map(Me=>{var et;const Be=Me.name||Me.fileName||"";return{file:{name:Be,size:Number((et=Me.size)==null?void 0:et.replace("MB",""))*1024*1024||0,type:Me.type},type:Zm(Be),status:"uploaded",url:Me.filePath,convertedFilePath:Me.convertedFilePath,uid:Me.uid,preview:Me.type==="image"?Me.filePath:void 0}});T({uploadedFiles:De})}}else console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",je),Vt.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25")});break}case"uploaded_file:remove_batch":break;default:i==null||i(q,V)}},tn=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:B.jsx(RF,{size:16}),enabled:!0,component:B.jsx(KF,{data:m,assistantList:E,activedItem:x||"",sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:Tt,styles:l.theme})}],un=be.useMemo(()=>()=>B.jsx(r5,{eventsEmit:Tt,assistantList:E,styles:l,selectedId:H,onSelectAssistant:W}),[H]),Tn={...be.useMemo(()=>({AiChatBox:(q,V)=>{var Qe,it;const ne=V===(((Qe=de==null?void 0:de.messages)==null?void 0:Qe.length)||0)-1;let le="ready";if(ne)if(q.status!==void 0)switch(q.status){case 0:le="thinking";break;case 1:le="processing";break;case 2:le="ready";break;case 3:le="error";break;default:le=R.display}else le=R.display;let Se=[];if(Array.isArray(C))Se=C;else if(typeof C=="string")try{Se=JSON.parse(C)||[]}catch{Se=[]}const Ae=(()=>{const gt=q==null?void 0:q.reference;if(!gt)return"[]";if(typeof gt=="string")try{return JSON.parse(gt),gt}catch{return"[]"}try{return JSON.stringify(gt)}catch{return"[]"}})(),ct=(()=>{const gt=q==null?void 0:q.webReference;if(!gt)return"[]";if(typeof gt=="string")try{return JSON.parse(gt),gt}catch{return"[]"}try{return JSON.stringify(gt)}catch{return"[]"}})();return B.jsx(id,{...q,reference:Ae,webReference:ct,contentType:"stream",displayStatus:le,eventsEmit:Tt,isLast:ne&&(q==null?void 0:q.istype)==="ai",followUpQuestions:ne&&(q==null?void 0:q.istype)==="ai"?Se:[],defaultAnswer:((it=de==null?void 0:de.searchConfigDTO)==null?void 0:it.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:Re,styles:l},`${(q==null?void 0:q.queryId)||(q==null?void 0:q.id)||V}-${(q==null?void 0:q.istype)||"unknown"}`)},LogoBox:q=>q&&q.LogoBox===null?null:q&&typeof q.LogoBox=="function"?B.jsx(q.LogoBox,{}):B.jsx("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>B.jsx(v5,{}),DisplayError:()=>B.jsx(y5,{}),AppError:()=>B.jsx(h5,{msg:"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25",subMsg:"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),AppLoading:()=>B.jsx(g5,{}),UserChatBox:(q,V)=>B.jsx(id,{...q,contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:Tt,styles:l,fileManagerData:z},`${(q==null?void 0:q.queryId)||(q==null?void 0:q.id)||V}-user`),WelcomeComponent:un}),[un,de,R.display,Tt,l,Re,z]),...s.CustomComponents||{}};return ft(()=>{A(q=>{const V=Array.isArray(q.switchs)?q.switchs.map(ne=>ne.name==="reasoning"?{...ne,enabled:He}:ne):[];return{...q,switchs:V}})},[He]),B.jsxs(B.Fragment,{children:[B.jsx(p5,{open:D,onCancel:()=>P(!1),files:z.uploadedFiles,currentFiles:I,onUpload:xe,onRemoveFile:_e,styles:l,eventsEmit:Tt}),B.jsx(e,{...s,status:R,chatData:de,sidebar:tn,recommandQuestions:[],eventsEmit:Tt,styles:l,senderConfig:j,fileUploadStatus:_,CustomComponents:Tn,activeSessionId:x}),B.jsx(s5,{open:ce,feedBackList:we,setOpen:me,handleConfirm:bt}),B.jsx(C5,{isModalOpen:c,handleOk:Ft,handleCancel:()=>Ft("close_rename"),data:(h==null?void 0:h.data)||{}}),B.jsx(w5,{isModalOpen:d,handleOk:Ft,handleCancel:()=>Ft("close_remove"),data:(h==null?void 0:h.data)||{}})]})}}export{q5 as default};
|