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

1 line
24 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[66425,52720],{65547:function(e,r,t){t.d(r,{Z:function(){return s}});var n=t(33614),o=t(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=t(1393),i=function(e,r){return o.createElement(a.Z,(0,n.Z)({},e,{ref:r,icon:l}))};var s=o.forwardRef(i)},66104:function(e,r,t){t.d(r,{Z:function(){return I}});var n=t(92310),o=t.n(n),l=t(75440),a=t(47413),i=t(59301),s=t(92343),c=t(36355),d=t(46952),u=t(91857);const p=e=>{let{children:r}=e;const{getPrefixCls:t}=i.useContext(c.E_),n=t("breadcrumb");return i.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===r?r:r||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var b=p,g=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};function f(e,r,t,n){if(null==t)return null;const{className:l,onClick:s}=r,c=g(r,["className","onClick"]),d=Object.assign(Object.assign({},(0,a.Z)(c,{data:!0,aria:!0})),{onClick:s});return void 0!==n?i.createElement("a",Object.assign({},d,{className:o()(`${e}-link`,l),href:n}),t):i.createElement("span",Object.assign({},d,{className:o()(`${e}-link`,l)}),t)}function m(e,r){return(t,n,o,l,a)=>{if(r)return r(t,n,o,l);const i=function(e,r){if(void 0===e.title||null===e.title)return null;const t=Object.keys(r).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>r[t]||e))}(t,n);return f(e,t,i,a)}}var h=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const y=e=>{const{prefixCls:r,separator:t="/",children:n,menu:o,overlay:l,dropdownProps:a,href:s}=e;const c=(e=>{if(o||l){const t=Object.assign({},a);if(o){const e=o||{},{items:r}=e,n=h(e,["items"]);t.menu=Object.assign(Object.assign({},n),{items:null==r?void 0:r.map(((e,r)=>{var{key:t,title:n,label:o,path:l}=e,a=h(e,["key","title","label","path"]);let c=null!=o?o:n;return l&&(c=i.createElement("a",{href:`${s}${l}`},c)),Object.assign(Object.assign({},a),{key:null!=t?t:r,label:c})}))})}else l&&(t.overlay=l);return i.createElement(u.Z,Object.assign({placement:"bottom"},t),i.createElement("span",{className:`${r}-overlay-link`},e,i.createElement(d.Z,null)))}return e})(n);return null!=c?i.createElement(i.Fragment,null,i.createElement("li",null,c),t&&i.createElement(b,null,t)):null},v=e=>{const{prefixCls:r,children:t,href:n}=e,o=h(e,["prefixCls","children","href"]),{getPrefixCls:l}=i.useContext(c.E_),a=l("breadcrumb",r);return i.createElement(y,Object.assign({},o,{prefixCls:a}),f(a,o,t,n))};v.__ANT_BREADCRUMB_ITEM=!0;var C=v,$=t(17313),x=t(83116),O=t(37613);const k=e=>{const{componentCls:r,iconCls:t}=e;return{[r]:Object.assign(Object.assign({},(0,$.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{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,$.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${r}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${r}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${r}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{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 S=(0,x.Z)("Breadcrumb",(e=>{const r=(0,O.TS)(e,{});return[k(r)]}),(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,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};function w(e){const{breadcrumbName:r,children:t}=e,n=j(e,["breadcrumbName","children"]),o=Object.assign({title:r},n);return t&&(o.menu={items:t.map((e=>{var{breadcrumbName:r}=e,t=j(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:r})}))}),o}var E=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const P=e=>{const{prefixCls:r,separator:t="/",style:n,className:d,rootClassName:u,routes:p,items:g,children:f,itemRender:h,params:v={}}=e,C=E(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$,direction:x,breadcrumb:O}=i.useContext(c.E_);let k;const j=$("breadcrumb",r),[P,I]=S(j),N=function(e,r){return(0,i.useMemo)((()=>e||(r?r.map(w):null)),[e,r])}(g,p);const z=m(j,h);if(N&&N.length>0){const e=[],r=g||p;k=N.map(((n,o)=>{const{path:l,key:s,type:c,menu:d,overlay:u,onClick:p,className:g,separator:f,dropdownProps:m}=n,h=((e,r)=>{if(void 0===r)return r;let t=(r||"").replace(/^\//,"");return Object.keys(e).forEach((r=>{t=t.replace(`:${r}`,e[r])})),t})(v,l);void 0!==h&&e.push(h);const C=null!=s?s:o;if("separator"===c)return i.createElement(b,{key:C},f);const $={},x=o===N.length-1;d?$.menu=d:u&&($.overlay=u);let{href:O}=n;return e.length&&void 0!==h&&(O=`#/${e.join("/")}`),i.createElement(y,Object.assign({key:C},$,(0,a.Z)(n,{data:!0,aria:!0}),{className:g,dropdownProps:m,href:O,separator:x?"":t,onClick:p,prefixCls:j}),z(n,v,r,e,O))}))}else if(f){const e=(0,l.Z)(f).length;k=(0,l.Z)(f).map(((r,n)=>{if(!r)return r;const o=n===e-1;return(0,s.Tm)(r,{separator:o?"":t,key:n})}))}const T=o()(j,null==O?void 0:O.className,{[`${j}-rtl`]:"rtl"===x},d,u,I),M=Object.assign(Object.assign({},null==O?void 0:O.style),n);return P(i.createElement("nav",Object.assign({className:T,style:M},C),i.createElement("ol",null,k)))};P.Item=C,P.Separator=b;var I=P},24905:function(e,r,t){t.d(r,{Z:function(){return k}});var n=t(92310),o=t.n(n),l=t(5630),a=t(59301),i=t(36355),s=t(1684),c=t(32441);var d=a.createContext(null),u=t(98447),p=t(14088),b=t(4572),g=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const f=(e,r)=>{var t;const{prefixCls:n,className:f,rootClassName:m,children:h,indeterminate:y=!1,style:v,onMouseEnter:C,onMouseLeave:$,skipGroup:x=!1,disabled:O}=e,k=g(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:j,checkbox:w}=a.useContext(i.E_),E=a.useContext(d),{isFormItemInput:P}=a.useContext(c.aM),I=a.useContext(s.Z),N=null!==(t=(null==E?void 0:E.disabled)||O)&&void 0!==t?t:I,z=a.useRef(k.value);a.useEffect((()=>{null==E||E.registerValue(k.value)}),[]),a.useEffect((()=>{if(!x)return k.value!==z.current&&(null==E||E.cancelValue(z.current),null==E||E.registerValue(k.value),z.current=k.value),()=>null==E?void 0:E.cancelValue(k.value)}),[k.value]);const T=S("checkbox",n),[M,B]=(0,u.ZP)(T),Z=Object.assign({},k);E&&!x&&(Z.onChange=function(){k.onChange&&k.onChange.apply(k,arguments),E.toggleOption&&E.toggleOption({label:h,value:k.value})},Z.name=E.name,Z.checked=E.value.includes(k.value));const H=o()(`${T}-wrapper`,{[`${T}-rtl`]:"rtl"===j,[`${T}-wrapper-checked`]:Z.checked,[`${T}-wrapper-disabled`]:N,[`${T}-wrapper-in-form-item`]:P},null==w?void 0:w.className,f,m,B),R=o()({[`${T}-indeterminate`]:y},b.A,B),W=y?"mixed":void 0;return M(a.createElement(p.Z,{component:"Checkbox",disabled:N},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==w?void 0:w.style),v),onMouseEnter:C,onMouseLeave:$},a.createElement(l.Z,Object.assign({"aria-checked":W},Z,{prefixCls:T,className:R,disabled:N,ref:r})),void 0!==h&&a.createElement("span",null,h))))};var m=a.forwardRef(f),h=t(61414),y=t(55405),v=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const C=(e,r)=>{const{defaultValue:t,children:n,options:l=[],prefixCls:s,className:c,rootClassName:p,style:b,onChange:g}=e,f=v(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:C,direction:$}=a.useContext(i.E_),[x,O]=a.useState(f.value||t||[]),[k,S]=a.useState([]);a.useEffect((()=>{"value"in f&&O(f.value||[])}),[f.value]);const j=a.useMemo((()=>l.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[l]),w=C("checkbox",s),E=`${w}-group`,[P,I]=(0,u.ZP)(w),N=(0,y.Z)(f,["value","disabled"]),z=l.length?j.map((e=>a.createElement(m,{prefixCls:w,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:x.includes(e.value),onChange:e.onChange,className:`${E}-item`,style:e.style,title:e.title},e.label))):n,T={toggleOption:e=>{const r=x.indexOf(e.value),t=(0,h.Z)(x);-1===r?t.push(e.value):t.splice(r,1),"value"in f||O(t),null==g||g(t.filter((e=>k.includes(e))).sort(((e,r)=>j.findIndex((r=>r.value===e))-j.findIndex((e=>e.value===r)))))},value:x,disabled:f.disabled,name:f.name,registerValue:e=>{S((r=>[].concat((0,h.Z)(r),[e])))},cancelValue:e=>{S((r=>r.filter((r=>r!==e))))}},M=o()(E,{[`${E}-rtl`]:"rtl"===$},c,p,I);return P(a.createElement("div",Object.assign({className:M,style:b},N,{ref:r}),a.createElement(d.Provider,{value:T},z)))},$=a.forwardRef(C);var x=a.memo($);const O=m;O.Group=x,O.__ANT_CHECKBOX=!0;var k=O},98447:function(e,r,t){t.d(r,{C2:function(){return i}});var n=t(17313),o=t(37613),l=t(83116);const a=e=>{const{checkboxCls:r}=e,t=`${r}-wrapper`;return[{[`${r}-group`]:Object.assign(Object.assign({},(0,n.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${t}`]:{marginInlineStart:0},[`&${t}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[r]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${r}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${r}-inner`]:Object.assign({},(0,n.oN)(e))},[`${r}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${t}:not(${t}-disabled),\n ${r}:not(${r}-disabled)\n `]:{[`&:hover ${r}-inner`]:{borderColor:e.colorPrimary}},[`${t}:not(${t}-disabled)`]:{[`&:hover ${r}-checked:not(${r}-disabled) ${r}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${r}-checked:not(${r}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-checked`]:{[`${r}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${t}-checked:not(${t}-disabled),\n ${r}-checked:not(${r}-disabled)\n `]:{[`&:hover ${r}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[r]:{"&-indeterminate":{[`${r}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${t}-disabled`]:{cursor:"not-allowed"},[`${r}-disabled`]:{[`&, ${r}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${r}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${r}-indeterminate ${r}-inner::after`]:{background:e.colorTextDisabled}}}]};function i(e,r){const t=(0,o.TS)(r,{checkboxCls:`.${e}`,checkboxSize:r.controlInteractiveSize});return[a(t)]}r.ZP=(0,l.Z)("Checkbox",((e,r)=>{let{prefixCls:t}=r;return[i(t,e)]}))},28103:function(e,r,t){t.d(r,{Z:function(){return b}});var n=t(92310),o=t.n(n),l=t(59301),a=t(36355),i=t(17313),s=t(83116),c=t(37613);const d=e=>{const{componentCls:r,sizePaddingEdgeHorizontal:t,colorSplit:n,lineWidth:o,textPaddingInline:l,orientationMargin:a,verticalMarginInline:s}=e;return{[r]:Object.assign(Object.assign({},(0,i.Wf)(e)),{borderBlockStart:`${o}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${r}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${r}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${r}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${r}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${r}-with-text${r}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${r}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${r}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${r}-with-text-left${r}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${r}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${r}-with-text-right${r}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${r}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,s.Z)("Divider",(e=>{const r=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(r)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};var b=e=>{const{getPrefixCls:r,direction:t,divider:n}=l.useContext(a.E_),{prefixCls:i,type:s="horizontal",orientation:c="center",orientationMargin:d,className:b,rootClassName:g,children:f,dashed:m,plain:h,style:y}=e,v=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),C=r("divider",i),[$,x]=u(C),O=c.length>0?`-${c}`:c,k=!!f,S="left"===c&&null!=d,j="right"===c&&null!=d,w=o()(C,null==n?void 0:n.className,x,`${C}-${s}`,{[`${C}-with-text`]:k,[`${C}-with-text${O}`]:k,[`${C}-dashed`]:!!m,[`${C}-plain`]:!!h,[`${C}-rtl`]:"rtl"===t,[`${C}-no-default-orientation-margin-left`]:S,[`${C}-no-default-orientation-margin-right`]:j},b,g),E=l.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),P=Object.assign(Object.assign({},S&&{marginLeft:E}),j&&{marginRight:E});return $(l.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==n?void 0:n.style),y)},v,{role:"separator"}),f&&"vertical"!==s&&l.createElement("span",{className:`${C}-inner-text`,style:P},f)))}},44e3:function(e,r,t){var n=t(84966),o=t(86737);const l=n.ZP;l.Header=n.h4,l.Footer=n.$_,l.Content=n.VY,l.Sider=o.Z,r.Z=l},12563:function(e,r,t){t.d(r,{Z:function(){return j}});var n=t(59301),o=t(53043),l=t(92310),a=t.n(l),i=t(36785),s=t(47729),c=t(14088),d=t(36355),u=t(17313),p=t(37613),b=t(83116);const g=e=>{const{lineWidth:r,fontSizeIcon:t}=e,n=e.fontSizeSM,o=e.lineHeightSM*n+"px";return(0,p.TS)(e,{tagFontSize:n,tagLineHeight:o,tagIconSize:t-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var m=(0,b.Z)("Tag",(e=>(e=>{const{paddingXXS:r,lineWidth:t,tagPaddingHorizontal:n,componentCls:o}=e,l=n-t,a=r-t;return{[o]:Object.assign(Object.assign({},(0,u.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,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",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:l}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),f),h=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};var y=e=>{const{prefixCls:r,style:t,className:o,checked:l,onChange:i,onClick:s}=e,c=h(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=n.useContext(d.E_),b=u("tag",r),[g,f]=m(b),y=a()(b,`${b}-checkable`,{[`${b}-checkable-checked`]:l},null==p?void 0:p.className,o,f);return g(n.createElement("span",Object.assign({},c,{style:Object.assign(Object.assign({},t),null==p?void 0:p.style),className:y,onClick:e=>{null==i||i(!l),null==s||s(e)}})))},v=t(45157);var C=(0,b.b)(["Tag","preset"],(e=>(e=>(0,v.Z)(e,((r,t)=>{let{textColor:n,lightBorderColor:o,lightColor:l,darkColor:a}=t;return{[`${e.componentCls}-${r}`]:{color:n,background:l,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),f);const $=(e,r,t)=>{const n="string"!=typeof(o=t)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${r}`]:{color:e[`color${t}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var x=(0,b.b)(["Tag","status"],(e=>{const r=g(e);return[$(r,"success","Success"),$(r,"processing","Info"),$(r,"error","Error"),$(r,"warning","Warning")]}),f),O=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const k=(e,r)=>{const{prefixCls:t,className:l,rootClassName:u,style:p,children:b,icon:g,color:f,onClose:h,closeIcon:y,closable:v,bordered:$=!0}=e,k=O(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:S,direction:j,tag:w}=n.useContext(d.E_),[E,P]=n.useState(!0);n.useEffect((()=>{"visible"in k&&P(k.visible)}),[k.visible]);const I=(0,i.o2)(f),N=(0,i.yT)(f),z=I||N,T=Object.assign(Object.assign({backgroundColor:f&&!z?f:void 0},null==w?void 0:w.style),p),M=S("tag",t),[B,Z]=m(M),H=a()(M,null==w?void 0:w.className,{[`${M}-${f}`]:z,[`${M}-has-color`]:f&&!z,[`${M}-hidden`]:!E,[`${M}-rtl`]:"rtl"===j,[`${M}-borderless`]:!$},l,u,Z),R=e=>{e.stopPropagation(),null==h||h(e),e.defaultPrevented||P(!1)},[,W]=(0,s.Z)(v,y,(e=>null===e?n.createElement(o.Z,{className:`${M}-close-icon`,onClick:R}):n.createElement("span",{className:`${M}-close-icon`,onClick:R},e)),null,!1),X="function"==typeof k.onClick||b&&"a"===b.type,_=g||null,D=_?n.createElement(n.Fragment,null,_,b&&n.createElement("span",null,b)):b,F=n.createElement("span",Object.assign({},k,{ref:r,className:H,style:T}),D,W,I&&n.createElement(C,{key:"preset",prefixCls:M}),N&&n.createElement(x,{key:"status",prefixCls:M}));return B(X?n.createElement(c.Z,{component:"Tag"},F):F)},S=n.forwardRef(k);S.CheckableTag=y;var j=S}}]);