@mibmo/jellyfin-tizen 10.11.4 → 10.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/tizen-adapter.js +1 -1
  3. package/www/12011.da8ef78a097e995f6a54.chunk.js +1 -0
  4. package/www/24468.0965909e13c9a8e197d0.chunk.js +1 -0
  5. package/www/32721.7df69cb5f2d12904581b.chunk.js +2 -0
  6. package/www/{38122.c2d024b452ef9603b24b.chunk.js → 38122.5484b7a8e84127a41eab.chunk.js} +1 -1
  7. package/www/{44599.02f9e6e763d7854b5e82.chunk.js → 44599.b42aefaa4c79d0e2b43b.chunk.js} +1 -1
  8. package/www/{6496.106e03ed2cb3c2498e7b.chunk.js → 6496.a2625db83f5e6116653d.chunk.js} +1 -1
  9. package/www/68603.927deb4f3fa3d339662d.chunk.js +1 -0
  10. package/www/{70538.23ea077c9a932337681d.chunk.js → 70538.d6c399619eb76106c279.chunk.js} +2 -2
  11. package/www/81954.300ea98bc9f7b1557160.chunk.js +1 -0
  12. package/www/8575.9930ac44b80fc0c13f36.chunk.js +1 -0
  13. package/www/99883.9ffc7cabe8574ec089b7.chunk.js +1 -0
  14. package/www/assets/img/devices/firetv.svg +1 -0
  15. package/www/devices.01bfe1e86e6bdfcde095.chunk.js +1 -0
  16. package/www/index.2619e1ebaee8f0dd41ff.chunk.js +1 -0
  17. package/www/index.html +1 -1
  18. package/www/libraries.38e69a6fc429a33d86f9.chunk.js +1 -0
  19. package/www/library.6e684507234df3a63964.chunk.js +1 -0
  20. package/www/lyrics.c31f5e5752833ba34655.chunk.js +1 -0
  21. package/www/{main.jellyfin.28c121270fe02d9f8014.css → main.jellyfin.7eaf27d20464cbe82c37.css} +2 -2
  22. package/www/main.jellyfin.bundle.js +1 -1
  23. package/www/playback-video.643576d4f0393b6775e4.chunk.js +2 -0
  24. package/www/plugins.56e584230d162132aeb5.chunk.js +1 -0
  25. package/www/runtime.bundle.js +1 -1
  26. package/www/{session-login.c08895ee559e30dd0241.chunk.js → session-login.772912551717410a1de5.chunk.js} +2 -2
  27. package/www/{session-selectServer.d08dd2225623662430d8.chunk.js → session-selectServer.11b3f8f84ec57fe3334e.chunk.js} +1 -1
  28. package/www/12011.78b1d210ff9a6b27c9ec.chunk.js +0 -1
  29. package/www/24468.cc4786b370fe6972ab57.chunk.js +0 -1
  30. package/www/32721.1565fbee2f79c634a171.chunk.js +0 -2
  31. package/www/68603.dd143553b71a7dcbae51.chunk.js +0 -1
  32. package/www/81954.221ec67f79242f490c86.chunk.js +0 -1
  33. package/www/8575.22b3385f8c1742fe35c4.chunk.js +0 -1
  34. package/www/99883.23415867662c89aaf373.chunk.js +0 -1
  35. package/www/devices.77000b3a9001dd7234e5.chunk.js +0 -1
  36. package/www/index.9d491a5deddd76357735.chunk.js +0 -1
  37. package/www/libraries.4988e265e604bcb0e445.chunk.js +0 -1
  38. package/www/library.0578cfcc17ad4ce09d2b.chunk.js +0 -1
  39. package/www/lyrics.05d5ed668649f4fe72bd.chunk.js +0 -1
  40. package/www/playback-video.1bb437c4ee35983c6b77.chunk.js +0 -2
  41. package/www/plugins.79d12abe5ee75e209e7e.chunk.js +0 -1
  42. /package/www/{32721.1565fbee2f79c634a171.chunk.js.LICENSE.txt → 32721.7df69cb5f2d12904581b.chunk.js.LICENSE.txt} +0 -0
  43. /package/www/{70538.23ea077c9a932337681d.chunk.js.LICENSE.txt → 70538.d6c399619eb76106c279.chunk.js.LICENSE.txt} +0 -0
  44. /package/www/{playback-video.1bb437c4ee35983c6b77.chunk.js.LICENSE.txt → playback-video.643576d4f0393b6775e4.chunk.js.LICENSE.txt} +0 -0
  45. /package/www/{session-login.c08895ee559e30dd0241.chunk.js.LICENSE.txt → session-login.772912551717410a1de5.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see session-login.c08895ee559e30dd0241.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[68603,93649,96084],{2825:function(e,r,t){t.r(r),t.d(r,{default:function(){return M}}),t(29305),t(32733),t(84701),t(2623),t(24776),t(69892),t(76281),t(44962),t(89336),t(10849),t(70389),t(36947),t(26437),t(52697),t(78557),t(90076),t(95021),t(73687),t(83994),t(82367);var n=t(31234),a=t.n(n),o=t(47593),c=t(97339),u=t(67430),i=t(22622),s=t(90381),l=t(36300),d=t(8566),f=t(46782),v=t(73233),m=t(34789),h=t(5898),y=(t(77157),t(89100)),g=t(71866),p=t(79754),b=t(41177),S=t(36645);function w(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return A(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(u)throw o}}}}function A(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function C(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var i=n&&n.prototype instanceof u?n:u,s=Object.create(i.prototype);return k(s,"_invoke",function(t,n,a){var o,u,i,s=0,l=a||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(r,t){return o=r,u=0,i=e,f.n=t,c}};function v(t,n){for(u=t,i=n,r=0;!d&&s&&!a&&r<l.length;r++){var a,o=l[r],v=f.p,m=o[2];t>3?(a=m===n)&&(i=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=t<2&&v<o[1])?(u=0,f.v=n,f.n=o[1]):v<m&&(a=t<3||o[0]>n||n>m)&&(o[4]=t,o[5]=n,f.n=m,u=0))}if(a||t>1)return c;throw d=!0,n}return function(a,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&v(l,m),u=l,i=m;(r=u<2?e:i)||!d;){o||(u?u<3?(u>1&&(f.n=-1),v(u,i)):f.n=i:f.v=i);try{if(s=2,o){if(u||(a="next"),r=o[a]){if(!(r=r.call(o,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,u<2&&(u=0)}else 1===u&&(r=o.return)&&r.call(o),u<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),u=1);o=e}else if((r=(d=f.n<0)?i:t.call(n,f))!==c)break}catch(r){o=e,u=1,i=r}finally{s=1}}return{value:r,done:d}}}(t,a,o),!0),s}var c={};function u(){}function i(){}function s(){}r=Object.getPrototypeOf;var l=[][n]?r(r([][n]())):(k(r={},n,(function(){return this})),r),d=s.prototype=u.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,k(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return i.prototype=s,k(d,"constructor",s),k(s,"constructor",i),i.displayName="GeneratorFunction",k(s,a,"GeneratorFunction"),k(d),k(d,a,"Generator"),k(d,n,(function(){return this})),k(d,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:o,m:f}})()}function k(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}k=function(e,r,t,n){if(r)a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t;else{var o=function(r,t){k(e,r,(function(e){return this._invoke(r,t,e)}))};o("next",0),o("throw",1),o("return",2)}},k(e,r,t,n)}function q(e,r,t,n,a,o,c){try{var u=e[o](c),i=u.value}catch(e){return void t(e)}u.done?r(i):Promise.resolve(i).then(n,a)}var x=!m.A.slow&&!m.A.edge;function P(e,r,t,n,a){d.Ay.show(),r.authenticateUserByName(n,a).then((function(e){var n=e.User;d.Ay.hide(),I(n.Id,e.AccessToken,r,t)}),(function(r){if(e.querySelector("#txtManualPassword").value="",d.Ay.hide(),[401,403].includes(r.status)){var t=401===r.status?"MessageInvalidUser":"MessageUnauthorizedUser";(0,g.A)(h.Ay.translate(t))}else y.default.alert({message:h.Ay.translate("MessageUnableToConnectToServer"),title:h.Ay.translate("HeaderConnectionFailure")})}))}function I(e,r,t,n){y.default.onServerChanged(e,r,t),y.default.navigate(n||"home")}function O(e,r,t){e.querySelector(".chkRememberLogin").checked=s.A.enableAutoLogin(),e.querySelector(".manualLoginForm").classList.remove("hide"),e.querySelector(".visualLoginForm").classList.add("hide"),e.querySelector(".btnManual").classList.add("hide"),t?e.querySelector("#txtManualPassword").focus():e.querySelector("#txtManualName").focus(),r?e.querySelector(".btnCancel").classList.remove("hide"):e.querySelector(".btnCancel").classList.add("hide")}function M(e,r){function n(){var e=r.serverid;return e?u.tF.getOrCreateApiClient(e):ApiClient}function m(){if(r.url)try{return decodeURIComponent(r.url)}catch(e){console.warn("[LoginPage] unable to decode url param",r.url,e)}return"/home"}function g(){e.querySelector(".visualLoginForm").classList.remove("hide"),e.querySelector(".manualLoginForm").classList.add("hide"),e.querySelector(".btnManual").classList.remove("hide"),Promise.resolve().then(t.bind(t,84069)).then((function(r){r.default.autoFocus(e)}))}e.querySelector("#divUsers").addEventListener("click",(function(r){var t=l.Ay.parentWithClass(r.target,"card"),a=t?t.querySelector(".cardContent"):null;if(a){var o=e,c=a.getAttribute("data-userid"),u=a.getAttribute("data-username"),i=a.getAttribute("data-haspw");"manual"===c?(o.querySelector("#txtManualName").value="",O(o,!0)):"false"==i?P(o,n(),m(),u,""):(o.querySelector("#txtManualName").value=u,o.querySelector("#txtManualPassword").value="",O(o,!0,!0))}})),e.querySelector(".manualLoginForm").addEventListener("submit",(function(r){return s.A.enableAutoLogin(e.querySelector(".chkRememberLogin").checked),P(e,n(),m(),e.querySelector("#txtManualName").value,e.querySelector("#txtManualPassword").value),r.preventDefault(),!1})),e.querySelector(".btnForgotPassword").addEventListener("click",(function(){y.default.navigate("forgotpassword")})),e.querySelector(".btnCancel").addEventListener("click",g),e.querySelector(".btnQuick").addEventListener("click",(function(){return e=n(),r=m(),t=e.getUrl("/QuickConnect/Initiate"),e.ajax({type:"POST",url:t},!0).then((function(e){return e.json()})).then((function(t){if(!t.Secret||!t.Code)return console.error("Malformed quick connect response",t),!1;(0,b.A)({dialogOptions:{id:"quickConnectAlert"},title:h.Ay.translate("QuickConnect"),text:h.Ay.translate("QuickConnectAuthorizeCode",t.Code)});var n=e.getUrl("/QuickConnect/Connect?Secret="+t.Secret),a=setInterval((function(){e.getJSON(n).then(function(){var t,n=(t=C().m((function t(n){var o,c;return C().w((function(t){for(;;)switch(t.n){case 0:if(n.Authenticated){t.n=1;break}return t.a(2);case 1:return clearInterval(a),(o=document.getElementById("quickConnectAlert"))&&p.default.close(o),t.n=2,e.quickConnect(n.Secret);case 2:I((c=t.v).User.Id,c.AccessToken,e,r);case 3:return t.a(2)}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function c(e){q(o,n,a,c,u,"next",e)}function u(e){q(o,n,a,c,u,"throw",e)}c(void 0)}))});return function(e){return n.apply(this,arguments)}}(),(function(e){clearInterval(a);var r=document.getElementById("quickConnectAlert");r&&p.default.close(r),y.default.alert({message:h.Ay.translate("QuickConnectDeactivated"),title:h.Ay.translate("HeaderError")}),console.error("Unable to login with quick connect",e)}))}),5e3,n);return!0}),(function(e){return y.default.alert({message:h.Ay.translate("QuickConnectNotActive"),title:h.Ay.translate("HeaderError")}),console.error("Quick connect error: ",e),!1})),!1;var e,r,t})),e.querySelector(".btnManual").addEventListener("click",(function(){e.querySelector("#txtManualName").value="",O(e,!0)})),e.querySelector(".btnSelectServer").addEventListener("click",(function(){y.default.selectServer()})),e.addEventListener("viewshow",(function(){d.Ay.show(),v.default.setTransparentMenu(!0),i.g.supports(c.Y.MultiServer)||e.querySelector(".btnSelectServer").classList.add("hide");var r=n();r.getQuickConnect("Enabled").then((function(r){!0===r&&e.querySelector(".btnQuick").classList.remove("hide")})).catch((function(){console.debug("Failed to get QuickConnect status")})),r.getPublicUsers().then((function(t){t.length?(g(),function(e,r,t){var n,a="",o=w(t);try{for(o.s();!(n=o.n()).done;){var c=n.value,u="card squareCard scalableCard squareCard-scalable";f.A.tv&&(u+=" show-focus",x&&(u+=" show-animation")),a+='<button type="button" class="'+u+'">',a+='<div class="cardBox cardBox-bottompadded">',a+='<div class="cardScalable">',a+='<div class="cardPadder cardPadder-square"></div>',a+='<div class="cardContent" data-haspw="'.concat(c.HasPassword,'" data-username="').concat(c.Name,'" data-userid="').concat(c.Id,'">'),c.PrimaryImageTag?a+='<div class="cardImageContainer coveredImage" style="background-image:url(\''+r.getUserImageUrl(c.Id,{width:300,tag:c.PrimaryImageTag,type:"Primary"})+"');\"></div>":(a+='<div class="cardImage flex align-items-center justify-content-center '.concat((0,S.Qp)(),'">'),a+='<span class="material-icons cardImageIcon person" aria-hidden="true"></span>',a+="</div>"),a+="</div>",a+="</div>",a+='<div class="cardFooter visualCardBox-cardFooter">',a+='<div class="cardText singleCardText cardTextCentered">'+c.Name+"</div>",a+="</div>",a+="</div>",a+="</button>"}}catch(e){o.e(e)}finally{o.f()}e.querySelector("#divUsers").innerHTML=a}(e,r,t)):(e.querySelector("#txtManualName").value="",O(e,!1,!1))})).catch().then((function(){d.Ay.hide()})),r.getJSON(r.getUrl("Branding/Configuration")).then((function(r){var t=e.querySelector(".loginDisclaimer");t.innerHTML=a().sanitize((0,o.A)({html:!0}).render(r.LoginDisclaimer||""));var n,c=w(t.querySelectorAll("a"));try{for(c.s();!(n=c.n()).done;){var u=n.value;u.rel="noopener noreferrer",u.target="_blank",u.classList.add("button-link"),u.setAttribute("is","emby-linkbutton"),f.A.tv&&(u.tabIndex=-1)}}catch(e){c.e(e)}finally{c.f()}}))})),e.addEventListener("viewhide",(function(){v.default.setTransparentMenu(!1)}))}},32203:function(e,r,t){t.d(r,{Bq:function(){return i},Jd:function(){return u},yq:function(){return c}});var n=t(65369),a=t(11444),o="assets/img/devices/";function c(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return o+"samsungtv.svg";case"Xbox One":return o+"xbox.svg";case"Sony PS4":return o+"playstation.svg";case"Kodi":case"Kodi JellyCon":return o+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return o+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return o+"apple.svg";case"Home Assistant":return o+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return o+"webos.svg";case"Jellyfin Roku":return o+"roku.svg";case"Finamp":return o+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return o+"opera.svg";case"Chrome":case"Chrome Android":return o+"chrome.svg";case"Firefox":case"Firefox Android":return o+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return o+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return o+"edgechromium.svg";case"Edge":return o+"edge.svg";case"Internet Explorer":return o+"msie.svg";case"Titan OS":return o+"titanos.svg";default:return o+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(r=e.Capabilities)||void 0===r?void 0:r.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(r){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,r)}return o+"other.svg"}}function u(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function i(e,r){switch(e){case a.D.MusicAlbum:return"album";case a.D.MusicArtist:case a.D.Person:return"person";case a.D.Audio:return"audiotrack";case a.D.Movie:return"movie";case a.D.Episode:case a.D.Series:return"tv";case a.D.Program:return"live_tv";case a.D.Book:return"book";case a.D.Folder:return"folder";case a.D.BoxSet:return"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return r}}r.Ay={getDeviceIcon:c,getLibraryIcon:u,getItemTypeIcon:i}},36645:function(e,r,t){t.d(r,{QW:function(){return S},Qp:function(){return g},Rn:function(){return y},Tj:function(){return v},a_:function(){return m},hn:function(){return l},n5:function(){return d},uA:function(){return h},w:function(){return f},zo:function(){return b}});var n=t(76942),a=t(58953),o=t(4452),c=t.n(o),u=2/3,i=16/9,s=1e3/185,l=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var r=window.screen;return!!(r&&r.availWidth-e>20)},v=function(e){return null==e?n.G8.MixedSquare:e>=1.33?n.G8.MixedBackdrop:e>.8?n.G8.MixedSquare:n.G8.MixedPortrait},m=function(e){var r;return c()(((r={card:!0})["".concat(e.shape,"Card")]=e.shape,r["".concat(e.cardCssClass)]=e.cardCssClass,r["".concat(e.cardClass)]=e.cardClass,r["card-hoverable"]=e.isDesktop,r["show-focus"]=e.isTV,r["show-animation"]=e.isTV&&e.enableFocusTransform,r.groupedCard=e.showChildCountIndicator&&e.childCount,r["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),r.itemAction="button"===e.tagName,r))},h=function(e){var r;return c()(((r={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[g(e.itemName)]=!e.imgUrl,r))},y=function(e){return c()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},g=function(e){return"defaultCardBackground defaultCardBackground".concat(p(e))},p=function(e){if(e){for(var r=Math.floor(e.length/2),t=String(e.slice(r,r+1).charCodeAt(0)),n=0,o=0;o<t.length;o++)n+=parseInt(t.charAt(o),10);return parseInt(String(n).slice(-1),10)%5+1}return(0,a.HO)(1,5)},b=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?u:-1!==e.indexOf("backdrop")?i:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?s:null:null},S=function(e,r,t,n){switch(e){case"portrait":return w(r,n);case"square":return A(r,n);case"banner":return C(r);case"backdrop":return k(r,n);case"smallBackdrop":return q(r);case"overflowSmallBackdrop":return x(r,t,n);case"overflowPortrait":return P(r,t,n);case"overflowSquare":return I(r,t,n);case"overflowBackdrop":return O(r,t,n);default:return 4}},w=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},A=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},C=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},k=function(e,r){switch(!0){case r:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},q=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},x=function(e,r,t){switch(!0){case t:return 100/18.9;case r&&e>=800:return 100/15.5;case r:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},P=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},I=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},O=function(e,r,t){switch(!0){case t:return 100/23.3;case r&&e>=1700:return 100/18.5;case r:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},76942:function(e,r,t){var n;function a(e){return void 0===e&&(e=!0),e?n.SquareOverflow:n.Square}function o(e){return void 0===e&&(e=!0),e?n.BackdropOverflow:n.Backdrop}function c(e){return void 0===e&&(e=!0),e?n.PortraitOverflow:n.Portrait}t.d(r,{G8:function(){return n},UI:function(){return o},xK:function(){return c},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(n||(n={}))}}]);
1
+ /*! For license information please see session-login.772912551717410a1de5.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[68603,93649,96084],{2825:function(e,r,t){t.r(r),t.d(r,{default:function(){return M}}),t(29305),t(32733),t(84701),t(2623),t(24776),t(69892),t(76281),t(44962),t(89336),t(10849),t(70389),t(36947),t(26437),t(52697),t(78557),t(90076),t(95021),t(73687),t(83994),t(82367);var n=t(31234),a=t.n(n),o=t(47593),c=t(97339),u=t(67430),i=t(22622),s=t(90381),l=t(36300),d=t(8566),f=t(46782),v=t(73233),m=t(34789),h=t(5898),g=(t(77157),t(89100)),y=t(71866),p=t(79754),b=t(41177),S=t(36645);function w(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return A(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(u)throw o}}}}function A(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function C(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var i=n&&n.prototype instanceof u?n:u,s=Object.create(i.prototype);return k(s,"_invoke",function(t,n,a){var o,u,i,s=0,l=a||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(r,t){return o=r,u=0,i=e,f.n=t,c}};function v(t,n){for(u=t,i=n,r=0;!d&&s&&!a&&r<l.length;r++){var a,o=l[r],v=f.p,m=o[2];t>3?(a=m===n)&&(i=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=t<2&&v<o[1])?(u=0,f.v=n,f.n=o[1]):v<m&&(a=t<3||o[0]>n||n>m)&&(o[4]=t,o[5]=n,f.n=m,u=0))}if(a||t>1)return c;throw d=!0,n}return function(a,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&v(l,m),u=l,i=m;(r=u<2?e:i)||!d;){o||(u?u<3?(u>1&&(f.n=-1),v(u,i)):f.n=i:f.v=i);try{if(s=2,o){if(u||(a="next"),r=o[a]){if(!(r=r.call(o,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,u<2&&(u=0)}else 1===u&&(r=o.return)&&r.call(o),u<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),u=1);o=e}else if((r=(d=f.n<0)?i:t.call(n,f))!==c)break}catch(r){o=e,u=1,i=r}finally{s=1}}return{value:r,done:d}}}(t,a,o),!0),s}var c={};function u(){}function i(){}function s(){}r=Object.getPrototypeOf;var l=[][n]?r(r([][n]())):(k(r={},n,(function(){return this})),r),d=s.prototype=u.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,k(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return i.prototype=s,k(d,"constructor",s),k(s,"constructor",i),i.displayName="GeneratorFunction",k(s,a,"GeneratorFunction"),k(d),k(d,a,"Generator"),k(d,n,(function(){return this})),k(d,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:o,m:f}})()}function k(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}k=function(e,r,t,n){if(r)a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t;else{var o=function(r,t){k(e,r,(function(e){return this._invoke(r,t,e)}))};o("next",0),o("throw",1),o("return",2)}},k(e,r,t,n)}function q(e,r,t,n,a,o,c){try{var u=e[o](c),i=u.value}catch(e){return void t(e)}u.done?r(i):Promise.resolve(i).then(n,a)}var x=!m.A.slow&&!m.A.edge;function P(e,r,t,n,a){d.Ay.show(),r.authenticateUserByName(n,a).then((function(e){var n=e.User;d.Ay.hide(),I(n.Id,e.AccessToken,r,t)}),(function(r){if(e.querySelector("#txtManualPassword").value="",d.Ay.hide(),[401,403].includes(r.status)){var t=401===r.status?"MessageInvalidUser":"MessageUnauthorizedUser";(0,y.A)(h.Ay.translate(t))}else g.default.alert({message:h.Ay.translate("MessageUnableToConnectToServer"),title:h.Ay.translate("HeaderConnectionFailure")})}))}function I(e,r,t,n){g.default.onServerChanged(e,r,t),g.default.navigate(n||"home")}function O(e,r,t){e.querySelector(".chkRememberLogin").checked=s.A.enableAutoLogin(),e.querySelector(".manualLoginForm").classList.remove("hide"),e.querySelector(".visualLoginForm").classList.add("hide"),e.querySelector(".btnManual").classList.add("hide"),t?e.querySelector("#txtManualPassword").focus():e.querySelector("#txtManualName").focus(),r?e.querySelector(".btnCancel").classList.remove("hide"):e.querySelector(".btnCancel").classList.add("hide")}function M(e,r){function n(){var e=r.serverid;return e?u.tF.getOrCreateApiClient(e):ApiClient}function m(){if(r.url)try{return decodeURIComponent(r.url)}catch(e){console.warn("[LoginPage] unable to decode url param",r.url,e)}return"/home"}function y(){e.querySelector(".visualLoginForm").classList.remove("hide"),e.querySelector(".manualLoginForm").classList.add("hide"),e.querySelector(".btnManual").classList.remove("hide"),Promise.resolve().then(t.bind(t,84069)).then((function(r){r.default.autoFocus(e)}))}e.querySelector("#divUsers").addEventListener("click",(function(r){var t=l.Ay.parentWithClass(r.target,"card"),a=t?t.querySelector(".cardContent"):null;if(a){var o=e,c=a.getAttribute("data-userid"),u=a.getAttribute("data-username"),i=a.getAttribute("data-haspw");"manual"===c?(o.querySelector("#txtManualName").value="",O(o,!0)):"false"==i?P(o,n(),m(),u,""):(o.querySelector("#txtManualName").value=u,o.querySelector("#txtManualPassword").value="",O(o,!0,!0))}})),e.querySelector(".manualLoginForm").addEventListener("submit",(function(r){return s.A.enableAutoLogin(e.querySelector(".chkRememberLogin").checked),P(e,n(),m(),e.querySelector("#txtManualName").value,e.querySelector("#txtManualPassword").value),r.preventDefault(),!1})),e.querySelector(".btnForgotPassword").addEventListener("click",(function(){g.default.navigate("forgotpassword")})),e.querySelector(".btnCancel").addEventListener("click",y),e.querySelector(".btnQuick").addEventListener("click",(function(){return e=n(),r=m(),t=e.getUrl("/QuickConnect/Initiate"),e.ajax({type:"POST",url:t},!0).then((function(e){return e.json()})).then((function(t){if(!t.Secret||!t.Code)return console.error("Malformed quick connect response",t),!1;(0,b.A)({dialogOptions:{id:"quickConnectAlert"},title:h.Ay.translate("QuickConnect"),text:h.Ay.translate("QuickConnectAuthorizeCode",t.Code)});var n=e.getUrl("/QuickConnect/Connect?Secret="+t.Secret),a=setInterval((function(){e.getJSON(n).then(function(){var t,n=(t=C().m((function t(n){var o,c;return C().w((function(t){for(;;)switch(t.n){case 0:if(n.Authenticated){t.n=1;break}return t.a(2);case 1:return clearInterval(a),(o=document.getElementById("quickConnectAlert"))&&p.default.close(o),t.n=2,e.quickConnect(n.Secret);case 2:I((c=t.v).User.Id,c.AccessToken,e,r);case 3:return t.a(2)}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function c(e){q(o,n,a,c,u,"next",e)}function u(e){q(o,n,a,c,u,"throw",e)}c(void 0)}))});return function(e){return n.apply(this,arguments)}}(),(function(e){clearInterval(a);var r=document.getElementById("quickConnectAlert");r&&p.default.close(r),g.default.alert({message:h.Ay.translate("QuickConnectDeactivated"),title:h.Ay.translate("HeaderError")}),console.error("Unable to login with quick connect",e)}))}),5e3,n);return!0}),(function(e){return g.default.alert({message:h.Ay.translate("QuickConnectNotActive"),title:h.Ay.translate("HeaderError")}),console.error("Quick connect error: ",e),!1})),!1;var e,r,t})),e.querySelector(".btnManual").addEventListener("click",(function(){e.querySelector("#txtManualName").value="",O(e,!0)})),e.querySelector(".btnSelectServer").addEventListener("click",(function(){g.default.selectServer()})),e.addEventListener("viewshow",(function(){d.Ay.show(),v.default.setTransparentMenu(!0),i.g.supports(c.Y.MultiServer)||e.querySelector(".btnSelectServer").classList.add("hide");var r=n();r.getQuickConnect("Enabled").then((function(r){!0===r&&e.querySelector(".btnQuick").classList.remove("hide")})).catch((function(){console.debug("Failed to get QuickConnect status")})),r.getPublicUsers().then((function(t){t.length?(y(),function(e,r,t){var n,a="",o=w(t);try{for(o.s();!(n=o.n()).done;){var c=n.value,u="card squareCard scalableCard squareCard-scalable";f.A.tv&&(u+=" show-focus",x&&(u+=" show-animation")),a+='<button type="button" class="'+u+'">',a+='<div class="cardBox cardBox-bottompadded">',a+='<div class="cardScalable">',a+='<div class="cardPadder cardPadder-square"></div>',a+='<div class="cardContent" data-haspw="'.concat(c.HasPassword,'" data-username="').concat(c.Name,'" data-userid="').concat(c.Id,'">'),c.PrimaryImageTag?a+='<div class="cardImageContainer coveredImage" style="background-image:url(\''+r.getUserImageUrl(c.Id,{width:300,tag:c.PrimaryImageTag,type:"Primary"})+"');\"></div>":(a+='<div class="cardImage flex align-items-center justify-content-center '.concat((0,S.Qp)(),'">'),a+='<span class="material-icons cardImageIcon person" aria-hidden="true"></span>',a+="</div>"),a+="</div>",a+="</div>",a+='<div class="cardFooter visualCardBox-cardFooter">',a+='<div class="cardText singleCardText cardTextCentered">'+c.Name+"</div>",a+="</div>",a+="</div>",a+="</button>"}}catch(e){o.e(e)}finally{o.f()}e.querySelector("#divUsers").innerHTML=a}(e,r,t)):(e.querySelector("#txtManualName").value="",O(e,!1,!1))})).catch().then((function(){d.Ay.hide()})),r.getJSON(r.getUrl("Branding/Configuration")).then((function(r){var t=e.querySelector(".loginDisclaimer");t.innerHTML=a().sanitize((0,o.A)({html:!0}).render(r.LoginDisclaimer||""));var n,c=w(t.querySelectorAll("a"));try{for(c.s();!(n=c.n()).done;){var u=n.value;u.rel="noopener noreferrer",u.target="_blank",u.classList.add("button-link"),u.setAttribute("is","emby-linkbutton"),f.A.tv&&(u.tabIndex=-1)}}catch(e){c.e(e)}finally{c.f()}}))})),e.addEventListener("viewhide",(function(){v.default.setTransparentMenu(!1)}))}},32203:function(e,r,t){t.d(r,{Bq:function(){return i},Jd:function(){return u},yq:function(){return c}});var n=t(65369),a=t(11444),o="assets/img/devices/";function c(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return o+"samsungtv.svg";case"Xbox One":return o+"xbox.svg";case"Sony PS4":return o+"playstation.svg";case"Kodi":case"Kodi JellyCon":return o+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return o+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return o+"apple.svg";case"Home Assistant":return o+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return o+"webos.svg";case"Jellyfin Roku":return o+"roku.svg";case"Finamp":return o+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return o+"opera.svg";case"Chrome":case"Chrome Android":return o+"chrome.svg";case"Firefox":case"Firefox Android":return o+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return o+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return o+"edgechromium.svg";case"Edge":return o+"edge.svg";case"Internet Explorer":return o+"msie.svg";case"Titan OS":return o+"titanos.svg";case"Vega OS":return o+"firetv.svg";default:return o+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(r=e.Capabilities)||void 0===r?void 0:r.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(r){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,r)}return o+"other.svg"}}function u(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function i(e,r){switch(e){case a.D.MusicAlbum:return"album";case a.D.MusicArtist:case a.D.Person:return"person";case a.D.Audio:return"audiotrack";case a.D.Movie:return"movie";case a.D.Episode:case a.D.Series:return"tv";case a.D.Program:return"live_tv";case a.D.Book:return"book";case a.D.Folder:return"folder";case a.D.BoxSet:return"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return r}}r.Ay={getDeviceIcon:c,getLibraryIcon:u,getItemTypeIcon:i}},36645:function(e,r,t){t.d(r,{QW:function(){return S},Qp:function(){return y},Rn:function(){return g},Tj:function(){return v},a_:function(){return m},hn:function(){return l},n5:function(){return d},uA:function(){return h},w:function(){return f},zo:function(){return b}});var n=t(76942),a=t(58953),o=t(4452),c=t.n(o),u=2/3,i=16/9,s=1e3/185,l=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var r=window.screen;return!!(r&&r.availWidth-e>20)},v=function(e){return null==e?n.G8.MixedSquare:e>=1.33?n.G8.MixedBackdrop:e>.8?n.G8.MixedSquare:n.G8.MixedPortrait},m=function(e){var r;return c()(((r={card:!0})["".concat(e.shape,"Card")]=e.shape,r["".concat(e.cardCssClass)]=e.cardCssClass,r["".concat(e.cardClass)]=e.cardClass,r["card-hoverable"]=e.isDesktop,r["show-focus"]=e.isTV,r["show-animation"]=e.isTV&&e.enableFocusTransform,r.groupedCard=e.showChildCountIndicator&&e.childCount,r["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),r.itemAction="button"===e.tagName,r))},h=function(e){var r;return c()(((r={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[y(e.itemName)]=!e.imgUrl,r))},g=function(e){return c()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},y=function(e){return"defaultCardBackground defaultCardBackground".concat(p(e))},p=function(e){if(e){for(var r=Math.floor(e.length/2),t=String(e.slice(r,r+1).charCodeAt(0)),n=0,o=0;o<t.length;o++)n+=parseInt(t.charAt(o),10);return parseInt(String(n).slice(-1),10)%5+1}return(0,a.HO)(1,5)},b=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?u:-1!==e.indexOf("backdrop")?i:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?s:null:null},S=function(e,r,t,n){switch(e){case"portrait":return w(r,n);case"square":return A(r,n);case"banner":return C(r);case"backdrop":return k(r,n);case"smallBackdrop":return q(r);case"overflowSmallBackdrop":return x(r,t,n);case"overflowPortrait":return P(r,t,n);case"overflowSquare":return I(r,t,n);case"overflowBackdrop":return O(r,t,n);default:return 4}},w=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},A=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},C=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},k=function(e,r){switch(!0){case r:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},q=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},x=function(e,r,t){switch(!0){case t:return 100/18.9;case r&&e>=800:return 100/15.5;case r:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},P=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},I=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},O=function(e,r,t){switch(!0){case t:return 100/23.3;case r&&e>=1700:return 100/18.5;case r:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},76942:function(e,r,t){var n;function a(e){return void 0===e&&(e=!0),e?n.SquareOverflow:n.Square}function o(e){return void 0===e&&(e=!0),e?n.BackdropOverflow:n.Backdrop}function c(e){return void 0===e&&(e=!0),e?n.PortraitOverflow:n.Portrait}t.d(r,{G8:function(){return n},UI:function(){return o},xK:function(){return c},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(n||(n={}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[66259,68603,96084],{1177:function(e,t,r){r(84734),r(44962),r(78557),r(96054),r(90076),r(83994),r(82367),r(69177);var n=r(65210),a=r(22832),i=r(38490),s=r(39738),o=r(76542),c=r(46782),l=r(34789),u=r(36300),d=r(8566),f=r(9164),h=r(67430),v=r(10736),m=r(44797),g=Object.create(HTMLDivElement.prototype);function p(e){var t=this,r=t.multiSelect;!1!==(null==r?void 0:r.onContainerClick.call(t,e))&&a.Ay.onClick.call(t,e)}function b(e){return e.preventDefault(),e.stopPropagation(),!1}function y(e){var t=e.target,r=u.Ay.parentWithAttribute(t,"data-id");if(null!=r&&r.getAttribute("data-serverid"))return i.default.handleCommand("menu",{sourceElement:r}),e.preventDefault(),e.stopPropagation(),!1}function A(e,t,n){var a=this;Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onUserDataChanged(n,a)}));var i=S(a);-1===i.indexOf("markfavorite")&&-1===i.indexOf("markplayed")||a.notifyRefreshNeeded()}function S(e){var t=e.getAttribute("data-monitor");return t?t.split(","):[]}function C(e,t,n){var a=this;if(-1===S(a).indexOf("timers")){var i=n.ProgramId,s=n.Id;Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onTimerCreated(i,s,a)}))}else a.notifyRefreshNeeded()}function w(){-1!==S(this).indexOf("seriestimers")&&this.notifyRefreshNeeded()}function I(e,t,n){var a=this;-1===S(a).indexOf("timers")?Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onTimerCancelled(n.Id,a)})):a.notifyRefreshNeeded()}function T(e,t,n){var a=this;-1===S(a).indexOf("seriestimers")?Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onSeriesTimerCancelled(n.Id,a)})):a.notifyRefreshNeeded()}function x(e,t,r){var n=this,a=S(n);if(-1===a.indexOf("seriestimers")&&-1===a.indexOf("timers")){var i=r.ItemsAdded||[],s=r.ItemsRemoved||[];if(i.length||s.length){var o=n.getAttribute("data-parentid");if(o){var c=r.FoldersAddedTo||[],l=r.FoldersRemovedFrom||[],u=r.CollectionFolders||[];if(-1===c.indexOf(o)&&-1===l.indexOf(o)&&-1===u.indexOf(o))return}n.notifyRefreshNeeded()}}}function k(e,t){var r,n=this,a=t.state,i=S(n);if(a.NowPlayingItem&&"Video"===a.NowPlayingItem.MediaType){if(-1!==i.indexOf("videoplayback"))return void n.notifyRefreshNeeded(!0)}else if("Audio"===(null===(r=a.NowPlayingItem)||void 0===r?void 0:r.MediaType)&&-1!==i.indexOf("audioplayback"))return void n.notifyRefreshNeeded(!0)}function P(e,t,r,n){var a=r.bind(e);n=n||v.default,m.A.on(n,t,a),e["event_"+t]=a}function D(e,t,r){var n=e["event_"+t];n&&(r=r||v.default,m.A.off(r,t,n),e["event_"+t]=null)}function O(e,t){e.refreshInterval&&(clearInterval(e.refreshInterval),e.refreshInterval=null,t||(e.refreshIntervalEndTime=null))}function L(e,t){O(e),t||(t=parseInt(e.getAttribute("data-refreshinterval")||"0",10)),t&&(e.refreshInterval=setInterval(e.notifyRefreshNeeded.bind(e),t),e.refreshIntervalEndTime=(new Date).getTime()+t)}function E(e){var t=e.Items||e,r=this.parentContainer;r&&(t.length?r.classList.remove("hide"):r.classList.add("hide"));var n,a,i=document.activeElement;this.contains(i)&&(a=!0,n=i.getAttribute("data-id")),this.innerHTML=this.getItemsHtml(t),o.default.lazyChildren(this),a&&function(e,t){if(t){var r=e.querySelector('[data-id="'+t+'"]');if(r)try{return void f.A.focus(r)}catch(e){console.error(e)}}f.A.autoFocus(e)}(this,n),L(this),this.afterRefresh&&this.afterRefresh(e)}g.enableMultiSelect=function(e){var t=this.multiSelect;if(e){if(!t){var n=this;r.e(35308).then(r.bind(r,35308)).then((function(e){var t=e.default;n.multiSelect=new t({container:n,bindOnClick:!1})}))}}else t&&(t.destroy(),this.multiSelect=null)},g.enableDragReordering=function(e){var t=this.sortable;if(e){if(!t){var r=this;r.sortable=new n.Ay(r,{draggable:".listItem",handle:".listViewDragHandle",onEnd:function(e){return function(e,t){var r=e.item,n=e.newIndex,a=r.getAttribute("data-playlistitemid"),i=r.getAttribute("data-playlistid");if(i){var s=r.getAttribute("data-serverid"),o=h.tF.getApiClient(s);d.Ay.show(),o.ajax({url:o.getUrl("Playlists/"+i+"/Items/"+a+"/Move/"+n),type:"POST"}).then((function(){d.Ay.hide()}),(function(){d.Ay.hide(),t.refreshItems()}))}else{var c=e.oldIndex;r.dispatchEvent(new CustomEvent("itemdrop",{detail:{oldIndex:c,newIndex:n,playlistItemId:a},bubbles:!0,cancelable:!1}))}}(e,r)}})}}else t&&(t.destroy(),this.sortable=null)},g.createdCallback=function(){this.classList.add("itemsContainer")},g.attachedCallback=function(){this.addEventListener("click",p),l.A.touch?this.addEventListener("contextmenu",b):"false"!==this.getAttribute("data-contextmenu")&&this.addEventListener("contextmenu",y),(c.A.desktop||c.A.mobile&&"false"!==this.getAttribute("data-multiselect"))&&this.enableMultiSelect(!0),c.A.tv&&this.classList.add("itemsContainer-tv"),a.Ay.on(this,{click:!1}),P(this,"UserDataChanged",A),P(this,"TimerCreated",C),P(this,"SeriesTimerCreated",w),P(this,"TimerCancelled",I),P(this,"SeriesTimerCancelled",T),P(this,"LibraryChanged",x),P(this,"playbackstop",k,s.f),"true"===this.getAttribute("data-dragreorder")&&this.enableDragReordering(!0)},g.detachedCallback=function(){O(this),this.enableMultiSelect(!1),this.enableDragReordering(!1),this.removeEventListener("click",p),this.removeEventListener("contextmenu",y),this.removeEventListener("contextmenu",b),a.Ay.off(this,{click:!1}),D(this,"UserDataChanged"),D(this,"TimerCreated"),D(this,"SeriesTimerCreated"),D(this,"TimerCancelled"),D(this,"SeriesTimerCancelled"),D(this,"LibraryChanged"),D(this,"playbackstop",s.f),this.fetchData=null,this.getItemsHtml=null,this.parentContainer=null},g.pause=function(){O(this,!0),this.paused=!0},g.resume=function(e){this.paused=!1;var t=this.refreshIntervalEndTime;if(t){var r=t-(new Date).getTime();r>0&&!this.needsRefresh?L(this,r):(this.needsRefresh=!0,this.refreshIntervalEndTime=null)}return this.needsRefresh||null!=e&&e.refresh?this.refreshItems():Promise.resolve()},g.refreshItems=function(){return this.fetchData?this.paused?(this.needsRefresh=!0,Promise.resolve()):(this.needsRefresh=!1,this.fetchData().then(E.bind(this))):Promise.resolve()},g.notifyRefreshNeeded=function(e){if(this.paused)this.needsRefresh=!0;else{var t=this.refreshTimeout;t&&clearTimeout(t),!0===e?this.refreshItems():this.refreshTimeout=setTimeout(this.refreshItems.bind(this),1e4)}},document.registerElement("emby-itemscontainer",{prototype:g,extends:"div"})},1179:function(e,t,r){r.r(t),r.d(t,{default:function(){return C}}),r(14382),r(86584),r(78557);var n=r(22696),a=r.n(n),i=r(8566),s=r(70267),o=r(46782),c=r(73233),l=r(90381),u=r(9164),d=r(5898),f=r(62882),h=r(47602),v=r(36300),m=r(34789),g=(r(41765),r(1177),r(10353),r(89100)),p=r(41177),b=r(36645),y=r(67430),A=!m.A.slow&&!m.A.edge;function S(e){(0,p.A)(e)}function C(e,t){function r(e){var t=[];t.push({name:d.Ay.translate("Connect"),id:"connect"}),t.push({name:d.Ay.translate("Delete"),id:"delete"}),f.default.show({items:t,title:e.Name}).then((function(t){switch(t){case"connect":!function(e){i.Ay.show(),y.tF.connectToServer(e,{enableAutoLogin:l.A.enableAutoLogin()}).then((function(e){i.Ay.hide();var t=e.ApiClient;switch(e.State){case y.KN.SignedIn:g.default.onServerChanged(t.getCurrentUserId(),t.accessToken(),t),g.default.navigate("home");break;case y.KN.ServerSignIn:g.default.onServerChanged(null,null,t),g.default.navigate("login?serverid="+e.Servers[0].Id);break;case y.KN.ServerUpdateNeeded:S({text:d.Ay.translate("core#ServerUpdateNeeded","https://github.com/jellyfin/jellyfin"),html:d.Ay.translate("core#ServerUpdateNeeded",'<a href="https://github.com/jellyfin/jellyfin">https://github.com/jellyfin/jellyfin</a>')});break;default:S({text:d.Ay.translate("MessageUnableToConnectToServer")})}}))}(e);break;case"delete":!function(e){(0,h.A)({title:d.Ay.translate("DeleteName",e.Name),text:d.Ay.translate("DeleteServerConfirmation"),confirmText:d.Ay.translate("Delete"),primary:"delete"}).then((function(){i.Ay.show(),y.tF.deleteServer(e.Id).then((function(){i.Ay.hide(),m()})).catch((function(e){console.error("[selectServer] failed to delete server",e)}))})).catch((function(){}))}(e)}})).catch((function(){}))}function n(t){p=t,function(e,t){var r=t.map((function(e){return{name:e.Name,icon:"storage",cardType:"",id:e.Id,server:e}})),n=r.map((function(e){var t='<span class="cardImageIcon material-icons '+e.icon+'" aria-hidden="true"></span>',r="card overflowSquareCard loginSquareCard scalableCard overflowSquareCard-scalable";o.A.tv&&(r+=" show-focus",A&&(r+=" show-animation"));var n="";return n+='<button raised class="'+r+'" style="display:inline-block;" data-id="'+e.id+'" data-url="'+(e.url||"")+'" data-cardtype="'+e.cardType+'">',n+='<div class="cardBox">',n+='<div class="cardScalable">',n+='<div class="cardPadder cardPadder-square">',n+="</div>",n+='<div class="cardContent">',n+='<div class="cardImageContainer coveredImage '.concat((0,b.Qp)(),'">'),n+=t,n+="</div>",n+="</div>",n+="</div>",n+='<div class="cardFooter">',(n+='<div class="cardText cardTextCentered">'+a()(e.name)+"</div>")+"</div></div></button>"})).join(""),s=e.querySelector(".servers");r.length||(n="<p>"+d.Ay.translate("MessageNoServersAvailable")+"</p>"),s.innerHTML=n,i.Ay.hide()}(e,t),o.A.tv&&u.A.autoFocus(e)}function m(){i.Ay.show(),y.tF.getAvailableServers().then(n)}var p;!function(e,t){"1"==t.showuser?(e.classList.add("libraryPage"),e.classList.remove("standalonePage"),e.classList.add("noSecondaryNavPage")):(e.classList.add("standalonePage"),e.classList.remove("libraryPage"),e.classList.remove("noSecondaryNavPage"))}(e,t),e.addEventListener("viewshow",(function(e){var t=e.detail.isRestored;c.default.setTitle(null),c.default.setTransparentMenu(!0),t||m()})),e.querySelector(".servers").addEventListener("click",(function(e){var t=v.Ay.parentWithClass(e.target,"card");if(t){var n=t.getAttribute("data-url");if(n)s.appRouter.show(n);else{var a=t.getAttribute("data-id");r(p.filter((function(e){return e.Id===a}))[0])}}}))}},32203:function(e,t,r){r.d(t,{Bq:function(){return c},Jd:function(){return o},yq:function(){return s}});var n=r(65369),a=r(11444),i="assets/img/devices/";function s(e){var t;switch(e.AppName||e.Client){case"Samsung Smart TV":return i+"samsungtv.svg";case"Xbox One":return i+"xbox.svg";case"Sony PS4":return i+"playstation.svg";case"Kodi":case"Kodi JellyCon":return i+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return i+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return i+"apple.svg";case"Home Assistant":return i+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return i+"webos.svg";case"Jellyfin Roku":return i+"roku.svg";case"Finamp":return i+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return i+"opera.svg";case"Chrome":case"Chrome Android":return i+"chrome.svg";case"Firefox":case"Firefox Android":return i+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return i+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return i+"edgechromium.svg";case"Edge":return i+"edge.svg";case"Internet Explorer":return i+"msie.svg";case"Titan OS":return i+"titanos.svg";default:return i+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(t=e.Capabilities)||void 0===t?void 0:t.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(t){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,t)}return i+"other.svg"}}function o(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function c(e,t){switch(e){case a.D.MusicAlbum:return"album";case a.D.MusicArtist:case a.D.Person:return"person";case a.D.Audio:return"audiotrack";case a.D.Movie:return"movie";case a.D.Episode:case a.D.Series:return"tv";case a.D.Program:return"live_tv";case a.D.Book:return"book";case a.D.Folder:return"folder";case a.D.BoxSet:return"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return t}}t.Ay={getDeviceIcon:s,getLibraryIcon:o,getItemTypeIcon:c}},36645:function(e,t,r){r.d(t,{QW:function(){return A},Qp:function(){return p},Rn:function(){return g},Tj:function(){return h},a_:function(){return v},hn:function(){return u},n5:function(){return d},uA:function(){return m},w:function(){return f},zo:function(){return y}});var n=r(76942),a=r(58953),i=r(4452),s=r.n(i),o=2/3,c=16/9,l=1e3/185,u=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var t=window.screen;return!!(t&&t.availWidth-e>20)},h=function(e){return null==e?n.G8.MixedSquare:e>=1.33?n.G8.MixedBackdrop:e>.8?n.G8.MixedSquare:n.G8.MixedPortrait},v=function(e){var t;return s()(((t={card:!0})["".concat(e.shape,"Card")]=e.shape,t["".concat(e.cardCssClass)]=e.cardCssClass,t["".concat(e.cardClass)]=e.cardClass,t["card-hoverable"]=e.isDesktop,t["show-focus"]=e.isTV,t["show-animation"]=e.isTV&&e.enableFocusTransform,t.groupedCard=e.showChildCountIndicator&&e.childCount,t["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),t.itemAction="button"===e.tagName,t))},m=function(e){var t;return s()(((t={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[p(e.itemName)]=!e.imgUrl,t))},g=function(e){return s()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},p=function(e){return"defaultCardBackground defaultCardBackground".concat(b(e))},b=function(e){if(e){for(var t=Math.floor(e.length/2),r=String(e.slice(t,t+1).charCodeAt(0)),n=0,i=0;i<r.length;i++)n+=parseInt(r.charAt(i),10);return parseInt(String(n).slice(-1),10)%5+1}return(0,a.HO)(1,5)},y=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?o:-1!==e.indexOf("backdrop")?c:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?l:null:null},A=function(e,t,r,n){switch(e){case"portrait":return S(t,n);case"square":return C(t,n);case"banner":return w(t);case"backdrop":return I(t,n);case"smallBackdrop":return T(t);case"overflowSmallBackdrop":return x(t,r,n);case"overflowPortrait":return k(t,r,n);case"overflowSquare":return P(t,r,n);case"overflowBackdrop":return D(t,r,n);default:return 4}},S=function(e,t){switch(!0){case t:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},C=function(e,t){switch(!0){case t:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},w=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},I=function(e,t){switch(!0){case t:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},T=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},x=function(e,t,r){switch(!0){case r:return 100/18.9;case t&&e>=800:return 100/15.5;case t:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},k=function(e,t,r){switch(!0){case r:return 100/15.5;case t&&e>=1700:return 100/11.6;case t:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},P=function(e,t,r){switch(!0){case r:return 100/15.5;case t&&e>=1700:return 100/11.6;case t:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},D=function(e,t,r){switch(!0){case r:return 100/23.3;case t&&e>=1700:return 100/18.5;case t:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},41765:function(e,t,r){r(44962),r(78557),r(90076),r(83994),r(82367);var n=r(4113),a=r(36300),i=r(46782),s=r(38490),o=r(9164),c=r(34789),l=(r(69177),Object.create(HTMLDivElement.prototype));function u(e){var t=e.detail.command;"end"===t?(o.A.focusLast(this,"."+this.getAttribute("data-navcommands")),e.preventDefault(),e.stopPropagation()):"pageup"===t?(o.A.moveFocus(e.target,this,"."+this.getAttribute("data-navcommands"),-12),e.preventDefault(),e.stopPropagation()):"pagedown"===t&&(o.A.moveFocus(e.target,this,"."+this.getAttribute("data-navcommands"),12),e.preventDefault(),e.stopPropagation())}l.createdCallback=function(){this.classList.add("emby-scroller")},l.scrollToBeginning=function(){this.scroller&&this.scroller.slideTo(0,!0)},l.toStart=function(e,t){this.scroller&&this.scroller.toStart(e,t)},l.toCenter=function(e,t){this.scroller&&this.scroller.toCenter(e,t)},l.scrollToPosition=function(e,t){this.scroller&&this.scroller.slideTo(e,t)},l.getScrollPosition=function(){if(this.scroller)return this.scroller.getScrollPosition()},l.getScrollSize=function(){if(this.scroller)return this.scroller.getScrollSize()},l.getScrollEventName=function(){if(this.scroller)return this.scroller.getScrollEventName()},l.getScrollSlider=function(){if(this.scroller)return this.scroller.getScrollSlider()},l.addScrollEventListener=function(e,t){this.scroller&&a.Ay.addEventListener(this.scroller.getScrollFrame(),this.scroller.getScrollEventName(),e,t)},l.removeScrollEventListener=function(e,t){this.scroller&&a.Ay.removeEventListener(this.scroller.getScrollFrame(),this.scroller.getScrollEventName(),e,t)},l.attachedCallback=function(){this.getAttribute("data-navcommands")&&s.default.on(this,u);var e="false"!==this.getAttribute("data-horizontal"),t=this.querySelector(".scrollSlider");e&&(t.style["white-space"]="nowrap");var l,d,f=i.A.desktop&&e&&"false"!==this.getAttribute("data-scrollbuttons"),h={horizontal:e,mouseDragging:1,mouseWheel:"false"!==this.getAttribute("data-mousewheel"),touchDragging:1,slidee:t,scrollBy:200,speed:e?270:240,elasticBounds:1,dragHandle:1,autoImmediate:!0,skipSlideToWhenVisible:"true"===this.getAttribute("data-skipfocuswhenvisible"),dispatchScrollEvent:f||"true"===this.getAttribute("data-scrollevent"),hideScrollbar:f||"true"===this.getAttribute("data-hidescrollbar"),allowNativeSmoothScroll:"true"===this.getAttribute("data-allownativesmoothscroll")&&!f,allowNativeScroll:!f,forceHideScrollbars:f,requireAnimation:f&&c.A.edge};this.scroller=new n.A(this,h),this.scroller.init(),this.scroller.reload(),i.A.tv&&this.getAttribute("data-centerfocus")&&(l=this.scroller,a.Ay.addEventListener(this,"focus",(function(e){var t=o.A.focusableParent(e.target);t&&l.toCenter(t)}),{capture:!0,passive:!0})),f&&(d=this,r.e(49275).then(r.bind(r,49275)).then((function(){d.insertAdjacentHTML("beforebegin",'<div is="emby-scrollbuttons" class="emby-scrollbuttons padded-right"></div>')})))},l.pause=function(){var e=this.headroom;e&&e.pause()},l.resume=function(){var e=this.headroom;e&&e.resume()},l.detachedCallback=function(){this.getAttribute("data-navcommands")&&s.default.off(this,u);var e=this.headroom;e&&(e.destroy(),this.headroom=null);var t=this.scroller;t&&(t.destroy(),this.scroller=null)},document.registerElement("emby-scroller",{prototype:l,extends:"div"})},76942:function(e,t,r){var n;function a(e){return void 0===e&&(e=!0),e?n.SquareOverflow:n.Square}function i(e){return void 0===e&&(e=!0),e?n.BackdropOverflow:n.Backdrop}function s(e){return void 0===e&&(e=!0),e?n.PortraitOverflow:n.Portrait}r.d(t,{G8:function(){return n},UI:function(){return i},xK:function(){return s},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(n||(n={}))}}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[66259,68603,96084],{1177:function(e,t,r){r(84734),r(44962),r(78557),r(96054),r(90076),r(83994),r(82367),r(69177);var n=r(65210),a=r(22832),i=r(38490),s=r(39738),o=r(76542),c=r(46782),l=r(34789),u=r(36300),d=r(8566),f=r(9164),h=r(67430),v=r(10736),m=r(44797),g=Object.create(HTMLDivElement.prototype);function p(e){var t=this,r=t.multiSelect;!1!==(null==r?void 0:r.onContainerClick.call(t,e))&&a.Ay.onClick.call(t,e)}function b(e){return e.preventDefault(),e.stopPropagation(),!1}function y(e){var t=e.target,r=u.Ay.parentWithAttribute(t,"data-id");if(null!=r&&r.getAttribute("data-serverid"))return i.default.handleCommand("menu",{sourceElement:r}),e.preventDefault(),e.stopPropagation(),!1}function A(e,t,n){var a=this;Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onUserDataChanged(n,a)}));var i=S(a);-1===i.indexOf("markfavorite")&&-1===i.indexOf("markplayed")||a.notifyRefreshNeeded()}function S(e){var t=e.getAttribute("data-monitor");return t?t.split(","):[]}function C(e,t,n){var a=this;if(-1===S(a).indexOf("timers")){var i=n.ProgramId,s=n.Id;Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onTimerCreated(i,s,a)}))}else a.notifyRefreshNeeded()}function w(){-1!==S(this).indexOf("seriestimers")&&this.notifyRefreshNeeded()}function I(e,t,n){var a=this;-1===S(a).indexOf("timers")?Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onTimerCancelled(n.Id,a)})):a.notifyRefreshNeeded()}function T(e,t,n){var a=this;-1===S(a).indexOf("seriestimers")?Promise.all([r.e(45642),r.e(24468),r.e(66884)]).then(r.bind(r,24468)).then((function(e){e.onSeriesTimerCancelled(n.Id,a)})):a.notifyRefreshNeeded()}function x(e,t,r){var n=this,a=S(n);if(-1===a.indexOf("seriestimers")&&-1===a.indexOf("timers")){var i=r.ItemsAdded||[],s=r.ItemsRemoved||[];if(i.length||s.length){var o=n.getAttribute("data-parentid");if(o){var c=r.FoldersAddedTo||[],l=r.FoldersRemovedFrom||[],u=r.CollectionFolders||[];if(-1===c.indexOf(o)&&-1===l.indexOf(o)&&-1===u.indexOf(o))return}n.notifyRefreshNeeded()}}}function k(e,t){var r,n=this,a=t.state,i=S(n);if(a.NowPlayingItem&&"Video"===a.NowPlayingItem.MediaType){if(-1!==i.indexOf("videoplayback"))return void n.notifyRefreshNeeded(!0)}else if("Audio"===(null===(r=a.NowPlayingItem)||void 0===r?void 0:r.MediaType)&&-1!==i.indexOf("audioplayback"))return void n.notifyRefreshNeeded(!0)}function P(e,t,r,n){var a=r.bind(e);n=n||v.default,m.A.on(n,t,a),e["event_"+t]=a}function O(e,t,r){var n=e["event_"+t];n&&(r=r||v.default,m.A.off(r,t,n),e["event_"+t]=null)}function D(e,t){e.refreshInterval&&(clearInterval(e.refreshInterval),e.refreshInterval=null,t||(e.refreshIntervalEndTime=null))}function L(e,t){D(e),t||(t=parseInt(e.getAttribute("data-refreshinterval")||"0",10)),t&&(e.refreshInterval=setInterval(e.notifyRefreshNeeded.bind(e),t),e.refreshIntervalEndTime=(new Date).getTime()+t)}function E(e){var t=e.Items||e,r=this.parentContainer;r&&(t.length?r.classList.remove("hide"):r.classList.add("hide"));var n,a,i=document.activeElement;this.contains(i)&&(a=!0,n=i.getAttribute("data-id")),this.innerHTML=this.getItemsHtml(t),o.default.lazyChildren(this),a&&function(e,t){if(t){var r=e.querySelector('[data-id="'+t+'"]');if(r)try{return void f.A.focus(r)}catch(e){console.error(e)}}f.A.autoFocus(e)}(this,n),L(this),this.afterRefresh&&this.afterRefresh(e)}g.enableMultiSelect=function(e){var t=this.multiSelect;if(e){if(!t){var n=this;r.e(35308).then(r.bind(r,35308)).then((function(e){var t=e.default;n.multiSelect=new t({container:n,bindOnClick:!1})}))}}else t&&(t.destroy(),this.multiSelect=null)},g.enableDragReordering=function(e){var t=this.sortable;if(e){if(!t){var r=this;r.sortable=new n.Ay(r,{draggable:".listItem",handle:".listViewDragHandle",onEnd:function(e){return function(e,t){var r=e.item,n=e.newIndex,a=r.getAttribute("data-playlistitemid"),i=r.getAttribute("data-playlistid");if(i){var s=r.getAttribute("data-serverid"),o=h.tF.getApiClient(s);d.Ay.show(),o.ajax({url:o.getUrl("Playlists/"+i+"/Items/"+a+"/Move/"+n),type:"POST"}).then((function(){d.Ay.hide()}),(function(){d.Ay.hide(),t.refreshItems()}))}else{var c=e.oldIndex;r.dispatchEvent(new CustomEvent("itemdrop",{detail:{oldIndex:c,newIndex:n,playlistItemId:a},bubbles:!0,cancelable:!1}))}}(e,r)}})}}else t&&(t.destroy(),this.sortable=null)},g.createdCallback=function(){this.classList.add("itemsContainer")},g.attachedCallback=function(){this.addEventListener("click",p),l.A.touch?this.addEventListener("contextmenu",b):"false"!==this.getAttribute("data-contextmenu")&&this.addEventListener("contextmenu",y),(c.A.desktop||c.A.mobile&&"false"!==this.getAttribute("data-multiselect"))&&this.enableMultiSelect(!0),c.A.tv&&this.classList.add("itemsContainer-tv"),a.Ay.on(this,{click:!1}),P(this,"UserDataChanged",A),P(this,"TimerCreated",C),P(this,"SeriesTimerCreated",w),P(this,"TimerCancelled",I),P(this,"SeriesTimerCancelled",T),P(this,"LibraryChanged",x),P(this,"playbackstop",k,s.f),"true"===this.getAttribute("data-dragreorder")&&this.enableDragReordering(!0)},g.detachedCallback=function(){D(this),this.enableMultiSelect(!1),this.enableDragReordering(!1),this.removeEventListener("click",p),this.removeEventListener("contextmenu",y),this.removeEventListener("contextmenu",b),a.Ay.off(this,{click:!1}),O(this,"UserDataChanged"),O(this,"TimerCreated"),O(this,"SeriesTimerCreated"),O(this,"TimerCancelled"),O(this,"SeriesTimerCancelled"),O(this,"LibraryChanged"),O(this,"playbackstop",s.f),this.fetchData=null,this.getItemsHtml=null,this.parentContainer=null},g.pause=function(){D(this,!0),this.paused=!0},g.resume=function(e){this.paused=!1;var t=this.refreshIntervalEndTime;if(t){var r=t-(new Date).getTime();r>0&&!this.needsRefresh?L(this,r):(this.needsRefresh=!0,this.refreshIntervalEndTime=null)}return this.needsRefresh||null!=e&&e.refresh?this.refreshItems():Promise.resolve()},g.refreshItems=function(){return this.fetchData?this.paused?(this.needsRefresh=!0,Promise.resolve()):(this.needsRefresh=!1,this.fetchData().then(E.bind(this))):Promise.resolve()},g.notifyRefreshNeeded=function(e){if(this.paused)this.needsRefresh=!0;else{var t=this.refreshTimeout;t&&clearTimeout(t),!0===e?this.refreshItems():this.refreshTimeout=setTimeout(this.refreshItems.bind(this),1e4)}},document.registerElement("emby-itemscontainer",{prototype:g,extends:"div"})},1179:function(e,t,r){r.r(t),r.d(t,{default:function(){return C}}),r(14382),r(86584),r(78557);var n=r(22696),a=r.n(n),i=r(8566),s=r(70267),o=r(46782),c=r(73233),l=r(90381),u=r(9164),d=r(5898),f=r(62882),h=r(47602),v=r(36300),m=r(34789),g=(r(41765),r(1177),r(10353),r(89100)),p=r(41177),b=r(36645),y=r(67430),A=!m.A.slow&&!m.A.edge;function S(e){(0,p.A)(e)}function C(e,t){function r(e){var t=[];t.push({name:d.Ay.translate("Connect"),id:"connect"}),t.push({name:d.Ay.translate("Delete"),id:"delete"}),f.default.show({items:t,title:e.Name}).then((function(t){switch(t){case"connect":!function(e){i.Ay.show(),y.tF.connectToServer(e,{enableAutoLogin:l.A.enableAutoLogin()}).then((function(e){i.Ay.hide();var t=e.ApiClient;switch(e.State){case y.KN.SignedIn:g.default.onServerChanged(t.getCurrentUserId(),t.accessToken(),t),g.default.navigate("home");break;case y.KN.ServerSignIn:g.default.onServerChanged(null,null,t),g.default.navigate("login?serverid="+e.Servers[0].Id);break;case y.KN.ServerUpdateNeeded:S({text:d.Ay.translate("core#ServerUpdateNeeded","https://github.com/jellyfin/jellyfin"),html:d.Ay.translate("core#ServerUpdateNeeded",'<a href="https://github.com/jellyfin/jellyfin">https://github.com/jellyfin/jellyfin</a>')});break;default:S({text:d.Ay.translate("MessageUnableToConnectToServer")})}}))}(e);break;case"delete":!function(e){(0,h.A)({title:d.Ay.translate("DeleteName",e.Name),text:d.Ay.translate("DeleteServerConfirmation"),confirmText:d.Ay.translate("Delete"),primary:"delete"}).then((function(){i.Ay.show(),y.tF.deleteServer(e.Id).then((function(){i.Ay.hide(),m()})).catch((function(e){console.error("[selectServer] failed to delete server",e)}))})).catch((function(){}))}(e)}})).catch((function(){}))}function n(t){p=t,function(e,t){var r=t.map((function(e){return{name:e.Name,icon:"storage",cardType:"",id:e.Id,server:e}})),n=r.map((function(e){var t='<span class="cardImageIcon material-icons '+e.icon+'" aria-hidden="true"></span>',r="card overflowSquareCard loginSquareCard scalableCard overflowSquareCard-scalable";o.A.tv&&(r+=" show-focus",A&&(r+=" show-animation"));var n="";return n+='<button raised class="'+r+'" style="display:inline-block;" data-id="'+e.id+'" data-url="'+(e.url||"")+'" data-cardtype="'+e.cardType+'">',n+='<div class="cardBox">',n+='<div class="cardScalable">',n+='<div class="cardPadder cardPadder-square">',n+="</div>",n+='<div class="cardContent">',n+='<div class="cardImageContainer coveredImage '.concat((0,b.Qp)(),'">'),n+=t,n+="</div>",n+="</div>",n+="</div>",n+='<div class="cardFooter">',(n+='<div class="cardText cardTextCentered">'+a()(e.name)+"</div>")+"</div></div></button>"})).join(""),s=e.querySelector(".servers");r.length||(n="<p>"+d.Ay.translate("MessageNoServersAvailable")+"</p>"),s.innerHTML=n,i.Ay.hide()}(e,t),o.A.tv&&u.A.autoFocus(e)}function m(){i.Ay.show(),y.tF.getAvailableServers().then(n)}var p;!function(e,t){"1"==t.showuser?(e.classList.add("libraryPage"),e.classList.remove("standalonePage"),e.classList.add("noSecondaryNavPage")):(e.classList.add("standalonePage"),e.classList.remove("libraryPage"),e.classList.remove("noSecondaryNavPage"))}(e,t),e.addEventListener("viewshow",(function(e){var t=e.detail.isRestored;c.default.setTitle(null),c.default.setTransparentMenu(!0),t||m()})),e.querySelector(".servers").addEventListener("click",(function(e){var t=v.Ay.parentWithClass(e.target,"card");if(t){var n=t.getAttribute("data-url");if(n)s.appRouter.show(n);else{var a=t.getAttribute("data-id");r(p.filter((function(e){return e.Id===a}))[0])}}}))}},32203:function(e,t,r){r.d(t,{Bq:function(){return c},Jd:function(){return o},yq:function(){return s}});var n=r(65369),a=r(11444),i="assets/img/devices/";function s(e){var t;switch(e.AppName||e.Client){case"Samsung Smart TV":return i+"samsungtv.svg";case"Xbox One":return i+"xbox.svg";case"Sony PS4":return i+"playstation.svg";case"Kodi":case"Kodi JellyCon":return i+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return i+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return i+"apple.svg";case"Home Assistant":return i+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return i+"webos.svg";case"Jellyfin Roku":return i+"roku.svg";case"Finamp":return i+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return i+"opera.svg";case"Chrome":case"Chrome Android":return i+"chrome.svg";case"Firefox":case"Firefox Android":return i+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return i+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return i+"edgechromium.svg";case"Edge":return i+"edge.svg";case"Internet Explorer":return i+"msie.svg";case"Titan OS":return i+"titanos.svg";case"Vega OS":return i+"firetv.svg";default:return i+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(t=e.Capabilities)||void 0===t?void 0:t.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(t){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,t)}return i+"other.svg"}}function o(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function c(e,t){switch(e){case a.D.MusicAlbum:return"album";case a.D.MusicArtist:case a.D.Person:return"person";case a.D.Audio:return"audiotrack";case a.D.Movie:return"movie";case a.D.Episode:case a.D.Series:return"tv";case a.D.Program:return"live_tv";case a.D.Book:return"book";case a.D.Folder:return"folder";case a.D.BoxSet:return"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return t}}t.Ay={getDeviceIcon:s,getLibraryIcon:o,getItemTypeIcon:c}},36645:function(e,t,r){r.d(t,{QW:function(){return A},Qp:function(){return p},Rn:function(){return g},Tj:function(){return h},a_:function(){return v},hn:function(){return u},n5:function(){return d},uA:function(){return m},w:function(){return f},zo:function(){return y}});var n=r(76942),a=r(58953),i=r(4452),s=r.n(i),o=2/3,c=16/9,l=1e3/185,u=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},f=function(e){var t=window.screen;return!!(t&&t.availWidth-e>20)},h=function(e){return null==e?n.G8.MixedSquare:e>=1.33?n.G8.MixedBackdrop:e>.8?n.G8.MixedSquare:n.G8.MixedPortrait},v=function(e){var t;return s()(((t={card:!0})["".concat(e.shape,"Card")]=e.shape,t["".concat(e.cardCssClass)]=e.cardCssClass,t["".concat(e.cardClass)]=e.cardClass,t["card-hoverable"]=e.isDesktop,t["show-focus"]=e.isTV,t["show-animation"]=e.isTV&&e.enableFocusTransform,t.groupedCard=e.showChildCountIndicator&&e.childCount,t["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),t.itemAction="button"===e.tagName,t))},m=function(e){var t;return s()(((t={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[p(e.itemName)]=!e.imgUrl,t))},g=function(e){return s()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},p=function(e){return"defaultCardBackground defaultCardBackground".concat(b(e))},b=function(e){if(e){for(var t=Math.floor(e.length/2),r=String(e.slice(t,t+1).charCodeAt(0)),n=0,i=0;i<r.length;i++)n+=parseInt(r.charAt(i),10);return parseInt(String(n).slice(-1),10)%5+1}return(0,a.HO)(1,5)},y=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?o:-1!==e.indexOf("backdrop")?c:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?l:null:null},A=function(e,t,r,n){switch(e){case"portrait":return S(t,n);case"square":return C(t,n);case"banner":return w(t);case"backdrop":return I(t,n);case"smallBackdrop":return T(t);case"overflowSmallBackdrop":return x(t,r,n);case"overflowPortrait":return k(t,r,n);case"overflowSquare":return P(t,r,n);case"overflowBackdrop":return O(t,r,n);default:return 4}},S=function(e,t){switch(!0){case t:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},C=function(e,t){switch(!0){case t:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},w=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},I=function(e,t){switch(!0){case t:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},T=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},x=function(e,t,r){switch(!0){case r:return 100/18.9;case t&&e>=800:return 100/15.5;case t:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},k=function(e,t,r){switch(!0){case r:return 100/15.5;case t&&e>=1700:return 100/11.6;case t:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},P=function(e,t,r){switch(!0){case r:return 100/15.5;case t&&e>=1700:return 100/11.6;case t:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},O=function(e,t,r){switch(!0){case r:return 100/23.3;case t&&e>=1700:return 100/18.5;case t:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},41765:function(e,t,r){r(44962),r(78557),r(90076),r(83994),r(82367);var n=r(4113),a=r(36300),i=r(46782),s=r(38490),o=r(9164),c=r(34789),l=(r(69177),Object.create(HTMLDivElement.prototype));function u(e){var t=e.detail.command;"end"===t?(o.A.focusLast(this,"."+this.getAttribute("data-navcommands")),e.preventDefault(),e.stopPropagation()):"pageup"===t?(o.A.moveFocus(e.target,this,"."+this.getAttribute("data-navcommands"),-12),e.preventDefault(),e.stopPropagation()):"pagedown"===t&&(o.A.moveFocus(e.target,this,"."+this.getAttribute("data-navcommands"),12),e.preventDefault(),e.stopPropagation())}l.createdCallback=function(){this.classList.add("emby-scroller")},l.scrollToBeginning=function(){this.scroller&&this.scroller.slideTo(0,!0)},l.toStart=function(e,t){this.scroller&&this.scroller.toStart(e,t)},l.toCenter=function(e,t){this.scroller&&this.scroller.toCenter(e,t)},l.scrollToPosition=function(e,t){this.scroller&&this.scroller.slideTo(e,t)},l.getScrollPosition=function(){if(this.scroller)return this.scroller.getScrollPosition()},l.getScrollSize=function(){if(this.scroller)return this.scroller.getScrollSize()},l.getScrollEventName=function(){if(this.scroller)return this.scroller.getScrollEventName()},l.getScrollSlider=function(){if(this.scroller)return this.scroller.getScrollSlider()},l.addScrollEventListener=function(e,t){this.scroller&&a.Ay.addEventListener(this.scroller.getScrollFrame(),this.scroller.getScrollEventName(),e,t)},l.removeScrollEventListener=function(e,t){this.scroller&&a.Ay.removeEventListener(this.scroller.getScrollFrame(),this.scroller.getScrollEventName(),e,t)},l.attachedCallback=function(){this.getAttribute("data-navcommands")&&s.default.on(this,u);var e="false"!==this.getAttribute("data-horizontal"),t=this.querySelector(".scrollSlider");e&&(t.style["white-space"]="nowrap");var l,d,f=i.A.desktop&&e&&"false"!==this.getAttribute("data-scrollbuttons"),h={horizontal:e,mouseDragging:1,mouseWheel:"false"!==this.getAttribute("data-mousewheel"),touchDragging:1,slidee:t,scrollBy:200,speed:e?270:240,elasticBounds:1,dragHandle:1,autoImmediate:!0,skipSlideToWhenVisible:"true"===this.getAttribute("data-skipfocuswhenvisible"),dispatchScrollEvent:f||"true"===this.getAttribute("data-scrollevent"),hideScrollbar:f||"true"===this.getAttribute("data-hidescrollbar"),allowNativeSmoothScroll:"true"===this.getAttribute("data-allownativesmoothscroll")&&!f,allowNativeScroll:!f,forceHideScrollbars:f,requireAnimation:f&&c.A.edge};this.scroller=new n.A(this,h),this.scroller.init(),this.scroller.reload(),i.A.tv&&this.getAttribute("data-centerfocus")&&(l=this.scroller,a.Ay.addEventListener(this,"focus",(function(e){var t=o.A.focusableParent(e.target);t&&l.toCenter(t)}),{capture:!0,passive:!0})),f&&(d=this,r.e(49275).then(r.bind(r,49275)).then((function(){d.insertAdjacentHTML("beforebegin",'<div is="emby-scrollbuttons" class="emby-scrollbuttons padded-right"></div>')})))},l.pause=function(){var e=this.headroom;e&&e.pause()},l.resume=function(){var e=this.headroom;e&&e.resume()},l.detachedCallback=function(){this.getAttribute("data-navcommands")&&s.default.off(this,u);var e=this.headroom;e&&(e.destroy(),this.headroom=null);var t=this.scroller;t&&(t.destroy(),this.scroller=null)},document.registerElement("emby-scroller",{prototype:l,extends:"div"})},76942:function(e,t,r){var n;function a(e){return void 0===e&&(e=!0),e?n.SquareOverflow:n.Square}function i(e){return void 0===e&&(e=!0),e?n.BackdropOverflow:n.Backdrop}function s(e){return void 0===e&&(e=!0),e?n.PortraitOverflow:n.Portrait}r.d(t,{G8:function(){return n},UI:function(){return i},xK:function(){return s},zP:function(){return a}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(n||(n={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[12011,78938],{22832:function(e,t,r){r(29305),r(32733),r(84701),r(81678),r(24776),r(14382),r(69892),r(44962),r(89336),r(4754),r(94),r(33087),r(36947),r(36457),r(88908),r(83810),r(78557),r(96054),r(90076),r(95021),r(73687),r(83994),r(23630),r(82367);var n=r(53096),a=r(39738),i=r(38490),o=r(70267),l=r(5898),s=r(67430),u=r(36300),c=r(78938),d=r(71866),f=r(82885),y=r(75384);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e,t,r){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r){for(var n,i=e.parentNode,o=e.classList.length?".".concat(e.classList[0]):"",l=i.querySelectorAll("".concat(o,"[data-id]")),s=[],c=!1,d=0,f=l.length;d<f;d++)l[d]===e&&(c=!0,n=d),!c&&r||s.push(l[d].getAttribute("data-id"));var y=u.Ay.parentWithClass(e,"itemsContainer");if(null!=y&&y.fetchData){var m=r?{StartIndex:n}:{};return y.fetchData(m).then((function(e){return r?a.f.queue({items:e.Items}):a.f.play({items:e.Items,startIndex:n})}))}if(s.length)return r?a.f.queue({ids:s,serverId:t}):a.f.play({ids:s,serverId:t,startIndex:n})}function A(e){var t=(e=u.Ay.parentWithAttribute(e,"data-id")).getAttribute("data-serverid"),r=e.getAttribute("data-id"),n=e.getAttribute("data-type"),a=s.tF.getApiClient(t);return"Timer"===n?a.getLiveTvTimer(r):"SeriesTimer"===n?a.getLiveTvSeriesTimer(r):a.getItem(a.getCurrentUserId(),r)}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A(e).then((function(a){var i=e.getAttribute("data-playlistid"),o=e.getAttribute("data-collectionid");if(i){var l=u.Ay.parentWithAttribute(e,"data-playlistitemid");a.PlaylistItemId=l?l.getAttribute("data-playlistitemid"):null;var c=u.Ay.parentWithAttribute(e,"is","emby-itemscontainer");if(c){var d,f=0,m=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=p(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}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 a,i=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw a}}}}(c.querySelectorAll(".listItem"));try{for(m.s();!(d=m.n()).done;)d.value.getAttribute("data-playlistitemid")==a.PlaylistItemId&&(a.PlaylistIndex=f),f++}catch(e){m.e(e)}finally{m.f()}a.PlaylistItemCount=f}}var b=s.tF.getApiClient(a.ServerId),g=(0,y.C)(b);Promise.all([Promise.all([r.e(55802),r.e(40501)]).then(r.bind(r,55802)),b.getCurrentUser(),i?(0,n.C)(g).getPlaylistUser({playlistId:i,userId:b.getCurrentUserId()}).then((function(e){return e.data})).catch((function(e){return console.info("[Shortcuts] Failed to fetch playlist permissions",e),{CanEdit:!1}})):Promise.resolve({CanEdit:!1})]).then((function(e){var r,n,l=(n=3,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(r,n)||p(r,n)||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.")}()),s=l[0],u=l[1],c=l[2];return s.show(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({item:a,play:!0,queue:!0,playAllFromHere:"Season"===a.Type||!a.IsFolder,queueAllFromHere:!a.IsFolder,playlistId:i,canEditPlaylist:!!c.CanEdit,collectionId:o,user:u},t))})).then((function(r){"playallfromhere"===r.command||"queueallfromhere"===r.command?w(e,t.positionTo,r.command):(r.updated||r.deleted)&&function(e,t){(t=t||u.Ay.parentWithAttribute(e,"is","emby-itemscontainer"))&&t.notifyRefreshNeeded(!0)}(e,t.itemsContainer)})).catch((function(){}))}))}function S(e){return{Type:e.getAttribute("data-type"),Id:e.getAttribute("data-id"),TimerId:e.getAttribute("data-timerid"),CollectionType:e.getAttribute("data-collectiontype"),ChannelId:e.getAttribute("data-channelid"),SeriesId:e.getAttribute("data-seriesid"),ServerId:e.getAttribute("data-serverid"),MediaType:e.getAttribute("data-mediatype"),Path:e.getAttribute("data-path"),IsFolder:"true"===e.getAttribute("data-isfolder"),StartDate:e.getAttribute("data-startdate"),EndDate:e.getAttribute("data-enddate"),UserData:{PlaybackPositionTicks:parseInt(e.getAttribute("data-positionticks")||"0",10)}}}function w(e,t,n){t=t||e;var i=e.getAttribute("data-id");i||(i=(e=u.Ay.parentWithAttribute(e,"data-id")).getAttribute("data-id"));var y=S(e),m=u.Ay.parentWithClass(e,"itemsContainer"),h="items-"+(y.IsFolder?y.Id:null==m?void 0:m.getAttribute("data-parentid"))+"-Folder",v=y.ServerId,p=y.Type,b="Program"===p?y.ChannelId:y.Id;if("Photo"===y.MediaType&&"link"===n&&(n="play"),"link"===n)o.appRouter.showItem(y,{context:e.getAttribute("data-context"),parentId:e.getAttribute("data-parentid")});else if("programdialog"===n)!function(e){Promise.all([r.e(10739),r.e(22882)]).then(r.bind(r,63834)).then((function(t){t.default.show(e.Id,e.ServerId)}))}(y);else if("instantmix"===n)a.f.instantMix({Id:b,ServerId:v});else if("play"===n||"resume"===n){var w=parseInt(e.getAttribute("data-positionticks")||"0",10),P=f.getSortValuesLegacy(h,"SortName");a.f.canPlay(y)?a.f.play({ids:[b],startPositionTicks:w,serverId:v,queryOptions:{SortBy:P.sortBy,SortOrder:P.sortOrder}}):console.warn("Unable to play item",y)}else if("queue"===n)a.f.isPlaying()?(a.f.queue({ids:[b],serverId:v}),(0,d.A)(l.Ay.translate("MediaQueued"))):a.f.queue({ids:[b],serverId:v});else if("playallfromhere"===n)g(e,v);else if("queueallfromhere"===n)g(e,v,!0);else if("setplaylistindex"===n)a.f.setCurrentPlaylistItem(e.getAttribute("data-playlistitemid"));else if("record"===n)!function(e,t,r,n,a){if("Program"===r||n||a){var i="Program"===r?t:null;c.default.toggleRecording(e,i,n,a)}}(v,i,p,e.getAttribute("data-timerid"),e.getAttribute("data-seriestimerid"));else if("menu"===n){var L="false"===t.getAttribute("data-playoptions")?{shuffle:!1,instantMix:!1,play:!1,playAllFromHere:!1,queue:!1,queueAllFromHere:!1}:{};L.positionTo=t,I(e,L)}else if("playmenu"===n)!function(e,t){var n=S(e);r.e(44910).then(r.bind(r,44910)).then((function(e){e.show({item:n,positionTo:t})}))}(e,t);else if("edit"===n)A(t).then((function(e){!function(e,t){var n=s.tF.getApiClient(t);new Promise((function(t,a){var i=n.serverInfo().Id;"Timer"===e.Type?e.ProgramId?Promise.all([r.e(10739),r.e(22882)]).then(r.bind(r,63834)).then((function(r){r.default.show(e.ProgramId,i).then(t,a)})):r.e(59801).then(r.bind(r,59801)).then((function(r){r.default.show(e.Id,i).then(t,a)})):Promise.all([r.e(45642),r.e(26855),r.e(63741)]).then(r.bind(r,26855)).then((function(r){r.default.show(e.Id,i).then(t,a)}))}))}(e,v)}));else if("playtrailer"===n)A(t).then(T);else if("addtoplaylist"===n)A(t).then(C);else if("custom"===n){var O=t.getAttribute("data-customaction");e.dispatchEvent(new CustomEvent("action-".concat(O),{detail:{playlistItemId:e.getAttribute("data-playlistitemid")},cancelable:!1,bubbles:!0}))}}function C(e){Promise.all([r.e(45642),r.e(81949)]).then(r.bind(r,4330)).then((function(t){(new(0,t.default)).show({items:[e.Id],serverId:e.ServerId}).catch((function(){}))})).catch((function(e){console.error("[addToPlaylist] failed to load playlist editor",e)}))}function T(e){var t=s.tF.getApiClient(e.ServerId);t.getLocalTrailers(t.getCurrentUserId(),e.Id).then((function(e){a.f.play({items:e})}))}function P(e){var t=u.Ay.parentWithClass(e.target,"itemAction");if(t){var r=t,n=r.getAttribute("data-action");if(n||(r=u.Ay.parentWithAttribute(r,"data-action"))&&(n=r.getAttribute("data-action")),n)return w(t,r,n),e.preventDefault(),e.stopPropagation(),!1}}function L(e){var t=e.detail.command;if("play"===t||"resume"===t||"record"===t||"menu"===t||"info"===t){var r=e.target,n=u.Ay.parentWithClass(r,"itemAction")||u.Ay.parentWithAttribute(r,"data-id");n&&(e.preventDefault(),e.stopPropagation(),w(n,n,t))}}t.Ay={on:function(e,t){!1!==(t=t||{}).click&&e.addEventListener("click",P),!1!==t.command&&i.default.on(e,L)},off:function(e,t){t=t||{},e.removeEventListener("click",P),!1!==t.command&&i.default.off(e,L)},onClick:P,getShortcutAttributesHtml:function(e,t){var r='data-id="'.concat(e.Id,'" data-serverid="').concat(t||e.ServerId,'" data-type="').concat(e.Type,'" data-mediatype="').concat(e.MediaType,'" data-channelid="').concat(e.ChannelId,'" data-isfolder="').concat(e.IsFolder,'"'),n=e.CollectionType;return n&&(r+=' data-collectiontype="'.concat(n,'"')),r}}},76542:function(e,t,r){r.r(t),r.d(t,{default:function(){return g},fillImage:function(){return f},fillImages:function(){return p},getPrimaryImageAspectRatio:function(){return v},lazyChildren:function(){return h},lazyImage:function(){return u},setLazyImage:function(){return b}}),r(29305),r(32733),r(84701),r(14382),r(69892),r(44962),r(89336),r(26448),r(78557),r(95021),r(73687),r(83994),r(93062),r(82367);var n=r(99891),a=r(82885);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var l=new function(){return new Worker(r.p+"blurhash.worker.bundle.js")},s={};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getAttribute("data-src");t&&m(e,t)}function c(e,t,r,n){var a=document.createElement("canvas");a.setAttribute("aria-hidden","true"),a.width=r,a.height=n;var i=a.getContext("2d"),o=i.createImageData(r,n);o.data.set(t),i.putImageData(o,0,0),requestAnimationFrame((function(){a.classList.add("blurhash-canvas"),e.parentNode.insertBefore(a,e),e.classList.add("blurhashed"),e.removeAttribute("data-blurhash")}))}function d(e,t){try{s[t]=(s[t]||[]).filter((function(t){return t!==e})),s[t].push(e),l.postMessage({hash:t,width:20,height:20})}catch(t){return console.error(t),void e.classList.add("non-blurhashable")}}function f(e){if(!e)throw new Error("entry cannot be null");var t,r=e.target;t=r?r.getAttribute("data-src"):e,e.isIntersecting?t&&m(r,t):t||function(e){var t;e.removeEventListener("animationend",y);var r,n=e.previousSibling;"CANVAS"===(null==n?void 0:n.tagName)&&n.classList.remove("lazy-hidden"),null===(t=e.parentNode)||void 0===t||null===(t=t.querySelector(".cardPadder"))||void 0===t||t.classList.remove("lazy-hidden-children"),"IMG"!==e.tagName?(r=e.style.backgroundImage.slice(4,-1).replace(/"/g,""),e.style.backgroundImage="none"):(r=e.getAttribute("src"),e.setAttribute("src","")),e.setAttribute("data-src",r),e.classList.remove("lazy-image-fadein-fast","lazy-image-fadein"),e.classList.add("lazy-hidden")}(r)}function y(e){var t=e.target;requestAnimationFrame((function(){var e,r=t.previousSibling;t.classList.contains("blurhashed")&&"CANVAS"===(null==r?void 0:r.tagName)&&r.classList.add("lazy-hidden"),null===(e=t.parentNode)||void 0===e||null===(e=e.querySelector(".cardPadder"))||void 0===e||e.classList.add("lazy-hidden-children")})),t.removeEventListener("animationend",y)}function m(e,t){if(void 0===t)throw new TypeError("url cannot be undefined");var r=new Image;r.src=t,e.classList.add("lazy-hidden"),e.addEventListener("animationend",y),r.addEventListener("load",(function(){requestAnimationFrame((function(){"IMG"!==e.tagName?e.style.backgroundImage="url('"+t+"')":e.setAttribute("src",t),e.removeAttribute("data-src"),a.enableFastFadein()?e.classList.add("lazy-image-fadein-fast"):e.classList.add("lazy-image-fadein"),e.classList.remove("lazy-hidden")}))}))}function h(e){if(a.enableBlurhash()){var t,r=i(e.querySelectorAll(".lazy"));try{for(r.s();!(t=r.n()).done;){var o=t.value,l=o.getAttribute("data-blurhash");!o.classList.contains("blurhashed","non-blurhashable")&&l?d(o,l):l||o.classList.contains("blurhashed")||o.classList.add("non-blurhashable")}}catch(e){r.e(e)}finally{r.f()}}n.WK(e,f)}function v(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r].PrimaryImageAspectRatio||0;a&&(t[t.length]=a)}if(!t.length)return null;t.sort((function(e,t){return e-t}));var i,o=Math.floor(t.length/2);i=t.length%2?t[o]:(t[o-1]+t[o])/2;var l=2/3;if(Math.abs(l-i)<=.15)return l;var s=16/9;if(Math.abs(s-i)<=.2)return s;if(Math.abs(1-i)<=.15)return 1;var u=4/3;return Math.abs(u-i)<=.15?u:i}function p(e){for(var t=0,r=e.length;t<r;t++)f(e[0])}function b(e,t){e.classList.add("lazy"),e.setAttribute("data-src",t),u(e)}l.addEventListener("message",(function(e){var t=e.data,r=t.pixels,n=t.hsh,a=t.width,o=t.height,l=s[n];if(null!=l&&l.length){var u,d=i(l);try{for(d.s();!(u=d.n()).done;)c(u.value,r,a,o)}catch(e){d.e(e)}finally{d.f()}delete s[n]}}));var g={setLazyImage:b,fillImages:p,fillImage:f,lazyImage:u,lazyChildren:h,getPrimaryImageAspectRatio:v}},78938:function(e,t,r){r.r(t),r(78557),r(90076);var n=r(5898),a=r(67430),i=r(8566),o=r(71866),l=r(47602),s=r(48080);function u(e,t,r,a){return i.Ay.show(),e.getItem(e.getCurrentUserId(),r).then((function(l){return l.IsSeries?e.getNewLiveTvTimerDefaults({programId:r}).then((function(t){return e.createLiveTvSeriesTimer(t).then((function(){i.Ay.hide(),(0,o.A)(n.Ay.translate("SeriesRecordingScheduled"))}))})):a?c(t,e.serverId()):d(e.serverId(),t,!0)}))}function c(e,t){return new Promise((function(r,o){(0,l.A)({text:n.Ay.translate("MessageConfirmRecordingCancellation"),primary:"delete",confirmText:n.Ay.translate("HeaderCancelRecording"),cancelText:n.Ay.translate("HeaderKeepRecording")}).then((function(){i.Ay.show(),d(a.tF.getApiClient(t),e,!0).then(r,o)}),o)}))}function d(e,t,r){return i.Ay.show(),e.cancelLiveTvTimer(t).then((function(){!1!==r&&(i.Ay.hide(),(0,o.A)(n.Ay.translate("RecordingCancelled")))}))}function f(e,t,r){return i.Ay.show(),e.getNewLiveTvTimerDefaults({programId:t}).then((function(t){return(r?e.createLiveTvSeriesTimer(t):e.createLiveTvTimer(t)).then((function(){i.Ay.hide(),(0,o.A)(n.Ay.translate("RecordingScheduled"))}))}))}t.default={cancelTimer:d,createRecording:f,changeRecordingToSeries:u,toggleRecording:function(e,t,r,l,c){var y=a.tF.getApiClient(e),m=r&&"Cancelled"!==l;return c&&m?function(e,t,r,l,u){return new Promise((function(t,c){var f=[];f.push({name:n.Ay.translate("HeaderKeepRecording"),id:"cancel",type:"submit"}),"InProgress"===l?f.push({name:n.Ay.translate("HeaderStopRecording"),id:"canceltimer",type:"cancel"}):f.push({name:n.Ay.translate("HeaderCancelRecording"),id:"canceltimer",type:"cancel"}),f.push({name:n.Ay.translate("HeaderCancelSeries"),id:"cancelseriestimer",type:"cancel"}),s.A.show({text:n.Ay.translate("MessageConfirmRecordingCancellation"),buttons:f}).then((function(l){var s=a.tF.getApiClient(e);"canceltimer"===l?(i.Ay.show(),d(s,r,!0).then(t,c)):"cancelseriestimer"===l?(i.Ay.show(),s.cancelLiveTvSeriesTimer(u).then((function(){(0,o.A)(n.Ay.translate("SeriesCancelled")),i.Ay.hide(),t()}),c)):t()}),c)}))}(e,0,r,l,c):m&&t?u(y,r,t,!0):t?f(y,t):Promise.reject()},cancelTimerWithConfirmation:c,cancelSeriesTimerWithConfirmation:function(e,t){return new Promise((function(r,s){(0,l.A)({text:n.Ay.translate("MessageConfirmRecordingCancellation"),primary:"delete",confirmText:n.Ay.translate("HeaderCancelSeries"),cancelText:n.Ay.translate("HeaderKeepSeries")}).then((function(){i.Ay.show(),a.tF.getApiClient(t).cancelLiveTvSeriesTimer(e).then((function(){(0,o.A)(n.Ay.translate("SeriesCancelled")),i.Ay.hide(),r()}),s)}),s)}))}}},99891:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{WK:function(){return l}}),r(29305),r(32733),r(84701),r(81678),r(69892),r(44962),r(4754),r(94),r(36947),r(78557),r(83994),r(23630),r(82367);var o=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t},(t=[{key:"createObserver",value:function(){var e=this.options.callback,t=new IntersectionObserver((function(t,r){t.forEach((function(t){e(t,r)}))}),{rootMargin:"50%",threshold:0});this.observer=t}},{key:"addElements",value:function(e){var t=this.observer;t||(this.createObserver(),t=this.observer),Array.from(e).forEach((function(e){t.observe(e)}))}},{key:"destroyObserver",value:function(){var e=this.observer;e&&(e.disconnect(),this.observer=null)}},{key:"destroy",value:function(){this.destroyObserver(),this.options=null}}])&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function l(e,t){!function(e,t,r){e.length&&new o({callback:r}).addElements(e)}(e.getElementsByClassName("lazy"),0,t)}t.Ay={LazyLoader:o,lazyChildren:l}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk=self.webpackChunk||[]).push([[24468],{12383:function(e,r,t){t(96054);var a=Object.create(HTMLDivElement.prototype);function n(){var e=parseInt(this.getAttribute("data-starttime"),10),r=parseInt(this.getAttribute("data-endtime"),10),t=((new Date).getTime()-e)/(r-e)*100;t=Math.min(100,t),t=Math.max(0,t),this.querySelector(".itemProgressBarForeground").style.width=t+"%"}a.attachedCallback=function(){this.timeInterval&&clearInterval(this.timeInterval),"time"===this.getAttribute("data-automode")&&(this.timeInterval=setInterval(n.bind(this),6e4))},a.detachedCallback=function(){this.timeInterval&&(clearInterval(this.timeInterval),this.timeInterval=null)},document.registerElement("emby-progressbar",{prototype:a,extends:"div"})},24468:function(e,r,t){"use strict";t.r(r),t.d(r,{buildCards:function(){return q},getCardImageUrl:function(){return F},getCardsHtml:function(){return k},getDefaultText:function(){return U},onSeriesTimerCancelled:function(){return J},onTimerCancelled:function(){return G},onTimerCreated:function(){return z},onUserDataChanged:function(){return j},setCardData:function(){return x}}),t(29305),t(32733),t(84701),t(81678),t(24776),t(14382),t(69892),t(76281),t(44962),t(86584),t(89336),t(4754),t(94),t(33087),t(36947),t(36457),t(88908),t(83810),t(78557),t(90076),t(95021),t(73687),t(99425),t(83994),t(23630),t(82367);var a=t(11444),n=t(79096),i=t(22696),o=t.n(i),s=t(34789),c=t(98320),u=t(36300),l=t(5898),d=t(67430),m=t(76942),p=t(32203),y=t(9164),h=t(76542),v=t(51938),f=t(23648),g=t(46782),T=t(39738),I=t(70267),b=t(22832),C=(t(15453),t(36645));function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function A(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function P(e,r,t){return(r=function(e){var r=function(e){if("object"!=S(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=S(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function w(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=O(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}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,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw i}}}}function O(e,r){if(e){if("string"==typeof e)return D(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?D(e,r):void 0}}function D(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var B,M=!s.A.slow&&!s.A.edge;function k(e,r){return 1===arguments.length&&(e=(r=arguments[0]).items),L(e,r)}function x(e,r){r.shape=r.shape||"auto";var t=h.default.getPrimaryImageAspectRatio(e);if(["auto","autohome","autooverflow","autoVertical"].includes(r.shape)){var a=r.shape;r.shape=null,t&&(t>=3?(r.shape="banner",r.coverImage=!0):r.shape=t>=1.33?(0,m.UI)("autooverflow"===a):t>.8?(0,m.zP)("autooverflow"===a):(0,m.xK)("autooverflow"===a)),r.shape||(r.shape=r.defaultShape||(0,m.zP)("autooverflow"===a))}if("auto"===r.preferThumb&&(r.preferThumb="backdrop"===r.shape||"overflowBackdrop"===r.shape),r.uiAspect=(0,C.zo)(r.shape),r.primaryImageAspectRatio=t,!r.width&&r.widths&&(r.width=r.widths[r.shape]),r.rows&&"number"!=typeof r.rows&&(r.rows=r.rows[r.shape]),!r.width){var n=u.Ay.getWindowSize().innerWidth,i=u.Ay.getWindowSize().innerHeight;(0,C.w)(n)&&(n=100*Math.floor(n/100)),r.width=function(e,r,t){var a=(0,C.QW)(e,r,t,g.A.tv);return Math.round(r/a)}(r.shape,n,n>1.3*i)}}function L(e,r){var t=!1;"autoVertical"===r.shape&&(t=!0),x(e,r);var a,n,i,o,s,u,l,m,p="",y=0,h=r.sectionTitleTagName||"div",v=w(e.entries());try{for(v.s();!(u=v.n()).done;){var f=(l=u.value,m=2,function(e){if(Array.isArray(e))return e}(l)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=i.call(t)).done)&&(s.push(a.value),s.length!==r);c=!0);}catch(e){u=!0,n=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}(l,m)||O(l,m)||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.")}()),g=f[0],T=f[1],I=T.ServerId||r.serverId;if(I!==s&&(s=I,o=d.tF.getApiClient(s)),r.indexBy){var b="";if("PremiereDate"===r.indexBy){if(T.PremiereDate)try{b=c.Ay.toLocaleDateString(c.Ay.parseISO8601Date(T.PremiereDate),{weekday:"long",month:"long",day:"numeric"})}catch(e){console.error("error parsing timestamp for premiere date",e)}}else if("ProductionYear"===r.indexBy)b=T.ProductionYear;else if("CommunityRating"===r.indexBy){var C=T.CommunityRating%1>=.5?.5:0;b=T.CommunityRating?Math.floor(T.CommunityRating)+C+"+":null}b!==a&&(n&&(p+="</div>",n=!1,y=0),i&&(p+="</div>",t&&(p+="</div>"),i=!1),p+=t?'<div class="verticalSection">':'<div class="horizontalSection">',p+="<"+h+' class="sectionTitle">'+b+"</"+h+">",t&&(p+='<div class="itemsContainer vertical-wrap">'),a=b,i=!0)}r.rows&&0===y&&(n&&(p+="</div>",n=!1),p+='<div class="cardColumn">',n=!0),p+=V(g,T,o,r),y++,r.rows&&y>=r.rows&&(p+="</div>",n=!1,y=0)}}catch(e){v.e(e)}finally{v.f()}return n&&(p+="</div>"),i&&(p+="</div>",t&&(p+="</div>")),p}function F(e,r,t,a){var n,i,o,s,c,u,l,d,m,p,y,h;e=e.ProgramInfo||e;var v=t.width,f=null,g=e.PrimaryImageAspectRatio,T=!1,I=null,b=null,S=!1,A=(0,C.zo)(a),P=null,w=null;return t.preferThumb&&null!==(n=e.ImageTags)&&void 0!==n&&n.Thumb?(P="Thumb",b=e.ImageTags.Thumb):(t.preferBanner||"banner"===a)&&null!==(i=e.ImageTags)&&void 0!==i&&i.Banner?(P="Banner",b=e.ImageTags.Banner):t.preferDisc&&null!==(o=e.ImageTags)&&void 0!==o&&o.Disc?(P="Disc",b=e.ImageTags.Disc):t.preferLogo&&null!==(s=e.ImageTags)&&void 0!==s&&s.Logo?(P="Logo",b=e.ImageTags.Logo):t.preferLogo&&e.ParentLogoImageTag&&e.ParentLogoItemId?(P="Logo",b=e.ParentLogoImageTag,w=e.ParentLogoItemId):t.preferThumb&&e.SeriesThumbImageTag&&!1!==t.inheritThumb?(P="Thumb",b=e.SeriesThumbImageTag,w=e.SeriesId):t.preferThumb&&e.ParentThumbItemId&&!1!==t.inheritThumb&&"Photo"!==e.MediaType?(P="Thumb",b=e.ParentThumbImageTag,w=e.ParentThumbItemId):t.preferThumb&&null!==(c=e.BackdropImageTags)&&void 0!==c&&c.length?(P="Backdrop",b=e.BackdropImageTags[0],T=!0):t.preferThumb&&null!==(u=e.ParentBackdropImageTags)&&void 0!==u&&u.length&&!1!==t.inheritThumb&&"Episode"===e.Type?(P="Backdrop",b=e.ParentBackdropImageTags[0],w=e.ParentBackdropItemId):null===(l=e.ImageTags)||void 0===l||!l.Primary||"Episode"===e.Type&&0===e.ChildCount?e.SeriesPrimaryImageTag?(P="Primary",b=e.SeriesPrimaryImageTag,w=e.SeriesId):e.PrimaryImageTag?(P="Primary",b=e.PrimaryImageTag,w=e.PrimaryImageItemId,f=v&&g?Math.round(v/g):null,t.preferThumb&&!1!==t.showTitle&&(T=!0),g&&A&&(S=Math.abs(g-A)/A<=.2)):e.ParentPrimaryImageTag?(P="Primary",b=e.ParentPrimaryImageTag,w=e.ParentPrimaryImageItemId):e.AlbumId&&e.AlbumPrimaryImageTag?(P="Primary",b=e.AlbumPrimaryImageTag,w=e.AlbumId,f=v&&g?Math.round(v/g):null,g&&A&&(S=Math.abs(g-A)/A<=.2)):"Season"===e.Type&&null!==(d=e.ImageTags)&&void 0!==d&&d.Thumb?(P="Thumb",b=e.ImageTags.Thumb):null!==(m=e.BackdropImageTags)&&void 0!==m&&m.length?(P="Backdrop",b=e.BackdropImageTags[0]):null!==(p=e.ImageTags)&&void 0!==p&&p.Thumb?(P="Thumb",b=e.ImageTags.Thumb):e.SeriesThumbImageTag&&!1!==t.inheritThumb?(P="Thumb",b=e.SeriesThumbImageTag,w=e.SeriesId):e.ParentThumbItemId&&!1!==t.inheritThumb?(P="Thumb",b=e.ParentThumbImageTag,w=e.ParentThumbItemId):null!==(y=e.ParentBackdropImageTags)&&void 0!==y&&y.length&&!1!==t.inheritThumb&&(P="Backdrop",b=e.ParentBackdropImageTags[0],w=e.ParentBackdropItemId):(P="Primary",b=e.ImageTags.Primary,f=v&&g?Math.round(v/g):null,t.preferThumb&&!1!==t.showTitle&&(T=!0),g&&A&&(S=Math.abs(g-A)/A<=.2)),w||(w=e.Id),b&&P&&(!f&&v&&A&&(f=v/A),I=r.getScaledImageUrl(w,{type:P,fillHeight:f,fillWidth:v,quality:96,tag:b})),{imgUrl:I,blurhash:null===(h=(t.imageBlurhashes||e.ImageBlurHashes||{})[P])||void 0===h?void 0:h[b],forceName:T,coverImage:S}}function N(e,r,t){var a="";if(e.StartDate)try{var n=c.Ay.parseISO8601Date(e.StartDate);r&&(a+=c.Ay.toLocaleDateString(n,{weekday:"short",month:"short",day:"numeric"})+" "),a+=c.Ay.getDisplayTime(n),e.EndDate&&t&&(n=c.Ay.parseISO8601Date(e.EndDate),a+=" - "+c.Ay.getDisplayTime(n))}catch(r){console.error("error parsing date: "+e.StartDate,r)}return a}function E(e,r,t,i,s,u,d){e=e.ProgramInfo||e;var m="";d.logoUrl&&(m+='<div class="lazy cardFooterLogo" data-src="'+d.logoUrl+'"></div>');var p="auto"===t.showTitle||t.showTitle||"PhotoAlbum"===e.Type||"Folder"===e.Type,y=u.isOuterFooter?!u.overlayText:u.overlayText;u.isOuterFooter&&t.cardLayout&&g.A.mobile&&"none"!==t.cardFooterAside&&(m+='<button is="paper-icon-button-light" class="itemAction btnCardOptions cardText-secondary" data-action="menu" title="'.concat(l.Ay.translate("ButtonMore"),'"><span class="material-icons more_vert" aria-hidden="true"></span></button>'));var h,v=t.centerText?"cardText cardTextCentered":"cardText",T=e.ServerId||t.serverId,I=[],b="MusicAlbum"===e.Type||"Audio"===e.Type||"MusicVideo"===e.Type;if(y&&(t.showParentTitle||t.showParentTitleOrTitle)&&!b)if(u.isOuterFooter&&"Episode"===e.Type&&e.SeriesName)e.SeriesId?I.push(R({Id:e.SeriesId,ServerId:T,Name:e.SeriesName,Type:"Series",IsFolder:!0})):I.push(o()(e.SeriesName));else if((0,C.hn)(e.Type))I.push(o()(e.Name)),e.EpisodeTitle||e.IndexNumber||(h=!0);else{var S=e.SeriesName||e.Series||e.Album||e.AlbumArtist||"";(S||p)&&I.push(o()(S))}var A=p&&!h||t.showParentTitleOrTitle&&!I.length;if(A||h||!p&&!u.forceName||(A=!0),A){var P="auto"!==t.showTitle||e.IsFolder||"Photo"!==e.MediaType?f.Ay.getDisplayName(e,{includeParentInfo:t.includeParentInfoInTitle}):"";I.push(R({Id:e.Id,ServerId:T,Name:P,Type:e.Type,CollectionType:e.CollectionType,IsFolder:e.IsFolder}))}if(y){var O;if(t.showParentTitle&&b)if(u.isOuterFooter&&null!==(O=e.AlbumArtists)&&void 0!==O&&O.length){var D=e.AlbumArtists.map((function(e){return e.Type=a.D.MusicArtist,e.IsFolder=!0,R(e,null,T)})).join(" / ");I.push(D)}else I.push(o()((0,C.hn)(e.Type)?e.Name:e.SeriesName||e.Series||e.Album||e.AlbumArtist||""));if(e.ExtraType&&"Unknown"!==e.ExtraType&&I.push(l.Ay.translate(e.ExtraType)),t.showItemCounts&&I.push(function(e,r){var t,a=[];if("Playlist"===r.Type){if(t="",r.RunTimeTicks){var n=r.RunTimeTicks/6e8;n=n||1,t+=l.Ay.translate("ValueMinutes",Math.round(n))}else t+=l.Ay.translate("ValueMinutes",0);a.push(t)}else"Genre"===r.Type||"Studio"===r.Type?(r.MovieCount&&(t=1===r.MovieCount?l.Ay.translate("ValueOneMovie"):l.Ay.translate("ValueMovieCount",r.MovieCount),a.push(t)),r.SeriesCount&&(t=1===r.SeriesCount?l.Ay.translate("ValueOneSeries"):l.Ay.translate("ValueSeriesCount",r.SeriesCount),a.push(t)),r.EpisodeCount&&(t=1===r.EpisodeCount?l.Ay.translate("ValueOneEpisode"):l.Ay.translate("ValueEpisodeCount",r.EpisodeCount),a.push(t))):"MusicGenre"===r.Type||"MusicArtist"===e.context?(r.AlbumCount&&(t=1===r.AlbumCount?l.Ay.translate("ValueOneAlbum"):l.Ay.translate("ValueAlbumCount",r.AlbumCount),a.push(t)),r.SongCount&&(t=1===r.SongCount?l.Ay.translate("ValueOneSong"):l.Ay.translate("ValueSongCount",r.SongCount),a.push(t)),r.MusicVideoCount&&(t=1===r.MusicVideoCount?l.Ay.translate("ValueOneMusicVideo"):l.Ay.translate("ValueMusicVideoCount",r.MusicVideoCount),a.push(t))):"Series"===r.Type&&(t=1===r.RecursiveItemCount?l.Ay.translate("ValueOneEpisode"):l.Ay.translate("ValueEpisodeCount",r.RecursiveItemCount),a.push(t));return a.join(", ")}(t,e)),t.textLines){var B,M=w(t.textLines(e));try{for(M.s();!(B=M.n()).done;){var k=B.value;I.push(k)}}catch(e){M.e(e)}finally{M.f()}}if(t.showSongCount){var x="";e.SongCount&&(x=1===e.SongCount?l.Ay.translate("ValueOneSong"):l.Ay.translate("ValueSongCount",e.SongCount)),I.push(x)}if(t.showPremiereDate)if(e.PremiereDate)try{I.push(c.Ay.toLocaleDateString(c.Ay.parseISO8601Date(e.PremiereDate),{weekday:"long",month:"long",day:"numeric"}))}catch(e){I.push("")}else I.push("");if(t.showYear||t.showSeriesYear){var L=e.ProductionYear&&c.Ay.toLocaleString(e.ProductionYear,{useGrouping:!1});if("Series"===e.Type)if("Continuing"===e.Status)I.push(l.Ay.translate("SeriesYearToPresent",L||""));else if(e.EndDate&&e.ProductionYear){var F=c.Ay.toLocaleString(c.Ay.parseISO8601Date(e.EndDate).getFullYear(),{useGrouping:!1});I.push(L+(F===L?"":" - "+F))}else I.push(L||"");else I.push(L||"")}if(t.showRuntime&&(e.RunTimeTicks?I.push(c.Ay.getDisplayRunningTime(e.RunTimeTicks)):I.push("")),t.showAirTime&&I.push(N(e,t.showAirDateTime,t.showAirEndTime)||""),t.showChannelName&&(e.ChannelId?I.push(R({Id:e.ChannelId,ServerId:T,Name:e.ChannelName,Type:"TvChannel",MediaType:e.MediaType,IsFolder:!1},e.ChannelName)):I.push(o()(e.ChannelName||"")||"&nbsp;")),t.showCurrentProgram&&"TvChannel"===e.Type&&(e.CurrentProgram?I.push(o()(e.CurrentProgram.Name)):I.push("")),t.showCurrentProgramTime&&"TvChannel"===e.Type&&(e.CurrentProgram?I.push(N(e.CurrentProgram,!1,!0)||""):I.push("")),t.showSeriesTimerTime&&(e.RecordAnyTime?I.push(l.Ay.translate("Anytime")):I.push(c.Ay.getDisplayTime(e.StartDate))),t.showSeriesTimerChannel&&(e.RecordAnyChannel?I.push(l.Ay.translate("AllChannels")):I.push(o()(e.ChannelName||"")||l.Ay.translate("OneChannel"))),t.showPersonRoleOrType&&e.Type)if(e.Role)if([n.S.Actor,n.S.GuestStar].includes(e.Type)){var E=l.Ay.translate("PersonRole",o()(e.Role));I.push('<span title="'.concat(E,'">').concat(E,"</span>"))}else e.Role.toLowerCase()===e.Type.toLowerCase()?I.push(o()(l.Ay.translate(e.Type))):(e.Role.toLowerCase().includes(e.Type.toLowerCase())||I.push(o()(l.Ay.translate(e.Type))),I.push(o()(e.Role)));else I.push(o()(l.Ay.translate(e.Type)))}(p||!d.imgUrl)&&u.forceName&&u.overlayText&&1===I.length&&(I=[]),u.overlayText&&p&&(I=[o()(e.Name)]);var V=u.isOuterFooter&&t.cardLayout&&!t.centerText&&"none"!==t.cardFooterAside&&g.A.mobile;return m+=function(e,r,t,a,n,i,o){var s,c="",u=0,l=w(e);try{for(l.s();!(s=l.n()).done;){var d=s.value,m=r;if(u>0&&a?m+=" cardText-secondary":0===u&&a&&(m+=" cardText-first"),i&&(m+=" cardText-rightmargin"),d&&(c+="<div class='"+m+"'>",c+="<bdi>"+d+"</bdi>",c+="</div>",u++,o&&u>=o))break}}catch(e){l.e(e)}finally{l.f()}if(t)for(var p=o||Math.min(e.length,o||e.length);u<p;)c+="<div class='"+r+"'>&nbsp;</div>",u++;return c}(I,v,!t.overlayText,u.isOuterFooter,t.cardLayout,V,t.lines),s&&(m+=s),m&&(!u.isOuterFooter||d.logoUrl||t.cardLayout)&&(m='<div class="'+i+'">'+m,m+="</div>"),m}function R(e,r,t){if(r||(r=f.Ay.getDisplayName(e)),r=o()(r),g.A.tv)return r;var a='<a href="'+I.appRouter.getRouteUrl(e)+'" '+b.Ay.getShortcutAttributesHtml(e,t)+' class="itemAction textActionButton" title="'+r+'" data-action="link">';return(a+=r)+"</a>"}function V(e,r,n,i){var s,c=(0,C.n5)({defaultAction:i.action||"link",isFolder:r.IsFolder,isPhoto:"Photo"===r.MediaType}),u=i.shape;"mixed"===u&&(u=(0,C.Tj)(r.PrimaryImageAspectRatio));var m,p,y=F(r,n,i,u),h=y.imgUrl,b=y.blurhash,S=y.forceName,w=i.overlayText,O=(0,C.uA)({itemType:r.Type,itemName:r.Name,hasCoverImage:i.coverImage||y.coverImage,imgUrl:h}),D=v.Ay.getProgressBarHtml(r),k="",x=!1;i.showChannelLogo&&r.ChannelPrimaryImageTag?p=n.getScaledImageUrl(r.ChannelId,{type:"Primary",height:40,tag:r.ChannelPrimaryImageTag}):i.showLogo&&r.ParentLogoImageTag&&(p=n.getScaledImageUrl(r.ParentLogoItemId,{type:"Logo",height:40,tag:r.ParentLogoImageTag})),w?(k+=E(r,0,i,m=D?"innerCardFooter fullInnerCardFooter":"innerCardFooter",D,{forceName:S,overlayText:w,isOuterFooter:!1},{imgUrl:h,logoUrl:p=null}),x=!0):D&&(k+='<div class="innerCardFooter fullInnerCardFooter innerCardFooterClear">',k+=D,k+="</div>",D="");var L=r.MediaSourceCount||1;L>1&&!0!==i.disableIndicators&&(k+='<div class="mediaSourceIndicator">'+L+"</div>");var N="";w||x||(m=i.cardLayout?"cardFooter":"cardFooter cardFooter-transparent",p&&(m+=" cardFooter-withlogo"),i.cardLayout||(p=null),N=E(r,0,i,m,D,{forceName:S,overlayText:w,isOuterFooter:!0},{imgUrl:h,logoUrl:p}));var R,V=(0,C.Rn)({hasOuterCardFooter:N.length>0,cardLayout:i.cardLayout}),q="";if(g.A.mobile){var H=i.overlayPlayButton;null!=H||i.overlayMoreButton||i.overlayInfoButton||i.cardLayout||(H="Video"===r.MediaType);var _="cardOverlayButton cardOverlayButton-br itemAction";i.centerPlayButton&&(q+='<button is="paper-icon-button-light" class="'.concat(_,' cardOverlayButton-centered" data-action="play" title="').concat(l.Ay.translate("Play"),'"><span class="material-icons cardOverlayButtonIcon play_arrow" aria-hidden="true"></span></button>')),!H||r.IsPlaceHolder||"Virtual"===r.LocationType&&r.MediaType&&"Program"!==r.Type||"Person"===r.Type||(q+='<button is="paper-icon-button-light" class="'.concat(_,'" data-action="play" title="').concat(l.Ay.translate("Play"),'"><span class="material-icons cardOverlayButtonIcon play_arrow" aria-hidden="true"></span></button>')),i.overlayMoreButton&&(q+='<button is="paper-icon-button-light" class="'.concat(_,'" data-action="menu" title="').concat(l.Ay.translate("ButtonMore"),'"><span class="material-icons cardOverlayButtonIcon more_vert" aria-hidden="true"></span></button>'))}var j="",z="cardContent",G="";if(b&&b.length>0&&(G='data-blurhash="'+b+'"'),g.A.tv)R=h?'<div class="'+O+" "+z+' lazy" data-src="'+h+'" '+G+">":'<div class="'+O+" "+z+'">',j="</div>";else{var J=' aria-label="'.concat(o()(r.Name),'"'),X=I.appRouter.getRouteUrl(r);R=h?'<a href="'+X+'" data-action="'+c+'" class="'+O+" "+z+' itemAction lazy" data-src="'+h+'" '+G+J+">":'<a href="'+X+'" data-action="'+c+'" class="'+O+" "+z+' itemAction"'+J+">",j="</a>"}var W="";if(h&&"TvChannel"!==r.Type&&(W=U(r,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?A(Object(t),!0).forEach((function(r){P(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({defaultCardImageIcon:"folder"},i))),R='<div class="'.concat(V,'"><div class="').concat("cardScalable",'"><div class="cardPadder cardPadder-').concat(u,'">').concat(W,"</div>").concat(R),!0!==i.disableIndicators){var Y="";!1!==i.missingIndicator&&(Y+=v.Ay.getMissingIndicator(r)),Y+=v.Ay.getSyncIndicator(r),Y+=v.Ay.getTimerIndicator(r),Y+=v.Ay.getTypeIndicator(r),i.showGroupCount?Y+=v.Ay.getChildCountIndicatorHtml(r,{minCount:1}):Y+=v.Ay.getPlayedIndicatorHtml(r),(r.Type===a.D.CollectionFolder||r.CollectionType)&&(Y+='<div is="emby-itemrefreshindicator"'+(r.RefreshProgress?"":' class="hide"')+' data-progress="'+(r.RefreshProgress||0)+'" data-status="'+r.RefreshStatus+'"></div>',B||(B=!0,t.e(84158).then(t.bind(t,84158)))),Y&&(R+='<div class="cardIndicators">'+Y+"</div>")}h||(R+=U(r,i));var K=g.A.tv&&!q?"button":"div",Q=r.SortName||r.Name||"",$=Q.substring(0,Math.min(3,Q.length));$&&($=$.toUpperCase());var Z,ee="";r.TimerId&&(ee+=' data-timerid="'+r.TimerId+'"'),r.SeriesTimerId&&(ee+=' data-seriestimerid="'+r.SeriesTimerId+'"');var re="";"button"===K?(Z=' data-action="'+c+'"',re=' aria-label="'.concat(o()(r.Name),'"')):Z="";var te=(0,C.a_)({shape:u,cardCssClass:i.cardCssClass,cardClass:i.cardClass,isTV:g.A.tv,enableFocusTransform:M,isDesktop:g.A.desktop,showChildCountIndicator:i.showChildCountIndicator,childCount:r.ChildCount,tagName:K,itemType:r.Type}),ae=null!==(s=r.UserData)&&void 0!==s&&s.PlaybackPositionTicks?' data-positionticks="'+r.UserData.PlaybackPositionTicks+'"':"",ne=i.collectionId?' data-collectionid="'+i.collectionId+'"':"",ie=i.playlistId?' data-playlistid="'+i.playlistId+'"':"",oe=r.MediaType?' data-mediatype="'+r.MediaType+'"':"",se=r.CollectionType?' data-collectiontype="'+r.CollectionType+'"':"",ce=r.ChannelId?' data-channelid="'+r.ChannelId+'"':"",ue=r.Path?' data-path="'+o()(r.Path)+'"':"",le=i.context?' data-context="'+i.context+'"':"",de=i.parentId?' data-parentid="'+i.parentId+'"':"",me=r.StartDate?' data-startdate="'+r.StartDate.toString()+'"':"",pe=r.EndDate?' data-enddate="'+r.EndDate.toString()+'"':"",ye="";return g.A.desktop&&!i.disableHoverMenu&&(ye+=function(e,r){var a="";a+='<div class="cardOverlayContainer itemAction" data-action="'+r+'">',a+='<a href="'+I.appRouter.getRouteUrl(e,{serverId:e.ServerId||d.tF.currentApiClient().serverId()})+'" class="cardImageContainer"></a>';var n="cardOverlayButton cardOverlayButton-hover itemAction paper-icon-button-light";T.f.canPlay(e)&&(a+='<button is="paper-icon-button-light" class="'+n+' cardOverlayFab-primary" data-action="resume"><span class="material-icons cardOverlayButtonIcon cardOverlayButtonIcon-hover play_arrow" aria-hidden="true"></span></button>'),a+='<div class="cardOverlayButton-br flex">';var i=e.UserData||{};if(f.Ay.canMarkPlayed(e)&&(t.e(38965).then(t.bind(t,38965)),a+='<button is="emby-playstatebutton" type="button" data-action="none" class="'+n+'" data-id="'+e.Id+'" data-serverid="'+e.ServerId+'" data-itemtype="'+e.Type+'" data-played="'+i.Played+'"><span class="material-icons cardOverlayButtonIcon cardOverlayButtonIcon-hover check" aria-hidden="true"></span></button>'),f.Ay.canRate(e)){var o=null==i.Likes?"":i.Likes;t.e(15605).then(t.bind(t,15605)),a+='<button is="emby-ratingbutton" type="button" data-action="none" class="'+n+'" data-id="'+e.Id+'" data-serverid="'+e.ServerId+'" data-itemtype="'+e.Type+'" data-likes="'+o+'" data-isfavorite="'+i.IsFavorite+'"><span class="material-icons cardOverlayButtonIcon cardOverlayButtonIcon-hover favorite" aria-hidden="true"></span></button>'}return a+='<button is="paper-icon-button-light" class="'.concat(n,'" data-action="menu" title="').concat(l.Ay.translate("ButtonMore"),'"><span class="material-icons cardOverlayButtonIcon cardOverlayButtonIcon-hover more_vert" aria-hidden="true"></span></button>'),(a+="</div>")+"</div>"}(r,c)),"<"+K+' data-index="'+e+'"'+ee+Z+' data-isfolder="'+(r.IsFolder||!1)+'" data-serverid="'+(r.ServerId||i.serverId)+'" data-id="'+(r.Id||r.ItemId)+'" data-type="'+r.Type+'"'+oe+se+ce+ue+ae+ne+ie+le+de+me+pe+' data-prefix="'+o()($)+'" class="'+te+'"'+re+">"+R+k+j+q+ye+"</div>"+N+"</div></"+K+">"}function U(e,r){var t;if((e.Type===a.D.CollectionFolder||e.CollectionType)&&(t=(0,p.Jd)(e.CollectionType)),t||(t=(0,p.Bq)(e.Type,null==r?void 0:r.defaultCardImageIcon)),t)return'<span class="cardImageIcon material-icons '.concat(t,'" aria-hidden="true"></span>');var n=(0,C.hn)(e.Type)?e.Name:f.Ay.getDisplayName(e);return'<div class="cardText cardDefaultText">'+o()(n)+"</div>"}function q(e,r){if(document.body.contains(r.itemsContainer)){if(r.parentContainer){if(!e.length)return void r.parentContainer.classList.add("hide");r.parentContainer.classList.remove("hide")}var t=L(e,r);t?(r.itemsContainer.cardBuilderHtml!==t&&(r.itemsContainer.innerHTML=t,r.itemsContainer.cardBuilderHtml=t),h.default.lazyChildren(r.itemsContainer)):(r.itemsContainer.innerHTML=t,r.itemsContainer.cardBuilderHtml=null),r.autoFocus&&y.A.autoFocus(r.itemsContainer,!0)}}function H(e,r){if(r)return r;if(!(r=e.querySelector(".cardIndicators"))){var t=e.querySelector(".cardImageContainer");(r=document.createElement("div")).classList.add("cardIndicators"),t.appendChild(r)}return r}function _(e,r){var t=e.getAttribute("data-type"),a="Series"===t||"BoxSet"===t||"Season"===t,n=null,i=null,o=null,s=null;r.Played?((i=e.querySelector(".playedIndicator"))||((i=document.createElement("div")).classList.add("playedIndicator","indicator"),(n=H(e,n)).appendChild(i)),i.innerHTML='<span class="material-icons indicatorIcon check" aria-hidden="true"></span>'):(i=e.querySelector(".playedIndicator"))&&i.parentNode.removeChild(i),r.UnplayedItemCount?((o=e.querySelector(".countIndicator"))||((o=document.createElement("div")).classList.add("countIndicator","indicator"),(n=H(e,n)).appendChild(o)),o.innerHTML=r.UnplayedItemCount):a&&(o=e.querySelector(".countIndicator"))&&o.parentNode.removeChild(o);var c=v.Ay.getProgressBarHtml({Type:t,UserData:r,MediaType:"Video"});if(c){if(!(s=e.querySelector(".itemProgressBar"))){(s=document.createElement("div")).classList.add("itemProgressBar");var u=e.querySelector(".innerCardFooter");u||((u=document.createElement("div")).classList.add("innerCardFooter"),e.querySelector(".cardImageContainer").appendChild(u)),u.appendChild(s)}e.setAttribute("data-positionticks",r.PlaybackPositionTicks),s.innerHTML=c}else(s=e.querySelector(".itemProgressBar"))&&s.parentNode.removeChild(s)}function j(e,r){for(var t=(r||document.body).querySelectorAll('.card-withuserdata[data-id="'+e.ItemId+'"]'),a=0,n=t.length;a<n;a++)_(t[a],e)}function z(e,r,t){for(var a=t.querySelectorAll('.card[data-id="'+e+'"]'),n=0,i=a.length;n<i;n++){var o=a[n];o.querySelector(".timerIndicator")||H(o).insertAdjacentHTML("beforeend",'<span class="material-icons timerIndicator indicatorIcon fiber_manual_record" aria-hidden="true"></span>'),o.setAttribute("data-timerid",r)}}function G(e,r){var t,a=w(r.querySelectorAll('.card[data-timerid="'+e+'"]'));try{for(a.s();!(t=a.n()).done;){var n=t.value,i=n.querySelector(".timerIndicator");i&&i.parentNode.removeChild(i),n.removeAttribute("data-timerid")}}catch(e){a.e(e)}finally{a.f()}}function J(e,r){var t,a=w(r.querySelectorAll('.card[data-seriestimerid="'+e+'"]'));try{for(a.s();!(t=a.n()).done;){var n=t.value,i=n.querySelector(".timerIndicator");i&&i.parentNode.removeChild(i),n.removeAttribute("data-seriestimerid")}}catch(e){a.e(e)}finally{a.f()}}r.default={getCardsHtml:k,getDefaultText:U,buildCards:q,onUserDataChanged:j,onTimerCreated:z,onTimerCancelled:G,onSeriesTimerCancelled:J}},32203:function(e,r,t){"use strict";t.d(r,{Bq:function(){return c},Jd:function(){return s},yq:function(){return o}});var a=t(65369),n=t(11444),i="assets/img/devices/";function o(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return i+"samsungtv.svg";case"Xbox One":return i+"xbox.svg";case"Sony PS4":return i+"playstation.svg";case"Kodi":case"Kodi JellyCon":return i+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return i+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return i+"apple.svg";case"Home Assistant":return i+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return i+"webos.svg";case"Jellyfin Roku":return i+"roku.svg";case"Finamp":return i+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return i+"opera.svg";case"Chrome":case"Chrome Android":return i+"chrome.svg";case"Firefox":case"Firefox Android":return i+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return i+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return i+"edgechromium.svg";case"Edge":return i+"edge.svg";case"Internet Explorer":return i+"msie.svg";case"Titan OS":return i+"titanos.svg";default:return i+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(r=e.Capabilities)||void 0===r?void 0:r.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(r){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,r)}return i+"other.svg"}}function s(e){switch(e){case a.X.Movies:return"movie";case a.X.Music:return"music_note";case a.X.Homevideos:case a.X.Photos:return"photo";case a.X.Livetv:return"live_tv";case a.X.Tvshows:return"tv";case a.X.Trailers:return"theaters";case a.X.Musicvideos:return"music_video";case a.X.Books:return"book";case a.X.Boxsets:return"video_library";case a.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function c(e,r){switch(e){case n.D.MusicAlbum:return"album";case n.D.MusicArtist:case n.D.Person:return"person";case n.D.Audio:return"audiotrack";case n.D.Movie:return"movie";case n.D.Episode:case n.D.Series:return"tv";case n.D.Program:return"live_tv";case n.D.Book:return"book";case n.D.Folder:return"folder";case n.D.BoxSet:return"video_library";case n.D.Playlist:return"queue";case n.D.Photo:return"photo";case n.D.PhotoAlbum:return"photo_album";default:return r}}r.Ay={getDeviceIcon:o,getLibraryIcon:s,getItemTypeIcon:c}},36645:function(e,r,t){"use strict";t.d(r,{QW:function(){return I},Qp:function(){return f},Rn:function(){return v},Tj:function(){return p},a_:function(){return y},hn:function(){return l},n5:function(){return d},uA:function(){return h},w:function(){return m},zo:function(){return T}});var a=t(76942),n=t(58953),i=t(4452),o=t.n(i),s=2/3,c=16/9,u=1e3/185,l=function(e){return"Program"===e||"Timer"===e||"Recording"===e},d=function(e){return"play"===e.defaultAction&&e.isFolder?"link":e.isPhoto?"play":e.defaultAction},m=function(e){var r=window.screen;return!!(r&&r.availWidth-e>20)},p=function(e){return null==e?a.G8.MixedSquare:e>=1.33?a.G8.MixedBackdrop:e>.8?a.G8.MixedSquare:a.G8.MixedPortrait},y=function(e){var r;return o()(((r={card:!0})["".concat(e.shape,"Card")]=e.shape,r["".concat(e.cardCssClass)]=e.cardCssClass,r["".concat(e.cardClass)]=e.cardClass,r["card-hoverable"]=e.isDesktop,r["show-focus"]=e.isTV,r["show-animation"]=e.isTV&&e.enableFocusTransform,r.groupedCard=e.showChildCountIndicator&&e.childCount,r["card-withuserdata"]=!["MusicAlbum","MusicArtist","Audio"].includes(e.itemType),r.itemAction="button"===e.tagName,r))},h=function(e){var r;return o()(((r={cardImageContainer:!0,coveredImage:e.hasCoverImage,"coveredImage-contain":e.hasCoverImage&&"TvChannel"===e.itemType})[f(e.itemName)]=!e.imgUrl,r))},v=function(e){return o()({cardBox:!0,visualCardBox:e.cardLayout,"cardBox-bottompadded":e.hasOuterCardFooter&&!e.cardLayout})},f=function(e){return"defaultCardBackground defaultCardBackground".concat(g(e))},g=function(e){if(e){for(var r=Math.floor(e.length/2),t=String(e.slice(r,r+1).charCodeAt(0)),a=0,i=0;i<t.length;i++)a+=parseInt(t.charAt(i),10);return parseInt(String(a).slice(-1),10)%5+1}return(0,n.HO)(1,5)},T=function(e){return e?-1!==(e=e.toLowerCase()).indexOf("portrait")?s:-1!==e.indexOf("backdrop")?c:-1!==e.indexOf("square")?1:-1!==e.indexOf("banner")?u:null:null},I=function(e,r,t,a){switch(e){case"portrait":return b(r,a);case"square":return C(r,a);case"banner":return S(r);case"backdrop":return A(r,a);case"smallBackdrop":return P(r);case"overflowSmallBackdrop":return w(r,t,a);case"overflowPortrait":return O(r,t,a);case"overflowSquare":return D(r,t,a);case"overflowBackdrop":return B(r,t,a);default:return 4}},b=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;default:return 3.0000000003}},C=function(e,r){switch(!0){case r:return 5.9999999988;case e>=2200:return 10;case e>=1920:return 9.000000000009;case e>=1600:return 8;case e>=1400:return 7.0000000000021;case e>=1200:return 5.9999999988;case e>=800:return 5;case e>=700:return 4;case e>=500:return 3.0000000003;default:return 2}},S=function(e){switch(!0){case e>=2200:return 4;case e>=1200:return 3.0000000003;case e>=800:return 2;default:return 1}},A=function(e,r){switch(!0){case r:return 4;case e>=2500:return 6;case e>=1600:return 5;case e>=1200:return 4;case e>=770:return 3;case e>=420:return 2;default:return 1}},P=function(e){switch(!0){case e>=1600:return 8;case e>=1400:return 7.000000000007001;case e>=1200:return 5.9999999988;case e>=1e3:return 5;case e>=800:return 4;case e>=500:return 3.0000000003;default:return 2}},w=function(e,r,t){switch(!0){case t:return 100/18.9;case r&&e>=800:return 100/15.5;case r:return 100/23.3;case e>=540:return 100/30;default:return 100/72}},O=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=400:return 100/31.5;default:return 100/42}},D=function(e,r,t){switch(!0){case t:return 100/15.5;case r&&e>=1700:return 100/11.6;case r:return 100/15.5;case e>=1400:return 100/15;case e>=1200:return 100/18;case e>=760:return 100/23;case e>=540:return 100/31.5;default:return 100/42}},B=function(e,r,t){switch(!0){case t:return 100/23.3;case r&&e>=1700:return 100/18.5;case r:return 100/23.3;case e>=1800:return 100/23.5;case e>=1400:return 100/30;case e>=760:return 2.5;case e>=640:return 100/56;default:return 100/72}}},51938:function(e,r,t){"use strict";t(78557),t(73687);var a=t(98320),n=t(23648);function i(e){return"Video"===e.MediaType&&"TvChannel"!==e.Type||"AudioBook"===e.Type||"AudioPodcast"===e.Type}function o(e,r){var t="itemProgressBar";return null!=r&&r.containerClass&&(t+=" "+r.containerClass),'<div class="'+t+'"><div class="itemProgressBarForeground" style="width:'+e+'%;"></div></div>'}function s(e){return n.Ay.canMarkPlayed(e)}function c(e){return e>=100?"99+":e.toString()}t(12383),r.Ay={getProgressHtml:o,getProgressBarHtml:function(e,r){var t;if(i(e)&&"Recording"!==e.Type){var n=null!=r&&r.userData?r.userData:e.UserData;if(n&&(t=n.PlayedPercentage)&&t<100)return o(t,r)}if(("Program"===e.Type||"Timer"===e.Type||"Recording"===e.Type)&&e.StartDate&&e.EndDate){var s=0,c=1;try{s=a.Ay.parseISO8601Date(e.StartDate).getTime(),c=a.Ay.parseISO8601Date(e.EndDate).getTime()}catch(e){console.error(e)}if((t=((new Date).getTime()-s)/(c-s)*100)>0&&t<100)return function(e,r,t,a,n){var i="itemProgressBar";null!=r&&r.containerClass&&(i+=" "+r.containerClass);var o="itemProgressBarForeground";return t&&(o+=" itemProgressBarForeground-recording"),'<div is="emby-progressbar" data-automode="time" data-starttime="'+a+'" data-endtime="'+n+'" class="'+i+'"><div class="'+o+'" style="width:'+e+'%;"></div></div>'}(t,r,"Timer"===e.Type||"Recording"===e.Type||e.TimerId,s,c)}return""},getPlayedIndicatorHtml:function(e){if(s(e)){var r=e.UserData||{};if(r.UnplayedItemCount)return'<div class="countIndicator indicator">'+c(r.UnplayedItemCount)+"</div>";if(r.PlayedPercentage&&r.PlayedPercentage>=100||r.Played)return'<div class="playedIndicator indicator"><span class="material-icons indicatorIcon check" aria-hidden="true"></span></div>'}return""},getChildCountIndicatorHtml:function(e,r){var t=null!=r&&r.minCount?r.minCount:0;return e.ChildCount&&e.ChildCount>t?'<div class="countIndicator indicator">'+c(e.ChildCount)+"</div>":""},enableProgressIndicator:i,getTimerIndicator:function(e){var r;if("SeriesTimer"===e.Type)return'<span class="material-icons timerIndicator indicatorIcon fiber_smart_record" aria-hidden="true"></span>';if(e.TimerId||e.SeriesTimerId)r=e.Status||"Cancelled";else{if("Timer"!==e.Type)return"";r=e.Status}return e.SeriesTimerId?"Cancelled"!==r?'<span class="material-icons timerIndicator indicatorIcon fiber_smart_record" aria-hidden="true"></span>':'<span class="material-icons timerIndicator timerIndicator-inactive indicatorIcon fiber_smart_record" aria-hidden="true"></span>':'<span class="material-icons timerIndicator indicatorIcon fiber_manual_record" aria-hidden="true"></span>'},enablePlayedIndicator:s,getSyncIndicator:function(e){return 100===e.SyncPercent?'<div class="syncIndicator indicator fullSyncIndicator"><span class="material-icons indicatorIcon file_download" aria-hidden="true"></span></div>':null!=e.SyncPercent?'<div class="syncIndicator indicator emptySyncIndicator"><span class="material-icons indicatorIcon file_download" aria-hidden="true"></span></div>':""},getTypeIndicator:function(e){var r={Video:"videocam",Folder:"folder",PhotoAlbum:"photo_album",Photo:"photo"}[e.Type];return r?'<div class="indicator videoIndicator"><span class="material-icons indicatorIcon '+r+'" aria-hidden="true"></span></div>':""},getMissingIndicator:function(e){if("Episode"===e.Type&&"Virtual"===e.LocationType){if(e.PremiereDate)try{if(a.Ay.parseISO8601Date(e.PremiereDate).getTime()>(new Date).getTime())return'<div class="unairedIndicator">Unaired</div>'}catch(e){console.error(e)}return'<div class="missingIndicator">Missing</div>'}return""}}},76942:function(e,r,t){"use strict";var a;function n(e){return void 0===e&&(e=!0),e?a.SquareOverflow:a.Square}function i(e){return void 0===e&&(e=!0),e?a.BackdropOverflow:a.Backdrop}function o(e){return void 0===e&&(e=!0),e?a.PortraitOverflow:a.Portrait}t.d(r,{G8:function(){return a},UI:function(){return i},xK:function(){return o},zP:function(){return n}}),function(e){e.Backdrop="backdrop",e.BackdropOverflow="overflowBackdrop",e.Banner="banner",e.Portrait="portrait",e.PortraitOverflow="overflowPortrait",e.Square="square",e.SquareOverflow="overflowSquare",e.Auto="auto",e.AutoHome="autohome",e.AutoOverflow="autooverflow",e.AutoVertical="autoVertical",e.Mixed="mixed",e.MixedSquare="mixedSquare",e.MixedBackdrop="mixedBackdrop",e.MixedPortrait="mixedPortrait"}(a||(a={}))}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 32721.1565fbee2f79c634a171.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[32721,68603,96084],{32203:function(e,r,t){t.d(r,{Bq:function(){return c},Jd:function(){return s},yq:function(){return i}});var n=t(65369),a=t(11444),o="assets/img/devices/";function i(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return o+"samsungtv.svg";case"Xbox One":return o+"xbox.svg";case"Sony PS4":return o+"playstation.svg";case"Kodi":case"Kodi JellyCon":return o+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return o+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return o+"apple.svg";case"Home Assistant":return o+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return o+"webos.svg";case"Jellyfin Roku":return o+"roku.svg";case"Finamp":return o+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return o+"opera.svg";case"Chrome":case"Chrome Android":return o+"chrome.svg";case"Firefox":case"Firefox Android":return o+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return o+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return o+"edgechromium.svg";case"Edge":return o+"edge.svg";case"Internet Explorer":return o+"msie.svg";case"Titan OS":return o+"titanos.svg";default:return o+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(r=e.Capabilities)||void 0===r?void 0:r.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(r){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,r)}return o+"other.svg"}}function s(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function c(e,r){switch(e){case a.D.MusicAlbum:return"album";case a.D.MusicArtist:case a.D.Person:return"person";case a.D.Audio:return"audiotrack";case a.D.Movie:return"movie";case a.D.Episode:case a.D.Series:return"tv";case a.D.Program:return"live_tv";case a.D.Book:return"book";case a.D.Folder:return"folder";case a.D.BoxSet:return"video_library";case a.D.Playlist:return"queue";case a.D.Photo:return"photo";case a.D.PhotoAlbum:return"photo_album";default:return r}}r.Ay={getDeviceIcon:i,getLibraryIcon:s,getItemTypeIcon:c}},51371:function(e,r,t){t.d(r,{u:function(){return n}});var n="/Branding/Splashscreen"},85420:function(e,r,t){t.r(r),t(29305),t(32733),t(84701),t(2623),t(44962),t(86584),t(10849),t(70389),t(36947),t(26437),t(83810),t(52697),t(78557),t(90076),t(83994),t(82367);var n=t(89166),a=t(82885),o=t(73233),i=t(89100),s=t(31297),c=t(44419),u=t(51371),f=t(67430);function l(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var c=n&&n.prototype instanceof s?n:s,u=Object.create(c.prototype);return d(u,"_invoke",function(t,n,a){var o,s,c,u=0,f=a||[],l=!1,d={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(r,t){return o=r,s=0,c=e,d.n=t,i}};function v(t,n){for(s=t,c=n,r=0;!l&&u&&!a&&r<f.length;r++){var a,o=f[r],v=d.p,p=o[2];t>3?(a=p===n)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=t<2&&v<o[1])?(s=0,d.v=n,d.n=o[1]):v<p&&(a=t<3||o[0]>n||n>p)&&(o[4]=t,o[5]=n,d.n=p,s=0))}if(a||t>1)return i;throw l=!0,n}return function(a,f,p){if(u>1)throw TypeError("Generator is already running");for(l&&1===f&&v(f,p),s=f,c=p;(r=s<2?e:c)||!l;){o||(s?s<3?(s>1&&(d.n=-1),v(s,c)):d.n=c:d.v=c);try{if(u=2,o){if(s||(a="next"),r=o[a]){if(!(r=r.call(o,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,s<2&&(s=0)}else 1===s&&(r=o.return)&&r.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);o=e}else if((r=(l=d.n<0)?c:t.call(n,d))!==i)break}catch(r){o=e,s=1,c=r}finally{u=1}}return{value:r,done:l}}}(t,a,o),!0),u}var i={};function s(){}function c(){}function u(){}r=Object.getPrototypeOf;var f=[][n]?r(r([][n]())):(d(r={},n,(function(){return this})),r),v=u.prototype=s.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,d(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return c.prototype=u,d(v,"constructor",u),d(u,"constructor",c),c.displayName="GeneratorFunction",d(u,a,"GeneratorFunction"),d(v),d(v,a,"Generator"),d(v,n,(function(){return this})),d(v,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:o,m:p}})()}function d(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}d=function(e,r,t,n){if(r)a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t;else{var o=function(r,t){d(e,r,(function(e){return this._invoke(r,t,e)}))};o("next",0),o("throw",1),o("return",2)}},d(e,r,t,n)}function v(e,r,t,n,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void t(e)}s.done?r(c):Promise.resolve(c).then(n,a)}var p={};function g(){var e;return e=l().m((function e(){var r;return l().w((function(e){for(;;)switch(e.n){case 0:return r=f.tF.getCurrentApi(),e.n=1,s.q.fetchQuery((0,c.iz)(r));case 1:e.v.SplashscreenEnabled?(0,n.PI)([r.getUri(u.u,{t:Date.now()})]):(0,n.gJ)();case 2:return e.a(2)}}),e)})),g=function(){var r=this,t=arguments;return new Promise((function(n,a){var o=e.apply(r,t);function i(e){v(o,n,a,i,s,"next",e)}function s(e){v(o,n,a,i,s,"throw",e)}i(void 0)}))},g.apply(this,arguments)}(0,i.pageClassOn)("pageshow","page",(function(){var e=this;if(!e.classList.contains("selfBackdropPage"))if(e.classList.contains("backdropPage")){var r=e.getAttribute("data-backdroptype");"splashscreen"===r?function(){g.apply(this,arguments)}():a.enableBackdrops()?function(e,r){var t=f.tF.currentApiClient();t&&function(e,r,t,n){var a="backdrops2_".concat(r+(t||"")+(n||"")),o=p[a];if(o)return console.debug("Found backdrop id list in cache. Key: ".concat(a)),o=JSON.parse(o),Promise.resolve(o);var i={SortBy:"IsFavoriteOrLiked,Random",Limit:20,Recursive:!0,IncludeItemTypes:t,ImageTypes:"Backdrop",ParentId:n,EnableTotalRecordCount:!1,MaxOfficialRating:n?"":"PG-13"};return e.getItems(e.getCurrentUserId(),i).then((function(e){var r=e.Items.map((function(e){return{Id:e.Id,tag:e.BackdropImageTags[0],ServerId:e.ServerId}}));return p[a]=JSON.stringify(r),r}))}(t,t.getCurrentUserId(),e,r).then((function(e){e.length?(0,n.C9)(e.map((function(e){return e.BackdropImageTags=[e.tag],e}))):(0,n.gJ)()}))}(r,e.classList.contains("globalBackdropPage")?"":o.default.getTopParentId()):(e.classList.remove("backdropPage"),(0,n.gJ)())}else(0,n.gJ)()}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[68603,96084],{32203:function(e,r,s){s.d(r,{Bq:function(){return o},Jd:function(){return c},yq:function(){return t}});var a=s(65369),i=s(11444),n="assets/img/devices/";function t(e){var r;switch(e.AppName||e.Client){case"Samsung Smart TV":return n+"samsungtv.svg";case"Xbox One":return n+"xbox.svg";case"Sony PS4":return n+"playstation.svg";case"Kodi":case"Kodi JellyCon":return n+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return n+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return n+"apple.svg";case"Home Assistant":return n+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return n+"webos.svg";case"Jellyfin Roku":return n+"roku.svg";case"Finamp":return n+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return n+"opera.svg";case"Chrome":case"Chrome Android":return n+"chrome.svg";case"Firefox":case"Firefox Android":return n+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return n+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return n+"edgechromium.svg";case"Edge":return n+"edge.svg";case"Internet Explorer":return n+"msie.svg";case"Titan OS":return n+"titanos.svg";default:return n+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(r=e.Capabilities)||void 0===r?void 0:r.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(r){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,r)}return n+"other.svg"}}function c(e){switch(e){case a.X.Movies:return"movie";case a.X.Music:return"music_note";case a.X.Homevideos:case a.X.Photos:return"photo";case a.X.Livetv:return"live_tv";case a.X.Tvshows:return"tv";case a.X.Trailers:return"theaters";case a.X.Musicvideos:return"music_video";case a.X.Books:return"book";case a.X.Boxsets:return"video_library";case a.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function o(e,r){switch(e){case i.D.MusicAlbum:return"album";case i.D.MusicArtist:case i.D.Person:return"person";case i.D.Audio:return"audiotrack";case i.D.Movie:return"movie";case i.D.Episode:case i.D.Series:return"tv";case i.D.Program:return"live_tv";case i.D.Book:return"book";case i.D.Folder:return"folder";case i.D.BoxSet:return"video_library";case i.D.Playlist:return"queue";case i.D.Photo:return"photo";case i.D.PhotoAlbum:return"photo_album";default:return r}}r.Ay={getDeviceIcon:t,getLibraryIcon:c,getItemTypeIcon:o}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[25091,81954],{15088:function(e,t,r){r.r(t),r.d(t,{default:function(){return A}}),r(29305),r(32733),r(84701),r(81678),r(44962),r(4754),r(94),r(36947),r(36457),r(26437),r(52697),r(78557),r(90076),r(21359),r(61642),r(83994),r(82367),r(96054),r(23630);var n=r(89166),i=r(25091),o=r(46782),s=(r(79845),r(73233));function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function u(){var e=this.tabControllers;e&&(e.forEach((function(e){e.destroy&&e.destroy()})),this.tabControllers=null),this.view=null,this.params=null,this.currentTabController=null,this.initialTabIndex=null}var d=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tabControllers=[],this.view=t,this.params=r;var n=this,s=parseInt(r.tab||this.getDefaultTabIndex(r.parentId),10);function a(){return t.querySelectorAll(".tabContent")}function l(e){var t=parseInt(e.detail.selectedTabIndex,10),r=e.detail.previousIndex,i=null==r?null:n.tabControllers[r];null!=i&&i.onPause&&i.onPause(),function(e,t){(function(e){return n.validateTabLoad?n.validateTabLoad(e):Promise.resolve()})(e).then((function(){n.getTabController(e).then((function(r){var i=!r.refreshed;r.onResume({autoFocus:null==t&&o.A.tv,refresh:i}),r.refreshed=!0,s=e,n.currentTabController=r}))}))}(t,r)}this.initialTabIndex=s,t.addEventListener("viewbeforehide",this.onPause.bind(this)),t.addEventListener("viewbeforeshow",(function(){i.setTabs(t,s,n.getTabs,a,null,l,!1)})),t.addEventListener("viewshow",(function(e){n.onResume(e.detail)})),t.addEventListener("viewdestroy",u.bind(this))},(t=[{key:"onResume",value:function(){this.setTitle(),(0,n.gJ)();var e=this.currentTabController;e?null!=e&&e.onResume&&e.onResume({}):i.selectedTabIndex(this.initialTabIndex)}},{key:"onPause",value:function(){var e=this.currentTabController;null!=e&&e.onPause&&e.onPause()}},{key:"setTitle",value:function(){s.default.setTitle("")}}])&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),f=r(5898);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function b(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function y(e,t,r,n){var i=p(g(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},p.apply(null,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}r(10353),r(41765);var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=g(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,r||[],g(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),n=t,(i=[{key:"setTitle",value:function(){s.default.setTitle(null)}},{key:"onPause",value:function(){y(t,"onPause",this,3)([this]),document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")}},{key:"onResume",value:function(e){y(t,"onResume",this,3)([this,e]),document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")}},{key:"getDefaultTabIndex",value:function(){return 0}},{key:"getTabs",value:function(){return[{name:f.Ay.translate("Home")},{name:f.Ay.translate("Favorites")}]}},{key:"getTabController",value:function(e){if(null==e)throw new Error("index cannot be null");var t="";switch(e){case 0:t="hometab";break;case 1:t="favorites"}var n=this;return r(7062)("./".concat(t)).then((function(t){var r=t.default,i=n.tabControllers[e];return i||(i=new r(n.view.querySelector(".tabContent[data-index='"+e+"']"),n.params),n.tabControllers[e]=i),i}))}}])&&h(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(d),A=w},25091:function(e,t,r){r.r(t),r.d(t,{getTabsElement:function(){return h},selectedTabIndex:function(){return v},setTabs:function(){return f}}),r(44962),r(86584),r(78557),r(90076),r(83994),r(82367);var n,i,o,s=r(36300),a=r(34789),l=r(44797),c=(r(79845),r(10353),document.querySelector(".skinHeader"));function u(){this.selectedIndex(this.readySelectedIndex),this.readySelectedIndex=null}function d(e){function t(e){if(s.Ay.parentWithTag(e,"input"))return!1;var t=e.classList;return!t||!t.contains("scrollX")&&!t.contains("animatedScrollX")}for(var r=e;null!=r;){if(!t(r))return!1;r=r.parentNode}return!0}function f(e,t,s,f,v,h,b){if(i||(i=c.querySelector(".headerTabs")),!e)return n&&(document.body.classList.remove("withSectionTabs"),i.innerHTML="",i.classList.add("hide"),n=null),{tabsContainer:i,replaced:!1};var m=i;if(n||m.classList.remove("hide"),n!==e){var y=0,p='<div is="emby-tabs"'+(null==t?"":' data-index="'+t+'"')+' class="tabs-viewmenubar"><div class="emby-tabs-slider" style="white-space:nowrap;">'+s().map((function(e){var t,r="emby-tab-button";return!1===e.enabled&&(r+=" hide"),e.cssClass&&(r+=" "+e.cssClass),t=e.href?'<a href="'+e.href+'" is="emby-linkbutton" class="'+r+'" data-index="'+y+'"><div class="emby-button-foreground">'+e.name+"</div></a>":'<button type="button" is="emby-button" class="'+r+'" data-index="'+y+'"><div class="emby-button-foreground">'+e.name+"</div></button>",y++,t})).join("")+"</div></div>";return m.innerHTML=p,window.CustomElements.upgradeSubtree(m),document.body.classList.add("withSectionTabs"),n=e,function(e,t){if(a.A.touch){var n=function(r,n){d(n)&&e.contains(n)&&t.selectNext()},i=function(r,n){d(n)&&e.contains(n)&&t.selectPrevious()};r.e(19842).then(r.bind(r,19842)).then((function(t){var r=new(0,t.default)(e.parentNode.parentNode);l.A.on(r,"swipeleft",n),l.A.on(r,"swiperight",i),e.addEventListener("viewdestroy",(function(){r.destroy()}))}))}}(e,o=m.querySelector('[is="emby-tabs"]')),f&&o.addEventListener("beforetabchange",(function(e){var t=f();if(null!=e.detail.previousIndex){var r=t[e.detail.previousIndex];r&&r.classList.remove("is-active")}var n=t[e.detail.selectedTabIndex];n&&n.classList.add("is-active")})),v&&o.addEventListener("beforetabchange",v),h&&o.addEventListener("tabchange",h),!1!==b&&(o.selectedIndex?o.selectedIndex(t):(o.readySelectedIndex=t,o.addEventListener("ready",u))),{tabsContainer:m,tabs:o,replaced:!0}}return o.selectedIndex(t),{tabsContainer:m,tabs:o,replaced:!1}}function v(e){null!=e?o.selectedIndex(e):o.triggerTabChange()}function h(){return document.querySelector(".tabs-viewmenubar")}},32203:function(e,t,r){r.d(t,{Bq:function(){return l},Jd:function(){return a},yq:function(){return s}});var n=r(65369),i=r(11444),o="assets/img/devices/";function s(e){var t;switch(e.AppName||e.Client){case"Samsung Smart TV":return o+"samsungtv.svg";case"Xbox One":return o+"xbox.svg";case"Sony PS4":return o+"playstation.svg";case"Kodi":case"Kodi JellyCon":return o+"kodi.svg";case"Jellyfin Android":case"AndroidTV":case"Android TV":return o+"android.svg";case"Jellyfin Mobile (iOS)":case"Jellyfin Mobile (iPadOS)":case"Jellyfin iOS":case"Jellyfin iPadOS":case"Jellyfin tvOS":case"Swiftfin iPadOS":case"Swiftfin iOS":case"Swiftfin tvOS":case"Infuse":case"Infuse-Direct":case"Infuse-Library":return o+"apple.svg";case"Home Assistant":return o+"home-assistant.svg";case"Jellyfin for WebOS":case"LG Smart TV":return o+"webos.svg";case"Jellyfin Roku":return o+"roku.svg";case"Finamp":return o+"finamp.svg";case"Jellyfin Web":return function(e){switch(e){case"Opera":case"Opera TV":case"Opera Android":return o+"opera.svg";case"Chrome":case"Chrome Android":return o+"chrome.svg";case"Firefox":case"Firefox Android":return o+"firefox.svg";case"Safari":case"Safari iPad":case"Safari iPhone":return o+"safari.svg";case"Edge Chromium":case"Edge Chromium Android":case"Edge Chromium iPad":case"Edge Chromium iPhone":return o+"edgechromium.svg";case"Edge":return o+"edge.svg";case"Internet Explorer":return o+"msie.svg";case"Titan OS":return o+"titanos.svg";default:return o+"html5.svg"}}(e.Name||e.DeviceName);default:if(null===(t=e.Capabilities)||void 0===t?void 0:t.IconUrl)try{return new URL(e.Capabilities.IconUrl).toString()}catch(t){console.error("[getDeviceIcon] device capabilities has invalid IconUrl",e,t)}return o+"other.svg"}}function a(e){switch(e){case n.X.Movies:return"movie";case n.X.Music:return"music_note";case n.X.Homevideos:case n.X.Photos:return"photo";case n.X.Livetv:return"live_tv";case n.X.Tvshows:return"tv";case n.X.Trailers:return"theaters";case n.X.Musicvideos:return"music_video";case n.X.Books:return"book";case n.X.Boxsets:return"video_library";case n.X.Playlists:return"queue";case"channels":return"videocam";case void 0:return"quiz";default:return"folder"}}function l(e,t){switch(e){case i.D.MusicAlbum:return"album";case i.D.MusicArtist:case i.D.Person:return"person";case i.D.Audio:return"audiotrack";case i.D.Movie:return"movie";case i.D.Episode:case i.D.Series:return"tv";case i.D.Program:return"live_tv";case i.D.Book:return"book";case i.D.Folder:return"folder";case i.D.BoxSet:return"video_library";case i.D.Playlist:return"queue";case i.D.Photo:return"photo";case i.D.PhotoAlbum:return"photo_album";default:return t}}t.Ay={getDeviceIcon:s,getLibraryIcon:a,getItemTypeIcon:l}},41765:function(e,t,r){r(44962),r(78557),r(90076),r(83994),r(82367);var n=r(4113),i=r(36300),o=r(46782),s=r(38490),a=r(9164),l=r(34789),c=(r(69177),Object.create(HTMLDivElement.prototype));function u(e){var t=e.detail.command;"end"===t?(a.A.focusLast(this,"."+this.getAttribute("data-navcommands")),e.preventDefault(),e.stopPropagation()):"pageup"===t?(a.A.moveFocus(e.target,this,"."+this.getAttribute("data-navcommands"),-12),e.preventDefault(),e.stopPropagation()):"pagedown"===t&&(a.A.moveFocus(e.target,this,"."+this.getAttribute("data-navcommands"),12),e.preventDefault(),e.stopPropagation())}c.createdCallback=function(){this.classList.add("emby-scroller")},c.scrollToBeginning=function(){this.scroller&&this.scroller.slideTo(0,!0)},c.toStart=function(e,t){this.scroller&&this.scroller.toStart(e,t)},c.toCenter=function(e,t){this.scroller&&this.scroller.toCenter(e,t)},c.scrollToPosition=function(e,t){this.scroller&&this.scroller.slideTo(e,t)},c.getScrollPosition=function(){if(this.scroller)return this.scroller.getScrollPosition()},c.getScrollSize=function(){if(this.scroller)return this.scroller.getScrollSize()},c.getScrollEventName=function(){if(this.scroller)return this.scroller.getScrollEventName()},c.getScrollSlider=function(){if(this.scroller)return this.scroller.getScrollSlider()},c.addScrollEventListener=function(e,t){this.scroller&&i.Ay.addEventListener(this.scroller.getScrollFrame(),this.scroller.getScrollEventName(),e,t)},c.removeScrollEventListener=function(e,t){this.scroller&&i.Ay.removeEventListener(this.scroller.getScrollFrame(),this.scroller.getScrollEventName(),e,t)},c.attachedCallback=function(){this.getAttribute("data-navcommands")&&s.default.on(this,u);var e="false"!==this.getAttribute("data-horizontal"),t=this.querySelector(".scrollSlider");e&&(t.style["white-space"]="nowrap");var c,d,f=o.A.desktop&&e&&"false"!==this.getAttribute("data-scrollbuttons"),v={horizontal:e,mouseDragging:1,mouseWheel:"false"!==this.getAttribute("data-mousewheel"),touchDragging:1,slidee:t,scrollBy:200,speed:e?270:240,elasticBounds:1,dragHandle:1,autoImmediate:!0,skipSlideToWhenVisible:"true"===this.getAttribute("data-skipfocuswhenvisible"),dispatchScrollEvent:f||"true"===this.getAttribute("data-scrollevent"),hideScrollbar:f||"true"===this.getAttribute("data-hidescrollbar"),allowNativeSmoothScroll:"true"===this.getAttribute("data-allownativesmoothscroll")&&!f,allowNativeScroll:!f,forceHideScrollbars:f,requireAnimation:f&&l.A.edge};this.scroller=new n.A(this,v),this.scroller.init(),this.scroller.reload(),o.A.tv&&this.getAttribute("data-centerfocus")&&(c=this.scroller,i.Ay.addEventListener(this,"focus",(function(e){var t=a.A.focusableParent(e.target);t&&c.toCenter(t)}),{capture:!0,passive:!0})),f&&(d=this,r.e(49275).then(r.bind(r,49275)).then((function(){d.insertAdjacentHTML("beforebegin",'<div is="emby-scrollbuttons" class="emby-scrollbuttons padded-right"></div>')})))},c.pause=function(){var e=this.headroom;e&&e.pause()},c.resume=function(){var e=this.headroom;e&&e.resume()},c.detachedCallback=function(){this.getAttribute("data-navcommands")&&s.default.off(this,u);var e=this.headroom;e&&(e.destroy(),this.headroom=null);var t=this.scroller;t&&(t.destroy(),this.scroller=null)},document.registerElement("emby-scroller",{prototype:c,extends:"div"})},79845:function(e,t,r){r(96054),r(69177);var n=r(36300),i=r(4113),o=r(34789),s=r(9164),a=r(46782),l=Object.create(HTMLDivElement.prototype),c="emby-tab-button",u=c+"-active";function d(e){e.classList.add(u)}function f(e,t,r){var n;e.dispatchEvent(new CustomEvent("beforetabchange",{detail:{selectedTabIndex:t,previousIndex:r}})),null!=r&&r!==t&&(n=null)&&n.classList.remove("is-active")}function v(e){var t=this,r=t.querySelector("."+u),i=n.Ay.parentWithClass(e.target,c);if(i&&i!==r){r&&r.classList.remove(u);var o=r?parseInt(r.getAttribute("data-index"),10):null;d(i);var s=parseInt(i.getAttribute("data-index"),10);f(t,s,o),setTimeout((function(){t.selectedTabIndex=s,t.dispatchEvent(new CustomEvent("tabchange",{detail:{selectedTabIndex:s,previousIndex:o}}))}),120),t.scroller&&t.scroller.toCenter(i,!1)}}function h(e){var t=n.Ay.parentWithClass(e.target,c);t&&this.scroller&&this.scroller.toCenter(t,!1)}function b(e){var t=e.target.parentNode.querySelector(".lastFocused");t&&t.classList.remove("lastFocused"),e.target.classList.add("lastFocused")}function m(e){return e.querySelector("."+u)}function y(e,t){for(var r=e[t];r;){if(r.classList.contains(c)&&!r.classList.contains("hide"))return r;r=r[t]}return null}l.createdCallback=function(){this.classList.contains("emby-tabs")||(this.classList.add("emby-tabs"),this.classList.add("focusable"),n.Ay.addEventListener(this,"click",v,{passive:!0}),a.A.tv&&n.Ay.addEventListener(this,"focusin",h,{passive:!0}),n.Ay.addEventListener(this,"focusout",b))},l.focus=function(){var e=this.querySelector("."+u),t=this.querySelector(".lastFocused");t?s.A.focus(t):e?s.A.focus(e):s.A.autoFocus(this)},l.refresh=function(){this.scroller&&this.scroller.reload()},l.attachedCallback=function(){!function(e){if(!e.scroller){var t=e.querySelector(".emby-tabs-slider");t?(e.scroller=new i.A(e,{horizontal:1,itemNav:0,mouseDragging:1,touchDragging:1,slidee:t,smart:!0,releaseSwing:!0,scrollBy:200,speed:120,elasticBounds:1,dragHandle:1,dynamicHandle:1,clickBar:1,hiddenScroll:!0,requireAnimation:!o.A.safari,allowNativeSmoothScroll:!0}),e.scroller.init()):(e.classList.add("scrollX"),e.classList.add("hiddenScrollX"),e.classList.add("smoothScrollX"))}}(this);var e=this.querySelector("."+u),t=e?parseInt(e.getAttribute("data-index"),10):parseInt(this.getAttribute("data-index")||"0",10);if(-1!==t){this.selectedTabIndex=t;var r=this.querySelectorAll("."+c)[t];r&&d(r)}this.readyFired||(this.readyFired=!0,this.dispatchEvent(new CustomEvent("ready",{})))},l.detachedCallback=function(){this.scroller&&(this.scroller.destroy(),this.scroller=null),n.Ay.removeEventListener(this,"click",v,{passive:!0}),a.A.tv&&n.Ay.removeEventListener(this,"focusin",h,{passive:!0})},l.selectedIndex=function(e,t){var r=this;if(null==e)return r.selectedTabIndex||0;var n=r.selectedIndex();r.selectedTabIndex=e;var i=r.querySelectorAll("."+c);if(n===e||!1===t){f(r,e,n),r.dispatchEvent(new CustomEvent("tabchange",{detail:{selectedTabIndex:e}}));var o=i[n];d(i[e]),n!==e&&o&&o.classList.remove(u)}else v.call(r,{target:i[e]})},l.selectNext=function(){var e=y(m(this),"nextSibling");e&&v.call(this,{target:e})},l.selectPrevious=function(){var e=y(m(this),"previousSibling");e&&v.call(this,{target:e})},l.triggerBeforeTabChange=function(){f(this,this.selectedIndex())},l.triggerTabChange=function(){this.dispatchEvent(new CustomEvent("tabchange",{detail:{selectedTabIndex:this.selectedIndex()}}))},l.setTabEnabled=function(e,t){var r=this.querySelector('.emby-tab-button[data-index="'+e+'"]');t?r.classList.remove("hide"):r.classList.remove("add")},document.registerElement("emby-tabs",{prototype:l,extends:"div"})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8575],{713:function(e,n,r){r.d(n,{j:function(){return o},p:function(){return a}});var t=r(82885),i=r(14229),o=function(e){return i.u.some((function(n){return n.path===e}))},a=function(e,n){var r,o,a,l,s,u;if(!n)return 0;var c=null!==(o=null===(r=i.u.find((function(n){return n.path===e})))||void 0===r?void 0:r.views)&&void 0!==o?o:[],d=t.get("landing-"+n,!1);return null!==(u=null!==(l=null===(a=c.find((function(e){return e.view===d})))||void 0===a?void 0:a.index)&&void 0!==l?l:null===(s=c.find((function(e){return e.isDefault})))||void 0===s?void 0:s.index)&&void 0!==u?u:0}},8575:function(e,n,r){r.r(n),r.d(n,{Component:function(){return De}});var t=r(62540),i=r(63696),o=r(93663),a=r(92779),l=r(25295),s=r(87404),u=r(13258),c=r(78057),d=r(75785),f=r(15815),v=r(69410),p=r(70140),h=r(87119),y=r(87214),x=r(76617),b=r(5824),m=r(9055),g=r(43361),A=r(75487),j=r(72073),w=r(5898),S=function(){var e=(0,s.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,m.ok)(),1)[0],r="/search"===e.pathname,i=(0,m.PI)(function(e){var n=e.get("parentId")||e.get("topParentId"),r=e.get("collectionType"),t={};return n&&(t.parentId=n),r&&(t.collectionType=r),t}(n)),o={pathname:"/search",search:i?"?".concat(i):void 0};return(0,t.jsx)(j.A,{title:w.Ay.translate("Search"),children:(0,t.jsx)(A.A,{size:"large","aria-label":w.Ay.translate("Search"),color:"inherit",component:m.N_,disabled:r,to:o,children:(0,t.jsx)(g.A,{})})})},D=r(65369),I=r(26749),P=r(36237),k=r(63703),O=r(3889),C=r(46550),T=r(68849),M=r(84917),N=r(42663),E=r(57323),F=r(66563),G=r(94200),R=r(91002),U=r(72648),X=r(53455),L=r(82225),_={Id:"favorites",Name:"Favorites"},B=function(e){var n=e.item;if(n.Id===_.Id)return(0,t.jsx)(P.A,{});switch(n.CollectionType){case D.X.Movies:return(0,t.jsx)(O.A,{});case D.X.Music:return(0,t.jsx)(C.A,{});case D.X.Homevideos:case D.X.Photos:return(0,t.jsx)(T.A,{});case D.X.Livetv:return(0,t.jsx)(M.A,{});case D.X.Tvshows:return(0,t.jsx)(N.A,{});case D.X.Trailers:return(0,t.jsx)(E.A,{});case D.X.Musicvideos:return(0,t.jsx)(F.A,{});case D.X.Books:return(0,t.jsx)(G.A,{});case D.X.Boxsets:return(0,t.jsx)(X.A,{});case D.X.Playlists:return(0,t.jsx)(R.A,{});case void 0:return(0,t.jsx)(U.A,{});default:return(0,t.jsx)(L.A,{})}},z=r(713),V=r(70267),H=r(37632),q=r(59721),K=r(44790),J=r(60434),W=r(48402),Y=r(85637),Q=function(){return Q=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Q.apply(this,arguments)},Z=function(e){var n=e.userViews,r=e.selectedId,i=e.onMenuClose,o=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["userViews","selectedId","onMenuClose"]);return(0,t.jsx)(W.A,Q({},o,{keepMounted:!0,onClose:i,children:n.map((function(e){return(0,t.jsxs)(Y.A,{component:m.N_,to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),onClick:i,selected:e.Id===r,children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(B,{item:e})}),(0,t.jsx)(J.A,{children:e.Name})]},e.Id)}))}))},$=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ee="user-view-overflow-menu",ne="/home",re="/list",te=function(){var e=(0,s.zy)(),n=$((0,m.ok)(),1)[0],r=n.get("topParentId")||n.get("parentId"),o=n.get("collectionType"),a=(0,H.A)().activeTab,u=(0,l.A)((function(e){return e.breakpoints.up("xl")})),c=(0,l.A)((function(e){return e.breakpoints.up("lg")})),d=(0,i.useMemo)((function(){return u?8:c?5:3}),[u,c]),f=(0,v.gf)().user,p=(0,q.D)(null==f?void 0:f.Id),h=p.data,y=p.isPending,x=(0,i.useMemo)((function(){var e;return null===(e=null==h?void 0:h.Items)||void 0===e?void 0:e.slice(0,d)}),[d,h]),b=(0,i.useMemo)((function(){var e;return null===(e=null==h?void 0:h.Items)||void 0===e?void 0:e.slice(d)}),[d,h]),g=$((0,i.useState)(null),2),A=g[0],j=g[1],S=Boolean(A),O=(0,i.useCallback)((function(e){j(e.currentTarget)}),[]),C=(0,i.useCallback)((function(){j(null)}),[]),T=(0,i.useMemo)((function(){return function(e,n,r,t,i){if((0,z.j)(n)||[ne,re].includes(n))return t===D.X.Livetv?null==e?void 0:e.find((function(e){return e.CollectionType===D.X.Livetv})):n===ne&&1===i?_:null==e?void 0:e.find((function(e){return e.Id===r}))}(null==h?void 0:h.Items,e.pathname,r,o,a)}),[a,o,r,e.pathname,h]);return y?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.A,{variant:"text",color:(null==T?void 0:T.Id)===_.Id?"primary":"inherit",startIcon:(0,t.jsx)(P.A,{}),component:m.N_,to:"/home?tab=1",children:w.Ay.translate(_.Name)}),null==x?void 0:x.map((function(e){return(0,t.jsx)(k.A,{variant:"text",color:e.Id===(null==T?void 0:T.Id)?"primary":"inherit",startIcon:(0,t.jsx)(B,{item:e}),component:m.N_,to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:e.Name},e.Id)})),b&&b.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.A,{variant:"text",color:"inherit",endIcon:(0,t.jsx)(I.A,{}),"aria-controls":ee,"aria-haspopup":"true",onClick:O,children:w.Ay.translate("ButtonMore")}),(0,t.jsx)(Z,{anchorEl:A,id:ee,open:S,onMenuClose:C,userViews:b,selectedId:null==T?void 0:T.Id})]})]})},ie=["/addserver","/selectserver","/login","/forgotpassword","/forgotpasswordpin"],oe=function(e){var n=e.isDrawerAvailable,r=e.isDrawerOpen,i=e.onDrawerButtonClick,o=(0,s.zy)();if("/video"===o.pathname)return null;var a=ie.includes(o.pathname);return(0,t.jsx)(h.A,{buttons:!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.A,{}),(0,t.jsx)(x.A,{}),(0,t.jsx)(S,{})]}),isDrawerAvailable:n,isDrawerOpen:r,onDrawerButtonClick:i,isUserMenuAvailable:!a,children:!n&&(0,t.jsxs)(p.A,{direction:"row",spacing:.5,children:[(0,t.jsx)(y.A,{}),!a&&(0,t.jsx)(te,{})]})})},ae=r(64174),le=r(24786),se=r(77285),ue=r(89970),ce=r(74156),de=r(44185),fe=r(28335),ve=r(35117),pe=r(79772),he=r(80099),ye=r(95858),xe=r(60182),be=r(42458),me=function(){var e=(0,v.gf)().user,n=(0,s.zy)(),r=(0,q.D)(null==e?void 0:e.Id).data,i=(null==r?void 0:r.Items)||[],o=(0,xe.IB)(),a="/home"===n.pathname&&(!n.search||"?tab=0"===n.search);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(fe.A,{sx:{paddingTop:0},children:[(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsx)(be.A,{})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home",selected:a,children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(ue.A,{})}),(0,t.jsx)(J.A,{primary:w.Ay.translate("Home")})]})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home?tab=1",children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(P.A,{})}),(0,t.jsx)(J.A,{primary:w.Ay.translate("Favorites")})]})})]}),!!o.menuLinks&&o.menuLinks.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ce.A,{}),(0,t.jsx)(fe.A,{children:o.menuLinks.map((function(e){var n;return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(pe.A,{component:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(de.A,{children:null!==(n=e.icon)&&void 0!==n?n:"link"})}),(0,t.jsx)(J.A,{primary:e.name})]})},"".concat(e.name,"_").concat(e.url))}))})]}),i.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ce.A,{}),(0,t.jsx)(fe.A,{"aria-labelledby":"libraries-subheader",subheader:(0,t.jsx)(he.A,{component:"div",id:"libraries-subheader",children:w.Ay.translate("HeaderLibraries")}),children:i.map((function(e){return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:V.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:[(0,t.jsx)(K.A,{children:(0,t.jsx)(B,{item:e})}),(0,t.jsx)(J.A,{primary:e.Name})]})},e.Id)}))})]})]})},ge=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ae=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))},je=["video"],we=Ae(Ae([],ge(le.ASYNC_USER_ROUTES),!1),ge(se.LEGACY_USER_ROUTES),!1).filter((function(e){return!je.includes(e.path)})),Se=function(e){var n=e.open,r=void 0!==n&&n,i=e.onClose,o=e.onOpen;return(0,t.jsx)(ae.A,{open:r,onClose:i,onOpen:o,children:(0,t.jsx)(me,{})})},De=function(){var e=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.useState)(!1),2),n=e[0],r=e[1],p=(0,v.gf)().user,h=(0,s.zy)(),y=(0,l.A)((function(e){return e.breakpoints.up("md")})),x=function(e){return we.some((function(n){return n.path===e||"/".concat(n.path)===e}))}(h.pathname)&&Boolean(p)&&!y,b=n&&x,m=(0,i.useCallback)((function(){r(!n)}),[n,r]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.A,{sx:{position:"relative",display:"flex",height:"100%"},children:[(0,t.jsxs)(i.StrictMode,{children:[(0,t.jsx)(d.A,{elevate:!1,children:(0,t.jsx)(o.A,{position:"fixed",sx:{width:"100%",ml:0},children:(0,t.jsx)(oe,{isDrawerAvailable:!y&&x,isDrawerOpen:b,onDrawerButtonClick:m})})}),x&&(0,t.jsx)(Se,{open:b,onClose:m,onOpen:m})]}),(0,t.jsx)(a.A,{component:"main",sx:{width:"100%",flexGrow:1},children:(0,t.jsx)(u.A,{children:(0,t.jsx)(s.sv,{})})})]}),(0,t.jsx)(f.A,{}),(0,t.jsx)(c.A,{})]})}},14229:function(e,n,r){r.d(n,{u:function(){return i}});var t=r(46850),i=[{path:"/livetv",views:[{index:0,label:"Programs",view:t.D.Programs,isDefault:!0},{index:1,label:"Guide",view:t.D.Guide},{index:2,label:"Channels",view:t.D.Channels},{index:3,label:"Recordings",view:t.D.Recordings},{index:4,label:"Schedule",view:t.D.Schedule},{index:5,label:"Series",view:t.D.SeriesTimers}]},{path:"/movies",views:[{index:0,label:"Movies",view:t.D.Movies,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"Favorites",view:t.D.Favorites},{index:3,label:"Collections",view:t.D.Collections},{index:4,label:"Genres",view:t.D.Genres}]},{path:"/music",views:[{index:0,label:"Albums",view:t.D.Albums,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"HeaderAlbumArtists",view:t.D.AlbumArtists},{index:3,label:"Artists",view:t.D.Artists},{index:4,label:"Playlists",view:t.D.Playlists},{index:5,label:"Songs",view:t.D.Songs},{index:6,label:"Genres",view:t.D.Genres}]},{path:"/tv",views:[{index:0,label:"Shows",view:t.D.Series,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"TabUpcoming",view:t.D.Upcoming},{index:3,label:"Genres",view:t.D.Genres},{index:4,label:"TabNetworks",view:t.D.Networks},{index:5,label:"Episodes",view:t.D.Episodes}]},{path:"/homevideos",views:[{index:0,label:"Photos",view:t.D.Photos,isDefault:!0},{index:1,label:"HeaderPhotoAlbums",view:t.D.PhotoAlbums,isDefault:!0},{index:2,label:"HeaderVideos",view:t.D.Videos}]}]},37632:function(e,n,r){var t=r(87404),i=r(9055),o=r(713);n.A=function(){var e=(0,t.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.ok)(),2),r=n[0],a=n[1],l=r.get("tab"),s="/livetv"===e.pathname?"livetv":r.get("topParentId");return{searchParams:r,setSearchParams:a,libraryId:s,activeTab:null!==l?parseInt(l,10):(0,o.p)(e.pathname,s)}}},42305:function(e,n,r){r.d(n,{L:function(){return s}});var t=r(8280),i=r(80401),o=r(48272),a=r(69410),l=function(e){return(0,t.j)({queryKey:["SystemInfo"],queryFn:function(n){var r=n.signal;return function(e,n){return r=void 0,t=void 0,a=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,o.c)(e).getSystemInfo(n)];case 1:return[2,r.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(n){var r;n.done?e(n.value):(r=n.value,r instanceof i?r:new i((function(e){e(r)}))).then(o,l)}s((a=a.apply(r,t||[])).next())}));var r,t,i,a}(e,{signal:r,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},s=function(){var e=(0,a.gf)().api;return(0,i.I)(l(e))}},42458:function(e,n,r){var t=r(62540),i=r(92779),o=r(44790),a=r(60434),l=(r(63696),r(42305)),s=r(95858),u=r(90830);n.A=function(){var e=(0,l.L)().data;return(0,t.jsxs)(s.A,{to:"/",children:[(0,t.jsx)(o.A,{sx:{minWidth:56},children:(0,t.jsx)(i.A,{component:"img",src:u,sx:{height:"2.5rem"}})}),(0,t.jsx)(a.A,{primary:(null==e?void 0:e.ServerName)||"Jellyfin",secondary:null==e?void 0:e.Version,slotProps:{primary:{variant:"h6"}}})]})}},46850:function(e,n,r){var t;r.d(n,{D:function(){return t}}),function(e){e.Albums="albums",e.AlbumArtists="albumartists",e.Artists="artists",e.Channels="channels",e.Collections="collections",e.Episodes="episodes",e.Favorites="favorites",e.Genres="genres",e.Guide="guide",e.Movies="movies",e.Networks="networks",e.Playlists="playlists",e.Programs="programs",e.Recordings="recordings",e.Schedule="schedule",e.Series="series",e.SeriesTimers="seriestimers",e.Songs="songs",e.Suggestions="suggestions",e.Upcoming="upcoming",e.PhotoAlbums="photoalbums",e.Photos="photos",e.Videos="videos",e.Books="books"}(t||(t={}))},59721:function(e,n,r){r.d(n,{D:function(){return u},q:function(){return s}});var t=r(41364),i=r(8280),o=r(80401),a=r(69410),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n,r){return(0,i.j)({queryKey:["User",n,"Views",r],queryFn:function(i){var o=i.signal;return function(e,n,r,i){return o=void 0,a=void 0,u=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,t.a)(e).getUserViews(l(l({},r),{userId:n}),i)];case 1:return[2,o.sent().data]}}))},new((s=void 0)||(s=Promise))((function(e,n){function r(e){try{i(u.next(e))}catch(e){n(e)}}function t(e){try{i(u.throw(e))}catch(e){n(e)}}function i(n){var i;n.done?e(n.value):(i=n.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,t)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u}(e,n,r,{signal:o})},staleTime:1e3,enabled:!!e&&!!n})},u=function(e,n){var r=(0,a.gf)().api;return(0,o.I)(s(r,e,n))}},64174:function(e,n,r){r.d(n,{d:function(){return u}});var t=r(62540),i=r(92779),o=r(19983),a=r(54710),l=r(25295),s=(r(63696),r(34789)),u=240;n.A=function(e){var n=e.children,r=e.open,c=void 0!==r&&r,d=e.onClose,f=e.onOpen;return(0,l.A)((function(e){return e.breakpoints.up("md")}))?(0,t.jsx)(o.Ay,{sx:{width:u,flexShrink:0,"& .MuiDrawer-paper":{width:u,paddingBottom:"4.2rem",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:n}):(0,t.jsx)(a.A,{anchor:"left",open:c,onClose:d,onOpen:f,disableDiscovery:s.A.iOS,ModalProps:{keepMounted:!0},children:(0,t.jsx)(i.A,{role:"presentation",onClick:d,onKeyDown:d,children:n})})}},75785:function(e,n,r){var t=r(21122),i=r(63696);n.A=function(e){var n=e.children,r=e.elevate,o=void 0!==r&&r,a=(0,t.A)({disableHysteresis:!0,threshold:0}),l=o||a;return i.cloneElement(n,{color:l?"default":"transparent",elevation:l?4:0})}},87214:function(e,n,r){var t=r(62540),i=r(90830),o=r(63703),a=(r(63696),r(9055)),l=r(42305);n.A=function(){var e=(0,l.L)(),n=e.data,r=e.isPending;return(0,t.jsx)(o.A,{variant:"text",size:"large",color:"inherit",startIcon:(0,t.jsx)("img",{src:i,alt:"","aria-hidden":!0,style:{maxHeight:"1.25em",maxWidth:"1.25em"}}),component:a.N_,to:"/",children:r?"":(null==n?void 0:n.ServerName)||"Jellyfin"})}},90830:function(e,n,r){e.exports=r.p+"icon-transparent.baba78f2a106d9baee83.png"},95858:function(e,n,r){var t=r(62540),i=r(79772),o=(r(63696),r(87404)),a=r(9055),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};n.A=function(e){var n=e.children,r=e.to,u=e.includePaths,c=void 0===u?[]:u,d=e.excludePaths,f=void 0===d?[]:d,v=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["children","to","includePaths","excludePaths"]),p=(0,o.zy)(),h=s((0,a.ok)(),1)[0],y=s(r.split("?"),2),x=y[0],b=y[1],m=new URLSearchParams("?".concat(b)),g=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))}([x],s(c),!1).includes(p.pathname)&&!f.includes(p.pathname+p.search)&&(!b||function(e,n){var r,t;try{for(var i=function(e){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&e[n],t=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(n.get(a[0])!==a[1])return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return!0}(m,h));return(0,t.jsx)(i.A,l({component:a.N_,to:r,selected:g},v,{children:n}))}}}]);