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

1 line
24 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[80462,36381],{66104:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(92310),o=n.n(r),i=n(11592),a=n(26112),l=n(59301),c=n(92343),s=n(36355),d=n(84105),p=n(91857);const m=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(s.E_),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var u=m,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function b(e,t,n,r){if(null==n)return null;const{className:i,onClick:c}=t,s=g(t,["className","onClick"]),d=Object.assign(Object.assign({},(0,a.Z)(s,{data:!0,aria:!0})),{onClick:c});return void 0!==r?l.createElement("a",Object.assign({},d,{className:o()(`${e}-link`,i),href:r}),n):l.createElement("span",Object.assign({},d,{className:o()(`${e}-link`,i)}),n)}function f(e,t){return(n,r,o,i,a)=>{if(t)return t(n,r,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return b(e,n,l,a)}}var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $=e=>{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:i,dropdownProps:a,href:c}=e;const s=(e=>{if(o||i){const n=Object.assign({},a);if(o){const e=o||{},{items:t}=e,r=h(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:i}=e,a=h(e,["key","title","label","path"]);let s=null!=o?o:r;return i&&(s=l.createElement("a",{href:`${c}${i}`},s)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:s})}))})}else i&&(n.overlay=i);return l.createElement(p.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(d.Z,null)))}return e})(r);return null!=s?l.createElement(l.Fragment,null,l.createElement("li",null,s),n&&l.createElement(u,null,n)):null},v=e=>{const{prefixCls:t,children:n,href:r}=e,o=h(e,["prefixCls","children","href"]),{getPrefixCls:i}=l.useContext(s.E_),a=i("breadcrumb",t);return l.createElement($,Object.assign({},o,{prefixCls:a}),b(a,o,n,r))};v.__ANT_BREADCRUMB_ITEM=!0;var y=v,x=n(17313),C=n(83116),S=n(37613);const O=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,x.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,x.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var k=(0,C.Z)("Breadcrumb",(e=>{const t=(0,S.TS)(e,{});return[O(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function I(e){const{breadcrumbName:t,children:n}=e,r=j(e,["breadcrumbName","children"]),o=Object.assign({title:t},r);return n&&(o.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=j(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const N=e=>{const{prefixCls:t,separator:n="/",style:r,className:d,rootClassName:p,routes:m,items:g,children:b,itemRender:h,params:v={}}=e,y=E(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:x,direction:C,breadcrumb:S}=l.useContext(s.E_);let O;const j=x("breadcrumb",t),[N,P]=k(j),w=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(I):null)),[e,t])}(g,m);const Z=f(j,h);if(w&&w.length>0){const e=[],t=g||m;O=w.map(((r,o)=>{const{path:i,key:c,type:s,menu:d,overlay:p,onClick:m,className:g,separator:b,dropdownProps:f}=r,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(v,i);void 0!==h&&e.push(h);const y=null!=c?c:o;if("separator"===s)return l.createElement(u,{key:y},b);const x={},C=o===w.length-1;d?x.menu=d:p&&(x.overlay=p);let{href:S}=r;return e.length&&void 0!==h&&(S=`#/${e.join("/")}`),l.createElement($,Object.assign({key:y},x,(0,a.Z)(r,{data:!0,aria:!0}),{className:g,dropdownProps:f,href:S,separator:C?"":n,onClick:m,prefixCls:j}),Z(r,v,t,e,S))}))}else if(b){const e=(0,i.Z)(b).length;O=(0,i.Z)(b).map(((t,r)=>{if(!t)return t;const o=r===e-1;return(0,c.Tm)(t,{separator:o?"":n,key:r})}))}const B=o()(j,null==S?void 0:S.className,{[`${j}-rtl`]:"rtl"===C},d,p,P),z=Object.assign(Object.assign({},null==S?void 0:S.style),r);return N(l.createElement("nav",Object.assign({className:B,style:z},y),l.createElement("ol",null,O)))};N.Item=y,N.Separator=u;var P=N},36381:function(e,t,n){n.d(t,{Z:function(){return L}});var r=n(38819),o=n(92310),i=n.n(o),a=n(14809),l=n(95190),c=n(50298),s=n(93664),d=n(18929),p=n(48736),m=n(59301),u=n(62646),g=n(11592),b=n(4635),f=n(77900),h=n(10228),$=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,a=e.style,l=e.children,s=e.isActive,d=e.role,p=m.useState(s||r),u=(0,c.Z)(p,2),g=u[0],f=u[1];return m.useEffect((function(){(r||s)&&f(!0)}),[r,s]),g?m.createElement("div",{ref:t,className:i()("".concat(n,"-content"),(0,b.Z)((0,b.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:a,role:d},m.createElement("div",{className:"".concat(n,"-content-box")},l)):null}));$.displayName="PanelContent";var v=$,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],x=m.forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,l=e.isActive,c=e.onItemClick,s=e.forceRender,d=e.className,p=e.prefixCls,g=e.collapsible,$=e.accordion,x=e.panelKey,C=e.extra,S=e.header,O=e.expandIcon,k=e.openMotion,j=e.destroyInactivePanel,I=e.children,E=(0,u.Z)(e,y),N="disabled"===g,P="header"===g,w="icon"===g,Z=null!=C&&"boolean"!=typeof C,B=function(){null==c||c(x)},z="function"==typeof O?O(e):m.createElement("i",{className:"arrow"});z&&(z=m.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(g)?B:void 0},z));var H=i()((0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),l),"".concat(p,"-item-disabled"),N),d),R={className:i()(o,(0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),P),"".concat(p,"-icon-collapsible-only"),w)),"aria-expanded":l,"aria-disabled":N,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==h.Z.ENTER&&e.which!==h.Z.ENTER||B()}};return P||w||(R.onClick=B,R.role=$?"tab":"button",R.tabIndex=N?-1:0),m.createElement("div",(0,a.Z)({},E,{ref:t,className:H}),m.createElement("div",R,r&&z,m.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===g?B:void 0},S),Z&&m.createElement("div",{className:"".concat(p,"-extra")},C)),m.createElement(f.default,(0,a.Z)({visible:l,leavedClassName:"".concat(p,"-content-hidden")},k,{forceRender:s,removeOnLeave:j}),(function(e,t){var n=e.className,r=e.style;return m.createElement(v,{ref:t,prefixCls:p,className:n,style:r,isActive:l,forceRender:s,role:$?"tabpanel":void 0},I)})))})),C=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var S=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=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,b=e.key,f=e.collapsible,h=e.onItemClick,$=e.destroyInactivePanel,v=(0,u.Z)(e,C),y=String(null!=b?b:t),S=null!=f?f:o,O=null!=$?$:i,k=!1;return k=r?c[0]===y:c.indexOf(y)>-1,m.createElement(x,(0,a.Z)({},v,{prefixCls:n,key:y,panelKey:y,isActive:k,accordion:r,openMotion:s,expandIcon:d,header:g,collapsible:S,onItemClick:function(e){"disabled"!==S&&(l(e),null==h||h(e))},destroyInactivePanel:O}),p)}))}(e,n):(0,g.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=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),u=e.props,g=u.header,b=u.headerClass,f=u.destroyInactivePanel,h=u.collapsible,$=u.onItemClick,v=!1;v=o?c[0]===p:c.indexOf(p)>-1;var y=null!=h?h:i,x={key:p,panelKey:p,header:g,headerClass:b,isActive:v,prefixCls:r,destroyInactivePanel:null!=f?f:a,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(l(e),null==$||$(e))},expandIcon:d,collapsible:y};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),m.cloneElement(e,x))}(e,t,n)}))},O=n(26112);function k(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 j=m.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,s=void 0!==o&&o,u=e.style,g=e.accordion,b=e.className,f=e.children,h=e.collapsible,$=e.openMotion,v=e.expandIcon,y=e.activeKey,x=e.defaultActiveKey,C=e.onChange,j=e.items,I=i()(r,b),E=(0,d.Z)([],{value:y,onChange:function(e){return null==C?void 0:C(e)},defaultValue:x,postState:k}),N=(0,c.Z)(E,2),P=N[0],w=N[1];(0,p.ZP)(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Z=S(j,f,{prefixCls:r,accordion:g,openMotion:$,expandIcon:v,collapsible:h,destroyInactivePanel:s,onItemClick:function(e){return w((function(){return g?P[0]===e?[]:[e]:P.indexOf(e)>-1?P.filter((function(t){return t!==e})):[].concat((0,l.Z)(P),[e])}))},activeKey:P});return m.createElement("div",(0,a.Z)({ref:t,className:I,style:u,role:g?"tablist":void 0},(0,O.Z)(e,{aria:!0,data:!0})),Z)})),I=Object.assign(j,{Panel:x}),E=I,N=(I.Panel,n(2738)),P=n(62892),w=n(92343),Z=n(36355),B=n(19716);var z=m.forwardRef(((e,t)=>{const{getPrefixCls:n}=m.useContext(Z.E_),{prefixCls:r,className:o,showArrow:a=!0}=e,l=n("collapse",r),c=i()({[`${l}-no-arrow`]:!a},o);return m.createElement(E.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))})),H=n(17313),R=n(8378),M=n(83116),T=n(37613);const A=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:p,colorText:m,colorTextHeading:u,colorTextDisabled:g,fontSize:b,fontSizeLG:f,lineHeight:h,marginSM:$,paddingSM:v,paddingLG:y,paddingXS:x,motionDurationSlow:C,fontSizeIcon:S,contentPadding:O}=e,k=`${s}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},(0,H.Wf)(e)),{backgroundColor:o,border:k,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&: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:u,lineHeight:h,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:b*h,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},(0,H.Ro)()),{fontSize:S,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:m,backgroundColor:n,borderTop:k,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:v-x}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:f,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:f*h,marginInlineStart:y-r}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},[`${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:$}}}}})}},X=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},W=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\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:r}}}},_=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 D=(0,M.Z)("Collapse",(e=>{const t=(0,T.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(t),W(t),_(t),X(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 K=m.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o,collapse:a}=m.useContext(Z.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:u,size:b,expandIconPosition:f="start",children:h,expandIcon:$}=e,v=(0,B.Z)((e=>{var t;return null!==(t=null!=b?b:e)&&void 0!==t?t:"middle"})),y=n("collapse",l),x=n(),[C,S]=D(y),O=m.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),k=i()(`${y}-icon-position-${O}`,{[`${y}-borderless`]:!p,[`${y}-rtl`]:"rtl"===o,[`${y}-ghost`]:!!u,[`${y}-${v}`]:"middle"!==v},null==a?void 0:a.className,c,s,S),j=Object.assign(Object.assign({},(0,P.Z)(x)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),I=m.useMemo((()=>h?(0,g.Z)(h).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0});return(0,w.Tm)(e,a)}return e})):null),[h]);return C(m.createElement(E,Object.assign({ref:t,openMotion:j},(0,N.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=$?$(e):m.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,w.Tm)(t,(()=>({className:i()(t.props.className,`${y}-arrow`)})))},prefixCls:y,className:k,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),I))}));var L=Object.assign(K,{Panel:z})},10777:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(92310),o=n.n(r),i=n(59301),a=n(36355),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var c=e=>{var{prefixCls:t,className:n,color:r="blue",dot:c,pending:s=!1,position:d,label:p,children:m}=e,u=l(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:g}=i.useContext(a.E_),b=g("timeline",t),f=o()(`${b}-item`,{[`${b}-item-pending`]:s},n),h=/blue|red|green|gray/.test(r||"")?void 0:r,$=o()(`${b}-item-head`,{[`${b}-item-head-custom`]:!!c,[`${b}-item-head-${r}`]:!h});return i.createElement("li",Object.assign({},u,{className:f}),p&&i.createElement("div",{className:`${b}-item-label`},p),i.createElement("div",{className:`${b}-item-tail`}),i.createElement("div",{className:$,style:{borderColor:h,color:h}},c),i.createElement("div",{className:`${b}-item-content`},m))},s=n(95190),d=n(58617),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var m=e=>{var{prefixCls:t,className:n,pending:r=!1,children:a,items:l,rootClassName:m,reverse:u=!1,direction:g,hashId:b,pendingDot:f,mode:h=""}=e,$=p(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const v=(e,n)=>"alternate"===h?"right"===e?`${t}-item-right`:"left"===e||n%2==0?`${t}-item-left`:`${t}-item-right`:"left"===h?`${t}-item-left`:"right"===h||"right"===e?`${t}-item-right`:"",y=(0,s.Z)(l||[]),x="boolean"==typeof r?null:r;r&&y.push({pending:!!r,dot:f||i.createElement(d.Z,null),children:x}),u&&y.reverse();const C=y.length,S=`${t}-item-last`,O=y.filter((e=>!!e)).map(((e,t)=>{var n;const a=t===C-2?S:"",l=t===C-1?S:"",{className:s}=e,d=p(e,["className"]);return i.createElement(c,Object.assign({},d,{className:o()([s,!u&&r?a:l,v(null!==(n=null==e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null==e?void 0:e.key)||t}))})),k=y.some((e=>!!(null==e?void 0:e.label))),j=o()(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!u,[`${t}-${h}`]:!!h&&!k,[`${t}-label`]:k,[`${t}-rtl`]:"rtl"===g},n,m,b);return i.createElement("ul",Object.assign({},$,{className:j}),O)},u=n(11592);var g=function(e,t){return e&&Array.isArray(e)?e:(0,u.Z)(t).map((e=>{var t,n;return Object.assign({children:null!==(n=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)}))},b=n(17313),f=n(83116),h=n(37613);const $=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign({},(0,b.Wf)(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:(e.itemHeadSize-e.tailWidth)/2,height:`calc(100% - ${e.itemHeadSize}px)`,borderInlineStart:`${e.tailWidth}px ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${e.dotBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.itemHeadSize/2,insetInlineStart:e.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.tailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.itemHeadSize+e.tailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.itemHeadSize+e.marginXS}px)`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.tailWidth}px dotted ${e.tailColor}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.tailWidth}px dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.tailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var v=(0,f.Z)("Timeline",(e=>{const t=(0,h.TS)(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[$(t)]}),(e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding}))),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const x=e=>{const{getPrefixCls:t,direction:n,timeline:r}=i.useContext(a.E_),{prefixCls:l,children:c,items:s,className:d,style:p}=e,u=y(e,["prefixCls","children","items","className","style"]),b=t("timeline",l);const[f,h]=v(b),$=g(s,c);return f(i.createElement(m,Object.assign({},u,{className:o()(null==r?void 0:r.className,d),style:Object.assign(Object.assign({},null==r?void 0:r.style),p),prefixCls:b,direction:n,items:$,hashId:h})))};x.Item=c;var C=x}}]);