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

13 lines
45 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,76820,245538,e=>{"use strict";var t=e.i(84443).Col;e.s(["Col",()=>t],76820);var r=e.i(247699).Row;e.s(["Row",()=>r],245538)},82275,e=>{"use strict";let t;var r=e.i(879971),i=e.i(114070),n=e.i(465235),a=e.i(84813),s=e.i(895564),o=e.i(492363),l=e.i(456298),c=e.i(974233),d=class extends s.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#i=void 0;#n=void 0;#a=void 0;#s;#o;#r;#t;#l;#c;#d;#u;#h;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#i.addObserver(this),u(this.#i,this.options)?this.#f():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#i,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#i,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#x(),this.#i.removeObserver(this)}setOptions(e){let t=this.options,r=this.#i;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.resolveQueryBoolean)(this.options.enabled,this.#i))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#i.setOptions(this.options),t._defaulted&&!(0,l.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#i,observer:this});let i=this.hasListeners();i&&p(this.#i,r,this.options,t)&&this.#f(),this.updateResult(),i&&(this.#i!==r||(0,l.resolveQueryBoolean)(this.options.enabled,this.#i)!==(0,l.resolveQueryBoolean)(t.enabled,this.#i)||(0,l.resolveStaleTime)(this.options.staleTime,this.#i)!==(0,l.resolveStaleTime)(t.staleTime,this.#i))&&this.#b();let n=this.#$();i&&(this.#i!==r||(0,l.resolveQueryBoolean)(this.options.enabled,this.#i)!==(0,l.resolveQueryBoolean)(t.enabled,this.#i)||n!==this.#p)&&this.#S(n)}getOptimisticResult(e){var t,r;let i=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(i,e);return t=this,r=n,(0,l.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=n,this.#o=this.options,this.#s=this.#i.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#i}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(e){this.#v();let t=this.#i.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.noop)),t}#b(){this.#y();let e=(0,l.resolveStaleTime)(this.options.staleTime,this.#i);if(i.environmentManager.isServer()||this.#a.isStale||!(0,l.isValidTimeout)(e))return;let t=(0,l.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#u=c.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#i):this.options.refetchInterval)??!1}#S(e){this.#x(),this.#p=e,!i.environmentManager.isServer()&&!1!==(0,l.resolveQueryBoolean)(this.options.enabled,this.#i)&&(0,l.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#h=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#f()},this.#p))}#g(){this.#b(),this.#S(this.#$())}#y(){void 0!==this.#u&&(c.timeoutManager.clearTimeout(this.#u),this.#u=void 0)}#x(){void 0!==this.#h&&(c.timeoutManager.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r,i=this.#i,n=this.options,s=this.#a,c=this.#s,d=this.#o,h=e!==i?e.state:this.#n,{state:f}=e,g={...f},y=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&u(e,t),o=r&&p(e,i,t,n);(s||o)&&(g={...g,...(0,a.fetchState)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:x,errorUpdatedAt:v,status:b}=g;r=g.data;let $=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===b){let e;s?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(e=s.data,$=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,void 0!==e&&(b="success",r=(0,l.replaceData)(s?.data,e,t),y=!0)}if(t.select&&void 0!==r&&!$)if(s&&r===c?.data&&t.select===this.#l)r=this.#c;else try{this.#l=t.select,r=t.select(r),r=(0,l.replaceData)(s?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(x=this.#t,r=this.#c,v=Date.now(),b="error");let S="fetching"===g.fetchStatus,C="pending"===b,R="error"===b,k=C&&S,E=void 0!==r,w={status:b,fetchStatus:g.fetchStatus,isPending:C,isSuccess:"success"===b,isError:R,isInitialLoading:k,isLoading:k,data:r,dataUpdatedAt:g.dataUpdatedAt,error:x,errorUpdatedAt:v,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:R&&!E,isPaused:"paused"===g.fetchStatus,isPlaceholderData:y,isRefetchError:R&&E,isStale:m(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,l.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==w.data,r="error"===w.status&&!t,n=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},a=()=>{n(this.#r=w.promise=(0,o.pendingThenable)())},s=this.#r;switch(s.status){case"pending":e.queryHash===i.queryHash&&n(s);break;case"fulfilled":(r||w.data!==s.value)&&a();break;case"rejected":r&&w.error===s.reason||a()}}return w}updateResult(){let e=this.#a,t=this.createResult(this.#i,this.options);if(this.#s=this.#i.state,this.#o=this.options,void 0!==this.#s.data&&(this.#d=this.#i),(0,l.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#m.size)return!0;let i=new Set(r??this.#m);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&i.has(t))};this.#C({listeners:r()})}#v(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#i)return;let t=this.#i;this.#i=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#C(e){n.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#i,type:"observerResultsUpdated"})})}};function u(e,t){return!1!==(0,l.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,l.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,r){if(!1!==(0,l.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,l.resolveStaleTime)(t.staleTime,e)){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&m(e,t)}return!1}function p(e,t,r,i){return(e!==t||!1===(0,l.resolveQueryBoolean)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,l.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,l.resolveStaleTime)(t.staleTime,e))}var f=e.i(191788),g=e.i(755224);e.i(391398);var y=f.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),x=f.createContext(!1);x.Provider;var v=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,r){var a,s,o,c;let d,u=f.useContext(x),h=f.useContext(y),p=(0,g.useQueryClient)(r),m=p.defaultQueryOptions(e);null==(s=null==(a=p.getDefaultOptions().queries)?void 0:a._experimental_beforeQuery)||s.call(a,m);let b=p.getQueryCache().get(m.queryHash);if(m._optimisticResults=u?"isRestoring":"optimistic",m.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=m.staleTime;m.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof m.gcTime&&(m.gcTime=Math.max(m.gcTime,1e3))}d=(null==b?void 0:b.state.error)&&"function"==typeof m.throwOnError?(0,l.shouldThrowError)(m.throwOnError,[b.state.error,b]):m.throwOnError,(m.suspense||m.experimental_prefetchInRender||d)&&!h.isReset()&&(m.retryOnMount=!1),f.useEffect(()=>{h.clearReset()},[h]);let $=!p.getQueryCache().get(m.queryHash),[S]=f.useState(()=>new t(p,m)),C=S.getOptimisticResult(m),R=!u&&!1!==e.subscribed;if(f.useSyncExternalStore(f.useCallback(e=>{let t=R?S.subscribe(n.notifyManager.batchCalls(e)):l.noop;return S.updateResult(),t},[S,R]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),f.useEffect(()=>{S.setOptions(m)},[m,S]),(null==m?void 0:m.suspense)&&C.isPending)throw v(m,S,h);if((({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(0,l.shouldThrowError)(r,[e.error,i])))({result:C,errorResetBoundary:h,throwOnError:m.throwOnError,query:b,suspense:m.suspense}))throw C.error;if(null==(c=null==(o=p.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||c.call(o,m,C),m.experimental_prefetchInRender&&!i.environmentManager.isServer()&&C.isLoading&&C.isFetching&&!u){let e=$?v(m,S,h):null==b?void 0:b.promise;null==e||e.catch(l.noop).finally(()=>{S.updateResult()})}return m.notifyOnChangeProps?C:S.trackResult(C)}(e,d,t)}],82275)},106555,e=>{"use strict";var t=e.i(379049),r=e.i(56206),i=e.i(191788),n=e.i(814432),a=e.i(889590),s=e.i(391398);e.s(["GridContent",0,e=>{let o=(0,i.useContext)(n.RouteContext),{children:l,contentWidth:c,className:d,style:u}=e,{getPrefixCls:h}=(0,i.useContext)(t.ConfigProvider.ConfigContext),p=e.prefixCls||h("pro"),m=c||o.contentWidth,f=`${p}-grid-content`,{wrapSSR:g,hashId:y}=(0,a.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${f}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),x="Fixed"===m&&"top"===o.layout;return g((0,s.jsx)("div",{className:(0,r.clsx)(f,y,d,{[`${f}-wide`]:x}),style:u,"data-testid":"pro-grid-content",children:(0,s.jsx)("div",{className:(0,r.clsx)(`${p}-grid-content-children`,y),children:l})}))}],106555)},108156,e=>{"use strict";var t=(0,e.i(192306).makeChartComp)("Area");e.s(["Area",()=>t],108156)},229068,e=>{"use strict";var t=e.i(461550);e.s(["Progress",()=>t.default])},304729,e=>{e.v(t=>Promise.all(["src_pages_dashboard_monitor_components_Map_index_tsx_45e6e299.801c1ae5.async.js"].map(t=>e.l(t))).then(()=>t(902655)))},354840,e=>{"use strict";var t=e.i(391398),r=e.i(192306),i=(0,r.makeChartComp)("Gauge"),n=(0,r.makeChartComp)("Liquid"),a=(0,r.makeChartComp)("WordCloud"),s=e.i(106555),o=e.i(82275),l=e.i(946077),c=e.i(76820),d=e.i(229068),u=e.i(245538),h=e.i(81867),p=e.i(678485),m=e.i(191788),f=e.i(400056),g=e.i(108156),y=e.i(827830);let x=(0,y.createStyles)(()=>({activeChart:{position:"relative"},activeChartGrid:{p:{position:"absolute",top:"80px"},"p:last-child":{top:"115px"}},activeChartLegend:{position:"relative",height:"20px",marginTop:"8px",fontSize:"0",lineHeight:"20px",span:{display:"inline-block",width:"33.33%",fontSize:"12px",textAlign:"center"},"span:first-child":{textAlign:"left"},"span:last-child":{textAlign:"right"}},dashedLine:{position:"relative",top:"-70px",left:"-3px",height:"1px"},line:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",backgroundImage:"linear-gradient(to right, transparent 50%, #e9e9e9 50%)",backgroundSize:"6px"},"dashedLine:last-child":{top:"-36px"}}));var v=()=>{let e=(0,m.useRef)(null),{styles:r}=x(),[i,n]=(0,m.useState)([]);(0,m.useEffect)(()=>{let t=()=>{n(function(){let e=[];for(let r=0;r<24;r+=1){var t;e.push({x:`${10>+(t=r)?`0${t}`:t}:00`,y:Math.floor(200*Math.random())+50*r})}return e}()),e.current=window.setTimeout(t,2e3)};return t(),()=>{e.current&&clearTimeout(e.current)}},[]);let{maxValue:a,medianValue:s}=(0,m.useMemo)(()=>{if(!i.length)return{maxValue:0,medianValue:0};let e=[...i].sort((e,t)=>e.y-t.y);return{maxValue:e[e.length-1]?.y??0,medianValue:e[Math.floor(e.length/2)]?.y??0}},[i]);return(0,t.jsxs)("div",{className:r.activeChart,children:[(0,t.jsx)(p.Statistic,{title:"目标评估",value:"有望达到预期"}),(0,t.jsx)("div",{style:{marginTop:32},children:(0,t.jsx)(g.Area,{padding:[0,0,0,0],xField:"x",axis:!1,yField:"y",height:84,style:{fill:"linear-gradient(-90deg, white 0%, #6294FA 100%)",fillOpacity:.6},data:i})}),i&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:r.activeChartGrid,children:[(0,t.jsxs)("p",{children:[a+200," 亿元"]}),(0,t.jsxs)("p",{children:[s," 亿元"]})]}),(0,t.jsx)("div",{className:r.dashedLine,children:(0,t.jsx)("div",{className:r.line})}),(0,t.jsx)("div",{className:r.dashedLine,children:(0,t.jsx)("div",{className:r.line})})]}),i&&(0,t.jsxs)("div",{className:r.activeChartLegend,children:[(0,t.jsx)("span",{children:"00:00"}),(0,t.jsx)("span",{children:i[Math.floor(i.length/2)]?.x}),(0,t.jsx)("span",{children:i[i.length-1]?.x})]})]})};e.i(113297);var b=e.i(134124);async function $(){return(0,b.request)("/api/tags")}let S=(0,y.createStyles)(({token:e})=>({mapChart:{flex:1,minHeight:420,marginTop:16,position:"relative",img:{display:"inline-block",maxWidth:"100%"},[`@media screen and (max-width: ${e.screenLG}px)`]:{height:300,minHeight:300}}})),C=(0,m.lazy)(()=>e.A(304729)),R=Date.now()+1728e5+3e4;var k=()=>{let{styles:e}=S(),{isLoading:r,data:g}=(0,o.useQuery)({queryKey:["monitor-tags"],queryFn:()=>$().then(e=>e.data)}),y=(g?.list||[]).map(e=>({id:+Date.now(),word:e.name,weight:e.value}));return(0,t.jsxs)(s.GridContent,{children:[(0,t.jsxs)(u.Row,{gutter:24,children:[(0,t.jsx)(c.Col,{xl:18,lg:24,md:24,sm:24,xs:24,style:{marginBottom:24,display:"flex"},children:(0,t.jsxs)(l.Card,{title:"活动实时交易情况",variant:"borderless",style:{flex:1},styles:{body:{display:"flex",flexDirection:"column",flex:1}},children:[(0,t.jsxs)(u.Row,{children:[(0,t.jsx)(c.Col,{md:6,sm:12,xs:24,children:(0,t.jsx)(p.Statistic,{title:"今日交易总额",suffix:"元",value:(0,f.formatNumber)(0x76c6101)})}),(0,t.jsx)(c.Col,{md:6,sm:12,xs:24,children:(0,t.jsx)(p.Statistic,{title:"销售目标完成率",value:"92%"})}),(0,t.jsx)(c.Col,{md:6,sm:12,xs:24,children:(0,t.jsx)(p.Statistic.Timer,{type:"countdown",title:"活动剩余时间",value:R,format:"HH:mm:ss:SSS"})}),(0,t.jsx)(c.Col,{md:6,sm:12,xs:24,children:(0,t.jsx)(p.Statistic,{title:"每秒交易总额",suffix:"元",value:(0,f.formatNumber)(234)})})]}),(0,t.jsx)("div",{className:e.mapChart,children:(0,t.jsx)(m.Suspense,{fallback:(0,t.jsx)(h.Skeleton.Node,{active:!0,style:{width:"100%",height:356}}),children:(0,t.jsx)(C,{})})})]})}),(0,t.jsxs)(c.Col,{xl:6,lg:24,md:24,sm:24,xs:24,children:[(0,t.jsx)(l.Card,{title:"活动情况预测",style:{marginBottom:24},variant:"borderless",children:(0,t.jsx)(v,{})}),(0,t.jsx)(l.Card,{title:"券核效率",style:{marginBottom:24},styles:{body:{textAlign:"center"}},variant:"borderless",children:(0,t.jsx)(i,{height:180,data:{target:80,total:100,name:"score",thresholds:[20,40,60,80,100]},padding:-16,style:{textContent:()=>"优"},meta:{color:{range:["#6395FA","#62DAAB","#657798","#F7C128","#1F8718"]}}})})]})]}),(0,t.jsxs)(u.Row,{gutter:24,children:[(0,t.jsx)(c.Col,{xl:12,lg:24,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(l.Card,{title:"各品类占比",variant:"borderless",children:(0,t.jsxs)(u.Row,{style:{padding:"16px 0"},children:[(0,t.jsx)(c.Col,{span:8,children:(0,t.jsx)(d.Progress,{type:"dashboard",percent:75})}),(0,t.jsx)(c.Col,{span:8,children:(0,t.jsx)(d.Progress,{type:"dashboard",percent:48})}),(0,t.jsx)(c.Col,{span:8,children:(0,t.jsx)(d.Progress,{type:"dashboard",percent:33})})]})})}),(0,t.jsx)(c.Col,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(l.Card,{title:"热门搜索",loading:r,variant:"borderless",styles:{body:{overflow:"hidden"}},children:(0,t.jsx)(a,{data:y,height:162,textField:"word",colorField:"word",layout:{spiral:"rectangular",fontSize:[10,20]}})})}),(0,t.jsx)(c.Col,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(l.Card,{title:"资源剩余",styles:{body:{textAlign:"center",fontSize:0}},variant:"borderless",children:(0,t.jsx)(n,{height:160,percent:.35})})})]})]})};e.s(["default",()=>k],354840)},400056,e=>{"use strict";let t=new Intl.NumberFormat("en-US"),r=e=>{let r=Number(e);return Number.isFinite(r)?t.format(r):""};e.s(["formatNumber",0,r,"formatYuan",0,e=>`\xa5 ${r(e)}`])},439214,e=>{"use strict";var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},i=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let a=t.forwardRef((e,a)=>t.createElement(i.default,n({},e,{ref:a,icon:r})));e.s(["default",()=>a],439214)},461550,e=>{"use strict";var t=e.i(191788);e.i(644038);var r=e.i(839904),i=e.i(202917),n=e.i(146025),a=e.i(876352),s=e.i(449995);e.i(957562);var o=e.i(191248),l=e.i(56206),c=e.i(430898),d=e.i(934854),u=e.i(993175);let h={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1};var p=e.i(572353);let m=({bg:e,children:r})=>t.createElement("div",{style:{width:"100%",height:"100%",background:e}},r);function f(e,t){return Object.keys(e).map(r=>{let i=parseFloat(r),n=`${Math.floor(i*t)}%`;return`${e[r]} ${n}`})}let g=t.forwardRef((e,r)=>{let{prefixCls:i,color:n,gradientId:a,radius:s,className:o,style:c,ptg:d,strokeLinecap:u,strokeWidth:h,size:p,gapDegree:g}=e,y=n&&"object"==typeof n,x=p/2,v=t.createElement("circle",{className:(0,l.clsx)(`${i}-circle-path`,o),r:s,cx:x,cy:x,stroke:y?"#FFF":void 0,strokeLinecap:u,strokeWidth:h,opacity:+(0!==d),style:c,ref:r});if(!y)return v;let b=`${a}-conic`,$=g?`${180+g/2}deg`:"0deg",S=f(n,(360-g)/360),C=f(n,1),R=`conic-gradient(from ${$}, ${S.join(", ")})`,k=`linear-gradient(to ${g?"bottom":"top"}, ${C.join(", ")})`;return t.createElement(t.Fragment,null,t.createElement("mask",{id:b},v),t.createElement("foreignObject",{x:0,y:0,width:p,height:p,mask:`url(#${b})`},t.createElement(m,{bg:k},t.createElement(m,{bg:R}))))}),y=(e,t,r,i,n,a,s,o,l,c,d=0)=>{let u=(100-i)/100*t;return"round"===l&&100!==i&&(u+=c/2)>=t&&(u=t-.01),{stroke:"string"==typeof o?o:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:u+d,transform:`rotate(${n+r/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[s])}deg)`,transformOrigin:"50px 50px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};function x(){return(x=Object.assign.bind()).apply(this,arguments)}function v(e){let t=e??[];return Array.isArray(t)?t:[t]}var b=e=>{let r,i,n,a,s,o,{id:c,prefixCls:d,classNames:u={},styles:m={},steps:f,strokeWidth:b,railWidth:$,gapDegree:S=0,gapPosition:C,railColor:R,strokeLinecap:k,style:E,className:w,strokeColor:j,percent:T,loading:I,...N}={...h,...e},Q=(0,p.default)(c),M=`${Q}-gradient`,z=50-b/2,O=2*Math.PI*z,D=S>0?90+S/2:-90,F=(360-S)/360*O,{count:L,gap:B}="object"==typeof f?f:{count:f,gap:2},A=v(T),P=v(j),W=P.find(e=>e&&"object"==typeof e),H=W&&"object"==typeof W?"butt":k,{indeterminateStyleProps:q,indeterminateStyleAnimation:G}=(({id:e,loading:r})=>{if(!r)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let i=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${i} 1s linear infinite`},indeterminateStyleAnimation:t.default.createElement("style",null,`@keyframes ${i} {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}`)}})({id:Q,loading:I}),_=y(O,F,0,100,D,S,C,R,H,b),X=(r=(0,t.useRef)([]),i=(0,t.useRef)(null),(0,t.useEffect)(()=>{let e=Date.now(),t=!1;r.current.forEach(r=>{if(!r)return;t=!0;let n=r.style;n.transitionDuration=".3s, .3s, .3s, .06s",i.current&&e-i.current<100&&(n.transitionDuration="0s, 0s")}),t&&(i.current=Date.now())}),r.current);return t.createElement("svg",x({className:(0,l.clsx)(`${d}-circle`,u.root,w),viewBox:"0 0 100 100",style:{...m.root,...E},id:c,role:"presentation"},N),!L&&t.createElement("circle",{className:(0,l.clsx)(`${d}-circle-rail`,u.rail),r:z,cx:50,cy:50,stroke:R,strokeLinecap:H,strokeWidth:$||b,style:{..._,...m.rail}}),L?(n=Math.round(L*(A[0]/100)),a=100/L,s=0,Array(L).fill(null).map((e,r)=>{let i=r<=n-1?P[0]:R,o=i&&"object"==typeof i?`url(#${M})`:void 0,c=y(O,F,s,a,D,S,C,i,"butt",b,B);return s+=(F-c.strokeDashoffset+B)*100/F,t.createElement("circle",{key:r,className:(0,l.clsx)(`${d}-circle-path`,u.track),r:z,cx:50,cy:50,stroke:o,strokeWidth:b,opacity:1,style:{...c,...m.track},ref:e=>{X[r]=e}})})):(o=0,A.map((e,r)=>{let i=P[r]||P[P.length-1],n=y(O,F,o,e,D,S,C,i,H,b);return o+=e,t.createElement(g,{key:r,color:i,ptg:e,radius:z,prefixCls:d,gradientId:M,className:u.track,style:{...n,...q,...m.track},strokeLinecap:H,strokeWidth:b,gapDegree:S,ref:e=>{X[r]=e},size:100})}).reverse()),G)},$=e.i(188304);e.i(797652);var S=e.i(435187);function C(e){return!e||e<0?0:e>100?100:e}function R({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}let k=(e,t,r)=>{let i=-1,n=-1;if("step"===t){let t=r.steps,a=r.strokeWidth;"string"==typeof e||void 0===e?(i="small"===e?2:14,n=a??8):(0,d.isNumber)(e)?[i,n]=[e,e]:[i=14,n=8]=Array.isArray(e)?e:[e.width,e.height],i*=t}else if("line"===t){let t=r?.strokeWidth;"string"==typeof e||void 0===e?n=t||("small"===e?6:8):(0,d.isNumber)(e)?[i,n]=[e,e]:[i=-1,n=8]=Array.isArray(e)?e:[e.width,e.height]}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[i,n]="small"===e?[60,60]:[120,120]:(0,d.isNumber)(e)?[i,n]=[e,e]:Array.isArray(e)&&(i=e[0]??e[1]??120,n=e[0]??e[1]??120));return[i,n]},E=["root","body","indicator"];var w=e=>{let{prefixCls:r,classNames:i,styles:n,railColor:a,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:h,gapDegree:p,width:m=120,type:f,children:g,success:y,size:x=m,steps:v}=e,{direction:w}=(0,u.useComponentConfig)("progress"),[j,T]=k(x,"circle"),{strokeWidth:I}=e;void 0===I&&(I=Math.max(3/j*100,6));let N=t.useMemo(()=>p||0===p?p:"dashboard"===f?75:void 0,[p,f]),Q=(({percent:e,success:t})=>{let r=C(R({success:t}));return[r,C(C(e)-r)]})(e),M=t.useMemo(()=>{let e=(h??d)||"dashboard"===f&&"bottom"||void 0,t="rtl"===w;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[w,h,d,f]),z="[object Object]"===Object.prototype.toString.call(e.strokeColor),O=(({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||S.presetPrimaryColors.green,t||null]})({success:y,strokeColor:e.strokeColor}),D=(0,l.clsx)(`${r}-body`,{[`${r}-circle-gradient`]:z},i.body),F=t.createElement(b,{steps:v,percent:v?Q[1]:Q,strokeWidth:I,railWidth:I,strokeColor:v?O[1]:O,strokeLinecap:c,railColor:a??s,prefixCls:r,gapDegree:N,gapPosition:M,classNames:(0,o.omit)(i,E),styles:(0,o.omit)(n,E)}),L=j<=20,B=t.createElement("div",{className:D,style:{width:j,height:T,fontSize:.15*j+6,...n.body}},F,!L&&g);return L?t.createElement($.default,{title:g},B):B};e.i(290586);var j=e.i(456161),T=e.i(307441),I=e.i(352050),N=e.i(104616);let Q="--progress-line-stroke-color";var M=(0,I.genStyleHooks)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=(0,N.mergeToken)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{...(0,T.resetComponent)(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}})(r),(e=>{var t;let r,{componentCls:i}=e;return{[`${i}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${i}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${i}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${i}-status-active`]:{[`${i}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:(r=t?"100%":"-100%",new j.Keyframes(`antProgress${t?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${r}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${r}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${i}-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}},[`&${i}-status-exception`]:{[`${i}-track`]:{background:e.colorError}},[`&${i}-status-success`]:{[`${i}-track`]:{background:e.colorSuccess}},[`${i}-indicator-outer`]:{[`&${i}-indicator-start`]:{order:-1}},[`${i}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${i}-indicator${i}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${i}-indicator-end`]:{justifyContent:"end"},[`&${i}-indicator-start`]:{justifyContent:"start"},[`&${i}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}})(r),(e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${r}`]:{fontSize:e.fontSizeSM}}}})(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),z=e=>{let{prefixCls:r,classNames:i,styles:n,direction:a,percent:s,size:o,strokeWidth:c,strokeColor:d,strokeLinecap:u="round",children:h,railColor:p,trailColor:m,percentPosition:f,success:g}=e,{align:y,type:x}=f,v="square"===u||"butt"===u?0:void 0,[b,$]=k(o??[-1,c||("small"===o?6:8)],"line",{strokeWidth:c}),E=`${r}-track`,w=d&&"string"!=typeof d?((e,t)=>{let{from:r=S.presetPrimaryColors.blue,to:i=S.presetPrimaryColors.blue,direction:n="rtl"===t?"to left":"to right",...a}=e;if(0!==Object.keys(a).length){let e,t=(e=[],Object.keys(a).forEach(t=>{let r=Number.parseFloat(t.replace(/%/g,""));Number.isNaN(r)||e.push({key:r,value:a[t]})}),(e=e.sort((e,t)=>e.key-t.key)).map(({key:e,value:t})=>`${t} ${e}%`).join(", ")),r=`linear-gradient(${n}, ${t})`;return{background:r,[Q]:r}}let s=`linear-gradient(${n}, ${r}, ${i})`;return{background:s,[Q]:s}})(d,a):{[Q]:d,background:d},j={width:`${C(s)}%`,height:$,borderRadius:v,...w},T=R(e),I={width:`${C(T)}%`,height:$,borderRadius:v,backgroundColor:g?.strokeColor};return t.createElement("div",{className:(0,l.clsx)(`${r}-body`,i.body,{[`${r}-body-layout-bottom`]:"center"===y&&"outer"===x}),style:{width:b>0?b:"100%",...n.body}},t.createElement("div",{className:(0,l.clsx)(`${r}-rail`,i.rail),style:{backgroundColor:(p??m)||void 0,borderRadius:v,height:$,...n.rail}},t.createElement("div",{className:(0,l.clsx)(E,i.track),style:{...j,...n.track}},"inner"===x&&h),void 0!==T&&t.createElement("div",{className:(0,l.clsx)(E,`${E}-success`,i.track),style:{...I,...n.track}})),"outer"===x&&h)},O=e=>{let{classNames:r,styles:i,size:n,steps:a,rounding:s=Math.round,percent:o=0,strokeWidth:c=8,strokeColor:d,railColor:u,trailColor:h,prefixCls:p,children:m}=e,f=s(o/100*a),[g,y]=k(n??["small"===n?2:14,c],"step",{steps:a,strokeWidth:c}),x=g/a,v=Array.from({length:a}),b=u??h;for(let e=0;e<a;e++){let n=Array.isArray(d)?d[e]:d;v[e]=t.createElement("div",{key:e,className:(0,l.clsx)(`${p}-steps-item`,{[`${p}-steps-item-active`]:e<=f-1},r.track),style:{backgroundColor:e<=f-1?n:b,width:x,height:y,...i.track}})}return t.createElement("div",{className:(0,l.clsx)(`${p}-steps-body`,r.body),style:i.body},v,m)};let D=["normal","exception","active","success"],F=t.forwardRef((e,h)=>{let p,{prefixCls:m,className:f,rootClassName:g,classNames:y,styles:x,steps:v,strokeColor:b,percent:$=0,size:S="medium",showInfo:E=!0,type:j="line",status:T,format:I,style:N,percentPosition:Q={},...F}=e,{align:L="end",type:B="outer"}=Q,A=Array.isArray(b)?b[0]:b,P="string"==typeof b||Array.isArray(b)?b:void 0,W=t.useMemo(()=>{if(A){let e="string"==typeof A?A:Object.values(A)[0];return new r.FastColor(e).isLight()}return!1},[b]),H=t.useMemo(()=>{let t=R(e);return Number.parseInt(void 0!==t?(t??0)?.toString():($??0)?.toString(),10)},[$,e.success]),q=t.useMemo(()=>!D.includes(T)&&H>=100?"success":T||"normal",[T,H]),{getPrefixCls:G,direction:_,className:X,style:U,classNames:V,styles:K}=(0,u.useComponentConfig)("progress"),Y=G("progress",m),[J,Z]=M(Y),ee={...e,percent:$,type:j,size:S,showInfo:E,percentPosition:Q},[et,er]=(0,c.useMergeSemantic)([V,y],[K,x],{props:ee}),ei="line"===j,en=ei&&!v,ea=t.useMemo(()=>{let r;if(!E)return null;let o=R(e),c=I||(e=>`${e}%`),d=ei&&W&&"inner"===B;return"inner"===B||I||"exception"!==q&&"success"!==q?r=c(C($),C(o)):"exception"===q?r=ei?t.createElement(a.default,null):t.createElement(s.default,null):"success"===q&&(r=ei?t.createElement(i.default,null):t.createElement(n.default,null)),t.createElement("span",{className:(0,l.clsx)(`${Y}-indicator`,{[`${Y}-indicator-bright`]:d,[`${Y}-indicator-${L}`]:en,[`${Y}-indicator-${B}`]:en},et.indicator),style:er.indicator,title:"string"==typeof r?r:void 0},r)},[E,$,H,q,j,Y,I,ei,W,B,L,en,et.indicator,er.indicator]),es={...e,classNames:et,styles:er};"line"===j?p=v?t.createElement(O,{...es,strokeColor:P,prefixCls:Y,steps:(0,d.isPlainObject)(v)?v.count:v},ea):t.createElement(z,{...es,strokeColor:A,prefixCls:Y,direction:_,percentPosition:{align:L,type:B}},ea):("circle"===j||"dashboard"===j)&&(p=t.createElement(w,{...es,strokeColor:A,prefixCls:Y,progressStatus:q},ea));let eo=(0,l.clsx)(Y,`${Y}-status-${q}`,{[`${Y}-${"dashboard"===j&&"circle"||j}`]:"line"!==j,[`${Y}-inline-circle`]:"circle"===j&&k(S,"circle")[0]<=20,[`${Y}-line`]:en,[`${Y}-line-align-${L}`]:en,[`${Y}-line-position-${B}`]:en,[`${Y}-steps`]:v,[`${Y}-show-info`]:E,[`${Y}-small`]:"small"===S,[`${Y}-rtl`]:"rtl"===_},X,f,g,et.root,J,Z);return t.createElement("div",{ref:h,style:{...U,...er.root,...N},className:eo,role:"progressbar","aria-valuenow":H,"aria-valuemin":0,"aria-valuemax":100,...(0,o.omit)(F,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},p)});e.s(["default",()=>F],461550)},678485,e=>{"use strict";var t=e.i(191788);e.i(957562);var r=e.i(27593),i=e.i(663032),n=e.i(624200),a=e.i(56206),s=e.i(430898),o=e.i(993175),l=e.i(106422),c=e.i(934854),d=e=>{let r,{value:i,formatter:n,precision:a,decimalSeparator:s,groupSeparator:o="",prefixCls:l}=e;if("function"==typeof n)r=n(i);else{let e=String(i),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){let e=n[1],i=n[2]||"0",d=n[4]||"";i=i.replace(/\B(?=(\d{3})+(?!\d))/g,o),(0,c.isNumber)(a)&&(d=d.padEnd(a,"0").slice(0,a>0?a:0)),d&&(d=`${s}${d}`),r=[t.createElement("span",{key:"int",className:`${l}-content-value-int`},e,i),d&&t.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},d)]}else r=e}return t.createElement("span",{className:`${l}-content-value`},r)},u=e.i(307441),h=e.i(352050),p=e.i(104616),m=(0,h.genStyleHooks)("Statistic",e=>(e=>{let{componentCls:t,marginXXS:r,padding:i,colorTextDescription:n,titleFontSize:a,colorTextHeading:s,contentFontSize:o,fontFamily:l}=e;return{[t]:{...(0,u.resetComponent)(e),[`${t}-header`]:{paddingBottom:r,[`${t}-title`]:{color:n,fontSize:a}},[`${t}-skeleton`]:{paddingTop:i},[`${t}-content`]:{color:s,fontSize:o,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:r},[`${t}-content-suffix`]:{marginInlineStart:r}}}}})((0,p.mergeToken)(e,{})),e=>{let{fontSizeHeading3:t,fontSize:r}=e;return{titleFontSize:r,contentFontSize:t}});let f=t.forwardRef((e,r)=>{let{prefixCls:i,className:c,rootClassName:u,style:h,valueStyle:p,value:f=0,title:g,valueRender:y,prefix:x,suffix:v,loading:b=!1,formatter:$,precision:S,decimalSeparator:C=".",groupSeparator:R=",",onMouseEnter:k,onMouseLeave:E,styles:w,classNames:j,...T}=e,{getPrefixCls:I,direction:N,className:Q,style:M,classNames:z,styles:O}=(0,o.useComponentConfig)("statistic"),D=I("statistic",i),[F,L]=m(D),B={...e,decimalSeparator:C,groupSeparator:R,loading:b,value:f},[A,P]=(0,s.useMergeSemantic)([z,j],[O,w],{props:B}),W=t.createElement(d,{decimalSeparator:C,groupSeparator:R,prefixCls:D,formatter:$,precision:S,value:f}),H=(0,a.clsx)(D,{[`${D}-rtl`]:"rtl"===N},Q,c,u,A.root,F,L),q=(0,a.clsx)(`${D}-header`,A.header),G=(0,a.clsx)(`${D}-title`,A.title),_=(0,a.clsx)(`${D}-content`,A.content),X=(0,a.clsx)(`${D}-content-prefix`,A.prefix),U=(0,a.clsx)(`${D}-content-suffix`,A.suffix),V=t.useRef(null);t.useImperativeHandle(r,()=>({nativeElement:V.current}));let K=(0,n.default)(T,{aria:!0,data:!0});return t.createElement("div",{...K,className:H,style:{...P.root,...M,...h},ref:V,onMouseEnter:k,onMouseLeave:E},g&&t.createElement("div",{className:q,style:P.header},t.createElement("div",{className:G,style:P.title},g)),t.createElement(l.default,{paragraph:!1,loading:b,className:`${D}-skeleton`,active:!0},t.createElement("div",{className:_,style:{...p,...P.content}},x&&t.createElement("span",{className:X,style:P.prefix},x),"function"==typeof y?y(W):W,v&&t.createElement("span",{className:U,style:P.suffix},v))))}),g=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],y=1e3/60;var x=e=>{let{value:n,format:a="HH:mm:ss",onChange:s,onFinish:o,type:l,...c}=e,d="countdown"===l,[u,h]=t.useState(null),p=(0,r.useEvent)(()=>{let e=Date.now(),t=new Date(n).getTime();h({});let r=d?t-e:e-t;return s?.(r),!d||!(t<e)||(o?.(),!1)});return t.useEffect(()=>{let e;return e=window.setInterval(()=>{p()||window.clearInterval(e)},y),()=>{window.clearInterval(e)}},[n,d]),t.useEffect(()=>{h({})},[]),t.createElement(f,{...c,value:n,valueRender:e=>(0,i.cloneElement)(e,{title:void 0}),formatter:(e,t)=>u?function(e,t,r){let i,n,a,s,o,l,{format:c=""}=t,d=new Date(e).getTime(),u=Date.now();return i=r?Math.max(d-u,0):Math.max(u-d,0),n=/\[[^\]]*]/g,a=(c.match(n)||[]).map(e=>e.slice(1,-1)),s=c.replace(n,"[]"),o=g.reduce((e,[t,r])=>{if(e.includes(t)){let n=Math.floor(i/r);return i-=n*r,e.replace(RegExp(`${t}+`,"g"),e=>{let t=e.length;return n.toString().padStart(t,"0")})}return e},s),l=0,o.replace(n,()=>{let e=a[l];return l+=1,e})}(e,{...t,format:a},d):"-"})},v=t.memo(e=>t.createElement(x,{...e,type:"countdown"}));f.Timer=x,f.Countdown=v,e.s(["Statistic",()=>f],678485)},727168,e=>{e.v(e=>Promise.resolve().then(()=>e(730943)))},770829,e=>{e.v(e=>Promise.resolve().then(()=>e(681912)))},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},946077,e=>{"use strict";var t=e.i(191788);e.i(957562);var r=e.i(191248),i=e.i(531983),n=e.i(56206),a=e.i(430898),s=e.i(993175),o=e.i(625263),l=e.i(536995),c=e.i(106422),d=e.i(267226),u=({prefixCls:e,className:r,hoverable:i=!0,...a})=>{let{getPrefixCls:o}=t.useContext(s.ConfigContext),l=o("card",e),c=(0,n.clsx)(`${l}-grid`,r,{[`${l}-grid-hoverable`]:i});return t.createElement("div",{...a,className:c})};e.i(290586);var h=e.i(774778),p=e.i(307441),m=e.i(352050),f=e.i(104616),g=(0,m.genStyleHooks)("Card",e=>{let t=(0,f.mergeToken)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[(e=>{let{componentCls:t,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:n,boxShadowTertiary:a,bodyPadding:s,extraColor:o,motionDurationMid:l}=e;return{[t]:{...(0,p.resetComponent)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:(e=>{let{antCls:t,componentCls:r,headerHeight:i,headerPadding:n,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${(0,h.unit)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)} 0 0`,...(0,p.clearFix)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...p.textEllipsis,[`
> ${r}-typography,
> ${r}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:s,borderRadius:`0 0 ${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:(e=>{let{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:i,lineWidth:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${(0,h.unit)(n)} 0 0 0 ${r},
0 ${(0,h.unit)(n)} 0 0 ${r},
${(0,h.unit)(n)} ${(0,h.unit)(n)} 0 0 ${r},
${(0,h.unit)(n)} 0 0 0 ${r} inset,
0 ${(0,h.unit)(n)} 0 0 ${r} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:i}}})(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:r,actionsLiMargin:i,cardActionsIconSize:n,colorBorderSecondary:a,actionsBg:s}=e;return{margin:0,padding:0,listStyle:"none",background:s,borderTop:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)}`,...(0,p.clearFix)(),"& > li":{margin:i,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,h.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:n,lineHeight:(0,h.unit)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${a}`}}}})(e),[`${t}-meta`]:{margin:`${(0,h.unit)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,p.clearFix)(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...p.textEllipsis},"&-description":{color:e.colorTextDescription}}},[`${t}-bordered`]:{border:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${n}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${l}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:i}}},[`${t}-type-inner`]:(e=>{let{componentCls:t,colorFillAlter:r,headerPadding:i,bodyPadding:n}=e;return{[`${t}-head`]:{padding:`0 ${(0,h.unit)(i)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,h.unit)(e.padding)} ${(0,h.unit)(n)}`}}})(e),[`${t}-loading`]:(e=>{let{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}})(e),[`${t}-rtl`]:{direction:"rtl"}}})(t),(e=>{let{componentCls:t,bodyPaddingSM:r,headerPaddingSM:i,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${(0,h.unit)(i)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}})(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}));let y=e=>{let{actionClasses:r,actions:i=[],actionStyle:n}=e;return t.createElement("ul",{className:r,style:n},i.map((e,r)=>{let n=`action-${r}`;return t.createElement("li",{style:{width:`${100/i.length}%`},key:n},t.createElement("span",null,e))}))},x=t.forwardRef((e,h)=>{let p,{prefixCls:m,className:f,rootClassName:x,style:v,extra:b,headStyle:$={},bodyStyle:S={},title:C,loading:R,bordered:k,variant:E,size:w,type:j,cover:T,actions:I,tabList:N,children:Q,activeTabKey:M,defaultActiveTabKey:z,tabBarExtraContent:O,hoverable:D,tabProps:F={},classNames:L,styles:B,...A}=e,{getPrefixCls:P,direction:W,className:H,style:q,classNames:G,styles:_}=(0,s.useComponentConfig)("card"),[X]=(0,l.default)("card",E,k),U=(0,o.default)(w),V={...e,size:U,variant:X},[K,Y]=(0,a.useMergeSemantic)([G,L],[_,B],{props:V}),J=t.useMemo(()=>(0,i.toArray)(Q),[Q]),Z=t.useMemo(()=>J.some(e=>t.isValidElement(e)&&e.type===u),[J]),ee=P("card",m),[et,er]=g(ee),ei=t.createElement(c.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Q),en=void 0!==M,ea={...F,[en?"activeKey":"defaultActiveKey"]:en?M:z,tabBarExtraContent:O},es=N?t.createElement(d.default,{size:"small"!==U?"large":U,...ea,className:`${ee}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:N.map(({tab:e,...t})=>({label:e,...t}))}):null;if(C||b||es){let e=(0,n.clsx)(`${ee}-head`,K.header),r=(0,n.clsx)(`${ee}-head-title`,K.title),i=(0,n.clsx)(`${ee}-extra`,K.extra),a={...$,...Y.header};p=t.createElement("div",{className:e,style:a},t.createElement("div",{className:`${ee}-head-wrapper`},C&&t.createElement("div",{className:r,style:Y.title},C),b&&t.createElement("div",{className:i,style:Y.extra},b)),es)}let eo=(0,n.clsx)(`${ee}-cover`,K.cover),el=T?t.createElement("div",{className:eo,style:Y.cover},T):null,ec=(0,n.clsx)(`${ee}-body`,K.body),ed={...S,...Y.body},eu=R||J.length?t.createElement("div",{className:ec,style:ed},R?ei:Q):null,eh=(0,n.clsx)(`${ee}-actions`,K.actions),ep=I?.length?t.createElement(y,{actionClasses:eh,actionStyle:Y.actions,actions:I}):null,em=(0,r.omit)(A,["onTabChange"]),ef=(0,n.clsx)(ee,H,{[`${ee}-loading`]:R,[`${ee}-bordered`]:"borderless"!==X,[`${ee}-hoverable`]:D,[`${ee}-contain-grid`]:Z,[`${ee}-contain-tabs`]:N?.length,[`${ee}-small`]:"small"===U,[`${ee}-type-${j}`]:!!j,[`${ee}-rtl`]:"rtl"===W},f,x,et,er,K.root),eg={...Y.root,...q,...v};return t.createElement("div",{ref:h,...em,className:ef,style:eg},p,el,eu,ep)});x.Grid=u,x.Meta=e=>{let{prefixCls:r,className:i,avatar:o,title:l,description:c,style:d,classNames:u,styles:h,...p}=e,{getPrefixCls:m,className:f,style:g,classNames:y,styles:x}=(0,s.useComponentConfig)("cardMeta"),v=m("card",r),b=`${v}-meta`,[$,S]=(0,a.useMergeSemantic)([y,u],[x,h],{props:e}),C=(0,n.clsx)(b,i,f,$.root),R={...g,...S.root,...d},k=(0,n.clsx)(`${b}-avatar`,$.avatar),E=(0,n.clsx)(`${b}-title`,$.title),w=(0,n.clsx)(`${b}-description`,$.description),j=(0,n.clsx)(`${b}-section`,$.section),T=o?t.createElement("div",{className:k,style:S.avatar},o):null,I=l?t.createElement("div",{className:E,style:S.title},l):null,N=c?t.createElement("div",{className:w,style:S.description},c):null,Q=I||N?t.createElement("div",{className:j,style:S.section},I,N):null;return t.createElement("div",{...p,className:C,style:R},T,Q)},e.s(["Card",()=>x],946077)}]);