mirror of
https://github.com/owncast/owncast.git
synced 2025-01-09 01:57:43 +03:00
1 line
No EOL
16 KiB
JavaScript
Vendored
1 line
No EOL
16 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2118],{25330:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={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"}},71961:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,r=(n=o(79686))&&n.__esModule?n:{default:n};e.default=r,t.exports=r},79686:function(t,e,o){"use strict";var n=o(64836),r=o(18698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(o(42122)),l=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var o=f(e);if(o&&o.has(t))return o.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var i=a?Object.getOwnPropertyDescriptor(t,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=t[l]}return n.default=t,o&&o.set(t,n),n}(o(67294)),i=n(o(25330)),u=n(o(92074));function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:e})(t)}var c=function(t,e){return l.createElement(u.default,(0,a.default)((0,a.default)({},t),{},{ref:e,icon:i.default}))};c.displayName="CheckOutlined";var s=l.forwardRef(c);e.default=s},45471:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PresetStatusColorTypes=e.PresetColorTypes=void 0;var n=o(66764),r=(0,n.tuple)("success","processing","error","default","warning");e.PresetStatusColorTypes=r;var a=(0,n.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");e.PresetColorTypes=a},53683:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTransitionName=e.getTransitionDirection=e.default=void 0;var n=o(66764),r=function(){return{height:0,opacity:0}},a=function(t){return{height:t.scrollHeight,opacity:1}},l=function(t,e){return(null==e?void 0:e.deadline)===!0||"height"===e.propertyName};(0,n.tuple)("bottomLeft","bottomRight","topLeft","topRight"),e.getTransitionDirection=function(t){return void 0!==t&&("topLeft"===t||"topRight"===t)?"slide-down":"slide-up"},e.getTransitionName=function(t,e,o){return void 0!==o?o:"".concat(t,"-").concat(e)},e.default={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:a,onEnterActive:a,onLeaveStart:function(t){return{height:t?t.offsetHeight:0}},onLeaveActive:r,onAppearEnd:l,onEnterEnd:l,onLeaveEnd:l,motionDeadline:500}},74132:function(t,e,o){"use strict";var n=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.arrowWidth,o=void 0===e?4:e,n=t.horizontalArrowShift,l=void 0===n?16:n,i=t.verticalArrowShift,c=void 0===i?8:i,s=t.autoAdjustOverflow,d=t.arrowPointAtCenter,p={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(l+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(c+o)]},topRight:{points:["br","tc"],offset:[l+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(c+o)]},bottomRight:{points:["tr","bc"],offset:[l+o,4]},rightBottom:{points:["bl","cr"],offset:[4,c+o]},bottomLeft:{points:["tl","bc"],offset:[-(l+o),4]},leftBottom:{points:["br","cl"],offset:[-4,c+o]}};return Object.keys(p).forEach(function(t){p[t]=d?(0,r.default)((0,r.default)({},p[t]),{overflow:f(s),targetOffset:u}):(0,r.default)((0,r.default)({},a.placements[t]),{overflow:f(s)}),p[t].ignoreShake=!0}),p},e.getOverflowOptions=f;var r=n(o(10434)),a=o(24375),l={adjustX:1,adjustY:1},i={adjustX:0,adjustY:0},u=[0,0];function f(t){return"boolean"==typeof t?t?l:i:(0,r.default)((0,r.default)({},i),t)}},47419:function(t,e,o){"use strict";var n=o(75263).default;Object.defineProperty(e,"__esModule",{value:!0}),e.cloneElement=function(t,e){return l(t,t,e)},e.isFragment=function(t){return t&&a(t)&&t.type===r.Fragment},e.isValidElement=void 0,e.replaceElement=l;var r=n(o(67294)),a=r.isValidElement;function l(t,e,o){return a(t)?r.cloneElement(t,"function"==typeof o?o(t.props||{}):o):e}e.isValidElement=a},66764:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tupleNum=e.tuple=void 0,e.tuple=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return e},e.tupleNum=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return e}},46549:function(t,e,o){"use strict";var n=o(75263).default,r=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.useCompactItemContext=e.default=e.SpaceCompactItemContext=e.NoCompactStyle=void 0;var a=r(o(10434)),l=r(o(38416)),i=r(o(94184)),u=r(o(45598)),f=n(o(67294)),c=o(31929),s=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(o[n[r]]=t[n[r]]);return o},d=f.createContext(null);e.SpaceCompactItemContext=d,e.useCompactItemContext=function(t,e){var o=f.useContext(d),n=f.useMemo(function(){if(!o)return"";var n,r=o.compactDirection,a=o.isFirstItem,u=o.isLastItem,f="vertical"===r?"-vertical-":"-";return(0,i.default)((n={},(0,l.default)(n,"".concat(t,"-compact").concat(f,"item"),!0),(0,l.default)(n,"".concat(t,"-compact").concat(f,"first-item"),a),(0,l.default)(n,"".concat(t,"-compact").concat(f,"last-item"),u),(0,l.default)(n,"".concat(t,"-compact").concat(f,"item-rtl"),"rtl"===e),n))},[t,e,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:n}},e.NoCompactStyle=function(t){var e=t.children;return f.createElement(d.Provider,{value:null},e)};var p=function(t){var e=t.children,o=s(t,["children"]);return f.createElement(d.Provider,{value:o},e)};e.default=function(t){var e,o=f.useContext(c.ConfigContext),n=o.getPrefixCls,r=o.direction,v=t.size,m=void 0===v?"middle":v,y=t.direction,g=t.block,b=t.prefixCls,h=t.className,O=t.children,C=s(t,["size","direction","block","prefixCls","className","children"]),w=n("space-compact",b),_=(0,i.default)(w,(e={},(0,l.default)(e,"".concat(w,"-rtl"),"rtl"===r),(0,l.default)(e,"".concat(w,"-block"),g),(0,l.default)(e,"".concat(w,"-vertical"),"vertical"===y),e),h),P=f.useContext(d),E=(0,u.default)(O),j=f.useMemo(function(){return E.map(function(t,e){var o=t&&t.key||"".concat(w,"-item-").concat(e);return f.createElement(p,{key:o,compactSize:m,compactDirection:y,isFirstItem:0===e&&(!P||(null==P?void 0:P.isFirstItem)),isLastItem:e===E.length-1&&(!P||(null==P?void 0:P.isLastItem))},t)})},[m,E,P]);return 0===E.length?null:f.createElement("div",(0,a.default)({className:_},C),j)}},94055:function(t,e,o){"use strict";var n=o(75263).default,r=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(o(38416)),l=r(o(27424)),i=r(o(10434)),u=r(o(94184)),f=r(o(43763)),c=r(o(60869)),s=n(o(67294)),d=o(31929),p=o(45471),v=o(53683),m=r(o(74132)),y=o(47419);r(o(13594));var g=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(o[n[r]]=t[n[r]]);return o},b=function(t,e){var o={},n=(0,i.default)({},t);return e.forEach(function(e){t&&e in t&&(o[e]=t[e],delete n[e])}),{picked:o,omitted:n}},h=new RegExp("^(".concat(p.PresetColorTypes.join("|"),")(-inverse)?$")),O=s.forwardRef(function(t,e){var o,n,r,p=s.useContext(d.ConfigContext),O=p.getPopupContainer,C=p.getPrefixCls,w=p.direction,_=(0,c.default)(!1,{value:void 0!==t.open?t.open:t.visible,defaultValue:void 0!==t.defaultOpen?t.defaultOpen:t.defaultVisible}),P=(0,l.default)(_,2),E=P[0],j=P[1],N=function(){var e=t.title,o=t.overlay;return!e&&!o&&0!==e},M=function(){var e=t.builtinPlacements,o=t.arrowPointAtCenter,n=t.autoAdjustOverflow;return e||(0,m.default)({arrowPointAtCenter:void 0!==o&&o,autoAdjustOverflow:void 0===n||n})},x=t.getPopupContainer,k=t.placement,A=t.mouseEnterDelay,T=t.mouseLeaveDelay,S=g(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),L=t.prefixCls,R=t.openClassName,I=t.getTooltipContainer,D=t.overlayClassName,z=t.color,V=t.overlayInnerStyle,B=t.children,F=C("tooltip",L),Z=C(),U=E;!("open"in t)&&!("visible"in t)&&N()&&(U=!1);var W=function(t,e){var o=t.type;if((!0===o.__ANT_BUTTON||"button"===t.type)&&t.props.disabled||!0===o.__ANT_SWITCH&&(t.props.disabled||t.props.loading)||!0===o.__ANT_RADIO&&t.props.disabled){var n=b(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,a=n.omitted,l=(0,i.default)((0,i.default)({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":void 0}),f=(0,i.default)((0,i.default)({},a),{pointerEvents:"none"}),c=(0,y.cloneElement)(t,{style:f,className:null});return s.createElement("span",{style:l,className:(0,u.default)(t.props.className,"".concat(e,"-disabled-compatible-wrapper"))},c)}return t}((0,y.isValidElement)(B)&&!(0,y.isFragment)(B)?B:s.createElement("span",null,B),F),H=W.props,X=H.className&&"string"!=typeof H.className?H.className:(0,u.default)(H.className,(0,a.default)({},R||"".concat(F,"-open"),!0)),Y=(0,u.default)(D,(r={},(0,a.default)(r,"".concat(F,"-rtl"),"rtl"===w),(0,a.default)(r,"".concat(F,"-").concat(z),z&&h.test(z)),r)),$=V,q={};return z&&!h.test(z)&&($=(0,i.default)((0,i.default)({},V),{background:z}),q={"--antd-arrow-background-color":z}),s.createElement(f.default,(0,i.default)({},S,{placement:void 0===k?"top":k,mouseEnterDelay:void 0===A?.1:A,mouseLeaveDelay:void 0===T?.1:T,prefixCls:F,overlayClassName:Y,getTooltipContainer:x||I||O,ref:e,builtinPlacements:M(),overlay:(o=t.title,n=t.overlay,0===o?o:n||o||""),visible:U,onVisibleChange:function(e){var o,n;j(!N()&&e),N()||(null===(o=t.onOpenChange)||void 0===o||o.call(t,e),null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var o=M(),n=Object.keys(o).find(function(t){var n,r;return o[t].points[0]===(null===(n=e.points)||void 0===n?void 0:n[0])&&o[t].points[1]===(null===(r=e.points)||void 0===r?void 0:r[1])});if(n){var r=t.getBoundingClientRect(),a={top:"50%",left:"50%"};/top|Bottom/.test(n)?a.top="".concat(r.height-e.offset[1],"px"):/Top|bottom/.test(n)&&(a.top="".concat(-e.offset[1],"px")),/left|Right/.test(n)?a.left="".concat(r.width-e.offset[0],"px"):/right|Left/.test(n)&&(a.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(a.left," ").concat(a.top)}},overlayInnerStyle:$,arrowContent:s.createElement("span",{className:"".concat(F,"-arrow-content"),style:q}),motion:{motionName:(0,v.getTransitionName)(Z,"zoom-big-fast",t.transitionName),motionDeadline:1e3}}),U?(0,y.cloneElement)(W,{className:X}):W)});e.default=O},93645:function(t,e,o){"use strict";o.d(e,{u:function(){return r}});var n={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function r(t){return t?n[t]:n.trunc}},59910:function(t,e,o){"use strict";o.d(e,{Z:function(){return a}});var n=o(19013),r=o(13882);function a(t,e){return(0,r.Z)(2,arguments),(0,n.Z)(t).getTime()-(0,n.Z)(e).getTime()}},11699:function(t,e,o){"use strict";o.d(e,{Z:function(){return l}});var n=o(59910),r=o(13882),a=o(93645);function l(t,e,o){(0,r.Z)(2,arguments);var l=(0,n.Z)(t,e)/1e3;return(0,a.u)(null==o?void 0:o.roundingMethod)(l)}},11163:function(t,e,o){t.exports=o(96885)},24375:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.placements=void 0;var o={adjustX:1,adjustY:1},n=[0,0],r={left:{points:["cr","cl"],overflow:o,offset:[-4,0],targetOffset:n},right:{points:["cl","cr"],overflow:o,offset:[4,0],targetOffset:n},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:n},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:n},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:n},leftTop:{points:["tr","tl"],overflow:o,offset:[-4,0],targetOffset:n},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:n},rightTop:{points:["tl","tr"],overflow:o,offset:[4,0],targetOffset:n},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:n},rightBottom:{points:["bl","br"],overflow:o,offset:[4,0],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:n},leftBottom:{points:["br","bl"],overflow:o,offset:[-4,0],targetOffset:n}};e.placements=r,e.default=r},45598:function(t,e,o){"use strict";var n=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.default.Children.forEach(e,function(e){(null!=e||o.keepEmpty)&&(Array.isArray(e)?n=n.concat(t(e)):(0,a.isFragment)(e)&&e.props?n=n.concat(t(e.props.children,o)):n.push(e))}),n};var r=n(o(67294)),a=o(11805)},18545:function(t,e,o){"use strict";var n=o(75263).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=r.useRef();return e.current=t,r.useCallback(function(){for(var t,o=arguments.length,n=Array(o),r=0;r<o;r++)n[r]=arguments[r];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(n))},[])};var r=n(o(67294))},82546:function(t,e,o){"use strict";var n=o(64836).default,r=o(75263).default;Object.defineProperty(e,"__esModule",{value:!0}),e.useLayoutUpdateEffect=e.default=void 0;var a=r(o(67294)),l=(0,n(o(19158)).default)()?a.useLayoutEffect:a.useEffect,i=function(t,e){var o=a.useRef(!0);l(function(){return t(o.current)},e),l(function(){return o.current=!1,function(){o.current=!0}},[])};e.useLayoutUpdateEffect=function(t,e){i(function(e){if(!e)return t()},e)},e.default=i},60869:function(t,e,o){"use strict";var n=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var o=e||{},n=o.defaultValue,f=o.value,c=o.onChange,s=o.postState,d=(0,i.default)(function(){return u(f)?f:u(n)?"function"==typeof n?n():n:"function"==typeof t?t():t}),p=(0,r.default)(d,2),v=p[0],m=p[1],y=void 0!==f?f:v,g=s?s(y):y,b=(0,a.default)(c),h=(0,i.default)([y]),O=(0,r.default)(h,2),C=O[0],w=O[1];return(0,l.useLayoutUpdateEffect)(function(){var t=C[0];v!==t&&b(v,t)},[C]),(0,l.useLayoutUpdateEffect)(function(){u(f)||m(f)},[f]),[g,(0,a.default)(function(t,e){m(t,e),w([y],e)})]};var r=n(o(27424)),a=n(o(18545)),l=o(82546),i=n(o(78423));function u(t){return void 0!==t}},78423:function(t,e,o){"use strict";var n=o(75263).default,r=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=l.useRef(!1),o=l.useState(t),n=(0,a.default)(o,2),r=n[0],i=n[1];return l.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),[r,function(t,o){o&&e.current||i(t)}]};var a=r(o(27424)),l=n(o(67294))},75531:function(t,e,o){"use strict";var n=o(64836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.composeRef=u,e.fillRef=i,e.supportRef=function(t){var e,o,n=(0,a.isMemo)(t)?t.type.type:t.type;return("function"!=typeof n||null!==(e=n.prototype)&&void 0!==e&&!!e.render)&&("function"!=typeof t||null!==(o=t.prototype)&&void 0!==o&&!!o.render)},e.useComposeRef=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return(0,l.default)(function(){return u.apply(void 0,e)},e,function(t,e){return t.length===e.length&&t.every(function(t,o){return t===e[o]})})};var r=n(o(18698)),a=o(11805),l=n(o(67265));function i(t,e){"function"==typeof t?t(e):"object"===(0,r.default)(t)&&t&&"current"in t&&(t.current=e)}function u(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];var n=e.filter(function(t){return t});return n.length<=1?n[0]:function(t){e.forEach(function(e){i(e,t)})}}}}]); |