UNPKG

@cocalc/static

Version:

CoCalc's static frontend Webpack-based build system and framework

1 lines 19.3 kB
"use strict";(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[2168],{19889:(n,t,e)=>{e.d(t,{K:()=>I,Z:()=>E});var c=e(24177),i=e.n(c),a=e(98235),o=e(63505),r=e(68804),l=e(6022),s=e(32602);function d(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function h(n){return null!=n}const g=function(n){var t,e=n.itemPrefixCls,c=n.component,a=n.span,r=n.className,l=n.style,s=n.labelStyle,g=n.contentStyle,u=n.bordered,m=n.label,p=n.content,b=n.colon,f=c;return u?o.createElement(f,{className:i()((t={},d(t,"".concat(e,"-item-label"),h(m)),d(t,"".concat(e,"-item-content"),h(p)),t),r),style:l,colSpan:a},h(m)&&o.createElement("span",{style:s},m),h(p)&&o.createElement("span",{style:g},p)):o.createElement(f,{className:i()("".concat(e,"-item"),r),style:l,colSpan:a},o.createElement("div",{className:"".concat(e,"-item-container")},(m||0===m)&&o.createElement("span",{className:i()("".concat(e,"-item-label"),d({},"".concat(e,"-item-no-colon"),!b)),style:s},m),(p||0===p)&&o.createElement("span",{className:i()("".concat(e,"-item-content")),style:g},p)))};function u(n,t,e){var c=t.colon,i=t.prefixCls,a=t.bordered,r=e.component,l=e.type,s=e.showLabel,d=e.showContent,h=e.labelStyle,u=e.contentStyle;return n.map((function(n,t){var e=n.props,m=e.label,p=e.children,b=e.prefixCls,f=void 0===b?i:b,w=e.className,S=e.style,y=e.labelStyle,M=e.contentStyle,v=e.span,x=void 0===v?1:v,I=n.key;return"string"==typeof r?o.createElement(g,{key:"".concat(l,"-").concat(I||t),className:w,style:S,labelStyle:Object.assign(Object.assign({},h),y),contentStyle:Object.assign(Object.assign({},u),M),span:x,colon:c,component:r,itemPrefixCls:f,bordered:a,label:s?m:null,content:d?p:null}):[o.createElement(g,{key:"label-".concat(I||t),className:w,style:Object.assign(Object.assign(Object.assign({},h),S),y),span:1,colon:c,component:r[0],itemPrefixCls:f,bordered:a,label:m}),o.createElement(g,{key:"content-".concat(I||t),className:w,style:Object.assign(Object.assign(Object.assign({},u),S),M),span:2*x-1,component:r[1],itemPrefixCls:f,bordered:a,content:p})]}))}const m=function(n){var t=o.useContext(I),e=n.prefixCls,c=n.vertical,i=n.row,a=n.index,r=n.bordered;return c?o.createElement(o.Fragment,null,o.createElement("tr",{key:"label-".concat(a),className:"".concat(e,"-row")},u(i,n,Object.assign({component:"th",type:"label",showLabel:!0},t))),o.createElement("tr",{key:"content-".concat(a),className:"".concat(e,"-row")},u(i,n,Object.assign({component:"td",type:"content",showContent:!0},t)))):o.createElement("tr",{key:a,className:"".concat(e,"-row")},u(i,n,Object.assign({component:r?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))};var p=e(72061),b=e(29813),f=e(2418);function w(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var S=function(n){var t,e,c=n.componentCls,i=n.descriptionsExtraColor,a=n.descriptionItemPaddingBottom,o=n.descriptionsItemLabelColonMarginRight,r=n.descriptionsItemLabelColonMarginLeft,l=n.descriptionsTitleMarginBottom;return w({},c,Object.assign(Object.assign(Object.assign({},(0,f.Wf)(n)),function(n){var t,e=n.componentCls,c=n.descriptionsSmallPadding,i=n.descriptionsDefaultPadding,a=n.descriptionsMiddlePadding,o=n.descriptionsBg;return w({},"&".concat(e,"-bordered"),(w(t={},"".concat(e,"-view"),{border:"".concat(n.lineWidth,"px ").concat(n.lineType," ").concat(n.colorSplit),"> table":{tableLayout:"auto",borderCollapse:"collapse"}}),w(t,"".concat(e,"-item-label, ").concat(e,"-item-content"),{padding:i,borderInlineEnd:"".concat(n.lineWidth,"px ").concat(n.lineType," ").concat(n.colorSplit),"&:last-child":{borderInlineEnd:"none"}}),w(t,"".concat(e,"-item-label"),{backgroundColor:o,"&::after":{display:"none"}}),w(t,"".concat(e,"-row"),{borderBottom:"".concat(n.lineWidth,"px ").concat(n.lineType," ").concat(n.colorSplit),"&:last-child":{borderBottom:"none"}}),w(t,"&".concat(e,"-middle"),w({},"".concat(e,"-item-label, ").concat(e,"-item-content"),{padding:a})),w(t,"&".concat(e,"-small"),w({},"".concat(e,"-item-label, ").concat(e,"-item-content"),{padding:c})),t))}(n)),(w(e={},"&-rtl",{direction:"rtl"}),w(e,"".concat(c,"-header"),{display:"flex",alignItems:"center",marginBottom:l}),w(e,"".concat(c,"-title"),Object.assign(Object.assign({},f.vS),{flex:"auto",color:n.colorText,fontWeight:n.fontWeightStrong,fontSize:n.fontSizeLG,lineHeight:n.lineHeightLG})),w(e,"".concat(c,"-extra"),{marginInlineStart:"auto",color:i,fontSize:n.fontSize}),w(e,"".concat(c,"-view"),{width:"100%",borderRadius:n.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}}),w(e,"".concat(c,"-row"),{"> th, > td":{paddingBottom:a},"&:last-child":{borderBottom:"none"}}),w(e,"".concat(c,"-item-label"),w({color:n.colorText,fontWeight:"normal",fontSize:n.fontSize,lineHeight:n.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:"".concat(r,"px ").concat(o,"px")}},"&".concat(c,"-item-no-colon::after"),{content:'""'})),w(e,"".concat(c,"-item-no-label"),{"&::after":{margin:0,content:'""'}}),w(e,"".concat(c,"-item-content"),{display:"table-cell",flex:1,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"}),w(e,"".concat(c,"-item"),{paddingBottom:0,verticalAlign:"top","&-container":(t={display:"flex"},w(t,"".concat(c,"-item-label"),{display:"inline-flex",alignItems:"baseline"}),w(t,"".concat(c,"-item-content"),{display:"inline-flex",alignItems:"baseline"}),t)}),w(e,"&-middle",w({},"".concat(c,"-row"),{"> th, > td":{paddingBottom:n.paddingSM}})),w(e,"&-small",w({},"".concat(c,"-row"),{"> th, > td":{paddingBottom:n.paddingXS}})),e)))};const y=(0,p.Z)("Descriptions",(function(n){var t=n.colorFillAlter,e=n.fontSizeSM*n.lineHeightSM,c=n.colorText,i="".concat(n.paddingXS,"px ").concat(n.padding,"px"),a="".concat(n.padding,"px ").concat(n.paddingLG,"px"),o="".concat(n.paddingSM,"px ").concat(n.paddingLG,"px"),r=n.padding,l=n.marginXS,s=n.marginXXS/2,d=(0,b.TS)(n,{descriptionsBg:t,descriptionsTitleMarginBottom:e,descriptionsExtraColor:c,descriptionItemPaddingBottom:r,descriptionsSmallPadding:i,descriptionsDefaultPadding:a,descriptionsMiddlePadding:o,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:s});return[S(d)]}));function M(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,c=new Array(t);e<t;e++)c[e]=n[e];return c}function v(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function x(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var c,i,a=[],o=!0,r=!1;try{for(e=e.call(n);!(o=(c=e.next()).done)&&(a.push(c.value),!t||a.length!==t);o=!0);}catch(n){r=!0,i=n}finally{try{o||null==e.return||e.return()}finally{if(r)throw i}}return a}}(n,t)||function(n,t){if(n){if("string"==typeof n)return M(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?M(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I=o.createContext({}),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function k(n,t,e){var c=n;return(void 0===t||t>e)&&(c=(0,l.Tm)(n,{span:e})),c}function P(n){var t=n.prefixCls,e=n.title,c=n.extra,l=n.column,d=void 0===l?C:l,h=n.colon,g=void 0===h||h,u=n.bordered,p=n.layout,b=n.children,f=n.className,w=n.style,S=n.size,M=n.labelStyle,P=n.contentStyle,E=o.useContext(r.E_),O=E.getPrefixCls,z=E.direction,j=O("descriptions",t),N=x(o.useState({}),2),H=N[0],L=N[1],T=function(n,t){if("number"==typeof n)return n;if("object"==typeof n)for(var e=0;e<s.c.length;e++){var c=s.c[e];if(t[c]&&void 0!==n[c])return n[c]||C[c]}return 3}(d,H),A=x(y(j),2),Z=A[0],B=A[1],W=(0,s.Z)();o.useEffect((function(){var n=W.subscribe((function(n){"object"==typeof d&&L(n)}));return function(){W.unsubscribe(n)}}),[]);var D,X=function(n,t){var e=(0,a.Z)(n).filter((function(n){return n})),c=[],i=[],o=t;return e.forEach((function(n,a){var r,l=null===(r=n.props)||void 0===r?void 0:r.span,s=l||1;if(a===e.length-1)return i.push(k(n,l,o)),void c.push(i);s<o?(o-=s,i.push(n)):(i.push(k(n,s,o)),c.push(i),o=t,i=[])})),c}(b,T),R=o.useMemo((function(){return{labelStyle:M,contentStyle:P}}),[M,P]);return Z(o.createElement(I.Provider,{value:R},o.createElement("div",{className:i()(j,(D={},v(D,"".concat(j,"-").concat(S),S&&"default"!==S),v(D,"".concat(j,"-bordered"),!!u),v(D,"".concat(j,"-rtl"),"rtl"===z),D),f,B),style:w},(e||c)&&o.createElement("div",{className:"".concat(j,"-header")},e&&o.createElement("div",{className:"".concat(j,"-title")},e),c&&o.createElement("div",{className:"".concat(j,"-extra")},c)),o.createElement("div",{className:"".concat(j,"-view")},o.createElement("table",null,o.createElement("tbody",null,X.map((function(n,t){return o.createElement(m,{key:t,index:t,colon:g,prefixCls:j,vertical:"vertical"===p,bordered:u,row:n})}))))))))}P.Item=function(n){return n.children};const E=P},92720:(n,t,e)=>{e.d(t,{Z:()=>L});var c=e(13239),i=e(24177),a=e.n(i),o=e(96880),r=e(46504),l=e(1824),s=e(10191),d=e(63505),h=e(16243),g=e(80768),u=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m=d.forwardRef((function(n,t){var e,c=function(n,t){var e=E;return w||(O(e=n),null==x||x(e,t)),e},i=n.prefixCls,m=void 0===i?"rc-switch":i,p=n.className,b=n.checked,f=n.defaultChecked,w=n.disabled,S=n.loadingIcon,y=n.checkedChildren,M=n.unCheckedChildren,v=n.onClick,x=n.onChange,I=n.onKeyDown,C=(0,s.Z)(n,u),k=(0,h.Z)(!1,{value:b,defaultValue:f}),P=(0,l.Z)(k,2),E=P[0],O=P[1],z=a()(m,p,(e={},(0,r.Z)(e,"".concat(m,"-checked"),E),(0,r.Z)(e,"".concat(m,"-disabled"),w),e));return d.createElement("button",(0,o.Z)({},C,{type:"button",role:"switch","aria-checked":E,disabled:w,className:z,ref:t,onKeyDown:function(n){n.which===g.Z.LEFT?c(!1,n):n.which===g.Z.RIGHT&&c(!0,n),null==I||I(n)},onClick:function(n){var t=c(!E,n);null==v||v(t,n)}}),S,d.createElement("span",{className:"".concat(m,"-inner")},d.createElement("span",{className:"".concat(m,"-inner-checked")},y),d.createElement("span",{className:"".concat(m,"-inner-unchecked")},M)))}));m.displayName="Switch";const p=m;var b=e(68804),f=e(9785),w=e(40052),S=e(73793),y=e(56336),M=e(72061),v=e(29813),x=e(2418);function I(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var C=function(n){var t,e,c,i,a,o=n.componentCls,r="".concat(o,"-inner");return I({},o,I({},"&".concat(o,"-small"),(I(a={minWidth:n.switchMinWidthSM,height:n.switchHeightSM,lineHeight:"".concat(n.switchHeightSM,"px")},"".concat(o,"-inner"),(I(t={},"".concat(r,"-checked"),{marginInlineStart:"calc(".concat(n.switchInnerMarginMinSM,"px - 100% + ").concat(n.switchPinSizeSM+2*n.switchPadding,"px)"),marginInlineEnd:"calc(".concat(n.switchInnerMarginMaxSM,"px + 100% - ").concat(n.switchPinSizeSM+2*n.switchPadding,"px)")}),I(t,"".concat(r,"-unchecked"),{marginTop:-n.switchHeightSM,marginInlineStart:n.switchInnerMarginMaxSM,marginInlineEnd:n.switchInnerMarginMinSM}),t)),I(a,"".concat(o,"-handle"),{width:n.switchPinSizeSM,height:n.switchPinSizeSM}),I(a,"".concat(o,"-loading-icon"),{top:(n.switchPinSizeSM-n.switchLoadingIconSize)/2,fontSize:n.switchLoadingIconSize}),I(a,"&".concat(o,"-checked"),(I(c={},"".concat(o,"-inner"),(I(e={},"".concat(r,"-checked"),{marginInlineStart:n.switchInnerMarginMinSM,marginInlineEnd:n.switchInnerMarginMaxSM}),I(e,"".concat(r,"-unchecked"),{marginInlineStart:"calc(".concat(n.switchInnerMarginMaxSM,"px + 100% - ").concat(n.switchPinSizeSM+2*n.switchPadding,"px)"),marginInlineEnd:"calc(".concat(n.switchInnerMarginMinSM,"px - 100% + ").concat(n.switchPinSizeSM+2*n.switchPadding,"px)")}),e)),I(c,"".concat(o,"-handle"),{insetInlineStart:"calc(100% - ".concat(n.switchPinSizeSM+n.switchPadding,"px)")}),c)),I(a,"&:not(".concat(o,"-disabled):active"),(I(i={},"&:not(".concat(o,"-checked) ").concat(r),I({},"".concat(r,"-unchecked"),{marginInlineStart:n.switchInnerMarginMaxSM+n.marginXXS/2,marginInlineEnd:n.switchInnerMarginMinSM-n.marginXXS/2})),I(i,"&".concat(o,"-checked ").concat(r),I({},"".concat(r,"-checked"),{marginInlineStart:n.switchInnerMarginMinSM-n.marginXXS/2,marginInlineEnd:n.switchInnerMarginMaxSM+n.marginXXS/2})),i)),a)))},k=function(n){var t,e=n.componentCls;return I({},e,(I(t={},"".concat(e,"-loading-icon").concat(n.iconCls),{position:"relative",top:(n.switchPinSize-n.fontSize)/2,color:n.switchLoadingIconColor,verticalAlign:"top"}),I(t,"&".concat(e,"-checked ").concat(e,"-loading-icon"),{color:n.switchColor}),t))},P=function(n){var t,e,c=n.componentCls,i="".concat(c,"-handle");return I({},c,(I(e={},i,{position:"absolute",top:n.switchPadding,insetInlineStart:n.switchPadding,width:n.switchPinSize,height:n.switchPinSize,transition:"all ".concat(n.switchDuration," ease-in-out"),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n.colorWhite,borderRadius:n.switchPinSize/2,boxShadow:n.switchHandleShadow,transition:"all ".concat(n.switchDuration," ease-in-out"),content:'""'}}),I(e,"&".concat(c,"-checked ").concat(i),{insetInlineStart:"calc(100% - ".concat(n.switchPinSize+n.switchPadding,"px)")}),I(e,"&:not(".concat(c,"-disabled):active"),(I(t={},"".concat(i,"::before"),{insetInlineEnd:n.switchHandleActiveInset,insetInlineStart:0}),I(t,"&".concat(c,"-checked ").concat(i,"::before"),{insetInlineEnd:0,insetInlineStart:n.switchHandleActiveInset}),t)),e))},E=function(n){var t,e,c,i,a=n.componentCls,o="".concat(a,"-inner");return I({},a,(I(i={},o,(I(t={display:"block",overflow:"hidden",borderRadius:100,height:"100%"},"".concat(o,"-checked, ").concat(o,"-unchecked"),{display:"block",color:n.colorTextLightSolid,fontSize:n.fontSizeSM,transition:"margin-inline-start ".concat(n.switchDuration," ease-in-out, margin-inline-end ").concat(n.switchDuration," ease-in-out"),pointerEvents:"none"}),I(t,"".concat(o,"-checked"),{marginInlineStart:"calc(".concat(n.switchInnerMarginMin,"px - 100% + ").concat(n.switchPinSize+2*n.switchPadding,"px)"),marginInlineEnd:"calc(".concat(n.switchInnerMarginMax,"px + 100% - ").concat(n.switchPinSize+2*n.switchPadding,"px)")}),I(t,"".concat(o,"-unchecked"),{marginTop:-n.switchHeight,marginInlineStart:n.switchInnerMarginMax,marginInlineEnd:n.switchInnerMarginMin}),t)),I(i,"&".concat(a,"-checked ").concat(o),(I(e={},"".concat(o,"-checked"),{marginInlineStart:n.switchInnerMarginMin,marginInlineEnd:n.switchInnerMarginMax}),I(e,"".concat(o,"-unchecked"),{marginInlineStart:"calc(".concat(n.switchInnerMarginMax,"px + 100% - ").concat(n.switchPinSize+2*n.switchPadding,"px)"),marginInlineEnd:"calc(".concat(n.switchInnerMarginMin,"px - 100% + ").concat(n.switchPinSize+2*n.switchPadding,"px)")}),e)),I(i,"&:not(".concat(a,"-disabled):active"),(I(c={},"&:not(".concat(a,"-checked) ").concat(o),I({},"".concat(o,"-unchecked"),{marginInlineStart:n.switchInnerMarginMax+2*n.switchPadding,marginInlineEnd:n.switchInnerMarginMin-2*n.switchPadding})),I(c,"&".concat(a,"-checked ").concat(o),I({},"".concat(o,"-checked"),{marginInlineStart:n.switchInnerMarginMin-2*n.switchPadding,marginInlineEnd:n.switchInnerMarginMax+2*n.switchPadding})),c)),i))},O=function(n){var t,e=n.componentCls;return I({},e,Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(n)),I({position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n.switchMinWidth,height:n.switchHeight,lineHeight:"".concat(n.switchHeight,"px"),verticalAlign:"middle",background:n.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all ".concat(n.motionDurationMid),userSelect:"none"},"&:hover:not(".concat(e,"-disabled)"),{background:n.colorTextTertiary})),(0,x.Qy)(n)),(I(t={},"&".concat(e,"-checked"),I({background:n.switchColor},"&:hover:not(".concat(e,"-disabled)"),{background:n.colorPrimaryHover})),I(t,"&".concat(e,"-loading, &").concat(e,"-disabled"),{cursor:"not-allowed",opacity:n.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}}),I(t,"&".concat(e,"-rtl"),{direction:"rtl"}),t)))};const z=(0,M.Z)("Switch",(function(n){var t=n.fontSize*n.lineHeight,e=n.controlHeight/2,c=t-4,i=e-4,a=(0,v.TS)(n,{switchMinWidth:2*c+8,switchHeight:t,switchDuration:n.motionDurationMid,switchColor:n.colorPrimary,switchDisabledOpacity:n.opacityLoading,switchInnerMarginMin:c/2,switchInnerMarginMax:c+2+4,switchPadding:2,switchPinSize:c,switchBg:n.colorBgContainer,switchMinWidthSM:2*i+4,switchHeightSM:e,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+2+4,switchPinSizeSM:i,switchHandleShadow:"0 2px 4px 0 ".concat(new y.C("#00230b").setAlpha(.2).toRgbString()),switchLoadingIconSize:.75*n.fontSizeIcon,switchLoadingIconColor:"rgba(0, 0, 0, ".concat(n.opacityLoading,")"),switchHandleActiveInset:"-30%"});return[O(a),E(a),P(a),k(a),C(a)]}));function j(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,c=new Array(t);e<t;e++)c[e]=n[e];return c}function N(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var H=d.forwardRef((function(n,t){var e,i,o,r=n.prefixCls,l=n.size,s=n.disabled,h=n.loading,g=n.className,u=void 0===g?"":g,m=function(n,t){var e={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&t.indexOf(c)<0&&(e[c]=n[c]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(c=Object.getOwnPropertySymbols(n);i<c.length;i++)t.indexOf(c[i])<0&&Object.prototype.propertyIsEnumerable.call(n,c[i])&&(e[c[i]]=n[c[i]])}return e}(n,["prefixCls","size","disabled","loading","className"]),y=d.useContext(b.E_),M=y.getPrefixCls,v=y.direction,x=d.useContext(w.Z),I=d.useContext(f.Z),C=(null!=s?s:I)||h,k=M("switch",r),P=d.createElement("div",{className:"".concat(k,"-handle")},h&&d.createElement(c.Z,{className:"".concat(k,"-loading-icon")})),E=(i=z(k),o=2,function(n){if(Array.isArray(n))return n}(i)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var c,i,a=[],o=!0,r=!1;try{for(e=e.call(n);!(o=(c=e.next()).done)&&(a.push(c.value),!t||a.length!==t);o=!0);}catch(n){r=!0,i=n}finally{try{o||null==e.return||e.return()}finally{if(r)throw i}}return a}}(i,o)||function(n,t){if(n){if("string"==typeof n)return j(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?j(n,t):void 0}}(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),O=E[0],H=E[1],L=a()((N(e={},"".concat(k,"-small"),"small"===(l||x)),N(e,"".concat(k,"-loading"),h),N(e,"".concat(k,"-rtl"),"rtl"===v),e),u,H);return O(d.createElement(S.Z,null,d.createElement(p,Object.assign({},m,{prefixCls:k,className:L,disabled:C,ref:t,loadingIcon:P}))))}));H.__ANT_SWITCH=!0;const L=H}}]);