mirror of
https://github.com/owncast/owncast.git
synced 2025-01-09 10:07:34 +03:00
1 line
No EOL
24 KiB
JavaScript
Vendored
1 line
No EOL
24 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2659],{63606:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},o=n(42135),l=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:c}))};l.displayName="CheckOutlined";var i=r.forwardRef(l)},80882:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},o=n(42135),l=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:c}))};l.displayName="DownOutlined";var i=r.forwardRef(l)},99611:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=n(42135),l=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:c}))};l.displayName="EyeOutlined";var i=r.forwardRef(l)},68795:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},o=n(42135),l=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:c}))};l.displayName="SearchOutlined";var i=r.forwardRef(l)},54907:function(e,t,n){n.d(t,{Z:function(){return M}});var a=n(87462),r=n(4942),c=n(18073),o=n(94184),l=n.n(o),i=n(74902),s=n(15671),u=n(43144),d=n(60136),f=n(33643),p=n(71002),v=n(50344),m=n(67294),y=n(96774),h=n.n(y),C=n(45987),Z=n(62874),x=n(97685),g=m.forwardRef(function(e,t){var n,a=e.prefixCls,c=e.forceRender,o=e.className,i=e.style,s=e.children,u=e.isActive,d=e.role,f=m.useState(u||c),p=(0,x.Z)(f,2),v=p[0],y=p[1];return(m.useEffect(function(){(c||u)&&y(!0)},[c,u]),v)?m.createElement("div",{ref:t,className:l()("".concat(a,"-content"),(n={},(0,r.Z)(n,"".concat(a,"-content-active"),u),(0,r.Z)(n,"".concat(a,"-content-inactive"),!u),n),o),style:i,role:d},m.createElement("div",{className:"".concat(a,"-content-box")},s)):null});g.displayName="PanelContent";var b=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],E=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var a=arguments.length,r=Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).onItemClick=function(){var t=e.props,n=t.onItemClick,a=t.panelKey;"function"==typeof n&&n(a)},e.handleKeyPress=function(t){("Enter"===t.key||13===t.keyCode||13===t.which)&&e.onItemClick()},e.renderIcon=function(){var t=e.props,n=t.showArrow,a=t.expandIcon,r=t.prefixCls,c=t.collapsible;if(!n)return null;var o="function"==typeof a?a(e.props):m.createElement("i",{className:"arrow"});return o&&m.createElement("div",{className:"".concat(r,"-expand-icon"),onClick:"header"===c||"icon"===c?e.onItemClick:null},o)},e.renderTitle=function(){var t=e.props,n=t.header,a=t.prefixCls,r=t.collapsible;return m.createElement("span",{className:"".concat(a,"-header-text"),onClick:"header"===r?e.onItemClick:null},n)},e}return(0,u.Z)(n,[{key:"shouldComponentUpdate",value:function(e){return!h()(this.props,e)}},{key:"render",value:function(){var e,t,n=this.props,c=n.className,o=n.id,i=n.style,s=n.prefixCls,u=n.headerClass,d=n.children,f=n.isActive,p=n.destroyInactivePanel,v=n.accordion,y=n.forceRender,h=n.openMotion,x=n.extra,E=n.collapsible,N=(0,C.Z)(n,b),w="disabled"===E,k="header"===E,P="icon"===E,O=l()((e={},(0,r.Z)(e,"".concat(s,"-item"),!0),(0,r.Z)(e,"".concat(s,"-item-active"),f),(0,r.Z)(e,"".concat(s,"-item-disabled"),w),e),c),z={className:l()("".concat(s,"-header"),(t={},(0,r.Z)(t,u,u),(0,r.Z)(t,"".concat(s,"-header-collapsible-only"),k),(0,r.Z)(t,"".concat(s,"-icon-collapsible-only"),P),t)),"aria-expanded":f,"aria-disabled":w,onKeyPress:this.handleKeyPress};return k||P||(z.onClick=this.onItemClick,z.role=v?"tab":"button",z.tabIndex=w?-1:0),delete N.header,delete N.panelKey,delete N.onItemClick,delete N.showArrow,delete N.expandIcon,m.createElement("div",(0,a.Z)({},N,{className:O,style:i,id:o}),m.createElement("div",z,this.renderIcon(),this.renderTitle(),null!=x&&"boolean"!=typeof x&&m.createElement("div",{className:"".concat(s,"-extra")},x)),m.createElement(Z.Z,(0,a.Z)({visible:f,leavedClassName:"".concat(s,"-content-hidden")},h,{forceRender:y,removeOnLeave:p}),function(e,t){var n=e.className,a=e.style;return m.createElement(g,{ref:t,prefixCls:s,className:n,style:a,isActive:f,forceRender:y,role:v?"tabpanel":null},d)}))}}]),n}(m.Component);function N(e){var t=e;if(!Array.isArray(t)){var n=(0,p.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}E.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var w=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){(0,s.Z)(this,n),(a=t.call(this,e)).onClickItem=function(e){var t=a.state.activeKey;if(a.props.accordion)t=t[0]===e?[]:[e];else{var n=(t=(0,i.Z)(t)).indexOf(e);n>-1?t.splice(n,1):t.push(e)}a.setActiveKey(t)},a.getNewChild=function(e,t){if(!e)return null;var n=a.state.activeKey,r=a.props,c=r.prefixCls,o=r.openMotion,l=r.accordion,i=r.destroyInactivePanel,s=r.expandIcon,u=r.collapsible,d=e.key||String(t),f=e.props,p=f.header,v=f.headerClass,y=f.destroyInactivePanel,h=f.collapsible,C=!1;C=l?n[0]===d:n.indexOf(d)>-1;var Z=null!=h?h:u,x={key:d,panelKey:d,header:p,headerClass:v,isActive:C,prefixCls:c,destroyInactivePanel:null!=y?y:i,openMotion:o,accordion:l,children:e.props.children,onItemClick:"disabled"===Z?null:a.onClickItem,expandIcon:s,collapsible:Z};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),m.cloneElement(e,x))},a.getItems=function(){var e=a.props.children;return(0,v.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var a,r=e.activeKey,c=e.defaultActiveKey;return"activeKey"in e&&(c=r),a.state={activeKey:N(c)},a}return(0,u.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return!h()(this.props,e)||!h()(this.state,t)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.className,c=t.style,o=t.accordion,i=l()((e={},(0,r.Z)(e,n,!0),(0,r.Z)(e,a,!!a),e));return m.createElement("div",{className:i,style:c,role:o?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=N(e.activeKey)),t}}]),n}(m.Component);w.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},w.Panel=E,w.Panel;var k=n(98423),P=n(53124),O=n(33603),z=n(96159),I=function(e){var t,n,o=m.useContext(P.E_),i=o.getPrefixCls,s=o.direction,u=e.prefixCls,d=e.className,f=e.bordered,p=e.ghost,y=e.expandIconPosition,h=void 0===y?"start":y,C=i("collapse",u),Z=m.useMemo(function(){return"left"===h?"start":"right"===h?"end":h},[h]),x=l()("".concat(C,"-icon-position-").concat(Z),(n={},(0,r.Z)(n,"".concat(C,"-borderless"),!(void 0===f||f)),(0,r.Z)(n,"".concat(C,"-rtl"),"rtl"===s),(0,r.Z)(n,"".concat(C,"-ghost"),!!p),n),void 0===d?"":d),g=(0,a.Z)((0,a.Z)({},O.ZP),{motionAppear:!1,leavedClassName:"".concat(C,"-content-hidden")});return m.createElement(w,(0,a.Z)({openMotion:g},e,{expandIcon:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.expandIcon,a=n?n(t):m.createElement(c.Z,{rotate:t.isActive?90:void 0});return(0,z.Tm)(a,function(){return{className:l()(a.props.className,"".concat(C,"-arrow"))}})},prefixCls:C,className:x}),(t=e.children,(0,v.Z)(t).map(function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var r=e.key||String(t),c=e.props,o=c.disabled,l=c.collapsible,i=(0,a.Z)((0,a.Z)({},(0,k.Z)(e.props,["disabled"])),{key:r,collapsible:null!=l?l:o?"disabled":void 0});return(0,z.Tm)(e,i)}return e})))};I.Panel=function(e){var t=m.useContext(P.E_).getPrefixCls,n=e.prefixCls,c=e.className,o=e.showArrow,i=t("collapse",n),s=l()((0,r.Z)({},"".concat(i,"-no-arrow"),!(void 0===o||o)),void 0===c?"":c);return m.createElement(w.Panel,(0,a.Z)({},e,{prefixCls:i,className:s}))};var M=I},79531:function(e,t,n){n.d(t,{Z:function(){return j}});var a=n(87462),r=n(4942),c=n(94184),o=n.n(c),l=n(67294),i=n(53124),s=n(65223),u=n(82586),d=n(97685),f=n(71002),p=n(1413),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},m=n(42135),y=function(e,t){return l.createElement(m.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:t,icon:v}))};y.displayName="EyeInvisibleOutlined";var h=l.forwardRef(y),C=n(99611),Z=n(98423),x=n(42550),g=n(72922),b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},E=function(e){return e?l.createElement(C.Z,null):l.createElement(h,null)},N={click:"onClick",hover:"onMouseOver"},w=l.forwardRef(function(e,t){var n=e.visibilityToggle,c=void 0===n||n,s="object"===(0,f.Z)(c)&&void 0!==c.visible,p=(0,l.useState)(function(){return!!s&&c.visible}),v=(0,d.Z)(p,2),m=v[0],y=v[1],h=(0,l.useRef)(null);l.useEffect(function(){s&&y(c.visible)},[s,c]);var C=(0,g.Z)(h),w=function(){e.disabled||(m&&C(),y(function(e){var t,n=!e;return"object"===(0,f.Z)(c)&&(null===(t=c.onVisibleChange)||void 0===t||t.call(c,n)),n}))},k=function(t){var n,a=e.action,c=e.iconRender,o=N[void 0===a?"click":a]||"",i=(void 0===c?E:c)(m),s=(n={},(0,r.Z)(n,o,w),(0,r.Z)(n,"className","".concat(t,"-icon")),(0,r.Z)(n,"key","passwordIcon"),(0,r.Z)(n,"onMouseDown",function(e){e.preventDefault()}),(0,r.Z)(n,"onMouseUp",function(e){e.preventDefault()}),n);return l.cloneElement(l.isValidElement(i)?i:l.createElement("span",null,i),s)};return l.createElement(i.C,null,function(n){var i=n.getPrefixCls,s=e.className,d=e.prefixCls,f=e.inputPrefixCls,p=e.size,v=b(e,["className","prefixCls","inputPrefixCls","size"]),y=i("input",f),C=i("input-password",d),g=c&&k(C),E=o()(C,s,(0,r.Z)({},"".concat(C,"-").concat(p),!!p)),N=(0,a.Z)((0,a.Z)({},(0,Z.Z)(v,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:E,prefixCls:y,suffix:g});return p&&(N.size=p),l.createElement(u.ZP,(0,a.Z)({ref:(0,x.sQ)(t,h)},N))})}),k=n(68795),P=n(71577),O=n(97647),z=n(4173),I=n(96159),M=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},A=l.forwardRef(function(e,t){var n,c,s=e.prefixCls,d=e.inputPrefixCls,f=e.className,p=e.size,v=e.suffix,m=e.enterButton,y=void 0!==m&&m,h=e.addonAfter,C=e.loading,Z=e.disabled,g=e.onSearch,b=e.onChange,E=e.onCompositionStart,N=e.onCompositionEnd,w=M(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),A=l.useContext(i.E_),S=A.getPrefixCls,R=A.direction,j=l.useContext(O.Z),K=l.useRef(!1),_=S("input-search",s),q=S("input",d),B=(0,z.ri)(_,R).compactSize||p||j,T=l.useRef(null),L=function(e){var t;document.activeElement===(null===(t=T.current)||void 0===t?void 0:t.input)&&e.preventDefault()},D=function(e){var t,n;g&&g(null===(n=null===(t=T.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},F="boolean"==typeof y?l.createElement(k.Z,null):null,Q="".concat(_,"-button"),U=y||{},H=U.type&&!0===U.type.__ANT_BUTTON;c=H||"button"===U.type?(0,I.Tm)(U,(0,a.Z)({onMouseDown:L,onClick:function(e){var t,n;null===(n=null===(t=null==U?void 0:U.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),D(e)},key:"enterButton"},H?{className:Q,size:B}:{})):l.createElement(P.Z,{className:Q,type:y?"primary":void 0,size:B,disabled:Z,key:"enterButton",onMouseDown:L,onClick:D,loading:C,icon:F},y),h&&(c=[c,(0,I.Tm)(h,{key:"addonAfter"})]);var V=o()(_,(n={},(0,r.Z)(n,"".concat(_,"-rtl"),"rtl"===R),(0,r.Z)(n,"".concat(_,"-").concat(B),!!B),(0,r.Z)(n,"".concat(_,"-with-button"),!!y),n),f);return l.createElement(u.ZP,(0,a.Z)({ref:(0,x.sQ)(T,t),onPressEnter:function(e){K.current||C||D(e)}},w,{size:B,onCompositionStart:function(e){K.current=!0,null==E||E(e)},onCompositionEnd:function(e){K.current=!1,null==N||N(e)},prefixCls:q,addonAfter:c,suffix:v,onChange:function(e){e&&e.target&&"click"===e.type&&g&&g(e.target.value,e),b&&b(e)},className:V,disabled:Z}))}),S=n(80173),R=u.ZP;R.Group=function(e){var t,n=(0,l.useContext)(i.E_),c=n.getPrefixCls,u=n.direction,d=e.prefixCls,f=e.className,p=c("input-group",d),v=o()(p,(t={},(0,r.Z)(t,"".concat(p,"-lg"),"large"===e.size),(0,r.Z)(t,"".concat(p,"-sm"),"small"===e.size),(0,r.Z)(t,"".concat(p,"-compact"),e.compact),(0,r.Z)(t,"".concat(p,"-rtl"),"rtl"===u),t),void 0===f?"":f),m=(0,l.useContext)(s.aM),y=(0,l.useMemo)(function(){return(0,a.Z)((0,a.Z)({},m),{isFormItemInput:!1})},[m]);return l.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(s.aM.Provider,{value:y},e.children))},R.Search=A,R.TextArea=S.Z,R.Password=w;var j=R},26303:function(e,t,n){n.d(t,{Z:function(){return b}});var a=n(4942),r=n(87462),c=n(71002),o=n(94184),l=n.n(o),i=n(67294),s=n(53124),u=n(98423),d=function(e){var t,n,c=e.prefixCls,o=e.className,s=e.style,u=e.size,d=e.shape,f=l()((t={},(0,a.Z)(t,"".concat(c,"-lg"),"large"===u),(0,a.Z)(t,"".concat(c,"-sm"),"small"===u),t)),p=l()((n={},(0,a.Z)(n,"".concat(c,"-circle"),"circle"===d),(0,a.Z)(n,"".concat(c,"-square"),"square"===d),(0,a.Z)(n,"".concat(c,"-round"),"round"===d),n)),v=i.useMemo(function(){return"number"==typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}},[u]);return i.createElement("span",{className:l()(c,f,p,o),style:(0,r.Z)((0,r.Z)({},v),s)})},f=n(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},v=n(42135),m=function(e,t){return i.createElement(v.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:t,icon:p}))};m.displayName="DotChartOutlined";var y=i.forwardRef(m),h=n(74902),C=function(e){var t=function(t){var n=e.width,a=e.rows;return Array.isArray(n)?n[t]:(void 0===a?2:a)-1===t?n:void 0},n=e.prefixCls,a=e.className,r=e.style,c=e.rows,o=(0,h.Z)(Array(c)).map(function(e,n){return i.createElement("li",{key:n,style:{width:t(n)}})});return i.createElement("ul",{className:l()(n,a),style:r},o)},Z=function(e){var t=e.prefixCls,n=e.className,a=e.width,c=e.style;return i.createElement("h3",{className:l()(t,n),style:(0,r.Z)({width:a},c)})};function x(e){return e&&"object"===(0,c.Z)(e)?e:{}}var g=function(e){var t=e.prefixCls,n=e.loading,c=e.className,o=e.style,u=e.children,f=e.avatar,p=void 0!==f&&f,v=e.title,m=void 0===v||v,y=e.paragraph,h=void 0===y||y,g=e.active,b=e.round,E=i.useContext(s.E_),N=E.getPrefixCls,w=E.direction,k=N("skeleton",t);if(n||!("loading"in e)){var P=!!p,O=!!m,z=!!h;if(P){var I=(0,r.Z)((0,r.Z)({prefixCls:"".concat(k,"-avatar")},O&&!z?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),x(p));A=i.createElement("div",{className:"".concat(k,"-header")},i.createElement(d,(0,r.Z)({},I)))}if(O||z){if(O){var M,A,S,R,j,K=(0,r.Z)((0,r.Z)({prefixCls:"".concat(k,"-title")},!P&&z?{width:"38%"}:P&&z?{width:"50%"}:{}),x(m));R=i.createElement(Z,(0,r.Z)({},K))}if(z){var _,q=(0,r.Z)((0,r.Z)({prefixCls:"".concat(k,"-paragraph")},(_={},P&&O||(_.width="61%"),!P&&O?_.rows=3:_.rows=2,_)),x(h));j=i.createElement(C,(0,r.Z)({},q))}S=i.createElement("div",{className:"".concat(k,"-content")},R,j)}var B=l()(k,(M={},(0,a.Z)(M,"".concat(k,"-with-avatar"),P),(0,a.Z)(M,"".concat(k,"-active"),g),(0,a.Z)(M,"".concat(k,"-rtl"),"rtl"===w),(0,a.Z)(M,"".concat(k,"-round"),b),M),c);return i.createElement("div",{className:B,style:o},A,S)}return void 0!==u?u:null};g.Button=function(e){var t,n=e.prefixCls,c=e.className,o=e.active,f=e.block,p=e.size,v=(0,i.useContext(s.E_).getPrefixCls)("skeleton",n),m=(0,u.Z)(e,["prefixCls"]),y=l()(v,"".concat(v,"-element"),(t={},(0,a.Z)(t,"".concat(v,"-active"),o),(0,a.Z)(t,"".concat(v,"-block"),void 0!==f&&f),t),c);return i.createElement("div",{className:y},i.createElement(d,(0,r.Z)({prefixCls:"".concat(v,"-button"),size:void 0===p?"default":p},m)))},g.Avatar=function(e){var t=e.prefixCls,n=e.className,c=e.active,o=e.shape,f=e.size,p=(0,i.useContext(s.E_).getPrefixCls)("skeleton",t),v=(0,u.Z)(e,["prefixCls","className"]),m=l()(p,"".concat(p,"-element"),(0,a.Z)({},"".concat(p,"-active"),c),n);return i.createElement("div",{className:m},i.createElement(d,(0,r.Z)({prefixCls:"".concat(p,"-avatar"),shape:void 0===o?"circle":o,size:void 0===f?"default":f},v)))},g.Input=function(e){var t,n=e.prefixCls,c=e.className,o=e.active,f=e.block,p=e.size,v=(0,i.useContext(s.E_).getPrefixCls)("skeleton",n),m=(0,u.Z)(e,["prefixCls"]),y=l()(v,"".concat(v,"-element"),(t={},(0,a.Z)(t,"".concat(v,"-active"),o),(0,a.Z)(t,"".concat(v,"-block"),f),t),c);return i.createElement("div",{className:y},i.createElement(d,(0,r.Z)({prefixCls:"".concat(v,"-input"),size:void 0===p?"default":p},m)))},g.Image=function(e){var t=e.prefixCls,n=e.className,r=e.style,c=e.active,o=(0,i.useContext(s.E_).getPrefixCls)("skeleton",t),u=l()(o,"".concat(o,"-element"),(0,a.Z)({},"".concat(o,"-active"),c),n);return i.createElement("div",{className:u},i.createElement("div",{className:l()("".concat(o,"-image"),n),style:r},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(o,"-image-svg")},i.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(o,"-image-path")}))))},g.Node=function(e){var t=e.prefixCls,n=e.className,r=e.style,c=e.active,o=e.children,u=(0,i.useContext(s.E_).getPrefixCls)("skeleton",t),d=l()(u,"".concat(u,"-element"),(0,a.Z)({},"".concat(u,"-active"),c),n),f=null!=o?o:i.createElement(y,null);return i.createElement("div",{className:d},i.createElement("div",{className:l()("".concat(u,"-image"),n),style:r},f))};var b=g},20550:function(e,t,n){n.d(t,{Z:function(){return Z}});var a=n(4942),r=n(87462),c=n(97685),o=n(97937),l=n(94184),i=n.n(l),s=n(98423),u=n(67294),d=n(53124),f=n(98787),p=n(68349),v=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},m=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},y=RegExp("^(".concat(f.Y.join("|"),")(-inverse)?$")),h=RegExp("^(".concat(f.E.join("|"),")$")),C=u.forwardRef(function(e,t){var n,l=e.prefixCls,f=e.className,v=e.style,C=e.children,Z=e.icon,x=e.color,g=e.onClose,b=e.closeIcon,E=e.closable,N=m(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),w=u.useContext(d.E_),k=w.getPrefixCls,P=w.direction,O=u.useState(!0),z=(0,c.Z)(O,2),I=z[0],M=z[1];u.useEffect(function(){"visible"in N&&M(N.visible)},[N.visible]);var A=function(){return!!x&&(y.test(x)||h.test(x))},S=(0,r.Z)({backgroundColor:x&&!A()?x:void 0},v),R=A(),j=k("tag",l),K=i()(j,(n={},(0,a.Z)(n,"".concat(j,"-").concat(x),R),(0,a.Z)(n,"".concat(j,"-has-color"),x&&!R),(0,a.Z)(n,"".concat(j,"-hidden"),!I),(0,a.Z)(n,"".concat(j,"-rtl"),"rtl"===P),n),f),_=function(e){e.stopPropagation(),null==g||g(e),!e.defaultPrevented&&("visible"in N||M(!1))},q="onClick"in N||C&&"a"===C.type,B=(0,s.Z)(N,["visible"]),T=Z||null,L=T?u.createElement(u.Fragment,null,T,u.createElement("span",null,C)):C,D=u.createElement("span",(0,r.Z)({},B,{ref:t,className:K,style:S}),L,void 0!==E&&E?b?u.createElement("span",{className:"".concat(j,"-close-icon"),onClick:_},b):u.createElement(o.Z,{className:"".concat(j,"-close-icon"),onClick:_}):null);return q?u.createElement(p.Z,null,D):D});C.CheckableTag=function(e){var t,n=e.prefixCls,c=e.className,o=e.checked,l=e.onChange,s=e.onClick,f=v(e,["prefixCls","className","checked","onChange","onClick"]),p=(0,u.useContext(d.E_).getPrefixCls)("tag",n),m=i()(p,(t={},(0,a.Z)(t,"".concat(p,"-checkable"),!0),(0,a.Z)(t,"".concat(p,"-checkable-checked"),o),t),c);return u.createElement("span",(0,r.Z)({},f,{className:m,onClick:function(e){null==l||l(!o),null==s||s(e)}}))};var Z=C},79370:function(e,t,n){n.d(t,{G:function(){return o}});var a=n(98924),r=function(e){if((0,a.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},c=function(e,t){if(!r(e))return!1;var n=document.createElement("div"),a=n.style[e];return n.style[e]=t,n.style[e]!==a};function o(e,t){return Array.isArray(e)||void 0===t?r(e):c(e,t)}}}]); |