Files
pgsql-jellyfin/wwwroot/49092.e9d80a53c7b83479360a.chunk.js
T
2026-07-08 12:44:58 -04:00

1 line
14 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[49092],{470:function(t,r,e){e.d(r,{U:function(){return z}}),e(29305),e(32733),e(84701),e(81678),e(69892),e(84734),e(44962),e(89336),e(4754),e(94),e(33087),e(36947),e(88908),e(26437),e(52697),e(78557),e(21359),e(95021),e(73687),e(83994),e(82367);var n=e(63696);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var r="function"==typeof Map?new Map:void 0;return i=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(r){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return function(t,r,e){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var o=new(t.bind.apply(t,n));return e&&c(o,e.prototype),o}(t,arguments,a(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),c(e,t)},i(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t,r){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},c(t,r)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}e(24776),e(86584),e(66781),e(74455),e(58551),e(19283),e(80808),e(83320),e(4716),e(33054),e(82281),e(23236),e(89717),e(57268),e(32650),e(34581),e(31937),e(88064),e(85486),e(4181),e(1421),e(18750),e(50789),e(63171),e(67689),e(14715),e(39111),e(73015),e(47762),e(23630);var f=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],l=function(t){for(var r=0,e=0;e<t.length;e++){var n=t[e];r=83*r+f.indexOf(n)}return r},s=function(t){var r=t/255;return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)},p=function(t){var r=Math.max(0,Math.min(1,t));return r<=.0031308?Math.trunc(12.92*r*255+.5):Math.trunc(255*(1.055*Math.pow(r,.4166666666666667)-.055)+.5)},y=function(t,r){return function(t){return t<0?-1:1}(t)*Math.pow(Math.abs(t),r)},h=function(t){function r(t){var e;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),(e=function(t,r,e){return r=a(r),function(t,r){if(r&&("object"==o(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(r,e||[],a(t).constructor):r.apply(t,e))}(this,r,[t])).name="ValidationError",e.message=t,e}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&c(t,r)}(r,t),e=r,Object.defineProperty(e,"prototype",{writable:!1}),e;var e}(i(Error)),b=function(t){var r=t>>8&255,e=255&t;return[s(t>>16),s(r),s(e)]},v=function(t,r){var e=Math.floor(t/361),n=Math.floor(t/19)%19,o=t%19;return[y((e-9)/9,2)*r,y((n-9)/9,2)*r,y((o-9)/9,2)*r]},d=function(t,r,e,n){(function(t){if(!t||t.length<6)throw new h("The blurhash string must be at least 6 characters");var r=l(t[0]),e=Math.floor(r/9)+1,n=r%9+1;if(t.length!==4+2*n*e)throw new h("blurhash length mismatch: length is ".concat(t.length," but it should be ").concat(4+2*n*e))})(t),n|=1;for(var o=l(t[0]),i=Math.floor(o/9)+1,u=o%9+1,c=(l(t[1])+1)/166,a=new Array(u*i),f=0;f<a.length;f++)if(0===f){var s=l(t.substring(2,6));a[f]=b(s)}else{var y=l(t.substring(4+2*f,6+2*f));a[f]=v(y,c*n)}for(var d=4*r,m=new Uint8ClampedArray(d*e),w=0;w<e;w++)for(var g=0;g<r;g++){for(var O=0,j=0,S=0,P=0;P<i;P++)for(var E=0;E<u;E++){var M=Math.cos(Math.PI*g*E/r)*Math.cos(Math.PI*w*P/e),A=a[E+P*u];O+=A[0]*M,j+=A[1]*M,S+=A[2]*M}var _=p(O),C=p(j),k=p(S);m[4*g+0+w*d]=_,m[4*g+1+w*d]=C,m[4*g+2+w*d]=k,m[4*g+3+w*d]=255}return m};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function g(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}function O(t,r,e){return r&&g(t.prototype,r),e&&g(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t){var r=function(t){if("object"!=m(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=m(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(r)?r:r+""}function S(t,r,e){return r=E(r),function(t,r){if(r&&("object"==m(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(r,e||[],E(t).constructor):r.apply(t,e))}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function M(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&A(t,r)}function A(t,r){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},A(t,r)}function _(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(t){if("string"==typeof t)return C(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?C(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw i}}}}function C(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var k=Object.defineProperty,x=Object.defineProperties,R=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,U=function(t,r,e){return r in t?k(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e},X=function(t,r){for(var e in r||(r={}))D.call(r,e)&&U(t,e,r[e]);if(T){var n,o=_(T(r));try{for(o.s();!(n=o.n()).done;)e=n.value,I.call(r,e)&&U(t,e,r[e])}catch(t){o.e(t)}finally{o.f()}}return t},Y=function(t,r){return x(t,R(r))},B=function(t,r){var e={};for(var n in t)D.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&T){var o,i=_(T(t));try{for(i.s();!(o=i.n()).done;)n=o.value,r.indexOf(n)<0&&I.call(t,n)&&(e[n]=t[n])}catch(t){i.e(t)}finally{i.f()}}return e},z=function(t){function r(){var t;return w(this,r),(t=S(this,r,arguments)).canvas=null,t.handleRef=function(r){t.canvas=r,t.draw()},t.draw=function(){var r=t.props,e=r.hash,n=r.height,o=r.punch,i=r.width;if(t.canvas){var u=d(e,i,n,o),c=t.canvas.getContext("2d"),a=c.createImageData(i,n);a.data.set(u),c.putImageData(a,0,0)}},t}return M(r,t),O(r,[{key:"componentDidUpdate",value:function(){this.draw()}},{key:"render",value:function(){var t=this.props,r=(t.hash,t.height),e=t.width,o=B(t,["hash","height","width"]);return n.createElement("canvas",Y(X({},o),{height:r,width:e,ref:this.handleRef}))}}])}(n.PureComponent);z.defaultProps={height:128,width:128};var F={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"},G=function(t){function r(){return w(this,r),S(this,r,arguments)}return M(r,t),O(r,[{key:"componentDidUpdate",value:function(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}},{key:"render",value:function(){var t=this.props,r=t.hash,e=t.height,o=t.width,i=t.punch,u=t.resolutionX,c=t.resolutionY,a=t.style,f=B(t,["hash","height","width","punch","resolutionX","resolutionY","style"]);return n.createElement("div",Y(X({},f),{style:Y(X({display:"inline-block",height:e,width:o},a),{position:"relative"})}),n.createElement(z,{hash:r,height:c,width:u,punch:i,style:F}))}}])}(n.PureComponent);G.defaultProps={height:128,width:128,resolutionX:32,resolutionY:32}},38596:function(t,r,e){e.d(r,{n:function(){return y}}),e(29305),e(32733),e(84701),e(81678),e(14382),e(69892),e(44962),e(89336),e(4754),e(94),e(33087),e(36947),e(36457),e(88908),e(83810),e(78557),e(95021),e(73687),e(83994),e(23630),e(82367);var n=e(63696),o=e(427),i=e(52672),u=e(26073),c=e(9790);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){s(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function s(t,r,e){return(r=function(t){var r=function(t){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=a(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function p(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function y(t,r){var e,a,f=(0,c.jE)(r),s=(e=n.useState((function(){return new o._(f,t)})),a=1,function(t){if(Array.isArray(t))return t}(e)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],a=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(t){f=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(f)throw o}}return c}}(e,a)||function(t,r){if(t){if("string"==typeof t)return p(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,r):void 0}}(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];n.useEffect((function(){s.setOptions(t)}),[s,t]);var y=n.useSyncExternalStore(n.useCallback((function(t){return s.subscribe(i.jG.batchCalls(t))}),[s]),(function(){return s.getCurrentResult()}),(function(){return s.getCurrentResult()})),h=n.useCallback((function(t,r){s.mutate(t,r).catch(u.lQ)}),[s]);if(y.error&&(0,u.GU)(s.options.throwOnError,[y.error]))throw y.error;return l(l({},y),{},{mutate:h,mutateAsync:y.mutate})}},92726:function(t,r,e){e.d(r,{A:function(){return c}}),e(24776),e(84734),e(44962),e(74576),e(58551),e(78557),e(92745),e(83994),e(23630),e(82367);var n,o=e(63696),i=o["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function u(){}var c=function(t,r){var e,c,a,f=(a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).polyfill,n||(n=function(t){var r=!1,e=[],n=new Map,o=new(t||window.ResizeObserver)((function(t,o){e=e.concat(t),r||window.requestAnimationFrame((function(){for(var t=new Set,i=function(r){if(t.has(e[r].target))return 1;t.add(e[r].target);var i=n.get(e[r].target);null==i||i.forEach((function(t){return t(e[r],o)}))},u=0;u<e.length;u++)i(u);e=[],r=!1})),r=!0}));return{observer:o,subscribe:function(t,r){var e;o.observe(t);var i=null!==(e=n.get(t))&&void 0!==e?e:[];i.push(r),n.set(t,i)},unsubscribe:function(t,r){var e,i=null!==(e=n.get(t))&&void 0!==e?e:[];if(1===i.length)return o.unobserve(t),void n.delete(t);var u=i.indexOf(r);-1!==u&&i.splice(u,1),n.set(t,i)}}}(a))),l=(e=r,c=o.useRef(e),o.useEffect((function(){c.current=e})),c);return i((function(){var r=!1,e=t&&"current"in t?t.current:t;if(!e)return u;function n(t,e){r||l.current(t,e)}return f.subscribe(e,n),function(){r=!0,f.unsubscribe(e,n)}}),[t,f,l]),f.observer}}}]);