"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[485],{63564:function(nt,ce,u){u.r(ce),u.d(ce,{default:function(){return Rt}});var t=u(67294),z=u(35973),be=u(2453),A=u(71230),V=u(15746),je=u(92421),q=u(71577),Be=u(57953),re=u(28706),_={flex_box_center:"flex_box_center___Rx_bl",flex_space_between:"flex_space_between___pf3DK",flex_box_vertical_center:"flex_box_vertical_center___C2f9B",flex_box_center_end:"flex_box_center_end___Pmdn_",flex_box_column:"flex_box_column___RduTL",wrap:"wrap___Z5mJ_",head:"head___WiKNg"},ge=u(33170),Ze=u(11320),Se=Object.defineProperty,Ve=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ot=(R,T,Z)=>T in R?Se(R,T,{enumerable:!0,configurable:!0,writable:!0,value:Z}):R[T]=Z,Ke=(R,T)=>{for(var Z in T||(T={}))mt.call(T,Z)&&ot(R,Z,T[Z]);if(Ve)for(var Z of Ve(T))gt.call(T,Z)&&ot(R,Z,T[Z]);return R},It=(R,T)=>{var Z={};for(var ie in R)mt.call(R,ie)&&T.indexOf(ie)<0&&(Z[ie]=R[ie]);if(R!=null&&Ve)for(var ie of Ve(R))T.indexOf(ie)<0&>.call(R,ie)&&(Z[ie]=R[ie]);return Z},Lt=(R,T,Z)=>new Promise((ie,at)=>{var vt=ve=>{try{$e(Z.next(ve))}catch(we){at(we)}},Ae=ve=>{try{$e(Z.throw(ve))}catch(we){at(we)}},$e=ve=>ve.done?ie(ve.value):Promise.resolve(ve.value).then(vt,Ae);$e((Z=Z.apply(R,T)).next())});const qe=R=>{var T=R,{globalSetting:Z,user:ie,dispatch:at}=T,vt=It(T,["globalSetting","user","dispatch"]),Ae,$e,ve;const[we,it]=(0,t.useState)([]),[se,jt]=(0,t.useState)(),[st,_e]=(0,t.useState)(!1),[Ne,Ge]=(0,t.useState)(!1),At={onRemove:()=>{it([])},beforeUpload:ze=>{if((ze==null?void 0:ze.size)>1024*1024*50)return be.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let de=[];return de.push(ze),it([...de]),!1},fileList:we,accept:".xls,.xlsx"};return t.createElement("section",{className:_.wrap},t.createElement("div",{className:_.head},t.createElement("span",{onClick:()=>z.history.push("/problems")},t.createElement("i",{className:"iconfont icon-fanhui2"}),t.createElement("span",{className:"mr20"},"\u8FD4\u56DE")),t.createElement("b",null,"\u6279\u91CF\u5BFC\u5165\u8BD5\u9898")),t.createElement("div",{className:"pr40 pl30 mt30"},t.createElement(A.Z,{gutter:[16,16]},t.createElement(V.Z,{className:"font14",span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),t.createElement(V.Z,null,t.createElement(je.default,Ke({},At),t.createElement(q.ZP,{ghost:!0,type:"primary",style:{width:96,height:40,borderRadius:4}},"\u9009\u62E9\u6587\u4EF6")))),t.createElement(A.Z,{gutter:[16,16]},t.createElement(V.Z,{span:2,className:"font14",style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),t.createElement(V.Z,{span:22},t.createElement("span",null,"1.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",t.createElement("br",null),"2.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",t.createElement("span",{style:{cursor:"pointer",color:"#0152d9"},onClick:()=>{(0,re.FH)("",(0,re.NY)({url:Ze.Z.API_SERVER+"/api/practices/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"),t.createElement("br",null),"3.\u82E5\u76F4\u63A5\u4E0A\u4F20\u4FEE\u6539\u540E\u7684\u5931\u8D25\u6587\u4EF6\uFF0C\u9700\u8981\u5148\u5C06\u201C\u5931\u8D25\u539F\u56E0\u201D\u5217\u5220\u9664\u3002"))),t.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},t.createElement(q.ZP,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:()=>Lt(void 0,null,function*(){if((we==null?void 0:we.length)<=0){be.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}_e(!1),Ge(!0);const ze=new FormData;ze.append("file",we[0]);const de=yield(0,ge.ZP)("/api/practices/file_import.json",{method:"post",body:ze},!0);Ge(!1),de.status!==-1&&(_e(!0),jt(de))})},"\u786E\u8BA4\u4E0A\u4F20")),st&&!Ne&&t.createElement("div",null,t.createElement("p",{style:{paddingLeft:15,fontSize:14}},"\u4E0A\u4F20\u7ED3\u679C"),t.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},t.createElement("span",{style:{flex:"1",lineHeight:"30px"}}," \u672C\u6B21\u4E0A\u4F20 \u65B0\u589E",t.createElement("span",{style:{color:"#FA6400"}},se==null?void 0:se.success),"\u6761\u8BD5\u9898\uFF0C\u4E0A\u4F20\u6210\u529F",t.createElement("span",{style:{color:"#FA6400"}},se==null?void 0:se.success),"\u6761\u6570\u636E",!!((Ae=se==null?void 0:se.fail)!=null&&Ae.length)&&t.createElement("span",null,"\uFF0C\u5931\u8D25",t.createElement("span",{style:{color:"#FA6400"}},($e=se==null?void 0:se.fail)==null?void 0:$e.length),"\u6761\u6570\u636E")),!!((ve=se==null?void 0:se.fail)!=null&&ve.length)&&t.createElement(q.ZP,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:()=>{(0,re.FH)("",(0,re.NY)({url:Ze.Z.API_SERVER+(se==null?void 0:se.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),t.createElement(Be.Z,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:Ne})))};var Rt=(0,z.connect)(({user:R,globalSetting:T})=>({user:R,globalSetting:T}))(qe)},57838:function(nt,ce,u){u.d(ce,{Z:function(){return z}});var t=u(67294);function z(){const[,be]=t.useReducer(A=>A+1,0);return be}},38703:function(nt,ce,u){u.d(ce,{Z:function(){return ir}});var t=u(67294),z=u(23526),be=u(60068),A=u(30186),V=u(85846),je=u(94184),q=u.n(je),Be=u(10366),re=u(53124),_=u(87462),ge=u(1413),Ze=u(45987),Se={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ve=function(){var a=(0,t.useRef)([]),d=(0,t.useRef)(null);return(0,t.useEffect)(function(){var f=Date.now(),m=!1;a.current.forEach(function(E){if(E){m=!0;var y=E.style;y.transitionDuration=".3s, .3s, .3s, .06s",d.current&&f-d.current<100&&(y.transitionDuration="0s, 0s")}}),m&&(d.current=Date.now())}),a.current},mt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],gt=function(a){var d=(0,ge.Z)((0,ge.Z)({},Se),a),f=d.className,m=d.percent,E=d.prefixCls,y=d.strokeColor,b=d.strokeLinecap,S=d.strokeWidth,I=d.style,x=d.trailColor,j=d.trailWidth,K=d.transition,G=(0,Ze.Z)(d,mt);delete G.gapPosition;var U=Array.isArray(m)?m:[m],N=Array.isArray(y)?y:[y],F=Ve(),le=S/2,ne=100-S/2,ee="M ".concat(b==="round"?le:0,",").concat(le,` L `).concat(b==="round"?ne:100,",").concat(le),M="0 0 100 ".concat(S),xe=0;return t.createElement("svg",(0,_.Z)({className:q()("".concat(E,"-line"),f),viewBox:M,preserveAspectRatio:"none",style:I},G),t.createElement("path",{className:"".concat(E,"-line-trail"),d:ee,strokeLinecap:b,stroke:x,strokeWidth:j||S,fillOpacity:"0"}),U.map(function(Me,Oe){var ue=1;switch(b){case"round":ue=1-S/100;break;case"square":ue=1-S/2/100;break;default:ue=1;break}var Je={strokeDasharray:"".concat(Me*ue,"px, 100px"),strokeDashoffset:"-".concat(xe,"px"),transition:K||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Te=N[Oe]||N[N.length-1];return xe+=Me,t.createElement("path",{key:Oe,className:"".concat(E,"-line-path"),d:ee,strokeLinecap:b,stroke:Te,strokeWidth:S,fillOpacity:"0",ref:function(Pe){F[Oe]=Pe},style:Je})}))},ot=gt,Ke=u(71002),It=u(97685),Lt=u(98924),qe=0,Rt=(0,Lt.Z)();function R(){var r;return Rt?(r=qe,qe+=1):r="TEST_OR_SSR",r}var T=function(r){var a=t.useState(),d=(0,It.Z)(a,2),f=d[0],m=d[1];return t.useEffect(function(){m("rc_progress_".concat(R()))},[]),r||f},Z=function(a){var d=a.bg,f=a.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:d}},f)};function ie(r,a){return Object.keys(r).map(function(d){var f=parseFloat(d),m="".concat(Math.floor(f*a),"%");return"".concat(r[d]," ").concat(m)})}var at=t.forwardRef(function(r,a){var d=r.prefixCls,f=r.color,m=r.gradientId,E=r.radius,y=r.style,b=r.ptg,S=r.strokeLinecap,I=r.strokeWidth,x=r.size,j=r.gapDegree,K=f&&(0,Ke.Z)(f)==="object",G=K?"#FFF":void 0,U=x/2,N=t.createElement("circle",{className:"".concat(d,"-circle-path"),r:E,cx:U,cy:U,stroke:G,strokeLinecap:S,strokeWidth:I,opacity:b===0?0:1,style:y,ref:a});if(!K)return N;var F="".concat(m,"-conic"),le=j?"".concat(180+j/2,"deg"):"0deg",ne=ie(f,(360-j)/360),ee=ie(f,1),M="conic-gradient(from ".concat(le,", ").concat(ne.join(", "),")"),xe="linear-gradient(to ".concat(j?"bottom":"top",", ").concat(ee.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:F},N),t.createElement("foreignObject",{x:0,y:0,width:x,height:x,mask:"url(#".concat(F,")")},t.createElement(Z,{bg:xe},t.createElement(Z,{bg:M}))))}),vt=at,Ae=100,$e=function(a,d,f,m,E,y,b,S,I,x){var j=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,K=f/100*360*((360-y)/360),G=y===0?0:{bottom:0,top:180,left:90,right:-90}[b],U=(100-m)/100*d;I==="round"&&m!==100&&(U+=x/2,U>=d&&(U=d-.01));var N=Ae/2;return{stroke:typeof S=="string"?S:void 0,strokeDasharray:"".concat(d,"px ").concat(a),strokeDashoffset:U+j,transform:"rotate(".concat(E+K+G,"deg)"),transformOrigin:"".concat(N,"px ").concat(N,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ve=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function we(r){var a=r!=null?r:[];return Array.isArray(a)?a:[a]}var it=function(a){var d=(0,ge.Z)((0,ge.Z)({},Se),a),f=d.id,m=d.prefixCls,E=d.steps,y=d.strokeWidth,b=d.trailWidth,S=d.gapDegree,I=S===void 0?0:S,x=d.gapPosition,j=d.trailColor,K=d.strokeLinecap,G=d.style,U=d.className,N=d.strokeColor,F=d.percent,le=(0,Ze.Z)(d,ve),ne=Ae/2,ee=T(f),M="".concat(ee,"-gradient"),xe=ne-y/2,Me=Math.PI*2*xe,Oe=I>0?90+I/2:-90,ue=Me*((360-I)/360),Je=(0,Ke.Z)(E)==="object"?E:{count:E,space:2},Te=Je.count,lt=Je.space,Pe=we(F),oe=we(N),Ue=oe.find(function(He){return He&&(0,Ke.Z)(He)==="object"}),bt=Ue&&(0,Ke.Z)(Ue)==="object",ct=bt?"butt":K,sr=$e(Me,ue,0,100,Oe,I,x,j,ct,y),kt=Ve(),lr=function(){var $t=0;return Pe.map(function(Et,Ye){var Zt=oe[Ye]||oe[oe.length-1],St=$e(Me,ue,$t,Et,Oe,I,x,Zt,ct,y);return $t+=Et,t.createElement(vt,{key:Ye,color:Zt,ptg:Et,radius:xe,prefixCls:m,gradientId:M,style:St,strokeLinecap:ct,strokeWidth:y,gapDegree:I,ref:function(dt){kt[Ye]=dt},size:Ae})}).reverse()},cr=function(){var $t=Math.round(Te*(Pe[0]/100)),Et=100/Te,Ye=0;return new Array(Te).fill(null).map(function(Zt,St){var wt=St<=$t-1?oe[0]:j,dt=wt&&(0,Ke.Z)(wt)==="object"?"url(#".concat(M,")"):void 0,Xt=$e(Me,ue,Ye,Et,Oe,I,x,wt,"butt",y,lt);return Ye+=(ue-Xt.strokeDashoffset+lt)*100/ue,t.createElement("circle",{key:St,className:"".concat(m,"-circle-path"),r:xe,cx:ne,cy:ne,stroke:dt,strokeWidth:y,opacity:1,style:Xt,ref:function(o){kt[St]=o}})})};return t.createElement("svg",(0,_.Z)({className:q()("".concat(m,"-circle"),U),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:G,id:f,role:"presentation"},le),!Te&&t.createElement("circle",{className:"".concat(m,"-circle-trail"),r:xe,cx:ne,cy:ne,stroke:j,strokeLinecap:ct,strokeWidth:b||y,style:sr}),Te?cr():lr())},se=it,jt={Line:ot,Circle:se},st=u(83062),_e=u(47448);function Ne(r){return!r||r<0?0:r>100?100:r}function Ge(r){let{success:a,successPercent:d}=r,f=d;return a&&"progress"in a&&(f=a.progress),a&&"percent"in a&&(f=a.percent),f}const At=r=>{let{percent:a,success:d,successPercent:f}=r;const m=Ne(Ge({success:d,successPercent:f}));return[m,Ne(Ne(a)-m)]},ze=r=>{let{success:a={},strokeColor:d}=r;const{strokeColor:f}=a;return[f||_e.presetPrimaryColors.green,d||null]},de=(r,a,d)=>{var f,m,E,y;let b=-1,S=-1;if(a==="step"){const I=d.steps,x=d.strokeWidth;typeof r=="string"||typeof r=="undefined"?(b=r==="small"?2:14,S=x!=null?x:8):typeof r=="number"?[b,S]=[r,r]:[b=14,S=8]=r,b*=I}else if(a==="line"){const I=d==null?void 0:d.strokeWidth;typeof r=="string"||typeof r=="undefined"?S=I||(r==="small"?6:8):typeof r=="number"?[b,S]=[r,r]:[b=-1,S=8]=r}else(a==="circle"||a==="dashboard")&&(typeof r=="string"||typeof r=="undefined"?[b,S]=r==="small"?[60,60]:[120,120]:typeof r=="number"?[b,S]=[r,r]:(b=(m=(f=r[0])!==null&&f!==void 0?f:r[1])!==null&&m!==void 0?m:120,S=(y=(E=r[0])!==null&&E!==void 0?E:r[1])!==null&&y!==void 0?y:120));return[b,S]},Vt=3,Kt=r=>Vt/r*100;var Jt=r=>{const{prefixCls:a,trailColor:d=null,strokeLinecap:f="round",gapPosition:m,gapDegree:E,width:y=120,type:b,children:S,success:I,size:x=y}=r,[j,K]=de(x,"circle");let{strokeWidth:G}=r;G===void 0&&(G=Math.max(Kt(j),6));const U={width:j,height:K,fontSize:j*.15+6},N=t.useMemo(()=>{if(E||E===0)return E;if(b==="dashboard")return 75},[E,b]),F=m||b==="dashboard"&&"bottom"||void 0,le=Object.prototype.toString.call(r.strokeColor)==="[object Object]",ne=ze({success:I,strokeColor:r.strokeColor}),ee=q()(`${a}-inner`,{[`${a}-circle-gradient`]:le}),M=t.createElement(se,{percent:At(r),strokeWidth:G,trailWidth:G,strokeColor:ne,strokeLinecap:f,trailColor:d,prefixCls:a,gapDegree:N,gapPosition:F});return t.createElement("div",{className:ee,style:U},j<=20?t.createElement(st.Z,{title:S},t.createElement("span",null,M)):t.createElement(t.Fragment,null,M,S))},Yt=function(r,a){var d={};for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&a.indexOf(f)<0&&(d[f]=r[f]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,f=Object.getOwnPropertySymbols(r);m{let a=[];return Object.keys(r).forEach(d=>{const f=parseFloat(d.replace(/%/g,""));isNaN(f)||a.push({key:f,value:r[d]})}),a=a.sort((d,f)=>d.key-f.key),a.map(d=>{let{key:f,value:m}=d;return`${m} ${f}%`}).join(", ")},qt=(r,a)=>{const{from:d=_e.presetPrimaryColors.blue,to:f=_e.presetPrimaryColors.blue,direction:m=a==="rtl"?"to left":"to right"}=r,E=Yt(r,["from","to","direction"]);if(Object.keys(E).length!==0){const y=Qt(E);return{backgroundImage:`linear-gradient(${m}, ${y})`}}return{backgroundImage:`linear-gradient(${m}, ${d}, ${f})`}};var _t=r=>{const{prefixCls:a,direction:d,percent:f,size:m,strokeWidth:E,strokeColor:y,strokeLinecap:b="round",children:S,trailColor:I=null,success:x}=r,j=y&&typeof y!="string"?qt(y,d):{backgroundColor:y},K=b==="square"||b==="butt"?0:void 0,G={backgroundColor:I||void 0,borderRadius:K},U=m!=null?m:[-1,E||(m==="small"?6:8)],[N,F]=de(U,"line",{strokeWidth:E}),le=Object.assign({width:`${Ne(f)}%`,height:F,borderRadius:K},j),ne=Ge(r),ee={width:`${Ne(ne)}%`,height:F,borderRadius:K,backgroundColor:x==null?void 0:x.strokeColor},M={width:N<0?"100%":N,height:F};return t.createElement(t.Fragment,null,t.createElement("div",{className:`${a}-outer`,style:M},t.createElement("div",{className:`${a}-inner`,style:G},t.createElement("div",{className:`${a}-bg`,style:le}),ne!==void 0?t.createElement("div",{className:`${a}-success-bg`,style:ee}):null)),S)},er=r=>{const{size:a,steps:d,percent:f=0,strokeWidth:m=8,strokeColor:E,trailColor:y=null,prefixCls:b,children:S}=r,I=Math.round(d*(f/100)),x=a==="small"?2:14,j=a!=null?a:[x,m],[K,G]=de(j,"step",{steps:d,strokeWidth:m}),U=K/d,N=new Array(d);for(let F=0;F{const a=r?"100%":"-100%";return new Nt.Keyframes(`antProgress${r?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${a}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${a}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yt=r=>{const{componentCls:a,iconCls:d}=r;return{[a]:Object.assign(Object.assign({},(0,tr.Wf)(r)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:r.fontSize,marginInlineEnd:r.marginXS,marginBottom:r.marginXS},[`${a}-outer`]:{display:"inline-block",width:"100%"},[`&${a}-show-info`]:{[`${a}-outer`]:{marginInlineEnd:`calc(-2em - ${r.marginXS}px)`,paddingInlineEnd:`calc(2em + ${r.paddingXS}px)`}},[`${a}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:r.remainingColor,borderRadius:r.lineBorderRadius},[`${a}-inner:not(${a}-circle-gradient)`]:{[`${a}-circle-path`]:{stroke:r.defaultColor}},[`${a}-success-bg, ${a}-bg`]:{position:"relative",backgroundColor:r.defaultColor,borderRadius:r.lineBorderRadius,transition:`all ${r.motionDurationSlow} ${r.motionEaseInOutCirc}`},[`${a}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:r.colorSuccess},[`${a}-text`]:{display:"inline-block",width:"2em",marginInlineStart:r.marginXS,color:r.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[d]:{fontSize:r.fontSize}},[`&${a}-status-active`]:{[`${a}-bg::before`]:{position:"absolute",inset:0,backgroundColor:r.colorBgContainer,borderRadius:r.lineBorderRadius,opacity:0,animationName:Mt(),animationDuration:r.progressActiveMotionDuration,animationTimingFunction:r.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${a}-rtl${a}-status-active`]:{[`${a}-bg::before`]:{animationName:Mt(!0)}},[`&${a}-status-exception`]:{[`${a}-bg`]:{backgroundColor:r.colorError},[`${a}-text`]:{color:r.colorError}},[`&${a}-status-exception ${a}-inner:not(${a}-circle-gradient)`]:{[`${a}-circle-path`]:{stroke:r.colorError}},[`&${a}-status-success`]:{[`${a}-bg`]:{backgroundColor:r.colorSuccess},[`${a}-text`]:{color:r.colorSuccess}},[`&${a}-status-success ${a}-inner:not(${a}-circle-gradient)`]:{[`${a}-circle-path`]:{stroke:r.colorSuccess}}})}},Ct=r=>{const{componentCls:a,iconCls:d}=r;return{[a]:{[`${a}-circle-trail`]:{stroke:r.remainingColor},[`&${a}-circle ${a}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${a}-circle ${a}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:r.circleTextColor,fontSize:r.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[d]:{fontSize:`${r.fontSize/r.fontSizeSM}em`}},[`${a}-circle&-status-exception`]:{[`${a}-text`]:{color:r.colorError}},[`${a}-circle&-status-success`]:{[`${a}-text`]:{color:r.colorSuccess}}},[`${a}-inline-circle`]:{lineHeight:1,[`${a}-inner`]:{verticalAlign:"bottom"}}}},Tt=r=>{const{componentCls:a}=r;return{[a]:{[`${a}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:r.progressStepMinWidth,marginInlineEnd:r.progressStepMarginInlineEnd,backgroundColor:r.remainingColor,transition:`all ${r.motionDurationSlow}`,"&-active":{backgroundColor:r.defaultColor}}}}}},nr=r=>{const{componentCls:a,iconCls:d}=r;return{[a]:{[`${a}-small&-line, ${a}-small&-line ${a}-text ${d}`]:{fontSize:r.fontSizeSM}}}};var or=(0,rr.Z)("Progress",r=>{const a=r.marginXXS/2,d=(0,ht.TS)(r,{progressStepMarginInlineEnd:a,progressStepMinWidth:a,progressActiveMotionDuration:"2.4s"});return[yt(d),Ct(d),Tt(d),nr(d)]},r=>({circleTextColor:r.colorText,defaultColor:r.colorInfo,remainingColor:r.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ht=function(r,a){var d={};for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&a.indexOf(f)<0&&(d[f]=r[f]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,f=Object.getOwnPropertySymbols(r);m{const{prefixCls:d,className:f,rootClassName:m,steps:E,strokeColor:y,percent:b=0,size:S="default",showInfo:I=!0,type:x="line",status:j,format:K,style:G}=r,U=Ht(r,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),N=t.useMemo(()=>{var Pe,oe;const Ue=Ge(r);return parseInt(Ue!==void 0?(Pe=Ue!=null?Ue:0)===null||Pe===void 0?void 0:Pe.toString():(oe=b!=null?b:0)===null||oe===void 0?void 0:oe.toString(),10)},[b,r.success,r.successPercent]),F=t.useMemo(()=>!We.includes(j)&&N>=100?"success":j||"normal",[j,N]),{getPrefixCls:le,direction:ne,progress:ee}=t.useContext(re.E_),M=le("progress",d),[xe,Me]=or(M),Oe=t.useMemo(()=>{if(!I)return null;const Pe=Ge(r);let oe;const Ue=K||(ct=>`${ct}%`),bt=x==="line";return K||F!=="exception"&&F!=="success"?oe=Ue(Ne(b),Ne(Pe)):F==="exception"?oe=bt?t.createElement(A.Z,null):t.createElement(V.Z,null):F==="success"&&(oe=bt?t.createElement(z.Z,null):t.createElement(be.Z,null)),t.createElement("span",{className:`${M}-text`,title:typeof oe=="string"?oe:void 0},oe)},[I,b,N,F,x,M,K]),ue=Array.isArray(y)?y[0]:y,Je=typeof y=="string"||Array.isArray(y)?y:void 0;let Te;x==="line"?Te=E?t.createElement(er,Object.assign({},r,{strokeColor:Je,prefixCls:M,steps:E}),Oe):t.createElement(_t,Object.assign({},r,{strokeColor:ue,prefixCls:M,direction:ne}),Oe):(x==="circle"||x==="dashboard")&&(Te=t.createElement(Jt,Object.assign({},r,{strokeColor:ue,prefixCls:M,progressStatus:F}),Oe));const lt=q()(M,`${M}-status-${F}`,`${M}-${x==="dashboard"&&"circle"||E&&"steps"||x}`,{[`${M}-inline-circle`]:x==="circle"&&de(S,"circle")[0]<=20,[`${M}-show-info`]:I,[`${M}-${S}`]:typeof S=="string",[`${M}-rtl`]:ne==="rtl"},ee==null?void 0:ee.className,f,m,Me);return xe(t.createElement("div",Object.assign({ref:a,style:Object.assign(Object.assign({},ee==null?void 0:ee.style),G),className:lt,role:"progressbar","aria-valuenow":N},(0,Be.Z)(U,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Te))}),ir=ar},33507:function(nt,ce){const u=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}});ce.Z=u},92421:function(nt,ce,u){u.d(ce,{default:function(){return Xt}});var t=u(67294),z=u(74902),be=u(94184),A=u.n(be),V=u(87462),je=u(15671),q=u(43144),Be=u(60136),re=u(51630),_=u(4942),ge=u(45987),Ze=u(74165),Se=u(71002),Ve=u(15861),mt=u(64217);function gt(e,o){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(o.status,"'"),i=new Error(n);return i.status=o.status,i.method=e.method,i.url=e.action,i}function ot(e){var o=e.responseText||e.response;if(!o)return o;try{return JSON.parse(o)}catch(n){return o}}function Ke(e){var o=new XMLHttpRequest;e.onProgress&&o.upload&&(o.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(p){var l=e.data[p];if(Array.isArray(l)){l.forEach(function(c){n.append("".concat(p,"[]"),c)});return}n.append(p,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),o.onerror=function(l){e.onError(l)},o.onload=function(){return o.status<200||o.status>=300?e.onError(gt(e,o),ot(o)):e.onSuccess(ot(o),o)},o.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);var i=e.headers||{};return i["X-Requested-With"]!==null&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach(function(p){i[p]!==null&&o.setRequestHeader(p,i[p])}),o.send(n),{abort:function(){o.abort()}}}var It=+new Date,Lt=0;function qe(){return"rc-upload-".concat(It,"-").concat(++Lt)}var Rt=u(80334),R=function(e,o){if(e&&o){var n=Array.isArray(o)?o:o.split(","),i=e.name||"",p=e.type||"",l=p.replace(/\/.*$/,"");return n.some(function(c){var s=c.trim();if(/^\*(\/\*)?$/.test(c))return!0;if(s.charAt(0)==="."){var v=i.toLowerCase(),g=s.toLowerCase(),h=[g];return(g===".jpg"||g===".jpeg")&&(h=[".jpg",".jpeg"]),h.some(function(O){return v.endsWith(O)})}return/\/\*$/.test(s)?l===s.replace(/\/.*$/,""):p===s?!0:/^\w+$/.test(s)?((0,Rt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function T(e,o){var n=e.createReader(),i=[];function p(){n.readEntries(function(l){var c=Array.prototype.slice.apply(l);i=i.concat(c);var s=!c.length;s?o(i):p()})}p()}var Z=function(o,n,i){var p=function l(c,s){c&&(c.path=s||"",c.isFile?c.file(function(v){i(v)&&(c.fullPath&&!v.webkitRelativePath&&(Object.defineProperties(v,{webkitRelativePath:{writable:!0}}),v.webkitRelativePath=c.fullPath.replace(/^\//,""),Object.defineProperties(v,{webkitRelativePath:{writable:!1}})),n([v]))}):c.isDirectory&&T(c,function(v){v.forEach(function(g){l(g,"".concat(s).concat(c.name,"/"))})}))};o.forEach(function(l){p(l.webkitGetAsEntry())})},ie=Z,at=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],vt=function(e){(0,Be.Z)(n,e);var o=(0,re.Z)(n);function n(){var i;(0,je.Z)(this,n);for(var p=arguments.length,l=new Array(p),c=0;c{let{uid:l}=p;return l===e.uid});return i===-1?n.push(e):n[i]=e,n}function Tt(e,o){const n=e.uid!==void 0?"uid":"name";return o.filter(i=>i[n]===e[n])[0]}function nr(e,o){const n=e.uid!==void 0?"uid":"name",i=o.filter(p=>p[n]!==e[n]);return i.length===o.length?null:i}const or=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),i=o[o.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},Ht=e=>e.indexOf("image/")===0,vr=e=>{if(e.type&&!e.thumbUrl)return Ht(e.type);const o=e.thumbUrl||e.url||"",n=or(o);return/^data:image\//.test(o)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(o)||n)},We=200;function hr(e){return new Promise(o=>{if(!e.type||!Ht(e.type)){o("");return}const n=document.createElement("canvas");n.width=We,n.height=We,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${We}px; height: ${We}px; z-index: 9999; display: none;`,document.body.appendChild(n);const i=n.getContext("2d"),p=new Image;if(p.onload=()=>{const{width:l,height:c}=p;let s=We,v=We,g=0,h=0;l>c?(v=c*(We/l),h=-(v-s)/2):(s=l*(We/c),g=-(s-v)/2),i.drawImage(p,g,h,s,v);const O=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(p.src),o(O)},p.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&(p.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&o(l.result)},l.readAsDataURL(e)}else p.src=window.URL.createObjectURL(e)})}var ar={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"},ir=ar,r=function(o,n){return t.createElement(de.Z,(0,V.Z)({},o,{ref:n,icon:ir}))},a=t.forwardRef(r),d={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"},f=d,m=function(o,n){return t.createElement(de.Z,(0,V.Z)({},o,{ref:n,icon:f}))},E=t.forwardRef(m),y=u(43481),b=u(38703),S=u(83062),x=t.forwardRef((e,o)=>{let{prefixCls:n,className:i,style:p,locale:l,listType:c,file:s,items:v,progress:g,iconRender:h,actionIconRender:O,itemRender:D,isImgUrl:W,showPreviewIcon:pe,showRemoveIcon:Ee,showDownloadIcon:De,previewIcon:te,removeIcon:he,downloadIcon:fe,onPreview:ae,onDownload:w,onClose:me}=e;var Q,et;const{status:ke}=s,[Fe,xt]=t.useState(ke);t.useEffect(()=>{ke!=="removed"&&xt(ke)},[ke]);const[Ut,Bt]=t.useState(!1);t.useEffect(()=>{const H=setTimeout(()=>{Bt(!0)},300);return()=>{clearTimeout(H)}},[]);const ut=h(s);let Ie=t.createElement("div",{className:`${n}-icon`},ut);if(c==="picture"||c==="picture-card"||c==="picture-circle")if(Fe==="uploading"||!s.thumbUrl&&!s.url){const H=A()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:Fe!=="uploading"});Ie=t.createElement("div",{className:H},ut)}else{const H=W!=null&&W(s)?t.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):ut,k=A()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:W&&!W(s)});Ie=t.createElement("a",{className:k,onClick:Qe=>ae(s,Qe),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},H)}const J=A()(`${n}-list-item`,`${n}-list-item-${Fe}`),Ot=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,Pt=Ee?O((typeof he=="function"?he(s):he)||t.createElement(a,null),()=>me(s),n,l.removeFile):null,Dt=De&&Fe==="done"?O((typeof fe=="function"?fe(s):fe)||t.createElement(E,null),()=>w(s),n,l.downloadFile):null,tt=c!=="picture-card"&&c!=="picture-circle"&&t.createElement("span",{key:"download-delete",className:A()(`${n}-list-item-actions`,{picture:c==="picture"})},Dt,Pt),Le=A()(`${n}-list-item-name`),zt=s.url?[t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Le,title:s.name},Ot,{href:s.url,onClick:H=>ae(s,H)}),s.name),tt]:[t.createElement("span",{key:"view",className:Le,onClick:H=>ae(s,H),title:s.name},s.name),tt],C={pointerEvents:"none",opacity:.5},Y=pe?t.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:s.url||s.thumbUrl?void 0:C,onClick:H=>ae(s,H),title:l.previewFile},typeof te=="function"?te(s):te||t.createElement(y.Z,null)):null,Re=(c==="picture-card"||c==="picture-circle")&&Fe!=="uploading"&&t.createElement("span",{className:`${n}-list-item-actions`},Y,Fe==="done"&&Dt,Pt),{getPrefixCls:ye}=t.useContext(st.E_),rt=ye(),Xe=t.createElement("div",{className:J},Ie,zt,Re,Ut&&t.createElement(Nt.default,{motionName:`${rt}-fade`,visible:Fe==="uploading",motionDeadline:2e3},H=>{let{className:k}=H;const Qe="percent"in s?t.createElement(b.Z,Object.assign({},g,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return t.createElement("div",{className:A()(`${n}-list-item-progress`,k)},Qe)})),dr=s.response&&typeof s.response=="string"?s.response:((Q=s.error)===null||Q===void 0?void 0:Q.statusText)||((et=s.error)===null||et===void 0?void 0:et.message)||l.uploadError,Wt=Fe==="error"?t.createElement(S.Z,{title:dr,getPopupContainer:H=>H.parentNode},Xe):Xe;return t.createElement("div",{className:A()(`${n}-list-item-container`,i),style:p,ref:o},D?D(Wt,s,v,{download:w.bind(null,s),preview:ae.bind(null,s),remove:me.bind(null,s)}):Wt)});const j=(e,o)=>{const{listType:n="text",previewFile:i=hr,onPreview:p,onDownload:l,onRemove:c,locale:s,iconRender:v,isImageUrl:g=vr,prefixCls:h,items:O=[],showPreviewIcon:D=!0,showRemoveIcon:W=!0,showDownloadIcon:pe=!1,removeIcon:Ee,previewIcon:De,downloadIcon:te,progress:he={size:[-1,2],showInfo:!1},appendAction:fe,appendActionVisible:ae=!0,itemRender:w,disabled:me}=e,Q=(0,tr.Z)(),[et,ke]=t.useState(!1);t.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(O||[]).forEach(C=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(C.originFileObj instanceof File||C.originFileObj instanceof Blob)||C.thumbUrl!==void 0||(C.thumbUrl="",i&&i(C.originFileObj).then(Y=>{C.thumbUrl=Y||"",Q()}))})},[n,O,i]),t.useEffect(()=>{ke(!0)},[]);const Fe=(C,Y)=>{if(p)return Y==null||Y.preventDefault(),p(C)},xt=C=>{typeof l=="function"?l(C):C.url&&window.open(C.url)},Ut=C=>{c==null||c(C)},Bt=C=>{if(v)return v(C,n);const Y=C.status==="uploading",Re=g&&g(C)?t.createElement(er,null):t.createElement(Kt,null);let ye=Y?t.createElement(Gt.Z,null):t.createElement(qt,null);return n==="picture"?ye=Y?t.createElement(Gt.Z,null):Re:(n==="picture-card"||n==="picture-circle")&&(ye=Y?s.uploading:Re),ye},ut=(C,Y,Re,ye)=>{const rt={type:"text",size:"small",title:ye,onClick:Xe=>{Y(),(0,ht.l$)(C)&&C.props.onClick&&C.props.onClick(Xe)},className:`${Re}-list-item-action`,disabled:me};if((0,ht.l$)(C)){const Xe=(0,ht.Tm)(C,Object.assign(Object.assign({},C.props),{onClick:()=>{}}));return t.createElement(Mt.ZP,Object.assign({},rt,{icon:Xe}))}return t.createElement(Mt.ZP,Object.assign({},rt),t.createElement("span",null,C))};t.useImperativeHandle(o,()=>({handlePreview:Fe,handleDownload:xt}));const{getPrefixCls:Ie}=t.useContext(st.E_),J=Ie("upload",h),Ot=Ie(),Pt=A()(`${J}-list`,`${J}-list-${n}`),Dt=(0,z.Z)(O.map(C=>({key:C.uid,file:C})));let Le={motionDeadline:2e3,motionName:`${J}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:Dt,motionAppear:et};const zt=t.useMemo(()=>{const C=Object.assign({},(0,rr.Z)(Ot));return delete C.onAppearEnd,delete C.onEnterEnd,delete C.onLeaveEnd,C},[Ot]);return n!=="picture-card"&&n!=="picture-circle"&&(Le=Object.assign(Object.assign({},zt),Le)),t.createElement("div",{className:Pt},t.createElement(Nt.CSSMotionList,Object.assign({},Le,{component:!1}),C=>{let{key:Y,file:Re,className:ye,style:rt}=C;return t.createElement(x,{key:Y,locale:s,prefixCls:J,className:ye,style:rt,file:Re,items:O,progress:he,listType:n,isImgUrl:g,showPreviewIcon:D,showRemoveIcon:W,showDownloadIcon:pe,removeIcon:Ee,previewIcon:De,downloadIcon:te,iconRender:Bt,actionIconRender:ut,itemRender:w,onPreview:Fe,onDownload:xt,onClose:Ut})}),fe&&t.createElement(Nt.default,Object.assign({},Le,{visible:ae,forceRender:!0}),C=>{let{className:Y,style:Re}=C;return(0,ht.Tm)(fe,ye=>({className:A()(ye.className,Y),style:Object.assign(Object.assign(Object.assign({},Re),{pointerEvents:Y?"none":void 0}),ye.style)}))}))};var G=t.forwardRef(j),U=u(14747),N=u(33507),F=u(67968),le=u(45503),ee=e=>{const{componentCls:o,iconCls:n}=e;return{[`${o}-wrapper`]:{[`${o}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[o]:{padding:`${e.padding}px 0`},[`${o}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${o}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${o}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${o}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${o}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${o}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${o}-disabled`]:{cursor:"not-allowed",[`p${o}-drag-icon ${n}, p${o}-text, p${o}-hint `]:{color:e.colorTextDisabled}}}}}},xe=e=>{const{componentCls:o,antCls:n,iconCls:i,fontSize:p,lineHeight:l}=e,c=`${o}-list-item`,s=`${c}-actions`,v=`${c}-action`,g=Math.round(p*l);return{[`${o}-wrapper`]:{[`${o}-list`]:Object.assign(Object.assign({},(0,U.dF)()),{lineHeight:e.lineHeight,[c]:{position:"relative",height:e.lineHeight*p,marginTop:e.marginXS,fontSize:p,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${c}-name`]:Object.assign(Object.assign({},U.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[v]:{opacity:0},[`${v}${n}-btn-sm`]:{height:g,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${v}:focus-visible, &.picture ${v} `]:{opacity:1},[i]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${i}`]:{color:e.colorText}},[`${o}-icon ${i}`]:{color:e.colorTextDescription,fontSize:p},[`${c}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:p+e.paddingXS,fontSize:p,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${c}:hover ${v}`]:{opacity:1,color:e.colorText},[`${c}-error`]:{color:e.colorError,[`${c}-name, ${o}-icon ${i}`]:{color:e.colorError},[s]:{[`${i}, ${i}:hover`]:{color:e.colorError},[v]:{opacity:1}}},[`${o}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Me=u(45930),Oe=u(16932);const ue=new Me.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Je=new Me.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var lt=e=>{const{componentCls:o}=e,n=`${o}-animate-inline`;return[{[`${o}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:ue},[`${n}-leave`]:{animationName:Je}}},{[`${o}-wrapper`]:(0,Oe.J$)(e)},ue,Je]},Pe=u(47448),oe=u(84780);const Ue=e=>{const{componentCls:o,iconCls:n,uploadThumbnailSize:i,uploadProgressOffset:p}=e,l=`${o}-list`,c=`${l}-item`;return{[`${o}-wrapper`]:{[` ${l}${l}-picture, ${l}${l}-picture-card, ${l}${l}-picture-circle `]:{[c]:{position:"relative",height:i+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${c}-thumbnail`]:Object.assign(Object.assign({},U.vS),{width:i,height:i,lineHeight:`${i+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${c}-progress`]:{bottom:p,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:i+e.paddingXS}},[`${c}-error`]:{borderColor:e.colorError,[`${c}-thumbnail ${n}`]:{[`svg path[fill='${Pe.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Pe.blue.primary}']`]:{fill:e.colorError}}},[`${c}-uploading`]:{borderStyle:"dashed",[`${c}-name`]:{marginBottom:p}}},[`${l}${l}-picture-circle ${c}`]:{[`&, &::before, ${c}-thumbnail`]:{borderRadius:"50%"}}}}},bt=e=>{const{componentCls:o,iconCls:n,fontSizeLG:i,colorTextLightSolid:p}=e,l=`${o}-list`,c=`${l}-item`,s=e.uploadPicCardSize;return{[` ${o}-wrapper${o}-picture-card-wrapper, ${o}-wrapper${o}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,U.dF)()),{display:"inline-block",width:"100%",[`${o}${o}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${o}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${o}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card, ${l}${l}-picture-circle`]:{[`${l}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[c]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${c}:hover`]:{[`&::before, ${c}-actions`]:{opacity:1}},[`${c}-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:i,margin:`0 ${e.marginXXS}px`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${c}-actions, ${c}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new oe.C(p).setAlpha(.65).toRgbString(),"&:hover":{color:p}}},[`${c}-thumbnail, ${c}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${c}-name`]:{display:"none",textAlign:"center"},[`${c}-file + ${c}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${c}-uploading`]:{[`&${c}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${c}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${o}-wrapper${o}-picture-circle-wrapper`]:{[`${o}${o}-select`]:{borderRadius:"50%"}}}};var sr=e=>{const{componentCls:o}=e;return{[`${o}-rtl`]:{direction:"rtl"}}};const kt=e=>{const{componentCls:o,colorTextDisabled:n}=e;return{[`${o}-wrapper`]:Object.assign(Object.assign({},(0,U.Wf)(e)),{[o]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${o}-select`]:{display:"inline-block"},[`${o}-disabled`]:{color:n,cursor:"not-allowed"}})}};var lr=(0,F.Z)("Upload",e=>{const{fontSizeHeading3:o,fontSize:n,lineHeight:i,lineWidth:p,controlHeightLG:l}=e,c=Math.round(n*i),s=(0,le.TS)(e,{uploadThumbnailSize:o*2,uploadProgressOffset:c/2+p,uploadPicCardSize:l*2.55});return[kt(s),ee(s),Ue(s),bt(s),xe(s),lt(s),sr(s),(0,N.Z)(s)]},e=>({actionsColor:e.colorTextDescription})),cr=function(e,o,n,i){function p(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function s(h){try{g(i.next(h))}catch(O){c(O)}}function v(h){try{g(i.throw(h))}catch(O){c(O)}}function g(h){h.done?l(h.value):p(h.value).then(s,v)}g((i=i.apply(e,o||[])).next())})};const He=`__LIST_IGNORE_${Date.now()}__`,$t=(e,o)=>{const{fileList:n,defaultFileList:i,onRemove:p,showUploadList:l=!0,listType:c="text",onPreview:s,onDownload:v,onChange:g,onDrop:h,previewFile:O,disabled:D,locale:W,iconRender:pe,isImageUrl:Ee,progress:De,prefixCls:te,className:he,type:fe="select",children:ae,style:w,itemRender:me,maxCount:Q,data:et={},multiple:ke=!1,action:Fe="",accept:xt="",supportServerRender:Ut=!0,rootClassName:Bt}=e,ut=t.useContext(_e.Z),Ie=D!=null?D:ut,[J,Ot]=(0,se.Z)(i||[],{value:n,postState:$=>$!=null?$:[]}),[Pt,Dt]=t.useState("drop"),tt=t.useRef(null);t.useMemo(()=>{const $=Date.now();(n||[]).forEach((L,X)=>{!L.uid&&!Object.isFrozen(L)&&(L.uid=`__AUTO__${$}_${X}__`)})},[n]);const Le=($,L,X)=>{let P=(0,z.Z)(L),B=!1;Q===1?P=P.slice(-1):Q&&(B=P.length>Q,P=P.slice(0,Q)),(0,jt.flushSync)(()=>{Ot(P)});const Ce={file:$,fileList:P};X&&(Ce.event=X),(!B||P.some(pt=>pt.uid===$.uid))&&(0,jt.flushSync)(()=>{g==null||g(Ce)})},zt=($,L)=>cr(void 0,void 0,void 0,function*(){const{beforeUpload:X,transformFile:P}=e;let B=$;if(X){const Ce=yield X($,L);if(Ce===!1)return!1;if(delete $[He],Ce===He)return Object.defineProperty($,He,{value:!0,configurable:!0}),!1;typeof Ce=="object"&&Ce&&(B=Ce)}return P&&(B=yield P(B)),B}),C=$=>{const L=$.filter(B=>!B.file[He]);if(!L.length)return;const X=L.map(B=>yt(B.file));let P=(0,z.Z)(J);X.forEach(B=>{P=Ct(B,P)}),X.forEach((B,Ce)=>{let pt=B;if(L[Ce].parsedFile)B.status="uploading";else{const{originFileObj:Ft}=B;let ft;try{ft=new File([Ft],Ft.name,{type:Ft.type})}catch(Ir){ft=new Blob([Ft],{type:Ft.type}),ft.name=Ft.name,ft.lastModifiedDate=new Date,ft.lastModified=new Date().getTime()}ft.uid=B.uid,pt=ft}Le(pt,P)})},Y=($,L,X)=>{try{typeof $=="string"&&($=JSON.parse($))}catch(Ce){}if(!Tt(L,J))return;const P=yt(L);P.status="done",P.percent=100,P.response=$,P.xhr=X;const B=Ct(P,J);Le(P,B)},Re=($,L)=>{if(!Tt(L,J))return;const X=yt(L);X.status="uploading",X.percent=$.percent;const P=Ct(X,J);Le(X,P,$)},ye=($,L,X)=>{if(!Tt(X,J))return;const P=yt(X);P.error=$,P.response=L,P.status="error";const B=Ct(P,J);Le(P,B)},rt=$=>{let L;Promise.resolve(typeof p=="function"?p($):p).then(X=>{var P;if(X===!1)return;const B=nr($,J);B&&(L=Object.assign(Object.assign({},$),{status:"removed"}),J==null||J.forEach(Ce=>{const pt=L.uid!==void 0?"uid":"name";Ce[pt]===L[pt]&&!Object.isFrozen(Ce)&&(Ce.status="removed")}),(P=tt.current)===null||P===void 0||P.abort(L),Le(L,B))})},Xe=$=>{Dt($.type),$.type==="drop"&&(h==null||h($))};t.useImperativeHandle(o,()=>({onBatchStart:C,onSuccess:Y,onProgress:Re,onError:ye,fileList:J,upload:tt.current}));const{getPrefixCls:dr,direction:Wt,upload:H}=t.useContext(st.E_),k=dr("upload",te),Qe=Object.assign(Object.assign({onBatchStart:C,onError:ye,onProgress:Re,onSuccess:Y},e),{data:et,multiple:ke,action:Fe,accept:xt,supportServerRender:Ut,prefixCls:k,disabled:Ie,beforeUpload:zt,onChange:void 0});delete Qe.className,delete Qe.style,(!ae||Ie)&&delete Qe.id;const[ur,yr]=lr(k),[br]=(0,Ne.Z)("Upload",Ge.Z.Upload),{showRemoveIcon:$r,showPreviewIcon:Er,showDownloadIcon:Sr,removeIcon:wr,previewIcon:xr,downloadIcon:Or}=typeof l=="boolean"?{}:l,pr=($,L)=>l?t.createElement(G,{prefixCls:k,listType:c,items:J,previewFile:O,onPreview:s,onDownload:v,onRemove:rt,showRemoveIcon:!Ie&&$r,showPreviewIcon:Er,showDownloadIcon:Sr,removeIcon:wr,previewIcon:xr,downloadIcon:Or,iconRender:pe,locale:Object.assign(Object.assign({},br),W),isImageUrl:Ee,progress:De,appendAction:$,appendActionVisible:L,itemRender:me,disabled:Ie}):$,fr=A()(`${k}-wrapper`,he,Bt,yr,H==null?void 0:H.className,{[`${k}-rtl`]:Wt==="rtl",[`${k}-picture-card-wrapper`]:c==="picture-card",[`${k}-picture-circle-wrapper`]:c==="picture-circle"}),Pr=Object.assign(Object.assign({},H==null?void 0:H.style),w);if(fe==="drag"){const $=A()(yr,k,`${k}-drag`,{[`${k}-drag-uploading`]:J.some(L=>L.status==="uploading"),[`${k}-drag-hover`]:Pt==="dragover",[`${k}-disabled`]:Ie,[`${k}-rtl`]:Wt==="rtl"});return ur(t.createElement("span",{className:fr},t.createElement("div",{className:$,style:Pr,onDrop:Xe,onDragOver:Xe,onDragLeave:Xe},t.createElement(it,Object.assign({},Qe,{ref:tt,className:`${k}-btn`}),t.createElement("div",{className:`${k}-drag-container`},ae))),pr()))}const Dr=A()(k,`${k}-select`,{[`${k}-disabled`]:Ie}),Cr=($=>t.createElement("div",{className:Dr,style:$},t.createElement(it,Object.assign({},Qe,{ref:tt}))))(ae?void 0:{display:"none"});return ur(c==="picture-card"||c==="picture-circle"?t.createElement("span",{className:fr},pr(Cr,!!ae)):t.createElement("span",{className:fr},Cr,pr()))};var Ye=t.forwardRef($t),Zt=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,i=Object.getOwnPropertySymbols(e);p{var{style:n,height:i}=e,p=Zt(e,["style","height"]);return t.createElement(Ye,Object.assign({ref:o},p,{type:"drag",style:Object.assign(Object.assign({},n),{height:i})}))});const dt=Ye;dt.Dragger=wt,dt.LIST_IGNORE=He;var Xt=dt},60068:function(nt,ce,u){u.d(ce,{Z:function(){return q}});var t=u(87462),z=u(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},A=be,V=u(44327),je=function(re,_){return z.createElement(V.Z,(0,t.Z)({},re,{ref:_,icon:A}))},q=z.forwardRef(je)},43481:function(nt,ce,u){u.d(ce,{Z:function(){return q}});var t=u(87462),z=u(67294),be={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"},A=be,V=u(44327),je=function(re,_){return z.createElement(V.Z,(0,t.Z)({},re,{ref:_,icon:A}))},q=z.forwardRef(je)},64217:function(nt,ce,u){u.d(ce,{Z:function(){return Be}});var t=u(1413),z=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,A="".concat(z," ").concat(be).split(/[\s\n]+/),V="aria-",je="data-";function q(re,_){return re.indexOf(_)===0}function Be(re){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge;_===!1?ge={aria:!0,data:!0,attr:!0}:_===!0?ge={aria:!0}:ge=(0,t.Z)({},_);var Ze={};return Object.keys(re).forEach(function(Se){(ge.aria&&(Se==="role"||q(Se,V))||ge.data&&q(Se,je)||ge.attr&&A.includes(Se))&&(Ze[Se]=re[Se])}),Ze}}}]);