Files
pgsql-jellyfin/Jellyfin.Server/wwwroot/4113.83b0350d733cb0566fab.chunk.js
T
2026-07-08 13:13:46 -04:00

1 line
8.6 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4113],{4113:function(t,e,o){o(29305),o(32733),o(84701),o(84734),o(44962),o(77575),o(78557),o(90076),o(95021),o(73687),o(83994),o(53819),o(23630),o(82367);var r=o(34789),n=o(46782),i=o(36300),a=o(9164),s=o(90883),l=o(5898);function c(t){return c="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},c(t)}function d(t){t.preventDefault(),t.stopPropagation(),this.removeEventListener(t.type,d)}function u(t,e,o){if(void 0===o&&l.Ay.getIsRTL())return t>e?e:t;if(void 0===o)return t<e?e:t;var r=Math.min(e,o),n=Math.max(e,o);return t<r?r:t>n?n:t}var h=["mousemove","mouseup"],f=["touchmove","touchend"],v=document.implementation.hasFeature("Event.wheel","3.0")?"wheel":"mousewheel",p=["INPUT","SELECT","TEXTAREA"],m=function(t,e){var o=Object.assign({},{slidee:null,horizontal:!1,mouseWheel:!0,scrollBy:0,dragSource:null,mouseDragging:1,touchDragging:1,dragThreshold:3,intervactive:null,speed:0},e),c="scrollBehavior"in document.documentElement.style;!1===e.allowNativeScroll?e.enableNativeScroll=!1:c&&(r.A.firefox&&!n.A.tv||e.allowNativeSmoothScroll)?e.enableNativeScroll=!0:e.requireAnimation&&(r.A.animate||r.A.supportsCssAnimation())?e.enableNativeScroll=!1:n.A.tv&&r.A.animate||(e.enableNativeScroll=!0),r.A.web0s&&(e.enableNativeScroll=!0);var m=this;m.options=o;var g=o.slidee?o.slidee:function(t){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&undefined!==t&&e.push(t);return e}(t.firstChild)[0];m._pos={start:0,center:0,end:0,cur:0,dest:0};var y=!e.enableNativeScroll,S=t,b=o.dragSource?o.dragSource:t,A={released:1},L={last:0,delta:0,resetTime:200};m.initialized=0,m.slidee=g,m.options=o,m.dragging=A;var z,E=t,T=!0,w=0,M=0;function X(){T&&(T=!1,w=g[o.horizontal?"clientWidth":"clientHeight"],M=o.scrollWidth||Math.max(g[o.horizontal?"offsetWidth":"offsetHeight"],g[o.horizontal?"scrollWidth":"scrollHeight"]),m._pos.end=Math.max(M-w,0),l.Ay.getIsRTL()&&(m._pos.end*=-1))}function Y(t){if(T=!0,!t){X();var e=m._pos;m.slideTo(u(e.dest,e.start,e.end))}}function k(t,e,o,n,i){var a=t.style;(i||r.A.edge)&&(a.transition="none",t.offsetWidth),a.transition="transform "+n+"ms ease-out",a[e]=o}function N(t){return t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0}}function R(t){var e="touchstart"===t.type;if(!(A.init||!e&&function(t){for(;t;){if(-1!==p.indexOf(t.tagName))return!0;t=t.parentNode}return!1}(t.target))&&(e?o.touchDragging:o.mouseDragging&&t.which<2)){e||t.preventDefault(),A.released=0,A.init=0,A.source=t.target,A.touch=e;var r=e?t.touches[0]:t;A.initX=r.pageX,A.initY=r.pageY,A.initPos=m._pos.cur,A.start=+new Date,A.time=0,A.path=0,A.delta=0,A.locked=0,A.pathToLock=e?30:10,y&&(e?f.forEach((function(t){i.Ay.addEventListener(document,t,D,{passive:!0})})):h.forEach((function(t){i.Ay.addEventListener(document,t,D,{passive:!0})})))}}function D(t){A.released="mouseup"===t.type||"touchend"===t.type;var e=A.released?"changedTouches":"touches",r=A.touch?t[e][0]:t;if(A.pathX=r.pageX-A.initX,A.pathY=r.pageY-A.initY,A.path=Math.sqrt(Math.pow(A.pathX,2)+Math.pow(A.pathY,2)),A.delta=o.horizontal?A.pathX:A.pathY,A.released||!(A.path<1)){if(!A.init){if(A.path<o.dragThreshold)return A.released?_():void 0;if(!(o.horizontal?Math.abs(A.pathX)>Math.abs(A.pathY):Math.abs(A.pathX)<Math.abs(A.pathY)))return _();A.init=1}!A.locked&&A.path>A.pathToLock&&(A.locked=1,A.source.addEventListener("click",d)),A.released&&_(),m.slideTo(Math.round(A.initPos-A.delta))}}function _(){A.released=!0,f.forEach((function(t){i.Ay.removeEventListener(document,t,D,{passive:!0})})),h.forEach((function(t){i.Ay.removeEventListener(document,t,D,{passive:!0})})),setTimeout((function(){A.source.removeEventListener("click",d)})),A.init=0}function x(t){X();var e=m._pos;if(o.scrollBy&&e.start!==e.end){var r=function(t){return L.curDelta=o.horizontal?t.deltaX:t.deltaY,y&&(L.curDelta/=1===t.deltaMode?3:100),L.curDelta}(t);y?(o.horizontal&&0!==t.deltaX&&t.deltaY>=-5&&t.deltaY<=5&&e.dest+o.scrollBy*r>0&&e.dest+o.scrollBy*r<e.end&&t.preventDefault(),m.slideBy(o.scrollBy*r)):(c&&(r*=12),o.horizontal?E.scrollLeft+=r:E.scrollTop+=r)}}m.reload=function(){Y()},m.getScrollEventName=function(){return y?"scrollanimate":"scroll"},m.getScrollSlider=function(){return g},m.getScrollFrame=function(){return t},m.slideTo=function(e,r,i){X();var a=m._pos;if(e=n.A.tv&&l.Ay.getIsRTL()?u(-e,a.start):n.A.tv?u(e,a.start):u(e,a.start,a.end),y){a.cur,r=r||A.init||!o.speed;var s=(new Date).getTime();o.autoImmediate&&!r&&s-(z||0)<=50&&(r=!0),!r&&o.skipSlideToWhenVisible&&null!=i&&i.isVisible||(a.dest=e,function(e,r,n){var i=o.speed;n&&(i=o.immediateSpeed||50),o.horizontal?k(g,"transform","translateX("+-Math.round(r)+"px)",i):k(g,"transform","translateY("+-Math.round(r)+"px)",i),m._pos.cur=r,o.dispatchScrollEvent&&t.dispatchEvent(new CustomEvent(m.getScrollEventName(),{bubbles:!0,cancelable:!1}))}(0,e,r),z=s)}else!function(t,e,r){t.scroll?o.horizontal?t.scroll({left:e,behavior:r?"instant":"smooth"}):t.scroll({top:e,behavior:r?"instant":"smooth"}):!r&&t.scrollTo?o.horizontal?t.scrollTo(Math.round(e),0):t.scrollTo(0,Math.round(e)):o.horizontal?t.scrollLeft=Math.round(e):t.scrollTop=Math.round(e)}(E,e,r)},m.getPos=function(t){var e=N(y?g:E),r=N(t),n=r.left-e.left;l.Ay.getIsRTL()&&(n=e.right-r.right);var i=o.horizontal?n:r.top-e.top,a=o.horizontal?r.width:r.height;a||0===a||(a=t[o.horizontal?"offsetWidth":"offsetHeight"]);var s=o.centerOffset||0;y||(s=0,o.horizontal?i+=E.scrollLeft:i+=E.scrollTop),X();var c=m._pos.cur,d=c+w;l.Ay.getIsRTL()&&(d=c-w),console.debug("offset:"+i+" currentStart:"+c+" currentEnd:"+d);var u=i>=Math.min(c,d)&&(l.Ay.getIsRTL()?i-a:i+a)<=Math.max(c,d);return{start:i,center:i+s-w/2+a/2,end:i-w+a,size:a,isVisible:u}},m.getCenterPosition=function(t){X();var e=m.getPos(t);return u(e.center,e.start,e.end)},m.destroy=function(){return m.frameResizeObserver&&(m.frameResizeObserver.disconnect(),m.frameResizeObserver=null),i.Ay.removeEventListener(t,"scroll",W,{passive:!0}),i.Ay.removeEventListener(S,v,x,{passive:!1}),i.Ay.removeEventListener(b,"touchstart",R,{passive:!0}),i.Ay.removeEventListener(t,"click",B,{passive:!0,capture:!0}),i.Ay.removeEventListener(b,"mousedown",R,{}),S.removeAttribute("data-scroll-mode-".concat(o.horizontal?"x":"y")),m.initialized=0,m};var C={};function P(t){var e=t[0];if(e){var o=e.contentRect;if(0===o.width||0===o.height)return;o.width===C.width&&o.height===C.height||(C=o,Y(!1))}}function W(){o.horizontal?this.scrollLeft=0:this.scrollTop=0}function B(t){if(1===t.which){var e=a.A.focusableParent(t.target);e&&e!==document.activeElement&&e.focus()}}m.getScrollPosition=function(){return y?m._pos.cur:o.horizontal?E.scrollLeft:E.scrollTop},m.getScrollSize=function(){return y?M:o.horizontal?E.scrollWidth:E.scrollHeight},m.init=function(){if(!m.initialized)return y?(n.A.tv&&(t.style.overflow="hidden"),g.style["will-change"]="transform",g.style.transition="transform "+o.speed+"ms ease-out",o.horizontal?g.classList.add("animatedScrollX"):g.classList.add("animatedScrollY")):o.horizontal?(n.A.desktop&&!o.hideScrollbar?E.classList.add("scrollX"):(E.classList.add("scrollX"),E.classList.add("hiddenScrollX"),n.A.tv&&!1!==o.allowNativeSmoothScroll&&E.classList.add("smoothScrollX")),o.forceHideScrollbars&&E.classList.add("hiddenScrollX-forced")):(n.A.desktop&&!o.hideScrollbar?E.classList.add("scrollY"):(E.classList.add("scrollY"),E.classList.add("hiddenScrollY"),n.A.tv&&!1!==o.allowNativeSmoothScroll&&E.classList.add("smoothScrollY")),o.forceHideScrollbars&&E.classList.add("hiddenScrollY-forced")),S.setAttribute("data-scroll-mode-".concat(o.horizontal?"x":"y"),"custom"),(y||n.A.tv)&&i.Ay.addEventListener(b,"mousedown",R,{}),m.frameResizeObserver=new s.A(P,{}),m.frameResizeObserver.observe(t),y?(i.Ay.addEventListener(b,"touchstart",R,{passive:!0}),o.horizontal||i.Ay.addEventListener(t,"scroll",W,{passive:!0}),o.mouseWheel&&i.Ay.addEventListener(S,v,x,{passive:!1})):o.horizontal&&o.mouseWheel&&i.Ay.addEventListener(S,v,x,{passive:!1}),i.Ay.addEventListener(t,"click",B,{passive:!0,capture:!0}),m.initialized=1,Y(!0),m}};m.prototype.slideBy=function(t,e){t&&this.slideTo(this._pos.dest+t,e)},m.prototype.to=function(t,e,o){var r;if("boolean"===(null==(r=e)?String(r):"object"===c(r)||"function"==typeof r?Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":c(r))&&(o=e,e=void 0),void 0===e)this.slideTo(this._pos[t],o);else{var n=this.getPos(e);n&&this.slideTo(n[t],o,n)}},m.prototype.toStart=function(t,e){this.to("start",t,e)},m.prototype.toEnd=function(t,e){this.to("end",t,e)},m.prototype.toCenter=function(t,e){this.to("center",t,e)},m.create=function(t,e){var o=new m(t,e);return Promise.resolve(o)},e.A=m}}]);