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.
NewEduCoderBuild/75602.async.js

1 line
20 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[75602,29703,60736,98392,98671,76490,95107,50415,51526,30981,60857,51595,51821,31131,59977,85804],{15277:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(72308),r=n(59301),l={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=n(7657),s=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:l}))};var i=r.forwardRef(s)},12893:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(72308),r=n(59301),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:l}))};var i=r.forwardRef(s)},32134:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(72308),r=n(59301),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:l}))};var i=r.forwardRef(s)},56762:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(59301);function r(){const[,e]=o.useReducer((e=>e+1),0);return e}},88522:function(e,t,n){var o=n(92310),r=n.n(o),l=n(11592),a=n(2738),s=n(59301),i=n(53487),c=n(92343),u=n(36355),p=n(57809);const{Option:d}=p.default;function m(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const f=(e,t)=>{const{prefixCls:n,className:o,popupClassName:i,dropdownClassName:f,children:v,dataSource:g}=e,y=(0,l.Z)(v);let b;1===y.length&&(0,c.l$)(y[0])&&!m(y[0])&&([b]=y);const C=b?()=>b:void 0;let O;O=y.length&&m(y[0])?v:g?g.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return s.createElement(d,{key:e,value:e},e);case"object":{const{value:t}=e;return s.createElement(d,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:h}=s.useContext(u.E_),x=h("select",n);return s.createElement(p.default,Object.assign({ref:t,suffixIcon:null},(0,a.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:x,popupClassName:i||f,className:r()(`${x}-auto-complete`,o),mode:p.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:C}),O)},v=s.forwardRef(f),g=(0,i.Z)(v);v.Option=d,v._InternalPanelDoNotUseOrYouWillBeFired=g,t.Z=v},38854:function(e,t,n){n.d(t,{Z:function(){return y}});var o=n(91857),r=n(92310),l=n.n(r),a=n(59301),s=n(18785),i=n(3113),c=n(36355),u=n(81327),p=n(33234),d=n(47211),m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const f=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=a.useContext(c.E_),{prefixCls:f,type:v="default",danger:g,disabled:y,loading:b,onClick:C,htmlType:O,children:h,className:x,menu:E,arrow:w,autoFocus:N,overlay:S,trigger:$,align:Z,open:P,onOpenChange:j,placement:z,getPopupContainer:M,href:I,icon:k=a.createElement(s.Z,null),title:_,buttonsRender:R=(e=>e),mouseEnterDelay:D,mouseLeaveDelay:T,overlayClassName:B,overlayStyle:F,destroyPopupOnHide:H,dropdownRender:L}=e,A=m(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),W=n("dropdown",f),U=`${W}-button`,[X,G]=(0,d.Z)(W),Q={menu:E,arrow:w,autoFocus:N,align:Z,disabled:y,trigger:y?[]:$,onOpenChange:j,getPopupContainer:M||t,mouseEnterDelay:D,mouseLeaveDelay:T,overlayClassName:B,overlayStyle:F,destroyPopupOnHide:H,dropdownRender:L},{compactSize:q,compactItemClassnames:V}=(0,p.ri)(W,r),Y=l()(U,V,x,G);"overlay"in e&&(Q.overlay=S),"open"in e&&(Q.open=P),Q.placement="placement"in e?z:"rtl"===r?"bottomLeft":"bottomRight";const J=a.createElement(i.ZP,{type:v,danger:g,disabled:y,loading:b,onClick:C,htmlType:O,href:I,title:_},h),K=a.createElement(i.ZP,{type:v,danger:g,icon:k}),[ee,te]=R([J,K]);return X(a.createElement(u.Z.Compact,Object.assign({className:Y,size:q,block:!0},A),ee,a.createElement(o.Z,Object.assign({},Q),te)))};f.__ANT_BUTTON=!0;var v=f;const g=o.Z;g.Button=v;var y=g},10249:function(e,t,n){n.d(t,{Z:function(){return I}});var o=n(92310),r=n.n(o),l=n(59301),a=n(36355),s=n(32441),i=n(9937);var c=e=>{const{getPrefixCls:t,direction:n}=(0,l.useContext)(a.E_),{prefixCls:o,className:c}=e,u=t("input-group",o),p=t("input"),[d,m]=(0,i.ZP)(p),f=r()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},m,c),v=(0,l.useContext)(s.aM),g=(0,l.useMemo)((()=>Object.assign(Object.assign({},v),{isFormItemInput:!1})),[v]);return d(l.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(s.aM.Provider,{value:g},e.children)))},u=n(9432),p=n(72308),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},m=n(7657),f=function(e,t){return l.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:d}))};var v=l.forwardRef(f),g=n(15277),y=n(2738),b=n(8654),C=n(59412),O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const h=e=>e?l.createElement(g.Z,null):l.createElement(v,null),x={click:"onClick",hover:"onMouseOver"};var E=l.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[s,i]=(0,l.useState)((()=>!!o&&n.visible)),c=(0,l.useRef)(null);l.useEffect((()=>{o&&i(n.visible)}),[o,n]);const p=(0,C.Z)(c),d=()=>{const{disabled:t}=e;t||(s&&p(),i((e=>{var t;const o=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,o)),o})))},{className:m,prefixCls:f,inputPrefixCls:v,size:g}=e,E=O(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=l.useContext(a.E_),N=w("input",v),S=w("input-password",f),$=n&&(t=>{const{action:n="click",iconRender:o=h}=e,r=x[n]||"",a=o(s),i={[r]:d,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return l.cloneElement(l.isValidElement(a)?a:l.createElement("span",null,a),i)})(S),Z=r()(S,m,{[`${S}-${g}`]:!!g}),P=Object.assign(Object.assign({},(0,y.Z)(E,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:Z,prefixCls:N,suffix:$});return g&&(P.size=g),l.createElement(u.Z,Object.assign({ref:(0,b.sQ)(t,c)},P))})),w=n(47472),N=n(92343),S=n(3113),$=n(19716),Z=n(33234),P=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var j=l.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:s,size:i,suffix:c,enterButton:p=!1,addonAfter:d,loading:m,disabled:f,onSearch:v,onChange:g,onCompositionStart:y,onCompositionEnd:C}=e,O=P(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:x}=l.useContext(a.E_),E=l.useRef(!1),j=h("input-search",n),z=h("input",o),{compactSize:M}=(0,Z.ri)(j,x),I=(0,$.Z)((e=>{var t;return null!==(t=null!=i?i:M)&&void 0!==t?t:e})),k=l.useRef(null),_=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},R=e=>{var t,n;v&&v(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},D="boolean"==typeof p?l.createElement(w.Z,null):null,T=`${j}-button`;let B;const F=p||{},H=F.type&&!0===F.type.__ANT_BUTTON;B=H||"button"===F.type?(0,N.Tm)(F,Object.assign({onMouseDown:_,onClick:e=>{var t,n;null===(n=null===(t=null==F?void 0:F.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),R(e)},key:"enterButton"},H?{className:T,size:I}:{})):l.createElement(S.ZP,{className:T,type:p?"primary":void 0,size:I,disabled:f,key:"enterButton",onMouseDown:_,onClick:R,loading:m,icon:D},p),d&&(B=[B,(0,N.Tm)(d,{key:"addonAfter"})]);const L=r()(j,{[`${j}-rtl`]:"rtl"===x,[`${j}-${I}`]:!!I,[`${j}-with-button`]:!!p},s);return l.createElement(u.Z,Object.assign({ref:(0,b.sQ)(k,t),onPressEnter:e=>{E.current||m||R(e)}},O,{size:I,onCompositionStart:e=>{E.current=!0,null==y||y(e)},onCompositionEnd:e=>{E.current=!1,null==C||C(e)},prefixCls:z,addonAfter:B,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&v&&v(e.target.value,e,{source:"clear"}),g&&g(e)},className:L,disabled:f}))})),z=n(1643);const M=u.Z;M.Group=c,M.Search=j,M.TextArea=z.Z,M.Password=E;var I=M},57809:function(e,t,n){var o=n(92310),r=n.n(o),l=n(77861),a=n(2738),s=n(59301),i=n(53487),c=n(62892),u=n(19080),p=n(36355),d=n(1684),m=n(93891),f=n(19716),v=n(32441),g=n(33234),y=n(14154),b=n(58582),C=n(84443),O=n(66339),h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const x="SECRET_COMBOBOX_MODE_DO_NOT_USE",E=(e,t)=>{var n,{prefixCls:o,bordered:i=!0,className:E,rootClassName:w,getPopupContainer:N,popupClassName:S,dropdownClassName:$,listHeight:Z=256,placement:P,listItemHeight:j=24,size:z,disabled:M,notFoundContent:I,status:k,builtinPlacements:_,dropdownMatchSelectWidth:R,popupMatchSelectWidth:D,direction:T,style:B,allowClear:F}=e,H=h(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:L,getPrefixCls:A,renderEmpty:W,direction:U,virtual:X,popupMatchSelectWidth:G,popupOverflow:Q,select:q}=s.useContext(p.E_),V=A("select",o),Y=A(),J=null!=T?T:U,{compactSize:K,compactItemClassnames:ee}=(0,g.ri)(V,J),[te,ne]=(0,y.Z)(V),oe=s.useMemo((()=>{const{mode:e}=H;if("combobox"!==e)return e===x?"combobox":e}),[H.mode]),re="multiple"===oe||"tags"===oe,le=(0,C.Z)(H.suffixIcon,H.showArrow),ae=null!==(n=null!=D?D:R)&&void 0!==n?n:G,{status:se,hasFeedback:ie,isFormItemInput:ce,feedbackIcon:ue}=s.useContext(v.aM),pe=(0,u.F)(se,k);let de;de=void 0!==I?I:"combobox"===oe?null:(null==W?void 0:W("Select"))||s.createElement(m.Z,{componentName:"Select"});const{suffixIcon:me,itemIcon:fe,removeIcon:ve,clearIcon:ge}=(0,O.Z)(Object.assign(Object.assign({},H),{multiple:re,hasFeedback:ie,feedbackIcon:ue,showSuffixIcon:le,prefixCls:V,showArrow:H.showArrow,componentName:"Select"})),ye=!0===F?{clearIcon:ge}:F,be=(0,a.Z)(H,["suffixIcon","itemIcon"]),Ce=r()(S||$,{[`${V}-dropdown-${J}`]:"rtl"===J},w,ne),Oe=(0,f.Z)((e=>{var t;return null!==(t=null!=z?z:K)&&void 0!==t?t:e})),he=s.useContext(d.Z),xe=null!=M?M:he,Ee=r()({[`${V}-lg`]:"large"===Oe,[`${V}-sm`]:"small"===Oe,[`${V}-rtl`]:"rtl"===J,[`${V}-borderless`]:!i,[`${V}-in-form-item`]:ce},(0,u.Z)(V,pe,ie),ee,null==q?void 0:q.className,E,w,ne),we=s.useMemo((()=>void 0!==P?P:"rtl"===J?"bottomRight":"bottomLeft"),[P,J]),Ne=(0,b.Z)(_,Q);return te(s.createElement(l.ZP,Object.assign({ref:t,virtual:X,showSearch:null==q?void 0:q.showSearch},be,{style:Object.assign(Object.assign({},null==q?void 0:q.style),B),dropdownMatchSelectWidth:ae,builtinPlacements:Ne,transitionName:(0,c.m)(Y,"slide-up",H.transitionName),listHeight:Z,listItemHeight:j,mode:oe,prefixCls:V,placement:we,direction:J,suffixIcon:me,menuItemSelectedIcon:fe,removeIcon:ve,allowClear:ye,notFoundContent:de,className:Ee,getPopupContainer:N||L,dropdownClassName:Ce,disabled:xe})))};const w=s.forwardRef(E),N=(0,i.Z)(w);w.SECRET_COMBOBOX_MODE_DO_NOT_USE=x,w.Option=l.Wx,w.OptGroup=l.Xo,w._InternalPanelDoNotUseOrYouWillBeFired=N,t.default=w},81327:function(e,t,n){n.d(t,{Z:function(){return b}});var o=n(59301),r=n(92310),l=n.n(r),a=n(11592),s=n(36355),i=n(33234);const c=o.createContext({latestIndex:0}),u=c.Provider;var p=e=>{let{className:t,index:n,children:r,split:l,style:a}=e;const{latestIndex:s}=o.useContext(c);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<s&&l&&o.createElement("span",{className:`${t}-split`},l))},d=n(2856);function m(e){return["small","middle","large"].includes(e)}function f(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const g=o.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:i,space:c,direction:g}=o.useContext(s.E_),{size:y=(null==c?void 0:c.size)||"small",align:b,className:C,rootClassName:O,children:h,direction:x="horizontal",prefixCls:E,split:w,style:N,wrap:S=!1,classNames:$,styles:Z}=e,P=v(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[j,z]=Array.isArray(y)?y:[y,y],M=m(z),I=m(j),k=f(z),_=f(j),R=(0,a.Z)(h,{keepEmpty:!0}),D=void 0===b&&"horizontal"===x?"center":b,T=i("space",E),[B,F]=(0,d.Z)(T),H=l()(T,null==c?void 0:c.className,F,`${T}-${x}`,{[`${T}-rtl`]:"rtl"===g,[`${T}-align-${D}`]:D,[`${T}-gap-row-${z}`]:M,[`${T}-gap-col-${j}`]:I},C,O),L=l()(`${T}-item`,null!==(n=null==$?void 0:$.item)&&void 0!==n?n:null===(r=null==c?void 0:c.classNames)||void 0===r?void 0:r.item);let A=0;const W=R.map(((e,t)=>{var n,r;null!=e&&(A=t);const l=e&&e.key||`${L}-${t}`;return o.createElement(p,{className:L,key:l,index:t,split:w,style:null!==(n=null==Z?void 0:Z.item)&&void 0!==n?n:null===(r=null==c?void 0:c.styles)||void 0===r?void 0:r.item},e)})),U=o.useMemo((()=>({latestIndex:A})),[A]);if(0===R.length)return null;const X={};return S&&(X.flexWrap="wrap"),!I&&_&&(X.columnGap=j),!M&&k&&(X.rowGap=z),B(o.createElement("div",Object.assign({ref:t,className:H,style:Object.assign(Object.assign(Object.assign({},X),null==c?void 0:c.style),N)},P),o.createElement(u,{value:U},W)))}));const y=g;y.Compact=i.ZP;var b=y},31797:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(59301),r=n(56762),l=n(92343),a=n(92310),s=n.n(a),i=n(36355),c=n(61621);var u=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:l,groupSeparator:a="",prefixCls:s}=e;let i;if("function"==typeof n)i=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",c=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"==typeof r&&(c=c.padEnd(r,"0").slice(0,r>0?r:0)),c&&(c=`${l}${c}`),i=[o.createElement("span",{key:"int",className:`${s}-content-value-int`},e,t),c&&o.createElement("span",{key:"decimal",className:`${s}-content-value-decimal`},c)]}else i=e}return o.createElement("span",{className:`${s}-content-value`},i)},p=n(17313),d=n(83116),m=n(37613);const f=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,titleFontSize:l,colorTextHeading:a,contentFontSize:s,fontFamily:i}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:l},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:a,fontSize:s,fontFamily:i,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var v=(0,d.Z)("Statistic",(e=>{const t=(0,m.TS)(e,{});return[f(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var g=e=>{const{prefixCls:t,className:n,rootClassName:r,style:l,valueStyle:a,value:p=0,title:d,valueRender:m,prefix:f,suffix:g,loading:y=!1,onMouseEnter:b,onMouseLeave:C,decimalSeparator:O=".",groupSeparator:h=","}=e,{getPrefixCls:x,direction:E,statistic:w}=o.useContext(i.E_),N=x("statistic",t),[S,$]=v(N),Z=o.createElement(u,Object.assign({decimalSeparator:O,groupSeparator:h,prefixCls:N},e,{value:p})),P=s()(N,{[`${N}-rtl`]:"rtl"===E},null==w?void 0:w.className,n,r,$);return S(o.createElement("div",{className:P,style:Object.assign(Object.assign({},null==w?void 0:w.style),l),onMouseEnter:b,onMouseLeave:C},d&&o.createElement("div",{className:`${N}-title`},d),o.createElement(c.Z,{paragraph:!1,loading:y,className:`${N}-skeleton`},o.createElement("div",{style:a,className:`${N}-content`},f&&o.createElement("span",{className:`${N}-content-prefix`},f),m?m(Z):Z,g&&o.createElement("span",{className:`${N}-content-suffix`},g)))))};const y=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function b(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map((e=>e.slice(1,-1))),l=t.replace(o,"[]"),a=y.reduce(((e,t)=>{let[o,r]=t;if(e.includes(o)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${o}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),l);let s=0;return a.replace(o,(()=>{const e=r[s];return s+=1,e}))}(Math.max(o-r,0),n)}const C=e=>{const{value:t,format:n="HH:mm:ss",onChange:a,onFinish:s}=e,i=(0,r.Z)(),c=o.useRef(null),u=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{i(),null==a||a(e-Date.now()),e<Date.now()&&(null==s||s(),c.current&&(clearInterval(c.current),c.current=null))}),33.333333333333336))};o.useEffect((()=>(u(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return o.createElement(g,Object.assign({},e,{valueRender:e=>(0,l.Tm)(e,{title:void 0}),formatter:(e,t)=>b(e,Object.assign(Object.assign({},t),{format:n}))}))};var O=o.memo(C);g.Countdown=O;var h=g}}]);