owncast/static/web/_next/static/chunks/3109-9bcae529e12170ff.js
2024-04-15 18:45:22 +00:00

1 line
No EOL
12 KiB
JavaScript
Vendored

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3109],{27561:function(t,e,n){var a=n(67990),r=/^\s+/;t.exports=function(t){return t?t.slice(0,a(t)+1).replace(r,""):t}},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var a=n(13218),r=n(7771),i=n(14841),o=Math.max,u=Math.min;t.exports=function(t,e,n){var s,l,c,d,m,f,h=0,g=!1,v=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=s,a=l;return s=l=void 0,h=e,d=t.apply(a,n)}function b(t){var n=t-f,a=t-h;return void 0===f||n>=e||n<0||v&&a>=c}function w(){var t,n,a,i=r();if(b(i))return M(i);m=setTimeout(w,(t=i-f,n=i-h,a=e-t,v?u(a,c-n):a))}function M(t){return(m=void 0,p&&s)?y(t):(s=l=void 0,d)}function P(){var t,n=r(),a=b(n);if(s=arguments,l=this,f=n,a){if(void 0===m)return h=t=f,m=setTimeout(w,e),g?y(t):d;if(v)return clearTimeout(m),m=setTimeout(w,e),y(f)}return void 0===m&&(m=setTimeout(w,e)),d}return e=i(e)||0,a(n)&&(g=!!n.leading,c=(v="maxWait"in n)?o(i(n.maxWait)||0,e):c,p="trailing"in n?!!n.trailing:p),P.cancel=function(){void 0!==m&&clearTimeout(m),h=0,s=f=l=m=void 0},P.flush=function(){return void 0===m?d:M(r())},P}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7771:function(t,e,n){var a=n(55639);t.exports=function(){return a.Date.now()}},14841:function(t,e,n){var a=n(27561),r=n(13218),i=n(33448),o=0/0,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):u.test(t)?o:+t}},69361:function(t,e,n){"use strict";var a=n(87462),r=n(4942),i=n(97685),o=n(93967),u=n.n(o),s=n(23279),l=n.n(s),c=n(25084),d=n(67294),m=n(93565),f=n(26901),h=n(97242),g=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(t);r<a.length;r++)0>e.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(t,a[r])&&(n[a[r]]=t[a[r]]);return n};(0,h.b)("small","default","large");var v=null,p=function(t){var e=t.spinPrefixCls,n=t.spinning,o=void 0===n||n,s=t.delay,h=t.className,p=t.size,y=void 0===p?"default":p,b=t.tip,w=t.wrapperClassName,M=t.style,P=t.children,W=g(t,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),x=d.useState(function(){return o&&(!o||!s||!!isNaN(Number(s)))}),N=(0,i.Z)(x,2),C=N[0],k=N[1];return d.useEffect(function(){var t=l()(function(){k(o)},s);return t(),function(){var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}},[s,o]),d.createElement(m.C,null,function(n){var i,o,s=n.direction,l=u()(e,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(e,"-sm"),"small"===y),"".concat(e,"-lg"),"large"===y),"".concat(e,"-spinning"),C),"".concat(e,"-show-text"),!!b),"".concat(e,"-rtl"),"rtl"===s),h),m=(0,c.Z)(W,["indicator","prefixCls"]),g=d.createElement("div",(0,a.Z)({},m,{style:M,className:l,"aria-live":"polite","aria-busy":C}),(i=t.indicator,o="".concat(e,"-dot"),null===i?null:(0,f.l$)(i)?(0,f.Tm)(i,{className:u()(i.props.className,o)}):(0,f.l$)(v)?(0,f.Tm)(v,{className:u()(v.props.className,o)}):d.createElement("span",{className:u()(o,"".concat(e,"-dot-spin"))},d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}))),b?d.createElement("div",{className:"".concat(e,"-text")},b):null);if(void 0!==P){var p=u()("".concat(e,"-container"),(0,r.Z)({},"".concat(e,"-blur"),C));return d.createElement("div",(0,a.Z)({},m,{className:u()("".concat(e,"-nested-loading"),w)}),C&&d.createElement("div",{key:"loading"},g),d.createElement("div",{className:p,key:"container"},P))}return g})},y=function(t){var e=t.prefixCls,n=(0,d.useContext(m.E_).getPrefixCls)("spin",e),r=(0,a.Z)((0,a.Z)({},t),{spinPrefixCls:n});return d.createElement(p,(0,a.Z)({},r))};y.setDefaultIndicator=function(t){v=t},e.Z=y},76365:function(t,e,n){"use strict";n.d(e,{j:function(){return r}});let a={};function r(){return a}},64853:function(t,e,n){"use strict";n.d(e,{D:function(){return r}});var a=n(47296);function r(t){let e=(0,a.Q)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}},11652:function(t,e,n){"use strict";n.d(e,{H_:function(){return s},dP:function(){return r},fH:function(){return u},jE:function(){return a},vh:function(){return o},yJ:function(){return i}});let a=6048e5,r=864e5,i=6e4,o=36e5,u=43200,s=1440},77113:function(t,e,n){"use strict";function a(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}n.d(e,{L:function(){return a}})},74518:function(t,e,n){"use strict";n.d(e,{w:function(){return u}});var a=n(11652),r=n(47296);function i(t){let e=(0,r.Q)(t);return e.setHours(0,0,0,0),e}var o=n(64853);function u(t,e){let n=i(t),r=i(e);return Math.round((+n-(0,o.D)(n)-(+r-(0,o.D)(r)))/a.dP)}},25736:function(t,e,n){"use strict";var a;n.d(e,{_:function(){return c}});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}let o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(t){return(e,n)=>{let a;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&t.formattingValues){let e=t.defaultFormattingWidth||t.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):e;a=t.formattingValues[r]||t.formattingValues[e]}else{let e=t.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):t.defaultWidth;a=t.values[r]||t.values[e]}return a[t.argumentCallback?t.argumentCallback(e):e]}}function l(t){return function(e){let n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;let u=o[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}(s,t=>t.test(u)):function(t,e){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}(s,t=>t.test(u));return n=t.valueCallback?t.valueCallback(l):l,{value:n=a.valueCallback?a.valueCallback(n):n,rest:e.slice(u.length)}}}let c={code:"en-US",formatDistance:(t,e,n)=>{let a;let i=r[t];return(a="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:o,formatRelative:(t,e,n,a)=>u[t],localize:{ordinalNumber:(t,e)=>{let n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(a={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(a.matchPattern);if(!n)return null;let r=n[0],i=t.match(a.parsePattern);if(!i)return null;let o=a.valueCallback?a.valueCallback(i[0]):i[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(r.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},47296:function(t,e,n){"use strict";function a(t){let e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new t.constructor(+t):new Date("number"==typeof t||"[object Number]"===e||"string"==typeof t||"[object String]"===e?t:NaN)}n.d(e,{Q:function(){return a}})}}]);