From 737d6ee1b6e6d6b952695a3b7d4733b094ec64f1 Mon Sep 17 00:00:00 2001 From: GinHa <15201596918@163.com> Date: Fri, 5 Jun 2026 10:18:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=AE=B0=E5=BD=95=E5=88=9B=E4=BD=9C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=93=8D=E4=BD=9C=E6=98=BE=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-CllfooUi.js => index-BBz1j0L-.js} | 40 +- video-gen-admin/dist/index.html | 27 +- .../src/pages/AdminCreditRecords.tsx | 22 +- .../src/pages/AdminGenerationAiRecords.tsx | 36 +- .../src/pages/AdminGenerationRecords.tsx | 1007 +++++++++++++---- video-gen-admin/src/types/index.ts | 19 +- video-gen-api/.env | 2 +- video-gen-api/app/api/v1/sms.py | 6 +- video-gen-api/app/services/sms.py | 6 +- 9 files changed, 904 insertions(+), 261 deletions(-) rename video-gen-admin/dist/assets/{index-CllfooUi.js => index-BBz1j0L-.js} (82%) diff --git a/video-gen-admin/dist/assets/index-CllfooUi.js b/video-gen-admin/dist/assets/index-BBz1j0L-.js similarity index 82% rename from video-gen-admin/dist/assets/index-CllfooUi.js rename to video-gen-admin/dist/assets/index-BBz1j0L-.js index 42704933..80342d54 100644 --- a/video-gen-admin/dist/assets/index-CllfooUi.js +++ b/video-gen-admin/dist/assets/index-BBz1j0L-.js @@ -231,7 +231,7 @@ html body { ${t}-col-xl-24${n}-label`]:Lj(e)}}},zj=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label, > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},Bj=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Lj(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},Vj=e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:`auto`},[`${n}-control`]:{width:`100%`},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Lj(e)},[`@media (max-width: ${J(e.screenXSMax)})`]:[Bj(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Lj(e)}}}],[`@media (max-width: ${J(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Lj(e)}}},[`@media (max-width: ${J(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Lj(e)}}},[`@media (max-width: ${J(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Lj(e)}}}}},Hj=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Uj=(e,t)=>hs(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Wj=nl(`Form`,(e,{rootPrefixCls:t})=>{let n=Uj(e,t);return[Fj(n),Ij(n),Mj(n),Rj(n),zj(n),Vj(n),fh(n),Lh]},Hj,{order:-1e3}),Gj=[];function Kj(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var qj=({help:e,helpStatus:t,errors:n=Gj,warnings:r=Gj,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=x.useContext(ny),c=`${s}-item-explain`,l=sf(s),[u,d]=Wj(s,l),f=x.useMemo(()=>Fm(s),[s]),p=jj(n),m=jj(r),h=x.useMemo(()=>ud(e)?[Kj(e,`help`,t)]:[].concat(Xr(p.map((e,t)=>Kj(e,`error`,`error`,t))),Xr(m.map((e,t)=>Kj(e,`warning`,`warning`,t)))),[e,t,p,m]),g=x.useMemo(()=>{let e={};return h.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),h.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[h]),_={};return a&&(_.id=`${a}_help`),x.createElement(Pu,{motionDeadline:f.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return x.createElement(`div`,{..._,className:q(c,t,d,l,i,u),style:n},x.createElement(Nu,{keys:g,...Fm(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return x.createElement(`div`,{key:t,className:q(i,{[`${c}-${r}`]:r}),style:a},n)}))})},Jj=x.forwardRef((e,t)=>{let n=x.useContext(Ep),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f}=ci(`form`),{prefixCls:p,className:m,rootClassName:h,size:g,disabled:_=n,form:v,colon:y,labelAlign:b,labelWrap:S,labelCol:C,wrapperCol:w,layout:T=`horizontal`,scrollToFirstError:E,requiredMark:D,onFinishFailed:O,name:k,style:A,feedbackIcons:j,variant:M,classNames:N,styles:P,tooltip:F,...I}=e,L=Km(g),R=x.useContext(cf),z=x.useMemo(()=>D===void 0?a===void 0?!0:a:D,[D,a]),B=y??o,V={...f,...F},H=r(`form`,p),U=sf(H),[W,ee]=Wj(H,U),te={...e,size:L,disabled:_,layout:T,colon:B,requiredMark:z},[ne,re]=Nd([d,N],[u,P],{props:te}),G=q(H,`${H}-${T}`,{[`${H}-hide-required-mark`]:z===!1,[`${H}-rtl`]:i===`rtl`,[`${H}-large`]:L===`large`,[`${H}-small`]:L===`small`},ee,U,W,c,m,h,ne.root),[ie]=SD(v),{__INTERNAL__:ae}=ie;ae.name=k;let oe=x.useMemo(()=>({name:k,labelAlign:b,labelCol:C,labelWrap:S,wrapperCol:w,layout:T,colon:B,requiredMark:z,itemRef:ae.itemRef,form:ie,feedbackIcons:j,tooltip:V,classNames:ne,styles:re}),[k,b,C,w,T,B,z,ie,j,ne,re,V]),K=x.useRef(null);x.useImperativeHandle(t,()=>({...ie,nativeElement:K.current?.nativeElement}));let se=(e,t)=>{if(e){let n={block:`nearest`};pd(e)&&(n={...n,...e}),ie.scrollToField(t,n)}},ce=e=>{if(O?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(E!==void 0){se(E,t);return}s!==void 0&&se(s,t)}};return x.createElement(ay.Provider,{value:M},x.createElement(Dp,{disabled:_},x.createElement(Op.Provider,{value:L},x.createElement(ty,{validateMessages:R},x.createElement($v.Provider,{value:oe},x.createElement(iy,{status:!0},x.createElement(Qv,{id:k,...I,name:k,onFinishFailed:ce,form:ie,ref:K,style:{...re?.root,...l,...A},className:G})))))))});function Yj(e){if(typeof e==`function`)return e;let t=Sr(e);return t.length<=1?t[0]:t}var Xj=()=>{let{status:e,errors:t=[],warnings:n=[]}=x.useContext(ry);return{status:e,errors:t,warnings:n}};Xj.Context=ry;function Zj(e){let[t,n]=x.useState(e),r=x.useRef(null),i=x.useRef([]),a=x.useRef(!1);x.useEffect(()=>(a.current=!1,()=>{a.current=!0,ni.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=ni(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var Qj=()=>{let{itemRef:e}=x.useContext($v),t=x.useRef({});function n(n,r){let i=r&&typeof r==`object`&&rr(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Qn(e(n),i)),t.current.ref}return n},$j=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},eM=il([`Form`,`item-item`],(e,{rootPrefixCls:t})=>$j(Uj(e,t))),tM=24,nM=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=x.useContext($v),{classNames:_,styles:v}=g,y=x.useMemo(()=>{let e={...i||g.wrapperCol||{}};return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(Xr(ew)).forEach(t=>{let n=t?[t]:[],r=ir(g.labelCol,n),i=pd(r)?r:{},a=ir(e,n),o=pd(a)?a:{};`span`in i&&!(`offset`in o)&&i.span{let{labelCol:e,wrapperCol:t,...n}=g;return n},[g]),C=x.useRef(null),[w,T]=x.useState(0);Rn(()=>{l&&C.current?T(C.current.clientHeight):T(0)},[l]);let E=x.createElement(`div`,{className:`${h}-control-input`},x.createElement(`div`,{className:q(`${h}-control-input-content`,_?.content),style:v?.content},a)),D=x.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=f!==null||o.length||s.length?x.createElement(ny.Provider,{value:D},x.createElement(qj,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,k={};d&&(k.id=`${d}_extra`);let A=l?x.createElement(`div`,{...k,className:`${h}-extra`,ref:C},l):null,j=O||A?x.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+w}:{}},O,A):null,M=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:E,errorList:O,extra:A}):x.createElement(x.Fragment,null,E,j);return x.createElement($v.Provider,{value:S},x.createElement(sA,{...y,className:b},M),x.createElement(eM,{prefixCls:t}))},rM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`};function iM(){return iM=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iM({},e,{ref:t,icon:rM}))),oM=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=od(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=x.useContext($v);if(!t)return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,S=q(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),C=t,w=a===!0||m!==!1&&a!==!1;w&&!l&&typeof t==`string`&&t.trim()&&(C=t.replace(/[:|:]\s*$/,``));let T=Aj(c,_);if(T){let t=x.createElement(Bw,{...T},x.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},T.icon||T.children||x.createElement(aM,null)));C=x.createElement(x.Fragment,null,C,t)}let E=s===`optional`,D=typeof s==`function`,O=s===!1;D?C=s(C,{required:!!o}):E&&!o&&(C=x.createElement(x.Fragment,null,C,x.createElement(`span`,{className:`${e}-item-optional`,title:``},u?.optional||$u.Form?.optional)));let k;O?k=`hidden`:(E||D)&&(k=`optional`);let A=q(h?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!w});return x.createElement(sA,{...v,className:S},x.createElement(`label`,{htmlFor:n,className:A,style:g?.label,title:typeof t==`string`?t:``},C))},sM={success:Al,warning:zl,error:Nl,validating:um};function cM({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=x.useContext($v),d=yD(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=x.useContext(ry),_=x.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?sM[d]:null;e=a!==!1&&o?x.createElement(`span`,{className:q(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||x.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??m),i.feedbackIcon=r===void 0?h:i.feedbackIcon,i.name=c??g),i},[d,r,s,f,p]);return x.createElement(ry.Provider,{value:_},e)}function lM(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g,layout:_,name:v,...y}=e,b=`${t}-item`,{requiredMark:S,layout:C}=x.useContext($v),w=_||C,T=w===`vertical`,E=x.useRef(null),D=jj(o),O=jj(s),k=ud(a),A=!!(k||o.length||s.length),j=!!E.current&&Yf(E.current),[M,N]=x.useState(null);Rn(()=>{if(A&&E.current){let e=getComputedStyle(E.current);N(Number.parseInt(e.marginBottom,10))}},[A,j]);let P=e=>{e||N(null)},F=((e=!1)=>yD(e?D:l.errors,e?O:l.warnings,l,``,!!u,c))(),I=q(b,n,r,{[`${b}-with-help`]:k||D.length||O.length,[`${b}-has-feedback`]:F&&u,[`${b}-has-success`]:F===`success`,[`${b}-has-warning`]:F===`warning`,[`${b}-has-error`]:F===`error`,[`${b}-is-validating`]:F===`validating`,[`${b}-hidden`]:d,[`${b}-${w}`]:w});return x.createElement(`div`,{className:I,style:i,ref:E},x.createElement(uA,{className:`${b}-row`,...xr(y,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},x.createElement(oM,{htmlFor:p,...e,requiredMark:S,required:m??h,prefixCls:t,vertical:T}),x.createElement(nM,{...e,...l,errors:D,warnings:O,prefixCls:t,status:F,help:a,marginBottom:M,onErrorVisibleChanged:P},x.createElement(ey.Provider,{value:g},x.createElement(cM,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:F,name:v},f)))),!!M&&x.createElement(`div`,{className:`${b}-margin-offset`,style:{marginBottom:-M}}))}var uM=`__SPLIT__`;function dM(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||typeof r==`function`||typeof i==`function`})}var fM=x.memo(e=>e.children,(e,t)=>dM(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function pM(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mM(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:m,help:h,layout:g}=e,{getPrefixCls:_}=x.useContext(ai),{name:v}=x.useContext($v),y=Yj(c),b=typeof y==`function`,S=x.useContext(ey),{validateTrigger:C}=x.useContext(g_),w=ud(p)?p:C,T=ud(t),E=_(`form`,a),D=sf(E),[O,k]=Wj(E,D);Er(`Form.Item`);let A=x.useContext(__),j=x.useRef(null),[M,N]=Zj({}),[P,F]=Bn(()=>pM()),I=e=>{let t=A?.getKey(e.name);if(F(e.destroy?pM():e,!0),n&&h!==!1&&S){let n=e.name;if(e.destroy)n=j.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(Xr(r)),j.current=n}S(e,n)}},L=(e,t)=>{N(n=>{let r={...n},i=[].concat(Xr(e.name.slice(0,-1)),Xr(t)).join(uM);return e.destroy?delete r[i]:r[i]=e,r})},[R,z]=x.useMemo(()=>{let e=Xr(P.errors),t=Xr(P.warnings);return Object.values(M).forEach(n=>{e.push.apply(e,Xr(n.errors||[])),t.push.apply(t,Xr(n.warnings||[]))}),[e,t]},[M,P.errors,P.warnings]),B=Qj();function V(i,a,o){return n&&!m?x.createElement(cM,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:R,warnings:z,noStyle:!0,name:t},i):x.createElement(lM,{key:`row`,...e,className:q(r,k,D,O),prefixCls:E,fieldId:a,isRequired:o,errors:R,warnings:z,meta:P,onSubItemMetaChange:L,layout:g,name:t},i)}if(!T&&!b&&!i)return V(y);let H={};return typeof u==`string`?H.label=u:t&&(H.label=String(t)),d&&(H={...H,...d}),x.createElement(Rv,{...e,messageVariables:H,trigger:f,validateTrigger:w,onMetaChange:I},(n,r,a)=>{let c=_D(t).length&&r?r.name:[],u=vD(c,v),d=l===void 0?s?.some(e=>{if(pd(e)&&e.required&&!e.warningOnly)return!0;if(typeof e==`function`){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(y)&&T)m=y;else if(!(b&&(!(o||i)||T))&&!(i&&!b&&!T))if(x.isValidElement(y)){let t={...y.props,...p};if(t.id||=u,h||R.length>0||z.length>0||e.extra){let n=[];(h||R.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}R.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),er(y)&&(t.ref=B(c,y)),new Set([].concat(Xr(_D(f)),Xr(_D(w)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),y.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=x.createElement(fM,{control:p,update:y,childProps:n},xp(y,t))}else m=b&&(o||i)&&!T?y(a):y;return V(m,u,d)})}var hM=mM;hM.useStatus=Xj;var gM=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=x.useContext(ai),i=r(`form`,e),a=x.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return x.createElement(zv,{...n},(e,n,r)=>x.createElement(ny.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function _M(){let{form:e}=x.useContext($v);return e}var Z=Jj;Z.Item=hM,Z.List=gM,Z.ErrorList=qj,Z.useForm=SD,Z.useFormInstance=_M,Z.useWatch=Zv,Z.Provider=ty;var vM=x.createContext(null);function yM(e){return new Promise(t=>{if(!e){t(!1);return}let n=document.createElement(`img`);n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}function bM(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var xM={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function SM(e,t,n,r){let i=(0,x.useRef)(null),a=(0,x.useRef)([]),[o,s]=(0,x.useState)(xM),c=e=>{s(xM),wi(xM,o)||r?.({transform:xM,action:e})},l=(e,t)=>{i.current===null&&(a.current=[],i.current=ni(()=>{s(e=>{let n=e;return a.current.forEach(e=>{n={...n,...e}}),i.current=null,r?.({transform:n,action:t}),n})})),a.current.push({...o,...e})};return{transform:o,resetTransform:c,updateTransform:l,dispatchZoomChange:(r,i,a,s,c)=>{let{width:u,height:d,offsetWidth:f,offsetHeight:p,offsetLeft:m,offsetTop:h}=e.current,g=r,_=o.scale*r;_>n?(_=n,g=n/o.scale):_r){if(t>0)return{[e]:a};if(t<0&&ir)return{[e]:t<0?a:-a};return{}}function wM(e,t,n,r){let{width:i,height:a}=bM(),o=null;return e<=i&&t<=a?o={x:0,y:0}:(e>i||t>a)&&(o={...CM(`x`,n,e,i),...CM(`y`,r,t,a)}),o}function TM(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,x.useState)(!1),p=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),m=e=>{!t||e.button!==0||(e.preventDefault(),e.stopPropagation(),p.current={diffX:e.pageX-l,diffY:e.pageY-u,transformX:l,transformY:u},f(!0))},h=e=>{n&&d&&a({x:e.pageX-p.current.diffX,y:e.pageY-p.current.diffY},`move`)},g=()=>{if(n&&d){f(!1);let{transformX:t,transformY:n}=p.current;if(!(l!==t&&u!==n))return;let r=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:d}=e.current.getBoundingClientRect(),m=s%180!=0,h=wM(m?i:r,m?r:i,o,d);h&&a({...h},`dragRebound`)}};return(0,x.useEffect)(()=>{if(t){window.addEventListener(`mouseup`,g,!1),window.addEventListener(`mousemove`,h,!1);try{window.top!==window.self&&(window.top.addEventListener(`mouseup`,g,!1),window.top.addEventListener(`mousemove`,h,!1))}catch(e){`${e}`}}return()=>{window.removeEventListener(`mouseup`,g),window.removeEventListener(`mousemove`,h);try{window.top?.removeEventListener(`mouseup`,g),window.top?.removeEventListener(`mousemove`,h)}catch{}}},[n,d,l,u,s,t]),{isMoving:d,onMouseDown:m,onMouseMove:h,onMouseUp:g,onWheel:e=>{if(!n||e.deltaY==0)return;let t=Math.abs(e.deltaY/100),i=1+Math.min(t,1)*r;e.deltaY>0&&(i=1/i),o(i,`wheel`,e.clientX,e.clientY)}}}function EM({src:e,isCustomPlaceholder:t,fallback:n}){let[r,i]=(0,x.useState)(t?`loading`:`normal`),a=(0,x.useRef)(!1),o=r===`error`;(0,x.useEffect)(()=>{let t=!0;return yM(e).then(e=>{!e&&t&&i(`error`)}),()=>{t=!1}},[e]),(0,x.useEffect)(()=>{t&&!a.current?i(`loading`):o&&i(`normal`)},[e]);let s=()=>{i(`normal`)};return[e=>{a.current=!1,r===`loading`&&e?.complete&&(e.naturalWidth||e.naturalHeight)&&(a.current=!0,s())},o&&n?{src:n}:{onLoad:s,src:e},r]}function DM(e,t){let n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function OM(e,t,n,r){let i=DM(e,n),a=DM(t,r);if(i===0&&a===0)return[e.x,e.y];let o=i/(i+a);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}function kM(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,x.useState)(!1),p=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:`none`}),m=e=>{p.current={...p.current,...e}};return(0,x.useEffect)(()=>{let e=e=>{e.preventDefault()};return n&&t&&window.addEventListener(`touchmove`,e,{passive:!1}),()=>{window.removeEventListener(`touchmove`,e)}},[n,t]),{isTouching:d,onTouchStart:e=>{if(!t)return;e.stopPropagation(),f(!0);let{touches:n=[]}=e;n.length>1?m({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:`touchZoom`}):m({point1:{x:n[0].clientX-l,y:n[0].clientY-u},eventType:`move`})},onTouchMove:e=>{let{touches:t=[]}=e,{point1:n,point2:r,eventType:i}=p.current;if(t.length>1&&i===`touchZoom`){let e={x:t[0].clientX,y:t[0].clientY},i={x:t[1].clientX,y:t[1].clientY},[a,s]=OM(n,r,e,i);o(DM(e,i)/DM(n,r),`touchZoom`,a,s,!0),m({point1:e,point2:i,eventType:`touchZoom`})}else i===`move`&&(a({x:t[0].clientX-n.x,y:t[0].clientY-n.y},`move`),m({eventType:`move`}))},onTouchEnd:()=>{if(!n)return;if(d&&f(!1),m({eventType:`none`}),r>c)return a({x:0,y:0,scale:r},`touchZoom`);let t=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:l}=e.current.getBoundingClientRect(),u=s%180!=0,p=wM(u?i:t,u?t:i,o,l);p&&a({...p},`dragRebound`)}}}function AM(e){let{prefixCls:t,icon:n,onClick:r,className:i,style:a}=e;return x.createElement(`button`,{className:q(`${t}-close`,i),style:a,onClick:r},n)}function jM(e){let{prefixCls:t,showProgress:n,current:r,count:i,showSwitch:a,classNames:o,styles:s,icons:c,image:l,transform:u,countRender:d,actionsRender:f,scale:p,minScale:m,maxScale:h,onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:S,onZoomIn:C,onClose:w,onReset:T}=e,{left:E,right:D,prev:O,next:k,flipY:A,flipX:j,rotateLeft:M,rotateRight:N,zoomOut:P,zoomIn:F}=c,I=n&&x.createElement(`div`,{className:`${t}-progress`},d?d(r+1,i):x.createElement(`bdi`,null,`${r+1} / ${i}`)),L=`${t}-actions-action`,R=({type:e,disabled:t,onClick:n,icon:r})=>x.createElement(`button`,{type:`button`,key:e,className:q(L,`${L}-${e}`,{[`${L}-disabled`]:!!t}),onClick:n,disabled:!!t,"aria-label":e},r),z=a?R({icon:O??E,onClick:()=>g(-1),type:`prev`,disabled:r===0}):void 0,B=a?R({icon:k??D,onClick:()=>g(1),type:`next`,disabled:r===i-1}):void 0,V=R({icon:A,onClick:_,type:`flipY`}),H=R({icon:j,onClick:v,type:`flipX`}),U=R({icon:M,onClick:y,type:`rotateLeft`}),W=R({icon:N,onClick:b,type:`rotateRight`}),ee=R({icon:P,onClick:S,type:`zoomOut`,disabled:p<=m}),te=R({icon:F,onClick:C,type:`zoomIn`,disabled:p===h}),ne=x.createElement(`div`,{className:q(`${t}-actions`,o.actions),style:s.actions},V,H,U,W,ee,te);return x.createElement(`div`,{className:q(`${t}-footer`,o.footer),style:s.footer},I,f?f(ne,{icons:{prevIcon:z,nextIcon:B,flipYIcon:V,flipXIcon:H,rotateLeftIcon:U,rotateRightIcon:W,zoomOutIcon:ee,zoomInIcon:te},actions:{onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:S,onZoomIn:C,onReset:T,onClose:w},transform:u,current:r,total:i,image:l}):ne)}function MM(e){let{prefixCls:t,onActive:n,current:r,count:i,icons:{left:a,right:o,prev:s,next:c}}=e,l=`${t}-switch`,u=r===0,d=r===i-1;return x.createElement(x.Fragment,null,x.createElement(`button`,{className:q(l,`${l}-prev`,{[`${l}-disabled`]:u}),onClick:()=>n(-1),disabled:u},s??a),x.createElement(`button`,{type:`button`,className:q(l,`${l}-next`,{[`${l}-disabled`]:d}),onClick:()=>n(1),disabled:d},c??o))}function NM(){return NM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[i,a]=EM({src:t,fallback:e});return x.createElement(`img`,NM({ref:e=>{n.current=e,i(e)}},r,a))},FM=e=>{let{prefixCls:t,rootClassName:n,src:r,alt:i,imageInfo:a,fallback:o,movable:s=!0,onClose:c,open:l,afterOpenChange:u,maskClosable:d=!0,icons:f={},closeIcon:p,getContainer:m,current:h=0,count:g=1,countRender:_,scaleStep:v=.5,minScale:y=1,maxScale:b=50,motionName:S=`fade`,imageRender:C,imgCommonProps:w,actionsRender:T,onTransform:E,onChange:D,classNames:O={},styles:k={},mousePosition:A,zIndex:j,focusTrap:M=!0}=e,N=(0,x.useRef)(),P=(0,x.useRef)(null),F=(0,x.useRef)(null),I=(0,x.useContext)(vM),L=I&&g>1,R=I&&g>=1,[z,B]=(0,x.useState)(!0),{transform:V,resetTransform:H,updateTransform:U,dispatchZoomChange:W}=SM(N,y,b,E),{isMoving:ee,onMouseDown:te,onWheel:ne}=TM(N,s,l,v,V,U,W),{isTouching:re,onTouchStart:G,onTouchMove:ie,onTouchEnd:ae}=kM(N,s,l,y,V,U,W),{rotate:oe,scale:K}=V;(0,x.useEffect)(()=>{z||B(!0)},[z]),(0,x.useEffect)(()=>{l||H(`close`)},[l]);let se=x.createElement(PM,NM({},w,{width:e.width,height:e.height,imgRef:N,className:`${t}-img`,alt:i,style:{transform:`translate3d(${V.x}px, ${V.y}px, 0) scale3d(${V.flipX?`-`:``}${K}, ${V.flipY?`-`:``}${K}, 1) rotate(${oe}deg)`,transitionDuration:(!z||re)&&`0s`},fallback:o,src:r,onWheel:ne,onMouseDown:te,onDoubleClick:e=>{l&&(K===1?W(1+v,`doubleClick`,e.clientX,e.clientY):U({x:0,y:0,scale:1},`doubleClick`))},onTouchStart:G,onTouchMove:ie,onTouchEnd:ae,onTouchCancel:ae})),ce={url:r,alt:i,...a},le=()=>{W(1+v,`zoomIn`)},ue=()=>{W(1/(1+v),`zoomOut`)},de=()=>{U({rotate:oe+90},`rotateRight`)},fe=()=>{U({rotate:oe-90},`rotateLeft`)},pe=()=>{U({flipX:!V.flipX},`flipX`)},me=()=>{U({flipY:!V.flipY},`flipY`)},he=()=>{H(`reset`)},ge=e=>{let t=h+e;t>=0&&t<=g-1&&(B(!1),H(e<0?`prev`:`next`),D?.(t,h))},_e=Fn(e=>{if(l){let{keyCode:t}=e;L&&(t===X.LEFT?ge(-1):t===X.RIGHT&&ge(1))}});(0,x.useEffect)(()=>{if(l)return window.addEventListener(`keydown`,_e),()=>{window.removeEventListener(`keydown`,_e)}},[l]);let[ve,ye]=(0,x.useState)(!1);x.useEffect(()=>{l&&ye(!0)},[l]);let be=e=>{e||(ye(!1),F.current?.focus?.(),F.current=null),u?.(e)},[xe,Se]=(0,x.useState)(!1);Rn(()=>{l&&Se(!0)},[l]);let Ce=({top:e})=>{e&&c?.()};Rn(()=>{l&&(F.current=document.activeElement)},[l]),n_(M&&l&&xe,()=>P.current);let we={...k.body};return A&&(we.transformOrigin=`${A.x}px ${A.y}px`),x.createElement(Lf,{open:xe&&l,autoDestroy:!1,getContainer:m,autoLock:ve,onEsc:Ce},x.createElement(Pu,{motionName:S,visible:xe&&l,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:be},({className:e,style:r})=>{let a={...k.root,...r};return j&&(a.zIndex=j),x.createElement(`div`,{ref:P,className:q(t,n,O.root,e,{[`${t}-movable`]:s,[`${t}-moving`]:ee}),style:a,role:`dialog`,"aria-modal":`true`,"aria-label":i,tabIndex:-1},x.createElement(`div`,{className:q(`${t}-mask`,O.mask),style:k.mask,onClick:d?c:void 0}),x.createElement(`div`,{className:q(`${t}-body`,O.body),style:we},C?C(se,{transform:V,image:ce,...I?{current:h}:{}}):se),p!==!1&&p!==null&&x.createElement(AM,{prefixCls:t,icon:p===!0?f.close:p||f.close,onClick:c,className:O.close,style:k.close}),L&&x.createElement(MM,{prefixCls:t,current:h,count:g,icons:f,onActive:ge}),x.createElement(jM,{prefixCls:t,showProgress:R,current:h,count:g,showSwitch:L,classNames:O,styles:k,image:ce,transform:V,icons:f,countRender:_,actionsRender:T,scale:K,minScale:y,maxScale:b,onActive:ge,onFlipY:me,onFlipX:pe,onRotateLeft:fe,onRotateRight:de,onZoomOut:ue,onZoomIn:le,onClose:c,onReset:he}))}))},IM=[`crossOrigin`,`decoding`,`draggable`,`loading`,`referrerPolicy`,`sizes`,`srcSet`,`useMap`,`alt`,`fetchPriority`];function LM(e){let[t,n]=x.useState({}),r=x.useCallback((e,t)=>(n(n=>({...n,[e]:t})),()=>{n(t=>{let n={...t};return delete n[e],n})}),[]);return[x.useMemo(()=>e?e.map(e=>{if(typeof e==`string`)return{data:{src:e}};let t={};return Object.keys(e).forEach(n=>{[`src`,...IM].includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(t).reduce((e,n)=>{let{canPreview:r,data:i}=t[n];return r&&e.push({data:i,id:n}),e},[]),[e,t]),r,!!e]}function RM(){return RM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{open:c,onOpenChange:l,current:u,onChange:d,...f}=o&&typeof o==`object`?o:{},[p,m,h]=LM(a),[g,_]=Vn(0,u),[v,y]=(0,x.useState)(!1),{src:b,...S}=p[g]?.data||{},[C,w]=Vn(!!c,c),T=Fn(e=>{w(e),e!==C&&l?.(e,{current:g})}),[E,D]=(0,x.useState)(null),O=x.useCallback((e,t,n,r)=>{let i=h?p.findIndex(e=>e.data.src===t):p.findIndex(t=>t.id===e);_(i<0?0:i),T(!0),D({x:n,y:r}),y(!0)},[p,h]);x.useEffect(()=>{C?v||_(0):y(!1)},[C]);let k=(e,t)=>{_(e),d?.(e,t)},A=()=>{T(!1),D(null)},j=x.useMemo(()=>({register:m,onPreview:O}),[m,O]);return x.createElement(vM.Provider,{value:j},r,x.createElement(FM,RM({"aria-hidden":!C,open:C,prefixCls:e,onClose:A,mousePosition:E,imgCommonProps:S,src:b,fallback:s,icons:i,current:g,count:p.length,onChange:k},f,{classNames:t?.popup,styles:n?.popup})))},BM=0;function VM(e,t){let[n]=x.useState(()=>(BM+=1,String(BM))),r=x.useContext(vM),i={data:t,canPreview:e};return x.useEffect(()=>{if(r)return r.register(n,i)},[]),x.useEffect(()=>{r&&r.register(n,i)},[e,t]),n}function HM(){return HM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t=`rc-image`,previewPrefixCls:n=`${t}-preview`,rootClassName:r,className:i,style:a,classNames:o={},styles:s={},width:c,height:l,src:u,alt:d,placeholder:f,fallback:p,preview:m=!0,onClick:h,onError:g,onKeyDown:_,...v}=e,y=(0,x.useContext)(vM),b=!!m,{src:S,open:C,onOpenChange:w,cover:T,rootClassName:E,...D}=m&&typeof m==`object`?m:{},O=typeof T==`object`&&T.placement&&T.placement||`center`,k=typeof T==`object`&&T.coverNode?T.coverNode:T,[A,j]=Vn(!!C,C),[M,N]=(0,x.useState)(null),P=e=>{j(e),w?.(e)},F=()=>{P(!1)},I=f&&f!==!0,L=S??u,[R,z,B]=EM({src:u,isCustomPlaceholder:I,fallback:p}),V=(0,x.useMemo)(()=>{let t={};return IM.forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t},IM.map(t=>e[t])),H=VM(b,(0,x.useMemo)(()=>({...V,src:L}),[L,V])),U=e=>{let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;y?y.onPreview(H,L,n,r):(N({x:n,y:r}),P(!0)),h?.(e)},W=e=>{if(_?.(e),b&&(e.key===`Enter`||e.key===` `)){e.preventDefault();let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;y?y.onPreview(H,L,n,r):(N({x:n,y:r}),P(!0))}};return x.createElement(x.Fragment,null,x.createElement(`div`,HM({},v,{className:q(t,r,o.root,{[`${t}-error`]:B===`error`}),onClick:b?U:h,role:b?`button`:v.role,tabIndex:b&&v.tabIndex==null?0:v.tabIndex,"aria-label":b?v[`aria-label`]??d:v[`aria-label`],onKeyDown:W,style:{width:c,height:l,...s.root}}),x.createElement(`img`,HM({},V,{className:q(`${t}-img`,{[`${t}-img-placeholder`]:f===!0},o.image,i),style:{height:l,...s.image,...a},ref:R},z,{width:c,height:l,onError:g})),B===`loading`&&x.createElement(`div`,{"aria-hidden":`true`,className:`${t}-placeholder`},f),T!==!1&&b&&x.createElement(`div`,{className:q(`${t}-cover`,o.cover,`${t}-cover-${O}`),style:{display:a?.display===`none`?`none`:void 0,...s.cover}},k)),!y&&b&&x.createElement(FM,HM({"aria-hidden":!A,open:A,prefixCls:n,onClose:F,mousePosition:M,src:L,alt:d,imageInfo:{width:c,height:l},fallback:p,imgCommonProps:V},D,{classNames:o?.popup,styles:s?.popup,rootClassName:q(E,r)})))};UM.PreviewGroup=zM;var WM=UM,GM=(e,t,n,r,i,a,o)=>{let[s]=qd(`ImagePreview`,e?.zIndex),[c,l]=Ed(e?.mask,t?.mask,`${n}-preview`);return x.useMemo(()=>{if(!e)return e;let{cover:u,getContainer:d,closeIcon:f,rootClassName:p}=e,{closeIcon:m}=t??{};return{motionName:Im(`${n}-preview`,`fade`),...e,...o?{cover:u??o}:{},icons:a,getContainer:d??i,zIndex:s,closeIcon:f??m,rootClassName:q(r,p),mask:c,blurClassName:l.mask}},[e,t,n,r,i,o,a,s,c,l])};function KM(e){return(0,x.isValidElement)(e)?[e,void 0]:typeof e==`boolean`||pd(e)?[void 0,e]:[void 0,void 0]}function qM(e){let t=(0,x.useMemo)(()=>typeof e==`boolean`?e?{}:null:pd(e)?e:{},[e]);return(0,x.useMemo)(()=>{if(!t)return[t,``,``];let{open:e,onOpenChange:n,cover:r,actionsRender:i,visible:a,onVisibleChange:o,rootClassName:s,maskClassName:c,mask:l,forceRender:u,destroyOnClose:d,toolbarRender:f,...p}=t,m;n?m=n:o&&(m=(e,t)=>{let{current:n}=t||{};n===void 0?o(e,!e):o(e,!e,n)});let[h,g]=KM(l);return[{...p,open:e??a,onOpenChange:m,cover:r??h,mask:g,actionsRender:i??f},s,c]},[t])}var JM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z`}},{tag:`path`,attrs:{d:`M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z`}}]},name:`rotate-left`,theme:`outlined`};function YM(){return YM=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YM({},e,{ref:t,icon:JM}))),ZM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z`}},{tag:`path`,attrs:{d:`M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z`}}]},name:`rotate-right`,theme:`outlined`};function QM(){return QM=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QM({},e,{ref:t,icon:ZM}))),eN={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`swap`,theme:`outlined`};function tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tN({},e,{ref:t,icon:eN}))),rN={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z`}}]},name:`zoom-in`,theme:`outlined`};function iN(){return iN=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iN({},e,{ref:t,icon:rN}))),oN={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z`}}]},name:`zoom-out`,theme:`outlined`};function sN(){return sN=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sN({},e,{ref:t,icon:oN}))),lN=e=>({position:e||`absolute`,inset:0}),uN=e=>{let{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:r,background:new Ls(`#000`).setA(.3).toRgbString(),cursor:`pointer`,opacity:0,transition:`opacity ${n}`},"&:hover, &:focus-visible":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:`0 0 auto 0`,justifyContent:`center`},[`${t}-cover-bottom`]:{inset:`auto 0 0 0`,justifyContent:`center`}}}},dN=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i,colorBgMask:a,marginXL:o,marginSM:s,margin:c,colorTextLightSolid:l,paddingSM:u,paddingLG:d,previewOperationHoverColor:f,previewOperationColorDisabled:p,previewOperationSize:m,zIndexPopup:h}=e,g=new Ls(a).setA(.1),_=g.clone().setA(.2),v={position:`absolute`,color:l,backgroundColor:g.toRgbString(),borderRadius:`50%`,padding:u,outline:0,border:0,cursor:`pointer`,transition:`all ${r}`,display:`flex`,fontSize:m,"&:hover":{backgroundColor:_.toRgbString()},"&:active":{backgroundColor:g.toRgbString()},"&:focus-visible":Xc(e)};return{[`${i}-preview`]:{textAlign:`center`,inset:0,position:`fixed`,userSelect:`none`,zIndex:h,[`${n}-mask`]:{inset:0,position:`absolute`,background:a,backdropFilter:`blur(0px)`,transition:`backdrop-filter ${r}`,[`&${i}-preview-mask-blur`]:{backdropFilter:`blur(4px)`},[`&${i}-preview-mask-hidden`]:{display:`none`}},[`${n}-body`]:{...lN(),"pointer-events":`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,"> *":{pointerEvents:`auto`}},[`${n}-img`]:{maxWidth:`100%`,maxHeight:`70%`,verticalAlign:`middle`,transform:`scale3d(1, 1, 1)`,transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:`grab`},[`&-moving ${n}-img`]:{cursor:`grabbing`},[`${n}-close`]:{...v,top:s,insetInlineEnd:s},[`${n}-switch`]:{...v,top:`50%`,transform:`translateY(-50%)`,"&-disabled":{"&, &:hover, &:active":{color:p,background:`transparent`,cursor:`not-allowed`}},"&-prev":{insetInlineStart:s},"&-next":{insetInlineEnd:s}},[`${n}-footer`]:{position:`absolute`,bottom:o,left:{_skip_check_:!0,value:`50%`},display:`flex`,flexDirection:`column`,alignItems:`center`,color:e.previewOperationColor,transform:`translateX(-50%)`,gap:c},[`${n}-actions`]:{display:`flex`,gap:u,padding:`0 ${J(d)}`,backgroundColor:g.toRgbString(),borderRadius:100,fontSize:m,"&-action":{color:`inherit`,background:`transparent`,border:0,font:`inherit`,padding:u,cursor:`pointer`,transition:`all ${r}`,display:`flex`,[`&:not(${n}-actions-action-disabled):hover`]:{color:f},"&:focus-visible":Xc(e),"&-disabled":{color:p,cursor:`not-allowed`}}}}}},fN=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,display:`inline-block`,...Zc(e),[`${t}-img`]:{width:`100%`,height:`auto`,verticalAlign:`middle`},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:`url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')`,backgroundRepeat:`no-repeat`,backgroundPosition:`center center`,backgroundSize:`30%`},[`${t}-placeholder`]:{...lN()}}}},pN=e=>{let{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:`scale(0)`},"&-active":{opacity:1,[`${t}-body`]:{transform:`scale(1)`,transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:`scale(0)`,transition:`transform ${n}`}}}}}}},mN=nl(`Image`,e=>{let t=hs(e,{previewCls:`${e.componentCls}-preview`,imagePreviewSwitchSize:e.controlHeightLG});return[fN(t),uN(t),dN(t),pN(t)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Ls(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Ls(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Ls(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),hN={rotateLeft:x.createElement(XM,null),rotateRight:x.createElement($M,null),zoomIn:x.createElement(aN,null),zoomOut:x.createElement(cN,null),close:x.createElement(Il,null),left:x.createElement(eT,null),right:x.createElement(sg,null),flipX:x.createElement(nN,null),flipY:x.createElement(nN,{rotate:90})},gN=({previewPrefixCls:e,preview:t,classNames:n,styles:r,...i})=>{let{getPrefixCls:a,getPopupContainer:o,direction:s,preview:c,classNames:l,styles:u}=ci(`image`),d=a(`image`,e),f=`${d}-preview`,p=sf(d),[m,h]=mN(d,p),g=q(m,h,p),[_,v,y]=qM(t),[b,S,C]=qM(c),w=x.useMemo(()=>({...hN,left:s===`rtl`?x.createElement(sg,null):x.createElement(eT,null),right:s===`rtl`?x.createElement(eT,null):x.createElement(sg,null)}),[s]),T=GM(_,b,d,g,o,hN),{mask:E,blurClassName:D}=T??{},O={...i,classNames:n,styles:r},[k,A]=Nd([l,n,{cover:q(C,y),popup:{root:q(S,v),mask:q({[`${d}-preview-mask-hidden`]:!E},D)}}],[u,r],{props:O},{popup:{_default:`root`}});return x.createElement(WM.PreviewGroup,{preview:T,previewPrefixCls:f,icons:w,...i,classNames:k,styles:A})},_N=e=>{let{prefixCls:t,preview:n,className:r,rootClassName:i,style:a,styles:o,classNames:s,wrapperStyle:c,fallback:l,...u}=e,{getPrefixCls:d,getPopupContainer:f,className:p,style:m,preview:h,styles:g,classNames:_,fallback:v}=ci(`image`),y=d(`image`,t),b=sf(y),[S,C]=mN(y,b),w=q(i,S,C,b),T=q(r,S,p),[E,D,O]=qM(n),[k,A,j]=qM(h),M=GM(E,k,y,w,f,hN,!0),N={...e,preview:M},P=x.useMemo(()=>({cover:q(j,O),popup:{root:q(A,D)}}),[D,O,A,j]),{mask:F,blurClassName:I}=M??{},L=x.useMemo(()=>({mask:q({[`${y}-preview-mask-hidden`]:!F},I)}),[F,y,I]),[R,z]=Nd(x.useMemo(()=>[_,s,P,{popup:L}],[_,s,P,L]),[g,{root:c},o],{props:N},{popup:{_default:`root`}}),B={...m,...a},V=l??v;return x.createElement(WM,{prefixCls:y,preview:M||!1,rootClassName:w,className:T,style:B,fallback:V,...u,classNames:R,styles:z})};_N.PreviewGroup=gN;var vN=e=>{let{getPrefixCls:t,direction:n}=(0,x.useContext)(ai),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=mO(t(`input`)),c=q(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,x.useContext)(ry),u=(0,x.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return x.createElement(ry.Provider,{value:u},x.createElement(wj.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},yN=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},bN=nl([`Input`,`OTP`],e=>yN(hs(e,zD(e))),BD),xN=x.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=x.useContext(ai),d=u(`otp`),f=typeof s==`string`?s:r,p=x.useRef(null);x.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{ni(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return x.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&x.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),x.createElement(fj,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:q(n,{[`${d}-mask-input`]:s})}))});function SN(e){return(e||``).split(``)}var CN=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?x.createElement(`span`,{className:q(`${n}-separator`,i),style:a},o):null},wN=x.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:v,inputMode:y,classNames:b,styles:S,className:C,style:w,...T}=e,{classNames:E,styles:D,getPrefixCls:O,direction:k,style:A,className:j}=ci(`otp`),M=O(`otp`,n),N={...e,length:r},[P,F]=Nd([E,b],[D,S],{props:N}),I=zu(T,{aria:!0,data:!0,attr:!0}),[L,R]=bN(M),z=Km(e=>i??e),B=x.useContext(ry),V=mC(B.status,f),H=x.useMemo(()=>({...B,status:V,hasFeedback:!1,feedbackIcon:null}),[B,V]),U=x.useRef(null),W=x.useRef({});x.useImperativeHandle(t,()=>({focus:()=>{W.current[0]?.focus()},blur:()=>{for(let e=0;ec?c(e):e,[te,ne]=x.useState(()=>SN(ee(a||``)));x.useEffect(()=>{o!==void 0&&ne(SN(o))},[o]);let re=Fn(e=>{ne(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>te[t]!==e)&&s(e.join(``))}),G=Fn((e,t)=>{let n=Xr(te);for(let t=0;t=0&&!n[e];--e)n.pop();return n=SN(ee(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),ie=(e,t)=>{let n=G(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&W.current[i]?.focus(),re(n)},ae=e=>{W.current[e]?.focus()},oe=(e,t)=>{for(let e=0;e{let n=`otp-${t}`,i=te[t]||``;return x.createElement(x.Fragment,{key:n},x.createElement(xN,{ref:e=>{W.current[t]=e},index:t,size:z,htmlSize:1,className:q(P.input,`${M}-input`),style:F.input,onChange:ie,value:i,onActiveChange:ae,autoFocus:t===0&&p,onFocus:e=>oe(e,t),...K}),tx.createElement(Y,EN({},e,{ref:t,icon:TN}))),ON={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`};function kN(){return kN=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,kN({},e,{ref:t,icon:ON}))),jN=e=>e?x.createElement(AN,null):x.createElement(DN,null),MN={click:`onClick`,hover:`onMouseOver`},NN=x.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=jN,suffix:o}=e,s=x.useContext(Ep),c=n??s,l=pd(i)&&i.visible!==void 0,[u,d]=(0,x.useState)(()=>l?i.visible:!1),f=(0,x.useRef)(null);x.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=uj(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),pd(i)&&i.onVisibleChange?.(e)},h=e=>{let t=MN[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return x.cloneElement(x.isValidElement(n)?n:x.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:v,size:y,...b}=e,{getPrefixCls:S}=x.useContext(ai),C=S(`input`,v),w=S(`input-password`,_),T=i&&h(w),E=q(w,g,{[`${w}-${y}`]:!!y}),D={...xr(b,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:x.createElement(x.Fragment,null,T,o)};return y&&(D.size=y),x.createElement(fj,{ref:Qn(t,f),...D})}),PN=nl([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),FN=x.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:v,hidden:y,...b}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=ci(`inputSearch`),E={...e,enterButton:s},[D,O]=Nd([w,_],[T,v],{props:E},{button:{_default:`root`}}),k=x.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=PN(A),{compactSize:P}=Ym(A,S),F=Km(e=>a??P??e),I=x.useRef(null),L=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},R=e=>{document.activeElement===I.current?.input&&e.preventDefault()},z=e=>{d&&d(I.current?.input?.value,e,{source:`input`})},B=e=>{k.current||l||(g?.(e),z(e))},V=typeof s==`boolean`?x.createElement(KC,null):null,H=`${A}-btn`,U=q(H,{[`${H}-${h}`]:h}),W,ee=s||{},te=ee.type&&ee.type.__ANT_BUTTON===!0;W=te||ee.type===`button`?xp(ee,{onMouseDown:R,onClick:e=>{ee?.props?.onClick?.(e),z(e)},key:`enterButton`,...te?{className:U,size:F}:{}}):x.createElement(Mg,{classNames:D.button,styles:O.button,className:U,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:R,onClick:z,loading:l,icon:V,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(W=[W,xp(c,{key:`addonAfter`})]);let ne=q(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),re=e=>{k.current=!0,p?.(e)},G=e=>{k.current=!1,m?.(e)},ie=zu(b,{data:!0}),ae=xr({...b,classNames:xr(D,[`button`,`root`]),styles:xr(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:B,onCompositionStart:re,onCompositionEnd:G,onChange:L,disabled:u},Object.keys(ie));return x.createElement(Qm,{className:ne,style:{...o,...O.root},...ie,hidden:y},x.createElement(fj,{ref:Qn(I,t),...ae}),W)}),IN=` + ${r}-col-xl-24${n}-label`]:Lj(e)},[`@media (max-width: ${J(e.screenXSMax)})`]:[Bj(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Lj(e)}}}],[`@media (max-width: ${J(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Lj(e)}}},[`@media (max-width: ${J(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Lj(e)}}},[`@media (max-width: ${J(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Lj(e)}}}}},Hj=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Uj=(e,t)=>hs(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Wj=nl(`Form`,(e,{rootPrefixCls:t})=>{let n=Uj(e,t);return[Fj(n),Ij(n),Mj(n),Rj(n),zj(n),Vj(n),fh(n),Lh]},Hj,{order:-1e3}),Gj=[];function Kj(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var qj=({help:e,helpStatus:t,errors:n=Gj,warnings:r=Gj,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=x.useContext(ny),c=`${s}-item-explain`,l=sf(s),[u,d]=Wj(s,l),f=x.useMemo(()=>Fm(s),[s]),p=jj(n),m=jj(r),h=x.useMemo(()=>ud(e)?[Kj(e,`help`,t)]:[].concat(Xr(p.map((e,t)=>Kj(e,`error`,`error`,t))),Xr(m.map((e,t)=>Kj(e,`warning`,`warning`,t)))),[e,t,p,m]),g=x.useMemo(()=>{let e={};return h.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),h.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[h]),_={};return a&&(_.id=`${a}_help`),x.createElement(Pu,{motionDeadline:f.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return x.createElement(`div`,{..._,className:q(c,t,d,l,i,u),style:n},x.createElement(Nu,{keys:g,...Fm(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return x.createElement(`div`,{key:t,className:q(i,{[`${c}-${r}`]:r}),style:a},n)}))})},Jj=x.forwardRef((e,t)=>{let n=x.useContext(Ep),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f}=ci(`form`),{prefixCls:p,className:m,rootClassName:h,size:g,disabled:_=n,form:v,colon:y,labelAlign:b,labelWrap:S,labelCol:C,wrapperCol:w,layout:T=`horizontal`,scrollToFirstError:E,requiredMark:D,onFinishFailed:O,name:k,style:A,feedbackIcons:j,variant:M,classNames:N,styles:P,tooltip:F,...I}=e,L=Km(g),R=x.useContext(cf),z=x.useMemo(()=>D===void 0?a===void 0?!0:a:D,[D,a]),B=y??o,V={...f,...F},H=r(`form`,p),U=sf(H),[W,ee]=Wj(H,U),te={...e,size:L,disabled:_,layout:T,colon:B,requiredMark:z},[ne,re]=Nd([d,N],[u,P],{props:te}),G=q(H,`${H}-${T}`,{[`${H}-hide-required-mark`]:z===!1,[`${H}-rtl`]:i===`rtl`,[`${H}-large`]:L===`large`,[`${H}-small`]:L===`small`},ee,U,W,c,m,h,ne.root),[ie]=SD(v),{__INTERNAL__:ae}=ie;ae.name=k;let oe=x.useMemo(()=>({name:k,labelAlign:b,labelCol:C,labelWrap:S,wrapperCol:w,layout:T,colon:B,requiredMark:z,itemRef:ae.itemRef,form:ie,feedbackIcons:j,tooltip:V,classNames:ne,styles:re}),[k,b,C,w,T,B,z,ie,j,ne,re,V]),K=x.useRef(null);x.useImperativeHandle(t,()=>({...ie,nativeElement:K.current?.nativeElement}));let se=(e,t)=>{if(e){let n={block:`nearest`};pd(e)&&(n={...n,...e}),ie.scrollToField(t,n)}},ce=e=>{if(O?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(E!==void 0){se(E,t);return}s!==void 0&&se(s,t)}};return x.createElement(ay.Provider,{value:M},x.createElement(Dp,{disabled:_},x.createElement(Op.Provider,{value:L},x.createElement(ty,{validateMessages:R},x.createElement($v.Provider,{value:oe},x.createElement(iy,{status:!0},x.createElement(Qv,{id:k,...I,name:k,onFinishFailed:ce,form:ie,ref:K,style:{...re?.root,...l,...A},className:G})))))))});function Yj(e){if(typeof e==`function`)return e;let t=Sr(e);return t.length<=1?t[0]:t}var Xj=()=>{let{status:e,errors:t=[],warnings:n=[]}=x.useContext(ry);return{status:e,errors:t,warnings:n}};Xj.Context=ry;function Zj(e){let[t,n]=x.useState(e),r=x.useRef(null),i=x.useRef([]),a=x.useRef(!1);x.useEffect(()=>(a.current=!1,()=>{a.current=!0,ni.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=ni(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var Qj=()=>{let{itemRef:e}=x.useContext($v),t=x.useRef({});function n(n,r){let i=r&&typeof r==`object`&&rr(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Qn(e(n),i)),t.current.ref}return n},$j=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},eM=il([`Form`,`item-item`],(e,{rootPrefixCls:t})=>$j(Uj(e,t))),tM=24,nM=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=x.useContext($v),{classNames:_,styles:v}=g,y=x.useMemo(()=>{let e={...i||g.wrapperCol||{}};return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(Xr(ew)).forEach(t=>{let n=t?[t]:[],r=ir(g.labelCol,n),i=pd(r)?r:{},a=ir(e,n),o=pd(a)?a:{};`span`in i&&!(`offset`in o)&&i.span{let{labelCol:e,wrapperCol:t,...n}=g;return n},[g]),C=x.useRef(null),[w,T]=x.useState(0);Rn(()=>{l&&C.current?T(C.current.clientHeight):T(0)},[l]);let E=x.createElement(`div`,{className:`${h}-control-input`},x.createElement(`div`,{className:q(`${h}-control-input-content`,_?.content),style:v?.content},a)),D=x.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=f!==null||o.length||s.length?x.createElement(ny.Provider,{value:D},x.createElement(qj,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,k={};d&&(k.id=`${d}_extra`);let A=l?x.createElement(`div`,{...k,className:`${h}-extra`,ref:C},l):null,j=O||A?x.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+w}:{}},O,A):null,M=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:E,errorList:O,extra:A}):x.createElement(x.Fragment,null,E,j);return x.createElement($v.Provider,{value:S},x.createElement(sA,{...y,className:b},M),x.createElement(eM,{prefixCls:t}))},rM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`};function iM(){return iM=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iM({},e,{ref:t,icon:rM}))),oM=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=od(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=x.useContext($v);if(!t)return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,S=q(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),C=t,w=a===!0||m!==!1&&a!==!1;w&&!l&&typeof t==`string`&&t.trim()&&(C=t.replace(/[:|:]\s*$/,``));let T=Aj(c,_);if(T){let t=x.createElement(Bw,{...T},x.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},T.icon||T.children||x.createElement(aM,null)));C=x.createElement(x.Fragment,null,C,t)}let E=s===`optional`,D=typeof s==`function`,O=s===!1;D?C=s(C,{required:!!o}):E&&!o&&(C=x.createElement(x.Fragment,null,C,x.createElement(`span`,{className:`${e}-item-optional`,title:``},u?.optional||$u.Form?.optional)));let k;O?k=`hidden`:(E||D)&&(k=`optional`);let A=q(h?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!w});return x.createElement(sA,{...v,className:S},x.createElement(`label`,{htmlFor:n,className:A,style:g?.label,title:typeof t==`string`?t:``},C))},sM={success:Al,warning:zl,error:Nl,validating:um};function cM({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=x.useContext($v),d=yD(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=x.useContext(ry),_=x.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?sM[d]:null;e=a!==!1&&o?x.createElement(`span`,{className:q(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||x.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??m),i.feedbackIcon=r===void 0?h:i.feedbackIcon,i.name=c??g),i},[d,r,s,f,p]);return x.createElement(ry.Provider,{value:_},e)}function lM(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g,layout:_,name:v,...y}=e,b=`${t}-item`,{requiredMark:S,layout:C}=x.useContext($v),w=_||C,T=w===`vertical`,E=x.useRef(null),D=jj(o),O=jj(s),k=ud(a),A=!!(k||o.length||s.length),j=!!E.current&&Yf(E.current),[M,N]=x.useState(null);Rn(()=>{if(A&&E.current){let e=getComputedStyle(E.current);N(Number.parseInt(e.marginBottom,10))}},[A,j]);let P=e=>{e||N(null)},F=((e=!1)=>yD(e?D:l.errors,e?O:l.warnings,l,``,!!u,c))(),I=q(b,n,r,{[`${b}-with-help`]:k||D.length||O.length,[`${b}-has-feedback`]:F&&u,[`${b}-has-success`]:F===`success`,[`${b}-has-warning`]:F===`warning`,[`${b}-has-error`]:F===`error`,[`${b}-is-validating`]:F===`validating`,[`${b}-hidden`]:d,[`${b}-${w}`]:w});return x.createElement(`div`,{className:I,style:i,ref:E},x.createElement(uA,{className:`${b}-row`,...xr(y,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},x.createElement(oM,{htmlFor:p,...e,requiredMark:S,required:m??h,prefixCls:t,vertical:T}),x.createElement(nM,{...e,...l,errors:D,warnings:O,prefixCls:t,status:F,help:a,marginBottom:M,onErrorVisibleChanged:P},x.createElement(ey.Provider,{value:g},x.createElement(cM,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:F,name:v},f)))),!!M&&x.createElement(`div`,{className:`${b}-margin-offset`,style:{marginBottom:-M}}))}var uM=`__SPLIT__`;function dM(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||typeof r==`function`||typeof i==`function`})}var fM=x.memo(e=>e.children,(e,t)=>dM(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function pM(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mM(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:m,help:h,layout:g}=e,{getPrefixCls:_}=x.useContext(ai),{name:v}=x.useContext($v),y=Yj(c),b=typeof y==`function`,S=x.useContext(ey),{validateTrigger:C}=x.useContext(g_),w=ud(p)?p:C,T=ud(t),E=_(`form`,a),D=sf(E),[O,k]=Wj(E,D);Er(`Form.Item`);let A=x.useContext(__),j=x.useRef(null),[M,N]=Zj({}),[P,F]=Bn(()=>pM()),I=e=>{let t=A?.getKey(e.name);if(F(e.destroy?pM():e,!0),n&&h!==!1&&S){let n=e.name;if(e.destroy)n=j.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(Xr(r)),j.current=n}S(e,n)}},L=(e,t)=>{N(n=>{let r={...n},i=[].concat(Xr(e.name.slice(0,-1)),Xr(t)).join(uM);return e.destroy?delete r[i]:r[i]=e,r})},[R,z]=x.useMemo(()=>{let e=Xr(P.errors),t=Xr(P.warnings);return Object.values(M).forEach(n=>{e.push.apply(e,Xr(n.errors||[])),t.push.apply(t,Xr(n.warnings||[]))}),[e,t]},[M,P.errors,P.warnings]),B=Qj();function V(i,a,o){return n&&!m?x.createElement(cM,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:R,warnings:z,noStyle:!0,name:t},i):x.createElement(lM,{key:`row`,...e,className:q(r,k,D,O),prefixCls:E,fieldId:a,isRequired:o,errors:R,warnings:z,meta:P,onSubItemMetaChange:L,layout:g,name:t},i)}if(!T&&!b&&!i)return V(y);let H={};return typeof u==`string`?H.label=u:t&&(H.label=String(t)),d&&(H={...H,...d}),x.createElement(Rv,{...e,messageVariables:H,trigger:f,validateTrigger:w,onMetaChange:I},(n,r,a)=>{let c=_D(t).length&&r?r.name:[],u=vD(c,v),d=l===void 0?s?.some(e=>{if(pd(e)&&e.required&&!e.warningOnly)return!0;if(typeof e==`function`){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(y)&&T)m=y;else if(!(b&&(!(o||i)||T))&&!(i&&!b&&!T))if(x.isValidElement(y)){let t={...y.props,...p};if(t.id||=u,h||R.length>0||z.length>0||e.extra){let n=[];(h||R.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}R.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),er(y)&&(t.ref=B(c,y)),new Set([].concat(Xr(_D(f)),Xr(_D(w)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),y.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=x.createElement(fM,{control:p,update:y,childProps:n},xp(y,t))}else m=b&&(o||i)&&!T?y(a):y;return V(m,u,d)})}var hM=mM;hM.useStatus=Xj;var gM=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=x.useContext(ai),i=r(`form`,e),a=x.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return x.createElement(zv,{...n},(e,n,r)=>x.createElement(ny.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function _M(){let{form:e}=x.useContext($v);return e}var Z=Jj;Z.Item=hM,Z.List=gM,Z.ErrorList=qj,Z.useForm=SD,Z.useFormInstance=_M,Z.useWatch=Zv,Z.Provider=ty;var vM=e=>{let{getPrefixCls:t,direction:n}=(0,x.useContext)(ai),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=mO(t(`input`)),c=q(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,x.useContext)(ry),u=(0,x.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return x.createElement(ry.Provider,{value:u},x.createElement(wj.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},yM=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},bM=nl([`Input`,`OTP`],e=>yM(hs(e,zD(e))),BD),xM=x.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=x.useContext(ai),d=u(`otp`),f=typeof s==`string`?s:r,p=x.useRef(null);x.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{ni(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return x.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&x.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),x.createElement(fj,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:q(n,{[`${d}-mask-input`]:s})}))});function SM(e){return(e||``).split(``)}var CM=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?x.createElement(`span`,{className:q(`${n}-separator`,i),style:a},o):null},wM=x.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:v,inputMode:y,classNames:b,styles:S,className:C,style:w,...T}=e,{classNames:E,styles:D,getPrefixCls:O,direction:k,style:A,className:j}=ci(`otp`),M=O(`otp`,n),N={...e,length:r},[P,F]=Nd([E,b],[D,S],{props:N}),I=zu(T,{aria:!0,data:!0,attr:!0}),[L,R]=bM(M),z=Km(e=>i??e),B=x.useContext(ry),V=mC(B.status,f),H=x.useMemo(()=>({...B,status:V,hasFeedback:!1,feedbackIcon:null}),[B,V]),U=x.useRef(null),W=x.useRef({});x.useImperativeHandle(t,()=>({focus:()=>{W.current[0]?.focus()},blur:()=>{for(let e=0;ec?c(e):e,[te,ne]=x.useState(()=>SM(ee(a||``)));x.useEffect(()=>{o!==void 0&&ne(SM(o))},[o]);let re=Fn(e=>{ne(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>te[t]!==e)&&s(e.join(``))}),G=Fn((e,t)=>{let n=Xr(te);for(let t=0;t=0&&!n[e];--e)n.pop();return n=SM(ee(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),ie=(e,t)=>{let n=G(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&W.current[i]?.focus(),re(n)},ae=e=>{W.current[e]?.focus()},oe=(e,t)=>{for(let e=0;e{let n=`otp-${t}`,i=te[t]||``;return x.createElement(x.Fragment,{key:n},x.createElement(xM,{ref:e=>{W.current[t]=e},index:t,size:z,htmlSize:1,className:q(P.input,`${M}-input`),style:F.input,onChange:ie,value:i,onActiveChange:ae,autoFocus:t===0&&p,onFocus:e=>oe(e,t),...K}),tx.createElement(Y,EM({},e,{ref:t,icon:TM}))),OM={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`};function kM(){return kM=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,kM({},e,{ref:t,icon:OM}))),jM=e=>e?x.createElement(AM,null):x.createElement(DM,null),MM={click:`onClick`,hover:`onMouseOver`},NM=x.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=jM,suffix:o}=e,s=x.useContext(Ep),c=n??s,l=pd(i)&&i.visible!==void 0,[u,d]=(0,x.useState)(()=>l?i.visible:!1),f=(0,x.useRef)(null);x.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=uj(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),pd(i)&&i.onVisibleChange?.(e)},h=e=>{let t=MM[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return x.cloneElement(x.isValidElement(n)?n:x.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:v,size:y,...b}=e,{getPrefixCls:S}=x.useContext(ai),C=S(`input`,v),w=S(`input-password`,_),T=i&&h(w),E=q(w,g,{[`${w}-${y}`]:!!y}),D={...xr(b,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:x.createElement(x.Fragment,null,T,o)};return y&&(D.size=y),x.createElement(fj,{ref:Qn(t,f),...D})}),PM=nl([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),FM=x.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:v,hidden:y,...b}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=ci(`inputSearch`),E={...e,enterButton:s},[D,O]=Nd([w,_],[T,v],{props:E},{button:{_default:`root`}}),k=x.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=PM(A),{compactSize:P}=Ym(A,S),F=Km(e=>a??P??e),I=x.useRef(null),L=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},R=e=>{document.activeElement===I.current?.input&&e.preventDefault()},z=e=>{d&&d(I.current?.input?.value,e,{source:`input`})},B=e=>{k.current||l||(g?.(e),z(e))},V=typeof s==`boolean`?x.createElement(KC,null):null,H=`${A}-btn`,U=q(H,{[`${H}-${h}`]:h}),W,ee=s||{},te=ee.type&&ee.type.__ANT_BUTTON===!0;W=te||ee.type===`button`?xp(ee,{onMouseDown:R,onClick:e=>{ee?.props?.onClick?.(e),z(e)},key:`enterButton`,...te?{className:U,size:F}:{}}):x.createElement(Mg,{classNames:D.button,styles:O.button,className:U,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:R,onClick:z,loading:l,icon:V,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(W=[W,xp(c,{key:`addonAfter`})]);let ne=q(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),re=e=>{k.current=!0,p?.(e)},G=e=>{k.current=!1,m?.(e)},ie=zu(b,{data:!0}),ae=xr({...b,classNames:xr(D,[`button`,`root`]),styles:xr(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:B,onCompositionStart:re,onCompositionEnd:G,onChange:L,disabled:u},Object.keys(ie));return x.createElement(Qm,{className:ne,style:{...o,...O.root},...ie,hidden:y},x.createElement(fj,{ref:Qn(I,t),...ae}),W)}),IM=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -242,10 +242,10 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,LN=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],RN={},zN;function BN(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&RN[n])return RN[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:LN.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(RN[n]=s),s}function VN(e,t=!1,n=null,r=null){zN||(zN=document.createElement(`textarea`),zN.setAttribute(`tab-index`,`-1`),zN.setAttribute(`aria-hidden`,`true`),zN.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(zN)),e.getAttribute(`wrap`)?zN.setAttribute(`wrap`,e.getAttribute(`wrap`)):zN.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=BN(e,t);zN.setAttribute(`style`,`${s};${IN}`),zN.value=e.value||e.placeholder||``;let c,l,u,d=zN.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){zN.value=` `;let e=zN.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function HN(){return HN=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=Vn(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=x.useRef();x.useImperativeHandle(t,()=>({textArea:_.current}));let[v,y]=x.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),b=!!a,[S,C]=x.useState(GN),[w,T]=x.useState(),E=()=>{C(UN)};Rn(()=>{b&&E()},[i,v,y,b]),Rn(()=>{if(S===UN)C(WN);else if(S===WN){let e=VN(_.current,!1,v,y);C(GN),T(e)}},[S]);let D=x.useRef(),O=()=>{ni.cancel(D.current)},k=e=>{S===GN&&(o?.(e),a&&(O(),D.current=ni(()=>{E()})))};x.useEffect(()=>O,[]);let A=b?w:null,j={...c,...A};return(S===UN||S===WN)&&(j.overflowY=`hidden`,j.overflowX=`hidden`),x.createElement(Ur,{onResize:k,disabled:!(a||o)},x.createElement(`textarea`,HN({},f,{ref:_,style:j,className:q(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function qN(){return qN=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[O,k]=Vn(e,t),A=O==null?``:String(O),[j,M]=x.useState(!1),N=x.useRef(!1),[P,F]=x.useState(null),I=(0,x.useRef)(null),L=(0,x.useRef)(null),R=()=>L.current?.textArea,z=()=>{R().focus()};(0,x.useImperativeHandle)(D,()=>({resizableTextArea:L.current,focus:z,blur:()=>{R().blur()},nativeElement:I.current?.nativeElement||R()})),(0,x.useEffect)(()=>{M(e=>!h&&e)},[h]);let[B,V]=x.useState(null);x.useEffect(()=>{B&&R().setSelectionRange(...B)},[B]);let H=oj(f,d),U=H.max??o,W=Number(U)>0,ee=H.strategy(A),te=!!U&&ee>U,ne=(e,t)=>{let n=t;!N.current&&H.exceedFormatter&&H.max&&H.strategy(t)>H.max&&(n=H.exceedFormatter(t,{max:H.max}),t!==n&&V([R().selectionStart||0,R().selectionEnd||0])),k(n),rj(e.currentTarget,e,i,n)},re=e=>{N.current=!0,s?.(e)},G=e=>{N.current=!1,ne(e,e.currentTarget.value),c?.(e)},ie=e=>{ne(e,e.target.value)},ae=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),T?.(e)},oe=e=>{M(!0),n?.(e)},K=e=>{M(!1),r?.(e)},se=e=>{k(``),z(),rj(R(),e,i)},ce=l,le;H.show&&(le=H.showFormatter?H.showFormatter({value:A,count:ee,maxLength:U}):`${ee}${W?` / ${U}`:``}`,ce=x.createElement(x.Fragment,null,ce,x.createElement(`span`,{className:q(`${u}-data-count`,_?.count),style:v?.count},le)));let ue=e=>{y?.(e),R()?.style.height&&F(!0)},de=!w&&!d&&!a;return x.createElement(aj,{ref:I,value:A,allowClear:a,handleReset:se,suffix:ce,prefixCls:u,classNames:{..._,affixWrapper:q(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:j,className:q(p,te&&`${u}-out-of-range`),style:{...m,...P&&!de?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof le==`string`?le:void 0}},hidden:g,readOnly:C,onClear:b},x.createElement(KN,qN({},E,{autoSize:w,maxLength:o,onKeyDown:ae,onChange:ie,onFocus:oe,onBlur:K,onCompositionStart:re,onCompositionEnd:G,className:q(_?.textarea),style:{resize:m?.resize,...v?.textarea},disabled:h,prefixCls:u,onResize:ue,ref:L,readOnly:C})))}),YN=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[` +`,LM=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],RM={},zM;function BM(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&RM[n])return RM[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:LM.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(RM[n]=s),s}function VM(e,t=!1,n=null,r=null){zM||(zM=document.createElement(`textarea`),zM.setAttribute(`tab-index`,`-1`),zM.setAttribute(`aria-hidden`,`true`),zM.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(zM)),e.getAttribute(`wrap`)?zM.setAttribute(`wrap`,e.getAttribute(`wrap`)):zM.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=BM(e,t);zM.setAttribute(`style`,`${s};${IM}`),zM.value=e.value||e.placeholder||``;let c,l,u,d=zM.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){zM.value=` `;let e=zM.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function HM(){return HM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=Vn(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=x.useRef();x.useImperativeHandle(t,()=>({textArea:_.current}));let[v,y]=x.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),b=!!a,[S,C]=x.useState(GM),[w,T]=x.useState(),E=()=>{C(UM)};Rn(()=>{b&&E()},[i,v,y,b]),Rn(()=>{if(S===UM)C(WM);else if(S===WM){let e=VM(_.current,!1,v,y);C(GM),T(e)}},[S]);let D=x.useRef(),O=()=>{ni.cancel(D.current)},k=e=>{S===GM&&(o?.(e),a&&(O(),D.current=ni(()=>{E()})))};x.useEffect(()=>O,[]);let A=b?w:null,j={...c,...A};return(S===UM||S===WM)&&(j.overflowY=`hidden`,j.overflowX=`hidden`),x.createElement(Ur,{onResize:k,disabled:!(a||o)},x.createElement(`textarea`,HM({},f,{ref:_,style:j,className:q(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function qM(){return qM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[O,k]=Vn(e,t),A=O==null?``:String(O),[j,M]=x.useState(!1),N=x.useRef(!1),[P,F]=x.useState(null),I=(0,x.useRef)(null),L=(0,x.useRef)(null),R=()=>L.current?.textArea,z=()=>{R().focus()};(0,x.useImperativeHandle)(D,()=>({resizableTextArea:L.current,focus:z,blur:()=>{R().blur()},nativeElement:I.current?.nativeElement||R()})),(0,x.useEffect)(()=>{M(e=>!h&&e)},[h]);let[B,V]=x.useState(null);x.useEffect(()=>{B&&R().setSelectionRange(...B)},[B]);let H=oj(f,d),U=H.max??o,W=Number(U)>0,ee=H.strategy(A),te=!!U&&ee>U,ne=(e,t)=>{let n=t;!N.current&&H.exceedFormatter&&H.max&&H.strategy(t)>H.max&&(n=H.exceedFormatter(t,{max:H.max}),t!==n&&V([R().selectionStart||0,R().selectionEnd||0])),k(n),rj(e.currentTarget,e,i,n)},re=e=>{N.current=!0,s?.(e)},G=e=>{N.current=!1,ne(e,e.currentTarget.value),c?.(e)},ie=e=>{ne(e,e.target.value)},ae=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),T?.(e)},oe=e=>{M(!0),n?.(e)},K=e=>{M(!1),r?.(e)},se=e=>{k(``),z(),rj(R(),e,i)},ce=l,le;H.show&&(le=H.showFormatter?H.showFormatter({value:A,count:ee,maxLength:U}):`${ee}${W?` / ${U}`:``}`,ce=x.createElement(x.Fragment,null,ce,x.createElement(`span`,{className:q(`${u}-data-count`,_?.count),style:v?.count},le)));let ue=e=>{y?.(e),R()?.style.height&&F(!0)},de=!w&&!d&&!a;return x.createElement(aj,{ref:I,value:A,allowClear:a,handleReset:se,suffix:ce,prefixCls:u,classNames:{..._,affixWrapper:q(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:j,className:q(p,te&&`${u}-out-of-range`),style:{...m,...P&&!de?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof le==`string`?le:void 0}},hidden:g,readOnly:C,onClear:b},x.createElement(KM,qM({},E,{autoSize:w,maxLength:o,onKeyDown:ae,onChange:ie,onFocus:oe,onBlur:K,onCompositionStart:re,onCompositionEnd:G,className:q(_?.textarea),style:{resize:m?.resize,...v?.textarea},disabled:h,prefixCls:u,onResize:ue,ref:L,readOnly:C})))}),YM=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},XN=nl([`Input`,`TextArea`],e=>YN(hs(e,zD(e))),BD,{resetFont:!1}),ZN=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:v,direction:y,allowClear:b,autoComplete:S,className:C,style:w,classNames:T,styles:E}=ci(`textArea`),D=x.useContext(Ep),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=x.useContext(ry),M=mC(k,o),[N,P]=Nd([T,c],[E,f],{props:e}),F=x.useRef(null);x.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Wg(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=v(`input`,n),L=sf(I),[R,z]=pO(I,l);XN(I,L);let{compactSize:B,compactItemClassnames:V}=Ym(I,y),H=Km(e=>i??B??e),[U,W]=CC(`textArea`,p,r),ee=lj(s??b),[te,ne]=x.useState(!1),[re,G]=x.useState(!1),ie=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},ae=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&G(!0)}};return x.createElement(JN,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:q(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:q({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:q({[`${I}-${U}`]:W},pC(I,M)),affixWrapper:q(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:y===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&x.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:ae,onMouseDown:ie})}),QN=fj;QN.Group=vN,QN.Search=FN,QN.TextArea=ZN,QN.Password=NN,QN.OTP=wN;function $N(e,t,n){return typeof n==`boolean`?n:e.length?!0:Sr(t).some(e=>e.type===RE)}var eP=({suffixCls:e,tagName:t,displayName:n})=>n=>x.forwardRef((r,i)=>x.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),tP=x.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=x.useContext(ai),c=s(`layout`,n),[l]=ME(c),u=r?`${c}-${r}`:c;return x.createElement(a,{className:q(n||u,i,l),ref:t,...o})}),nP=x.forwardRef((e,t)=>{let{direction:n}=x.useContext(ai),[r,i]=x.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=xr(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=ci(`layout`),_=m(`layout`,a),v=$N(r,c,l),[y,b]=ME(_),S=q(_,{[`${_}-has-sider`]:v,[`${_}-rtl`]:n===`rtl`},h,o,s,y,b),C=x.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Xr(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return x.createElement(OE.Provider,{value:C},x.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),rP=eP({tagName:`div`,displayName:`Layout`})(nP),iP=eP({suffixCls:`header`,tagName:`header`,displayName:`Header`})(tP),aP=eP({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(tP),oP=eP({suffixCls:`content`,tagName:`main`,displayName:`Content`})(tP),sP=rP;sP.Header=iP,sP.Footer=aP,sP.Content=oP,sP.Sider=RE,sP._InternalSiderContext=IE;var cP={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`};function lP(){return lP=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,lP({},e,{ref:t,icon:cP}))),dP={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`};function fP(){return fP=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,fP({},e,{ref:t,icon:dP}))),mP={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},hP=[10,20,50,100],gP=e=>{let{pageSizeOptions:t=hP,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=x.useState(``),m=x.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},v=e=>{f!==``&&(e.keyCode===X.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?x.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):x.createElement(`span`,{onClick:v,onKeyUp:v},a)),C=x.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,x.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:v,onBlur:_,"aria-label":n.page}),n.page,w)),x.createElement(`li`,{className:b},S,C)},_P=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=q(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,x.createElement(`a`,{rel:`nofollow`},n));return m?x.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function bP(){}function xP(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function SP(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var CP=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=bP,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:v=bP,locale:y=mP,style:b,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:T,showSizeChanger:E=c>S,sizeChangerRender:D,pageSizeOptions:O,itemRender:k=yP,jumpPrevIcon:A,jumpNextIcon:j,prevIcon:M,nextIcon:N}=e,P=x.useRef(null),[F,I]=Vn(u,l),[L,R]=Vn(s,o),z=Math.max(1,Math.min(L,SP(void 0,F,c))),[B,V]=x.useState(z);(0,x.useEffect)(()=>{V(z)},[z]),`current`in e;let H=Math.max(1,z-(g?3:5)),U=Math.min(SP(void 0,F,c),z+(g?3:5));function W(n,r){let i=n||x.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=x.createElement(n,e)),i}function ee(e){let t=e.target.value,n=SP(void 0,F,c),r;return r=t===``?t:Number.isNaN(Number(t))?B:t>=n?n:Number(t),r}function te(e){return xP(e)&&e!==z&&xP(c)&&c>0}let ne=c>F?h:!1;function re(e){(e.keyCode===X.UP||e.keyCode===X.DOWN)&&e.preventDefault()}function G(e){let t=ee(e);switch(t!==B&&V(t),e.keyCode){case X.ENTER:oe(t);break;case X.UP:oe(t-1);break;case X.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=SP(e,F,c),n=z>t&&t!==0?t:z;I(e),V(n),v?.(z,e),R(n),d?.(n,e)}function oe(e){if(te(e)&&!C){let t=SP(void 0,F,c),n=e;return e>t?n=t:e<1&&(n=1),n!==B&&V(n),R(n),d?.(n,F),n}return z}let K=z>1,se=zc?c:z*F])),Ce=null,we=SP(void 0,F,c);if(f&&c<=F)return null;let Te=[],Ee={rootPrefixCls:t,onClick:oe,onKeyPress:fe,showTitle:_,itemRender:k,page:-1,className:i?.item,style:a?.item},De=z-1>0?z-1:0,Oe=z+1=Ne*2&&z!==3&&(Te[0]=x.cloneElement(Te[0],{className:q(`${t}-item-after-jump-prev`,Te[0].props.className)}),Te.unshift(be)),we-z>=Ne*2&&z!==we-2){let e=Te[Te.length-1];Te[Te.length-1]=x.cloneElement(e,{className:q(`${t}-item-before-jump-next`,e.props.className)}),Te.push(Ce)}a!==1&&Te.unshift(x.createElement(_P,vP({},Ee,{key:1,page:1}))),o!==we&&Te.push(x.createElement(_P,vP({},Ee,{key:we,page:we})))}let Pe=_e(De);if(Pe){let e=!K||!we;Pe=x.createElement(`li`,{title:_?y.prev_page:null,onClick:ce,tabIndex:e?null:0,onKeyDown:pe,className:q(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=ve(Oe);if(Fe){let e,n;w?(e=!se,n=K?0:null):(e=!se||!we,n=e?null:0),Fe=x.createElement(`li`,{title:_?y.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:q(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=q(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return x.createElement(`ul`,vP({className:Ie,style:b,ref:P},xe),Se,Pe,w?Me:Te,Fe,x.createElement(gP,{locale:y,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:ae,pageSize:F,pageSizeOptions:O,quickGo:ne?oe:null,goButton:je,showSizeChanger:E,sizeChangerRender:D}))},wP=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},TP=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...aO(e),width:e.paginationMiniQuickJumperInputWidth}}}}},EP=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...iO(e)}}}}},DP=e=>{let{componentCls:t,antCls:n}=e,[,r]=al(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${J(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${J(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:`${J(e.inputOutlineOffset)} 0 ${J(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},OP=e=>{let{componentCls:t,antCls:n}=e,[,r]=al(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},XM=nl([`Input`,`TextArea`],e=>YM(hs(e,zD(e))),BD,{resetFont:!1}),ZM=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:v,direction:y,allowClear:b,autoComplete:S,className:C,style:w,classNames:T,styles:E}=ci(`textArea`),D=x.useContext(Ep),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=x.useContext(ry),M=mC(k,o),[N,P]=Nd([T,c],[E,f],{props:e}),F=x.useRef(null);x.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Wg(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=v(`input`,n),L=sf(I),[R,z]=pO(I,l);XM(I,L);let{compactSize:B,compactItemClassnames:V}=Ym(I,y),H=Km(e=>i??B??e),[U,W]=CC(`textArea`,p,r),ee=lj(s??b),[te,ne]=x.useState(!1),[re,G]=x.useState(!1),ie=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},ae=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&G(!0)}};return x.createElement(JM,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:q(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:q({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:q({[`${I}-${U}`]:W},pC(I,M)),affixWrapper:q(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:y===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&x.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:ae,onMouseDown:ie})}),QM=fj;QM.Group=vM,QM.Search=FM,QM.TextArea=ZM,QM.Password=NM,QM.OTP=wM;function $M(e,t,n){return typeof n==`boolean`?n:e.length?!0:Sr(t).some(e=>e.type===RE)}var eN=({suffixCls:e,tagName:t,displayName:n})=>n=>x.forwardRef((r,i)=>x.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),tN=x.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=x.useContext(ai),c=s(`layout`,n),[l]=ME(c),u=r?`${c}-${r}`:c;return x.createElement(a,{className:q(n||u,i,l),ref:t,...o})}),nN=x.forwardRef((e,t)=>{let{direction:n}=x.useContext(ai),[r,i]=x.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=xr(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=ci(`layout`),_=m(`layout`,a),v=$M(r,c,l),[y,b]=ME(_),S=q(_,{[`${_}-has-sider`]:v,[`${_}-rtl`]:n===`rtl`},h,o,s,y,b),C=x.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Xr(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return x.createElement(OE.Provider,{value:C},x.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),rN=eN({tagName:`div`,displayName:`Layout`})(nN),iN=eN({suffixCls:`header`,tagName:`header`,displayName:`Header`})(tN),aN=eN({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(tN),oN=eN({suffixCls:`content`,tagName:`main`,displayName:`Content`})(tN),sN=rN;sN.Header=iN,sN.Footer=aN,sN.Content=oN,sN.Sider=RE,sN._InternalSiderContext=IE;var cN={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`};function lN(){return lN=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,lN({},e,{ref:t,icon:cN}))),dN={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`};function fN(){return fN=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,fN({},e,{ref:t,icon:dN}))),mN={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},hN=[10,20,50,100],gN=e=>{let{pageSizeOptions:t=hN,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=x.useState(``),m=x.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},v=e=>{f!==``&&(e.keyCode===X.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?x.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):x.createElement(`span`,{onClick:v,onKeyUp:v},a)),C=x.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,x.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:v,onBlur:_,"aria-label":n.page}),n.page,w)),x.createElement(`li`,{className:b},S,C)},_N=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=q(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,x.createElement(`a`,{rel:`nofollow`},n));return m?x.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function vN(){return vN=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function bN(){}function xN(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function SN(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var CN=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=bN,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:v=bN,locale:y=mN,style:b,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:T,showSizeChanger:E=c>S,sizeChangerRender:D,pageSizeOptions:O,itemRender:k=yN,jumpPrevIcon:A,jumpNextIcon:j,prevIcon:M,nextIcon:N}=e,P=x.useRef(null),[F,I]=Vn(u,l),[L,R]=Vn(s,o),z=Math.max(1,Math.min(L,SN(void 0,F,c))),[B,V]=x.useState(z);(0,x.useEffect)(()=>{V(z)},[z]),`current`in e;let H=Math.max(1,z-(g?3:5)),U=Math.min(SN(void 0,F,c),z+(g?3:5));function W(n,r){let i=n||x.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=x.createElement(n,e)),i}function ee(e){let t=e.target.value,n=SN(void 0,F,c),r;return r=t===``?t:Number.isNaN(Number(t))?B:t>=n?n:Number(t),r}function te(e){return xN(e)&&e!==z&&xN(c)&&c>0}let ne=c>F?h:!1;function re(e){(e.keyCode===X.UP||e.keyCode===X.DOWN)&&e.preventDefault()}function G(e){let t=ee(e);switch(t!==B&&V(t),e.keyCode){case X.ENTER:oe(t);break;case X.UP:oe(t-1);break;case X.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=SN(e,F,c),n=z>t&&t!==0?t:z;I(e),V(n),v?.(z,e),R(n),d?.(n,e)}function oe(e){if(te(e)&&!C){let t=SN(void 0,F,c),n=e;return e>t?n=t:e<1&&(n=1),n!==B&&V(n),R(n),d?.(n,F),n}return z}let K=z>1,se=zc?c:z*F])),Ce=null,we=SN(void 0,F,c);if(f&&c<=F)return null;let Te=[],Ee={rootPrefixCls:t,onClick:oe,onKeyPress:fe,showTitle:_,itemRender:k,page:-1,className:i?.item,style:a?.item},De=z-1>0?z-1:0,Oe=z+1=Ne*2&&z!==3&&(Te[0]=x.cloneElement(Te[0],{className:q(`${t}-item-after-jump-prev`,Te[0].props.className)}),Te.unshift(be)),we-z>=Ne*2&&z!==we-2){let e=Te[Te.length-1];Te[Te.length-1]=x.cloneElement(e,{className:q(`${t}-item-before-jump-next`,e.props.className)}),Te.push(Ce)}a!==1&&Te.unshift(x.createElement(_N,vN({},Ee,{key:1,page:1}))),o!==we&&Te.push(x.createElement(_N,vN({},Ee,{key:we,page:we})))}let Pe=_e(De);if(Pe){let e=!K||!we;Pe=x.createElement(`li`,{title:_?y.prev_page:null,onClick:ce,tabIndex:e?null:0,onKeyDown:pe,className:q(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=ve(Oe);if(Fe){let e,n;w?(e=!se,n=K?0:null):(e=!se||!we,n=e?null:0),Fe=x.createElement(`li`,{title:_?y.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:q(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=q(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return x.createElement(`ul`,vN({className:Ie,style:b,ref:P},xe),Se,Pe,w?Me:Te,Fe,x.createElement(gN,{locale:y,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:ae,pageSize:F,pageSizeOptions:O,quickGo:ne?oe:null,goButton:je,showSizeChanger:E,sizeChangerRender:D}))},wN=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},TN=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...aO(e),width:e.paginationMiniQuickJumperInputWidth}}}}},EN=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...iO(e)}}}}},DN=e=>{let{componentCls:t,antCls:n}=e,[,r]=al(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${J(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${J(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:`${J(e.inputOutlineOffset)} 0 ${J(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},ON=e=>{let{componentCls:t,antCls:n}=e,[,r]=al(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -254,21 +254,21 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{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:`${J(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":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...oO(e),...UD(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...HD(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},kP=e=>{let{componentCls:t,antCls:n}=e,[,r]=al(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:J(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${J(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.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},AP=e=>{let{componentCls:t,antCls:n}=e,[r,i]=al(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:J(e.itemSize),[r(`item-spacing-actual`)]:J(e.marginXS),"&-small":{[r(`item-size-actual`)]:J(e.itemSizeSM),[r(`item-spacing-actual`)]:J(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:J(e.itemSizeLG),[r(`item-spacing-actual`)]:J(e.marginSM)},...qc(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:J(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...kP(e),...OP(e),...DP(e),...TP(e),...EP(e),...wP(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`}}},jP=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Zc(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Xc(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Xc(e)}}}},MP=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...BD(e)}),NP=e=>hs(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),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.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},zD(e)),PP=nl(`Pagination`,e=>{let t=NP(e);return[AP(t),jP(t)]},MP),FP=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${J(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}}}}},IP=il([`Pagination`,`bordered`],e=>FP(NP(e)),MP);function LP(e){return(0,x.useMemo)(()=>typeof e==`boolean`?[e,{}]:pd(e)?[!0,e]:[void 0,void 0],[e])}var RP=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=iw(l),[,_]=Gc(),{getPrefixCls:v,direction:y,showSizeChanger:b,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=ci(`pagination`),D=v(`pagination`,n),[O,k]=PP(D),A=Km(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Nd([w,m],[T,p],{props:M}),[F]=od(`Pagination`,Bu),I={...F,...c},[L,R]=LP(u),[z,B]=LP(b),V=L??z,H=R??B,U=d||ZC,W=x.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return x.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:q(a,s)})},te=x.useMemo(()=>{let e=x.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:x.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},y===`rtl`?x.createElement(sg,null):x.createElement(eT,null)),nextIcon:x.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},y===`rtl`?x.createElement(eT,null):x.createElement(sg,null)),jumpPrevIcon:x.createElement(`a`,{className:`${D}-item-link`},x.createElement(`div`,{className:`${D}-item-container`},y===`rtl`?x.createElement(pP,{className:`${D}-item-link-icon`}):x.createElement(uP,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:x.createElement(`a`,{className:`${D}-item-link`},x.createElement(`div`,{className:`${D}-item-container`},y===`rtl`?x.createElement(uP,{className:`${D}-item-link-icon`}):x.createElement(pP,{className:`${D}-item-link-icon`}),e))}},[y,D]),ne=v(`select`,r),re=q({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:y===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),G={...P.root,...C,...o};return x.createElement(x.Fragment,null,_.wireframe&&x.createElement(IP,{prefixCls:D}),x.createElement(CP,{...te,...h,styles:P,classNames:N,style:G,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},zP=100,BP=zP/5,VP=zP/2-BP/2,HP=VP*2*Math.PI,UP=50,WP=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return x.createElement(`circle`,{className:q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:VP,cx:UP,cy:UP,strokeWidth:BP,style:n})},GP=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=x.useState(!1);Rn(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${HP/4}`,strokeDasharray:`${HP*s/100} ${HP*(100-s)/100}`};return x.createElement(`span`,{className:q(r,`${n}-progress`,{[i]:s<=0})},x.createElement(`svg`,{viewBox:`0 0 ${zP} ${zP}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},x.createElement(WP,{dotClassName:n,hasCircleCls:!0}),x.createElement(WP,{dotClassName:n,style:c})))};function KP(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return x.createElement(x.Fragment,null,x.createElement(`span`,{className:q(o,r,n>0&&s),style:i},x.createElement(`span`,{className:q(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>x.createElement(`i`,{className:`${t}-dot-item`,key:e})))),x.createElement(GP,{prefixCls:t,percent:n}))}function qP(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&x.isValidElement(n)?xp(n,e=>({className:q(e.className,o,i),style:{...e.style,...a},percent:r})):x.createElement(KP,{prefixCls:t,percent:r,className:i,style:a})}var JP=new Io(`antSpinMove`,{to:{opacity:1}}),YP=new Io(`antRotate`,{to:{transform:`rotate(405deg)`}}),XP=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...qc(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},ZP=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=al(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:YP,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:JP,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`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},QP=e=>{let{componentCls:t}=e,[n]=al(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},$P=nl(`Spin`,e=>{let t=hs(e,{spinDotDefault:e.colorTextDescription});return[XP(t),ZP(t),QP(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),eF=200,tF=[[30,.05],[70,.03],[96,.01]];function nF(e,t){let[n,r]=x.useState(0),i=x.useRef(null),a=t===`auto`;return x.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var rF;function iF(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var aF=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:v,direction:y,indicator:b,className:S,style:C,classNames:w,styles:T}=ci(`spin`),E=v(`spin`,t),[D,O]=$P(E),[k,A]=x.useState(()=>n&&!iF(n,r)),j=nF(k,m);x.useEffect(()=>{if(n){let e=Pk(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Km(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Nd([w,h],[T,g],{props:P}),L=p??b??rF,R=d!==void 0,z=R||f,B=x.createElement(x.Fragment,null,x.createElement(qP,{className:q(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&x.createElement(`div`,{className:q(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return x.createElement(`div`,{className:q(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:y===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?x.createElement(`div`,{className:q(`${E}-section`,F.section),style:I.section},B):B),R&&x.createElement(`div`,{className:q(`${E}-container`,F.container),style:I.container},d))};aF.setDefaultIndicator=e=>{rF=e};var oF=(e,t={})=>!ud(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],sF=null,cF=e=>e(),lF=[],uF={};function dF(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=uF,a=e?.()||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}var fF=x.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,x.useContext)(ai),a=uF.prefixCls||i(`message`),o=(0,x.useContext)(sx),[s,c]=wm({...n,prefixCls:a,...o.message});return x.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),pF=x.forwardRef((e,t)=>{let[n,r]=x.useState(dF),i=()=>{r(dF)};x.useEffect(i,[]);let a=Wp(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=x.createElement(fF,{ref:t,sync:i,messageConfig:n});return x.createElement(Kp,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),mF=()=>{if(!sF){let e=document.createDocumentFragment(),t={fragment:e};sF=t,cF(()=>{Om(x.createElement(pF,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,mF())})}}),e)});return}sF.instance&&(lF.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:cF(()=>{let t=sF.instance.open({...uF,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:cF(()=>{sF?.instance.destroy(e.key)});break;default:cF(()=>{var n;let r=(n=sF.instance)[t].apply(n,Xr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),lF=[])};function hF(e){uF={...uF,...e},cF(()=>{sF?.sync?.()})}function gF(e){let t=_m(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return lF.push(r),()=>{n?cF(()=>{n()}):r.skipped=!0}});return mF(),t}function _F(e,t){let n=_m(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return lF.push(i),()=>{r?cF(()=>{r()}):i.skipped=!0}});return mF(),n}var vF=e=>{lF.push({type:`destroy`,key:e}),mF()},yF=[`success`,`info`,`warning`,`error`,`loading`],bF={open:gF,destroy:vF,config:hF,useMessage:Tm,_InternalPanelDoNotUseOrYouWillBeFired:hm};yF.forEach(e=>{bF[e]=(...t)=>_F(e,t)});var xF=px(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=x.useContext(ai),{className:p,style:m,classNames:h,styles:g}=ci(`modal`),_=f(),v=t||f(`modal`),y=sf(_),[b,S]=fb(v,y),[C,w]=Nd([h,l],[g,u],{props:e}),T=`${v}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:x.createElement(_b,{...e,prefixCls:v,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&x.createElement(Jy,{...e}),children:s},x.createElement(a_,{prefixCls:v,className:q(b,`${v}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,y,C.root),style:{...m,...w.root},...d,closeIcon:qy(v,r),closable:i,classNames:C,styles:w,...E})});function SF(e){return wb(Tb(e))}var CF=mb;CF.useModal=Pb,CF.info=function(e){return wb(Eb(e))},CF.success=function(e){return wb(Db(e))},CF.error=function(e){return wb(Ob(e))},CF.warning=SF,CF.warn=SF,CF.confirm=function(e){return wb(kb(e))},CF.destroyAll=function(){for(;bb.length;){let e=bb.pop();e&&e()}},CF.config=Ab,CF._InternalPanelDoNotUseOrYouWillBeFired=xF;var wF=nl(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),TF=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=x.createElement(zl,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=x.useContext(ai),[v]=od(`Popconfirm`,$u.Popconfirm),y=uw(i),b=uw(a);return x.createElement(`div`,{className:`${t}-inner-content`,onClick:m},x.createElement(`div`,{className:`${t}-message`},l&&x.createElement(`span`,{className:`${t}-message-icon`},l),x.createElement(`div`,{className:`${t}-message-text`},y&&x.createElement(`div`,{className:q(`${t}-title`,h?.title),style:g?.title},y),b&&x.createElement(`div`,{className:q(`${t}-description`,h?.content),style:g?.content},b))),x.createElement(`div`,{className:`${t}-buttons`},u&&x.createElement(Mg,{onClick:p,size:`small`,...r},o||v?.cancelText),x.createElement(Ng,{buttonProps:{size:`small`,...rh(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||v?.okText)))},EF=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=x.useContext(ai),s=o(`popconfirm`,t);return wF(s),x.createElement(qw,{placement:n,className:q(s,r),style:i,content:x.createElement(TF,{prefixCls:s,...a})})},DF=x.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=x.createElement(zl,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:v,styles:y,arrow:b,trigger:S}=ci(`popconfirm`),[C,w]=Vn(e.defaultOpen??!1,e.open),T=kw(f,b),E=i||S||`click`,D=e=>{w(e),l?.(e)},O=()=>{D(!1)},k=t=>e.onConfirm?.call(void 0,t),A=t=>{D(!1),e.onCancel?.call(void 0,t)},j=t=>{let{disabled:n=!1}=e;n||D(t)},M=h(`popconfirm`,n),N={...e,placement:r,trigger:E,okType:a,overlayStyle:u,styles:d,classNames:p},[P,F]=Nd([v,p],[y,d],{props:N}),I=q(M,g,c,P.root);return wF(M),x.createElement(Jw,{arrow:T,...xr(m,[`title`]),trigger:E,placement:r,onOpenChange:j,open:C,ref:t,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{..._,...F.root,...u},container:F.container,arrow:F.arrow},content:x.createElement(TF,{okType:a,icon:o,...e,prefixCls:M,close:O,onConfirm:k,onCancel:A,classNames:P,styles:F}),"data-popover-inject":!0},s)});DF._InternalPanelDoNotUseOrYouWillBeFired=EF;var OF={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},kF=()=>{let e=(0,x.useRef)([]),t=(0,x.useRef)(null);return(0,x.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},AF=({bg:e,children:t})=>x.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function jF(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var MF=x.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,m=p?`#FFF`:void 0,h=d/2,g=x.createElement(`circle`,{className:q(`${n}-circle-path`,o),r:a,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return g;let _=`${i}-conic`,v=f?`${180+f/2}deg`:`0deg`,y=jF(r,(360-f)/360),b=jF(r,1),S=`conic-gradient(from ${v}, ${y.join(`, `)})`,C=`linear-gradient(to ${f?`bottom`:`top`}, ${b.join(`, `)})`;return x.createElement(x.Fragment,null,x.createElement(`mask`,{id:_},g),x.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${_})`},x.createElement(AF,{bg:C},x.createElement(AF,{bg:S}))))}),NF=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},PF=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:x.createElement(`style`,null,`@keyframes ${n} { + `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{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:`${J(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":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...oO(e),...UD(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...HD(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},kN=e=>{let{componentCls:t,antCls:n}=e,[,r]=al(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:J(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${J(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.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},AN=e=>{let{componentCls:t,antCls:n}=e,[r,i]=al(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:J(e.itemSize),[r(`item-spacing-actual`)]:J(e.marginXS),"&-small":{[r(`item-size-actual`)]:J(e.itemSizeSM),[r(`item-spacing-actual`)]:J(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:J(e.itemSizeLG),[r(`item-spacing-actual`)]:J(e.marginSM)},...qc(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:J(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...kN(e),...ON(e),...DN(e),...TN(e),...EN(e),...wN(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`}}},jN=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Zc(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Xc(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Xc(e)}}}},MN=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...BD(e)}),NN=e=>hs(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),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.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},zD(e)),PN=nl(`Pagination`,e=>{let t=NN(e);return[AN(t),jN(t)]},MN),FN=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${J(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}}}}},IN=il([`Pagination`,`bordered`],e=>FN(NN(e)),MN);function LN(e){return(0,x.useMemo)(()=>typeof e==`boolean`?[e,{}]:pd(e)?[!0,e]:[void 0,void 0],[e])}var RN=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=iw(l),[,_]=Gc(),{getPrefixCls:v,direction:y,showSizeChanger:b,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=ci(`pagination`),D=v(`pagination`,n),[O,k]=PN(D),A=Km(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Nd([w,m],[T,p],{props:M}),[F]=od(`Pagination`,Bu),I={...F,...c},[L,R]=LN(u),[z,B]=LN(b),V=L??z,H=R??B,U=d||ZC,W=x.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return x.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:q(a,s)})},te=x.useMemo(()=>{let e=x.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:x.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},y===`rtl`?x.createElement(sg,null):x.createElement(eT,null)),nextIcon:x.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},y===`rtl`?x.createElement(eT,null):x.createElement(sg,null)),jumpPrevIcon:x.createElement(`a`,{className:`${D}-item-link`},x.createElement(`div`,{className:`${D}-item-container`},y===`rtl`?x.createElement(pN,{className:`${D}-item-link-icon`}):x.createElement(uN,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:x.createElement(`a`,{className:`${D}-item-link`},x.createElement(`div`,{className:`${D}-item-container`},y===`rtl`?x.createElement(uN,{className:`${D}-item-link-icon`}):x.createElement(pN,{className:`${D}-item-link-icon`}),e))}},[y,D]),ne=v(`select`,r),re=q({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:y===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),G={...P.root,...C,...o};return x.createElement(x.Fragment,null,_.wireframe&&x.createElement(IN,{prefixCls:D}),x.createElement(CN,{...te,...h,styles:P,classNames:N,style:G,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},zN=100,BN=zN/5,VN=zN/2-BN/2,HN=VN*2*Math.PI,UN=50,WN=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return x.createElement(`circle`,{className:q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:VN,cx:UN,cy:UN,strokeWidth:BN,style:n})},GN=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=x.useState(!1);Rn(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${HN/4}`,strokeDasharray:`${HN*s/100} ${HN*(100-s)/100}`};return x.createElement(`span`,{className:q(r,`${n}-progress`,{[i]:s<=0})},x.createElement(`svg`,{viewBox:`0 0 ${zN} ${zN}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},x.createElement(WN,{dotClassName:n,hasCircleCls:!0}),x.createElement(WN,{dotClassName:n,style:c})))};function KN(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return x.createElement(x.Fragment,null,x.createElement(`span`,{className:q(o,r,n>0&&s),style:i},x.createElement(`span`,{className:q(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>x.createElement(`i`,{className:`${t}-dot-item`,key:e})))),x.createElement(GN,{prefixCls:t,percent:n}))}function qN(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&x.isValidElement(n)?xp(n,e=>({className:q(e.className,o,i),style:{...e.style,...a},percent:r})):x.createElement(KN,{prefixCls:t,percent:r,className:i,style:a})}var JN=new Io(`antSpinMove`,{to:{opacity:1}}),YN=new Io(`antRotate`,{to:{transform:`rotate(405deg)`}}),XN=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...qc(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},ZN=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=al(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:YN,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:JN,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`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},QN=e=>{let{componentCls:t}=e,[n]=al(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},$N=nl(`Spin`,e=>{let t=hs(e,{spinDotDefault:e.colorTextDescription});return[XN(t),ZN(t),QN(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),eP=200,tP=[[30,.05],[70,.03],[96,.01]];function nP(e,t){let[n,r]=x.useState(0),i=x.useRef(null),a=t===`auto`;return x.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var rP;function iP(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var aP=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:v,direction:y,indicator:b,className:S,style:C,classNames:w,styles:T}=ci(`spin`),E=v(`spin`,t),[D,O]=$N(E),[k,A]=x.useState(()=>n&&!iP(n,r)),j=nP(k,m);x.useEffect(()=>{if(n){let e=Pk(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Km(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Nd([w,h],[T,g],{props:P}),L=p??b??rP,R=d!==void 0,z=R||f,B=x.createElement(x.Fragment,null,x.createElement(qN,{className:q(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&x.createElement(`div`,{className:q(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return x.createElement(`div`,{className:q(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:y===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?x.createElement(`div`,{className:q(`${E}-section`,F.section),style:I.section},B):B),R&&x.createElement(`div`,{className:q(`${E}-container`,F.container),style:I.container},d))};aP.setDefaultIndicator=e=>{rP=e};var oP=(e,t={})=>!ud(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],sP=null,cP=e=>e(),lP=[],uP={};function dP(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=uP,a=e?.()||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}var fP=x.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,x.useContext)(ai),a=uP.prefixCls||i(`message`),o=(0,x.useContext)(sx),[s,c]=wm({...n,prefixCls:a,...o.message});return x.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),pP=x.forwardRef((e,t)=>{let[n,r]=x.useState(dP),i=()=>{r(dP)};x.useEffect(i,[]);let a=Wp(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=x.createElement(fP,{ref:t,sync:i,messageConfig:n});return x.createElement(Kp,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),mP=()=>{if(!sP){let e=document.createDocumentFragment(),t={fragment:e};sP=t,cP(()=>{Om(x.createElement(pP,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,mP())})}}),e)});return}sP.instance&&(lP.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:cP(()=>{let t=sP.instance.open({...uP,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:cP(()=>{sP?.instance.destroy(e.key)});break;default:cP(()=>{var n;let r=(n=sP.instance)[t].apply(n,Xr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),lP=[])};function hP(e){uP={...uP,...e},cP(()=>{sP?.sync?.()})}function gP(e){let t=_m(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return lP.push(r),()=>{n?cP(()=>{n()}):r.skipped=!0}});return mP(),t}function _P(e,t){let n=_m(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return lP.push(i),()=>{r?cP(()=>{r()}):i.skipped=!0}});return mP(),n}var vP=e=>{lP.push({type:`destroy`,key:e}),mP()},yP=[`success`,`info`,`warning`,`error`,`loading`],bP={open:gP,destroy:vP,config:hP,useMessage:Tm,_InternalPanelDoNotUseOrYouWillBeFired:hm};yP.forEach(e=>{bP[e]=(...t)=>_P(e,t)});var xP=px(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=x.useContext(ai),{className:p,style:m,classNames:h,styles:g}=ci(`modal`),_=f(),v=t||f(`modal`),y=sf(_),[b,S]=fb(v,y),[C,w]=Nd([h,l],[g,u],{props:e}),T=`${v}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:x.createElement(_b,{...e,prefixCls:v,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&x.createElement(Jy,{...e}),children:s},x.createElement(a_,{prefixCls:v,className:q(b,`${v}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,y,C.root),style:{...m,...w.root},...d,closeIcon:qy(v,r),closable:i,classNames:C,styles:w,...E})});function SP(e){return wb(Tb(e))}var CP=mb;CP.useModal=Pb,CP.info=function(e){return wb(Eb(e))},CP.success=function(e){return wb(Db(e))},CP.error=function(e){return wb(Ob(e))},CP.warning=SP,CP.warn=SP,CP.confirm=function(e){return wb(kb(e))},CP.destroyAll=function(){for(;bb.length;){let e=bb.pop();e&&e()}},CP.config=Ab,CP._InternalPanelDoNotUseOrYouWillBeFired=xP;var wP=nl(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),TP=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=x.createElement(zl,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=x.useContext(ai),[v]=od(`Popconfirm`,$u.Popconfirm),y=uw(i),b=uw(a);return x.createElement(`div`,{className:`${t}-inner-content`,onClick:m},x.createElement(`div`,{className:`${t}-message`},l&&x.createElement(`span`,{className:`${t}-message-icon`},l),x.createElement(`div`,{className:`${t}-message-text`},y&&x.createElement(`div`,{className:q(`${t}-title`,h?.title),style:g?.title},y),b&&x.createElement(`div`,{className:q(`${t}-description`,h?.content),style:g?.content},b))),x.createElement(`div`,{className:`${t}-buttons`},u&&x.createElement(Mg,{onClick:p,size:`small`,...r},o||v?.cancelText),x.createElement(Ng,{buttonProps:{size:`small`,...rh(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||v?.okText)))},EP=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=x.useContext(ai),s=o(`popconfirm`,t);return wP(s),x.createElement(qw,{placement:n,className:q(s,r),style:i,content:x.createElement(TP,{prefixCls:s,...a})})},DP=x.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=x.createElement(zl,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:v,styles:y,arrow:b,trigger:S}=ci(`popconfirm`),[C,w]=Vn(e.defaultOpen??!1,e.open),T=kw(f,b),E=i||S||`click`,D=e=>{w(e),l?.(e)},O=()=>{D(!1)},k=t=>e.onConfirm?.call(void 0,t),A=t=>{D(!1),e.onCancel?.call(void 0,t)},j=t=>{let{disabled:n=!1}=e;n||D(t)},M=h(`popconfirm`,n),N={...e,placement:r,trigger:E,okType:a,overlayStyle:u,styles:d,classNames:p},[P,F]=Nd([v,p],[y,d],{props:N}),I=q(M,g,c,P.root);return wP(M),x.createElement(Jw,{arrow:T,...xr(m,[`title`]),trigger:E,placement:r,onOpenChange:j,open:C,ref:t,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{..._,...F.root,...u},container:F.container,arrow:F.arrow},content:x.createElement(TP,{okType:a,icon:o,...e,prefixCls:M,close:O,onConfirm:k,onCancel:A,classNames:P,styles:F}),"data-popover-inject":!0},s)});DP._InternalPanelDoNotUseOrYouWillBeFired=EP;var OP={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},kP=()=>{let e=(0,x.useRef)([]),t=(0,x.useRef)(null);return(0,x.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},AP=({bg:e,children:t})=>x.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function jP(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var MP=x.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,m=p?`#FFF`:void 0,h=d/2,g=x.createElement(`circle`,{className:q(`${n}-circle-path`,o),r:a,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return g;let _=`${i}-conic`,v=f?`${180+f/2}deg`:`0deg`,y=jP(r,(360-f)/360),b=jP(r,1),S=`conic-gradient(from ${v}, ${y.join(`, `)})`,C=`linear-gradient(to ${f?`bottom`:`top`}, ${b.join(`, `)})`;return x.createElement(x.Fragment,null,x.createElement(`mask`,{id:_},g),x.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${_})`},x.createElement(AP,{bg:C},x.createElement(AP,{bg:S}))))}),NP=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},PP=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:x.createElement(`style`,null,`@keyframes ${n} { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } - }`)}});function FF(){return FF=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:m,percent:h,loading:g,..._}={...OF,...e},v=Ef(t),y=`${v}-gradient`,b=50-o/2,S=Math.PI*2*b,C=c>0?90+c/2:-90,w=S*((360-c)/360),{count:T,gap:E}=typeof a==`object`?a:{count:a,gap:2},D=IF(h),O=IF(m),k=O.find(e=>e&&typeof e==`object`),A=k&&typeof k==`object`?`butt`:d,{indeterminateStyleProps:j,indeterminateStyleAnimation:M}=PF({id:v,loading:g}),N=NF(S,w,0,100,C,c,l,u,A,o),P=kF(),F=()=>{let e=0;return D.map((t,a)=>{let s=O[a]||O[O.length-1],u=NF(S,w,e,t,C,c,l,s,A,o);return e+=t,x.createElement(MF,{key:a,color:s,ptg:t,radius:b,prefixCls:n,gradientId:y,className:r.track,style:{...u,...j,...i.track},strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:e=>{P[a]=e},size:100})}).reverse()},I=()=>{let e=Math.round(T*(D[0]/100)),t=100/T,a=0;return Array(T).fill(null).map((s,d)=>{let f=d<=e-1?O[0]:u,p=f&&typeof f==`object`?`url(#${y})`:void 0,m=NF(S,w,a,t,C,c,l,f,`butt`,o,E);return a+=(w-m.strokeDashoffset+E)*100/w,x.createElement(`circle`,{key:d,className:q(`${n}-circle-path`,r.track),r:b,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...m,...i.track},ref:e=>{P[d]=e}})})};return x.createElement(`svg`,FF({className:q(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},_),!T&&x.createElement(`circle`,{className:q(`${n}-circle-rail`,r.rail),r:b,cx:50,cy:50,stroke:u,strokeLinecap:A,strokeWidth:s||o,style:{...N,...i.rail}}),T?I():F(),M)};function RF(e){return!e||e<0?0:e>100?100:e}function zF({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var BF=({percent:e,success:t})=>{let n=RF(zF({success:t}));return[n,RF(RF(e)-n)]},VF=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Xs.green,t||null]},HF=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):dd(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):dd(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else (t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:dd(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},UF=3,WF=e=>UF/e*100,GF=[`root`,`body`,`indicator`],KF=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:m=u,steps:h}=e,{direction:g}=ci(`progress`),_=i??a,[v,y]=HF(m,`circle`),{strokeWidth:b}=e;b===void 0&&(b=Math.max(WF(v),6));let S={width:v,height:y,fontSize:v*.15+6},C=x.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),w=BF(e),T=x.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=g===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[g,c,s,d]),E=Object.prototype.toString.call(e.strokeColor)===`[object Object]`,D=VF({success:p,strokeColor:e.strokeColor}),O=q(`${t}-body`,{[`${t}-circle-gradient`]:E},n.body),k=x.createElement(LF,{steps:h,percent:h?w[1]:w,strokeWidth:b,railWidth:b,strokeColor:h?D[1]:D,strokeLinecap:o,railColor:_,prefixCls:t,gapDegree:C,gapPosition:T,classNames:xr(n,GF),styles:xr(r,GF)}),A=v<=20,j=x.createElement(`div`,{className:O,style:{...S,...r.body}},k,!A&&f);return A?x.createElement(Bw,{title:f},j):j},qF=`--progress-line-stroke-color`,JF=e=>{let t=e?`100%`:`-100%`;return new Io(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},YF=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...qc(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},XF=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:JF(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},ZF=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},QF=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},$F=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},eI=nl(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=hs(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[YF(n),XF(n),ZF(n),QF(n),$F(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),tI=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},nI=(e,t)=>{let{from:n=Xs.blue,to:r=Xs.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${tI(a)})`;return{background:e,[qF]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[qF]:o}},rI=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:m}=e,{align:h,type:g}=p,_=d??f,v=l===`square`||l===`butt`?0:void 0,[y,b]=HF(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),S={backgroundColor:_||void 0,borderRadius:v,height:b},C=`${t}-track`,w=c&&typeof c!=`string`?nI(c,i):{[qF]:c,background:c},T={width:`${RF(a)}%`,height:b,borderRadius:v,...w},E=zF(e),D={width:`${RF(E)}%`,height:b,borderRadius:v,backgroundColor:m?.strokeColor};return x.createElement(`div`,{className:q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:h===`center`&&g===`outer`}),style:{width:y>0?y:`100%`,...r.body}},x.createElement(`div`,{className:q(`${t}-rail`,n.rail),style:{...S,...r.rail}},x.createElement(`div`,{className:q(C,n.track),style:{...T,...r.track}},g===`inner`&&u),E!==void 0&&x.createElement(`div`,{className:q(C,`${C}-success`,n.track),style:{...D,...r.track}})),g===`outer`&&u)},iI=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[m,h]=HF(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),g=m/i,_=Array.from({length:i}),v=l??u;for(let e=0;e{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:m,style:h,percentPosition:g={},..._}=e,{align:v=`end`,type:y=`outer`}=g,b=Array.isArray(c)?c[0]:c,S=typeof c==`string`||Array.isArray(c)?c:void 0,C=x.useMemo(()=>b?new Ls(typeof b==`string`?b:Object.values(b)[0]).isLight():!1,[c]),w=x.useMemo(()=>{let t=zF(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),T=x.useMemo(()=>!aI.includes(p)&&w>=100?`success`:p||`normal`,[p,w]),{getPrefixCls:E,direction:D,className:O,style:k,classNames:A,styles:j}=ci(`progress`),M=E(`progress`,n),[N,P]=eI(M),F={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:g},[I,L]=Nd([A,a],[j,o],{props:F}),R=f===`line`,z=R&&!s,B=x.useMemo(()=>{if(!d)return null;let t=zF(e),n,r=m||(e=>`${e}%`),i=R&&C&&y===`inner`;return y===`inner`||m||T!==`exception`&&T!==`success`?n=r(RF(l),RF(t)):T===`exception`?n=R?x.createElement(Nl,null):x.createElement(Il,null):T===`success`&&(n=R?x.createElement(Al,null):x.createElement(BC,null)),x.createElement(`span`,{className:q(`${M}-indicator`,{[`${M}-indicator-bright`]:i,[`${M}-indicator-${v}`]:z,[`${M}-indicator-${y}`]:z},I.indicator),style:L.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,w,T,f,M,m,R,C,y,v,z,I.indicator,L.indicator]),V={...e,classNames:I,styles:L},H;f===`line`?H=s?x.createElement(iI,{...V,strokeColor:S,prefixCls:M,steps:pd(s)?s.count:s},B):x.createElement(rI,{...V,strokeColor:b,prefixCls:M,direction:D,percentPosition:{align:v,type:y}},B):(f===`circle`||f===`dashboard`)&&(H=x.createElement(KF,{...V,strokeColor:b,prefixCls:M,progressStatus:T},B));let U=q(M,`${M}-status-${T}`,{[`${M}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${M}-inline-circle`]:f===`circle`&&HF(u,`circle`)[0]<=20,[`${M}-line`]:z,[`${M}-line-align-${v}`]:z,[`${M}-line-position-${y}`]:z,[`${M}-steps`]:s,[`${M}-show-info`]:d,[`${M}-small`]:u===`small`,[`${M}-rtl`]:D===`rtl`},O,r,i,I.root,N,P);return x.createElement(`div`,{ref:t,style:{...k,...L.root,...h},className:U,role:`progressbar`,"aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100,...xr(_,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},H)}),sI={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`};function cI(){return cI=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,cI({},e,{ref:t,icon:sI}))),uI=uA;function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[h,g]=Vn(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function v(e){e.which===X.LEFT?_(!1,e):e.which===X.RIGHT&&_(!0,e),u?.(e)}function y(e){let t=_(!h,e);c?.(t,e)}let b=q(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return x.createElement(`button`,dI({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:b,ref:m,onKeyDown:v,onClick:y}),a,x.createElement(`span`,{className:`${e}-inner`},x.createElement(`span`,{className:q(`${e}-inner-checked`,f?.content),style:d?.content},o),x.createElement(`span`,{className:q(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});fI.displayName=`Switch`;var pI=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=J(c(s).add(c(r).mul(2)).equal()),d=J(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:J(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${J(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},mI=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},hI=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...Ih(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...Ih()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${J(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},gI=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=J(c(o).add(c(r).mul(2)).equal()),d=J(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Ih(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Ih()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},_I=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...qc(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:J(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Ih(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Zc(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},vI=nl(`Switch`,e=>{let t=hs(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[_I(t),gI(t),hI(t),mI(t),pI(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Ls(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),yI=x.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,v]=Vn(d??f??!1,l??u),{getPrefixCls:y,direction:b,className:S,style:C,classNames:w,styles:T}=ci(`switch`),E=x.useContext(Ep),D=(i??E)||a,O=y(`switch`,n),[k,A]=vI(O),j=Km(r),M={...e,size:j,disabled:D},[N,P]=Nd([w,h],[T,m],{props:M}),F=x.createElement(`div`,{className:q(`${O}-handle`,N.indicator),style:P.indicator},a&&x.createElement(um,{className:`${O}-loading-icon`})),I=q(S,{[`${O}-small`]:j===`small`,[`${O}-loading`]:a,[`${O}-rtl`]:b===`rtl`},o,s,N.root,k,A),L={...P.root,...C,...c},R=(...e)=>{v(e[0]),p?.(...e)};return x.createElement(Gm,{component:`Switch`,disabled:D},x.createElement(fI,{...g,classNames:N,styles:P,checked:_,onChange:R,prefixCls:O,className:I,style:L,disabled:D,ref:t,loadingIcon:F}))});yI.__ANT_SWITCH=!0;var bI={},xI=`rc-table-internal-hook`;function SI(e){let t=x.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=x.useRef(e);r.current=e;let[i]=x.useState(()=>({getValue:()=>r.current,listeners:new Set}));return Rn(()=>{(0,Ff.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),x.createElement(t.Provider,{value:i},n)},defaultValue:e}}function CI(e,t){let n=Fn(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=x.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=x.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=x.useState({});return Rn(()=>{if(!r)return;function e(e){let t=n(e);wi(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let s=i?{ref:o}:{},c=x.useRef(0),l=x.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,x.createElement(e.Provider,{value:c.current},x.createElement(n,wI({},a,s)))):x.createElement(n,wI({},a,s))};return i?x.forwardRef(a):a}function r(e,n){let r=er(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),x.createElement(e,wI({},n,a))};return x.memo(r?x.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:EI,responseImmutable:DI,useImmutableMark:OI}=TI(),{makeImmutable:kI,responseImmutable:AI,useImmutableMark:jI}=TI(),MI=SI(),NI=x.createContext({renderWithProps:!1}),PI=`RC_TABLE_KEY`;function FI(e){return e==null?[]:Array.isArray(e)?e:[e]}function II(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||FI(i).join(`-`)||PI;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function LI(e){return e!=null}function RI(e){return typeof e==`number`&&!Number.isNaN(e)}function zI(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!x.isValidElement(e)}function BI(e,t,n,r,i,a){let o=x.useContext(NI);return Wn(()=>{if(LI(r))return[r];let a=ir(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);zI(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[jI(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!wi(e,t,!0)})}function VI(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function HI(e,t){return CI(MI,n=>[VI(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function UI(){return UI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():x.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},GI=x.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:v,fixEnd:y,fixedStartShadow:b,fixedEndShadow:S,offsetFixedStartShadow:C,offsetFixedEndShadow:w,zIndex:T,zIndexReverse:E,appendNode:D,additionalProps:O={},isSticky:k}=e,A=`${a}-cell`,{allColumnsFixedLeft:j,rowHoverable:M}=CI(MI,[`allColumnsFixedLeft`,`rowHoverable`]),[N,P]=BI(l,d,f,n,u,p),F={},I=typeof v==`number`&&!j,L=typeof y==`number`&&!j,[R,z]=CI(MI,({scrollInfo:e})=>{if(!I&&!L)return[!1,!1];let[t,n]=e;return[(I&&b&&t)-C>=1,(L&&S&&n-t)-w>1]});I&&(F.insetInlineStart=v,F[`--z-offset`]=T,F[`--z-offset-reverse`]=E),L&&(F.insetInlineEnd=y,F[`--z-offset`]=T,F[`--z-offset-reverse`]=E);let B=P?.colSpan??O.colSpan??g??1,V=P?.rowSpan??O.rowSpan??_??1,[H,U]=HI(m,V),W=Fn(e=>{l&&U(m,m+V-1),O?.onMouseEnter?.(e)}),ee=Fn(e=>{l&&U(-1,-1),O?.onMouseLeave?.(e)});if(B===0||V===0)return null;let te=O.title??WI({rowType:h,ellipsis:r,children:N}),ne=q(A,o,{[`${A}-fix`]:I||L,[`${A}-fix-start`]:I,[`${A}-fix-end`]:L,[`${A}-fix-start-shadow`]:b,[`${A}-fix-start-shadow-show`]:b&&R,[`${A}-fix-end-shadow`]:S,[`${A}-fix-end-shadow-show`]:S&&z,[`${A}-ellipsis`]:r,[`${A}-with-append`]:D,[`${A}-fix-sticky`]:(I||L)&&k,[`${A}-row-hover`]:!P&&H},O.className,P?.className),re={};c&&(re.textAlign=c);let G={...P?.style,...F,...re,...O.style,...s},ie=N;return typeof ie==`object`&&!Array.isArray(ie)&&!x.isValidElement(ie)&&(ie=null),r&&(b||S)&&(ie=x.createElement(`span`,{className:`${A}-content`},ie)),x.createElement(t,UI({},P,O,{className:ne,style:G,title:te,scope:i,onMouseEnter:M?W:void 0,onMouseLeave:M?ee:void 0,colSpan:B===1?null:B,rowSpan:V===1?null:V}),D,ie)});function KI(e){return e.fixed===`start`}function qI(e){return e.fixed===`end`}function JI(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;KI(i)&&KI(a)?o=r.start[e]:qI(a)&&qI(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!KI(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!qI(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;tt;--e)qI(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var YI=x.createContext({});function XI(){return XI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=CI(MI,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=x.useContext(YI),d=n+i-1+1===c?i+1:i,f=x.useMemo(()=>JI(n,n+d-1,u,l),[n,d,u,l]);return x.createElement(GI,XI({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},QI=e=>{let{children:t,...n}=e;return x.createElement(`tr`,n,t)},$I=e=>{let{children:t}=e;return t};$I.Row=QI,$I.Cell=ZI;var eL=AI(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=CI(MI,`prefixCls`),a=r.length-1,o=r[a],s=x.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return x.createElement(YI.Provider,{value:s},x.createElement(`tfoot`,{className:`${i}-summary`},t))}),tL=$I;function nL(e){return null}function rL(e){return null}function iL(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o{if(n?.size){let i=[];for(let a=0;a({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function oL(e,t,n,r){let i=CI(MI,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=Fn(l),b=d?.(e,n),x=b?.onClick,S=(t,...n)=>{f&&g&&l(e,t),x?.(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=II(a);return{...i,columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...b,className:q(C,b?.className),onClick:S}}}var sL=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=CI(MI,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=x.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),x.createElement(r,{className:a,style:{display:o?null:`none`}},x.createElement(GI,{component:i,prefixCls:t,colSpan:s},h))};function cL({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return x.createElement(`span`,{className:q(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return x.createElement(`span`,{className:q(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function lL(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function uL(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function dL(){return dL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=oL(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,rowProps:b,expanded:S,rowSupportExpand:C}=h,w=x.useRef(!1);w.current||=S;let T=uL(v,a,o,u),E=x.createElement(d,dL({},b,{"data-row-key":c,className:q(t,`${g}-row`,`${g}-row-level-${u}`,b?.className,r.row,{[T]:u>=1}),style:{...n,...b?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b}=fL(h,e,t,u,o,l,m?.offset);return x.createElement(GI,dL({className:q(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})),D;if(C&&(w.current||S)){let e=y(a,o,u+1,S);D=x.createElement(sL,{expanded:S,className:q(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,T),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return x.createElement(x.Fragment,null,E,D)}),mL=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=x.useRef(null);return Rn(()=>{i.current&&n(t,i.current.offsetWidth)},[]),x.createElement(Ur,{data:t},x.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},x.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},hL=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=x.useRef(null),{measureRowRender:a}=CI(MI,[`measureRowRender`]),o=x.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},x.createElement(Ur.Collection,{onBatchResize:e=>{Yf(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=x.isValidElement(t)?x.cloneElement(t,{ref:null}):t;return x.createElement(mL,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},gL=AI(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=CI(MI,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=aL(t,l,c,s),v=x.useMemo(()=>_.map(e=>e.rowKey),[_]),y=x.useRef({renderWithProps:!1}),b=x.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e{let{record:n,indent:r,index:i,rowKey:a}=e;return x.createElement(pL,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:C,cellComponent:w,scopeCellComponent:T,indent:r,expandedRowInfo:b})}):x.createElement(sL,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:C,cellComponent:w,colSpan:o.length,isEmpty:!0},u);let D=II(o);return x.createElement(NI.Provider,{value:y.current},x.createElement(S,{style:g.wrapper,className:q(`${r}-tbody`,h.wrapper)},n&&x.createElement(hL,{prefixCls:r,columnsKey:D,onColumnResize:a,columns:o}),E))}),_L=`RC_TABLE_INTERNAL_COL_DEFINE`;function vL(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function yL(){return yL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=CI(MI,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[_L],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(x.createElement(`col`,yL({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?x.createElement(`colgroup`,null,a):null};function xL(e,t){return(0,x.useMemo)(()=>{let n=[];for(let r=0;r{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b,...S}=e,{prefixCls:C,scrollbarSize:w,isSticky:T,getComponent:E}=CI(MI,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),D=E([`header`,`table`],`table`),O=T&&!f?0:w,k=x.useRef(null),A=x.useCallback(e=>{Zn(t,e),Zn(k,e)},[]);x.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${C}-cell-scrollbar`})},N=(0,x.useMemo)(()=>O?[...a,M]:a,[O,a]),P=(0,x.useMemo)(()=>O?[...o,M]:o,[O,o]),F=(0,x.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+O),0],isSticky:T}},[O,u,T]),I=xL(s,l),L=(0,x.useMemo)(()=>{let e=!I||!I.length||I.every(e=>!e);return i||e},[i,I]);return x.createElement(`div`,{style:{overflow:`hidden`,...T?{top:p,bottom:m}:{},...r},ref:A,className:q(n,{[h]:!!h})},x.createElement(D,{style:{tableLayout:_,minWidth:`100%`,width:g}},L?c:x.createElement(bL,{colWidths:[...I,O],columCount:l+1,columns:P}),b({...S,stickyOffsets:F,columns:N,flattenColumns:P})))}),CL=x.memo(SL);function wL(){return wL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=CI(MI,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=II(t.map(e=>e.column));return x.createElement(i,wL({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=JI(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return x.createElement(GI,wL({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function EL(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:q(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var DL=AI(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=CI(MI,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=x.useMemo(()=>EL(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return x.createElement(f,{className:q(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>x.createElement(TL,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function OL(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function kL(e,t,n){return x.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=OL(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=OL(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function AL(e){return Sr(e).filter(e=>x.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=AL(r)),a})}function jL(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:jL(t)}:e})}function ML(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...ML(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function NL({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=x.useMemo(()=>jL((t||AL(n)||[]).slice()),[t,n]),b=x.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(bI)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,bI)}let n=t.indexOf(bI);t=t.filter((e,t)=>e!==bI||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[_L]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?x.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===bI?g:e;return te!==bI)},[r,y,o,i,c,f,d]),S=x.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[C,w]=kL(x.useMemo(()=>ML(S),[S,f,g]),g,_);return[S,C,w]}function PL(e,t,n){let r=vL(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||cL,p=d||`children`,m=x.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=x.useState(()=>o||(s?lL(t,n,p):[])),_=x.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,x.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function FL(e,t){let n=x.useMemo(()=>e.map((n,r)=>JI(r,r,e,t)),[e,t]);return Wn(()=>n,[n],(e,t)=>!wi(e,t))}function IL(e){let t=(0,x.useRef)(e),[,n]=(0,x.useState)({}),r=(0,x.useRef)(null),i=(0,x.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,x.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function LL(e){let t=(0,x.useRef)(e||null),n=(0,x.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,x.useEffect)(()=>r,[]),[i,a]}function RL(){let[e,t]=x.useState(-1),[n,r]=x.useState(-1);return[e,n,x.useCallback((e,n)=>{t(e),r(n)},[])]}var zL=In()?window:null;function BL(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>zL}=typeof e==`object`?e:{},o=a()||zL,s=!!e;return x.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function VL(e,t){return(0,x.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var HL=e=>{let{children:t,className:n,style:r}=e;return x.createElement(`div`,{className:n,style:r},t)};function UL(e){let t=Or(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var WL=`mouseup`,GL=`mousemove`,KL=`scroll`,qL=`resize`,JL=x.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=CI(MI,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=x.useRef(null),[f,p]=IL({scrollLeft:0,isHiddenScrollBar:!0}),m=x.useRef({delta:0,x:0}),[h,g]=x.useState(!1),_=x.useRef(null);x.useEffect(()=>()=>{ni.cancel(_.current)},[]);let v=()=>{g(!1)},y=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},b=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u){ni.cancel(_.current),_.current=ni(()=>{if(!n.current)return;let e=UL(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:UL(a).top+a.clientHeight;t-gf()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},C=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return x.useImperativeHandle(t,()=>({setScrollLeft:C,checkScrollBarVisible:S})),x.useEffect(()=>(document.body.addEventListener(WL,v,!1),document.body.addEventListener(GL,b,!1),S(),()=>{document.body.removeEventListener(WL,v),document.body.removeEventListener(GL,b)}),[u,h]),x.useEffect(()=>{if(n.current){let e=[],t=Or(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(KL,S,!1)}),window.addEventListener(qL,S,!1),window.addEventListener(KL,S,!1),a.addEventListener(KL,S,!1),()=>{e.forEach(e=>{e.removeEventListener(KL,S)}),window.removeEventListener(qL,S),window.removeEventListener(KL,S),a.removeEventListener(KL,S)}}},[a]),x.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:x.createElement(`div`,{style:{height:gf(),width:l,bottom:i},className:`${s}-sticky-scroll`},x.createElement(`div`,{onMouseDown:y,ref:d,className:q(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function YL(){return YL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n={rowKey:`key`,prefixCls:XL,emptyText:$L,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:v,showHeader:y,components:b,emptyText:S,onRow:C,onHeaderRow:w,measureRowRender:T,onScroll:E,internalHooks:D,transformColumns:O,internalRefs:k,tailor:A,getContainerWidth:j,sticky:M,rowHoverable:N=!0}=n,P=l||ZL,F=!!P.length,I=D===xI,L=x.useCallback((e,t)=>ir(b,e)||t,[b]),R=x.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),z=L([`body`]),[B,V,H]=RL(),[U,W,ee,te,ne,re]=PL(n,P,R),G=d?.x,[ie,ae]=x.useState(0),[oe,K,se]=NL({...n,...U,expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:ee,getRowKey:R,onTriggerExpand:re,expandIcon:te,expandIconColumnIndex:U.expandIconColumnIndex,direction:p,scrollWidth:I&&A&&typeof G==`number`?G:null,clientWidth:ie},I?O:null),ce=se??G,le=x.useMemo(()=>({columns:oe,flattenColumns:K}),[oe,K]),ue=x.useRef(null),de=x.useRef(null),fe=x.useRef(null),pe=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:ue.current,scrollTo:e=>{if(fe.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i}=e;if(RI(n))fe.current?.scrollTo({top:n});else{let e=r??R(P[t]),n=fe.current.querySelector(`[data-row-key="${e}"]`);if(n)if(!i)n.scrollIntoView();else{let e=n.offsetTop;fe.current.scrollTo({top:e+i})}}}else fe.current?.scrollTo&&fe.current.scrollTo(e)}}));let me=x.useRef(null),[he,ge]=x.useState(!1),[_e,ve]=x.useState(!1),[ye,be]=x.useState(new Map),xe=II(K).map(e=>ye.get(e)),Se=x.useMemo(()=>xe,[xe.join(`_`)]),Ce=VL(Se,K),we=d&&LI(d.y),Te=d&&LI(ce)||!!U.fixed,Ee=Te&&K.some(({fixed:e})=>e),De=x.useRef(null),{isSticky:Oe,offsetHeader:ke,offsetSummary:Ae,offsetScroll:je,stickyClassName:Me,container:Ne}=BL(M,r),Pe=x.useMemo(()=>g?.(P),[g,P]),Fe=(we||Oe)&&x.isValidElement(Pe)&&Pe.type===$I&&Pe.props.fixed,Ie,Le,Re;we&&(Le={overflowY:F?`scroll`:`auto`,maxHeight:d.y}),Te&&(Ie={overflowX:`auto`},we||(Le={overflowY:`hidden`}),Re={width:ce===!0?`auto`:ce,minWidth:`100%`});let ze=x.useCallback((e,t)=>{be(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Be,Ve]=LL(null);function He(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ue,We]=x.useState([0,0]),Ge=Fn(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||QL;(!Ve()||Ve()===r)&&(Be(r),He(n,de.current),He(n,fe.current),He(n,me.current),He(n,De.current?.setScrollLeft));let i=e||de.current;if(i){let e=I&&A&&typeof ce==`number`?ce:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(We(n=>{let i=[r,e-t];return wi(n,i)?n:i}),e===t){ge(!1),ve(!1);return}ge(r>0),ve(r{Ge(e),E?.(e)}),qe=()=>{Te&&fe.current?Ge({currentTarget:Or(fe.current),scrollLeft:fe.current?.scrollLeft}):(ge(!1),ve(!1))},Je=e=>{De.current?.checkScrollBarVisible();let t=e??ue.current?.offsetWidth??0;I&&j&&ue.current&&(t=j(ue.current,t)||t),t!==ie&&(qe(),ae(t))};Rn(()=>{Te&&Je()},[Te]);let Ye=x.useRef(!1);x.useEffect(()=>{Ye.current&&qe()},[Te,l,oe.length]),x.useEffect(()=>{Ye.current=!0},[]);let[Xe,Ze]=x.useState(0);Rn(()=>{(!A||!I)&&(fe.current instanceof Element?Ze(_f(fe.current).width):Ze(_f(pe.current).width))},[]),x.useEffect(()=>{I&&k&&(k.body.current=fe.current)});let Qe=x.useCallback(e=>x.createElement(x.Fragment,null,x.createElement(DL,e),Fe===`top`&&x.createElement(eL,e,Pe)),[Fe,Pe]),$e=x.useCallback(e=>x.createElement(eL,e,Pe),[Pe]),et=L([`table`],`table`),tt=x.useMemo(()=>f||(Ee?ce===`max-content`?`auto`:`fixed`:we||Oe||K.some(({ellipsis:e})=>e)?`fixed`:`auto`),[we,Ee,K,f,Oe]),nt,rt={colWidths:Se,columCount:K.length,stickyOffsets:Ce,onHeaderRow:w,fixHeader:we,scroll:d},it=x.useMemo(()=>F?null:typeof S==`function`?S():S,[F,S]),at=x.createElement(gL,{data:P,measureColumnWidth:we||Te||Oe}),ot=x.createElement(bL,{colWidths:K.map(({width:e})=>e),columns:K}),st=_==null?void 0:x.createElement(`caption`,{className:`${r}-caption`},_),ct=zu(n,{data:!0}),lt=zu(n,{aria:!0});if(we||Oe){let e;typeof z==`function`?(e=z(P,{scrollbarSize:Xe,ref:fe,onScroll:Ge}),rt.colWidths=K.map(({width:e},t)=>{let n=t===K.length-1?e-Xe:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=x.createElement(`div`,{style:{...Ie,...Le},onScroll:Ke,ref:fe,className:`${r}-body`},x.createElement(et,YL({style:{...Re,tableLayout:tt}},lt),st,ot,at,!Fe&&Pe&&x.createElement(eL,{stickyOffsets:Ce,flattenColumns:K},Pe)));let t={noData:!P.length,maxContentScroll:Te&&ce===`max-content`,...rt,...le,direction:p,stickyClassName:Me,scrollX:ce,tableLayout:tt,onScroll:Ge};nt=x.createElement(x.Fragment,null,y!==!1&&x.createElement(CL,YL({},t,{stickyTopOffset:ke,className:`${r}-header`,ref:de,colGroup:ot}),Qe),e,Fe&&Fe!==`top`&&x.createElement(CL,YL({},t,{stickyBottomOffset:Ae,className:`${r}-summary`,ref:me,colGroup:ot}),$e),Oe&&fe.current&&fe.current instanceof Element&&x.createElement(JL,{ref:De,offsetScroll:je,scrollBodyRef:fe,onScroll:Ge,container:Ne,direction:p}))}else nt=x.createElement(`div`,{style:{...Ie,...Le,...c?.content},className:q(`${r}-content`,s?.content),onScroll:Ge,ref:fe},x.createElement(et,YL({style:{...Re,tableLayout:tt}},lt),st,ot,y!==!1&&x.createElement(DL,YL({},rt,le)),at,Pe&&x.createElement(eL,{stickyOffsets:Ce,flattenColumns:K},Pe)));let ut={...o};Oe&&(ut[`--columns-count`]=K.length);let dt=x.createElement(`div`,YL({className:q(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Te,[`${r}-fix-end-shadow`]:Te,[`${r}-fix-start-shadow-show`]:Te&&he,[`${r}-fix-end-shadow-show`]:Te&&_e,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:we,[`${r}-fixed-column`]:Ee,[`${r}-scroll-horizontal`]:Te,[`${r}-has-fix-start`]:K[0]?.fixed,[`${r}-has-fix-end`]:K[K.length-1]?.fixed===`end`}),style:ut,id:v,ref:ue},ct),m&&x.createElement(HL,{className:q(`${r}-title`,s?.title),style:c?.title},m(P)),x.createElement(`div`,{ref:pe,className:q(`${r}-container`,s?.section),style:c?.section},nt),h&&x.createElement(HL,{className:q(`${r}-footer`,s?.footer),style:c?.footer},h(P)));Te&&(dt=x.createElement(Ur,{onResize:({offsetWidth:e})=>Je(e)},dt));let ft=FL(K,Ce),pt=x.useMemo(()=>({scrollX:ce,scrollInfo:Ue,classNames:s,styles:c,prefixCls:r,getComponent:L,scrollbarSize:Xe,direction:p,fixedInfoList:ft,isSticky:Oe,componentWidth:ie,fixHeader:we,fixColumn:Ee,horizonScroll:Te,tableLayout:tt,rowClassName:a,expandedRowClassName:U.expandedRowClassName,expandIcon:te,expandableType:W,expandRowByClick:U.expandRowByClick,expandedRowRender:U.expandedRowRender,expandedRowOffset:U.expandedRowOffset,onTriggerExpand:re,expandIconColumnIndex:U.expandIconColumnIndex,indentSize:U.indentSize,allColumnsFixedLeft:K.every(e=>e.fixed===`start`),emptyNode:it,columns:oe,flattenColumns:K,onColumnResize:ze,colWidths:Se,hoverStartRow:B,hoverEndRow:V,onHover:H,rowExpandable:U.rowExpandable,onRow:C,getRowKey:R,expandedKeys:ee,childrenColumnName:ne,rowHoverable:N,measureRowRender:T}),[ce,Ue,s,c,r,L,Xe,p,ft,Oe,ie,we,Ee,Te,tt,a,U.expandedRowClassName,te,W,U.expandRowByClick,U.expandedRowRender,U.expandedRowOffset,re,U.expandIconColumnIndex,U.indentSize,it,oe,K,ze,Se,B,V,H,U.rowExpandable,C,R,ee,ne,N,T]);return x.createElement(MI.Provider,{value:pt},dt)}),tR=e=>kI(eR,e),nR=tR();nR.EXPAND_COLUMN=bI,nR.INTERNAL_HOOKS=xI,nR.Column=nL,nR.ColumnGroup=rL,nR.Summary=tL;var rR=SI(null),iR=SI(null);function aR(){return aR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=CI(iR,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:S}=fL(t,n,r,i,a),{style:C,colSpan:w=1,rowSpan:T=1}=S,E=oR(r-1,w,_),D=w>1?g-E:0,O={...C,...l,flex:`0 0 ${E}px`,width:`${E}px`,marginRight:D,pointerEvents:`auto`},k=x.useMemo(()=>d?T<=1:w===0||T===0||T>1,[T,w,d]);k?O.visibility=`hidden`:d&&(O.height=f?.(T));let A=k?()=>null:p,j={};return(T===0||w===0)&&(j.rowSpan=1,j.colSpan=1),x.createElement(GI,aR({className:q(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:A,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,additionalProps:{...S,style:O,...j}}))};function cR(){return cR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_}=CI(MI,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`]),{getComponent:v}=CI(rR,[`getComponent`]),y=oL(u,a,r,d),b=v([`body`,`row`],`div`),S=v([`body`,`cell`],`div`),{rowSupportExpand:C,expanded:w,rowProps:T,expandedRowRender:E,expandedRowClassName:D}=y,O;if(C&&w){let e=E(u,r,d+1,w),t=uL(D,u,r,d),n={};g&&(n={style:{"--virtual-width":`${_}px`}});let i=`${h}-expanded-row-cell`;O=x.createElement(b,{className:q(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,t)},x.createElement(GI,{component:S,prefixCls:h,className:q(i,{[`${i}-fixed`]:g}),additionalProps:n},e))}let k={...o,width:p};s&&(k.position=`absolute`,k.pointerEvents=`none`);let A=x.createElement(b,cR({},T,l,{"data-row-key":a,ref:C?null:t,className:q(i,`${h}-row`,T?.className,{[`${h}-row-extra`]:s}),style:{...k,...T?.style}}),m.map((e,t)=>x.createElement(sR,{key:t,component:S,rowInfo:y,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return C?x.createElement(`div`,{ref:t},A,O):A})),uR=AI(x.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=CI(MI,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=CI(rR),_=x.useRef(null),v=aL(n,l,s,o),y=x.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=x.useMemo(()=>y.map(e=>e[2]),[y]);x.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),x.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{offset:t,...n}=e;t?_.current?.scrollTo({...n,offset:t,align:`top`}):_.current?.scrollTo(e)},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,`scrollLeft`,{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,`scrollTop`,{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=v[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;eS(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return x.createElement(lR,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=x.useMemo(()=>({columnsOffset:b}),[b]),T=`${c}-tbody`,E=h([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),x.createElement(iR.Provider,{value:w},x.createElement(YS,{fullHeight:!1,ref:_,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return x.createElement(lR,{data:e,rowKey:r,index:t,style:n.style})}))}));function dR(){return dR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ref:n,onScroll:r}=t;return x.createElement(uR,{ref:n,data:e,onScroll:r})},pR=x.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=XL,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=Fn((e,t)=>ir(l,e)||t),m=Fn(u),h=x.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return x.createElement(rR.Provider,{value:h},x.createElement(nR,dR({},e,{className:q(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?fR:void 0},columns:r,internalHooks:xI,tailor:!0,ref:t})))}),mR=e=>kI(pR,e);mR();var hR=e=>null,gR=e=>null,_R=x.createContext(null),vR=x.createContext({}),yR=x.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:v,selectable:y,treeId:b,...S}=e,C=wf(b,t),w=x.useContext(_R),{classNames:T,styles:E}=w||{},D=x.useContext(vR),O=x.useRef(null),[k,A]=x.useState(!1),j=!!(w.disabled||e.disabled||D.nodeDisabled?.(_)),M=x.useMemo(()=>!w.checkable||e.checkable===!1?!1:w.checkable,[w.checkable,e.checkable]),N=t=>{j||w.onNodeSelect(t,Kk(e))},P=t=>{j||!M||e.disableCheckbox||w.onNodeCheck(t,Kk(e),!f)},F=x.useMemo(()=>typeof y==`boolean`?y:w.selectable,[y,w.selectable]),I=t=>{w.onNodeClick(t,Kk(e)),F?N(t):P(t)},L=t=>{w.onNodeDoubleClick(t,Kk(e))},R=t=>{w.onNodeMouseEnter(t,Kk(e))},z=t=>{w.onNodeMouseLeave(t,Kk(e))},B=t=>{w.onNodeContextMenu(t,Kk(e))},V=x.useMemo(()=>!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(_))),[w.draggable,_]),H=t=>{t.stopPropagation(),A(!0),w.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragEnter(t,e)},W=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragOver(t,e)},ee=t=>{t.stopPropagation(),w.onNodeDragLeave(t,e)},te=t=>{t.stopPropagation(),A(!1),w.onNodeDragEnd(t,e)},ne=t=>{t.preventDefault(),t.stopPropagation(),A(!1),w.onNodeDrop(t,e)},re=t=>{m||w.onNodeExpand(t,Kk(e))},G=x.useMemo(()=>{let{children:e}=Fk(w.keyEntities,t)||{};return!!(e||[]).length},[w.keyEntities,t]),ie=x.useMemo(()=>Wk(s,w.loadData,G,e.loaded),[s,w.loadData,G,e.loaded]);x.useEffect(()=>{m||typeof w.loadData==`function`&&u&&!ie&&!e.loaded&&w.onNodeLoad(Kk(e))},[m,w.loadData,w.onNodeLoad,u,ie,e]);let ae=x.useMemo(()=>w.draggable?.icon?x.createElement(`span`,{className:`${w.prefixCls}-draggable-icon`},w.draggable.icon):null,[w.draggable]),oe=t=>{let n=e.switcherIcon||w.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},K=()=>{if(ie){let e=oe(!0);return e===!1?null:x.createElement(`span`,{className:q(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher-noop`)},e)}let e=oe(!1);return e===!1?null:x.createElement(`span`,{onClick:re,className:q(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher_${u?xR:SR}`)},e)},se=x.useMemo(()=>{if(!M)return null;let t=typeof M==`boolean`?null:M;return x.createElement(`span`,{className:q(`${w.prefixCls}-checkbox`,{[`${w.prefixCls}-checkbox-checked`]:f,[`${w.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${w.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:P,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":C},t)},[M,f,p,j,e.disableCheckbox,C]),ce=x.useMemo(()=>ie?null:u?xR:SR,[ie,u]),le=x.useMemo(()=>x.createElement(`span`,{className:q(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__${ce||`docu`}`,{[`${w.prefixCls}-icon_loading`]:m}),style:E?.itemIcon}),[w.prefixCls,ce,m]),ue=x.useMemo(()=>{let n=!!w.draggable;return!e.disabled&&n&&w.dragOverNodeKey===t?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),de=x.useMemo(()=>{let{title:t=CR}=e,n=`${w.prefixCls}-node-content-wrapper`,r;if(w.showIcon){let t=e.icon||w.icon;r=t?x.createElement(`span`,{className:q(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__customize`),style:E?.itemIcon},typeof t==`function`?t(e):t):le}else w.loadData&&m&&(r=le);let i;return i=typeof t==`function`?t(_):w.titleRender?w.titleRender(_):t,x.createElement(`span`,{ref:O,title:typeof t==`string`?t:``,className:q(n,`${n}-${ce||`normal`}`,{[`${w.prefixCls}-node-selected`]:!j&&(d||k)}),onMouseEnter:R,onMouseLeave:z,onContextMenu:B,onClick:I,onDoubleClick:L},r,x.createElement(`span`,{className:q(`${w.prefixCls}-title`,T?.itemTitle),style:E?.itemTitle},i),ue)},[w.prefixCls,w.showIcon,e,w.icon,le,w.titleRender,_,ce,R,z,B,I,L]),fe=zu(S,{aria:!0,data:!0}),{level:pe}=Fk(w.keyEntities,t)||{},me=l[l.length-1],he=!j&&V,ge=w.draggingNodeKey===t;return x.createElement(`div`,bR({ref:h,role:`treeitem`,id:C,"aria-expanded":ie?void 0:u,"aria-selected":F&&!j?d:void 0,"aria-checked":M&&!j?p?`mixed`:f:void 0,"aria-disabled":j,className:q(n,`${w.prefixCls}-treenode`,T?.item,{[`${w.prefixCls}-treenode-disabled`]:j,[`${w.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${w.prefixCls}-treenode-checkbox-checked`]:f,[`${w.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${w.prefixCls}-treenode-selected`]:d,[`${w.prefixCls}-treenode-loading`]:m,[`${w.prefixCls}-treenode-active`]:g,[`${w.prefixCls}-treenode-leaf-last`]:me,[`${w.prefixCls}-treenode-draggable`]:V,dragging:ge,"drop-target":w.dropTargetKey===t,"drop-container":w.dropContainerKey===t,"drag-over":!j&&i,"drag-over-gap-top":!j&&a,"drag-over-gap-bottom":!j&&o,"filter-node":w.filterTreeNode?.(Kk(e)),[`${w.prefixCls}-treenode-leaf`]:ie}),style:{...r,...E?.item},draggable:he,onDragStart:he?H:void 0,onDragEnter:V?U:void 0,onDragOver:V?W:void 0,onDragLeave:V?ee:void 0,onDrop:V?ne:void 0,onDragEnd:V?te:void 0,onMouseMove:v},fe),x.createElement(yR,{prefixCls:w.prefixCls,level:pe,isStart:c,isEnd:l}),ae,K(),se,de)};wR.isTreeNode=1;function TR(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ER(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function DR(e){return e.split(`-`)}function OR(e,t){let n=[],r=Fk(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function kR(e){if(e.parent){let t=DR(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function AR(e){let t=DR(e.pos);return Number(t[t.length-1])===0}function jR(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=Fk(s,n.eventKey);if(de.key===g.key),t=o[e<=0?0:e-1].key;g=Fk(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function MR(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function NR(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function PR(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=Fk(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var FR={},IR=`SELECT_ALL`,LR=`SELECT_INVERT`,RR=`SELECT_NONE`,zR=[],BR=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),pd(t)&&e in t&&BR(e,t[e],n)}),n),VR=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:b,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:E,childrenColumnName:D,locale:O,getPopupContainer:k}=e,A=Er(`Table`),[j,M]=Pd(e=>e),[N,P]=Vn(i||zR,r),F=N??zR,I=x.useRef(new Map),L=(0,x.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&I.current.has(e)&&(n=I.current.get(e)),t.set(e,n)}),I.current=t}},[w,n]);x.useEffect(()=>{L(F)},[F,L]);let R=(0,x.useMemo)(()=>BR(D,C),[D,C]),{keyEntities:z}=(0,x.useMemo)(()=>{if(y)return{keyEntities:null};let e=S;if(n){let t=new Set(R.map(T)),n=Array.from(I.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(Xr(e),Xr(n))}return Uk(e,{externalGetKey:T,childrenPropName:D})},[S,T,y,D,n,R]),B=(0,x.useMemo)(()=>{let e=new Map;return R.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[R,T,a]),V=(0,x.useCallback)(e=>{let t=T(e),n;return n=B.has(t)?B.get(T(e)):a?a(e):void 0,!!n?.disabled},[B,T]),[H,U]=(0,x.useMemo)(()=>{if(y)return[F,[]];let{checkedKeys:e,halfCheckedKeys:t}=Zk(F,!0,z,V);return[e||[],t]},[F,y,z,V]),W=(0,x.useMemo)(()=>{let e=m===`radio`?H.slice(0,1):H;return new Set(e)},[H,m]),ee=(0,x.useMemo)(()=>m===`radio`?new Set:new Set(U),[U,m]);x.useEffect(()=>{t||P(zR)},[!!t]);let te=(0,x.useCallback)((e,t)=>{let r,i;L(e),n?(r=e,i=e.map(e=>I.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),P(r),s?.(r,i,{type:t})},[P,w,s,n]),ne=(0,x.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}te(n,`single`)},[c,w,te]),re=(0,x.useMemo)(()=>!h||v?null:(h===!0?[IR,LR,RR]:h).map(e=>e===`SELECT_ALL`?{key:`all`,text:O.selectionAll,onSelect(){te(S.map((e,t)=>T(e,t)).filter(e=>!B.get(e)?.disabled||W.has(e)),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:O.selectInvert,onSelect(){let e=new Set(W);C.forEach((t,n)=>{let r=T(t,n);B.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(A.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),te(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:O.selectNone,onSelect(){d?.(),te(Array.from(W).filter(e=>B.get(e)?.disabled),`none`)}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),M(null)}})),[h,v,O.selectionAll,O.selectInvert,O.selectNone,B,W,S,C,T,u,te]);return[(0,x.useCallback)(e=>{if(!t)return e.filter(e=>e!==FR);let n=Xr(e),r=new Set(W),i=R.map(T).filter(e=>!B.get(e).disabled),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),te(t,`all`),M(null)},u,d;if(m!==`radio`){let e;if(re){let t={getPopupContainer:k,items:re.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=x.createElement(`div`,{className:`${b}-selection-extra`},x.createElement(Ej,{menu:t,getPopupContainer:k},x.createElement(`span`,null,x.createElement(UC,null))))}let t=R.map((e,t)=>{let n=T(e,t),i=B.get(n)||{};return{checked:r.has(n),...i}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===R.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=x.createElement(iA,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!R.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(R.length===0||n),skipGroup:!0}),u=!v&&x.createElement(`div`,{className:`${b}-selection`},d,e)}let S;S=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=B.get(i);return{node:x.createElement(RD,{...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||ne(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=ee.has(a),c=B.get(a),l;return l=E===`nest`?s:c?.indeterminate??s,{node:x.createElement(iA,{...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=H.some(e=>i.includes(e));if(n&&y&&l){let e=j(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),te(t,`multiple`)}else{let e=H;if(y){let n=o?TR(e,a):ER(e,a);ne(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=Zk([].concat(Xr(e),[a]),!0,z,V),i=n;if(o){let e=new Set(n);e.delete(a),i=Zk(Array.from(e),{checked:!1,halfCheckedKeys:r},z,V).checkedKeys}ne(a,!o,i,t)}}M(o?null:s),c?.onChange?.(e)}}),checked:o}};let C=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(FR))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,FR].concat(Xr(t))}else n=[FR].concat(Xr(n));let D=n.indexOf(FR);n=n.filter((e,t)=>e!==FR||t===D);let O=n[D-1],A=n[D+1],N=g;N===void 0&&(A?.fixed===void 0?O?.fixed!==void 0&&(N=O.fixed):N=A.fixed),N&&O&&O.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&O.fixed===void 0&&(O.fixed=N);let P=q(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:N,width:p,className:`${b}-selection-column`,title:t?.columnTitle?typeof t.columnTitle==`function`?t.columnTitle(d):t.columnTitle:u,render:C,onCell:t.onCell,align:t.align,[_L]:{className:P}};return n.map(e=>e===FR?F:e)},[T,R,t,H,W,ee,p,re,E,B,f,ne,V]),W]};function HR(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return x.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:q(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function UR(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var WR=(e,t)=>`key`in e&&ud(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function GR(e,t){return t?`${t}-${e}`:`${e}`}var KR=(e,t)=>typeof e==`function`?e(t):e,qR=(e,t)=>{let n=KR(e,t);return Object.prototype.toString.call(n)===`[object Object]`?``:n},JR={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`};function YR(){return YR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YR({},e,{ref:t,icon:JR}))),ZR=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return x.createElement(`div`,{style:i})};function QR(e,t){let[n,r]=x.useState(!1);Rn(()=>{if(n)return e(),()=>{t()}},[n]),Rn(()=>(r(!0),()=>{r(!1)}),[])}function $R(){return $R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=x.useState(!0),{prefixCls:m}=x.useContext(_R),h=a&&o!==`hide`;Rn(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=x.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return QR(g,v),a?x.createElement(Pu,$R({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>x.createElement(`div`,{ref:n,className:q(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=Gk(r,u);return x.createElement(wR,$R({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):x.createElement(wR,$R({domRef:t,className:n,style:r},d,{active:l}))});function tz(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function rz(){return rz=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onMouseUp:A,onActiveChange:j,onListChangeStart:M,onListChangeEnd:N,...P}=e,F=Ef(),I=x.useRef(null),L=x.useRef(null);x.useImperativeHandle(t,()=>({scrollTo:e=>{I.current.scrollTo(e)},getIndentWidth:()=>L.current.offsetWidth}));let[R,z]=x.useState(o),[B,V]=x.useState(r),[H,U]=x.useState(r),[W,ee]=x.useState([]),[te,ne]=x.useState(null),re=x.useRef(r);re.current=r;function G(){let e=re.current;V(e),U(e),ee([]),ne(null),N()}Rn(()=>{z(o);let e=tz(R,o);if(e.key!==null)if(e.add){let t=B.findIndex(({key:t})=>t===e.key),n=cz(nz(B,r,e.key),b,v,y),i=B.slice();i.splice(t+1,0,sz),U(i),ee(n),ne(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=cz(nz(r,B,e.key),b,v,y),i=r.slice();i.splice(t+1,0,sz),U(i),ee(n),ne(`hide`)}else B!==r&&(V(r),U(r))},[o,r]),x.useEffect(()=>{m||G()},[m]);let ie=_?H:r,ae={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return x.createElement(x.Fragment,null,x.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},x.createElement(`div`,{className:`${n}-indent`},x.createElement(`div`,{ref:L,className:`${n}-indent-unit`}))),x.createElement(YS,rz({},P,{data:ie,itemKey:lz,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:S,prefixCls:`${n}-list`,ref:I,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?wf(F,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onMouseUp:A,onVisibleChange:e=>{e.every(e=>lz(e)!==iz)&&G()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=Rk(i,t);delete n.key,delete n.children;let c=Gk(s,ae);return x.createElement(ez,rz({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===iz?W:null,motionType:te,onMotionStart:M,onMotionEnd:G,treeNodeRequiredProps:ae,treeId:F,onMouseMove:()=>{j(null)}}))}))});function dz(){return dz=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0,expandAction:!1};static TreeNode=wR;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:zk()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=x.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=zk(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Bk(e.children)),a){r.treeData=a;let e=Uk(a,{fieldNames:o});r.keyEntities={[iz]:oz,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?PR(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[iz];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else !n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?PR(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=Vk(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=MR(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=MR(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=NR(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=NR(e.defaultCheckedKeys)||{}:a&&(o=NR(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=Zk(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=TR(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:OR(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:Kk(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=jR(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=Fk(r,t.eventKey);a&&(a.children||[]).length&&(i=ER(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:Kk(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:Kk(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=jR(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:Kk(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:Kk(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:Kk(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...Gk(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:Fk(this.state.keyEntities,a).node};yr(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=DR(o),d={event:e,node:Kk(l),dragNode:this.dragNodeProps?Kk(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=Kk({...Gk(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?TR(n,a):ER(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?ER(n,c):[c]:TR(n,c);let u=n.map(e=>{let t=Fk(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?ER(i,c):TR(i,c);l={checked:e,halfChecked:TR(a,c)},u.checkedNodes=e.map(e=>Fk(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=Zk([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=Zk(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=Fk(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(Fk(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=ER(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:TR(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:TR(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=fz){let{loadedKeys:e}=this.state;yr(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:ER(e,t)}),n()}r(e)}),{loadingKeys:ER(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onMouseUp=e=>{this.focusedByMouse=!1;let{onMouseUp:t}=this.props;t?.(e)};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{this.focusedByMouse=!1;let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=Vk(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(yr(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?ER(n,c):TR(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=Vk(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=TR(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=Kk({...Gk(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!Fk(a,t)?.children?.length,l=!Wk(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:S,checkable:C,checkStrictly:w,disabled:T,motion:E,loadData:D,filterTreeNode:O,height:k,itemHeight:A,scrollWidth:j,virtual:M,titleRender:N,dropIndicatorRender:P,onContextMenu:F,onScroll:I,direction:L,rootClassName:R,rootStyle:z}=this.props,B=zu(this.props,{aria:!0,data:!0}),V;S&&(V=typeof S==`object`?S:typeof S==`function`?{nodeDraggable:S}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:V,draggingNodeKey:n,checkable:C,checkStrictly:w,disabled:T,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:L,dropIndicatorRender:P,loadData:D,filterTreeNode:O,titleRender:N,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return x.createElement(_R.Provider,{value:H},x.createElement(`div`,{className:q(l,u,R,{[`${l}-show-line`]:m}),style:z},x.createElement(uz,dz({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:T,selectable:_,checkable:!!C,motion:E,dragging:n!==null,height:k,itemHeight:A,virtual:M,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:I,scrollWidth:j},this.getTreeNodeRequiredProps(),B))))}},mz={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`};function hz(){return hz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,hz({},e,{ref:t,icon:mz}))),_z={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`};function vz(){return vz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,vz({},e,{ref:t,icon:_z}))),bz={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`};function xz(){return xz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,xz({},e,{ref:t,icon:bz}))),Cz={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`};function wz(){return wz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,wz({},e,{ref:t,icon:Cz}))),Ez=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Dz=new Io(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),Oz=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),kz=(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:`${J(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),Az=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...qc(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...Xc(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Dz,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:J(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...Oz(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...kz(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).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:`${J(t.calc(a).div(2).equal())} !important`}}}},jz=(e,t,n=!0)=>{let r=`.${e}`,i=hs(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[Az(e,i),n&&Ez(i)].filter(Boolean)},Mz=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Nz=nl(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:$k(`${t}-checkbox`,e)},jz(t,e),fh(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...Mz(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),Pz=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return x.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},Fz={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`};function Iz(){return Iz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Iz({},e,{ref:t,icon:Fz}))),Rz={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`};function zz(){return zz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,zz({},e,{ref:t,icon:Rz}))),Vz={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`};function Hz(){return Hz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Hz({},e,{ref:t,icon:Vz}))),Wz=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return x.isValidElement(a)?a:x.createElement(um,{className:`${t}-switcher-loading-icon`});let l;if(pd(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=typeof l==`function`?l(r):l,n=`${t}-switcher-line-custom-icon`;return x.isValidElement(e)?xp(e,{className:q(e.props?.className,n)}):e}return l?x.createElement(gz,{className:`${t}-switcher-line-icon`}):x.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=typeof n==`function`?n(r):n;return x.isValidElement(d)?xp(d,{className:q(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?x.createElement(Bz,{className:`${t}-switcher-line-icon`}):x.createElement(Uz,{className:`${t}-switcher-line-icon`}):x.createElement(Lz,{className:u}):d},Gz=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=ci(`tree`),{virtual:c}=x.useContext(ai),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:v=!0,draggable:y,disabled:b,motion:S,style:C,rootClassName:w,classNames:T,styles:E,icon:D}=e,O=x.useContext(Ep),k=b??O,A=n(`tree`,l),j=n(),M=S??{...Fm(j),motionAppear:!1},N={...e,showIcon:d,blockNode:h,checkable:_,selectable:v,disabled:k,motion:M},[P,F]=Nd([o,T],[s,E],{props:N}),I={...N,showLine:!!f,icon:D,dropIndicatorRender:Pz},[L,R]=Nz(A),[,z]=Gc(),B=z.paddingXS/2+(z.Tree?.titleHeight||z.controlHeightSM),V=x.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case`function`:e.nodeDraggable=y;break;case`object`:e={...y};break;default:break}return e.icon!==!1&&(e.icon=e.icon||x.createElement(Tz,null)),e},[y]),H=e=>x.createElement(Wz,{prefixCls:A,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return x.createElement(pz,{itemHeight:B,ref:t,virtual:c,...I,prefixCls:A,className:q({[`${A}-icon-hide`]:!d,[`${A}-block-node`]:h,[`${A}-unselectable`]:!v,[`${A}-rtl`]:r===`rtl`,[`${A}-disabled`]:k},i,u,L,R),style:{...a,...C},rootClassName:q(P.root,w),rootStyle:F.root,classNames:P,styles:F,direction:r,checkable:_&&x.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:v,switcherIcon:H,draggable:V},g)}),Kz=0,qz=1,Jz=2;function Yz(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&Yz(o||[],t,n)}e.forEach(a)}function Xz({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=Kz;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return Yz(e,e=>{if(o===Jz)return!1;if(s(e)){if(a.push(e),o===Kz)o=qz;else if(o===qz)return o=Jz,!1}else o===qz&&a.push(e);return t.includes(e)},zk(i)),a}function Zz(e,t,n){let r=Xr(t),i=[];return Yz(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},zk(n)),i}function Qz(e){let{isLeaf:t,expanded:n}=e;return t?x.createElement(gz,null):n?x.createElement(yz,null):x.createElement(Sz,null)}function $z({treeData:e,children:t}){return e||Bk(t)}var eB=x.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i,...a}=e,o=x.useRef(null),s=x.useRef(null),c=()=>{let{keyEntities:e}=Uk($z(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?PR(o,e):o,t},[l,u]=x.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=x.useState(()=>c());x.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),x.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=$z(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=Zz(f,g,r)):n&&h?(g=Array.from(new Set([].concat(Xr(s.current||[]),Xr(Xz({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=Zz(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=Zz(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=x.useContext(ai),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`,...S}=a,C=h(`tree`,_),w=q(`${C}-directory`,{[`${C}-directory-rtl`]:g===`rtl`},v);return x.createElement(Gz,{icon:Qz,ref:t,blockNode:!0,...S,showIcon:y,expandAction:b,prefixCls:C,className:w,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),tB=Gz;tB.DirectoryTree=eB,tB.TreeNode=wR;var nB=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?x.createElement(`div`,{className:`${r}-filter-dropdown-search`},x.createElement(fj,{prefix:x.createElement(KC,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},rB=e=>{let{keyCode:t}=e;t===X.ENTER&&e.stopPropagation()},iB=x.forwardRef((e,t)=>x.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:rB,ref:t},e.children));function aB(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Xr(t),Xr(aB(n))))}),t}function oB(e){return e.some(({children:e})=>e)}var sB=(e,t)=>typeof t==`string`||dd(t)?t.toString().toLowerCase().includes(e):!1,cB=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:cB({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?iA:RD,u={key:e.value===void 0?t:c,label:x.createElement(x.Fragment,null,x.createElement(l,{checked:r.includes(c)}),x.createElement(`span`,null,e.text))};return o?typeof s==`function`?s(o,e)?u:null:sB(o,e.text)?u:null:u})};function lB(e){return e||[]}var uB=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:v={},filterDropdownOpen:y,onFilterDropdownOpenChange:b}=r,[S,C]=x.useState(!1),w=x.useContext(Ow),T=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),E=e=>{C(e),v.onOpenChange?.(e),b?.(e)},D=v.open??y??S,O=u?.filteredKeys,[k,A]=Bd(lB(O)),j=({selectedKeys:e})=>{A(e)},M=(e,{node:t,checked:n})=>{j(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};x.useEffect(()=>{S&&j({selectedKeys:lB(O)})},[O]);let[N,P]=x.useState([]),F=e=>{P(e)},[I,L]=x.useState(``),R=x.useMemo(()=>I.trim().toLowerCase(),[I]),z=e=>{let{value:t}=e.target;L(t)};x.useEffect(()=>{S||L(``)},[S]);let B=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||wi(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},V=()=>{E(!1),B(k())},H=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&B([]),t&&E(!1),L(``),A(g?(_||[]).map(String):[])},U=({closeDropdown:e}={closeDropdown:!0})=>{e&&E(!1),B(k())},W=(e,t)=>{t.source===`trigger`&&(e&&O!==void 0&&A(lB(O)),E(e),!e&&!r.filterDropdown&&o&&V())},ee=q({[`${i}-menu-without-submenu`]:!oB(r.filters||[])}),te=e=>{e.target.checked?A(aB(r?.filters).map(String)):A([])},ne=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ne({filters:e.children})),r}),re=e=>({...e,text:e.title,value:e.key,children:e.children?.map(re)||[]}),G,{direction:ie,renderEmpty:ae}=x.useContext(ai);if(typeof r.filterDropdown==`function`)G=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:k(),confirm:U,clearFilters:H,filters:r.filters,visible:D,close:()=>{E(!1)}});else if(r.filterDropdown)G=r.filterDropdown;else{let e=k()||[];G=x.createElement(x.Fragment,null,(()=>{let a=ae?.(`Table.filter`)??x.createElement(xC,{image:xC.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return x.createElement(x.Fragment,null,x.createElement(nB,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),x.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?x.createElement(iA,{checked:e.length===aB(r.filters).length,indeterminate:e.length>0&&e.lengthtypeof l==`function`?l(I,re(e)):sB(R,e.title):void 0})));let o=cB({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:I,normalizedSearchValue:R}),u=o.every(e=>e===null);return x.createElement(x.Fragment,null,x.createElement(nB,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),u?a:x.createElement(cD,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ee,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:m,openKeys:N,onOpenChange:F,items:o}))})(),x.createElement(`div`,{className:`${n}-dropdown-btns`},x.createElement(Mg,{type:`link`,size:`small`,disabled:g?wi((_||[]).map(String),e,!0):e.length===0,onClick:()=>H()},f.filterReset),x.createElement(Mg,{type:`primary`,size:`small`,onClick:V},f.filterConfirm)))}r.filterDropdown&&(G=x.createElement(KE,{selectable:void 0},G)),G=x.createElement(iB,{className:`${n}-dropdown`},G);let oe=(()=>{let e;return e=typeof r.filterIcon==`function`?r.filterIcon(T):r.filterIcon?r.filterIcon:x.createElement(XR,null),x.createElement(`span`,{role:`button`,tabIndex:-1,className:q(`${n}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})();if(w)return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),oe);let K=ld({trigger:[`click`],placement:ie===`rtl`?`bottomLeft`:`bottomRight`,children:oe,getPopupContainer:m},{...v,rootClassName:q(h,v.rootClassName),open:D,onOpenChange:W,popupRender:()=>typeof v?.dropdownRender==`function`?v.dropdownRender(G):G});return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),x.createElement(Ej,{...K}))},dB=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=GR(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:WR(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:WR(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(Xr(r),Xr(dB(e.children,t,a))))}),r};function fB(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=GR(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=WR(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>x.createElement(uB,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},KR(n.title,r))}}return`children`in h&&(h={...h,children:fB(e,t,h.children,r,i,a,o,u,c)}),h})}var pB=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=aB(a).filter(e=>n.includes(String(e))):t[i]=null}),t},mB=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=aB(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=mB(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),hB=e=>e.flatMap(e=>`children`in e?[e].concat(Xr(hB(e.children||[]))):[e]),gB=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Er(`Table`);let c=x.useMemo(()=>hB(r||[]),[r]),[l,u]=x.useState(()=>dB(c,!0)),d=x.useMemo(()=>{let e=dB(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>WR(e,GR(t)));return l.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return e},[c,l]),f=x.useMemo(()=>pB(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(pB(t),t)};return[e=>fB(t,n,e,d,o,p,a,void 0,s),d,f]},_B=(e,t,n)=>{let r=x.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),pd(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function vB(e,t){let n={current:e.current,pageSize:e.pageSize},r=pd(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];typeof r!=`function`&&(n[t]=r)}),n}function yB(e,t,n){let{total:r=0,...i}=pd(n)?n:{},[a,o]=(0,x.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=ld(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var bB={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`};function xB(){return xB=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,xB({},e,{ref:t,icon:bB}))),CB={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`};function wB(){return wB=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,wB({},e,{ref:t,icon:CB}))),EB=`ascend`,DB=`descend`,OB=e=>e.sorter&&typeof e.sorter==`object`&&dd(e.sorter.multiple)?e.sorter.multiple:!1,kB=e=>typeof e==`function`?e:pd(e)&&e.compare?e.compare:!1,AB=(e,t)=>t?e[e.indexOf(t)+1]:e[0],jB=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:WR(e,t),multiplePriority:OB(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=GR(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(Xr(r),Xr(jB(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:WR(e,o),multiplePriority:OB(e),sortOrder:e.defaultSortOrder}))}),r},MB=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=GR(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=WR(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=AB(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(EB)&&x.createElement(TB,{className:q(`${e}-column-sorter-up`,{active:m===EB})}),n=s.includes(DB)&&x.createElement(SB,{className:q(`${e}-column-sorter-down`,{active:m===DB})});g=x.createElement(`span`,{className:q(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},x.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:v,triggerDesc:y}=a||{},b=_;h===DB?b=y:h===EB&&(b=v);let S=pd(l)?{title:b,...l}:{title:b};d={...d,className:q(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=x.createElement(`span`,{className:`${e}-column-title`},KR(t.title,n)),a=x.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?x.createElement(`div`,{className:q(r,`${r}-tooltip-target-sorter`)},i,x.createElement(Bw,{...S},g)):x.createElement(Bw,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:OB(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===X.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:OB(t)}),o?.(e))};let s=qR(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=q(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:MB(e,d.children,n,r,i,a,o,u,c)}),d}),NB=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},PB=e=>{let t=e.filter(({sortOrder:e})=>e).map(NB);return t.length===0&&e.length?{...NB(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},FB=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>kB(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?{...e,[n]:FB(r,t,n)}:e}):i},IB=e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o,globalLocale:s}=e,[c,l]=x.useState(()=>jB(n,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=GR(r,t);if(n.push(WR(e,i)),Array.isArray(e.children)){let t=u(e.children,i);n.push.apply(n,Xr(t))}}),n},d=x.useMemo(()=>{let e=!0,t=jB(n,!1);if(!t.length){let e=u(n);return c.filter(({key:t})=>e.includes(t))}let r=[];function i(t){e?r.push(t):r.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r},[n,c]),f=x.useMemo(()=>{let e=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[d]),p=e=>{let t;t=e.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?[e]:[].concat(Xr(d.filter(({key:t})=>t!==e.key)),[e]),l(t),o(PB(t),t)};return[e=>MB(t,e,d,p,r,i,a,void 0,s),d,f,()=>PB(d)]},LB=(e,t)=>e.map(e=>{let n={...e};return n.title=KR(e.title,t),`children`in n&&(n.children=LB(n.children,t)),n}),RB=e=>[x.useCallback(t=>LB(t,e),[e])],zB=tR((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),BB=mR((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),VB=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${J(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${J(c(r).mul(-1).equal())} + }`)}});function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:m,percent:h,loading:g,..._}={...OP,...e},v=Ef(t),y=`${v}-gradient`,b=50-o/2,S=Math.PI*2*b,C=c>0?90+c/2:-90,w=S*((360-c)/360),{count:T,gap:E}=typeof a==`object`?a:{count:a,gap:2},D=IP(h),O=IP(m),k=O.find(e=>e&&typeof e==`object`),A=k&&typeof k==`object`?`butt`:d,{indeterminateStyleProps:j,indeterminateStyleAnimation:M}=PP({id:v,loading:g}),N=NP(S,w,0,100,C,c,l,u,A,o),P=kP(),F=()=>{let e=0;return D.map((t,a)=>{let s=O[a]||O[O.length-1],u=NP(S,w,e,t,C,c,l,s,A,o);return e+=t,x.createElement(MP,{key:a,color:s,ptg:t,radius:b,prefixCls:n,gradientId:y,className:r.track,style:{...u,...j,...i.track},strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:e=>{P[a]=e},size:100})}).reverse()},I=()=>{let e=Math.round(T*(D[0]/100)),t=100/T,a=0;return Array(T).fill(null).map((s,d)=>{let f=d<=e-1?O[0]:u,p=f&&typeof f==`object`?`url(#${y})`:void 0,m=NP(S,w,a,t,C,c,l,f,`butt`,o,E);return a+=(w-m.strokeDashoffset+E)*100/w,x.createElement(`circle`,{key:d,className:q(`${n}-circle-path`,r.track),r:b,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...m,...i.track},ref:e=>{P[d]=e}})})};return x.createElement(`svg`,FP({className:q(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},_),!T&&x.createElement(`circle`,{className:q(`${n}-circle-rail`,r.rail),r:b,cx:50,cy:50,stroke:u,strokeLinecap:A,strokeWidth:s||o,style:{...N,...i.rail}}),T?I():F(),M)};function RP(e){return!e||e<0?0:e>100?100:e}function zP({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var BP=({percent:e,success:t})=>{let n=RP(zP({success:t}));return[n,RP(RP(e)-n)]},VP=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Xs.green,t||null]},HP=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):dd(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):dd(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else (t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:dd(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},UP=3,WP=e=>UP/e*100,GP=[`root`,`body`,`indicator`],KP=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:m=u,steps:h}=e,{direction:g}=ci(`progress`),_=i??a,[v,y]=HP(m,`circle`),{strokeWidth:b}=e;b===void 0&&(b=Math.max(WP(v),6));let S={width:v,height:y,fontSize:v*.15+6},C=x.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),w=BP(e),T=x.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=g===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[g,c,s,d]),E=Object.prototype.toString.call(e.strokeColor)===`[object Object]`,D=VP({success:p,strokeColor:e.strokeColor}),O=q(`${t}-body`,{[`${t}-circle-gradient`]:E},n.body),k=x.createElement(LP,{steps:h,percent:h?w[1]:w,strokeWidth:b,railWidth:b,strokeColor:h?D[1]:D,strokeLinecap:o,railColor:_,prefixCls:t,gapDegree:C,gapPosition:T,classNames:xr(n,GP),styles:xr(r,GP)}),A=v<=20,j=x.createElement(`div`,{className:O,style:{...S,...r.body}},k,!A&&f);return A?x.createElement(Bw,{title:f},j):j},qP=`--progress-line-stroke-color`,JP=e=>{let t=e?`100%`:`-100%`;return new Io(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},YP=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...qc(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},XP=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:JP(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},ZP=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},QP=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},$P=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},eF=nl(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=hs(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[YP(n),XP(n),ZP(n),QP(n),$P(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),tF=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},nF=(e,t)=>{let{from:n=Xs.blue,to:r=Xs.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${tF(a)})`;return{background:e,[qP]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[qP]:o}},rF=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:m}=e,{align:h,type:g}=p,_=d??f,v=l===`square`||l===`butt`?0:void 0,[y,b]=HP(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),S={backgroundColor:_||void 0,borderRadius:v,height:b},C=`${t}-track`,w=c&&typeof c!=`string`?nF(c,i):{[qP]:c,background:c},T={width:`${RP(a)}%`,height:b,borderRadius:v,...w},E=zP(e),D={width:`${RP(E)}%`,height:b,borderRadius:v,backgroundColor:m?.strokeColor};return x.createElement(`div`,{className:q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:h===`center`&&g===`outer`}),style:{width:y>0?y:`100%`,...r.body}},x.createElement(`div`,{className:q(`${t}-rail`,n.rail),style:{...S,...r.rail}},x.createElement(`div`,{className:q(C,n.track),style:{...T,...r.track}},g===`inner`&&u),E!==void 0&&x.createElement(`div`,{className:q(C,`${C}-success`,n.track),style:{...D,...r.track}})),g===`outer`&&u)},iF=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[m,h]=HP(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),g=m/i,_=Array.from({length:i}),v=l??u;for(let e=0;e{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:m,style:h,percentPosition:g={},..._}=e,{align:v=`end`,type:y=`outer`}=g,b=Array.isArray(c)?c[0]:c,S=typeof c==`string`||Array.isArray(c)?c:void 0,C=x.useMemo(()=>b?new Ls(typeof b==`string`?b:Object.values(b)[0]).isLight():!1,[c]),w=x.useMemo(()=>{let t=zP(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),T=x.useMemo(()=>!aF.includes(p)&&w>=100?`success`:p||`normal`,[p,w]),{getPrefixCls:E,direction:D,className:O,style:k,classNames:A,styles:j}=ci(`progress`),M=E(`progress`,n),[N,P]=eF(M),F={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:g},[I,L]=Nd([A,a],[j,o],{props:F}),R=f===`line`,z=R&&!s,B=x.useMemo(()=>{if(!d)return null;let t=zP(e),n,r=m||(e=>`${e}%`),i=R&&C&&y===`inner`;return y===`inner`||m||T!==`exception`&&T!==`success`?n=r(RP(l),RP(t)):T===`exception`?n=R?x.createElement(Nl,null):x.createElement(Il,null):T===`success`&&(n=R?x.createElement(Al,null):x.createElement(BC,null)),x.createElement(`span`,{className:q(`${M}-indicator`,{[`${M}-indicator-bright`]:i,[`${M}-indicator-${v}`]:z,[`${M}-indicator-${y}`]:z},I.indicator),style:L.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,w,T,f,M,m,R,C,y,v,z,I.indicator,L.indicator]),V={...e,classNames:I,styles:L},H;f===`line`?H=s?x.createElement(iF,{...V,strokeColor:S,prefixCls:M,steps:pd(s)?s.count:s},B):x.createElement(rF,{...V,strokeColor:b,prefixCls:M,direction:D,percentPosition:{align:v,type:y}},B):(f===`circle`||f===`dashboard`)&&(H=x.createElement(KP,{...V,strokeColor:b,prefixCls:M,progressStatus:T},B));let U=q(M,`${M}-status-${T}`,{[`${M}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${M}-inline-circle`]:f===`circle`&&HP(u,`circle`)[0]<=20,[`${M}-line`]:z,[`${M}-line-align-${v}`]:z,[`${M}-line-position-${y}`]:z,[`${M}-steps`]:s,[`${M}-show-info`]:d,[`${M}-small`]:u===`small`,[`${M}-rtl`]:D===`rtl`},O,r,i,I.root,N,P);return x.createElement(`div`,{ref:t,style:{...k,...L.root,...h},className:U,role:`progressbar`,"aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100,...xr(_,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},H)}),sF={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`};function cF(){return cF=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,cF({},e,{ref:t,icon:sF}))),uF=uA;function dF(){return dF=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[h,g]=Vn(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function v(e){e.which===X.LEFT?_(!1,e):e.which===X.RIGHT&&_(!0,e),u?.(e)}function y(e){let t=_(!h,e);c?.(t,e)}let b=q(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return x.createElement(`button`,dF({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:b,ref:m,onKeyDown:v,onClick:y}),a,x.createElement(`span`,{className:`${e}-inner`},x.createElement(`span`,{className:q(`${e}-inner-checked`,f?.content),style:d?.content},o),x.createElement(`span`,{className:q(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});fF.displayName=`Switch`;var pF=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=J(c(s).add(c(r).mul(2)).equal()),d=J(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:J(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${J(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},mF=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},hF=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...Ih(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...Ih()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${J(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},gF=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=J(c(o).add(c(r).mul(2)).equal()),d=J(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Ih(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Ih()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},_F=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...qc(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:J(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Ih(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Zc(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},vF=nl(`Switch`,e=>{let t=hs(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[_F(t),gF(t),hF(t),mF(t),pF(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Ls(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),yF=x.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,v]=Vn(d??f??!1,l??u),{getPrefixCls:y,direction:b,className:S,style:C,classNames:w,styles:T}=ci(`switch`),E=x.useContext(Ep),D=(i??E)||a,O=y(`switch`,n),[k,A]=vF(O),j=Km(r),M={...e,size:j,disabled:D},[N,P]=Nd([w,h],[T,m],{props:M}),F=x.createElement(`div`,{className:q(`${O}-handle`,N.indicator),style:P.indicator},a&&x.createElement(um,{className:`${O}-loading-icon`})),I=q(S,{[`${O}-small`]:j===`small`,[`${O}-loading`]:a,[`${O}-rtl`]:b===`rtl`},o,s,N.root,k,A),L={...P.root,...C,...c},R=(...e)=>{v(e[0]),p?.(...e)};return x.createElement(Gm,{component:`Switch`,disabled:D},x.createElement(fF,{...g,classNames:N,styles:P,checked:_,onChange:R,prefixCls:O,className:I,style:L,disabled:D,ref:t,loadingIcon:F}))});yF.__ANT_SWITCH=!0;var bF={},xF=`rc-table-internal-hook`;function SF(e){let t=x.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=x.useRef(e);r.current=e;let[i]=x.useState(()=>({getValue:()=>r.current,listeners:new Set}));return Rn(()=>{(0,Ff.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),x.createElement(t.Provider,{value:i},n)},defaultValue:e}}function CF(e,t){let n=Fn(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=x.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=x.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=x.useState({});return Rn(()=>{if(!r)return;function e(e){let t=n(e);wi(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function wF(){return wF=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let s=i?{ref:o}:{},c=x.useRef(0),l=x.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,x.createElement(e.Provider,{value:c.current},x.createElement(n,wF({},a,s)))):x.createElement(n,wF({},a,s))};return i?x.forwardRef(a):a}function r(e,n){let r=er(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),x.createElement(e,wF({},n,a))};return x.memo(r?x.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:EF,responseImmutable:DF,useImmutableMark:OF}=TF(),{makeImmutable:kF,responseImmutable:AF,useImmutableMark:jF}=TF(),MF=SF(),NF=x.createContext({renderWithProps:!1}),PF=`RC_TABLE_KEY`;function FF(e){return e==null?[]:Array.isArray(e)?e:[e]}function IF(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||FF(i).join(`-`)||PF;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function LF(e){return e!=null}function RF(e){return typeof e==`number`&&!Number.isNaN(e)}function zF(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!x.isValidElement(e)}function BF(e,t,n,r,i,a){let o=x.useContext(NF);return Wn(()=>{if(LF(r))return[r];let a=ir(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);zF(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[jF(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!wi(e,t,!0)})}function VF(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function HF(e,t){return CF(MF,n=>[VF(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function UF(){return UF=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():x.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},GF=x.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:v,fixEnd:y,fixedStartShadow:b,fixedEndShadow:S,offsetFixedStartShadow:C,offsetFixedEndShadow:w,zIndex:T,zIndexReverse:E,appendNode:D,additionalProps:O={},isSticky:k}=e,A=`${a}-cell`,{allColumnsFixedLeft:j,rowHoverable:M}=CF(MF,[`allColumnsFixedLeft`,`rowHoverable`]),[N,P]=BF(l,d,f,n,u,p),F={},I=typeof v==`number`&&!j,L=typeof y==`number`&&!j,[R,z]=CF(MF,({scrollInfo:e})=>{if(!I&&!L)return[!1,!1];let[t,n]=e;return[(I&&b&&t)-C>=1,(L&&S&&n-t)-w>1]});I&&(F.insetInlineStart=v,F[`--z-offset`]=T,F[`--z-offset-reverse`]=E),L&&(F.insetInlineEnd=y,F[`--z-offset`]=T,F[`--z-offset-reverse`]=E);let B=P?.colSpan??O.colSpan??g??1,V=P?.rowSpan??O.rowSpan??_??1,[H,U]=HF(m,V),W=Fn(e=>{l&&U(m,m+V-1),O?.onMouseEnter?.(e)}),ee=Fn(e=>{l&&U(-1,-1),O?.onMouseLeave?.(e)});if(B===0||V===0)return null;let te=O.title??WF({rowType:h,ellipsis:r,children:N}),ne=q(A,o,{[`${A}-fix`]:I||L,[`${A}-fix-start`]:I,[`${A}-fix-end`]:L,[`${A}-fix-start-shadow`]:b,[`${A}-fix-start-shadow-show`]:b&&R,[`${A}-fix-end-shadow`]:S,[`${A}-fix-end-shadow-show`]:S&&z,[`${A}-ellipsis`]:r,[`${A}-with-append`]:D,[`${A}-fix-sticky`]:(I||L)&&k,[`${A}-row-hover`]:!P&&H},O.className,P?.className),re={};c&&(re.textAlign=c);let G={...P?.style,...F,...re,...O.style,...s},ie=N;return typeof ie==`object`&&!Array.isArray(ie)&&!x.isValidElement(ie)&&(ie=null),r&&(b||S)&&(ie=x.createElement(`span`,{className:`${A}-content`},ie)),x.createElement(t,UF({},P,O,{className:ne,style:G,title:te,scope:i,onMouseEnter:M?W:void 0,onMouseLeave:M?ee:void 0,colSpan:B===1?null:B,rowSpan:V===1?null:V}),D,ie)});function KF(e){return e.fixed===`start`}function qF(e){return e.fixed===`end`}function JF(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;KF(i)&&KF(a)?o=r.start[e]:qF(a)&&qF(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!KF(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!qF(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;tt;--e)qF(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var YF=x.createContext({});function XF(){return XF=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=CF(MF,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=x.useContext(YF),d=n+i-1+1===c?i+1:i,f=x.useMemo(()=>JF(n,n+d-1,u,l),[n,d,u,l]);return x.createElement(GF,XF({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},QF=e=>{let{children:t,...n}=e;return x.createElement(`tr`,n,t)},$F=e=>{let{children:t}=e;return t};$F.Row=QF,$F.Cell=ZF;var eI=AF(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=CF(MF,`prefixCls`),a=r.length-1,o=r[a],s=x.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return x.createElement(YF.Provider,{value:s},x.createElement(`tfoot`,{className:`${i}-summary`},t))}),tI=$F;function nI(e){return null}function rI(e){return null}function iI(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o{if(n?.size){let i=[];for(let a=0;a({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function oI(e,t,n,r){let i=CF(MF,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=Fn(l),b=d?.(e,n),x=b?.onClick,S=(t,...n)=>{f&&g&&l(e,t),x?.(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=IF(a);return{...i,columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...b,className:q(C,b?.className),onClick:S}}}var sI=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=CF(MF,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=x.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),x.createElement(r,{className:a,style:{display:o?null:`none`}},x.createElement(GF,{component:i,prefixCls:t,colSpan:s},h))};function cI({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return x.createElement(`span`,{className:q(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return x.createElement(`span`,{className:q(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function lI(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function uI(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=oI(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,rowProps:b,expanded:S,rowSupportExpand:C}=h,w=x.useRef(!1);w.current||=S;let T=uI(v,a,o,u),E=x.createElement(d,dI({},b,{"data-row-key":c,className:q(t,`${g}-row`,`${g}-row-level-${u}`,b?.className,r.row,{[T]:u>=1}),style:{...n,...b?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b}=fI(h,e,t,u,o,l,m?.offset);return x.createElement(GF,dI({className:q(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})),D;if(C&&(w.current||S)){let e=y(a,o,u+1,S);D=x.createElement(sI,{expanded:S,className:q(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,T),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return x.createElement(x.Fragment,null,E,D)}),mI=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=x.useRef(null);return Rn(()=>{i.current&&n(t,i.current.offsetWidth)},[]),x.createElement(Ur,{data:t},x.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},x.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},hI=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=x.useRef(null),{measureRowRender:a}=CF(MF,[`measureRowRender`]),o=x.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},x.createElement(Ur.Collection,{onBatchResize:e=>{Yf(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=x.isValidElement(t)?x.cloneElement(t,{ref:null}):t;return x.createElement(mI,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},gI=AF(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=CF(MF,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=aI(t,l,c,s),v=x.useMemo(()=>_.map(e=>e.rowKey),[_]),y=x.useRef({renderWithProps:!1}),b=x.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e{let{record:n,indent:r,index:i,rowKey:a}=e;return x.createElement(pI,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:C,cellComponent:w,scopeCellComponent:T,indent:r,expandedRowInfo:b})}):x.createElement(sI,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:C,cellComponent:w,colSpan:o.length,isEmpty:!0},u);let D=IF(o);return x.createElement(NF.Provider,{value:y.current},x.createElement(S,{style:g.wrapper,className:q(`${r}-tbody`,h.wrapper)},n&&x.createElement(hI,{prefixCls:r,columnsKey:D,onColumnResize:a,columns:o}),E))}),_I=`RC_TABLE_INTERNAL_COL_DEFINE`;function vI(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function yI(){return yI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=CF(MF,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[_I],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(x.createElement(`col`,yI({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?x.createElement(`colgroup`,null,a):null};function xI(e,t){return(0,x.useMemo)(()=>{let n=[];for(let r=0;r{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b,...S}=e,{prefixCls:C,scrollbarSize:w,isSticky:T,getComponent:E}=CF(MF,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),D=E([`header`,`table`],`table`),O=T&&!f?0:w,k=x.useRef(null),A=x.useCallback(e=>{Zn(t,e),Zn(k,e)},[]);x.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${C}-cell-scrollbar`})},N=(0,x.useMemo)(()=>O?[...a,M]:a,[O,a]),P=(0,x.useMemo)(()=>O?[...o,M]:o,[O,o]),F=(0,x.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+O),0],isSticky:T}},[O,u,T]),I=xI(s,l),L=(0,x.useMemo)(()=>{let e=!I||!I.length||I.every(e=>!e);return i||e},[i,I]);return x.createElement(`div`,{style:{overflow:`hidden`,...T?{top:p,bottom:m}:{},...r},ref:A,className:q(n,{[h]:!!h})},x.createElement(D,{style:{tableLayout:_,minWidth:`100%`,width:g}},L?c:x.createElement(bI,{colWidths:[...I,O],columCount:l+1,columns:P}),b({...S,stickyOffsets:F,columns:N,flattenColumns:P})))}),CI=x.memo(SI);function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=CF(MF,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=IF(t.map(e=>e.column));return x.createElement(i,wI({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=JF(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return x.createElement(GF,wI({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function EI(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:q(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var DI=AF(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=CF(MF,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=x.useMemo(()=>EI(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return x.createElement(f,{className:q(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>x.createElement(TI,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function OI(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function kI(e,t,n){return x.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=OI(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=OI(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function AI(e){return Sr(e).filter(e=>x.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=AI(r)),a})}function jI(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:jI(t)}:e})}function MI(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...MI(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function NI({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=x.useMemo(()=>jI((t||AI(n)||[]).slice()),[t,n]),b=x.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(bF)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,bF)}let n=t.indexOf(bF);t=t.filter((e,t)=>e!==bF||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[_I]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?x.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===bF?g:e;return te!==bF)},[r,y,o,i,c,f,d]),S=x.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[C,w]=kI(x.useMemo(()=>MI(S),[S,f,g]),g,_);return[S,C,w]}function PI(e,t,n){let r=vI(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||cI,p=d||`children`,m=x.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=x.useState(()=>o||(s?lI(t,n,p):[])),_=x.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,x.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function FI(e,t){let n=x.useMemo(()=>e.map((n,r)=>JF(r,r,e,t)),[e,t]);return Wn(()=>n,[n],(e,t)=>!wi(e,t))}function II(e){let t=(0,x.useRef)(e),[,n]=(0,x.useState)({}),r=(0,x.useRef)(null),i=(0,x.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,x.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function LI(e){let t=(0,x.useRef)(e||null),n=(0,x.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,x.useEffect)(()=>r,[]),[i,a]}function RI(){let[e,t]=x.useState(-1),[n,r]=x.useState(-1);return[e,n,x.useCallback((e,n)=>{t(e),r(n)},[])]}var zI=In()?window:null;function BI(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>zI}=typeof e==`object`?e:{},o=a()||zI,s=!!e;return x.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function VI(e,t){return(0,x.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var HI=e=>{let{children:t,className:n,style:r}=e;return x.createElement(`div`,{className:n,style:r},t)};function UI(e){let t=Or(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var WI=`mouseup`,GI=`mousemove`,KI=`scroll`,qI=`resize`,JI=x.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=CF(MF,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=x.useRef(null),[f,p]=II({scrollLeft:0,isHiddenScrollBar:!0}),m=x.useRef({delta:0,x:0}),[h,g]=x.useState(!1),_=x.useRef(null);x.useEffect(()=>()=>{ni.cancel(_.current)},[]);let v=()=>{g(!1)},y=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},b=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u){ni.cancel(_.current),_.current=ni(()=>{if(!n.current)return;let e=UI(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:UI(a).top+a.clientHeight;t-gf()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},C=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return x.useImperativeHandle(t,()=>({setScrollLeft:C,checkScrollBarVisible:S})),x.useEffect(()=>(document.body.addEventListener(WI,v,!1),document.body.addEventListener(GI,b,!1),S(),()=>{document.body.removeEventListener(WI,v),document.body.removeEventListener(GI,b)}),[u,h]),x.useEffect(()=>{if(n.current){let e=[],t=Or(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(KI,S,!1)}),window.addEventListener(qI,S,!1),window.addEventListener(KI,S,!1),a.addEventListener(KI,S,!1),()=>{e.forEach(e=>{e.removeEventListener(KI,S)}),window.removeEventListener(qI,S),window.removeEventListener(KI,S),a.removeEventListener(KI,S)}}},[a]),x.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:x.createElement(`div`,{style:{height:gf(),width:l,bottom:i},className:`${s}-sticky-scroll`},x.createElement(`div`,{onMouseDown:y,ref:d,className:q(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function YI(){return YI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n={rowKey:`key`,prefixCls:XI,emptyText:$I,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:v,showHeader:y,components:b,emptyText:S,onRow:C,onHeaderRow:w,measureRowRender:T,onScroll:E,internalHooks:D,transformColumns:O,internalRefs:k,tailor:A,getContainerWidth:j,sticky:M,rowHoverable:N=!0}=n,P=l||ZI,F=!!P.length,I=D===xF,L=x.useCallback((e,t)=>ir(b,e)||t,[b]),R=x.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),z=L([`body`]),[B,V,H]=RI(),[U,W,ee,te,ne,re]=PI(n,P,R),G=d?.x,[ie,ae]=x.useState(0),[oe,K,se]=NI({...n,...U,expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:ee,getRowKey:R,onTriggerExpand:re,expandIcon:te,expandIconColumnIndex:U.expandIconColumnIndex,direction:p,scrollWidth:I&&A&&typeof G==`number`?G:null,clientWidth:ie},I?O:null),ce=se??G,le=x.useMemo(()=>({columns:oe,flattenColumns:K}),[oe,K]),ue=x.useRef(null),de=x.useRef(null),fe=x.useRef(null),pe=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:ue.current,scrollTo:e=>{if(fe.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i}=e;if(RF(n))fe.current?.scrollTo({top:n});else{let e=r??R(P[t]),n=fe.current.querySelector(`[data-row-key="${e}"]`);if(n)if(!i)n.scrollIntoView();else{let e=n.offsetTop;fe.current.scrollTo({top:e+i})}}}else fe.current?.scrollTo&&fe.current.scrollTo(e)}}));let me=x.useRef(null),[he,ge]=x.useState(!1),[_e,ve]=x.useState(!1),[ye,be]=x.useState(new Map),xe=IF(K).map(e=>ye.get(e)),Se=x.useMemo(()=>xe,[xe.join(`_`)]),Ce=VI(Se,K),we=d&&LF(d.y),Te=d&&LF(ce)||!!U.fixed,Ee=Te&&K.some(({fixed:e})=>e),De=x.useRef(null),{isSticky:Oe,offsetHeader:ke,offsetSummary:Ae,offsetScroll:je,stickyClassName:Me,container:Ne}=BI(M,r),Pe=x.useMemo(()=>g?.(P),[g,P]),Fe=(we||Oe)&&x.isValidElement(Pe)&&Pe.type===$F&&Pe.props.fixed,Ie,Le,Re;we&&(Le={overflowY:F?`scroll`:`auto`,maxHeight:d.y}),Te&&(Ie={overflowX:`auto`},we||(Le={overflowY:`hidden`}),Re={width:ce===!0?`auto`:ce,minWidth:`100%`});let ze=x.useCallback((e,t)=>{be(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Be,Ve]=LI(null);function He(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ue,We]=x.useState([0,0]),Ge=Fn(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||QI;(!Ve()||Ve()===r)&&(Be(r),He(n,de.current),He(n,fe.current),He(n,me.current),He(n,De.current?.setScrollLeft));let i=e||de.current;if(i){let e=I&&A&&typeof ce==`number`?ce:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(We(n=>{let i=[r,e-t];return wi(n,i)?n:i}),e===t){ge(!1),ve(!1);return}ge(r>0),ve(r{Ge(e),E?.(e)}),qe=()=>{Te&&fe.current?Ge({currentTarget:Or(fe.current),scrollLeft:fe.current?.scrollLeft}):(ge(!1),ve(!1))},Je=e=>{De.current?.checkScrollBarVisible();let t=e??ue.current?.offsetWidth??0;I&&j&&ue.current&&(t=j(ue.current,t)||t),t!==ie&&(qe(),ae(t))};Rn(()=>{Te&&Je()},[Te]);let Ye=x.useRef(!1);x.useEffect(()=>{Ye.current&&qe()},[Te,l,oe.length]),x.useEffect(()=>{Ye.current=!0},[]);let[Xe,Ze]=x.useState(0);Rn(()=>{(!A||!I)&&(fe.current instanceof Element?Ze(_f(fe.current).width):Ze(_f(pe.current).width))},[]),x.useEffect(()=>{I&&k&&(k.body.current=fe.current)});let Qe=x.useCallback(e=>x.createElement(x.Fragment,null,x.createElement(DI,e),Fe===`top`&&x.createElement(eI,e,Pe)),[Fe,Pe]),$e=x.useCallback(e=>x.createElement(eI,e,Pe),[Pe]),et=L([`table`],`table`),tt=x.useMemo(()=>f||(Ee?ce===`max-content`?`auto`:`fixed`:we||Oe||K.some(({ellipsis:e})=>e)?`fixed`:`auto`),[we,Ee,K,f,Oe]),nt,rt={colWidths:Se,columCount:K.length,stickyOffsets:Ce,onHeaderRow:w,fixHeader:we,scroll:d},it=x.useMemo(()=>F?null:typeof S==`function`?S():S,[F,S]),at=x.createElement(gI,{data:P,measureColumnWidth:we||Te||Oe}),ot=x.createElement(bI,{colWidths:K.map(({width:e})=>e),columns:K}),st=_==null?void 0:x.createElement(`caption`,{className:`${r}-caption`},_),ct=zu(n,{data:!0}),lt=zu(n,{aria:!0});if(we||Oe){let e;typeof z==`function`?(e=z(P,{scrollbarSize:Xe,ref:fe,onScroll:Ge}),rt.colWidths=K.map(({width:e},t)=>{let n=t===K.length-1?e-Xe:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=x.createElement(`div`,{style:{...Ie,...Le},onScroll:Ke,ref:fe,className:`${r}-body`},x.createElement(et,YI({style:{...Re,tableLayout:tt}},lt),st,ot,at,!Fe&&Pe&&x.createElement(eI,{stickyOffsets:Ce,flattenColumns:K},Pe)));let t={noData:!P.length,maxContentScroll:Te&&ce===`max-content`,...rt,...le,direction:p,stickyClassName:Me,scrollX:ce,tableLayout:tt,onScroll:Ge};nt=x.createElement(x.Fragment,null,y!==!1&&x.createElement(CI,YI({},t,{stickyTopOffset:ke,className:`${r}-header`,ref:de,colGroup:ot}),Qe),e,Fe&&Fe!==`top`&&x.createElement(CI,YI({},t,{stickyBottomOffset:Ae,className:`${r}-summary`,ref:me,colGroup:ot}),$e),Oe&&fe.current&&fe.current instanceof Element&&x.createElement(JI,{ref:De,offsetScroll:je,scrollBodyRef:fe,onScroll:Ge,container:Ne,direction:p}))}else nt=x.createElement(`div`,{style:{...Ie,...Le,...c?.content},className:q(`${r}-content`,s?.content),onScroll:Ge,ref:fe},x.createElement(et,YI({style:{...Re,tableLayout:tt}},lt),st,ot,y!==!1&&x.createElement(DI,YI({},rt,le)),at,Pe&&x.createElement(eI,{stickyOffsets:Ce,flattenColumns:K},Pe)));let ut={...o};Oe&&(ut[`--columns-count`]=K.length);let dt=x.createElement(`div`,YI({className:q(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Te,[`${r}-fix-end-shadow`]:Te,[`${r}-fix-start-shadow-show`]:Te&&he,[`${r}-fix-end-shadow-show`]:Te&&_e,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:we,[`${r}-fixed-column`]:Ee,[`${r}-scroll-horizontal`]:Te,[`${r}-has-fix-start`]:K[0]?.fixed,[`${r}-has-fix-end`]:K[K.length-1]?.fixed===`end`}),style:ut,id:v,ref:ue},ct),m&&x.createElement(HI,{className:q(`${r}-title`,s?.title),style:c?.title},m(P)),x.createElement(`div`,{ref:pe,className:q(`${r}-container`,s?.section),style:c?.section},nt),h&&x.createElement(HI,{className:q(`${r}-footer`,s?.footer),style:c?.footer},h(P)));Te&&(dt=x.createElement(Ur,{onResize:({offsetWidth:e})=>Je(e)},dt));let ft=FI(K,Ce),pt=x.useMemo(()=>({scrollX:ce,scrollInfo:Ue,classNames:s,styles:c,prefixCls:r,getComponent:L,scrollbarSize:Xe,direction:p,fixedInfoList:ft,isSticky:Oe,componentWidth:ie,fixHeader:we,fixColumn:Ee,horizonScroll:Te,tableLayout:tt,rowClassName:a,expandedRowClassName:U.expandedRowClassName,expandIcon:te,expandableType:W,expandRowByClick:U.expandRowByClick,expandedRowRender:U.expandedRowRender,expandedRowOffset:U.expandedRowOffset,onTriggerExpand:re,expandIconColumnIndex:U.expandIconColumnIndex,indentSize:U.indentSize,allColumnsFixedLeft:K.every(e=>e.fixed===`start`),emptyNode:it,columns:oe,flattenColumns:K,onColumnResize:ze,colWidths:Se,hoverStartRow:B,hoverEndRow:V,onHover:H,rowExpandable:U.rowExpandable,onRow:C,getRowKey:R,expandedKeys:ee,childrenColumnName:ne,rowHoverable:N,measureRowRender:T}),[ce,Ue,s,c,r,L,Xe,p,ft,Oe,ie,we,Ee,Te,tt,a,U.expandedRowClassName,te,W,U.expandRowByClick,U.expandedRowRender,U.expandedRowOffset,re,U.expandIconColumnIndex,U.indentSize,it,oe,K,ze,Se,B,V,H,U.rowExpandable,C,R,ee,ne,N,T]);return x.createElement(MF.Provider,{value:pt},dt)}),tL=e=>kF(eL,e),nL=tL();nL.EXPAND_COLUMN=bF,nL.INTERNAL_HOOKS=xF,nL.Column=nI,nL.ColumnGroup=rI,nL.Summary=tI;var rL=SF(null),iL=SF(null);function aL(){return aL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=CF(iL,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:S}=fI(t,n,r,i,a),{style:C,colSpan:w=1,rowSpan:T=1}=S,E=oL(r-1,w,_),D=w>1?g-E:0,O={...C,...l,flex:`0 0 ${E}px`,width:`${E}px`,marginRight:D,pointerEvents:`auto`},k=x.useMemo(()=>d?T<=1:w===0||T===0||T>1,[T,w,d]);k?O.visibility=`hidden`:d&&(O.height=f?.(T));let A=k?()=>null:p,j={};return(T===0||w===0)&&(j.rowSpan=1,j.colSpan=1),x.createElement(GF,aL({className:q(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:A,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,additionalProps:{...S,style:O,...j}}))};function cL(){return cL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_}=CF(MF,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`]),{getComponent:v}=CF(rL,[`getComponent`]),y=oI(u,a,r,d),b=v([`body`,`row`],`div`),S=v([`body`,`cell`],`div`),{rowSupportExpand:C,expanded:w,rowProps:T,expandedRowRender:E,expandedRowClassName:D}=y,O;if(C&&w){let e=E(u,r,d+1,w),t=uI(D,u,r,d),n={};g&&(n={style:{"--virtual-width":`${_}px`}});let i=`${h}-expanded-row-cell`;O=x.createElement(b,{className:q(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,t)},x.createElement(GF,{component:S,prefixCls:h,className:q(i,{[`${i}-fixed`]:g}),additionalProps:n},e))}let k={...o,width:p};s&&(k.position=`absolute`,k.pointerEvents=`none`);let A=x.createElement(b,cL({},T,l,{"data-row-key":a,ref:C?null:t,className:q(i,`${h}-row`,T?.className,{[`${h}-row-extra`]:s}),style:{...k,...T?.style}}),m.map((e,t)=>x.createElement(sL,{key:t,component:S,rowInfo:y,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return C?x.createElement(`div`,{ref:t},A,O):A})),uL=AF(x.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=CF(MF,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=CF(rL),_=x.useRef(null),v=aI(n,l,s,o),y=x.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=x.useMemo(()=>y.map(e=>e[2]),[y]);x.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),x.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{offset:t,...n}=e;t?_.current?.scrollTo({...n,offset:t,align:`top`}):_.current?.scrollTo(e)},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,`scrollLeft`,{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,`scrollTop`,{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=v[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;eS(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return x.createElement(lL,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=x.useMemo(()=>({columnsOffset:b}),[b]),T=`${c}-tbody`,E=h([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),x.createElement(iL.Provider,{value:w},x.createElement(YS,{fullHeight:!1,ref:_,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return x.createElement(lL,{data:e,rowKey:r,index:t,style:n.style})}))}));function dL(){return dL=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ref:n,onScroll:r}=t;return x.createElement(uL,{ref:n,data:e,onScroll:r})},pL=x.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=XI,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=Fn((e,t)=>ir(l,e)||t),m=Fn(u),h=x.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return x.createElement(rL.Provider,{value:h},x.createElement(nL,dL({},e,{className:q(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?fL:void 0},columns:r,internalHooks:xF,tailor:!0,ref:t})))}),mL=e=>kF(pL,e);mL();var hL=e=>null,gL=e=>null,_L=x.createContext(null),vL=x.createContext({}),yL=x.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:v,selectable:y,treeId:b,...S}=e,C=wf(b,t),w=x.useContext(_L),{classNames:T,styles:E}=w||{},D=x.useContext(vL),O=x.useRef(null),[k,A]=x.useState(!1),j=!!(w.disabled||e.disabled||D.nodeDisabled?.(_)),M=x.useMemo(()=>!w.checkable||e.checkable===!1?!1:w.checkable,[w.checkable,e.checkable]),N=t=>{j||w.onNodeSelect(t,Kk(e))},P=t=>{j||!M||e.disableCheckbox||w.onNodeCheck(t,Kk(e),!f)},F=x.useMemo(()=>typeof y==`boolean`?y:w.selectable,[y,w.selectable]),I=t=>{w.onNodeClick(t,Kk(e)),F?N(t):P(t)},L=t=>{w.onNodeDoubleClick(t,Kk(e))},R=t=>{w.onNodeMouseEnter(t,Kk(e))},z=t=>{w.onNodeMouseLeave(t,Kk(e))},B=t=>{w.onNodeContextMenu(t,Kk(e))},V=x.useMemo(()=>!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(_))),[w.draggable,_]),H=t=>{t.stopPropagation(),A(!0),w.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragEnter(t,e)},W=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragOver(t,e)},ee=t=>{t.stopPropagation(),w.onNodeDragLeave(t,e)},te=t=>{t.stopPropagation(),A(!1),w.onNodeDragEnd(t,e)},ne=t=>{t.preventDefault(),t.stopPropagation(),A(!1),w.onNodeDrop(t,e)},re=t=>{m||w.onNodeExpand(t,Kk(e))},G=x.useMemo(()=>{let{children:e}=Fk(w.keyEntities,t)||{};return!!(e||[]).length},[w.keyEntities,t]),ie=x.useMemo(()=>Wk(s,w.loadData,G,e.loaded),[s,w.loadData,G,e.loaded]);x.useEffect(()=>{m||typeof w.loadData==`function`&&u&&!ie&&!e.loaded&&w.onNodeLoad(Kk(e))},[m,w.loadData,w.onNodeLoad,u,ie,e]);let ae=x.useMemo(()=>w.draggable?.icon?x.createElement(`span`,{className:`${w.prefixCls}-draggable-icon`},w.draggable.icon):null,[w.draggable]),oe=t=>{let n=e.switcherIcon||w.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},K=()=>{if(ie){let e=oe(!0);return e===!1?null:x.createElement(`span`,{className:q(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher-noop`)},e)}let e=oe(!1);return e===!1?null:x.createElement(`span`,{onClick:re,className:q(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher_${u?xL:SL}`)},e)},se=x.useMemo(()=>{if(!M)return null;let t=typeof M==`boolean`?null:M;return x.createElement(`span`,{className:q(`${w.prefixCls}-checkbox`,{[`${w.prefixCls}-checkbox-checked`]:f,[`${w.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${w.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:P,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":C},t)},[M,f,p,j,e.disableCheckbox,C]),ce=x.useMemo(()=>ie?null:u?xL:SL,[ie,u]),le=x.useMemo(()=>x.createElement(`span`,{className:q(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__${ce||`docu`}`,{[`${w.prefixCls}-icon_loading`]:m}),style:E?.itemIcon}),[w.prefixCls,ce,m]),ue=x.useMemo(()=>{let n=!!w.draggable;return!e.disabled&&n&&w.dragOverNodeKey===t?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),de=x.useMemo(()=>{let{title:t=CL}=e,n=`${w.prefixCls}-node-content-wrapper`,r;if(w.showIcon){let t=e.icon||w.icon;r=t?x.createElement(`span`,{className:q(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__customize`),style:E?.itemIcon},typeof t==`function`?t(e):t):le}else w.loadData&&m&&(r=le);let i;return i=typeof t==`function`?t(_):w.titleRender?w.titleRender(_):t,x.createElement(`span`,{ref:O,title:typeof t==`string`?t:``,className:q(n,`${n}-${ce||`normal`}`,{[`${w.prefixCls}-node-selected`]:!j&&(d||k)}),onMouseEnter:R,onMouseLeave:z,onContextMenu:B,onClick:I,onDoubleClick:L},r,x.createElement(`span`,{className:q(`${w.prefixCls}-title`,T?.itemTitle),style:E?.itemTitle},i),ue)},[w.prefixCls,w.showIcon,e,w.icon,le,w.titleRender,_,ce,R,z,B,I,L]),fe=zu(S,{aria:!0,data:!0}),{level:pe}=Fk(w.keyEntities,t)||{},me=l[l.length-1],he=!j&&V,ge=w.draggingNodeKey===t;return x.createElement(`div`,bL({ref:h,role:`treeitem`,id:C,"aria-expanded":ie?void 0:u,"aria-selected":F&&!j?d:void 0,"aria-checked":M&&!j?p?`mixed`:f:void 0,"aria-disabled":j,className:q(n,`${w.prefixCls}-treenode`,T?.item,{[`${w.prefixCls}-treenode-disabled`]:j,[`${w.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${w.prefixCls}-treenode-checkbox-checked`]:f,[`${w.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${w.prefixCls}-treenode-selected`]:d,[`${w.prefixCls}-treenode-loading`]:m,[`${w.prefixCls}-treenode-active`]:g,[`${w.prefixCls}-treenode-leaf-last`]:me,[`${w.prefixCls}-treenode-draggable`]:V,dragging:ge,"drop-target":w.dropTargetKey===t,"drop-container":w.dropContainerKey===t,"drag-over":!j&&i,"drag-over-gap-top":!j&&a,"drag-over-gap-bottom":!j&&o,"filter-node":w.filterTreeNode?.(Kk(e)),[`${w.prefixCls}-treenode-leaf`]:ie}),style:{...r,...E?.item},draggable:he,onDragStart:he?H:void 0,onDragEnter:V?U:void 0,onDragOver:V?W:void 0,onDragLeave:V?ee:void 0,onDrop:V?ne:void 0,onDragEnd:V?te:void 0,onMouseMove:v},fe),x.createElement(yL,{prefixCls:w.prefixCls,level:pe,isStart:c,isEnd:l}),ae,K(),se,de)};wL.isTreeNode=1;function TL(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function EL(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function DL(e){return e.split(`-`)}function OL(e,t){let n=[],r=Fk(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function kL(e){if(e.parent){let t=DL(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function AL(e){let t=DL(e.pos);return Number(t[t.length-1])===0}function jL(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=Fk(s,n.eventKey);if(de.key===g.key),t=o[e<=0?0:e-1].key;g=Fk(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function ML(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function NL(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function PL(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=Fk(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var FL={},IL=`SELECT_ALL`,LL=`SELECT_INVERT`,RL=`SELECT_NONE`,zL=[],BL=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),pd(t)&&e in t&&BL(e,t[e],n)}),n),VL=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:b,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:E,childrenColumnName:D,locale:O,getPopupContainer:k}=e,A=Er(`Table`),[j,M]=Pd(e=>e),[N,P]=Vn(i||zL,r),F=N??zL,I=x.useRef(new Map),L=(0,x.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&I.current.has(e)&&(n=I.current.get(e)),t.set(e,n)}),I.current=t}},[w,n]);x.useEffect(()=>{L(F)},[F,L]);let R=(0,x.useMemo)(()=>BL(D,C),[D,C]),{keyEntities:z}=(0,x.useMemo)(()=>{if(y)return{keyEntities:null};let e=S;if(n){let t=new Set(R.map(T)),n=Array.from(I.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(Xr(e),Xr(n))}return Uk(e,{externalGetKey:T,childrenPropName:D})},[S,T,y,D,n,R]),B=(0,x.useMemo)(()=>{let e=new Map;return R.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[R,T,a]),V=(0,x.useCallback)(e=>{let t=T(e),n;return n=B.has(t)?B.get(T(e)):a?a(e):void 0,!!n?.disabled},[B,T]),[H,U]=(0,x.useMemo)(()=>{if(y)return[F,[]];let{checkedKeys:e,halfCheckedKeys:t}=Zk(F,!0,z,V);return[e||[],t]},[F,y,z,V]),W=(0,x.useMemo)(()=>{let e=m===`radio`?H.slice(0,1):H;return new Set(e)},[H,m]),ee=(0,x.useMemo)(()=>m===`radio`?new Set:new Set(U),[U,m]);x.useEffect(()=>{t||P(zL)},[!!t]);let te=(0,x.useCallback)((e,t)=>{let r,i;L(e),n?(r=e,i=e.map(e=>I.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),P(r),s?.(r,i,{type:t})},[P,w,s,n]),ne=(0,x.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}te(n,`single`)},[c,w,te]),re=(0,x.useMemo)(()=>!h||v?null:(h===!0?[IL,LL,RL]:h).map(e=>e===`SELECT_ALL`?{key:`all`,text:O.selectionAll,onSelect(){te(S.map((e,t)=>T(e,t)).filter(e=>!B.get(e)?.disabled||W.has(e)),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:O.selectInvert,onSelect(){let e=new Set(W);C.forEach((t,n)=>{let r=T(t,n);B.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(A.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),te(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:O.selectNone,onSelect(){d?.(),te(Array.from(W).filter(e=>B.get(e)?.disabled),`none`)}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),M(null)}})),[h,v,O.selectionAll,O.selectInvert,O.selectNone,B,W,S,C,T,u,te]);return[(0,x.useCallback)(e=>{if(!t)return e.filter(e=>e!==FL);let n=Xr(e),r=new Set(W),i=R.map(T).filter(e=>!B.get(e).disabled),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),te(t,`all`),M(null)},u,d;if(m!==`radio`){let e;if(re){let t={getPopupContainer:k,items:re.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=x.createElement(`div`,{className:`${b}-selection-extra`},x.createElement(Ej,{menu:t,getPopupContainer:k},x.createElement(`span`,null,x.createElement(UC,null))))}let t=R.map((e,t)=>{let n=T(e,t),i=B.get(n)||{};return{checked:r.has(n),...i}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===R.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=x.createElement(iA,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!R.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(R.length===0||n),skipGroup:!0}),u=!v&&x.createElement(`div`,{className:`${b}-selection`},d,e)}let S;S=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=B.get(i);return{node:x.createElement(RD,{...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||ne(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=ee.has(a),c=B.get(a),l;return l=E===`nest`?s:c?.indeterminate??s,{node:x.createElement(iA,{...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=H.some(e=>i.includes(e));if(n&&y&&l){let e=j(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),te(t,`multiple`)}else{let e=H;if(y){let n=o?TL(e,a):EL(e,a);ne(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=Zk([].concat(Xr(e),[a]),!0,z,V),i=n;if(o){let e=new Set(n);e.delete(a),i=Zk(Array.from(e),{checked:!1,halfCheckedKeys:r},z,V).checkedKeys}ne(a,!o,i,t)}}M(o?null:s),c?.onChange?.(e)}}),checked:o}};let C=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(FL))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,FL].concat(Xr(t))}else n=[FL].concat(Xr(n));let D=n.indexOf(FL);n=n.filter((e,t)=>e!==FL||t===D);let O=n[D-1],A=n[D+1],N=g;N===void 0&&(A?.fixed===void 0?O?.fixed!==void 0&&(N=O.fixed):N=A.fixed),N&&O&&O.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&O.fixed===void 0&&(O.fixed=N);let P=q(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:N,width:p,className:`${b}-selection-column`,title:t?.columnTitle?typeof t.columnTitle==`function`?t.columnTitle(d):t.columnTitle:u,render:C,onCell:t.onCell,align:t.align,[_I]:{className:P}};return n.map(e=>e===FL?F:e)},[T,R,t,H,W,ee,p,re,E,B,f,ne,V]),W]};function HL(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return x.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:q(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function UL(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var WL=(e,t)=>`key`in e&&ud(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function GL(e,t){return t?`${t}-${e}`:`${e}`}var KL=(e,t)=>typeof e==`function`?e(t):e,qL=(e,t)=>{let n=KL(e,t);return Object.prototype.toString.call(n)===`[object Object]`?``:n},JL={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`};function YL(){return YL=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YL({},e,{ref:t,icon:JL}))),ZL=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return x.createElement(`div`,{style:i})};function QL(e,t){let[n,r]=x.useState(!1);Rn(()=>{if(n)return e(),()=>{t()}},[n]),Rn(()=>(r(!0),()=>{r(!1)}),[])}function $L(){return $L=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=x.useState(!0),{prefixCls:m}=x.useContext(_L),h=a&&o!==`hide`;Rn(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=x.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return QL(g,v),a?x.createElement(Pu,$L({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>x.createElement(`div`,{ref:n,className:q(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=Gk(r,u);return x.createElement(wL,$L({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):x.createElement(wL,$L({domRef:t,className:n,style:r},d,{active:l}))});function tR(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function rR(){return rR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onMouseUp:A,onActiveChange:j,onListChangeStart:M,onListChangeEnd:N,...P}=e,F=Ef(),I=x.useRef(null),L=x.useRef(null);x.useImperativeHandle(t,()=>({scrollTo:e=>{I.current.scrollTo(e)},getIndentWidth:()=>L.current.offsetWidth}));let[R,z]=x.useState(o),[B,V]=x.useState(r),[H,U]=x.useState(r),[W,ee]=x.useState([]),[te,ne]=x.useState(null),re=x.useRef(r);re.current=r;function G(){let e=re.current;V(e),U(e),ee([]),ne(null),N()}Rn(()=>{z(o);let e=tR(R,o);if(e.key!==null)if(e.add){let t=B.findIndex(({key:t})=>t===e.key),n=cR(nR(B,r,e.key),b,v,y),i=B.slice();i.splice(t+1,0,sR),U(i),ee(n),ne(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=cR(nR(r,B,e.key),b,v,y),i=r.slice();i.splice(t+1,0,sR),U(i),ee(n),ne(`hide`)}else B!==r&&(V(r),U(r))},[o,r]),x.useEffect(()=>{m||G()},[m]);let ie=_?H:r,ae={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return x.createElement(x.Fragment,null,x.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},x.createElement(`div`,{className:`${n}-indent`},x.createElement(`div`,{ref:L,className:`${n}-indent-unit`}))),x.createElement(YS,rR({},P,{data:ie,itemKey:lR,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:S,prefixCls:`${n}-list`,ref:I,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?wf(F,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onMouseUp:A,onVisibleChange:e=>{e.every(e=>lR(e)!==iR)&&G()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=Rk(i,t);delete n.key,delete n.children;let c=Gk(s,ae);return x.createElement(eR,rR({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===iR?W:null,motionType:te,onMotionStart:M,onMotionEnd:G,treeNodeRequiredProps:ae,treeId:F,onMouseMove:()=>{j(null)}}))}))});function dR(){return dR=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0,expandAction:!1};static TreeNode=wL;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:zk()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=x.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=zk(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Bk(e.children)),a){r.treeData=a;let e=Uk(a,{fieldNames:o});r.keyEntities={[iR]:oR,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?PL(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[iR];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else !n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?PL(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=Vk(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=ML(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=ML(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=NL(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=NL(e.defaultCheckedKeys)||{}:a&&(o=NL(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=Zk(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=TL(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:OL(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:Kk(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=jL(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=Fk(r,t.eventKey);a&&(a.children||[]).length&&(i=EL(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:Kk(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:Kk(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=jL(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:Kk(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:Kk(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:Kk(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...Gk(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:Fk(this.state.keyEntities,a).node};yr(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=DL(o),d={event:e,node:Kk(l),dragNode:this.dragNodeProps?Kk(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=Kk({...Gk(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?TL(n,a):EL(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?EL(n,c):[c]:TL(n,c);let u=n.map(e=>{let t=Fk(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?EL(i,c):TL(i,c);l={checked:e,halfChecked:TL(a,c)},u.checkedNodes=e.map(e=>Fk(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=Zk([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=Zk(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=Fk(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(Fk(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=EL(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:TL(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:TL(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=fR){let{loadedKeys:e}=this.state;yr(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:EL(e,t)}),n()}r(e)}),{loadingKeys:EL(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onMouseUp=e=>{this.focusedByMouse=!1;let{onMouseUp:t}=this.props;t?.(e)};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{this.focusedByMouse=!1;let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=Vk(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(yr(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?EL(n,c):TL(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=Vk(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=TL(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=Kk({...Gk(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!Fk(a,t)?.children?.length,l=!Wk(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:S,checkable:C,checkStrictly:w,disabled:T,motion:E,loadData:D,filterTreeNode:O,height:k,itemHeight:A,scrollWidth:j,virtual:M,titleRender:N,dropIndicatorRender:P,onContextMenu:F,onScroll:I,direction:L,rootClassName:R,rootStyle:z}=this.props,B=zu(this.props,{aria:!0,data:!0}),V;S&&(V=typeof S==`object`?S:typeof S==`function`?{nodeDraggable:S}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:V,draggingNodeKey:n,checkable:C,checkStrictly:w,disabled:T,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:L,dropIndicatorRender:P,loadData:D,filterTreeNode:O,titleRender:N,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return x.createElement(_L.Provider,{value:H},x.createElement(`div`,{className:q(l,u,R,{[`${l}-show-line`]:m}),style:z},x.createElement(uR,dR({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:T,selectable:_,checkable:!!C,motion:E,dragging:n!==null,height:k,itemHeight:A,virtual:M,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:I,scrollWidth:j},this.getTreeNodeRequiredProps(),B))))}},mR={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`};function hR(){return hR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,hR({},e,{ref:t,icon:mR}))),_R={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`};function vR(){return vR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,vR({},e,{ref:t,icon:_R}))),bR={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`};function xR(){return xR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,xR({},e,{ref:t,icon:bR}))),CR={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`};function wR(){return wR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,wR({},e,{ref:t,icon:CR}))),ER=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),DR=new Io(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),OR=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),kR=(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:`${J(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),AR=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...qc(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...Xc(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:DR,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:J(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...OR(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...kR(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).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:`${J(t.calc(a).div(2).equal())} !important`}}}},jR=(e,t,n=!0)=>{let r=`.${e}`,i=hs(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[AR(e,i),n&&ER(i)].filter(Boolean)},MR=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},NR=nl(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:$k(`${t}-checkbox`,e)},jR(t,e),fh(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...MR(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),PR=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return x.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},FR={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`};function IR(){return IR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,IR({},e,{ref:t,icon:FR}))),RR={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`};function zR(){return zR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,zR({},e,{ref:t,icon:RR}))),VR={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`};function HR(){return HR=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,HR({},e,{ref:t,icon:VR}))),WR=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return x.isValidElement(a)?a:x.createElement(um,{className:`${t}-switcher-loading-icon`});let l;if(pd(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=typeof l==`function`?l(r):l,n=`${t}-switcher-line-custom-icon`;return x.isValidElement(e)?xp(e,{className:q(e.props?.className,n)}):e}return l?x.createElement(gR,{className:`${t}-switcher-line-icon`}):x.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=typeof n==`function`?n(r):n;return x.isValidElement(d)?xp(d,{className:q(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?x.createElement(BR,{className:`${t}-switcher-line-icon`}):x.createElement(UR,{className:`${t}-switcher-line-icon`}):x.createElement(LR,{className:u}):d},GR=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=ci(`tree`),{virtual:c}=x.useContext(ai),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:v=!0,draggable:y,disabled:b,motion:S,style:C,rootClassName:w,classNames:T,styles:E,icon:D}=e,O=x.useContext(Ep),k=b??O,A=n(`tree`,l),j=n(),M=S??{...Fm(j),motionAppear:!1},N={...e,showIcon:d,blockNode:h,checkable:_,selectable:v,disabled:k,motion:M},[P,F]=Nd([o,T],[s,E],{props:N}),I={...N,showLine:!!f,icon:D,dropIndicatorRender:PR},[L,R]=NR(A),[,z]=Gc(),B=z.paddingXS/2+(z.Tree?.titleHeight||z.controlHeightSM),V=x.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case`function`:e.nodeDraggable=y;break;case`object`:e={...y};break;default:break}return e.icon!==!1&&(e.icon=e.icon||x.createElement(TR,null)),e},[y]),H=e=>x.createElement(WR,{prefixCls:A,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return x.createElement(pR,{itemHeight:B,ref:t,virtual:c,...I,prefixCls:A,className:q({[`${A}-icon-hide`]:!d,[`${A}-block-node`]:h,[`${A}-unselectable`]:!v,[`${A}-rtl`]:r===`rtl`,[`${A}-disabled`]:k},i,u,L,R),style:{...a,...C},rootClassName:q(P.root,w),rootStyle:F.root,classNames:P,styles:F,direction:r,checkable:_&&x.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:v,switcherIcon:H,draggable:V},g)}),KR=0,qR=1,JR=2;function YR(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&YR(o||[],t,n)}e.forEach(a)}function XR({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=KR;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return YR(e,e=>{if(o===JR)return!1;if(s(e)){if(a.push(e),o===KR)o=qR;else if(o===qR)return o=JR,!1}else o===qR&&a.push(e);return t.includes(e)},zk(i)),a}function ZR(e,t,n){let r=Xr(t),i=[];return YR(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},zk(n)),i}function QR(e){let{isLeaf:t,expanded:n}=e;return t?x.createElement(gR,null):n?x.createElement(yR,null):x.createElement(SR,null)}function $R({treeData:e,children:t}){return e||Bk(t)}var ez=x.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i,...a}=e,o=x.useRef(null),s=x.useRef(null),c=()=>{let{keyEntities:e}=Uk($R(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?PL(o,e):o,t},[l,u]=x.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=x.useState(()=>c());x.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),x.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=$R(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=ZR(f,g,r)):n&&h?(g=Array.from(new Set([].concat(Xr(s.current||[]),Xr(XR({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=ZR(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=ZR(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=x.useContext(ai),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`,...S}=a,C=h(`tree`,_),w=q(`${C}-directory`,{[`${C}-directory-rtl`]:g===`rtl`},v);return x.createElement(GR,{icon:QR,ref:t,blockNode:!0,...S,showIcon:y,expandAction:b,prefixCls:C,className:w,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),tz=GR;tz.DirectoryTree=ez,tz.TreeNode=wL;var nz=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?x.createElement(`div`,{className:`${r}-filter-dropdown-search`},x.createElement(fj,{prefix:x.createElement(KC,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},rz=e=>{let{keyCode:t}=e;t===X.ENTER&&e.stopPropagation()},iz=x.forwardRef((e,t)=>x.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:rz,ref:t},e.children));function az(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Xr(t),Xr(az(n))))}),t}function oz(e){return e.some(({children:e})=>e)}var sz=(e,t)=>typeof t==`string`||dd(t)?t.toString().toLowerCase().includes(e):!1,cz=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:cz({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?iA:RD,u={key:e.value===void 0?t:c,label:x.createElement(x.Fragment,null,x.createElement(l,{checked:r.includes(c)}),x.createElement(`span`,null,e.text))};return o?typeof s==`function`?s(o,e)?u:null:sz(o,e.text)?u:null:u})};function lz(e){return e||[]}var uz=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:v={},filterDropdownOpen:y,onFilterDropdownOpenChange:b}=r,[S,C]=x.useState(!1),w=x.useContext(Ow),T=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),E=e=>{C(e),v.onOpenChange?.(e),b?.(e)},D=v.open??y??S,O=u?.filteredKeys,[k,A]=Bd(lz(O)),j=({selectedKeys:e})=>{A(e)},M=(e,{node:t,checked:n})=>{j(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};x.useEffect(()=>{S&&j({selectedKeys:lz(O)})},[O]);let[N,P]=x.useState([]),F=e=>{P(e)},[I,L]=x.useState(``),R=x.useMemo(()=>I.trim().toLowerCase(),[I]),z=e=>{let{value:t}=e.target;L(t)};x.useEffect(()=>{S||L(``)},[S]);let B=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||wi(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},V=()=>{E(!1),B(k())},H=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&B([]),t&&E(!1),L(``),A(g?(_||[]).map(String):[])},U=({closeDropdown:e}={closeDropdown:!0})=>{e&&E(!1),B(k())},W=(e,t)=>{t.source===`trigger`&&(e&&O!==void 0&&A(lz(O)),E(e),!e&&!r.filterDropdown&&o&&V())},ee=q({[`${i}-menu-without-submenu`]:!oz(r.filters||[])}),te=e=>{e.target.checked?A(az(r?.filters).map(String)):A([])},ne=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ne({filters:e.children})),r}),re=e=>({...e,text:e.title,value:e.key,children:e.children?.map(re)||[]}),G,{direction:ie,renderEmpty:ae}=x.useContext(ai);if(typeof r.filterDropdown==`function`)G=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:k(),confirm:U,clearFilters:H,filters:r.filters,visible:D,close:()=>{E(!1)}});else if(r.filterDropdown)G=r.filterDropdown;else{let e=k()||[];G=x.createElement(x.Fragment,null,(()=>{let a=ae?.(`Table.filter`)??x.createElement(xC,{image:xC.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return x.createElement(x.Fragment,null,x.createElement(nz,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),x.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?x.createElement(iA,{checked:e.length===az(r.filters).length,indeterminate:e.length>0&&e.lengthtypeof l==`function`?l(I,re(e)):sz(R,e.title):void 0})));let o=cz({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:I,normalizedSearchValue:R}),u=o.every(e=>e===null);return x.createElement(x.Fragment,null,x.createElement(nz,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),u?a:x.createElement(cD,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ee,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:m,openKeys:N,onOpenChange:F,items:o}))})(),x.createElement(`div`,{className:`${n}-dropdown-btns`},x.createElement(Mg,{type:`link`,size:`small`,disabled:g?wi((_||[]).map(String),e,!0):e.length===0,onClick:()=>H()},f.filterReset),x.createElement(Mg,{type:`primary`,size:`small`,onClick:V},f.filterConfirm)))}r.filterDropdown&&(G=x.createElement(KE,{selectable:void 0},G)),G=x.createElement(iz,{className:`${n}-dropdown`},G);let oe=(()=>{let e;return e=typeof r.filterIcon==`function`?r.filterIcon(T):r.filterIcon?r.filterIcon:x.createElement(XL,null),x.createElement(`span`,{role:`button`,tabIndex:-1,className:q(`${n}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})();if(w)return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),oe);let K=ld({trigger:[`click`],placement:ie===`rtl`?`bottomLeft`:`bottomRight`,children:oe,getPopupContainer:m},{...v,rootClassName:q(h,v.rootClassName),open:D,onOpenChange:W,popupRender:()=>typeof v?.dropdownRender==`function`?v.dropdownRender(G):G});return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),x.createElement(Ej,{...K}))},dz=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=GL(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:WL(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:WL(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(Xr(r),Xr(dz(e.children,t,a))))}),r};function fz(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=GL(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=WL(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>x.createElement(uz,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},KL(n.title,r))}}return`children`in h&&(h={...h,children:fz(e,t,h.children,r,i,a,o,u,c)}),h})}var pz=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=az(a).filter(e=>n.includes(String(e))):t[i]=null}),t},mz=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=az(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=mz(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),hz=e=>e.flatMap(e=>`children`in e?[e].concat(Xr(hz(e.children||[]))):[e]),gz=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Er(`Table`);let c=x.useMemo(()=>hz(r||[]),[r]),[l,u]=x.useState(()=>dz(c,!0)),d=x.useMemo(()=>{let e=dz(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>WL(e,GL(t)));return l.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return e},[c,l]),f=x.useMemo(()=>pz(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(pz(t),t)};return[e=>fz(t,n,e,d,o,p,a,void 0,s),d,f]},_z=(e,t,n)=>{let r=x.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),pd(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function vz(e,t){let n={current:e.current,pageSize:e.pageSize},r=pd(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];typeof r!=`function`&&(n[t]=r)}),n}function yz(e,t,n){let{total:r=0,...i}=pd(n)?n:{},[a,o]=(0,x.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=ld(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var bz={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`};function xz(){return xz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,xz({},e,{ref:t,icon:bz}))),Cz={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`};function wz(){return wz=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,wz({},e,{ref:t,icon:Cz}))),Ez=`ascend`,Dz=`descend`,Oz=e=>e.sorter&&typeof e.sorter==`object`&&dd(e.sorter.multiple)?e.sorter.multiple:!1,kz=e=>typeof e==`function`?e:pd(e)&&e.compare?e.compare:!1,Az=(e,t)=>t?e[e.indexOf(t)+1]:e[0],jz=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:WL(e,t),multiplePriority:Oz(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=GL(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(Xr(r),Xr(jz(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:WL(e,o),multiplePriority:Oz(e),sortOrder:e.defaultSortOrder}))}),r},Mz=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=GL(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=WL(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=Az(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(Ez)&&x.createElement(Tz,{className:q(`${e}-column-sorter-up`,{active:m===Ez})}),n=s.includes(Dz)&&x.createElement(Sz,{className:q(`${e}-column-sorter-down`,{active:m===Dz})});g=x.createElement(`span`,{className:q(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},x.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:v,triggerDesc:y}=a||{},b=_;h===Dz?b=y:h===Ez&&(b=v);let S=pd(l)?{title:b,...l}:{title:b};d={...d,className:q(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=x.createElement(`span`,{className:`${e}-column-title`},KL(t.title,n)),a=x.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?x.createElement(`div`,{className:q(r,`${r}-tooltip-target-sorter`)},i,x.createElement(Bw,{...S},g)):x.createElement(Bw,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:Oz(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===X.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:Oz(t)}),o?.(e))};let s=qL(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=q(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:Mz(e,d.children,n,r,i,a,o,u,c)}),d}),Nz=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Pz=e=>{let t=e.filter(({sortOrder:e})=>e).map(Nz);return t.length===0&&e.length?{...Nz(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},Fz=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>kz(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?{...e,[n]:Fz(r,t,n)}:e}):i},Iz=e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o,globalLocale:s}=e,[c,l]=x.useState(()=>jz(n,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=GL(r,t);if(n.push(WL(e,i)),Array.isArray(e.children)){let t=u(e.children,i);n.push.apply(n,Xr(t))}}),n},d=x.useMemo(()=>{let e=!0,t=jz(n,!1);if(!t.length){let e=u(n);return c.filter(({key:t})=>e.includes(t))}let r=[];function i(t){e?r.push(t):r.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r},[n,c]),f=x.useMemo(()=>{let e=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[d]),p=e=>{let t;t=e.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?[e]:[].concat(Xr(d.filter(({key:t})=>t!==e.key)),[e]),l(t),o(Pz(t),t)};return[e=>Mz(t,e,d,p,r,i,a,void 0,s),d,f,()=>Pz(d)]},Lz=(e,t)=>e.map(e=>{let n={...e};return n.title=KL(e.title,t),`children`in n&&(n.children=Lz(n.children,t)),n}),Rz=e=>[x.useCallback(t=>Lz(t,e),[e])],zz=tL((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Bz=mL((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Vz=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${J(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${J(c(r).mul(-1).equal())} ${J(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${J(c(o).mul(-1).equal())} ${J(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${J(n)} 0 ${J(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},HB=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Kc,wordBreak:`keep-all`,[` + `]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${J(n)} 0 ${J(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},Hz=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Kc,wordBreak:`keep-all`,[` &${t}-cell-fix-start-shadow, &${t}-cell-fix-end-shadow - `]:{overflow:`visible`,[`${t}-cell-content`]:{...Kc,display:`block`}},[`${t}-column-title`]:{...Kc,wordBreak:`keep-all`}}}}},UB=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},WB=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${J(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${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`]:{...tl(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:J(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,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:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${J(y(d).mul(-1).equal())} ${J(y(f).mul(-1).equal())}`,padding:`${J(d)} ${J(f)}`}}}},GB=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${J(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${J(o)} ${J(D(m).div(2).mul(-1).equal())}`,padding:`0 ${J(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...qc(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${J(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${J(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${J(D(s).sub(l).equal())} ${J(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function KB({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var qB=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=KB(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},JB=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${J(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},YB=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${J(n)} ${J(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,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${J(n)} ${J(n)}`}}}}},XB=e=>{let{componentCls:t}=e,[n,r]=KB(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},ZB=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[` + `]:{overflow:`visible`,[`${t}-cell-content`]:{...Kc,display:`block`}},[`${t}-column-title`]:{...Kc,wordBreak:`keep-all`}}}}},Uz=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},Wz=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${J(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${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`]:{...tl(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:J(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,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:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${J(y(d).mul(-1).equal())} ${J(y(f).mul(-1).equal())}`,padding:`${J(d)} ${J(f)}`}}}},Gz=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${J(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${J(o)} ${J(D(m).div(2).mul(-1).equal())}`,padding:`0 ${J(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...qc(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${J(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${J(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${J(D(s).sub(l).equal())} ${J(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function Kz({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var qz=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=Kz(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},Jz=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${J(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},Yz=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${J(n)} ${J(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,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${J(n)} ${J(n)}`}}}}},Xz=e=>{let{componentCls:t}=e,[n,r]=Kz(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},Zz=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).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:m(e.zIndexTableFixed).add(1).equal({unit:!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:J(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},QB=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!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:J(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Qz=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -277,13 +277,13 @@ html body { ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${J(i)} ${J(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:J(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${J(r(i).mul(-1).equal())} ${J(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:J(r(i).mul(-1).equal()),marginInline:`${J(r(n).sub(a).equal())} ${J(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:J(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},$B=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${J(i)} ${J(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:J(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${J(r(i).mul(-1).equal())} ${J(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:J(r(i).mul(-1).equal()),marginInline:`${J(r(n).sub(a).equal())} ${J(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:J(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},$z=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&: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,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,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:a}}}},eV=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${J(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${J(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${J(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${J(i(n).mul(-1).equal())} 0 ${r}`}}}},nV=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${J(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{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,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,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:a}}}},eB=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${J(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${J(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},tB=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${J(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${J(i(n).mul(-1).equal())} 0 ${r}`}}}},nB=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${J(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${J(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},rV=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${J(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Yc(),[t]:{...qc(e),fontSize:l,background:u,borderRadius:`${J(d)} ${J(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${J(d)} ${J(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[` + `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${J(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},rB=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${J(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Yc(),[t]:{...qc(e),fontSize:l,background:u,borderRadius:`${J(d)} ${J(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${J(d)} ${J(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -294,36 +294,36 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:J(v(r).mul(-1).equal()),marginInline:`${J(v(a).sub(i).equal())} - ${J(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${J(r)} ${J(i)}`,color:g,background:_}}}},iV=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new Ls(i).onBackground(n).toHexString(),w=new Ls(a).onBackground(n).toHexString(),T=new Ls(t).onBackground(n).toHexString(),E=new Ls(y),D=new Ls(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},aV=2,oV=nl(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=hs(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:aV,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[rV(F),JB(F),tV(F),$B(F),GB(F),VB(F),YB(F),WB(F),tV(F),UB(F),ZB(F),qB(F),eV(F),HB(F),QB(F),XB(F),nV(F)]},iV,{resetFont:!1,unitless:{expandIconScale:!0}}),sV=[],cV=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,columns:g,children:_,childrenColumnName:v,onChange:y,getPopupContainer:b,loading:S,expandIcon:C,expandable:w,expandedRowRender:T,expandIconColumnIndex:E,indentSize:D,scroll:O,sortDirections:k,locale:A,showSorterTooltip:j={target:`full-header`},virtual:M}=e;Er(`Table`);let N=x.useMemo(()=>g||AL(_),[g,_]),P=iw(x.useMemo(()=>N.some(e=>e.responsive),[N])),F=x.useMemo(()=>{let e=new Set(Object.keys(P).filter(e=>P[e]));return N.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[N,P]),I=xr(e,[`className`,`style`,`columns`]),{locale:L=$u,table:R}=x.useContext(ai),{getPrefixCls:z,direction:B,renderEmpty:V,getPopupContainer:H,className:U,style:W,classNames:ee,styles:te}=ci(`table`),ne=Km(e=>c===`middle`?`medium`:c??e),re={...e,size:ne,bordered:l},[G,ie]=Nd([ee,o],[te,s],{props:re},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),ae={...L.Table,...A},[oe]=od(`global`,$u.global),K=d||sV,se=z(`table`,n),ce=z(`dropdown`,u),[,le]=Gc(),ue=x.useMemo(()=>pd(p)?{columnWidth:le.Table?.selectionColumnWidth,...p}:p,[p,le.Table?.selectionColumnWidth]),de=sf(se),[fe,pe]=oV(se,de),me={childrenColumnName:v,expandIconColumnIndex:E,...w,expandIcon:w?.expandIcon??R?.expandable?.expandIcon},{childrenColumnName:he=`children`}=me,ge=x.useMemo(()=>K.some(e=>e?.[he])?`nest`:T||w?.expandedRowRender?`row`:null,[he,K]),_e={body:x.useRef(null)},ve=UR(se),ye=x.useRef(null),be=x.useRef(null);zd(t,()=>({...be.current,nativeElement:ye.current}));let xe=m||R?.rowKey||`key`,Se=O??R?.scroll,Ce=x.useMemo(()=>typeof xe==`function`?xe:e=>e?.[xe],[xe]),[we]=_B(K,he,Ce),Te={},Ee=(e,t,n=!1)=>{let r={...Te,...e};n&&(Te.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&_e.body.current&&of(0,{getContainer:()=>_e.body.current}),y?.(r.pagination,r.filters,r.sorter,{currentDataSource:mB(FB(K,r.sorterStates,he),r.filterStates,he),action:t})},[De,Oe,ke,Ae]=IB({prefixCls:se,mergedColumns:F,onSorterChange:(e,t)=>{Ee({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:k||[`ascend`,`descend`],tableLocale:ae,showSorterTooltip:j,globalLocale:oe}),je=x.useMemo(()=>FB(K,Oe,he),[he,K,Oe]);Te.sorter=Ae(),Te.sorterStates=Oe;let[Me,Ne,Pe]=gB({prefixCls:se,locale:ae,dropdownPrefixCls:ce,mergedColumns:F,onFilterChange:(e,t)=>{Ee({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:b||H,rootClassName:q(i,de)}),Fe=mB(je,Ne,he);Te.filters=Pe,Te.filterStates=Ne;let[Ie]=RB(x.useMemo(()=>{let e={};return Object.keys(Pe).forEach(t=>{Pe[t]!==null&&(e[t]=Pe[t])}),{...ke,filters:e}},[ke,Pe])),[Le,Re]=yB(Fe.length,(e,t)=>{Ee({pagination:{...Te.pagination,current:e,pageSize:t}},`paginate`)},f);Te.pagination=f===!1?{}:vB(Le,f),Te.resetPagination=Re;let ze=x.useMemo(()=>{if(f===!1||!Le.pageSize)return Fe;let{current:e=1,total:t,pageSize:n=10}=Le;return Fe.lengthn?Fe.slice((e-1)*n,e*n):Fe:Fe.slice((e-1)*n,e*n)},[!!f,Fe,Le?.current,Le?.pageSize,Le?.total]),[Be,Ve]=VR({prefixCls:se,data:Fe,pageData:ze,getRowKey:Ce,getRecordByKey:we,expandType:ge,childrenColumnName:he,locale:ae,getPopupContainer:b||H},ue),He=(e,t,n)=>{let r=typeof h==`function`?h(e,t,n):h;return q({[`${se}-row-selected`]:Ve.has(Ce(e,t))},r)};me.__PARENT_RENDER_ICON__=me.expandIcon,me.expandIcon=me.expandIcon||C||HR(ae),ge===`nest`&&me.expandIconColumnIndex===void 0?me.expandIconColumnIndex=+!!ue:me.expandIconColumnIndex>0&&ue&&--me.expandIconColumnIndex,typeof me.indentSize!=`number`&&(me.indentSize=dd(D)?D:15);let Ue=x.useCallback(e=>Ie(Be(Me(De(e)))),[De,Me,Be]),We,Ge;if(f!==!1&&Le?.total){let e;e=Le.size?Le.size:ne===`small`||ne===`medium`?`small`:void 0;let t=(t=`end`)=>x.createElement(RP,{...Le,classNames:G.pagination,styles:ie.pagination,className:q(`${se}-pagination ${se}-pagination-${t}`,Le.className),size:e}),{placement:n,position:r}=Le,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ge=t()),e&&(We=t(a(e))),n&&(Ge=t(a(n)))}else Ge=t()}let Ke=x.useMemo(()=>{if(typeof S==`boolean`)return{spinning:S};if(pd(S))return{spinning:!0,...S}},[S]),qe=q(pe,de,`${se}-wrapper`,U,{[`${se}-wrapper-rtl`]:B===`rtl`},r,i,G.root,fe),Je={...ie.root,...W,...a},Ye=x.useMemo(()=>Ke?.spinning&&K===sV?null:A?.emptyText===void 0?V?.(`Table`)||x.createElement(SC,{componentName:`Table`}):A.emptyText,[Ke?.spinning,K,A?.emptyText,V]),Xe=M?BB:zB,Ze={},Qe=x.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=le,o=Math.floor(e*t);switch(ne){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[le,ne]);return M&&(Ze.listItemHeight=Qe),x.createElement(`div`,{ref:ye,className:qe,style:Je},x.createElement(aF,{spinning:!1,...Ke},We,x.createElement(Xe,{...Ze,...I,scroll:Se,classNames:G,styles:ie,ref:be,columns:F,direction:B,expandable:me,prefixCls:se,className:q({[`${se}-medium`]:ne===`medium`,[`${se}-small`]:ne===`small`,[`${se}-bordered`]:l,[`${se}-empty`]:K.length===0},pe,de,fe),data:ze,rowKey:Ce,rowClassName:He,emptyText:Ye,internalHooks:xI,internalRefs:_e,transformColumns:Ue,getContainerWidth:ve,measureRowRender:e=>x.createElement(Ow.Provider,{value:!0},x.createElement(Kp,{getPopupContainer:e=>e},e))}),Ge))}),lV=x.forwardRef((e,t)=>{let n=x.useRef(0);return n.current+=1,x.createElement(cV,{...e,ref:t,_renderTimes:n.current})});lV.SELECTION_COLUMN=FR,lV.EXPAND_COLUMN=bI,lV.SELECTION_ALL=IR,lV.SELECTION_INVERT=LR,lV.SELECTION_NONE=RR,lV.Column=hR,lV.ColumnGroup=gR,lV.Summary=tL;var uV=lV,dV=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...qc(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},fV=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return hs(e,{tagFontSize:i,tagLineHeight:J(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pV=e=>{let t=ug(new ig(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Ls(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},mV=nl(`Tag`,e=>dV(fV(e)),pV),hV=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=x.useContext(ai),m=x.useContext(Ep),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[v,y]=mV(_),b=q(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,v,y);return x.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:b,onClick:g},s,x.createElement(`span`,null,o))}),gV=x.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:S}=ci(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,E]=mV(C,sf(C)),[D,O]=Nd([b,s],[S,c],{props:e}),k=(0,x.useMemo)(()=>Array.isArray(u)?u.map(e=>pd(e)?e:{value:e,label:e}):[],[u]),[A,j]=Vn(f,d),M=(e,t)=>{let n=null;if(m){let r=A||[];n=e?[].concat(Xr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;j(n),p?.(n)},N=x.useRef(null);(0,x.useImperativeHandle)(t,()=>({nativeElement:N.current}));let P=zu(h,{aria:!0,data:!0});return x.createElement(`div`,{...P,className:q(w,v,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,E,a,D.root),style:{...y,...O.root,...o},id:n,ref:N},k.map(e=>x.createElement(hV,{key:e.value,className:q(`${w}-item`,D.item),style:O.item,checked:m?(A||[]).includes(e.value):A===e.value,onChange:t=>M(t,e),disabled:l},e.label)))});function _V(e,t){let{color:n,variant:r,bordered:i}=e;return x.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=Iw(n),c=Lw(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Ls(o).toHsl();e.l=.95,l.backgroundColor=new Ls(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var vV=e=>ol(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),yV=il([`Tag`,`preset`],e=>vV(fV(e)),pV);function bV(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var xV=(e,t,n)=>{let r=bV(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},SV=il([`Tag`,`status`],e=>{let t=fV(e);return[xV(t,`success`,`Success`),xV(t,`processing`,`Info`),xV(t,`error`,`Error`),xV(t,`warning`,`Warning`)]},pV),CV=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:v,direction:y,className:b,variant:S,style:C,classNames:w,styles:T}=ci(`tag`),[E,D,O,k,A]=_V(e,S),j=O||k,M=x.useContext(Ep),N=f??M,{tag:P}=x.useContext(ai),[F,I]=x.useState(!0),L=xr(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Nd([w,g],[T,h],{props:R}),V=x.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=v(`tag`,n),[U,W]=mV(H),ee=q(H,b,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:y===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ne]=Cd(_d(e),_d(P),{closable:!1,closeIconRender:e=>bp(e,x.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:q(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,G=xp(s,{className:q(x.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ie=G?x.createElement(x.Fragment,null,G,o&&x.createElement(`span`,{className:z.content,style:B.content},o)):o,ae=p?`a`:`span`,oe=x.createElement(ae,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ie,ne,O&&x.createElement(yV,{key:`preset`,prefixCls:H}),k&&x.createElement(SV,{key:`status`,prefixCls:H}));return re?x.createElement(Gm,{component:`Tag`},oe):oe});CV.CheckableTag=hV,CV.CheckableTagGroup=gV;var wV={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function TV(){return TV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TV({},e,{ref:t,icon:wV}))),DV={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function OV(){return OV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OV({},e,{ref:t,icon:DV}))),AV={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function jV(){return jV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jV({},e,{ref:t,icon:AV}))),NV=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},PV=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` + ${J(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${J(r)} ${J(i)}`,color:g,background:_}}}},iB=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new Ls(i).onBackground(n).toHexString(),w=new Ls(a).onBackground(n).toHexString(),T=new Ls(t).onBackground(n).toHexString(),E=new Ls(y),D=new Ls(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},aB=2,oB=nl(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=hs(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:aB,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[rB(F),Jz(F),tB(F),$z(F),Gz(F),Vz(F),Yz(F),Wz(F),tB(F),Uz(F),Zz(F),qz(F),eB(F),Hz(F),Qz(F),Xz(F),nB(F)]},iB,{resetFont:!1,unitless:{expandIconScale:!0}}),sB=[],cB=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,columns:g,children:_,childrenColumnName:v,onChange:y,getPopupContainer:b,loading:S,expandIcon:C,expandable:w,expandedRowRender:T,expandIconColumnIndex:E,indentSize:D,scroll:O,sortDirections:k,locale:A,showSorterTooltip:j={target:`full-header`},virtual:M}=e;Er(`Table`);let N=x.useMemo(()=>g||AI(_),[g,_]),P=iw(x.useMemo(()=>N.some(e=>e.responsive),[N])),F=x.useMemo(()=>{let e=new Set(Object.keys(P).filter(e=>P[e]));return N.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[N,P]),I=xr(e,[`className`,`style`,`columns`]),{locale:L=$u,table:R}=x.useContext(ai),{getPrefixCls:z,direction:B,renderEmpty:V,getPopupContainer:H,className:U,style:W,classNames:ee,styles:te}=ci(`table`),ne=Km(e=>c===`middle`?`medium`:c??e),re={...e,size:ne,bordered:l},[G,ie]=Nd([ee,o],[te,s],{props:re},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),ae={...L.Table,...A},[oe]=od(`global`,$u.global),K=d||sB,se=z(`table`,n),ce=z(`dropdown`,u),[,le]=Gc(),ue=x.useMemo(()=>pd(p)?{columnWidth:le.Table?.selectionColumnWidth,...p}:p,[p,le.Table?.selectionColumnWidth]),de=sf(se),[fe,pe]=oB(se,de),me={childrenColumnName:v,expandIconColumnIndex:E,...w,expandIcon:w?.expandIcon??R?.expandable?.expandIcon},{childrenColumnName:he=`children`}=me,ge=x.useMemo(()=>K.some(e=>e?.[he])?`nest`:T||w?.expandedRowRender?`row`:null,[he,K]),_e={body:x.useRef(null)},ve=UL(se),ye=x.useRef(null),be=x.useRef(null);zd(t,()=>({...be.current,nativeElement:ye.current}));let xe=m||R?.rowKey||`key`,Se=O??R?.scroll,Ce=x.useMemo(()=>typeof xe==`function`?xe:e=>e?.[xe],[xe]),[we]=_z(K,he,Ce),Te={},Ee=(e,t,n=!1)=>{let r={...Te,...e};n&&(Te.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&_e.body.current&&of(0,{getContainer:()=>_e.body.current}),y?.(r.pagination,r.filters,r.sorter,{currentDataSource:mz(Fz(K,r.sorterStates,he),r.filterStates,he),action:t})},[De,Oe,ke,Ae]=Iz({prefixCls:se,mergedColumns:F,onSorterChange:(e,t)=>{Ee({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:k||[`ascend`,`descend`],tableLocale:ae,showSorterTooltip:j,globalLocale:oe}),je=x.useMemo(()=>Fz(K,Oe,he),[he,K,Oe]);Te.sorter=Ae(),Te.sorterStates=Oe;let[Me,Ne,Pe]=gz({prefixCls:se,locale:ae,dropdownPrefixCls:ce,mergedColumns:F,onFilterChange:(e,t)=>{Ee({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:b||H,rootClassName:q(i,de)}),Fe=mz(je,Ne,he);Te.filters=Pe,Te.filterStates=Ne;let[Ie]=Rz(x.useMemo(()=>{let e={};return Object.keys(Pe).forEach(t=>{Pe[t]!==null&&(e[t]=Pe[t])}),{...ke,filters:e}},[ke,Pe])),[Le,Re]=yz(Fe.length,(e,t)=>{Ee({pagination:{...Te.pagination,current:e,pageSize:t}},`paginate`)},f);Te.pagination=f===!1?{}:vz(Le,f),Te.resetPagination=Re;let ze=x.useMemo(()=>{if(f===!1||!Le.pageSize)return Fe;let{current:e=1,total:t,pageSize:n=10}=Le;return Fe.lengthn?Fe.slice((e-1)*n,e*n):Fe:Fe.slice((e-1)*n,e*n)},[!!f,Fe,Le?.current,Le?.pageSize,Le?.total]),[Be,Ve]=VL({prefixCls:se,data:Fe,pageData:ze,getRowKey:Ce,getRecordByKey:we,expandType:ge,childrenColumnName:he,locale:ae,getPopupContainer:b||H},ue),He=(e,t,n)=>{let r=typeof h==`function`?h(e,t,n):h;return q({[`${se}-row-selected`]:Ve.has(Ce(e,t))},r)};me.__PARENT_RENDER_ICON__=me.expandIcon,me.expandIcon=me.expandIcon||C||HL(ae),ge===`nest`&&me.expandIconColumnIndex===void 0?me.expandIconColumnIndex=+!!ue:me.expandIconColumnIndex>0&&ue&&--me.expandIconColumnIndex,typeof me.indentSize!=`number`&&(me.indentSize=dd(D)?D:15);let Ue=x.useCallback(e=>Ie(Be(Me(De(e)))),[De,Me,Be]),We,Ge;if(f!==!1&&Le?.total){let e;e=Le.size?Le.size:ne===`small`||ne===`medium`?`small`:void 0;let t=(t=`end`)=>x.createElement(RN,{...Le,classNames:G.pagination,styles:ie.pagination,className:q(`${se}-pagination ${se}-pagination-${t}`,Le.className),size:e}),{placement:n,position:r}=Le,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ge=t()),e&&(We=t(a(e))),n&&(Ge=t(a(n)))}else Ge=t()}let Ke=x.useMemo(()=>{if(typeof S==`boolean`)return{spinning:S};if(pd(S))return{spinning:!0,...S}},[S]),qe=q(pe,de,`${se}-wrapper`,U,{[`${se}-wrapper-rtl`]:B===`rtl`},r,i,G.root,fe),Je={...ie.root,...W,...a},Ye=x.useMemo(()=>Ke?.spinning&&K===sB?null:A?.emptyText===void 0?V?.(`Table`)||x.createElement(SC,{componentName:`Table`}):A.emptyText,[Ke?.spinning,K,A?.emptyText,V]),Xe=M?Bz:zz,Ze={},Qe=x.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=le,o=Math.floor(e*t);switch(ne){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[le,ne]);return M&&(Ze.listItemHeight=Qe),x.createElement(`div`,{ref:ye,className:qe,style:Je},x.createElement(aP,{spinning:!1,...Ke},We,x.createElement(Xe,{...Ze,...I,scroll:Se,classNames:G,styles:ie,ref:be,columns:F,direction:B,expandable:me,prefixCls:se,className:q({[`${se}-medium`]:ne===`medium`,[`${se}-small`]:ne===`small`,[`${se}-bordered`]:l,[`${se}-empty`]:K.length===0},pe,de,fe),data:ze,rowKey:Ce,rowClassName:He,emptyText:Ye,internalHooks:xF,internalRefs:_e,transformColumns:Ue,getContainerWidth:ve,measureRowRender:e=>x.createElement(Ow.Provider,{value:!0},x.createElement(Kp,{getPopupContainer:e=>e},e))}),Ge))}),lB=x.forwardRef((e,t)=>{let n=x.useRef(0);return n.current+=1,x.createElement(cB,{...e,ref:t,_renderTimes:n.current})});lB.SELECTION_COLUMN=FL,lB.EXPAND_COLUMN=bF,lB.SELECTION_ALL=IL,lB.SELECTION_INVERT=LL,lB.SELECTION_NONE=RL,lB.Column=hL,lB.ColumnGroup=gL,lB.Summary=tI;var uB=lB,dB=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...qc(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},fB=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return hs(e,{tagFontSize:i,tagLineHeight:J(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pB=e=>{let t=ug(new ig(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Ls(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},mB=nl(`Tag`,e=>dB(fB(e)),pB),hB=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=x.useContext(ai),m=x.useContext(Ep),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[v,y]=mB(_),b=q(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,v,y);return x.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:b,onClick:g},s,x.createElement(`span`,null,o))}),gB=x.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:S}=ci(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,E]=mB(C,sf(C)),[D,O]=Nd([b,s],[S,c],{props:e}),k=(0,x.useMemo)(()=>Array.isArray(u)?u.map(e=>pd(e)?e:{value:e,label:e}):[],[u]),[A,j]=Vn(f,d),M=(e,t)=>{let n=null;if(m){let r=A||[];n=e?[].concat(Xr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;j(n),p?.(n)},N=x.useRef(null);(0,x.useImperativeHandle)(t,()=>({nativeElement:N.current}));let P=zu(h,{aria:!0,data:!0});return x.createElement(`div`,{...P,className:q(w,v,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,E,a,D.root),style:{...y,...O.root,...o},id:n,ref:N},k.map(e=>x.createElement(hB,{key:e.value,className:q(`${w}-item`,D.item),style:O.item,checked:m?(A||[]).includes(e.value):A===e.value,onChange:t=>M(t,e),disabled:l},e.label)))});function _B(e,t){let{color:n,variant:r,bordered:i}=e;return x.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=Iw(n),c=Lw(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Ls(o).toHsl();e.l=.95,l.backgroundColor=new Ls(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var vB=e=>ol(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),yB=il([`Tag`,`preset`],e=>vB(fB(e)),pB);function bB(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var xB=(e,t,n)=>{let r=bB(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},SB=il([`Tag`,`status`],e=>{let t=fB(e);return[xB(t,`success`,`Success`),xB(t,`processing`,`Info`),xB(t,`error`,`Error`),xB(t,`warning`,`Warning`)]},pB),CB=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:v,direction:y,className:b,variant:S,style:C,classNames:w,styles:T}=ci(`tag`),[E,D,O,k,A]=_B(e,S),j=O||k,M=x.useContext(Ep),N=f??M,{tag:P}=x.useContext(ai),[F,I]=x.useState(!0),L=xr(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Nd([w,g],[T,h],{props:R}),V=x.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=v(`tag`,n),[U,W]=mB(H),ee=q(H,b,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:y===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ne]=Cd(_d(e),_d(P),{closable:!1,closeIconRender:e=>bp(e,x.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:q(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,G=xp(s,{className:q(x.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ie=G?x.createElement(x.Fragment,null,G,o&&x.createElement(`span`,{className:z.content,style:B.content},o)):o,ae=p?`a`:`span`,oe=x.createElement(ae,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ie,ne,O&&x.createElement(yB,{key:`preset`,prefixCls:H}),k&&x.createElement(SB,{key:`status`,prefixCls:H}));return re?x.createElement(Gm,{component:`Tag`},oe):oe});CB.CheckableTag=hB,CB.CheckableTagGroup=gB;var wB={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function TB(){return TB=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TB({},e,{ref:t,icon:wB}))),DB={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function OB(){return OB=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OB({},e,{ref:t,icon:DB}))),AB={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function jB(){return jB=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jB({},e,{ref:t,icon:AB}))),NB=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},PB=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` h${t}&, div&-h${t}, div&-h${t} > textarea, h${t} - `]=NV(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},FV=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...tl(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},IV=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ec[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),LV=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},RV=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),zV=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),BV=nl(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...PV(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...IV(e),...FV(e),[`${t}-actions`]:{display:`inline`},[` + `]=NB(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},FB=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...tl(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},IB=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ec[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),LB=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},RB=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),zB=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),BB=nl(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...PB(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...IB(e),...FB(e),[`${t}-actions`]:{display:`inline`},[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:{...tl(e),marginInlineStart:e.marginXXS},...LV(e),...RV(e),...zV(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),VV=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=x.createElement(MV,null)}=e,m=x.useRef(null),h=x.useRef(!1),g=x.useRef(null),[_,v]=x.useState(c);x.useEffect(()=>{v(c)},[c]),x.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let y=({target:e})=>{v(e.value.replace(/[\n\r]/g,``))},b=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===X.ENTER?(w(),d?.()):e===X.ESC&&u())},E=()=>{w()},[D,O]=BV(t),k=q(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return x.createElement(`div`,{className:k,style:i},x.createElement(ZN,{ref:m,maxLength:o,value:_,onChange:y,onKeyDown:C,onKeyUp:T,onCompositionStart:b,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:xp(p,{className:`${t}-edit-content-confirm`}))},HV=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},UV=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function WV(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await UV(e,n)||HV(e,n))}var GV=({copyConfig:e,children:t})=>{let[n,r]=x.useState(!1),[i,a]=x.useState(!1),o=x.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),x.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:Fn(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await WV((typeof e.text==`function`?await e.text():e.text)||oF(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function KV(e,t){return x.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var qV=e=>{let t=(0,x.useRef)(void 0);return(0,x.useEffect)(()=>{t.current=e}),t.current},JV=(e,t,n)=>(0,x.useMemo)(()=>e===!0?{title:t??n}:(0,x.isValidElement)(e)?{title:e}:pd(e)?{title:t??n,...e}:{title:e},[e,t,n]),YV=x.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=ci(`typography`),m=s??d,h=u(`typography`,n),[g,_]=BV(h),v=q(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),y={...p,...c};return x.createElement(r,{className:v,style:y,ref:t,...l},o)}),XV={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,ZV({},e,{ref:t,icon:XV}))),$V=e=>e===!1?[!1,!1]:oF(e);function eH(e,t,n){return e===!0||e===void 0?t:e||n&&t}function tH(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var nH=e=>[`string`,`number`].includes(typeof e),rH=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=$V(a),d=$V(o),{copied:f,copy:p}=r??{},m=n?f:p,h=eH(u[+!!n],m),g=typeof h==`string`?h:m;return x.createElement(Bw,{title:h},x.createElement(`button`,{type:`button`,className:q(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?eH(d[1],x.createElement(BC,null),!0):eH(d[0],l?x.createElement(um,null):x.createElement(QV,null),!0)))},iH=x.forwardRef(({style:e,children:t},n)=>{let r=x.useRef(null);return x.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),x.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),aH=e=>e.reduce((e,t)=>e+(nH(t)?String(t).length:1),0);function oH(e,t){let n=0,r=[];for(let i=0;it){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var sH=0,cH=1,lH=2,uH=3,dH=4,fH={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function pH(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=x.useMemo(()=>Sr(r),[r]),u=x.useMemo(()=>aH(l),[r]),d=x.useMemo(()=>i(l,!1),[r]),[f,p]=x.useState(null),m=x.useRef(null),h=x.useRef(null),g=x.useRef(null),_=x.useRef(null),v=x.useRef(null),[y,b]=x.useState(!1),[S,C]=x.useState(sH),[w,T]=x.useState(0),[E,D]=x.useState(null);Rn(()=>{C(t&&n&&u?cH:sH)},[n,r,a,t,l]),Rn(()=>{if(S===cH)C(lH),D(h.current&&getComputedStyle(h.current).whiteSpace);else if(S===lH){let e=!!g.current?.isExceed();C(e?uH:dH),p(e?[0,u]:null),b(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=v.current?.getHeight()||0;T(Math.max(t,n+r)+1),c(e)}},[S]);let O=f?Math.ceil((f[0]+f[1])/2):0;Rn(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>w,r=O;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,O]);let k=x.useMemo(()=>{if(!t)return i(l,!1);if(S!==uH||!f||f[0]!==f[1]){let e=i(l,!1);return[dH,sH].includes(S)?e:x.createElement(`span`,{style:{...fH,WebkitLineClamp:a}},e)}return i(o?l:oH(l,f[0]),y)},[o,S,f,l].concat(Xr(s))),A={width:n,margin:0,padding:0,whiteSpace:E===`nowrap`?`normal`:`inherit`};return x.createElement(x.Fragment,null,k,S===lH&&x.createElement(x.Fragment,null,x.createElement(iH,{style:{...A,...fH,WebkitLineClamp:a},ref:g},d),x.createElement(iH,{style:{...A,...fH,WebkitLineClamp:a-1},ref:_},d),x.createElement(iH,{style:{...A,...fH,WebkitLineClamp:1},ref:v},i([],!0))),S===uH&&f&&f[0]!==f[1]&&x.createElement(iH,{style:{...A,top:400},ref:m},i(oH(l,O),!0)),S===cH&&x.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var mH=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return x.createElement(Bw,{open:a,...i},r)};function hH({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=x.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var gH=`...`,_H=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],vH=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=x.useContext(ai),[v]=od(`Text`),y=x.useRef(null),b=x.useRef(null),S=g(`typography`,n),C=xr(h,_H),[w,T]=KV(l),[E,D]=Vn(!1,T.editing),{triggerType:O=[`icon`]}=T,k=e=>{e&&T.onStart?.(),D(e)},A=qV(E);Rn(()=>{!E&&A&&b.current?.focus()},[E]);let j=e=>{e?.preventDefault(),k(!0)},M=e=>{T.onChange?.(e),k(!1)},N=()=>{T.onCancel?.(),k(!1)},[P,F]=KV(u),{copied:I,copyLoading:L,onClick:R}=GV({copyConfig:F,children:s}),[z,B]=x.useState(!1),[V,H]=x.useState(!1),[U,W]=x.useState(!1),[ee,te]=x.useState(!1),[ne,re]=x.useState(!0),[G,ie]=KV(c,{expandable:!1,symbol:e=>e?v?.collapse:v?.expand}),[ae,oe]=Vn(ie.defaultExpanded||!1,ie.expanded),K=G&&(!ae||ie.expandable===`collapsible`),{rows:se=1}=ie,ce=x.useMemo(()=>K&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||w||P),[K,ie,w,P]);Rn(()=>{G&&!ce&&(B(ly(`webkitLineClamp`)),H(ly(`textOverflow`)))},[ce,G]);let[le,ue]=x.useState(K),de=x.useMemo(()=>ce?!1:se===1?V:z,[ce,V,z]);Rn(()=>{ue(de&&K)},[de,K]);let fe=JV(ie.tooltip,T.text,s),pe=le&&!!fe.title,me=K&&(le?pe&&ee:U),he=K&&se===1&&le,ge=K&&se>1&&le,_e=(e,t)=>{oe(t.expanded),ie.onExpand?.(e,t)},[ve,ye]=x.useState(0),[be,xe]=x.useState(!1),[Se,Ce]=x.useState(!1),we=({offsetWidth:e})=>{ye(e)},Te=e=>{W(e),U!==e&&ie.onEllipsis?.(e)};x.useEffect(()=>{let e=y.current;if(G&&pe&&e){let t=tH(e);ee!==t&&te(t)}},[G,pe,s,ge,ne,ve]),x.useEffect(()=>{let e=y.current;if(typeof IntersectionObserver>`u`||!e||!pe||!K)return;let t=new IntersectionObserver(()=>{re(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[pe,K]);let Ee=x.useMemo(()=>{if(!(!G||le))return[T.text,s,f,fe.title].find(nH)},[G,le,f,fe.title,me]);if(E)return x.createElement(VV,{value:T.text??(typeof s==`string`?s:``),onSave:M,onCancel:N,onEnd:T.onEnd,prefixCls:S,className:r,style:i,direction:_,component:d,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});let De=()=>{let{expandable:e,symbol:t}=ie;return e?x.createElement(`button`,{type:`button`,key:`expand`,className:`${S}-${ae?`collapse`:`expand`}`,onClick:e=>_e(e,{expanded:!ae}),"aria-label":ae?v.collapse:v?.expand},typeof t==`function`?t(ae):t):null},Oe=()=>{if(!w)return;let{icon:e,tooltip:t,tabIndex:n}=T,r=Sr(t)[0]||v?.edit,i=typeof r==`string`?r:``;return O.includes(`icon`)?x.createElement(Bw,{key:`edit`,title:t===!1?``:r},x.createElement(`button`,{type:`button`,ref:b,className:`${S}-edit`,onClick:j,"aria-label":i,tabIndex:n},e||x.createElement(kV,{role:`button`}))):null},ke=()=>P?x.createElement(rH,{key:`copy`,...F,prefixCls:S,copied:I,locale:v,onCopy:R,loading:L,iconOnly:!ud(s)}):null,Ae=e=>{let t=e&&De(),n=Oe(),r=ke();return!t&&!n&&!r?null:x.createElement(`span`,{key:`operations`,className:`${S}-actions`,onMouseEnter:()=>xe(!0),onMouseLeave:()=>xe(!1)},t,n,r)},je=e=>[e&&!ae&&x.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},gH),ie.suffix,Ae(e)];return x.createElement(Ur,{onResize:we,disabled:!K},c=>x.createElement(mH,{tooltipProps:fe,enableEllipsis:K,isEllipsis:me,open:Se&&!be},x.createElement(YV,{onMouseEnter:e=>{Ce(!0),p?.(e)},onMouseLeave:e=>{Ce(!1),m?.(e)},className:q({[`${S}-${a}`]:a,[`${S}-disabled`]:o,[`${S}-ellipsis`]:G,[`${S}-ellipsis-single-line`]:he,[`${S}-ellipsis-multiple-line`]:ge,[`${S}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:ge?se:void 0},component:d,ref:Qn(c,y,t),direction:_,onClick:O.includes(`text`)?j:void 0,"aria-label":Ee?.toString(),title:f,...C},x.createElement(pH,{enableMeasure:K&&!le,text:s,rows:se,width:ve,onEllipsis:Te,expanded:ae,miscDeps:[I,ae,L,w,P,v].concat(Xr(_H.map(t=>e[t])))},(t,n)=>hH(e,x.createElement(x.Fragment,null,t.length>0&&n&&!ae&&Ee?x.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,je(n)))))))}),yH=x.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return x.createElement(vH,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),bH=x.forwardRef((e,t)=>{let{children:n,...r}=e;return x.createElement(vH,{ref:t,...r,component:`div`},n)}),xH=x.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=x.useMemo(()=>pd(n)?xr(n,[`expandable`,`rows`]):n,[n]);return x.createElement(vH,{ref:t,...i,ellipsis:a,component:`span`},r)}),SH=[1,2,3,4,5],CH=x.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=SH.includes(n)?`h${n}`:`h1`;return x.createElement(vH,{ref:t,...i,component:a},r)}),Q=YV;Q.Text=xH,Q.Link=yH,Q.Title=CH,Q.Paragraph=bH;var wH=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(yr(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function TH(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function EH(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function DH(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(TH(e,t),EH(t)):e.onSuccess(EH(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var OH=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>wH(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await OH(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=jH(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||DH,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:DH})}reset(){this.setState({uid:jH()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:m,onMouseEnter:h,onMouseLeave:g,hasControlInside:_,...v}=this.props,y=typeof u==`string`?u:u?.format,b=q(t,{[`${t}-disabled`]:i,[n]:n}),S=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},C=i?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:h,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:`0`};return x.createElement(e,MH({},C,{className:b,role:_?void 0:`button`,style:s}),x.createElement(`input`,MH({},zu(v,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:y},S,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function PH(){return PH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=e};render(){return x.createElement(NH,PH({},this.props,{ref:this.saveUploader}))}},LH=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${J(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[` + `]:{...tl(e),marginInlineStart:e.marginXXS},...LB(e),...RB(e),...zB(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),VB=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=x.createElement(MB,null)}=e,m=x.useRef(null),h=x.useRef(!1),g=x.useRef(null),[_,v]=x.useState(c);x.useEffect(()=>{v(c)},[c]),x.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let y=({target:e})=>{v(e.value.replace(/[\n\r]/g,``))},b=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===X.ENTER?(w(),d?.()):e===X.ESC&&u())},E=()=>{w()},[D,O]=BB(t),k=q(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return x.createElement(`div`,{className:k,style:i},x.createElement(ZM,{ref:m,maxLength:o,value:_,onChange:y,onKeyDown:C,onKeyUp:T,onCompositionStart:b,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:xp(p,{className:`${t}-edit-content-confirm`}))},HB=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},UB=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function WB(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await UB(e,n)||HB(e,n))}var GB=({copyConfig:e,children:t})=>{let[n,r]=x.useState(!1),[i,a]=x.useState(!1),o=x.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),x.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:Fn(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await WB((typeof e.text==`function`?await e.text():e.text)||oP(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function KB(e,t){return x.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var qB=e=>{let t=(0,x.useRef)(void 0);return(0,x.useEffect)(()=>{t.current=e}),t.current},JB=(e,t,n)=>(0,x.useMemo)(()=>e===!0?{title:t??n}:(0,x.isValidElement)(e)?{title:e}:pd(e)?{title:t??n,...e}:{title:e},[e,t,n]),YB=x.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=ci(`typography`),m=s??d,h=u(`typography`,n),[g,_]=BB(h),v=q(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),y={...p,...c};return x.createElement(r,{className:v,style:y,ref:t,...l},o)}),XB={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function ZB(){return ZB=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,ZB({},e,{ref:t,icon:XB}))),$B=e=>e===!1?[!1,!1]:oP(e);function eV(e,t,n){return e===!0||e===void 0?t:e||n&&t}function tV(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var nV=e=>[`string`,`number`].includes(typeof e),rV=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=$B(a),d=$B(o),{copied:f,copy:p}=r??{},m=n?f:p,h=eV(u[+!!n],m),g=typeof h==`string`?h:m;return x.createElement(Bw,{title:h},x.createElement(`button`,{type:`button`,className:q(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?eV(d[1],x.createElement(BC,null),!0):eV(d[0],l?x.createElement(um,null):x.createElement(QB,null),!0)))},iV=x.forwardRef(({style:e,children:t},n)=>{let r=x.useRef(null);return x.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),x.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),aV=e=>e.reduce((e,t)=>e+(nV(t)?String(t).length:1),0);function oV(e,t){let n=0,r=[];for(let i=0;it){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var sV=0,cV=1,lV=2,uV=3,dV=4,fV={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function pV(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=x.useMemo(()=>Sr(r),[r]),u=x.useMemo(()=>aV(l),[r]),d=x.useMemo(()=>i(l,!1),[r]),[f,p]=x.useState(null),m=x.useRef(null),h=x.useRef(null),g=x.useRef(null),_=x.useRef(null),v=x.useRef(null),[y,b]=x.useState(!1),[S,C]=x.useState(sV),[w,T]=x.useState(0),[E,D]=x.useState(null);Rn(()=>{C(t&&n&&u?cV:sV)},[n,r,a,t,l]),Rn(()=>{if(S===cV)C(lV),D(h.current&&getComputedStyle(h.current).whiteSpace);else if(S===lV){let e=!!g.current?.isExceed();C(e?uV:dV),p(e?[0,u]:null),b(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=v.current?.getHeight()||0;T(Math.max(t,n+r)+1),c(e)}},[S]);let O=f?Math.ceil((f[0]+f[1])/2):0;Rn(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>w,r=O;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,O]);let k=x.useMemo(()=>{if(!t)return i(l,!1);if(S!==uV||!f||f[0]!==f[1]){let e=i(l,!1);return[dV,sV].includes(S)?e:x.createElement(`span`,{style:{...fV,WebkitLineClamp:a}},e)}return i(o?l:oV(l,f[0]),y)},[o,S,f,l].concat(Xr(s))),A={width:n,margin:0,padding:0,whiteSpace:E===`nowrap`?`normal`:`inherit`};return x.createElement(x.Fragment,null,k,S===lV&&x.createElement(x.Fragment,null,x.createElement(iV,{style:{...A,...fV,WebkitLineClamp:a},ref:g},d),x.createElement(iV,{style:{...A,...fV,WebkitLineClamp:a-1},ref:_},d),x.createElement(iV,{style:{...A,...fV,WebkitLineClamp:1},ref:v},i([],!0))),S===uV&&f&&f[0]!==f[1]&&x.createElement(iV,{style:{...A,top:400},ref:m},i(oV(l,O),!0)),S===cV&&x.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var mV=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return x.createElement(Bw,{open:a,...i},r)};function hV({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=x.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var gV=`...`,_V=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],vV=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=x.useContext(ai),[v]=od(`Text`),y=x.useRef(null),b=x.useRef(null),S=g(`typography`,n),C=xr(h,_V),[w,T]=KB(l),[E,D]=Vn(!1,T.editing),{triggerType:O=[`icon`]}=T,k=e=>{e&&T.onStart?.(),D(e)},A=qB(E);Rn(()=>{!E&&A&&b.current?.focus()},[E]);let j=e=>{e?.preventDefault(),k(!0)},M=e=>{T.onChange?.(e),k(!1)},N=()=>{T.onCancel?.(),k(!1)},[P,F]=KB(u),{copied:I,copyLoading:L,onClick:R}=GB({copyConfig:F,children:s}),[z,B]=x.useState(!1),[V,H]=x.useState(!1),[U,W]=x.useState(!1),[ee,te]=x.useState(!1),[ne,re]=x.useState(!0),[G,ie]=KB(c,{expandable:!1,symbol:e=>e?v?.collapse:v?.expand}),[ae,oe]=Vn(ie.defaultExpanded||!1,ie.expanded),K=G&&(!ae||ie.expandable===`collapsible`),{rows:se=1}=ie,ce=x.useMemo(()=>K&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||w||P),[K,ie,w,P]);Rn(()=>{G&&!ce&&(B(ly(`webkitLineClamp`)),H(ly(`textOverflow`)))},[ce,G]);let[le,ue]=x.useState(K),de=x.useMemo(()=>ce?!1:se===1?V:z,[ce,V,z]);Rn(()=>{ue(de&&K)},[de,K]);let fe=JB(ie.tooltip,T.text,s),pe=le&&!!fe.title,me=K&&(le?pe&&ee:U),he=K&&se===1&&le,ge=K&&se>1&&le,_e=(e,t)=>{oe(t.expanded),ie.onExpand?.(e,t)},[ve,ye]=x.useState(0),[be,xe]=x.useState(!1),[Se,Ce]=x.useState(!1),we=({offsetWidth:e})=>{ye(e)},Te=e=>{W(e),U!==e&&ie.onEllipsis?.(e)};x.useEffect(()=>{let e=y.current;if(G&&pe&&e){let t=tV(e);ee!==t&&te(t)}},[G,pe,s,ge,ne,ve]),x.useEffect(()=>{let e=y.current;if(typeof IntersectionObserver>`u`||!e||!pe||!K)return;let t=new IntersectionObserver(()=>{re(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[pe,K]);let Ee=x.useMemo(()=>{if(!(!G||le))return[T.text,s,f,fe.title].find(nV)},[G,le,f,fe.title,me]);if(E)return x.createElement(VB,{value:T.text??(typeof s==`string`?s:``),onSave:M,onCancel:N,onEnd:T.onEnd,prefixCls:S,className:r,style:i,direction:_,component:d,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});let De=()=>{let{expandable:e,symbol:t}=ie;return e?x.createElement(`button`,{type:`button`,key:`expand`,className:`${S}-${ae?`collapse`:`expand`}`,onClick:e=>_e(e,{expanded:!ae}),"aria-label":ae?v.collapse:v?.expand},typeof t==`function`?t(ae):t):null},Oe=()=>{if(!w)return;let{icon:e,tooltip:t,tabIndex:n}=T,r=Sr(t)[0]||v?.edit,i=typeof r==`string`?r:``;return O.includes(`icon`)?x.createElement(Bw,{key:`edit`,title:t===!1?``:r},x.createElement(`button`,{type:`button`,ref:b,className:`${S}-edit`,onClick:j,"aria-label":i,tabIndex:n},e||x.createElement(kB,{role:`button`}))):null},ke=()=>P?x.createElement(rV,{key:`copy`,...F,prefixCls:S,copied:I,locale:v,onCopy:R,loading:L,iconOnly:!ud(s)}):null,Ae=e=>{let t=e&&De(),n=Oe(),r=ke();return!t&&!n&&!r?null:x.createElement(`span`,{key:`operations`,className:`${S}-actions`,onMouseEnter:()=>xe(!0),onMouseLeave:()=>xe(!1)},t,n,r)},je=e=>[e&&!ae&&x.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},gV),ie.suffix,Ae(e)];return x.createElement(Ur,{onResize:we,disabled:!K},c=>x.createElement(mV,{tooltipProps:fe,enableEllipsis:K,isEllipsis:me,open:Se&&!be},x.createElement(YB,{onMouseEnter:e=>{Ce(!0),p?.(e)},onMouseLeave:e=>{Ce(!1),m?.(e)},className:q({[`${S}-${a}`]:a,[`${S}-disabled`]:o,[`${S}-ellipsis`]:G,[`${S}-ellipsis-single-line`]:he,[`${S}-ellipsis-multiple-line`]:ge,[`${S}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:ge?se:void 0},component:d,ref:Qn(c,y,t),direction:_,onClick:O.includes(`text`)?j:void 0,"aria-label":Ee?.toString(),title:f,...C},x.createElement(pV,{enableMeasure:K&&!le,text:s,rows:se,width:ve,onEllipsis:Te,expanded:ae,miscDeps:[I,ae,L,w,P,v].concat(Xr(_V.map(t=>e[t])))},(t,n)=>hV(e,x.createElement(x.Fragment,null,t.length>0&&n&&!ae&&Ee?x.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,je(n)))))))}),yV=x.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return x.createElement(vV,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),bV=x.forwardRef((e,t)=>{let{children:n,...r}=e;return x.createElement(vV,{ref:t,...r,component:`div`},n)}),xV=x.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=x.useMemo(()=>pd(n)?xr(n,[`expandable`,`rows`]):n,[n]);return x.createElement(vV,{ref:t,...i,ellipsis:a,component:`span`},r)}),SV=[1,2,3,4,5],CV=x.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=SV.includes(n)?`h${n}`:`h1`;return x.createElement(vV,{ref:t,...i,component:a},r)}),Q=YB;Q.Text=xV,Q.Link=yV,Q.Title=CV,Q.Paragraph=bV;var wV=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(yr(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function TV(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function EV(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function DV(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(TV(e,t),EV(t)):e.onSuccess(EV(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var OV=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>wV(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await OV(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=jV(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||DV,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:DV})}reset(){this.setState({uid:jV()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:m,onMouseEnter:h,onMouseLeave:g,hasControlInside:_,...v}=this.props,y=typeof u==`string`?u:u?.format,b=q(t,{[`${t}-disabled`]:i,[n]:n}),S=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},C=i?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:h,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:`0`};return x.createElement(e,MV({},C,{className:b,role:_?void 0:`button`,style:s}),x.createElement(`input`,MV({},zu(v,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:y},S,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function PV(){return PV=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=e};render(){return x.createElement(NV,PV({},this.props,{ref:this.saveUploader}))}},LV=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${J(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${J(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},RH=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...Yc(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...Kc,padding:`0 ${J(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[` + `]:{color:e.colorTextDisabled}}}}}},RV=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...Yc(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...Kc,padding:`0 ${J(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},zH=e=>{let{componentCls:t}=e,n=new Io(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Io(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:_h(e)},n,r]},BH=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},zV=e=>{let{componentCls:t}=e,n=new Io(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Io(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:_h(e)},n,r]},BV=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` ${o}${o}-picture, ${o}${o}-picture-card, ${o}${o}-picture-circle - `]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...Kc,width:r,height:r,lineHeight:J(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${J(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${ac[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ac.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},VH=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[` + `]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...Kc,width:r,height:r,lineHeight:J(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${J(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${ac[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ac.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},VV=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:{...Yc(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${J(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${J(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},HH=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},UH=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...qc(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},WH=nl(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=hs(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[UH(o),LH(o),BH(o),VH(o),RH(o),zH(o),HH(o),fh(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),GH={icon:function(e,t){return{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M534 352V136H232v752h560V394H576a42 42 0 01-42-42z`,fill:t}},{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z`,fill:e}}]}},name:`file`,theme:`twotone`};function KH(){return KH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KH({},e,{ref:t,icon:GH}))),JH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`};function YH(){return YH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YH({},e,{ref:t,icon:JH}))),ZH={icon:function(e,t){return{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z`,fill:e}},{tag:`path`,attrs:{d:`M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z`,fill:t}},{tag:`path`,attrs:{d:`M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z`,fill:t}},{tag:`path`,attrs:{d:`M276 368a28 28 0 1056 0 28 28 0 10-56 0z`,fill:t}},{tag:`path`,attrs:{d:`M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`,fill:e}}]}},name:`picture`,theme:`twotone`};function QH(){return QH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QH({},e,{ref:t,icon:ZH})));function eU(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function tU(e,t){let n=Xr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function nU(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function rU(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var iU=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},aU=e=>e.indexOf(`image/`)===0,oU=e=>{if(e.type&&!e.thumbUrl)return aU(e.type);let t=e.thumbUrl||e.url||``,n=iU(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},sU=200;function cU(e){return new Promise(t=>{if(!e.type||!aU(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=sU,n.height=sU,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${sU}px; height: ${sU}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=sU,s=sU,c=0,l=0;e>a?(s=sU/e*a,l=-(s-o)/2):(o=sU/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var lU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`};function uU(){return uU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uU({},e,{ref:t,icon:lU}))),fU=x.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:_,removeIcon:v,downloadIcon:y,extra:b,onPreview:S,onDownload:C,onClose:w},T)=>{let{status:E}=s,[D,O]=x.useState(E);x.useEffect(()=>{E!==`removed`&&O(E)},[E]);let[k,A]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(e)}},[]);let j=u(s),M=x.createElement(`div`,{className:`${e}-icon`},j);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(D===`uploading`||!s.thumbUrl&&!s.url){let t=q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:D!==`uploading`});M=x.createElement(`div`,{className:t},j)}else{let t=p?.(s)?x.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):j,n=q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});M=x.createElement(`a`,{className:n,onClick:e=>S(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let N=q(`${e}-list-item`,`${e}-list-item-${D}`,r?.item),P=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,F=(typeof h==`function`?h(s):h)?d((typeof v==`function`?v(s):v)||x.createElement(EV,null),()=>w(s),e,a.removeFile,!0):null,I=(typeof g==`function`?g(s):g)&&D===`done`?d((typeof y==`function`?y(s):y)||x.createElement(dU,null),()=>C(s),e,a.downloadFile):null,L=o!==`picture-card`&&o!==`picture-circle`&&x.createElement(`span`,{key:`download-delete`,className:q(`${e}-list-item-actions`,{picture:o===`picture`})},I,F),R=typeof b==`function`?b(s):b,z=R&&x.createElement(`span`,{className:`${e}-list-item-extra`},R),B=q(`${e}-list-item-name`),V=s.url?x.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:B,title:s.name,...P,href:s.url,onClick:e=>S(s,e)},s.name,z):x.createElement(`span`,{key:`view`,className:B,onClick:e=>S(s,e),title:s.name},s.name,z),H=(typeof m==`function`?m(s):m)&&(s.url||s.thumbUrl)?x.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>S(s,e),title:a.previewFile},typeof _==`function`?_(s):_||x.createElement(AN,null)):null,U=(o===`picture-card`||o===`picture-circle`)&&D!==`uploading`&&x.createElement(`span`,{className:`${e}-list-item-actions`},H,D===`done`&&I,F),{getPrefixCls:W}=x.useContext(ai),ee=W(),te=x.createElement(`div`,{className:N,style:i?.item},M,V,L,U,k&&x.createElement(Pu,{motionName:`${ee}-fade`,visible:D===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?x.createElement(oI,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return x.createElement(`div`,{className:q(`${e}-list-item-progress`,t)},n)})),ne=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,re=D===`error`?x.createElement(Bw,{title:ne,getPopupContainer:e=>e.parentNode},te):te;return x.createElement(`div`,{className:q(`${e}-list-item-container`,t),style:n,ref:T},f?f(re,s,c,{download:C.bind(null,s),preview:S.bind(null,s),remove:w.bind(null,s)}):re)}),pU=x.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=cU,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=oU,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:C,disabled:w,classNames:T,styles:E}=e,[,D]=wd(),[O,k]=x.useState(!1),A=[`picture-card`,`picture-circle`].includes(n);x.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,D()}))})},[n,d,r]),x.useEffect(()=>{k(!0)},[]);let j=(e,t)=>{if(i)return t?.preventDefault(),i(e)},M=e=>{typeof a==`function`?a(e):e.url&&window.open(e.url)},N=e=>{o?.(e)},P=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?x.createElement(um,null):s.uploading,i=l?.(e)?x.createElement($H,null):x.createElement(qH,null);return t?r:i}return t?x.createElement(um,null):x.createElement(XH,null)},F=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),x.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?w:!1};return x.isValidElement(e)?x.createElement(Mg,{...a,icon:xp(e,{...e.props,onClick:()=>{}})}):x.createElement(Mg,{...a},x.createElement(`span`,null,e))};x.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:M}));let{getPrefixCls:I}=x.useContext(ai),L=I(`upload`,u),R=I(),z=q(`${L}-list`,`${L}-list-${n}`,T?.list),B=x.useMemo(()=>xr(Fm(R),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[R]),V={...A?{}:B,motionDeadline:2e3,motionName:`${L}-${A?`animate-inline`:`animate`}`,keys:Xr(d.map(e=>({key:e.uid,file:e}))),motionAppear:O};return x.createElement(`div`,{className:z,style:E?.list},x.createElement(Nu,{...V,component:!1},({key:e,file:t,className:r,style:i})=>x.createElement(fU,{key:e,locale:s,prefixCls:L,className:r,style:i,classNames:T,styles:E,file:t,items:d,progress:y,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,iconRender:P,actionIconRender:F,itemRender:C,onPreview:j,onDownload:M,onClose:N})),b&&x.createElement(Pu,{...V,visible:S,forceRender:!0},({className:e,style:t})=>xp(b,n=>({className:q(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),mU=`__LIST_IGNORE_${Date.now()}__`,hU=x.forwardRef((e,t)=>{let n=ci(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:_,prefixCls:v,className:y,type:b=`select`,children:S,style:C,itemRender:w,maxCount:T,data:E={},multiple:D=!1,hasControlInside:O=!0,action:k=``,accept:A=``,supportServerRender:j=!0,rootClassName:M,styles:N,classNames:P}=e,F=x.useContext(Ep),I=p??F,L=e.customRequest||n.customRequest,[R,z]=Vn(i,r),B=R||[],[V,H]=x.useState(`drop`),U=x.useRef(null),W=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let ee=(e,t,n)=>{let r=Xr(t),i=!1;T===1?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,Ff.flushSync)(()=>{z(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Ff.flushSync)(()=>{u?.(a)})},te=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[mU],e===mU)return Object.defineProperty(t,mU,{value:!0,configurable:!0}),!1;pd(e)&&(i=e)}return i},ne=e=>{let t=e.filter(e=>!e.file[mU]);if(!t.length)return;let n=t.map(e=>eU(e.file)),r=Xr(B);n.forEach(e=>{r=tU(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}ee(i,r)})},re=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!nU(t,B))return;let r=eU(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,ee(r,tU(r,B))},G=(e,t)=>{if(!nU(t,B))return;let n=eU(t);n.status=`uploading`,n.percent=e.percent,ee(n,tU(n,B),e)},ie=(e,t,n)=>{if(!nU(n,B))return;let r=eU(n);r.error=e,r.response=t,r.status=`error`,ee(r,tU(r,B))},ae=e=>{let t;Promise.resolve(typeof a==`function`?a(e):a).then(n=>{if(n===!1)return;let r=rU(e,B);r&&(t={...e,status:`removed`},B?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),U.current?.abort(t),ee(t,r))})},oe=e=>{H(e.type),e.type===`drop`&&d?.(e)};x.useImperativeHandle(t,()=>({onBatchStart:ne,onSuccess:re,onProgress:G,onError:ie,fileList:B,upload:U.current,nativeElement:W.current}));let{getPrefixCls:K,direction:se,className:ce,style:le,classNames:ue,styles:de}=ci(`upload`),fe=K(`upload`,v),pe={...e,listType:s,showUploadList:o,type:b,multiple:D,hasControlInside:O,supportServerRender:j,disabled:I},[me,he]=Nd([ue,P],[de,N],{props:pe}),ge={onBatchStart:ne,onError:ie,onProgress:G,onSuccess:re,...e,customRequest:L,data:E,multiple:D,action:k,accept:A,supportServerRender:j,prefixCls:fe,disabled:I,beforeUpload:te,onChange:void 0,hasControlInside:O};delete ge.className,delete ge.style,(!S||I)&&delete ge.id;let _e=`${fe}-wrapper`,[ve,ye]=WH(fe,_e),[be]=od(`Upload`,$u.Upload),{showRemoveIcon:xe,showPreviewIcon:Se,showDownloadIcon:Ce,removeIcon:we,previewIcon:Te,downloadIcon:Ee,extra:De}=typeof o==`boolean`?{}:o,Oe=xe===void 0?!I:xe,ke=(e,t)=>o?x.createElement(pU,{classNames:me,styles:he,prefixCls:fe,listType:s,items:B,previewFile:f,onPreview:c,onDownload:l,onRemove:ae,showRemoveIcon:Oe,showPreviewIcon:Se,showDownloadIcon:Ce,removeIcon:we,previewIcon:Te,downloadIcon:Ee,iconRender:h,extra:De,locale:{...be,...m},isImageUrl:g,progress:_,appendAction:e,appendActionVisible:t,itemRender:w,disabled:I}):e,Ae=q(_e,y,M,ve,ye,ce,me.root,{[`${fe}-rtl`]:se===`rtl`,[`${fe}-picture-card-wrapper`]:s===`picture-card`,[`${fe}-picture-circle-wrapper`]:s===`picture-circle`}),je={...he.root},Me={...le,...C};if(b===`drag`){let e=q(ve,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:B.some(e=>e.status===`uploading`),[`${fe}-drag-hover`]:V===`dragover`,[`${fe}-disabled`]:I,[`${fe}-rtl`]:se===`rtl`},me.trigger);return x.createElement(`span`,{className:Ae,ref:W,style:je},x.createElement(`div`,{className:e,style:{...Me,...he.trigger},onDrop:oe,onDragOver:oe,onDragLeave:oe},x.createElement(IH,{...ge,ref:U,className:`${fe}-btn`},x.createElement(`div`,{className:`${fe}-drag-container`},S))),ke())}let Ne=q(fe,`${fe}-select`,{[`${fe}-disabled`]:I,[`${fe}-hidden`]:!S},me.trigger),Pe=x.createElement(`div`,{className:Ne,style:{...Me,...he.trigger}},x.createElement(IH,{...ge,ref:U}));return s===`picture-card`||s===`picture-circle`?x.createElement(`span`,{className:Ae,ref:W,style:je},ke(Pe,!!S)):x.createElement(`span`,{className:Ae,ref:W,style:je},Pe,ke())}),gU=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return x.createElement(hU,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),_U=hU;_U.Dragger=gU,_U.LIST_IGNORE=mU;var vU=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),yU=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`}})),bU=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),xU=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=bU();function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),CU=o((e=>{var t=vU().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(xU()),r=t(SU()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),wU=o((e=>{var t=vU().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default=t(CU()).default})),TU=o((e=>{var t=vU().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(yU()),r=t(wU()),i=t(CU()),a=t(SU()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),EU=o(((e,t)=>{t.exports=TU()})),DU={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9`}}]},name:`alipay-circle`,theme:`outlined`};function OU(){return OU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OU({},e,{ref:t,icon:DU}))),AU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z`}}]},name:`api`,theme:`outlined`};function jU(){return jU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jU({},e,{ref:t,icon:AU}))),NU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z`}}]},name:`appstore`,theme:`outlined`};function PU(){return PU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PU({},e,{ref:t,icon:NU}))),IU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z`}}]},name:`arrow-down`,theme:`outlined`};function LU(){return LU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LU({},e,{ref:t,icon:IU}))),zU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z`}}]},name:`arrow-up`,theme:`outlined`};function BU(){return BU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BU({},e,{ref:t,icon:zU}))),HU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z`}}]},name:`audio`,theme:`outlined`};function UU(){return UU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UU({},e,{ref:t,icon:HU}))),GU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z`}}]},name:`bank`,theme:`outlined`};function KU(){return KU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KU({},e,{ref:t,icon:GU}))),JU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z`}}]},name:`bar-chart`,theme:`outlined`};function YU(){return YU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YU({},e,{ref:t,icon:JU}))),ZU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z`}}]},name:`bell`,theme:`outlined`};function QU(){return QU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QU({},e,{ref:t,icon:ZU}))),eW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z`}}]},name:`book`,theme:`outlined`};function tW(){return tW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tW({},e,{ref:t,icon:eW}))),rW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z`}}]},name:`build`,theme:`outlined`};function iW(){return iW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iW({},e,{ref:t,icon:rW}))),oW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z`}}]},name:`bulb`,theme:`outlined`};function sW(){return sW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sW({},e,{ref:t,icon:oW}))),lW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 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-36 732H180V180h664v664z`}}]},name:`calculator`,theme:`outlined`};function uW(){return uW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uW({},e,{ref:t,icon:lW}))),fW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z`}}]},name:`camera`,theme:`outlined`};function pW(){return pW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pW({},e,{ref:t,icon:fW}))),hW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`car`,theme:`outlined`};function gW(){return gW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gW({},e,{ref:t,icon:hW}))),vW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`};function yW(){return yW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yW({},e,{ref:t,icon:vW}))),xW={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z`}}]},name:`close-circle`,theme:`outlined`};function SW(){return SW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SW({},e,{ref:t,icon:xW}))),wW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 01-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 01140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0166.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z`}}]},name:`cloud`,theme:`outlined`};function TW(){return TW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TW({},e,{ref:t,icon:wW}))),DW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z`}},{tag:`path`,attrs:{d:`M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z`}},{tag:`path`,attrs:{d:`M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z`}}]},name:`cloud-server`,theme:`outlined`};function OW(){return OW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OW({},e,{ref:t,icon:DW}))),AW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:`code`,theme:`outlined`};function jW(){return jW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jW({},e,{ref:t,icon:AW}))),NW={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z`}}]},name:`coffee`,theme:`outlined`};function PW(){return PW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PW({},e,{ref:t,icon:NW}))),IW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z`}}]},name:`compass`,theme:`outlined`};function LW(){return LW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LW({},e,{ref:t,icon:IW}))),zW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z`}}]},name:`crown`,theme:`outlined`};function BW(){return BW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BW({},e,{ref:t,icon:zW}))),HW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z`}}]},name:`dashboard`,theme:`outlined`};function UW(){return UW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UW({},e,{ref:t,icon:HW}))),GW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`database`,theme:`outlined`};function KW(){return KW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KW({},e,{ref:t,icon:GW}))),JW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z`}}]},name:`dollar`,theme:`outlined`};function YW(){return YW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YW({},e,{ref:t,icon:JW}))),ZW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z`}}]},name:`exclamation-circle`,theme:`outlined`};function QW(){return QW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QW({},e,{ref:t,icon:ZW}))),eG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z`}}]},name:`experiment`,theme:`outlined`};function tG(){return tG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tG({},e,{ref:t,icon:eG}))),rG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.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-image`,theme:`outlined`};function iG(){return iG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iG({},e,{ref:t,icon:rG}))),oG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.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-pdf`,theme:`outlined`};function sG(){return sG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sG({},e,{ref:t,icon:oG}))),lG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z`}}]},name:`fire`,theme:`outlined`};function uG(){return uG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uG({},e,{ref:t,icon:lG}))),fG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z`}}]},name:`flag`,theme:`outlined`};function pG(){return pG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pG({},e,{ref:t,icon:fG}))),hG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z`}}]},name:`font-size`,theme:`outlined`};function gG(){return gG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gG({},e,{ref:t,icon:hG}))),vG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z`}}]},name:`gift`,theme:`outlined`};function yG(){return yG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yG({},e,{ref:t,icon:vG}))),xG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z`}}]},name:`global`,theme:`outlined`};function SG(){return SG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SG({},e,{ref:t,icon:xG}))),wG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z`}}]},name:`heart`,theme:`outlined`};function TG(){return TG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TG({},e,{ref:t,icon:wG}))),DG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z`}}]},name:`highlight`,theme:`outlined`};function OG(){return OG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OG({},e,{ref:t,icon:DG}))),AG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z`}}]},name:`history`,theme:`outlined`};function jG(){return jG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jG({},e,{ref:t,icon:AG}))),NG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z`}}]},name:`home`,theme:`outlined`};function PG(){return PG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PG({},e,{ref:t,icon:NG}))),IG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z`}}]},name:`idcard`,theme:`outlined`};function LG(){return LG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LG({},e,{ref:t,icon:IG}))),zG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z`}}]},name:`laptop`,theme:`outlined`};function BG(){return BG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BG({},e,{ref:t,icon:zG}))),HG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z`}}]},name:`line-chart`,theme:`outlined`};function UG(){return UG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UG({},e,{ref:t,icon:HG}))),GG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`};function KG(){return KG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KG({},e,{ref:t,icon:GG}))),JG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z`}}]},name:`logout`,theme:`outlined`};function YG(){return YG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YG({},e,{ref:t,icon:JG}))),ZG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z`}}]},name:`mail`,theme:`outlined`};function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QG({},e,{ref:t,icon:ZG}))),eK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M839.2 278.1a32 32 0 00-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 00-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}}]},name:`medicine-box`,theme:`outlined`};function tK(){return tK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tK({},e,{ref:t,icon:eK}))),rK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z`}}]},name:`menu`,theme:`outlined`};function iK(){return iK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iK({},e,{ref:t,icon:rK}))),oK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`minus-circle`,theme:`outlined`};function sK(){return sK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sK({},e,{ref:t,icon:oK}))),lK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`mobile`,theme:`outlined`};function uK(){return uK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uK({},e,{ref:t,icon:lK}))),fK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 00-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 00-11.2-1.4l-37.9 29.7a7.97 7.97 0 00-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z`}}]},name:`monitor`,theme:`outlined`};function pK(){return pK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pK({},e,{ref:t,icon:fK}))),hK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 00-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z`}}]},name:`pay-circle`,theme:`outlined`};function gK(){return gK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gK({},e,{ref:t,icon:hK}))),vK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z`}}]},name:`phone`,theme:`outlined`};function yK(){return yK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yK({},e,{ref:t,icon:vK}))),xK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`};function SK(){return SK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SK({},e,{ref:t,icon:xK}))),wK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z`}}]},name:`pie-chart`,theme:`outlined`};function TK(){return TK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TK({},e,{ref:t,icon:wK}))),DK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z`}}]},name:`play-circle`,theme:`outlined`};function OK(){return OK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OK({},e,{ref:t,icon:DK}))),AK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-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:`project`,theme:`outlined`};function jK(){return jK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jK({},e,{ref:t,icon:AK}))),NK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z`}}]},name:`read`,theme:`outlined`};function PK(){return PK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PK({},e,{ref:t,icon:NK}))),IK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z`}},{tag:`path`,attrs:{d:`M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0031.9 29.3h429.2a32 32 0 0031.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z`}}]},name:`rest`,theme:`outlined`};function LK(){return LK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LK({},e,{ref:t,icon:IK}))),zK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`robot`,theme:`outlined`};function BK(){return BK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BK({},e,{ref:t,icon:zK}))),HK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z`}}]},name:`rocket`,theme:`outlined`};function UK(){return UK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UK({},e,{ref:t,icon:HK}))),GK={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z`}},{tag:`path`,attrs:{d:`M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z`}}]},name:`safety`,theme:`outlined`};function KK(){return KK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KK({},e,{ref:t,icon:GK}))),JK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z`}}]},name:`save`,theme:`outlined`};function YK(){return YK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YK({},e,{ref:t,icon:JK}))),ZK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 000 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z`}}]},name:`security-scan`,theme:`outlined`};function QK(){return QK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QK({},e,{ref:t,icon:ZK}))),eq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z`}}]},name:`send`,theme:`outlined`};function tq(){return tq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tq({},e,{ref:t,icon:eq}))),rq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z`}}]},name:`setting`,theme:`outlined`};function iq(){return iq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iq({},e,{ref:t,icon:rq}))),oq={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z`}}]},name:`shopping-cart`,theme:`outlined`};function sq(){return sq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sq({},e,{ref:t,icon:oq}))),lq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z`}}]},name:`shopping`,theme:`outlined`};function uq(){return uq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uq({},e,{ref:t,icon:lq}))),fq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M925.6 405.1l-203-253.7a6.5 6.5 0 00-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 00.2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 00.2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z`}}]},name:`sketch`,theme:`outlined`};function pq(){return pq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pq({},e,{ref:t,icon:fq}))),hq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z`}}]},name:`skin`,theme:`outlined`};function gq(){return gq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gq({},e,{ref:t,icon:hq}))),vq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z`}}]},name:`smile`,theme:`outlined`};function yq(){return yq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yq({},e,{ref:t,icon:vq}))),xq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z`}}]},name:`solution`,theme:`outlined`};function Sq(){return Sq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Sq({},e,{ref:t,icon:xq}))),wq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z`}}]},name:`sound`,theme:`outlined`};function Tq(){return Tq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Tq({},e,{ref:t,icon:wq}))),Dq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z`}}]},name:`star`,theme:`outlined`};function Oq(){return Oq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Oq({},e,{ref:t,icon:Dq}))),Aq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z`}}]},name:`stop`,theme:`outlined`};function jq(){return jq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jq({},e,{ref:t,icon:Aq}))),Nq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z`}}]},name:`tag`,theme:`outlined`};function Pq(){return Pq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Pq({},e,{ref:t,icon:Nq}))),Iq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z`}}]},name:`team`,theme:`outlined`};function Lq(){return Lq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Lq({},e,{ref:t,icon:Iq}))),zq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z`}}]},name:`thunderbolt`,theme:`outlined`};function Bq(){return Bq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Bq({},e,{ref:t,icon:zq}))),Hq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z`}}]},name:`tool`,theme:`outlined`};function Uq(){return Uq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Uq({},e,{ref:t,icon:Hq}))),Gq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z`}}]},name:`trophy`,theme:`outlined`};function Kq(){return Kq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Kq({},e,{ref:t,icon:Gq}))),Jq={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z`}}]},name:`truck`,theme:`outlined`};function Yq(){return Yq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Yq({},e,{ref:t,icon:Jq}))),Zq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`upload`,theme:`outlined`};function Qq(){return Qq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,Qq({},e,{ref:t,icon:Zq}))),eJ={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z`}}]},name:`user`,theme:`outlined`};function tJ(){return tJ=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tJ({},e,{ref:t,icon:eJ}))),rJ={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}}]},name:`video-camera`,theme:`outlined`};function iJ(){return iJ=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iJ({},e,{ref:t,icon:rJ}))),oJ={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{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 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`wallet`,theme:`outlined`};function sJ(){return sJ=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sJ({},e,{ref:t,icon:oJ}))),lJ={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z`}}]},name:`wechat`,theme:`outlined`};function uJ(){return uJ=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uJ({},e,{ref:t,icon:lJ}))),fJ=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},pJ=(e=>e?fJ(e):fJ),mJ=e=>e;function hJ(e,t=mJ){let n=x.useSyncExternalStore(e.subscribe,x.useCallback(()=>t(e.getState()),[e,t]),x.useCallback(()=>t(e.getInitialState()),[e,t]));return x.useDebugValue(n),n}var gJ=e=>{let t=pJ(e),n=e=>hJ(t,e);return Object.assign(n,t),n},_J=(e=>e?gJ(e):gJ),vJ=c(EU(),1),yJ=`AES-GCM`,bJ=12,xJ=128;async function SJ(){throw Error(`VITE_ENCRYPTION_KEY not configured`)}async function CJ(e){let t=await SJ(),n=crypto.getRandomValues(new Uint8Array(bJ)),r=new TextEncoder().encode(e),i=await crypto.subtle.encrypt({name:yJ,iv:n,tagLength:xJ},t,r),a=new Uint8Array(i),o=new Uint8Array(n.length+a.length);return o.set(n),o.set(a,n.length),btoa(String.fromCharCode(...o))}async function wJ(e){let t=await SJ(),n=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),r=n.slice(0,bJ),i=n.slice(bJ),a=await crypto.subtle.decrypt({name:yJ,iv:r,tagLength:xJ},t,i);return new TextDecoder().decode(a)}var TJ=`http://ceshi.apiforeign.minzhong.cn`,EJ=!1;function DJ(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function OJ(e){return Array.isArray(e)?e.map(OJ):typeof e==`object`&&e?Object.fromEntries(Object.entries(e).map(([e,t])=>[DJ(e),OJ(t)])):e}function kJ(){return localStorage.getItem(`auth_token`)}function AJ(e){localStorage.setItem(`auth_token`,e)}function jJ(){localStorage.removeItem(`auth_token`)}async function MJ(e){try{return await wJ(e)}catch{return null}}async function NJ(e,t={}){let{method:n=`GET`,body:r,auth:i=!0,encryptBody:a=EJ}=t,o={"Content-Type":`application/json`};if(i){let e=kJ();e&&(o.Authorization=`Bearer ${e}`)}let s;if(r!==void 0){let e=JSON.stringify(r);a?(o[`X-Encrypted`]=`true`,s=JSON.stringify({data:await CJ(e)})):s=e}let c=await fetch(`${TJ}/api${e}`,{method:n,headers:o,body:s});if(c.status===204)return;let l=await c.text();if(!l)return;let u;try{u=JSON.parse(l)}catch{throw Error(`响应解析失败 (${c.status})`)}if(u&&typeof u.data==`string`&&a){let e=await MJ(u.data);e!==null&&(u=JSON.parse(e))}if(!c.ok){let e=u?.detail||`请求失败 (${c.status})`;throw c.status===401&&(jJ(),window.location.href=`/login`),Error(e)}return OJ(u)}var PJ={get:(e,t=!0)=>NJ(e,{auth:t}),post:(e,t,n=!0)=>NJ(e,{method:`POST`,body:t,auth:n}),put:(e,t,n=!0)=>NJ(e,{method:`PUT`,body:t,auth:n}),delete:(e,t=!0)=>NJ(e,{method:`DELETE`,auth:t})};async function FJ(e,t,n,r){let i=await PJ.post(`/auth/admin-login`,{username:e,password:t,captcha_token:n,remember_me:r||!1},!1);return AJ(i.accessToken),i.user}async function IJ(){await PJ.post(`/auth/logout`),jJ()}async function LJ(){try{return await PJ.get(`/auth/me`)}catch{return null}}async function RJ(){return PJ.get(`/admin/stats`)}async function zJ(e){let t=e?`?search=${encodeURIComponent(e)}`:``;return PJ.get(`/admin/users${t}`)}async function BJ(e,t,n){await PJ.post(`/admin/users/${e}/credits`,{amount:t,description:n})}async function VJ(e,t){await PJ.put(`/admin/users/${e}/status`,{is_active:t})}async function HJ(){return PJ.get(`/admin/model-configs`)}async function UJ(e){return e.id?PJ.put(`/admin/model-configs/${e.id}`,e):PJ.post(`/admin/model-configs`,e)}async function WJ(e){await PJ.delete(`/admin/model-configs/${e}`)}async function GJ(){return PJ.get(`/admin/system-configs`)}async function KJ(e,t){await PJ.put(`/admin/system-configs/${e}`,{value:t})}async function qJ(e,t){let n=new FormData;n.append(`file`,e),n.append(`config_key`,t);let r=localStorage.getItem(`auth_token`),i=await fetch(`http://localhost:8000/api/admin/upload-pdf`,{method:`POST`,headers:r?{Authorization:`Bearer ${r}`}:{},body:n});if(!i.ok)throw Error(`上传失败`);return i.json()}async function JJ(e){let t=new URLSearchParams;e?.user_id&&t.set(`user_id`,e.user_id),e?.type&&t.set(`type`,e.type);let n=t.toString()?`?${t}`:``;return PJ.get(`/admin/credit-records${n}`)}async function YJ(){return PJ.get(`/admin/industry-configs`)}async function XJ(e){return e.id?PJ.put(`/admin/industry-configs/${e.id}`,e):PJ.post(`/admin/industry-configs`,e)}async function ZJ(e){await PJ.delete(`/admin/industry-configs/${e}`)}async function QJ(){return PJ.get(`/admin/video-engines`)}async function $J(e){return e.id?PJ.put(`/admin/video-engines/${e.id}`,e):PJ.post(`/admin/video-engines`,e)}async function eY(e){await PJ.delete(`/admin/video-engines/${e}`)}async function tY(){return PJ.get(`/admin/image-engines`)}async function nY(e){return e.id?PJ.put(`/admin/image-engines/${e.id}`,e):PJ.post(`/admin/image-engines`,e)}async function rY(e){await PJ.delete(`/admin/image-engines/${e}`)}async function iY(){return PJ.get(`/admin/credit-ratios`)}async function aY(e){return e.id?PJ.put(`/admin/credit-ratios/${e.id}`,e):PJ.post(`/admin/credit-ratios`,e)}async function oY(e){await PJ.delete(`/admin/credit-ratios/${e}`)}async function sY(){return PJ.get(`/admin/payment-configs`)}async function cY(e,t){await PJ.put(`/admin/payment-configs/${e}`,{value:t})}async function lY(){return PJ.get(`/admin/notifications`)}async function uY(e){await PJ.post(`/admin/notifications`,e)}async function dY(e){await PJ.delete(`/admin/notifications/${e}`)}async function fY(e){return PJ.get(`/admin/notifications/${e}/read-users`)}async function pY(){return PJ.get(`/admin/menu-configs`)}async function mY(e){return e.id?PJ.put(`/admin/menu-configs/${e.id}`,e):PJ.post(`/admin/menu-configs`,e)}async function hY(e){await PJ.delete(`/admin/menu-configs/${e}`)}async function gY(e){return PJ.post(`/admin/users`,e)}async function _Y(e,t){await PJ.put(`/admin/users/${e}/menus`,{allowed_menus:t})}async function vY(e,t){await PJ.put(`/admin/users/${e}/reset-password`,{new_password:t})}async function yY(e,t){await PJ.post(`/admin/change-password`,{old_password:e,new_password:t})}async function bY(){return PJ.get(`/admin/recharge-packages`)}async function xY(e){return e.id?PJ.put(`/admin/recharge-packages/${e.id}`,e):PJ.post(`/admin/recharge-packages`,e)}async function SY(e){await PJ.delete(`/admin/recharge-packages/${e}`)}async function CY(e){let t=e?`?page=${e}`:``;return PJ.get(`/admin/operation-logs${t}`)}async function wY(e){let t=new URLSearchParams;e?.userId&&t.set(`user_id`,e.userId),e?.status&&t.set(`status`,e.status),e?.page&&t.set(`page`,String(e.page)),e?.pageSize&&t.set(`page_size`,String(e.pageSize));let n=t.toString();return PJ.get(`/admin/generation-records${n?`?${n}`:``}`)}async function TY(e,t,n){await PJ.put(`/admin/generation-records/${e}/status`,{status:t,video_url:n})}async function EY(e,t,n,r){await PJ.post(`/admin/generation-records/${e}/generate`,{aspect_ratio:t,resolution:n,image_size:r})}async function DY(){return PJ.get(`/generation-ai/engines`)}async function OY(e){let t=new URLSearchParams;e?.genType&&t.set(`gen_type`,e.genType),e?.status&&t.set(`status`,e.status),e?.page&&t.set(`page`,String(e.page)),e?.pageSize&&t.set(`page_size`,String(e.pageSize)),e?.userId&&t.set(`user_id`,e.userId),e?.userName&&t.set(`user_name`,e.userName);let n=t.toString();return PJ.get(`/generation-ai/tasks${n?`?${n}`:``}`)}var kY=_J(e=>({user:null,loading:!0,login:async(t,n,r)=>{e({user:await FJ(t,n,void 0,r)})},logout:async()=>{await IJ(),e({user:null})},checkAuth:async()=>{try{if(!localStorage.getItem(`auth_token`)){e({user:null,loading:!1});return}e({user:await LJ(),loading:!1})}catch(t){(t?.message?.includes(`401`)||t?.message?.includes(`Unauthorized`))&&localStorage.removeItem(`auth_token`),e({user:null,loading:!1})}}})),AY=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),$=o(((e,t)=>{t.exports=AY()}))(),{Sider:jY,Content:MY}=sP,NY={HomeOutlined:(0,$.jsx)(FG,{}),PlayCircleOutlined:(0,$.jsx)(kK,{}),WalletOutlined:(0,$.jsx)(cJ,{}),RobotOutlined:(0,$.jsx)(VK,{}),SettingOutlined:(0,$.jsx)(aq,{}),BellOutlined:(0,$.jsx)($U,{}),UserOutlined:(0,$.jsx)(nJ,{}),AppstoreOutlined:(0,$.jsx)(FU,{}),FileTextOutlined:(0,$.jsx)(kj,{}),StarOutlined:(0,$.jsx)(kq,{}),HeartOutlined:(0,$.jsx)(EG,{}),CameraOutlined:(0,$.jsx)(mW,{}),DashboardOutlined:(0,$.jsx)(WW,{}),CalculatorOutlined:(0,$.jsx)(dW,{}),DollarOutlined:(0,$.jsx)(XW,{}),GiftOutlined:(0,$.jsx)(bG,{}),ThunderboltOutlined:(0,$.jsx)(Vq,{}),FireOutlined:(0,$.jsx)(dG,{}),CloudOutlined:(0,$.jsx)(EW,{}),SmileOutlined:(0,$.jsx)(bq,{}),TrophyOutlined:(0,$.jsx)(qq,{}),RocketOutlined:(0,$.jsx)(WK,{}),BulbOutlined:(0,$.jsx)(cW,{}),CodeOutlined:(0,$.jsx)(MW,{}),PictureOutlined:(0,$.jsx)(CK,{}),VideoCameraOutlined:(0,$.jsx)(aJ,{}),AudioOutlined:(0,$.jsx)(WU,{}),MailOutlined:(0,$.jsx)($G,{}),PhoneOutlined:(0,$.jsx)(bK,{}),GlobalOutlined:(0,$.jsx)(CG,{}),ShoppingCartOutlined:(0,$.jsx)(cq,{}),TeamOutlined:(0,$.jsx)(Rq,{}),BarChartOutlined:(0,$.jsx)(XU,{}),PieChartOutlined:(0,$.jsx)(EK,{}),LineChartOutlined:(0,$.jsx)(WG,{}),SecurityScanOutlined:(0,$.jsx)($K,{}),ApiOutlined:(0,$.jsx)(MU,{}),DatabaseOutlined:(0,$.jsx)(qW,{}),CloudServerOutlined:(0,$.jsx)(kW,{}),MenuOutlined:(0,$.jsx)(aK,{}),PlusOutlined:(0,$.jsx)(_O,{}),EditOutlined:(0,$.jsx)(kV,{}),DeleteOutlined:(0,$.jsx)(EV,{}),LockOutlined:(0,$.jsx)(qG,{}),LogoutOutlined:(0,$.jsx)(XG,{})},PY=()=>{let e=Ye(),t=Ke(),{user:n,loading:r,logout:i}=kY(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)([]),[l,u]=(0,x.useState)(!1),[d]=Z.useForm();if((0,x.useEffect)(()=>{pY().then(e=>{let t=e.filter(e=>{let t=e.menu_target??e.menuTarget??`admin`;return(e.is_active??e.isActive??!0)&&(t===`admin`||t===`both`)}),r=!!(n?.isAdmin??n?.is_admin);if(n&&!r){let e=n.allowedMenus??n?.allowed_menus;if(e&&Array.isArray(e)&&e.length>0){let n=new Set(e);t=t.filter(e=>(e.menu_type??e.menuType)===`group`?t.some(t=>(t.parent_id??t.parentId)===e.id&&n.has(t.path)):n.has(e.path))}else t=[]}c(t)}).catch(()=>{})},[n]),r)return(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100vh`},children:(0,$.jsx)(aF,{size:`large`})});if(!n)return(0,$.jsx)(St,{to:`/admin/login`,replace:!0});let f={};s.filter(e=>(e.menu_type??e.menuType)!==`group`&&(e.parent_id??e.parentId)).forEach(e=>{let t=e.parent_id??e.parentId;f[t]||(f[t]=[]),f[t].push(e)});let p=[...s].sort((e,t)=>(e.sort_order??e.sortOrder??0)-(t.sort_order??t.sortOrder??0)),m=[];p.forEach(e=>{let t=e.menu_type??e.menuType,n=e.parent_id??e.parentId;if(t===`group`){let t=(f[e.id]||[]).sort((e,t)=>(e.sort_order??e.sortOrder??0)-(t.sort_order??t.sortOrder??0)).map(e=>({key:e.path,icon:NY[e.icon]||void 0,label:e.label}));t.length>0&&m.push({key:`group-${e.id}`,icon:NY[e.icon]||void 0,label:e.label,children:t})}else n||m.push({key:e.path,icon:NY[e.icon]||void 0,label:e.label})});let h=!!(n?.isAdmin??n?.is_admin);m.length===0&&h&&m.push({key:`/`,icon:(0,$.jsx)(WW,{}),label:`数据概览`},{key:`/users`,icon:(0,$.jsx)(nJ,{}),label:`用户管理`});let g=t.pathname,_=[];m.forEach(e=>{e.children?e.children.forEach(e=>_.push(e.key)):_.push(e.key)}),_.includes(g)||(g=_.find(e=>g.startsWith(e))||`/`);let v=[];return m.forEach(e=>{e.children&&e.children.some(e=>e.key===g)&&v.push(e.key)}),(0,$.jsxs)(sP,{style:{minHeight:`100vh`},children:[(0,$.jsxs)(jY,{collapsible:!0,collapsed:a,onCollapse:o,width:220,theme:`dark`,style:{background:`linear-gradient(180deg, #0f0f23 0%, #1a1a35 100%)`},children:[(0,$.jsxs)(`div`,{style:{height:64,display:`flex`,alignItems:`center`,justifyContent:`center`,gap:10,borderBottom:`1px solid rgba(255,255,255,0.06)`},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(Vq,{style:{fontSize:16,color:`#fff`}})}),!a&&(0,$.jsx)(`span`,{style:{color:`#f1f5f9`,fontSize:15,fontWeight:700},children:`管理后台`})]}),(0,$.jsx)(cD,{mode:`inline`,selectedKeys:[g],defaultOpenKeys:v,items:m,onClick:({key:t})=>{t.startsWith(`group-`)||e(t)},style:{background:`transparent`,borderRight:0,marginTop:8},theme:`dark`})]}),(0,$.jsxs)(sP,{children:[(0,$.jsxs)(`div`,{style:{height:56,background:`#fff`,borderBottom:`1px solid #f0f0f5`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`0 24px`},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:m.find(e=>e.key===g)?.label||m.flatMap(e=>e.children||[]).find(e=>e.key===g)?.label||`管理后台`}),(0,$.jsx)(Ej,{menu:{items:[{key:`user`,icon:(0,$.jsx)(nJ,{}),label:n?.username,disabled:!0},{type:`divider`},{key:`changePwd`,icon:(0,$.jsx)(qG,{}),label:`修改密码`},{key:`logout`,icon:(0,$.jsx)(XG,{}),label:`退出登录`,danger:!0}],onClick:({key:t})=>{t===`logout`&&(i(),e(`/login`)),t===`changePwd`&&(u(!0),d.resetFields())}},placement:`bottomRight`,arrow:!0,children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,cursor:`pointer`,padding:`4px 8px`,borderRadius:8,transition:`background 0.2s`},children:[(0,$.jsx)(Zw,{size:28,icon:(0,$.jsx)(nJ,{}),style:{background:`linear-gradient(135deg, #6366f1, #8b5cf6)`}}),(0,$.jsx)(Q.Text,{style:{fontSize:13,fontWeight:500},children:n?.username})]})})]}),(0,$.jsx)(MY,{style:{padding:24,background:`#f5f6fa`,overflow:`auto`},children:m.length===0&&!h?(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,height:`60vh`,color:`#94a3b8`},children:[(0,$.jsx)(qG,{style:{fontSize:48,marginBottom:16,color:`#cbd5e1`}}),(0,$.jsx)(`div`,{style:{fontSize:16,fontWeight:600,color:`#64748b`},children:`暂无任何权限`}),(0,$.jsx)(`div`,{style:{fontSize:13,marginTop:8},children:`请联系管理员配置菜单权限`})]}):(0,$.jsx)(Ct,{})})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(qG,{}),`修改密码`]}),open:l,onOk:async()=>{try{let e=await d.validateFields();if(e.newPassword!==e.confirmPassword){bF.error(`两次输入的密码不一致`);return}await yY(e.oldPassword,e.newPassword),bF.success(`密码修改成功`),u(!1),d.resetFields()}catch(e){if(e?.errorFields)return;bF.error(e?.message||`修改失败`)}},onCancel:()=>{u(!1),d.resetFields()},okText:`确认修改`,cancelText:`取消`,width:420,children:(0,$.jsxs)(Z,{form:d,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`oldPassword`,label:`原密码`,rules:[{required:!0,message:`请输入原密码`}],children:(0,$.jsx)(QN.Password,{placeholder:`请输入原密码`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`newPassword`,label:`新密码`,rules:[{required:!0,min:6,message:`密码至少6位`}],children:(0,$.jsx)(QN.Password,{placeholder:`请输入新密码(至少6位)`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`confirmPassword`,label:`确认新密码`,rules:[{required:!0,message:`请再次输入新密码`}],children:(0,$.jsx)(QN.Password,{placeholder:`请再次输入新密码`,size:`large`})})]})})]})},FY=()=>{let e=Ye(),{login:t}=kY(),[n,r]=(0,x.useState)(!1);return(0,$.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(135deg, #0f0f23 0%, #1a1a35 50%, #0f0f23 100%)`},children:(0,$.jsxs)(Mk,{bordered:!1,style:{width:420,borderRadius:16,boxShadow:`0 20px 60px rgba(0,0,0,0.3)`},children:[(0,$.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:32},children:[(0,$.jsx)(`div`,{style:{width:56,height:56,borderRadius:14,margin:`0 auto 16px`,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px rgba(99,102,241,0.3)`},children:(0,$.jsx)(Vq,{style:{fontSize:26,color:`#fff`}})}),(0,$.jsxs)(Q.Title,{level:3,style:{margin:0},children:[`VideoGen`,(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`.AI`})]}),(0,$.jsx)(Q.Text,{type:`secondary`,children:`管理后台`})]}),(0,$.jsxs)(Z,{onFinish:async n=>{r(!0);try{await t(n.username,n.password,n.rememberMe),bF.success(`登录成功`),e(`/`)}catch{bF.error(`登录失败`)}finally{r(!1)}},layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`}],children:(0,$.jsx)(QN,{placeholder:`用户名`,size:`large`,prefix:(0,$.jsx)(nJ,{style:{color:`#94a3b8`,marginRight:8}})})}),(0,$.jsx)(Z.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`}],children:(0,$.jsx)(QN.Password,{placeholder:`密码`,size:`large`,prefix:(0,$.jsx)(qG,{style:{color:`#94a3b8`,marginRight:8}})})}),(0,$.jsx)(Z.Item,{name:`rememberMe`,valuePropName:`checked`,children:(0,$.jsx)(iA,{children:`记住我的登录状态`})}),(0,$.jsx)(Z.Item,{style:{marginBottom:8},children:(0,$.jsx)(mD,{type:`primary`,htmlType:`submit`,loading:n,block:!0,size:`large`,style:{borderRadius:10,fontWeight:600,height:44,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`登录管理后台`})})]})]})})},IY=()=>{let[e,t]=(0,x.useState)(null),[n,r]=(0,x.useState)(!0);return(0,x.useEffect)(()=>{(async()=>{r(!0);try{t(await RJ())}catch{}r(!1)})()},[]),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(uI,{gutter:[16,16],children:(e?[{title:`总用户数`,value:e.totalUsers,icon:(0,$.jsx)(nJ,{}),color:`#6366f1`,bg:`rgba(99,102,241,0.08)`},{title:`总项目数`,value:e.totalProjects,icon:(0,$.jsx)(MK,{}),color:`#06b6d4`,bg:`rgba(6,182,212,0.08)`},{title:`总生成次数`,value:e.totalGenerations,icon:(0,$.jsx)(kK,{}),color:`#10b981`,bg:`rgba(16,185,129,0.08)`},{title:`总收入(元)`,value:e.totalRevenue,icon:(0,$.jsx)(XW,{}),color:`#f59e0b`,bg:`rgba(245,158,11,0.08)`,prefix:`¥`},{title:`今日消耗积分`,value:e.creditsConsumedToday,icon:(0,$.jsx)(Vq,{}),color:`#ef4444`,bg:`rgba(239,68,68,0.08)`}]:[]).map((e,t)=>(0,$.jsx)(dA,{xs:12,sm:8,lg:t<4?6:24,children:(0,$.jsx)(Mk,{bordered:!1,loading:n,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:e.bg,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:e.color,flexShrink:0},children:e.icon}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12,marginBottom:2},children:e.title}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,color:`#1a1a2e`},children:[e.prefix,typeof e.value==`number`?e.value.toLocaleString():e.value]})]})]})})},e.title))}),(0,$.jsx)(uI,{gutter:[16,16],style:{marginTop:16},children:(0,$.jsx)(dA,{xs:24,lg:12,children:(0,$.jsx)(Mk,{title:`系统信息`,bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:12},children:[{label:`平台名称`,value:`VideoGen.AI`},{label:`API版本`,value:`v1.0.0`},{label:`数据库`,value:`PostgreSQL`},{label:`视频引擎`,value:`Seedance 2.0`}].map(e=>(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,padding:`8px 0`,borderBottom:`1px solid #f5f6fa`},children:[(0,$.jsx)(Q.Text,{type:`secondary`,children:e.label}),(0,$.jsx)(Q.Text,{strong:!0,children:e.value})]},e.label))})})})})]})};function LY(e){if(!e)return`-`;let t=e.trim();t.includes(`T`)||(t=t.replace(` `,`T`));let n=t.indexOf(`.`);return n>0&&(t=t.slice(0,n)),t=t.replace(/[+-]\d{2}:?\d{0,2}$/,``).replace(/Z$/,``),t.replace(`T`,` `).slice(0,16)}var RY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(`frontend`),[c,l]=(0,x.useState)({open:!1,user:null}),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(`frontend`),[m,h]=(0,x.useState)({open:!1,user:null}),[g,_]=(0,x.useState)([]),[v,y]=(0,x.useState)([]),[b,S]=(0,x.useState)({open:!1,user:null}),[C]=Z.useForm(),[w]=Z.useForm(),[T]=Z.useForm(),E=async()=>{r(!0);try{t(await zJ(i||void 0))}catch{}r(!1)};(0,x.useEffect)(()=>{E()},[]);let D=()=>E(),O=async()=>{try{let e=await C.validateFields(),{user:t}=c;if(!t)return;await BJ(t.id,e.amount,e.description),bF.success(`已${e.amount>0?`增加`:`扣除`} ${Math.abs(e.amount)} 积分`),l({open:!1,user:null}),C.resetFields(),E()}catch{}},k=async e=>{await VJ(e.id,!e.isActive),bF.success(e.isActive?`已禁用该用户`:`已启用该用户`),E()},A=async()=>{try{let e=await w.validateFields(),t=e.user_type||`frontend`;await gY({username:t===`admin`?e.username:void 0,password:e.password,email:e.email||void 0,phone:t===`frontend`?e.phone:e.phone||void 0,credits:e.credits||0,user_type:t}),bF.success(`用户创建成功`),d(!1),w.resetFields(),p(`frontend`),E()}catch{}},j=async e=>{try{let t=await pY(),n=e.userType===`admin`;_(t.filter(e=>{let t=e.menu_target??e.menuTarget??`frontend`;return n?t===`admin`||t===`both`:t===`frontend`||t===`both`})),y(e.allowedMenus||[]),h({open:!0,user:e})}catch{bF.error(`加载菜单失败`)}},M=g.filter(e=>(e.menu_type??e.menuType)===`group`),N=g.filter(e=>(e.menu_type??e.menuType)!==`group`),P={};N.filter(e=>e.parent_id??e.parentId).forEach(e=>{let t=e.parent_id??e.parentId;P[t]||(P[t]=[]),P[t].push(e)});let F=N.filter(e=>!(e.parent_id??e.parentId)),I=async()=>{let{user:e}=m;if(e)try{await _Y(e.id,v.length>0?v:null),bF.success(`菜单权限已更新`),h({open:!1,user:null}),E()}catch(e){bF.error(e?.message||`保存失败`)}},L=async()=>{try{let e=await T.validateFields(),{user:t}=b;if(!t)return;await vY(t.id,e.newPassword),bF.success(`已重置 ${t.username} 的密码`),S({open:!1,user:null}),T.resetFields()}catch{}},R=e.filter(e=>e.userType===o),z=o===`admin`,B=[{title:`用户`,key:`user`,width:200,render:(e,t)=>(0,$.jsxs)(wj,{children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:t.isAdmin?`linear-gradient(135deg, #f59e0b, #f97316)`:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:13,fontWeight:700},children:t.username.charAt(0).toUpperCase()}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{fontWeight:600},children:[t.username,t.isAdmin&&(0,$.jsx)(CV,{color:`orange`,style:{marginLeft:6,fontSize:10},children:`管理员`})]}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.email})]})]})},...z?[]:[{title:`积分余额`,dataIndex:`credits`,width:120,sorter:(e,t)=>e.credits-t.credits,render:e=>(0,$.jsx)(Q.Text,{strong:!0,style:{color:e>0?`#10b981`:`#ef4444`,fontSize:15},children:e.toLocaleString()})}],{title:`手机号`,dataIndex:`phone`,width:130,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,children:e||`-`})},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CV,{color:e?`green`:`red`,children:e?`正常`:`禁用`})},{title:`注册时间`,dataIndex:`createdAt`,width:120,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:LY(e)})},{title:`最后登录`,dataIndex:`lastLoginAt`,width:140,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:LY(e)})},{title:`操作`,key:`action`,width:320,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[!z&&(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(cJ,{}),onClick:()=>{l({open:!0,user:t}),C.resetFields()},children:`调整积分`}),(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(aK,{}),onClick:()=>j(t),children:`菜单权限`}),(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(qG,{}),onClick:()=>{S({open:!0,user:t}),T.resetFields()},children:`重置密码`}),(0,$.jsx)(DF,{title:t.isActive?`确定禁用该用户?`:`确定启用该用户?`,onConfirm:()=>k(t),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:t.isActive,icon:t.isActive?(0,$.jsx)(Mq,{}):(0,$.jsx)(bW,{}),children:t.isActive?`禁用`:`启用`})})]})}];return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12},children:[(0,$.jsx)(QN,{placeholder:`搜索用户名或手机号`,prefix:(0,$.jsx)(KC,{style:{color:`#94a3b8`}}),value:i,onChange:e=>a(e.target.value),onPressEnter:D,style:{width:280,borderRadius:8},allowClear:!0}),(0,$.jsx)(mD,{type:`primary`,onClick:D,style:{borderRadius:8},children:`搜索`})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>{p(o),w.setFieldsValue({user_type:o}),d(!0)},style:{borderRadius:8},children:`创建用户`})]}),(0,$.jsx)(vk,{activeKey:o,onChange:s,items:[{key:`frontend`,label:`前台用户`},{key:`admin`,label:`后台用户`}]}),(0,$.jsx)(uV,{columns:B,dataSource:R,rowKey:`id`,loading:n,pagination:{pageSize:10,showTotal:e=>`共 ${e} 个用户`},scroll:{x:1e3}})]}),(0,$.jsxs)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(cJ,{}),`调整积分 - `,c.user?.username]}),open:c.open,onOk:O,onCancel:()=>{l({open:!1,user:null}),C.resetFields()},okText:`确认`,cancelText:`取消`,width:440,children:[(0,$.jsxs)(`div`,{style:{marginBottom:16,padding:`12px 16px`,background:`#f8fafc`,borderRadius:8},children:[(0,$.jsx)(`span`,{style:{color:`#64748b`},children:`当前积分:`}),(0,$.jsx)(`span`,{style:{fontWeight:800,fontSize:18,color:`#6366f1`},children:c.user?.credits.toLocaleString()})]}),(0,$.jsxs)(Z,{form:C,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`amount`,label:`积分变动`,rules:[{required:!0,message:`请输入积分数量`}],children:(0,$.jsx)($A,{style:{width:`100%`},size:`large`,placeholder:`正数增加,负数扣除`,formatter:e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,`,`)})}),(0,$.jsx)(Z.Item,{name:`description`,label:`原因`,rules:[{required:!0,message:`请输入调整原因`}],children:(0,$.jsx)(QN.TextArea,{rows:2,placeholder:`请输入调整原因`,size:`large`})})]})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(nJ,{}),`创建用户`]}),open:u,onOk:A,onCancel:()=>{d(!1),w.resetFields(),p(`frontend`)},okText:`创建`,cancelText:`取消`,width:480,children:(0,$.jsxs)(Z,{form:w,layout:`vertical`,style:{marginTop:16},onValuesChange:e=>{e.user_type&&p(e.user_type)},children:[(0,$.jsx)(Z.Item,{name:`user_type`,label:`用户类型`,initialValue:`frontend`,rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`frontend`,label:`前端用户`},{value:`admin`,label:`后台管理员`}]})}),f===`frontend`?(0,$.jsx)(Z.Item,{name:`phone`,label:`手机号`,rules:[{required:!0,message:`请输入手机号`},{pattern:/^1\d{10}$/,message:`请输入正确的手机号`}],children:(0,$.jsx)(QN,{placeholder:`请输入手机号`,maxLength:11,size:`large`})}):(0,$.jsx)(Z.Item,{name:`username`,label:`用户名`,rules:[{required:!0,message:`请输入用户名`}],children:(0,$.jsx)(QN,{placeholder:`请输入用户名`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`password`,label:`密码`,rules:[{required:!0,min:6,message:`密码至少6位`}],children:(0,$.jsx)(QN.Password,{placeholder:`请输入密码(至少6位)`,size:`large`})}),f===`frontend`&&(0,$.jsx)(Z.Item,{name:`credits`,label:`初始积分`,initialValue:0,children:(0,$.jsx)($A,{min:0,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`email`,label:`邮箱`,children:(0,$.jsx)(QN,{placeholder:`选填`,size:`large`})})]})}),(0,$.jsxs)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aK,{}),`菜单权限 - `,m.user?.username,` (`,m.user?.userType===`admin`?`后台菜单`:`前台菜单`,`)`]}),open:m.open,onOk:I,onCancel:()=>{h({open:!1,user:null})},okText:`保存`,cancelText:`取消`,width:520,children:[(0,$.jsx)(`div`,{style:{marginBottom:12},children:(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:13},children:`勾选该用户可访问的菜单,不勾选则显示全部菜单`})}),(0,$.jsx)(`div`,{style:{padding:`12px 16px`,background:`#f8fafc`,borderRadius:8,maxHeight:400,overflow:`auto`},children:(0,$.jsx)(iA.Group,{value:v,onChange:e=>y(e),children:(0,$.jsxs)(wj,{direction:`vertical`,size:8,style:{width:`100%`},children:[F.map(e=>(0,$.jsxs)(iA,{value:e.path,style:{width:`100%`},children:[e.label,(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12,marginLeft:8},children:e.path})]},e.path)),M.map(e=>{let t=P[e.id]||[];return t.length===0?null:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{fontWeight:600,fontSize:13,color:`#6366f1`,marginBottom:4,marginTop:4},children:e.label}),(0,$.jsx)(wj,{direction:`vertical`,size:4,style:{paddingLeft:12,width:`100%`},children:t.map(e=>(0,$.jsxs)(iA,{value:e.path,style:{width:`100%`},children:[e.label,(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12,marginLeft:8},children:e.path})]},e.path))})]},e.id)})]})})})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(qG,{}),`重置密码 - `,b.user?.username]}),open:b.open,onOk:L,onCancel:()=>{S({open:!1,user:null}),T.resetFields()},okText:`确认重置`,cancelText:`取消`,width:420,children:(0,$.jsx)(Z,{form:T,layout:`vertical`,style:{marginTop:16},children:(0,$.jsx)(Z.Item,{name:`newPassword`,label:`新密码`,rules:[{required:!0,min:6,message:`密码至少6位`}],children:(0,$.jsx)(QN.Password,{placeholder:`请输入新密码(至少6位)`,size:`large`})})})})]})},zY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)({open:!1,model:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t(await HJ())}catch{}r(!1)};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={name:e.name,provider:e.provider,model_name:e.modelName,api_base:e.apiBase,api_key:e.apiKey,weight:e.weight,max_tokens:e.maxTokens,temperature:e.temperature,is_active:e.isActive??!0,priority:e.priority??0};i.model?.id?await UJ({id:i.model.id,...t}):await UJ(t),bF.success(i.model?.id?`模型配置已更新`:`模型配置已添加`),a({open:!1,model:null}),o.resetFields(),s()}catch(e){if(e?.errorFields)return;bF.error(e?.message||`保存失败`)}},l=async e=>{try{await WJ(e),bF.success(`模型配置已删除`),s()}catch(e){bF.error(e?.message||`删除失败`)}},u=e=>{a({open:!0,model:e||null}),e?o.setFieldsValue(e):(o.resetFields(),o.setFieldsValue({provider:`sdk`,weight:1,maxTokens:4096,temperature:.7,isActive:!0,priority:0}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(Q.Text,{type:`secondary`,children:[`共 `,e.length,` 个模型配置,按权重进行加权随机调度`]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加模型`})]}),(0,$.jsx)(uV,{columns:[{title:`模型名称`,dataIndex:`name`,width:150,render:(e,t)=>(0,$.jsxs)(wj,{children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:t.isActive?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`linear-gradient(135deg, #94a3b8, #cbd5e1)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:14},children:(0,$.jsx)(VK,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{fontWeight:600},children:e}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.modelName})]})]})},{title:`提供商`,dataIndex:`provider`,width:140,render:e=>(0,$.jsx)(CV,{color:e===`mock`?`default`:`blue`,children:{sdk:`SDK模式`,openai_compatible:`OpenAI兼容`,mock:`Mock模式`}[e]||e})},{title:`API地址`,dataIndex:`apiBase`,width:200,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},ellipsis:!0,children:e||`-`})},{title:`权重`,dataIndex:`weight`,width:80,sorter:(e,t)=>e.weight-t.weight},{title:`Max Tokens`,dataIndex:`maxTokens`,width:100},{title:`Temperature`,dataIndex:`temperature`,width:100,render:e=>e.toFixed(1)},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CV,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除该模型配置?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(VK,{}),i.model?.id?`编辑模型`:`添加模型`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,model:null}),o.resetFields()},okText:`确认`,cancelText:`取消`,width:560,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`name`,label:`显示名称`,rules:[{required:!0,message:`请输入模型名称`}],children:(0,$.jsx)(QN,{placeholder:`例如:GPT-4o`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`provider`,label:`提供商`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`sdk`,label:`SDK模式`},{value:`openai_compatible`,label:`OpenAI兼容`},{value:`mock`,label:`Mock模式`}]})}),(0,$.jsx)(Z.Item,{name:`modelName`,label:`模型标识`,style:{flex:1},rules:[{required:!0,message:`请输入模型标识`}],children:(0,$.jsx)(QN,{placeholder:`例如:gpt-4o`,size:`large`})})]}),(0,$.jsx)(Z.Item,{name:`apiBase`,label:`API地址`,children:(0,$.jsx)(QN,{placeholder:`https://api.openai.com/v1`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`apiKey`,label:`API Key`,children:(0,$.jsx)(QN.Password,{placeholder:`sk-****`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`weight`,label:`权重`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:0,max:10,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`maxTokens`,label:`Max Tokens`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:256,max:128e3,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`temperature`,label:`Temperature`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:0,max:2,step:.1,style:{width:`100%`},size:`large`})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`priority`,label:`优先级`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:0,max:10,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用`,valuePropName:`checked`,style:{flex:1,paddingTop:30},children:(0,$.jsx)(yI,{})})]})]})})]})},BY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(``),[c]=Z.useForm();(0,x.useEffect)(()=>{l()},[]);let l=async()=>{r(!0);let e=await GJ();t(e);let n={};e.forEach(e=>{n[e.key]=e.value}),c.setFieldsValue(n),r(!1)},u=async()=>{try{let n=await c.validateFields();a(!0);for(let t of e){let e=n[t.key];e!==void 0&&e!==t.value&&await KJ(t.id,e??``)}bF.success(`系统配置已保存`),t(await GJ()),a(!1)}catch(e){a(!1),bF.error(e?.message||`保存失败`)}},d=async(e,n)=>{s(n);try{let r=await qJ(e,n);t(e=>e.map(e=>e.key===n?{...e,value:r.url}:e)),c.setFieldsValue({[n]:r.url}),bF.success(`PDF上传成功`)}catch{bF.error(`上传失败`)}finally{s(``)}return!1},f={站点信息:e.filter(e=>e.key.startsWith(`site_`)),协议配置:e.filter(e=>e.key===`user_agreement_url`||e.key===`privacy_policy_url`),"SEO 设置":e.filter(e=>e.key.startsWith(`seo_`))},p=e=>({site_name:`平台显示名称,将展示在页面标题和导航栏`,site_logo:`平台Logo图片URL,建议尺寸 200x40px`,user_agreement_url:`用户注册/登录时需同意的用户协议PDF文件`,privacy_policy_url:`用户注册/登录时需同意的隐私政策PDF文件`,seo_title:`搜索引擎结果中显示的标题`,seo_description:`搜索引擎结果中显示的描述文字,建议150字以内`,seo_keywords:`用逗号分隔的关键词列表`})[e.key]||e.description||``,m=e=>e.key===`seo_description`?(0,$.jsx)(QN.TextArea,{rows:3,placeholder:e.description,size:`large`}):e.key===`seo_keywords`?(0,$.jsx)(QN,{placeholder:`关键词1, 关键词2, 关键词3`,size:`large`}):(0,$.jsx)(QN,{placeholder:e.description,size:`large`}),h=({config:e})=>{let t=e.key===`user_agreement_url`?`用户协议`:`隐私政策`,n=e.value&&e.value.startsWith(`/uploads/`);return(0,$.jsxs)(`div`,{style:{padding:`16px`,borderRadius:10,border:`1px solid #f0f0f5`,background:`#fafbfc`,marginBottom:12},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:8},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(cG,{style:{color:`#ef4444`,fontSize:18}}),(0,$.jsx)(Q.Text,{strong:!0,children:t})]}),(0,$.jsxs)(wj,{children:[n&&(0,$.jsx)(mD,{size:`small`,icon:(0,$.jsx)(AN,{}),onClick:()=>window.open(`http://localhost:8000${e.value}`,`_blank`),children:`预览`}),(0,$.jsx)(_U,{accept:`.pdf`,showUploadList:!1,beforeUpload:t=>d(t,e.key),children:(0,$.jsx)(mD,{size:`small`,type:`primary`,icon:(0,$.jsx)($q,{}),loading:o===e.key,children:n?`重新上传`:`上传PDF`})})]})]}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:n?`已上传: ${e.value}`:`尚未上传,前台将不显示对应链接`})]})};return n?(0,$.jsx)(Mk,{loading:!0,bordered:!1,style:{borderRadius:12}}):(0,$.jsxs)(`div`,{style:{maxWidth:720},children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,marginBottom:24},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(99,102,241,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#6366f1`},children:(0,$.jsx)(aq,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Title,{level:4,style:{margin:0},children:`系统设置`}),(0,$.jsx)(Q.Text,{type:`secondary`,children:`管理站点基础信息、协议文件和SEO配置`})]})]}),(0,$.jsx)(Z,{form:c,layout:`vertical`,children:Object.entries(f).map(([e,t])=>(0,$.jsxs)(`div`,{style:{marginBottom:24},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14,display:`block`,marginBottom:12,paddingBottom:8,borderBottom:`1px solid #f0f0f5`},children:e}),e===`协议配置`?t.map(e=>(0,$.jsx)(h,{config:e},e.id)):t.map(e=>(0,$.jsx)(Z.Item,{name:e.key,label:(0,$.jsx)(`span`,{style:{fontWeight:500},children:e.description}),extra:p(e),children:m(e)},e.id))]},e))})]}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`},children:(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(XK,{}),onClick:u,loading:i,size:`large`,style:{borderRadius:8,minWidth:140},children:`保存配置`})})]})},VY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)([]),[o,s]=(0,x.useState)(!1),[c]=Z.useForm(),[l,u]=(0,x.useState)({open:!1,notifId:``,title:``}),[d,f]=(0,x.useState)([]),[p,m]=(0,x.useState)(!1),h=async()=>{r(!0);try{let e=await lY(),n=await zJ(),r={};n.forEach(e=>{r[e.id]=e.username}),t((e.items||[]).map(e=>({id:e.id,title:e.title,content:e.content,type:e.type,targetUserId:e.userId||null,target:e.userId?r[e.userId]||e.userId:`全部用户`,createdAt:e.createdAt}))),a(n.map(e=>({id:e.id,username:e.username})))}catch{bF.error(`加载通知列表失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{h()},[]);let g=async()=>{try{let e=await c.validateFields();await uY({title:e.title,content:e.content,type:e.type||`system`,target_user_id:e.target_user_id||void 0}),bF.success(`消息已发送`),s(!1),c.resetFields(),h()}catch{}},_=async e=>{try{await dY(e),bF.success(`已删除`),h()}catch(e){bF.error(e?.message||`删除失败`)}},v=async(e,t)=>{u({open:!0,notifId:e,title:t}),m(!0);try{f((await fY(e)).items||[])}catch{bF.error(`加载已读列表失败`)}finally{m(!1)}},y=e=>{switch(e){case`system`:return`blue`;case`credit`:return`orange`;case`promo`:return`purple`;default:return`default`}};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)($U,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`消息推送管理`}),(0,$.jsxs)(CV,{color:`purple`,children:[e.length,` 条消息`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>s(!0),style:{borderRadius:8},children:`发送新消息`})]}),(0,$.jsx)(uV,{columns:[{title:`标题`,dataIndex:`title`,width:200,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`内容`,dataIndex:`content`,ellipsis:!0},{title:`类型`,dataIndex:`type`,width:80,render:e=>(0,$.jsx)(CV,{color:y(e),children:{system:`系统`,credit:`积分`,promo:`活动`}[e]||e})},{title:`发送目标`,dataIndex:`target`,width:120,render:e=>(0,$.jsx)(CV,{color:e===`全部用户`?`green`:`blue`,children:e})},{title:`发送时间`,dataIndex:`createdAt`,width:160,render:e=>LY(e)},{title:`操作`,key:`action`,width:180,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(AN,{}),onClick:()=>v(t.id,t.title),children:`已读`}),(0,$.jsx)(DF,{title:`确定删除该消息?`,onConfirm:()=>_(t.id),children:(0,$.jsx)(mD,{type:`link`,danger:!0,size:`small`,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:{pageSize:10,showTotal:e=>`共 ${e} 条消息`},scroll:{x:900}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(nq,{}),`发送消息`]}),open:o,onOk:g,onCancel:()=>{s(!1),c.resetFields()},okText:`发送`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`title`,label:`消息标题`,rules:[{required:!0,message:`请输入标题`}],children:(0,$.jsx)(QN,{placeholder:`请输入消息标题`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`content`,label:`消息内容`,rules:[{required:!0,message:`请输入内容`}],children:(0,$.jsx)(QN.TextArea,{rows:4,placeholder:`请输入消息内容`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`type`,label:`消息类型`,style:{flex:1},initialValue:`system`,rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`system`,label:`系统通知`},{value:`credit`,label:`积分通知`},{value:`promo`,label:`活动通知`}]})}),(0,$.jsx)(Z.Item,{name:`target_user_id`,label:`发送目标`,style:{flex:1},extra:`留空则发送给全部用户`,children:(0,$.jsx)(ZC,{size:`large`,allowClear:!0,placeholder:`全部用户`,options:i.map(e=>({value:e.id,label:e.username}))})})]})]})}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(Rq,{}),`已读用户 — `,l.title]}),open:l.open,onCancel:()=>{u({open:!1,notifId:``,title:``}),f([])},footer:null,width:480,children:p?(0,$.jsx)(`div`,{style:{textAlign:`center`,padding:40},children:`加载中...`}):d.length===0?(0,$.jsx)(xC,{description:`暂无用户已读`,style:{padding:`40px 0`}}):(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{marginBottom:12,color:`#64748b`,fontSize:13},children:[`共 `,d.length,` 人已读`]}),(0,$.jsx)(uV,{dataSource:d,rowKey:`userId`,pagination:!1,size:`small`,columns:[{title:`用户名`,dataIndex:`username`,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`已读时间`,dataIndex:`readAt`,width:180,render:e=>LY(e)}]})]})})]})},HY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(``),c=async e=>{a(!0);try{let n=await JJ(e?{type:e}:void 0);t(n.items||[]),r(n.total||0)}catch{bF.error(`加载积分记录失败`)}finally{a(!1)}};(0,x.useEffect)(()=>{c()},[]);let l=e=>{s(e),c(e||void 0)},u=e.filter(e=>e.type===`recharge`).reduce((e,t)=>e+t.amount,0),d=e.filter(e=>e.type===`consume`).reduce((e,t)=>e+Math.abs(t.amount),0);return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,marginBottom:16},children:[(0,$.jsx)(Mk,{bordered:!1,style:{flex:1,borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(16,185,129,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#10b981`},children:(0,$.jsx)(VU,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:`总充值`}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,color:`#10b981`},children:[`+`,u.toLocaleString()]})]})]})}),(0,$.jsx)(Mk,{bordered:!1,style:{flex:1,borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(239,68,68,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#ef4444`},children:(0,$.jsx)(RU,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:`总消费`}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,color:`#ef4444`},children:[`-`,d.toLocaleString()]})]})]})}),(0,$.jsx)(Mk,{bordered:!1,style:{flex:1,borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(99,102,241,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#6366f1`},children:(0,$.jsx)(cJ,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:`交易笔数`}),(0,$.jsx)(`div`,{style:{fontSize:22,fontWeight:800,color:`#1a1a2e`},children:n})]})]})})]}),(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsx)(wj,{children:(0,$.jsx)(ZC,{value:o,onChange:l,style:{width:120},options:[{value:``,label:`全部类型`},{value:`recharge`,label:`充值`},{value:`consume`,label:`消费`}]})}),(0,$.jsx)(mD,{icon:(0,$.jsx)(lI,{}),onClick:()=>c(o||void 0),children:`刷新`})]}),(0,$.jsx)(uV,{columns:[{title:`用户`,dataIndex:`username`,width:120,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`类型`,dataIndex:`type`,width:100,render:e=>(0,$.jsx)(CV,{color:e===`recharge`?`green`:`red`,icon:e===`recharge`?(0,$.jsx)(VU,{}):(0,$.jsx)(RU,{}),children:e===`recharge`?`充值`:`消费`})},{title:`变动积分`,dataIndex:`amount`,width:120,sorter:(e,t)=>e.amount-t.amount,render:e=>(0,$.jsxs)(Q.Text,{strong:!0,style:{color:e>0?`#10b981`:`#ef4444`,fontSize:15},children:[e>0?`+`:``,e.toLocaleString()]})},{title:`变动后余额`,dataIndex:`balanceAfter`,width:120,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,children:e.toLocaleString()})},{title:`说明`,dataIndex:`description`,ellipsis:!0},{title:`时间`,dataIndex:`createdAt`,width:160,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:LY(e)})}],dataSource:e,rowKey:`id`,loading:i,pagination:{pageSize:10,showTotal:e=>`共 ${e} 条记录`},scroll:{x:800}})]})]})},UY=()=>{let[e,t]=(0,x.useState)(!1),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(!1),[c]=Z.useForm(),l=async()=>{try{let e=await sY();r(e);let t={};e.forEach(e=>{t[e.key]=e.value}),c.setFieldsValue({wechat_mch_id:t.payment_wechat_mch_id||``,wechat_api_key:t.payment_wechat_api_key||``,wechat_cert_path:t.payment_wechat_cert_path||``,wechat_notify_url:t.payment_wechat_notify_url||``,alipay_app_id:t.payment_alipay_app_id||``,alipay_private_key:t.payment_alipay_private_key||``,alipay_public_key:t.payment_alipay_public_key||``,alipay_notify_url:t.payment_alipay_notify_url||``}),a(t.payment_wechat_enabled===`true`),s(t.payment_alipay_enabled===`true`)}catch{bF.error(`加载支付配置失败`)}};return(0,x.useEffect)(()=>{l()},[]),(0,$.jsxs)(`div`,{style:{maxWidth:720},children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:20},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(7,193,96,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:22,color:`#07c160`},children:(0,$.jsx)(dJ,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Title,{level:5,style:{margin:0},children:`微信支付`}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:`微信商户号支付配置`})]})]}),(0,$.jsx)(yI,{checked:i,onChange:a,checkedChildren:`已启用`,unCheckedChildren:`未启用`})]}),(0,$.jsxs)(Z,{form:c,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`wechat_mch_id`,label:`商户号 (MchID)`,children:(0,$.jsx)(QN,{placeholder:`微信支付商户号`,size:`large`,disabled:!i})}),(0,$.jsx)(Z.Item,{name:`wechat_api_key`,label:`API密钥`,children:(0,$.jsx)(QN.Password,{placeholder:`微信支付API密钥`,size:`large`,disabled:!i})}),(0,$.jsx)(Z.Item,{name:`wechat_cert_path`,label:`证书路径`,children:(0,$.jsx)(QN,{placeholder:`apiclient_cert.pem 路径`,size:`large`,disabled:!i})}),(0,$.jsx)(Z.Item,{name:`wechat_notify_url`,label:`回调地址`,children:(0,$.jsx)(QN,{placeholder:`https://yourdomain.com/api/payments/wechat/callback`,size:`large`,disabled:!i})})]})]}),(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:20},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(0,122,255,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:22,color:`#007aff`},children:(0,$.jsx)(kU,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Title,{level:5,style:{margin:0},children:`支付宝`}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:`支付宝应用支付配置`})]})]}),(0,$.jsx)(yI,{checked:o,onChange:s,checkedChildren:`已启用`,unCheckedChildren:`未启用`})]}),(0,$.jsxs)(Z,{form:c,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`alipay_app_id`,label:`AppID`,children:(0,$.jsx)(QN,{placeholder:`支付宝应用AppID`,size:`large`,disabled:!o})}),(0,$.jsx)(Z.Item,{name:`alipay_private_key`,label:`应用私钥`,children:(0,$.jsx)(QN.TextArea,{rows:3,placeholder:`支付宝应用私钥 (PKCS8格式)`,disabled:!o})}),(0,$.jsx)(Z.Item,{name:`alipay_public_key`,label:`支付宝公钥`,children:(0,$.jsx)(QN.TextArea,{rows:3,placeholder:`支付宝公钥`,disabled:!o})}),(0,$.jsx)(Z.Item,{name:`alipay_notify_url`,label:`回调地址`,children:(0,$.jsx)(QN,{placeholder:`https://yourdomain.com/api/payments/alipay/callback`,size:`large`,disabled:!o})})]})]}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`},children:(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(XK,{}),onClick:async()=>{try{let e=await c.validateFields();t(!0);let r=[[`payment_wechat_enabled`,String(i)],[`payment_wechat_mch_id`,e.wechat_mch_id||``],[`payment_wechat_api_key`,e.wechat_api_key||``],[`payment_wechat_cert_path`,e.wechat_cert_path||``],[`payment_wechat_notify_url`,e.wechat_notify_url||``],[`payment_alipay_enabled`,String(o)],[`payment_alipay_app_id`,e.alipay_app_id||``],[`payment_alipay_private_key`,e.alipay_private_key||``],[`payment_alipay_public_key`,e.alipay_public_key||``],[`payment_alipay_notify_url`,e.alipay_notify_url||``]];for(let[e,t]of r){let r=n.find(t=>t.key===e);r&&await cY(r.id,t)}bF.success(`支付配置已保存`),l()}catch{bF.error(`保存失败`)}finally{t(!1)}},loading:e,size:`large`,style:{borderRadius:8,minWidth:140},children:`保存配置`})})]})},WY=[{name:`ShoppingCartOutlined`,label:`购物`,component:(0,$.jsx)(cq,{})},{name:`BookOutlined`,label:`书籍`,component:(0,$.jsx)(nW,{})},{name:`HomeOutlined`,label:`房产`,component:(0,$.jsx)(FG,{})},{name:`FireOutlined`,label:`火`,component:(0,$.jsx)(dG,{})},{name:`RocketOutlined`,label:`科技`,component:(0,$.jsx)(WK,{})},{name:`SkinOutlined`,label:`时尚`,component:(0,$.jsx)(_q,{})},{name:`CompassOutlined`,label:`指南`,component:(0,$.jsx)(RW,{})},{name:`HeartOutlined`,label:`健康`,component:(0,$.jsx)(EG,{})},{name:`CarOutlined`,label:`汽车`,component:(0,$.jsx)(_W,{})},{name:`CameraOutlined`,label:`相机`,component:(0,$.jsx)(mW,{})},{name:`CloudOutlined`,label:`云`,component:(0,$.jsx)(EW,{})},{name:`StarOutlined`,label:`星`,component:(0,$.jsx)(kq,{})},{name:`TrophyOutlined`,label:`奖杯`,component:(0,$.jsx)(qq,{})},{name:`ThunderboltOutlined`,label:`闪电`,component:(0,$.jsx)(Vq,{})},{name:`BulbOutlined`,label:`灯泡`,component:(0,$.jsx)(cW,{})},{name:`CoffeeOutlined`,label:`咖啡`,component:(0,$.jsx)(FW,{})},{name:`CrownOutlined`,label:`皇冠`,component:(0,$.jsx)(VW,{})},{name:`DashboardOutlined`,label:`仪表`,component:(0,$.jsx)(WW,{})},{name:`FlagOutlined`,label:`旗帜`,component:(0,$.jsx)(mG,{})},{name:`GlobalOutlined`,label:`全球`,component:(0,$.jsx)(CG,{})},{name:`GiftOutlined`,label:`礼物`,component:(0,$.jsx)(bG,{})},{name:`LaptopOutlined`,label:`笔记本`,component:(0,$.jsx)(VG,{})},{name:`MobileOutlined`,label:`手机`,component:(0,$.jsx)(dK,{})},{name:`MonitorOutlined`,label:`显示器`,component:(0,$.jsx)(mK,{})},{name:`PayCircleOutlined`,label:`支付`,component:(0,$.jsx)(_K,{})},{name:`PictureOutlined`,label:`图片`,component:(0,$.jsx)(CK,{})},{name:`PlayCircleOutlined`,label:`播放`,component:(0,$.jsx)(kK,{})},{name:`SafetyOutlined`,label:`安全`,component:(0,$.jsx)(qK,{})},{name:`ShoppingOutlined`,label:`商店`,component:(0,$.jsx)(dq,{})},{name:`SmileOutlined`,label:`笑脸`,component:(0,$.jsx)(bq,{})},{name:`SoundOutlined`,label:`声音`,component:(0,$.jsx)(Eq,{})},{name:`TagOutlined`,label:`标签`,component:(0,$.jsx)(Fq,{})},{name:`TeamOutlined`,label:`团队`,component:(0,$.jsx)(Rq,{})},{name:`ToolOutlined`,label:`工具`,component:(0,$.jsx)(Wq,{})},{name:`TruckOutlined`,label:`物流`,component:(0,$.jsx)(Xq,{})},{name:`VideoCameraOutlined`,label:`视频`,component:(0,$.jsx)(aJ,{})},{name:`WalletOutlined`,label:`钱包`,component:(0,$.jsx)(cJ,{})},{name:`BankOutlined`,label:`银行`,component:(0,$.jsx)(qU,{})},{name:`BuildOutlined`,label:`建筑`,component:(0,$.jsx)(aW,{})},{name:`ExperimentOutlined`,label:`实验`,component:(0,$.jsx)(nG,{})},{name:`HighlightOutlined`,label:`高亮`,component:(0,$.jsx)(kG,{})},{name:`IdcardOutlined`,label:`名片`,component:(0,$.jsx)(RG,{})},{name:`MedicineBoxOutlined`,label:`医药`,component:(0,$.jsx)(nK,{})},{name:`ReadOutlined`,label:`阅读`,component:(0,$.jsx)(FK,{})},{name:`RestOutlined`,label:`休息`,component:(0,$.jsx)(RK,{})},{name:`SketchOutlined`,label:`钻石`,component:(0,$.jsx)(mq,{})},{name:`SolutionOutlined`,label:`方案`,component:(0,$.jsx)(Cq,{})}],GY=Object.fromEntries(WY.map(e=>[e.name,e.component]));function KY(e){return GY[e]||(0,$.jsx)(FU,{})}function qY(e){try{let t=typeof e==`string`?JSON.parse(e):e;if(!Array.isArray(t))return{skillItems:[],optionGroups:[]};let n=[],r=[];for(let e of t)e&&e.type===`option_group`&&e.name&&Array.isArray(e.options)?r.push({name:e.name,options:e.options}):e&&e.key&&e.label&&n.push({key:e.key,label:e.label});return{skillItems:n,optionGroups:r}}catch{return{skillItems:[],optionGroups:[]}}}var JY=({value:e,onChange:t})=>{let n=WY.find(t=>t.name===e);return(0,$.jsx)(Ej,{trigger:[`click`],dropdownRender:()=>(0,$.jsx)(`div`,{style:{background:`#fff`,borderRadius:12,padding:12,width:360,boxShadow:`0 12px 40px rgba(0,0,0,0.15)`,border:`1px solid #f0f0f5`},children:(0,$.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(8, 1fr)`,gap:4},children:WY.map(n=>(0,$.jsx)(`div`,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),t?.(n.name)},title:n.label,style:{width:40,height:40,borderRadius:8,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,fontSize:18,transition:`all 0.15s`,background:e===n.name?`#6366f1`:`transparent`,color:e===n.name?`#fff`:`#64748b`,border:e===n.name?`none`:`1px solid transparent`},onMouseEnter:t=>{e!==n.name&&(t.currentTarget.style.background=`#f1f5f9`)},onMouseLeave:t=>{e!==n.name&&(t.currentTarget.style.background=`transparent`)},children:n.component},n.name))})}),children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,padding:`8px 12px`,borderRadius:8,border:`1px solid #d9d9d9`,cursor:`pointer`,height:40},children:[e?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{style:{fontSize:18,color:`#6366f1`},children:KY(e)}),(0,$.jsx)(`span`,{style:{color:`#64748b`,fontSize:13},children:n?.label||e})]}):(0,$.jsx)(`span`,{style:{color:`#bfbfbf`,fontSize:13},children:`选择图标`}),(0,$.jsx)(UC,{style:{fontSize:10,color:`#bfbfbf`,marginLeft:`auto`}})]})})},YY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)({open:!1,item:null}),[c]=Z.useForm(),l=async()=>{r(!0);try{t((await YJ()).map(e=>{let{skillItems:t,optionGroups:n}=qY(e.skills);return{id:e.id,key:e.key,label:e.label,icon:e.icon||``,description:e.description||``,skills:JSON.stringify(t),optionGroups:n,isActive:e.is_active??e.isActive??!0,sortOrder:e.sort_order??e.sortOrder??0}}))}catch{bF.error(`加载行业配置失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{l()},[]);let u=async()=>{try{let e=await c.validateFields();a(!0);let t=[];e.skills_wentutujie?.trim()&&t.push({type:`skill`,key:`文图理解生成视频提示词`,label:e.skills_wentutujie.trim()}),e.skills_wentutujie_image?.trim()&&t.push({type:`skill`,key:`文图理解生成图片提示词`,label:e.skills_wentutujie_image.trim()});let n=(e.optionGroups||[]).filter(e=>e?.name?.trim()).map(e=>({name:e.name.trim(),options:(e.options||[]).filter(e=>e?.trim())})).filter(e=>e.options.length>0);for(let e of n)t.push({type:`option_group`,name:e.name,options:e.options});let r={key:e.key,label:e.label,icon:e.icon||``,description:e.description||``,skills:t,is_active:e.is_active??!0,sort_order:e.sort_order??0};o.item?.id?(await XJ({id:o.item.id,...r}),bF.success(`已更新`)):(await XJ(r),bF.success(`已添加`)),s({open:!1,item:null}),c.resetFields(),l()}catch(e){if(e?.errorFields)return;bF.error(e?.message||`保存失败`)}finally{a(!1)}},d=async e=>{try{await ZJ(e),bF.success(`已删除`),l()}catch(e){bF.error(e?.message||`删除失败`)}},f=e=>{s({open:!0,item:e||null});let t=``,n=``,r=[];if(e){try{let r=JSON.parse(e.skills);if(Array.isArray(r))for(let e of r)(e.key===`文图理解生成视频提示词`||e.key===`文图理解`)&&(t=e.label||``),e.key===`文图理解生成图片提示词`&&(n=e.label||``)}catch{}r=e.optionGroups.length>0?e.optionGroups:[{name:``,options:[]}]}e?c.setFieldsValue({key:e.key,label:e.label,icon:e.icon||``,description:e.description,skills_wentutujie:t,skills_wentutujie_image:n,optionGroups:r,is_active:e.isActive,sort_order:e.sortOrder}):(c.resetFields(),c.setFieldsValue({is_active:!0,sort_order:0,optionGroups:[{name:``,options:[]}]}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(FU,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`行业与技能配置`}),(0,$.jsxs)(CV,{color:`purple`,children:[e.length,` 个行业`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>f(),style:{borderRadius:8},children:`添加行业`})]}),(0,$.jsx)(uV,{columns:[{title:`行业`,key:`industry`,width:180,render:(e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:10,background:`#f1f5f9`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:18,color:`#6366f1`,flexShrink:0},children:KY(t.icon)}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.label}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.key})]})]})},{title:`描述`,dataIndex:`description`,ellipsis:!0},{title:`选项配置`,key:`optionGroups`,width:260,render:(e,t)=>!t.optionGroups||t.optionGroups.length===0?(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#cbd5e1`},children:`未配置`}):(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4},children:t.optionGroups.map((e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(CV,{color:`blue`,style:{margin:0,fontSize:11},children:e.name}),(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#64748b`},children:[e.options.slice(0,3).join(`、`),e.options.length>3?`...${e.options.length}项`:``]})]},t))})},{title:`文图理解生成视频提示词`,dataIndex:`skills`,ellipsis:!0,render:e=>{try{let t=JSON.parse(e);if(Array.isArray(t)){let e=t.find(e=>e.key===`文图理解生成视频提示词`||e.key===`文图理解`);if(e)return(0,$.jsx)(Q.Text,{ellipsis:!0,style:{fontSize:12},children:e.label})}}catch{}return(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`})}},{title:`文图理解生成图片提示词`,dataIndex:`skills`,ellipsis:!0,render:e=>{try{let t=JSON.parse(e);if(Array.isArray(t)){let e=t.find(e=>e.key===`文图理解生成图片提示词`);if(e)return(0,$.jsx)(Q.Text,{ellipsis:!0,style:{fontSize:12},children:e.label})}}catch{}return(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`})}},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CV,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>f(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除该行业?`,onConfirm:()=>d(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(FU,{}),o.item?`编辑行业`:`添加行业`]}),open:o.open,onOk:u,onCancel:()=>{s({open:!1,item:null}),c.resetFields()},okText:`保存`,cancelText:`取消`,width:640,confirmLoading:i,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`key`,label:`行业标识`,style:{flex:1},rules:[{required:!0,message:`请输入标识`}],children:(0,$.jsx)(QN,{placeholder:`例如:ecommerce`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`label`,label:`行业名称`,style:{flex:1},rules:[{required:!0,message:`请输入名称`}],children:(0,$.jsx)(QN,{placeholder:`例如:电商`,size:`large`})})]}),(0,$.jsx)(Z.Item,{name:`icon`,label:`行业图标`,children:(0,$.jsx)(JY,{})}),(0,$.jsx)(Z.Item,{name:`description`,label:`行业描述`,children:(0,$.jsx)(QN.TextArea,{rows:2,placeholder:`行业描述`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`skills_wentutujie`,label:`文图理解生成视频提示词`,extra:`用于LLM优化视频提示词的系统指令,根据行业特点引导AI理解文案与画面的关系`,children:(0,$.jsx)(QN.TextArea,{rows:3,placeholder:`请输入文图理解生成视频提示词,例如: -你是一位专业的电商视频文案专家,擅长将产品卖点转化为视觉语言`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`skills_wentutujie_image`,label:`文图理解生成图片提示词`,extra:`用于LLM优化图片提示词的系统指令,根据行业特点引导AI理解文案与画面的关系`,children:(0,$.jsx)(QN.TextArea,{rows:3,placeholder:`请输入文图理解生成图片提示词,例如: -你是一位专业的电商图片文案专家,擅长将产品卖点转化为图片生成提示词`,size:`large`})}),(0,$.jsxs)(`div`,{style:{marginBottom:8},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13},children:`行业选项配置`}),(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,marginLeft:8},children:`添加选项组,每组包含名称和多个选项,前台将显示为下拉选择`})]}),(0,$.jsx)(Z.List,{name:`optionGroups`,children:(e,{add:t,remove:n})=>(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8,marginBottom:16},children:[e.map(({key:e,name:t,...r})=>(0,$.jsxs)(`div`,{style:{display:`flex`,gap:8,alignItems:`flex-start`,padding:`10px 12px`,borderRadius:10,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,gap:8},children:[(0,$.jsx)(Z.Item,{...r,name:[t,`name`],label:`选项名称`,style:{marginBottom:0},rules:[{required:!0,message:`请输入选项名称`}],children:(0,$.jsx)(QN,{placeholder:`例如:视频风格`,size:`middle`,style:{borderRadius:8}})}),(0,$.jsx)(Z.Item,{...r,name:[t,`options`],label:`选项内容`,style:{marginBottom:0},children:(0,$.jsx)(ZC,{mode:`tags`,size:`middle`,placeholder:`输入选项后回车添加`,style:{borderRadius:8},tokenSeparators:[`,`,`,`,`、`]})})]}),(0,$.jsx)(cK,{onClick:()=>n(t),style:{color:`#ef4444`,fontSize:16,marginTop:34,cursor:`pointer`,flexShrink:0}})]},e)),(0,$.jsx)(mD,{type:`dashed`,onClick:()=>t(),block:!0,icon:(0,$.jsx)(_O,{}),style:{borderRadius:8,height:36},children:`添加选项组`})]})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`is_active`,label:`启用状态`,valuePropName:`checked`,initialValue:!0,style:{flex:1},children:(0,$.jsx)(yI,{})}),(0,$.jsx)(Z.Item,{name:`sort_order`,label:`排序`,initialValue:0,style:{flex:1},children:(0,$.jsx)(QN,{type:`number`,size:`large`})})]})]})})]})};function XY(e){if(Array.isArray(e))return e;if(typeof e==`string`)try{return JSON.parse(e)}catch{return[]}return[]}var ZY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)({open:!1,engine:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t((await QJ()).map(e=>({...e,supportedRatios:XY(e.supportedRatios),supportedResolutions:XY(e.supportedResolutions),supportedDurations:XY(e.supportedDurations)})))}catch{bF.error(`加载视频引擎失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={name:e.name,provider:e.provider,api_base:e.apiBase,api_key:e.apiKey,model_name:e.modelName,supported_ratios:JSON.stringify(e.supportedRatios||[]),supported_resolutions:JSON.stringify(e.supportedResolutions||[]),supported_durations:JSON.stringify(e.supportedDurations||[]),is_active:e.isActive??!0,priority:e.priority??0};i.engine?(await $J({id:i.engine.id,...t}),bF.success(`已更新`)):(await $J(t),bF.success(`已添加`)),a({open:!1,engine:null}),o.resetFields(),s()}catch(e){if(e?.errorFields)return;bF.error(e?.message||`保存失败`)}},l=async e=>{try{await eY(e),bF.success(`已删除`),s()}catch{bF.error(`删除失败`)}},u=e=>{a({open:!0,engine:e||null}),e?o.setFieldsValue(e):(o.resetFields(),o.setFieldsValue({isActive:!0,priority:0,supportedRatios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],supportedResolutions:[`480p`,`720p`,`1080p`],supportedDurations:[4,5,6,7,8,9,10,11,12,13,14,15]}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(kK,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`视频引擎配置`}),(0,$.jsxs)(CV,{color:`purple`,children:[e.length,` 个引擎`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加引擎`})]}),(0,$.jsx)(uV,{columns:[{title:`引擎名称`,key:`name`,width:180,render:(e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:8,background:t.isActive?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`linear-gradient(135deg, #94a3b8, #cbd5e1)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:16},children:(0,$.jsx)(kK,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.name}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.provider})]})]})},{title:`支持比例`,dataIndex:`supportedRatios`,width:200,render:e=>(0,$.jsx)(wj,{size:2,wrap:!0,children:e.map(e=>(0,$.jsx)(CV,{children:e},e))})},{title:`支持分辨率`,dataIndex:`supportedResolutions`,width:150,render:e=>(0,$.jsx)(wj,{size:2,wrap:!0,children:e.map(e=>(0,$.jsx)(CV,{color:`blue`,children:e},e))})},{title:`支持时长`,dataIndex:`supportedDurations`,width:120,render:e=>(0,$.jsx)(CV,{color:`orange`,children:e?.length?`${Math.min(...e)}-${Math.max(...e)}s`:`-`})},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CV,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(kK,{}),i.engine?`编辑引擎`:`添加引擎`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,engine:null}),o.resetFields()},okText:`保存`,cancelText:`取消`,width:620,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`name`,label:`引擎名称`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(QN,{placeholder:`Seedance 2.0`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`provider`,label:`提供商`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`ark`,label:`火山引擎 (Ark)`}]})})]}),(0,$.jsx)(Z.Item,{name:`apiBase`,label:`API基础地址`,rules:[{required:!0}],children:(0,$.jsx)(QN,{placeholder:`https://ark.cn-beijing.volces.com/api/v3`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`apiKey`,label:`API Key`,children:(0,$.jsx)(QN.Password,{placeholder:`sk-****`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`modelName`,label:`模型名称`,children:(0,$.jsx)(QN,{placeholder:`doubao-seedance-2-0-260128`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`supportedRatios`,label:`支持比例`,children:(0,$.jsx)(ZC,{mode:`multiple`,size:`large`,options:[{value:`16:9`,label:`16:9 (横屏)`},{value:`4:3`,label:`4:3 (标准)`},{value:`1:1`,label:`1:1 (方形)`},{value:`3:4`,label:`3:4 (竖版)`},{value:`9:16`,label:`9:16 (竖屏)`},{value:`21:9`,label:`21:9 (超宽)`}]})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`supportedResolutions`,label:`支持分辨率`,style:{flex:1},children:(0,$.jsx)(ZC,{mode:`multiple`,size:`large`,options:[{value:`480p`},{value:`720p`},{value:`1080p`}]})}),(0,$.jsx)(Z.Item,{name:`supportedDurations`,label:`支持时长(秒)`,style:{flex:1},children:(0,$.jsx)(ZC,{mode:`multiple`,size:`large`,options:Array.from({length:12},(e,t)=>({value:t+4,label:`${t+4}秒`}))})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`priority`,label:`优先级`,children:(0,$.jsx)(ZC,{size:`large`,options:[{value:0,label:`0 (默认)`},{value:1,label:`1`},{value:2,label:`2`},{value:3,label:`3`},{value:5,label:`5`},{value:10,label:`10 (最高)`}]})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用状态`,valuePropName:`checked`,style:{paddingTop:30},children:(0,$.jsx)(yI,{})})]})]})})]})};function QY(e){if(Array.isArray(e))return e;if(typeof e==`string`)try{return JSON.parse(e)}catch{return[]}return[]}function $Y(e){if(e&&typeof e==`object`&&!Array.isArray(e))return e;if(typeof e==`string`)try{let t=JSON.parse(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:{}}catch{return{}}return{}}var eX={"2K":{"1:1":`2048×2048`,"4:3":`2304×1728`,"3:4":`1728×2304`,"16:9":`2560×1440`,"9:16":`1600×2848`,"3:2":`2496×1664`,"2:3":`1664×2496`,"21:9":`3024×1296`},"4K":{"1:1":`4096×4096`,"4:3":`4608×3456`,"3:4":`3520×4704`,"16:9":`5404×3040`,"9:16":`3040×5504`,"3:2":`4992×3328`,"2:3":`3328×4992`,"21:9":`6197×2656`}},tX=[`1:1`,`4:3`,`3:4`,`16:9`,`9:16`,`3:2`,`2:3`,`21:9`],nX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)({open:!1,engine:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t((await tY()).map(e=>({...e,supportedModels:QY(e.supportedModels),supportedSizes:$Y(e.supportedSizes)})))}catch{bF.error(`加载图片引擎失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={};for(let n of[`2K`,`4K`]){let r=e[`size_${n}`]||[];if(r.length>0){t[n]={};for(let e of r)t[n][e]=eX[n]?.[e]||e}}let n={name:e.name,provider:e.provider,api_base:e.apiBase,api_key:e.apiKey,model_name:e.modelName,supported_models:JSON.stringify(e.supportedModels||[]),supported_sizes:JSON.stringify(t),default_size:e.defaultSize||`2K`,generate_url:e.generateUrl||``,is_active:e.isActive??!0,priority:e.priority??0};i.engine?(await nY({id:i.engine.id,...n}),bF.success(`已更新`)):(await nY(n),bF.success(`已添加`)),a({open:!1,engine:null}),o.resetFields(),s()}catch(e){if(e?.errorFields)return;bF.error(e?.message||`保存失败`)}},l=async e=>{try{await rY(e),bF.success(`已删除`),s()}catch{bF.error(`删除失败`)}},u=e=>{if(a({open:!0,engine:e||null}),e){let t={};for(let n of[`2K`,`4K`])t[`size_${n}`]=Object.keys(e.supportedSizes?.[n]||{});o.setFieldsValue({...e,...t})}else o.resetFields(),o.setFieldsValue({isActive:!0,priority:0,supportedModels:[`doubao-seedream-5-0-260128`],defaultSize:`2K`,size_2K:tX,size_4K:tX})};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(CK,{style:{fontSize:18,color:`#10b981`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`图片引擎配置`}),(0,$.jsxs)(CV,{color:`green`,children:[e.length,` 个引擎`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加引擎`})]}),(0,$.jsx)(uV,{columns:[{title:`引擎名称`,key:`name`,width:180,render:(e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:8,background:t.isActive?`linear-gradient(135deg, #10b981, #059669)`:`linear-gradient(135deg, #94a3b8, #cbd5e1)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:16},children:(0,$.jsx)(CK,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.name}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.modelName})]})]})},{title:`2K 支持比例`,key:`sizes_2k`,width:260,render:(e,t)=>{let n=Object.keys(t.supportedSizes?.[`2K`]||{});return n.length===0?(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`}):(0,$.jsx)(wj,{size:2,wrap:!0,children:n.map(e=>(0,$.jsxs)(CV,{color:`blue`,children:[e,` `,t.supportedSizes[`2K`][e]]},e))})}},{title:`4K 支持比例`,key:`sizes_4k`,width:260,render:(e,t)=>{let n=Object.keys(t.supportedSizes?.[`4K`]||{});return n.length===0?(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`}):(0,$.jsx)(wj,{size:2,wrap:!0,children:n.map(e=>(0,$.jsxs)(CV,{color:`purple`,children:[e,` `,t.supportedSizes[`4K`][e]]},e))})}},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CV,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:1e3}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(CK,{}),i.engine?`编辑引擎`:`添加引擎`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,engine:null}),o.resetFields()},okText:`保存`,cancelText:`取消`,width:680,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`name`,label:`引擎名称`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(QN,{placeholder:`豆包文生图`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`provider`,label:`提供商`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`ark`,label:`火山引擎 (Ark)`}]})})]}),(0,$.jsx)(Z.Item,{name:`apiBase`,label:`API基础地址`,rules:[{required:!0}],children:(0,$.jsx)(QN,{placeholder:`https://ark.cn-beijing.volces.com/api/v3`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`apiKey`,label:`API Key`,children:(0,$.jsx)(QN.Password,{placeholder:`sk-****`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`modelName`,label:`默认模型`,children:(0,$.jsx)(QN,{placeholder:`doubao-seedream-5-0-260128`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`supportedModels`,label:`支持模型列表`,children:(0,$.jsx)(ZC,{mode:`tags`,size:`large`,placeholder:`输入模型ID后回车添加`,tokenSeparators:[`,`,`,`],options:[{value:`doubao-seedream-5-0-260128`}]})}),(0,$.jsxs)(`div`,{style:{background:`#f8f9fc`,borderRadius:10,padding:16,marginBottom:8},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:`尺寸配置`}),(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,marginLeft:8},children:`勾选每个档位支持的比例,前台选择后传对应像素值给SDK`})]}),[`2K`,`4K`].map(e=>(0,$.jsxs)(`div`,{style:{background:`#fafbfc`,borderRadius:10,padding:`12px 16px`,marginBottom:12,border:`1px solid #f0f0f5`},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13,color:e===`2K`?`#3b82f6`:`#8b5cf6`},children:e}),(0,$.jsx)(Z.Item,{name:`size_${e}`,style:{marginTop:8,marginBottom:0},children:(0,$.jsx)(iA.Group,{style:{width:`100%`},children:(0,$.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(4, 1fr)`,gap:`6px 0`},children:tX.map(t=>(0,$.jsxs)(iA,{value:t,style:{fontSize:12},children:[t,` `,(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:11},children:eX[e]?.[t]})]},t))})})})]},e)),(0,$.jsx)(Z.Item,{name:`defaultSize`,label:`默认尺寸档位`,children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`2K`,label:`2K`},{value:`4K`,label:`4K`}]})}),(0,$.jsx)(Z.Item,{name:`generateUrl`,label:`生成接口地址`,children:(0,$.jsx)(QN,{placeholder:`https://ark.cn-beijing.volces.com/api/v3/images/generations`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`priority`,label:`优先级`,children:(0,$.jsx)(ZC,{size:`large`,options:[{value:0,label:`0 (默认)`},{value:1,label:`1`},{value:2,label:`2`},{value:3,label:`3`},{value:5,label:`5`},{value:10,label:`10 (最高)`}]})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用状态`,valuePropName:`checked`,style:{paddingTop:30},children:(0,$.jsx)(yI,{})})]})]})})]})},rX=[`2K`,`4K`],iX=[`480p`,`720p`,`1080p`],aX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)({open:!1,ratio:null}),[c]=Z.useForm(),[l,u]=(0,x.useState)(10),[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(!1),h=Z.useWatch(`genType`,c)||`video`,g=Z.useWatch(`modelConfigId`,c),_=async()=>{a(!0);try{let[e,n,i]=await Promise.all([iY(),GJ(),DY()]),a=(i?.engine?.image||[]).map(e=>({...e,genType:`image`})),o=(i?.engine?.video||[]).map(e=>({...e,genType:`video`}));t(e),r([...o,...a]);let s=n.find(e=>e.key===`text_credits_per_1000_tokens`);s&&(u(Number(s.value)||10),f({id:s.id}))}catch{bF.error(`加载积分比例失败`)}finally{a(!1)}};(0,x.useEffect)(()=>{_()},[]);let v=(0,x.useMemo)(()=>n.filter(e=>e.genType===h).map(e=>({value:e.id,label:`${e.name}${e.modelName?`(${e.modelName})`:``}`})),[n,h]),y=(0,x.useMemo)(()=>n.find(e=>e.id===g&&e.genType===h),[n,h,g]),b=(0,x.useMemo)(()=>{if(h===`image`){let e=y?.supportedSizes?Object.keys(y.supportedSizes):[];return(e.length?e:rX).map(e=>({value:e,label:e}))}let e=y?.supportedResolutions||[];return(e.length?e:iX).map(e=>({value:e,label:e}))},[h,y]),S=(e,t)=>n.find(n=>n.id===e&&(!t||n.genType===t))?.name||e,C=async()=>{try{let e=await c.validateFields(),t={model_config_id:e.modelConfigId,gen_type:e.genType,resolution:e.resolution,ratio:e.ratio,base_credits:e.baseCredits,per_second_credits:e.genType===`image`?0:e.perSecondCredits||0};o.ratio?(await aY({id:o.ratio.id,...t}),bF.success(`已更新`)):(await aY(t),bF.success(`已添加`)),s({open:!1,ratio:null}),c.resetFields(),_()}catch(e){if(e?.errorFields)return;bF.error(e?.message||`保存失败`)}},w=async e=>{try{await oY(e),bF.success(`已删除`),_()}catch{bF.error(`删除失败`)}},T=async()=>{if(d){m(!0);try{await KJ(d.id,String(l)),bF.success(`文字积分费率已更新`)}catch(e){bF.error(e?.message||`保存失败`)}finally{m(!1)}}},E=e=>{s({open:!0,ratio:e||null}),e?c.setFieldsValue({modelConfigId:e.modelConfigId,genType:e.genType===`image`?`image`:`video`,resolution:e.resolution,ratio:e.ratio,baseCredits:e.baseCredits,perSecondCredits:e.perSecondCredits}):(c.resetFields(),c.setFieldsValue({genType:`video`,ratio:1,baseCredits:60,perSecondCredits:2}))};return(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16},children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(_G,{style:{fontSize:18,color:`#f59e0b`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`文字积分费率`})]}),(0,$.jsx)(mD,{type:`primary`,loading:p,onClick:T,style:{borderRadius:8},children:`保存`})]}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{display:`block`,marginBottom:16,fontSize:13},children:`文字积分计算公式:ceil(总token数 x 费率 / 1000),最低1积分`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[(0,$.jsx)(Q.Text,{children:`每1000 token消耗积分:`}),(0,$.jsx)($A,{min:0,max:1e3,step:.01,value:l,onChange:e=>u(e||0),size:`large`,style:{width:160},addonAfter:`积分`}),(0,$.jsxs)(Q.Text,{type:`secondary`,style:{fontSize:12},children:[`示例:1000 token = `,l,` 积分,500 token = `,(500*l/1e3).toFixed(4),` 积分`]})]})]}),(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(dW,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`积分比例配置`}),(0,$.jsxs)(CV,{color:`purple`,children:[e.length,` 条规则`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>E(),style:{borderRadius:8},children:`添加比例`})]}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{display:`block`,marginBottom:16,fontSize:13},children:`视频积分公式:(基础积分 + 每秒积分 x 视频时长) x 模型倍率;图片积分公式:基础积分 x 模型倍率`}),(0,$.jsx)(uV,{columns:[{title:`类型`,dataIndex:`genType`,width:80,render:e=>(0,$.jsx)(CV,{color:e===`image`?`cyan`:`orange`,children:e===`image`?`图片`:`视频`})},{title:`引擎`,dataIndex:`modelConfigId`,width:180,render:(e,t)=>(0,$.jsx)(CV,{color:t.genType===`image`?`cyan`:`purple`,children:S(e,t.genType)})},{title:`分辨率/尺寸`,dataIndex:`resolution`,width:110,render:e=>(0,$.jsx)(CV,{color:{"480p":`blue`,"720p":`blue`,"1080p":`blue`,"4K":`green`,"2K":`green`}[e]||`default`,children:e})},{title:`倍率`,dataIndex:`ratio`,width:100,sorter:(e,t)=>e.ratio-t.ratio,render:e=>(0,$.jsxs)(Q.Text,{strong:!0,style:{color:e>=2?`#ef4444`:e>=1.5?`#f59e0b`:`#10b981`},children:[`x`,e]})},{title:`基础积分`,dataIndex:`baseCredits`,width:100,render:e=>(0,$.jsxs)(Q.Text,{children:[e,` 积分`]})},{title:`每秒积分`,dataIndex:`perSecondCredits`,width:100,render:(e,t)=>(0,$.jsx)(Q.Text,{children:t.genType===`image`?`-`:`${e} 积分/秒`})},{title:`示例计算`,key:`example`,width:120,render:(e,t)=>{let n;return n=t.genType===`image`?Math.round(t.baseCredits*t.ratio):Math.round((t.baseCredits+t.perSecondCredits*15)*t.ratio),(0,$.jsxs)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:[n,` 积分`]})}},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>E(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除?`,onConfirm:()=>w(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:i,pagination:!1,scroll:{x:860}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(dW,{}),o.ratio?`编辑比例`:`添加比例`]}),open:o.open,onOk:C,onCancel:()=>{s({open:!1,ratio:null}),c.resetFields()},okText:`保存`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`genType`,label:`生成类型`,rules:[{required:!0,message:`请选择生成类型`}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`video`,label:`视频`},{value:`image`,label:`图片`}],onChange:()=>{c.setFieldsValue({modelConfigId:void 0,resolution:void 0})}})}),(0,$.jsx)(Z.Item,{name:`modelConfigId`,label:`引擎`,rules:[{required:!0,message:`请选择引擎`}],children:(0,$.jsx)(ZC,{size:`large`,placeholder:`请选择引擎`,options:v,showSearch:!0,optionFilterProp:`label`,onChange:()=>c.setFieldsValue({resolution:void 0})})}),(0,$.jsx)(Z.Item,{name:`resolution`,label:h===`image`?`图片尺寸`:`分辨率`,rules:[{required:!0,message:h===`image`?`请选择图片尺寸`:`请选择分辨率`}],children:(0,$.jsx)(ZC,{size:`large`,placeholder:h===`image`?`请选择图片尺寸`:`请选择分辨率`,options:b})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`ratio`,label:`倍率`,style:{flex:1},rules:[{required:!0,message:`请输入倍率`}],children:(0,$.jsx)($A,{min:.1,max:10,step:.1,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`baseCredits`,label:`基础积分`,style:{flex:1},rules:[{required:!0,message:`请输入基础积分`}],children:(0,$.jsx)($A,{min:0,max:1e3,style:{width:`100%`},size:`large`})}),h!==`image`&&(0,$.jsx)(Z.Item,{name:`perSecondCredits`,label:`每秒积分`,style:{flex:1},rules:[{required:!0,message:`请输入每秒积分`}],children:(0,$.jsx)($A,{min:0,max:100,style:{width:`100%`},size:`large`})})]})]})})]})},oX={HomeOutlined:(0,$.jsx)(FG,{}),PlayCircleOutlined:(0,$.jsx)(kK,{}),WalletOutlined:(0,$.jsx)(cJ,{}),RobotOutlined:(0,$.jsx)(VK,{}),SettingOutlined:(0,$.jsx)(aq,{}),BellOutlined:(0,$.jsx)($U,{}),UserOutlined:(0,$.jsx)(nJ,{}),AppstoreOutlined:(0,$.jsx)(FU,{}),FileTextOutlined:(0,$.jsx)(kj,{}),StarOutlined:(0,$.jsx)(kq,{}),HeartOutlined:(0,$.jsx)(EG,{}),CameraOutlined:(0,$.jsx)(mW,{}),DashboardOutlined:(0,$.jsx)(WW,{}),CalculatorOutlined:(0,$.jsx)(dW,{}),DollarOutlined:(0,$.jsx)(XW,{}),GiftOutlined:(0,$.jsx)(bG,{}),ThunderboltOutlined:(0,$.jsx)(Vq,{}),FireOutlined:(0,$.jsx)(dG,{}),CloudOutlined:(0,$.jsx)(EW,{}),SmileOutlined:(0,$.jsx)(bq,{}),TrophyOutlined:(0,$.jsx)(qq,{}),RocketOutlined:(0,$.jsx)(WK,{}),BulbOutlined:(0,$.jsx)(cW,{}),CodeOutlined:(0,$.jsx)(MW,{}),PictureOutlined:(0,$.jsx)(CK,{}),VideoCameraOutlined:(0,$.jsx)(aJ,{}),AudioOutlined:(0,$.jsx)(WU,{}),MailOutlined:(0,$.jsx)($G,{}),PhoneOutlined:(0,$.jsx)(bK,{}),GlobalOutlined:(0,$.jsx)(CG,{}),ShoppingCartOutlined:(0,$.jsx)(cq,{}),TeamOutlined:(0,$.jsx)(Rq,{}),BarChartOutlined:(0,$.jsx)(XU,{}),PieChartOutlined:(0,$.jsx)(EK,{}),LineChartOutlined:(0,$.jsx)(WG,{}),SecurityScanOutlined:(0,$.jsx)($K,{}),ApiOutlined:(0,$.jsx)(MU,{}),DatabaseOutlined:(0,$.jsx)(qW,{}),CloudServerOutlined:(0,$.jsx)(kW,{}),MenuOutlined:(0,$.jsx)(aK,{})},sX=Object.keys(oX).map(e=>({value:e,label:(0,$.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[oX[e],` `,e.replace(`Outlined`,``)]})})),cX={page:`blue`,group:`purple`},lX={page:`页面`,group:`分组`},uX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(`frontend`),[o,s]=(0,x.useState)({open:!1,menu:null}),[c]=Z.useForm(),l=async()=>{r(!0);try{t(await pY())}catch{}r(!1)};(0,x.useEffect)(()=>{l()},[]);let u=async()=>{try{let e=await c.validateFields(),t={label:e.label,path:e.path||``,icon:e.icon||``,sort_order:e.sortOrder??0,is_active:e.isActive??!0,parent_id:e.parentId||null,menu_type:e.menuType||`page`,menu_target:e.menuTarget||`frontend`,is_default:e.isDefault??!1};o.menu?.id?await mY({...t,id:o.menu.id}):await mY(t),bF.success(o.menu?.id?`菜单已更新`:`菜单已添加`),s({open:!1,menu:null}),c.resetFields(),l()}catch{}},d=async e=>{try{await hY(e),bF.success(`菜单已删除`),l()}catch(e){bF.error(e?.message||`删除失败`)}},f=t=>{s({open:!0,menu:t||null}),t?c.setFieldsValue({label:t.label,path:t.path,icon:t.icon,sortOrder:t.sortOrder??0,isActive:t.isActive??!0,parentId:t.parentId??``,menuType:t.menuType??`page`,menuTarget:t.menuTarget??`frontend`,isDefault:t.isDefault??!1}):(c.resetFields(),c.setFieldsValue({icon:`HomeOutlined`,sortOrder:e.length,isActive:!0,menuType:`page`,menuTarget:i,isDefault:!1}))},p=e.filter(e=>{let t=e.menuTarget??`frontend`;return t===i||t===`both`}),m=[{value:``,label:`顶级菜单`},...p.filter(e=>e.menuType===`group`).map(e=>({value:e.id,label:e.label}))],h=[],g=p.filter(e=>!e.parentId),_={};p.filter(e=>e.parentId).forEach(e=>{let t=e.parentId;_[t]||(_[t]=[]),_[t].push(e)}),g.sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)).forEach(e=>{h.push({...e,_depth:0}),(_[e.id]||[]).sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)).forEach(e=>{h.push({...e,_depth:1})})});let v=[{title:`排序`,dataIndex:`sortOrder`,width:60},{title:`菜单名称`,key:`label`,width:180,render:(e,t)=>(0,$.jsxs)(`span`,{style:{paddingLeft:t._depth*20,fontWeight:t._depth===0?600:400},children:[t._depth===1&&(0,$.jsx)(`span`,{style:{color:`#cbd5e1`,marginRight:4},children:`└`}),t.label]})},{title:`路由路径`,dataIndex:`path`,width:160,render:e=>e||(0,$.jsx)(Q.Text,{type:`secondary`,children:`-`})},{title:`图标`,dataIndex:`icon`,width:100,render:e=>e&&oX[e]?(0,$.jsx)(`span`,{style:{fontSize:16,color:`#6366f1`},children:oX[e]}):`-`},{title:`类型`,dataIndex:`menuType`,width:80,render:e=>(0,$.jsx)(CV,{color:cX[e]||`default`,children:lX[e]||e})},{title:`状态`,dataIndex:`isActive`,width:70,render:e=>(0,$.jsx)(`span`,{style:{color:e?`#22c55e`:`#94a3b8`},children:e?`启用`:`停用`})},...i===`frontend`?[{title:`默认显示`,dataIndex:`isDefault`,width:80,render:e=>e?(0,$.jsx)(CV,{color:`green`,children:`默认`}):(0,$.jsx)(Q.Text,{type:`secondary`,children:`-`})}]:[],{title:`操作`,key:`action`,width:150,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>f(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除该菜单?`,onConfirm:()=>d(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}];return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(aK,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`菜单配置`})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>f(),style:{borderRadius:8},children:`添加菜单`})]}),(0,$.jsx)(vk,{activeKey:i,onChange:a,items:[{key:`frontend`,label:`前台菜单`},{key:`admin`,label:`后台菜单`}]}),(0,$.jsx)(uV,{columns:v,dataSource:h,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aK,{}),o.menu?.id?`编辑菜单`:`添加菜单`]}),open:o.open,onOk:u,onCancel:()=>{s({open:!1,menu:null}),c.resetFields()},okText:`确认`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`label`,label:`菜单名称`,rules:[{required:!0,message:`请输入菜单名称`}],children:(0,$.jsx)(QN,{placeholder:`例如:我的项目`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`path`,label:`路由路径`,tooltip:`分组类型可留空`,children:(0,$.jsx)(QN,{placeholder:`例如:/projects(分组可留空)`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`menuType`,label:`菜单类型`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`page`,label:`页面`},{value:`group`,label:`分组`}]})}),(0,$.jsx)(Z.Item,{name:`menuTarget`,label:`适用端`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`frontend`,label:`前台`},{value:`admin`,label:`后台`},{value:`both`,label:`两者`}]})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`icon`,label:`图标`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:sX})}),(0,$.jsx)(Z.Item,{name:`sortOrder`,label:`排序`,style:{flex:1},children:(0,$.jsx)($A,{min:0,max:100,style:{width:`100%`},size:`large`,placeholder:`默认0`})})]}),(0,$.jsx)(Z.Item,{name:`parentId`,label:`上级菜单`,children:(0,$.jsx)(ZC,{size:`large`,options:m,allowClear:!0,placeholder:`顶级菜单`})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用`,valuePropName:`checked`,children:(0,$.jsx)(yI,{})}),(0,$.jsx)(Z.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.menuTarget!==t.menuTarget,children:({getFieldValue:e})=>e(`menuTarget`)===`admin`?null:(0,$.jsx)(Z.Item,{name:`isDefault`,label:`新用户默认显示`,valuePropName:`checked`,tooltip:`开启后,新注册用户默认显示此菜单`,children:(0,$.jsx)(yI,{})})})]})})]})},dX={normal:`blue`,gift:`green`,promo:`purple`},fX={normal:`常规`,gift:`赠送`,promo:`促销`},pX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)({open:!1,item:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t((await bY()).map(e=>({id:e.id,name:e.name,credits:e.credits,price:e.price,bonusCredits:e.bonus_credits??e.bonusCredits??0,totalCredits:e.total_credits??e.totalCredits??e.credits,description:e.description,packageType:e.package_type??e.packageType??`normal`,isGift:e.is_gift??e.isGift??!1,isActive:e.is_active??e.isActive??!0,sortOrder:e.sort_order??e.sortOrder??0})))}catch{bF.error(`加载充值套餐失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={name:e.name,credits:e.credits,price:e.price,bonus_credits:e.bonusCredits||0,description:e.description||null,package_type:e.packageType||`normal`,is_gift:e.isGift||!1,is_active:e.isActive??!0,sort_order:e.sortOrder??0};i.item?.id?(await xY({id:i.item.id,...t}),bF.success(`已更新`)):(await xY(t),bF.success(`已添加`)),a({open:!1,item:null}),o.resetFields(),s()}catch{}},l=async e=>{try{await SY(e),bF.success(`已删除`),s()}catch(e){bF.error(e?.message||`删除失败`)}},u=e=>{a({open:!0,item:e||null}),e?o.setFieldsValue({name:e.name,credits:e.credits,price:e.price,bonusCredits:e.bonusCredits,description:e.description,packageType:e.packageType,isGift:e.isGift,isActive:e.isActive,sortOrder:e.sortOrder}):(o.resetFields(),o.setFieldsValue({isActive:!0,sortOrder:0,packageType:`normal`,bonusCredits:0,isGift:!1}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(bG,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`充值套餐管理`}),(0,$.jsxs)(CV,{color:`purple`,children:[e.length,` 个套餐`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加套餐`})]}),(0,$.jsx)(uV,{columns:[{title:`套餐名称`,key:`name`,width:160,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.name}),t.description&&(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.description})]})},{title:`基础积分`,dataIndex:`credits`,width:100,render:e=>(0,$.jsx)(Q.Text,{children:e.toLocaleString()})},{title:`赠送积分`,dataIndex:`bonusCredits`,width:100,render:e=>e>0?(0,$.jsxs)(CV,{color:`green`,children:[`+`,e.toLocaleString()]}):(0,$.jsx)(Q.Text,{type:`secondary`,children:`-`})},{title:`总积分`,key:`total`,width:100,render:(e,t)=>(0,$.jsx)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:(t.credits+t.bonusCredits).toLocaleString()})},{title:`价格(元)`,dataIndex:`price`,width:100,render:e=>(0,$.jsxs)(Q.Text,{strong:!0,children:[`¥`,e]})},{title:`类型`,dataIndex:`packageType`,width:80,render:e=>(0,$.jsx)(CV,{color:dX[e]||`default`,children:fX[e]||e})},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CV,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kV,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DF,{title:`确定删除?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EV,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(bG,{}),i.item?`编辑套餐`:`添加套餐`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,item:null}),o.resetFields()},okText:`保存`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`name`,label:`套餐名称`,rules:[{required:!0,message:`请输入套餐名称`}],children:(0,$.jsx)(QN,{placeholder:`例如:进阶包`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`credits`,label:`基础积分`,rules:[{required:!0,message:`请输入积分`}],style:{flex:1},children:(0,$.jsx)($A,{min:1,placeholder:`2000`,size:`large`,style:{width:`100%`}})}),(0,$.jsx)(Z.Item,{name:`price`,label:`价格(元)`,rules:[{required:!0,message:`请输入价格`}],style:{flex:1},children:(0,$.jsx)($A,{min:.01,step:1,placeholder:`168`,size:`large`,style:{width:`100%`}})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`bonusCredits`,label:`赠送积分`,initialValue:0,style:{flex:1},children:(0,$.jsx)($A,{min:0,placeholder:`0`,size:`large`,style:{width:`100%`}})}),(0,$.jsx)(Z.Item,{name:`packageType`,label:`套餐类型`,initialValue:`normal`,style:{flex:1},children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`normal`,label:`常规`},{value:`gift`,label:`赠送`},{value:`promo`,label:`促销`}]})})]}),(0,$.jsx)(Z.Item,{name:`description`,label:`描述`,children:(0,$.jsx)(QN,{placeholder:`套餐描述(可选)`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用状态`,valuePropName:`checked`,initialValue:!0,style:{flex:1},children:(0,$.jsx)(yI,{})}),(0,$.jsx)(Z.Item,{name:`isGift`,label:`是否赠送`,valuePropName:`checked`,initialValue:!1,style:{flex:1},children:(0,$.jsx)(yI,{})}),(0,$.jsx)(Z.Item,{name:`sortOrder`,label:`排序`,initialValue:0,style:{flex:1},children:(0,$.jsx)($A,{size:`large`,style:{width:`100%`}})})]})]})})]})},mX={POST:`green`,PUT:`blue`,DELETE:`red`},hX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(1),c=async e=>{a(!0);try{let n=await CY(e||o);t(n.items||[]),r(n.total||0)}catch{bF.error(`加载操作日志失败`)}finally{a(!1)}};return(0,x.useEffect)(()=>{c()},[]),(0,$.jsx)(`div`,{children:(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(MG,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`操作日志`})]}),(0,$.jsx)(mD,{icon:(0,$.jsx)(lI,{}),onClick:()=>c(),children:`刷新`})]}),(0,$.jsx)(uV,{columns:[{title:`操作人`,dataIndex:`username`,width:120,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`操作`,dataIndex:`action`,width:160,render:e=>(0,$.jsx)(Q.Text,{children:e})},{title:`方法`,dataIndex:`method`,width:80,render:e=>(0,$.jsx)(CV,{color:mX[e]||`default`,children:e})},{title:`路径`,dataIndex:`path`,width:220,ellipsis:!0,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:e})},{title:`时间`,dataIndex:`createdAt`,width:160,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:LY(e)})}],dataSource:e,rowKey:`id`,loading:i,pagination:{current:o,pageSize:20,total:n,showTotal:e=>`共 ${e} 条记录`,onChange:e=>{s(e),c(e)}},scroll:{x:800}})]})})},gX=`http://ceshi.apiforeign.minzhong.cn`,_X=e=>e?e.startsWith(`http`)?e:`${gX}${e}`:``,vX={optimizing:{color:`processing`,text:`优化中`,icon:(0,$.jsx)(um,{spin:!0})},prompt_optimized:{color:`processing`,text:`待生成`,icon:(0,$.jsx)(hj,{})},generating:{color:`warning`,text:`生成中`,icon:(0,$.jsx)(um,{spin:!0})},completed:{color:`success`,text:`已完成`,icon:(0,$.jsx)(bW,{})},failed:{color:`error`,text:`失败`,icon:(0,$.jsx)(CW,{})}},yX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(1),[c]=(0,x.useState)(20),[l,u]=(0,x.useState)(``),[d,f]=(0,x.useState)(``),[p,m]=(0,x.useState)(null),[h,g]=(0,x.useState)(null),[_,v]=(0,x.useState)(null),y=async()=>{a(!0);try{let e=await wY({userId:d||void 0,status:l||void 0,page:o,pageSize:c});t(e.items.map(e=>({id:e.id,userId:e.userId,username:e.username,projectId:e.projectId,projectName:e.projectName,originalPrompt:e.originalPrompt,optimizedPrompt:e.optimizedPrompt,duration:e.duration,aspectRatio:e.aspectRatio,resolution:e.resolution,status:e.status,videoUrl:e.videoUrl,references:e.references,creditsCost:e.creditsCost,textCreditsCost:e.textCreditsCost||0,textTokensUsed:e.textTokensUsed||0,videoTokensUsed:e.videoTokensUsed||0,errorMessage:e.errorMessage,createdAt:e.createdAt,genType:e.genType,imageSize:e.imageSize,imageUrl:e.imageUrl,imageTokensUsed:e.imageTokensUsed,imageProportion:e.imageProportion,imagePx:e.imagePx}))),r(e.total)}catch{bF.error(`加载记录失败`)}finally{a(!1)}};(0,x.useEffect)(()=>{y()},[o,l]);let b=async(e,t,n)=>{g(e);try{await TY(e,t,n),bF.success(`状态已更新`),y()}catch(e){bF.error(e?.message||`更新失败`)}finally{g(null)}};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16,flexWrap:`wrap`,gap:12},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(aJ,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`生成记录管理`}),(0,$.jsxs)(CV,{color:`purple`,children:[n,` 条记录`]})]}),(0,$.jsxs)(wj,{children:[(0,$.jsx)(ZC,{placeholder:`状态筛选`,allowClear:!0,style:{width:120},value:l||void 0,onChange:e=>{u(e||``),s(1)},options:[{value:`optimizing`,label:`优化中`},{value:`prompt_optimized`,label:`待生成`},{value:`generating`,label:`生成中`},{value:`completed`,label:`已完成`},{value:`failed`,label:`失败`}]}),(0,$.jsx)(QN,{placeholder:`用户ID搜索`,prefix:(0,$.jsx)(KC,{style:{color:`#94a3b8`}}),style:{width:200},value:d,onChange:e=>f(e.target.value),onPressEnter:()=>{s(1),y()},allowClear:!0}),(0,$.jsx)(mD,{type:`primary`,onClick:()=>{s(1),y()},style:{borderRadius:8},children:`搜索`})]})]}),(0,$.jsx)(uV,{columns:[{title:`用户`,key:`user`,width:120,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13},children:t.username}),(0,$.jsxs)(`div`,{style:{fontSize:11,color:`#94a3b8`},children:[t.userId.slice(0,8),`...`]})]})},{title:`项目`,dataIndex:`projectName`,width:120,ellipsis:!0,render:e=>(0,$.jsx)(Q.Text,{style:{fontSize:13},children:e})},{title:`类型`,dataIndex:`genType`,width:60,ellipsis:!0,render:e=>(0,$.jsx)(Q.Text,{style:{fontSize:13},children:e===`video`?`视频`:`图片`})},{title:`提示词`,key:`prompt`,ellipsis:!0,render:(e,t)=>(0,$.jsx)(Bw,{title:t.originalPrompt,placement:`topLeft`,children:(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#475569`},ellipsis:!0,children:t.originalPrompt})})},{title:`参数`,key:`params`,width:140,render:(e,t)=>t.genType===`video`?t.duration?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[(0,$.jsxs)(CV,{children:[t.duration,`s`]}),(0,$.jsx)(CV,{children:t.aspectRatio}),(0,$.jsx)(CV,{children:t.resolution})]}):(0,$.jsx)(CV,{color:`default`,children:`待配置`}):t.imageSize?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[(0,$.jsx)(CV,{children:t.imageSize}),(0,$.jsx)(CV,{children:t.imageProportion}),(0,$.jsx)(CV,{children:t.imagePx})]}):(0,$.jsx)(CV,{color:`default`,children:`待配置`})},{title:`积分`,key:`credits`,width:120,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12},children:[t.textCreditsCost>0&&(0,$.jsxs)(`div`,{style:{color:`#f59e0b`},children:[`文字: `,t.textCreditsCost]}),t.creditsCost>0&&(0,$.jsxs)(`div`,{style:{color:`#6366f1`},children:[t.genType===`video`?`视频`:`图片`,`: `,t.creditsCost]}),t.textCreditsCost===0&&t.creditsCost===0&&(0,$.jsx)(Q.Text,{style:{color:`#94a3b8`},children:`0`})]})},{title:`状态`,dataIndex:`status`,width:90,render:e=>{let t=vX[e]||{color:`default`,text:e,icon:null};return(0,$.jsx)(CV,{color:t.color,icon:t.icon,children:t.text})}},{title:`时间`,key:`time`,width:140,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12,color:`#94a3b8`},children:[(0,$.jsx)(`div`,{children:LY(t.createdAt)}),t.generatedAt&&(0,$.jsxs)(`div`,{style:{color:`#10b981`},children:[`生成: `,LY(t.generatedAt)]})]})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,wrap:!0,children:[(0,$.jsx)(mD,{size:`small`,icon:(0,$.jsx)(AN,{}),onClick:()=>m(t),children:`详情`}),t.status===`generating`&&(0,$.jsx)(mD,{size:`small`,danger:!0,loading:h===t.id,onClick:()=>{CF.confirm({title:`确认操作`,icon:(0,$.jsx)($W,{}),content:`确定将此记录标记为失败?`,onOk:()=>b(t.id,`failed`)})},children:`标记失败`}),t.status===`failed`&&(0,$.jsx)(mD,{size:`small`,type:`primary`,danger:!0,loading:h===t.id,onClick:()=>v({record:t,ratio:t.aspectRatio||`16:9`,resolution:t.resolution||`720p`,image_size:t.imageSize||`2K`}),children:`重试生成`}),t.status===`prompt_optimized`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(mD,{size:`small`,type:`primary`,loading:h===t.id,onClick:()=>v({record:t,ratio:`16:9`,resolution:`720p`,image_size:t.imageSize||`2K`}),style:{background:`#6366f1`,border:`none`},children:[`生成`,t.genType===`video`?`视频`:`图片`]}),(0,$.jsx)(mD,{size:`small`,danger:!0,loading:h===t.id,onClick:()=>{CF.confirm({title:`确认操作`,icon:(0,$.jsx)($W,{}),content:`确定将此记录标记为失败?`,onOk:()=>b(t.id,`failed`)})},children:`标记失败`})]})]})}],dataSource:e,rowKey:`id`,loading:i,scroll:{x:1100},pagination:{current:o,pageSize:c,total:n,onChange:s,showSizeChanger:!1,showTotal:e=>`共 ${e} 条`}})]}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(AN,{}),`生成记录详情`]}),open:!!p,onCancel:()=>m(null),footer:null,width:720,children:p&&(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsxs)(`div`,{style:{flex:1,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`用户`}),(0,$.jsx)(Q.Text,{strong:!0,children:p.username})]}),(0,$.jsxs)(`div`,{style:{flex:1,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`项目`}),(0,$.jsx)(Q.Text,{strong:!0,children:p.projectName})]}),(0,$.jsxs)(`div`,{style:{flex:1,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`状态`}),(0,$.jsx)(CV,{color:vX[p.status]?.color,icon:vX[p.status]?.icon,children:vX[p.status]?.text})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:(0,$.jsx)(Q.Text,{style:{fontSize:13,color:`#475569`,lineHeight:1.7},children:p.originalPrompt})})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`优化后提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(99,102,241,0.02)`,border:`1px solid rgba(99,102,241,0.1)`},children:(0,$.jsx)(Q.Text,{style:{fontSize:13,color:`#1a1a2e`,lineHeight:1.7},children:p.optimizedPrompt})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`文字积分`}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14,color:`#f59e0b`},children:p.textCreditsCost}),(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#94a3b8`},children:[` (`,p.textTokensUsed,` tokens)`]})]}),(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:[p.genType===`image`?`图片`:`视频`,`积分`]}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14,color:`#6366f1`},children:p.creditsCost}),p.videoTokensUsed>0&&(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#94a3b8`},children:[` (`,p.videoTokensUsed,` tokens)`]})]}),(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`总积分`}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:p.textCreditsCost+p.creditsCost})]})]}),p.genType===`video`&&(p.duration?(0,$.jsx)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`},children:[{label:`时长`,value:`${p.duration}秒`},{label:`比例`,value:p.aspectRatio},{label:`分辨率`,value:p.resolution}].map((e,t)=>(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e.label}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:e.value})]},t))}):(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,textAlign:`center`},children:(0,$.jsx)(CV,{color:`default`,children:`视频参数待用户配置`})})),p.genType===`image`&&(p.imageSize?(0,$.jsx)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`},children:[{label:`尺寸`,value:p.imagePx},{label:`比例`,value:p.imageProportion},{label:`分辨率`,value:p.imageSize}].map((e,t)=>(0,$.jsxs)(`div`,{style:{flex:1},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e.label}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:e.value})]},t))}):(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,textAlign:`center`},children:(0,$.jsx)(CV,{color:`default`,children:`图片参数待用户配置`})})),p.references&&p.references.length>0&&(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`参考内容`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:8,flexWrap:`wrap`},children:p.references.map((e,t)=>(0,$.jsx)(`div`,{style:{width:64,height:64,borderRadius:10,overflow:`hidden`,border:`1px solid #e2e8f0`},children:e.type===`image`?(0,$.jsx)(_N,{src:_X(e.url),style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,$.jsx)(`div`,{style:{width:`100%`,height:`100%`,background:`#1a1a2e`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:10},children:`视频`})},t))})]}),p.status===`completed`&&p.videoUrl&&(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`生成视频`}),(0,$.jsx)(`video`,{src:_X(p.videoUrl),controls:!0,style:{width:`100%`,maxHeight:360,borderRadius:12,background:`#000`}})]}),p.status===`completed`&&p.imageUrl&&p.genType===`image`&&(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`生成图片`}),(0,$.jsx)(`img`,{src:`http://ceshi.apiforeign.minzhong.cn${p.imageUrl}`,style:{width:`100%`,minHeight:100,borderRadius:12,background:`#000`}})]}),p.status===`failed`&&p.errorMessage&&(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(239,68,68,0.04)`,border:`1px solid rgba(239,68,68,0.15)`},children:(0,$.jsxs)(Q.Text,{style:{fontSize:12,color:`#ef4444`},children:[`错误信息: `,p.errorMessage]})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,fontSize:12,color:`#94a3b8`},children:[(0,$.jsxs)(`span`,{children:[`创建: `,LY(p.createdAt)]}),p.generatedAt&&(0,$.jsxs)(`span`,{children:[`生成: `,LY(p.generatedAt)]})]})]})}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[_&&(_.record.genType===`video`?(0,$.jsx)(kK,{}):(0,$.jsx)(aG,{})),_&&(_.record.genType===`video`?`生成视频`:`生成图片`)]}),open:!!_,onCancel:()=>v(null),onOk:async()=>{if(_){g(_.record.id);try{await EY(_.record.id,_.ratio,_.resolution,_.image_size),bF.success(`已提交视频生成`),v(null),y()}catch(e){bF.error(e?.message||`生成失败`)}finally{g(null)}}},okText:`提交生成`,cancelText:`取消`,confirmLoading:_?h===_.record.id:!1,width:420,children:_&&(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:16},children:_.record.genType===`video`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`时长`}),(0,$.jsxs)(Q.Text,{strong:!0,children:[_.record.duration||5,`s`]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`画面比例`}),(0,$.jsx)(ZC,{value:_.ratio,onChange:e=>v(t=>t?{...t,ratio:e}:null),style:{width:`100%`},options:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`].map(e=>({value:e,label:e}))})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`分辨率`}),(0,$.jsx)(ZC,{value:_.resolution,onChange:e=>v(t=>t?{...t,resolution:e}:null),style:{width:`100%`},options:[`480p`,`720p`,`1080p`].map(e=>({value:e,label:e}))})]})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`尺寸`}),(0,$.jsx)(Q.Text,{strong:!0,children:_.record.imagePx})]}),(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`比例`}),(0,$.jsx)(Q.Text,{strong:!0,children:_.record.imageProportion})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`分辨率`}),(0,$.jsx)(ZC,{value:_.image_size,onChange:e=>v(t=>t?{...t,image_size:e}:null),style:{width:`100%`},options:[`2K`,`4K`].map(e=>({value:e,label:e}))})]})]})})})]})},bX=`http://ceshi.apiforeign.minzhong.cn`.replace(/\/api\/?$/i,``).replace(/\/$/,``),xX=20,SX={image:`empty`,video:`empty`,videoCover:`empty`,references:{}},CX={pending:{color:`default`,text:`待处理`,icon:(0,$.jsx)(hj,{})},generating:{color:`warning`,text:`生成中`,icon:(0,$.jsx)(um,{spin:!0})},completed:{color:`success`,text:`已完成`,icon:(0,$.jsx)(bW,{})},failed:{color:`error`,text:`失败`,icon:(0,$.jsx)(CW,{})}},wX={timeout:`任务超时`,queued:`已入队`,preparing:`准备中`,creating_provider_task:`创建任务中`,waiting_remote:`等待生成`,result_ready:`结果就绪`,downloading:`下载中`,done:`完成`,download_failed:`下载失败`,polling:`轮询中`,failed:`失败`},TX={image:{text:`图片`,color:`purple`,icon:(0,$.jsx)(aG,{})},video:{text:`视频`,color:`geekblue`,icon:(0,$.jsx)(aJ,{})}},EX=e=>/^(https?:)?\/\//i.test(e)||/^(blob|data):/i.test(e),DX=e=>!!e&&/^blob:/i.test(e.trim()),OX=e=>{if(!e)return``;let t=String(e).trim();return t?EX(t)?t:bX?`${bX}${t.startsWith(`/`)?t:`/${t}`}`:t.startsWith(`/`)?t:`/${t}`:``},kX=e=>e?e.length>12?`${e.slice(0,8)}...`:e:`-`,AX=e=>e?LY(e):`-`,jX=e=>e==null||e===``,MX=e=>{if(!e||DX(e))return!1;try{let t=new URL(OX(e),window.location.origin),n=t.searchParams.get(`exp`)||t.searchParams.get(`expires`)||t.searchParams.get(`expire`)||t.searchParams.get(`expires_at`)||t.searchParams.get(`x-expires`);if(!n)return!1;let r=Number(n);if(!Number.isFinite(r))return!1;let i=r>1e10?r:r*1e3;return Date.now()>=i}catch{return!1}},NX=e=>e?DX(e)||MX(e)?`invalid`:`checking`:`empty`,PX=e=>{let t=e.url||e.mediaUrl||e.fileUrl;return typeof t==`string`&&t.trim()?t.trim():void 0},FX=e=>{let t=String(e.type||e.mediaType||e.mimeType||``).toLowerCase(),n=PX(e)?.toLowerCase()||``;return t.includes(`video`)||/\.(mp4|mov|webm|m4v)(\?|$)/i.test(n)?`video`:t.includes(`image`)||/\.(png|jpe?g|webp|gif|bmp|svg)(\?|$)/i.test(n)?`image`:t||`unknown`},IX=(e,t)=>`${t}-${PX(e)||`empty`}`,LX=(e,t=`资源`)=>DX(e)?`本地临时素材已失效`:MX(e)?`${t}链接已超时,请刷新列表或重新搜索后再查看`:`${t}加载失败,请刷新列表或重新搜索后再查看`,RX=({text:e,minHeight:t=240,compact:n=!1,action:r})=>(0,$.jsxs)(`div`,{style:{width:`100%`,minHeight:n?void 0:t,height:n?`100%`:void 0,borderRadius:n?10:12,background:`#f8f9fc`,border:`1px dashed #cbd5e1`,color:`#64748b`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:n?4:10,textAlign:`center`},children:[(0,$.jsx)(Q.Text,{style:{color:`#64748b`,fontSize:n?11:13},children:e}),r]}),zX=({label:e,value:t})=>(0,$.jsxs)(`div`,{style:{flex:1,minWidth:120},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:jX(t)?`-`:t})]}),BX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(1),[c,l]=(0,x.useState)(``),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(``),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(``),[v,y]=(0,x.useState)(``),[b,S]=(0,x.useState)(0),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(SX),[D,O]=(0,x.useState)(!1),k=(0,x.useRef)(null),A=(0,x.useCallback)(async()=>{a(!0);try{let e=await OY({genType:u||void 0,status:c||void 0,userId:g||void 0,userName:v||void 0,page:o,pageSize:xX});t(e.items||[]),r(e.total||0)}catch(e){bF.error(e?.message||`加载创作记录失败`)}finally{a(!1)}},[u,c,o,g,v]);(0,x.useEffect)(()=>{A()},[A,b]),(0,x.useEffect)(()=>{if(!C){E(SX);return}let e=(C.mediaReferences||[]).reduce((e,t,n)=>{let r=PX(t);return e[IX(t,n)]=NX(r),e},{});k.current&&(k.current.pause(),k.current.currentTime=0),O(!1),E({image:NX(C.imageUrl),video:NX(C.videoUrl),videoCover:NX(C.videoCoverUrl),references:e})},[C]);let j=()=>{s(1),_(f.trim()),y(m.trim()),S(e=>e+1)},M=(0,x.useCallback)(e=>{w(e)},[]),N=()=>{k.current&&k.current.pause(),O(!1),w(null)},P=e=>{E(t=>({...t,...e}))},F=(e,t)=>{E(n=>({...n,references:{...n.references,[e]:t}}))},I=()=>{if(C?.videoUrl){if(MX(C.videoUrl)){P({video:`invalid`}),bF.warning(`视频链接已超时,请刷新列表或重新搜索后再查看`);return}O(!0),window.setTimeout(()=>{k.current?.play().catch(()=>{O(!1),P({video:`invalid`}),bF.warning(`视频播放失败,请确认资源链接是否仍然有效`)})},0)}},L=(0,x.useMemo)(()=>[{title:`用户`,key:`user`,width:150,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13},children:t.userName||`未知用户`}),(0,$.jsx)(`div`,{style:{fontSize:11,color:`#94a3b8`},children:kX(t.userId)})]})},{title:`类型`,dataIndex:`genType`,width:90,render:e=>{let t=TX[e]||{text:e||`-`,color:`default`,icon:null};return(0,$.jsx)(CV,{color:t.color,icon:t.icon,children:t.text})}},{title:`提示词`,key:`prompt`,ellipsis:!0,render:(e,t)=>(0,$.jsx)(Bw,{title:t.originalPrompt,placement:`topLeft`,children:(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#475569`},ellipsis:!0,children:t.originalPrompt||`-`})})},{title:`参数`,key:`params`,width:180,render:(e,t)=>t.genType===`video`?t.duration||t.aspectRatio||t.resolution?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[t.duration?(0,$.jsxs)(CV,{children:[t.duration,`s`]}):null,t.aspectRatio?(0,$.jsx)(CV,{children:t.aspectRatio}):null,t.resolution?(0,$.jsx)(CV,{children:t.resolution}):null]}):(0,$.jsx)(CV,{color:`default`,children:`无参数`}):t.imageSize||t.imageProportion||t.imagePx?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[t.imageSize?(0,$.jsx)(CV,{children:t.imageSize}):null,t.imageProportion?(0,$.jsx)(CV,{children:t.imageProportion}):null,t.imagePx?(0,$.jsx)(CV,{children:t.imagePx}):null]}):(0,$.jsx)(CV,{color:`default`,children:`无参数`})},{title:`积分`,key:`credits`,width:130,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12},children:[(0,$.jsxs)(`div`,{style:{color:`#6366f1`},children:[`总: `,t.creditsCost||0]}),t.textCreditsCost>0?(0,$.jsxs)(`div`,{style:{color:`#f59e0b`},children:[`文字: `,t.textCreditsCost]}):null]})},{title:`状态`,dataIndex:`status`,width:100,render:e=>{let t=CX[e]||{color:`default`,text:e||`-`,icon:null};return(0,$.jsx)(CV,{color:t.color,icon:t.icon,children:t.text})}},{title:`阶段`,dataIndex:`pipelineStage`,width:120,render:e=>(0,$.jsx)(CV,{color:`blue`,children:wX[e]||e||`-`})},{title:`时间`,key:`time`,width:170,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12,color:`#94a3b8`},children:[(0,$.jsx)(`div`,{children:AX(t.createdAt)}),t.generatedAt?(0,$.jsxs)(`div`,{style:{color:`#10b981`},children:[`生成: `,AX(t.generatedAt)]}):null]})},{title:`操作`,key:`action`,width:90,fixed:`right`,render:(e,t)=>(0,$.jsx)(mD,{size:`small`,icon:(0,$.jsx)(AN,{}),onClick:()=>M(t),children:`详情`})}],[M]),R=C?TX[C.genType]||{text:C.genType||`-`,color:`default`,icon:null}:null,z=C?CX[C.status]||{color:`default`,text:C.status||`-`,icon:null}:null,B=()=>{if(!C||C.genType!==`image`||C.status!==`completed`)return null;if(!C.imageUrl)return(0,$.jsx)(RX,{text:`此图片任务暂无结果图片`,minHeight:260});if(T.image===`invalid`)return(0,$.jsx)(RX,{text:LX(C.imageUrl,`图片`),minHeight:260});let e=OX(C.imageUrl);return(0,$.jsxs)(`div`,{style:{position:`relative`,width:`100%`,minHeight:260,borderRadius:12,background:`#f8f9fc`,border:`1px solid #e2e8f0`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[(0,$.jsx)(`img`,{src:e,alt:`生成图片`,onLoad:()=>P({image:`valid`}),onError:()=>P({image:`invalid`}),style:{display:T.image===`valid`?`block`:`none`,width:`100%`,maxHeight:560,objectFit:`contain`,background:`#fff`}},`${C.id}-${e}`),T.image===`checking`?(0,$.jsx)(RX,{text:`图片加载检测中...`,minHeight:260}):null]})},V=()=>{if(!C||D||T.video===`invalid`)return null;let e=C.videoUrl?(0,$.jsx)(mD,{type:`primary`,shape:`circle`,size:`large`,icon:(0,$.jsx)(kK,{}),onClick:I,style:{boxShadow:`0 8px 20px rgba(15,23,42,0.25)`}}):null;if(!C.videoCoverUrl)return(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,borderRadius:12,overflow:`hidden`,background:`#f8f9fc`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(RX,{text:`此视频无封面`,minHeight:340,action:e})});if(T.videoCover===`invalid`)return(0,$.jsx)(RX,{text:LX(C.videoCoverUrl,`视频封面`),minHeight:340,action:e});let t=OX(C.videoCoverUrl);return(0,$.jsxs)(`div`,{style:{position:`absolute`,inset:0,borderRadius:12,overflow:`hidden`,background:`#f8f9fc`,border:`1px solid #e2e8f0`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[(0,$.jsx)(`img`,{src:t,alt:`视频封面`,onLoad:()=>P({videoCover:`valid`}),onError:()=>P({videoCover:`invalid`}),style:{display:T.videoCover===`valid`?`block`:`none`,width:`100%`,height:`100%`,objectFit:`contain`,background:`#000`}},`${C.id}-cover-${t}`),T.videoCover===`checking`?(0,$.jsx)(RX,{text:`视频封面加载检测中...`,minHeight:340,action:e}):null,T.videoCover===`valid`?(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(15,23,42,0.18)`},children:e}):null]})},H=()=>{if(!C||C.genType!==`video`||C.status!==`completed`)return null;if(!C.videoUrl)return(0,$.jsx)(RX,{text:`此视频任务暂无结果视频`,minHeight:340});if(T.video===`invalid`)return(0,$.jsx)(RX,{text:LX(C.videoUrl,`视频`),minHeight:340});let e=OX(C.videoUrl);return(0,$.jsxs)(`div`,{style:{position:`relative`,width:`100%`,height:340,borderRadius:12,background:`#000`,overflow:`hidden`,border:`1px solid #e2e8f0`},children:[(0,$.jsx)(`video`,{ref:k,src:e,preload:`metadata`,controls:D,onLoadedMetadata:()=>P({video:`valid`}),onCanPlay:()=>P({video:`valid`}),onPlaying:()=>{O(!0),P({video:`valid`})},onPause:()=>O(!1),onEnded:()=>O(!1),onError:()=>{O(!1),P({video:`invalid`})},style:{width:`100%`,height:`100%`,objectFit:`contain`,background:`#000`,opacity:+!!D,pointerEvents:D?`auto`:`none`}},`${C.id}-${e}`),V()]})},U=(e,t)=>{let n=PX(e),r=FX(e),i=IX(e,t),a=T.references[i]||NX(n),o=r===`image`,s=r===`video`,c=typeof e.name==`string`&&e.name?e.name:`参考素材 ${t+1}`;if(!n)return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsx)(`div`,{style:{width:94,height:94},children:(0,$.jsx)(RX,{text:`无链接`,compact:!0})}),(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})]},i);if(a===`invalid`)return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsx)(`div`,{style:{width:94,height:94},children:(0,$.jsx)(RX,{text:DX(n)?`本地临时素材已失效`:`素材不可访问`,compact:!0})}),(0,$.jsx)(Bw,{title:c,children:(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})})]},i);let l=OX(n);return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsxs)(`div`,{style:{width:94,height:94,borderRadius:10,overflow:`hidden`,border:`1px solid #e2e8f0`,background:`#f8f9fc`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[o?(0,$.jsx)(`img`,{src:l,alt:c,onLoad:()=>F(i,`valid`),onError:()=>F(i,`invalid`),style:{display:a===`valid`?`block`:`none`,width:`100%`,height:`100%`,objectFit:`cover`}}):null,s?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`video`,{src:l,preload:`metadata`,onLoadedMetadata:()=>F(i,`valid`),onError:()=>F(i,`invalid`),style:{display:`none`}}),(0,$.jsxs)(`div`,{style:{color:`#64748b`,fontSize:12,textAlign:`center`},children:[(0,$.jsx)(aJ,{}),(0,$.jsx)(`div`,{children:`视频素材`})]})]}):null,!o&&!s?(0,$.jsx)(`div`,{style:{color:`#64748b`,fontSize:12,textAlign:`center`},children:`文件素材`}):null,a===`checking`&&o?(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#f8f9fc`},children:(0,$.jsx)(um,{style:{color:`#6366f1`}})}):null]}),(0,$.jsx)(Bw,{title:c,children:(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})})]},i)};return(0,$.jsxs)(`div`,{style:{padding:24},children:[(0,$.jsx)(Mk,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aG,{}),(0,$.jsx)(`span`,{children:`创作记录管理`})]}),extra:(0,$.jsxs)(wj,{wrap:!0,children:[(0,$.jsx)(ZC,{allowClear:!0,placeholder:`状态筛选`,value:c||void 0,style:{width:140},onChange:e=>{l(e||``),s(1)},options:[{value:`generating`,label:`生成中`},{value:`completed`,label:`已完成`},{value:`failed`,label:`失败`}]}),(0,$.jsx)(ZC,{allowClear:!0,placeholder:`类型筛选`,value:u||void 0,style:{width:120},onChange:e=>{d(e||``),s(1)},options:[{value:`image`,label:`图片`},{value:`video`,label:`视频`}]}),(0,$.jsx)(QN,{placeholder:`用户ID`,value:f,onChange:e=>p(e.target.value),onPressEnter:j,style:{width:180},allowClear:!0}),(0,$.jsx)(QN,{placeholder:`用户名`,value:m,onChange:e=>h(e.target.value),onPressEnter:j,style:{width:160},allowClear:!0}),(0,$.jsx)(mD,{icon:(0,$.jsx)(KC,{}),onClick:j,children:`搜索`})]}),bordered:!1,style:{borderRadius:16},children:(0,$.jsx)(uV,{rowKey:`id`,loading:i,columns:L,dataSource:e,scroll:{x:1180},pagination:{current:o,pageSize:xX,total:n,showSizeChanger:!1,showTotal:e=>`共 ${e} 条`,onChange:e=>s(e)}})}),(0,$.jsx)(CF,{title:(0,$.jsxs)(wj,{children:[C?.genType===`video`?(0,$.jsx)(aJ,{}):(0,$.jsx)(aG,{}),(0,$.jsx)(`span`,{children:`创作记录详情`})]}),open:!!C,onCancel:N,footer:null,width:900,destroyOnClose:!0,children:C?(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:12},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12,flexWrap:`wrap`},children:[R?(0,$.jsx)(CV,{color:R.color,icon:R.icon,children:R.text}):null,z?(0,$.jsx)(CV,{color:z.color,icon:z.icon,children:z.text}):null,C.pipelineStage?(0,$.jsx)(CV,{color:`blue`,children:wX[C.pipelineStage]||C.pipelineStage}):null]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(zX,{label:`用户名称`,value:C.userName||`未知用户`}),(0,$.jsx)(zX,{label:`用户ID`,value:C.userId||`-`}),(0,$.jsx)(zX,{label:`任务ID`,value:C.id})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,lineHeight:1.6},children:C.originalPrompt||`-`})]}),C.genType===`video`?(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(zX,{label:`时长`,value:C.duration?`${C.duration}秒`:`-`}),(0,$.jsx)(zX,{label:`画面比例`,value:C.aspectRatio||`-`}),(0,$.jsx)(zX,{label:`分辨率`,value:C.resolution||`-`})]}):(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(zX,{label:`图片档位`,value:C.imageSize||`-`}),(0,$.jsx)(zX,{label:`图片比例`,value:C.imageProportion||`-`}),(0,$.jsx)(zX,{label:`像素尺寸`,value:C.imagePx||`-`})]}),C.engineSnapshot?(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`引擎快照`}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,flexWrap:`wrap`},children:[(0,$.jsx)(zX,{label:`引擎名称`,value:C.engineSnapshot.name||`-`}),(0,$.jsx)(zX,{label:`服务商`,value:C.engineSnapshot.provider||`-`}),(0,$.jsx)(zX,{label:`模型`,value:C.engineSnapshot.modelName||`-`}),(0,$.jsx)(zX,{label:`引擎ID`,value:C.engineSnapshot.id||C.engineId||`-`})]})]}):null,(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(zX,{label:`总积分`,value:(0,$.jsx)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:C.creditsCost||0})}),(0,$.jsx)(zX,{label:`文字积分`,value:`${C.textCreditsCost||0} (${C.textTokensUsed||0} tokens)`}),(0,$.jsx)(zX,{label:`图片 tokens`,value:C.imageTokensUsed??0}),(0,$.jsx)(zX,{label:`视频 tokens`,value:C.videoTokensUsed??0})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(zX,{label:`第三方任务ID`,value:C.providerTaskId||C.seedanceTaskId||`-`}),(0,$.jsx)(zX,{label:`轮询次数`,value:C.pollCount??0}),(0,$.jsx)(zX,{label:`重试次数`,value:C.retryCount??0})]}),!C?.mediaReferences||C.mediaReferences.length===0?null:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`参考内容`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:10,flexWrap:`wrap`},children:C.mediaReferences.map((e,t)=>U(e,t))})]}),C.status===`completed`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:C.genType===`video`?`生成视频`:`生成图片`}),C.genType===`video`?H():B()]}):null,C.status===`failed`&&C.errorMessage?(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(239,68,68,0.04)`,border:`1px solid rgba(239,68,68,0.15)`},children:(0,$.jsxs)(Q.Text,{style:{fontSize:12,color:`#ef4444`},children:[`错误信息: `,C.errorMessage]})}):null,(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,fontSize:12,color:`#94a3b8`,flexWrap:`wrap`},children:[(0,$.jsxs)(`span`,{children:[`创建: `,AX(C.createdAt)]}),(0,$.jsxs)(`span`,{children:[`生成: `,AX(C.generatedAt)]})]})]}):(0,$.jsx)(xC,{description:`暂无详情`})})]})},VX=({children:e})=>{let{user:t,loading:n,checkAuth:r}=kY();return(0,x.useEffect)(()=>{!localStorage.getItem(`auth_token`)&&!n&&!t&&(window.location.href=`/login`)},[t,n]),n?(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100vh`},children:(0,$.jsx)(aF,{size:`large`})}):t?(0,$.jsx)($.Fragment,{children:e}):(window.location.href=`/login`,null)};(0,Em.createRoot)(document.getElementById(`root`)).render((0,$.jsx)(()=>{let{checkAuth:e}=kY();return(0,x.useEffect)(()=>{e()},[]),(0,$.jsx)(Kp,{locale:vJ.default,theme:{token:{colorPrimary:`#6366f1`,borderRadius:8},components:{Button:{controlHeight:36,controlHeightLG:44},Card:{boxShadow:`0 1px 3px rgba(0,0,0,0.04)`},Table:{headerBg:`#fafbfc`}}},children:(0,$.jsx)(fx,{children:(0,$.jsx)(mn,{children:(0,$.jsxs)(Et,{children:[(0,$.jsx)(wt,{path:`/login`,element:(0,$.jsx)(FY,{})}),(0,$.jsxs)(wt,{path:`/`,element:(0,$.jsx)(VX,{children:(0,$.jsx)(PY,{})}),children:[(0,$.jsx)(wt,{index:!0,element:(0,$.jsx)(IY,{})}),(0,$.jsx)(wt,{path:`users`,element:(0,$.jsx)(RY,{})}),(0,$.jsx)(wt,{path:`credit-records`,element:(0,$.jsx)(HY,{})}),(0,$.jsx)(wt,{path:`models`,element:(0,$.jsx)(zY,{})}),(0,$.jsx)(wt,{path:`credit-ratios`,element:(0,$.jsx)(aX,{})}),(0,$.jsx)(wt,{path:`video-engines`,element:(0,$.jsx)(ZY,{})}),(0,$.jsx)(wt,{path:`image-engines`,element:(0,$.jsx)(nX,{})}),(0,$.jsx)(wt,{path:`industries`,element:(0,$.jsx)(YY,{})}),(0,$.jsx)(wt,{path:`menu-configs`,element:(0,$.jsx)(uX,{})}),(0,$.jsx)(wt,{path:`recharge-packages`,element:(0,$.jsx)(pX,{})}),(0,$.jsx)(wt,{path:`payment`,element:(0,$.jsx)(UY,{})}),(0,$.jsx)(wt,{path:`settings`,element:(0,$.jsx)(BY,{})}),(0,$.jsx)(wt,{path:`notifications`,element:(0,$.jsx)(VY,{})}),(0,$.jsx)(wt,{path:`operation-logs`,element:(0,$.jsx)(hX,{})}),(0,$.jsx)(wt,{path:`generation-records`,element:(0,$.jsx)(yX,{})}),(0,$.jsx)(wt,{path:`generation-ai`,element:(0,$.jsx)(BX,{})})]}),(0,$.jsx)(wt,{path:`*`,element:(0,$.jsx)(St,{to:`/`,replace:!0})})]})})})})},{})); \ No newline at end of file + `]:{zIndex:10,width:r,margin:`0 ${J(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},HV=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},UV=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...qc(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},WV=nl(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=hs(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[UV(o),LV(o),BV(o),VV(o),RV(o),zV(o),HV(o),fh(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),GV={icon:function(e,t){return{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M534 352V136H232v752h560V394H576a42 42 0 01-42-42z`,fill:t}},{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z`,fill:e}}]}},name:`file`,theme:`twotone`};function KV(){return KV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KV({},e,{ref:t,icon:GV}))),JV={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`};function YV(){return YV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YV({},e,{ref:t,icon:JV}))),ZV={icon:function(e,t){return{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z`,fill:e}},{tag:`path`,attrs:{d:`M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z`,fill:t}},{tag:`path`,attrs:{d:`M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z`,fill:t}},{tag:`path`,attrs:{d:`M276 368a28 28 0 1056 0 28 28 0 10-56 0z`,fill:t}},{tag:`path`,attrs:{d:`M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`,fill:e}}]}},name:`picture`,theme:`twotone`};function QV(){return QV=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QV({},e,{ref:t,icon:ZV})));function eH(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function tH(e,t){let n=Xr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function nH(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function rH(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var iH=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},aH=e=>e.indexOf(`image/`)===0,oH=e=>{if(e.type&&!e.thumbUrl)return aH(e.type);let t=e.thumbUrl||e.url||``,n=iH(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},sH=200;function cH(e){return new Promise(t=>{if(!e.type||!aH(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=sH,n.height=sH,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${sH}px; height: ${sH}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=sH,s=sH,c=0,l=0;e>a?(s=sH/e*a,l=-(s-o)/2):(o=sH/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var lH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`};function uH(){return uH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uH({},e,{ref:t,icon:lH}))),fH=x.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:_,removeIcon:v,downloadIcon:y,extra:b,onPreview:S,onDownload:C,onClose:w},T)=>{let{status:E}=s,[D,O]=x.useState(E);x.useEffect(()=>{E!==`removed`&&O(E)},[E]);let[k,A]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(e)}},[]);let j=u(s),M=x.createElement(`div`,{className:`${e}-icon`},j);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(D===`uploading`||!s.thumbUrl&&!s.url){let t=q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:D!==`uploading`});M=x.createElement(`div`,{className:t},j)}else{let t=p?.(s)?x.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):j,n=q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});M=x.createElement(`a`,{className:n,onClick:e=>S(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let N=q(`${e}-list-item`,`${e}-list-item-${D}`,r?.item),P=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,F=(typeof h==`function`?h(s):h)?d((typeof v==`function`?v(s):v)||x.createElement(EB,null),()=>w(s),e,a.removeFile,!0):null,I=(typeof g==`function`?g(s):g)&&D===`done`?d((typeof y==`function`?y(s):y)||x.createElement(dH,null),()=>C(s),e,a.downloadFile):null,L=o!==`picture-card`&&o!==`picture-circle`&&x.createElement(`span`,{key:`download-delete`,className:q(`${e}-list-item-actions`,{picture:o===`picture`})},I,F),R=typeof b==`function`?b(s):b,z=R&&x.createElement(`span`,{className:`${e}-list-item-extra`},R),B=q(`${e}-list-item-name`),V=s.url?x.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:B,title:s.name,...P,href:s.url,onClick:e=>S(s,e)},s.name,z):x.createElement(`span`,{key:`view`,className:B,onClick:e=>S(s,e),title:s.name},s.name,z),H=(typeof m==`function`?m(s):m)&&(s.url||s.thumbUrl)?x.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>S(s,e),title:a.previewFile},typeof _==`function`?_(s):_||x.createElement(AM,null)):null,U=(o===`picture-card`||o===`picture-circle`)&&D!==`uploading`&&x.createElement(`span`,{className:`${e}-list-item-actions`},H,D===`done`&&I,F),{getPrefixCls:W}=x.useContext(ai),ee=W(),te=x.createElement(`div`,{className:N,style:i?.item},M,V,L,U,k&&x.createElement(Pu,{motionName:`${ee}-fade`,visible:D===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?x.createElement(oF,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return x.createElement(`div`,{className:q(`${e}-list-item-progress`,t)},n)})),ne=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,re=D===`error`?x.createElement(Bw,{title:ne,getPopupContainer:e=>e.parentNode},te):te;return x.createElement(`div`,{className:q(`${e}-list-item-container`,t),style:n,ref:T},f?f(re,s,c,{download:C.bind(null,s),preview:S.bind(null,s),remove:w.bind(null,s)}):re)}),pH=x.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=cH,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=oH,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:C,disabled:w,classNames:T,styles:E}=e,[,D]=wd(),[O,k]=x.useState(!1),A=[`picture-card`,`picture-circle`].includes(n);x.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,D()}))})},[n,d,r]),x.useEffect(()=>{k(!0)},[]);let j=(e,t)=>{if(i)return t?.preventDefault(),i(e)},M=e=>{typeof a==`function`?a(e):e.url&&window.open(e.url)},N=e=>{o?.(e)},P=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?x.createElement(um,null):s.uploading,i=l?.(e)?x.createElement($V,null):x.createElement(qV,null);return t?r:i}return t?x.createElement(um,null):x.createElement(XV,null)},F=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),x.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?w:!1};return x.isValidElement(e)?x.createElement(Mg,{...a,icon:xp(e,{...e.props,onClick:()=>{}})}):x.createElement(Mg,{...a},x.createElement(`span`,null,e))};x.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:M}));let{getPrefixCls:I}=x.useContext(ai),L=I(`upload`,u),R=I(),z=q(`${L}-list`,`${L}-list-${n}`,T?.list),B=x.useMemo(()=>xr(Fm(R),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[R]),V={...A?{}:B,motionDeadline:2e3,motionName:`${L}-${A?`animate-inline`:`animate`}`,keys:Xr(d.map(e=>({key:e.uid,file:e}))),motionAppear:O};return x.createElement(`div`,{className:z,style:E?.list},x.createElement(Nu,{...V,component:!1},({key:e,file:t,className:r,style:i})=>x.createElement(fH,{key:e,locale:s,prefixCls:L,className:r,style:i,classNames:T,styles:E,file:t,items:d,progress:y,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,iconRender:P,actionIconRender:F,itemRender:C,onPreview:j,onDownload:M,onClose:N})),b&&x.createElement(Pu,{...V,visible:S,forceRender:!0},({className:e,style:t})=>xp(b,n=>({className:q(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),mH=`__LIST_IGNORE_${Date.now()}__`,hH=x.forwardRef((e,t)=>{let n=ci(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:_,prefixCls:v,className:y,type:b=`select`,children:S,style:C,itemRender:w,maxCount:T,data:E={},multiple:D=!1,hasControlInside:O=!0,action:k=``,accept:A=``,supportServerRender:j=!0,rootClassName:M,styles:N,classNames:P}=e,F=x.useContext(Ep),I=p??F,L=e.customRequest||n.customRequest,[R,z]=Vn(i,r),B=R||[],[V,H]=x.useState(`drop`),U=x.useRef(null),W=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let ee=(e,t,n)=>{let r=Xr(t),i=!1;T===1?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,Ff.flushSync)(()=>{z(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Ff.flushSync)(()=>{u?.(a)})},te=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[mH],e===mH)return Object.defineProperty(t,mH,{value:!0,configurable:!0}),!1;pd(e)&&(i=e)}return i},ne=e=>{let t=e.filter(e=>!e.file[mH]);if(!t.length)return;let n=t.map(e=>eH(e.file)),r=Xr(B);n.forEach(e=>{r=tH(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}ee(i,r)})},re=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!nH(t,B))return;let r=eH(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,ee(r,tH(r,B))},G=(e,t)=>{if(!nH(t,B))return;let n=eH(t);n.status=`uploading`,n.percent=e.percent,ee(n,tH(n,B),e)},ie=(e,t,n)=>{if(!nH(n,B))return;let r=eH(n);r.error=e,r.response=t,r.status=`error`,ee(r,tH(r,B))},ae=e=>{let t;Promise.resolve(typeof a==`function`?a(e):a).then(n=>{if(n===!1)return;let r=rH(e,B);r&&(t={...e,status:`removed`},B?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),U.current?.abort(t),ee(t,r))})},oe=e=>{H(e.type),e.type===`drop`&&d?.(e)};x.useImperativeHandle(t,()=>({onBatchStart:ne,onSuccess:re,onProgress:G,onError:ie,fileList:B,upload:U.current,nativeElement:W.current}));let{getPrefixCls:K,direction:se,className:ce,style:le,classNames:ue,styles:de}=ci(`upload`),fe=K(`upload`,v),pe={...e,listType:s,showUploadList:o,type:b,multiple:D,hasControlInside:O,supportServerRender:j,disabled:I},[me,he]=Nd([ue,P],[de,N],{props:pe}),ge={onBatchStart:ne,onError:ie,onProgress:G,onSuccess:re,...e,customRequest:L,data:E,multiple:D,action:k,accept:A,supportServerRender:j,prefixCls:fe,disabled:I,beforeUpload:te,onChange:void 0,hasControlInside:O};delete ge.className,delete ge.style,(!S||I)&&delete ge.id;let _e=`${fe}-wrapper`,[ve,ye]=WV(fe,_e),[be]=od(`Upload`,$u.Upload),{showRemoveIcon:xe,showPreviewIcon:Se,showDownloadIcon:Ce,removeIcon:we,previewIcon:Te,downloadIcon:Ee,extra:De}=typeof o==`boolean`?{}:o,Oe=xe===void 0?!I:xe,ke=(e,t)=>o?x.createElement(pH,{classNames:me,styles:he,prefixCls:fe,listType:s,items:B,previewFile:f,onPreview:c,onDownload:l,onRemove:ae,showRemoveIcon:Oe,showPreviewIcon:Se,showDownloadIcon:Ce,removeIcon:we,previewIcon:Te,downloadIcon:Ee,iconRender:h,extra:De,locale:{...be,...m},isImageUrl:g,progress:_,appendAction:e,appendActionVisible:t,itemRender:w,disabled:I}):e,Ae=q(_e,y,M,ve,ye,ce,me.root,{[`${fe}-rtl`]:se===`rtl`,[`${fe}-picture-card-wrapper`]:s===`picture-card`,[`${fe}-picture-circle-wrapper`]:s===`picture-circle`}),je={...he.root},Me={...le,...C};if(b===`drag`){let e=q(ve,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:B.some(e=>e.status===`uploading`),[`${fe}-drag-hover`]:V===`dragover`,[`${fe}-disabled`]:I,[`${fe}-rtl`]:se===`rtl`},me.trigger);return x.createElement(`span`,{className:Ae,ref:W,style:je},x.createElement(`div`,{className:e,style:{...Me,...he.trigger},onDrop:oe,onDragOver:oe,onDragLeave:oe},x.createElement(IV,{...ge,ref:U,className:`${fe}-btn`},x.createElement(`div`,{className:`${fe}-drag-container`},S))),ke())}let Ne=q(fe,`${fe}-select`,{[`${fe}-disabled`]:I,[`${fe}-hidden`]:!S},me.trigger),Pe=x.createElement(`div`,{className:Ne,style:{...Me,...he.trigger}},x.createElement(IV,{...ge,ref:U}));return s===`picture-card`||s===`picture-circle`?x.createElement(`span`,{className:Ae,ref:W,style:je},ke(Pe,!!S)):x.createElement(`span`,{className:Ae,ref:W,style:je},Pe,ke())}),gH=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return x.createElement(hH,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),_H=hH;_H.Dragger=gH,_H.LIST_IGNORE=mH;var vH=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),yH=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`}})),bH=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),xH=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=bH();function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),CH=o((e=>{var t=vH().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(xH()),r=t(SH()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),wH=o((e=>{var t=vH().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default=t(CH()).default})),TH=o((e=>{var t=vH().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(yH()),r=t(wH()),i=t(CH()),a=t(SH()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),EH=o(((e,t)=>{t.exports=TH()})),DH={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9`}}]},name:`alipay-circle`,theme:`outlined`};function OH(){return OH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OH({},e,{ref:t,icon:DH}))),AH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z`}}]},name:`api`,theme:`outlined`};function jH(){return jH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jH({},e,{ref:t,icon:AH}))),NH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z`}}]},name:`appstore`,theme:`outlined`};function PH(){return PH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PH({},e,{ref:t,icon:NH}))),IH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z`}}]},name:`arrow-down`,theme:`outlined`};function LH(){return LH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LH({},e,{ref:t,icon:IH}))),zH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z`}}]},name:`arrow-up`,theme:`outlined`};function BH(){return BH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BH({},e,{ref:t,icon:zH}))),HH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z`}}]},name:`audio`,theme:`outlined`};function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UH({},e,{ref:t,icon:HH}))),GH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z`}}]},name:`bank`,theme:`outlined`};function KH(){return KH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KH({},e,{ref:t,icon:GH}))),JH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z`}}]},name:`bar-chart`,theme:`outlined`};function YH(){return YH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YH({},e,{ref:t,icon:JH}))),ZH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z`}}]},name:`bell`,theme:`outlined`};function QH(){return QH=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QH({},e,{ref:t,icon:ZH}))),eU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z`}}]},name:`book`,theme:`outlined`};function tU(){return tU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tU({},e,{ref:t,icon:eU}))),rU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z`}}]},name:`build`,theme:`outlined`};function iU(){return iU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iU({},e,{ref:t,icon:rU}))),oU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z`}}]},name:`bulb`,theme:`outlined`};function sU(){return sU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sU({},e,{ref:t,icon:oU}))),lU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 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-36 732H180V180h664v664z`}}]},name:`calculator`,theme:`outlined`};function uU(){return uU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uU({},e,{ref:t,icon:lU}))),fU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z`}}]},name:`camera`,theme:`outlined`};function pU(){return pU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pU({},e,{ref:t,icon:fU}))),hU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`car`,theme:`outlined`};function gU(){return gU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gU({},e,{ref:t,icon:hU}))),vU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`};function yU(){return yU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yU({},e,{ref:t,icon:vU}))),xU={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z`}}]},name:`close-circle`,theme:`outlined`};function SU(){return SU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SU({},e,{ref:t,icon:xU}))),wU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 01-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 01140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0166.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z`}}]},name:`cloud`,theme:`outlined`};function TU(){return TU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TU({},e,{ref:t,icon:wU}))),DU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z`}},{tag:`path`,attrs:{d:`M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z`}},{tag:`path`,attrs:{d:`M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z`}}]},name:`cloud-server`,theme:`outlined`};function OU(){return OU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OU({},e,{ref:t,icon:DU}))),AU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:`code`,theme:`outlined`};function jU(){return jU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jU({},e,{ref:t,icon:AU}))),NU={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z`}}]},name:`coffee`,theme:`outlined`};function PU(){return PU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PU({},e,{ref:t,icon:NU}))),IU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z`}}]},name:`compass`,theme:`outlined`};function LU(){return LU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LU({},e,{ref:t,icon:IU}))),zU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z`}}]},name:`crown`,theme:`outlined`};function BU(){return BU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BU({},e,{ref:t,icon:zU}))),HU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z`}}]},name:`dashboard`,theme:`outlined`};function UU(){return UU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UU({},e,{ref:t,icon:HU}))),GU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`database`,theme:`outlined`};function KU(){return KU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KU({},e,{ref:t,icon:GU}))),JU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z`}}]},name:`dollar`,theme:`outlined`};function YU(){return YU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YU({},e,{ref:t,icon:JU}))),ZU={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z`}}]},name:`exclamation-circle`,theme:`outlined`};function QU(){return QU=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QU({},e,{ref:t,icon:ZU}))),eW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z`}}]},name:`experiment`,theme:`outlined`};function tW(){return tW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tW({},e,{ref:t,icon:eW}))),rW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.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-image`,theme:`outlined`};function iW(){return iW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iW({},e,{ref:t,icon:rW}))),oW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.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-pdf`,theme:`outlined`};function sW(){return sW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sW({},e,{ref:t,icon:oW}))),lW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z`}}]},name:`fire`,theme:`outlined`};function uW(){return uW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uW({},e,{ref:t,icon:lW}))),fW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z`}}]},name:`flag`,theme:`outlined`};function pW(){return pW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pW({},e,{ref:t,icon:fW}))),hW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z`}}]},name:`font-size`,theme:`outlined`};function gW(){return gW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gW({},e,{ref:t,icon:hW}))),vW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z`}}]},name:`gift`,theme:`outlined`};function yW(){return yW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yW({},e,{ref:t,icon:vW}))),xW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z`}}]},name:`global`,theme:`outlined`};function SW(){return SW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SW({},e,{ref:t,icon:xW}))),wW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z`}}]},name:`heart`,theme:`outlined`};function TW(){return TW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TW({},e,{ref:t,icon:wW}))),DW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z`}}]},name:`highlight`,theme:`outlined`};function OW(){return OW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OW({},e,{ref:t,icon:DW}))),AW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z`}}]},name:`history`,theme:`outlined`};function jW(){return jW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jW({},e,{ref:t,icon:AW}))),NW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z`}}]},name:`home`,theme:`outlined`};function PW(){return PW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PW({},e,{ref:t,icon:NW}))),IW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z`}}]},name:`idcard`,theme:`outlined`};function LW(){return LW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LW({},e,{ref:t,icon:IW}))),zW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z`}}]},name:`laptop`,theme:`outlined`};function BW(){return BW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BW({},e,{ref:t,icon:zW}))),HW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z`}}]},name:`line-chart`,theme:`outlined`};function UW(){return UW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UW({},e,{ref:t,icon:HW}))),GW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`};function KW(){return KW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KW({},e,{ref:t,icon:GW}))),JW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z`}}]},name:`logout`,theme:`outlined`};function YW(){return YW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YW({},e,{ref:t,icon:JW}))),ZW={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z`}}]},name:`mail`,theme:`outlined`};function QW(){return QW=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QW({},e,{ref:t,icon:ZW}))),eG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M839.2 278.1a32 32 0 00-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 00-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}}]},name:`medicine-box`,theme:`outlined`};function tG(){return tG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tG({},e,{ref:t,icon:eG}))),rG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z`}}]},name:`menu`,theme:`outlined`};function iG(){return iG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iG({},e,{ref:t,icon:rG}))),oG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`minus-circle`,theme:`outlined`};function sG(){return sG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sG({},e,{ref:t,icon:oG}))),lG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`mobile`,theme:`outlined`};function uG(){return uG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uG({},e,{ref:t,icon:lG}))),fG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 00-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 00-11.2-1.4l-37.9 29.7a7.97 7.97 0 00-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z`}}]},name:`monitor`,theme:`outlined`};function pG(){return pG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pG({},e,{ref:t,icon:fG}))),hG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 00-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z`}}]},name:`pay-circle`,theme:`outlined`};function gG(){return gG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gG({},e,{ref:t,icon:hG}))),vG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z`}}]},name:`phone`,theme:`outlined`};function yG(){return yG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yG({},e,{ref:t,icon:vG}))),xG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`};function SG(){return SG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SG({},e,{ref:t,icon:xG}))),wG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z`}}]},name:`pie-chart`,theme:`outlined`};function TG(){return TG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TG({},e,{ref:t,icon:wG}))),DG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z`}}]},name:`play-circle`,theme:`outlined`};function OG(){return OG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OG({},e,{ref:t,icon:DG}))),AG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-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:`project`,theme:`outlined`};function jG(){return jG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jG({},e,{ref:t,icon:AG}))),NG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z`}}]},name:`read`,theme:`outlined`};function PG(){return PG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PG({},e,{ref:t,icon:NG}))),IG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z`}},{tag:`path`,attrs:{d:`M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0031.9 29.3h429.2a32 32 0 0031.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z`}}]},name:`rest`,theme:`outlined`};function LG(){return LG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LG({},e,{ref:t,icon:IG}))),zG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`robot`,theme:`outlined`};function BG(){return BG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BG({},e,{ref:t,icon:zG}))),HG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z`}}]},name:`rocket`,theme:`outlined`};function UG(){return UG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UG({},e,{ref:t,icon:HG}))),GG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z`}}]},name:`rollback`,theme:`outlined`};function KG(){return KG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KG({},e,{ref:t,icon:GG}))),JG={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z`}},{tag:`path`,attrs:{d:`M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z`}}]},name:`safety`,theme:`outlined`};function YG(){return YG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YG({},e,{ref:t,icon:JG}))),ZG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z`}}]},name:`save`,theme:`outlined`};function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QG({},e,{ref:t,icon:ZG}))),eK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 000 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z`}}]},name:`security-scan`,theme:`outlined`};function tK(){return tK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tK({},e,{ref:t,icon:eK}))),rK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z`}}]},name:`send`,theme:`outlined`};function iK(){return iK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iK({},e,{ref:t,icon:rK}))),oK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z`}}]},name:`setting`,theme:`outlined`};function sK(){return sK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sK({},e,{ref:t,icon:oK}))),lK={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z`}}]},name:`shopping-cart`,theme:`outlined`};function uK(){return uK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uK({},e,{ref:t,icon:lK}))),fK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z`}}]},name:`shopping`,theme:`outlined`};function pK(){return pK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pK({},e,{ref:t,icon:fK}))),hK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M925.6 405.1l-203-253.7a6.5 6.5 0 00-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 00.2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 00.2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z`}}]},name:`sketch`,theme:`outlined`};function gK(){return gK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,gK({},e,{ref:t,icon:hK}))),vK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z`}}]},name:`skin`,theme:`outlined`};function yK(){return yK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,yK({},e,{ref:t,icon:vK}))),xK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z`}}]},name:`smile`,theme:`outlined`};function SK(){return SK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,SK({},e,{ref:t,icon:xK}))),wK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z`}}]},name:`solution`,theme:`outlined`};function TK(){return TK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,TK({},e,{ref:t,icon:wK}))),DK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z`}}]},name:`sound`,theme:`outlined`};function OK(){return OK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,OK({},e,{ref:t,icon:DK}))),AK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z`}}]},name:`star`,theme:`outlined`};function jK(){return jK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,jK({},e,{ref:t,icon:AK}))),NK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z`}}]},name:`stop`,theme:`outlined`};function PK(){return PK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,PK({},e,{ref:t,icon:NK}))),IK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z`}}]},name:`tag`,theme:`outlined`};function LK(){return LK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,LK({},e,{ref:t,icon:IK}))),zK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z`}}]},name:`team`,theme:`outlined`};function BK(){return BK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,BK({},e,{ref:t,icon:zK}))),HK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z`}}]},name:`thunderbolt`,theme:`outlined`};function UK(){return UK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,UK({},e,{ref:t,icon:HK}))),GK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z`}}]},name:`tool`,theme:`outlined`};function KK(){return KK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,KK({},e,{ref:t,icon:GK}))),JK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z`}}]},name:`trophy`,theme:`outlined`};function YK(){return YK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,YK({},e,{ref:t,icon:JK}))),ZK={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z`}}]},name:`truck`,theme:`outlined`};function QK(){return QK=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,QK({},e,{ref:t,icon:ZK}))),eq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`upload`,theme:`outlined`};function tq(){return tq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,tq({},e,{ref:t,icon:eq}))),rq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z`}}]},name:`user`,theme:`outlined`};function iq(){return iq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,iq({},e,{ref:t,icon:rq}))),oq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}}]},name:`video-camera`,theme:`outlined`};function sq(){return sq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,sq({},e,{ref:t,icon:oq}))),lq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{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 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`wallet`,theme:`outlined`};function uq(){return uq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,uq({},e,{ref:t,icon:lq}))),fq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z`}}]},name:`wechat`,theme:`outlined`};function pq(){return pq=Object.assign?Object.assign.bind():function(e){for(var t=1;tx.createElement(Y,pq({},e,{ref:t,icon:fq}))),hq=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},gq=(e=>e?hq(e):hq),_q=e=>e;function vq(e,t=_q){let n=x.useSyncExternalStore(e.subscribe,x.useCallback(()=>t(e.getState()),[e,t]),x.useCallback(()=>t(e.getInitialState()),[e,t]));return x.useDebugValue(n),n}var yq=e=>{let t=gq(e),n=e=>vq(t,e);return Object.assign(n,t),n},bq=(e=>e?yq(e):yq),xq=c(EH(),1),Sq=`AES-GCM`,Cq=12,wq=128;async function Tq(){throw Error(`VITE_ENCRYPTION_KEY not configured`)}async function Eq(e){let t=await Tq(),n=crypto.getRandomValues(new Uint8Array(Cq)),r=new TextEncoder().encode(e),i=await crypto.subtle.encrypt({name:Sq,iv:n,tagLength:wq},t,r),a=new Uint8Array(i),o=new Uint8Array(n.length+a.length);return o.set(n),o.set(a,n.length),btoa(String.fromCharCode(...o))}async function Dq(e){let t=await Tq(),n=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),r=n.slice(0,Cq),i=n.slice(Cq),a=await crypto.subtle.decrypt({name:Sq,iv:r,tagLength:wq},t,i);return new TextDecoder().decode(a)}var Oq=`http://ceshi.apiforeign.minzhong.cn`,kq=!1;function Aq(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function jq(e){return Array.isArray(e)?e.map(jq):typeof e==`object`&&e?Object.fromEntries(Object.entries(e).map(([e,t])=>[Aq(e),jq(t)])):e}function Mq(){return localStorage.getItem(`auth_token`)}function Nq(e){localStorage.setItem(`auth_token`,e)}function Pq(){localStorage.removeItem(`auth_token`)}async function Fq(e){try{return await Dq(e)}catch{return null}}async function Iq(e,t={}){let{method:n=`GET`,body:r,auth:i=!0,encryptBody:a=kq}=t,o={"Content-Type":`application/json`};if(i){let e=Mq();e&&(o.Authorization=`Bearer ${e}`)}let s;if(r!==void 0){let e=JSON.stringify(r);a?(o[`X-Encrypted`]=`true`,s=JSON.stringify({data:await Eq(e)})):s=e}let c=await fetch(`${Oq}/api${e}`,{method:n,headers:o,body:s});if(c.status===204)return;let l=await c.text();if(!l)return;let u;try{u=JSON.parse(l)}catch{throw Error(`响应解析失败 (${c.status})`)}if(u&&typeof u.data==`string`&&a){let e=await Fq(u.data);e!==null&&(u=JSON.parse(e))}if(!c.ok){let e=u?.detail||`请求失败 (${c.status})`;throw c.status===401&&(Pq(),window.location.href=`/login`),Error(e)}return jq(u)}var Lq={get:(e,t=!0)=>Iq(e,{auth:t}),post:(e,t,n=!0)=>Iq(e,{method:`POST`,body:t,auth:n}),put:(e,t,n=!0)=>Iq(e,{method:`PUT`,body:t,auth:n}),delete:(e,t=!0)=>Iq(e,{method:`DELETE`,auth:t})};async function Rq(e,t,n,r){let i=await Lq.post(`/auth/admin-login`,{username:e,password:t,captcha_token:n,remember_me:r||!1},!1);return Nq(i.accessToken),i.user}async function zq(){await Lq.post(`/auth/logout`),Pq()}async function Bq(){try{return await Lq.get(`/auth/me`)}catch{return null}}async function Vq(){return Lq.get(`/admin/stats`)}async function Hq(e){let t=e?`?search=${encodeURIComponent(e)}`:``;return Lq.get(`/admin/users${t}`)}async function Uq(e,t,n){await Lq.post(`/admin/users/${e}/credits`,{amount:t,description:n})}async function Wq(e,t){await Lq.put(`/admin/users/${e}/status`,{is_active:t})}async function Gq(){return Lq.get(`/admin/model-configs`)}async function Kq(e){return e.id?Lq.put(`/admin/model-configs/${e.id}`,e):Lq.post(`/admin/model-configs`,e)}async function qq(e){await Lq.delete(`/admin/model-configs/${e}`)}async function Jq(){return Lq.get(`/admin/system-configs`)}async function Yq(e,t){await Lq.put(`/admin/system-configs/${e}`,{value:t})}async function Xq(e,t){let n=new FormData;n.append(`file`,e),n.append(`config_key`,t);let r=localStorage.getItem(`auth_token`),i=await fetch(`http://localhost:8000/api/admin/upload-pdf`,{method:`POST`,headers:r?{Authorization:`Bearer ${r}`}:{},body:n});if(!i.ok)throw Error(`上传失败`);return i.json()}async function Zq(e){let t=new URLSearchParams;e?.user_id&&t.set(`user_id`,e.user_id),e?.type&&t.set(`type`,e.type);let n=t.toString()?`?${t}`:``;return Lq.get(`/admin/credit-records${n}`)}async function Qq(){return Lq.get(`/admin/industry-configs`)}async function $q(e){return e.id?Lq.put(`/admin/industry-configs/${e.id}`,e):Lq.post(`/admin/industry-configs`,e)}async function eJ(e){await Lq.delete(`/admin/industry-configs/${e}`)}async function tJ(){return Lq.get(`/admin/video-engines`)}async function nJ(e){return e.id?Lq.put(`/admin/video-engines/${e.id}`,e):Lq.post(`/admin/video-engines`,e)}async function rJ(e){await Lq.delete(`/admin/video-engines/${e}`)}async function iJ(){return Lq.get(`/admin/image-engines`)}async function aJ(e){return e.id?Lq.put(`/admin/image-engines/${e.id}`,e):Lq.post(`/admin/image-engines`,e)}async function oJ(e){await Lq.delete(`/admin/image-engines/${e}`)}async function sJ(){return Lq.get(`/admin/credit-ratios`)}async function cJ(e){return e.id?Lq.put(`/admin/credit-ratios/${e.id}`,e):Lq.post(`/admin/credit-ratios`,e)}async function lJ(e){await Lq.delete(`/admin/credit-ratios/${e}`)}async function uJ(){return Lq.get(`/admin/payment-configs`)}async function dJ(e,t){await Lq.put(`/admin/payment-configs/${e}`,{value:t})}async function fJ(){return Lq.get(`/admin/notifications`)}async function pJ(e){await Lq.post(`/admin/notifications`,e)}async function mJ(e){await Lq.delete(`/admin/notifications/${e}`)}async function hJ(e){return Lq.get(`/admin/notifications/${e}/read-users`)}async function gJ(){return Lq.get(`/admin/menu-configs`)}async function _J(e){return e.id?Lq.put(`/admin/menu-configs/${e.id}`,e):Lq.post(`/admin/menu-configs`,e)}async function vJ(e){await Lq.delete(`/admin/menu-configs/${e}`)}async function yJ(e){return Lq.post(`/admin/users`,e)}async function bJ(e,t){await Lq.put(`/admin/users/${e}/menus`,{allowed_menus:t})}async function xJ(e,t){await Lq.put(`/admin/users/${e}/reset-password`,{new_password:t})}async function SJ(e,t){await Lq.post(`/admin/change-password`,{old_password:e,new_password:t})}async function CJ(){return Lq.get(`/admin/recharge-packages`)}async function wJ(e){return e.id?Lq.put(`/admin/recharge-packages/${e.id}`,e):Lq.post(`/admin/recharge-packages`,e)}async function TJ(e){await Lq.delete(`/admin/recharge-packages/${e}`)}async function EJ(e){let t=e?`?page=${e}`:``;return Lq.get(`/admin/operation-logs${t}`)}async function DJ(e){let t=new URLSearchParams;e?.userId&&t.set(`user_id`,e.userId),e?.status&&t.set(`status`,e.status),e?.page&&t.set(`page`,String(e.page)),e?.pageSize&&t.set(`page_size`,String(e.pageSize));let n=t.toString();return Lq.get(`/admin/generation-records${n?`?${n}`:``}`)}async function OJ(e,t,n){await Lq.put(`/admin/generation-records/${e}/status`,{status:t,video_url:n})}async function kJ(e,t,n,r){await Lq.post(`/admin/generation-records/${e}/generate`,{aspect_ratio:t,resolution:n,image_size:r})}async function AJ(){return Lq.get(`/generation-ai/engines`)}async function jJ(e){let t=new URLSearchParams;e?.genType&&t.set(`gen_type`,e.genType),e?.status&&t.set(`status`,e.status),e?.page&&t.set(`page`,String(e.page)),e?.pageSize&&t.set(`page_size`,String(e.pageSize)),e?.userId&&t.set(`user_id`,e.userId),e?.userName&&t.set(`user_name`,e.userName);let n=t.toString();return Lq.get(`/generation-ai/tasks${n?`?${n}`:``}`)}var MJ=bq(e=>({user:null,loading:!0,login:async(t,n,r)=>{e({user:await Rq(t,n,void 0,r)})},logout:async()=>{await zq(),e({user:null})},checkAuth:async()=>{try{if(!localStorage.getItem(`auth_token`)){e({user:null,loading:!1});return}e({user:await Bq(),loading:!1})}catch(t){(t?.message?.includes(`401`)||t?.message?.includes(`Unauthorized`))&&localStorage.removeItem(`auth_token`),e({user:null,loading:!1})}}})),NJ=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),$=o(((e,t)=>{t.exports=NJ()}))(),{Sider:PJ,Content:FJ}=sN,IJ={HomeOutlined:(0,$.jsx)(FW,{}),PlayCircleOutlined:(0,$.jsx)(kG,{}),WalletOutlined:(0,$.jsx)(dq,{}),RobotOutlined:(0,$.jsx)(VG,{}),SettingOutlined:(0,$.jsx)(cK,{}),BellOutlined:(0,$.jsx)($H,{}),UserOutlined:(0,$.jsx)(aq,{}),AppstoreOutlined:(0,$.jsx)(FH,{}),FileTextOutlined:(0,$.jsx)(kj,{}),StarOutlined:(0,$.jsx)(MK,{}),HeartOutlined:(0,$.jsx)(EW,{}),CameraOutlined:(0,$.jsx)(mU,{}),DashboardOutlined:(0,$.jsx)(WU,{}),CalculatorOutlined:(0,$.jsx)(dU,{}),DollarOutlined:(0,$.jsx)(XU,{}),GiftOutlined:(0,$.jsx)(bW,{}),ThunderboltOutlined:(0,$.jsx)(WK,{}),FireOutlined:(0,$.jsx)(dW,{}),CloudOutlined:(0,$.jsx)(EU,{}),SmileOutlined:(0,$.jsx)(CK,{}),TrophyOutlined:(0,$.jsx)(XK,{}),RocketOutlined:(0,$.jsx)(WG,{}),BulbOutlined:(0,$.jsx)(cU,{}),CodeOutlined:(0,$.jsx)(MU,{}),PictureOutlined:(0,$.jsx)(CG,{}),VideoCameraOutlined:(0,$.jsx)(cq,{}),AudioOutlined:(0,$.jsx)(WH,{}),MailOutlined:(0,$.jsx)($W,{}),PhoneOutlined:(0,$.jsx)(bG,{}),GlobalOutlined:(0,$.jsx)(CW,{}),ShoppingCartOutlined:(0,$.jsx)(dK,{}),TeamOutlined:(0,$.jsx)(VK,{}),BarChartOutlined:(0,$.jsx)(XH,{}),PieChartOutlined:(0,$.jsx)(EG,{}),LineChartOutlined:(0,$.jsx)(WW,{}),SecurityScanOutlined:(0,$.jsx)(nK,{}),ApiOutlined:(0,$.jsx)(MH,{}),DatabaseOutlined:(0,$.jsx)(qU,{}),CloudServerOutlined:(0,$.jsx)(kU,{}),MenuOutlined:(0,$.jsx)(aG,{}),PlusOutlined:(0,$.jsx)(_O,{}),EditOutlined:(0,$.jsx)(kB,{}),DeleteOutlined:(0,$.jsx)(EB,{}),LockOutlined:(0,$.jsx)(qW,{}),LogoutOutlined:(0,$.jsx)(XW,{})},LJ=()=>{let e=Ye(),t=Ke(),{user:n,loading:r,logout:i}=MJ(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)([]),[l,u]=(0,x.useState)(!1),[d]=Z.useForm();if((0,x.useEffect)(()=>{gJ().then(e=>{let t=e.filter(e=>{let t=e.menu_target??e.menuTarget??`admin`;return(e.is_active??e.isActive??!0)&&(t===`admin`||t===`both`)}),r=!!(n?.isAdmin??n?.is_admin);if(n&&!r){let e=n.allowedMenus??n?.allowed_menus;if(e&&Array.isArray(e)&&e.length>0){let n=new Set(e);t=t.filter(e=>(e.menu_type??e.menuType)===`group`?t.some(t=>(t.parent_id??t.parentId)===e.id&&n.has(t.path)):n.has(e.path))}else t=[]}c(t)}).catch(()=>{})},[n]),r)return(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100vh`},children:(0,$.jsx)(aP,{size:`large`})});if(!n)return(0,$.jsx)(St,{to:`/admin/login`,replace:!0});let f={};s.filter(e=>(e.menu_type??e.menuType)!==`group`&&(e.parent_id??e.parentId)).forEach(e=>{let t=e.parent_id??e.parentId;f[t]||(f[t]=[]),f[t].push(e)});let p=[...s].sort((e,t)=>(e.sort_order??e.sortOrder??0)-(t.sort_order??t.sortOrder??0)),m=[];p.forEach(e=>{let t=e.menu_type??e.menuType,n=e.parent_id??e.parentId;if(t===`group`){let t=(f[e.id]||[]).sort((e,t)=>(e.sort_order??e.sortOrder??0)-(t.sort_order??t.sortOrder??0)).map(e=>({key:e.path,icon:IJ[e.icon]||void 0,label:e.label}));t.length>0&&m.push({key:`group-${e.id}`,icon:IJ[e.icon]||void 0,label:e.label,children:t})}else n||m.push({key:e.path,icon:IJ[e.icon]||void 0,label:e.label})});let h=!!(n?.isAdmin??n?.is_admin);m.length===0&&h&&m.push({key:`/`,icon:(0,$.jsx)(WU,{}),label:`数据概览`},{key:`/users`,icon:(0,$.jsx)(aq,{}),label:`用户管理`});let g=t.pathname,_=[];m.forEach(e=>{e.children?e.children.forEach(e=>_.push(e.key)):_.push(e.key)}),_.includes(g)||(g=_.find(e=>g.startsWith(e))||`/`);let v=[];return m.forEach(e=>{e.children&&e.children.some(e=>e.key===g)&&v.push(e.key)}),(0,$.jsxs)(sN,{style:{minHeight:`100vh`},children:[(0,$.jsxs)(PJ,{collapsible:!0,collapsed:a,onCollapse:o,width:220,theme:`dark`,style:{background:`linear-gradient(180deg, #0f0f23 0%, #1a1a35 100%)`},children:[(0,$.jsxs)(`div`,{style:{height:64,display:`flex`,alignItems:`center`,justifyContent:`center`,gap:10,borderBottom:`1px solid rgba(255,255,255,0.06)`},children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(WK,{style:{fontSize:16,color:`#fff`}})}),!a&&(0,$.jsx)(`span`,{style:{color:`#f1f5f9`,fontSize:15,fontWeight:700},children:`管理后台`})]}),(0,$.jsx)(cD,{mode:`inline`,selectedKeys:[g],defaultOpenKeys:v,items:m,onClick:({key:t})=>{t.startsWith(`group-`)||e(t)},style:{background:`transparent`,borderRight:0,marginTop:8},theme:`dark`})]}),(0,$.jsxs)(sN,{children:[(0,$.jsxs)(`div`,{style:{height:56,background:`#fff`,borderBottom:`1px solid #f0f0f5`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`0 24px`},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:m.find(e=>e.key===g)?.label||m.flatMap(e=>e.children||[]).find(e=>e.key===g)?.label||`管理后台`}),(0,$.jsx)(Ej,{menu:{items:[{key:`user`,icon:(0,$.jsx)(aq,{}),label:n?.username,disabled:!0},{type:`divider`},{key:`changePwd`,icon:(0,$.jsx)(qW,{}),label:`修改密码`},{key:`logout`,icon:(0,$.jsx)(XW,{}),label:`退出登录`,danger:!0}],onClick:({key:t})=>{t===`logout`&&(i(),e(`/login`)),t===`changePwd`&&(u(!0),d.resetFields())}},placement:`bottomRight`,arrow:!0,children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,cursor:`pointer`,padding:`4px 8px`,borderRadius:8,transition:`background 0.2s`},children:[(0,$.jsx)(Zw,{size:28,icon:(0,$.jsx)(aq,{}),style:{background:`linear-gradient(135deg, #6366f1, #8b5cf6)`}}),(0,$.jsx)(Q.Text,{style:{fontSize:13,fontWeight:500},children:n?.username})]})})]}),(0,$.jsx)(FJ,{style:{padding:24,background:`#f5f6fa`,overflow:`auto`},children:m.length===0&&!h?(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,height:`60vh`,color:`#94a3b8`},children:[(0,$.jsx)(qW,{style:{fontSize:48,marginBottom:16,color:`#cbd5e1`}}),(0,$.jsx)(`div`,{style:{fontSize:16,fontWeight:600,color:`#64748b`},children:`暂无任何权限`}),(0,$.jsx)(`div`,{style:{fontSize:13,marginTop:8},children:`请联系管理员配置菜单权限`})]}):(0,$.jsx)(Ct,{})})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(qW,{}),`修改密码`]}),open:l,onOk:async()=>{try{let e=await d.validateFields();if(e.newPassword!==e.confirmPassword){bP.error(`两次输入的密码不一致`);return}await SJ(e.oldPassword,e.newPassword),bP.success(`密码修改成功`),u(!1),d.resetFields()}catch(e){if(e?.errorFields)return;bP.error(e?.message||`修改失败`)}},onCancel:()=>{u(!1),d.resetFields()},okText:`确认修改`,cancelText:`取消`,width:420,children:(0,$.jsxs)(Z,{form:d,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`oldPassword`,label:`原密码`,rules:[{required:!0,message:`请输入原密码`}],children:(0,$.jsx)(QM.Password,{placeholder:`请输入原密码`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`newPassword`,label:`新密码`,rules:[{required:!0,min:6,message:`密码至少6位`}],children:(0,$.jsx)(QM.Password,{placeholder:`请输入新密码(至少6位)`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`confirmPassword`,label:`确认新密码`,rules:[{required:!0,message:`请再次输入新密码`}],children:(0,$.jsx)(QM.Password,{placeholder:`请再次输入新密码`,size:`large`})})]})})]})},RJ=()=>{let e=Ye(),{login:t}=MJ(),[n,r]=(0,x.useState)(!1);return(0,$.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(135deg, #0f0f23 0%, #1a1a35 50%, #0f0f23 100%)`},children:(0,$.jsxs)(Mk,{bordered:!1,style:{width:420,borderRadius:16,boxShadow:`0 20px 60px rgba(0,0,0,0.3)`},children:[(0,$.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:32},children:[(0,$.jsx)(`div`,{style:{width:56,height:56,borderRadius:14,margin:`0 auto 16px`,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px rgba(99,102,241,0.3)`},children:(0,$.jsx)(WK,{style:{fontSize:26,color:`#fff`}})}),(0,$.jsxs)(Q.Title,{level:3,style:{margin:0},children:[`VideoGen`,(0,$.jsx)(`span`,{style:{color:`#6366f1`},children:`.AI`})]}),(0,$.jsx)(Q.Text,{type:`secondary`,children:`管理后台`})]}),(0,$.jsxs)(Z,{onFinish:async n=>{r(!0);try{await t(n.username,n.password,n.rememberMe),bP.success(`登录成功`),e(`/`)}catch{bP.error(`登录失败`)}finally{r(!1)}},layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`}],children:(0,$.jsx)(QM,{placeholder:`用户名`,size:`large`,prefix:(0,$.jsx)(aq,{style:{color:`#94a3b8`,marginRight:8}})})}),(0,$.jsx)(Z.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`}],children:(0,$.jsx)(QM.Password,{placeholder:`密码`,size:`large`,prefix:(0,$.jsx)(qW,{style:{color:`#94a3b8`,marginRight:8}})})}),(0,$.jsx)(Z.Item,{name:`rememberMe`,valuePropName:`checked`,children:(0,$.jsx)(iA,{children:`记住我的登录状态`})}),(0,$.jsx)(Z.Item,{style:{marginBottom:8},children:(0,$.jsx)(mD,{type:`primary`,htmlType:`submit`,loading:n,block:!0,size:`large`,style:{borderRadius:10,fontWeight:600,height:44,background:`linear-gradient(135deg, #6366f1, #8b5cf6)`,border:`none`},children:`登录管理后台`})})]})]})})},zJ=()=>{let[e,t]=(0,x.useState)(null),[n,r]=(0,x.useState)(!0);return(0,x.useEffect)(()=>{(async()=>{r(!0);try{t(await Vq())}catch{}r(!1)})()},[]),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(uF,{gutter:[16,16],children:(e?[{title:`总用户数`,value:e.totalUsers,icon:(0,$.jsx)(aq,{}),color:`#6366f1`,bg:`rgba(99,102,241,0.08)`},{title:`总项目数`,value:e.totalProjects,icon:(0,$.jsx)(MG,{}),color:`#06b6d4`,bg:`rgba(6,182,212,0.08)`},{title:`总生成次数`,value:e.totalGenerations,icon:(0,$.jsx)(kG,{}),color:`#10b981`,bg:`rgba(16,185,129,0.08)`},{title:`总收入(元)`,value:e.totalRevenue,icon:(0,$.jsx)(XU,{}),color:`#f59e0b`,bg:`rgba(245,158,11,0.08)`,prefix:`¥`},{title:`今日消耗积分`,value:e.creditsConsumedToday,icon:(0,$.jsx)(WK,{}),color:`#ef4444`,bg:`rgba(239,68,68,0.08)`}]:[]).map((e,t)=>(0,$.jsx)(dA,{xs:12,sm:8,lg:t<4?6:24,children:(0,$.jsx)(Mk,{bordered:!1,loading:n,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:14},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:e.bg,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:e.color,flexShrink:0},children:e.icon}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12,marginBottom:2},children:e.title}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,color:`#1a1a2e`},children:[e.prefix,typeof e.value==`number`?e.value.toLocaleString():e.value]})]})]})})},e.title))}),(0,$.jsx)(uF,{gutter:[16,16],style:{marginTop:16},children:(0,$.jsx)(dA,{xs:24,lg:12,children:(0,$.jsx)(Mk,{title:`系统信息`,bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:12},children:[{label:`平台名称`,value:`VideoGen.AI`},{label:`API版本`,value:`v1.0.0`},{label:`数据库`,value:`PostgreSQL`},{label:`视频引擎`,value:`Seedance 2.0`}].map(e=>(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,padding:`8px 0`,borderBottom:`1px solid #f5f6fa`},children:[(0,$.jsx)(Q.Text,{type:`secondary`,children:e.label}),(0,$.jsx)(Q.Text,{strong:!0,children:e.value})]},e.label))})})})})]})};function BJ(e){if(!e)return`-`;let t=e.trim();t.includes(`T`)||(t=t.replace(` `,`T`));let n=t.indexOf(`.`);return n>0&&(t=t.slice(0,n)),t=t.replace(/[+-]\d{2}:?\d{0,2}$/,``).replace(/Z$/,``),t.replace(`T`,` `).slice(0,16)}var VJ=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(`frontend`),[c,l]=(0,x.useState)({open:!1,user:null}),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(`frontend`),[m,h]=(0,x.useState)({open:!1,user:null}),[g,_]=(0,x.useState)([]),[v,y]=(0,x.useState)([]),[b,S]=(0,x.useState)({open:!1,user:null}),[C]=Z.useForm(),[w]=Z.useForm(),[T]=Z.useForm(),E=async()=>{r(!0);try{t(await Hq(i||void 0))}catch{}r(!1)};(0,x.useEffect)(()=>{E()},[]);let D=()=>E(),O=async()=>{try{let e=await C.validateFields(),{user:t}=c;if(!t)return;await Uq(t.id,e.amount,e.description),bP.success(`已${e.amount>0?`增加`:`扣除`} ${Math.abs(e.amount)} 积分`),l({open:!1,user:null}),C.resetFields(),E()}catch{}},k=async e=>{await Wq(e.id,!e.isActive),bP.success(e.isActive?`已禁用该用户`:`已启用该用户`),E()},A=async()=>{try{let e=await w.validateFields(),t=e.user_type||`frontend`;await yJ({username:t===`admin`?e.username:void 0,password:e.password,email:e.email||void 0,phone:t===`frontend`?e.phone:e.phone||void 0,credits:e.credits||0,user_type:t}),bP.success(`用户创建成功`),d(!1),w.resetFields(),p(`frontend`),E()}catch{}},j=async e=>{try{let t=await gJ(),n=e.userType===`admin`;_(t.filter(e=>{let t=e.menu_target??e.menuTarget??`frontend`;return n?t===`admin`||t===`both`:t===`frontend`||t===`both`})),y(e.allowedMenus||[]),h({open:!0,user:e})}catch{bP.error(`加载菜单失败`)}},M=g.filter(e=>(e.menu_type??e.menuType)===`group`),N=g.filter(e=>(e.menu_type??e.menuType)!==`group`),P={};N.filter(e=>e.parent_id??e.parentId).forEach(e=>{let t=e.parent_id??e.parentId;P[t]||(P[t]=[]),P[t].push(e)});let F=N.filter(e=>!(e.parent_id??e.parentId)),I=async()=>{let{user:e}=m;if(e)try{await bJ(e.id,v.length>0?v:null),bP.success(`菜单权限已更新`),h({open:!1,user:null}),E()}catch(e){bP.error(e?.message||`保存失败`)}},L=async()=>{try{let e=await T.validateFields(),{user:t}=b;if(!t)return;await xJ(t.id,e.newPassword),bP.success(`已重置 ${t.username} 的密码`),S({open:!1,user:null}),T.resetFields()}catch{}},R=e.filter(e=>e.userType===o),z=o===`admin`,B=[{title:`用户`,key:`user`,width:200,render:(e,t)=>(0,$.jsxs)(wj,{children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:t.isAdmin?`linear-gradient(135deg, #f59e0b, #f97316)`:`linear-gradient(135deg, #6366f1, #8b5cf6)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:13,fontWeight:700},children:t.username.charAt(0).toUpperCase()}),(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{fontWeight:600},children:[t.username,t.isAdmin&&(0,$.jsx)(CB,{color:`orange`,style:{marginLeft:6,fontSize:10},children:`管理员`})]}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.email})]})]})},...z?[]:[{title:`积分余额`,dataIndex:`credits`,width:120,sorter:(e,t)=>e.credits-t.credits,render:e=>(0,$.jsx)(Q.Text,{strong:!0,style:{color:e>0?`#10b981`:`#ef4444`,fontSize:15},children:e.toLocaleString()})}],{title:`手机号`,dataIndex:`phone`,width:130,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,children:e||`-`})},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CB,{color:e?`green`:`red`,children:e?`正常`:`禁用`})},{title:`注册时间`,dataIndex:`createdAt`,width:120,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:BJ(e)})},{title:`最后登录`,dataIndex:`lastLoginAt`,width:140,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:BJ(e)})},{title:`操作`,key:`action`,width:320,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[!z&&(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(dq,{}),onClick:()=>{l({open:!0,user:t}),C.resetFields()},children:`调整积分`}),(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(aG,{}),onClick:()=>j(t),children:`菜单权限`}),(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(qW,{}),onClick:()=>{S({open:!0,user:t}),T.resetFields()},children:`重置密码`}),(0,$.jsx)(DP,{title:t.isActive?`确定禁用该用户?`:`确定启用该用户?`,onConfirm:()=>k(t),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:t.isActive,icon:t.isActive?(0,$.jsx)(FK,{}):(0,$.jsx)(bU,{}),children:t.isActive?`禁用`:`启用`})})]})}];return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12},children:[(0,$.jsx)(QM,{placeholder:`搜索用户名或手机号`,prefix:(0,$.jsx)(KC,{style:{color:`#94a3b8`}}),value:i,onChange:e=>a(e.target.value),onPressEnter:D,style:{width:280,borderRadius:8},allowClear:!0}),(0,$.jsx)(mD,{type:`primary`,onClick:D,style:{borderRadius:8},children:`搜索`})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>{p(o),w.setFieldsValue({user_type:o}),d(!0)},style:{borderRadius:8},children:`创建用户`})]}),(0,$.jsx)(vk,{activeKey:o,onChange:s,items:[{key:`frontend`,label:`前台用户`},{key:`admin`,label:`后台用户`}]}),(0,$.jsx)(uB,{columns:B,dataSource:R,rowKey:`id`,loading:n,pagination:{pageSize:10,showTotal:e=>`共 ${e} 个用户`},scroll:{x:1e3}})]}),(0,$.jsxs)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(dq,{}),`调整积分 - `,c.user?.username]}),open:c.open,onOk:O,onCancel:()=>{l({open:!1,user:null}),C.resetFields()},okText:`确认`,cancelText:`取消`,width:440,children:[(0,$.jsxs)(`div`,{style:{marginBottom:16,padding:`12px 16px`,background:`#f8fafc`,borderRadius:8},children:[(0,$.jsx)(`span`,{style:{color:`#64748b`},children:`当前积分:`}),(0,$.jsx)(`span`,{style:{fontWeight:800,fontSize:18,color:`#6366f1`},children:c.user?.credits.toLocaleString()})]}),(0,$.jsxs)(Z,{form:C,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`amount`,label:`积分变动`,rules:[{required:!0,message:`请输入积分数量`}],children:(0,$.jsx)($A,{style:{width:`100%`},size:`large`,placeholder:`正数增加,负数扣除`,formatter:e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,`,`)})}),(0,$.jsx)(Z.Item,{name:`description`,label:`原因`,rules:[{required:!0,message:`请输入调整原因`}],children:(0,$.jsx)(QM.TextArea,{rows:2,placeholder:`请输入调整原因`,size:`large`})})]})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aq,{}),`创建用户`]}),open:u,onOk:A,onCancel:()=>{d(!1),w.resetFields(),p(`frontend`)},okText:`创建`,cancelText:`取消`,width:480,children:(0,$.jsxs)(Z,{form:w,layout:`vertical`,style:{marginTop:16},onValuesChange:e=>{e.user_type&&p(e.user_type)},children:[(0,$.jsx)(Z.Item,{name:`user_type`,label:`用户类型`,initialValue:`frontend`,rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`frontend`,label:`前端用户`},{value:`admin`,label:`后台管理员`}]})}),f===`frontend`?(0,$.jsx)(Z.Item,{name:`phone`,label:`手机号`,rules:[{required:!0,message:`请输入手机号`},{pattern:/^1\d{10}$/,message:`请输入正确的手机号`}],children:(0,$.jsx)(QM,{placeholder:`请输入手机号`,maxLength:11,size:`large`})}):(0,$.jsx)(Z.Item,{name:`username`,label:`用户名`,rules:[{required:!0,message:`请输入用户名`}],children:(0,$.jsx)(QM,{placeholder:`请输入用户名`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`password`,label:`密码`,rules:[{required:!0,min:6,message:`密码至少6位`}],children:(0,$.jsx)(QM.Password,{placeholder:`请输入密码(至少6位)`,size:`large`})}),f===`frontend`&&(0,$.jsx)(Z.Item,{name:`credits`,label:`初始积分`,initialValue:0,children:(0,$.jsx)($A,{min:0,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`email`,label:`邮箱`,children:(0,$.jsx)(QM,{placeholder:`选填`,size:`large`})})]})}),(0,$.jsxs)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aG,{}),`菜单权限 - `,m.user?.username,` (`,m.user?.userType===`admin`?`后台菜单`:`前台菜单`,`)`]}),open:m.open,onOk:I,onCancel:()=>{h({open:!1,user:null})},okText:`保存`,cancelText:`取消`,width:520,children:[(0,$.jsx)(`div`,{style:{marginBottom:12},children:(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:13},children:`勾选该用户可访问的菜单,不勾选则显示全部菜单`})}),(0,$.jsx)(`div`,{style:{padding:`12px 16px`,background:`#f8fafc`,borderRadius:8,maxHeight:400,overflow:`auto`},children:(0,$.jsx)(iA.Group,{value:v,onChange:e=>y(e),children:(0,$.jsxs)(wj,{direction:`vertical`,size:8,style:{width:`100%`},children:[F.map(e=>(0,$.jsxs)(iA,{value:e.path,style:{width:`100%`},children:[e.label,(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12,marginLeft:8},children:e.path})]},e.path)),M.map(e=>{let t=P[e.id]||[];return t.length===0?null:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{fontWeight:600,fontSize:13,color:`#6366f1`,marginBottom:4,marginTop:4},children:e.label}),(0,$.jsx)(wj,{direction:`vertical`,size:4,style:{paddingLeft:12,width:`100%`},children:t.map(e=>(0,$.jsxs)(iA,{value:e.path,style:{width:`100%`},children:[e.label,(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12,marginLeft:8},children:e.path})]},e.path))})]},e.id)})]})})})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(qW,{}),`重置密码 - `,b.user?.username]}),open:b.open,onOk:L,onCancel:()=>{S({open:!1,user:null}),T.resetFields()},okText:`确认重置`,cancelText:`取消`,width:420,children:(0,$.jsx)(Z,{form:T,layout:`vertical`,style:{marginTop:16},children:(0,$.jsx)(Z.Item,{name:`newPassword`,label:`新密码`,rules:[{required:!0,min:6,message:`密码至少6位`}],children:(0,$.jsx)(QM.Password,{placeholder:`请输入新密码(至少6位)`,size:`large`})})})})]})},HJ=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)({open:!1,model:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t(await Gq())}catch{}r(!1)};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={name:e.name,provider:e.provider,model_name:e.modelName,api_base:e.apiBase,api_key:e.apiKey,weight:e.weight,max_tokens:e.maxTokens,temperature:e.temperature,is_active:e.isActive??!0,priority:e.priority??0};i.model?.id?await Kq({id:i.model.id,...t}):await Kq(t),bP.success(i.model?.id?`模型配置已更新`:`模型配置已添加`),a({open:!1,model:null}),o.resetFields(),s()}catch(e){if(e?.errorFields)return;bP.error(e?.message||`保存失败`)}},l=async e=>{try{await qq(e),bP.success(`模型配置已删除`),s()}catch(e){bP.error(e?.message||`删除失败`)}},u=e=>{a({open:!0,model:e||null}),e?o.setFieldsValue(e):(o.resetFields(),o.setFieldsValue({provider:`sdk`,weight:1,maxTokens:4096,temperature:.7,isActive:!0,priority:0}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(Q.Text,{type:`secondary`,children:[`共 `,e.length,` 个模型配置,按权重进行加权随机调度`]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加模型`})]}),(0,$.jsx)(uB,{columns:[{title:`模型名称`,dataIndex:`name`,width:150,render:(e,t)=>(0,$.jsxs)(wj,{children:[(0,$.jsx)(`div`,{style:{width:32,height:32,borderRadius:8,background:t.isActive?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`linear-gradient(135deg, #94a3b8, #cbd5e1)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:14},children:(0,$.jsx)(VG,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{fontWeight:600},children:e}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.modelName})]})]})},{title:`提供商`,dataIndex:`provider`,width:140,render:e=>(0,$.jsx)(CB,{color:e===`mock`?`default`:`blue`,children:{sdk:`SDK模式`,openai_compatible:`OpenAI兼容`,mock:`Mock模式`}[e]||e})},{title:`API地址`,dataIndex:`apiBase`,width:200,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},ellipsis:!0,children:e||`-`})},{title:`权重`,dataIndex:`weight`,width:80,sorter:(e,t)=>e.weight-t.weight},{title:`Max Tokens`,dataIndex:`maxTokens`,width:100},{title:`Temperature`,dataIndex:`temperature`,width:100,render:e=>e.toFixed(1)},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CB,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除该模型配置?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(VG,{}),i.model?.id?`编辑模型`:`添加模型`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,model:null}),o.resetFields()},okText:`确认`,cancelText:`取消`,width:560,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`name`,label:`显示名称`,rules:[{required:!0,message:`请输入模型名称`}],children:(0,$.jsx)(QM,{placeholder:`例如:GPT-4o`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`provider`,label:`提供商`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`sdk`,label:`SDK模式`},{value:`openai_compatible`,label:`OpenAI兼容`},{value:`mock`,label:`Mock模式`}]})}),(0,$.jsx)(Z.Item,{name:`modelName`,label:`模型标识`,style:{flex:1},rules:[{required:!0,message:`请输入模型标识`}],children:(0,$.jsx)(QM,{placeholder:`例如:gpt-4o`,size:`large`})})]}),(0,$.jsx)(Z.Item,{name:`apiBase`,label:`API地址`,children:(0,$.jsx)(QM,{placeholder:`https://api.openai.com/v1`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`apiKey`,label:`API Key`,children:(0,$.jsx)(QM.Password,{placeholder:`sk-****`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`weight`,label:`权重`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:0,max:10,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`maxTokens`,label:`Max Tokens`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:256,max:128e3,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`temperature`,label:`Temperature`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:0,max:2,step:.1,style:{width:`100%`},size:`large`})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`priority`,label:`优先级`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)($A,{min:0,max:10,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用`,valuePropName:`checked`,style:{flex:1,paddingTop:30},children:(0,$.jsx)(yF,{})})]})]})})]})},UJ=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(``),[c]=Z.useForm();(0,x.useEffect)(()=>{l()},[]);let l=async()=>{r(!0);let e=await Jq();t(e);let n={};e.forEach(e=>{n[e.key]=e.value}),c.setFieldsValue(n),r(!1)},u=async()=>{try{let n=await c.validateFields();a(!0);for(let t of e){let e=n[t.key];e!==void 0&&e!==t.value&&await Yq(t.id,e??``)}bP.success(`系统配置已保存`),t(await Jq()),a(!1)}catch(e){a(!1),bP.error(e?.message||`保存失败`)}},d=async(e,n)=>{s(n);try{let r=await Xq(e,n);t(e=>e.map(e=>e.key===n?{...e,value:r.url}:e)),c.setFieldsValue({[n]:r.url}),bP.success(`PDF上传成功`)}catch{bP.error(`上传失败`)}finally{s(``)}return!1},f={站点信息:e.filter(e=>e.key.startsWith(`site_`)),协议配置:e.filter(e=>e.key===`user_agreement_url`||e.key===`privacy_policy_url`),"SEO 设置":e.filter(e=>e.key.startsWith(`seo_`))},p=e=>({site_name:`平台显示名称,将展示在页面标题和导航栏`,site_logo:`平台Logo图片URL,建议尺寸 200x40px`,user_agreement_url:`用户注册/登录时需同意的用户协议PDF文件`,privacy_policy_url:`用户注册/登录时需同意的隐私政策PDF文件`,seo_title:`搜索引擎结果中显示的标题`,seo_description:`搜索引擎结果中显示的描述文字,建议150字以内`,seo_keywords:`用逗号分隔的关键词列表`})[e.key]||e.description||``,m=e=>e.key===`seo_description`?(0,$.jsx)(QM.TextArea,{rows:3,placeholder:e.description,size:`large`}):e.key===`seo_keywords`?(0,$.jsx)(QM,{placeholder:`关键词1, 关键词2, 关键词3`,size:`large`}):(0,$.jsx)(QM,{placeholder:e.description,size:`large`}),h=({config:e})=>{let t=e.key===`user_agreement_url`?`用户协议`:`隐私政策`,n=e.value&&e.value.startsWith(`/uploads/`);return(0,$.jsxs)(`div`,{style:{padding:`16px`,borderRadius:10,border:`1px solid #f0f0f5`,background:`#fafbfc`,marginBottom:12},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:8},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(cW,{style:{color:`#ef4444`,fontSize:18}}),(0,$.jsx)(Q.Text,{strong:!0,children:t})]}),(0,$.jsxs)(wj,{children:[n&&(0,$.jsx)(mD,{size:`small`,icon:(0,$.jsx)(AM,{}),onClick:()=>window.open(`http://localhost:8000${e.value}`,`_blank`),children:`预览`}),(0,$.jsx)(_H,{accept:`.pdf`,showUploadList:!1,beforeUpload:t=>d(t,e.key),children:(0,$.jsx)(mD,{size:`small`,type:`primary`,icon:(0,$.jsx)(nq,{}),loading:o===e.key,children:n?`重新上传`:`上传PDF`})})]})]}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:n?`已上传: ${e.value}`:`尚未上传,前台将不显示对应链接`})]})};return n?(0,$.jsx)(Mk,{loading:!0,bordered:!1,style:{borderRadius:12}}):(0,$.jsxs)(`div`,{style:{maxWidth:720},children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,marginBottom:24},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(99,102,241,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#6366f1`},children:(0,$.jsx)(cK,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Title,{level:4,style:{margin:0},children:`系统设置`}),(0,$.jsx)(Q.Text,{type:`secondary`,children:`管理站点基础信息、协议文件和SEO配置`})]})]}),(0,$.jsx)(Z,{form:c,layout:`vertical`,children:Object.entries(f).map(([e,t])=>(0,$.jsxs)(`div`,{style:{marginBottom:24},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14,display:`block`,marginBottom:12,paddingBottom:8,borderBottom:`1px solid #f0f0f5`},children:e}),e===`协议配置`?t.map(e=>(0,$.jsx)(h,{config:e},e.id)):t.map(e=>(0,$.jsx)(Z.Item,{name:e.key,label:(0,$.jsx)(`span`,{style:{fontWeight:500},children:e.description}),extra:p(e),children:m(e)},e.id))]},e))})]}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`},children:(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)($G,{}),onClick:u,loading:i,size:`large`,style:{borderRadius:8,minWidth:140},children:`保存配置`})})]})},WJ=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)([]),[o,s]=(0,x.useState)(!1),[c]=Z.useForm(),[l,u]=(0,x.useState)({open:!1,notifId:``,title:``}),[d,f]=(0,x.useState)([]),[p,m]=(0,x.useState)(!1),h=async()=>{r(!0);try{let e=await fJ(),n=await Hq(),r={};n.forEach(e=>{r[e.id]=e.username}),t((e.items||[]).map(e=>({id:e.id,title:e.title,content:e.content,type:e.type,targetUserId:e.userId||null,target:e.userId?r[e.userId]||e.userId:`全部用户`,createdAt:e.createdAt}))),a(n.map(e=>({id:e.id,username:e.username})))}catch{bP.error(`加载通知列表失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{h()},[]);let g=async()=>{try{let e=await c.validateFields();await pJ({title:e.title,content:e.content,type:e.type||`system`,target_user_id:e.target_user_id||void 0}),bP.success(`消息已发送`),s(!1),c.resetFields(),h()}catch{}},_=async e=>{try{await mJ(e),bP.success(`已删除`),h()}catch(e){bP.error(e?.message||`删除失败`)}},v=async(e,t)=>{u({open:!0,notifId:e,title:t}),m(!0);try{f((await hJ(e)).items||[])}catch{bP.error(`加载已读列表失败`)}finally{m(!1)}},y=e=>{switch(e){case`system`:return`blue`;case`credit`:return`orange`;case`promo`:return`purple`;default:return`default`}};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)($H,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`消息推送管理`}),(0,$.jsxs)(CB,{color:`purple`,children:[e.length,` 条消息`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>s(!0),style:{borderRadius:8},children:`发送新消息`})]}),(0,$.jsx)(uB,{columns:[{title:`标题`,dataIndex:`title`,width:200,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`内容`,dataIndex:`content`,ellipsis:!0},{title:`类型`,dataIndex:`type`,width:80,render:e=>(0,$.jsx)(CB,{color:y(e),children:{system:`系统`,credit:`积分`,promo:`活动`}[e]||e})},{title:`发送目标`,dataIndex:`target`,width:120,render:e=>(0,$.jsx)(CB,{color:e===`全部用户`?`green`:`blue`,children:e})},{title:`发送时间`,dataIndex:`createdAt`,width:160,render:e=>BJ(e)},{title:`操作`,key:`action`,width:180,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(AM,{}),onClick:()=>v(t.id,t.title),children:`已读`}),(0,$.jsx)(DP,{title:`确定删除该消息?`,onConfirm:()=>_(t.id),children:(0,$.jsx)(mD,{type:`link`,danger:!0,size:`small`,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:{pageSize:10,showTotal:e=>`共 ${e} 条消息`},scroll:{x:900}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aK,{}),`发送消息`]}),open:o,onOk:g,onCancel:()=>{s(!1),c.resetFields()},okText:`发送`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`title`,label:`消息标题`,rules:[{required:!0,message:`请输入标题`}],children:(0,$.jsx)(QM,{placeholder:`请输入消息标题`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`content`,label:`消息内容`,rules:[{required:!0,message:`请输入内容`}],children:(0,$.jsx)(QM.TextArea,{rows:4,placeholder:`请输入消息内容`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`type`,label:`消息类型`,style:{flex:1},initialValue:`system`,rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`system`,label:`系统通知`},{value:`credit`,label:`积分通知`},{value:`promo`,label:`活动通知`}]})}),(0,$.jsx)(Z.Item,{name:`target_user_id`,label:`发送目标`,style:{flex:1},extra:`留空则发送给全部用户`,children:(0,$.jsx)(ZC,{size:`large`,allowClear:!0,placeholder:`全部用户`,options:i.map(e=>({value:e.id,label:e.username}))})})]})]})}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(VK,{}),`已读用户 — `,l.title]}),open:l.open,onCancel:()=>{u({open:!1,notifId:``,title:``}),f([])},footer:null,width:480,children:p?(0,$.jsx)(`div`,{style:{textAlign:`center`,padding:40},children:`加载中...`}):d.length===0?(0,$.jsx)(xC,{description:`暂无用户已读`,style:{padding:`40px 0`}}):(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{marginBottom:12,color:`#64748b`,fontSize:13},children:[`共 `,d.length,` 人已读`]}),(0,$.jsx)(uB,{dataSource:d,rowKey:`userId`,pagination:!1,size:`small`,columns:[{title:`用户名`,dataIndex:`username`,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`已读时间`,dataIndex:`readAt`,width:180,render:e=>BJ(e)}]})]})})]})},GJ={recharge:{text:`充值`,color:`green`,icon:(0,$.jsx)(VH,{})},consume:{text:`消费`,color:`red`,icon:(0,$.jsx)(RH,{})},refund:{text:`退回`,color:`blue`,icon:(0,$.jsx)(qG,{})}},KJ=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(``),c=async e=>{a(!0);try{let n=await Zq(e?{type:e}:void 0);t(n.items||[]),r(n.total||0)}catch{bP.error(`加载积分记录失败`)}finally{a(!1)}};(0,x.useEffect)(()=>{c()},[]);let l=e=>{s(e),c(e||void 0)},u=e.filter(e=>e.type===`recharge`).reduce((e,t)=>e+t.amount,0),d=e.filter(e=>e.type===`consume`).reduce((e,t)=>e+Math.abs(t.amount),0);return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,marginBottom:16},children:[(0,$.jsx)(Mk,{bordered:!1,style:{flex:1,borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(16,185,129,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#10b981`},children:(0,$.jsx)(VH,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:`总充值`}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,color:`#10b981`},children:[`+`,u.toLocaleString()]})]})]})}),(0,$.jsx)(Mk,{bordered:!1,style:{flex:1,borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(239,68,68,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#ef4444`},children:(0,$.jsx)(RH,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:`总消费`}),(0,$.jsxs)(`div`,{style:{fontSize:22,fontWeight:800,color:`#ef4444`},children:[`-`,d.toLocaleString()]})]})]})}),(0,$.jsx)(Mk,{bordered:!1,style:{flex:1,borderRadius:12,border:`1px solid #f0f0f5`},children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(99,102,241,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:20,color:`#6366f1`},children:(0,$.jsx)(dq,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:`交易笔数`}),(0,$.jsx)(`div`,{style:{fontSize:22,fontWeight:800,color:`#1a1a2e`},children:n})]})]})})]}),(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsx)(wj,{children:(0,$.jsx)(ZC,{value:o,onChange:l,style:{width:120},options:[{value:``,label:`全部类型`},{value:`recharge`,label:`充值`},{value:`consume`,label:`消费`},{value:`refund`,label:`退回`}]})}),(0,$.jsx)(mD,{icon:(0,$.jsx)(lF,{}),onClick:()=>c(o||void 0),children:`刷新`})]}),(0,$.jsx)(uB,{columns:[{title:`用户`,dataIndex:`username`,width:120,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`类型`,dataIndex:`type`,width:100,render:e=>{let t=GJ[e]||{text:e||`-`,color:`default`,icon:null};return(0,$.jsx)(CB,{color:t.color,icon:t.icon,children:t.text})}},{title:`变动积分`,dataIndex:`amount`,width:120,sorter:(e,t)=>e.amount-t.amount,render:e=>(0,$.jsxs)(Q.Text,{strong:!0,style:{color:e>0?`#10b981`:`#ef4444`,fontSize:15},children:[e>0?`+`:``,e.toLocaleString()]})},{title:`变动后余额`,dataIndex:`balanceAfter`,width:120,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,children:e.toLocaleString()})},{title:`说明`,dataIndex:`description`,ellipsis:!0},{title:`时间`,dataIndex:`createdAt`,width:160,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:BJ(e)})}],dataSource:e,rowKey:`id`,loading:i,pagination:{pageSize:10,showTotal:e=>`共 ${e} 条记录`},scroll:{x:800}})]})]})},qJ=()=>{let[e,t]=(0,x.useState)(!1),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(!1),[c]=Z.useForm(),l=async()=>{try{let e=await uJ();r(e);let t={};e.forEach(e=>{t[e.key]=e.value}),c.setFieldsValue({wechat_mch_id:t.payment_wechat_mch_id||``,wechat_api_key:t.payment_wechat_api_key||``,wechat_cert_path:t.payment_wechat_cert_path||``,wechat_notify_url:t.payment_wechat_notify_url||``,alipay_app_id:t.payment_alipay_app_id||``,alipay_private_key:t.payment_alipay_private_key||``,alipay_public_key:t.payment_alipay_public_key||``,alipay_notify_url:t.payment_alipay_notify_url||``}),a(t.payment_wechat_enabled===`true`),s(t.payment_alipay_enabled===`true`)}catch{bP.error(`加载支付配置失败`)}};return(0,x.useEffect)(()=>{l()},[]),(0,$.jsxs)(`div`,{style:{maxWidth:720},children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:20},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(7,193,96,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:22,color:`#07c160`},children:(0,$.jsx)(mq,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Title,{level:5,style:{margin:0},children:`微信支付`}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:`微信商户号支付配置`})]})]}),(0,$.jsx)(yF,{checked:i,onChange:a,checkedChildren:`已启用`,unCheckedChildren:`未启用`})]}),(0,$.jsxs)(Z,{form:c,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`wechat_mch_id`,label:`商户号 (MchID)`,children:(0,$.jsx)(QM,{placeholder:`微信支付商户号`,size:`large`,disabled:!i})}),(0,$.jsx)(Z.Item,{name:`wechat_api_key`,label:`API密钥`,children:(0,$.jsx)(QM.Password,{placeholder:`微信支付API密钥`,size:`large`,disabled:!i})}),(0,$.jsx)(Z.Item,{name:`wechat_cert_path`,label:`证书路径`,children:(0,$.jsx)(QM,{placeholder:`apiclient_cert.pem 路径`,size:`large`,disabled:!i})}),(0,$.jsx)(Z.Item,{name:`wechat_notify_url`,label:`回调地址`,children:(0,$.jsx)(QM,{placeholder:`https://yourdomain.com/api/payments/wechat/callback`,size:`large`,disabled:!i})})]})]}),(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`,marginBottom:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:20},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,$.jsx)(`div`,{style:{width:44,height:44,borderRadius:10,background:`rgba(0,122,255,0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:22,color:`#007aff`},children:(0,$.jsx)(kH,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Title,{level:5,style:{margin:0},children:`支付宝`}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:`支付宝应用支付配置`})]})]}),(0,$.jsx)(yF,{checked:o,onChange:s,checkedChildren:`已启用`,unCheckedChildren:`未启用`})]}),(0,$.jsxs)(Z,{form:c,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`alipay_app_id`,label:`AppID`,children:(0,$.jsx)(QM,{placeholder:`支付宝应用AppID`,size:`large`,disabled:!o})}),(0,$.jsx)(Z.Item,{name:`alipay_private_key`,label:`应用私钥`,children:(0,$.jsx)(QM.TextArea,{rows:3,placeholder:`支付宝应用私钥 (PKCS8格式)`,disabled:!o})}),(0,$.jsx)(Z.Item,{name:`alipay_public_key`,label:`支付宝公钥`,children:(0,$.jsx)(QM.TextArea,{rows:3,placeholder:`支付宝公钥`,disabled:!o})}),(0,$.jsx)(Z.Item,{name:`alipay_notify_url`,label:`回调地址`,children:(0,$.jsx)(QM,{placeholder:`https://yourdomain.com/api/payments/alipay/callback`,size:`large`,disabled:!o})})]})]}),(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`},children:(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)($G,{}),onClick:async()=>{try{let e=await c.validateFields();t(!0);let r=[[`payment_wechat_enabled`,String(i)],[`payment_wechat_mch_id`,e.wechat_mch_id||``],[`payment_wechat_api_key`,e.wechat_api_key||``],[`payment_wechat_cert_path`,e.wechat_cert_path||``],[`payment_wechat_notify_url`,e.wechat_notify_url||``],[`payment_alipay_enabled`,String(o)],[`payment_alipay_app_id`,e.alipay_app_id||``],[`payment_alipay_private_key`,e.alipay_private_key||``],[`payment_alipay_public_key`,e.alipay_public_key||``],[`payment_alipay_notify_url`,e.alipay_notify_url||``]];for(let[e,t]of r){let r=n.find(t=>t.key===e);r&&await dJ(r.id,t)}bP.success(`支付配置已保存`),l()}catch{bP.error(`保存失败`)}finally{t(!1)}},loading:e,size:`large`,style:{borderRadius:8,minWidth:140},children:`保存配置`})})]})},JJ=[{name:`ShoppingCartOutlined`,label:`购物`,component:(0,$.jsx)(dK,{})},{name:`BookOutlined`,label:`书籍`,component:(0,$.jsx)(nU,{})},{name:`HomeOutlined`,label:`房产`,component:(0,$.jsx)(FW,{})},{name:`FireOutlined`,label:`火`,component:(0,$.jsx)(dW,{})},{name:`RocketOutlined`,label:`科技`,component:(0,$.jsx)(WG,{})},{name:`SkinOutlined`,label:`时尚`,component:(0,$.jsx)(bK,{})},{name:`CompassOutlined`,label:`指南`,component:(0,$.jsx)(RU,{})},{name:`HeartOutlined`,label:`健康`,component:(0,$.jsx)(EW,{})},{name:`CarOutlined`,label:`汽车`,component:(0,$.jsx)(_U,{})},{name:`CameraOutlined`,label:`相机`,component:(0,$.jsx)(mU,{})},{name:`CloudOutlined`,label:`云`,component:(0,$.jsx)(EU,{})},{name:`StarOutlined`,label:`星`,component:(0,$.jsx)(MK,{})},{name:`TrophyOutlined`,label:`奖杯`,component:(0,$.jsx)(XK,{})},{name:`ThunderboltOutlined`,label:`闪电`,component:(0,$.jsx)(WK,{})},{name:`BulbOutlined`,label:`灯泡`,component:(0,$.jsx)(cU,{})},{name:`CoffeeOutlined`,label:`咖啡`,component:(0,$.jsx)(FU,{})},{name:`CrownOutlined`,label:`皇冠`,component:(0,$.jsx)(VU,{})},{name:`DashboardOutlined`,label:`仪表`,component:(0,$.jsx)(WU,{})},{name:`FlagOutlined`,label:`旗帜`,component:(0,$.jsx)(mW,{})},{name:`GlobalOutlined`,label:`全球`,component:(0,$.jsx)(CW,{})},{name:`GiftOutlined`,label:`礼物`,component:(0,$.jsx)(bW,{})},{name:`LaptopOutlined`,label:`笔记本`,component:(0,$.jsx)(VW,{})},{name:`MobileOutlined`,label:`手机`,component:(0,$.jsx)(dG,{})},{name:`MonitorOutlined`,label:`显示器`,component:(0,$.jsx)(mG,{})},{name:`PayCircleOutlined`,label:`支付`,component:(0,$.jsx)(_G,{})},{name:`PictureOutlined`,label:`图片`,component:(0,$.jsx)(CG,{})},{name:`PlayCircleOutlined`,label:`播放`,component:(0,$.jsx)(kG,{})},{name:`SafetyOutlined`,label:`安全`,component:(0,$.jsx)(XG,{})},{name:`ShoppingOutlined`,label:`商店`,component:(0,$.jsx)(mK,{})},{name:`SmileOutlined`,label:`笑脸`,component:(0,$.jsx)(CK,{})},{name:`SoundOutlined`,label:`声音`,component:(0,$.jsx)(kK,{})},{name:`TagOutlined`,label:`标签`,component:(0,$.jsx)(RK,{})},{name:`TeamOutlined`,label:`团队`,component:(0,$.jsx)(VK,{})},{name:`ToolOutlined`,label:`工具`,component:(0,$.jsx)(qK,{})},{name:`TruckOutlined`,label:`物流`,component:(0,$.jsx)($K,{})},{name:`VideoCameraOutlined`,label:`视频`,component:(0,$.jsx)(cq,{})},{name:`WalletOutlined`,label:`钱包`,component:(0,$.jsx)(dq,{})},{name:`BankOutlined`,label:`银行`,component:(0,$.jsx)(qH,{})},{name:`BuildOutlined`,label:`建筑`,component:(0,$.jsx)(aU,{})},{name:`ExperimentOutlined`,label:`实验`,component:(0,$.jsx)(nW,{})},{name:`HighlightOutlined`,label:`高亮`,component:(0,$.jsx)(kW,{})},{name:`IdcardOutlined`,label:`名片`,component:(0,$.jsx)(RW,{})},{name:`MedicineBoxOutlined`,label:`医药`,component:(0,$.jsx)(nG,{})},{name:`ReadOutlined`,label:`阅读`,component:(0,$.jsx)(FG,{})},{name:`RestOutlined`,label:`休息`,component:(0,$.jsx)(RG,{})},{name:`SketchOutlined`,label:`钻石`,component:(0,$.jsx)(_K,{})},{name:`SolutionOutlined`,label:`方案`,component:(0,$.jsx)(EK,{})}],YJ=Object.fromEntries(JJ.map(e=>[e.name,e.component]));function XJ(e){return YJ[e]||(0,$.jsx)(FH,{})}function ZJ(e){try{let t=typeof e==`string`?JSON.parse(e):e;if(!Array.isArray(t))return{skillItems:[],optionGroups:[]};let n=[],r=[];for(let e of t)e&&e.type===`option_group`&&e.name&&Array.isArray(e.options)?r.push({name:e.name,options:e.options}):e&&e.key&&e.label&&n.push({key:e.key,label:e.label});return{skillItems:n,optionGroups:r}}catch{return{skillItems:[],optionGroups:[]}}}var QJ=({value:e,onChange:t})=>{let n=JJ.find(t=>t.name===e);return(0,$.jsx)(Ej,{trigger:[`click`],dropdownRender:()=>(0,$.jsx)(`div`,{style:{background:`#fff`,borderRadius:12,padding:12,width:360,boxShadow:`0 12px 40px rgba(0,0,0,0.15)`,border:`1px solid #f0f0f5`},children:(0,$.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(8, 1fr)`,gap:4},children:JJ.map(n=>(0,$.jsx)(`div`,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),t?.(n.name)},title:n.label,style:{width:40,height:40,borderRadius:8,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,fontSize:18,transition:`all 0.15s`,background:e===n.name?`#6366f1`:`transparent`,color:e===n.name?`#fff`:`#64748b`,border:e===n.name?`none`:`1px solid transparent`},onMouseEnter:t=>{e!==n.name&&(t.currentTarget.style.background=`#f1f5f9`)},onMouseLeave:t=>{e!==n.name&&(t.currentTarget.style.background=`transparent`)},children:n.component},n.name))})}),children:(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,padding:`8px 12px`,borderRadius:8,border:`1px solid #d9d9d9`,cursor:`pointer`,height:40},children:[e?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{style:{fontSize:18,color:`#6366f1`},children:XJ(e)}),(0,$.jsx)(`span`,{style:{color:`#64748b`,fontSize:13},children:n?.label||e})]}):(0,$.jsx)(`span`,{style:{color:`#bfbfbf`,fontSize:13},children:`选择图标`}),(0,$.jsx)(UC,{style:{fontSize:10,color:`#bfbfbf`,marginLeft:`auto`}})]})})},$J=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)({open:!1,item:null}),[c]=Z.useForm(),l=async()=>{r(!0);try{t((await Qq()).map(e=>{let{skillItems:t,optionGroups:n}=ZJ(e.skills);return{id:e.id,key:e.key,label:e.label,icon:e.icon||``,description:e.description||``,skills:JSON.stringify(t),optionGroups:n,isActive:e.is_active??e.isActive??!0,sortOrder:e.sort_order??e.sortOrder??0}}))}catch{bP.error(`加载行业配置失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{l()},[]);let u=async()=>{try{let e=await c.validateFields();a(!0);let t=[];e.skills_wentutujie?.trim()&&t.push({type:`skill`,key:`文图理解生成视频提示词`,label:e.skills_wentutujie.trim()}),e.skills_wentutujie_image?.trim()&&t.push({type:`skill`,key:`文图理解生成图片提示词`,label:e.skills_wentutujie_image.trim()});let n=(e.optionGroups||[]).filter(e=>e?.name?.trim()).map(e=>({name:e.name.trim(),options:(e.options||[]).filter(e=>e?.trim())})).filter(e=>e.options.length>0);for(let e of n)t.push({type:`option_group`,name:e.name,options:e.options});let r={key:e.key,label:e.label,icon:e.icon||``,description:e.description||``,skills:t,is_active:e.is_active??!0,sort_order:e.sort_order??0};o.item?.id?(await $q({id:o.item.id,...r}),bP.success(`已更新`)):(await $q(r),bP.success(`已添加`)),s({open:!1,item:null}),c.resetFields(),l()}catch(e){if(e?.errorFields)return;bP.error(e?.message||`保存失败`)}finally{a(!1)}},d=async e=>{try{await eJ(e),bP.success(`已删除`),l()}catch(e){bP.error(e?.message||`删除失败`)}},f=e=>{s({open:!0,item:e||null});let t=``,n=``,r=[];if(e){try{let r=JSON.parse(e.skills);if(Array.isArray(r))for(let e of r)(e.key===`文图理解生成视频提示词`||e.key===`文图理解`)&&(t=e.label||``),e.key===`文图理解生成图片提示词`&&(n=e.label||``)}catch{}r=e.optionGroups.length>0?e.optionGroups:[{name:``,options:[]}]}e?c.setFieldsValue({key:e.key,label:e.label,icon:e.icon||``,description:e.description,skills_wentutujie:t,skills_wentutujie_image:n,optionGroups:r,is_active:e.isActive,sort_order:e.sortOrder}):(c.resetFields(),c.setFieldsValue({is_active:!0,sort_order:0,optionGroups:[{name:``,options:[]}]}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(FH,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`行业与技能配置`}),(0,$.jsxs)(CB,{color:`purple`,children:[e.length,` 个行业`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>f(),style:{borderRadius:8},children:`添加行业`})]}),(0,$.jsx)(uB,{columns:[{title:`行业`,key:`industry`,width:180,render:(e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:10,background:`#f1f5f9`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:18,color:`#6366f1`,flexShrink:0},children:XJ(t.icon)}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.label}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.key})]})]})},{title:`描述`,dataIndex:`description`,ellipsis:!0},{title:`选项配置`,key:`optionGroups`,width:260,render:(e,t)=>!t.optionGroups||t.optionGroups.length===0?(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#cbd5e1`},children:`未配置`}):(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4},children:t.optionGroups.map((e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,$.jsx)(CB,{color:`blue`,style:{margin:0,fontSize:11},children:e.name}),(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#64748b`},children:[e.options.slice(0,3).join(`、`),e.options.length>3?`...${e.options.length}项`:``]})]},t))})},{title:`文图理解生成视频提示词`,dataIndex:`skills`,ellipsis:!0,render:e=>{try{let t=JSON.parse(e);if(Array.isArray(t)){let e=t.find(e=>e.key===`文图理解生成视频提示词`||e.key===`文图理解`);if(e)return(0,$.jsx)(Q.Text,{ellipsis:!0,style:{fontSize:12},children:e.label})}}catch{}return(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`})}},{title:`文图理解生成图片提示词`,dataIndex:`skills`,ellipsis:!0,render:e=>{try{let t=JSON.parse(e);if(Array.isArray(t)){let e=t.find(e=>e.key===`文图理解生成图片提示词`);if(e)return(0,$.jsx)(Q.Text,{ellipsis:!0,style:{fontSize:12},children:e.label})}}catch{}return(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`})}},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CB,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>f(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除该行业?`,onConfirm:()=>d(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(FH,{}),o.item?`编辑行业`:`添加行业`]}),open:o.open,onOk:u,onCancel:()=>{s({open:!1,item:null}),c.resetFields()},okText:`保存`,cancelText:`取消`,width:640,confirmLoading:i,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`key`,label:`行业标识`,style:{flex:1},rules:[{required:!0,message:`请输入标识`}],children:(0,$.jsx)(QM,{placeholder:`例如:ecommerce`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`label`,label:`行业名称`,style:{flex:1},rules:[{required:!0,message:`请输入名称`}],children:(0,$.jsx)(QM,{placeholder:`例如:电商`,size:`large`})})]}),(0,$.jsx)(Z.Item,{name:`icon`,label:`行业图标`,children:(0,$.jsx)(QJ,{})}),(0,$.jsx)(Z.Item,{name:`description`,label:`行业描述`,children:(0,$.jsx)(QM.TextArea,{rows:2,placeholder:`行业描述`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`skills_wentutujie`,label:`文图理解生成视频提示词`,extra:`用于LLM优化视频提示词的系统指令,根据行业特点引导AI理解文案与画面的关系`,children:(0,$.jsx)(QM.TextArea,{rows:3,placeholder:`请输入文图理解生成视频提示词,例如: +你是一位专业的电商视频文案专家,擅长将产品卖点转化为视觉语言`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`skills_wentutujie_image`,label:`文图理解生成图片提示词`,extra:`用于LLM优化图片提示词的系统指令,根据行业特点引导AI理解文案与画面的关系`,children:(0,$.jsx)(QM.TextArea,{rows:3,placeholder:`请输入文图理解生成图片提示词,例如: +你是一位专业的电商图片文案专家,擅长将产品卖点转化为图片生成提示词`,size:`large`})}),(0,$.jsxs)(`div`,{style:{marginBottom:8},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13},children:`行业选项配置`}),(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,marginLeft:8},children:`添加选项组,每组包含名称和多个选项,前台将显示为下拉选择`})]}),(0,$.jsx)(Z.List,{name:`optionGroups`,children:(e,{add:t,remove:n})=>(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8,marginBottom:16},children:[e.map(({key:e,name:t,...r})=>(0,$.jsxs)(`div`,{style:{display:`flex`,gap:8,alignItems:`flex-start`,padding:`10px 12px`,borderRadius:10,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,gap:8},children:[(0,$.jsx)(Z.Item,{...r,name:[t,`name`],label:`选项名称`,style:{marginBottom:0},rules:[{required:!0,message:`请输入选项名称`}],children:(0,$.jsx)(QM,{placeholder:`例如:视频风格`,size:`middle`,style:{borderRadius:8}})}),(0,$.jsx)(Z.Item,{...r,name:[t,`options`],label:`选项内容`,style:{marginBottom:0},children:(0,$.jsx)(ZC,{mode:`tags`,size:`middle`,placeholder:`输入选项后回车添加`,style:{borderRadius:8},tokenSeparators:[`,`,`,`,`、`]})})]}),(0,$.jsx)(cG,{onClick:()=>n(t),style:{color:`#ef4444`,fontSize:16,marginTop:34,cursor:`pointer`,flexShrink:0}})]},e)),(0,$.jsx)(mD,{type:`dashed`,onClick:()=>t(),block:!0,icon:(0,$.jsx)(_O,{}),style:{borderRadius:8,height:36},children:`添加选项组`})]})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`is_active`,label:`启用状态`,valuePropName:`checked`,initialValue:!0,style:{flex:1},children:(0,$.jsx)(yF,{})}),(0,$.jsx)(Z.Item,{name:`sort_order`,label:`排序`,initialValue:0,style:{flex:1},children:(0,$.jsx)(QM,{type:`number`,size:`large`})})]})]})})]})};function eY(e){if(Array.isArray(e))return e;if(typeof e==`string`)try{return JSON.parse(e)}catch{return[]}return[]}var tY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)({open:!1,engine:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t((await tJ()).map(e=>({...e,supportedRatios:eY(e.supportedRatios),supportedResolutions:eY(e.supportedResolutions),supportedDurations:eY(e.supportedDurations)})))}catch{bP.error(`加载视频引擎失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={name:e.name,provider:e.provider,api_base:e.apiBase,api_key:e.apiKey,model_name:e.modelName,supported_ratios:JSON.stringify(e.supportedRatios||[]),supported_resolutions:JSON.stringify(e.supportedResolutions||[]),supported_durations:JSON.stringify(e.supportedDurations||[]),is_active:e.isActive??!0,priority:e.priority??0};i.engine?(await nJ({id:i.engine.id,...t}),bP.success(`已更新`)):(await nJ(t),bP.success(`已添加`)),a({open:!1,engine:null}),o.resetFields(),s()}catch(e){if(e?.errorFields)return;bP.error(e?.message||`保存失败`)}},l=async e=>{try{await rJ(e),bP.success(`已删除`),s()}catch{bP.error(`删除失败`)}},u=e=>{a({open:!0,engine:e||null}),e?o.setFieldsValue(e):(o.resetFields(),o.setFieldsValue({isActive:!0,priority:0,supportedRatios:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`],supportedResolutions:[`480p`,`720p`,`1080p`],supportedDurations:[4,5,6,7,8,9,10,11,12,13,14,15]}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(kG,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`视频引擎配置`}),(0,$.jsxs)(CB,{color:`purple`,children:[e.length,` 个引擎`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加引擎`})]}),(0,$.jsx)(uB,{columns:[{title:`引擎名称`,key:`name`,width:180,render:(e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:8,background:t.isActive?`linear-gradient(135deg, #6366f1, #8b5cf6)`:`linear-gradient(135deg, #94a3b8, #cbd5e1)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:16},children:(0,$.jsx)(kG,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.name}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.provider})]})]})},{title:`支持比例`,dataIndex:`supportedRatios`,width:200,render:e=>(0,$.jsx)(wj,{size:2,wrap:!0,children:e.map(e=>(0,$.jsx)(CB,{children:e},e))})},{title:`支持分辨率`,dataIndex:`supportedResolutions`,width:150,render:e=>(0,$.jsx)(wj,{size:2,wrap:!0,children:e.map(e=>(0,$.jsx)(CB,{color:`blue`,children:e},e))})},{title:`支持时长`,dataIndex:`supportedDurations`,width:120,render:e=>(0,$.jsx)(CB,{color:`orange`,children:e?.length?`${Math.min(...e)}-${Math.max(...e)}s`:`-`})},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CB,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(kG,{}),i.engine?`编辑引擎`:`添加引擎`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,engine:null}),o.resetFields()},okText:`保存`,cancelText:`取消`,width:620,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`name`,label:`引擎名称`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(QM,{placeholder:`Seedance 2.0`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`provider`,label:`提供商`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`ark`,label:`火山引擎 (Ark)`}]})})]}),(0,$.jsx)(Z.Item,{name:`apiBase`,label:`API基础地址`,rules:[{required:!0}],children:(0,$.jsx)(QM,{placeholder:`https://ark.cn-beijing.volces.com/api/v3`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`apiKey`,label:`API Key`,children:(0,$.jsx)(QM.Password,{placeholder:`sk-****`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`modelName`,label:`模型名称`,children:(0,$.jsx)(QM,{placeholder:`doubao-seedance-2-0-260128`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`supportedRatios`,label:`支持比例`,children:(0,$.jsx)(ZC,{mode:`multiple`,size:`large`,options:[{value:`16:9`,label:`16:9 (横屏)`},{value:`4:3`,label:`4:3 (标准)`},{value:`1:1`,label:`1:1 (方形)`},{value:`3:4`,label:`3:4 (竖版)`},{value:`9:16`,label:`9:16 (竖屏)`},{value:`21:9`,label:`21:9 (超宽)`}]})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`supportedResolutions`,label:`支持分辨率`,style:{flex:1},children:(0,$.jsx)(ZC,{mode:`multiple`,size:`large`,options:[{value:`480p`},{value:`720p`},{value:`1080p`}]})}),(0,$.jsx)(Z.Item,{name:`supportedDurations`,label:`支持时长(秒)`,style:{flex:1},children:(0,$.jsx)(ZC,{mode:`multiple`,size:`large`,options:Array.from({length:12},(e,t)=>({value:t+4,label:`${t+4}秒`}))})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`priority`,label:`优先级`,children:(0,$.jsx)(ZC,{size:`large`,options:[{value:0,label:`0 (默认)`},{value:1,label:`1`},{value:2,label:`2`},{value:3,label:`3`},{value:5,label:`5`},{value:10,label:`10 (最高)`}]})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用状态`,valuePropName:`checked`,style:{paddingTop:30},children:(0,$.jsx)(yF,{})})]})]})})]})};function nY(e){if(Array.isArray(e))return e;if(typeof e==`string`)try{return JSON.parse(e)}catch{return[]}return[]}function rY(e){if(e&&typeof e==`object`&&!Array.isArray(e))return e;if(typeof e==`string`)try{let t=JSON.parse(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:{}}catch{return{}}return{}}var iY={"2K":{"1:1":`2048×2048`,"4:3":`2304×1728`,"3:4":`1728×2304`,"16:9":`2560×1440`,"9:16":`1600×2848`,"3:2":`2496×1664`,"2:3":`1664×2496`,"21:9":`3024×1296`},"4K":{"1:1":`4096×4096`,"4:3":`4608×3456`,"3:4":`3520×4704`,"16:9":`5404×3040`,"9:16":`3040×5504`,"3:2":`4992×3328`,"2:3":`3328×4992`,"21:9":`6197×2656`}},aY=[`1:1`,`4:3`,`3:4`,`16:9`,`9:16`,`3:2`,`2:3`,`21:9`],oY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)({open:!1,engine:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t((await iJ()).map(e=>({...e,supportedModels:nY(e.supportedModels),supportedSizes:rY(e.supportedSizes)})))}catch{bP.error(`加载图片引擎失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={};for(let n of[`2K`,`4K`]){let r=e[`size_${n}`]||[];if(r.length>0){t[n]={};for(let e of r)t[n][e]=iY[n]?.[e]||e}}let n={name:e.name,provider:e.provider,api_base:e.apiBase,api_key:e.apiKey,model_name:e.modelName,supported_models:JSON.stringify(e.supportedModels||[]),supported_sizes:JSON.stringify(t),default_size:e.defaultSize||`2K`,generate_url:e.generateUrl||``,is_active:e.isActive??!0,priority:e.priority??0};i.engine?(await aJ({id:i.engine.id,...n}),bP.success(`已更新`)):(await aJ(n),bP.success(`已添加`)),a({open:!1,engine:null}),o.resetFields(),s()}catch(e){if(e?.errorFields)return;bP.error(e?.message||`保存失败`)}},l=async e=>{try{await oJ(e),bP.success(`已删除`),s()}catch{bP.error(`删除失败`)}},u=e=>{if(a({open:!0,engine:e||null}),e){let t={};for(let n of[`2K`,`4K`])t[`size_${n}`]=Object.keys(e.supportedSizes?.[n]||{});o.setFieldsValue({...e,...t})}else o.resetFields(),o.setFieldsValue({isActive:!0,priority:0,supportedModels:[`doubao-seedream-5-0-260128`],defaultSize:`2K`,size_2K:aY,size_4K:aY})};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(CG,{style:{fontSize:18,color:`#10b981`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`图片引擎配置`}),(0,$.jsxs)(CB,{color:`green`,children:[e.length,` 个引擎`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加引擎`})]}),(0,$.jsx)(uB,{columns:[{title:`引擎名称`,key:`name`,width:180,render:(e,t)=>(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10},children:[(0,$.jsx)(`div`,{style:{width:36,height:36,borderRadius:8,background:t.isActive?`linear-gradient(135deg, #10b981, #059669)`:`linear-gradient(135deg, #94a3b8, #cbd5e1)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,fontSize:16},children:(0,$.jsx)(CG,{})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.name}),(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.modelName})]})]})},{title:`2K 支持比例`,key:`sizes_2k`,width:260,render:(e,t)=>{let n=Object.keys(t.supportedSizes?.[`2K`]||{});return n.length===0?(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`}):(0,$.jsx)(wj,{size:2,wrap:!0,children:n.map(e=>(0,$.jsxs)(CB,{color:`blue`,children:[e,` `,t.supportedSizes[`2K`][e]]},e))})}},{title:`4K 支持比例`,key:`sizes_4k`,width:260,render:(e,t)=>{let n=Object.keys(t.supportedSizes?.[`4K`]||{});return n.length===0?(0,$.jsx)(`span`,{style:{color:`#bfbfbf`},children:`-`}):(0,$.jsx)(wj,{size:2,wrap:!0,children:n.map(e=>(0,$.jsxs)(CB,{color:`purple`,children:[e,` `,t.supportedSizes[`4K`][e]]},e))})}},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CB,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:1e3}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(CG,{}),i.engine?`编辑引擎`:`添加引擎`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,engine:null}),o.resetFields()},okText:`保存`,cancelText:`取消`,width:680,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`name`,label:`引擎名称`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(QM,{placeholder:`豆包文生图`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`provider`,label:`提供商`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`ark`,label:`火山引擎 (Ark)`}]})})]}),(0,$.jsx)(Z.Item,{name:`apiBase`,label:`API基础地址`,rules:[{required:!0}],children:(0,$.jsx)(QM,{placeholder:`https://ark.cn-beijing.volces.com/api/v3`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`apiKey`,label:`API Key`,children:(0,$.jsx)(QM.Password,{placeholder:`sk-****`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`modelName`,label:`默认模型`,children:(0,$.jsx)(QM,{placeholder:`doubao-seedream-5-0-260128`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`supportedModels`,label:`支持模型列表`,children:(0,$.jsx)(ZC,{mode:`tags`,size:`large`,placeholder:`输入模型ID后回车添加`,tokenSeparators:[`,`,`,`],options:[{value:`doubao-seedream-5-0-260128`}]})}),(0,$.jsxs)(`div`,{style:{background:`#f8f9fc`,borderRadius:10,padding:16,marginBottom:8},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:`尺寸配置`}),(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,marginLeft:8},children:`勾选每个档位支持的比例,前台选择后传对应像素值给SDK`})]}),[`2K`,`4K`].map(e=>(0,$.jsxs)(`div`,{style:{background:`#fafbfc`,borderRadius:10,padding:`12px 16px`,marginBottom:12,border:`1px solid #f0f0f5`},children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13,color:e===`2K`?`#3b82f6`:`#8b5cf6`},children:e}),(0,$.jsx)(Z.Item,{name:`size_${e}`,style:{marginTop:8,marginBottom:0},children:(0,$.jsx)(iA.Group,{style:{width:`100%`},children:(0,$.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(4, 1fr)`,gap:`6px 0`},children:aY.map(t=>(0,$.jsxs)(iA,{value:t,style:{fontSize:12},children:[t,` `,(0,$.jsx)(`span`,{style:{color:`#94a3b8`,fontSize:11},children:iY[e]?.[t]})]},t))})})})]},e)),(0,$.jsx)(Z.Item,{name:`defaultSize`,label:`默认尺寸档位`,children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`2K`,label:`2K`},{value:`4K`,label:`4K`}]})}),(0,$.jsx)(Z.Item,{name:`generateUrl`,label:`生成接口地址`,children:(0,$.jsx)(QM,{placeholder:`https://ark.cn-beijing.volces.com/api/v3/images/generations`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`priority`,label:`优先级`,children:(0,$.jsx)(ZC,{size:`large`,options:[{value:0,label:`0 (默认)`},{value:1,label:`1`},{value:2,label:`2`},{value:3,label:`3`},{value:5,label:`5`},{value:10,label:`10 (最高)`}]})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用状态`,valuePropName:`checked`,style:{paddingTop:30},children:(0,$.jsx)(yF,{})})]})]})})]})},sY=[`2K`,`4K`],cY=[`480p`,`720p`,`1080p`],lY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)({open:!1,ratio:null}),[c]=Z.useForm(),[l,u]=(0,x.useState)(10),[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(!1),h=Z.useWatch(`genType`,c)||`video`,g=Z.useWatch(`modelConfigId`,c),_=async()=>{a(!0);try{let[e,n,i]=await Promise.all([sJ(),Jq(),AJ()]),a=(i?.engine?.image||[]).map(e=>({...e,genType:`image`})),o=(i?.engine?.video||[]).map(e=>({...e,genType:`video`}));t(e),r([...o,...a]);let s=n.find(e=>e.key===`text_credits_per_1000_tokens`);s&&(u(Number(s.value)||10),f({id:s.id}))}catch{bP.error(`加载积分比例失败`)}finally{a(!1)}};(0,x.useEffect)(()=>{_()},[]);let v=(0,x.useMemo)(()=>n.filter(e=>e.genType===h).map(e=>({value:e.id,label:`${e.name}${e.modelName?`(${e.modelName})`:``}`})),[n,h]),y=(0,x.useMemo)(()=>n.find(e=>e.id===g&&e.genType===h),[n,h,g]),b=(0,x.useMemo)(()=>{if(h===`image`){let e=y?.supportedSizes?Object.keys(y.supportedSizes):[];return(e.length?e:sY).map(e=>({value:e,label:e}))}let e=y?.supportedResolutions||[];return(e.length?e:cY).map(e=>({value:e,label:e}))},[h,y]),S=(e,t)=>n.find(n=>n.id===e&&(!t||n.genType===t))?.name||e,C=async()=>{try{let e=await c.validateFields(),t={model_config_id:e.modelConfigId,gen_type:e.genType,resolution:e.resolution,ratio:e.ratio,base_credits:e.baseCredits,per_second_credits:e.genType===`image`?0:e.perSecondCredits||0};o.ratio?(await cJ({id:o.ratio.id,...t}),bP.success(`已更新`)):(await cJ(t),bP.success(`已添加`)),s({open:!1,ratio:null}),c.resetFields(),_()}catch(e){if(e?.errorFields)return;bP.error(e?.message||`保存失败`)}},w=async e=>{try{await lJ(e),bP.success(`已删除`),_()}catch{bP.error(`删除失败`)}},T=async()=>{if(d){m(!0);try{await Yq(d.id,String(l)),bP.success(`文字积分费率已更新`)}catch(e){bP.error(e?.message||`保存失败`)}finally{m(!1)}}},E=e=>{s({open:!0,ratio:e||null}),e?c.setFieldsValue({modelConfigId:e.modelConfigId,genType:e.genType===`image`?`image`:`video`,resolution:e.resolution,ratio:e.ratio,baseCredits:e.baseCredits,perSecondCredits:e.perSecondCredits}):(c.resetFields(),c.setFieldsValue({genType:`video`,ratio:1,baseCredits:60,perSecondCredits:2}))};return(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16},children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(_W,{style:{fontSize:18,color:`#f59e0b`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`文字积分费率`})]}),(0,$.jsx)(mD,{type:`primary`,loading:p,onClick:T,style:{borderRadius:8},children:`保存`})]}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{display:`block`,marginBottom:16,fontSize:13},children:`文字积分计算公式:ceil(总token数 x 费率 / 1000),最低1积分`}),(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[(0,$.jsx)(Q.Text,{children:`每1000 token消耗积分:`}),(0,$.jsx)($A,{min:0,max:1e3,step:.01,value:l,onChange:e=>u(e||0),size:`large`,style:{width:160},addonAfter:`积分`}),(0,$.jsxs)(Q.Text,{type:`secondary`,style:{fontSize:12},children:[`示例:1000 token = `,l,` 积分,500 token = `,(500*l/1e3).toFixed(4),` 积分`]})]})]}),(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(dU,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`积分比例配置`}),(0,$.jsxs)(CB,{color:`purple`,children:[e.length,` 条规则`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>E(),style:{borderRadius:8},children:`添加比例`})]}),(0,$.jsx)(Q.Text,{type:`secondary`,style:{display:`block`,marginBottom:16,fontSize:13},children:`视频积分公式:(基础积分 + 每秒积分 x 视频时长) x 模型倍率;图片积分公式:基础积分 x 模型倍率`}),(0,$.jsx)(uB,{columns:[{title:`类型`,dataIndex:`genType`,width:80,render:e=>(0,$.jsx)(CB,{color:e===`image`?`cyan`:`orange`,children:e===`image`?`图片`:`视频`})},{title:`引擎`,dataIndex:`modelConfigId`,width:180,render:(e,t)=>(0,$.jsx)(CB,{color:t.genType===`image`?`cyan`:`purple`,children:S(e,t.genType)})},{title:`分辨率/尺寸`,dataIndex:`resolution`,width:110,render:e=>(0,$.jsx)(CB,{color:{"480p":`blue`,"720p":`blue`,"1080p":`blue`,"4K":`green`,"2K":`green`}[e]||`default`,children:e})},{title:`倍率`,dataIndex:`ratio`,width:100,sorter:(e,t)=>e.ratio-t.ratio,render:e=>(0,$.jsxs)(Q.Text,{strong:!0,style:{color:e>=2?`#ef4444`:e>=1.5?`#f59e0b`:`#10b981`},children:[`x`,e]})},{title:`基础积分`,dataIndex:`baseCredits`,width:100,render:e=>(0,$.jsxs)(Q.Text,{children:[e,` 积分`]})},{title:`每秒积分`,dataIndex:`perSecondCredits`,width:100,render:(e,t)=>(0,$.jsx)(Q.Text,{children:t.genType===`image`?`-`:`${e} 积分/秒`})},{title:`示例计算`,key:`example`,width:120,render:(e,t)=>{let n;return n=t.genType===`image`?Math.round(t.baseCredits*t.ratio):Math.round((t.baseCredits+t.perSecondCredits*15)*t.ratio),(0,$.jsxs)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:[n,` 积分`]})}},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>E(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除?`,onConfirm:()=>w(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:i,pagination:!1,scroll:{x:860}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(dU,{}),o.ratio?`编辑比例`:`添加比例`]}),open:o.open,onOk:C,onCancel:()=>{s({open:!1,ratio:null}),c.resetFields()},okText:`保存`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`genType`,label:`生成类型`,rules:[{required:!0,message:`请选择生成类型`}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`video`,label:`视频`},{value:`image`,label:`图片`}],onChange:()=>{c.setFieldsValue({modelConfigId:void 0,resolution:void 0})}})}),(0,$.jsx)(Z.Item,{name:`modelConfigId`,label:`引擎`,rules:[{required:!0,message:`请选择引擎`}],children:(0,$.jsx)(ZC,{size:`large`,placeholder:`请选择引擎`,options:v,showSearch:!0,optionFilterProp:`label`,onChange:()=>c.setFieldsValue({resolution:void 0})})}),(0,$.jsx)(Z.Item,{name:`resolution`,label:h===`image`?`图片尺寸`:`分辨率`,rules:[{required:!0,message:h===`image`?`请选择图片尺寸`:`请选择分辨率`}],children:(0,$.jsx)(ZC,{size:`large`,placeholder:h===`image`?`请选择图片尺寸`:`请选择分辨率`,options:b})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`ratio`,label:`倍率`,style:{flex:1},rules:[{required:!0,message:`请输入倍率`}],children:(0,$.jsx)($A,{min:.1,max:10,step:.1,style:{width:`100%`},size:`large`})}),(0,$.jsx)(Z.Item,{name:`baseCredits`,label:`基础积分`,style:{flex:1},rules:[{required:!0,message:`请输入基础积分`}],children:(0,$.jsx)($A,{min:0,max:1e3,style:{width:`100%`},size:`large`})}),h!==`image`&&(0,$.jsx)(Z.Item,{name:`perSecondCredits`,label:`每秒积分`,style:{flex:1},rules:[{required:!0,message:`请输入每秒积分`}],children:(0,$.jsx)($A,{min:0,max:100,style:{width:`100%`},size:`large`})})]})]})})]})},uY={HomeOutlined:(0,$.jsx)(FW,{}),PlayCircleOutlined:(0,$.jsx)(kG,{}),WalletOutlined:(0,$.jsx)(dq,{}),RobotOutlined:(0,$.jsx)(VG,{}),SettingOutlined:(0,$.jsx)(cK,{}),BellOutlined:(0,$.jsx)($H,{}),UserOutlined:(0,$.jsx)(aq,{}),AppstoreOutlined:(0,$.jsx)(FH,{}),FileTextOutlined:(0,$.jsx)(kj,{}),StarOutlined:(0,$.jsx)(MK,{}),HeartOutlined:(0,$.jsx)(EW,{}),CameraOutlined:(0,$.jsx)(mU,{}),DashboardOutlined:(0,$.jsx)(WU,{}),CalculatorOutlined:(0,$.jsx)(dU,{}),DollarOutlined:(0,$.jsx)(XU,{}),GiftOutlined:(0,$.jsx)(bW,{}),ThunderboltOutlined:(0,$.jsx)(WK,{}),FireOutlined:(0,$.jsx)(dW,{}),CloudOutlined:(0,$.jsx)(EU,{}),SmileOutlined:(0,$.jsx)(CK,{}),TrophyOutlined:(0,$.jsx)(XK,{}),RocketOutlined:(0,$.jsx)(WG,{}),BulbOutlined:(0,$.jsx)(cU,{}),CodeOutlined:(0,$.jsx)(MU,{}),PictureOutlined:(0,$.jsx)(CG,{}),VideoCameraOutlined:(0,$.jsx)(cq,{}),AudioOutlined:(0,$.jsx)(WH,{}),MailOutlined:(0,$.jsx)($W,{}),PhoneOutlined:(0,$.jsx)(bG,{}),GlobalOutlined:(0,$.jsx)(CW,{}),ShoppingCartOutlined:(0,$.jsx)(dK,{}),TeamOutlined:(0,$.jsx)(VK,{}),BarChartOutlined:(0,$.jsx)(XH,{}),PieChartOutlined:(0,$.jsx)(EG,{}),LineChartOutlined:(0,$.jsx)(WW,{}),SecurityScanOutlined:(0,$.jsx)(nK,{}),ApiOutlined:(0,$.jsx)(MH,{}),DatabaseOutlined:(0,$.jsx)(qU,{}),CloudServerOutlined:(0,$.jsx)(kU,{}),MenuOutlined:(0,$.jsx)(aG,{})},dY=Object.keys(uY).map(e=>({value:e,label:(0,$.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[uY[e],` `,e.replace(`Outlined`,``)]})})),fY={page:`blue`,group:`purple`},pY={page:`页面`,group:`分组`},mY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(`frontend`),[o,s]=(0,x.useState)({open:!1,menu:null}),[c]=Z.useForm(),l=async()=>{r(!0);try{t(await gJ())}catch{}r(!1)};(0,x.useEffect)(()=>{l()},[]);let u=async()=>{try{let e=await c.validateFields(),t={label:e.label,path:e.path||``,icon:e.icon||``,sort_order:e.sortOrder??0,is_active:e.isActive??!0,parent_id:e.parentId||null,menu_type:e.menuType||`page`,menu_target:e.menuTarget||`frontend`,is_default:e.isDefault??!1};o.menu?.id?await _J({...t,id:o.menu.id}):await _J(t),bP.success(o.menu?.id?`菜单已更新`:`菜单已添加`),s({open:!1,menu:null}),c.resetFields(),l()}catch{}},d=async e=>{try{await vJ(e),bP.success(`菜单已删除`),l()}catch(e){bP.error(e?.message||`删除失败`)}},f=t=>{s({open:!0,menu:t||null}),t?c.setFieldsValue({label:t.label,path:t.path,icon:t.icon,sortOrder:t.sortOrder??0,isActive:t.isActive??!0,parentId:t.parentId??``,menuType:t.menuType??`page`,menuTarget:t.menuTarget??`frontend`,isDefault:t.isDefault??!1}):(c.resetFields(),c.setFieldsValue({icon:`HomeOutlined`,sortOrder:e.length,isActive:!0,menuType:`page`,menuTarget:i,isDefault:!1}))},p=e.filter(e=>{let t=e.menuTarget??`frontend`;return t===i||t===`both`}),m=[{value:``,label:`顶级菜单`},...p.filter(e=>e.menuType===`group`).map(e=>({value:e.id,label:e.label}))],h=[],g=p.filter(e=>!e.parentId),_={};p.filter(e=>e.parentId).forEach(e=>{let t=e.parentId;_[t]||(_[t]=[]),_[t].push(e)}),g.sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)).forEach(e=>{h.push({...e,_depth:0}),(_[e.id]||[]).sort((e,t)=>(e.sortOrder??0)-(t.sortOrder??0)).forEach(e=>{h.push({...e,_depth:1})})});let v=[{title:`排序`,dataIndex:`sortOrder`,width:60},{title:`菜单名称`,key:`label`,width:180,render:(e,t)=>(0,$.jsxs)(`span`,{style:{paddingLeft:t._depth*20,fontWeight:t._depth===0?600:400},children:[t._depth===1&&(0,$.jsx)(`span`,{style:{color:`#cbd5e1`,marginRight:4},children:`└`}),t.label]})},{title:`路由路径`,dataIndex:`path`,width:160,render:e=>e||(0,$.jsx)(Q.Text,{type:`secondary`,children:`-`})},{title:`图标`,dataIndex:`icon`,width:100,render:e=>e&&uY[e]?(0,$.jsx)(`span`,{style:{fontSize:16,color:`#6366f1`},children:uY[e]}):`-`},{title:`类型`,dataIndex:`menuType`,width:80,render:e=>(0,$.jsx)(CB,{color:fY[e]||`default`,children:pY[e]||e})},{title:`状态`,dataIndex:`isActive`,width:70,render:e=>(0,$.jsx)(`span`,{style:{color:e?`#22c55e`:`#94a3b8`},children:e?`启用`:`停用`})},...i===`frontend`?[{title:`默认显示`,dataIndex:`isDefault`,width:80,render:e=>e?(0,$.jsx)(CB,{color:`green`,children:`默认`}):(0,$.jsx)(Q.Text,{type:`secondary`,children:`-`})}]:[],{title:`操作`,key:`action`,width:150,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>f(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除该菜单?`,onConfirm:()=>d(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}];return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(aG,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`菜单配置`})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>f(),style:{borderRadius:8},children:`添加菜单`})]}),(0,$.jsx)(vk,{activeKey:i,onChange:a,items:[{key:`frontend`,label:`前台菜单`},{key:`admin`,label:`后台菜单`}]}),(0,$.jsx)(uB,{columns:v,dataSource:h,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aG,{}),o.menu?.id?`编辑菜单`:`添加菜单`]}),open:o.open,onOk:u,onCancel:()=>{s({open:!1,menu:null}),c.resetFields()},okText:`确认`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:c,layout:`vertical`,children:[(0,$.jsx)(Z.Item,{name:`label`,label:`菜单名称`,rules:[{required:!0,message:`请输入菜单名称`}],children:(0,$.jsx)(QM,{placeholder:`例如:我的项目`,size:`large`})}),(0,$.jsx)(Z.Item,{name:`path`,label:`路由路径`,tooltip:`分组类型可留空`,children:(0,$.jsx)(QM,{placeholder:`例如:/projects(分组可留空)`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`menuType`,label:`菜单类型`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`page`,label:`页面`},{value:`group`,label:`分组`}]})}),(0,$.jsx)(Z.Item,{name:`menuTarget`,label:`适用端`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`frontend`,label:`前台`},{value:`admin`,label:`后台`},{value:`both`,label:`两者`}]})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`icon`,label:`图标`,style:{flex:1},rules:[{required:!0}],children:(0,$.jsx)(ZC,{size:`large`,options:dY})}),(0,$.jsx)(Z.Item,{name:`sortOrder`,label:`排序`,style:{flex:1},children:(0,$.jsx)($A,{min:0,max:100,style:{width:`100%`},size:`large`,placeholder:`默认0`})})]}),(0,$.jsx)(Z.Item,{name:`parentId`,label:`上级菜单`,children:(0,$.jsx)(ZC,{size:`large`,options:m,allowClear:!0,placeholder:`顶级菜单`})}),(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用`,valuePropName:`checked`,children:(0,$.jsx)(yF,{})}),(0,$.jsx)(Z.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.menuTarget!==t.menuTarget,children:({getFieldValue:e})=>e(`menuTarget`)===`admin`?null:(0,$.jsx)(Z.Item,{name:`isDefault`,label:`新用户默认显示`,valuePropName:`checked`,tooltip:`开启后,新注册用户默认显示此菜单`,children:(0,$.jsx)(yF,{})})})]})})]})},hY={normal:`blue`,gift:`green`,promo:`purple`},gY={normal:`常规`,gift:`赠送`,promo:`促销`},_Y=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(!1),[i,a]=(0,x.useState)({open:!1,item:null}),[o]=Z.useForm(),s=async()=>{r(!0);try{t((await CJ()).map(e=>({id:e.id,name:e.name,credits:e.credits,price:e.price,bonusCredits:e.bonus_credits??e.bonusCredits??0,totalCredits:e.total_credits??e.totalCredits??e.credits,description:e.description,packageType:e.package_type??e.packageType??`normal`,isGift:e.is_gift??e.isGift??!1,isActive:e.is_active??e.isActive??!0,sortOrder:e.sort_order??e.sortOrder??0})))}catch{bP.error(`加载充值套餐失败`)}finally{r(!1)}};(0,x.useEffect)(()=>{s()},[]);let c=async()=>{try{let e=await o.validateFields(),t={name:e.name,credits:e.credits,price:e.price,bonus_credits:e.bonusCredits||0,description:e.description||null,package_type:e.packageType||`normal`,is_gift:e.isGift||!1,is_active:e.isActive??!0,sort_order:e.sortOrder??0};i.item?.id?(await wJ({id:i.item.id,...t}),bP.success(`已更新`)):(await wJ(t),bP.success(`已添加`)),a({open:!1,item:null}),o.resetFields(),s()}catch{}},l=async e=>{try{await TJ(e),bP.success(`已删除`),s()}catch(e){bP.error(e?.message||`删除失败`)}},u=e=>{a({open:!0,item:e||null}),e?o.setFieldsValue({name:e.name,credits:e.credits,price:e.price,bonusCredits:e.bonusCredits,description:e.description,packageType:e.packageType,isGift:e.isGift,isActive:e.isActive,sortOrder:e.sortOrder}):(o.resetFields(),o.setFieldsValue({isActive:!0,sortOrder:0,packageType:`normal`,bonusCredits:0,isGift:!1}))};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(bW,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`充值套餐管理`}),(0,$.jsxs)(CB,{color:`purple`,children:[e.length,` 个套餐`]})]}),(0,$.jsx)(mD,{type:`primary`,icon:(0,$.jsx)(_O,{}),onClick:()=>u(),style:{borderRadius:8},children:`添加套餐`})]}),(0,$.jsx)(uB,{columns:[{title:`套餐名称`,key:`name`,width:160,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,children:t.name}),t.description&&(0,$.jsx)(`div`,{style:{color:`#94a3b8`,fontSize:12},children:t.description})]})},{title:`基础积分`,dataIndex:`credits`,width:100,render:e=>(0,$.jsx)(Q.Text,{children:e.toLocaleString()})},{title:`赠送积分`,dataIndex:`bonusCredits`,width:100,render:e=>e>0?(0,$.jsxs)(CB,{color:`green`,children:[`+`,e.toLocaleString()]}):(0,$.jsx)(Q.Text,{type:`secondary`,children:`-`})},{title:`总积分`,key:`total`,width:100,render:(e,t)=>(0,$.jsx)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:(t.credits+t.bonusCredits).toLocaleString()})},{title:`价格(元)`,dataIndex:`price`,width:100,render:e=>(0,$.jsxs)(Q.Text,{strong:!0,children:[`¥`,e]})},{title:`类型`,dataIndex:`packageType`,width:80,render:e=>(0,$.jsx)(CB,{color:hY[e]||`default`,children:gY[e]||e})},{title:`状态`,dataIndex:`isActive`,width:80,render:e=>(0,$.jsx)(CB,{color:e?`green`:`default`,children:e?`启用`:`停用`})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,children:[(0,$.jsx)(mD,{type:`link`,size:`small`,icon:(0,$.jsx)(kB,{}),onClick:()=>u(t),children:`编辑`}),(0,$.jsx)(DP,{title:`确定删除?`,onConfirm:()=>l(t.id),children:(0,$.jsx)(mD,{type:`link`,size:`small`,danger:!0,icon:(0,$.jsx)(EB,{}),children:`删除`})})]})}],dataSource:e,rowKey:`id`,loading:n,pagination:!1,scroll:{x:900}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(bW,{}),i.item?`编辑套餐`:`添加套餐`]}),open:i.open,onOk:c,onCancel:()=>{a({open:!1,item:null}),o.resetFields()},okText:`保存`,cancelText:`取消`,width:520,children:(0,$.jsxs)(Z,{form:o,layout:`vertical`,style:{marginTop:16},children:[(0,$.jsx)(Z.Item,{name:`name`,label:`套餐名称`,rules:[{required:!0,message:`请输入套餐名称`}],children:(0,$.jsx)(QM,{placeholder:`例如:进阶包`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`credits`,label:`基础积分`,rules:[{required:!0,message:`请输入积分`}],style:{flex:1},children:(0,$.jsx)($A,{min:1,placeholder:`2000`,size:`large`,style:{width:`100%`}})}),(0,$.jsx)(Z.Item,{name:`price`,label:`价格(元)`,rules:[{required:!0,message:`请输入价格`}],style:{flex:1},children:(0,$.jsx)($A,{min:.01,step:1,placeholder:`168`,size:`large`,style:{width:`100%`}})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`bonusCredits`,label:`赠送积分`,initialValue:0,style:{flex:1},children:(0,$.jsx)($A,{min:0,placeholder:`0`,size:`large`,style:{width:`100%`}})}),(0,$.jsx)(Z.Item,{name:`packageType`,label:`套餐类型`,initialValue:`normal`,style:{flex:1},children:(0,$.jsx)(ZC,{size:`large`,options:[{value:`normal`,label:`常规`},{value:`gift`,label:`赠送`},{value:`promo`,label:`促销`}]})})]}),(0,$.jsx)(Z.Item,{name:`description`,label:`描述`,children:(0,$.jsx)(QM,{placeholder:`套餐描述(可选)`,size:`large`})}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16},children:[(0,$.jsx)(Z.Item,{name:`isActive`,label:`启用状态`,valuePropName:`checked`,initialValue:!0,style:{flex:1},children:(0,$.jsx)(yF,{})}),(0,$.jsx)(Z.Item,{name:`isGift`,label:`是否赠送`,valuePropName:`checked`,initialValue:!1,style:{flex:1},children:(0,$.jsx)(yF,{})}),(0,$.jsx)(Z.Item,{name:`sortOrder`,label:`排序`,initialValue:0,style:{flex:1},children:(0,$.jsx)($A,{size:`large`,style:{width:`100%`}})})]})]})})]})},vY={POST:`green`,PUT:`blue`,DELETE:`red`},yY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(1),c=async e=>{a(!0);try{let n=await EJ(e||o);t(n.items||[]),r(n.total||0)}catch{bP.error(`加载操作日志失败`)}finally{a(!1)}};return(0,x.useEffect)(()=>{c()},[]),(0,$.jsx)(`div`,{children:(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(MW,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`操作日志`})]}),(0,$.jsx)(mD,{icon:(0,$.jsx)(lF,{}),onClick:()=>c(),children:`刷新`})]}),(0,$.jsx)(uB,{columns:[{title:`操作人`,dataIndex:`username`,width:120,render:e=>(0,$.jsx)(Q.Text,{strong:!0,children:e})},{title:`操作`,dataIndex:`action`,width:160,render:e=>(0,$.jsx)(Q.Text,{children:e})},{title:`方法`,dataIndex:`method`,width:80,render:e=>(0,$.jsx)(CB,{color:vY[e]||`default`,children:e})},{title:`路径`,dataIndex:`path`,width:220,ellipsis:!0,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:e})},{title:`时间`,dataIndex:`createdAt`,width:160,render:e=>(0,$.jsx)(Q.Text,{type:`secondary`,style:{fontSize:12},children:BJ(e)})}],dataSource:e,rowKey:`id`,loading:i,pagination:{current:o,pageSize:20,total:n,showTotal:e=>`共 ${e} 条记录`,onChange:e=>{s(e),c(e)}},scroll:{x:800}})]})})},bY=`http://ceshi.apiforeign.minzhong.cn`.replace(/\/api\/?$/i,``).replace(/\/$/,``),xY={image:`empty`,video:`empty`,videoCover:`empty`,references:{}},SY={optimizing:{color:`processing`,text:`优化中`,icon:(0,$.jsx)(um,{spin:!0})},prompt_optimized:{color:`processing`,text:`待生成`,icon:(0,$.jsx)(hj,{})},generating:{color:`warning`,text:`生成中`,icon:(0,$.jsx)(um,{spin:!0})},completed:{color:`success`,text:`已完成`,icon:(0,$.jsx)(bU,{})},failed:{color:`error`,text:`失败`,icon:(0,$.jsx)(CU,{})}},CY={image:{text:`图片`,color:`purple`,icon:(0,$.jsx)(aW,{})},video:{text:`视频`,color:`geekblue`,icon:(0,$.jsx)(cq,{})}},wY=e=>/^(https?:)?\/\//i.test(e)||/^(blob|data):/i.test(e),TY=e=>!!e&&/^blob:/i.test(e.trim()),EY=e=>{if(!e)return``;let t=String(e).trim();return t?wY(t)?t:bY?`${bY}${t.startsWith(`/`)?t:`/${t}`}`:t.startsWith(`/`)?t:`/${t}`:``},DY=e=>e?e.length>12?`${e.slice(0,8)}...`:e:`-`,OY=e=>e?BJ(e):`-`,kY=e=>e==null||e===``,AY=e=>{if(!e||TY(e))return!1;try{let t=new URL(EY(e),window.location.origin),n=t.searchParams.get(`exp`)||t.searchParams.get(`expires`)||t.searchParams.get(`expire`)||t.searchParams.get(`expires_at`)||t.searchParams.get(`x-expires`);if(!n)return!1;let r=Number(n);if(!Number.isFinite(r))return!1;let i=r>1e10?r:r*1e3;return Date.now()>=i}catch{return!1}},jY=e=>e?TY(e)||AY(e)?`invalid`:`checking`:`empty`,MY=e=>{let t=e.url||e.mediaUrl||e.fileUrl;return typeof t==`string`&&t.trim()?t.trim():void 0},NY=e=>{let t=String(e.type||e.mediaType||e.mimeType||``).toLowerCase(),n=MY(e)?.toLowerCase()||``;return t.includes(`video`)||/\.(mp4|mov|webm|m4v)(\?|$)/i.test(n)?`video`:t.includes(`image`)||/\.(png|jpe?g|webp|gif|bmp|svg)(\?|$)/i.test(n)?`image`:t||`unknown`},PY=(e,t)=>`${t}-${MY(e)||`empty`}`,FY=(e,t=`资源`)=>TY(e)?`本地临时素材已失效`:AY(e)?`${t}链接已超时,请刷新列表或重新搜索后再查看`:`${t}加载失败,请刷新列表或重新搜索后再查看`,IY=({text:e,minHeight:t=240,compact:n=!1,action:r})=>(0,$.jsxs)(`div`,{style:{width:`100%`,minHeight:n?void 0:t,height:n?`100%`:void 0,borderRadius:n?10:12,background:`#f8f9fc`,border:`1px dashed #cbd5e1`,color:`#64748b`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:n?4:10,textAlign:`center`},children:[(0,$.jsx)(Q.Text,{style:{color:`#64748b`,fontSize:n?11:13},children:e}),r]}),LY=({label:e,value:t})=>(0,$.jsxs)(`div`,{style:{flex:1,minWidth:120},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:kY(t)?`-`:t})]}),RY=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(1),[c]=(0,x.useState)(20),[l,u]=(0,x.useState)(``),[d,f]=(0,x.useState)(``),[p,m]=(0,x.useState)(0),[h,g]=(0,x.useState)(null),[_,v]=(0,x.useState)(xY),[y,b]=(0,x.useState)(!1),S=(0,x.useRef)(null),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(null),D=(0,x.useCallback)(async()=>{a(!0);try{let e=await DJ({userId:d.trim()||void 0,status:l||void 0,page:o,pageSize:c});t((e.items||[]).map(e=>({id:e.id,userId:e.userId,username:e.username,projectId:e.projectId,projectName:e.projectName,originalPrompt:e.originalPrompt,optimizedPrompt:e.optimizedPrompt,duration:e.duration,aspectRatio:e.aspectRatio,resolution:e.resolution,status:e.status,videoUrl:e.videoUrl,videoCoverUrl:e.videoCoverUrl,references:e.references,creditsCost:e.creditsCost||0,textCreditsCost:e.textCreditsCost||0,textTokensUsed:e.textTokensUsed||0,videoTokensUsed:e.videoTokensUsed||0,errorMessage:e.errorMessage,createdAt:e.createdAt,generatedAt:e.generatedAt,genType:e.genType,imageSize:e.imageSize,imageUrl:e.imageUrl,imageTokensUsed:e.imageTokensUsed||0,imageProportion:e.imageProportion,imagePx:e.imagePx}))),r(e.total||0)}catch{bP.error(`加载记录失败`)}finally{a(!1)}},[l,d,o,c]);(0,x.useEffect)(()=>{D()},[D,p]),(0,x.useEffect)(()=>{if(!h){v(xY);return}let e=(h.references||[]).reduce((e,t,n)=>{let r=MY(t);return e[PY(t,n)]=jY(r),e},{});S.current&&(S.current.pause(),S.current.currentTime=0),b(!1),v({image:jY(h.imageUrl),video:jY(h.videoUrl),videoCover:jY(h.videoCoverUrl),references:e})},[h]);let O=()=>{s(1),m(e=>e+1)},k=(0,x.useCallback)(e=>{g(e)},[]),A=()=>{S.current&&S.current.pause(),b(!1),g(null)},j=e=>{v(t=>({...t,...e}))},M=(e,t)=>{v(n=>({...n,references:{...n.references,[e]:t}}))},N=(e,t=`素材`)=>{if(!e){bP.warning(`${t}链接为空,暂无法查看`);return}if(TY(e)){bP.warning(`本地临时素材已失效,暂无法查看`);return}if(AY(e)){bP.warning(`${t}链接已超时,请刷新列表或重新搜索后再查看`);return}window.open(EY(e),`_blank`,`noopener,noreferrer`)},P=()=>{if(h?.videoUrl){if(AY(h.videoUrl)){j({video:`invalid`}),bP.warning(`视频链接已超时,请刷新列表或重新搜索后再查看`);return}b(!0),window.setTimeout(()=>{S.current?.play().catch(()=>{b(!1),j({video:`invalid`}),bP.warning(`视频播放失败,请确认资源链接是否仍然有效`)})},0)}},F=async(e,t,n)=>{w(e);try{await OJ(e,t,n),bP.success(`状态已更新`),D()}catch(e){bP.error(e?.message||`更新失败`)}finally{w(null)}},I=async()=>{if(T){w(T.record.id);try{await kJ(T.record.id,T.ratio,T.resolution,T.image_size),bP.success(`已提交${T.record.genType===`video`?`视频`:`图片`}生成`),E(null),D()}catch(e){bP.error(e?.message||`生成失败`)}finally{w(null)}}},L=(0,x.useMemo)(()=>[{title:`用户`,key:`user`,width:120,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13},children:t.username||`未知用户`}),(0,$.jsx)(`div`,{style:{fontSize:11,color:`#94a3b8`},children:DY(t.userId)})]})},{title:`项目`,dataIndex:`projectName`,width:120,ellipsis:!0,render:e=>(0,$.jsx)(Q.Text,{style:{fontSize:13},children:e||`-`})},{title:`类型`,dataIndex:`genType`,width:90,ellipsis:!0,render:e=>{let t=CY[e]||{text:e||`-`,color:`default`,icon:null};return(0,$.jsx)(CB,{color:t.color,icon:t.icon,children:t.text})}},{title:`提示词`,key:`prompt`,ellipsis:!0,render:(e,t)=>(0,$.jsx)(Bw,{title:t.originalPrompt,placement:`topLeft`,children:(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#475569`},ellipsis:!0,children:t.originalPrompt||`-`})})},{title:`参数`,key:`params`,width:160,render:(e,t)=>t.genType===`video`?t.duration||t.aspectRatio||t.resolution?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[t.duration?(0,$.jsxs)(CB,{children:[t.duration,`s`]}):null,t.aspectRatio?(0,$.jsx)(CB,{children:t.aspectRatio}):null,t.resolution?(0,$.jsx)(CB,{children:t.resolution}):null]}):(0,$.jsx)(CB,{color:`default`,children:`待配置`}):t.imageSize||t.imageProportion||t.imagePx?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[t.imageSize?(0,$.jsx)(CB,{children:t.imageSize}):null,t.imageProportion?(0,$.jsx)(CB,{children:t.imageProportion}):null,t.imagePx?(0,$.jsx)(CB,{children:t.imagePx}):null]}):(0,$.jsx)(CB,{color:`default`,children:`待配置`})},{title:`积分`,key:`credits`,width:120,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12},children:[t.textCreditsCost>0?(0,$.jsxs)(`div`,{style:{color:`#f59e0b`},children:[`文字: `,t.textCreditsCost]}):null,t.creditsCost>0?(0,$.jsxs)(`div`,{style:{color:`#6366f1`},children:[t.genType===`video`?`视频`:`图片`,`: `,t.creditsCost]}):null,t.textCreditsCost===0&&t.creditsCost===0?(0,$.jsx)(Q.Text,{style:{color:`#94a3b8`},children:`0`}):null]})},{title:`状态`,dataIndex:`status`,width:90,render:e=>{let t=SY[e]||{color:`default`,text:e||`-`,icon:null};return(0,$.jsx)(CB,{color:t.color,icon:t.icon,children:t.text})}},{title:`时间`,key:`time`,width:150,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12,color:`#94a3b8`},children:[(0,$.jsx)(`div`,{children:OY(t.createdAt)}),t.generatedAt?(0,$.jsxs)(`div`,{style:{color:`#10b981`},children:[`生成: `,OY(t.generatedAt)]}):null]})},{title:`操作`,key:`action`,width:150,fixed:`right`,render:(e,t)=>(0,$.jsxs)(wj,{size:4,wrap:!0,children:[(0,$.jsx)(mD,{size:`small`,icon:(0,$.jsx)(AM,{}),onClick:()=>k(t),children:`详情`}),t.status===`generating`?(0,$.jsx)(mD,{size:`small`,danger:!0,loading:C===t.id,onClick:()=>{CP.confirm({title:`确认操作`,icon:(0,$.jsx)($U,{}),content:`确定将此记录标记为失败?`,onOk:()=>F(t.id,`failed`)})},children:`标记失败`}):null,t.status===`failed`?(0,$.jsx)(mD,{size:`small`,type:`primary`,danger:!0,loading:C===t.id,onClick:()=>E({record:t,ratio:t.aspectRatio||`16:9`,resolution:t.resolution||`720p`,image_size:t.imageSize||`2K`}),children:`重试生成`}):null,t.status===`prompt_optimized`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(mD,{size:`small`,type:`primary`,loading:C===t.id,onClick:()=>E({record:t,ratio:t.aspectRatio||`16:9`,resolution:t.resolution||`720p`,image_size:t.imageSize||`2K`}),style:{background:`#6366f1`,border:`none`},children:[`生成`,t.genType===`video`?`视频`:`图片`]}),(0,$.jsx)(mD,{size:`small`,danger:!0,loading:C===t.id,onClick:()=>{CP.confirm({title:`确认操作`,icon:(0,$.jsx)($U,{}),content:`确定将此记录标记为失败?`,onOk:()=>F(t.id,`failed`)})},children:`标记失败`})]}):null]})}],[k,C]),R=h?CY[h.genType||``]||{text:h.genType||`-`,color:`default`,icon:null}:null,z=h?SY[h.status]||{color:`default`,text:h.status||`-`,icon:null}:null,B=()=>{if(!h||h.genType!==`image`||h.status!==`completed`)return null;if(!h.imageUrl)return(0,$.jsx)(IY,{text:`此图片任务暂无结果图片`,minHeight:260});if(_.image===`invalid`)return(0,$.jsx)(IY,{text:FY(h.imageUrl,`图片`),minHeight:260});let e=EY(h.imageUrl);return(0,$.jsxs)(`div`,{title:`点击新页面查看图片`,onClick:()=>N(h.imageUrl,`生成图片`),style:{position:`relative`,width:`100%`,minHeight:260,borderRadius:12,background:`#f8f9fc`,border:`1px solid #e2e8f0`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`},children:[(0,$.jsx)(`img`,{src:e,alt:`生成图片`,onLoad:()=>j({image:`valid`}),onError:()=>j({image:`invalid`}),style:{display:_.image===`valid`?`block`:`none`,width:`100%`,maxHeight:560,objectFit:`contain`,background:`#fff`}},`${h.id}-${e}`),_.image===`checking`?(0,$.jsx)(IY,{text:`图片加载检测中...`,minHeight:260}):null]})},V=()=>{if(!h||y||_.video===`invalid`)return null;let e=h.videoUrl?(0,$.jsx)(mD,{type:`primary`,shape:`circle`,size:`large`,icon:(0,$.jsx)(kG,{}),onClick:P,style:{boxShadow:`0 8px 20px rgba(15,23,42,0.25)`}}):null;if(!h.videoCoverUrl)return(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,borderRadius:12,overflow:`hidden`,background:`#f8f9fc`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(IY,{text:`此视频无封面`,minHeight:340,action:e})});if(_.videoCover===`invalid`)return(0,$.jsx)(IY,{text:FY(h.videoCoverUrl,`视频封面`),minHeight:340,action:e});let t=EY(h.videoCoverUrl);return(0,$.jsxs)(`div`,{style:{position:`absolute`,inset:0,borderRadius:12,overflow:`hidden`,background:`#f8f9fc`,border:`1px solid #e2e8f0`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[(0,$.jsx)(`img`,{src:t,alt:`视频封面`,onLoad:()=>j({videoCover:`valid`}),onError:()=>j({videoCover:`invalid`}),style:{display:_.videoCover===`valid`?`block`:`none`,width:`100%`,height:`100%`,objectFit:`contain`,background:`#000`}},`${h.id}-cover-${t}`),_.videoCover===`checking`?(0,$.jsx)(IY,{text:`视频封面加载检测中...`,minHeight:340,action:e}):null,_.videoCover===`valid`?(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(15,23,42,0.18)`},children:e}):null]})},H=()=>{if(!h||h.genType!==`video`||h.status!==`completed`)return null;if(!h.videoUrl)return(0,$.jsx)(IY,{text:`此视频任务暂无结果视频`,minHeight:340});if(_.video===`invalid`)return(0,$.jsx)(IY,{text:FY(h.videoUrl,`视频`),minHeight:340});let e=EY(h.videoUrl);return(0,$.jsxs)(`div`,{style:{position:`relative`,width:`100%`,height:340,borderRadius:12,background:`#000`,overflow:`hidden`,border:`1px solid #e2e8f0`},children:[(0,$.jsx)(`video`,{ref:S,src:e,preload:`metadata`,controls:y,onLoadedMetadata:()=>j({video:`valid`}),onCanPlay:()=>j({video:`valid`}),onPlaying:()=>{b(!0),j({video:`valid`})},onPause:()=>b(!1),onEnded:()=>b(!1),onError:()=>{b(!1),j({video:`invalid`})},style:{width:`100%`,height:`100%`,objectFit:`contain`,background:`#000`,opacity:+!!y,pointerEvents:y?`auto`:`none`}},`${h.id}-${e}`),V()]})},U=(e,t)=>{let n=MY(e),r=NY(e),i=PY(e,t),a=_.references[i]||jY(n),o=r===`image`,s=r===`video`,c=typeof e.name==`string`&&e.name?e.name:`参考素材 ${t+1}`;if(!n)return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsx)(`div`,{style:{width:94,height:94},children:(0,$.jsx)(IY,{text:`无链接`,compact:!0})}),(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})]},i);if(a===`invalid`)return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsx)(`div`,{style:{width:94,height:94},children:(0,$.jsx)(IY,{text:TY(n)?`本地临时素材已失效`:`素材不可访问`,compact:!0})}),(0,$.jsx)(Bw,{title:c,children:(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})})]},i);let l=EY(n);return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsxs)(`div`,{role:`button`,tabIndex:0,title:`点击新页面查看素材`,onClick:()=>N(n,s?`视频素材`:o?`图片素材`:`素材`),onKeyDown:e=>{e.key===`Enter`&&N(n,s?`视频素材`:o?`图片素材`:`素材`)},style:{width:94,height:94,borderRadius:10,overflow:`hidden`,border:`1px solid #e2e8f0`,background:`#f8f9fc`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`},children:[o?(0,$.jsx)(`img`,{src:l,alt:c,onLoad:()=>M(i,`valid`),onError:()=>M(i,`invalid`),style:{display:a===`valid`?`block`:`none`,width:`100%`,height:`100%`,objectFit:`cover`}}):null,s?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`video`,{src:l,preload:`metadata`,onLoadedMetadata:()=>M(i,`valid`),onError:()=>M(i,`invalid`),style:{display:`none`}}),(0,$.jsxs)(`div`,{style:{color:`#64748b`,fontSize:12,textAlign:`center`},children:[(0,$.jsx)(kG,{style:{fontSize:18}}),(0,$.jsx)(`div`,{children:`视频素材`}),(0,$.jsx)(`div`,{style:{fontSize:10,color:`#94a3b8`,marginTop:2},children:`点击查看`})]})]}):null,!o&&!s?(0,$.jsxs)(`div`,{style:{color:`#64748b`,fontSize:12,textAlign:`center`},children:[`文件素材`,(0,$.jsx)(`div`,{style:{fontSize:10,color:`#94a3b8`,marginTop:2},children:`点击查看`})]}):null,a===`checking`&&o?(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#f8f9fc`},children:(0,$.jsx)(um,{style:{color:`#6366f1`}})}):null]}),(0,$.jsx)(Bw,{title:c,children:(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})})]},i)};return(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(Mk,{bordered:!1,style:{borderRadius:12,border:`1px solid #f0f0f5`},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,marginBottom:16,flexWrap:`wrap`,gap:12},children:[(0,$.jsxs)(wj,{children:[(0,$.jsx)(cq,{style:{fontSize:18,color:`#6366f1`}}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:16},children:`生成记录管理`}),(0,$.jsxs)(CB,{color:`purple`,children:[n,` 条记录`]})]}),(0,$.jsxs)(wj,{children:[(0,$.jsx)(ZC,{placeholder:`状态筛选`,allowClear:!0,style:{width:120},value:l||void 0,onChange:e=>{u(e||``),s(1)},options:[{value:`optimizing`,label:`优化中`},{value:`prompt_optimized`,label:`待生成`},{value:`generating`,label:`生成中`},{value:`completed`,label:`已完成`},{value:`failed`,label:`失败`}]}),(0,$.jsx)(QM,{placeholder:`用户ID搜索`,prefix:(0,$.jsx)(KC,{style:{color:`#94a3b8`}}),style:{width:200},value:d,onChange:e=>f(e.target.value),onPressEnter:O,allowClear:!0}),(0,$.jsx)(mD,{type:`primary`,onClick:O,style:{borderRadius:8},children:`搜索`})]})]}),(0,$.jsx)(uB,{columns:L,dataSource:e,rowKey:`id`,loading:i,scroll:{x:1120},pagination:{current:o,pageSize:c,total:n,onChange:s,showSizeChanger:!1,showTotal:e=>`共 ${e} 条`}})]}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[h?.genType===`video`?(0,$.jsx)(cq,{}):(0,$.jsx)(aW,{}),(0,$.jsx)(`span`,{children:`生成记录详情`})]}),open:!!h,onCancel:A,footer:null,width:900,destroyOnClose:!0,children:h?(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:16},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,flexWrap:`wrap`},children:[(0,$.jsxs)(`div`,{style:{flex:1,minWidth:150,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`用户`}),(0,$.jsx)(Q.Text,{strong:!0,children:h.username||`-`})]}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:150,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`项目`}),(0,$.jsx)(Q.Text,{strong:!0,children:h.projectName||`-`})]}),(0,$.jsxs)(`div`,{style:{flex:1,minWidth:150,padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`类型 / 状态`}),(0,$.jsxs)(wj,{size:4,wrap:!0,children:[R?(0,$.jsx)(CB,{color:R.color,icon:R.icon,children:R.text}):null,z?(0,$.jsx)(CB,{color:z.color,icon:z.icon,children:z.text}):null]})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,border:`1px solid #f0f0f5`},children:(0,$.jsx)(Q.Text,{style:{fontSize:13,color:`#475569`,lineHeight:1.7},children:h.originalPrompt||`-`})})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`优化后提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(99,102,241,0.02)`,border:`1px solid rgba(99,102,241,0.1)`},children:(0,$.jsx)(Q.Text,{style:{fontSize:13,color:`#1a1a2e`,lineHeight:1.7},children:h.optimizedPrompt||`-`})})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(LY,{label:`文字积分`,value:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Q.Text,{strong:!0,style:{color:`#f59e0b`},children:h.textCreditsCost||0}),(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#94a3b8`},children:[` (`,h.textTokensUsed||0,` tokens)`]})]})}),(0,$.jsx)(LY,{label:`${h.genType===`image`?`图片`:`视频`}积分`,value:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:h.creditsCost||0}),h.genType===`video`&&h.videoTokensUsed?(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#94a3b8`},children:[` (`,h.videoTokensUsed,` tokens)`]}):null,h.genType===`image`&&h.imageTokensUsed?(0,$.jsxs)(Q.Text,{style:{fontSize:11,color:`#94a3b8`},children:[` (`,h.imageTokensUsed,` tokens)`]}):null]})}),(0,$.jsx)(LY,{label:`总积分`,value:(h.textCreditsCost||0)+(h.creditsCost||0)})]}),h.genType===`video`?h.duration||h.aspectRatio||h.resolution?(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(LY,{label:`时长`,value:h.duration?`${h.duration}秒`:`-`}),(0,$.jsx)(LY,{label:`比例`,value:h.aspectRatio||`-`}),(0,$.jsx)(LY,{label:`分辨率`,value:h.resolution||`-`})]}):(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,textAlign:`center`},children:(0,$.jsx)(CB,{color:`default`,children:`视频参数待用户配置`})}):null,h.genType===`image`?h.imageSize||h.imageProportion||h.imagePx?(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(LY,{label:`尺寸`,value:h.imagePx||`-`}),(0,$.jsx)(LY,{label:`比例`,value:h.imageProportion||`-`}),(0,$.jsx)(LY,{label:`分辨率`,value:h.imageSize||`-`})]}):(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,textAlign:`center`},children:(0,$.jsx)(CB,{color:`default`,children:`图片参数待用户配置`})}):null,!h?.references||h.references.length===0?null:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`参考内容`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:10,flexWrap:`wrap`},children:h.references.map((e,t)=>U(e,t))})]}),h.status===`completed`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:h.genType===`video`?`生成视频`:`生成图片`}),h.genType===`video`?H():B()]}):null,h.status===`failed`&&h.errorMessage?(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(239,68,68,0.04)`,border:`1px solid rgba(239,68,68,0.15)`},children:(0,$.jsxs)(Q.Text,{style:{fontSize:12,color:`#ef4444`},children:[`错误信息: `,h.errorMessage]})}):null,(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,fontSize:12,color:`#94a3b8`,flexWrap:`wrap`},children:[(0,$.jsxs)(`span`,{children:[`创建: `,OY(h.createdAt)]}),(0,$.jsxs)(`span`,{children:[`生成: `,OY(h.generatedAt)]})]})]}):(0,$.jsx)(xC,{description:`暂无详情`})}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[T&&(T.record.genType===`video`?(0,$.jsx)(kG,{}):(0,$.jsx)(aW,{})),T&&(T.record.genType===`video`?`生成视频`:`生成图片`)]}),open:!!T,onCancel:()=>E(null),onOk:I,okText:`提交生成`,cancelText:`取消`,confirmLoading:T?C===T.record.id:!1,width:420,children:T?(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:16},children:T.record.genType===`video`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`时长`}),(0,$.jsxs)(Q.Text,{strong:!0,children:[T.record.duration||5,`s`]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`画面比例`}),(0,$.jsx)(ZC,{value:T.ratio,onChange:e=>E(t=>t?{...t,ratio:e}:null),style:{width:`100%`},options:[`16:9`,`4:3`,`1:1`,`3:4`,`9:16`,`21:9`].map(e=>({value:e,label:e}))})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`分辨率`}),(0,$.jsx)(ZC,{value:T.resolution,onChange:e=>E(t=>t?{...t,resolution:e}:null),style:{width:`100%`},options:[`480p`,`720p`,`1080p`].map(e=>({value:e,label:e}))})]})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`尺寸`}),(0,$.jsx)(Q.Text,{strong:!0,children:T.record.imagePx||`-`})]}),(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:`比例`}),(0,$.jsx)(Q.Text,{strong:!0,children:T.record.imageProportion||`-`})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#64748b`,display:`block`,marginBottom:6},children:`分辨率`}),(0,$.jsx)(ZC,{value:T.image_size,onChange:e=>E(t=>t?{...t,image_size:e}:null),style:{width:`100%`},options:[`2K`,`4K`].map(e=>({value:e,label:e}))})]})]})}):null})]})},zY=`http://ceshi.apiforeign.minzhong.cn`.replace(/\/api\/?$/i,``).replace(/\/$/,``),BY=20,VY={image:`empty`,video:`empty`,videoCover:`empty`,references:{}},HY={pending:{color:`default`,text:`待处理`,icon:(0,$.jsx)(hj,{})},generating:{color:`warning`,text:`生成中`,icon:(0,$.jsx)(um,{spin:!0})},completed:{color:`success`,text:`已完成`,icon:(0,$.jsx)(bU,{})},failed:{color:`error`,text:`失败`,icon:(0,$.jsx)(CU,{})}},UY={timeout:`任务超时`,queued:`已入队`,preparing:`准备中`,creating_provider_task:`创建任务中`,waiting_remote:`等待生成`,result_ready:`结果就绪`,downloading:`下载中`,done:`完成`,download_failed:`下载失败`,polling:`轮询中`,failed:`失败`},WY={image:{text:`图片`,color:`purple`,icon:(0,$.jsx)(aW,{})},video:{text:`视频`,color:`geekblue`,icon:(0,$.jsx)(cq,{})}},GY=e=>/^(https?:)?\/\//i.test(e)||/^(blob|data):/i.test(e),KY=e=>!!e&&/^blob:/i.test(e.trim()),qY=e=>{if(!e)return``;let t=String(e).trim();return t?GY(t)?t:zY?`${zY}${t.startsWith(`/`)?t:`/${t}`}`:t.startsWith(`/`)?t:`/${t}`:``},JY=e=>e?e.length>12?`${e.slice(0,8)}...`:e:`-`,YY=e=>e?BJ(e):`-`,XY=e=>e==null||e===``,ZY=e=>{if(!e||KY(e))return!1;try{let t=new URL(qY(e),window.location.origin),n=t.searchParams.get(`exp`)||t.searchParams.get(`expires`)||t.searchParams.get(`expire`)||t.searchParams.get(`expires_at`)||t.searchParams.get(`x-expires`);if(!n)return!1;let r=Number(n);if(!Number.isFinite(r))return!1;let i=r>1e10?r:r*1e3;return Date.now()>=i}catch{return!1}},QY=e=>e?KY(e)||ZY(e)?`invalid`:`checking`:`empty`,$Y=e=>{let t=e.url||e.mediaUrl||e.fileUrl;return typeof t==`string`&&t.trim()?t.trim():void 0},eX=e=>{let t=String(e.type||e.mediaType||e.mimeType||``).toLowerCase(),n=$Y(e)?.toLowerCase()||``;return t.includes(`video`)||/\.(mp4|mov|webm|m4v)(\?|$)/i.test(n)?`video`:t.includes(`image`)||/\.(png|jpe?g|webp|gif|bmp|svg)(\?|$)/i.test(n)?`image`:t||`unknown`},tX=(e,t)=>`${t}-${$Y(e)||`empty`}`,nX=(e,t=`资源`)=>KY(e)?`本地临时素材已失效`:ZY(e)?`${t}链接已超时,请刷新列表或重新搜索后再查看`:`${t}加载失败,请刷新列表或重新搜索后再查看`,rX=({text:e,minHeight:t=240,compact:n=!1,action:r})=>(0,$.jsxs)(`div`,{style:{width:`100%`,minHeight:n?void 0:t,height:n?`100%`:void 0,borderRadius:n?10:12,background:`#f8f9fc`,border:`1px dashed #cbd5e1`,color:`#64748b`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:n?4:10,textAlign:`center`},children:[(0,$.jsx)(Q.Text,{style:{color:`#64748b`,fontSize:n?11:13},children:e}),r]}),iX=({label:e,value:t})=>(0,$.jsxs)(`div`,{style:{flex:1,minWidth:120},children:[(0,$.jsx)(Q.Text,{style:{fontSize:11,color:`#94a3b8`,display:`block`},children:e}),(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:14},children:XY(t)?`-`:t})]}),aX=()=>{let[e,t]=(0,x.useState)([]),[n,r]=(0,x.useState)(0),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(1),[c,l]=(0,x.useState)(``),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(``),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(``),[v,y]=(0,x.useState)(``),[b,S]=(0,x.useState)(0),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(VY),[D,O]=(0,x.useState)(!1),k=(0,x.useRef)(null),A=(0,x.useCallback)(async()=>{a(!0);try{let e=await jJ({genType:u||void 0,status:c||void 0,userId:g||void 0,userName:v||void 0,page:o,pageSize:BY});t(e.items||[]),r(e.total||0)}catch(e){bP.error(e?.message||`加载创作记录失败`)}finally{a(!1)}},[u,c,o,g,v]);(0,x.useEffect)(()=>{A()},[A,b]),(0,x.useEffect)(()=>{if(!C){E(VY);return}let e=(C.mediaReferences||[]).reduce((e,t,n)=>{let r=$Y(t);return e[tX(t,n)]=QY(r),e},{});k.current&&(k.current.pause(),k.current.currentTime=0),O(!1),E({image:QY(C.imageUrl),video:QY(C.videoUrl),videoCover:QY(C.videoCoverUrl),references:e})},[C]);let j=()=>{s(1),_(f.trim()),y(m.trim()),S(e=>e+1)},M=(0,x.useCallback)(e=>{w(e)},[]),N=()=>{k.current&&k.current.pause(),O(!1),w(null)},P=e=>{E(t=>({...t,...e}))},F=(e,t)=>{E(n=>({...n,references:{...n.references,[e]:t}}))},I=()=>{if(C?.videoUrl){if(ZY(C.videoUrl)){P({video:`invalid`}),bP.warning(`视频链接已超时,请刷新列表或重新搜索后再查看`);return}O(!0),window.setTimeout(()=>{k.current?.play().catch(()=>{O(!1),P({video:`invalid`}),bP.warning(`视频播放失败,请确认资源链接是否仍然有效`)})},0)}},L=(e,t=`素材`)=>{if(!e){bP.warning(`${t}链接为空,暂无法查看`);return}if(KY(e)){bP.warning(`本地临时素材已失效,暂无法查看`);return}if(ZY(e)){bP.warning(`${t}链接已超时,请刷新列表或重新搜索后再查看`);return}window.open(qY(e),`_blank`,`noopener,noreferrer`)},R=(0,x.useMemo)(()=>[{title:`用户`,key:`user`,width:150,render:(e,t)=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{strong:!0,style:{fontSize:13},children:t.userName||`未知用户`}),(0,$.jsx)(`div`,{style:{fontSize:11,color:`#94a3b8`},children:JY(t.userId)})]})},{title:`类型`,dataIndex:`genType`,width:90,render:e=>{let t=WY[e]||{text:e||`-`,color:`default`,icon:null};return(0,$.jsx)(CB,{color:t.color,icon:t.icon,children:t.text})}},{title:`提示词`,key:`prompt`,ellipsis:!0,render:(e,t)=>(0,$.jsx)(Bw,{title:t.originalPrompt,placement:`topLeft`,children:(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#475569`},ellipsis:!0,children:t.originalPrompt||`-`})})},{title:`参数`,key:`params`,width:180,render:(e,t)=>t.genType===`video`?t.duration||t.aspectRatio||t.resolution?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[t.duration?(0,$.jsxs)(CB,{children:[t.duration,`s`]}):null,t.aspectRatio?(0,$.jsx)(CB,{children:t.aspectRatio}):null,t.resolution?(0,$.jsx)(CB,{children:t.resolution}):null]}):(0,$.jsx)(CB,{color:`default`,children:`无参数`}):t.imageSize||t.imageProportion||t.imagePx?(0,$.jsxs)(wj,{size:4,wrap:!0,children:[t.imageSize?(0,$.jsx)(CB,{children:t.imageSize}):null,t.imageProportion?(0,$.jsx)(CB,{children:t.imageProportion}):null,t.imagePx?(0,$.jsx)(CB,{children:t.imagePx}):null]}):(0,$.jsx)(CB,{color:`default`,children:`无参数`})},{title:`积分`,key:`credits`,width:130,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12},children:[(0,$.jsxs)(`div`,{style:{color:`#6366f1`},children:[`总: `,t.creditsCost||0]}),t.textCreditsCost>0?(0,$.jsxs)(`div`,{style:{color:`#f59e0b`},children:[`文字: `,t.textCreditsCost]}):null]})},{title:`状态`,dataIndex:`status`,width:100,render:e=>{let t=HY[e]||{color:`default`,text:e||`-`,icon:null};return(0,$.jsx)(CB,{color:t.color,icon:t.icon,children:t.text})}},{title:`阶段`,dataIndex:`pipelineStage`,width:120,render:e=>(0,$.jsx)(CB,{color:`blue`,children:UY[e]||e||`-`})},{title:`时间`,key:`time`,width:170,render:(e,t)=>(0,$.jsxs)(`div`,{style:{fontSize:12,color:`#94a3b8`},children:[(0,$.jsx)(`div`,{children:YY(t.createdAt)}),t.generatedAt?(0,$.jsxs)(`div`,{style:{color:`#10b981`},children:[`生成: `,YY(t.generatedAt)]}):null]})},{title:`操作`,key:`action`,width:90,fixed:`right`,render:(e,t)=>(0,$.jsx)(mD,{size:`small`,icon:(0,$.jsx)(AM,{}),onClick:()=>M(t),children:`详情`})}],[M]),z=C?WY[C.genType]||{text:C.genType||`-`,color:`default`,icon:null}:null,B=C?HY[C.status]||{color:`default`,text:C.status||`-`,icon:null}:null,V=()=>{if(!C||C.genType!==`image`||C.status!==`completed`)return null;if(!C.imageUrl)return(0,$.jsx)(rX,{text:`此图片任务暂无结果图片`,minHeight:260});if(T.image===`invalid`)return(0,$.jsx)(rX,{text:nX(C.imageUrl,`图片`),minHeight:260});let e=qY(C.imageUrl);return(0,$.jsxs)(`div`,{style:{position:`relative`,width:`100%`,minHeight:260,borderRadius:12,background:`#f8f9fc`,border:`1px solid #e2e8f0`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[(0,$.jsx)(`img`,{src:e,alt:`生成图片`,onLoad:()=>P({image:`valid`}),onError:()=>P({image:`invalid`}),style:{display:T.image===`valid`?`block`:`none`,width:`100%`,maxHeight:560,objectFit:`contain`,background:`#fff`}},`${C.id}-${e}`),T.image===`checking`?(0,$.jsx)(rX,{text:`图片加载检测中...`,minHeight:260}):null]})},H=()=>{if(!C||D||T.video===`invalid`)return null;let e=C.videoUrl?(0,$.jsx)(mD,{type:`primary`,shape:`circle`,size:`large`,icon:(0,$.jsx)(kG,{}),onClick:I,style:{boxShadow:`0 8px 20px rgba(15,23,42,0.25)`}}):null;if(!C.videoCoverUrl)return(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,borderRadius:12,overflow:`hidden`,background:`#f8f9fc`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,$.jsx)(rX,{text:`此视频无封面`,minHeight:340,action:e})});if(T.videoCover===`invalid`)return(0,$.jsx)(rX,{text:nX(C.videoCoverUrl,`视频封面`),minHeight:340,action:e});let t=qY(C.videoCoverUrl);return(0,$.jsxs)(`div`,{style:{position:`absolute`,inset:0,borderRadius:12,overflow:`hidden`,background:`#f8f9fc`,border:`1px solid #e2e8f0`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:[(0,$.jsx)(`img`,{src:t,alt:`视频封面`,onLoad:()=>P({videoCover:`valid`}),onError:()=>P({videoCover:`invalid`}),style:{display:T.videoCover===`valid`?`block`:`none`,width:`100%`,height:`100%`,objectFit:`contain`,background:`#000`}},`${C.id}-cover-${t}`),T.videoCover===`checking`?(0,$.jsx)(rX,{text:`视频封面加载检测中...`,minHeight:340,action:e}):null,T.videoCover===`valid`?(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(15,23,42,0.18)`},children:e}):null]})},U=()=>{if(!C||C.genType!==`video`||C.status!==`completed`)return null;if(!C.videoUrl)return(0,$.jsx)(rX,{text:`此视频任务暂无结果视频`,minHeight:340});if(T.video===`invalid`)return(0,$.jsx)(rX,{text:nX(C.videoUrl,`视频`),minHeight:340});let e=qY(C.videoUrl);return(0,$.jsxs)(`div`,{style:{position:`relative`,width:`100%`,height:340,borderRadius:12,background:`#000`,overflow:`hidden`,border:`1px solid #e2e8f0`},children:[(0,$.jsx)(`video`,{ref:k,src:e,preload:`metadata`,controls:D,onLoadedMetadata:()=>P({video:`valid`}),onCanPlay:()=>P({video:`valid`}),onPlaying:()=>{O(!0),P({video:`valid`})},onPause:()=>O(!1),onEnded:()=>O(!1),onError:()=>{O(!1),P({video:`invalid`})},style:{width:`100%`,height:`100%`,objectFit:`contain`,background:`#000`,opacity:+!!D,pointerEvents:D?`auto`:`none`}},`${C.id}-${e}`),H()]})},W=(e,t)=>{let n=$Y(e),r=eX(e),i=tX(e,t),a=T.references[i]||QY(n),o=r===`image`,s=r===`video`,c=typeof e.name==`string`&&e.name?e.name:`参考素材 ${t+1}`;if(!n)return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsx)(`div`,{style:{width:94,height:94},children:(0,$.jsx)(rX,{text:`无链接`,compact:!0})}),(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})]},i);if(a===`invalid`)return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsx)(`div`,{style:{width:94,height:94},children:(0,$.jsx)(rX,{text:KY(n)?`本地临时素材已失效`:`素材不可访问`,compact:!0})}),(0,$.jsx)(Bw,{title:c,children:(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})})]},i);let l=qY(n);return(0,$.jsxs)(`div`,{style:{width:94},children:[(0,$.jsxs)(`div`,{role:`button`,tabIndex:0,title:`点击新页面查看素材`,onClick:()=>L(n,s?`视频素材`:o?`图片素材`:`素材`),onKeyDown:e=>{e.key===`Enter`&&L(n,s?`视频素材`:o?`图片素材`:`素材`)},style:{width:94,height:94,borderRadius:10,overflow:`hidden`,border:`1px solid #e2e8f0`,background:`#f8f9fc`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`},children:[o?(0,$.jsx)(`img`,{src:l,alt:c,onLoad:()=>F(i,`valid`),onError:()=>F(i,`invalid`),style:{display:a===`valid`?`block`:`none`,width:`100%`,height:`100%`,objectFit:`cover`}}):null,s?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`video`,{src:l,preload:`metadata`,onLoadedMetadata:()=>F(i,`valid`),onError:()=>F(i,`invalid`),style:{display:`none`}}),(0,$.jsxs)(`div`,{style:{color:`#64748b`,fontSize:12,textAlign:`center`},children:[(0,$.jsx)(kG,{style:{fontSize:18}}),(0,$.jsx)(`div`,{children:`视频素材`}),(0,$.jsx)(`div`,{style:{fontSize:10,color:`#94a3b8`,marginTop:2},children:`点击查看`})]})]}):null,!o&&!s?(0,$.jsxs)(`div`,{style:{color:`#64748b`,fontSize:12,textAlign:`center`},children:[`文件素材`,(0,$.jsx)(`div`,{style:{fontSize:10,color:`#94a3b8`,marginTop:2},children:`点击查看`})]}):null,a===`checking`&&o?(0,$.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#f8f9fc`},children:(0,$.jsx)(um,{style:{color:`#6366f1`}})}):null]}),(0,$.jsx)(Bw,{title:c,children:(0,$.jsx)(Q.Text,{ellipsis:!0,style:{display:`block`,marginTop:4,fontSize:11,color:`#94a3b8`},children:c})})]},i)};return(0,$.jsxs)(`div`,{style:{padding:24},children:[(0,$.jsx)(Mk,{title:(0,$.jsxs)(wj,{children:[(0,$.jsx)(aW,{}),(0,$.jsx)(`span`,{children:`创作记录管理`})]}),extra:(0,$.jsxs)(wj,{wrap:!0,children:[(0,$.jsx)(ZC,{allowClear:!0,placeholder:`状态筛选`,value:c||void 0,style:{width:140},onChange:e=>{l(e||``),s(1)},options:[{value:`generating`,label:`生成中`},{value:`completed`,label:`已完成`},{value:`failed`,label:`失败`}]}),(0,$.jsx)(ZC,{allowClear:!0,placeholder:`类型筛选`,value:u||void 0,style:{width:120},onChange:e=>{d(e||``),s(1)},options:[{value:`image`,label:`图片`},{value:`video`,label:`视频`}]}),(0,$.jsx)(QM,{placeholder:`用户ID`,value:f,onChange:e=>p(e.target.value),onPressEnter:j,style:{width:180},allowClear:!0}),(0,$.jsx)(QM,{placeholder:`用户名`,value:m,onChange:e=>h(e.target.value),onPressEnter:j,style:{width:160},allowClear:!0}),(0,$.jsx)(mD,{icon:(0,$.jsx)(KC,{}),onClick:j,children:`搜索`})]}),bordered:!1,style:{borderRadius:16},children:(0,$.jsx)(uB,{rowKey:`id`,loading:i,columns:R,dataSource:e,scroll:{x:1180},pagination:{current:o,pageSize:BY,total:n,showSizeChanger:!1,showTotal:e=>`共 ${e} 条`,onChange:e=>s(e)}})}),(0,$.jsx)(CP,{title:(0,$.jsxs)(wj,{children:[C?.genType===`video`?(0,$.jsx)(cq,{}):(0,$.jsx)(aW,{}),(0,$.jsx)(`span`,{children:`创作记录详情`})]}),open:!!C,onCancel:N,footer:null,width:900,destroyOnClose:!0,children:C?(0,$.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,marginTop:12},children:[(0,$.jsxs)(`div`,{style:{display:`flex`,gap:12,flexWrap:`wrap`},children:[z?(0,$.jsx)(CB,{color:z.color,icon:z.icon,children:z.text}):null,B?(0,$.jsx)(CB,{color:B.color,icon:B.icon,children:B.text}):null,C.pipelineStage?(0,$.jsx)(CB,{color:`blue`,children:UY[C.pipelineStage]||C.pipelineStage}):null]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(iX,{label:`用户名称`,value:C.userName||`未知用户`}),(0,$.jsx)(iX,{label:`用户ID`,value:C.userId||`-`}),(0,$.jsx)(iX,{label:`任务ID`,value:C.id})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`原始提示词`}),(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`,lineHeight:1.6},children:C.originalPrompt||`-`})]}),C.genType===`video`?(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(iX,{label:`时长`,value:C.duration?`${C.duration}秒`:`-`}),(0,$.jsx)(iX,{label:`画面比例`,value:C.aspectRatio||`-`}),(0,$.jsx)(iX,{label:`分辨率`,value:C.resolution||`-`})]}):(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(iX,{label:`图片档位`,value:C.imageSize||`-`}),(0,$.jsx)(iX,{label:`图片比例`,value:C.imageProportion||`-`}),(0,$.jsx)(iX,{label:`像素尺寸`,value:C.imagePx||`-`})]}),C.engineSnapshot?(0,$.jsxs)(`div`,{style:{padding:12,borderRadius:10,background:`#f8f9fc`},children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:8},children:`引擎快照`}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,flexWrap:`wrap`},children:[(0,$.jsx)(iX,{label:`引擎名称`,value:C.engineSnapshot.name||`-`}),(0,$.jsx)(iX,{label:`服务商`,value:C.engineSnapshot.provider||`-`}),(0,$.jsx)(iX,{label:`模型`,value:C.engineSnapshot.modelName||`-`}),(0,$.jsx)(iX,{label:`引擎ID`,value:C.engineSnapshot.id||C.engineId||`-`})]})]}):null,(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(iX,{label:`总积分`,value:(0,$.jsx)(Q.Text,{strong:!0,style:{color:`#6366f1`},children:C.creditsCost||0})}),(0,$.jsx)(iX,{label:`文字积分`,value:`${C.textCreditsCost||0} (${C.textTokensUsed||0} tokens)`}),(0,$.jsx)(iX,{label:`图片 tokens`,value:C.imageTokensUsed??0}),(0,$.jsx)(iX,{label:`视频 tokens`,value:C.videoTokensUsed??0})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,padding:12,borderRadius:10,background:`#f8f9fc`,flexWrap:`wrap`},children:[(0,$.jsx)(iX,{label:`第三方任务ID`,value:C.providerTaskId||C.seedanceTaskId||`-`}),(0,$.jsx)(iX,{label:`轮询次数`,value:C.pollCount??0}),(0,$.jsx)(iX,{label:`重试次数`,value:C.retryCount??0})]}),!C?.mediaReferences||C.mediaReferences.length===0?null:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:`参考内容`}),(0,$.jsx)(`div`,{style:{display:`flex`,gap:10,flexWrap:`wrap`},children:C.mediaReferences.map((e,t)=>W(e,t))})]}),C.status===`completed`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Q.Text,{style:{fontSize:12,color:`#94a3b8`,display:`block`,marginBottom:6},children:C.genType===`video`?`生成视频`:`生成图片`}),C.genType===`video`?U():V()]}):null,C.status===`failed`&&C.errorMessage?(0,$.jsx)(`div`,{style:{padding:12,borderRadius:10,background:`rgba(239,68,68,0.04)`,border:`1px solid rgba(239,68,68,0.15)`},children:(0,$.jsxs)(Q.Text,{style:{fontSize:12,color:`#ef4444`},children:[`错误信息: `,C.errorMessage]})}):null,(0,$.jsxs)(`div`,{style:{display:`flex`,gap:16,fontSize:12,color:`#94a3b8`,flexWrap:`wrap`},children:[(0,$.jsxs)(`span`,{children:[`创建: `,YY(C.createdAt)]}),(0,$.jsxs)(`span`,{children:[`生成: `,YY(C.generatedAt)]})]})]}):(0,$.jsx)(xC,{description:`暂无详情`})})]})},oX=({children:e})=>{let{user:t,loading:n,checkAuth:r}=MJ();return(0,x.useEffect)(()=>{!localStorage.getItem(`auth_token`)&&!n&&!t&&(window.location.href=`/login`)},[t,n]),n?(0,$.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100vh`},children:(0,$.jsx)(aP,{size:`large`})}):t?(0,$.jsx)($.Fragment,{children:e}):(window.location.href=`/login`,null)};(0,Em.createRoot)(document.getElementById(`root`)).render((0,$.jsx)(()=>{let{checkAuth:e}=MJ();return(0,x.useEffect)(()=>{e()},[]),(0,$.jsx)(Kp,{locale:xq.default,theme:{token:{colorPrimary:`#6366f1`,borderRadius:8},components:{Button:{controlHeight:36,controlHeightLG:44},Card:{boxShadow:`0 1px 3px rgba(0,0,0,0.04)`},Table:{headerBg:`#fafbfc`}}},children:(0,$.jsx)(fx,{children:(0,$.jsx)(mn,{children:(0,$.jsxs)(Et,{children:[(0,$.jsx)(wt,{path:`/login`,element:(0,$.jsx)(RJ,{})}),(0,$.jsxs)(wt,{path:`/`,element:(0,$.jsx)(oX,{children:(0,$.jsx)(LJ,{})}),children:[(0,$.jsx)(wt,{index:!0,element:(0,$.jsx)(zJ,{})}),(0,$.jsx)(wt,{path:`users`,element:(0,$.jsx)(VJ,{})}),(0,$.jsx)(wt,{path:`credit-records`,element:(0,$.jsx)(KJ,{})}),(0,$.jsx)(wt,{path:`models`,element:(0,$.jsx)(HJ,{})}),(0,$.jsx)(wt,{path:`credit-ratios`,element:(0,$.jsx)(lY,{})}),(0,$.jsx)(wt,{path:`video-engines`,element:(0,$.jsx)(tY,{})}),(0,$.jsx)(wt,{path:`image-engines`,element:(0,$.jsx)(oY,{})}),(0,$.jsx)(wt,{path:`industries`,element:(0,$.jsx)($J,{})}),(0,$.jsx)(wt,{path:`menu-configs`,element:(0,$.jsx)(mY,{})}),(0,$.jsx)(wt,{path:`recharge-packages`,element:(0,$.jsx)(_Y,{})}),(0,$.jsx)(wt,{path:`payment`,element:(0,$.jsx)(qJ,{})}),(0,$.jsx)(wt,{path:`settings`,element:(0,$.jsx)(UJ,{})}),(0,$.jsx)(wt,{path:`notifications`,element:(0,$.jsx)(WJ,{})}),(0,$.jsx)(wt,{path:`operation-logs`,element:(0,$.jsx)(yY,{})}),(0,$.jsx)(wt,{path:`generation-records`,element:(0,$.jsx)(RY,{})}),(0,$.jsx)(wt,{path:`generation-ai`,element:(0,$.jsx)(aX,{})})]}),(0,$.jsx)(wt,{path:`*`,element:(0,$.jsx)(St,{to:`/`,replace:!0})})]})})})})},{})); \ No newline at end of file diff --git a/video-gen-admin/dist/index.html b/video-gen-admin/dist/index.html index 61f689bf..3fe48f30 100644 --- a/video-gen-admin/dist/index.html +++ b/video-gen-admin/dist/index.html @@ -1,13 +1,14 @@ - - - - - - - VideoGen.AI 管理后台 - - - -
- - + + + + + + + VideoGen.AI 管理后台 + + + +
+ + + diff --git a/video-gen-admin/src/pages/AdminCreditRecords.tsx b/video-gen-admin/src/pages/AdminCreditRecords.tsx index 1b3a98e2..6cbd36cf 100644 --- a/video-gen-admin/src/pages/AdminCreditRecords.tsx +++ b/video-gen-admin/src/pages/AdminCreditRecords.tsx @@ -3,7 +3,7 @@ import { Button, Card, Select, Space, Table, Tag, Typography, message, } from 'antd'; import { - WalletOutlined, ArrowUpOutlined, ArrowDownOutlined, ReloadOutlined, + WalletOutlined, ArrowUpOutlined, ArrowDownOutlined, ReloadOutlined, RollbackOutlined, } from '@ant-design/icons'; import { getCreditRecords } from '../api'; import { formatDate } from '../utils/formatDate'; @@ -18,6 +18,12 @@ interface CreditRecord { createdAt: string; } +const CREDIT_TYPE_MAP: Record = { + recharge: { text: '充值', color: 'green', icon: }, + consume: { text: '消费', color: 'red', icon: }, + refund: { text: '退回', color: 'blue', icon: }, +}; + const AdminCreditRecords: React.FC = () => { const [records, setRecords] = useState([]); const [total, setTotal] = useState(0); @@ -54,11 +60,14 @@ const AdminCreditRecords: React.FC = () => { }, { title: '类型', dataIndex: 'type', width: 100, - render: (v: string) => ( - : }> - {v === 'recharge' ? '充值' : '消费'} - - ), + render: (v: string) => { + const cfg = CREDIT_TYPE_MAP[v] || { text: v || '-', color: 'default', icon: null }; + return ( + + {cfg.text} + + ); + }, }, { title: '变动积分', dataIndex: 'amount', width: 120, sorter: (a: CreditRecord, b: CreditRecord) => a.amount - b.amount, @@ -140,6 +149,7 @@ const AdminCreditRecords: React.FC = () => { { value: '', label: '全部类型' }, { value: 'recharge', label: '充值' }, { value: 'consume', label: '消费' }, + { value: 'refund', label: '退回' }, ]} /> diff --git a/video-gen-admin/src/pages/AdminGenerationAiRecords.tsx b/video-gen-admin/src/pages/AdminGenerationAiRecords.tsx index 713145c4..c4055c08 100644 --- a/video-gen-admin/src/pages/AdminGenerationAiRecords.tsx +++ b/video-gen-admin/src/pages/AdminGenerationAiRecords.tsx @@ -29,7 +29,6 @@ import type { GenerationAIMediaReference, GenerationAITaskOut } from '../types'; import { formatDate } from '../utils/formatDate'; const RAW_API_BASE = import.meta.env.VITE_API_BASE || 'http://localhost:8000'; -// const RAW_API_BASE = 'http://ceshi.apiforeign.minzhong.cn'; // 资源 URL 由后端返回相对路径,例如 /generate/images/xxx.png?exp=xxx&sign=xxx。 // 如果 VITE_API_BASE 被配置成 http://host/api 或 /api,这里会去掉 /api,避免拼成 /api/generate/xxx 导致 404。 const RESOURCE_BASE = RAW_API_BASE.replace(/\/api\/?$/i, '').replace(/\/$/, ''); @@ -323,6 +322,25 @@ const AdminGenerationAiRecords: React.FC = () => { }, 0); }; + const handleOpenExternalResource = (url?: string | null, type = '素材') => { + if (!url) { + message.warning(`${type}链接为空,暂无法查看`); + return; + } + + if (isBlobUrl(url)) { + message.warning('本地临时素材已失效,暂无法查看'); + return; + } + + if (isUrlExpired(url)) { + message.warning(`${type}链接已超时,请刷新列表或重新搜索后再查看`); + return; + } + + window.open(apiUrl(url), '_blank', 'noopener,noreferrer'); + }; + const columns = useMemo(() => [ { title: '用户', key: 'user', width: 150, @@ -649,6 +667,13 @@ const AdminGenerationAiRecords: React.FC = () => { return (
handleOpenExternalResource(refUrl, isVideo ? '视频素材' : isImage ? '图片素材' : '素材')} + onKeyDown={(e) => { + if (e.key === 'Enter') handleOpenExternalResource(refUrl, isVideo ? '视频素材' : isImage ? '图片素材' : '素材'); + }} style={{ width: 94, height: 94, @@ -660,6 +685,7 @@ const AdminGenerationAiRecords: React.FC = () => { display: 'flex', alignItems: 'center', justifyContent: 'center', + cursor: 'pointer', }} > {isImage ? ( @@ -687,14 +713,18 @@ const AdminGenerationAiRecords: React.FC = () => { style={{ display: 'none' }} />
- +
视频素材
+
点击查看
) : null} {!isImage && !isVideo ? ( -
文件素材
+
+ 文件素材 +
点击查看
+
) : null} {state === 'checking' && isImage ? ( diff --git a/video-gen-admin/src/pages/AdminGenerationRecords.tsx b/video-gen-admin/src/pages/AdminGenerationRecords.tsx index 1606548d..6d557527 100644 --- a/video-gen-admin/src/pages/AdminGenerationRecords.tsx +++ b/video-gen-admin/src/pages/AdminGenerationRecords.tsx @@ -1,18 +1,54 @@ -import React, { useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { - Button, Card, Input, message, Modal, Select, Space, Table, Tag, Typography, Tooltip, Image, + Button, + Card, + Empty, + Input, + message, + Modal, + Select, + Space, + Table, + Tag, + Tooltip, + Typography, } from 'antd'; import { - PlayCircleOutlined, EyeOutlined, ClockCircleOutlined, CheckCircleOutlined, - LoadingOutlined, CloseCircleOutlined, SearchOutlined, VideoCameraOutlined, - ExclamationCircleOutlined, FileImageOutlined + PlayCircleOutlined, + EyeOutlined, + ClockCircleOutlined, + CheckCircleOutlined, + LoadingOutlined, + CloseCircleOutlined, + SearchOutlined, + VideoCameraOutlined, + ExclamationCircleOutlined, + FileImageOutlined, } from '@ant-design/icons'; import { getAdminGenerationRecords, adminUpdateGenerationStatus, adminGenerateVideo } from '../api'; -import type { AdminGenerationRecord } from '../types'; +import type { AdminGenerationRecord, GenerationAIMediaReference } from '../types'; import { formatDate } from '../utils/formatDate'; -const API_BASE = import.meta.env.VITE_API_BASE || 'http://localhost:8000'; -const apiUrl = (url?: string) => url ? (url.startsWith('http') ? url : `${API_BASE}${url}`) : ''; +const RAW_API_BASE = import.meta.env.VITE_API_BASE || 'http://localhost:8000'; +// 后端返回的图片/视频一般是 /images、/videos、/uploads 等相对路径。 +// 如果 VITE_API_BASE 配置为 http://host/api,这里需要去掉末尾 /api,避免资源被拼成 /api/images 导致 404。 +const RESOURCE_BASE = RAW_API_BASE.replace(/\/api\/?$/i, '').replace(/\/$/, ''); + +type ResourceState = 'empty' | 'checking' | 'valid' | 'invalid'; + +interface PreviewResourceState { + image: ResourceState; + video: ResourceState; + videoCover: ResourceState; + references: Record; +} + +const EMPTY_RESOURCE_STATE: PreviewResourceState = { + image: 'empty', + video: 'empty', + videoCover: 'empty', + references: {}, +}; const STATUS_MAP: Record = { optimizing: { color: 'processing', text: '优化中', icon: }, @@ -22,6 +58,134 @@ const STATUS_MAP: Record }, }; +const GEN_TYPE_MAP: Record = { + image: { text: '图片', color: 'purple', icon: }, + video: { text: '视频', color: 'geekblue', icon: }, +}; + +const isAbsoluteLikeUrl = (url: string): boolean => ( + /^(https?:)?\/\//i.test(url) || /^(blob|data):/i.test(url) +); + +const isBlobUrl = (url?: string | null): boolean => !!url && /^blob:/i.test(url.trim()); + +const apiUrl = (url?: string | null): string => { + if (!url) return ''; + const value = String(url).trim(); + if (!value) return ''; + if (isAbsoluteLikeUrl(value)) return value; + + if (!RESOURCE_BASE) { + return value.startsWith('/') ? value : `/${value}`; + } + return `${RESOURCE_BASE}${value.startsWith('/') ? value : `/${value}`}`; +}; + +const truncateId = (value?: string | null): string => { + if (!value) return '-'; + return value.length > 12 ? `${value.slice(0, 8)}...` : value; +}; + +const safeDate = (value?: string | null): string => { + if (!value) return '-'; + return formatDate(value); +}; + +const isEmptyValue = (value: React.ReactNode): boolean => ( + value === null || value === undefined || value === '' +); + +const isUrlExpired = (url?: string | null): boolean => { + if (!url || isBlobUrl(url)) return false; + + try { + const parsed = new URL(apiUrl(url), window.location.origin); + const expireValue = + parsed.searchParams.get('exp') || + parsed.searchParams.get('expires') || + parsed.searchParams.get('expire') || + parsed.searchParams.get('expires_at') || + parsed.searchParams.get('x-expires'); + + if (!expireValue) return false; + + const expireNumber = Number(expireValue); + if (!Number.isFinite(expireNumber)) return false; + + const expireMs = expireNumber > 10_000_000_000 ? expireNumber : expireNumber * 1000; + return Date.now() >= expireMs; + } catch { + return false; + } +}; + +const getInitialResourceState = (url?: string | null): ResourceState => { + if (!url) return 'empty'; + if (isBlobUrl(url)) return 'invalid'; + if (isUrlExpired(url)) return 'invalid'; + return 'checking'; +}; + +const getReferenceUrl = (ref: GenerationAIMediaReference): string | undefined => { + const value = ref.url || ref.mediaUrl || ref.fileUrl; + return typeof value === 'string' && value.trim() ? value.trim() : undefined; +}; + +const getReferenceType = (ref: GenerationAIMediaReference): string => { + const rawType = String(ref.type || ref.mediaType || ref.mimeType || '').toLowerCase(); + const url = getReferenceUrl(ref)?.toLowerCase() || ''; + + if (rawType.includes('video') || /\.(mp4|mov|webm|m4v)(\?|$)/i.test(url)) return 'video'; + if (rawType.includes('image') || /\.(png|jpe?g|webp|gif|bmp|svg)(\?|$)/i.test(url)) return 'image'; + return rawType || 'unknown'; +}; + +const getReferenceKey = (ref: GenerationAIMediaReference, index: number): string => { + const refUrl = getReferenceUrl(ref) || 'empty'; + return `${index}-${refUrl}`; +}; + +const getMediaInvalidText = (url?: string | null, type = '资源'): string => { + if (isBlobUrl(url)) return '本地临时素材已失效'; + if (isUrlExpired(url)) return `${type}链接已超时,请刷新列表或重新搜索后再查看`; + return `${type}加载失败,请刷新列表或重新搜索后再查看`; +}; + +const MediaPlaceholder: React.FC<{ + text: string; + minHeight?: number; + compact?: boolean; + action?: React.ReactNode; +}> = ({ text, minHeight = 240, compact = false, action }) => ( +
+ {text} + {action} +
+); + +const InfoItem: React.FC<{ label: string; value?: React.ReactNode }> = ({ label, value }) => ( +
+ {label} + {isEmptyValue(value) ? '-' : value} +
+); + const AdminGenerationRecords: React.FC = () => { const [records, setRecords] = useState([]); const [total, setTotal] = useState(0); @@ -30,20 +194,24 @@ const AdminGenerationRecords: React.FC = () => { const [pageSize] = useState(20); const [filterStatus, setFilterStatus] = useState(''); const [filterUserId, setFilterUserId] = useState(''); + const [reloadKey, setReloadKey] = useState(0); const [preview, setPreview] = useState(null); + const [resourceState, setResourceState] = useState(EMPTY_RESOURCE_STATE); + const [videoPlaying, setVideoPlaying] = useState(false); + const videoRef = useRef(null); const [updating, setUpdating] = useState(null); const [genModal, setGenModal] = useState<{ record: AdminGenerationRecord; ratio: string; resolution: string; image_size: string } | null>(null); - const load = async () => { + const load = useCallback(async () => { setLoading(true); try { const res = await getAdminGenerationRecords({ - userId: filterUserId || undefined, + userId: filterUserId.trim() || undefined, status: filterStatus || undefined, page, pageSize, }); - setRecords(res.items.map((item: any) => ({ + setRecords((res.items || []).map((item: any) => ({ id: item.id, userId: item.userId, username: item.username, @@ -56,29 +224,129 @@ const AdminGenerationRecords: React.FC = () => { resolution: item.resolution, status: item.status, videoUrl: item.videoUrl, + videoCoverUrl: item.videoCoverUrl, references: item.references, - creditsCost: item.creditsCost, + creditsCost: item.creditsCost || 0, textCreditsCost: item.textCreditsCost || 0, textTokensUsed: item.textTokensUsed || 0, videoTokensUsed: item.videoTokensUsed || 0, errorMessage: item.errorMessage, createdAt: item.createdAt, + generatedAt: item.generatedAt, genType: item.genType, imageSize: item.imageSize, imageUrl: item.imageUrl, - imageTokensUsed: item.imageTokensUsed, + imageTokensUsed: item.imageTokensUsed || 0, imageProportion: item.imageProportion, imagePx: item.imagePx, }))); - setTotal(res.total); + setTotal(res.total || 0); } catch { message.error('加载记录失败'); } finally { setLoading(false); } + }, [filterStatus, filterUserId, page, pageSize]); + + useEffect(() => { + load(); + }, [load, reloadKey]); + + useEffect(() => { + if (!preview) { + setResourceState(EMPTY_RESOURCE_STATE); + return; + } + + const references = preview.references || []; + const initialReferences = references.reduce>((acc, ref, index) => { + const refUrl = getReferenceUrl(ref); + acc[getReferenceKey(ref, index)] = getInitialResourceState(refUrl); + return acc; + }, {}); + + if (videoRef.current) { + videoRef.current.pause(); + videoRef.current.currentTime = 0; + } + + setVideoPlaying(false); + setResourceState({ + image: getInitialResourceState(preview.imageUrl), + video: getInitialResourceState(preview.videoUrl), + videoCover: getInitialResourceState(preview.videoCoverUrl), + references: initialReferences, + }); + }, [preview]); + + const handleSearch = () => { + setPage(1); + setReloadKey((v) => v + 1); }; - useEffect(() => { load(); }, [page, filterStatus]); + const handleOpenPreview = useCallback((record: AdminGenerationRecord) => { + setPreview(record); + }, []); + + const handleClosePreview = () => { + if (videoRef.current) { + videoRef.current.pause(); + } + setVideoPlaying(false); + setPreview(null); + }; + + const patchResourceState = (patch: Partial) => { + setResourceState((prev) => ({ ...prev, ...patch })); + }; + + const patchReferenceState = (key: string, state: ResourceState) => { + setResourceState((prev) => ({ + ...prev, + references: { + ...prev.references, + [key]: state, + }, + })); + }; + + const handleOpenExternalResource = (url?: string | null, type = '素材') => { + if (!url) { + message.warning(`${type}链接为空,暂无法查看`); + return; + } + + if (isBlobUrl(url)) { + message.warning('本地临时素材已失效,暂无法查看'); + return; + } + + if (isUrlExpired(url)) { + message.warning(`${type}链接已超时,请刷新列表或重新搜索后再查看`); + return; + } + + window.open(apiUrl(url), '_blank', 'noopener,noreferrer'); + }; + + const handlePlayVideo = () => { + if (!preview?.videoUrl) return; + + if (isUrlExpired(preview.videoUrl)) { + patchResourceState({ video: 'invalid' }); + message.warning('视频链接已超时,请刷新列表或重新搜索后再查看'); + return; + } + + setVideoPlaying(true); + window.setTimeout(() => { + videoRef.current?.play().catch(() => { + setVideoPlaying(false); + patchResourceState({ video: 'invalid' }); + message.warning('视频播放失败,请确认资源链接是否仍然有效'); + }); + }, 0); + }; const handleStatusUpdate = async (recordId: string, newStatus: string, videoUrl?: string) => { setUpdating(recordId); @@ -98,7 +366,7 @@ const AdminGenerationRecords: React.FC = () => { setUpdating(genModal.record.id); try { await adminGenerateVideo(genModal.record.id, genModal.ratio, genModal.resolution, genModal.image_size); - message.success('已提交视频生成'); + message.success(`已提交${genModal.record.genType === 'video' ? '视频' : '图片'}生成`); setGenModal(null); load(); } catch (e: any) { @@ -108,86 +376,88 @@ const AdminGenerationRecords: React.FC = () => { } }; - const columns = [ + const columns = useMemo(() => [ { title: '用户', key: 'user', width: 120, render: (_: any, r: AdminGenerationRecord) => (
- {r.username} -
{r.userId.slice(0, 8)}...
+ {r.username || '未知用户'} +
{truncateId(r.userId)}
), }, { title: '项目', dataIndex: 'projectName', width: 120, ellipsis: true, - render: (v: string) => {v}, + render: (v: string) => {v || '-'}, }, { - title: '类型', dataIndex: 'genType', width: 60, ellipsis: true, - render: (v: string) => - {v==='video' ? "视频" : "图片"} - , + title: '类型', dataIndex: 'genType', width: 90, ellipsis: true, + render: (v: string) => { + const cfg = GEN_TYPE_MAP[v] || { text: v || '-', color: 'default', icon: null }; + return {cfg.text}; + }, }, { title: '提示词', key: 'prompt', ellipsis: true, render: (_: any, r: AdminGenerationRecord) => ( - {r.originalPrompt} + {r.originalPrompt || '-'} ), }, { - title: '参数', key: 'params', width: 140, + title: '参数', key: 'params', width: 160, render: (_: any, r: AdminGenerationRecord) => ( - r.genType === 'video'? - (r.duration ? ( - - {r.duration}s - {r.aspectRatio} - {r.resolution} - - ) : 待配置) - : - (r.imageSize ? ( - - {r.imageSize} - {r.imageProportion} - {r.imagePx} - - ) : 待配置) + r.genType === 'video' ? ( + r.duration || r.aspectRatio || r.resolution ? ( + + {r.duration ? {r.duration}s : null} + {r.aspectRatio ? {r.aspectRatio} : null} + {r.resolution ? {r.resolution} : null} + + ) : 待配置 + ) : ( + r.imageSize || r.imageProportion || r.imagePx ? ( + + {r.imageSize ? {r.imageSize} : null} + {r.imageProportion ? {r.imageProportion} : null} + {r.imagePx ? {r.imagePx} : null} + + ) : 待配置 + ) ), }, { title: '积分', key: 'credits', width: 120, render: (_: any, r: AdminGenerationRecord) => (
- {r.textCreditsCost > 0 && ( + {r.textCreditsCost > 0 ? (
文字: {r.textCreditsCost}
- )} - {r.creditsCost > 0 && ( -
{r.genType === 'video'? "视频" : "图片"}: {r.creditsCost}
- )} - {r.textCreditsCost === 0 && r.creditsCost === 0 && ( + ) : null} + {r.creditsCost > 0 ? ( +
{r.genType === 'video' ? '视频' : '图片'}: {r.creditsCost}
+ ) : null} + {r.textCreditsCost === 0 && r.creditsCost === 0 ? ( 0 - )} + ) : null}
), }, { title: '状态', dataIndex: 'status', width: 90, render: (v: string) => { - const cfg = STATUS_MAP[v] || { color: 'default', text: v, icon: null }; + const cfg = STATUS_MAP[v] || { color: 'default', text: v || '-', icon: null }; return {cfg.text}; }, }, { - title: '时间', key: 'time', width: 140, + title: '时间', key: 'time', width: 150, render: (_: any, r: AdminGenerationRecord) => (
-
{formatDate(r.createdAt)}
- {r.generatedAt &&
生成: {formatDate(r.generatedAt)}
} +
{safeDate(r.createdAt)}
+ {r.generatedAt ?
生成: {safeDate(r.generatedAt)}
: null}
), }, @@ -195,11 +465,14 @@ const AdminGenerationRecords: React.FC = () => { title: '操作', key: 'action', width: 150, fixed: 'right' as const, render: (_: any, r: AdminGenerationRecord) => ( - - {r.status === 'generating' && ( - - )} - {r.status === 'failed' && ( - - )} - {r.status === 'prompt_optimized' && ( + ) : null} + {r.status === 'prompt_optimized' ? ( <> - - - )} + ) : null} ), }, - ]; + ], [handleOpenPreview, updating]); + + const previewTypeConfig = preview ? (GEN_TYPE_MAP[preview.genType || ''] || { text: preview.genType || '-', color: 'default', icon: null }) : null; + const previewStatusConfig = preview ? (STATUS_MAP[preview.status] || { color: 'default', text: preview.status || '-', icon: null }) : null; + + const renderResultImage = () => { + if (!preview || preview.genType !== 'image' || preview.status !== 'completed') return null; + + if (!preview.imageUrl) { + return ; + } + + if (resourceState.image === 'invalid') { + return ; + } + + const src = apiUrl(preview.imageUrl); + + return ( +
handleOpenExternalResource(preview.imageUrl, '生成图片')} + style={{ + position: 'relative', + width: '100%', + minHeight: 260, + borderRadius: 12, + background: '#f8f9fc', + border: '1px solid #e2e8f0', + overflow: 'hidden', + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + cursor: 'pointer', + }} + > + 生成图片 patchResourceState({ image: 'valid' })} + onError={() => patchResourceState({ image: 'invalid' })} + style={{ + display: resourceState.image === 'valid' ? 'block' : 'none', + width: '100%', + maxHeight: 560, + objectFit: 'contain', + background: '#fff', + }} + /> + {resourceState.image === 'checking' ? ( + + ) : null} +
+ ); + }; + + const renderVideoMask = () => { + if (!preview || videoPlaying || resourceState.video === 'invalid') return null; + + const canPlay = !!preview.videoUrl; + const playButton = canPlay ? ( +
{ {/* Detail modal */} 生成记录详情} + title={( + + {preview?.genType === 'video' ? : } + 生成记录详情 + + )} open={!!preview} - onCancel={() => setPreview(null)} + onCancel={handleClosePreview} footer={null} - width={720} + width={900} + destroyOnClose > - {preview && ( + {preview ? (
{/* User & Project info */} -
-
+
+
用户 - {preview.username} + {preview.username || '-'}
-
+
项目 - {preview.projectName} + {preview.projectName || '-'}
-
- 状态 - - {STATUS_MAP[preview.status]?.text} - +
+ 类型 / 状态 + + {previewTypeConfig ? {previewTypeConfig.text} : null} + {previewStatusConfig ? {previewStatusConfig.text} : null} +
@@ -330,149 +960,111 @@ const AdminGenerationRecords: React.FC = () => {
原始提示词
- {preview.originalPrompt} + {preview.originalPrompt || '-'}
优化后提示词
- {preview.optimizedPrompt} + {preview.optimizedPrompt || '-'}
{/* Credits */} -
-
- 文字积分 - {preview.textCreditsCost} - ({preview.textTokensUsed} tokens) -
-
- {preview.genType === 'image'? '图片' : '视频'}积分 - {preview.creditsCost} - {preview.videoTokensUsed > 0 && ( - ({preview.videoTokensUsed} tokens) +
+ + {preview.textCreditsCost || 0} + ({preview.textTokensUsed || 0} tokens) + )} -
-
- 总积分 - {preview.textCreditsCost + preview.creditsCost} -
+ /> + + {preview.creditsCost || 0} + {preview.genType === 'video' && preview.videoTokensUsed ? ( + ({preview.videoTokensUsed} tokens) + ) : null} + {preview.genType === 'image' && preview.imageTokensUsed ? ( + ({preview.imageTokensUsed} tokens) + ) : null} + + )} + /> +
{/* Video Params */} - {preview.genType === 'video' && ( - preview.duration ? ( -
- {[ - { label: '时长', value: `${preview.duration}秒` }, - { label: '比例', value: preview.aspectRatio }, - { label: '分辨率', value: preview.resolution }, - ].map((item, i) => ( -
- {item.label} - {item.value} -
- ))} + {preview.genType === 'video' ? ( + preview.duration || preview.aspectRatio || preview.resolution ? ( +
+ + +
) : (
视频参数待用户配置
) - )} + ) : null} {/* Image Params */} - {preview.genType === 'image' && ( - preview.imageSize ? ( -
- {[ - { label: '尺寸', value: preview.imagePx }, - { label: '比例', value: preview.imageProportion }, - { label: '分辨率', value: preview.imageSize }, - ].map((item, i) => ( -
- {item.label} - {item.value} -
- ))} + {preview.genType === 'image' ? ( + preview.imageSize || preview.imageProportion || preview.imagePx ? ( +
+ + +
) : (
图片参数待用户配置
) - )} + ) : null} - {/* Reference images */} - {preview.references && preview.references.length > 0 && ( -
- 参考内容 -
- {preview.references.map((ref, i) => ( -
- {ref.type === 'image' ? ( - - ) : ( -
- 视频 -
- )} -
- ))} -
-
- )} + {renderReferences()} - {/* Video preview */} - {preview.status === 'completed' && preview.videoUrl && ( + {preview.status === 'completed' ? (
- 生成视频 -
- )} - - {/* Image preview */} - {preview.status === 'completed' && preview.imageUrl && preview.genType === 'image' && ( -
- 生成图片 - -
- )} + ) : null} {/* Error message */} - {preview.status === 'failed' && preview.errorMessage && ( + {preview.status === 'failed' && preview.errorMessage ? (
错误信息: {preview.errorMessage}
- )} + ) : null} {/* Timestamps */} -
- 创建: {formatDate(preview.createdAt)} - {preview.generatedAt && 生成: {formatDate(preview.generatedAt)}} +
+ 创建: {safeDate(preview.createdAt)} + 生成: {safeDate(preview.generatedAt)}
+ ) : ( + )} {/* Generate modal */} {genModal && (genModal.record.genType === 'video' ? : )}{genModal && (genModal.record.genType === 'video' ? '生成视频' : '生成图片')}} + title={( + + {genModal && (genModal.record.genType === 'video' ? : )} + {genModal && (genModal.record.genType === 'video' ? '生成视频' : '生成图片')} + + )} open={!!genModal} onCancel={() => setGenModal(null)} onOk={handleGenerate} @@ -481,9 +1073,9 @@ const AdminGenerationRecords: React.FC = () => { confirmLoading={genModal ? updating === genModal.record.id : false} width={420} > - {genModal && ( + {genModal ? (
- {genModal.record.genType === 'video' ? + {genModal.record.genType === 'video' ? ( <>
时长 @@ -491,39 +1083,46 @@ const AdminGenerationRecords: React.FC = () => {
画面比例 - setGenModal((prev) => (prev ? { ...prev, ratio: v } : null))} + style={{ width: '100%' }} + options={['16:9', '4:3', '1:1', '3:4', '9:16', '21:9'].map((r) => ({ value: r, label: r }))} />
分辨率 - setGenModal((prev) => (prev ? { ...prev, resolution: v } : null))} + style={{ width: '100%' }} + options={['480p', '720p', '1080p'].map((r) => ({ value: r, label: r }))} />
- : + + ) : ( <>
尺寸 - {genModal.record.imagePx} + {genModal.record.imagePx || '-'}
比例 - {genModal.record.imageProportion} + {genModal.record.imageProportion || '-'}
分辨率 - setGenModal((prev) => (prev ? { ...prev, image_size: v } : null))} + style={{ width: '100%' }} + options={['2K', '4K'].map((r) => ({ value: r, label: r }))} />
- } - + + )}
- )} + ) : null}
); diff --git a/video-gen-admin/src/types/index.ts b/video-gen-admin/src/types/index.ts index 2192ca6c..5fe99196 100644 --- a/video-gen-admin/src/types/index.ts +++ b/video-gen-admin/src/types/index.ts @@ -11,7 +11,7 @@ export interface User { export interface CreditRecord { id: string; - type: 'consume' | 'recharge'; + type: 'consume' | 'recharge' | 'refund'; amount: number; description: string; createdAt: string; @@ -208,9 +208,10 @@ export interface AdminGenerationRecord { duration?: number; aspectRatio?: string; resolution?: string; - status: 'prompt_optimized' | 'generating' | 'completed' | 'failed'; + status: 'optimizing' | 'prompt_optimized' | 'generating' | 'completed' | 'failed' | string; videoUrl?: string; - references?: { url: string; type: string; name: string }[]; + videoCoverUrl?: string; + references?: GenerationAIMediaReference[] | null; creditsCost: number; textCreditsCost: number; textTokensUsed: number; @@ -218,12 +219,12 @@ export interface AdminGenerationRecord { errorMessage?: string; createdAt: string; generatedAt?: string; - genType?: string, - imageSize?: string, - imageUrl?: string, - imageTokensUsed?: number, - imageProportion?: string, - imagePx?: string, + genType?: string; + imageSize?: string; + imageUrl?: string; + imageTokensUsed?: number; + imageProportion?: string; + imagePx?: string; } export type GenerationAITaskStatus = 'pending' | 'generating' | 'completed' | 'failed' | string; diff --git a/video-gen-api/.env b/video-gen-api/.env index 04decd64..783ade76 100644 --- a/video-gen-api/.env +++ b/video-gen-api/.env @@ -44,7 +44,7 @@ CORS_ORIGINS=["*"] # RESOURCE RESOURCE_SIGN_SECRET=EOTpDZsEgkaYWPxgtIedOO0lDlH1moTS2rnSIemjzmO3 -RESOURCE_SIGN_EXPIRE_SECONDS=30 +RESOURCE_SIGN_EXPIRE_SECONDS=86400 RESOURCE_SIGN_ARG_EXPIRE=exp RESOURCE_SIGN_ARG_SIGNATURE=sign diff --git a/video-gen-api/app/api/v1/sms.py b/video-gen-api/app/api/v1/sms.py index 2aad1b0a..c53b335c 100644 --- a/video-gen-api/app/api/v1/sms.py +++ b/video-gen-api/app/api/v1/sms.py @@ -36,7 +36,7 @@ async def send_sms_code(req: SmsSendRequest): _validate_captcha_token(req.captcha_token) try: - ok = await generate_and_send_sms(req.phone, req.scene.value) + ok, code = await generate_and_send_sms(req.phone, req.scene.value) except ValueError as exc: raise HTTPException( status_code=status.HTTP_400_BAD_REQUEST, @@ -48,7 +48,9 @@ async def send_sms_code(req: SmsSendRequest): status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="短信发送失败,请稍后重试", ) - return SmsResponse(message="验证码已发送", success=True) + + message = f"验证码已发送:{code}" if settings.SMS_MOCK else "验证码已发送" + return SmsResponse(message=message, success=True) @router.post( diff --git a/video-gen-api/app/services/sms.py b/video-gen-api/app/services/sms.py index 57f22f78..51b1bd88 100644 --- a/video-gen-api/app/services/sms.py +++ b/video-gen-api/app/services/sms.py @@ -4,7 +4,7 @@ import logging import random import time from datetime import datetime -from typing import Any +from typing import Any, Tuple from app.config import settings from app.utils.redis import get_redis @@ -156,14 +156,14 @@ async def store_sms_code(phone: str, code: str, scene: str = "login", ttl: int | _sms_code_store[key] = (code, time.time() + ttl_seconds) -async def generate_and_send_sms(phone: str, scene: str = "login") -> bool: +async def generate_and_send_sms(phone: str, scene: str = "login") -> Tuple[bool, str]: scene = _normalize_scene(scene) await _check_send_limit(phone, scene) code = _generate_code() ok = await send_sms(phone, code, scene) if ok: await store_sms_code(phone, code, scene) - return ok + return ok, code async def verify_sms_code(phone: str, code: str, scene: str = "login") -> bool: