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/83791.bcaf4e13.async.js

1 line
33 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[83791,79817],{680:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},37120:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},27666:function(e,t,n){var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];t=(0,r.Z)(n(o))}};return i.cancel=()=>{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(79545),r=n(68550),i=n(17928),a=n(7711),l=n(59301),c=n(92310),s=n.n(c),d=n(28647),p=n(55405),u=n(27666),f=n(36355),g=n(83116),m=n(37613);const h=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,g.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[h(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function $(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n){return n+(window.innerHeight-t.bottom)}}const y=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function C(){return"undefined"!=typeof window?window:null}var k;!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(k||(k={}));let S=function(e){(0,i.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).state={status:k.None,lastAffix:!1,prevTarget:null},e.placeholderNodeRef=(0,l.createRef)(),e.fixedNodeRef=(0,l.createRef)(),e.addListeners=()=>{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(y.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();y.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),a=e.getOffsetBottom(),l=r();if(l){const t={status:k.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const c=b(l),s=$(r,c,i),d=x(r,c,a);void 0!==s?(t.affixStyle={position:"fixed",top:s,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,u.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,u.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),a=b(e.placeholderNodeRef.current),l=$(a,t,o),c=x(a,t,r);if(void 0!==l&&n.top===l||void 0!==c&&n.bottom===c)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:C}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=s()(e&&o,{[n]:!!e});let a=(0,p.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(d.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},l.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(l.Component);S.contextType=f.E_;var E=(0,l.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,l.useContext)(f.E_),i=r("affix",n),[a,c]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:s()(o,c)});return a(l.createElement(S,Object.assign({},d,{ref:t})))}))},46400:function(e,t,n){n.d(t,{Z:function(){return z}});var o=n(80559),r=n(58670),i=n(51638),a=n(54745),l=n(31855),c=n(92310),s=n.n(c),d=n(43167),p=n(47413),u=n(59301),f=n(92343),g=n(36355),m=n(17313),h=n(83116);const v=(e,t,n,o,r)=>({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),b=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:d,colorText:p,colorTextHeading:u,withDescriptionPadding:f,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:u},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:u,fontSize:a},[`${t}-description`]:{display:"block",color:p}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},$=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:d,colorInfo:p,colorInfoBorder:u,colorInfoBg:f}=e;return{[t]:{"&-success":v(r,o,n,e,t),"&-info":v(f,u,p,e,t),"&-warning":v(l,a,i,e,t),"&-error":Object.assign(Object.assign({},v(d,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},x=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}},y=e=>[b(e),$(e),x(e)];var C=(0,h.Z)("Alert",(e=>[y(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),k=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 S={success:o.Z,info:l.Z,error:r.Z,warning:a.Z},E=e=>{const{icon:t,prefixCls:n,type:o}=e,r=S[o]||null;return t?(0,f.wm)(t,u.createElement("span",{className:`${n}-icon`},t),(()=>({className:s()(`${n}-icon`,{[t.props.className]:t.props.className})}))):u.createElement(r,{className:`${n}-icon`})},w=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r}=e,a=!0===o||void 0===o?u.createElement(i.Z,null):o;return t?u.createElement("button",{type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},a):null};var I=e=>{const{description:t,prefixCls:n,message:o,banner:r,className:i,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:f,onClick:m,afterClose:h,showIcon:v,closable:b,closeText:$,closeIcon:x,action:y}=e,S=k(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[I,P]=u.useState(!1);const N=u.useRef(null),{getPrefixCls:O,direction:Z,alert:B}=u.useContext(g.E_),T=O("alert",n),[j,z]=C(T),R=t=>{var n;P(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},M=u.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),L=u.useMemo((()=>!!$||("boolean"==typeof b?b:!1!==x&&null!=x)),[$,x,b]),A=!(!r||void 0!==v)||v,H=s()(T,`${T}-${M}`,{[`${T}-with-description`]:!!t,[`${T}-no-icon`]:!A,[`${T}-banner`]:!!r,[`${T}-rtl`]:"rtl"===Z},null==B?void 0:B.className,i,a,z),D=(0,p.Z)(S,{aria:!0,data:!0});return j(u.createElement(d.default,{visible:!I,motionName:`${T}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:h},(n=>{let{className:r,style:i}=n;return u.createElement("div",Object.assign({ref:N,"data-show":!I,className:s()(H,r),style:Object.assign(Object.assign(Object.assign({},null==B?void 0:B.style),l),i),onMouseEnter:c,onMouseLeave:f,onClick:m,role:"alert"},D),A?u.createElement(E,{description:t,icon:e.icon,prefixCls:T,type:M}):null,u.createElement("div",{className:`${T}-content`},o?u.createElement("div",{className:`${T}-message`},o):null,t?u.createElement("div",{className:`${T}-description`},t):null),y?u.createElement("div",{className:`${T}-action`},y):null,u.createElement(w,{isClosable:L,prefixCls:T,closeIcon:$||x,handleClose:R}))})))},P=n(79545),N=n(68550),O=n(17928),Z=n(7711);let B=function(e){(0,O.Z)(n,e);var t=(0,Z.Z)(n);function n(){var e;return(0,P.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,N.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:o,info:r}=this.state,i=r&&r.componentStack?r.componentStack:null,a=void 0===e?(o||"").toString():e,l=void 0===t?i:t;return o?u.createElement(I,{type:"error",message:a,description:u.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):n}}]),n}(u.Component);var T=B;const j=I;j.ErrorBoundary=T;var z=j},79817:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(26390),r=n(92310),i=n.n(r),a=n(83794),l=n(59301),c=n(6774),s=n(13845),d=n(68031),p=n(81228),u=n(36355);var f=l.createContext(void 0);var g=e=>{const{href:t,title:n,prefixCls:o,children:r,className:a,target:c,replace:s}=e,d=l.useContext(f),{registerLink:p,unregisterLink:g,scrollTo:m,onClick:h,activeLink:v,direction:b}=d||{};l.useEffect((()=>(null==p||p(t),()=>{null==g||g(t)})),[t]);const{getPrefixCls:$}=l.useContext(u.E_),x=$("anchor",o),y=v===t,C=i()(`${x}-link`,a,{[`${x}-link-active`]:y}),k=i()(`${x}-link-title`,{[`${x}-link-title-active`]:y});return l.createElement("div",{className:C},l.createElement("a",{className:k,href:t,title:"string"==typeof n?n:"",target:c,onClick:e=>{s&&(e.preventDefault(),window.location.replace(t)),null==h||h(e,{title:n,href:t}),null==m||m(t)}},n),"horizontal"!==b?r:null)},m=n(17313),h=n(83116),v=n(37613);const b=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:a,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},m.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${r}px ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},$=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}};var x=(0,h.Z)("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o}=e,r=(0,v.TS)(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:o/2,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[b(r),$(r)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function y(){return window}function C(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const k=/#([\S ]+)$/,S=e=>{var t;const{rootClassName:n,anchorPrefixCls:r,className:m,style:h,offsetTop:v,affix:b=!0,showInkInFixed:$=!1,children:x,items:S,direction:E="vertical",bounds:w,targetOffset:I,onClick:P,onChange:N,getContainer:O,getCurrentAnchor:Z,replace:B}=e;const[T,j]=l.useState([]),[z,R]=l.useState(null),M=l.useRef(z),L=l.useRef(null),A=l.useRef(null),H=l.useRef(!1),{direction:D,getTargetContainer:W,anchor:_}=l.useContext(u.E_),X=null!==(t=null!=O?O:W)&&void 0!==t?t:y,F=JSON.stringify(T),G=(0,a.useEvent)((e=>{T.includes(e)||j((t=>[].concat((0,o.Z)(t),[e])))})),K=(0,a.useEvent)((e=>{T.includes(e)&&j((t=>t.filter((t=>t!==e))))})),U=(0,a.useEvent)((e=>{if(M.current===e)return;const t="function"==typeof Z?Z(e):e;R(t),M.current=t,null==N||N(e)})),V=l.useCallback((()=>{if(H.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],r=X();if(e.forEach((e=>{const i=k.exec(null==e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=C(a,r);i<t+n&&o.push({link:e,top:i})}})),o.length)return o.reduce(((e,t)=>t.top>e.top?t:e)).link;return""}(T,void 0!==I?I:v||0,w);U(e)}),[F,I,v]),q=l.useCallback((e=>{U(e);const t=k.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=X();let r=(0,s.Z)(o,!0)+C(n,o);r-=void 0!==I?I:v||0,H.current=!0,(0,d.Z)(r,{getContainer:X,callback(){H.current=!1}})}),[I,v]),J=i()(n,`${r}-wrapper`,{[`${r}-wrapper-horizontal`]:"horizontal"===E,[`${r}-rtl`]:"rtl"===D},m,null==_?void 0:_.className),Q=i()(r,{[`${r}-fixed`]:!b&&!$}),Y=i()(`${r}-ink`,{[`${r}-ink-visible`]:z}),ee=Object.assign(Object.assign({maxHeight:v?`calc(100vh - ${v}px)`:"100vh"},null==_?void 0:_.style),h),te=e=>Array.isArray(e)?e.map((e=>l.createElement(g,Object.assign({replace:B},e,{key:e.key}),"vertical"===E&&te(e.children)))):null,ne=l.createElement("div",{ref:L,className:J,style:ee},l.createElement("div",{className:Q},l.createElement("span",{className:Y,ref:A}),"items"in e?te(S):x));l.useEffect((()=>{const e=X();return V(),null==e||e.addEventListener("scroll",V),()=>{null==e||e.removeEventListener("scroll",V)}}),[F]),l.useEffect((()=>{"function"==typeof Z&&U(Z(M.current||""))}),[Z]),l.useEffect((()=>{(()=>{var e;const t=null===(e=L.current)||void 0===e?void 0:e.querySelector(`.${r}-link-title-active`);if(t&&A.current){const{style:e}=A.current,n="horizontal"===E;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&(0,c.Z)(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[E,Z,F,z]);const oe=l.useMemo((()=>({registerLink:G,unregisterLink:K,scrollTo:q,activeLink:z,onClick:P,direction:E})),[z,P,q,E]);return l.createElement(f.Provider,{value:oe},b?l.createElement(p.Z,{offsetTop:v,target:X},ne):ne)};const E=e=>{const{prefixCls:t,rootClassName:n}=e,{getPrefixCls:o}=l.useContext(u.E_),r=o("anchor",t),[a,c]=x(r);return a(l.createElement(S,Object.assign({},e,{rootClassName:i()(c,n),anchorPrefixCls:r})))};E.Link=g;var w=E},36381:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(14988),r=n(92310),i=n.n(r),a=n(5891),l=n(26390),c=n(29043),s=n(80665),d=n(71366),p=n(85870),u=n(59301),f=n(19149),g=n(75440),m=n(80962),h=n(43167),v=n(20287),b=u.forwardRef((function(e,t){var n=e.prefixCls,o=e.forceRender,r=e.className,a=e.style,l=e.children,s=e.isActive,d=e.role,p=u.useState(s||o),f=(0,c.Z)(p,2),g=f[0],h=f[1];return u.useEffect((function(){(o||s)&&h(!0)}),[o,s]),g?u.createElement("div",{ref:t,className:i()("".concat(n,"-content"),(0,m.Z)((0,m.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),r),style:a,role:d},u.createElement("div",{className:"".concat(n,"-content-box")},l)):null}));b.displayName="PanelContent";var $=b,x=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],y=u.forwardRef((function(e,t){var n=e.showArrow,o=void 0===n||n,r=e.headerClass,l=e.isActive,c=e.onItemClick,s=e.forceRender,d=e.className,p=e.prefixCls,g=e.collapsible,b=e.accordion,y=e.panelKey,C=e.extra,k=e.header,S=e.expandIcon,E=e.openMotion,w=e.destroyInactivePanel,I=e.children,P=(0,f.Z)(e,x),N="disabled"===g,O="header"===g,Z="icon"===g,B=null!=C&&"boolean"!=typeof C,T=function(){null==c||c(y)},j="function"==typeof S?S(e):u.createElement("i",{className:"arrow"});j&&(j=u.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(g)?T:void 0},j));var z=i()((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),l),"".concat(p,"-item-disabled"),N),d),R={className:i()(r,(0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),O),"".concat(p,"-icon-collapsible-only"),Z)),"aria-expanded":l,"aria-disabled":N,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==v.Z.ENTER&&e.which!==v.Z.ENTER||T()}};return O||Z||(R.onClick=T,R.role=b?"tab":"button",R.tabIndex=N?-1:0),u.createElement("div",(0,a.Z)({},P,{ref:t,className:z}),u.createElement("div",R,o&&j,u.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===g?T:void 0},k),B&&u.createElement("div",{className:"".concat(p,"-extra")},C)),u.createElement(h.default,(0,a.Z)({visible:l,leavedClassName:"".concat(p,"-content-hidden")},E,{forceRender:s,removeOnLeave:w}),(function(e,t){var n=e.className,o=e.style;return u.createElement($,{ref:t,prefixCls:p,className:n,style:o,isActive:l,forceRender:s,role:b?"tabpanel":void 0},I)})))})),C=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var k=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,r=t.collapsible,i=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,s=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var p=e.children,g=e.label,m=e.key,h=e.collapsible,v=e.onItemClick,b=e.destroyInactivePanel,$=(0,f.Z)(e,C),x=String(null!=m?m:t),k=null!=h?h:r,S=null!=b?b:i,E=!1;return E=o?c[0]===x:c.indexOf(x)>-1,u.createElement(y,(0,a.Z)({},$,{prefixCls:n,key:x,panelKey:x,isActive:E,accordion:o,openMotion:s,expandIcon:d,header:g,collapsible:k,onItemClick:function(e){"disabled"!==k&&(l(e),null==v||v(e))},destroyInactivePanel:S}),p)}))}(e,n):(0,g.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,g=f.header,m=f.headerClass,h=f.destroyInactivePanel,v=f.collapsible,b=f.onItemClick,$=!1;$=r?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:i,y={key:p,panelKey:p,header:g,headerClass:m,isActive:$,prefixCls:o,destroyInactivePanel:null!=h?h:a,openMotion:s,accordion:r,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(y).forEach((function(e){void 0===y[e]&&delete y[e]})),u.cloneElement(e,y))}(e,t,n)}))},S=n(47413);function E(e){var t=e;if(!Array.isArray(t)){var n=(0,s.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var w=u.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,r=e.destroyInactivePanel,s=void 0!==r&&r,f=e.style,g=e.accordion,m=e.className,h=e.children,v=e.collapsible,b=e.openMotion,$=e.expandIcon,x=e.activeKey,y=e.defaultActiveKey,C=e.onChange,w=e.items,I=i()(o,m),P=(0,d.Z)([],{value:x,onChange:function(e){return null==C?void 0:C(e)},defaultValue:y,postState:E}),N=(0,c.Z)(P,2),O=N[0],Z=N[1];(0,p.ZP)(!h,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var B=k(w,h,{prefixCls:o,accordion:g,openMotion:b,expandIcon:$,collapsible:v,destroyInactivePanel:s,onItemClick:function(e){return Z((function(){return g?O[0]===e?[]:[e]:O.indexOf(e)>-1?O.filter((function(t){return t!==e})):[].concat((0,l.Z)(O),[e])}))},activeKey:O});return u.createElement("div",(0,a.Z)({ref:t,className:I,style:f,role:g?"tablist":void 0},(0,S.Z)(e,{aria:!0,data:!0})),B)})),I=Object.assign(w,{Panel:y}),P=I,N=(I.Panel,n(55405)),O=n(62892),Z=n(92343),B=n(36355),T=n(19716);var j=u.forwardRef(((e,t)=>{const{getPrefixCls:n}=u.useContext(B.E_),{prefixCls:o,className:r,showArrow:a=!0}=e,l=n("collapse",o),c=i()({[`${l}-no-arrow`]:!a},r);return u.createElement(P.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))})),z=n(17313),R=n(8378),M=n(83116),L=n(37613);const A=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:p,colorText:u,colorTextHeading:f,colorTextDisabled:g,fontSize:m,fontSizeLG:h,lineHeight:v,marginSM:b,paddingSM:$,paddingLG:x,paddingXS:y,motionDurationSlow:C,fontSizeIcon:k,contentPadding:S}=e,E=`${s}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},(0,z.Wf)(e)),{backgroundColor:r,border:E,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:m*v,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{fontSize:k,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:u,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:y,[`> ${t}-expand-icon`]:{marginInlineStart:$-y}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},"&-large":{[`> ${t}-item`]:{fontSize:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:h*v,marginInlineStart:x-o}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},H=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},D=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},W=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var _=(0,M.Z)("Collapse",(e=>{const t=(0,L.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(t),D(t),W(t),H(t),(0,R.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const X=u.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=u.useContext(B.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:f,size:m,expandIconPosition:h="start",children:v,expandIcon:b}=e,$=(0,T.Z)((e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"})),x=n("collapse",l),y=n(),[C,k]=_(x),S=u.useMemo((()=>"left"===h?"start":"right"===h?"end":h),[h]),E=i()(`${x}-icon-position-${S}`,{[`${x}-borderless`]:!p,[`${x}-rtl`]:"rtl"===r,[`${x}-ghost`]:!!f,[`${x}-${$}`]:"middle"!==$},null==a?void 0:a.className,c,s,k),w=Object.assign(Object.assign({},(0,O.Z)(y)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),I=u.useMemo((()=>v?(0,g.Z)(v).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0});return(0,Z.Tm)(e,a)}return e})):null),[v]);return C(u.createElement(P,Object.assign({ref:t,openMotion:w},(0,N.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=b?b(e):u.createElement(o.Z,{rotate:e.isActive?90:void 0});return(0,Z.Tm)(t,(()=>({className:i()(t.props.className,`${x}-arrow`)})))},prefixCls:x,className:E,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),I))}));var F=Object.assign(X,{Panel:j})},12563:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(59301),r=n(51638),i=n(92310),a=n.n(i),l=n(36785),c=n(47729),s=n(14088),d=n(36355),p=n(17313),u=n(37613),f=n(83116);const g=e=>{const{lineWidth:t,fontSizeIcon:n}=e,o=e.fontSizeSM,r=e.lineHeightSM*o+"px";return(0,u.TS)(e,{tagFontSize:o,tagLineHeight:r,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},m=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var h=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,a=t-n;return{[r]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),m),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};var b=e=>{const{prefixCls:t,style:n,className:r,checked:i,onChange:l,onClick:c}=e,s=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=o.useContext(d.E_),f=p("tag",t),[g,m]=h(f),b=a()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:i},null==u?void 0:u.className,r,m);return g(o.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==u?void 0:u.style),className:b,onClick:e=>{null==l||l(!i),null==c||c(e)}})))},$=n(45157);var x=(0,f.b)(["Tag","preset"],(e=>(e=>(0,$.Z)(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),m);const y=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var C=(0,f.b)(["Tag","status"],(e=>{const t=g(e);return[y(t,"success","Success"),y(t,"processing","Info"),y(t,"error","Error"),y(t,"warning","Warning")]}),m),k=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 S=(e,t)=>{const{prefixCls:n,className:i,rootClassName:p,style:u,children:f,icon:g,color:m,onClose:v,closeIcon:b,closable:$,bordered:y=!0}=e,S=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:E,direction:w,tag:I}=o.useContext(d.E_),[P,N]=o.useState(!0);o.useEffect((()=>{"visible"in S&&N(S.visible)}),[S.visible]);const O=(0,l.o2)(m),Z=(0,l.yT)(m),B=O||Z,T=Object.assign(Object.assign({backgroundColor:m&&!B?m:void 0},null==I?void 0:I.style),u),j=E("tag",n),[z,R]=h(j),M=a()(j,null==I?void 0:I.className,{[`${j}-${m}`]:B,[`${j}-has-color`]:m&&!B,[`${j}-hidden`]:!P,[`${j}-rtl`]:"rtl"===w,[`${j}-borderless`]:!y},i,p,R),L=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||N(!1)},[,A]=(0,c.Z)($,b,(e=>null===e?o.createElement(r.Z,{className:`${j}-close-icon`,onClick:L}):o.createElement("span",{className:`${j}-close-icon`,onClick:L},e)),null,!1),H="function"==typeof S.onClick||f&&"a"===f.type,D=g||null,W=D?o.createElement(o.Fragment,null,D,f&&o.createElement("span",null,f)):f,_=o.createElement("span",Object.assign({},S,{ref:t,className:M,style:T}),W,A,O&&o.createElement(x,{key:"preset",prefixCls:j}),Z&&o.createElement(C,{key:"status",prefixCls:j}));return z(H?o.createElement(s.Z,{component:"Tag"},_):_)},E=o.forwardRef(S);E.CheckableTag=b;var w=E}}]);