Files
owncast/static/web/_next/static/chunks/8559-0e9dc1c88abb9559.js
2024-09-16 18:53:12 +00:00

1 line
14 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8559],{27779:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(4942),a=n(87462),o=n(71002),i=n(93967),l=n.n(i),c=n(67294),s=n(93565),u=n(25084),d=function(e){var t=e.prefixCls,n=e.className,o=e.style,i=e.size,s=e.shape,u=l()((0,r.Z)((0,r.Z)({},"".concat(t,"-lg"),"large"===i),"".concat(t,"-sm"),"small"===i)),d=l()((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(t,"-circle"),"circle"===s),"".concat(t,"-square"),"square"===s),"".concat(t,"-round"),"round"===s)),f=c.useMemo(function(){return"number"==typeof i?{width:i,height:i,lineHeight:"".concat(i,"px")}:{}},[i]);return c.createElement("span",{className:l()(t,u,d,n),style:(0,a.Z)((0,a.Z)({},f),o)})},f=n(1413),v={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"},m=n(97902),p=c.forwardRef(function(e,t){return c.createElement(m.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:t,icon:v}))}),h=n(74902),y=function(e){var t=function(t){var n=e.width,r=e.rows;return Array.isArray(n)?n[t]:(void 0===r?2:r)-1===t?n:void 0},n=e.prefixCls,r=e.className,a=e.style,o=e.rows,i=(0,h.Z)(Array(o)).map(function(e,n){return c.createElement("li",{key:n,style:{width:t(n)}})});return c.createElement("ul",{className:l()(n,r),style:a},i)},g=function(e){var t=e.prefixCls,n=e.className,r=e.width,o=e.style;return c.createElement("h3",{className:l()(t,n),style:(0,a.Z)({width:r},o)})};function E(e){return e&&"object"===(0,o.Z)(e)?e:{}}var w=function(e){var t=e.prefixCls,n=e.loading,o=e.className,i=e.style,u=e.children,f=e.avatar,v=void 0!==f&&f,m=e.title,p=void 0===m||m,h=e.paragraph,w=void 0===h||h,C=e.active,k=e.round,b=c.useContext(s.E_),x=b.getPrefixCls,Z=b.direction,N=x("skeleton",t);if(n||!("loading"in e)){var L=!!v,z=!!p,M=!!w;if(L){var A=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-avatar")},z&&!M?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),E(v));D=c.createElement("div",{className:"".concat(N,"-header")},c.createElement(d,(0,a.Z)({},A)))}if(z||M){if(z){var D,S,q,_,j=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-title")},!L&&M?{width:"38%"}:L&&M?{width:"50%"}:{}),E(p));q=c.createElement(g,(0,a.Z)({},j))}if(M){var K,Q=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-paragraph")},(K={},L&&z||(K.width="61%"),!L&&z?K.rows=3:K.rows=2,K)),E(w));_=c.createElement(y,(0,a.Z)({},Q))}S=c.createElement("div",{className:"".concat(N,"-content")},q,_)}var R=l()(N,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(N,"-with-avatar"),L),"".concat(N,"-active"),C),"".concat(N,"-rtl"),"rtl"===Z),"".concat(N,"-round"),k),o);return c.createElement("div",{className:R,style:i},D,S)}return void 0!==u?u:null};w.Button=function(e){var t=e.prefixCls,n=e.className,o=e.active,i=e.block,f=e.size,v=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),m=(0,u.Z)(e,["prefixCls"]),p=l()(v,"".concat(v,"-element"),(0,r.Z)((0,r.Z)({},"".concat(v,"-active"),o),"".concat(v,"-block"),void 0!==i&&i),n);return c.createElement("div",{className:p},c.createElement(d,(0,a.Z)({prefixCls:"".concat(v,"-button"),size:void 0===f?"default":f},m)))},w.Avatar=function(e){var t=e.prefixCls,n=e.className,o=e.active,i=e.shape,f=e.size,v=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),m=(0,u.Z)(e,["prefixCls","className"]),p=l()(v,"".concat(v,"-element"),(0,r.Z)({},"".concat(v,"-active"),o),n);return c.createElement("div",{className:p},c.createElement(d,(0,a.Z)({prefixCls:"".concat(v,"-avatar"),shape:void 0===i?"circle":i,size:void 0===f?"default":f},m)))},w.Input=function(e){var t=e.prefixCls,n=e.className,o=e.active,i=e.block,f=e.size,v=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),m=(0,u.Z)(e,["prefixCls"]),p=l()(v,"".concat(v,"-element"),(0,r.Z)((0,r.Z)({},"".concat(v,"-active"),o),"".concat(v,"-block"),i),n);return c.createElement("div",{className:p},c.createElement(d,(0,a.Z)({prefixCls:"".concat(v,"-input"),size:void 0===f?"default":f},m)))},w.Image=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,i=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),u=l()(i,"".concat(i,"-element"),(0,r.Z)({},"".concat(i,"-active"),o),n);return c.createElement("div",{className:u},c.createElement("div",{className:l()("".concat(i,"-image"),n),style:a},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(i,"-image-svg")},c.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(i,"-image-path")}))))},w.Node=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,i=e.children,u=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),d=l()(u,"".concat(u,"-element"),(0,r.Z)({},"".concat(u,"-active"),o),n),f=null!=i?i:c.createElement(p,null);return c.createElement("div",{className:d},c.createElement("div",{className:l()("".concat(u,"-image"),n),style:a},f))};var C=w},46977:function(e,t,n){n.d(t,{y1:function(){return w}});var r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n(85893);var o=["shift","alt","meta","mod","ctrl"],i={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function l(e){return(e&&i[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function c(e,t){return void 0===t&&(t=","),e.split(t)}function s(e,t,n){void 0===t&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(e){return l(e)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},c=r.filter(function(e){return!o.includes(e)});return a({},i,{keys:c,description:n})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&f([l(e.key),l(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&v([l(e.key),l(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){u.clear()});var u=new Set;function d(e){return Array.isArray(e)}function f(e){var t=Array.isArray(e)?e:[e];u.has("meta")&&u.forEach(function(e){return!o.includes(e)&&u.delete(e.toLowerCase())}),t.forEach(function(e){return u.add(e.toLowerCase())})}function v(e){var t=Array.isArray(e)?e:[e];"meta"===e?u.clear():t.forEach(function(e){return u.delete(e.toLowerCase())})}function m(e,t){var n=e.target;void 0===t&&(t=!1);var r=n&&n.tagName;return d(t)?!!(r&&t&&t.some(function(e){return e.toLowerCase()===r.toLowerCase()})):!!(r&&t&&!0===t)}var p=function(e,t,n){void 0===n&&(n=!1);var r,a=t.alt,o=t.meta,i=t.mod,c=t.shift,s=t.ctrl,f=t.keys,v=e.key,m=e.code,p=e.ctrlKey,h=e.metaKey,y=e.shiftKey,g=e.altKey,E=l(m),w=v.toLowerCase();if(!(null!=f&&f.includes(E))&&!(null!=f&&f.includes(w))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(E))return!1;if(!n){if(!g===a&&"alt"!==w||!y===c&&"shift"!==w)return!1;if(i){if(!h&&!p)return!1}else if(!h===o&&"meta"!==w&&"os"!==w||!p===s&&"ctrl"!==w&&"control"!==w)return!1}return!!(f&&1===f.length&&(f.includes(w)||f.includes(E)))||(f?(void 0===r&&(r=","),(d(f)?f:f.split(r)).every(function(e){return u.has(e.trim().toLowerCase())})):!f)},h=(0,r.createContext)(void 0),y=(0,r.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),g=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},E="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function w(e,t,n,a){var o,i=(0,r.useState)(null),u=i[0],w=i[1],C=(0,r.useRef)(!1),k=n instanceof Array?a instanceof Array?void 0:a:n,b=d(e)?e.join(null==k?void 0:k.splitKey):e,x=n instanceof Array?n:a instanceof Array?a:void 0,Z=(0,r.useCallback)(t,null!=x?x:[]),N=(0,r.useRef)(Z);x?N.current=Z:N.current=t;var L=(!function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(r,a){return r&&e(t[a],n[a])},!0):t===n}((o=(0,r.useRef)(void 0)).current,k)&&(o.current=k),o.current),z=(0,r.useContext)(y).enabledScopes,M=(0,r.useContext)(h);return E(function(){if((null==L?void 0:L.enabled)!==!1&&(e=null==L?void 0:L.scopes,0===z.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||z.some(function(t){return e.includes(t)})||z.includes("*")))){var e,t=function(e,t){var n;if(void 0===t&&(t=!1),!m(e,["input","textarea","select"])||m(e,null==L?void 0:L.enableOnFormTags)){if(null!==u){var r=u.getRootNode();if((r instanceof Document||r instanceof ShadowRoot)&&r.activeElement!==u&&!u.contains(r.activeElement)){g(e);return}}(null==(n=e.target)||!n.isContentEditable||null!=L&&L.enableOnContentEditable)&&c(b,null==L?void 0:L.splitKey).forEach(function(n){var r,a,o,i=s(n,null==L?void 0:L.combinationKey);if(p(e,i,null==L?void 0:L.ignoreModifiers)||null!=(o=i.keys)&&o.includes("*")){if(null!=L&&null!=L.ignoreEventWhen&&L.ignoreEventWhen(e)||t&&C.current)return;if(("function"==typeof(r=null==L?void 0:L.preventDefault)&&r(e,i)||!0===r)&&e.preventDefault(),"function"==typeof(a=null==L?void 0:L.enabled)?!a(e,i):!0!==a&&void 0!==a){g(e);return}N.current(e,i),t||(C.current=!0)}})}},n=function(e){void 0!==e.key&&(f(l(e.code)),((null==L?void 0:L.keydown)===void 0&&(null==L?void 0:L.keyup)!==!0||null!=L&&L.keydown)&&t(e))},r=function(e){void 0!==e.key&&(v(l(e.code)),C.current=!1,null!=L&&L.keyup&&t(e,!0))},a=u||(null==k?void 0:k.document)||document;return a.addEventListener("keyup",r),a.addEventListener("keydown",n),M&&c(b,null==L?void 0:L.splitKey).forEach(function(e){return M.addHotkey(s(e,null==L?void 0:L.combinationKey,null==L?void 0:L.description))}),function(){a.removeEventListener("keyup",r),a.removeEventListener("keydown",n),M&&c(b,null==L?void 0:L.splitKey).forEach(function(e){return M.removeHotkey(s(e,null==L?void 0:L.combinationKey,null==L?void 0:L.description))})}}},[u,b,L,z]),w}},83957:function(e,t,n){n.d(t,{E:function(){return o}});var r=n(47296),a=n(77113);function o(e,t){let n=(0,r.Q)(e);return isNaN(t)?(0,a.L)(e,NaN):(t&&n.setDate(n.getDate()+t),n)}},13284:function(e,t,n){n.d(t,{z:function(){return o}});var r=n(47296),a=n(77113);function o(e,t){let n=(0,r.Q)(e);if(isNaN(t))return(0,a.L)(e,NaN);if(!t)return n;let o=n.getDate(),i=(0,a.L)(e,n.getTime());return(i.setMonth(n.getMonth()+t+1,0),o>=i.getDate())?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}},54284:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(25736),a=n(76365);let o=["years","months","weeks","days","hours","minutes","seconds"];function i(e,t){var n,i,l,c,s;let u=(0,a.j)(),d=null!==(i=null!==(n=null==t?void 0:t.locale)&&void 0!==n?n:u.locale)&&void 0!==i?i:r._,f=null!==(l=null==t?void 0:t.format)&&void 0!==l?l:o,v=null!==(c=null==t?void 0:t.zero)&&void 0!==c&&c,m=null!==(s=null==t?void 0:t.delimiter)&&void 0!==s?s:" ";return d.formatDistance?f.reduce((t,n)=>{let r="x".concat(n.replace(/(^.)/,e=>e.toUpperCase())),a=e[n];return void 0!==a&&(v||e[n])?t.concat(d.formatDistance(r,a)):t},[]).join(m):""}},86655:function(e,t,n){n.d(t,{y:function(){return h}});var r=n(83957),a=n(13284),o=n(77113),i=n(47296);function l(e,t){let{years:n=0,months:l=0,weeks:c=0,days:s=0,hours:u=0,minutes:d=0,seconds:f=0}=t,v=(0,i.Q)(e),m=l||n?(0,a.z)(v,l+12*n):v,p=s||c?(0,r.E)(m,s+7*c):m;return(0,o.L)(e,p.getTime()+1e3*(f+60*(d+60*u)))}var c=n(74518);function s(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}var u=n(35928),d=n(11652),f=n(51678),v=n(46100),m=n(44284),p=n(10465);function h(e){let t=(0,i.Q)(e.start),n=(0,i.Q)(e.end),r={},a=function(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t),a=(0,p.U)(n,r),o=Math.abs(function(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);let l=(0,p.U)(n,r)===-a,c=a*(o-+l);return 0===c?0:c}(n,t);a&&(r.years=a);let o=l(t,{years:r.years}),h=(0,v.d)(n,o);h&&(r.months=h);let y=l(o,{months:r.months}),g=function(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t),a=s(n,r),o=Math.abs((0,c.w)(n,r));n.setDate(n.getDate()-a*o);let l=Number(s(n,r)===-a),u=a*(o-l);return 0===u?0:u}(n,y);g&&(r.days=g);let E=l(y,{days:r.days}),w=function(e,t,n){let r=(0,f._)(e,t)/d.vh;return(0,u.u)(void 0)(r)}(n,E);w&&(r.hours=w);let C=l(E,{hours:r.hours}),k=function(e,t,n){let r=(0,f._)(e,t)/d.yJ;return(0,u.u)(void 0)(r)}(n,C);k&&(r.minutes=k);let b=l(C,{minutes:r.minutes}),x=(0,m.c)(n,b);return x&&(r.seconds=x),r}}}]);