mirror of
https://github.com/owncast/owncast.git
synced 2025-01-24 09:03:51 +03:00
1 line
No EOL
17 KiB
JavaScript
Vendored
1 line
No EOL
17 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5869,3315],{81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"==typeof e?e():e:null}},57838:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(97685),o=n(67294);function c(){var e=o.useReducer(function(e){return e+1},0);return(0,r.Z)(e,2)[1]}},24308:function(e,t,n){"use strict";n.d(t,{c4:function(){return c}});var r=n(4942),o=n(87462),c=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},i=new Map,l=-1,s={};t.ZP={matchHandlers:{},dispatch:function(e){return s=e,i.forEach(function(e){return e(s)}),i.size>=1},subscribe:function(e){return i.size||this.register(),l+=1,i.set(l,e),e(s),l},unsubscribe:function(e){i.delete(e),i.size||this.unregister()},unregister:function(){var e=this;Object.keys(a).forEach(function(t){var n=a[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),i.clear()},register:function(){var e=this;Object.keys(a).forEach(function(t){var n=a[t],c=function(n){var c=n.matches;e.dispatch((0,o.Z)((0,o.Z)({},s),(0,r.Z)({},t,c)))},i=window.matchMedia(n);i.addListener(c),e.matchHandlers[n]={mql:i,listener:c},c(i)})}}},15746:function(e,t,n){"use strict";var r=n(21584);t.Z=r.Z},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},21584:function(e,t,n){"use strict";var r=n(4942),o=n(87462),c=n(71002),a=n(94184),i=n.n(a),l=n(67294),s=n(53124),u=n(99134),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=["xs","sm","md","lg","xl","xxl"],v=l.forwardRef(function(e,t){var n,a=l.useContext(s.E_),v=a.getPrefixCls,m=a.direction,d=l.useContext(u.Z),y=d.gutter,x=d.wrap,g=d.supportFlexGap,b=e.prefixCls,Z=e.span,h=e.order,O=e.offset,E=e.push,C=e.pull,w=e.className,j=e.children,N=e.flex,P=e.style,T=f(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=v("col",b),k={};p.forEach(function(t){var n,a={},i=e[t];"number"==typeof i?a.span=i:"object"===(0,c.Z)(i)&&(a=i||{}),delete T[t],k=(0,o.Z)((0,o.Z)({},k),(n={},(0,r.Z)(n,"".concat(S,"-").concat(t,"-").concat(a.span),void 0!==a.span),(0,r.Z)(n,"".concat(S,"-").concat(t,"-order-").concat(a.order),a.order||0===a.order),(0,r.Z)(n,"".concat(S,"-").concat(t,"-offset-").concat(a.offset),a.offset||0===a.offset),(0,r.Z)(n,"".concat(S,"-").concat(t,"-push-").concat(a.push),a.push||0===a.push),(0,r.Z)(n,"".concat(S,"-").concat(t,"-pull-").concat(a.pull),a.pull||0===a.pull),(0,r.Z)(n,"".concat(S,"-rtl"),"rtl"===m),n))});var _=i()(S,(n={},(0,r.Z)(n,"".concat(S,"-").concat(Z),void 0!==Z),(0,r.Z)(n,"".concat(S,"-order-").concat(h),h),(0,r.Z)(n,"".concat(S,"-offset-").concat(O),O),(0,r.Z)(n,"".concat(S,"-push-").concat(E),E),(0,r.Z)(n,"".concat(S,"-pull-").concat(C),C),n),w,k),R={};if(y&&y[0]>0){var D=y[0]/2;R.paddingLeft=D,R.paddingRight=D}if(y&&y[1]>0&&!g){var I=y[1]/2;R.paddingTop=I,R.paddingBottom=I}return N&&(R.flex="number"==typeof N?"".concat(N," ").concat(N," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(N)?"0 0 ".concat(N):N,!1!==x||R.minWidth||(R.minWidth=0)),l.createElement("div",(0,o.Z)({},T,{style:(0,o.Z)((0,o.Z)({},R),P),className:_,ref:t}),j)});t.Z=v},92820:function(e,t,n){"use strict";var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(94184),l=n.n(i),s=n(67294),u=n(53124),f=n(98082),p=n(24308),v=n(93355),m=n(99134),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function y(e,t){var n=s.useState("string"==typeof e?e:""),r=(0,a.Z)(n,2),o=r[0],i=r[1],l=function(){if("string"==typeof e&&i(e),"object"===(0,c.Z)(e))for(var n=0;n<p.c4.length;n++){var r=p.c4[n];if(t[r]){var o=e[r];if(void 0!==o){i(o);return}}}};return s.useEffect(function(){l()},[JSON.stringify(e),t]),o}(0,v.b)("top","middle","bottom","stretch"),(0,v.b)("start","end","center","space-around","space-between","space-evenly");var x=s.forwardRef(function(e,t){var n,i,v=e.prefixCls,x=e.justify,g=e.align,b=e.className,Z=e.style,h=e.children,O=e.gutter,E=void 0===O?0:O,C=e.wrap,w=d(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),j=s.useContext(u.E_),N=j.getPrefixCls,P=j.direction,T=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),S=(0,a.Z)(T,2),k=S[0],_=S[1],R=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),D=(0,a.Z)(R,2),I=D[0],L=D[1],M=y(g,I),z=y(x,I),A=(0,f.Z)(),F=s.useRef(E);s.useEffect(function(){var e=p.ZP.subscribe(function(e){L(e);var t=F.current||0;(!Array.isArray(t)&&"object"===(0,c.Z)(t)||Array.isArray(t)&&("object"===(0,c.Z)(t[0])||"object"===(0,c.Z)(t[1])))&&_(e)});return function(){return p.ZP.unsubscribe(e)}},[]);var V=N("row",v),W=(n=[void 0,void 0],(Array.isArray(E)?E:[E,void 0]).forEach(function(e,t){if("object"===(0,c.Z)(e))for(var r=0;r<p.c4.length;r++){var o=p.c4[r];if(k[o]&&void 0!==e[o]){n[t]=e[o];break}}else n[t]=e}),n),$=l()(V,(i={},(0,o.Z)(i,"".concat(V,"-no-wrap"),!1===C),(0,o.Z)(i,"".concat(V,"-").concat(z),z),(0,o.Z)(i,"".concat(V,"-").concat(M),M),(0,o.Z)(i,"".concat(V,"-rtl"),"rtl"===P),i),b),B={},H=null!=W[0]&&W[0]>0?-(W[0]/2):void 0,q=null!=W[1]&&W[1]>0?-(W[1]/2):void 0;if(H&&(B.marginLeft=H,B.marginRight=H),A){var G=(0,a.Z)(W,2);B.rowGap=G[1]}else q&&(B.marginTop=q,B.marginBottom=q);var U=(0,a.Z)(W,2),K=U[0],Y=U[1],J=s.useMemo(function(){return{gutter:[K,Y],wrap:C,supportFlexGap:A}},[K,Y,C,A]);return s.createElement(m.Z.Provider,{value:J},s.createElement("div",(0,r.Z)({},w,{className:$,style:(0,r.Z)((0,r.Z)({},B),Z),ref:t}),h))});t.Z=x},97183:function(e,t,n){"use strict";var r=n(2897),o=n(7293),c=r.ZP;c.Header=r.h4,c.Footer=r.$_,c.Content=r.VY,c.Sider=o.Z,t.Z=c},65360:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(87462),o=n(97685),c=n(21640),a=n(94184),i=n.n(a),l=n(21770),s=n(15105),u=n(67294),f=n(53124),p=n(55241),v=n(96159),m=n(71577),d=n(6134),y=n(86743),x=n(23715),g=n(7734),b=n(81643),Z=function(e){var t=e.prefixCls,n=e.okButtonProps,o=e.cancelButtonProps,c=e.title,a=e.cancelText,i=e.okText,l=e.okType,s=e.icon,p=e.showCancel,v=void 0===p||p,Z=e.close,h=e.onConfirm,O=e.onCancel,E=u.useContext(f.E_).getPrefixCls;return u.createElement(x.Z,{componentName:"Popconfirm",defaultLocale:g.Z.Popconfirm},function(e){return u.createElement("div",{className:"".concat(t,"-inner-content")},u.createElement("div",{className:"".concat(t,"-message")},s&&u.createElement("span",{className:"".concat(t,"-message-icon")},s),u.createElement("div",{className:"".concat(t,"-message-title")},(0,b.Z)(c))),u.createElement("div",{className:"".concat(t,"-buttons")},v&&u.createElement(m.Z,(0,r.Z)({onClick:O,size:"small"},o),null!=a?a:e.cancelText),u.createElement(y.Z,{buttonProps:(0,r.Z)((0,r.Z)({size:"small"},(0,d.n)(l)),n),actionFn:h,close:Z,prefixCls:E("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!=i?i:e.okText)))})},h=void 0,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},E=u.forwardRef(function(e,t){var n=u.useContext(f.E_).getPrefixCls,a=(0,l.Z)(!1,{value:void 0!==e.open?e.open:e.visible,defaultValue:void 0!==e.defaultOpen?e.defaultOpen:e.defaultVisible}),m=(0,o.Z)(a,2),d=m[0],y=m[1],x=function(t,n){var r,o;y(t,!0),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t,n),null===(o=e.onOpenChange)||void 0===o||o.call(e,t,n)},g=function(e){e.keyCode===s.Z.ESC&&d&&x(!1,e)},b=e.prefixCls,E=e.placement,C=e.trigger,w=e.okType,j=e.icon,N=void 0===j?u.createElement(c.Z,null):j,P=e.children,T=e.overlayClassName,S=O(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName"]),k=n("popover",b),_=n("popconfirm",b),R=i()(_,T);return u.createElement(p.Z,(0,r.Z)({},S,{trigger:void 0===C?"click":C,prefixCls:k,placement:void 0===E?"top":E,onOpenChange:function(t){var n=e.disabled;void 0!==n&&n||x(t)},open:d,ref:t,overlayClassName:R,_overlay:u.createElement(Z,(0,r.Z)({okType:void 0===w?"primary":w,icon:N},e,{prefixCls:k,close:function(e){x(!1,e)},onConfirm:function(t){var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(h,t)},onCancel:function(t){var n;x(!1,t),null===(n=e.onCancel)||void 0===n||n.call(h,t)}}))}),(0,v.Tm)(P,{onKeyDown:function(e){var t,n;u.isValidElement(P)&&(null===(n=null==P?void 0:(t=P.props).onKeyDown)||void 0===n||n.call(t,e)),g(e)}}))})},55241:function(e,t,n){"use strict";var r=n(87462),o=n(67294),c=n(53124),a=n(94199),i=n(81643),l=n(33603),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(r,"-title")},(0,i.Z)(t)),o.createElement("div",{className:"".concat(r,"-inner-content")},(0,i.Z)(n))):null},f=o.forwardRef(function(e,t){var n=e.prefixCls,i=e.title,f=e.content,p=e._overlay,v=e.placement,m=e.trigger,d=e.mouseEnterDelay,y=e.mouseLeaveDelay,x=e.overlayStyle,g=s(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=o.useContext(c.E_).getPrefixCls,Z=b("popover",n),h=b();return o.createElement(a.Z,(0,r.Z)({placement:void 0===v?"top":v,trigger:void 0===m?"hover":m,mouseEnterDelay:void 0===d?.1:d,mouseLeaveDelay:void 0===y?.1:y,overlayStyle:void 0===x?{}:x},g,{prefixCls:Z,ref:t,overlay:p||o.createElement(u,{prefixCls:Z,title:i,content:f}),transitionName:(0,l.mL)(h,"zoom-big",g.transitionName)}))});t.Z=f},71230:function(e,t,n){"use strict";var r=n(92820);t.Z=r.Z},11382:function(e,t,n){"use strict";var r=n(87462),o=n(4942),c=n(97685),a=n(94184),i=n.n(a),l=n(23279),s=n.n(l),u=n(98423),f=n(67294),p=n(53124),v=n(96159),m=n(93355),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,m.b)("small","default","large");var y=null,x=function(e){var t=e.spinPrefixCls,n=e.spinning,a=void 0===n||n,l=e.delay,m=e.className,x=e.size,g=void 0===x?"default":x,b=e.tip,Z=e.wrapperClassName,h=e.style,O=e.children,E=d(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),C=f.useState(function(){return a&&(!a||!l||!!isNaN(Number(l)))}),w=(0,c.Z)(C,2),j=w[0],N=w[1];return f.useEffect(function(){var e=s()(function(){N(a)},l);return e(),function(){var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}},[l,a]),f.createElement(p.C,null,function(n){var c,a,l,s=n.direction,p=i()(t,(l={},(0,o.Z)(l,"".concat(t,"-sm"),"small"===g),(0,o.Z)(l,"".concat(t,"-lg"),"large"===g),(0,o.Z)(l,"".concat(t,"-spinning"),j),(0,o.Z)(l,"".concat(t,"-show-text"),!!b),(0,o.Z)(l,"".concat(t,"-rtl"),"rtl"===s),l),m),d=(0,u.Z)(E,["indicator","prefixCls"]),x=f.createElement("div",(0,r.Z)({},d,{style:h,className:p,"aria-live":"polite","aria-busy":j}),(c=e.indicator,a="".concat(t,"-dot"),null===c?null:(0,v.l$)(c)?(0,v.Tm)(c,{className:i()(c.props.className,a)}):(0,v.l$)(y)?(0,v.Tm)(y,{className:i()(y.props.className,a)}):f.createElement("span",{className:i()(a,"".concat(t,"-dot-spin"))},f.createElement("i",{className:"".concat(t,"-dot-item")}),f.createElement("i",{className:"".concat(t,"-dot-item")}),f.createElement("i",{className:"".concat(t,"-dot-item")}),f.createElement("i",{className:"".concat(t,"-dot-item")}))),b?f.createElement("div",{className:"".concat(t,"-text")},b):null);if(void 0!==O){var C=i()("".concat(t,"-container"),(0,o.Z)({},"".concat(t,"-blur"),j));return f.createElement("div",(0,r.Z)({},d,{className:i()("".concat(t,"-nested-loading"),Z)}),j&&f.createElement("div",{key:"loading"},x),f.createElement("div",{className:C,key:"container"},O))}return x})},g=function(e){var t=e.prefixCls,n=(0,f.useContext(p.E_).getPrefixCls)("spin",t),o=(0,r.Z)((0,r.Z)({},e),{spinPrefixCls:n});return f.createElement(x,(0,r.Z)({},o))};g.setDefaultIndicator=function(e){y=e},t.Z=g},93645:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function o(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(19013),o=n(13882);function c(e,t){return(0,o.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59910),o=n(13882),c=n(93645);function a(e,t,n){(0,o.Z)(2,arguments);var a=(0,r.Z)(e,t)/1e3;return(0,c.u)(null==n?void 0:n.roundingMethod)(a)}},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),c=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):c(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,c=o.hasOwnProperty,a=o.toString,i=r?r.toStringTag:void 0;e.exports=function(e){var t=c.call(e,i),n=e[i];try{e[i]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[i]=n:delete e[i]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,c=r||o||Function("return this")();e.exports=c},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),c=n(14841),a=Math.max,i=Math.min;e.exports=function(e,t,n){var l,s,u,f,p,v,m=0,d=!1,y=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=l,r=s;return l=s=void 0,m=t,f=e.apply(r,n)}function b(e){var n=e-v,r=e-m;return void 0===v||n>=t||n<0||y&&r>=u}function Z(){var e,n,r,c=o();if(b(c))return h(c);p=setTimeout(Z,(e=c-v,n=c-m,r=t-e,y?i(r,u-n):r))}function h(e){return(p=void 0,x&&l)?g(e):(l=s=void 0,f)}function O(){var e,n=o(),r=b(n);if(l=arguments,s=this,v=n,r){if(void 0===p)return m=e=v,p=setTimeout(Z,t),d?g(e):f;if(y)return clearTimeout(p),p=setTimeout(Z,t),g(v)}return void 0===p&&(p=setTimeout(Z,t)),f}return t=c(t)||0,r(n)&&(d=!!n.leading,u=(y="maxWait"in n)?a(c(n.maxWait)||0,t):u,x="trailing"in n?!!n.trailing:x),O.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=v=s=p=void 0},O.flush=function(){return void 0===p?f:h(o())},O}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),c=n(33448),a=0/0,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(c(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?a:+e}},9008:function(e,t,n){e.exports=n(83121)},11163:function(e,t,n){e.exports=n(80880)},92703:function(e,t,n){"use strict";var r=n(50414);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,a){if(a!==r){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]); |