Spaces:
Sleeping
Sleeping
File size: 246,679 Bytes
1eabcf7 9dd20db |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
import{ao as zr,x as ve,bg as wo,bh as tt,J as Le,r as c,a as We,m as be,C as de,f as Oo,c as L,R as Me,aS as Ce,bi as Pt,u as w,bj as Kt,bk as Ji,A as ye,_ as xe,bl as ea,bm as Io,aX as Eo,bn as mr,aC as nt,bo as Dt,o as Ae,aV as xt,aU as fr,bp as pr,bq as ta,e as na,br as To,t as gr,b as _e,bs as Ve,a8 as ra,aa as oa,bt as ia,bu as st,bv as Po,bw as vn,ab as Do,bx as hr,aT as $n,by as Gt,bz as aa,bA as At,d as br,aW as Mo,bB as _o,ax as la,an as ge,b9 as St,bC as sa,bD as ca,bE as da,bF as ua,bG as Hr,K as jo,am as Rr,bH as ma,j as D,aA as Zt,bI as fa,bb as pa,h as No,b0 as Bo,b1 as zo,l as ga,k as ha,be as ba}from"./index-351f7d94.js";import{a as va,O as $a,T as Sa,ao as Ho,ap as ya,M as xa,aq as Ca,ar as wa,as as Ro,E as Oa,D as Ia,at as Fo,au as Lo,P as Ea,d as Ta,c as Ao,b as nn,k as rn,av as Pa,aw as Da,p as Ma,ax as Wo,ay as _a,az as ja,q as Na,n as Ba,o as za,aA as Ha,l as Ra,j as Fa,F as La,ak as vt,al as et,aB as Aa,aC as Wa,aD as Fr,aj as Lr,a6 as ue,a5 as qo,A as ko,G as qa,ai as ka,x as Uo,aE as Ua,N as Xa}from"./stripPrefix-300c9267.js";import{C as Ya,g as Va,b as Ka,u as Ga,c as Za,I as vr,T as Qa,i as Ja,d as el,e as tl,f as nl,o as rl,a as ol,H as il}from"./Header-032400ec.js";import{T as Xo,h as al,j as ll,k as sl,u as $r,l as cl}from"./TextArea-8951d75f.js";import{i as Ar,a as Wr}from"./gapSize-a2278ff3.js";import{g as Sn}from"./routes-17d4ed4d.js";function yn(e){return e!=null&&e===e.window}function dl(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return yn(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!yn(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),i}function ul(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function ml(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=dl(i,!0),l=Date.now(),s=()=>{const u=Date.now()-l,m=ul(u>o?o:u,a,e,o);yn(i)?i.scrollTo(window.pageXOffset,m):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=m:i.scrollTop=m,u<o?zr(s):typeof r=="function"&&r()};zr(s)}const fl=new ve("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pl=new ve("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),gl=new ve("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hl=new ve("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bl=new ve("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vl=new ve("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$l=new ve("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Sl=new ve("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),yl={"move-up":{inKeyframes:$l,outKeyframes:Sl},"move-down":{inKeyframes:fl,outKeyframes:pl},"move-left":{inKeyframes:gl,outKeyframes:hl},"move-right":{inKeyframes:bl,outKeyframes:vl}},Wt=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=yl[t];return[wo(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Sr=new ve("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),yr=new ve("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xr=new ve("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Cr=new ve("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xl=new ve("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Cl=new ve("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wl=new ve("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ol=new ve("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Il={"slide-up":{inKeyframes:Sr,outKeyframes:yr},"slide-down":{inKeyframes:xr,outKeyframes:Cr},"slide-left":{inKeyframes:xl,outKeyframes:Cl},"slide-right":{inKeyframes:wl,outKeyframes:Ol}},yt=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Il[t];return[wo(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},El=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),wr=El,Tl=()=>{const[,e]=tt(),n=new Le(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),c.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),c.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),c.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),c.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Pl=Tl,Dl=()=>{const[,e]=tt(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=c.useMemo(()=>({borderColor:new Le(t).onBackground(o).toHexShortString(),shadowColor:new Le(n).onBackground(o).toHexShortString(),contentColor:new Le(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:i},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},Ml=Dl,_l=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},jl=We("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=be(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[_l(o)]});var Nl=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yo=c.createElement(Pl,null),Vo=c.createElement(Ml,null),Or=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=Yo,description:i,children:a,imageStyle:l,style:s}=e,d=Nl(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:m,empty:S}=c.useContext(de),$=u("empty",r),[b,y,h]=jl($),[f]=Oo("Empty"),g=typeof i<"u"?i:f==null?void 0:f.description,p=typeof g=="string"?g:"empty";let v=null;return typeof o=="string"?v=c.createElement("img",{alt:p,src:o}):v=o,b(c.createElement("div",Object.assign({className:L(y,h,$,S==null?void 0:S.className,{[`${$}-normal`]:o===Vo,[`${$}-rtl`]:m==="rtl"},t,n),style:Object.assign(Object.assign({},S==null?void 0:S.style),s)},d),c.createElement("div",{className:`${$}-image`,style:l},v),g&&c.createElement("div",{className:`${$}-description`},g),a&&c.createElement("div",{className:`${$}-footer`},a)))};Or.PRESENTED_IMAGE_DEFAULT=Yo;Or.PRESENTED_IMAGE_SIMPLE=Vo;const lt=Or,Bl=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(de),r=n("empty");switch(t){case"Table":case"List":return Me.createElement(lt,{image:lt.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Me.createElement(lt,{image:lt.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return Me.createElement(lt,null)}},Ko=Bl,zl=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Hl(e,t){return e||zl(t)}const Rl=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Fl=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ce(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
${o}${l}bottomLeft,
${i}${l}bottomLeft
`]:{animationName:Sr},[`
${o}${l}topLeft,
${i}${l}topLeft,
${o}${l}topRight,
${i}${l}topRight
`]:{animationName:xr},[`${a}${l}bottomLeft`]:{animationName:yr},[`
${a}${l}topLeft,
${a}${l}topRight
`]:{animationName:Cr},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Rl(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Pt),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},yt(e,"slide-up"),yt(e,"slide-down"),Wt(e,"move-up"),Wt(e,"move-down")]},Ll=Fl,gt=2,Al=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function on(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=Al(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(gt).mul(2).equal(),paddingBlock:e.calc(a).sub(gt).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${w(gt)} 0`,lineHeight:w(i),visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:gt,marginBottom:gt,lineHeight:w(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),background:e.multipleItemBg,border:`${w(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(gt).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Kt()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:w(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const Wl=e=>{const{componentCls:t}=e,n=be(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=be(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[on(e),on(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},on(r,"lg")]},ql=Wl;function an(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ce(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:w(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${w(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:w(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${w(r)}`,"&:after":{display:"none"}}}}}}}function kl(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[an(e),an(be(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${w(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},an(be(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Ul=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${w(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ln=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:l,controlOutlineWidth:s}=t,d=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},d),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${w(s)} ${l}`,outline:0}})}}},Xl=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Yl=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ce(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ul(e)),Xl(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Pt),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Pt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Kt()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Vl=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},Yl(e),kl(e),ql(e),Ll(e),{[`${t}-rtl`]:{direction:"rtl"}},ln(t,be(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),ln(`${t}-status-error`,be(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),ln(`${t}-status-warning`,be(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Ji(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Kl=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:d,colorBgContainer:u,colorFillSecondary:m,controlHeightLG:S,controlHeightSM:$,colorBgContainerDisabled:b,colorTextDisabled:y}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:d,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:S,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightLG:r,multipleSelectorBgDisabled:b,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},Gl=We("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=be(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Vl(r)]},Kl,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Zl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Ql=Zl;var Jl=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Ql}))};const Go=c.forwardRef(Jl);var es={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"};const ts=es;var ns=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:ts}))};const Ir=c.forwardRef(ns);function rs(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:d,feedbackIcon:u,showArrow:m,componentName:S}=e;const $=n??c.createElement(ea,null),b=g=>t===null&&!l&&!m?null:c.createElement(c.Fragment,null,d!==!1&&g,l&&u);let y=null;if(t!==void 0)y=b(t);else if(i)y=b(c.createElement(Eo,{spin:!0}));else{const g=`${s}-suffix`;y=p=>{let{open:v,showSearch:x}=p;return b(v&&x?c.createElement(Ir,{className:g}):c.createElement(Go,{className:g}))}}let h=null;r!==void 0?h=r:a?h=c.createElement(Ya,null):h=null;let f=null;return o!==void 0?f=o:f=c.createElement(Io,null),{clearIcon:$,suffixIcon:y,itemIcon:h,removeIcon:f}}function os(e,t){return t!==void 0?t:e!==null}var is=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Zo="SECRET_COMBOBOX_MODE_DO_NOT_USE",as=(e,t)=>{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:s,popupClassName:d,dropdownClassName:u,listHeight:m=256,placement:S,listItemHeight:$,size:b,disabled:y,notFoundContent:h,status:f,builtinPlacements:g,dropdownMatchSelectWidth:p,popupMatchSelectWidth:v,direction:x,style:C,allowClear:O}=e,P=is(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:T,renderEmpty:j,direction:N,virtual:z,popupMatchSelectWidth:E,popupOverflow:M,select:H}=c.useContext(de),[,q]=tt(),X=$??(q==null?void 0:q.controlHeight),V=T("select",o),_=T(),R=x??N,{compactSize:K,compactItemClassnames:ne}=mr(V,R),re=nt(V),[Q,ae,te]=Gl(V,re),G=c.useMemo(()=>{const{mode:oe}=P;if(oe!=="combobox")return oe===Zo?"combobox":oe},[P.mode]),we=G==="multiple"||G==="tags",De=os(P.suffixIcon,P.showArrow),U=(n=v??p)!==null&&n!==void 0?n:E,{status:F,hasFeedback:W,isFormItemInput:A,feedbackIcon:Y}=c.useContext(Dt),B=Ka(F,f);let k;h!==void 0?k=h:G==="combobox"?k=null:k=(j==null?void 0:j("Select"))||c.createElement(Ko,{componentName:"Select"});const{suffixIcon:J,itemIcon:Ie,removeIcon:qe,clearIcon:je}=rs(Object.assign(Object.assign({},P),{multiple:we,hasFeedback:W,feedbackIcon:Y,showSuffixIcon:De,prefixCls:V,showArrow:P.showArrow,componentName:"Select"})),Ge=O===!0?{clearIcon:je}:O,rt=Ae(P,["suffixIcon","itemIcon"]),pe=L(d||u,{[`${V}-dropdown-${R}`]:R==="rtl"},l,te,re,ae),Ne=xt(oe=>{var ie;return(ie=b??K)!==null&&ie!==void 0?ie:oe}),ke=c.useContext(fr),mt=y??ke,ot=L({[`${V}-lg`]:Ne==="large",[`${V}-sm`]:Ne==="small",[`${V}-rtl`]:R==="rtl",[`${V}-borderless`]:!i,[`${V}-in-form-item`]:A},Va(V,B,W),ne,H==null?void 0:H.className,a,l,te,re,ae),ft=c.useMemo(()=>S!==void 0?S:R==="rtl"?"bottomRight":"bottomLeft",[S,R]),[ee]=pr("SelectLike",(r=P.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return Q(c.createElement(Sa,Object.assign({ref:t,virtual:z,showSearch:H==null?void 0:H.showSearch},rt,{style:Object.assign(Object.assign({},H==null?void 0:H.style),C),dropdownMatchSelectWidth:U,builtinPlacements:Hl(g,M),transitionName:ta(_,"slide-up",P.transitionName),listHeight:m,listItemHeight:X,mode:G,prefixCls:V,placement:ft,direction:R,suffixIcon:J,menuItemSelectedIcon:Ie,removeIcon:qe,allowClear:Ge,notFoundContent:k,className:ot,getPopupContainer:s||I,dropdownClassName:pe,disabled:mt,dropdownStyle:Object.assign(Object.assign({},P==null?void 0:P.dropdownStyle),{zIndex:ee})})))},Ct=c.forwardRef(as),ls=Ho(Ct);Ct.SECRET_COMBOBOX_MODE_DO_NOT_USE=Zo;Ct.Option=va;Ct.OptGroup=$a;Ct._InternalPanelDoNotUseOrYouWillBeFired=ls;const Qt=Ct,ss=["xxl","xl","lg","md","sm","xs"],cs=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)`}),ds=e=>{const t=e,n=[].concat(ss).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`)}}),e};function us(){const[,e]=tt(),t=cs(ds(e));return Me.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=d=>{let{matches:u}=d;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function Qo(){const[,e]=c.useReducer(t=>t+1,0);return e}function Jo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=Qo(),r=us();return na(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}var ms=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fs=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=ms(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=c.useContext(de),a=i("menu",t),l=L({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(ya,Object.assign({className:l},o))},ei=fs,ps=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),qt=ps,gs=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:d,disableMenuItemTitleTooltip:u,inlineCollapsed:m}=c.useContext(qt),S=g=>{const p=c.createElement("span",{className:`${l}-title-content`},r);return(!o||Ve(r)&&r.type==="span")&&r&&g&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):p},{siderCollapsed:$}=c.useContext(To);let b=i;typeof i>"u"?b=s?r:"":i===!1&&(b="");const y={title:b};!$&&!m&&(y.title=null,y.open=!1);const h=gr(r).length;let f=c.createElement(xa,Object.assign({},Ae(e,["title","icon","danger"]),{className:L({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?h+1:h)===1},n),title:typeof i=="string"?i:void 0}),_e(o,{className:L(Ve(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),S(m));return u||(f=c.createElement(Xo,Object.assign({},y,{placement:d==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),f)),f},ti=gs,hs=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=c.useContext(qt),{prefixCls:l,inlineCollapsed:s,theme:d}=a,u=Ca();let m;if(!r)m=s&&!u.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const b=Ve(o)&&o.type==="span";m=c.createElement(c.Fragment,null,_e(r,{className:L(Ve(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),b?o:c.createElement("span",{className:`${l}-title-content`},o))}const S=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[$]=pr("Menu");return c.createElement(qt.Provider,{value:S},c.createElement(wa,Object.assign({},Ae(e,["icon"]),{title:m,popupClassName:L(l,n,`${l}-${i||d}`),popupStyle:{zIndex:$}})))},ni=hs;var bs={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"};const vs=bs;var $s=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:vs}))};const ri=c.forwardRef($s);var Ss=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xn(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,s=Ss(r,["label","children","key","type"]),d=a??`tmp-${n}`;return i||l==="group"?l==="group"?c.createElement(Ro,Object.assign({key:d},s,{title:o}),xn(i)):c.createElement(ni,Object.assign({key:d},s,{title:o}),xn(i)):l==="divider"?c.createElement(ei,Object.assign({key:d},s)):c.createElement(ti,Object.assign({key:d},s),o)}return null}).filter(t=>t)}function ys(e){return c.useMemo(()=>e&&xn(e),[e])}var xs=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kt=c.createContext(null),oi=c.forwardRef((e,t)=>{const{children:n}=e,r=xs(e,["children"]),o=c.useContext(kt),i=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=ra(n),l=oa(t,a?n.ref:null);return c.createElement(kt.Provider,{value:i},c.createElement(ia,null,a?c.cloneElement(n,{ref:l}):n))}),Cs=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${w(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
> ${t}-item-active,
> ${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"}}}},ws=Cs,Os=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${w(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${w(n)})`}}}}},Is=Os,qr=e=>Object.assign({},st(e)),Es=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:m,motionDurationSlow:S,motionEaseInOut:$,motionEaseOut:b,itemPaddingInline:y,motionDurationMid:h,itemHoverColor:f,lineType:g,colorSplit:p,itemDisabledColor:v,dangerItemColor:x,dangerItemHoverColor:C,dangerItemSelectedColor:O,dangerItemActiveBg:P,dangerItemSelectedBg:I,itemHoverBg:T,itemActiveBg:j,menuSubMenuBg:N,horizontalItemSelectedColor:z,horizontalItemSelectedBg:E,horizontalItemBorderRadius:M,horizontalItemHoverBg:H,popupBg:q}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},qr(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${v} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:f}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},qr(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:q},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${w(d)} solid transparent`,transition:`border-color ${S} ${$}`,content:'""'},"&:hover, &-active, &-open":{background:H,"&::after":{borderBottomWidth:d,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:E,"&:hover":{backgroundColor:E},"&::after":{borderBottomWidth:d,borderBottomColor:z}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${w(m)} ${g} ${p}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${w(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${b}`,`opacity ${h} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${$}`,`opacity ${h} ${$}`].join(",")}}}}}},kr=Es,Ur=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s}=e,d=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:w(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:w(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:d}}},Ts=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:d,itemMarginInline:u,fontSizeLG:m,motionDurationSlow:S,paddingXS:$,boxShadowSecondary:b,collapsedWidth:y,collapsedIconSize:h}=e,f={height:r,lineHeight:w(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Ur(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Ur(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${w(e.calc(a).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 ${S}`,`background ${S}`,`padding ${l} ${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`]:f,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:f}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${w(e.calc(m).div(2).equal())} - ${w(u)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:w(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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Pt),{paddingInline:$})}}]},Ps=Ts,Xr=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Kt()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Yr=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${w(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${w(a)})`}}}}},Ds=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:d,lineWidth:u,zIndexPopup:m,borderRadiusLG:S,subMenuItemBorderRadius:$,menuArrowSize:b,menuArrowOffset:y,lineType:h,menuPanelMaskInset:f,groupTitleLineHeight:g,groupTitleFontSize:p}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},vn()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce(e)),vn()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${w(l)} ${w(s)}`,fontSize:p,lineHeight:g,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xr(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${w(e.calc(r).mul(2).equal())} ${w(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:S,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${w(f)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:f},"\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},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:S},Xr(e)),Yr(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:$},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Yr(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${w(y)})`},"&::after":{transform:`rotate(45deg) translateX(${w(e.calc(y).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${w(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${w(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${w(y)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ms=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:d,lineWidth:u,lineWidthBold:m,controlItemBgActive:S,colorBgTextHover:$,controlHeightLG:b,lineHeight:y,colorBgElevated:h,marginXXS:f,padding:g,fontSize:p,controlHeightSM:v,fontSizeLG:x,colorTextLightSolid:C,colorErrorHover:O}=e,P=new Le(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:$,itemHoverBg:$,colorItemBgActive:d,itemActiveBg:S,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:h,itemMarginBlock:f,itemPaddingInline:g,horizontalLineHeight:`${b*1.15}px`,iconSize:p,iconMarginInlineEnd:v-p,collapsedIconSize:x,groupTitleFontSize:p,darkItemDisabledColor:new Le(C).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:C,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n,itemWidth:""}},_s=e=>Object.assign(Object.assign({},e),{itemWidth:e.activeBarWidth?`calc(100% + ${e.activeBarBorderWidth}px)`:`calc(100% - ${e.itemMarginInline*2}px)`}),js=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return We("Menu",o=>{const{colorBgElevated:i,colorPrimary:a,colorTextLightSolid:l,controlHeightLG:s,fontSize:d,darkItemColor:u,darkDangerItemColor:m,darkItemBg:S,darkSubMenuItemBg:$,darkItemSelectedColor:b,darkItemSelectedBg:y,darkDangerItemSelectedBg:h,darkItemHoverBg:f,darkGroupTitleColor:g,darkItemHoverColor:p,darkItemDisabledColor:v,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:O}=o,P=o.calc(d).div(7).mul(5).equal(),I=be(o,{menuArrowSize:P,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(P).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:i,calc:o.calc}),T=be(I,{itemColor:u,itemHoverColor:p,groupTitleColor:g,itemSelectedColor:b,itemBg:S,popupBg:S,subMenuItemBg:$,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:f,itemDisabledColor:v,dangerItemColor:m,dangerItemHoverColor:x,dangerItemSelectedColor:C,dangerItemActiveBg:O,dangerItemSelectedBg:h,menuSubMenuBg:$,horizontalItemSelectedColor:l,horizontalItemSelectedBg:a});return[Ds(I),ws(I),Ps(I),kr(I,"light"),kr(T,"dark"),Is(I),wr(I),yt(I,"slide-up"),yt(I,"slide-down"),Po(I,"zoom-big")]},Ms,{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"]],format:_s,injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var Ns=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Bs=c.forwardRef((e,t)=>{var n,r;const o=c.useContext(kt),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:d}=c.useContext(de),u=a(),{prefixCls:m,className:S,style:$,theme:b="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:f,siderCollapsed:g,items:p,children:v,rootClassName:x,mode:C,selectable:O,onClick:P,overflowedIndicatorPopupClassName:I}=e,T=Ns(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=Ae(T,["collapsedWidth"]),N=ys(p)||v;(n=i.validator)===null||n===void 0||n.call(i,{mode:C});const z=Do(function(){var ae;P==null||P.apply(void 0,arguments),(ae=i.onClick)===null||ae===void 0||ae.call(i)}),E=i.mode||C,M=O??i.selectable,H=c.useMemo(()=>g!==void 0?g:f,[f,g]),q={horizontal:{motionName:`${u}-slide-up`},inline:hr(u),other:{motionName:`${u}-zoom-big`}},X=a("menu",m||i.prefixCls),V=nt(X),[_,R,K]=js(X,V,!o),ne=L(`${X}-${b}`,d==null?void 0:d.className,S);let re;if(typeof y=="function")re=y;else if(y===null||y===!1)re=null;else if(i.expandIcon===null||i.expandIcon===!1)re=null;else{const ae=y??i.expandIcon;re=_e(ae,{className:L(`${X}-submenu-expand-icon`,Ve(ae)?(r=ae.props)===null||r===void 0?void 0:r.className:"")})}const Q=c.useMemo(()=>({prefixCls:X,inlineCollapsed:H||!1,direction:s,firstLevel:!0,theme:b,mode:E,disableMenuItemTitleTooltip:h}),[X,H,s,h,b]);return _(c.createElement(kt.Provider,{value:null},c.createElement(qt.Provider,{value:Q},c.createElement(Oa,Object.assign({getPopupContainer:l,overflowedIndicator:c.createElement(ri,null),overflowedIndicatorPopupClassName:L(X,`${X}-${b}`,I),mode:E,selectable:M,onClick:z},j,{inlineCollapsed:H,style:Object.assign(Object.assign({},d==null?void 0:d.style),$),className:ne,prefixCls:X,direction:s,defaultMotions:q,expandIcon:re,ref:t,rootClassName:L(x,R,i.rootClassName,K,V)}),N))))}),zs=Bs,_t=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(To);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),c.createElement(zs,Object.assign({ref:n},e,r))});_t.Item=ti;_t.SubMenu=ni;_t.Divider=ei;_t.ItemGroup=Ro;const ii=_t,Hs=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Rs=Hs,Fs=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:d,fontSize:u,dropdownEdgeChildPadding:m,colorTextDisabled:S,fontSizeIcon:$,controlPaddingHorizontal:b,colorBgElevated:y}=e;return[{[t]:Object.assign(Object.assign({},Ce(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:$}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:$},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Sr},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:xr},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:yr},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Cr}})},al(e,y,{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`]:{[n]:Object.assign(Object.assign({padding:m,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},$n(e)),{[`${n}-item-group-title`]:{padding:`${w(d)} ${w(b)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${w(d)} ${w(b)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},$n(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:S,cursor:"not-allowed","&:hover":{color:S,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${w(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.colorTextDescription,fontSize:$,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${w(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:S,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[yt(e,"slide-up"),yt(e,"slide-down"),Wt(e,"move-up"),Wt(e,"move-down"),Po(e,"zoom-big")]]},Ls=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},ll({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),sl(e)),As=We("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=be(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Fs(i),Rs(i)]},Ls),Er=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:d,rootClassName:u,overlayStyle:m,open:S,onOpenChange:$,visible:b,onVisibleChange:y,mouseEnterDelay:h=.15,mouseLeaveDelay:f=.1,autoAdjustOverflow:g=!0,placement:p="",overlay:v,transitionName:x}=e,{getPopupContainer:C,getPrefixCls:O,direction:P,dropdown:I}=c.useContext(de);Gt();const T=c.useMemo(()=>{const F=O();return x!==void 0?x:p.includes("top")?`${F}-slide-down`:`${F}-slide-up`},[O,p,x]),j=c.useMemo(()=>p?p.includes("Center")?p.slice(0,p.indexOf("Center")):p:P==="rtl"?"bottomRight":"bottomLeft",[p,P]),N=O("dropdown",r),z=nt(N),[E,M,H]=As(N,z),[,q]=tt(),X=c.Children.only(o),V=_e(X,{className:L(`${N}-trigger`,{[`${N}-rtl`]:P==="rtl"},X.props.className),disabled:a}),_=a?[]:i;let R;_&&_.includes("contextMenu")&&(R=!0);const[K,ne]=$r(!1,{value:S??b}),re=Do(F=>{$==null||$(F,{source:"trigger"}),y==null||y(F),ne(F)}),Q=L(d,u,M,H,z,I==null?void 0:I.className,{[`${N}-rtl`]:P==="rtl"}),ae=cl({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:g,offset:q.marginXXS,arrowWidth:n?q.sizePopupArrow:0,borderRadius:q.borderRadius}),te=c.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||($==null||$(!1,{source:"menu"}),ne(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),G=()=>{let F;return t!=null&&t.items?F=c.createElement(ii,Object.assign({},t)):typeof v=="function"?F=v():F=v,l&&(F=l(F)),F=c.Children.only(typeof F=="string"?c.createElement("span",null,F):F),c.createElement(oi,{prefixCls:`${N}-menu`,rootClassName:H,expandIcon:c.createElement("span",{className:`${N}-menu-submenu-arrow`},c.createElement(At,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:te,validator:W=>{}},F)},[we,De]=pr("Dropdown",m==null?void 0:m.zIndex);let U=c.createElement(Ia,Object.assign({alignPoint:R},Ae(e,["rootClassName"]),{mouseEnterDelay:h,mouseLeaveDelay:f,visible:K,builtinPlacements:ae,arrow:!!n,overlayClassName:Q,prefixCls:N,getPopupContainer:s||C,transitionName:T,trigger:_,overlay:G,placement:j,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),m),{zIndex:we})}),V);return we&&(U=c.createElement(aa.Provider,{value:De},U)),E(U)};function Ws(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const qs=Ho(Er,"dropdown",e=>e,Ws),ks=e=>c.createElement(qs,Object.assign({},e),c.createElement("span",null));Er._InternalPanelDoNotUseOrYouWillBeFired=ks;const ai=Er,li=c.createContext(null),Us=li.Provider,si=c.createContext(null),Xs=si.Provider,Ys=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ce(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Vs=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:d,lineWidth:u,colorBgContainerDisabled:m,colorTextDisabled:S,paddingXS:$,dotColorDisabled:b,lineType:y,radioColor:h,radioBgColor:f,calc:g}=e,p=`${t}-inner`,v=4,x=g(o).sub(g(v).mul(2)),C=g(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ce(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${w(u)} ${y} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Ce(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${p}`]:{borderColor:r},[`${t}-input:focus-visible + ${p}`]:Object.assign({},st(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:C,height:C,marginBlockStart:g(1).mul(o).div(-2).equal(),marginInlineStart:g(1).mul(o).div(-2).equal(),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:d,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[p]:{borderColor:r,backgroundColor:f,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[p]:{backgroundColor:m,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:S,cursor:"not-allowed"},[`&${t}-checked`]:{[p]:{"&::after":{transform:`scale(${g(x).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:$,paddingInlineEnd:$}})}},Ks=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:d,fontSize:u,buttonBg:m,fontSizeLG:S,controlHeightLG:$,controlHeightSM:b,paddingXS:y,borderRadius:h,borderRadiusSM:f,borderRadiusLG:g,buttonCheckedBg:p,buttonSolidCheckedColor:v,colorTextDisabled:x,colorBgContainerDisabled:C,buttonCheckedBgDisabled:O,buttonCheckedColorDisabled:P,colorPrimary:I,colorPrimaryHover:T,colorPrimaryActive:j,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:z,buttonSolidCheckedActiveBg:E,calc:M}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:u,lineHeight:w(M(n).sub(M(o).mul(2)).equal()),background:m,border:`${w(o)} ${i} ${a}`,borderBlockStartWidth:M(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].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:M(o).mul(-1).equal(),insetInlineStart:M(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${w(o)} ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:$,fontSize:S,lineHeight:w(M($).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-small &`]:{height:b,paddingInline:M(y).sub(o).equal(),paddingBlock:0,lineHeight:w(M(b).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},st(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:I,background:p,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:j,borderColor:j,"&::before":{backgroundColor:j}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:v,background:N,borderColor:N,"&:hover":{color:v,background:z,borderColor:z},"&:active":{color:v,background:E,borderColor:E}},"&-disabled":{color:x,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:C,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:O,borderColor:a,boxShadow:"none"}}}},Gs=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:d,colorTextLightSolid:u,colorPrimary:m,colorPrimaryHover:S,colorPrimaryActive:$,colorWhite:b}=e,y=4,h=i,f=t?h-y*2:h-(y+o)*2;return{radioSize:h,dotSize:f,dotColorDisabled:s,buttonSolidCheckedColor:u,buttonSolidCheckedBg:m,buttonSolidCheckedHoverBg:S,buttonSolidCheckedActiveBg:$,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?m:b,radioBgColor:t?l:m}},ci=We("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${w(n)} ${t}`,i=be(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Ys(i),Vs(i),Ks(i)]},Gs,{unitless:{radioSize:!0,dotSize:!0}});var Zs=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qs=(e,t)=>{var n,r;const o=c.useContext(li),i=c.useContext(si),{getPrefixCls:a,direction:l,radio:s}=c.useContext(de),d=c.useRef(null),u=br(t,d),{isFormItemInput:m}=c.useContext(Dt),S=z=>{var E,M;(E=e.onChange)===null||E===void 0||E.call(e,z),(M=o==null?void 0:o.onChange)===null||M===void 0||M.call(o,z)},{prefixCls:$,className:b,rootClassName:y,children:h,style:f}=e,g=Zs(e,["prefixCls","className","rootClassName","children","style"]),p=a("radio",$),v=((o==null?void 0:o.optionType)||i)==="button",x=v?`${p}-button`:p,C=nt(p),[O,P,I]=ci(p,C),T=Object.assign({},g),j=c.useContext(fr);o&&(T.name=o.name,T.onChange=S,T.checked=e.value===o.value,T.disabled=(n=T.disabled)!==null&&n!==void 0?n:o.disabled),T.disabled=(r=T.disabled)!==null&&r!==void 0?r:j;const N=L(`${x}-wrapper`,{[`${x}-wrapper-checked`]:T.checked,[`${x}-wrapper-disabled`]:T.disabled,[`${x}-wrapper-rtl`]:l==="rtl",[`${x}-wrapper-in-form-item`]:m},s==null?void 0:s.className,b,y,P,I,C);return O(c.createElement(Mo,{component:"Radio",disabled:T.disabled},c.createElement("label",{className:N,style:Object.assign(Object.assign({},s==null?void 0:s.style),f),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},c.createElement(Fo,Object.assign({},T,{className:L(T.className,!v&&_o),type:"radio",prefixCls:x,ref:u})),h!==void 0?c.createElement("span",null,h):null)))},Js=c.forwardRef(Qs),Ut=Js,ec=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(de),[o,i]=$r(e.defaultValue,{value:e.value}),a=E=>{const M=o,H=E.target.value;"value"in e||i(H);const{onChange:q}=e;q&&H!==M&&q(E)},{prefixCls:l,className:s,rootClassName:d,options:u,buttonStyle:m="outline",disabled:S,children:$,size:b,style:y,id:h,onMouseEnter:f,onMouseLeave:g,onFocus:p,onBlur:v}=e,x=n("radio",l),C=`${x}-group`,O=nt(x),[P,I,T]=ci(x,O);let j=$;u&&u.length>0&&(j=u.map(E=>typeof E=="string"||typeof E=="number"?c.createElement(Ut,{key:E.toString(),prefixCls:x,disabled:S,value:E,checked:o===E},E):c.createElement(Ut,{key:`radio-group-value-options-${E.value}`,prefixCls:x,disabled:E.disabled||S,value:E.value,checked:o===E.value,title:E.title,style:E.style,id:E.id,required:E.required},E.label)));const N=xt(b),z=L(C,`${C}-${m}`,{[`${C}-${N}`]:N,[`${C}-rtl`]:r==="rtl"},s,d,I,T,O);return P(c.createElement("div",Object.assign({},la(e,{aria:!0,data:!0}),{className:z,style:y,onMouseEnter:f,onMouseLeave:g,onFocus:p,onBlur:v,id:h,ref:t}),c.createElement(Us,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},j)))}),tc=c.memo(ec);var nc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rc=(e,t)=>{const{getPrefixCls:n}=c.useContext(de),{prefixCls:r}=e,o=nc(e,["prefixCls"]),i=n("radio",r);return c.createElement(Xs,{value:"button"},c.createElement(Ut,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},oc=c.forwardRef(rc),Jt=Ut;Jt.Button=oc;Jt.Group=tc;Jt.__ANT_RADIO=!0;const di=Jt,ic=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ce(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ce(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({},Ce(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`]:Object.assign({},st(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${w(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:`${w(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}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&: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}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&: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:'""'}}}}},{[`${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 ui(e,t){const n=be(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[ic(n)]}const mi=We("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[ui(n,e)]}),ac=Me.createContext(null),fi=ac;var lc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sc=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:d,onMouseLeave:u,skipGroup:m=!1,disabled:S}=e,$=lc(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:y,checkbox:h}=c.useContext(de),f=c.useContext(fi),{isFormItemInput:g}=c.useContext(Dt),p=c.useContext(fr),v=(n=(f==null?void 0:f.disabled)||S)!==null&&n!==void 0?n:p,x=c.useRef($.value);c.useEffect(()=>{f==null||f.registerValue($.value)},[]),c.useEffect(()=>{if(!m)return $.value!==x.current&&(f==null||f.cancelValue(x.current),f==null||f.registerValue($.value),x.current=$.value),()=>f==null?void 0:f.cancelValue($.value)},[$.value]);const C=b("checkbox",r),O=nt(C),[P,I,T]=mi(C,O),j=Object.assign({},$);f&&!m&&(j.onChange=function(){$.onChange&&$.onChange.apply($,arguments),f.toggleOption&&f.toggleOption({label:a,value:$.value})},j.name=f.name,j.checked=f.value.includes($.value));const N=L(`${C}-wrapper`,{[`${C}-rtl`]:y==="rtl",[`${C}-wrapper-checked`]:j.checked,[`${C}-wrapper-disabled`]:v,[`${C}-wrapper-in-form-item`]:g},h==null?void 0:h.className,o,i,T,O,I),z=L({[`${C}-indeterminate`]:l},_o,I),E=l?"mixed":void 0;return P(c.createElement(Mo,{component:"Checkbox",disabled:v},c.createElement("label",{className:N,style:Object.assign(Object.assign({},h==null?void 0:h.style),s),onMouseEnter:d,onMouseLeave:u},c.createElement(Fo,Object.assign({"aria-checked":E},j,{prefixCls:C,className:z,disabled:v,ref:t})),a!==void 0&&c.createElement("span",null,a))))},cc=c.forwardRef(sc),pi=cc;var dc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uc=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:d}=e,u=dc(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:m,direction:S}=c.useContext(de),[$,b]=c.useState(u.value||n||[]),[y,h]=c.useState([]);c.useEffect(()=>{"value"in u&&b(u.value||[])},[u.value]);const f=c.useMemo(()=>o.map(M=>typeof M=="string"||typeof M=="number"?{label:M,value:M}:M),[o]),g=M=>{h(H=>H.filter(q=>q!==M))},p=M=>{h(H=>[].concat(ge(H),[M]))},v=M=>{const H=$.indexOf(M.value),q=ge($);H===-1?q.push(M.value):q.splice(H,1),"value"in u||b(q),d==null||d(q.filter(X=>y.includes(X)).sort((X,V)=>{const _=f.findIndex(K=>K.value===X),R=f.findIndex(K=>K.value===V);return _-R}))},x=m("checkbox",i),C=`${x}-group`,O=nt(x),[P,I,T]=mi(x,O),j=Ae(u,["value","disabled"]),N=o.length?f.map(M=>c.createElement(pi,{prefixCls:x,key:M.value.toString(),disabled:"disabled"in M?M.disabled:u.disabled,value:M.value,checked:$.includes(M.value),onChange:M.onChange,className:`${C}-item`,style:M.style,title:M.title,id:M.id,required:M.required},M.label)):r,z={toggleOption:v,value:$,disabled:u.disabled,name:u.name,registerValue:p,cancelValue:g},E=L(C,{[`${C}-rtl`]:S==="rtl"},a,l,T,O,I);return P(c.createElement("div",Object.assign({className:E,style:s},j,{ref:t}),c.createElement(fi.Provider,{value:z},N)))},mc=c.forwardRef(uc),fc=c.memo(mc),Tr=pi;Tr.Group=fc;Tr.__ANT_CHECKBOX=!0;const Xt=Tr,pc=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(de),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=L({[`${a}-no-arrow`]:!i},o);return c.createElement(Lo.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))}),gc=pc,hc=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:d,lineType:u,colorBorder:m,colorText:S,colorTextHeading:$,colorTextDisabled:b,fontSizeLG:y,lineHeight:h,lineHeightLG:f,marginSM:g,paddingSM:p,paddingLG:v,paddingXS:x,motionDurationSlow:C,fontSizeIcon:O,contentPadding:P,fontHeight:I,fontHeightLG:T}=e,j=`${w(d)} ${u} ${m}`;return{[t]:Object.assign(Object.assign({},Ce(e)),{backgroundColor:o,border:j,borderBottom:0,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:j,"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${w(s)} ${w(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:$,lineHeight:h,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:I,display:"flex",alignItems:"center",paddingInlineEnd:g},[`${t}-arrow`]:Object.assign(Object.assign({},Kt()),{fontSize:O,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:S,backgroundColor:n,borderTop:j,[`& > ${t}-content-box`]:{padding:P},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(p).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:p}}},"&-large":{[`> ${t}-item`]:{fontSize:y,lineHeight:f,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,marginInlineStart:e.calc(v).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${w(s)} ${w(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:b,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:g}}}}})}},bc=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},vc=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},$c=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Sc=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),yc=We("Collapse",e=>{const t=be(e,{collapseHeaderPaddingSM:`${w(e.paddingXS)} ${w(e.paddingSM)}`,collapseHeaderPaddingLG:`${w(e.padding)} ${w(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[hc(t),vc(t),$c(t),bc(t),wr(t)]},Sc),xc=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=c.useContext(de),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:d=!0,ghost:u,size:m,expandIconPosition:S="start",children:$,expandIcon:b}=e,y=xt(T=>{var j;return(j=m??T)!==null&&j!==void 0?j:"middle"}),h=n("collapse",i),f=n(),[g,p,v]=yc(h),x=c.useMemo(()=>S==="left"?"start":S==="right"?"end":S,[S]),C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const j=b?b(T):c.createElement(At,{rotate:T.isActive?90:void 0});return _e(j,()=>({className:L(j.props.className,`${h}-arrow`)}))},O=L(`${h}-icon-position-${x}`,{[`${h}-borderless`]:!d,[`${h}-rtl`]:r==="rtl",[`${h}-ghost`]:!!u,[`${h}-${y}`]:y!=="middle"},o==null?void 0:o.className,a,l,p,v),P=Object.assign(Object.assign({},hr(f)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),I=c.useMemo(()=>$?gr($).map((T,j)=>{var N,z;if(!((N=T.props)===null||N===void 0)&&N.disabled){const E=(z=T.key)!==null&&z!==void 0?z:String(j),{disabled:M,collapsible:H}=T.props,q=Object.assign(Object.assign({},Ae(T.props,["disabled"])),{key:E,collapsible:H??(M?"disabled":void 0)});return _e(T,q)}return T}):null,[$]);return g(c.createElement(Lo,Object.assign({ref:t,openMotion:P},Ae(e,["rootClassName"]),{expandIcon:C,prefixCls:h,className:O,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),I))}),Cc=Object.assign(xc,{Panel:gc}),wc=e=>{const{getPrefixCls:t,direction:n}=c.useContext(de),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=Ga(a),d=L(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),u=c.useContext(Dt),m=c.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return l(c.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(Dt.Provider,{value:m},e.children)))},Oc=wc;var Ic={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"};const Ec=Ic;var Tc=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Ec}))};const Pc=c.forwardRef(Tc);var Dc={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"};const Mc=Dc;var _c=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Mc}))};const jc=c.forwardRef(_c);var Nc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Bc=e=>e?c.createElement(jc,null):c.createElement(Pc,null),zc={click:"onClick",hover:"onMouseOver"},Hc=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=c.useState(()=>r?n.visible:!1),a=c.useRef(null);c.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=Za(a),s=()=>{const{disabled:x}=e;x||(o&&l(),i(C=>{var O;const P=!C;return typeof n=="object"&&((O=n.onVisibleChange)===null||O===void 0||O.call(n,P)),P}))},d=x=>{const{action:C="click",iconRender:O=Bc}=e,P=zc[C]||"",I=O(o),T={[P]:s,className:`${x}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return c.cloneElement(c.isValidElement(I)?I:c.createElement("span",null,I),T)},{className:u,prefixCls:m,inputPrefixCls:S,size:$}=e,b=Nc(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=c.useContext(de),h=y("input",S),f=y("input-password",m),g=n&&d(f),p=L(f,u,{[`${f}-${$}`]:!!$}),v=Object.assign(Object.assign({},Ae(b,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:p,prefixCls:h,suffix:g});return $&&(v.size=$),c.createElement(vr,Object.assign({ref:br(t,a)},v))}),Rc=Hc;var Fc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Lc=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:d,disabled:u,onSearch:m,onChange:S,onCompositionStart:$,onCompositionEnd:b}=e,y=Fc(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:f}=c.useContext(de),g=c.useRef(!1),p=h("input-search",n),v=h("input",r),{compactSize:x}=mr(p,f),C=xt(_=>{var R;return(R=i??x)!==null&&R!==void 0?R:_}),O=c.useRef(null),P=_=>{_&&_.target&&_.type==="click"&&m&&m(_.target.value,_,{source:"clear"}),S&&S(_)},I=_=>{var R;document.activeElement===((R=O.current)===null||R===void 0?void 0:R.input)&&_.preventDefault()},T=_=>{var R,K;m&&m((K=(R=O.current)===null||R===void 0?void 0:R.input)===null||K===void 0?void 0:K.value,_,{source:"input"})},j=_=>{g.current||d||T(_)},N=typeof l=="boolean"?c.createElement(Ir,null):null,z=`${p}-button`;let E;const M=l||{},H=M.type&&M.type.__ANT_BUTTON===!0;H||M.type==="button"?E=_e(M,Object.assign({onMouseDown:I,onClick:_=>{var R,K;(K=(R=M==null?void 0:M.props)===null||R===void 0?void 0:R.onClick)===null||K===void 0||K.call(R,_),T(_)},key:"enterButton"},H?{className:z,size:C}:{})):E=c.createElement(St,{className:z,type:l?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:I,onClick:T,loading:d,icon:N},l),s&&(E=[E,_e(s,{key:"addonAfter"})]);const q=L(p,{[`${p}-rtl`]:f==="rtl",[`${p}-${C}`]:!!C,[`${p}-with-button`]:!!l},o),X=_=>{g.current=!0,$==null||$(_)},V=_=>{g.current=!1,b==null||b(_)};return c.createElement(vr,Object.assign({ref:br(O,t),onPressEnter:j},y,{size:C,onCompositionStart:X,onCompositionEnd:V,prefixCls:v,addonAfter:E,suffix:a,onChange:P,className:q,disabled:u}))}),Ac=Lc,jt=vr;jt.Group=Oc;jt.Search=Ac;jt.TextArea=Qa;jt.Password=Rc;const Wc=jt,gi=Me.createContext({latestIndex:0}),qc=gi.Provider,kc=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=c.useContext(gi);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:i},r),n<a&&o&&c.createElement("span",{className:`${t}-split`},o))},Uc=kc;var Xc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yc=c.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=c.useContext(de),{size:l=(i==null?void 0:i.size)||"small",align:s,className:d,rootClassName:u,children:m,direction:S="horizontal",prefixCls:$,split:b,style:y,wrap:h=!1,classNames:f,styles:g}=e,p=Xc(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[v,x]=Array.isArray(l)?l:[l,l],C=Ar(x),O=Ar(v),P=Wr(x),I=Wr(v),T=gr(m,{keepEmpty:!0}),j=s===void 0&&S==="horizontal"?"center":s,N=o("space",$),[z,E,M]=ca(N),H=L(N,i==null?void 0:i.className,E,`${N}-${S}`,{[`${N}-rtl`]:a==="rtl",[`${N}-align-${j}`]:j,[`${N}-gap-row-${x}`]:C,[`${N}-gap-col-${v}`]:O},d,u,M),q=L(`${N}-item`,(n=f==null?void 0:f.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let X=0;const V=T.map((K,ne)=>{var re,Q;K!=null&&(X=ne);const ae=K&&K.key||`${q}-${ne}`;return c.createElement(Uc,{className:q,key:ae,index:ne,split:b,style:(re=g==null?void 0:g.item)!==null&&re!==void 0?re:(Q=i==null?void 0:i.styles)===null||Q===void 0?void 0:Q.item},K)}),_=c.useMemo(()=>({latestIndex:X}),[X]);if(T.length===0)return null;const R={};return h&&(R.flexWrap="wrap"),!O&&I&&(R.columnGap=v),!C&&P&&(R.rowGap=x),z(c.createElement("div",Object.assign({ref:t,className:H,style:Object.assign(Object.assign(Object.assign({},R),i==null?void 0:i.style),y)},p),c.createElement(qc,{value:_},V)))}),hi=Yc;hi.Compact=sa;const Vc=hi;var Kc=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bi=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(de),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:d,htmlType:u,children:m,className:S,menu:$,arrow:b,autoFocus:y,overlay:h,trigger:f,align:g,open:p,onOpenChange:v,placement:x,getPopupContainer:C,href:O,icon:P=c.createElement(ri,null),title:I,buttonsRender:T=G=>G,mouseEnterDelay:j,mouseLeaveDelay:N,overlayClassName:z,overlayStyle:E,destroyPopupOnHide:M,dropdownRender:H}=e,q=Kc(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","destroyPopupOnHide","dropdownRender"]),X=n("dropdown",o),V=`${X}-button`,_={menu:$,arrow:b,autoFocus:y,align:g,disabled:l,trigger:l?[]:f,onOpenChange:v,getPopupContainer:C||t,mouseEnterDelay:j,mouseLeaveDelay:N,overlayClassName:z,overlayStyle:E,destroyPopupOnHide:M,dropdownRender:H},{compactSize:R,compactItemClassnames:K}=mr(X,r),ne=L(V,K,S);"overlay"in e&&(_.overlay=h),"open"in e&&(_.open=p),"placement"in e?_.placement=x:_.placement=r==="rtl"?"bottomLeft":"bottomRight";const re=c.createElement(St,{type:i,danger:a,disabled:l,loading:s,onClick:d,htmlType:u,href:O,title:I},m),Q=c.createElement(St,{type:i,danger:a,icon:P}),[ae,te]=T([re,Q]);return c.createElement(Vc.Compact,Object.assign({className:ne,size:R,block:!0},q),ae,c.createElement(ai,Object.assign({},_),te))};bi.__ANT_BUTTON=!0;const Gc=bi,vi=ai;vi.Button=Gc;const $i=vi,Zc=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(e[r]=o)})}return e},Qc=Zc;var Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const ed=Jc;var td=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:ed}))};const Vr=c.forwardRef(td);var nd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const rd=nd;var od=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:rd}))};const Kr=c.forwardRef(od),Si=e=>c.createElement(Qt,Object.assign({},e,{showSearch:!0,size:"small"})),yi=e=>c.createElement(Qt,Object.assign({},e,{showSearch:!0,size:"middle"}));Si.Option=Qt.Option;yi.Option=Qt.Option;const id=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ad=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:w(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:w(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:w(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:w(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:w(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:w(e.itemSizeSM),input:Object.assign(Object.assign({},tl(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ld=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:w(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:w(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${w(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${w(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${w(e.inputOutlineOffset)} 0 ${w(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},sd=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${w(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${w(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:w(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign({},nl(e)),{width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},cd=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:w(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${w(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${w(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},dd=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:w(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),cd(e)),sd(e)),ld(e)),ad(e)),id(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ud=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},$n(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},st(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},st(e))}}}},xi=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ja(e)),Ci=e=>be(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},el(e)),md=We("Pagination",e=>{const t=Ci(e);return[dd(t),ud(t)]},xi),fd=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${w(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pd=da(["Pagination","bordered"],e=>{const t=Ci(e);return[fd(t)]},xi);var gd=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hd=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:s,responsive:d,showSizeChanger:u}=e,m=gd(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:S}=Jo(d),[,$]=tt(),{getPrefixCls:b,direction:y,pagination:h={}}=c.useContext(de),f=b("pagination",t),[g,p,v]=md(f),x=u??h.showSizeChanger,C=c.useMemo(()=>{const E=c.createElement("span",{className:`${f}-item-ellipsis`},"•••"),M=c.createElement("button",{className:`${f}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(At,null):c.createElement(Hr,null)),H=c.createElement("button",{className:`${f}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(Hr,null):c.createElement(At,null)),q=c.createElement("a",{className:`${f}-item-link`},c.createElement("div",{className:`${f}-item-container`},y==="rtl"?c.createElement(Kr,{className:`${f}-item-link-icon`}):c.createElement(Vr,{className:`${f}-item-link-icon`}),E)),X=c.createElement("a",{className:`${f}-item-link`},c.createElement("div",{className:`${f}-item-container`},y==="rtl"?c.createElement(Vr,{className:`${f}-item-link-icon`}):c.createElement(Kr,{className:`${f}-item-link-icon`}),E));return{prevIcon:M,nextIcon:H,jumpPrevIcon:q,jumpNextIcon:X}},[y,f]),[O]=Oo("Pagination",ua),P=Object.assign(Object.assign({},O),l),I=xt(a),T=I==="small"||!!(S&&!I&&d),j=b("select",n),N=L({[`${f}-mini`]:T,[`${f}-rtl`]:y==="rtl",[`${f}-bordered`]:$.wireframe},h==null?void 0:h.className,r,o,p,v),z=Object.assign(Object.assign({},h==null?void 0:h.style),i);return g(c.createElement(c.Fragment,null,$.wireframe&&c.createElement(pd,{prefixCls:f}),c.createElement(Ea,Object.assign({},C,m,{style:z,prefixCls:f,selectPrefixCls:j,className:N,selectComponentClass:s||(T?Si:yi),locale:P,showSizeChanger:x}))))},bd=hd,vd=new ve("antSpinMove",{to:{opacity:1}}),$d=new ve("antRotate",{to:{transform:"rotate(405deg)"}}),Sd=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Ce(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:vd,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:$d,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},yd=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},xd=We("Spin",e=>{const t=be(e,{spinDotDefault:e.colorTextDescription});return[Sd(t)]},yd);var Cd=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ft=null;function wd(e,t){const{indicator:n}=t,r=`${e}-dot`;return n===null?null:Ve(n)?_e(n,{className:L(n.props.className,r)}):Ve(Ft)?_e(Ft,{className:L(Ft.props.className,r)}):c.createElement("span",{className:L(r,`${e}-dot-spin`)},c.createElement("i",{className:`${e}-dot-item`,key:1}),c.createElement("i",{className:`${e}-dot-item`,key:2}),c.createElement("i",{className:`${e}-dot-item`,key:3}),c.createElement("i",{className:`${e}-dot-item`,key:4}))}function Od(e,t){return!!e&&!!t&&!isNaN(Number(t))}const wi=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:d,children:u,fullscreen:m}=e,S=Cd(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:$}=c.useContext(de),b=$("spin",t),[y,h,f]=xd(b),[g,p]=c.useState(()=>n&&!Od(n,r));c.useEffect(()=>{if(n){const N=Ta(r,()=>{p(!0)});return N(),()=>{var z;(z=N==null?void 0:N.cancel)===null||z===void 0||z.call(N)}}p(!1)},[r,n]);const v=c.useMemo(()=>typeof u<"u"&&!m,[u,m]),{direction:x,spin:C}=c.useContext(de),O=L(b,C==null?void 0:C.className,{[`${b}-sm`]:a==="small",[`${b}-lg`]:a==="large",[`${b}-spinning`]:g,[`${b}-show-text`]:!!l,[`${b}-fullscreen`]:m,[`${b}-fullscreen-show`]:m&&g,[`${b}-rtl`]:x==="rtl"},o,i,h,f),P=L(`${b}-container`,{[`${b}-blur`]:g}),I=Ae(S,["indicator"]),T=Object.assign(Object.assign({},C==null?void 0:C.style),d),j=c.createElement("div",Object.assign({},I,{style:T,className:O,"aria-live":"polite","aria-busy":g}),wd(b,e),l&&(v||m)?c.createElement("div",{className:`${b}-text`},l):null);return y(v?c.createElement("div",Object.assign({},I,{className:L(`${b}-nested-loading`,s,h,f)}),g&&c.createElement("div",{key:"loading"},j),c.createElement("div",{className:P,key:"container"},u)):j)};wi.setDefaultIndicator=e=>{Ft=e};const Id=wi;function Ed(e){return null}function Td(e){return null}function Pd(e){const[t,n]=c.useState(null);return[c.useCallback((i,a,l)=>{const s=t??i,d=Math.min(s||0,i),u=Math.max(s||0,i),m=a.slice(d,u+1).map(b=>e(b)),S=m.some(b=>!l.has(b)),$=[];return m.forEach(b=>{S?(l.has(b)||$.push(b),l.add(b)):(l.delete(b),$.push(b))}),n(S?u:null),$},[t]),i=>{n(i)}]}const Je={},Cn="SELECT_ALL",wn="SELECT_INVERT",On="SELECT_NONE",Gr=[],Oi=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ge(n),ge(Oi(e,r[e]))))}),n},Dd=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:d,onSelectNone:u,onSelectMultiple:m,columnWidth:S,type:$,selections:b,fixed:y,renderCell:h,hideSelectAll:f,checkStrictly:g=!0}=t||{},{prefixCls:p,data:v,pageData:x,getRecordByKey:C,getRowKey:O,expandType:P,childrenColumnName:I,locale:T,getPopupContainer:j}=e,N=Gt(),[z,E]=Pd(U=>U),[M,H]=$r(r||o||Gr,{value:r}),q=c.useRef(new Map),X=c.useCallback(U=>{if(n){const F=new Map;U.forEach(W=>{let A=C(W);!A&&q.current.has(W)&&(A=q.current.get(W)),F.set(W,A)}),q.current=F}},[C,n]);c.useEffect(()=>{X(M)},[M]);const{keyEntities:V}=c.useMemo(()=>{if(g)return{keyEntities:null};let U=v;if(n){const F=new Set(v.map((A,Y)=>O(A,Y))),W=Array.from(q.current).reduce((A,Y)=>{let[B,k]=Y;return F.has(B)?A:A.concat(k)},[]);U=[].concat(ge(U),ge(W))}return Ao(U,{externalGetKey:O,childrenPropName:I})},[v,O,g,I,n]),_=c.useMemo(()=>Oi(I,x),[I,x]),R=c.useMemo(()=>{const U=new Map;return _.forEach((F,W)=>{const A=O(F,W),Y=(i?i(F):null)||{};U.set(A,Y)}),U},[_,O,i]),K=c.useCallback(U=>{var F;return!!(!((F=R.get(O(U)))===null||F===void 0)&&F.disabled)},[R,O]),[ne,re]=c.useMemo(()=>{if(g)return[M||[],[]];const{checkedKeys:U,halfCheckedKeys:F}=nn(M,!0,V,K);return[U||[],F]},[M,g,V,K]),Q=c.useMemo(()=>{const U=$==="radio"?ne.slice(0,1):ne;return new Set(U)},[ne,$]),ae=c.useMemo(()=>$==="radio"?new Set:new Set(re),[re,$]);c.useEffect(()=>{t||H(Gr)},[!!t]);const te=c.useCallback((U,F)=>{let W,A;X(U),n?(W=U,A=U.map(Y=>q.current.get(Y))):(W=[],A=[],U.forEach(Y=>{const B=C(Y);B!==void 0&&(W.push(Y),A.push(B))})),H(W),a==null||a(W,A,{type:F})},[H,C,a,n]),G=c.useCallback((U,F,W,A)=>{if(l){const Y=W.map(B=>C(B));l(C(U),F,Y,A)}te(W,"single")},[l,C,te]),we=c.useMemo(()=>!b||f?null:(b===!0?[Cn,wn,On]:b).map(F=>F===Cn?{key:"all",text:T.selectionAll,onSelect(){te(v.map((W,A)=>O(W,A)).filter(W=>{const A=R.get(W);return!(A!=null&&A.disabled)||Q.has(W)}),"all")}}:F===wn?{key:"invert",text:T.selectInvert,onSelect(){const W=new Set(Q);x.forEach((Y,B)=>{const k=O(Y,B),J=R.get(k);J!=null&&J.disabled||(W.has(k)?W.delete(k):W.add(k))});const A=Array.from(W);d&&(N.deprecated(!1,"onSelectInvert","onChange"),d(A)),te(A,"invert")}}:F===On?{key:"none",text:T.selectNone,onSelect(){u==null||u(),te(Array.from(Q).filter(W=>{const A=R.get(W);return A==null?void 0:A.disabled}),"none")}}:F).map(F=>Object.assign(Object.assign({},F),{onSelect:function(){for(var W,A,Y=arguments.length,B=new Array(Y),k=0;k<Y;k++)B[k]=arguments[k];(A=F.onSelect)===null||A===void 0||(W=A).call.apply(W,[F].concat(B)),E(null)}})),[b,Q,x,O,d,te]);return[c.useCallback(U=>{var F;if(!t)return U.filter(ee=>ee!==Je);let W=ge(U);const A=new Set(Q),Y=_.map(O).filter(ee=>!R.get(ee).disabled),B=Y.every(ee=>A.has(ee)),k=Y.some(ee=>A.has(ee)),J=()=>{const ee=[];B?Y.forEach(ie=>{A.delete(ie),ee.push(ie)}):Y.forEach(ie=>{A.has(ie)||(A.add(ie),ee.push(ie))});const oe=Array.from(A);s==null||s(!B,oe.map(ie=>C(ie)),ee.map(ie=>C(ie))),te(oe,"all"),E(null)};let Ie,qe;if($!=="radio"){let ee;if(we){const le={getPopupContainer:j,items:we.map((me,Be)=>{const{key:ze,text:it,onSelect:ce}=me;return{key:ze??Be,onClick:()=>{ce==null||ce(Y)},label:it}})};ee=c.createElement("div",{className:`${p}-selection-extra`},c.createElement($i,{menu:le,getPopupContainer:j},c.createElement("span",null,c.createElement(Go,null))))}const oe=_.map((le,me)=>{const Be=O(le,me),ze=R.get(Be)||{};return Object.assign({checked:A.has(Be)},ze)}).filter(le=>{let{disabled:me}=le;return me}),ie=!!oe.length&&oe.length===_.length,$e=ie&&oe.every(le=>{let{checked:me}=le;return me}),he=ie&&oe.some(le=>{let{checked:me}=le;return me});qe=c.createElement(Xt,{checked:ie?$e:!!_.length&&B,indeterminate:ie?!$e&&he:!B&&k,onChange:J,disabled:_.length===0||ie,"aria-label":ee?"Custom selection":"Select all",skipGroup:!0}),Ie=!f&&c.createElement("div",{className:`${p}-selection`},qe,ee)}let je;$==="radio"?je=(ee,oe,ie)=>{const $e=O(oe,ie),he=A.has($e);return{node:c.createElement(di,Object.assign({},R.get($e),{checked:he,onClick:le=>le.stopPropagation(),onChange:le=>{A.has($e)||G($e,!0,[$e],le.nativeEvent)}})),checked:he}}:je=(ee,oe,ie)=>{var $e;const he=O(oe,ie),le=A.has(he),me=ae.has(he),Be=R.get(he);let ze;return P==="nest"?ze=me:ze=($e=Be==null?void 0:Be.indeterminate)!==null&&$e!==void 0?$e:me,{node:c.createElement(Xt,Object.assign({},Be,{indeterminate:ze,checked:le,skipGroup:!0,onClick:it=>it.stopPropagation(),onChange:it=>{let{nativeEvent:ce}=it;const{shiftKey:tn}=ce,wt=Y.findIndex(He=>He===he),zt=ne.some(He=>Y.includes(He));if(tn&&g&&zt){const He=z(wt,Y,A),Ze=Array.from(A);m==null||m(!le,Ze.map(Qe=>C(Qe)),He.map(Qe=>C(Qe))),te(Ze,"multiple")}else{const He=ne;if(g){const Ze=le?Pa(He,he):Da(He,he);G(he,!le,Ze,ce)}else{const Ze=nn([].concat(ge(He),[he]),!0,V,K),{checkedKeys:Qe,halfCheckedKeys:Ht}=Ze;let at=Qe;if(le){const pt=new Set(Qe);pt.delete(he),at=nn(Array.from(pt),{checked:!1,halfCheckedKeys:Ht},V,K).checkedKeys}G(he,!le,at,ce)}}E(le?null:wt)}})),checked:le}};const Ge=(ee,oe,ie)=>{const{node:$e,checked:he}=je(ee,oe,ie);return h?h(he,oe,ie,$e):$e};if(!W.includes(Je))if(W.findIndex(ee=>{var oe;return((oe=ee[rn])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"})===0){const[ee,...oe]=W;W=[ee,Je].concat(ge(oe))}else W=[Je].concat(ge(W));const rt=W.indexOf(Je);W=W.filter((ee,oe)=>ee!==Je||oe===rt);const pe=W[rt-1],Ne=W[rt+1];let ke=y;ke===void 0&&((Ne==null?void 0:Ne.fixed)!==void 0?ke=Ne.fixed:(pe==null?void 0:pe.fixed)!==void 0&&(ke=pe.fixed)),ke&&pe&&((F=pe[rn])===null||F===void 0?void 0:F.columnType)==="EXPAND_COLUMN"&&pe.fixed===void 0&&(pe.fixed=ke);const mt=L(`${p}-selection-col`,{[`${p}-selection-col-with-dropdown`]:b&&$==="checkbox"}),ot=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(qe):t.columnTitle:Ie,ft={fixed:ke,width:S,className:`${p}-selection-column`,title:ot(),render:Ge,onCell:t.onCell,[rn]:{className:mt}};return W.map(ee=>ee===Je?ft:ee)},[O,_,t,ne,Q,ae,S,we,P,R,m,G,K]),Q]};function Md(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function _d(e,t){return c.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):Md(r,n)})}function jd(e){return function(n){let{prefixCls:r,onExpand:o,record:i,expanded:a,expandable:l}=n;const s=`${r}-row-expand-icon`;return c.createElement("button",{type:"button",onClick:d=>{o(i,d),d.stopPropagation()},className:L(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Nd(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),l=parseInt(a.borderLeftWidth,10),s=parseInt(a.borderRightWidth,10);i=r-l-s}return i}}function ct(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Nt(e,t){return t?`${t}-${e}`:`${e}`}function en(e,t){return typeof e=="function"?e(t):e}function Bd(e,t){const n=en(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var zd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const Hd=zd;var Rd=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Hd}))};const Fd=c.forwardRef(Rd);function Ld(e){const t=c.useRef(e),n=Qo();return[()=>t.current,r=>{t.current=r,n()}]}var Ad={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"};const Wd=Ad;var qd=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Wd}))};const Ii=c.forwardRef(qd);var kd={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"};const Ud=kd;var Xd=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Ud}))};const Yd=c.forwardRef(Xd);var Vd={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"};const Kd=Vd;var Gd=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Kd}))};const Zd=c.forwardRef(Gd);var Qd={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"};const Jd=Qd;var eu=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Jd}))};const tu=c.forwardRef(eu),nu=new ve("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ru=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ou=(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:`${w(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),iu=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},Ce(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},st(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`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:nu,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${w(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${w(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${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`]:Object.assign(Object.assign({},ru(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${w(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_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(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${w(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${w(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${w(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${w(i)}`,userSelect:"none"},ou(e,t)),[`${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(i).div(2).equal(),bottom:t.calc(o).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:`${w(t.calc(i).div(2).equal())} !important`}}}}})}},au=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},lu=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=be(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[iu(e,i),au(i)]},su=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},cu=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},su(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},du=We("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:ui(`${n}-checkbox`,e)},lu(n,e),wr(e)]},cu),Zr=4;function uu(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-n*o+Zr,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+Zr;break}return Me.createElement("div",{style:s,className:`${r}-drop-indicator`})}var mu={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"};const fu=mu;var pu=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:fu}))};const gu=c.forwardRef(pu);var hu={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"};const bu=hu;var vu=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:bu}))};const $u=c.forwardRef(vu);var Su={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"};const yu=Su;var xu=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:yu}))};const Cu=c.forwardRef(xu),wu=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return c.createElement(Eo,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),i){if(!o)return null;if(typeof s!="boolean"&&s){const m=typeof s=="function"?s(r):s,S=`${t}-switcher-line-custom-icon`;return Ve(m)?_e(m,{className:L(m.props.className||"",S)}):m}return s?c.createElement(Ii,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,u=typeof n=="function"?n(r):n;return Ve(u)?_e(u,{className:L(u.props.className||"",d)}):u!==void 0?u:o?a?c.createElement($u,{className:`${t}-switcher-line-icon`}):c.createElement(Cu,{className:`${t}-switcher-line-icon`}):c.createElement(gu,{className:d})},Ou=wu,Iu=Me.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=Me.useContext(de),{prefixCls:l,className:s,showIcon:d=!1,showLine:u,switcherIcon:m,blockNode:S=!1,children:$,checkable:b=!1,selectable:y=!0,draggable:h,motion:f,style:g}=e,p=r("tree",l),v=r(),x=f??Object.assign(Object.assign({},hr(v)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:b,selectable:y,showIcon:d,motion:x,blockNode:S,showLine:!!u,dropIndicatorRender:uu}),[O,P,I]=du(p),[,T]=tt(),j=T.paddingXS/2+(((n=T.Tree)===null||n===void 0?void 0:n.titleHeight)||T.controlHeightSM),N=Me.useMemo(()=>{if(!h)return!1;let E={};switch(typeof h){case"function":E.nodeDraggable=h;break;case"object":E=Object.assign({},h);break}return E.icon!==!1&&(E.icon=E.icon||Me.createElement(tu,null)),E},[h]),z=E=>Me.createElement(Ou,{prefixCls:p,switcherIcon:m,treeNodeProps:E,showLine:u});return O(Me.createElement(Ma,Object.assign({itemHeight:j,ref:t,virtual:i},C,{style:Object.assign(Object.assign({},a==null?void 0:a.style),g),prefixCls:p,className:L({[`${p}-icon-hide`]:!d,[`${p}-block-node`]:S,[`${p}-unselectable`]:!y,[`${p}-rtl`]:o==="rtl"},a==null?void 0:a.className,s,P,I),direction:o,checkable:b&&Me.createElement("span",{className:`${p}-checkbox-inner`}),selectable:y,switcherIcon:z,draggable:N}),$))}),Ei=Iu;var Ye;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(Ye||(Ye={}));function Pr(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],s=a[o];t(l,a)!==!1&&Pr(s||[],t,n)}e.forEach(i)}function Eu(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=Ye.None;if(r&&r===o)return[r];if(!r||!o)return[];function s(d){return d===r||d===o}return Pr(t,d=>{if(l===Ye.End)return!1;if(s(d)){if(a.push(d),l===Ye.None)l=Ye.Start;else if(l===Ye.Start)return l=Ye.End,!1}else l===Ye.Start&&a.push(d);return n.includes(d)},Wo(i)),a}function sn(e,t,n){const r=ge(t),o=[];return Pr(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},Wo(n)),o}var Qr=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Tu(e){const{isLeaf:t,expanded:n}=e;return t?c.createElement(Ii,null):n?c.createElement(Yd,null):c.createElement(Zd,null)}function Jr(e){let{treeData:t,children:n}=e;return t||ja(n)}const Pu=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Qr(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=c.useRef(),l=c.useRef(),s=()=>{const{keyEntities:P}=Ao(Jr(i));let I;return n?I=Object.keys(P):r?I=_a(i.expandedKeys||o||[],P):I=i.expandedKeys||o,I},[d,u]=c.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[m,S]=c.useState(()=>s());c.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),c.useEffect(()=>{"expandedKeys"in i&&S(i.expandedKeys)},[i.expandedKeys]);const $=(P,I)=>{var T;return"expandedKeys"in i||S(P),(T=i.onExpand)===null||T===void 0?void 0:T.call(i,P,I)},b=(P,I)=>{var T;const{multiple:j,fieldNames:N}=i,{node:z,nativeEvent:E}=I,{key:M=""}=z,H=Jr(i),q=Object.assign(Object.assign({},I),{selected:!0}),X=(E==null?void 0:E.ctrlKey)||(E==null?void 0:E.metaKey),V=E==null?void 0:E.shiftKey;let _;j&&X?(_=P,a.current=M,l.current=_,q.selectedNodes=sn(H,_,N)):j&&V?(_=Array.from(new Set([].concat(ge(l.current||[]),ge(Eu({treeData:H,expandedKeys:m,startKey:M,endKey:a.current,fieldNames:N}))))),q.selectedNodes=sn(H,_,N)):(_=[M],a.current=M,l.current=_,q.selectedNodes=sn(H,_,N)),(T=i.onSelect)===null||T===void 0||T.call(i,_,q),"selectedKeys"in i||u(_)},{getPrefixCls:y,direction:h}=c.useContext(de),{prefixCls:f,className:g,showIcon:p=!0,expandAction:v="click"}=i,x=Qr(i,["prefixCls","className","showIcon","expandAction"]),C=y("tree",f),O=L(`${C}-directory`,{[`${C}-directory-rtl`]:h==="rtl"},g);return c.createElement(Ei,Object.assign({icon:Tu,ref:t,blockNode:!0},x,{showIcon:p,expandAction:v,prefixCls:C,className:O,expandedKeys:m,selectedKeys:d,onSelect:b,onExpand:$}))},Du=c.forwardRef(Pu),Mu=Du,Dr=Ei;Dr.DirectoryTree=Mu;Dr.TreeNode=Na;const _u=Dr;function eo(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?c.createElement("div",{className:`${o}-filter-dropdown-search`},c.createElement(Wc,{prefix:c.createElement(Ir,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const ju=e=>{const{keyCode:t}=e;t===jo.ENTER&&e.stopPropagation()},Nu=c.forwardRef((e,t)=>c.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:ju,ref:t},e.children)),Bu=Nu;function $t(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ge(t),ge($t(o))))}),t}function zu(e){return e.some(t=>{let{children:n}=t;return n})}function Ti(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Pi(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,s)=>{const d=String(l.value);if(l.children)return{key:d||s,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:Pi({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const u=o?Xt:di,m={key:l.value!==void 0?d:s,label:c.createElement(c.Fragment,null,c.createElement(u,{checked:r.includes(d)}),c.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?m:null:Ti(i,l.text)?m:null:m})}function cn(e){return e||[]}function Hu(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:s,filterMode:d="menu",filterSearch:u=!1,filterState:m,triggerFilter:S,locale:$,children:b,getPopupContainer:y,rootClassName:h}=e,{filterDropdownOpen:f,onFilterDropdownOpenChange:g,filterResetToDefaultFilteredValue:p,defaultFilteredValue:v,filterDropdownVisible:x,onFilterDropdownVisibleChange:C}=i,[O,P]=c.useState(!1),I=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),T=B=>{P(B),g==null||g(B),C==null||C(B)},j=(n=f??x)!==null&&n!==void 0?n:O,N=m==null?void 0:m.filteredKeys,[z,E]=Ld(cn(N)),M=B=>{let{selectedKeys:k}=B;E(k)},H=(B,k)=>{let{node:J,checked:Ie}=k;M(s?{selectedKeys:B}:{selectedKeys:Ie&&J.key?[J.key]:[]})};c.useEffect(()=>{O&&M({selectedKeys:cn(N)})},[N]);const[q,X]=c.useState([]),V=B=>{X(B)},[_,R]=c.useState(""),K=B=>{const{value:k}=B.target;R(k)};c.useEffect(()=>{O||R("")},[O]);const ne=B=>{const k=B&&B.length?B:null;if(k===null&&(!m||!m.filteredKeys)||Rr(k,m==null?void 0:m.filteredKeys,!0))return null;S({column:i,key:l,filteredKeys:k})},re=()=>{T(!1),ne(z())},Q=function(){let{confirm:B,closeDropdown:k}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};B&&ne([]),k&&T(!1),R(""),E(p?(v||[]).map(J=>String(J)):[])},ae=function(){let{closeDropdown:B}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};B&&T(!1),ne(z())},te=(B,k)=>{k.source==="trigger"&&(B&&N!==void 0&&E(cn(N)),T(B),!B&&!i.filterDropdown&&re())},G=L({[`${a}-menu-without-submenu`]:!zu(i.filters||[])}),we=B=>{if(B.target.checked){const k=$t(i==null?void 0:i.filters).map(J=>String(J));E(k)}else E([])},De=B=>{let{filters:k}=B;return(k||[]).map((J,Ie)=>{const qe=String(J.value),je={title:J.text,key:J.value!==void 0?qe:String(Ie)};return J.children&&(je.children=De({filters:J.children})),je})},U=B=>{var k;return Object.assign(Object.assign({},B),{text:B.title,value:B.key,children:((k=B.children)===null||k===void 0?void 0:k.map(J=>U(J)))||[]})};let F;if(typeof i.filterDropdown=="function")F=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:B=>M({selectedKeys:B}),selectedKeys:z(),confirm:ae,clearFilters:Q,filters:i.filters,visible:j,close:()=>{T(!1)}});else if(i.filterDropdown)F=i.filterDropdown;else{const B=z()||[],k=()=>(i.filters||[]).length===0?c.createElement(lt,{image:lt.PRESENTED_IMAGE_SIMPLE,description:$.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):d==="tree"?c.createElement(c.Fragment,null,c.createElement(eo,{filterSearch:u,value:_,onChange:K,tablePrefixCls:r,locale:$}),c.createElement("div",{className:`${r}-filter-dropdown-tree`},s?c.createElement(Xt,{checked:B.length===$t(i.filters).length,indeterminate:B.length>0&&B.length<$t(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:we},$.filterCheckall):null,c.createElement(_u,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${a}-menu`,onCheck:H,checkedKeys:B,selectedKeys:B,showIcon:!1,treeData:De({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_.trim()?Ie=>typeof u=="function"?u(_,U(Ie)):Ti(_,Ie.title):void 0}))):c.createElement(c.Fragment,null,c.createElement(eo,{filterSearch:u,value:_,onChange:K,tablePrefixCls:r,locale:$}),c.createElement(ii,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:G,onSelect:M,onDeselect:M,selectedKeys:B,getPopupContainer:y,openKeys:q,onOpenChange:V,items:Pi({filters:i.filters||[],filterSearch:u,prefixCls:o,filteredKeys:z(),filterMultiple:s,searchValue:_})})),J=()=>p?Rr((v||[]).map(Ie=>String(Ie)),B,!0):B.length===0;F=c.createElement(c.Fragment,null,k(),c.createElement("div",{className:`${o}-dropdown-btns`},c.createElement(St,{type:"link",size:"small",disabled:J(),onClick:()=>Q()},$.filterReset),c.createElement(St,{type:"primary",size:"small",onClick:re},$.filterConfirm)))}i.filterDropdown&&(F=c.createElement(oi,{selectable:void 0},F));const W=()=>c.createElement(Bu,{className:`${o}-dropdown`},F);let A;typeof i.filterIcon=="function"?A=i.filterIcon(I):i.filterIcon?A=i.filterIcon:A=c.createElement(Fd,null);const{direction:Y}=c.useContext(de);return c.createElement("div",{className:`${o}-column`},c.createElement("span",{className:`${r}-column-title`},b),c.createElement($i,{dropdownRender:W,trigger:["click"],open:j,onOpenChange:te,getPopupContainer:y,placement:Y==="rtl"?"bottomLeft":"bottomRight",rootClassName:h},c.createElement("span",{role:"button",tabIndex:-1,className:L(`${o}-trigger`,{active:I}),onClick:B=>{B.stopPropagation()}},A)))}function In(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const l=Nt(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let s=o.filteredValue;"filterDropdown"in o||(s=(a=s==null?void 0:s.map(String))!==null&&a!==void 0?a:s),r.push({column:o,key:ct(o,l),filteredKeys:s,forceFiltered:o.filtered})}else r.push({column:o,key:ct(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ge(r),ge(In(o.children,t,l))))}),r}function Di(e,t,n,r,o,i,a,l,s){return n.map((d,u)=>{const m=Nt(u,l),{filterMultiple:S=!0,filterMode:$,filterSearch:b}=d;let y=d;if(y.filters||y.filterDropdown){const h=ct(y,m),f=r.find(g=>{let{key:p}=g;return h===p});y=Object.assign(Object.assign({},y),{title:g=>c.createElement(Hu,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:h,filterState:f,filterMultiple:S,filterMode:$,filterSearch:b,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:s},en(d.title,g))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:Di(e,t,y.children,r,o,i,a,m,s)})),y})}function to(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:l,filterDropdown:s}=i;if(s)t[a]=o||null;else if(Array.isArray(o)){const d=$t(l);t[a]=d.filter(u=>o.includes(String(u)))}else t[a]=null}),t}function no(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(l=>a.some(s=>{const d=$t(i),u=d.findIndex(S=>String(S)===String(s)),m=u!==-1?d[u]:s;return o(m,l)})):n},e)}const Mi=e=>e.flatMap(t=>"children"in t?[t].concat(ge(Mi(t.children||[]))):[t]);function Ru(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e;Gt();const s=c.useMemo(()=>Mi(r||[]),[r]),[d,u]=c.useState(()=>In(s,!0)),m=c.useMemo(()=>{const y=In(s,!1);if(y.length===0)return y;let h=!0;if(y.forEach(f=>{let{filteredKeys:g}=f;g!==void 0&&(h=!1)}),h){const f=(s||[]).map((g,p)=>ct(g,Nt(p)));return d.filter(g=>{let{key:p}=g;return f.includes(p)}).map(g=>{const p=s[f.findIndex(v=>v===g.key)];return Object.assign(Object.assign({},g),{column:Object.assign(Object.assign({},g.column),p),forceFiltered:p.filtered})})}return y},[s,d]),S=c.useMemo(()=>to(m),[m]),$=y=>{const h=m.filter(f=>{let{key:g}=f;return g!==y.key});h.push(y),u(h),o(to(h),h)};return[y=>Di(t,n,y,m,a,$,i,void 0,l),m,S]}function Fu(e,t,n){const r=c.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(s){s.forEach((d,u)=>{const m=n(d,u);a.set(m,d),d&&typeof d=="object"&&t in d&&l(d[t]||[])})};const a=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var Lu=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _i=10;function Au(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function Wu(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=Lu(r,["total"]),[a,l]=c.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:_i})),s=Qc(a,i,{total:o>0?o:e}),d=Math.ceil((o||e)/s.pageSize);s.current>d&&(s.current=d||1);const u=(S,$)=>{l({current:S??1,pageSize:$||s.pageSize})},m=(S,$)=>{var b;n&&((b=n.onChange)===null||b===void 0||b.call(n,S,$)),u(S,$),t(S,$||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:m}),u]}var qu={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:"outlined"};const ku=qu;var Uu=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:ku}))};const Xu=c.forwardRef(Uu);var Yu={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const Vu=Yu;var Ku=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Vu}))};const Gu=c.forwardRef(Ku),Lt="ascend",dn="descend";function Yt(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function ro(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function Zu(e,t){return t?e[e.indexOf(t)+1]:e[0]}function En(e,t,n){let r=[];function o(i,a){r.push({column:i,key:ct(i,a),multiplePriority:Yt(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const l=Nt(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(ge(r),ge(En(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:ct(i,l),multiplePriority:Yt(i),sortOrder:i.defaultSortOrder}))}),r}function ji(e,t,n,r,o,i,a,l){return(t||[]).map((s,d)=>{const u=Nt(d,l);let m=s;if(m.sorter){const S=m.sortDirections||o,$=m.showSorterTooltip===void 0?a:m.showSorterTooltip,b=ct(m,u),y=n.find(P=>{let{key:I}=P;return I===b}),h=y?y.sortOrder:null,f=Zu(S,h);let g;if(s.sortIcon)g=s.sortIcon({sortOrder:h});else{const P=S.includes(Lt)&&c.createElement(Gu,{className:L(`${e}-column-sorter-up`,{active:h===Lt})}),I=S.includes(dn)&&c.createElement(Xu,{className:L(`${e}-column-sorter-down`,{active:h===dn})});g=c.createElement("span",{className:L(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(P&&I)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},P,I))}const{cancelSort:p,triggerAsc:v,triggerDesc:x}=i||{};let C=p;f===dn?C=x:f===Lt&&(C=v);const O=typeof $=="object"?Object.assign({title:C},$):{title:C};m=Object.assign(Object.assign({},m),{className:L(m.className,{[`${e}-column-sort`]:h}),title:P=>{const I=c.createElement("div",{className:`${e}-column-sorters`},c.createElement("span",{className:`${e}-column-title`},en(s.title,P)),g);return $?c.createElement(Xo,Object.assign({},O),I):I},onHeaderCell:P=>{const I=s.onHeaderCell&&s.onHeaderCell(P)||{},T=I.onClick,j=I.onKeyDown;I.onClick=E=>{r({column:s,key:b,sortOrder:f,multiplePriority:Yt(s)}),T==null||T(E)},I.onKeyDown=E=>{E.keyCode===jo.ENTER&&(r({column:s,key:b,sortOrder:f,multiplePriority:Yt(s)}),j==null||j(E))};const N=Bd(s.title,{}),z=N==null?void 0:N.toString();return h?I["aria-sort"]=h==="ascend"?"ascending":"descending":I["aria-label"]=z||"",I.className=L(I.className,`${e}-column-has-sorters`),I.tabIndex=0,s.ellipsis&&(I.title=(N??"").toString()),I}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:ji(e,m.children,n,r,o,i,a,u)})),m})}function oo(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function io(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(oo);return t.length===0&&e.length?Object.assign(Object.assign({},oo(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Tn(e,t,n){const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:s}=a;return ro(l)&&s});return i.length?o.sort((a,l)=>{for(let s=0;s<i.length;s+=1){const d=i[s],{column:{sorter:u},sortOrder:m}=d,S=ro(u);if(S&&m){const $=S(a,l,m);if($!==0)return m===Lt?$:-$}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:Tn(l,t,n)}):a}):o}function Qu(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,s]=c.useState(En(n,!0)),d=c.useMemo(()=>{let b=!0;const y=En(n,!1);if(!y.length)return l;const h=[];function f(p){b?h.push(p):h.push(Object.assign(Object.assign({},p),{sortOrder:null}))}let g=null;return y.forEach(p=>{g===null?(f(p),p.sortOrder&&(p.multiplePriority===!1?b=!1:g=!0)):(g&&p.multiplePriority!==!1||(b=!1),f(p))}),h},[n,l]),u=c.useMemo(()=>{const b=d.map(y=>{let{column:h,sortOrder:f}=y;return{column:h,order:f}});return{sortColumns:b,sortColumn:b[0]&&b[0].column,sortOrder:b[0]&&b[0].order}},[d]);function m(b){let y;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?y=[b]:y=[].concat(ge(d.filter(h=>{let{key:f}=h;return f!==b.key})),[b]),s(y),r(io(y),y)}return[b=>ji(t,b,d,m,o,i,a),d,u,()=>io(d)]}function Ni(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=en(n.title,t),"children"in r&&(r.children=Ni(r.children,t)),r})}function Ju(e){return[c.useCallback(n=>Ni(n,e),[e])]}const em=Ba((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),tm=za((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),nm=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,d=`${w(n)} ${r} ${o}`,u=(m,S,$)=>({[`&${t}-${m}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${w(s(S).mul(-1).equal())}
${w(s(s($).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${w(s(a).mul(-1).equal())} ${w(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${w(n)} 0 ${w(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},rm=nm,om=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Pt),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},im=om,am=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},lm=am,sm=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:d,borderRadius:u,tablePaddingVertical:m,tablePaddingHorizontal:S,tableExpandedRowBg:$,paddingXXS:b,expandIconMarginTop:y,expandIconSize:h,expandIconHalfInner:f,expandIconScale:g,calc:p}=e,v=`${w(o)} ${a} ${l}`,x=p(b).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},rl(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:w(h),background:s,border:v,borderRadius:u,transform:`scale(${g})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:f,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:f,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:y,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:$}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${w(p(m).mul(-1).equal())} ${w(p(S).mul(-1).equal())}`,padding:`${w(m)} ${w(S)}`}}}},cm=sm,dm=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:d,lineType:u,tableBorderColor:m,headerIconColor:S,fontSizeSM:$,tablePaddingHorizontal:b,borderRadius:y,motionDurationSlow:h,colorTextDescription:f,colorPrimary:g,tableHeaderFilterActiveBg:p,colorTextDisabled:v,tableFilterDropdownBg:x,tableFilterDropdownHeight:C,controlItemBgHover:O,controlItemBgActive:P,boxShadowSecondary:I,filterDropdownMenuBg:T,calc:j}=e,N=`${n}-dropdown`,z=`${t}-filter-dropdown`,E=`${n}-tree`,M=`${w(d)} ${u} ${m}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:j(a).mul(-1).equal(),marginInline:`${w(a)} ${w(j(b).div(2).mul(-1).equal())}`,padding:`0 ${w(a)}`,color:S,fontSize:$,borderRadius:y,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:f,background:p},"&.active":{color:g}}}},{[`${n}-dropdown`]:{[z]:Object.assign(Object.assign({},Ce(e)),{minWidth:o,backgroundColor:x,borderRadius:y,boxShadow:I,overflow:"hidden",[`${N}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${w(l)} 0`,color:v,fontSize:$,textAlign:"center",content:'"Not Found"'}},[`${z}-tree`]:{paddingBlock:`${w(l)} 0`,paddingInline:l,[E]:{padding:0},[`${E}-treenode ${E}-node-content-wrapper:hover`]:{backgroundColor:O},[`${E}-treenode-checkbox-checked ${E}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:P}}},[`${z}-search`]:{padding:l,borderBottom:M,"&-input":{input:{minWidth:i},[r]:{color:v}}},[`${z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${w(j(l).sub(d).equal())} ${w(l)}`,overflow:"hidden",borderTop:M}})}},{[`${n}-dropdown ${z}, ${z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},um=dm,mm=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,d=r;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:i,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${d}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${d}`}}}}},fm=mm,pm=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${w(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},gm=pm,hm=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${w(n)} ${w(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${w(n)} ${w(n)}`}}}}},bm=hm,vm=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},$m=vm,Sm=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:m,tableRowHoverBg:S,tablePaddingHorizontal:$,calc:b}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:b(d).add(o).add(b(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:b(d).add(b(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:b(d).add(o).add(b(i).div(4)).add(b(a).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:w(b($).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:m}}},[`> ${t}-cell-row-hover`]:{background:S}}}}}},ym=Sm,xm=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,l,s)=>({[`${t}${t}-${i}`]:{fontSize:s,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${w(a)} ${w(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:w(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${w(r(a).mul(-1).equal())} ${w(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:w(r(a).mul(-1).equal()),marginInline:`${w(r(n).sub(l).equal())} ${w(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:w(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Cm=xm,wm=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Om=wm,Im=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:d,lineType:u,tableBorderColor:m}=e,S=`${w(d)} ${u} ${m}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${w(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:S,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Em=Im,Tm=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${w(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${w(o(n).mul(-1).equal())} 0 ${r}`}}}},ao=Tm,Pm=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${w(r)} ${o} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${w(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Dm=Pm,Mm=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:d,tableBg:u,tableRadius:m,tableHeaderTextColor:S,motionDurationMid:$,tableHeaderBg:b,tableHeaderCellSplitColor:y,tableFooterTextColor:h,tableFooterBg:f,calc:g}=e,p=`${w(a)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},vn()),{[t]:Object.assign(Object.assign({},Ce(e)),{fontSize:d,background:u,borderRadius:`${w(m)} ${w(m)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${w(m)} ${w(m)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${w(r)} ${w(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${w(r)} ${w(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:S,fontWeight:n,textAlign:"start",background:b,borderBottom:p,transition:`background ${$} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:y,transform:"translateY(-50%)",transition:`background-color ${$}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${$}, border-color ${$}`,borderBottom:p,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:w(g(r).mul(-1).equal()),marginInline:`${w(g(i).sub(o).equal())}
${w(g(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:S,fontWeight:n,textAlign:"start",background:b,borderBottom:p,transition:`background ${$} ease`}}},[`${t}-footer`]:{padding:`${w(r)} ${w(o)}`,color:h,background:f}})}},_m=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:d,paddingXS:u,colorBorderSecondary:m,borderRadiusLG:S,controlHeight:$,colorTextPlaceholder:b,fontSize:y,fontSizeSM:h,lineHeight:f,lineWidth:g,colorIcon:p,colorIconHover:v,opacityLoading:x,controlInteractiveSize:C}=e,O=new Le(o).onBackground(n).toHexShortString(),P=new Le(i).onBackground(n).toHexShortString(),I=new Le(t).onBackground(n).toHexShortString(),T=new Le(p),j=new Le(v),N=C/2-g,z=N*2+g*3;return{headerBg:I,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:P,bodySortBg:I,rowHoverBg:I,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:d,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:m,headerBorderRadius:S,footerBg:I,footerColor:r,cellFontSize:y,cellFontSizeMD:y,cellFontSizeSM:y,headerSplitColor:m,fixedHeaderSortActiveBg:O,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:$,stickyScrollBarBg:b,stickyScrollBarBorderRadius:100,expandIconMarginTop:(y*f-g*3)/2-Math.ceil((h*1.4-g*3)/2),headerIconColor:T.clone().setAlpha(T.getAlpha()*x).toRgbString(),headerIconHoverColor:j.clone().setAlpha(j.getAlpha()*x).toRgbString(),expandIconHalfInner:N,expandIconSize:z,expandIconScale:C/z}},jm=We("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:d,rowHoverBg:u,rowSelectedBg:m,rowSelectedHoverBg:S,rowExpandedBg:$,cellPaddingBlock:b,cellPaddingInline:y,cellPaddingBlockMD:h,cellPaddingInlineMD:f,cellPaddingBlockSM:g,cellPaddingInlineSM:p,borderColor:v,footerBg:x,footerColor:C,headerBorderRadius:O,cellFontSize:P,cellFontSizeMD:I,cellFontSizeSM:T,headerSplitColor:j,fixedHeaderSortActiveBg:N,headerFilterHoverBg:z,filterDropdownBg:E,expandIconBg:M,selectionColumnWidth:H,stickyScrollBarBg:q,calc:X}=e,V=2,_=be(e,{tableFontSize:P,tableBg:r,tableRadius:O,tablePaddingVertical:b,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:f,tablePaddingVerticalSmall:g,tablePaddingHorizontalSmall:p,tableBorderColor:v,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:x,tableHeaderCellSplitColor:j,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:d,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:z,tableFilterDropdownBg:E,tableRowHoverBg:u,tableSelectedRowBg:m,tableSelectedRowHoverBg:S,zIndexTableFixed:V,zIndexTableSticky:V+1,tableFontSizeMiddle:I,tableFontSizeSmall:T,tableSelectionColumnWidth:H,tableExpandIconBg:M,tableExpandColumnWidth:X(o).add(X(e.padding).mul(2)).equal(),tableExpandedRowBg:$,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:q,tableScrollThumbBgHover:t,tableScrollBg:n});return[Mm(_),gm(_),ao(_),Om(_),um(_),rm(_),bm(_),cm(_),ao(_),lm(_),ym(_),fm(_),Em(_),im(_),Cm(_),$m(_),Dm(_)]},_m,{unitless:{expandIconScale:!0}}),Nm=[],Bm=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:d,pagination:u,rowSelection:m,rowKey:S="key",rowClassName:$,columns:b,children:y,childrenColumnName:h,onChange:f,getPopupContainer:g,loading:p,expandIcon:v,expandable:x,expandedRowRender:C,expandIconColumnIndex:O,indentSize:P,scroll:I,sortDirections:T,locale:j,showSorterTooltip:N=!0,virtual:z}=e;Gt();const E=c.useMemo(()=>b||Ha(y),[b,y]),M=c.useMemo(()=>E.some(Z=>Z.responsive),[E]),H=Jo(M),q=c.useMemo(()=>{const Z=new Set(Object.keys(H).filter(se=>H[se]));return E.filter(se=>!se.responsive||se.responsive.some(Oe=>Z.has(Oe)))},[E,H]),X=Ae(e,["className","style","columns"]),{locale:V=ma,direction:_,table:R,renderEmpty:K,getPrefixCls:ne,getPopupContainer:re}=c.useContext(de),Q=xt(a),ae=Object.assign(Object.assign({},V.Table),j),te=d||Nm,G=ne("table",n),we=ne("dropdown",s),[,De]=tt(),U=nt(G),[F,W,A]=jm(G,U),Y=Object.assign({childrenColumnName:h,expandIconColumnIndex:O},x),{childrenColumnName:B="children"}=Y,k=c.useMemo(()=>te.some(Z=>Z==null?void 0:Z[B])?"nest":C||x&&x.expandedRowRender?"row":null,[te]),J={body:c.useRef()},Ie=Nd(G),qe=c.useRef(null),je=c.useRef(null);_d(t,()=>Object.assign(Object.assign({},je.current),{nativeElement:qe.current}));const Ge=c.useMemo(()=>typeof S=="function"?S:Z=>Z==null?void 0:Z[S],[S]),[rt]=Fu(te,B,Ge),pe={},Ne=function(Z,se){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ee,Re,Fe;const Ue=Object.assign(Object.assign({},pe),Z);Oe&&((Ee=pe.resetPagination)===null||Ee===void 0||Ee.call(pe),!((Re=Ue.pagination)===null||Re===void 0)&&Re.current&&(Ue.pagination.current=1),u&&u.onChange&&u.onChange(1,(Fe=Ue.pagination)===null||Fe===void 0?void 0:Fe.pageSize)),I&&I.scrollToFirstRowOnChange!==!1&&J.body.current&&ml(0,{getContainer:()=>J.body.current}),f==null||f(Ue.pagination,Ue.filters,Ue.sorter,{currentDataSource:no(Tn(te,Ue.sorterStates,B),Ue.filterStates),action:se})},ke=(Z,se)=>{Ne({sorter:Z,sorterStates:se},"sort",!1)},[mt,ot,ft,ee]=Qu({prefixCls:G,mergedColumns:q,onSorterChange:ke,sortDirections:T||["ascend","descend"],tableLocale:ae,showSorterTooltip:N}),oe=c.useMemo(()=>Tn(te,ot,B),[te,ot]);pe.sorter=ee(),pe.sorterStates=ot;const ie=(Z,se)=>{Ne({filters:Z,filterStates:se},"filter",!0)},[$e,he,le]=Ru({prefixCls:G,locale:ae,dropdownPrefixCls:we,mergedColumns:q,onFilterChange:ie,getPopupContainer:g||re,rootClassName:L(o,U)}),me=no(oe,he);pe.filters=le,pe.filterStates=he;const Be=c.useMemo(()=>{const Z={};return Object.keys(le).forEach(se=>{le[se]!==null&&(Z[se]=le[se])}),Object.assign(Object.assign({},ft),{filters:Z})},[ft,le]),[ze]=Ju(Be),it=(Z,se)=>{Ne({pagination:Object.assign(Object.assign({},pe.pagination),{current:Z,pageSize:se})},"paginate")},[ce,tn]=Wu(me.length,it,u);pe.pagination=u===!1?{}:Au(ce,u),pe.resetPagination=tn;const wt=c.useMemo(()=>{if(u===!1||!ce.pageSize)return me;const{current:Z=1,total:se,pageSize:Oe=_i}=ce;return me.length<se?me.length>Oe?me.slice((Z-1)*Oe,Z*Oe):me:me.slice((Z-1)*Oe,Z*Oe)},[!!u,me,ce&&ce.current,ce&&ce.pageSize,ce&&ce.total]),[zt,He]=Dd({prefixCls:G,data:me,pageData:wt,getRowKey:Ge,getRecordByKey:rt,expandType:k,childrenColumnName:B,locale:ae,getPopupContainer:g||re},m),Ze=(Z,se,Oe)=>{let Ee;return typeof $=="function"?Ee=L($(Z,se,Oe)):Ee=L($),L({[`${G}-row-selected`]:He.has(Ge(Z,se))},Ee)};Y.__PARENT_RENDER_ICON__=Y.expandIcon,Y.expandIcon=Y.expandIcon||v||jd(ae),k==="nest"&&Y.expandIconColumnIndex===void 0?Y.expandIconColumnIndex=m?1:0:Y.expandIconColumnIndex>0&&m&&(Y.expandIconColumnIndex-=1),typeof Y.indentSize!="number"&&(Y.indentSize=typeof P=="number"?P:15);const Qe=c.useCallback(Z=>ze(zt($e(mt(Z)))),[mt,$e,zt]);let Ht,at;if(u!==!1&&(ce!=null&&ce.total)){let Z;ce.size?Z=ce.size:Z=Q==="small"||Q==="middle"?"small":void 0;const se=Re=>c.createElement(bd,Object.assign({},ce,{className:L(`${G}-pagination ${G}-pagination-${Re}`,ce.className),size:Z})),Oe=_==="rtl"?"left":"right",{position:Ee}=ce;if(Ee!==null&&Array.isArray(Ee)){const Re=Ee.find(Ot=>Ot.includes("top")),Fe=Ee.find(Ot=>Ot.includes("bottom")),Ue=Ee.every(Ot=>`${Ot}`=="none");!Re&&!Fe&&!Ue&&(at=se(Oe)),Re&&(Ht=se(Re.toLowerCase().replace("top",""))),Fe&&(at=se(Fe.toLowerCase().replace("bottom","")))}else at=se(Oe)}let pt;typeof p=="boolean"?pt={spinning:p}:typeof p=="object"&&(pt=Object.assign({spinning:!0},p));const Vi=L(A,U,`${G}-wrapper`,R==null?void 0:R.className,{[`${G}-wrapper-rtl`]:_==="rtl"},r,o,W),Ki=Object.assign(Object.assign({},R==null?void 0:R.style),i),Gi=j&&j.emptyText||(K==null?void 0:K("Table"))||c.createElement(Ko,{componentName:"Table"}),Zi=z?tm:em,Br={},Qi=c.useMemo(()=>{const{fontSize:Z,lineHeight:se,padding:Oe,paddingXS:Ee,paddingSM:Re}=De,Fe=Math.floor(Z*se);switch(Q){case"large":return Oe*2+Fe;case"small":return Ee*2+Fe;default:return Re*2+Fe}},[De,Q]);return z&&(Br.listItemHeight=Qi),F(c.createElement("div",{ref:qe,className:Vi,style:Ki},c.createElement(Id,Object.assign({spinning:!1},pt),Ht,c.createElement(Zi,Object.assign({},Br,X,{ref:je,columns:q,direction:_,expandable:Y,prefixCls:G,className:L({[`${G}-middle`]:Q==="middle",[`${G}-small`]:Q==="small",[`${G}-bordered`]:l,[`${G}-empty`]:te.length===0},A,U,W),data:wt,rowKey:Ge,rowClassName:Ze,emptyText:Gi,internalHooks:Ra,internalRefs:J,transformColumns:Qe,getContainerWidth:Ie})),at)))},zm=c.forwardRef(Bm),Hm=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(zm,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ke=c.forwardRef(Hm);Ke.SELECTION_COLUMN=Je;Ke.EXPAND_COLUMN=Fa;Ke.SELECTION_ALL=Cn;Ke.SELECTION_INVERT=wn;Ke.SELECTION_NONE=On;Ke.Column=Ed;Ke.ColumnGroup=Td;Ke.Summary=La;const Rm=Ke;var Fm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-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.8z"}}]},name:"vertical-align-bottom",theme:"outlined"};const Lm=Fm;var Am=function(t,n){return c.createElement(ye,xe({},t,{ref:n,icon:Lm}))};const Wm=c.forwardRef(Am),lo=Wa();async function so(e){let t=[];const{properties:{dataRegistrationJcs:n,jcsCID:r,vcRegistrationsJcs:o}}=e.node,i=e.enrichments,a=e.node.properties.nodeType||"unknown",l=a==="computation"?e.node.properties.computation||"todo":e.node.id,s=i.asset_hub&&i.asset_hub.asset_blob_type;if(n&&t.push((async()=>({data:await(await vt(`text/${et(n,"urn:cid:")}`)).json(),type:"dataRegistrationJcs"}))()),r&&t.push((async()=>({data:await(await vt(`text/${et(r,"urn:cid:")}`)).json(),type:"jcsCID"}))()),s==="iroh-collection"&&t.push((async()=>{const m=await(await vt(`iroh-collection/${et(l,"urn:cid:")}`)).json();let S={};if(a==="computation"){if(m["report.amd"]){const b=m["report.amd"];let y=await fetch(`${lo}/blob/${b}`);if(y.ok){const h=await y.arrayBuffer(),f=encodeURIComponent(btoa(String.fromCharCode(...new Uint8Array(h))));S["report.amd"]=f}}if(m["report.nvidia"]){const b=m["report.nvidia"];let y=await fetch(`${lo}/blob/${b}`);if(y.ok){const h=await y.arrayBuffer(),f=encodeURIComponent(btoa(String.fromCharCode(...new Uint8Array(h))));S["report.nvidia"]=f}}}return{data:{blob:m,files:S},type:"iroh-collection"}})()),o){let u=[];for(const m of o)u.push((async()=>(await vt(`text/${et(m,"urn:cid:")}`)).json())());t.push((async()=>({data:Promise.all(u),type:"vcRegistrationsJcs"}))())}const d=await Aa();return d&&t.push((async()=>({data:d.anchors,type:"anchor"}))()),await Promise.all(t)}function co(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&e!==void 0}function Tt(e,t){const n=co(e)?Object.entries(e):Array.isArray(e)?e.entries():[];for(const[r,o]of n)if(co(o)||Array.isArray(o))Tt(o,t);else if(typeof o=="string"&&o.startsWith("did:key")){const i=t.get(o);console.log(`DID found for user: ${i==null?void 0:i.username} DID: ${o}`),e[r]={did:o,user:i}}}async function uo(e,t){let n=et(e,"urn:cid:");try{if(t){const[r,o]=await Promise.all([Fr(`${n}.node`),Fr(`${n}.governance`)]),[i,a]=await Promise.all([r.json(),o.json()]),l=a.nodes.filter(m=>m.node.properties.nodeType==="governance"),[s,d]=await Promise.all([Lr(t),so(i)]),u=new Map(s.map(m=>[m.did,m]));return Tt(i,u),Tt(l,u),{targetNode:i,governanceNodes:l,metadata:d}}else{const[r,o]=await Promise.all([vt(`${n}.node`),vt(`${n}.governance`)]),[i,a]=await Promise.all([r.json(),o.json()]),l=a.nodes.filter(m=>m.node.properties.nodeType==="governance"),[s,d]=await Promise.all([Lr(t),so(i)]),u=new Map(s.map(m=>[m.did,m]));return Tt(i,u),Tt(l,u),{targetNode:i,governanceNodes:l,metadata:d}}}catch(r){return console.log("error",r),{targetNode:null,governanceNodes:null,metadata:null}}}const qm="_sidebar_1ulhp_1",km="_sidebarIsExpanded_1ulhp_13",Um="_topBar_1ulhp_16",Xm="_icon_1ulhp_27",Ym="_displayType_1ulhp_37",Vm="_closeButton_1ulhp_46",Km="_content_1ulhp_49",Gm="_footer_1ulhp_57",Zm="_arrow_1ulhp_65",Qm="_isLeftPointing_1ulhp_75",Jm="_isVisible_1ulhp_79",ef="_moreButton_1ulhp_84",tf="_expandedSection_1ulhp_91",nf="_collapse_1ulhp_96",Se={sidebar:qm,sidebarIsExpanded:km,topBar:Um,icon:Xm,displayType:Ym,closeButton:Vm,content:Km,footer:Gm,arrow:Zm,isLeftPointing:Qm,isVisible:Jm,moreButton:ef,expandedSection:tf,collapse:nf},rf="_container_1k0w7_1",of="_title_1k0w7_14",af="_grid_1k0w7_19",lf="_section_1k0w7_36",sf="_label_1k0w7_40",cf="_value_1k0w7_47",It={container:rf,title:of,grid:af,section:lf,label:sf,value:cf},Pn=({data:e})=>D.jsxs("div",{className:It.container,children:[e.title.renderFunction?e.title.renderFunction(e.title.rawString):D.jsx("h4",{className:It.title,children:e.title.rawString}),e.sections.map(({items:t},n)=>D.jsx("div",{className:It.grid,children:t.map(({label:r,data:o},i)=>D.jsxs(c.Fragment,{children:[D.jsx("div",{className:It.label,children:r},`${r}-${i}`),D.jsx("div",{className:It.value,children:o.renderFunction?o.renderFunction(o.rawString):o.rawString},`${o.rawString}-${i}`)]},`${r}-${o.rawString}`))},n))]}),df="_container_s802f_1",uf="_codeBlock_s802f_6",mf="_copiedLabel_s802f_15",ff="_copiedLabelActive_s802f_21",pf="_prefix_s802f_25",gf="_button_s802f_33",ht={container:df,codeBlock:uf,copiedLabel:mf,copiedLabelActive:ff,prefix:pf,button:gf},fe=({value:e})=>{const t=e.split(":");let n="",r=e;t.length===3?(n=t[1],r=t[2]):t.length===2&&(n=t[0],r=t[1]);const o=`${r.slice(0,5)}...${r.slice(-4)}`,[i,a]=c.useState(!1),l=L(ht.copiedLabel,{[ht.copiedLabelActive]:i}),s=()=>{navigator.clipboard&&navigator.clipboard.writeText(e).then(()=>{a(!0),setTimeout(()=>{a(!1)},1e3)}).catch(d=>{console.error("Failed to copy text: ",d)})};return D.jsxs("div",{children:[D.jsxs("div",{className:ht.container,children:[n&&D.jsx("span",{className:ht.prefix,children:n.toUpperCase()}),D.jsx("code",{className:ht.codeBlock,children:o})]}),D.jsx("button",{className:ht.button,onClick:s,children:D.jsx(ol,{})}),D.jsx("span",{className:l,children:"copied!"})]})},hf="_grid_i637i_1",bf="_multiline_i637i_7",vf="_title_i637i_13",un={grid:hf,multiline:bf,title:vf},Bi=({value:e,link:t,multiline:n=!1})=>D.jsxs("div",{className:L(un.grid,{[un.multiline]:n}),children:[D.jsx("h4",{className:un.title,children:e})," ",D.jsxs("a",{href:t,target:"_blank",children:["download ",D.jsx(Wm,{})]})]}),mo=({sections:e})=>D.jsx(D.Fragment,{children:e.map((t,n)=>D.jsx(Pn,{data:t},n))}),$f=(e,t)=>{switch(e){case"folder":return{dataSource:[{key:"1",path:"path/to/file/file.txt",cid:3212312312312},{key:"2",path:"path/to/file/file.txt",cid:435468790876542},{key:"2",path:"file.txt",cid:"23456ryukhjhtw45"}],columns:[{title:"Location",dataIndex:"path",key:"path"},{title:"Cid",dataIndex:"cid",key:"cid",render:n=>D.jsx(fe,{value:n.toString()})}]};case"prolly-tree":return{dataSource:[{key:"1",path:"path/to/file/file.txt",text:"Lorem ipsum dolor sit amet consectetur. Vivamus non urna vestibulum imperdiet. Enim magna velit convallis a donec sollicitudin in. Volutpat integ... ",cid:3212312312312},{key:"2",path:"path/to/file/file.txt",text:"Lorem ipsum dolor sit amet consectetur. Vivamus non urna vestibulum imperdiet. Enim magna velit convallis a donec sollicitudin in. Volutpat integ... ",cid:435468790876542},{key:"2",path:"file.txt",text:"Lorem ipsum dolor sit amet consectetur. Vivamus non urna vestibulum imperdiet. Enim magna velit convallis a donec sollicitudin in. Volutpat integ... ",cid:"23456ryukhjhtw45"}],columns:[{title:"ID",dataIndex:"path",key:"path"},{title:"Source CID",dataIndex:"cid",key:"cid",render:n=>D.jsx(fe,{value:n.toString()})},{title:"Extracted Text",dataIndex:"text",key:"text"}]};case"iroh-collection":if(t)return{dataSource:Object.entries(t.blob).map(([n,r])=>({key:n,path:n,cid:r})),columns:[{title:"Location",dataIndex:"path",key:"path"},{title:"Cid",dataIndex:"cid",key:"cid",render:n=>D.jsx(fe,{value:n.toString()})}]}}return null},Sf=({type:e,folder:t})=>{const n=$f(e,t);if(!n)return D.jsx("p",{children:" No data by type found"});const{dataSource:r,columns:o}=n;return D.jsx(Rm,{dataSource:r,columns:o})};function yf(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function xf(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}var zi=6e4,Hi=36e5;function Mr(e,t){var n;xf(1,arguments);var r=yf((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=If(e),i;if(o.date){var a=Ef(o.date,r);i=Tf(a.restDateString,a.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),s=0,d;if(o.time&&(s=Pf(o.time),isNaN(s)))return new Date(NaN);if(o.timezone){if(d=Df(o.timezone),isNaN(d))return new Date(NaN)}else{var u=new Date(l+s),m=new Date(0);return m.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),m.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),m}return new Date(l+s+d)}var Rt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Cf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Of=/^([+-])(\d{2})(?::?(\d{2}))?$/;function If(e){var t={},n=e.split(Rt.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Rt.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Rt.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Rt.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Ef(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function Tf(e,t){if(t===null)return new Date(NaN);var n=e.match(Cf);if(!n)return new Date(NaN);var r=!!n[4],o=Et(n[1]),i=Et(n[2])-1,a=Et(n[3]),l=Et(n[4]),s=Et(n[5])-1;if(r)return Bf(t,l,s)?Mf(t,l,s):new Date(NaN);var d=new Date(0);return!jf(t,i,a)||!Nf(t,o)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(o,a)),d)}function Et(e){return e?parseInt(e):1}function Pf(e){var t=e.match(wf);if(!t)return NaN;var n=mn(t[1]),r=mn(t[2]),o=mn(t[3]);return zf(n,r,o)?n*Hi+r*zi+o*1e3:NaN}function mn(e){return e&&parseFloat(e.replace(",","."))||0}function Df(e){if(e==="Z")return 0;var t=e.match(Of);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Hf(r,o)?n*(r*Hi+o*zi):NaN}function Mf(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var _f=[31,null,31,30,31,30,31,31,30,31,30,31];function Ri(e){return e%400===0||e%4===0&&e%100!==0}function jf(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_f[t]||(Ri(e)?29:28))}function Nf(e,t){return t>=1&&t<=(Ri(e)?366:365)}function Bf(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zf(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Hf(e,t){return t>=0&&t<=59}var Dn={exports:{}},Mn={exports:{}},_n={exports:{}},jn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(jn,jn.exports);var Pe=jn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(qo),o=n(Pe);function i(a){return(0,o.default)(1,arguments),a instanceof Date||(0,r.default)(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(_n,_n.exports);var Rf=_n.exports,Nn={exports:{}};(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(qo),o=n(Pe);function i(a){(0,o.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||(0,r.default)(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Nn,Nn.exports);var Xe=Nn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Rf),o=n(Xe),i=n(Pe);function a(l){if((0,i.default)(1,arguments),!(0,r.default)(l)&&typeof l!="number")return!1;var s=(0,o.default)(l);return!isNaN(Number(s))}e.exports=t.default})(Mn,Mn.exports);var Ff=Mn.exports,Bn={exports:{}},zn={exports:{}},Hn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Hn,Hn.exports);var dt=Hn.exports;const Lf=Zt(dt);(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(dt),o=n(Xe),i=n(Pe);function a(l,s){(0,i.default)(2,arguments);var d=(0,o.default)(l).getTime(),u=(0,r.default)(s);return new Date(d+u)}e.exports=t.default})(zn,zn.exports);var Af=zn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Af),o=n(Pe),i=n(dt);function a(l,s){(0,o.default)(2,arguments);var d=(0,i.default)(s);return(0,r.default)(l,-d)}e.exports=t.default})(Bn,Bn.exports);var Wf=Bn.exports,Rn={exports:{}},Fn={exports:{}};(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Xe),o=n(Pe),i=864e5;function a(l){(0,o.default)(1,arguments);var s=(0,r.default)(l),d=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var u=s.getTime(),m=d-u;return Math.floor(m/i)+1}e.exports=t.default})(Fn,Fn.exports);var qf=Fn.exports,Ln={exports:{}},An={exports:{}};(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(Xe),o=n(Pe);function i(a){(0,o.default)(1,arguments);var l=1,s=(0,r.default)(a),d=s.getUTCDay(),u=(d<l?7:0)+d-l;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}e.exports=t.default})(An,An.exports);var _r=An.exports,Wn={exports:{}},qn={exports:{}};(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Xe),o=n(Pe),i=n(_r);function a(l){(0,o.default)(1,arguments);var s=(0,r.default)(l),d=s.getUTCFullYear(),u=new Date(0);u.setUTCFullYear(d+1,0,4),u.setUTCHours(0,0,0,0);var m=(0,i.default)(u),S=new Date(0);S.setUTCFullYear(d,0,4),S.setUTCHours(0,0,0,0);var $=(0,i.default)(S);return s.getTime()>=m.getTime()?d+1:s.getTime()>=$.getTime()?d:d-1}e.exports=t.default})(qn,qn.exports);var Fi=qn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Fi),o=n(_r),i=n(Pe);function a(l){(0,i.default)(1,arguments);var s=(0,r.default)(l),d=new Date(0);d.setUTCFullYear(s,0,4),d.setUTCHours(0,0,0,0);var u=(0,o.default)(d);return u}e.exports=t.default})(Wn,Wn.exports);var kf=Wn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(Xe),o=n(_r),i=n(kf),a=n(Pe),l=6048e5;function s(d){(0,a.default)(1,arguments);var u=(0,r.default)(d),m=(0,o.default)(u).getTime()-(0,i.default)(u).getTime();return Math.round(m/l)+1}e.exports=t.default})(Ln,Ln.exports);var Uf=Ln.exports,kn={exports:{}},Un={exports:{}},ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.getDefaultOptions=Xf;ut.setDefaultOptions=Yf;var Li={};function Xf(){return Li}function Yf(e){Li=e}(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(Xe),o=n(Pe),i=n(dt),a=ut;function l(s,d){var u,m,S,$,b,y,h,f;(0,o.default)(1,arguments);var g=(0,a.getDefaultOptions)(),p=(0,i.default)((u=(m=(S=($=d==null?void 0:d.weekStartsOn)!==null&&$!==void 0?$:d==null||(b=d.locale)===null||b===void 0||(y=b.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&S!==void 0?S:g.weekStartsOn)!==null&&m!==void 0?m:(h=g.locale)===null||h===void 0||(f=h.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&u!==void 0?u:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(s),x=v.getUTCDay(),C=(x<p?7:0)+x-p;return v.setUTCDate(v.getUTCDate()-C),v.setUTCHours(0,0,0,0),v}e.exports=t.default})(Un,Un.exports);var jr=Un.exports,Xn={exports:{}},Yn={exports:{}};(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(Xe),o=n(Pe),i=n(jr),a=n(dt),l=ut;function s(d,u){var m,S,$,b,y,h,f,g;(0,o.default)(1,arguments);var p=(0,r.default)(d),v=p.getUTCFullYear(),x=(0,l.getDefaultOptions)(),C=(0,a.default)((m=(S=($=(b=u==null?void 0:u.firstWeekContainsDate)!==null&&b!==void 0?b:u==null||(y=u.locale)===null||y===void 0||(h=y.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&$!==void 0?$:x.firstWeekContainsDate)!==null&&S!==void 0?S:(f=x.locale)===null||f===void 0||(g=f.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&m!==void 0?m:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=new Date(0);O.setUTCFullYear(v+1,0,C),O.setUTCHours(0,0,0,0);var P=(0,i.default)(O,u),I=new Date(0);I.setUTCFullYear(v,0,C),I.setUTCHours(0,0,0,0);var T=(0,i.default)(I,u);return p.getTime()>=P.getTime()?v+1:p.getTime()>=T.getTime()?v:v-1}e.exports=t.default})(Yn,Yn.exports);var Ai=Yn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(Ai),o=n(Pe),i=n(jr),a=n(dt),l=ut;function s(d,u){var m,S,$,b,y,h,f,g;(0,o.default)(1,arguments);var p=(0,l.getDefaultOptions)(),v=(0,a.default)((m=(S=($=(b=u==null?void 0:u.firstWeekContainsDate)!==null&&b!==void 0?b:u==null||(y=u.locale)===null||y===void 0||(h=y.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&$!==void 0?$:p.firstWeekContainsDate)!==null&&S!==void 0?S:(f=p.locale)===null||f===void 0||(g=f.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&m!==void 0?m:1),x=(0,r.default)(d,u),C=new Date(0);C.setUTCFullYear(x,0,v),C.setUTCHours(0,0,0,0);var O=(0,i.default)(C,u);return O}e.exports=t.default})(Xn,Xn.exports);var Vf=Xn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=n(Xe),o=n(jr),i=n(Vf),a=n(Pe),l=6048e5;function s(d,u){(0,a.default)(1,arguments);var m=(0,r.default)(d),S=(0,o.default)(m,u).getTime()-(0,i.default)(m,u).getTime();return Math.round(S/l)+1}e.exports=t.default})(kn,kn.exports);var Kf=kn.exports,Vn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length<o;)a="0"+a;return i+a}e.exports=t.default})(Vn,Vn.exports);var Wi=Vn.exports,Kn={exports:{}};(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Wi),o={y:function(l,s){var d=l.getUTCFullYear(),u=d>0?d:1-d;return(0,r.default)(s==="yy"?u%100:u,s.length)},M:function(l,s){var d=l.getUTCMonth();return s==="M"?String(d+1):(0,r.default)(d+1,2)},d:function(l,s){return(0,r.default)(l.getUTCDate(),s.length)},a:function(l,s){var d=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,r.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,r.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,r.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,r.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var d=s.length,u=l.getUTCMilliseconds(),m=Math.floor(u*Math.pow(10,d-3));return(0,r.default)(m,s.length)}},i=o;t.default=i,e.exports=t.default})(Kn,Kn.exports);var Gf=Kn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(qf),o=n(Uf),i=n(Fi),a=n(Kf),l=n(Ai),s=n(Wi),d=n(Gf),u={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(f,g,p){var v=f.getUTCFullYear()>0?1:0;switch(g){case"G":case"GG":case"GGG":return p.era(v,{width:"abbreviated"});case"GGGGG":return p.era(v,{width:"narrow"});case"GGGG":default:return p.era(v,{width:"wide"})}},y:function(f,g,p){if(g==="yo"){var v=f.getUTCFullYear(),x=v>0?v:1-v;return p.ordinalNumber(x,{unit:"year"})}return d.default.y(f,g)},Y:function(f,g,p,v){var x=(0,l.default)(f,v),C=x>0?x:1-x;if(g==="YY"){var O=C%100;return(0,s.default)(O,2)}return g==="Yo"?p.ordinalNumber(C,{unit:"year"}):(0,s.default)(C,g.length)},R:function(f,g){var p=(0,i.default)(f);return(0,s.default)(p,g.length)},u:function(f,g){var p=f.getUTCFullYear();return(0,s.default)(p,g.length)},Q:function(f,g,p){var v=Math.ceil((f.getUTCMonth()+1)/3);switch(g){case"Q":return String(v);case"QQ":return(0,s.default)(v,2);case"Qo":return p.ordinalNumber(v,{unit:"quarter"});case"QQQ":return p.quarter(v,{width:"abbreviated",context:"formatting"});case"QQQQQ":return p.quarter(v,{width:"narrow",context:"formatting"});case"QQQQ":default:return p.quarter(v,{width:"wide",context:"formatting"})}},q:function(f,g,p){var v=Math.ceil((f.getUTCMonth()+1)/3);switch(g){case"q":return String(v);case"qq":return(0,s.default)(v,2);case"qo":return p.ordinalNumber(v,{unit:"quarter"});case"qqq":return p.quarter(v,{width:"abbreviated",context:"standalone"});case"qqqqq":return p.quarter(v,{width:"narrow",context:"standalone"});case"qqqq":default:return p.quarter(v,{width:"wide",context:"standalone"})}},M:function(f,g,p){var v=f.getUTCMonth();switch(g){case"M":case"MM":return d.default.M(f,g);case"Mo":return p.ordinalNumber(v+1,{unit:"month"});case"MMM":return p.month(v,{width:"abbreviated",context:"formatting"});case"MMMMM":return p.month(v,{width:"narrow",context:"formatting"});case"MMMM":default:return p.month(v,{width:"wide",context:"formatting"})}},L:function(f,g,p){var v=f.getUTCMonth();switch(g){case"L":return String(v+1);case"LL":return(0,s.default)(v+1,2);case"Lo":return p.ordinalNumber(v+1,{unit:"month"});case"LLL":return p.month(v,{width:"abbreviated",context:"standalone"});case"LLLLL":return p.month(v,{width:"narrow",context:"standalone"});case"LLLL":default:return p.month(v,{width:"wide",context:"standalone"})}},w:function(f,g,p,v){var x=(0,a.default)(f,v);return g==="wo"?p.ordinalNumber(x,{unit:"week"}):(0,s.default)(x,g.length)},I:function(f,g,p){var v=(0,o.default)(f);return g==="Io"?p.ordinalNumber(v,{unit:"week"}):(0,s.default)(v,g.length)},d:function(f,g,p){return g==="do"?p.ordinalNumber(f.getUTCDate(),{unit:"date"}):d.default.d(f,g)},D:function(f,g,p){var v=(0,r.default)(f);return g==="Do"?p.ordinalNumber(v,{unit:"dayOfYear"}):(0,s.default)(v,g.length)},E:function(f,g,p){var v=f.getUTCDay();switch(g){case"E":case"EE":case"EEE":return p.day(v,{width:"abbreviated",context:"formatting"});case"EEEEE":return p.day(v,{width:"narrow",context:"formatting"});case"EEEEEE":return p.day(v,{width:"short",context:"formatting"});case"EEEE":default:return p.day(v,{width:"wide",context:"formatting"})}},e:function(f,g,p,v){var x=f.getUTCDay(),C=(x-v.weekStartsOn+8)%7||7;switch(g){case"e":return String(C);case"ee":return(0,s.default)(C,2);case"eo":return p.ordinalNumber(C,{unit:"day"});case"eee":return p.day(x,{width:"abbreviated",context:"formatting"});case"eeeee":return p.day(x,{width:"narrow",context:"formatting"});case"eeeeee":return p.day(x,{width:"short",context:"formatting"});case"eeee":default:return p.day(x,{width:"wide",context:"formatting"})}},c:function(f,g,p,v){var x=f.getUTCDay(),C=(x-v.weekStartsOn+8)%7||7;switch(g){case"c":return String(C);case"cc":return(0,s.default)(C,g.length);case"co":return p.ordinalNumber(C,{unit:"day"});case"ccc":return p.day(x,{width:"abbreviated",context:"standalone"});case"ccccc":return p.day(x,{width:"narrow",context:"standalone"});case"cccccc":return p.day(x,{width:"short",context:"standalone"});case"cccc":default:return p.day(x,{width:"wide",context:"standalone"})}},i:function(f,g,p){var v=f.getUTCDay(),x=v===0?7:v;switch(g){case"i":return String(x);case"ii":return(0,s.default)(x,g.length);case"io":return p.ordinalNumber(x,{unit:"day"});case"iii":return p.day(v,{width:"abbreviated",context:"formatting"});case"iiiii":return p.day(v,{width:"narrow",context:"formatting"});case"iiiiii":return p.day(v,{width:"short",context:"formatting"});case"iiii":default:return p.day(v,{width:"wide",context:"formatting"})}},a:function(f,g,p){var v=f.getUTCHours(),x=v/12>=1?"pm":"am";switch(g){case"a":case"aa":return p.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"aaa":return p.dayPeriod(x,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return p.dayPeriod(x,{width:"narrow",context:"formatting"});case"aaaa":default:return p.dayPeriod(x,{width:"wide",context:"formatting"})}},b:function(f,g,p){var v=f.getUTCHours(),x;switch(v===12?x=u.noon:v===0?x=u.midnight:x=v/12>=1?"pm":"am",g){case"b":case"bb":return p.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"bbb":return p.dayPeriod(x,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return p.dayPeriod(x,{width:"narrow",context:"formatting"});case"bbbb":default:return p.dayPeriod(x,{width:"wide",context:"formatting"})}},B:function(f,g,p){var v=f.getUTCHours(),x;switch(v>=17?x=u.evening:v>=12?x=u.afternoon:v>=4?x=u.morning:x=u.night,g){case"B":case"BB":case"BBB":return p.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"BBBBB":return p.dayPeriod(x,{width:"narrow",context:"formatting"});case"BBBB":default:return p.dayPeriod(x,{width:"wide",context:"formatting"})}},h:function(f,g,p){if(g==="ho"){var v=f.getUTCHours()%12;return v===0&&(v=12),p.ordinalNumber(v,{unit:"hour"})}return d.default.h(f,g)},H:function(f,g,p){return g==="Ho"?p.ordinalNumber(f.getUTCHours(),{unit:"hour"}):d.default.H(f,g)},K:function(f,g,p){var v=f.getUTCHours()%12;return g==="Ko"?p.ordinalNumber(v,{unit:"hour"}):(0,s.default)(v,g.length)},k:function(f,g,p){var v=f.getUTCHours();return v===0&&(v=24),g==="ko"?p.ordinalNumber(v,{unit:"hour"}):(0,s.default)(v,g.length)},m:function(f,g,p){return g==="mo"?p.ordinalNumber(f.getUTCMinutes(),{unit:"minute"}):d.default.m(f,g)},s:function(f,g,p){return g==="so"?p.ordinalNumber(f.getUTCSeconds(),{unit:"second"}):d.default.s(f,g)},S:function(f,g){return d.default.S(f,g)},X:function(f,g,p,v){var x=v._originalDate||f,C=x.getTimezoneOffset();if(C===0)return"Z";switch(g){case"X":return $(C);case"XXXX":case"XX":return b(C);case"XXXXX":case"XXX":default:return b(C,":")}},x:function(f,g,p,v){var x=v._originalDate||f,C=x.getTimezoneOffset();switch(g){case"x":return $(C);case"xxxx":case"xx":return b(C);case"xxxxx":case"xxx":default:return b(C,":")}},O:function(f,g,p,v){var x=v._originalDate||f,C=x.getTimezoneOffset();switch(g){case"O":case"OO":case"OOO":return"GMT"+S(C,":");case"OOOO":default:return"GMT"+b(C,":")}},z:function(f,g,p,v){var x=v._originalDate||f,C=x.getTimezoneOffset();switch(g){case"z":case"zz":case"zzz":return"GMT"+S(C,":");case"zzzz":default:return"GMT"+b(C,":")}},t:function(f,g,p,v){var x=v._originalDate||f,C=Math.floor(x.getTime()/1e3);return(0,s.default)(C,g.length)},T:function(f,g,p,v){var x=v._originalDate||f,C=x.getTime();return(0,s.default)(C,g.length)}};function S(h,f){var g=h>0?"-":"+",p=Math.abs(h),v=Math.floor(p/60),x=p%60;if(x===0)return g+String(v);var C=f||"";return g+String(v)+C+(0,s.default)(x,2)}function $(h,f){if(h%60===0){var g=h>0?"-":"+";return g+(0,s.default)(Math.abs(h)/60,2)}return b(h,f)}function b(h,f){var g=f||"",p=h>0?"-":"+",v=Math.abs(h),x=(0,s.default)(Math.floor(v/60),2),C=(0,s.default)(v%60,2);return p+x+g+C}var y=m;t.default=y,e.exports=t.default})(Rn,Rn.exports);var Zf=Rn.exports,Gn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,d){switch(s){case"P":return d.date({width:"short"});case"PP":return d.date({width:"medium"});case"PPP":return d.date({width:"long"});case"PPPP":default:return d.date({width:"full"})}},r=function(s,d){switch(s){case"p":return d.time({width:"short"});case"pp":return d.time({width:"medium"});case"ppp":return d.time({width:"long"});case"pppp":default:return d.time({width:"full"})}},o=function(s,d){var u=s.match(/(P+)(p+)?/)||[],m=u[1],S=u[2];if(!S)return n(s,d);var $;switch(m){case"P":$=d.dateTime({width:"short"});break;case"PP":$=d.dateTime({width:"medium"});break;case"PPP":$=d.dateTime({width:"long"});break;case"PPPP":default:$=d.dateTime({width:"full"});break}return $.replace("{{date}}",n(m,d)).replace("{{time}}",r(S,d))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(Gn,Gn.exports);var Qf=Gn.exports,Zn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Zn,Zn.exports);var qi=Zn.exports;const fo=Zt(qi);var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isProtectedDayOfYearToken=tp;Bt.isProtectedWeekYearToken=np;Bt.throwProtectedError=rp;var Jf=["D","DD"],ep=["YY","YYYY"];function tp(e){return Jf.indexOf(e)!==-1}function np(e){return ep.indexOf(e)!==-1}function rp(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Qn={exports:{}},Jn={exports:{}},er={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var d,u=n[a];return typeof u=="string"?d=u:l===1?d=u.one:d=u.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+d:d+" ago":d},o=r;t.default=o,e.exports=t.default})(er,er.exports);var op=er.exports,tr={exports:{}},nr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(nr,nr.exports);var ip=nr.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(ip),o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(tr,tr.exports);var ap=tr.exports,rr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,d){return n[a]},o=r;t.default=o,e.exports=t.default})(rr,rr.exports);var lp=rr.exports,or={exports:{}},ir={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,d=i!=null&&i.width?String(i.width):s;l=r.formattingValues[d]||r.formattingValues[s]}else{var u=r.defaultWidth,m=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[m]||r.values[u]}var S=r.argumentCallback?r.argumentCallback(o):o;return l[S]}}e.exports=t.default})(ir,ir.exports);var sp=ir.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(sp),o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},d={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},u=function(b,y){var h=Number(b),f=h%100;if(f>20||f<10)switch(f%10){case 1:return h+"st";case 2:return h+"nd";case 3:return h+"rd"}return h+"th"},m={ordinalNumber:u,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(b){return b-1}}),month:(0,r.default)({values:a,defaultWidth:"wide"}),day:(0,r.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:s,defaultWidth:"wide",formattingValues:d,defaultFormattingWidth:"wide"})},S=m;t.default=S,e.exports=t.default})(or,or.exports);var cp=or.exports,ar={exports:{}},lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,d=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],u=a.match(d);if(!u)return null;var m=u[0],S=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],$=Array.isArray(S)?o(S,function(h){return h.test(m)}):r(S,function(h){return h.test(m)}),b;b=i.valueCallback?i.valueCallback($):$,b=l.valueCallback?l.valueCallback(b):b;var y=a.slice(m.length);return{value:b,rest:y}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l<i.length;l++)if(a(i[l]))return l}e.exports=t.default})(lr,lr.exports);var dp=lr.exports,sr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var d=r.valueCallback?r.valueCallback(s[0]):s[0];d=i.valueCallback?i.valueCallback(d):d;var u=o.slice(l.length);return{value:d,rest:u}}}e.exports=t.default})(sr,sr.exports);var up=sr.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(dp),o=n(up),i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},u={any:[/1/i,/2/i,/3/i,/4/i]},m={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},S={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},b={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},h={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},f={ordinalNumber:(0,o.default)({matchPattern:i,parsePattern:a,valueCallback:function(v){return parseInt(v,10)}}),era:(0,r.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any",valueCallback:function(v){return v+1}}),month:(0,r.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:$,defaultMatchWidth:"wide",parsePatterns:b,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:h,defaultParseWidth:"any"})},g=f;t.default=g,e.exports=t.default})(ar,ar.exports);var mp=ar.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(op),o=n(ap),i=n(lp),a=n(cp),l=n(mp),s={code:"en-US",formatDistance:r.default,formatLong:o.default,formatRelative:i.default,localize:a.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},d=s;t.default=d,e.exports=t.default})(Jn,Jn.exports);var fp=Jn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(fp),o=r.default;t.default=o,e.exports=t.default})(Qn,Qn.exports);var pp=Qn.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=n(Ff),o=n(Wf),i=n(Xe),a=n(Zf),l=n(Qf),s=n(qi),d=Bt,u=n(dt),m=n(Pe),S=ut,$=n(pp),b=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,f=/''/g,g=/[a-zA-Z]/;function p(x,C,O){var P,I,T,j,N,z,E,M,H,q,X,V,_,R,K,ne,re,Q;(0,m.default)(2,arguments);var ae=String(C),te=(0,S.getDefaultOptions)(),G=(P=(I=O==null?void 0:O.locale)!==null&&I!==void 0?I:te.locale)!==null&&P!==void 0?P:$.default,we=(0,u.default)((T=(j=(N=(z=O==null?void 0:O.firstWeekContainsDate)!==null&&z!==void 0?z:O==null||(E=O.locale)===null||E===void 0||(M=E.options)===null||M===void 0?void 0:M.firstWeekContainsDate)!==null&&N!==void 0?N:te.firstWeekContainsDate)!==null&&j!==void 0?j:(H=te.locale)===null||H===void 0||(q=H.options)===null||q===void 0?void 0:q.firstWeekContainsDate)!==null&&T!==void 0?T:1);if(!(we>=1&&we<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var De=(0,u.default)((X=(V=(_=(R=O==null?void 0:O.weekStartsOn)!==null&&R!==void 0?R:O==null||(K=O.locale)===null||K===void 0||(ne=K.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&_!==void 0?_:te.weekStartsOn)!==null&&V!==void 0?V:(re=te.locale)===null||re===void 0||(Q=re.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&X!==void 0?X:0);if(!(De>=0&&De<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!G.localize)throw new RangeError("locale must contain localize property");if(!G.formatLong)throw new RangeError("locale must contain formatLong property");var U=(0,i.default)(x);if(!(0,r.default)(U))throw new RangeError("Invalid time value");var F=(0,s.default)(U),W=(0,o.default)(U,F),A={firstWeekContainsDate:we,weekStartsOn:De,locale:G,_originalDate:U},Y=ae.match(y).map(function(B){var k=B[0];if(k==="p"||k==="P"){var J=l.default[k];return J(B,G.formatLong)}return B}).join("").match(b).map(function(B){if(B==="''")return"'";var k=B[0];if(k==="'")return v(B);var J=a.default[k];if(J)return!(O!=null&&O.useAdditionalWeekYearTokens)&&(0,d.isProtectedWeekYearToken)(B)&&(0,d.throwProtectedError)(B,C,String(x)),!(O!=null&&O.useAdditionalDayOfYearTokens)&&(0,d.isProtectedDayOfYearToken)(B)&&(0,d.throwProtectedError)(B,C,String(x)),J(W,B,G.localize,A);if(k.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return B}).join("");return Y}function v(x){var C=x.match(h);return C?C[1].replace(f,"'"):x}e.exports=t.default})(Dn,Dn.exports);var gp=Dn.exports;const hp=Zt(gp);function po(e,t,n){var r=$p(e,n.timeZone,n.locale);return r.formatToParts?bp(r,t):vp(r,t)}function bp(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function vp(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function $p(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Sp(e,t){var n=wp(t);return n.formatToParts?xp(n,e):Cp(n,e)}var yp={year:0,month:1,day:2,hour:3,minute:4,second:5};function xp(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=yp[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function Cp(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var fn={};function wp(e){if(!fn[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";fn[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return fn[e]}function ki(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var go=36e5,Op=6e4,pn={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Nr(e,t,n){var r,o;if(!e||(r=pn.timezoneZ.exec(e),r))return 0;var i;if(r=pn.timezoneHH.exec(e),r)return i=parseInt(r[1],10),ho(i)?-(i*go):NaN;if(r=pn.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return ho(i,a)?(o=Math.abs(i)*go+a*Op,i>0?-o:o):NaN}if(Tp(e)){t=new Date(t||Date.now());var l=n?t:Ip(t),s=cr(l,e),d=n?s:Ep(t,s,e);return-d}return NaN}function Ip(e){return ki(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function cr(e,t){var n=Sp(e,t),r=ki(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function Ep(e,t,n){var r=e.getTime(),o=r-t,i=cr(new Date(o),n);if(t===i)return t;o-=i-t;var a=cr(new Date(o),n);return i===a?i:Math.max(i,a)}function ho(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var bo={};function Tp(e){if(bo[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),bo[e]=!0,!0}catch{return!1}}var Pp=60*1e3,Dp={X:function(e,t,n,r){var o=gn(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return vo(o);case"XXXX":case"XX":return bt(o);case"XXXXX":case"XXX":default:return bt(o,":")}},x:function(e,t,n,r){var o=gn(r.timeZone,r._originalDate||e);switch(t){case"x":return vo(o);case"xxxx":case"xx":return bt(o);case"xxxxx":case"xxx":default:return bt(o,":")}},O:function(e,t,n,r){var o=gn(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Mp(o,":");case"OOOO":default:return"GMT"+bt(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return po("short",o,r);case"zzzz":default:return po("long",o,r)}}};function gn(e,t){var n=e?Nr(e,t,!0)/Pp:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Vt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function bt(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Vt(Math.floor(o/60),2),a=Vt(Math.floor(o%60),2);return r+i+n+a}function vo(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Vt(Math.abs(e)/60,2)}return bt(e,t)}function Mp(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Vt(i,2)}const _p=Dp;var jp=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,hn=36e5,$o=6e4,Np=2,Te={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:jp};function Ui(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?Np:Lf(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Bp(e),i=zp(o.date,r),a=i.year,l=i.restDateString,s=Hp(l,a);if(isNaN(s))return new Date(NaN);if(s){var d=s.getTime(),u=0,m;if(o.time&&(u=Rp(o.time),isNaN(u)))return new Date(NaN);if(o.timeZone||n.timeZone){if(m=Nr(o.timeZone||n.timeZone,new Date(d+u)),isNaN(m))return new Date(NaN)}else m=fo(new Date(d+u)),m=fo(new Date(d+u+m));return new Date(d+u+m)}else return new Date(NaN)}function Bp(e){var t={},n=Te.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Te.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=Te.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function zp(e,t){var n=Te.YYY[t],r=Te.YYYYY[t],o;if(o=Te.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=Te.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function Hp(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=Te.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,yo(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=Te.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return Ap(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=Te.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return yo(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=Te.Www.exec(e),n)return i=parseInt(n[1],10)-1,xo(t,i)?So(t,i):new Date(NaN);if(n=Te.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return xo(t,i,s)?So(t,i,s):new Date(NaN)}return null}function Rp(e){var t,n,r;if(t=Te.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),bn(n)?n%24*hn:NaN;if(t=Te.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),bn(n,r)?n%24*hn+r*$o:NaN;if(t=Te.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return bn(n,r,o)?n%24*hn+r*$o+o*1e3:NaN}return null}function So(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var Fp=[31,28,31,30,31,30,31,31,30,31,30,31],Lp=[31,29,31,30,31,30,31,31,30,31,30,31];function Xi(e){return e%400===0||e%4===0&&e%100!==0}function yo(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=Xi(e);if(r&&n>Lp[t]||!r&&n>Fp[t])return!1}return!0}function Ap(e,t){if(t<1)return!1;var n=Xi(e);return!(n&&t>366||!n&&t>365)}function xo(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function bn(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var Wp=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function qp(e,t,n){var r=String(t),o=n||{},i=r.match(Wp);if(i){var a=Ui(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var d=l.indexOf(s),u=l[d-1]==="'",m=l.replace(s,"'"+_p[s[0]](a,s,null,o)+"'");return u?m.substring(0,d-1)+m.substring(d+1):m},r)}return hp(e,r,o)}var dr={exports:{}},ur={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(ur,ur.exports);var kp=ur.exports;(function(e,t){var n=ue.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(kp);function o(i){return(0,r.default)({},i)}e.exports=t.default})(dr,dr.exports);var Up=dr.exports;const Xp=Zt(Up);function Yp(e,t,n){var r=Ui(e,n),o=Nr(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function Mt(e,t,n,r){var o=Xp(r);return o.timeZone=t,qp(Yp(e,t),n,o)}const Co=({className:e})=>D.jsx("svg",{className:`${e}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 9",children:D.jsx("path",{d:"M8.51675 5.16427H1.08341C0.894526 5.16427 0.736192 5.10039 0.608415 4.97261C0.480637 4.84483 0.416748 4.6865 0.416748 4.49761C0.416748 4.30872 0.480637 4.15039 0.608415 4.02261C0.736192 3.89483 0.894526 3.83094 1.08341 3.83094H8.51675L6.61675 1.93094C6.48341 1.79761 6.41953 1.64205 6.42508 1.46427C6.43064 1.2865 6.49453 1.13094 6.61675 0.997607C6.75008 0.864274 6.90841 0.794829 7.09175 0.789274C7.27508 0.783718 7.43341 0.847607 7.56675 0.98094L10.6167 4.03094C10.6834 4.09761 10.7306 4.16983 10.7584 4.24761C10.7862 4.32539 10.8001 4.40872 10.8001 4.49761C10.8001 4.5865 10.7862 4.66983 10.7584 4.74761C10.7306 4.82539 10.6834 4.89761 10.6167 4.96427L7.56675 8.01427C7.43341 8.14761 7.27508 8.2115 7.09175 8.20594C6.90841 8.20039 6.75008 8.13094 6.61675 7.99761C6.49453 7.86427 6.43064 7.70872 6.42508 7.53094C6.41953 7.35316 6.48341 7.19761 6.61675 7.06427L8.51675 5.16427Z",fill:"black"})});function Vp(e){const{graph:t}=fa("graph"),{allNodes:n}=ko(r=>({allNodes:r.allNodes}));return c.useMemo(()=>{var s;const r=t.node(e);if(!r)return[];if(r.type!=="Benchmark_Result")return[];let o=t.predecessors(e),i=new Set;for(;o&&o.length;){let d=[];for(const u of o)if(((s=t.node(u).type)==null?void 0:s.toLowerCase())!=="model"){i.add(u);const S=t.predecessors(u);d.push(...S)}o=d}const a=Array.from(i.values()),l=n.filter(d=>i.has(d.id));return l.sort((d,u)=>a.indexOf(d.id)-a.indexOf(u.id)),l},[t,n,e])}function Kp(e,t){const n=Mr(e.node.properties.timestamp),r=[{label:"Node ID",data:{rawString:e.node.id,renderFunction:i=>D.jsx(fe,{value:i})}},{label:"Date",data:{rawString:Mt(n,"UTC","MMMM d, yyyy")}},{label:"Time",data:{rawString:`${Mt(n,"UTC","HH:mm:ss")} UTC`}},{label:"Registered By",data:{rawString:e.node.properties.registeredBy,renderFunction:i=>i.user?i.user.url?D.jsx(D.Fragment,{children:D.jsx("a",{href:i.user.url,target:"_blank",rel:"noopener noreferrer",children:D.jsx("div",{children:i.user.name})})}):D.jsx("div",{children:i.user.name}):D.jsx(fe,{value:i.did})}}],o=t.find(Qp);if(o)for(const[i,a]of o.data.entries())r.push({label:i===0?"Anchored On":"",data:{rawString:`${a.type}:${a.id}`,renderFunction:l=>D.jsx("a",{href:a.link,target:"_blank",children:D.jsx(fe,{value:l})})}});return e.node.properties.storedOn&&r.push({label:"Stored On",data:{rawString:e.node.properties.storedOn[0],renderFunction:i=>D.jsx(fe,{value:i})}}),e.node.properties.executedOn&&r.push({label:"Executed On",data:{rawString:e.node.properties.executedOn,renderFunction:i=>i.user?D.jsxs(D.Fragment,{children:[D.jsxs("div",{children:[i.user.firstName," ",i.user.lastName]}),D.jsx(fe,{value:i.did})]}):D.jsx(fe,{value:i.did})}}),e.node.properties.operatedBy&&r.push({label:"Operated By",data:{rawString:e.node.properties.operatedBy,renderFunction:i=>i.user?D.jsxs(D.Fragment,{children:[D.jsxs("div",{children:[i.user.firstName," ",i.user.lastName]}),D.jsx(fe,{value:i.did})]}):D.jsx(fe,{value:i.did})}}),e.node.properties.computation&&r.push({label:"Computation",data:{rawString:e.node.properties.computation,renderFunction:i=>D.jsx(fe,{value:i})}}),{title:{rawString:"Registration",renderFunction:i=>D.jsx(Bi,{value:i,link:`${Uo()}/${et(e.node.id,"urn:cid:")}.node`})},sections:[{items:r}]}}function Gp(e,t,n){var o,i;const r=[];if(t.length&&r.push({title:{rawString:"Governance"},sections:t.map(a=>{var d,u,m;const l=Mr(a.node.properties.timestamp),s=[{label:"Name",data:{rawString:((u=(d=a.enrichments)==null?void 0:d.governance)==null?void 0:u.name)||a.node.id}},{label:"Initiated By",data:{rawString:((m=a.enrichments.governance)==null?void 0:m.initiating_user)||a.node.properties.registeredBy,renderFunction:S=>S.user?D.jsxs(D.Fragment,{children:[D.jsxs("div",{children:[S.user.firstName," ",S.user.lastName]}),D.jsx(fe,{value:S.did})]}):D.jsx(fe,{value:S.did})}},{label:"Resolved On",data:{rawString:Mt(l,"UTC","MMMM, d, yyyy")}}];return a.node.properties.request&&s.push({label:"Request",data:{rawString:a.node.properties.request,renderFunction:S=>D.jsx(fe,{value:S})}}),a.node.properties.result&&s.push({label:"Result",data:{rawString:a.node.properties.result,renderFunction:S=>D.jsx(fe,{value:S})}}),{items:s}})}),e.node.properties.nodeType==="data"&&((o=e.enrichments)!=null&&o.asset_hub)){const a=e.enrichments.asset_hub,l=[];a.asset_name&&l.push({label:"Name",data:{rawString:a.asset_name}}),a.owning_project&&l.push({label:"Project",data:{rawString:a.owning_project}}),a.asset_description&&l.push({label:"Description",data:{rawString:a.asset_description}}),l.length>0&&r.push({title:{rawString:"Asset"},sections:[{items:l}]});const s=[];a.asset_format&&s.push({label:"Format",data:{rawString:a.asset_format}}),a.source_location_url&&s.push({label:"Location",data:{rawString:a.source_location_url,renderFunction:d=>D.jsx("a",{href:d,target:"_blank",children:d})}}),a.contact_info&&s.push({label:"Contact",data:{rawString:a.contact_info}}),a.license&&s.push({label:"License",data:{rawString:a.license,renderFunction:d=>a.license_link?D.jsx("a",{href:a.license_link,target:"_blank",children:d}):a.license}}),a.registered_date&&s.push({label:"Created",data:{rawString:a.registered_date}}),a.last_modified_date&&s.push({label:"Last Modified",data:{rawString:a.last_modified_date}}),s.length>0&&r.push({title:{rawString:a.asset_type?a.asset_type:"File"},sections:[{items:s}]})}if(e.node.properties.nodeType==="computation"&&((i=e.enrichments)!=null&&i.asset_hub)){const a=e.enrichments.asset_hub,l=[];a.asset_name&&l.push({label:"Name",data:{rawString:a.asset_name}}),a.owning_project&&l.push({label:"Project",data:{rawString:a.owning_project}}),a.asset_description&&l.push({label:"Description",data:{rawString:a.asset_description}}),a.source_location_url&&l.push({label:"Location",data:{rawString:a.source_location_url,renderFunction:u=>D.jsx("a",{href:u,download:!0,children:u})}}),a.contact_info&&l.push({label:"Contact",data:{rawString:a.contact_info}}),a.registered_date&&l.push({label:"Created",data:{rawString:a.registered_date}}),l.length>0&&r.push({title:{rawString:"Computation"},sections:[{items:l}]});const s=[],d=n.find(Yi);if(d!=null&&d.data.files["report.amd"]){const u="https://literate-adventure-1w9zw5r.pages.github.io/",m=d.data.files["report.amd"],S=e.node.properties.registeredBy,$=`${u}?report=${m}&did=${S}`;s.push({label:"AMD SEV",data:{rawString:`${u}?...`,renderFunction:b=>D.jsx("a",{href:$,children:b})}})}if(d!=null&&d.data.files["report.nvidia"]){const u="https://literate-adventure-1w9zw5r.pages.github.io/nvidia.html",m=d.data.files["report.nvidia"],S=e.node.properties.registeredBy,$=`${u}?report=${m}&did=${S}`;s.push({label:"NVIDIA CC",data:{rawString:`${u}?...`,renderFunction:b=>D.jsx("a",{href:$,children:b})}})}s.length>0&&r.push({title:{rawString:"TEE Attestations"},sections:[{items:s}]})}return r}function Zp(e){const t=[];if(e.length)for(const n of e){const r=Mr(n.data.properties.timestamp),o=[{label:"Node ID",data:{rawString:n.id,renderFunction:i=>D.jsx(fe,{value:i})}},{label:"Date",data:{rawString:Mt(r,"UTC","MMMM, d, yyyy")}},{label:"Time",data:{rawString:`${Mt(r,"UTC","HH:mm:ss")} UTC`}},{label:"Registered By",data:{rawString:n.data.properties.registeredBy,renderFunction:i=>i.startsWith("did:key:")?D.jsx(fe,{value:i}):i}}];n.data.properties.storedOn&&o.push({label:"Stored On",data:{rawString:n.data.properties.storedOn[0],renderFunction:i=>D.jsx(fe,{value:i})}}),n.data.properties.executedOn&&o.push({label:"Executed On",data:{rawString:n.data.properties.executedOn,renderFunction:i=>i.startsWith("did:key:")?D.jsx(fe,{value:i}):i}}),n.data.properties.operatedBy&&o.push({label:"Operated By",data:{rawString:n.data.properties.operatedBy,renderFunction:i=>i.startsWith("did:key:")?D.jsx(fe,{value:i}):i}}),n.data.properties.computation&&o.push({label:"Computation",data:{rawString:n.data.properties.computation,renderFunction:i=>D.jsx(fe,{value:i})}}),t.push({title:{rawString:n.data.label,renderFunction:i=>D.jsx(Bi,{multiline:!0,value:i,link:`${Uo()}/${et(n.id,"urn:cid:")}.node`})},sections:[{items:o}]})}return t}function Yi(e){return e.type==="iroh-collection"}function Qp(e){return e.type==="anchor"}const Jp=({node:e,governanceNodes:t,metadata:n,onCloseClick:r})=>{var z,E,M;const{graphState:o,vcsToGraph:i}=ko(H=>({graphState:H.graphState,vcsToGraph:H.vcsToGraph}));if(!e)return D.jsx(D.Fragment,{});let a=Vp(e.node.id);const l=Zp(a),s=pa(),d=No(),u=Bo(),m=s.pathname.endsWith("/expanded"),[S]=zo();et(e.node.id,"urn:cid:");const $=qa(e.node.id,i),b=Kp(e,n),y=Gp(e,t,n),h=(E=(z=e.enrichments)==null?void 0:z.asset_hub)==null?void 0:E.asset_blob_type,f=h==="iroh-collection"||h==="prolly-tree",g=n.find(Yi),p=e.node.properties.nodeType==="computation"?"computation":e.enrichments.asset_hub?(M=e.enrichments.asset_hub)==null?void 0:M.asset_type:e.node.properties.nodeType,{iconId:v,displayType:x,color:C}=ka(p),O=Ua(v),P={"--node-color-top":o==="vc-on"?Xa[$]:C||"","--text-color":o==="vc-on"?"black":"white"},I=()=>{d(m?`${Sn(`${u.owner}/${u.repo}`)}/${e.node.id}?${S.toString()}`:`${Sn(`${u.owner}/${u.repo}`)}/${e.node.id}/expanded?${S.toString()}`)},T=L(Se.sidebar,{[Se.sidebarIsExpanded]:m}),j=L(Se.arrow,{[Se.isVisible]:m}),N=L(Se.arrow,{[Se.isLeftPointing]:!0,[Se.isVisible]:!m});return D.jsxs("div",{style:P,className:T,children:[D.jsxs("div",{className:Se.topBar,children:[D.jsx("span",{className:Se.icon,children:O&&D.jsx(O,{})}),D.jsx(il,{level:4,className:Se.displayType,children:x}),D.jsx(St,{onClick:r,className:Se.closeButton,type:"text",children:D.jsx(Io,{style:{color:ga.white}})})]}),D.jsxs("div",{className:Se.content,children:[m&&h?D.jsxs(D.Fragment,{children:[D.jsx(Pn,{data:b}),D.jsx("div",{className:Se.expandedSection,children:h==="iroh-collection"&&D.jsx(Sf,{type:h,folder:g==null?void 0:g.data})})]}):D.jsxs(D.Fragment,{children:[l.length>0&&D.jsx(ha,{theme:{components:{Collapse:{contentPadding:"0",headerPadding:"0 1.33em"}}},children:D.jsx(Cc,{bordered:!1,className:Se.collapse,items:[{key:"related",label:D.jsx("h3",{style:{margin:0,fontSize:"1.25rem"},children:"Related Nodes"}),children:D.jsx(mo,{sections:l}),style:{border:"none"}}]})}),D.jsx(mo,{sections:y}),D.jsx(Pn,{data:b})]}),f&&D.jsx("div",{className:Se.footer,children:D.jsxs("button",{className:Se.moreButton,onClick:I,children:[D.jsx("span",{className:N,children:D.jsx(Co,{className:Se.svg})}),D.jsx("span",{children:m?"Show less":"Show more"}),D.jsx("span",{className:j,children:D.jsx(Co,{className:Se.svg})})]})})]})]})};function ag(){const e=No(),t=Bo(),n=ba(),[{targetNode:r,governanceNodes:o,metadata:i},a]=c.useState(n),[l]=zo();return c.useEffect(()=>{n&&a(n)},[n]),D.jsx(Jp,{node:r,governanceNodes:o,metadata:i,onCloseClick:()=>{e(Sn(`${t.owner}/${t.repo}`)+`?${l.toString()}`)}})}async function lg({request:e}){const t=new URL(e.url),n=t.searchParams,r=t.pathname.split("/"),i=r[r.length-1]==="expanded"?r[r.length-2]:r[r.length-1];return n.get("search")?await uo(i??"",!0):await uo(i??"",!1)}export{ag as Component,lg as loader};
|