👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
61 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,14669,e=>{"use strict";let t=e.i(191788).default.createContext(null);e.s(["default",()=>t])},54269,e=>{"use strict";var t=e.i(191788),r=e.i(320001),o=e.i(151304),i=e.i(851581),n=e.i(56206),l=e.i(430898),a=e.i(934854),s=e.i(498324),c=e.i(658686),d=e.i(993175),u=e.i(82038),p=e.i(749919),m=e.i(873627),f=e.i(14669),g=e.i(187056),b=e.i(270010);let h=t.forwardRef((e,h)=>{let{prefixCls:$,children:y,indeterminate:v=!1,onMouseEnter:k,onMouseLeave:x,skipGroup:C=!1,disabled:S,rootClassName:E,className:w,style:R,classNames:N,styles:I,name:M,value:z,checked:B,defaultChecked:D,onChange:T,...H}=e,{getPrefixCls:P,direction:A,className:W,style:L,classNames:O,styles:j}=(0,d.useComponentConfig)("checkbox"),F=t.useContext(f.default),{isFormItemInput:X}=t.useContext(m.FormItemInputContext),q=t.useContext(u.default),_=(F?.disabled||S)??q,[G,K]=(0,o.useControlledState)(D,B),V=G,U=(0,o.useEvent)(e=>{K(e.target.checked),T?.(e),!C&&F?.toggleOption&&F.toggleOption({label:y,value:z})});F&&!C&&(V=F.value.includes(z));let Y=t.useRef(null),Q=(0,i.useComposeRef)(h,Y);t.useEffect(()=>{if(!C&&F)return F.registerValue(z),()=>{F.cancelValue(z)}},[z,C]),t.useEffect(()=>{Y.current?.input&&(Y.current.input.indeterminate=v)},[v]);let Z=P("checkbox",$),J=(0,p.default)(Z),[ee,et]=(0,g.default)(Z,J),er={...H},eo={...e,indeterminate:v,disabled:_,checked:V},[ei,en]=(0,l.useMergeSemantic)([O,N],[j,I],{props:eo}),el=(0,n.clsx)(`${Z}-wrapper`,{[`${Z}-rtl`]:"rtl"===A,[`${Z}-wrapper-checked`]:V,[`${Z}-wrapper-disabled`]:_,[`${Z}-wrapper-in-form-item`]:X},W,w,ei.root,E,et,J,ee),ea=(0,n.clsx)(ei.icon,{[`${Z}-indeterminate`]:v},c.TARGET_CLS,ee),[es,ec]=(0,b.default)(er.onClick);return t.createElement(s.default,{component:"Checkbox",disabled:_},t.createElement("label",{className:el,style:{...en.root,...L,...R},onMouseEnter:k,onMouseLeave:x,onClick:es},t.createElement(r.default,{...er,name:!C&&F?F.name:M,checked:V,onClick:ec,onChange:U,prefixCls:Z,className:ea,style:en.icon,disabled:_,ref:Q,value:z}),(0,a.isNonNullable)(y)&&t.createElement("span",{className:(0,n.clsx)(`${Z}-label`,ei.label),style:en.label},y)))});var $=e.i(633829);let y=t.forwardRef((e,r)=>{let{defaultValue:i,children:l,options:s=[],prefixCls:c,className:u,rootClassName:m,style:b,onChange:y,role:v="group",...k}=e,{getPrefixCls:x,direction:C}=t.useContext(d.ConfigContext),[S,E]=t.useState(k.value||i||[]),[w,R]=t.useState([]);t.useEffect(()=>{"value"in k&&E(k.value||[])},[k.value]);let N=t.useMemo(()=>s.map(e=>"string"==typeof e||(0,a.isNumber)(e)?{label:e,value:e}:e),[s]),I=e=>{R(t=>t.filter(t=>t!==e))},M=e=>{R(t=>[].concat((0,$.default)(t),[e]))},z=e=>{let t=S.indexOf(e.value),r=(0,$.default)(S);-1===t?r.push(e.value):r.splice(t,1),"value"in k||E(r),y?.(r.filter(e=>w.includes(e)).sort((e,t)=>N.findIndex(t=>t.value===e)-N.findIndex(e=>e.value===t)))},B=x("checkbox",c),D=`${B}-group`,T=(0,p.default)(B),[H,P]=(0,g.default)(B,T),A=(0,o.omit)(k,["value","disabled"]),W=s.length?N.map(e=>t.createElement(h,{prefixCls:B,key:e.value.toString(),disabled:"disabled"in e?e.disabled:k.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:(0,n.clsx)(`${D}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):l,L=t.useMemo(()=>({toggleOption:z,value:S,disabled:k.disabled,name:k.name,registerValue:M,cancelValue:I}),[z,S,k.disabled,k.name,M,I]),O=(0,n.clsx)(D,{[`${D}-rtl`]:"rtl"===C},u,m,P,T,H);return t.createElement("div",{className:O,style:b,role:v,...A,ref:r},t.createElement(f.default.Provider,{value:L},W))});h.Group=y,h.__ANT_CHECKBOX=!0,e.s(["default",()=>h],54269)},100264,e=>{"use strict";var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},o=e.i(117716);function i(){return(i=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(o.default,i({},e,{ref:n,icon:r})));e.s(["default",()=>n],100264)},106555,e=>{"use strict";var t=e.i(379049),r=e.i(56206),o=e.i(191788),i=e.i(814432),n=e.i(889590),l=e.i(391398);e.s(["GridContent",0,e=>{let a=(0,o.useContext)(i.RouteContext),{children:s,contentWidth:c,className:d,style:u}=e,{getPrefixCls:p}=(0,o.useContext)(t.ConfigProvider.ConfigContext),m=e.prefixCls||p("pro"),f=c||a.contentWidth,g=`${m}-grid-content`,{wrapSSR:b,hashId:h}=(0,n.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${g}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),$="Fixed"===f&&"top"===a.layout;return b((0,l.jsx)("div",{className:(0,r.clsx)(g,h,d,{[`${g}-wide`]:$}),style:u,"data-testid":"pro-grid-content",children:(0,l.jsx)("div",{className:(0,r.clsx)(`${m}-grid-content-children`,h),children:s})}))}],106555)},154165,e=>{"use strict";var t=e.i(934854),r=(e,r={})=>!(0,t.isNonNullable)(e)&&r?.skipEmpty?[]:Array.isArray(e)?e:[e];e.s(["default",()=>r])},187056,e=>{"use strict";var t=e.i(980646),r=e.i(307441),o=e.i(198567),i=e.i(352050),n=e.i(108314);function l(e,i){return(e=>{let{checkboxCls:i,checkboxSize:n,lineWidth:l}=e,a=`${i}-wrapper`;return[{[`${i}-group`]:{...(0,r.resetComponent)(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[a]:{...(0,r.resetComponent)(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${a}`]:{marginInlineStart:0},[`&${a}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[i]:{...(0,r.resetComponent)(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,t.unit)(l)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...(0,o.genNoMotionStyle)(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${l})`,insetInlineStart:`calc(${n} / 4 - ${l})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${(0,t.unit)(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}`,...(0,o.genNoMotionStyle)()},[`${i}-input`]:{position:"absolute",inset:`calc(-1 * (${l}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${i}-input:focus-visible)`]:(0,r.genFocusOutline)(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
${a}:not(${a}-disabled),
${i}:not(${i}-disabled)
`]:{[`&:hover ${i}`]:{borderColor:e.colorPrimary}},[`${a}:not(${a}-disabled)`]:{[`&:hover ${i}-checked:not(${i}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${i}-checked`]:{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}`,...(0,o.genNoMotionStyle)()},[`&:not(${i}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[i]:{"&-indeterminate":{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":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${a}-disabled`]:{cursor:"not-allowed"},[`${i}-disabled`]:{[`&, ${i}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${i}-indeterminate::after`]:{background:e.colorTextDisabled}}}]})((0,n.mergeToken)(i,{checkboxCls:`.${e}`,checkboxSize:i.controlInteractiveSize}))}var a=(0,i.genStyleHooks)("Checkbox",(e,{prefixCls:t})=>[l(t,e)]);e.s(["default",()=>a,"getStyle",0,l])},204275,685986,e=>{"use strict";var t=e.i(191788),r=e.i(75907),o=e.i(56926),i=e.i(77682),n=e.i(851581),l=e.i(56206),a=e.i(922105),s=e.i(351212);let c=(e,t)=>{if(!e)return null;let r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},d=e=>void 0!==e?`${e}px`:void 0;function u(e){let{prefixCls:r,containerRef:o,value:i,getValueIndex:u,motionName:p,onMotionStart:m,onMotionEnd:f,direction:g,vertical:b=!1}=e,h=t.useRef(null),[$,y]=t.useState(i),v=e=>{let t=u(e),i=o.current?.querySelectorAll(`.${r}-item`)[t];return i?.offsetParent&&i},[k,x]=t.useState(null),[C,S]=t.useState(null);(0,s.default)(()=>{if($!==i){let e=v($),t=v(i),r=c(e,b),o=c(t,b);y(i),x(r),S(o),e&&t?m():f()}},[i]);let E=t.useMemo(()=>b?d(k?.top??0):"rtl"===g?d(-k?.right):d(k?.left),[b,g,k]),w=t.useMemo(()=>b?d(C?.top??0):"rtl"===g?d(-C?.right):d(C?.left),[b,g,C]);return k&&C?t.createElement(a.default,{visible:!0,motionName:p,motionAppear:!0,onAppearStart:()=>b?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},onAppearActive:()=>b?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},onVisibleChanged:()=>{x(null),S(null),f()}},({className:e,style:o},i)=>{let a={...o,"--thumb-start-left":E,"--thumb-start-width":d(k?.width),"--thumb-active-left":w,"--thumb-active-width":d(C?.width),"--thumb-start-top":E,"--thumb-start-height":d(k?.height),"--thumb-active-top":w,"--thumb-active-height":d(C?.height)},s={ref:(0,n.composeRef)(h,i),style:a,className:(0,l.clsx)(`${r}-thumb`,e)};return t.createElement("div",s)}):null}let p=({prefixCls:e,className:r,style:o,styles:i,classNames:n,data:a,disabled:s,checked:c,label:d,title:u,value:p,name:m,onChange:f,onFocus:g,onBlur:b,onKeyDown:h,onKeyUp:$,onMouseDown:y,itemRender:v=e=>e})=>v(t.createElement("label",{className:(0,l.clsx)(r,{[`${e}-item-disabled`]:s}),style:o,onMouseDown:y},t.createElement("input",{name:m,className:`${e}-item-input`,type:"radio",disabled:s,checked:c,onChange:e=>{s||f(e,p)},onFocus:g,onBlur:b,onKeyDown:h,onKeyUp:$}),t.createElement("div",{className:(0,l.clsx)(`${e}-item-label`,n?.label),title:u,style:i?.label},d)),{item:a}),m=t.forwardRef((e,a)=>{let{prefixCls:s="rc-segmented",direction:c,vertical:d,options:m=[],disabled:f,defaultValue:g,value:b,name:h,onChange:$,className:y="",style:v,styles:k,classNames:x,motionName:C="thumb-motion",itemRender:S,...E}=e,w=t.useRef(null),R=t.useMemo(()=>(0,n.composeRef)(w,a),[w,a]),N=t.useMemo(()=>m.map(e=>{if("object"==typeof e&&null!==e){let t=void 0!==e.title?e.title:"object"!=typeof e.label?e.label?.toString():void 0;return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}}),[m]),[I,M]=(0,o.default)(g??N[0]?.value,b),[z,B]=t.useState(!1),D=(e,t)=>{M(t),$?.(t)},T=(0,i.default)(E,["children"]),[H,P]=t.useState(!1),[A,W]=t.useState(!1),L=()=>{W(!0)},O=()=>{W(!1)},j=()=>{P(!1)},F=e=>{"Tab"===e.key&&P(!0)},X=e=>{let t=N.findIndex(e=>e.value===I),r=N.length,o=N[(t+e+r)%r];o&&(M(o.value),$?.(o.value))},q=e=>{switch(e.key){case"ArrowLeft":case"ArrowUp":X(-1);break;case"ArrowRight":case"ArrowDown":X(1)}};return t.createElement("div",(0,r.default)({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0,"aria-orientation":d?"vertical":"horizontal",style:v},T,{className:(0,l.clsx)(s,{[`${s}-rtl`]:"rtl"===c,[`${s}-disabled`]:f,[`${s}-vertical`]:d},y),ref:R}),t.createElement("div",{className:`${s}-group`},t.createElement(u,{vertical:d,prefixCls:s,value:I,containerRef:w,motionName:`${s}-${C}`,direction:c,getValueIndex:e=>N.findIndex(t=>t.value===e),onMotionStart:()=>{B(!0)},onMotionEnd:()=>{B(!1)}}),N.map(e=>{let{value:o,disabled:i}=e;return t.createElement(p,(0,r.default)({},e,{name:h,data:e,itemRender:S,key:o,prefixCls:s,className:(0,l.clsx)(e.className,`${s}-item`,x?.item,{[`${s}-item-selected`]:o===I&&!z,[`${s}-item-focused`]:A&&H&&o===I}),style:k?.item,classNames:x,styles:k,checked:o===I,onChange:D,onFocus:L,onBlur:O,onKeyDown:q,onKeyUp:F,onMouseDown:j,disabled:!!f||!!i}))})))});var f=e.i(572353),g=e.i(430898),b=e.i(497630),h=e.i(934854),$=e.i(993175),y=e.i(625263),v=e.i(188304),k=e.i(980646),x=e.i(307441),C=e.i(352050),S=e.i(108314);function E(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}let w=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),R={overflow:"hidden",...x.textEllipsis};var N=(0,C.genStyleHooks)("Segmented",e=>{let{lineWidth:t,calc:r}=e;return(e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:o,motionDurationMid:i}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...(0,x.resetComponent)(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...(0,x.genFocusStyle)(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,k.unit)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...w(e),color:e.itemSelectedColor},"&-focused":(0,x.genFocusOutline)(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(e=>`${e} ${i}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:n,lineHeight:(0,k.unit)(n),padding:`0 ${(0,k.unit)(e.segmentedPaddingHorizontal)}`,...R},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...w(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,k.unit)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:l,lineHeight:(0,k.unit)(l),padding:`0 ${(0,k.unit)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:(0,k.unit)(a),padding:`0 ${(0,k.unit)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...E(`&-disabled ${t}-item`,e),...E(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(e=>`${e} ${r} ${o}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}})((0,S.mergeToken)(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:r,colorFillSecondary:o,colorBgElevated:i,colorFill:n,lineWidthBold:l,colorBgLayout:a}=e;return{trackPadding:l,trackBg:a,itemColor:t,itemHoverColor:r,itemHoverBg:o,itemSelectedBg:i,itemActiveBg:n,itemSelectedColor:r}});let I=t.forwardRef((e,r)=>{let o=(0,f.default)(),{prefixCls:i,className:n,rootClassName:a,block:s,options:c=[],size:d,style:u,vertical:p,orientation:k,shape:x="default",name:C=o,styles:S,classNames:E,...w}=e,{getPrefixCls:R,direction:I,className:M,style:z,classNames:B,styles:D}=(0,$.useComponentConfig)("segmented"),T={...e,options:c,size:d,shape:x},[H,P]=(0,g.useMergeSemantic)([B,E],[D,S],{props:T}),A=R("segmented",i),[W,L]=N(A),O=(0,y.default)(d),j=t.useMemo(()=>c.map(e=>{if((0,h.isPlainObject)(e)&&e?.icon){let{icon:r,label:o,...i}=e;return{...i,label:t.createElement(t.Fragment,null,t.createElement("span",{className:(0,l.clsx)(`${A}-item-icon`,H.icon),style:P.icon},r),o&&t.createElement("span",null,o))}}return e}),[c,A,H.icon,P.icon]),[,F]=(0,b.useOrientation)(k,p),X=(0,l.clsx)(n,a,M,H.root,{[`${A}-block`]:s,[`${A}-sm`]:"small"===O,[`${A}-lg`]:"large"===O,[`${A}-vertical`]:F,[`${A}-shape-${x}`]:"round"===x},W,L),q={...P.root,...z,...u};return t.createElement(m,{...w,name:C,className:X,style:q,classNames:H,styles:P,itemRender:(e,{item:r})=>{if(!r.tooltip)return e;let o=(0,h.isPlainObject)(r.tooltip)?r.tooltip:{title:r.tooltip};return t.createElement(v.default,{...o},e)},options:j,ref:r,prefixCls:A,direction:I,vertical:F})});e.s(["default",()=>I],685986),e.s(["Segmented",()=>I],204275)},229068,e=>{"use strict";var t=e.i(461550);e.s(["Progress",()=>t.default])},320001,270010,e=>{"use strict";var t=e.i(56926),r=e.i(56206),o=e.i(191788);function i(){return(i=Object.assign.bind()).apply(this,arguments)}let n=(0,o.forwardRef)((e,n)=>{let{prefixCls:l="rc-checkbox",className:a,style:s,checked:c,disabled:d,defaultChecked:u=!1,type:p="checkbox",title:m,onChange:f,...g}=e,b=(0,o.useRef)(null),h=(0,o.useRef)(null),[$,y]=(0,t.default)(u,c);(0,o.useImperativeHandle)(n,()=>({focus:e=>{b.current?.focus(e)},blur:()=>{b.current?.blur()},input:b.current,nativeElement:h.current}));let v=(0,r.clsx)(l,a,{[`${l}-checked`]:$,[`${l}-disabled`]:d});return o.createElement("span",{className:v,title:m,style:s,ref:h},o.createElement("input",i({},g,{className:`${l}-input`,ref:b,onChange:t=>{d||("checked"in e||y(t.target.checked),f?.({target:{...e,type:p,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:d,checked:!!$,type:p})))});e.s(["default",()=>n],320001);var l=e.i(499997);e.s(["default",0,function(e){let t=o.default.useRef(null),r=()=>{l.default.cancel(t.current),t.current=null};return[()=>{r(),t.current=(0,l.default)(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),r()),e?.(o)}]}],270010)},344670,e=>{"use strict";var t=e.i(191788),r={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},o=e.i(117716);function i(){return(i=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(o.default,i({},e,{ref:n,icon:r})));e.s(["InfoCircleOutlined",()=>n],344670)},422904,e=>{"use strict";var t=e.i(191788),r=e.i(151304),o=e.i(572353),i=e.i(624200),n=e.i(56206),l=e.i(497630),a=e.i(934854),s=e.i(993175),c=e.i(749919),d=e.i(625263),u=e.i(873627),p=e.i(749344);let m=t.createContext(void 0),f=m.Provider,g=t.createContext(void 0),b=g.Provider;var h=e.i(320001),$=e.i(851581),y=e.i(430898),v=e.i(498324),k=e.i(658686),x=e.i(270010),C=e.i(82038),S=e.i(980646),E=e.i(307441),w=e.i(352050),R=e.i(108314),N=(0,w.genStyleHooks)("Radio",e=>{let{controlOutline:t,controlOutlineWidth:r}=e,o=`0 0 0 ${(0,S.unit)(r)} ${t}`,i=(0,R.mergeToken)(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[(e=>{let{componentCls:t,antCls:r}=e,o=`${t}-group`;return{[o]:{...(0,E.resetComponent)(e),display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}})(i),(e=>{let{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:o,colorPrimaryHover:i,radioSize:n,motionDurationSlow:l,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:d,lineWidth:u,colorBgContainerDisabled:p,colorTextDisabled:m,paddingXS:f,dotColorDisabled:g,dotSize:b,lineType:h,radioColor:$,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...(0,E.resetComponent)(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,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]:{...(0,E.resetComponent)(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${n} * 1px)`,height:`calc(${n} * 1px)`,backgroundColor:c,border:`${(0,S.unit)(u)} ${h} ${d}`,borderRadius:"50%",transition:`all ${a}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${b} * 1px)`,height:`calc(${b} * 1px)`,backgroundColor:$,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${l} ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:(0,E.genFocusOutline)(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:o},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:y,borderColor:o,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:p,borderColor:d,"&::after":{backgroundColor:g}},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}})(i),(e=>{let{buttonColor:t,controlHeight:r,componentCls:o,lineWidth:i,lineType:n,colorBorder:l,motionDurationMid:a,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:u,controlHeightLG:p,controlHeightSM:m,paddingXS:f,borderRadius:g,borderRadiusSM:b,borderRadiusLG:h,buttonCheckedBg:$,buttonSolidCheckedColor:y,colorTextDisabled:v,colorBgContainerDisabled:k,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:R,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:z,calc:B}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:(0,S.unit)(B(r).sub(B(i).mul(2)).equal()),background:d,border:`${(0,S.unit)(i)} ${n} ${l}`,borderBlockStartWidth:B(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:["color","background-color","box-shadow"].map(e=>`${e} ${a}`).join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:B(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${(0,S.unit)(i)} ${n} ${l}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${o}-group-large &`]:{height:p,fontSize:u,lineHeight:(0,S.unit)(B(p).sub(B(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},[`${o}-group-small &`]:{height:m,paddingInline:B(f).sub(i).equal(),paddingBlock:0,lineHeight:(0,S.unit)(B(m).sub(B(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":(0,E.genFocusOutline)(e),[`${o}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:$,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:y,background:I,borderColor:I,"&:hover":{color:y,background:M,borderColor:M},"&:active":{color:y,background:z,borderColor:z}},"&-disabled":{color:v,backgroundColor:k,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:v,backgroundColor:k,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:C,backgroundColor:x,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}})(i)]},e=>{let{wireframe:t,padding:r,marginXS:o,lineWidth:i,fontSizeLG:n,colorText:l,colorBgContainer:a,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:m,colorWhite:f}=e;return{radioSize:n,dotSize:t?n-8:n-(4+i)*2,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:m,buttonBg:a,buttonCheckedBg:a,buttonColor:l,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:r-i,wrapperMarginInlineEnd:o,radioColor:t?u:f,radioBgColor:t?a:u}},{unitless:{radioSize:!0,dotSize:!0}});let I=t.forwardRef((e,r)=>{let o=t.useContext(m),i=t.useContext(g),{getPrefixCls:l,direction:a,className:d,style:p,classNames:f,styles:b}=(0,s.useComponentConfig)("radio"),S=t.useRef(null),E=(0,$.composeRef)(r,S),{isFormItemInput:w}=t.useContext(u.FormItemInputContext),{prefixCls:R,className:I,rootClassName:M,children:z,style:B,title:D,classNames:T,styles:H,...P}=e,A=l("radio",R),W="button"===(o?.optionType||i),L=W?`${A}-button`:A,O=(0,c.default)(A),[j,F]=N(A,O),X={...P},q=t.useContext(C.default),_=X.checked;o&&(X.name=o.name,X.onChange=t=>{e.onChange?.(t),o?.onChange?.(t)},_=e.value===o.value,X.disabled=X.disabled??o.disabled),X.disabled=X.disabled??q;let G={...e,...X,checked:_},[K,V]=(0,y.useMergeSemantic)([f,T],[b,H],{props:G}),U=(0,n.clsx)(`${L}-wrapper`,{[`${L}-wrapper-checked`]:_,[`${L}-wrapper-disabled`]:X.disabled,[`${L}-wrapper-rtl`]:"rtl"===a,[`${L}-wrapper-in-form-item`]:w,[`${L}-wrapper-block`]:!!o?.block},d,I,M,K.root,j,F,O),[Y,Q]=(0,x.default)(X.onClick);return t.createElement(v.default,{component:"Radio",disabled:X.disabled},t.createElement("label",{className:U,style:{...V.root,...p,...B},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:D,onClick:Y},t.createElement(h.default,{...X,checked:_,className:(0,n.clsx)(K.icon,{[k.TARGET_CLS]:!W}),style:V.icon,type:"radio",prefixCls:L,ref:E,onClick:Q}),void 0!==z?t.createElement("span",{className:(0,n.clsx)(`${L}-label`,K.label),style:V.label},z):null))}),M=t.forwardRef((e,m)=>{let{getPrefixCls:g,direction:b}=t.useContext(s.ConfigContext),{name:h}=t.useContext(u.FormItemInputContext),$=(0,o.default)((0,p.toNamePathStr)(h)),{prefixCls:y,className:v,rootClassName:k,options:x,buttonStyle:C="outline",disabled:S,children:E,size:w,style:R,id:M,optionType:z,name:B=$,defaultValue:D,value:T,block:H=!1,onChange:P,onMouseEnter:A,onMouseLeave:W,onFocus:L,onBlur:O,orientation:j,vertical:F,role:X="radiogroup"}=e,[q,_]=(0,r.useControlledState)(D,T),G=t.useCallback(t=>{let r=t.target.value;"value"in e||_(r),r!==q&&P?.(t)},[q,_,P]),K=g("radio",y),V=`${K}-group`,U=(0,c.default)(K),[Y,Q]=N(K,U),Z=E;x&&x.length>0&&(Z=x.map(e=>"string"==typeof e||(0,a.isNumber)(e)?t.createElement(I,{key:e.toString(),prefixCls:K,disabled:S,value:e,checked:q===e},e):t.createElement(I,{key:`radio-group-value-options-${e.value}`,prefixCls:K,disabled:e.disabled||S,value:e.value,checked:q===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let J=(0,d.default)(w),[,ee]=(0,l.useOrientation)(j,F),et=(0,n.clsx)(V,`${V}-${C}`,{[`${V}-large`]:"large"===J,[`${V}-small`]:"small"===J,[`${V}-rtl`]:"rtl"===b,[`${V}-block`]:H},v,k,Y,Q,U),er=t.useMemo(()=>({onChange:G,value:q,disabled:S,name:B,optionType:z,block:H}),[G,q,S,B,z,H]);return t.createElement("div",{...(0,i.default)(e,{aria:!0,data:!0}),role:X,className:(0,n.clsx)(et,{[`${K}-group-vertical`]:ee}),style:R,onMouseEnter:A,onMouseLeave:W,onFocus:L,onBlur:O,id:M,ref:m},t.createElement(f,{value:er},Z))});var z=t.memo(M),B=t.forwardRef((e,r)=>{let{getPrefixCls:o}=t.useContext(s.ConfigContext),{prefixCls:i,...n}=e,l=o("radio",i);return t.createElement(b,{value:"button"},t.createElement(I,{prefixCls:l,...n,type:"radio",ref:r}))});I.Button=B,I.Group=z,I.__ANT_RADIO=!0,e.s(["default",()=>I],422904)},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},461550,528704,e=>{"use strict";var t=e.i(191788),r=e.i(218589),o=e.i(202917),i=e.i(146025),n=e.i(876352),l=e.i(449995),a=e.i(151304),s=e.i(56206),c=e.i(430898),d=e.i(934854),u=e.i(993175);let p={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1};var m=e.i(572353);let f=({bg:e,children:r})=>t.createElement("div",{style:{width:"100%",height:"100%",background:e}},r);function g(e,t){return Object.keys(e).map(r=>{let o=parseFloat(r),i=`${Math.floor(o*t)}%`;return`${e[r]} ${i}`})}let b=t.forwardRef((e,r)=>{let{prefixCls:o,color:i,gradientId:n,radius:l,className:a,style:c,ptg:d,strokeLinecap:u,strokeWidth:p,size:m,gapDegree:b}=e,h=i&&"object"==typeof i,$=m/2,y=t.createElement("circle",{className:(0,s.clsx)(`${o}-circle-path`,a),r:l,cx:$,cy:$,stroke:h?"#FFF":void 0,strokeLinecap:u,strokeWidth:p,opacity:+(0!==d),style:c,ref:r});if(!h)return y;let v=`${n}-conic`,k=b?`${180+b/2}deg`:"0deg",x=g(i,(360-b)/360),C=g(i,1),S=`conic-gradient(from ${k}, ${x.join(", ")})`,E=`linear-gradient(to ${b?"bottom":"top"}, ${C.join(", ")})`;return t.createElement(t.Fragment,null,t.createElement("mask",{id:v},y),t.createElement("foreignObject",{x:0,y:0,width:m,height:m,mask:`url(#${v})`},t.createElement(f,{bg:E},t.createElement(f,{bg:S}))))}),h=(e,t,r,o,i,n,l,a,s,c,d=0)=>{let u=(100-o)/100*t;return"round"===s&&100!==o&&(u+=c/2)>=t&&(u=t-.01),{stroke:"string"==typeof a?a:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:u+d,transform:`rotate(${i+r/100*360*((360-n)/360)+(0===n?0:({bottom:0,top:180,left:90,right:-90})[l])}deg)`,transformOrigin:"50px 50px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};function $(){return($=Object.assign.bind()).apply(this,arguments)}function y(e){let t=e??[];return Array.isArray(t)?t:[t]}var v=e=>{let r,o,i,n,l,a,{id:c,prefixCls:d,classNames:u={},styles:f={},steps:g,strokeWidth:v,railWidth:k,gapDegree:x=0,gapPosition:C,railColor:S,strokeLinecap:E,style:w,className:R,strokeColor:N,percent:I,loading:M,...z}={...p,...e},B=(0,m.default)(c),D=`${B}-gradient`,T=50-v/2,H=2*Math.PI*T,P=x>0?90+x/2:-90,A=(360-x)/360*H,{count:W,gap:L}="object"==typeof g?g:{count:g,gap:2},O=y(I),j=y(N),F=j.find(e=>e&&"object"==typeof e),X=F&&"object"==typeof F?"butt":E,{indeterminateStyleProps:q,indeterminateStyleAnimation:_}=(({id:e,loading:r})=>{if(!r)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:t.default.createElement("style",null,`@keyframes ${o} {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}`)}})({id:B,loading:M}),G=h(H,A,0,100,P,x,C,S,X,v),K=(r=(0,t.useRef)([]),o=(0,t.useRef)(null),(0,t.useEffect)(()=>{let e=Date.now(),t=!1;r.current.forEach(r=>{if(!r)return;t=!0;let i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",o.current&&e-o.current<100&&(i.transitionDuration="0s, 0s")}),t&&(o.current=Date.now())}),r.current);return t.createElement("svg",$({className:(0,s.clsx)(`${d}-circle`,u.root,R),viewBox:"0 0 100 100",style:{...f.root,...w},id:c,role:"presentation"},z),!W&&t.createElement("circle",{className:(0,s.clsx)(`${d}-circle-rail`,u.rail),r:T,cx:50,cy:50,stroke:S,strokeLinecap:X,strokeWidth:k||v,style:{...G,...f.rail}}),W?(i=Math.round(W*(O[0]/100)),n=100/W,l=0,Array(W).fill(null).map((e,r)=>{let o=r<=i-1?j[0]:S,a=o&&"object"==typeof o?`url(#${D})`:void 0,c=h(H,A,l,n,P,x,C,o,"butt",v,L);return l+=(A-c.strokeDashoffset+L)*100/A,t.createElement("circle",{key:r,className:(0,s.clsx)(`${d}-circle-path`,u.track),r:T,cx:50,cy:50,stroke:a,strokeWidth:v,opacity:1,style:{...c,...f.track},ref:e=>{K[r]=e}})})):(a=0,O.map((e,r)=>{let o=j[r]||j[j.length-1],i=h(H,A,a,e,P,x,C,o,X,v);return a+=e,t.createElement(b,{key:r,color:o,ptg:e,radius:T,prefixCls:d,gradientId:D,className:u.track,style:{...i,...q,...f.track},strokeLinecap:X,strokeWidth:v,gapDegree:x,ref:e=>{K[r]=e},size:100})}).reverse()),_)};e.s([],528704),e.i(528704);var k=e.i(188304),x=e.i(671557);function C(e){return!e||e<0?0:e>100?100:e}function S({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}let E=(e,t,r)=>{let o=-1,i=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(o="small"===e?2:14,i=n??8):(0,d.isNumber)(e)?[o,i]=[e,e]:[o=14,i=8]=Array.isArray(e)?e:[e.width,e.height],o*=t}else if("line"===t){let t=r?.strokeWidth;"string"==typeof e||void 0===e?i=t||("small"===e?6:8):(0,d.isNumber)(e)?[o,i]=[e,e]:[o=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[o,i]="small"===e?[60,60]:[120,120]:(0,d.isNumber)(e)?[o,i]=[e,e]:Array.isArray(e)&&(o=e[0]??e[1]??120,i=e[0]??e[1]??120));return[o,i]},w=["root","body","indicator"];var R=e=>{let{prefixCls:r,classNames:o,styles:i,railColor:n,trailColor:l,strokeLinecap:c="round",gapPosition:d,gapPlacement:p,gapDegree:m,width:f=120,type:g,children:b,success:h,size:$=f,steps:y}=e,{direction:R}=(0,u.useComponentConfig)("progress"),[N,I]=E($,"circle"),{strokeWidth:M}=e;void 0===M&&(M=Math.max(3/N*100,6));let z=t.useMemo(()=>m||0===m?m:"dashboard"===g?75:void 0,[m,g]),B=(({percent:e,success:t})=>{let r=C(S({success:t}));return[r,C(C(e)-r)]})(e),D=t.useMemo(()=>{let e=(p??d)||"dashboard"===g&&"bottom"||void 0,t="rtl"===R;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[R,p,d,g]),T="[object Object]"===Object.prototype.toString.call(e.strokeColor),H=(({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||x.presetPrimaryColors.green,t||null]})({success:h,strokeColor:e.strokeColor}),P=(0,s.clsx)(`${r}-body`,{[`${r}-circle-gradient`]:T},o.body),A=t.createElement(v,{steps:y,percent:y?B[1]:B,strokeWidth:M,railWidth:M,strokeColor:y?H[1]:H,strokeLinecap:c,railColor:n??l,prefixCls:r,gapDegree:z,gapPosition:D,classNames:(0,a.omit)(o,w),styles:(0,a.omit)(i,w)}),W=N<=20,L=t.createElement("div",{className:P,style:{width:N,height:I,fontSize:.15*N+6,...i.body}},A,!W&&b);return W?t.createElement(k.default,{title:b},L):L},N=e.i(980646),I=e.i(307441),M=e.i(352050),z=e.i(108314);let B="--progress-line-stroke-color";var D=(0,M.genStyleHooks)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=(0,z.mergeToken)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{...(0,I.resetComponent)(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}})(r),(e=>{var t;let r,{componentCls:o}=e;return{[`${o}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${o}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${o}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${o}-status-active`]:{[`${o}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:(r=t?"100%":"-100%",new N.Keyframes(`antProgress${t?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${r}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${r}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${o}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${o}-status-exception`]:{[`${o}-track`]:{background:e.colorError}},[`&${o}-status-success`]:{[`${o}-track`]:{background:e.colorSuccess}},[`${o}-indicator-outer`]:{[`&${o}-indicator-start`]:{order:-1}},[`${o}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${o}-indicator${o}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${o}-indicator-end`]:{justifyContent:"end"},[`&${o}-indicator-start`]:{justifyContent:"start"},[`&${o}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{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%)",[r]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}})(r),(e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${r}`]:{fontSize:e.fontSizeSM}}}})(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),T=e=>{let{prefixCls:r,classNames:o,styles:i,direction:n,percent:l,size:a,strokeWidth:c,strokeColor:d,strokeLinecap:u="round",children:p,railColor:m,trailColor:f,percentPosition:g,success:b}=e,{align:h,type:$}=g,y="square"===u||"butt"===u?0:void 0,[v,k]=E(a??[-1,c||("small"===a?6:8)],"line",{strokeWidth:c}),w=`${r}-track`,R=d&&"string"!=typeof d?((e,t)=>{let{from:r=x.presetPrimaryColors.blue,to:o=x.presetPrimaryColors.blue,direction:i="rtl"===t?"to left":"to right",...n}=e;if(0!==Object.keys(n).length){let e,t=(e=[],Object.keys(n).forEach(t=>{let r=Number.parseFloat(t.replace(/%/g,""));Number.isNaN(r)||e.push({key:r,value:n[t]})}),(e=e.sort((e,t)=>e.key-t.key)).map(({key:e,value:t})=>`${t} ${e}%`).join(", ")),r=`linear-gradient(${i}, ${t})`;return{background:r,[B]:r}}let l=`linear-gradient(${i}, ${r}, ${o})`;return{background:l,[B]:l}})(d,n):{[B]:d,background:d},N={width:`${C(l)}%`,height:k,borderRadius:y,...R},I=S(e),M={width:`${C(I)}%`,height:k,borderRadius:y,backgroundColor:b?.strokeColor};return t.createElement("div",{className:(0,s.clsx)(`${r}-body`,o.body,{[`${r}-body-layout-bottom`]:"center"===h&&"outer"===$}),style:{width:v>0?v:"100%",...i.body}},t.createElement("div",{className:(0,s.clsx)(`${r}-rail`,o.rail),style:{backgroundColor:(m??f)||void 0,borderRadius:y,height:k,...i.rail}},t.createElement("div",{className:(0,s.clsx)(w,o.track),style:{...N,...i.track}},"inner"===$&&p),void 0!==I&&t.createElement("div",{className:(0,s.clsx)(w,`${w}-success`,o.track),style:{...M,...i.track}})),"outer"===$&&p)},H=e=>{let{classNames:r,styles:o,size:i,steps:n,rounding:l=Math.round,percent:a=0,strokeWidth:c=8,strokeColor:d,railColor:u,trailColor:p,prefixCls:m,children:f}=e,g=l(a/100*n),[b,h]=E(i??["small"===i?2:14,c],"step",{steps:n,strokeWidth:c}),$=b/n,y=Array.from({length:n}),v=u??p;for(let e=0;e<n;e++){let i=Array.isArray(d)?d[e]:d;y[e]=t.createElement("div",{key:e,className:(0,s.clsx)(`${m}-steps-item`,{[`${m}-steps-item-active`]:e<=g-1},r.track),style:{backgroundColor:e<=g-1?i:v,width:$,height:h,...o.track}})}return t.createElement("div",{className:(0,s.clsx)(`${m}-steps-body`,r.body),style:o.body},y,f)};let P=["normal","exception","active","success"],A=t.forwardRef((e,p)=>{let m,{prefixCls:f,className:g,rootClassName:b,classNames:h,styles:$,steps:y,strokeColor:v,percent:k=0,size:x="medium",showInfo:w=!0,type:N="line",status:I,format:M,style:z,percentPosition:B={},...A}=e,{align:W="end",type:L="outer"}=B,O=Array.isArray(v)?v[0]:v,j="string"==typeof v||Array.isArray(v)?v:void 0,F=t.useMemo(()=>{if(O){let e="string"==typeof O?O:Object.values(O)[0];return new r.FastColor(e).isLight()}return!1},[v]),X=t.useMemo(()=>{let t=S(e);return Number.parseInt(void 0!==t?(t??0)?.toString():(k??0)?.toString(),10)},[k,e.success]),q=t.useMemo(()=>!P.includes(I)&&X>=100?"success":I||"normal",[I,X]),{getPrefixCls:_,direction:G,className:K,style:V,classNames:U,styles:Y}=(0,u.useComponentConfig)("progress"),Q=_("progress",f),[Z,J]=D(Q),ee={...e,percent:k,type:N,size:x,showInfo:w,percentPosition:B},[et,er]=(0,c.useMergeSemantic)([U,h],[Y,$],{props:ee}),eo="line"===N,ei=eo&&!y,en=t.useMemo(()=>{let r;if(!w)return null;let a=S(e),c=M||(e=>`${e}%`),d=eo&&F&&"inner"===L;return"inner"===L||M||"exception"!==q&&"success"!==q?r=c(C(k),C(a)):"exception"===q?r=eo?t.createElement(n.default,null):t.createElement(l.default,null):"success"===q&&(r=eo?t.createElement(o.default,null):t.createElement(i.default,null)),t.createElement("span",{className:(0,s.clsx)(`${Q}-indicator`,{[`${Q}-indicator-bright`]:d,[`${Q}-indicator-${W}`]:ei,[`${Q}-indicator-${L}`]:ei},et.indicator),style:er.indicator,title:"string"==typeof r?r:void 0},r)},[w,k,X,q,N,Q,M,eo,F,L,W,ei,et.indicator,er.indicator]),el={...e,classNames:et,styles:er};"line"===N?m=y?t.createElement(H,{...el,strokeColor:j,prefixCls:Q,steps:(0,d.isPlainObject)(y)?y.count:y},en):t.createElement(T,{...el,strokeColor:O,prefixCls:Q,direction:G,percentPosition:{align:W,type:L}},en):("circle"===N||"dashboard"===N)&&(m=t.createElement(R,{...el,strokeColor:O,prefixCls:Q,progressStatus:q},en));let ea=(0,s.clsx)(Q,`${Q}-status-${q}`,{[`${Q}-${"dashboard"===N&&"circle"||N}`]:"line"!==N,[`${Q}-inline-circle`]:"circle"===N&&E(x,"circle")[0]<=20,[`${Q}-line`]:ei,[`${Q}-line-align-${W}`]:ei,[`${Q}-line-position-${L}`]:ei,[`${Q}-steps`]:y,[`${Q}-show-info`]:w,[`${Q}-small`]:"small"===x,[`${Q}-rtl`]:"rtl"===G},K,g,b,et.root,Z,J);return t.createElement("div",{ref:p,style:{...V,...er.root,...z},className:ea,role:"progressbar","aria-valuenow":X,"aria-valuemin":0,"aria-valuemax":100,...(0,a.omit)(A,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},m)});e.s(["default",()=>A],461550)},560370,e=>{"use strict";var t=e.i(191788),r=e.i(633829),o=e.i(100264),i=e.i(907251),n=e.i(151304),l=e.i(351212),a=e.i(851581),s=e.i(56206),c=e.i(934854),d=e.i(664557),u=e.i(993175),p=e.i(583082),m=e.i(188304),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},g=e.i(117716);function b(){return(b=Object.assign.bind()).apply(this,arguments)}let h=t.forwardRef((e,r)=>t.createElement(g.default,b({},e,{ref:r,icon:f})));var $=e.i(536343),y=e.i(663032),v=e.i(97679),k=e.i(307441),x=e.i(352050),C=e.i(671557),S=(0,x.genStyleHooks)("Typography",e=>{let t,{componentCls:r,titleMarginTop:o}=e;return{[r]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${r}-secondary, &${r}-link${r}-secondary`]:{color:e.colorTextDescription},[`&${r}-success, &${r}-link${r}-success`]:{color:e.colorSuccessText},[`&${r}-warning, &${r}-link${r}-warning`]:{color:e.colorWarningText},[`&${r}-danger, &${r}-link${r}-danger`]:{color:e.colorErrorText,[`&${r}-link:active, &${r}-link:focus`]:{color:e.colorErrorTextActive},[`&${r}-link:hover`]:{color:e.colorErrorTextHover}},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...(t={},[1,2,3,4,5].forEach(r=>{t[`
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
`]=((e,t,r,o)=>{let{titleMarginBottom:i,fontWeightStrong:n}=o;return{marginBottom:i,color:r,fontWeight:n,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),t),[`& + h1${r}, & + h2${r}, & + h3${r}, & + h4${r}, & + h5${r}`]:{marginTop:o},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:o}},...{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:C.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}},...(e=>{let{componentCls:t}=e,r=`${t}-link`;return{[`&${r}`]:{...(0,k.operationUnit)(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}})(e),[`${r}-actions`]:{display:"inline"},[`
${r}-expand,
${r}-collapse,
${r}-edit,
${r}-copy
`]:{...(0,k.operationUnit)(e),marginInlineStart:e.marginXXS},...(e=>{let{componentCls:t,paddingSM:r}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}})(e),...{[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}},...{"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),E=e=>{let{prefixCls:r,"aria-label":o,className:i,style:n,direction:l,maxLength:a,autoSize:c=!0,value:d,onSave:u,onCancel:p,onEnd:m,component:f,enterIcon:g=t.createElement(h,null)}=e,b=t.useRef(null),k=t.useRef(!1),x=t.useRef(null),[C,E]=t.useState(d);t.useEffect(()=>{E(d)},[d]),t.useEffect(()=>{if(b.current?.resizableTextArea){let{textArea:e}=b.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let w=()=>{u(C.trim())},[R,N]=S(r),I=(0,s.clsx)(r,`${r}-edit-content`,{[`${r}-rtl`]:"rtl"===l,[`${r}-${f}`]:!!f},i,R,N);return t.createElement("div",{className:I,style:n},t.createElement(v.default,{ref:b,maxLength:a,value:C,onChange:({target:e})=>{E(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{k.current||(x.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:r,metaKey:o,shiftKey:i})=>{x.current!==e||k.current||t||r||o||i||(e===$.default.ENTER?(w(),m?.()):e===$.default.ESC&&p())},onCompositionStart:()=>{k.current=!0},onCompositionEnd:()=>{k.current=!1},onBlur:()=>{w()},"aria-label":o,rows:1,autoSize:c}),null!==g?(0,y.cloneElement)(g,{className:`${r}-edit-content-confirm`}):null)};let w=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function R(e,t){if("string"!=typeof e)return!1;let r=t?.format==="text/html";return!!(await w(e,r)||((e,t)=>{let r=!1,o=o=>{o.stopPropagation(),o.preventDefault(),o.clipboardData?.clearData(),o.clipboardData?.setData("text/plain",e),t&&o.clipboardData?.setData("text/html",e),r=!0};try{return document.addEventListener("copy",o,{capture:!0}),document.execCommand("copy"),r}catch{return!1}finally{document.removeEventListener("copy",o,{capture:!0})}})(e,r))}var N=e.i(154165);function I(e,r){return t.useMemo(()=>{let t=!!e;return[t,{...r,...t&&"object"==typeof e?e:null}]},[e])}let M=t.forwardRef((e,r)=>{let{prefixCls:o,component:i="article",className:n,rootClassName:l,children:a,direction:c,style:d,...p}=e,{getPrefixCls:m,direction:f,className:g,style:b}=(0,u.useComponentConfig)("typography"),h=m("typography",o),[$,y]=S(h),v=(0,s.clsx)(h,g,{[`${h}-rtl`]:"rtl"===(c??f)},n,l,$,y),k={...b,...d};return t.createElement(i,{className:v,style:k,ref:r,...p},a)});var z=e.i(146025),B=e.i(636207),D=e.i(677057);let T=e=>!1===e?[!1,!1]:(0,N.default)(e);function H(e,t,r){return!0===e||void 0===e?t:e||r&&t}let P=e=>["string","number"].includes(typeof e);var A=e=>{let{prefixCls:r,copied:o,locale:i,iconOnly:n,tooltips:l,icon:a,tabIndex:c,onCopy:d,loading:u}=e,p=T(l),f=T(a),{copied:g,copy:b}=i??{},h=o?g:b,$=H(p[+!!o],h),y="string"==typeof $?$:h;return t.createElement(m.default,{title:$},t.createElement("button",{type:"button",className:(0,s.clsx)(`${r}-copy`,{[`${r}-copy-success`]:o,[`${r}-copy-icon-only`]:n}),onClick:d,"aria-label":y,tabIndex:c},o?H(f[1],t.createElement(z.default,null),!0):H(f[0],u?t.createElement(D.default,null):t.createElement(B.default,null),!0)))};let W=t.forwardRef(({style:e,children:r},o)=>{let i=t.useRef(null);return t.useImperativeHandle(o,()=>({isExceed:()=>{let e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight})),t.createElement("span",{"aria-hidden":!0,ref:i,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},r)});function L(e,t){let r=0,o=[];for(let i=0;i<e.length;i+=1){if(r===t)return o;let n=e[i],l=r+(P(n)?String(n).length:1);if(l>t){let e=t-r;return o.push(String(n).slice(0,e)),o}o.push(n),r=l}return e}let O={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function j(e){let{enableMeasure:o,width:i,text:a,children:s,rows:c,expanded:d,miscDeps:u,onEllipsis:p}=e,m=t.useMemo(()=>(0,n.toArray)(a),[a]),f=t.useMemo(()=>m.reduce((e,t)=>e+(P(t)?String(t).length:1),0),[a]),g=t.useMemo(()=>s(m,!1),[a]),[b,h]=t.useState(null),$=t.useRef(null),y=t.useRef(null),v=t.useRef(null),k=t.useRef(null),x=t.useRef(null),[C,S]=t.useState(!1),[E,w]=t.useState(0),[R,N]=t.useState(0),[I,M]=t.useState(null);(0,l.default)(()=>{o&&i&&f?w(1):w(0)},[i,a,c,o,m]),(0,l.default)(()=>{if(1===E)w(2),M(y.current&&getComputedStyle(y.current).whiteSpace);else if(2===E){let e=!!v.current?.isExceed();w(e?3:4),h(e?[0,f]:null),S(e),N(Math.max(v.current?.getHeight()||0,(1===c?0:k.current?.getHeight()||0)+(x.current?.getHeight()||0))+1),p(e)}},[E]);let z=b?Math.ceil((b[0]+b[1])/2):0;(0,l.default)(()=>{let[e,t]=b||[0,0];if(e!==t){let r=($.current?.getHeight()||0)>R,o=z;t-e==1&&(o=r?e:t),h(r?[e,o]:[o,t])}},[b,z]);let B=t.useMemo(()=>{if(!o)return s(m,!1);if(3!==E||!b||b[0]!==b[1]){let e=s(m,!1);return[4,0].includes(E)?e:t.createElement("span",{style:{...O,WebkitLineClamp:c}},e)}return s(d?m:L(m,b[0]),C)},[d,E,b,m].concat((0,r.default)(u))),D={width:i,margin:0,padding:0,whiteSpace:"nowrap"===I?"normal":"inherit"};return t.createElement(t.Fragment,null,B,2===E&&t.createElement(t.Fragment,null,t.createElement(W,{style:{...D,...O,WebkitLineClamp:c},ref:v},g),t.createElement(W,{style:{...D,...O,WebkitLineClamp:c-1},ref:k},g),t.createElement(W,{style:{...D,...O,WebkitLineClamp:1},ref:x},s([],!0))),3===E&&b&&b[0]!==b[1]&&t.createElement(W,{style:{...D,top:400},ref:$},s(L(m,z),!0)),1===E&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}var F=({enableEllipsis:e,isEllipsis:r,open:o,children:i,tooltipProps:n})=>n?.title&&e?t.createElement(m.default,{open:o&&r,...n},i):i;let X=["delete","mark","code","underline","strong","keyboard","italic"],q=t.forwardRef((e,f)=>{let g,b,h,{prefixCls:$,className:y,style:v,type:k,disabled:x,children:C,ellipsis:S,editable:w,copyable:z,component:B,title:D,onMouseEnter:T,onMouseLeave:H,...W}=e,{getPrefixCls:L,direction:O}=t.useContext(u.ConfigContext),[q]=(0,p.default)("Text"),_=t.useRef(null),G=t.useRef(null),K=L("typography",$),V=(0,n.omit)(W,X),[U,Y]=I(w),[Q,Z]=(0,n.useControlledState)(!1,Y.editing),{triggerType:J=["icon"]}=Y,ee=e=>{e&&Y.onStart?.(),Z(e)},et=(g=(0,t.useRef)(void 0),(0,t.useEffect)(()=>{g.current=Q}),g.current);(0,l.default)(()=>{!Q&&et&&G.current?.focus()},[Q]);let er=e=>{e?.preventDefault(),ee(!0)},[eo,ei]=I(z),{copied:en,copyLoading:el,onClick:ea}=(({copyConfig:e,children:r})=>{let[o,i]=t.useState(!1),[l,a]=t.useState(!1),s=t.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},d={};return e.format&&(d.format=e.format),t.useEffect(()=>c,[]),{copied:o,copyLoading:l,onClick:(0,n.useEvent)(async t=>{t?.preventDefault(),t?.stopPropagation(),a(!0);try{let o="function"==typeof e.text?await e.text():e.text;await R(o||(0,N.default)(r,{skipEmpty:!0}).join("")||"",d),a(!1),i(!0),c(),s.current=setTimeout(()=>{i(!1)},3e3),e.onCopy?.(t)}catch(e){throw a(!1),e}})}})({copyConfig:ei,children:C}),[es,ec]=t.useState(!1),[ed,eu]=t.useState(!1),[ep,em]=t.useState(!1),[ef,eg]=t.useState(!1),[eb,eh]=t.useState(!0),[e$,ey]=I(S,{expandable:!1,symbol:e=>e?q?.collapse:q?.expand}),[ev,ek]=(0,n.useControlledState)(ey.defaultExpanded||!1,ey.expanded),ex=e$&&(!ev||"collapsible"===ey.expandable),{rows:eC=1}=ey,eS=t.useMemo(()=>ex&&(void 0!==ey.suffix||ey.onEllipsis||ey.expandable||U||eo),[ex,ey,U,eo]);(0,l.default)(()=>{e$&&!eS&&(ec((0,d.isStyleSupport)("webkitLineClamp")),eu((0,d.isStyleSupport)("textOverflow")))},[eS,e$]);let[eE,ew]=t.useState(ex),eR=t.useMemo(()=>!eS&&(1===eC?ed:es),[eS,ed,es]);(0,l.default)(()=>{ew(eR&&ex)},[eR,ex]);let eN=(b=ey.tooltip,h=Y.text,(0,t.useMemo)(()=>!0===b?{title:h??C}:(0,t.isValidElement)(b)?{title:b}:(0,c.isPlainObject)(b)?{title:h??C,...b}:{title:b},[b,h,C])),eI=eE&&!!eN.title,eM=ex&&(eE?eI&&ef:ep),ez=ex&&1===eC&&eE,eB=ex&&eC>1&&eE,[eD,eT]=t.useState(0),[eH,eP]=t.useState(!1),[eA,eW]=t.useState(!1),eL=e=>{em(e),ep!==e&&ey.onEllipsis?.(e)};t.useEffect(()=>{let e=_.current;if(e$&&eI&&e){let t,r,o,i=(t=document.createElement("em"),e.appendChild(t),r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),e.removeChild(t),r.left>o.left||o.right>r.right||r.top>o.top||o.bottom>r.bottom);ef!==i&&eg(i)}},[e$,eI,C,eB,eb,eD]),t.useEffect(()=>{let e=_.current;if("u"<typeof IntersectionObserver||!e||!eI||!ex)return;let t=new IntersectionObserver(()=>{eh(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eI,ex]);let eO=t.useMemo(()=>{if(e$&&!eE)return[Y.text,C,D,eN.title].find(P)},[e$,eE,D,eN.title,eM]);return Q?t.createElement(E,{value:Y.text??("string"==typeof C?C:""),onSave:e=>{Y.onChange?.(e),ee(!1)},onCancel:()=>{Y.onCancel?.(),ee(!1)},onEnd:Y.onEnd,prefixCls:K,className:y,style:v,direction:O,component:B,maxLength:Y.maxLength,autoSize:Y.autoSize,enterIcon:Y.enterIcon}):t.createElement(i.default,{onResize:({offsetWidth:e})=>{eT(e)},disabled:!ex},i=>t.createElement(F,{tooltipProps:eN,enableEllipsis:ex,isEllipsis:eM,open:eA&&!eH},t.createElement(M,{onMouseEnter:e=>{eW(!0),T?.(e)},onMouseLeave:e=>{eW(!1),H?.(e)},className:(0,s.clsx)({[`${K}-${k}`]:k,[`${K}-disabled`]:x,[`${K}-ellipsis`]:e$,[`${K}-ellipsis-single-line`]:ez,[`${K}-ellipsis-multiple-line`]:eB,[`${K}-link`]:"a"===B},y),prefixCls:$,style:{...v,WebkitLineClamp:eB?eC:void 0},component:B,ref:(0,a.composeRef)(i,_,f),direction:O,onClick:J.includes("text")?er:void 0,"aria-label":eO?.toString(),title:D,...V},t.createElement(j,{enableMeasure:ex&&!eE,text:C,rows:eC,width:eD,onEllipsis:eL,expanded:ev,miscDeps:[en,ev,el,U,eo,q].concat((0,r.default)(X.map(t=>e[t])))},(r,i)=>{var l;let a,s,d;return function({mark:e,code:r,underline:o,delete:i,strong:n,keyboard:l,italic:a},s){let c=s;function d(e,r){r&&(c=t.createElement(e,{},c))}return d("strong",n),d("u",o),d("del",i),d("code",r),d("mark",e),d("kbd",l),d("i",a),c}(e,t.createElement(t.Fragment,null,r.length>0&&i&&!ev&&eO?t.createElement("span",{key:"show-content","aria-hidden":!0},r):r,[(l=i)&&!ev&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ey.suffix,(a=l&&(()=>{let{expandable:e,symbol:r}=ey;return e?t.createElement("button",{type:"button",key:"expand",className:`${K}-${ev?"collapse":"expand"}`,onClick:e=>{var t;ek((t={expanded:!ev}).expanded),ey.onExpand?.(e,t)},"aria-label":ev?q.collapse:q?.expand},"function"==typeof r?r(ev):r):null})(),s=(()=>{if(!U)return;let{icon:e,tooltip:r,tabIndex:i}=Y,l=(0,n.toArray)(r)[0]||q?.edit,a="string"==typeof l?l:"";return J.includes("icon")?t.createElement(m.default,{key:"edit",title:!1===r?"":l},t.createElement("button",{type:"button",ref:G,className:`${K}-edit`,onClick:er,"aria-label":a,tabIndex:i},e||t.createElement(o.default,{role:"button"}))):null})(),d=eo?t.createElement(A,{key:"copy",...ei,prefixCls:K,copied:en,locale:q,onCopy:ea,loading:el,iconOnly:!(0,c.isNonNullable)(C)}):null,a||s||d?t.createElement("span",{key:"operations",className:`${K}-actions`,onMouseEnter:()=>eP(!0),onMouseLeave:()=>eP(!1)},a,s,d):null)]))}))))}),_=t.forwardRef((e,r)=>{let{ellipsis:o,rel:i,children:n,navigate:l,...a}=e,s={...a,rel:void 0===i&&"_blank"===a.target?"noopener noreferrer":i};return t.createElement(q,{...s,ref:r,ellipsis:!!o,component:"a"},n)}),G=t.forwardRef((e,r)=>{let{children:o,...i}=e;return t.createElement(q,{ref:r,...i,component:"div"},o)}),K=t.forwardRef((e,r)=>{let{ellipsis:o,children:i,...l}=e,a=t.useMemo(()=>(0,c.isPlainObject)(o)?(0,n.omit)(o,["expandable","rows"]):o,[o]);return t.createElement(q,{ref:r,...l,ellipsis:a,component:"span"},i)}),V=[1,2,3,4,5],U=t.forwardRef((e,r)=>{let{level:o=1,children:i,...n}=e,l=V.includes(o)?`h${o}`:"h1";return t.createElement(q,{ref:r,...n,component:l},i)});M.Text=K,M.Link=_,M.Title=U,M.Paragraph=G,e.s(["Typography",()=>M],560370)},700907,e=>{"use strict";var t=e.i(191788),r={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"},o=e.i(117716);function i(){return(i=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(o.default,i({},e,{ref:n,icon:r})));e.s(["default",()=>n],700907)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])}]);