webpackJsonp([1],[,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(2215),r=i(a),o=n(1132),s=i(o);t.default=function(){var e="function"==typeof s.default&&r.default&&(0,r.default)("react.element")||60103;return function(t,n,i,a){var r=t&&t.defaultProps,o=arguments.length-3;if(n||0===o||(n={}),n&&r)for(var s in r)void 0===n[s]&&(n[s]=r[s]);else n||(n=r||{});if(1===o)n.children=a;else if(o>1){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+3]
;n.children=l}return{$$typeof:e,type:t,key:void 0===i?null:""+i,ref:null,props:n,_owner:null}}}()},function(e,t,n){"use strict";function i(){return a.a.t.apply(a.a,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(609)},,function(e,t,n){function i(){var e=a.initial(arguments).concat({escape:!0}),t=a.last(arguments).hash;return a.isObject(t)&&!a.isEmpty(t)&&e.splice(1,0,t),new r.SafeString(o.apply(o,e))}var a=n(10),r=n(15),o=n(3).default;e.exports=i},function(e,t,n){
"use strict";t.__esModule=!0;var i=n(420),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(351),a=function(e){
return e&&e.__esModule?e:{default:e}}(i);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(2348),r=i(a),o=n(2352),s=i(o),l=n(351),c=i(l);t.default=function(e,t){
if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},,,function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}
},,function(e,t,n){"use strict";function i(e){return!0}function a(e){return p.a.isObject(e)&&!Array.isArray(e)}function r(e,t){t||(t={});var n=p.a.defaults(t,{typeName:e,parse:p.a.bind(h.a.parseType,h.a,e),stringify:p.a.bind(h.a.stringifyType,h.a,e)});return n.validate=t.validate?o(t.validate):i,n.isRequired=u()({},n,{validate:function(e){return null!=e&&n.validate(e)},typeName:n.typeName+"<required>"}),n}function o(e){return function(t){return null==t||e(t)}}
var s=n(1918),l=n.n(s),c=n(6),u=n.n(c),d=n(10),p=n.n(d),h=n(74),f=["boolean","integer","float","string","object","array"],v={any:r("any"),boolean:r("boolean",{validate:p.a.isBoolean}),integer:r("integer",{validate:l.a}),float:r("float",{validate:p.a.isNumber}),string:r("string",{validate:p.a.isString}),object:r("object",{validate:a}),array:r("array",{validate:Array.isArray}),list:r("list",{validate:Array.isArray}),encodedString:r("encodedString",{validate:p.a.isString}),
queryString:r("queryString",{validate:a}),instanceOf:function(){var e=p.a.toArray(arguments);return r("instanceOf",{validate:function(t){return p.a.some(e,function(e){return t instanceof e})}})},oneOf:function(){var e=p.a.toArray(arguments);return r("oneOf",{validate:function(t){return p.a.contains(e,t)}})},oneOfType:function(){var e=p.a.toArray(arguments);return r("oneOfType",{validate:function(t){return p.a.some(e,function(e){return e.validate(t)})}})},custom:function(e){return r("custom",{
validate:e})},getAttrTypeFor:function(e){if(null==e)return v.any;for(var t=0,n=f.length;t<n;t++){var i=f[t],a=v[i];if(a.validate(e))return a}return v.any}};t.a=v},,function(e,t,n){"use strict";function i(e,t){if(!t)return e;var n={};return t.forEach(function(t){n[t]=function(){return e[t].apply(e,arguments)}}),n}function a(e,t,n){p[e]=i(t,n);var a=h[e];a&&(delete h[e],a.resolve(p[e]))}function r(e){for(var t in e){var n=e[t],i=void 0,r=void 0;Array.isArray(n)?(i=n[0],r=n[1]):i=n,a(t,i,r)}}
function o(e){return s(e)?u.a.Deferred().resolve(p[e]).promise():(h[e]||(h[e]=u.a.Deferred()),h[e].promise())}function s(e){return p.hasOwnProperty(e)}function l(e){return p[e]}t.b=r,t.d=o,t.a=s,t.c=l;var c=n(13),u=n.n(c),d=n(10),p=(n.n(d),n(37),{}),h={}},function(e,t,n){"use strict";var i=n(351),a=n.n(i),r=n(59),o=n.n(r),s=n(179),l=n.n(s),c=n(87),u=n(13),d=n.n(u),p=n(10),h=n.n(p),f=n(19),v=n(37),g=n(32),m=n(18),y=n(16),b=n(604),I=n(14),S=n(62),M=n(69),D=n(1141),C=(n(606),
n(74)),j=n(36),P=/^change:([\w]+)$/,O=c.c.Model.extend({mixins:[b.a],name:"AbstractModel",responseType:M.a.xml,hasInitialRelations:!1,_context:["parent","skipCache"],cache:null,cacheKey:function(e){return e[this.idAttribute]},constructor:function(e,t){e||(e={}),t||(t={});var n;if(this.initialize!==c.c.Model.prototype.initialize&&(n=this.initialize,this.initialize=function(){}),h.a.each(this.getContext(),function(e){var n=this.findOption(t,e);void 0!==n&&(this[e]=n)},this),
!this.cache||this.findOption(t,"skipCache"))return c.c.Model.prototype.constructor.apply(this,arguments),this._initModel(t),void(n&&(n.apply(this,arguments),this.initialize=n));var i=this.findOption(t,"onlyIfCached"),a=this.cache.getItemCacheKey(this,e),r=this.cache.get(a);if(!r&&this.entityID&&Object(y.a)("appModel")){var o=Object(y.c)("appModel");if(o.has("entities")){var s=o.get("entities").get(this.entityType),l=this.entityID(e),u=s.get(l);u&&(r=u.get("model"))}}
return r?(this.uninitialize(),i||(this.mergeStrategy&&(r.isMergingAttributes=!0),t.parse?e=r.parse(e):h.a.extend(e,r._getRelations(this.syncedRelations,e)),r.set(e),r.isMergingAttributes=!1),h.a.each(this.getContext(),function(e){r.setContext(e,this[e]||r[e])},this),t.collection&&(r.collection=t.collection),r.updateEntity(),r):i?{}:(c.c.Model.prototype.constructor.apply(this,arguments),this._initModel(t),n&&(n.apply(this,arguments),this.initialize=n),void this.cache.store(this,a))},
uninitialize:function(){this.stopListening()},_initModel:function(e){S.a.get("shouldCreateStateTree")&&this.entityID&&(this.state=this.toState()),this._initRelations(e),this._initDerived(e),this._initState()},_initRelations:function(e){this._relationListeners={};var t=h.a.extend({},this.sessionRelations,this.syncedRelations);h.a.each(t,function(e,t){this._initRelation(e,t);var n=h.a.bind(this._initRelation,this,e,t);this.on("change:"+t,n)},this),this.hasInitialRelations=!0,
this.set(this._getRelations(this.sessionRelations,this.attributes)),e.parse||this.set(this._getRelations(this.syncedRelations,this.attributes))},_initRelation:function(e,t){var n=this._resolveRelationDefinition(e),i=n.relationClass,a=this.get(t),r=this.previous(t),o=a&&a instanceof i;r&&r instanceof i&&h.a.has(this._relationListeners,t)&&(r.off("all",this._relationListeners[t]),this._relationListeners[t]=null),o&&this._forwardRelationEvents(a,t)},_initDerived:function(){
h.a.each(this.derivedAttrs,this._setDerived,this)},_initState:function(){S.a.get("shouldCreateStateTree")&&(this.state=this.toState(),this.updateState=this.updateState.bind(this),this.updateEntity(),this.on("all",this.onEvent,this))},findOption:function(e,t){return e[t]||e.collection&&e.collection[t]},getContext:function(){if(!this.context)return this._context;var e=h.a.result(this,"context");return this._context.concat(e)},setContext:function(e,t){
if(-1!==this.getContext().indexOf(e)&&this[e]!==t){if(this[e]=t,this.hasDerived(e)){var n=this.derivedAttrs[e],i=n.call(this);this.set(e,i)}if("parent"!==e){var a=h.a.extend({},this.sessionRelations,this.syncedRelations);h.a.each(a,function(n,i){var a=this.get(i);a&&a.setContext(e,t)},this)}}},getScopedKey:function(e){return null!=e&&h.a.isFunction(this.cacheKey)?this.cacheKey(this.attributes)+"!"+e:e},getState:function(){return this._computedEntityID||this.state},updateState:function(){
var e=this.state,t=this.getState();this.state=this.toState();var n=this.getState();return n!==t&&this.updateEntity(),this.trigger("statechange",this,n,t),{name:this.name,previousState:e,nextState:n}},updateEntity:function(){this._computedEntityID&&!this.skipCache&&(Object(v.a)(this.entityType,this.name+" requires an `entityType`"),f.a.trigger("change:entity",{type:this.entityType,id:this._computedEntityID,model:this}))},toState:function(){var e=(this.name,
o()(this.attributes)),t=h.a.reduce(e,this.reduceState,{},this);return this.entityID&&(this._computedEntityID=this.entityID(t)),t},reduceState:function(e,t){var n=this.attributes[t];return n&&n.getState?(e[t]=n.getState(),e):n&&n.initialize?e:(e[t]=n,e)},shouldUpdateRelationState:function(e,t,n){return t!==n},toJSON:function(){function e(e,n){var i=this.get(n);if(i){var a;a=t.excludeDefaults?i instanceof c.c.Collection?i.map(function(e){return Object(D.a)(h.a.result(e,"defaults"),e.toJSON(t))
}):Object(D.a)(h.a.result(i,"defaults"),i.toJSON(t)):i.toJSON(t),f[n]=a}}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(this.name,this.syncedAttrs),i=this.sessionRelations,a=this.syncedRelations,r=this.attributes,o={};for(var s in r){var l=i&&h.a.has(i,s),u=a&&h.a.has(a,s),p=t.syncedOnly&&(!n||!h.a.has(n,s));l||u||p||(o[s]=r[s])}var f=d.a.extend(!0,{},o);return t.excludeDefaults&&(f=Object(D.a)(h.a.result(this,"defaults"),f)),t.syncedOnly||h.a.each(i,e,this),
h.a.each(a,e,this),f},clone:function(){var e=h.a.extend(h.a.pick(this,this.getContext()),{skipCache:!0});return new this.constructor(this.toJSON(),e)||null},copy:function(e){Object(v.a)(e instanceof this.constructor,"Only a model of the same type may be copied");var t=e.toJSON();return h.a.extend(t,this._getRelations(this.sessionRelations,t,{parse:!0}),this._getRelations(this.syncedRelations,t,{parse:!0})),this.set(t)},restoreDefaults:function(e){var t={}
;return h.a.each(this.attributes,function(e,n){this.derivedAttrs&&h.a.has(this.derivedAttrs,n)||(t[n]=void 0)},this),h.a.extend(t,this._getRelations(this.sessionRelations,{},{reset:!0}),this._getRelations(this.syncedRelations,{},{reset:!0}),h.a.result(this,"defaults"),e),this.set(t)},set:function(e,t,n){var i;h.a.isObject(e)?(i=e,n=t):(i={})[e]=t,n||(n={});var a;return!this.isMergingAttributes&&n.merge&&this.mergeStrategy&&(a=!0,this.isMergingAttributes=!0),
this.isMergingAttributes&&(i=this._mergeAttributes(i)),c.c.Model.prototype.set.call(this,i,n),a&&(this.isMergingAttributes=!1),this},hasAttr:function(e){var t=this.sessionAttrs&&h.a.has(this.sessionAttrs,e),n=this.syncedAttrs&&h.a.has(this.syncedAttrs,e);return!(!t&&!n)},hasRelation:function(e){var t=this.sessionRelations&&h.a.has(this.sessionRelations,e),n=this.syncedRelations&&h.a.has(this.syncedRelations,e);return!(!t&&!n)},hasDerived:function(e){
return!(!this.derivedAttrs||!h.a.has(this.derivedAttrs,e))},validate:function(e,t){var n=h.a.extend({},this.sessionAttrs,this.syncedAttrs,this.sessionRelations,this.syncedRelations),i=this._validateTypes(e,n);return i&&Object(v.a)(!1,i),i},parse:function(e,t){if(t&&t.save&&!this.hasResponseOnSave)return this.attributes;this.name;return this.convert(e,t)},parseResponse:function(e){var t,n=e,i=h.a.result(this,"responseType");return h.a.isString(n)&&(t=!0,
h.a.isFunction(this.augmentResponseText)&&(n=this.augmentResponseText(n,i)),n=i.parse(n)),i===M.a.json&&n.MediaContainer&&(n=n.MediaContainer),h.a.isFunction(this.augmentResponse)&&(n=this.augmentResponse(n,i)),t&&this.rootPropertyName&&h.a.has(n,this.rootPropertyName)&&(n=n[this.rootPropertyName]),Array.isArray(n)&&(n=n[0]),n},convert:function(e,t){var n,i=this.parseResponse(e),a={};h.a.each(this.sessionAttrs,function(e,t){h.a.has(i,t)&&(a[t]=i[t])}),h.a.each(this.syncedAttrs,function(e,t){
if(h.a.has(i,t)){var r,o=e;o.typeName||(o=e.type,r=h.a.omit(e,"type")),a[t]=null==i[t]?i[t]:o.parse(i[t],r)}else this.has(t)&&(n||(n=h.a.result(this,"defaults")),a[t]=n&&h.a.has(n,t)?n[t]:void 0)},this);var r=h.a.extend({},t,{parse:!0});return h.a.extend(a,this._getRelations(this.syncedRelations,i,r)),a},save:function(e,t,n){var i;null==e||"object"===(void 0===e?"undefined":a()(e))?(i=e,n=t):(i={})[e]=t;var r=h.a.extend({save:!0},n),o=h.a.extend(this.getSaveParams(i),r.data)
;if(h.a.isEmpty(o))return r.success&&r.success(this),d.a.Deferred().resolve(this);r.data=o;var s=r.success;return r.success=function(e,t,n){e.cache&&e.cache.store(e),s&&s(e,t,n)},c.c.Model.prototype.save.call(this,i,r)},sync:function(e,t,n){var i=n?h.a.clone(n):{};if("create"===e||"update"===e){var a=i.data,r=i.url||h.a.result(this,"saveUrl")||h.a.result(this,"syncUrl")||h.a.result(this,"url");i.url=m.join(r,a),i.data=""}return c.c.Model.prototype.sync.call(this,e,t,i)},
getSaveParams:function(e){var t=this._getSaveAttrs(e);return h.a.reduce(t,function(e,t,n){var i=t.definition,a=t.value,r=n;if(!i)return e[r]=a,e;var o=i.relationClass;if(o){var s,l=o.prototype.model;i.rootPropertyName?s=i.rootPropertyName:a.rootPropertyName?s=a.rootPropertyName:l&&l.prototype&&(s=l.prototype.rootPropertyName),a=a.getSaveParams(),s&&(r=s)}else{var c,u;h.a.has(i,"type")?(c=i.type,u=h.a.omit(i,"type")):c=i,a=c.stringify(a,u)}return e[r]=a,e},{},this)},
startCapturingChangeEvents:function(){if(this.releaseCapturedChangeEvents)return void Object(v.a)(!1,this.name+" is already capturing events");var e=this.set,t=[],n=h.a.clone(this.attributes);this.set=function(n,i,r){var o,s=h.a.extend({},r,{silent:!0});return"object"===(void 0===n?"undefined":a()(n))?(o=n,r=i):(o={})[n]=i,h.a.each(o,function(n,i){this.get(i)!==n&&(t.push({key:i,value:n}),e.call(this,i,n,s))},this),h.a.each(this._derivedListeners,function(n){
var i=n.key,a=this.derivedAttrs[i],r=a.call(this);this.get(i)!==r&&(t.push({key:i,value:r}),e.call(this,i,r,s))},this),this},this.releaseCapturedChangeEvents=function(){this.set=e,this.releaseCapturedChangeEvents=null,this.discardCapturedChangeEvents=null,this._previousAttributes=n,this._changing=!0,h.a.each(t,function(e){this.trigger("change:"+e.key,this,e.value)},this),this._changing=!1,h.a.isEmpty(t)||this.trigger("change",this,{})},this.discardCapturedChangeEvents=function(){this.set=e,
this.releaseCapturedChangeEvents=null,this.discardCapturedChangeEvents=null,t.length=0}},spyOnGet:function(e){var t=[],n=this.get;return this.get=function(e){return t.push("change:"+e),this.hasRelation(e)&&t.push("change:"+e+".change"),n.apply(this,arguments)},e.call(this),this.get=n,t},_mergeAttributes:function(e){var t=this.mergeStrategy;return t?h.a.reduce(e,function(e,n,i){return e[i]=t(i,this.get(i),n),e},{},this):e},_resolveRelationDefinition:function(e){
return h.a.isFunction(e)?e.call(this):e},_getRelations:function(e,t,n){t||(t={}),n||(n={});var i={};return h.a.each(e,function(e,a){var r=this._resolveRelationDefinition(e),o=r.relationClass;Object(v.a)(o,this.name+" requires a `relationClass` for the "+a+" relation");var s=a;n.parse&&!h.a.has(t,a)&&h.a.has(r,"rootPropertyName")&&(s=r.rootPropertyName);var l=t[s];if(l instanceof o)return void(i[a]=l);if(!l&&r.deferred)return void(i[a]=void 0)
;var u=n.reset?null:this.get(a),d=u instanceof o,p=o.prototype instanceof c.c.Collection;if(p?l=C.a.parseArray(l):l||(l={}),d&&!p&&(n.parse&&(l=u.parse(l)),d=u.id===l[u.idAttribute||"id"]),d){u.isMergingAttributes=this.isMergingAttributes;var f=r.setOptions;h.a.isFunction(f)&&(f=f.call(this,n)),p?u.set(l,h.a.extend({parse:n.parse,remove:!this.isMergingAttributes},f)):u.set(l,h.a.extend({merge:!0},f)),u.isMergingAttributes=!1}else{var g={parse:n.parse};if(h.a.each(this.getContext(),function(e){
g[e]=this[e]},this),!p){var m=r.attrs;h.a.isFunction(m)&&(m=m.call(this,t)),l=h.a.extend({},l,m)}var y=r.options;h.a.isFunction(y)&&(y=y.call(this,t)),h.a.extend(g,{parent:this},y),u=new o(l,g)}i[a]=u},this),i},_forwardRelationEvents:function(e,t){function n(){var n=arguments[0];if("change"!==n){if("statechange"===n)return void(this.shouldUpdateRelationState.apply(this,h.a.rest(arguments,1))&&j.b(this.updateState,this));var a=h.a.toArray(arguments);a[0]="change:"+t+"."+n,
this.trigger.apply(this,a),h.a.contains(i,n)||(this.trigger("change:"+t+".change",this,e),this.trigger("change",this))}}var i=["sync","request","invalid","error","add","remove"];e.on("all",n,this),this._relationListeners[t]=n},_setDerived:function(e,t){var n,i=this.spyOnGet(function(){var i=this.set;this.set=function(){Object(v.a)(!1,this.name+" blocked `set` in the "+t+" attribute. Derived attributes are read-only.")},n=e.call(this),this.set=i});this.set(t,n),h.a.each(i,function(n){
this._addDerivedListener(t,n,e)},this)},_addDerivedListener:function(e,t,n){this._derivedListeners||(this._derivedListeners=[]);var i={key:e,name:t,callback:h.a.bind(this._setDerived,this,n,e)};h.a.findWhere(this._derivedListeners,{key:e,name:i.name})||(this._derivedListeners.push(i),this.on(i.name,i.callback))},_getSaveAttrs:function(e){var t;if(e)t=h.a.reduce(e,function(e,t,n){return e[n]={definition:this.syncedAttrs[n],value:t},e},{},this);else{
var n=h.a.extend({},this.syncedAttrs,this.syncedRelations);t=h.a.reduce(n,function(e,t,n){var i=this._resolveRelationDefinition(t),a=i.save;return h.a.isFunction(a)&&(a=a.call(this)),a&&(e[n]={definition:i,value:this.get(n)}),e},{},this)}return t},_validateTypes:function(e,t){var n=o()(e),i=h.a.reduce(n,function(n,i){if(this.hasDerived(i))return n
;if(!h.a.has(t,i))return n.push(this.name+" received an unknown attribute: "+i+". All attributes must be defined in `sessionAttrs`, `syncedAttrs`, `sessionRelations`, or `syncedRelations`."),n;var a,r=e[i],o=this._resolveRelationDefinition(t[i]),s=o.relationClass;a=s?this.hasInitialRelations?I.a.instanceOf(s):s.prototype instanceof c.c.Collection?I.a.oneOfType(I.a.array,I.a.object):I.a.object:o.type?o.type:o;var u=a.validate
;return u?u(r)||n.push(i+" of type "+a.typeName+" has an invalid value: "+l()(r)):n.push(i+" has an unknown type. Specify the type in the attribute definition or use attrTypes.any as a wildcard type."),n},[],this);if(i.length>0)return i.join("\n")},onEvent:function(e,t,n){if(!t)return void g.a.warn("Unable to handle",e);var i=e.match(P);if(i){var a=i[1];t.get(a)!==this.state[a]&&(n&&n.updateEntity&&n.updateEntity(),j.b(this.updateState,this))}}});t.a=O},function(e,t,n){"use strict"
;function i(e){return String(e).replace(/^\/|\/$/g,"")}function a(e){return e?g.a.first(/[^\/\\]+$/.exec(e))||e:""}function r(e,t){return f.a.stringify(e,p()({arrayFormat:"repeat"},t))}function o(e,t){return f.a.parse(e,t)}function s(e,t){var n=/^[\w:]*\/\//.test(e);m.href=!n&&y?"file://"+e:e;var i=g.a.pick(m,"hash","host","hostname","href","origin","pathname","port","protocol","search");return i.isAbsolute=n,i.search?i.params=o(i.search.substring(1)):i.params={},
i.origin||(i.origin=i.protocol+"//"+i.host),i}function l(e,t,n){g.a.isString(e)&&(e=[e]),e=e.filter(function(e){return e});var a=n&&n.recognizeHash,s=a?b:I,l=e.reduce(function(e,t){var n=i(t).match(s),a=n[1],r=n[2],o=n[3];return a&&(e.path=e.path?e.path+"/"+a:a),r&&(e.params=e.params?e.params+"&"+r:r),o&&(e.hash=o),e},{path:"",params:"",hash:""}),c=void 0;if(n&&n.parseParams)c=r(u()(o(l.params),g.a.isString(t)?o(t):t));else{var d=g.a.isString(t)?t:r(t);c=l.params+(l.params&&d?"&":"")+d}
return(e.length&&"/"===e[0].charAt(0)?"/":"")+l.path+(c?"?"+c:"")+l.hash}Object.defineProperty(t,"__esModule",{value:!0}),t.getLastSegment=a,t.stringifyParams=r,t.parseParams=o,t.parseUrl=s,t.join=l;var c=n(420),u=n.n(c),d=n(6),p=n.n(d),h=n(603),f=n.n(h),v=n(10),g=n.n(v),m=(n(37),document.createElement("a")),y=/^file:\/\/\/[A-Z]:\//.test(m.baseURI),b=/^([^\?#]*)(?:\?([^#]*))?(#.*)?/,I=/([^\?]*)\??(.*)()/},function(e,t,n){"use strict";var i=n(78),a=n(110),r=i.a.extend({mixins:a.a});t.a=new r
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(129),m=n.n(g),y=n(372),b=n(51),I=(n(52),n(28)),S=n(37),M=n(231),D=n(2370),C=n.n(D),j=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onTouchStart=function(e){a._isTouch=!0,a._preventFocus=a._shouldPreventFocus(),1===e.touches.length&&a._activate(!0),a.props.onTouchStart&&a.props.onTouchStart(e)},
a.onTouchMove=function(e){a._activate(!1),a.props.onTouchMove&&a.props.onTouchMove(e)},a.onTouchEnd=function(e){var t=a.props,n=t.to,i=t.target,r=t.isDisabled,o=t.onTouchEnd;a._isActive&&!r&&(!n||i&&"_self"!==i||(e.preventDefault(),window.location.href=n),a._press(e)),a._activate(!1),o&&o(e)},a.onTouchCancel=function(e){a._isTouch=!1,a._activate(!1),a.props.onTouchCancel&&a.props.onTouchCancel(e)},a.onMouseDown=function(e){a._isTouch||(a._preventFocus=a._shouldPreventFocus(),
0===e.button&&a._activate(!0),a.props.onMouseDown&&a.props.onMouseDown(e))},a.onMouseUp=function(e){if(!a._isTouch){var t=a.props,n=t.isDisabled,i=t.onMouseUp;a._isActive&&!n&&(a._press(e),a._preventOnClick=!0),a._activate(!1),i&&i(e)}},a.onMouseLeave=function(e){a._isTouch||(a._isActive&&a.setState({isActive:!1}),a.props.onMouseLeave&&a.props.onMouseLeave(e))},a.onClick=function(e){a._preventFocus=!1;var t=a.props.isDisabled
;a._preventOnClick||a._isTouch||a._isActive||!a._isFocused||t||a._press(e),a._preventOnClick=!1,a._isTouch=!1},a.onFocus=function(e){if(a._preventFocus)return void(a._preventFocus=!1);a._focus(!0),a.props.onFocus&&a.props.onFocus(e)},a.onBlur=function(e){a._focus(!1),a.props.onBlur&&a.props.onBlur(e)},Object(S.a)(!n.onClick,"Use `onPress` instead of `onClick` for reliable behavior on touch screens"),a._preventFocus=!1,a._preventOnClick=!1,a._isTouch=!1,a._isActive=!1,a._isFocused=!1,a.state={
isActive:!1,isFocused:!1},a}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype._activate=function(e){this._isActive=e,this.setState({isActive:e})},t.prototype._focus=function(e){this._isFocused=e,this.setState({isFocused:e})},t.prototype._shouldPreventFocus=function(){return!this.props.allowFocusOnPress&&!(m.a.findDOMNode(this)===document.activeElement)},t.prototype._press=function(e){var t=this.props.onPress;t&&t(e)},
t.prototype._isActiveRoute=function(){var e=window.location.hash,t=this.props.to,n=new RegExp("^"+Object(M.a)(t)+"\\b");return!(!e||!t)&&n.test(e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.to,i=e.kind,r=e.size,s=e.isSelected,l=e.isDisabled,c=e.component,u=(e.allowFocusOnPress,e.highlightActiveRoute),d=e.role,p=(e.onPress,
o()(e,["className","to","kind","size","isSelected","isDisabled","component","allowFocusOnPress","highlightActiveRoute","role","onPress"])),h=this.state,f=h.isActive,g=h.isFocused,m={},b=c;return n&&(b="a",m.href=n),m.role=d||(n?"link":"button"),m.className=(t||"")+" "+(C.a.link||"")+" "+(C.a[i]||"")+" "+(r&&C.a[r]||"")+" "+(s&&C.a.isSelected||"")+" "+(f&&y.a||"")+" "+(g&&y.f||"")+" "+(l&&y.b||"")+" "+(u&&this._isActiveRoute()&&C.a.isActiveRoute||""||""),
"button"!==b&&"input"!==b||(m.type=p.type||"button",m.disabled=l),v.a.createElement(b,a()({},p,m,{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave,onClick:this.onClick,onFocus:this.onFocus,onBlur:this.onBlur}))},t}(f.Component);j.defaultProps={component:"button",kind:b.DEFAULT,isSelected:!1,isDisabled:!1,allowFocusOnPress:!1,
highlightActiveRoute:!1},t.a=j},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metadataItemEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(108))},function(e,t,n){"use strict";var i=n(179),a=n.n(i),r=n(87),o=n(1136),s=n.n(o),l=n(10),c=n.n(l),u=n(37),d=n(32);n(1904),n(1905),n(1906);s.a.isNodeAttached=function(e){return r.c.$.contains(document.documentElement,e)}
;var p=c.a.clone(s.a.View.prototype),h=c.a.clone(s.a.CollectionView.prototype),f=c.a.clone(s.a.Region.prototype),v=c.a.clone(s.a.Region),g=c.a.clone(s.a.Layout.prototype),m={constructor:function(){this.wrapAfterRender(),p.constructor.apply(this,arguments),this.listenViewEvents()},listenViewEvents:function(){var e=this;this.stopListeningViewEvents();var t=c.a.result(this,"viewEvents");t&&(this._viewEventsListeners=c.a.mapObject(t,function(t){return c.a.isString(t)?e[t]:t}),
this.listenTo(this,this._viewEventsListeners))},stopListeningViewEvents:function(){this._viewEventsListeners&&(this.stopListening(this,this._viewEventsListeners),delete this._viewEventsListeners)},_setElement:function(){p._setElement.apply(this,arguments),this.el&&(this.el._viewInstance?this.el._viewInstance!==this&&d.a.warn('Multiple views registered for a single element with class="%s"',this.el.className):this.el._viewInstance=this)},_removeElement:function(){
this.el&&delete this.el._viewInstance,p._removeElement.apply(this,arguments)},bindAllWhenRendered:function(){Object(u.a)(arguments.length>0,"`bindAllWhenRendered` requires at least one function");var e=Array.isArray(arguments[0])?arguments[0]:arguments;c.a.each(e,function(e){try{this[e]=this.whenRendered(this[e])}catch(t){Object(u.a)(!1,"`bindAllWhenRendered` is unable to wrap "+a()(e))}},this)},whenRendered:function(e){
return Object(u.a)(c.a.isFunction(e),"`whenRendered` must be called with a single function"),c.a.bind(function(){if(!this.isClosed){var t=c.a.toArray(arguments),n=c.a.bind(function(){this.isRendered&&!this.isClosed&&e.apply(this,t)},this);if(this.isRendered)return void c.a.defer(n);this.listenToOnce(this,"render",function(){c.a.defer(n)})}},this)},wrapAfterRender:function(){void 0!==this.onlyAfterRender&&(Object(u.a)(Array.isArray(this.onlyAfterRender),"`onlyAfterRender` must be an array"),
this.bindAllWhenRendered.apply(this,this.onlyAfterRender))},bindUIElements:function(){p.bindUIElements.apply(this,arguments),this.bindToModel(),this.isRendered=!0},unbindUIElements:function(){p.unbindUIElements.apply(this,arguments),this.unbindFromModel()},_getImmediateChildren:function(){return[]},_getNestedViews:function(){var e=this._getImmediateChildren();return e.length?c.a.reduce(e,function(e,t){return t._getNestedViews?e.concat(t._getNestedViews()):e},e):e}},y={constructor:function(){
h.constructor.apply(this,arguments)},triggerRendered:function(){return this.isRendered=!0,h.triggerRendered.apply(this,arguments)},rebase:function(e){return this.stopListening(this.collection),this.collection=e,this._initialEvents(),c.a.isFunction(this._renderChildren)?this._renderChildren():this.render(),this},buildItemView:function(){var e=h.buildItemView.apply(this,arguments);return e._parentView=this,e},_getImmediateChildren:function(){return c.a.values(this.children._views)}},b={
constructor:function(){h.constructor.apply(this,arguments)}},I={append:function(e,t,n){var i=e.isClosed||c.a.isUndefined(e.$el),a=e!==this.currentView;return a&&this.close(),e.render(),(a||i)&&(t||(t=this.getEl(this.el)),n?t.prepend(e.el):t.append(e.el)),this.attachView(e),s.a.triggerMethod.call(this,"show",e),s.a.triggerMethod.call(e,"show"),this._updateParentView(e),this._triggerAttached(e,t),this},prepend:function(e,t){return this.append(e,t,!0)},show:function(e){f.show.apply(this,arguments),
this._updateParentView(e),this._triggerAttached(e,this.$el)},_triggerAttached:function(e,t){if(s.a.isNodeAttached(t.get(0))){var n=c.a.union([e],c.a.result(e,"_getNestedViews")||[]);c.a.each(n,function(e){e.triggerMethod&&e.triggerMethod("attached",this)},this)}},_updateParentView:function(e){e&&(e._parentView=this._parentView)}},S={buildRegion:function(e,t){var n=v.buildRegion.apply(this,arguments);return n._parentView=e._parentView,n}},M={_buildRegions:function(e){
var t=this,n=c.a.mapObject(e,function(e){return c.a.isString(e)?{_parentView:t,selector:e}:c.a.defaults(e,{_parentView:t})});return g._buildRegions.call(this,n)},_getImmediateChildren:function(){return c.a.chain(this.regionManager._regions).values().pluck("currentView").compact().value()}};c.a.extend(s.a.View.prototype,m),c.a.extend(s.a.ItemView.prototype,m),c.a.extend(s.a.CollectionView.prototype,m,y),c.a.extend(s.a.CompositeView.prototype,m,b),c.a.extend(s.a.Region.prototype,I),
c.a.extend(s.a.Region,S),c.a.extend(s.a.Layout.prototype,M),s.a.extend=r.c.Model.extend,s.a.Controller.extend=s.a.extend,s.a.Region.extend=s.a.extend,s.a.Application.extend=s.a.extend,s.a.Module.extend=s.a.extend,s.a.View.extend=s.a.extend,s.a.ItemView.extend=s.a.extend,s.a.CollectionView.extend=s.a.extend,s.a.CompositeView.extend=s.a.extend,s.a.Layout.extend=s.a.extend,t.a=s.a},,function(e,t,n){"use strict";var i=n(233);n.d(t,"a",function(){return i});var a=n(51);n.d(t,"b",function(){return a})
;var r=n(52);n.d(t,"e",function(){return r});var o=n(57);n.d(t,"d",function(){return o});var s=n(918);n.d(t,"f",function(){return s});var l=n(2836);n.d(t,"c",function(){return l})},function(e,t,n){"use strict";var i=n(179),a=(n.n(i),n(87)),r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=(n(37),n(18)),u=n(604),d=n(62),p=n(69),h=(n(606),n(36)),f=a.c.Collection.extend({mixins:[u.a],responseType:p.a.xml,instanceOptions:["url","path","pageStart","pageSize","persistInCache","skipCache"],_context:["parent"],
cache:null,cacheKey:function(){return l.a.result(this,"url")},constructor:function(e,t){t||(t={}),l.a.each(this.getContext(),function(e){var n=t[e];void 0!==n&&this.setContext(e,n)},this);var n=l.a.result(this,"instanceOptions");if(l.a.each(n,function(e){l.a.has(t,e)&&(this[e]=t[e])},this),null==this.pageStart&&null==this.pageSize||(this.pageStart||(this.pageStart=0),this.pageSize||(this.pageSize=0)),t.populated&&this.resetPopulatePromise(o.a.Deferred().resolve().promise()),
!this.cache||this.skipCache)return a.c.Collection.prototype.constructor.apply(this,arguments),void this._initState();this.initialize.apply(this,arguments);var i=this.cache.getItemCacheKey(this),r=this.cache.get(i);return this.uninitialize(),r||(t.onlyIfCached?{}:(a.c.Collection.prototype.constructor.apply(this,arguments),this._initState(),void this.cache.store(this,i)))},uninitialize:function(){this.stopListening()},_initState:function(){
d.a.get("shouldCreateStateTree")&&(this.state=this.toState(),this.updateState=this.updateState.bind(this),this.on("reset update sort",this.onCollectionChange,this),this.on("statechange",this.onStateChange,this))},getContext:function(){if(!this.context)return this._context;var e=l.a.result(this,"context");return this._context.concat(e)},setContext:function(e,t){-1!==this.getContext().indexOf(e)&&this[e]!==t&&(this[e]=t,this.each(function(n){n.setContext(e,t)}))},getState:function(){
return this.state},updateState:function(){var e=this.state,t=this.getState();this.state=this.toState();var n=this.getState();return this.trigger("statechange",this,n,t),{name:this.name,previousState:e,nextState:n}},toState:function(){this.name;return this.reduce(this.reduceState,[])},reduceState:function(e,t){var n=t.getState();return n&&e.push(n),e},shouldUpdateModelState:function(e,t,n){return t!==n},sync:function(){return this.cache&&this.cache.store(this),a.c.sync.apply(this,arguments)},
syncUrl:function(){var e="";if(this.url&&(e=l.a.result(this,"url")),this.path&&(e=c.join([e,l.a.result(this,"path")])),null!=this.pageStart||null!=this.pageSize){var t={"X-Plex-Container-Start":this.pageStart||0,"X-Plex-Container-Size":this.pageSize||0};e=c.join(e,t)}return e},parse:function(e,t){this.name;return this.convert(e)},convert:function(e){var t=e;if(l.a.isString(t)){var n=l.a.result(this,"responseType");l.a.isFunction(this.augmentResponseText)&&(t=this.augmentResponseText(t,n)),
t=n.parse(t),n===p.a.json&&t.MediaContainer&&(t=t.MediaContainer)}if(l.a.isFunction(this.augmentResponse)&&(t=this.augmentResponse(t)),Array.isArray(t))return t;var i=this.model.prototype.rootPropertyName;if(!i)return t;var a=t[i];return a?(Array.isArray(a)||(a=[a]),a):[]},clone:function(e){e||(e=this.models);var t=l.a.result(this,"instanceOptions"),n=l.a.extend(l.a.pick(this,t),l.a.pick(this,this.getContext()),{skipCache:!0,persistInCache:!1});return new this.constructor(e,n)||null},
cloneDeep:function(e){e||(e=this.models);var t=l.a.map(e,function(e){return e.clone()});return this.clone(t)},clear:function(e){e=l.a.extend({silent:!0},e),this.abortPendingPopulate(),this.resetPopulatePromise(null),this.reset([],e)},getSaveParams:function(){return this.map(function(e){return e.getSaveParams()})},onCollectionChange:function(){h.b(this.updateState,this)},onStateChange:function(e,t,n){e!==this&&this.shouldUpdateModelState(e,t,n)&&h.b(this.updateState,this)}});t.a=f
},function(e,t,n){"use strict";function i(e){var t=e["aria-label"],n=e.className,i=e.name,a=e.style;return r()("i",{className:n?i+" "+n:i,"aria-hidden":!t,"aria-label":t,style:a})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){var t=P.get(e);if(t&&t.child)return P.get(t.child)}function a(e){var t=P.get(e);if(t){var n=t.child;return null==n?t:a(n)}}function r(e){var t=P.get(e);if(t){var n=t.parent;return null==n?t:r(n)}}function o(e,t){if(!t){
var n=r(e);return n?o(n.id,[]):[]}var a=P.get(e),s=i(e),l=[].concat(t,[a]);return s?o(s.id,l):l}function s(e){return!!i(e)}function l(e){var t=P.get(e);return!!t&&t.mediaType===d.b}n.d(t,"f",function(){return p}),n.d(t,"k",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"e",function(){return v}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return m}),n.d(t,"l",function(){return y}),n.d(t,"c",function(){return b}),n.d(t,"g",function(){return I}),n.d(t,"h",function(){return S
}),n.d(t,"i",function(){return M}),n.d(t,"d",function(){return D}),n.d(t,"m",function(){return C}),n.d(t,"n",function(){return O}),n.d(t,"r",function(){return T}),n.d(t,"o",function(){return E}),t.p=i,t.q=a,t.t=r,t.s=o,t.v=s,t.u=l;var c=n(3),u=n(230),d=n(63),p="movie",h="show",f="season",v="episode",g="artist",m="album",y="track",b="clip",I="photo",S="photoalbum",M="playlist",D="collection",C="userPlaylistItem",j=["id","typeString"],P=Object(u.a)(j,[{id:1,typeString:p,title:function(){
return Object(c.default)("Movie")},plural:function(){return Object(c.default)("Movies")},mediaType:d.d},{id:2,typeString:h,title:function(){return Object(c.default)("Show")},plural:function(){return Object(c.default)("Shows")},mediaType:d.b,child:f},{id:3,typeString:f,title:function(){return Object(c.default)("Season")},plural:function(){return Object(c.default)("Seasons")},mediaType:d.b,parent:h,child:v},{id:4,typeString:v,title:function(){return Object(c.default)("Episode")},plural:function(){
return Object(c.default)("Episodes")},mediaType:d.d,parent:f},{id:5,typeString:"trailer",title:function(){return Object(c.default)("Trailer")},plural:function(){return Object(c.default)("Trailers")},mediaType:d.d},{id:6,typeString:"comic",title:function(){return Object(c.default)("Comic")},plural:function(){return Object(c.default)("Comics")},mediaType:d.c},{id:7,typeString:"person",title:function(){return Object(c.default)("Person")},plural:function(){return Object(c.default)("People")},
mediaType:d.b},{id:8,typeString:g,title:function(){return Object(c.default)("Artist")},plural:function(){return Object(c.default)("Artists")},mediaType:d.b,child:m},{id:9,typeString:m,title:function(){return Object(c.default)("Album")},plural:function(){return Object(c.default)("Albums")},mediaType:d.b,parent:g,child:y},{id:10,typeString:y,title:function(){return Object(c.default)("Track")},plural:function(){return Object(c.default)("Tracks")},mediaType:d.a,parent:m},{id:11,typeString:"picture",
title:function(){return Object(c.default)("Picture")},plural:function(){return Object(c.default)("Pictures")},mediaType:d.c},{id:12,typeString:b,title:function(){return Object(c.default)("Clip")},plural:function(){return Object(c.default)("Clips")},mediaType:d.d},{id:13,typeString:I,title:function(){return Object(c.default)("Photo")},plural:function(){return Object(c.default)("Photos")},mediaType:d.c,parent:S},{id:14,typeString:S,title:function(){return Object(c.default)("Photo Album")},
plural:function(){return Object(c.default)("Photo Albums")},mediaType:d.b,child:I},{id:15,typeString:M,title:function(){return Object(c.default)("Playlist")},plural:function(){return Object(c.default)("Playlists")},mediaType:d.b,parent:S},{id:16,typeString:"playlistFolder",title:function(){return Object(c.default)("Playlist")},plural:function(){return Object(c.default)("Playlists")},mediaType:d.b,child:M},{id:18,typeString:D,title:function(){return Object(c.default)("Collection")},
plural:function(){return Object(c.default)("Collections")},mediaType:d.b},{id:1001,typeString:C,title:function(){return Object(c.default)("Clip")},plural:function(){return Object(c.default)("Clips")},mediaType:d.d}]),O=P.contains,T=P.get,E=P.getAll},function(e,t,n){"use strict";function i(e,t,n,i,o){var s=!1,l=o||a.a,c=l(e.props,t);return c?(c=l(e.state,n),c&&i?(c=l(e.context,i))||s&&r(e,"context",i):s&&r(e,"state",n)):s&&r(e,"props",t),!c}t.a=i;var a=n(251),r=!1},function(e,t,n){
function i(e,t){var n=r.partials[e],i=a.extend({},t.hash.context||this,t.hash);return new r.SafeString(n(i))}var a=n(10),r=n(15);e.exports=i},function(e,t,n){"use strict";n.d(t,"D",function(){return i}),n.d(t,"x",function(){return a}),n.d(t,"F",function(){return r}),n.d(t,"S",function(){return o}),n.d(t,"O",function(){return s}),n.d(t,"W",function(){return l}),n.d(t,"U",function(){return c}),n.d(t,"J",function(){return u}),n.d(t,"M",function(){return d}),n.d(t,"a",function(){return p}),
n.d(t,"Q",function(){return h}),n.d(t,"R",function(){return f}),n.d(t,"v",function(){return v}),n.d(t,"_2",function(){return g}),n.d(t,"_3",function(){return m}),n.d(t,"_0",function(){return y}),n.d(t,"y",function(){return b}),n.d(t,"_8",function(){return I}),n.d(t,"K",function(){return S}),n.d(t,"L",function(){return M}),n.d(t,"_4",function(){return D}),n.d(t,"w",function(){return C}),n.d(t,"_7",function(){return j}),n.d(t,"X",function(){return P}),n.d(t,"_5",function(){return O}),
n.d(t,"E",function(){return T}),n.d(t,"Y",function(){return E}),n.d(t,"_1",function(){return w}),n.d(t,"Z",function(){return A}),n.d(t,"B",function(){return x}),n.d(t,"C",function(){return N}),n.d(t,"A",function(){return L}),n.d(t,"z",function(){return k}),n.d(t,"_6",function(){return R}),n.d(t,"I",function(){return z}),n.d(t,"b",function(){return U}),n.d(t,"c",function(){return B}),n.d(t,"o",function(){return F}),n.d(t,"n",function(){return _}),n.d(t,"g",function(){return V}),
n.d(t,"p",function(){return H}),n.d(t,"e",function(){return Q}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return G}),n.d(t,"d",function(){return W}),n.d(t,"l",function(){return K}),n.d(t,"k",function(){return Z}),n.d(t,"h",function(){return q}),n.d(t,"t",function(){return J}),n.d(t,"u",function(){return X}),n.d(t,"s",function(){return $}),n.d(t,"f",function(){return ee}),n.d(t,"q",function(){return te}),n.d(t,"r",function(){return ne}),n.d(t,"m",function(){return ie}),
n.d(t,"P",function(){return ae}),n.d(t,"V",function(){return re}),n.d(t,"N",function(){return oe}),n.d(t,"H",function(){return se}),n.d(t,"G",function(){return le}),n.d(t,"T",function(){return ce})
;var i="home",a="discover",r="library",o="preplay",s="playlists",l="searchResults",c="quickSearchResults",u="metadataList",d="player",p="account",h="plexpass",f="plexpassLite",v="cpms",g="signIn",m="signOut",y="setupWizard",b="downloads",I="unclaimedServer",S="metadataSettings",M="nowPlaying",D="status",C="devices",j="subtitles",P="serverDashboard",O="stopServerSession",T="homeUsers",E="settings",w="sharing",A="settingsSidebar",x="dvrSettings",N="dvrSetup",L="dvrManageChannels",k="dvrDeviceSettings",R="subscriptions",z="manageSubscription",U="airingDetails",B="channelsGrid",F="confirmMarkAsWatched",_="confirmMarkAsUnwatched",V="confirmDelete",H="confirmOptimizeDatabase",Q="confirmCleanBundles",Y="confirmEmptyTrash",G="confirmDeleteServer",W="confirmAnalyzeLibrary",K="confirmForceRefreshLibrary",Z="confirmEmptyTrashLibrary",q="confirmDeleteLibrary",J="confirmRemoveWebhook",X="confirmUnlinkOauthProvider",$="confirmRemoveDVR",ee="confirmClosePlayer",te="confirmPlayback",ne="confirmRemoteToLocalPlayback",ie="confirmLocalToRemotePlayback",ae="playVersion",re="resumePlayback",oe="playerError",se="liveTVPlayerConflict",le="liveTVJoinSession",ce="settings"
},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({},e,{loadingLabel:Object(c.default)("Loading")}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(375),c=n(3);i.defaultProps=l.a.defaultProps,t.a=i},function(e,t,n){"use strict";var i=n(179),a=n.n(i),r=n(1125),o=n.n(r),s=n(1878),l=n.n(s),c=n(59),u=n.n(c),d=n(19),p={accessToken:1,address:1,auth_token:1,authToken:1,Authorization:1,clientIdentifier:1,email:1,host:1,myPlexAccessToken:1,password:1,uri:1,"X-Plex-Token":1
},h=new RegExp("("+u()(p).join("|")+")(\\s?=\\s?)(['\"]?)[^'\"\n]+(['\"]?)","g"),f=/%[sdifo]/g,v=/(error|exception)\]$/i,g={"%s":function(e){return e},"%d":function(e){return l()(e,10)},"%f":function(e){return o()(e)},"%o":function(e){return e}},m=function(e,t,n){return function(){var i,a=void 0,r=arguments.length;if(t=void 0===t?y.LEVEL_LOG:t,!(y.level<t)){if(0===r&&n)i=n;else if(1===r)i=y.serialize(arguments[0]);else if(r>1){for(var o=Array(r),s=-1;++s<r;)o[s]=y.serialize(arguments[s])
;o[0]=o[0].replace(f,function(e,t){var n=e;return o.length>1&&(n=g[e](o[1]),o.splice(1,1)),n}),i=o.join(" ")}return!i||a&&!a.test(i)||d.a.trigger(e,{type:e,level:t,message:i}),i}}},y=m("log:message");y.LEVEL_NONE=-1,y.LEVEL_ERROR=0,y.LEVEL_WARN=1,y.LEVEL_INFO=2,y.LEVEL_DEBUG=3,y.LEVEL_LOG=4,y.LEVEL_GROUP=y.LEVEL_INFO,y.LEVEL_GROUP_END=y.LEVEL_INFO,y.level=y.LEVEL_LOG,y.redacts=!0,y.setLevel=function(e){y.level=Math.max(y.LEVEL_NONE,Math.min(e,y.LEVEL_LOG))},
y.debug=m("log:message",y.LEVEL_DEBUG),y.info=m("log:message",y.LEVEL_INFO),y.warn=m("log:message",y.LEVEL_WARN),y.error=m("log:message",y.LEVEL_ERROR),y.group=m("log:group",y.LEVEL_GROUP,"Group"),y.groupCollapsed=m("log:groupCollapsed",y.LEVEL_GROUP,"Group"),y.groupEnd=function(){y.level<y.LEVEL_GROUP_END||d.a.trigger("log:groupEnd",{type:"log:groupEnd",level:y.LEVEL_GROUP_END})},y.serialize=function(e){var t=void 0
;switch(t=void 0===e?"[object Undefined]":null===e?"[object Null]":Object.prototype.toString.call(e)){case"[object String]":return y.redacts?e.replace(h,"$1$2$3REDACTED$4"):e;case"[object Object]":case"[object Array]":try{var n=y.redacts?y._jsonReplacer:null;return a()(e,n,2)}catch(e){return"Unable to serialize value"}case"[object Boolean]":case"[object Number]":case"[object Function]":case"[object RegExp]":return e.toString();case"[object Date]":return e.toUTCString();case"[object Undefined]":
return"undefined";case"[object Null]":return"null";default:if(v.test(t)){var i=y._getMaxStackLength(),r=e.stacktrace||e.stack;return r&&r.length>i&&(r=r.substr(0,i-3)+"..."),y.serialize({type:t,stack:r,name:e.name,message:e.message})}return e.toString()}},y._jsonReplacer=function(e,t){return p[e]?"REDACTED":"[object String]"===Object.prototype.toString.call(t)?y.serialize(t):t},y._getMaxStackLength=function(){return 1e3},t.a=y},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),
n.d(t,"a",function(){return o}),n.d(t,"i",function(){return s}),n.d(t,"g",function(){return l}),n.d(t,"l",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"f",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return f}),n.d(t,"k",function(){return v}),n.d(t,"e",function(){return g})
;var i=n(1),a=n.n(i),r="library",o="continueWatching",s="prePlay",l="playlist",c="search",u="quickSearch",d="player",p="playQueue",h="lineTVTimeline",f="newscast",v="recommended",g="nowPlaying";a.a.oneOf(["discover",r,"metadataList","timeline",o,s,"postPlayPrevious","postPlayNext",l,c,u,d,p,h,f,v,g])},function(e,t){function n(e,t,n){return e===t?n.fn(this):n.inverse(this)}e.exports=n},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.serverEntityID
},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(173))},function(e,t,n){"use strict";function i(){g&&(g=clearTimeout(g))}function a(){m&&(m=clearTimeout(m))}function r(){var e=y;if(y=null,a(),e){e()}}function o(){i(),a();var e=window.performance.now(),t=void 0;for(h=!0;d.length&&(!t||t-e<f);)d.pop()(),t=window.performance.now();h=!1,d.length?(u.a.warn("[State] Unable to process all updates within budget; %s update(s) remaining",d.length),g=setTimeout(o,v)):y&&(m=setTimeout(r,v))}
function s(e){for(i(),a(),h=!0,p=!0;d.length;)d.pop()();if(e)try{e()}catch(e){Object(c.a)(!1,e.name+": "+e.message)}y&&r(),h=!1,p=!1}function l(e,t){return t.isStateTreeRoot?(y=e,void(h||m||(m=setTimeout(r,v)))):p?void e():(a(),d[0]!==e&&d.unshift(e),void(h||g||(g=setTimeout(o,v))))}t.a=s,t.b=l;var c=n(37),u=n(32),d=[],p=!1,h=!1,f=1e3/60,v=1e3/60,g=void 0,m=void 0,y=void 0},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e)return!0;if(a.a.error(t),n)throw new Error(t);return!1}var a=n(32),r="`assert` requires an error message argument";t.a=i},function(e,t,n){"use strict";function i(e,t){if(t){var n=[];n.push(e);for(var i=arguments.length,a=Array(i>2?i-2:0),r=2;r<i;r++)a[r-2]=arguments[r];for(var o=0,s=a.length;o<s;o++){var l=a[o];l&&n.push(l)}return n.push(t),n.join("--")}}t.a=i
},function(e,t,n){"use strict";function i(e){return e?{entityID:e.entityID,id:e.id,parentID:e.parentID,identifier:e.identifier,metricsIdentifier:e.metricsIdentifier,isLibraryProvider:e.isLibraryProvider,isPopulated:!!e.isPopulated,epgSource:e.epgSource,title:e.title,protocols:e.protocols.reduce(function(e,t){return e[t]=!0,e},{}),features:e.features.reduce(function(e,t){var n=t;if(t.type===l.b.ACTIONS){var i={type:l.b.ACTIONS};i=t.actions.reduce(function(e,t){return e[t.id]=t,e},i),n=i}
return e[t.type]=n,e},{})}:null}function a(){return Object(s.createSelector)(function(e,t){return e.entities.providers[t]},i)}function r(e,t){var n=t.providerEntityID,i=u[n];return i||(i=Object(c.a)(a(),function(e){return e}),u[n]=i),i(e,n)}function o(e,t){var n=t.metadataItemEntityID,i=e.entities.metadataItems[n],a=i&&i.providerEntityID;if(a)return r(e,{providerEntityID:a})}t.b=i,t.a=r,t.c=o;var s=n(4),l=(n.n(s),n(64)),c=n(323),u={}},function(e,t,n){"use strict";function i(e,t){
var n="function"==typeof t;return function(){var i=n?t.apply(void 0,arguments):arguments[0];return{type:e,payload:i}}}n(37);t.a=i},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return o}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"l",function(){return u}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p}),
n.d(t,"b",function(){return h}),n.d(t,"c",function(){return f});var i="com.plexapp.plugins.library",a="tv.plex.providers.channel",r="tv.plex.provider.news",o="tv.plex.provider.news-stage",s="tv.plex.provider.podcasts",l="tv.plex.provider.podcasts-stage",c="tv.plex.provider.webshows",u="tv.plex.provider.webshows-stage",d="tv.plex.provider.music",p="tv.plex.provider.music-stage",h="tv.plex.providers.epg",f=/(tv\.plex\.providers\.epg)\./},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children,i=e.kind,a=e.size,o=s()(e,["className","children","kind","size"]);return u.a.createElement(h.a,r()({className:(t||"")+" "+(v.a.button||"")+" "+(v.a[i]||"")+" "+(v.a[a]||"")},o),n)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(51),p=n(52),h=n(20),f=n(2855),v=n.n(f);i.defaultProps={kind:d.DEFAULT,size:p.MEDIUM},t.a=i},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(37),o=n(32),s={_map:{},register:function(e,t){
Object(r.a)(a.a.isFunction(t),'The "'+e+'" command must be a function'),this._map[e]=t},registerAll:function(e){var t=this;a.a.each(e,function(e,n){"__esModule"!==n&&t.register(n,e)})},hasRegistered:function(e){return this._map.hasOwnProperty(e)},reset:function(){this._map={}},execute:function(e){var t=this._map[e];if(Object(r.a)(t,'The "'+e+'" command has not been registered'),t){Object(o.a)("[Commands] Executing",e);for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a]
;return t.apply(void 0,i)}}};t.a=s},,function(e,t,n){"use strict";n.d(t,"m",function(){return i}),n.d(t,"k",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"o",function(){return s}),n.d(t,"l",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"n",function(){return h}),n.d(t,"p",function(){return f}),n.d(t,"e",function(){return v}),
n.d(t,"d",function(){return g}),n.d(t,"j",function(){return m}),n.d(t,"i",function(){return y});var i="servers",a="providers",r="libraries",o="hubs",s="users",l="resources",c="friends",u="metadataLists",d="metadataDirectories",p="metadataItems",h="sessions",f="userPlaylistItems",v="mediaSubscriptions",g="liveTVSessions",m="playQueueItems",y="playlistItems"},function(e,t,n){var i=n(432),a=n(1250);e.exports=i({},a,{signInFormSectionWidth:"320px",sliderTrackSize:"60px",sliderThumbSize:"12px",
serverMenuItemHeight:"60px",sourceMenuItemHeight:"65px",sourceMenuItemGutter:"25px",posterCenterCircleSize:"42px",posterBadgeHeight:"24px",posterHoverSlideDistance:"10px",posterIconPadding:"20px",listButtonHeight:"40px",hubCellHeaderBottomPadding:"5px",hubCellHeaderTopPadding:"25px",pagePadding:"60px",typeFirstPageHeaderHeight:"80px",recordingPriorityPaneWidth:"360px",recordingPriorityPaneBorderWidth:"4px",recordingPriorityDragHandleWidth:"62px",channelGridRowHeight:"60px",
channelGridTitleColumnWidth:"130px",channelGridChannelColumnWidth:"250px",channelGridChannelOverflowWidth:"100px",channelGridChannelIconWidth:"80px",jumpBarCharacterHeight:"25px",jumpBarGutter:"30px",playCellWidth:"42px",actionsCellWidth:"122px",summaryCellHeight:"136px",simpleSummaryCellHeight:"90px",summaryCellPadding:"20px",mosaicCellPadding:"5px",timelineGutter:"60px",prePlaySummaryMaxWidth:"750px",prePlayPosterMinWidth:"150px",prePlayPosterMaxWidth:"230px",prePlayPosterWidthRatio:"0.15",
prePlayContentPadding:"20px",prePlayRatingBase:"1em",postPlayPosterWidth:"260px",postPlayTitleHeight:"40px",postPlayAutoPlayHeight:"55px",filterBuilderFooterHeight:"46px",dvrSetupImageWidth:"193px",playerControlsHeight:"100px",playerControlsMinWidth:"640px",playerControlsNarrowHeight:"140px",playerControlsNarrowBreakpoint:"960px",playerControlsPosterHeight:"80px",playerControlsPosterLeftGutter:"8px",playerControlsPosterBottomGutter:"8px",playerControlsNarrowPosterBottomGutter:"48px",
playerControlsContentSpacing:"20px",playerControlsSquarePosterWidth:"80px",playerControlsLandscapePosterWidth:Math.round(16/9*80)+"px",playerInfoBarHeight:"45px",playerTopControlsHeight:"60px",playerSideControlsWidth:"100px",playerIconButtonSize:"30px",playerIconButtonSpacing:"5px",playerVolumeSliderWidth:"32px",playerVolumeSliderHeight:"60px",seekBarHeight:"4px",seekBarTooltipMarginBottom:"4px",seekBarTooltipHeight:"23px",seekBarTooltipSmallWidth:"60px",seekBarTooltipLargeWidth:"90px",
playQueueItemHeight:"68px",playQueueMoveButtonWidth:"54px",playQueueSidePadding:"60px",lyricsLineHeight:"30px",lyricsLineWidth:"640px",playlistItemCardWidth:"64px",playlistBadgeSize:"30px",navigationIconSize:"20px",typeSidebarWidth:"60px",typeSidebarExpandedWidth:"260px",typeSidebarLeftGutter:"20px",typeSidebarItemHeight:"41px",homeServerListItemHeight:"40px",serverSelectMenuWidth:"260px",heroBadgeHeight:"90px",heroPageMinHeight:"600px"})},function(e,t,n){"use strict";function i(){
return"id-"+a++}t.a=i;var a=0},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(22),o=n(0),s=(n.n(o),n(129)),l=n.n(s),c=n(11),u=n(16),d=r.a.Layout.extend({template:function(){return""},mountReact:function(){var e=Object(u.c)("appStore");l.a.render(a()(c.Provider,{store:e},void 0,this.component(this.options)),this.el)},unmountReact:function(){this.isRendered&&l.a.unmountComponentAtNode(this.el)},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},
onClose:function(){this.unmountReact()}});t.a=d},,function(e,t,n){"use strict";function i(e){var t="",n="";e?(t=e.userAgent,n=e.platform):null!=window.navigator&&(t=window.navigator.userAgent,n=window.navigator.platform),this.detect({userAgent:t,platform:n})}var a=/version\/(\d+(\.\d+)?)/i,r=/(?:chrome|crios|gfibertv)[\/-](\d+(\.\d+)?)/i,o=/firefox[ \/](\d+(\.\d+)?)/i,s=/(msie |rv:)(\d+(\.\d+)?)/i,l=/\/([^\s]+)\s+\(Vizio/,c=/(?:applewebkit|safari)\/(\d+(\.\d+)?)/i,u=function(e){
var t=/\(.* ([^\)]+)\)$/.exec(e);return t&&t[1]||void 0};i.prototype={constructor:i,browsers:[{id:"konvergo",name:"Plex Media Player",webkit:!0,regex:/plexmediaplayer/i,versionRegex:/plexmediaplayer (\d+\.\d+\.\d+)/i},{id:"wiiu",name:"Wii U",regex:/wiiu/i,versionRegex:c,webkit:!0},{id:"ps3",name:"Unknown Browser",webkit:!0,regex:/\(PLAYSTATION 3 \d\./},{id:"ps4",name:"Unknown Browser",webkit:!0,regex:/\(PlayStation 4 \d\./},{id:"ps3",name:"PlayStation 3",webkit:!0,regex:/\(PlayStation 3\)/,
versionRegex:c},{id:"ps4",name:"PlayStation 4",webkit:!0,regex:/\(PlayStation 4\)/,versionRegex:c},{id:"edge",name:"Microsoft Edge",regex:/edge|(windows phone.+chrome)/i,versionRegex:/edge\/(\d+(\.\d+)?)/i},{id:"ie",name:"Internet Explorer",msie:!0,regex:/(msie|trident|iemobile)/i,versionRegex:s,versionMatchIndex:2},{id:"opera",name:"Opera",presto:!0,regex:/opera/i,versionRegex:a},{id:"opera",name:"Opera",webkit:!0,regex:/OPR\//,versionRegex:/OPR\/\s?(\d+(\.\d+)?)/},{id:"vivaldi",name:"Vivaldi",
webkit:!0,regex:/vivaldi/i,versionRegex:/Vivaldi\/\s?(\d+(\.\d+)?)/},{id:"chrome",name:"Chrome",webkit:!0,regex:/(chrome|crios|gfiber|netbox)/i,versionRegex:r},{id:"firefox",name:"Firefox",gecko:!0,regex:/firefox/i,versionRegex:o},{id:"safari",name:"Safari",webkit:!0,regex:/macintosh.+safari/i,versionRegex:a},{id:"safari",name:"Safari",webkit:!0,regex:/applewebkit/i,versionRegex:c}],platforms:[{id:"metrological",name:"Metrological",tv:!0,regex:/WPE([-\w]+)?$/,version:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/WPE(?:-(\w*))?$/.exec(e);if(t&&t[1])return t[1]}},{id:"netgem",name:"Netgem",tv:!0,regex:/^Netbox/,version:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("/")[1]||e}},{id:"netcast",name:"NetCast",tv:!0,predicate:function(e){return/netcast/i.test(e)&&!/web[o0]s/i.test(e)}},{id:"webos",name:"webOS",tv:!0,predicate:function(e){return/web[o0]s/i.test(e)&&/smarttv/i.test(e)}},{
id:"blackberry",name:"Blackberry",mobile:!0,regex:/BlackBerry|RIM|BB10/,version:function(e){var t=/PlayBook/.test(e)?/Tablet OS (\d+\.\d+)/:a,n=t.exec(e);return n&&n[1]}},{id:"ps3",name:"PlayStation 3",tv:!0,regex:/P(lay)?S(tation )?3/i,version:function(e){return window.WM_devSettings?window.WM_devSettings.version:void 0}},{id:"ps4",name:"PlayStation 4",tv:!0,regex:/P(lay)?S(tation )?4/i,version:function(e){return window.WM_devSettings?window.WM_devSettings.version:void 0}},{id:"wiiu",
name:"Wii U",tv:!0,regex:/Nintendo WiiU/},{id:"tizen",name:"Tizen",tv:!0,predicate:function(e){return!!this.version(e)},version:function(e){var t=/Tizen (\d+(\.\d+)*)/i.exec(e);return t&&t[1]||void 0}},{id:"winvergo",name:"Windows",tv:!0,predicate:function(e){return!!window.Windows},version:function(e){try{for(var t=window.Windows.System.Profile.AnalyticsInfo.versionInfo.deviceFamilyVersion,n=("0000000000000000"+parseInt(t,10).toString(16)).slice(-16),i=[],a=0;a<n.length;){
var r=n.substring(a,a+4),o=parseInt(r,16);i.push(o),a+=4}return i.join(".")}catch(e){}}},{id:"viera",name:"Viera",tv:!0,predicate:function(e){return!!this.version(e)},version:function(e){var t=/Viera\/(\d+(\.\d+)*)/i.exec(e);return t&&t[1]||void 0}},{id:"sta",name:"Smart TV Alliance",tv:!0,version:function(e){var t,n;if(/SmartTvA/.test(e))n=/SmartTvA\/(\d+\.\d+)/.exec(e),t=n&&n[1]||t;else{
var i=[/Linux i686.+Chromium\/18/,/nettv\/4.2/i,/toshiba-dtv/i,/viera/i],a=[/nettv\/4/i],r=[/nettv/i],o=function(t){return t.test(e)};i.some(o)?t="2.0":a.some(o)?t="1.0":r.some(o)&&(t="0")}return t},predicate:function(e){return void 0!==this.version(e)}},{id:"tivo",name:"TiVo",tv:!0,regex:/TiVo/,version:function(e){var t=/TCD[^,]+/.exec(e);return t&&t[0]||void 0}},{id:"viziosmartcast",name:"Vizio SmartCast",tv:!0,predicate:function(e){return window.VIZIO&&window.VIZIO.isSmartCastDevice},
version:function(e){}},{id:"viziomtk",name:"Vizio MTK",tv:!0,predicate:function(e){return/opera/i.test(e)&&"undefined"!=typeof iMTK_JSP}},{id:"viziosigma",name:"Vizio Sigma",tv:!0,predicate:function(e){return/opera/i.test(e)&&/vizio/i.test(e)},version:function(e){var t=l.exec(e);return t&&t[1]||void 0}},{id:"viziomtk",name:"Vizio MTK",tv:!0,predicate:function(e){return l.test(e)&&"undefined"!=typeof iMTK_JSP},version:function(e){var t=l.exec(e);return t&&t[1]||void 0}},{id:"viziosigma",
name:"Vizio Sigma",tv:!0,regex:l,version:function(e){var t=l.exec(e);return t&&t[1]||void 0}},{id:"operatvstore",name:"Opera TV Store",tv:!0,predicate:function(e){var t=/Opera TV Store/.test(e),n=/TV Store/.test(e)&&/OMI\//.test(e);return t||n}},{id:"operatv",name:"Opera TV",tv:!0,regex:/opera\/\d+\.\d+ \(linux (mips|arm)/i},{id:"ios",name:"iOS",mobile:!0,regex:/(iphone|ipad|ipod)/i,version:function(e){var t=/OS (\d+_\d+)/.exec(e);return t&&t[1]?t[1].replace("_","."):void 0}},{id:"windowsphone",
name:"Windows Phone",mobile:!0,regex:/windows phone/i,version:function(e){var t=/windows phone[ os]*(\d+\.\d+);/i.exec(e);return t&&t[1]}},{id:"android",name:"Android",mobile:!0,regex:/android/i,version:function(e){var t=/Android (\d+\.\d+)/.exec(e);return t&&t[1]}},{id:"webos",name:"webOS",mobile:!0,predicate:function(e){return/hpwOS/.test(e)||/web[o0]s/i.test(e)&&!/smarttv/i.test(e)},version:function(e){var t=/(?:hpw|web)OS\/(\d+\.\d+)/.exec(e);return t&&t[1]}},{id:"openelec-rpi2",
name:"Embedded (Raspberry Pi)",tv:!0,regex:/plexmediaplayer.*openelec-rpi2/i,version:u},{id:"openelec",name:"Embedded",tv:!0,regex:/plexmediaplayer.*openelec/i,version:u},{id:"linuxkonvergo",name:"Linux",tv:!0,regex:/plexmediaplayer.*linux/i,version:u},{id:"osxkonvergo",name:"OSX",tv:!0,regex:/plexmediaplayer.*mac/i,version:u},{id:"windowskonvergo",name:"Windows",tv:!0,regex:/plexmediaplayer.*win/i,version:u},{id:"linux",name:"Linux",regex:/linux/i},{id:"osx",name:"OSX",regex:/Macintosh/,
version:function(e){var t=/OS X (\d+)[_.]?(\d+)?/.exec(e);if(t)return t[2]?t[1]+"."+t[2]:t[1]}},{id:"windows",name:"Windows",regex:/Windows/,version:function(e){var t={"6.0":"Vista / Server 2008",6.1:"7 / Server 2008 R2",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},n=/Windows [^\d;\)]*(\d+\.\d+)/.exec(e);if(n)return t[n[1]]}},{id:"chromeos",name:"Chrome OS",regex:/CrOS/,version:function(e){var t=/CrOS [\S]* (\d+)[_.]?(\d+)?/.exec(e);if(t)return t[2]?t[1]+"."+t[2]:t[1]}}],id:"unknown",
name:"Unknown Browser",version:"0",platformID:"unknown",platform:"Unknown Platform",platformVersion:"0",webkit:!1,gecko:!1,msie:!1,presto:!1,tv:!1,mobile:!1,detect:function(e){var t,n=this.runTests(this.browsers,e),i=this.runTests(this.platforms,e);n&&(this.id=n.id,this.name=n.name,this.version=this.getVersion(e.userAgent,n.versionRegex,n.versionMatchIndex||1),this.webkit=!!n.webkit,this.gecko=!!n.gecko,this.msie=!!n.msie,this.presto=!!n.presto),
i&&(t="function"==typeof i.version?i.version(e.userAgent):i.version,this.platform=i.name,this.platformID=i.id,this.platformVersion=t||this.platformVersion,this.mobile=!!i.mobile,this.tv=!!i.tv),this.tv||(this.platformModifierKey="osx"===this.platformID||"ios"===this.platformID?"command":"ctrl")},runTests:function(e,t){for(var n,i,a,r=0;!0!==i&&(a=e[r++]);)n=t[a.context||"userAgent"],a.regex?i=a.regex.test(n):a.predicate&&(i=a.predicate(n));return a},getVersion:function(e,t,n){var i=e.match(t)
;return i&&i.length>n&&i[n]||"0"},toJSON:function(){var e={};for(var t in this)this[t]&&"browsers"!==t&&"platforms"!==t&&(e[t]=this[t]);return e}},t.a=new i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"DEFAULT",function(){return i}),n.d(t,"PRIMARY",function(){return a}),n.d(t,"SUCCESS",function(){return r}),n.d(t,"DANGER",function(){return o}),n.d(t,"DARK",function(){return s}),n.d(t,"all",function(){return l})
;var i="default",a="primary",r="success",o="danger",s="dark",l=[i,a,r,o,s]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TINY",function(){return i}),n.d(t,"SMALL",function(){return a}),n.d(t,"MEDIUM",function(){return r}),n.d(t,"LARGE",function(){return o}),n.d(t,"all",function(){return s});var i="tiny",a="small",r="medium",o="large",s=[i,a,r,o]},function(e,t,n){"use strict";function i(e){return e?{entityID:e.entityID,machineIdentifier:e.machineIdentifier,
friendlyName:e.friendlyName,sourceTitle:e.sourceTitle,allowSync:e.allowSync,allowMediaDeletion:e.allowMediaDeletion,backgroundProcessing:e.backgroundProcessing,transcoderVideo:e.transcoderVideo,isFullServer:e.isFullServer,isFullOwnedServer:e.isFullOwnedServer,isCloud:e.isCloud,livetv:e.livetv,ownerId:e.ownerId}:null}function a(){return Object(s.createSelector)(function(e,t){return e.entities.servers[t]},i)}function r(e,t){var n=t.serverEntityID,i=c[n];return i||(i=Object(l.a)(a(),function(e){
return e}),c[n]=i),i(e,n)}function o(e,t){var n=t.metadataItemEntityID,i=e.entities.metadataItems[n],a=i&&i.serverEntityID;if(a)return r(e,{serverEntityID:a})}t.b=i,t.a=r,t.c=o;var s=n(4),l=(n.n(s),n(161)),c={}},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.providerEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(136))},,function(e,t,n){"use strict";function i(e){return Math.min(window.innerHeight-2*R,e.maxHeight)}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(1248),y=n(80),b=n(529),I=n(439),S=n(312),M=n(533),D=n(47),C=n(851),j=n(57),P=n(28),O=n(530),T=n.n(O),E=n(1250),w=n.n(E),A=n(373),x=n(2395),N=n(2397),L=n.n(N),k=Object(S.a)(T.a.menuSpeed),R=parseInt(w.a.menuPadding,10),z={appear:L.a.enter,appearActive:L.a.enterActive,enter:L.a.enter,enterActive:L.a.enterActive,leave:L.a.leave,leaveActive:L.a.leaveActive},U=function(e){
function t(n,a){c()(this,t);var r=d()(this,e.call(this,n,a));return r.onResize=function(e){r.setState({maxHeight:i(r.props)})},r.onWindowPress=function(e){var t=r.props.target,n=document.getElementById(r._menuID),i=n&&n.contains(e.target),a=!i&&document.getElementById(t),o=a&&a.contains(e.target);i||o||r.props.onMenuClose()},r.onKeyDown=function(e){var t=e.keyCode;t===A.j?M.e(e):t===A.e&&(e.preventDefault(),e.stopPropagation(),r.props.onMenuClose(),M.c())},r.onMenuEnable=function(){r.setState({
isDisabled:!1})},r.onMenuDisable=function(){r.setState({isDisabled:!0})},r.state={isDisabled:!1,maxHeight:i(n)},r._menuID=Object(D.a)(),r}return h()(t,e),t.prototype.componentDidMount=function(){this.props.isOpen&&this._enable(),window.addEventListener("resize",this.onResize)},t.prototype.shouldComponentUpdate=function(e,t){return Object(P.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){var n=!e.isOpen&&this.props.isOpen,i=this.props.isOpen&&t.isDisabled&&!this.state.isDisabled
;if(n||i)this._enable();else{var a=e.isOpen&&!this.props.isOpen,r=this.props.isOpen&&!t.isDisabled&&this.state.isDisabled;(a||r)&&this._disable()}},t.prototype.componentWillUnmount=function(){this.props.isOpen&&this._disable(),window.removeEventListener("resize",this.onResize)},t.prototype._enable=function(){M.f(document.getElementById(this._menuID)),document.addEventListener("mouseup",this.onWindowPress),document.addEventListener("touchend",this.onWindowPress),
document.addEventListener("keydown",this.onKeyDown)},t.prototype._disable=function(){document.removeEventListener("mouseup",this.onWindowPress),document.removeEventListener("touchend",this.onWindowPress),document.removeEventListener("keydown",this.onKeyDown)},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.target,o=t.options,l=t.isOpen,c=t.scrollerProps,u=t.size,d=t.onMenuClose,p=this.state.maxHeight,h=Object(C.a)(n,function(t){
var n=Object(I.a)(d,t.props.onPress);return g.a.cloneElement(t,{onPress:n,onMenuEnable:e.onMenuEnable,onMenuDisable:e.onMenuDisable})});return s()(m.a,{className:L.a.menuPortal,target:a,options:o,isOpen:l,closeTimeout:k},void 0,s()(b.a,{id:this._menuID,transitionName:z,transitionAppearTimeout:k,transitionEnterTimeout:k,transitionLeaveTimeout:k},void 0,l&&s()(x.a,{className:i,size:u,isDisabled:this.state.isDisabled},void 0,g.a.createElement(y.a,r()({},c,{style:{maxHeight:p}}),h))))},t
}(v.Component);U.defaultProps={maxHeight:600,scrollerProps:{className:L.a.menuScroller,scrollDirection:j.VERTICAL,autoScroll:!0}},t.a=U},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"NONE",function(){return i}),n.d(t,"VERTICAL",function(){return a}),n.d(t,"HORIZONTAL",function(){return r}),n.d(t,"OMNI",function(){return o}),n.d(t,"all",function(){return s});var i="none",a="vertical",r="horizontal",o="omni",s=[i,a,r,o]},function(e,t,n){"use strict"
;function i(){var e=p.connect.apply(void 0,arguments);return function(t){function n(e,t){var n=t.metricsPage,a=t.metricsContext,o=e.metricsContext,l=s()(e,["metricsContext"]);return d.a.createElement(i,r()({metricsPage:n,metricsContext:o||a},l))}var i=e(t);return n.displayName="ConnectWithMetrics("+Object(h.a)(t)+")",n.contextTypes={metricsPage:c.a.string.isRequired,metricsContext:c.a.string},n}}t.a=i;var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=n.n(l),u=n(0),d=n.n(u),p=n(11),h=n(190)
},function(e,t,n){e.exports={default:n(1882),__esModule:!0}},,function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.innerClassName,a=e.scrollDirection,o=c()(e,["children","className","innerClassName","scrollDirection"]),l=a!==f.NONE;return n||(n=l?g.a.modalScroller:g.a.modalBody),p.a.createElement(h.a,r()({className:n,scrollDirection:a,autoScroll:!0},o),l?s()("div",{className:i},void 0,t):t)}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),
n(0)),p=n.n(d),h=n(80),f=n(57),v=n(2830),g=n.n(v);i.defaultProps={innerClassName:g.a.innerModalBody},t.a=i},function(e,t,n){"use strict";var i=n(87),a=n(10),r=n.n(a),o=n(1930).default,s=i.c.Model.extend({defaults:r.a.extend({allowFlash:!1,allowServerUpdates:!1,testPrivateConnectionsWhenPublicAddressDoesNotMatch:!0,allowHttpsMediaServerConnections:!1,allowMediaServerRelayConnections:!1,allowLoopbackDiscovery:!1,allowSSO:!1,allowMixedContent:!1,allowBaseImagePreloading:!0,allowBaseImageBlobs:!0,
heartbeatInterval:1e4,allowManualServers:!1,allowCloudSyncServers:!1,allowMobileServers:!1,allowMultiTrackAudio:!1,maximumConcurrentConnectionTests:5,shouldCreateFlexModels:!1,shouldCreateStateTree:!1,requiresSignIn:!0,requiresPlexPass:!1,myPlexAccessToken:null,alerts:null,continueUrl:null,primaryServer:null,shouldCreateNewSessionWhenSeekingLiveTV:!1,shouldPreferInsecureLocalConnections:!1,shouldRequestHTMLFromCloudProvider:!1,allowLiveTVPlayback:!0,seekDebounceMilliseconds:null
},o,window.PLEXWEB)}),l=new s;t.a=l},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return s});var i=n(230),a="none",r="video",o="audio",s="photo",l=["id","typeString"],c=Object(i.a)(l,[{id:0,typeString:a},{id:1,typeString:r},{id:2,typeString:o},{id:3,typeString:s}]);c.get,c.getAll},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"c",function(){return c})
;var i=n(17),a=n(14),r=n(2021),o=n(1170),s=n(2026),l={ACTION:"action",ACTIONS:"actions",CONTENT:"content",IMAGE_TRANSCODER:"imagetranscoder",SUBSCRIBE:"subscribe",SEARCH:"search",MATCH:"match",METADATA:"metadata",PLAY_QUEUE:"playqueue",PLAYLIST:"playlist",PROMOTED:"promoted",RATE:"rate",MANAGE:"manage",SETTINGS:"settings",TIMELINE:"timeline"},c={UNIVERSAL:"universal"},u=i.a.extend({name:"ProviderFeatureModel",context:["server","provider"],sessionAttrs:{isSettingsPending:a.a.boolean,
isSettingsPopulated:a.a.boolean,settingsError:a.a.object},syncedAttrs:{id:a.a.string,key:a.a.string,reverseKey:a.a.string,scrobbleKey:a.a.string,unscrobbleKey:a.a.string,type:a.a.string,flavor:a.a.string,automaticLibraryFolders:a.a.boolean,public:a.a.boolean},syncedRelations:{directories:{relationClass:s.a,rootPropertyName:"Directory",deferred:!0},settings:{relationClass:o.default,rootPropertyName:"Setting",deferred:!0},actions:{relationClass:r.a,rootPropertyName:"Action",deferred:!0,
setOptions:{remove:!1}}},defaults:{isSettingsPending:!0,isSettingsPopulated:!1}});t.a=u},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(96),l=n(2034),c=n.n(l),u=s.a.extend({className:"confirm-modal modal modal-sm fade",template:c.a,ui:{doubleConfirmMessage:".double-confirm-message",confirmBtn:".confirm-btn",confirmLabel:".confirm-btn .btn-label"},events:o.a.extend({"click .confirm-btn":"onConfirm"},s.a.prototype.events),
whitelistedOptions:["title","message","confirmLabel","cancelLabel","hasDanger","hideCancel"],initialize:function(e){s.a.prototype.initialize.apply(this,arguments),this.async=e.async,this.data=o.a.pick(e,this.whitelistedOptions),this.promise=a.a.Deferred()},serializeData:function(){return o.a.defaults(this.data,{confirmLabel:"Yes",cancelLabel:"No"})},onRender:function(){s.a.prototype.onRender.apply(this,arguments),setTimeout(o.a.bind(function(){this.ui.confirmBtn.focus()},this),this.focusDelay)},
onHide:function(e){s.a.prototype.onHide.apply(this,arguments),this.promise.reject()},onConfirm:function(e){if(e.preventDefault(),this.options.requireDoubleConfirm&&!this.hasConfirmedOnce){this.hasConfirmedOnce=!0;var t=this.options.doubleConfirmMessage,n=this.options.doubleConfirmLabel;return t&&this.ui.doubleConfirmMessage.text(t),void(n&&this.ui.confirmLabel.text(n))}this.promise.resolve(),this.async?this.ui.confirmBtn.addClass("active"):this.hide()}});t.a=u},,function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(28),v=(n(37),n(2825)),g=n.n(v),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));y.call(a);var r=n.ignoreWidth,s=n.ignoreHeight,c=n.ignorePosition;return a.state={isMeasured:!1,width:r?void 0:0,scrollWidth:r?void 0:0,height:s?void 0:0,scrollHeight:s?void 0:0,x:c?void 0:0,y:c?void 0:0},a}return u()(t,e),t.prototype.componentDidMount=function(){this._requestFrame()},
t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this._cancelFrame(),this._clearTimeout()},t.prototype._cancelFrame=function(){this._frameRequestID&&(this._frameRequestID=window.cancelAnimationFrame(this._frameRequestID))},t.prototype._clearTimeout=function(){this._measureTimeoutID&&(this._measureTimeoutID=clearTimeout(this._measureTimeoutID))},t.prototype._reset=function(){
var e=this._expandContainer,t=this._shrinkContainer;e.scrollTop=1e5,e.scrollLeft=1e5,t.scrollTop=1e5,t.scrollLeft=1e5},t.prototype.render=function(){var e=this.props,t=e.id,n=e.className,i=e.children,r=e.style,o=e.onKeyDown,s=(e.onMeasure,"function"!=typeof i);return h.a.createElement("div",{id:t,className:n,style:r,ref:this._setContainerRef,onKeyDown:o},s?i:i(this.state),h.a.createElement("div",{className:g.a.scrollContainer,ref:this._setExpandContainerRef,onScroll:this.onScroll},a()("div",{
className:g.a.expandContent})),h.a.createElement("div",{className:g.a.scrollContainer,ref:this._setShrinkContainerRef,onScroll:this.onScroll},a()("div",{className:g.a.shrinkContent})))},t}(p.Component),y=function(){var e=this;this._requestFrame=function(){e._clearTimeout(),e._cancelFrame(),e._frameRequestID=window.requestAnimationFrame(e._measure)},this._requestTimeout=function(){e._clearTimeout(),e._cancelFrame(),e._measureTimeoutID=setTimeout(e._requestFrame,e.props.resizeTimeout)},
this._measure=function(){var t=e.props,n=t.ignoreWidth,i=t.ignoreHeight,a=t.ignorePosition,r=t.ignoreTransforms,o=e.state,s=o.isMeasured,l=o.width,c=o.scrollWidth,u=o.height,d=o.scrollHeight,p=o.x,h=o.y,f=e._container,v=f.getBoundingClientRect(),g=r?f.offsetWidth:v.width,m=r?f.offsetHeight:v.height,y=!0!==s,b=!a&&(v.left!==p||v.top!==h),I=!n&&(g!==l||f.scrollWidth!==c),S=!i&&(m!==u||f.scrollHeight!==d);if(e._reset(),y||b||I||S){var M=window.getComputedStyle(f),D={isMeasured:!0}
;if(a||(D.x=b?v.left:p,D.y=b?v.top:h),!n){var C=parseInt(M.paddingRight,10)||0,j=parseInt(M.paddingLeft,10)||0;D.width=I?g-j-C:l,D.scrollWidth=I?f.scrollWidth:c}if(!i){var P=parseInt(M.paddingTop,10)||0,O=parseInt(M.paddingBottom,10)||0;D.height=S?m-P-O:u,D.scrollHeight=S?f.scrollHeight:d}e.setState(D),e.props.onMeasure&&e.props.onMeasure(D)}},this._setContainerRef=function(t){e._container=t;var n=e.props.onContainerRef;n&&n(t)},this._setExpandContainerRef=function(t){e._expandContainer=t},
this._setShrinkContainerRef=function(t){e._shrinkContainer=t},this.onScroll=function(t){e._requestTimeout()}};m.defaultProps={className:g.a.container,ignoreWidth:!1,ignoreHeight:!1,ignorePosition:!1,ignoreTransforms:!1,resizeTimeout:100},t.a=m},function(e,t,n){"use strict";function i(e,t){return a(t)||r(e)}function a(e){return e===l||e===c}function r(e){return e.length>1}n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"d",function(){return d
}),n.d(t,"e",function(){return p}),n.d(t,"a",function(){return h}),t.g=i,t.h=a;var o=n(1),s=n.n(o),l="poster",c="mosaic",u="table",d="simpleSummary",p="summary",h="epgEpisode";s.a.oneOf([l,c,u,d,p,h])},function(e,t,n){"use strict";function i(e,t){return t||(t={}),r.a.defaults(t,{typeName:e,parse:r.a.bind(o.a.parseType,o.a,e)})}var a=n(10),r=n.n(a),o=n(74),s={xml:i("xml",{accept:"application/xml"}),json:i("json",{accept:"application/json"}),text:i("text")};t.a=s},function(e,t,n){"use strict"
;function i(e){return e.get("user").get("pmp")}function a(e,t){var n=t.serverEntityID;return Object(I.a)(e,b.m,n)}function r(e,t){var n=t.serverEntityID;return Object(I.b)(e,b.m,n)}function o(e,t){var n=a(e,t);return n&&n.get("pmp")}function s(e,t){var n=t.providerEntityID;return Object(I.a)(e,b.k,n)}function l(e,t){var n=t.providerEntityID;return Object(I.b)(e,b.k,n)}function c(e,t){var n=t.libraryEntityID;return Object(I.a)(e,b.c,n)}function u(e,t){var n=t.hubEntityID
;return Object(I.a)(e,b.b,n)}function d(e,t){var n=t.metadataListEntityID;return Object(I.a)(e,b.h,n)}function p(e,t){var n=t.metadataListEntityID;return Object(I.b)(e,b.h,n)}function h(e,t){var n=t.metadataItemEntityID;return Object(I.a)(e,b.g,n)}function f(e,t){var n=t.metadataItemEntityID;return Object(I.b)(e,b.g,n)}function v(e,t){var n=t.mediaSubscriptionEntityID;return Object(I.a)(e,b.e,n)}function g(e,t){var n=t.liveTVSessionEntityID;return Object(I.a)(e,b.d,n)}function m(e,t){
var n=t.playQueueItemEntityID;return Object(I.a)(e,b.j,n)}function y(e,t){var n=t.playlistItemEntityID;return Object(I.a)(e,b.i,n)}t.l=i,t.k=a,t.p=r,t.j=o,t.i=s,t.o=l,t.b=c,t.a=u,t.f=d,t.n=p,t.e=h,t.m=f,t.d=v,t.c=g,t.g=m,t.h=y;var b=n(45),I=n(795)},function(e,t,n){"use strict";n.d(t,"l",function(){return b}),n.d(t,"c",function(){return I}),n.d(t,"b",function(){return S}),n.d(t,"h",function(){return M}),n.d(t,"g",function(){return D}),n.d(t,"i",function(){return C}),n.d(t,"f",function(){return j
}),n.d(t,"m",function(){return P}),n.d(t,"j",function(){return O}),n.d(t,"k",function(){return T}),n.d(t,"d",function(){return E}),n.d(t,"e",function(){return w}),n.d(t,"a",function(){return A});var i,a=n(6),r=n.n(a),o=n(10),s=n.n(o),l=n(40),c=n(19),u=n(32),d=n(2156),p=n(16),h=n(210),f=n(824),v=n(825),g=n(2157),m=n(2158),y=n(2159),b=(Object(l.a)("app/saveSettings"),
Object(l.a)("app/saveLastTypeSource")),I=Object(l.a)("app/downloadServer"),S=Object(l.a)("app/discoverServers"),M=Object(l.a)("app/redirectToRoute"),D=Object(l.a)("app/redirectToHttp"),C=Object(l.a)("app/redirectToUrl"),j=(Object(l.a)("app/redirectToHash"),Object(l.a)("app/preferInsecure")),P=Object(l.a)("app/switchAppLayout"),O=Object(l.a)("app/saveSettings",function(e){return{name:"deviceSettings",settings:e}}),T=Object(l.a)("app/saveSettings",function(e){return{name:"experienceSettings",
settings:e}}),E=Object(l.a)("app/toggleFullscreen",function(e){return{isFullscreen:!0}}),w=Object(l.a)("app/toggleFullscreen",function(e){return{isFullscreen:!1}}),A=r()({},h.e,(i={},i["app/saveSettings"]=function(e,t){var n=t.name,i=t.settings,a=e.get(n),o=r()({},i,{isSaving:!0,saveError:null});a.save(o).then(function(){a.set({isSaving:!1})},function(e){var t=e&&e.message||"";a.set({isSaving:!1,saveError:{message:t}})})},i["app/saveLastTypeSource"]=function(e,t,n){
var i,a=e.get("experienceSettings").get("lastTypeSource"),o=t.navigationType,s=t.machineIdentifier,l=t.providerIdentifier,c=t.directoryKey,u=r()({},a,(i={},i[o]={machineIdentifier:s,providerIdentifier:l,directoryKey:c},i));n(T({lastTypeSource:u}))},i["app/downloadServer"]=function(e,t){var n=new y.a({downloadType:t});c.a.trigger("show:modal",n)},i["app/discoverServers"]=function(e){c.a.trigger("discover:servers")},i[h.d]=function(e,t){var n=t.machineIdentifier
;e.get("servers").findServer(n).then(function(t){e.set({primaryServer:t,isWaitingForPrimaryServer:!1})},function(){u.a.warn("Unable to set primary server to:",n)})},i[h.c]=function(e){e.set({primaryServer:null,isWaitingForPrimaryServer:!0})},i[h.a]=function(e,t,n){var i=t.machineIdentifier,a=t.metricsProperties,o=void 0===a?{}:a;e.get("servers").findServer(i).done(function(t){if(t.get("isOutOfDate"))n(M({route:"needsUpdate",options:{serverID:i,replace:!0}}));else if(t.get("isPrimaryEligible")){
if(e.get("primaryServer")!==t){var a=t.toJSON();Object(p.c)("metrics").trackEvent({event:"client:selectserver",properties:r()({serverType:Object(v.a)(a),serverVersion:t.get("version"),connectionType:Object(f.a)(a.activeConnection),secure:t.get("isSecure")},o)})}e.set({primaryServer:t,isWaitingForPrimaryServer:!1})}else n(M({route:"dashboard"}))}).fail(function(){n(M({route:"dashboard"}))})},i[h.b]=function(e,t,n){var i=Object(d.a)(t);t.replace?window.location.replace(i):window.location.href=i},
i["app/redirectToRoute"]=function(e,t){var n=t.route,i=t.options;s.a.defer(function(){c.a.trigger("navigate",n,i)})},i["app/redirectToHttp"]=function(){Object(m.a)()},i["app/redirectToUrl"]=function(e,t){var n=t.url;window.location.href=n},i["app/redirectToHash"]=function(e,t){var n=t.hash;window.location.hash=n},i["app/preferInsecure"]=function(){window.localStorage.setItem("preferInsecure","1")},i["app/switchAppLayout"]=function(){Object(g.a)("tv")},i["app/toggleFullscreen"]=function(e,t){
var n=t.isFullscreen;e.get("isFullscreen")!==n&&e.set("isFullscreen",n)},i))},function(e,t,n){"use strict";function i(e){return e.experienceSettings}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.separator;return r()("span",{className:t},void 0,n)}n.d(t,"a",function(){return u});var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2814)),c=n.n(l),u="\u2014";i.defaultProps={className:c.a.separator,separator:u},t.b=i},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(792),o=n(506),s=n(1922),l=n(1923),c=n(353),u=n(1924),d=n(1926),p=n(1139),h=n(1927),f=n(605),v=n(1928),g=n(1929),m=n(1140),y={parseType:function(e,t,n){var i=this.getByType("parse",e,this._parseTypeMap);return i?i(t,n):t},stringifyType:function(e,t,n){if(a.a.isString(t))return t;if(null==t)return"";var i=this.getByType("stringify",e,this._stringifyTypeMap);return i?i(t,n):t},getByType:function(e,t,n){if(n&&a.a.has(n,t))return n[t]
;var i=t.charAt(0).toUpperCase()+t.slice(1),r=e+i;return a.a.has(this,r)?(n[t]=this[r],this[r]):void 0},parseBoolean:o.a,stringifyBoolean:v.a,parseInteger:c.a,parseFloat:l.a,parseString:h.a,parseEncodedString:s.a,parseArray:r.a,parseList:d.a,stringifyList:g.a,parseQueryString:p.a,stringifyQueryString:m.a,parseJSON:u.a,parseXML:f.a,reset:function(){this._parseTypeMap={json:this.parseJSON,xml:this.parseXML},this._stringifyTypeMap={}}};y.reset(),t.a=y},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2220)),c=n.n(l);i.defaultProps={className:c.a.container},t.a=i},function(e,t,n){"use strict";function i(e){return e.ui.multiSelect}t.a=i},function(e,t,n){"use strict";function i(e){return e.get("related").findWhere({browse:!1}).get("metadataList")}function a(e,t,n){return function(){if(t.get("isOpen")&&e===ee)return n.apply(void 0,arguments)
;v.a.warn("[Player] Player was closed or a new playback session was started; ignoring playback request")}}n.d(t,"c",function(){return U}),n.d(t,"b",function(){return B}),n.d(t,"a",function(){return F}),n.d(t,"m",function(){return _}),n.d(t,"n",function(){return V}),n.d(t,"o",function(){return H}),n.d(t,"p",function(){return Q}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return G}),n.d(t,"h",function(){return W}),n.d(t,"k",function(){return K}),n.d(t,"e",function(){return Z}),
n.d(t,"d",function(){return q}),n.d(t,"f",function(){return J}),n.d(t,"l",function(){return X}),n.d(t,"q",function(){return $}),n.d(t,"g",function(){return te})
;var r,o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(13),d=n.n(u),p=n(10),h=n.n(p),f=n(40),v=n(32),g=n(18),m=n(16),y=n(94),b=n(811),I=n(1229),S=n(1231),M=n(435),D=n(436),C=n(844),j=n(635),P=n(434),O=n(636),T=n(86),E=n(212),w=n(107),A=n(2326),x=n(70),N=n(198),L=n(36),k=n(3),R=n(27),z=n(172),U="ui/player/playerLifecycle/startPlayback",B="ui/player/playerLifecycle/queuePlayback",F="ui/player/playerLifecycle/endPlayback",_=Object(f.a)(U),V=Object(f.a)("ui/player/playerLifecycle/startPrimaryExtraPlayback"),H=Object(f.a)("ui/player/playerLifecycle/startRadioPlayback"),Q=Object(f.a)("ui/player/playerLifecycle/startRelatedMixPlayback"),Y=Object(f.a)("ui/player/playerLifecycle/startExistingPlayQueuePlayback"),G=Object(f.a)("ui/player/playerLifecycle/queueRelatedMixPlayback"),W=Object(f.a)(B),K=Object(f.a)("ui/player/playerLifecycle/startLegacyChannelPlayback"),Z=Object(f.a)("ui/player/playerControls/clearPlayerConfirmPlaybackPayload"),q=Object(f.a)("ui/player/playerControls/clearPlayerConfirmOffsetPayload"),J=Object(f.a)(F),X=Object(f.a)(U,function(e){
var t=e.options,n=void 0===t?{}:t,i=c()(e,["options"]);return s()({},i,{metricsAction:T.H,options:s()({},n,{playAll:!0})})}),$=Object(f.a)(U,function(e){var t=e.options,n=void 0===t?{}:t,i=c()(e,["options"]);return s()({},i,{metricsAction:T.T,options:s()({},n,{shuffle:!0})})}),ee=void 0,te=(r={},r[U]=function(e,t,n){
var i=t.metadataItemEntityID,r=t.liveTVSessionEntityID,o=t.confirmPlayback,l=t.confirmOffset,c=t.startOffsetMilliseconds,u=void 0===c?null:c,d=t.startMediaIndex,p=void 0===d?null:d,h=t.openState,f=void 0===h?E.a:h,v=t.isPaused,g=void 0!==v&&v,y=t.extrasPrefixCount,b=t.playbackStartTime,j=void 0===b?Date.now():b,P=t.metricsPage,O=t.metricsContext,z=Object(C.a)(e,t),U=Object(M.a)(z),B=w.c(U),F=Object(N.c)(e,B),_=F.get("playQueue"),V=z.metadataItemModel,H=z.serverModel?z.serverModel.entityID():t.serverEntityID,Q=z.providerModel?z.providerModel.entityID():t.providerEntityID
;if(!_||!V||_.get("playQueueSelectedMetadataItemID")!==V.get("ratingKey")){if(!o&&_&&_.get("playQueueVersion")>1)return void F.set("confirmPlaybackPayload",t);var Y={serverEntityID:H,providerEntityID:Q,isOpen:!0,openState:f,isPlayQueueLoading:!0,isMediaLoading:!0,isPaused:g,startOffsetMilliseconds:u,startMediaIndex:p,playbackStartTime:j,metricsPage:P,metricsContext:O};if(r&&(Y.liveTVSession=x.c(e,{liveTVSessionEntityID:r})),V&&Object(A.a)(V)&&(Y.startMetadataItemEntityID=i),
!l&&V&&V.get("viewOffset")&&(Y.confirmOffsetPayload=t),Object(L.a)(function(){F.restoreDefaults(Y)}),!Y.confirmOffsetPayload){var G=!(u||!V||V.get("type")!==R.f),W=Object(I.a)(s()({},z,{extrasPrefixCount:G?y:void 0,playQueueModel:Object(S.a)(s()({},z,{playQueueType:U}))}));ee=W,W.done(a(W,F,function(t){F.set({isPlayQueueLoading:!1,playQueue:t}),Object(D.a)(e).startPlayback(F)})).fail(a(W,F,function(){F.restoreDefaults({hasError:!0,
errorMessage:Object(k.default)("An error occurred loading items to play.")})}));var K=t.metricsProperties||{};Object(m.c)("metrics").trackClick(s()({page:t.metricsPage,action:t.metricsAction||T.G,type:U,context:O},K))}}},r["ui/player/playerLifecycle/startPrimaryExtraPlayback"]=function(e,t,n){var i=t.options||{},a=x.e(e,t);n(_(s()({},t,{metadataItemEntityID:null,metricsAction:T.J,options:s()({},i,{metadataItemKey:a.get("primaryExtraKey"),type:"video"})})))},
r["ui/player/playerLifecycle/startRelatedMixPlayback"]=function(e,t,n){var a=t.options||{},r=x.e(e,t),o=i(r);n(_({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsAction:T.K,options:s()({},a,{type:Object(M.a)({metadataItemModel:r}),containerKey:o.get("containerKey")})}))},r["ui/player/playerLifecycle/startRadioPlayback"]=function(e,t,n){var i=x.e(e,t),a=i.get("stations");a.length&&n(_({metricsAction:T.K,
serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:a.at(0).entityID(),options:{type:Object(M.a)({metadataItemModel:i})}}))},r["ui/player/playerLifecycle/startExistingPlayQueuePlayback"]=function(e,t){var n=t.serverEntityID,i=t.providerEntityID,a=t.playQueueType,r=t.playQueueID,o=t.startOffsetMilliseconds,s=void 0===o?null:o,l=t.startMediaIndex,c=void 0===l?null:l,u=w.c(a),d=x.i(e,t),p=Object(N.c)(e,u),h=Object(S.a)({providerModel:d,playQueueID:r,
playQueueType:a});return p.set({serverEntityID:n,providerEntityID:i,isOpen:!0,openState:E.a,isPlayQueueLoading:!0,isMediaLoading:!0,startOffsetMilliseconds:s,startMediaIndex:c}),Object(P.a)(h).done(function(){p.set({playQueue:h,isPlayQueueLoading:!1}),j.startPlayback(p)}).fail(function(){p.restoreDefaults({hasError:!0,errorMessage:Object(k.default)("An error occurred loading items to play.")})})},r["ui/player/playerLifecycle/queueRelatedMixPlayback"]=function(e,t,n){var a=x.e(e,t),r=i(a);n(W({
serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage,metricsAction:T.L,listType:Object(M.a)({metadataItemModel:a}),options:{next:!0,containerKey:g.join(r.get("containerKey"),{excludeSeedItem:1})}}))},r["ui/player/playerLifecycle/startLegacyChannelPlayback"]=function(e,t,n){
var i=t.serverModel,a=t.metadataItemModel,r=t.options,o=void 0===r?{}:r,l=c()(t,["serverModel","metadataItemModel","options"]),u=h.a.omit(a.toJSON(),"id","sourceTitle","recommender","message","isUserPlaylistItem","children"),d=new b.a({},{server:i}),p=new y.a(u,{server:i,provider:d,channel:a.channel,containerKey:a.containerKey});e.set({legacyChannelProvider:d,legacyChannelMetadataItem:p}),n(_(s()({serverEntityID:i.entityID(),providerEntityID:d.entityID(),metadataItemEntityID:p.entityID(),
options:o},l)))},r[B]=function(e,t,n){var i=t.startOffsetMilliseconds,r=void 0===i?null:i,o=t.openState,l=void 0===o?E.a:o,c=Object(C.a)(e,t),u=Object(M.a)(c),d=w.c(u),p=Object(N.c)(e,d),h=!!c.playQueueID,f=c.serverModel?c.serverModel.entityID():t.serverEntityID,v=c.providerModel?c.providerModel.entityID():t.providerEntityID,g=p.get("playQueue"),y=!1;if(g&&p.get("providerEntityID")){var b=x.i(e,{providerEntityID:p.get("providerEntityID")
}),j=p.get("providerEntityID")===v,A=g.get("isUniversal"),R=b.server.get("isFullOwnedServer");y=j||A&&R}if(y)Object(I.a)(s()({},c,{playQueueModel:g})).done(Object(O.a)(p,function(){Object(D.a)(e).refreshRemotePlayQueue(p)})).fail(Object(O.a)(p,function(){p.set({hasError:!0,errorMessage:Object(k.default)("An error occurred loading items into the play queue.")})}));else{Object(L.a)(function(){p.restoreDefaults({serverEntityID:f,providerEntityID:v,isOpen:!0,openState:l,isPlayQueueLoading:!0,
isMediaLoading:!0,isPaused:!c.next,repeatAll:!!c.playQueueRepeat,startOffsetMilliseconds:r})}),g=Object(S.a)(s()({},c,{playQueueType:u}));var U=h?Object(P.a)(g):Object(I.a)(s()({},c,{next:!1,playQueueModel:g}));ee=U,U.done(a(U,p,function(t){p.set({isPlayQueueLoading:!1,playQueue:t}),Object(D.a)(e).startPlayback(p,h)})).fail(a(U,p,function(){n(Object(z.l)()),h?p.restoreDefaults():p.restoreDefaults({hasError:!0,errorMessage:Object(k.default)("An error occurred loading items to play.")})}))}
var B=c.next?T.I:T.b,F=t.metricsProperties||{};Object(m.c)("metrics").trackClick(s()({page:t.metricsPage,action:t.metricsAction||B,type:u},F))},r["ui/player/playerControls/clearPlayerConfirmPlaybackPayload"]=function(e,t){var n=t.playerType,i=(t.openState,Object(N.c)(e,n));Object(L.a)(function(){i.set("confirmPlaybackPayload",null)})},r["ui/player/playerControls/clearPlayerConfirmOffsetPayload"]=function(e,t){var n=t.playerType,i=(t.openState,Object(N.c)(e,n));Object(L.a)(function(){
i.restoreDefaults()})},r[F]=function(e,t,n){var i=t.playerType,a=Object(N.c)(e,i),r=Object(D.a)(e),o=a.get("liveTVSession");if(Object(L.a)(function(){n(Object(z.l)()),r.endPlayback(a),e.get("legacyChannelProvider")&&(e.unset("legacyChannelProvider"),e.unset("legacyChannelMetadataItem"))}),o){var s=g.join(["/media/subscriptions",o.id]);d.a.ajax(o.server.getXHROptions(s,{method:"DELETE"}))}},r)},function(e,t,n){"use strict";function i(){
r.a.isFunction(this.initialize)&&this.initialize.apply(this,arguments)}var a=n(10),r=n.n(a),o=function(e,t){var n,i=this;n=e&&r.a.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)||null},r.a.extend(n,i,t);var a=function(){this.constructor=n};if(a.prototype=i.prototype,n.prototype=new a,e&&e.hasOwnProperty("mixins")){var o=e.mixins;delete e.mixins,Array.isArray(o)||(o=[o]),r.a.each(o,function(e){r.a.extend(n.prototype,e)})}return e&&r.a.extend(n.prototype,e),
n.__super__=i.prototype,n};i.extend=o,t.a=i},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return s}),n.d(t,"q",function(){return l}),n.d(t,"p",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"n",function(){return d}),n.d(t,"o",function(){return p}),n.d(t,"b",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"m",function(){return v}),
n.d(t,"l",function(){return g}),n.d(t,"j",function(){return m}),n.d(t,"k",function(){return y}),n.d(t,"a",function(){return b})
;var i="32cc8bf5-b425-4582-a52d-71b4f1cf436b",a="b2403ac6-4885-4971-8b96-59353fd87c72",r="de789b83-9c5e-4472-bccf-791c69e67500",o="9eaa5152-320b-48e6-9d47-9492ba5e5b54",s="64ed42f8-259d-4957-8530-0fff2d846cd0",l="7c4200b1-a2ab-4803-adcd-6c36b22a9269",c="6f82ca43-6117-4e55-ae0e-5ea3b3e99a96",u="96cac76e-c5bc-4596-87eb-4fdfef9aaa11",d="4b522f91-ae89-4f62-af9c-76f44d8ef61c",p="d14556be-ae6d-4407-89d0-b83953f4789a",h="ef3cb855-8236-45c9-9afa-83e9c954001b",f="740a75d2-6dba-4317-ba68-ed3d619d4c7a",v="bb50c92f-b412-44fe-8d8a-b1684f212a44",g="300231e0-69aa-4dce-97f4-52d8c00e3e8c",m="5e2a89ec-fb26-4234-b66e-14d37f35dff2",y="222020fb-1504-492d-af33-a0b80a49558a",b="43725019-9122-4a6d-bc50-bca06a411b7a"
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(532),f=n.n(h),v=n(850),g=n.n(v),m=n(1),y=(n.n(m),n(0)),b=n.n(y),I=n(851),S=n(57),M=(n(531),n(28)),D=n(2393),C=n.n(D),j=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onScroll=function(e){if(e.target===a._scrollerRef.current){var t=e.target.scrollTop,n=e.target.scrollLeft,i=t!==a._currentScrollTop,r=n!==a._currentScrollLeft
;(i||r)&&a._setScrollPosition({scrollTop:t,scrollLeft:n}),a.props.onScroll&&a.props.onScroll(e)}},a.onScrollPositionChange=function(){a._animationFrameID=null,a.props.onScrollPositionChange({scrollTop:a._currentScrollTop,scrollLeft:a._currentScrollLeft})},a.onScrollTimeout=function(){a.setState({isScrolling:!1})},a.onScrollToUpdate=function(){a._updateScrollPosition(a._scrollToPosition),a.props.onScrollToUpdate&&a.props.onScrollToUpdate(a._scrollToPosition)},a.onScrollToComplete=function(){
a._scrollToTween=null,a._scrollToPosition=null,a.props.onScrollToComplete&&a.props.onScrollToComplete()},a.state={isScrolling:!1},a._scrollerRef=n.forwardedRef||b.a.createRef(),a._currentScrollTop=0,a._currentScrollLeft=0,a}return p()(t,e),t.prototype.componentDidMount=function(){this._scrollTo(this.props)},t.prototype.componentWillReceiveProps=function(e){e.scrollTop===this.props.scrollTop&&e.scrollLeft===this.props.scrollLeft||this.setState({isScrolling:!0})},
t.prototype.shouldComponentUpdate=function(e,t){return Object(M.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){this.state.isScrolling&&(this._scrollTimeoutID&&clearTimeout(this._scrollTimeoutID),this._scrollTimeoutID=setTimeout(this.onScrollTimeout,this.props.isScrollingTimeout)),this._scrollTo(this.props)},t.prototype.componentWillUnmount=function(){this._clearTimeouts(),this._cancelScrollTo()},t.prototype._setScrollPosition=function(e){var t=e.scrollTop,n=e.scrollLeft
;this._clearTimeouts(),this._currentScrollTop=t,this._currentScrollLeft=n,this._animationFrameID=window.requestAnimationFrame(this.onScrollPositionChange)},t.prototype._updateScrollPosition=function(e){var t=e.scrollTop,n=e.scrollLeft,i=this._scrollerRef.current;null!=t&&(i.scrollTop=t),null!=n&&(i.scrollLeft=n)},t.prototype._scrollTo=function(e){var t=e.scrollTop,n=e.scrollLeft;if(null!=t||null!=n){var i=null!=t&&t!==this._currentScrollTop,a=null!=n&&n!==this._currentScrollLeft;if(i||a){
if(!this.props.smoothScroll&&!this.props.restoreScroll)return this._currentScrollTop=t,this._currentScrollLeft=n,void this._updateScrollPosition({scrollTop:t,scrollLeft:n});var r=this.props.smoothScrollDuration/1e3,o={ease:g.a.Power3.easeOut,onUpdate:this.onScrollToUpdate,onComplete:this.onScrollToComplete};this._scrollToPosition={};var s=this._scrollerRef.current;i&&(o.scrollTop=Math.min(t,s.scrollHeight-s.clientHeight),this._scrollToPosition.scrollTop=s.scrollTop),
a&&(o.scrollLeft=Math.min(n,s.scrollWidth-s.clientWidth),this._scrollToPosition.scrollLeft=s.scrollLeft),this._cancelScrollTo(),this._scrollToTween=f.a.to(this._scrollToPosition,r,o)}}},t.prototype._cancelScrollTo=function(){this._scrollToTween&&(this._scrollToTween.kill(),this._scrollToTween=null)},t.prototype._clearTimeouts=function(){this._animationFrameID&&window.cancelAnimationFrame(this._animationFrameID),this._scrollTimeoutID&&clearTimeout(this._scrollTimeoutID)},
t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.children,r=t.scrollDirection,s=t.autoScroll,l=t.compactScroller,c=t.enableChildrenProps,u=t.onScroll,d=t.onScrollPositionChange,p=(t.forwardedRef,t.smoothScroll,t.restoreScroll,t.smoothScrollDuration,t.scrollTop,t.scrollLeft,t.isScrollingTimeout,t.onScrollToUpdate,t.onScrollToComplete,
o()(t,["className","children","scrollDirection","autoScroll","compactScroller","enableChildrenProps","onScroll","onScrollPositionChange","forwardedRef","smoothScroll","restoreScroll","smoothScrollDuration","scrollTop","scrollLeft","isScrollingTimeout","onScrollToUpdate","onScrollToComplete"]));return b.a.createElement("div",a()({className:(n||"")+" "+(C.a.scroller||"")+" "+(C.a[r]||"")+" "+(s&&C.a.auto||"")+" "+(l&&C.a.compactScroller||""||""),ref:this._scrollerRef,onScroll:d?this.onScroll:u
},p),c?Object(I.a)(i,function(t){return b.a.cloneElement(t,{isScrolling:e.state.isScrolling,scrollTop:e._currentScrollTop,scrollLeft:e._currentScrollLeft})}):i)},t}(y.Component);j.defaultProps={scrollDirection:S.VERTICAL,autoScroll:!1,smoothScroll:!0,restoreScroll:!1,smoothScrollDuration:400,enableChildrenProps:!1,isScrollingTimeout:100},t.a=b.a.forwardRef(function(e,t){return b.a.createElement(j,a()({},e,{forwardedRef:t}))})},,,,function(e,t,n){"use strict";function i(e){
var t=e.children,n=s()(e,["children"]);return u.a.createElement("div",r()({className:p.a.modalHeader},n),t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(2831),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.contentClassName,n=e.iconClassName,i=e.titleClassName,a=e.descriptionClassName,o=e.footerClassName,l=e.children,u=e.kind,d=e.icon,v=e.title,g=e.description,y=e.footer,b=c()(e,["contentClassName","iconClassName","titleClassName","descriptionClassName","footerClassName","children","kind","icon","title","description","footer"]);return p.a.createElement(h.a,r()({className:m.a.emptyPage},b),s()("div",{className:t},void 0,!!d&&s()(f.a,{name:d,className:(m.a[u]||"")+" "+(n||"")
}),!!v&&s()("div",{className:i},void 0,v),!!g&&s()("div",{className:a},void 0,g),l),!!y&&s()("div",{className:o},void 0,y))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(80),f=n(26),v=n(24),g=n(3112),m=n.n(g);i.defaultProps={contentClassName:m.a.content,iconClassName:m.a.icon,titleClassName:m.a.title,descriptionClassName:m.a.description,footerClassName:m.a.footer,kind:v.b.DEFAULT},t.a=i},function(e,t,n){"use strict";n.d(t,"g",function(){return i}),
n.d(t,"n",function(){return a}),n.d(t,"U",function(){return r}),n.d(t,"j",function(){return o}),n.d(t,"P",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"y",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"G",function(){return d}),n.d(t,"T",function(){return p}),n.d(t,"H",function(){return h}),n.d(t,"J",function(){return f}),n.d(t,"K",function(){return v}),n.d(t,"L",function(){return g}),n.d(t,"I",function(){return m}),n.d(t,"b",function(){return y}),
n.d(t,"q",function(){return b}),n.d(t,"A",function(){return I}),n.d(t,"z",function(){return S}),n.d(t,"N",function(){return M}),n.d(t,"c",function(){return D}),n.d(t,"t",function(){return C}),n.d(t,"Y",function(){return j}),n.d(t,"B",function(){return P}),n.d(t,"V",function(){return O}),n.d(t,"X",function(){return T}),n.d(t,"D",function(){return E}),n.d(t,"o",function(){return w}),n.d(t,"k",function(){return A}),n.d(t,"w",function(){return x}),n.d(t,"M",function(){return N}),
n.d(t,"R",function(){return L}),n.d(t,"u",function(){return k}),n.d(t,"C",function(){return R}),n.d(t,"Q",function(){return z}),n.d(t,"E",function(){return U}),n.d(t,"h",function(){return B}),n.d(t,"s",function(){return F}),n.d(t,"m",function(){return _}),n.d(t,"a",function(){return V}),n.d(t,"S",function(){return H}),n.d(t,"Z",function(){return Q}),n.d(t,"f",function(){return Y}),n.d(t,"v",function(){return G}),n.d(t,"r",function(){return W}),n.d(t,"d",function(){return K}),
n.d(t,"l",function(){return Z}),n.d(t,"p",function(){return q}),n.d(t,"F",function(){return J}),n.d(t,"O",function(){return X}),n.d(t,"W",function(){return $}),n.d(t,"x",function(){return ee})
;var i="claim",a="dismiss",r="skip",o="confirm",s="select",l="cancel",c="learn",u="complete",d="play",p="shuffle",h="playAll",f="playPrimaryExtra",v="playRelatedMix",g="queueRelatedMix",m="playNext",y="addToQueue",b="edit",I="markAsWatched",S="markAsUnwatched",M="refresh",D="analyze",C="fixMatch",j="unmatch",P="merge",O="splitApart",T="sync",E="optimize",w="download",A="delete",x="getInfo",N="rate",L="selectStream",k="follow",R="mute",z="selectServer",U="optimizeDatabase",B="cleanBundles",F="emptyTrash",_="deleteServer",V="addLibrary",H="shareLibrary",Q="updateLibrary",Y="cancelLibraryUpdate",G="forceRefreshLibrary",W="editLibrary",K="analyzeLibrary",Z="deleteLibrary",q="downloadServer",J="optOutMetrics",X="remoteAccess",$="subscribe",ee="gift"
},function(e,t,n){"use strict";function i(e){var t={},n=p.a.result(e,"responseType");return n&&n.accept&&(t.Accept=n.accept),t}function a(e,t){return t.server?t.server:e.getXHROptions?e:e.provider?e.provider:e.server?e.server:e}n.d(t,"a",function(){return g}),n.d(t,"b",function(){return m});var r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(424),u=n.n(c),d=n(10),p=n.n(d),h=n(78),f=n(18),v=n(1901),g=3e4,m=6e4,y=u.a.noConflict(),b=y.sync;y.sync=function(e,t,n){
var r=n.url,s=n.data,c=n.headers,u=l()(n,["url","data","headers"]),d=u.server||t.server||t,h=a(t,u),v=r||p.a.result(t,"syncUrl")||p.a.result(t,"url"),y=p.a.isObject(s)?f.stringifyParams(s):s,I=!!y&&y.indexOf("checkFiles=1")>-1,S=I||d.get("isPersonalCloudServer"),M=o()({data:y,dataType:"text",processData:!1,headers:p.a.extend(i(t),c),timeout:S?m:g},u);return p.a.isFunction(h.getXHROptions)?(M=h.getXHROptions(v,M),"cloudsync"===d.get("platform")&&(M.url=f.join(M.url,{redirect:0}))):M.url=v,
b(e,t,M)},y.wrapError=function(e,t){var n=t.error;t.error=function(i){n&&n(e,i,t),e.trigger("error",e,i,t)}},p.a.extend(y.View.prototype,v.a),y.Model.extend=h.a.extend,y.Collection.extend=h.a.extend,y.Router.extend=h.a.extend,y.View.extend=h.a.extend,y.History.extend=h.a.extend,t.c=y},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=s()(e,["className","children"]);return u.a.createElement("div",r()({className:t},i),n)}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(552),p=n.n(d);i.defaultProps={className:p.a.modalFooter},t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e){return e.ui},function(e,t){return t.playerType},function(e,t){return e[t+"Player"]})}t.a=i;var a=n(4);n.n(a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="myPlex",a="node"},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children,i=e.cellX,a=e.cellY,o=e.cellWidth,s=e.cellHeight,l=e.onMouseMove,c=e.onMouseLeave,u=e.onFocus,d=e.onBlur,p="translate3d("+i+"px, "+a+"px, 0)",h={position:"absolute",width:o,height:s,WebkitTransform:p,msTransform:p,transform:p};return r()("div",{className:t,"data-qa-id":"cellItem",style:h,onMouseMove:l,onMouseLeave:c,onFocus:u,onBlur:d},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(32),y=n(210),b=n(391),I=n(203),S=n(3132),M={dispatchChangeBackground:b.a,dispatchResetBackground:b.c,dispatchGarbageCollectEntities:y.h},D=a()(I.a,{}),C=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.state={hasError:!1},a}return p()(t,e),t.prototype.componentDidMount=function(){
this.props.disableBackgroundPreset||this.props.dispatchChangeBackground({allowLightPreset:this.props.allowBackgroundLightPreset})},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.garbageCollectBudget,n=e.dispatchResetBackground,i=e.dispatchGarbageCollectEntities;n(),i(t&&{budget:t})},t.prototype.componentDidCatch=function(e){m.a.error(e.stack),this.setState({hasError:!0})},t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeBackground,e.dispatchResetBackground,
e.dispatchGarbageCollectEntities,e.disableBackgroundPreset,e.allowBackgroundLightPreset,e.garbageCollectBudget,o()(e,["dispatchChangeBackground","dispatchResetBackground","dispatchGarbageCollectEntities","disableBackgroundPreset","allowBackgroundLightPreset","garbageCollectBudget"]));return this.state.hasError?D:v.a.createElement(S.a,t)},t}(f.Component);C.defaultProps={disableBackgroundPreset:!1,allowBackgroundLightPreset:!1},t.a=Object(g.connect)(null,M)(C)},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"initQuickSearch",function(){return r}),n.d(t,"resetQuickSearch",function(){return o}),n.d(t,"fetchQuickSearch",function(){return s}),n.d(t,"changeQuickSearchQuery",function(){return l}),n.d(t,"changeQuickSearchSettings",function(){return c}),n.d(t,"selectQuickSearchResult",function(){return u}),n.d(t,"navigateQuickSearchResult",function(){return d}),n.d(t,"playQuickSearchResult",function(){return p})
;var i=n(40),a=n(126),r=Object(i.a)(a.G),o=Object(i.a)(a._0),s=Object(i.a)(a.v),l=Object(i.a)(a.b),c=Object(i.a)(a.c),u=Object(i.a)(a._8),d=Object(i.a)(a.J),p=Object(i.a)(a.K)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(18),l=n(17),c=n(14),u=n(69),d=n(1976),p=n(356),h=n(300),f=n(1156),v=n(610),g=n(357),m=n(267),y=n(1157),b=n(1977),I=n(102),S=n(111),M=n(74),D=n(38),C=n(45),j=n(3),P=n(27),O=n(159),T=n(1980),E=n(1982),w=n(1984),A=n(1986),x=l.a.extend({
name:"MetadataModel",context:["server","provider","section","playlist","channel","identifier","mediaTagPrefix","mediaTagVersion","allowSync","containerKey","relatedOptions"],responseContext:["identifier","mediaTagPrefix","mediaTagVersion","allowSync"],entityType:C.g,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state,t=void 0;if(e.source){var n=Object(y.a)(e.source),i=n.serverIdentifier;i!==this.server.get("machineIdentifier")&&(t=Object(D.a)(C.m,i))}
return Object(D.a)(this.entityType,e.key||this.cid,t,this.server.entityID())},idAttribute:"ratingKey",rootPropertyName:"Metadata",cache:new h.a,mergeStrategy:A.a,responseType:function(){var e=this.get("key");return e&&e.indexOf("/system/services/url/lookup")>-1?u.a.xml:Object(v.a)(this.server,this.provider,this.channel)},url:function(){return this.get("key")},urlRoot:function(){return this.get("key")},saveUrl:function(){
return this.get("isPlaylist")&&!this.server.supports("truePlaylistsPath")?"/library/metadata/"+this.get("ratingKey"):o.a.result(this,"url")},cacheKey:function(e){this.channel&&(e=this.normalizeChannelKey(e));var t=this.extractChildrenKey(e.key);return e.source&&(t.key=e.source+t.key),this.server&&this.server.getScopedKey(t.key)},sessionAttrs:{isPreFetched:c.a.boolean,isStreamChangeInProgress:c.a.boolean,metadataState:c.a.string,mediaState:c.a.string,indirectHttpHeaders:c.a.object,
isSettingsUpdating:c.a.boolean,settingsUpdateError:c.a.object,viewCountIncrementedByPlayQueueItemID:c.a.string},syncedAttrs:{elementName:c.a.string,ratingKey:c.a.string,parentRatingKey:c.a.string,grandparentRatingKey:c.a.string,key:c.a.string,childrenKey:c.a.string,parentKey:c.a.string,grandparentKey:c.a.string,primaryExtraKey:c.a.string,augmentationKey:c.a.string,guid:c.a.string,source:c.a.string,attribution:c.a.string,librarySectionID:c.a.string,librarySectionTitle:c.a.string,
librarySectionUUID:c.a.string,librarySectionKey:c.a.string,type:c.a.string,subtype:c.a.string,title:c.a.string,titleSort:c.a.string,originalTitle:c.a.string,parentTitle:c.a.string,grandparentTitle:c.a.string,year:c.a.string,minYear:c.a.string,maxYear:c.a.string,tagline:c.a.string,summary:c.a.string,studio:c.a.string,contentRating:c.a.string,originallyAvailableAt:c.a.string,thumb:c.a.string,parentThumb:c.a.string,grandparentThumb:c.a.string,banner:c.a.string,art:c.a.string,parentArt:c.a.string,
grandparentArt:c.a.string,hero:c.a.string,theme:c.a.string,parentTheme:c.a.string,grandparentTheme:c.a.string,chapterSource:c.a.string,ratingImage:c.a.string,audienceRating:c.a.float,audienceRatingImage:c.a.string,rating:c.a.float,userRating:c.a.float,playbackSpeed:c.a.float,index:c.a.integer,parentIndex:c.a.integer,absoluteIndex:c.a.integer,duration:c.a.integer,viewOffset:c.a.integer,viewCount:c.a.integer,childCount:c.a.integer,leafCount:c.a.integer,viewedLeafCount:c.a.integer,
ratingCount:c.a.integer,mediaCount:c.a.integer,mediaCountOptimized:c.a.integer,extraType:c.a.integer,lastViewedAt:c.a.integer,addedAt:c.a.integer,updatedAt:c.a.integer,deletedAt:c.a.integer,Geolocation:c.a.object,url:c.a.string,playlistID:c.a.integer,playlistType:c.a.string,specialPlaylistType:c.a.string,radio:c.a.boolean,smart:c.a.boolean,readOnly:c.a.boolean,icon:c.a.string,composite:c.a.string,durationInSeconds:c.a.integer,skipChildren:c.a.boolean,skipParent:c.a.boolean,
skipDetails:c.a.boolean,subscriptionID:c.a.string,saved:c.a.boolean,grandparentSubscriptionID:c.a.string,subscriptionType:c.a.string,grandparentSubscriptionType:c.a.string,Channel:c.a.array,Topic:c.a.array,onAir:c.a.boolean,Media:c.a.array,Collection:c.a.array,Director:c.a.array,Producer:c.a.array,Writer:c.a.array,Genre:c.a.array,Mood:c.a.array,Country:c.a.array,Label:c.a.array,Role:c.a.array,Location:c.a.array,Tag:c.a.array,Autotag:c.a.array},sessionRelations:{children:function(){return{
relationClass:n(121).default}}},syncedRelations:{chapters:{relationClass:T.a,rootPropertyName:"Chapter",deferred:!0},overlays:{relationClass:w.a,rootPropertyName:"Overlay",deferred:!0},preferences:{relationClass:p.a,rootPropertyName:"Preferences",deferred:!0},onDeck:function(){return{relationClass:x,rootPropertyName:"OnDeck",deferred:!0}},related:function(){var e={skipCache:!0};return this.relatedOptions&&o.a.extend(e,this.relatedOptions),{relationClass:n(247).default,
rootPropertyName:"RelatedHubs",deferred:!0,options:e}},popularLeaves:function(){return{relationClass:n(121).default,rootPropertyName:"PopularLeaves",deferred:!0}},extras:function(){return{relationClass:n(121).default,rootPropertyName:"Extras",deferred:!0,attrs:function(e){return{containerKey:s.join([e.key,"extras"])}}}},concerts:{relationClass:E.a,rootPropertyName:"Concert",deferred:!0},stations:function(){return{relationClass:n(425).default,rootPropertyName:"Stations",deferred:!0}},
transcodeSession:{relationClass:d.a,rootPropertyName:"TranscodeSession",deferred:!0}},derivedAttrs:{identifier:function(){return this.identifier},serverEntityID:function(){if(!this.state)return null;var e=this.get("source");if(e){var t=Object(y.a)(e),n=t.serverIdentifier;return Object(D.a)(C.m,n)}return this.server?this.server.entityID():null},providerEntityID:function(){if(!this.state)return null;var e=this.get("source");if(e){var t=Object(y.a)(e),n=t.providerIdentifier
;return Object(D.a)(C.k,n,this.get("serverEntityID"))}return this.provider?this.provider.entityID():null},mediaTagPrefix:function(){return this.mediaTagPrefix},mediaTagVersion:function(){return this.mediaTagVersion},allowSync:function(){return this.allowSync},containerKey:function(){return this.containerKey},isLibraryItem:function(){return this.isLibraryItem(this.get("identifier"),this.get("key"))},isChannelItem:function(){return!!this.channel},isPlaylist:function(){
return this.get("type")===P.i&&!this.get("radio")},isFolder:function(){return/\/folder\?parent\=/.test(this.get("key"))},isExtra:function(){return!!this.get("extraType")},isPremium:function(){var e=this.get("Media")||[];return o.a.any(e,function(e){return e.premium})},unviewedLeafCount:function(){var e=this.get("leafCount"),t=this.get("viewedLeafCount");if(e)return e-t},downloadUrl:function(){var e=this,t=this.get("Media");if(t&&1===t.length){var n=o.a.first(o.a.first(t).Part),i=n&&n.key
;if(i)return function(){var t=s.join(i,{download:1});return e.server.resolveUrl(t,{appendToken:!0})}}}},defaults:{isStreamChangeInProgress:!1,isSettingsUpdating:!1,settingsUpdateError:null,rating:0,onAir:!1,skipDetails:!1,Media:[],Collection:[],Director:[],Producer:[],Writer:[],Genre:[],Mood:[],Country:[],Label:[],Topic:[],Channel:[],Role:[],Location:[],Autotag:[],Tag:[]},initialize:function(){this.setChildrenKey(this.get("childrenKey")),
this.on("change:childrenKey",this.onChildrenKeyChange,this)},uninitialize:function(){this.off("change:childrenKey",this.onChildrenKeyChange,this),this.stopListening()},fetch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data&&(this._populatedParams=o.a.extend({},this._populatedParams,e.data)),e.usePopulatedParams&&(e.data=this._populatedParams),l.a.prototype.fetch.call(this,e)},augmentResponseText:function(e,t){return t===u.a.xml?Object(S.b)(e):e},
augmentResponse:function(e,t){var n=this,i=e[this.rootPropertyName];i&&(Array.isArray(i)&&(i=i[0]),i.attribution=e.attribution,i.librarySectionID=e.librarySectionID,i.librarySectionTitle=e.librarySectionTitle,i.librarySectionUUID=e.librarySectionUUID,i.augmentationKey=e.augmentationKey),this.responseContext.forEach(function(t){var a=e[t]||i&&i[t];void 0!==a&&n.setContext(t,a)});var a=i||e,r=a.Related,s=a.OnDeck,l=a.Preferences,c=this.extractChildrenKey(a.key)
;return c.childrenKey&&(a.childrenKey=c.childrenKey,a.key=c.key),a.Media=this.convertMediaItems(a.Media),a.Channel=this.convertChannelItems(a.Channel),a.Topic=this.convertTopicItems(a.Topic),r&&(a.RelatedHubs=o.a.compact([].concat(r.Hub,r.Directory))),s&&(a.OnDeck=s.Metadata),l&&(a.Preferences=l.Setting),this.normalize(a)},extractChildrenKey:function(e){var t=/(.*)\/(children|items)$/.exec(e),n=void 0;return t&&(n=e,e=t[1]),{childrenKey:n,key:e}},setChildrenKey:function(e){
e&&("album"===this.get("type")&&(e=s.join(e,{includeRelated:1})),this.get("children").set("containerKey",e))},convertMediaItems:function(e){var t=M.a.parseArray(e);return o.a.each(t,function(e){I.a.parseBoolean(e,["indirect","optimizedForStreaming","premium","premiere","selected"]),I.a.parseInteger(e,["id","duration","width","height","bitrate","audioChannels","proxyType","beginsAt","endsAt","beginOffset","startOffsetSeconds","endOffsetSeconds"]),
null==e.id&&null==e.uuid&&(e.uuid=e.container+"-"+e.protocol+"-"+e.audioCodec),I.a.parseArray(e,"Part"),o.a.each(e.Part,function(e){null!=e.exists&&(e.exists=M.a.parseBoolean(e.exists)),null!=e.accessible&&(e.accessible=M.a.parseBoolean(e.accessible)),I.a.parseInteger(e,["id","duration","size"]),I.a.parseBoolean(e,"optimizedForStreaming"),I.a.parseEncodedString(e,"file"),I.a.parseArray(e,"Stream"),o.a.each(e.Stream,function(e){
I.a.parseBoolean(e,["anamorphic","selected","default","forced","timed","cabac","hasScalingMatrix","headerStripping"]),I.a.parseInteger(e,["id","index","streamType","duration","width","height","bitrate","bitDepth","level","refFrames","samplingRate","channels","minLines"]),I.a.parseFloat(e,"frameRate")})})}),this.addNoneSubtitlesStreams(t)},convertChannelItems:function(e){var t=M.a.parseArray(e);return o.a.each(t,function(e){I.a.parseBoolean(e,["followed","muted"])}),t},
convertTopicItems:function(e){var t=M.a.parseArray(e);return o.a.each(t,function(e){I.a.parseBoolean(e,["followed","muted"])}),t},addNoneSubtitlesStreams:function(e){var t=O.a.get("subtitles");return o.a.each(e,function(e){var n=o.a.first(e.Part);if(n&&n.Stream&&Object(g.a)(e)){var i=Object(m.a)(e,{streamType:t.id});if(!i.find(function(e){return e.id===f.a})){var a=i.find(function(e){return e.selected}),r={id:0,streamType:t.id,language:Object(j.default)("None")};a||(r.selected=!0),
n.Stream.unshift(r)}}}),e},normalize:function(e){return this.channel?(e=this.normalizeChannelKey(e),e=this.normalizeChannelType(e),e=this.normalizeChannelMetadata(e)):e=this.normalizeType(e),e},normalizeType:function(e){return"photo"===e.type&&e.childrenKey&&(e.type="photoalbum"),e},normalizeChannelKey:function(e){var t=e.key&&e.key.split("/");return t&&(1===t.length&&this.containerKey&&(e.hasInvalidKey=!0,e.originalKey=e.key,e.key=this.containerKey+"/"+e.key),
e.ratingKey||(e.ratingKey=e.originalKey||e.key)),e},normalizeChannelType:function(e){return e.type||(e.mediaType?e.type=e.mediaType:e.elementName&&(e.type=e.elementName.toLowerCase())),/image/i.test(e.type)&&(e.type="photo"),Object(P.r)(e.type)||(e.type="channelDirectory"),e},normalizeChannelMetadata:function(e){return e.label?e.title=e.label:e.artist&&(e.track?(e.title=e.track,e.originalTitle=e.artist,e.parentTitle=e.album,e.grandparentTitle=e.albumArtist):e.album?(e.title=e.album,
e.parentTitle=e.artist):e.title=e.artist),e.totalTime&&(e.duration=e.totalTime),e},refreshChildren:function(){var e=this.get("children");e&&e.populatePromise&&e.fetch().always(function(){e.get("metadataItems").invoke("refreshChildren")})},resolveIndirect:function(e,t){var n=this,i=a.a.Deferred();if(!e||!t)return i.reject(this).promise();if(!e.indirect)return i.resolve(this).promise();if(t.postURL){var r=o.a.find([this.server,this.server.parent.get("primaryServer")],function(e){
return e&&e.get("isConnected")&&e.get("isFullServer")});if(r)return this.resolvePostUrl(e,t,r)}var s=t.key;this.server.get("isCloud")&&(s=this.server.swizzleNodeUrl(s));var l=a.a.ajax(this.server.getXHROptions(s));return l.done(function(a){n.mergeIndirectResponse(a,e,t)?i.resolve(n):i.reject(n)}),l.fail(function(){i.reject(n)}),i.promise()},resolvePostUrl:function(e,t,n){var i=this,r=a.a.Deferred(),o=t.key,l=t.postURL,c=n.getXHROptions("/system/proxy");c.headers=c.headers||{},
c.headers["X-Plex-Url"]=l;var u=a.a.ajax(c);return u=u.then(function(e,t,n){var r=s.join(o,{postURL:l});i.server.get("isCloud")&&(r=i.server.swizzleNodeUrl(r));var c=i.server.getXHROptions(r);return c.type="POST",c.headers=c.headers||{},c.data=n.getAllResponseHeaders()+"\r\n"+e,a.a.ajax(c)}),u.done(function(n,a,o){i.mergeIndirectResponse(n,e,t)?r.resolve(i):r.reject(i)}),u.fail(function(){r.reject(i)}),r.promise()},mergeIndirectResponse:function(e,t,n){var i=M.a.parseXML(Object(S.b)(e))
;if(!(i&&i.Metadata&&i.Metadata.Media&&i.Metadata.Media.Part))return!1;var a=o.a.first(this.convertMediaItems(i.Metadata.Media)),r=M.a.parseArray(a.Part),s=o.a.first(r);if(!a||!s)return!1;if(a.indirect=!1,o.a.extend(t,o.a.omit(a,"Part")),o.a.extend(n,s),r.length>1){var l;(l=t.Part).push.apply(l,r.slice(1))}if(i.httpHeaders){for(var c,u=new RegExp("([^=]+)=([^&]+)&?","g"),d={};c=u.exec(i.httpHeaders);)c[1]in d?(Array.isArray(d[c[1]])||(d[c[1]]=[d[c[1]]]),d[c[1]].push(c[2])):d[c[1]]=c[2]
;this.set("indirectHttpHeaders",d)}return!0},batchAdd:function(e,t,n){var i=o.a.map(e,function(e){return e.get("ratingKey")}),r=s.join(["/library/metadata",i.join(","),t,"add"],{tag:n}),l=this.server.getXHROptions(r,{type:"PUT"});return a.a.ajax(l)},getDownloadUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.get("Media")[e];if(t){var n=o.a.first(t.Part),i=n&&n.key;if(i){var a=s.join(i,{download:1});return this.server.resolveUrl(a,{appendToken:!0})}}},
getFilepath:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.get("Media")[e];if(t){var n=o.a.first(t.Part);if(n)return n.file}},getLocation:function(){var e=this.get("Location");return e.length?o.a.first(e).path:this.getFilepath()},getMediaKey:function(){var e=o.a.first(this.get("Media"));if(e){var t=o.a.first(e.Part);if(t)return t.key}return this.get("key")},isLibraryItem:function(e,t){
return!(this.provider&&!this.provider.get("isLibraryProvider"))&&Object(b.a)(e,t)},isPlexMusicItem:function(){var e=this.section;return e&&"com.plexapp.agents.plexmusic"===e.get("agent")},onChildrenKeyChange:function(e,t){this.setChildrenKey(t)}});t.a=x},function(e,t,n){"use strict";function i(e){var t=e&&e.get("isCloud"),n=e&&e.supports("json")&&!e.get("onlyXML")&&e.get("isFullServer")&&!e.get("isPersonalCloudServer");return t||n?a.a.json:a.a.xml}t.a=i;var a=n(69)},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=0,u=[],d=r.a.Layout.extend({className:"modal fade",focusDelay:500,animationDelay:500,events:{"hide.bs.modal":"onHide"},initialize:function(e){this.once("render",function(){c+=1,l.a.trigger("anyModalOpen")}),this.once("close",function(){0===(c-=1)&&l.a.trigger("allModalsClosed")})},hide:function(){this.isClosed||this.isHidden||this.$el.modal("hide")},onRender:function(){this.rerender||(this.isForced?this.$el.modal({backdrop:"static",
keyboard:!1}):(this.listenTo(l.a,"shortcut:escape",s.a.bind(function(){u[0]===this&&this.hide()},this)),this.listenToOnce(this,"close",function(){var e=u.indexOf(this);-1!==e&&u.splice(e,1)}),u.unshift(this),this.$el.modal()),a()(":focus").blur())},onHide:function(e){this.isHidden=!0,s.a.each(this.panes,function(e,t){var n=e.constructor.onModalClose;n&&n.apply(this)},this),setTimeout(s.a.bind(function(){l.a.trigger("hide:modal",this),this.trigger("close")},this),this.animationDelay)}});t.a=d
},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=i.a.CollectionView.extend({appendHtml:function(e,t,n){return this.sorted?this.sortedAppendHtml.apply(this,arguments):this.reversed?this.reversedAppendHtml.apply(this,arguments):i.a.CollectionView.prototype.appendHtml.apply(this,arguments)},sortedAppendHtml:function(e,t,n){if(e.isBuffering){var i=e.elBuffer.childNodes;i.length<=n?e.elBuffer.appendChild(t.el):e.elBuffer.insertBefore(t.el,i[n]),e._bufferedChildren.push(t)}else{
var a=e.itemViewContainer?e.$(e.itemViewContainer):e.$el,r=a.children();r.size()<=n?a.append(t.el):r.eq(n).before(t.el)}},reversedAppendHtml:function(e,t,n){if(e.isBuffering)e.elBuffer.insertBefore(t.el,e.elBuffer.firstChild),e._bufferedChildren.push(t);else{(e.itemViewContainer?e.$(e.itemViewContainer):e.$el).prepend(t.el)}},measureList:function(){if(this.children.length){var e=this.children._views,t=e[r.a.first(r.a.keys(e))];r.a.defer(r.a.bind(function(){this.itemWidth=t.$el.outerWidth(!0),
this.itemHeight=t.$el.outerHeight(!0),this.itemMarginRight=parseInt(t.$el.css("margin-right"),10),this.itemMarginBottom=parseInt(t.$el.css("margin-bottom"),10),this.triggerMethod("measure",this)},this))}},getViewForModel:function(e){var t=this.children._indexByModel[e.cid];return this.children._views[t]},reorder:function(){var e=this.children,t=this.collection.models,n=r.a.map(t,function(t,n){var i=e.findByModel(t);return i._index=n,i.el});this.$el.append(n)},onCollectionRendered:function(){
this.measure&&this.measureList()}});t.a=o},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({iconComponent:c.a},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(2834),c=n(26);t.a=i},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({identifier:a.a.string.isRequired,isLibraryProvider:a.a.bool.isRequired,isPopulated:a.a.bool.isRequired,protocols:a.a.object.isRequired,features:a.a.object.isRequired})},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({
key:a.a.string.isRequired,value:a.a.oneOfType([a.a.string,a.a.array]).isRequired,operator:a.a.string.isRequired,type:a.a.string})},function(e,t,n){"use strict";var i=n(50),a=function(){var e=document.createElement("canvas");return!!(e&&e.getContext&&e.getContext("2d"))}(),r={isHostedHttps:"https:"===window.location.protocol,hasConsole:!!(window.console&&window.console.log&&window.console.log.call),hasWebSocket:!!window.WebSocket,hasEventSource:!!window.EventSource,
hasReplaceState:!(!window.history||!window.history.replaceState),hasFileUpload:!!(window.File&&window.FileList&&window.FileReader),hasMediaSource:!(!window.MediaSource&&!window.WebKitMediaSource),hasObjectUrl:function(){return!("ie"===i.a.id&&11===parseInt(i.a.version,10)||i.a.presto||!(window.URL&&window.URL.createObjectURL&&window.URL.revokeObjectURL))}(),hasBlob:function(){try{return!!new window.Blob}catch(e){return!1}}(),hasFullscreen:function(){var e=document.createElement("div")
;return!!(e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen)}(),hasCanvas:a,hasWebGL:function(){if(!a)return!1;var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");return!!t&&t instanceof window.WebGLRenderingContext}(),hasTouchScreen:!!("ontouchstart"in window),hasPageVisibility:function(){return!0===document.hidden||!1===document.hidden}(),hasWebKitPageVisibility:function(){
return!0===document.webkitHidden||!1===document.webkitHidden}(),hasPassiveEventListeners:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),hasWebSpeech:!!window.speechSynthesis};t.a=r},function(e,t,n){"use strict";function i(e,t){Array.isArray(t)?o.a.each(t,e):e(t)}function a(e){return o.a.reduce(e,function(e,t){var n=t.split("="),i=n[0],a=n[1];try{i=decodeURIComponent(i),
a=void 0===a?null:decodeURIComponent(a),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]:e[i]=a}catch(e){c.a.warn("Unable to decode query string at "+i)}return e},{})}var r=n(10),o=n.n(r),s=n(793),l=n.n(s),c=n(32),u=new l.a(!1,"",!0),d={parseXML:function(e){if(!e)return{};var t=u.parseXmlString(e);if(!t)return c.a.warn("parseXML: No XML document created"),{};if(t.getElementsByTagName("parsererror").length)return c.a.warn("parseXML: Errors found while parsing XML document"),{}
;try{return u.xml2json(t)}catch(e){return c.a.warn("parseXML: Unable to parse XML: "+e.message),{}}},replaceXMLElementNames:function(e,t,n){Array.isArray(t)||(t=[t]);var i=t.join("|"),a=new RegExp("<("+i+")","g"),r=new RegExp("</("+i+")>","g");return e=e.replace(a,"<"+n+' elementName="$1"'),e=e.replace(r,"</"+n+">")},parseEncodedString:function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];if(null==n)e[t]="";else try{e[t]=decodeURIComponent(n)}catch(e){}}}e&&i(n,t)},
parseInteger:function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];e[t]=null==n||""===n?0:parseInt(n,10)}}e&&i(n,t)},parseFloat:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];e[t]=null===n||""===n?0:parseFloat(n)}}e&&i(n,t)}),parseBoolean:function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];e[t]=1===Number(n)||"true"===n}}e&&i(n,t)},
parseArray:function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];Array.isArray(n)||(e[t]=[n])}else e[t]=[]}e&&i(n,t)},parseQueryString:function(e,t,n){function r(t){if(e.hasOwnProperty(t)){var i=e[t];if(!o.a.isObject(i)){if(!o.a.isString(i))return void(e[t]={});if(!(i=i.trim().replace(/^(\?|#)/,"")))return void(e[t]={});e[t]=a(i.split(n))}}}e&&(n||(n="&"),i(r,t))}};t.a=d},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({},e,{
selectedIconAriaLabel:Object(c.default)("Selected")}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(2388),c=n(3),u=n(26);i.defaultProps={iconComponent:u.a},t.a=i},,function(e,t,n){"use strict";var i=n(1),a=n.n(i),r=a.a.shape({key:a.a.string,hubKey:a.a.string,title:a.a.string,icon:a.a.string,type:a.a.string,subtype:a.a.string,agent:a.a.string,updatedAt:a.a.number,scannedAt:a.a.number,context:a.a.string});t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a
}),n.d(t,"c",function(){return r});var i="news",a="podcast",r="webshow"},function(e,t,n){"use strict";function i(e){return l[e]}n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),t.c=i;var a,r=n(303),o="audioVideo",s="photo",l=(a={},a[r.a]=o,a[r.c]=o,a[r.b]=s,a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.metadataItems});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children
;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3952)),c=n.n(l);i.defaultProps={className:c.a.innerContent},t.a=i},function(e,t,n){"use strict";var i=n(351),a=n.n(i),r=n(10),o=n.n(r),s=/\s+/,l=function(e,t,n,i){if(!n)return!0;if("object"===(void 0===n?"undefined":a()(n))){for(var r in n)e[t].apply(e,[r,n[r]].concat(i));return!1}if(s.test(n)){for(var o=n.split(s),l=0,c=o.length;l<c;l++)e[t].apply(e,[o[l]].concat(i));return!1}return!0
},c=function(e,t){var n,i=-1,a=e.length,r=t[0],o=t[1],s=t[2];switch(t.length){case 0:for(;++i<a;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r);return;case 2:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r,o);return;case 3:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r,o,s);return;default:for(;++i<a;)(n=e[i]).callback.apply(n.ctx,t)}},u={on:function(e,t,n){return l(this,"on",e,[t,n])&&t?(this._events||(this._events={}),
(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,n){if(!l(this,"once",e,[t,n])||!t)return this;var i=this,a=o.a.once(function(){i.off(e,a),t.apply(this,arguments)});return a._callback=t,this.on(e,a,n)},off:function(e,t,n){var i,a,r,s,c,u,d,p;if(!this._events||!l(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(s=e?[e]:o.a.keys(this._events),c=0,u=s.length;c<u;c++)if(e=s[c],r=this._events[e]){
if(this._events[e]=i=[],t||n)for(d=0,p=r.length;d<p;d++)a=r[d],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&i.push(a);i.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=[].slice.call(arguments,1);if(!l(this,"trigger",e,t))return this;var n=this._events[e],i=this._events.all;return n&&c(n,t),i&&c(i,arguments),this},stopListening:function(e,t,n){var i=this._listeningTo;if(!i)return this;var r=!t&&!n
;n||"object"!==(void 0===t?"undefined":a()(t))||(n=this),e&&((i={})[e._listenId]=e);for(var s in i)e=i[s],e.off(t,n,this),(r||o.a.isEmpty(e._events))&&delete this._listeningTo[s];return this},hasListener:function(e){var t=this._events&&this._events[e];return Array.isArray(t)&&t.length>0}},d={listenTo:"on",listenToOnce:"once"};o.a.each(d,function(e,t){u[t]=function(t,n,i){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=o.a.uniqueId("l"))]=t,
i||"object"!==(void 0===n?"undefined":a()(n))||(i=this),t[e](n,i,this),this}}),u.bind=u.on,u.unbind=u.off,t.a=u},function(e,t,n){"use strict";function i(e,t){var n=t&&t.includeDirectories,i=n?["Directory"].concat(o):o,s=Object(r.a)(e,i,"Metadata");return n?s:Object(a.a)(s)}n.d(t,"a",function(){return o});var a=n(1978),r=n(1979),o=["Video","Track","Photo","Playlist"];t.b=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children,i=e.kind,a=e.isDisabled,o=e.isHidden,l=(e.onMenuEnable,e.onMenuDisable,s()(e,["className","children","kind","isDisabled","isHidden","onMenuEnable","onMenuDisable"]));return u.a.createElement(d.a,r()({className:(t||"")+" "+(f.a.menuItem||"")+" "+(f.a[i]||"")+" "+(a&&f.a.isDisabled||"")+" "+(o&&f.a.isHidden||""||""),"data-qa-id":"dropdownItem",role:"menuitem"},l),n)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(20),p=n(51),h=n(2389),f=n.n(h);i.defaultProps={kind:p.DEFAULT,isDisabled:!1},t.a=i},,function(e,t,n){"use strict";function i(e){var t=e.children,n=e.metricsPage,i=e.metricsProperties,a=s()(e,["children","metricsPage","metricsProperties"]);return u.a.createElement(d.a,a,u.a.createElement(p.a,r()({},i,{page:n}),t))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(2832),p=n(318);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.children,n=r()(e,["children"]);return l.a.createElement("div",n,t)}var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(2859),u=n.n(c);i.defaultProps={className:u.a.buttonBar},t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return v}),n.d(t,"q",function(){return g}),n.d(t,"r",function(){return m}),n.d(t,"n",function(){return y}),n.d(t,"d",function(){return b}),n.d(t,"o",function(){return I}),
n.d(t,"s",function(){return S}),n.d(t,"i",function(){return M}),n.d(t,"p",function(){return D}),n.d(t,"j",function(){return C}),n.d(t,"f",function(){return j}),n.d(t,"e",function(){return P}),n.d(t,"h",function(){return O}),n.d(t,"l",function(){return T}),n.d(t,"g",function(){return E}),n.d(t,"k",function(){return w}),n.d(t,"m",function(){return A})
;var i,a=n(6),r=n.n(a),o=n(40),s=n(19),l=n(124),c=n(249),u=n(2940),d=n(70),p=n(36),h="server/confirmRelayConnection",f="server/updateActivity",v="server/finishActivity",g=Object(o.a)("server/testServer"),m=Object(o.a)("server/testServers"),y=Object(o.a)("server/setRelayReminder"),b=Object(o.a)(h),I=Object(o.a)("server/startActivity"),S=Object(o.a)(f),M=Object(o.a)(v),D=Object(o.a)("server/startSyntheticActivity"),C=Object(o.a)("server/finishSyntheticActivity"),j=Object(o.a)("server/eventConnectionOpen"),P=Object(o.a)("server/eventConnectionClose"),O=Object(o.a)("server/fetchProviders"),T=Object(o.a)("server/populateProviders"),E=Object(o.a)("server/fetchLibraries"),w=Object(o.a)("server/populateLibraries"),A=(i={},
i["server/setRelayReminder"]=function(e,t){var n=e.get("experienceSettings"),i=n.get("relayReminders"),a=i[t]||{};i[t]=Object(u.a)(a.times),n.save("relayReminders",r()({},i))},i[h]=function(e,t){},i["server/startActivity"]=function(e,t,n){var i=Object(d.j)(e,t),a=t.activity;i.get("activities").add([a],{parse:!0}),a.synthetic||n(C({serverEntityID:t.serverEntityID,activityType:a.type}))},i[f]=function(e,t){Object(d.j)(e,t).get("activities").add([t.activity],{parse:!0,merge:!0})},
i[v]=function(e,t){Object(d.j)(e,t).get("activities").remove(t.activity.uuid)},i["server/startSyntheticActivity"]=function(e,t,n){Object(p.a)(function(){n(I({serverEntityID:t.serverEntityID,activity:{type:t.activityType,synthetic:!0,uuid:t.activityType+"-"+Date.now()}}))})},i["server/finishSyntheticActivity"]=function(e,t){var n=Object(d.j)(e,t),i=n.get("activities"),a=i.findWhere({type:t.activityType,synthetic:!0});a&&i.remove(a)},i["server/eventConnectionOpen"]=function(e,t){
var n=Object(d.k)(e,t),i=Object(d.j)(e,t),a=i.get("activities");n.set("hasEventConnection",!0),n.get("isFullOwnedServer")&&a.fetch()},i["server/eventConnectionClose"]=function(e,t){Object(d.k)(e,t).set("hasEventConnection",!1)},i["server/fetchProviders"]=Object(l.a)({key:"providers",getModel:d.k}),i["server/populateProviders"]=Object(c.a)({key:"providers",fetchActionType:"server/fetchProviders",getModel:d.k}),i["server/fetchLibraries"]=Object(l.a)({key:"libraries",getModel:d.j}),
i["server/populateLibraries"]=Object(c.a)({key:"libraries",fetchActionType:"server/fetchLibraries",getModel:d.j}),i["server/testServer"]=function(e,t){var n=Object(d.k)(e,t);s.a.trigger("test:server",n)},i["server/testServers"]=function(){s.a.trigger("test:servers")},i)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3139)),c=n.n(l);i.defaultProps={
className:c.a.pageHeaderRight},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3801)),c=n.n(l);i.defaultProps={className:c.a.leftTitle},t.a=i},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=n.n(c),d=n(0),p=n.n(d),h=function(e){function t(n,i){a()(this,t);var r=o()(this,e.call(this,n,i))
;return r.metricsContext=n.metricsContext,r}return l()(t,e),t.prototype.getChildContext=function(){return{metricsContext:this.metricsContext}},t.prototype.render=function(){return this.props.children?p.a.Children.only(this.props.children):null},t}(d.Component);h.childContextTypes={metricsContext:u.a.string},t.a=h},function(e,t){var n=e.exports={version:"2.5.4"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var i=n(10),a=n.n(i),r=n(18),o=n(17),s=n(14),l=n(358),c=n(69),u=n(610),d=n(111),p=n(74),h=n(38),f=n(45),v=n(425),g=o.a.extend({mixins:[l.a],name:"MetadataListModel",context:["server","provider","section","metadataItem","channel","identifier","mediaTagPrefix","mediaTagVersion","allowSync","excludeFields","excludeElements","excludeAllLeaves","includeRelated","includeCollections"],responseContext:["identifier","mediaTagPrefix","mediaTagVersion","allowSync"],entityType:f.h,entityID:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(h.a)(this.entityType,e.containerKey||e.key||this.cid,(this.provider||this.server).entityID())},idAttribute:"containerKey",collectionName:"metadataItems",responseType:function(){return Object(u.a)(this.server,this.provider,this.channel)},url:function(){var e=this.getPaginatedUrl(this.get("containerKey")||this.get("key")),t={excludeElements:this.excludeElements?this.excludeElements:void 0,
excludeFields:this.excludeFields?this.excludeFields:void 0,excludeAllLeaves:this.excludeAllLeaves?1:void 0,includeRelated:this.includeRelated?1:void 0,includeCollections:this.includeCollections?1:void 0};return e?r.join(e,t):e},sessionAttrs:{isMetadataList:s.a.boolean,containerKey:s.a.string,containerTitle:s.a.string,currentPageStart:s.a.integer,currentPageSize:s.a.integer,populatedRange:s.a.object,isPending:s.a.boolean,isPopulated:s.a.boolean,error:s.a.object},syncedAttrs:{key:s.a.string,
librarySectionID:s.a.string,totalSize:s.a.integer,viewGroup:s.a.string,title:s.a.string,thumb:s.a.string,art:s.a.string,banner:s.a.string,theme:s.a.string,allowSync:s.a.boolean},syncedRelations:{metadataItems:{relationClass:v.default,rootPropertyName:"Metadata",options:function(e){return{containerKey:e.containerKey||e.key}},setOptions:function(e){return{remove:e.remove,at:e.at}}}},derivedAttrs:{firstItemType:function(){var e=this.getCollection().first()
;return e?e.get("type"):this.attributes.firstItemType},firstItemSubtype:function(){var e=this.getCollection().first();return e?e.get("subtype"):this.attributes.firstItemSubtype},isFirstItemLibraryItem:function(){var e=this.getCollection().first();return e?e.get("isLibraryItem"):this.attributes.isFirstItemLibraryItem}},defaults:function(){return{isMetadataList:!0,populatedRange:{start:0,end:0,size:0},isPending:!0,isPopulated:!1,error:null}},initialize:function(e){this._totalSizeAdjustment=0,
this.startPopulatedRangeMonitor(),this.on("change:key change:containerKey",this.onContainerKeyChange,this)},uninitialize:function(){this.off("change:key change:containerKey",this.onContainerKeyChange,this),this.stopListening()},augmentResponseText:function(e,t){var n=this.get("containerKey")||this.get("key"),i=/\/folder(\?|$)/.test(n);return t===c.a.xml?Object(d.b)(e,{includeDirectories:i}):e},augmentResponse:function(e,t){var n=this;this.responseContext.forEach(function(t){var i=e[t]
;void 0!==i&&n.setContext(t,i)});var i=p.a.parseArray(e.Metadata),r=p.a.parseInteger(e.totalSize);return this.allowAllLeaves||(e.Metadata=a.a.reject(i,function(e){var t=/\/allLeaves$/.test(e.key);return t&&(this._totalSizeAdjustment-=1),t},this)),r&&this._totalSizeAdjustment&&(e.totalSize=r-this._totalSizeAdjustment),!e.title&&e.title1&&(e.title=e.title1),e},onContainerKeyChange:function(e,t){var n=this.get("metadataItems"),i=this.syncedRelations.metadataItems.options(this.attributes)
;a.a.each(i,function(e,t){n.setContext(t,e)})}});t.default=g},function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return V});var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(87),l=n(10),c=n.n(l),u=n(101),d=n(37),p=n(32),h=n(18),f=n(16),v=n(354),g=n(43),m=n(17),y=n(796),b=n(14),I=n(62),S=n(1991),M=n(810),D=n(797),C=n(507),j=n(1168),P=n(300),O=n(517),T=n(95),E=n(271),w=n(38),A=n(45),x=n(812),N=n(516),L=n(619),k=n(352),R=n(160),z={PENDING:"pending",CONNECTED:"connected",
UNAVAILABLE:"unavailable",UNAUTHORIZED:"unauthorized"},U={PENDING:"pending",RESOLVED:"resolved",REJECTED:"rejected"},B={SECONDARY:"secondary"},F=["camera_upload","cloudsync","content_filter","home","lyrics","music_videos","pass","premium_music_metadata","sync","trailers"],_="ok",V="none",H=m.a.extend({mixins:[D.a],name:"ServerModel",entityType:A.m,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state
;return Object(w.a)(this.entityType,e.machineIdentifier||this.cid)},idAttribute:"machineIdentifier",connectionTestTimeout:1e4,responseType:function(){return Object(T.a)(this)},mergeStrategy:C.a,cache:new P.a,persistInCache:!0,sessionAttrs:{connectionTestResult:b.a.oneOf(z.PENDING,z.CONNECTED,z.UNAVAILABLE,z.UNAUTHORIZED).isRequired,promiseState:b.a.oneOf(U.PENDING,U.RESOLVED,U.REJECTED).isRequired,sections:b.a.instanceOf(M.a).isRequired,playlists:b.a.instanceOf(S.a).isRequired,
isShared:b.a.boolean.isRequired,isBundled:b.a.boolean.isRequired,isCloud:b.a.boolean.isRequired,isMerged:b.a.boolean.isRequired,isInstallingServerUpdate:b.a.boolean.isRequired,superToken:b.a.string,accessToken:b.a.string,sourceTitle:b.a.string,publicAddressMatches:b.a.boolean,httpsRequired:b.a.boolean,presence:b.a.boolean,home:b.a.boolean,synced:b.a.boolean,createdAt:b.a.integer,lastSeenAt:b.a.integer,ownerId:b.a.integer,hasEventConnection:b.a.boolean,serverClass:b.a.oneOf(B.SECONDARY),
onlyXML:b.a.boolean,isProvidersPending:b.a.boolean.isRequired,isProvidersPopulated:b.a.boolean.isRequired,providersError:b.a.object},sessionRelations:{activeConnection:{relationClass:k.a,deferred:!0},connections:{relationClass:L.b,options:function(){return{server:this}}}},syncedRelations:{providers:{relationClass:j.a,rootPropertyName:"MediaProvider",options:function(){return{server:this}}}},syncedAttrs:{machineIdentifier:b.a.string,friendlyName:b.a.string,startState:b.a.string,
version:b.a.string,platform:b.a.string,platformVersion:b.a.string,sync:b.a.boolean,backgroundProcessing:b.a.boolean,multiuser:b.a.boolean,transcoderLyrics:b.a.boolean,myPlex:b.a.boolean,myPlexMappingState:b.a.string,myPlexSigninState:b.a.oneOf(_,V,"invalid"),myPlexSubscription:b.a.boolean,myPlexUsername:b.a.string,transcoderPhoto:b.a.boolean,transcoderAudio:b.a.boolean,transcoderVideo:b.a.boolean,transcoderVideoRemuxOnly:b.a.boolean,transcoderSubtitles:b.a.boolean,
transcoderActiveVideoSessions:b.a.integer,allowMediaDeletion:b.a.boolean,allowCameraUpload:b.a.boolean,allowChannelAccess:b.a.boolean,allowSync:b.a.boolean,diagnostics:b.a.list,companionProxy:b.a.boolean,updater:b.a.boolean,isDesktop:b.a.boolean,photoAutoTag:b.a.boolean,itemClusters:b.a.boolean,updatedAt:b.a.integer,countryCode:b.a.string,ownerFeatures:b.a.list,mediaProviders:b.a.integer,maxUploadBitrate:b.a.integer,maxUploadBitrateReason:b.a.string,maxUploadBitrateReasonMessage:b.a.string,
streamingBrainABRVersion:b.a.integer,livetv:b.a.integer},derivedAttrs:{debugName:function(){var e=this.get("machineIdentifier"),t=this.get("connections"),n=1===t.length&&t.at(0).get("isLoopback"),i=this.get("friendlyName");return!i&&n&&(i="[Loopback]"),i||(e?"["+e+"]":"[Anonymous]")},shortVersion:function(){return Object(x.a)(this.get("version"))},isConnected:function(){return this.get("connectionTestResult")===z.CONNECTED},isUnavailable:function(){
return this.get("connectionTestResult")===z.UNAVAILABLE},isUnauthorized:function(){return this.get("connectionTestResult")===z.UNAUTHORIZED},isPending:function(){return this.get("promiseState")===U.PENDING},isPrivateConnection:function(){var e=this.get("activeConnection");return!(!e||!e.get("isPrivate"))},isResolved:function(){return this.get("promiseState")===U.RESOLVED},isRejected:function(){return this.get("promiseState")===U.REJECTED},isRelayed:function(){var e=this.get("activeConnection")
;return!(!e||!e.get("relay"))},isSecure:function(){var e=this.get("activeConnection");return!(!e||!e.get("isSecure"))},hasHttpsConnections:function(){return!!this.get("connections").findWhere({isHttps:!0})},hasFallbackConnections:function(){return!!this.get("connections").findWhere({isFallback:!0})},isCloudSyncServer:function(){return!!this.get("synced")},isPersonalCloudServer:function(){return"Cloud"===this.get("platform")},isMobileServer:function(){
return!this.get("synced")&&this.get("serverClass")===B.SECONDARY},isFullServer:function(){return!this.get("isCloud")&&!this.get("isCloudSyncServer")&&!this.get("isMobileServer")},isCloudBased:function(){return this.get("isCloud")||this.get("isCloudSyncServer")},isFullOwnedServer:function(){return this.get("isFullServer")&&!this.get("isShared")},isPrimaryEligible:function(){
return!(!I.a.get("allowCloudSyncServers")&&this.get("isCloudSyncServer"))&&(!(!I.a.get("allowMobileServers")&&this.get("isMobileServer"))&&(!!this.get("machineIdentifier")&&!this.get("isUnauthorized")&&!this.get("isCloud")))},isOutOfDate:function(){return!this.get("isCloudSyncServer")&&(!this.get("isMobileServer")&&!this.isVersionOrNewer("1.3.0"))},isClaimed:function(){return!!this.get("isPersonalCloudServer")||(this.get("isConnected")?this.get("myPlexSigninState")===_:void 0)},
hasManualConnection:function(){return this.get("connections").some(function(e){return e.get("sources").some(function(e){return/^manual/.test(e.id)})})},hasAdaptiveBitrate:function(){return this.get("streamingBrainABRVersion")>=3},shared:function(){return this.get("isShared")},bundled:function(){return this.get("isBundled")},cloud:function(){return this.get("isCloud")},merged:function(){return this.get("isMerged")},connected:function(){
return this.get("connectionTestResult")===z.PENDING?null:this.get("isConnected")},available:function(){return this.get("connectionTestResult")===z.PENDING?null:!this.get("isUnavailable")},authorized:function(){return this.get("connectionTestResult")===z.PENDING?null:this.get("isResolved")},relayed:function(){return this.get("isRelayed")}},defaults:function(){return{connectionTestResult:z.PENDING,promiseState:U.PENDING,sections:new M.a([],{server:this}),playlists:new S.a({},{server:this}),
isShared:!1,isBundled:!1,isCloud:!1,isMerged:!1,isInstallingServerUpdate:!1,hasEventConnection:!1,sync:!1,backgroundProcessing:!1,allowChannelAccess:!1,updater:!0,ownerFeatures:[],isProvidersPending:!0,isProvidersPopulated:!1,providersError:null}},url:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.get("activeConnection");Object(d.a)(e,"An active or manual connection is required for a server url");var t=c.a.result(e,"url");return/\/$/.test(t)||(t+="/"),t},
initialize:function(){this._reset(),this.on("change:machineIdentifier",this.onMachineIdentifierChange,this),this.listenTo(this.get("connections"),{remove:this.onConnectionRemove,reset:this.onConnectionsReset})},uninitialize:function(){this.off("change:machineIdentifier",this.onMachineIdentifierChange,this),this.stopListening()},updateEntity:function(){if(!this.get("isMerged"))return m.a.prototype.updateEntity.apply(this,arguments)},fetch:function(){
return s.c.Model.prototype.fetch.apply(this,arguments)},resolveUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(N.a)(e))return e;var n=void 0;n=t.useRelativeUrl?this.get("isMobileServer")?"http://127.0.0.1:"+this.getLoopbackPort()+"/":"":t.baseUrl||this.url(t.connection);var i=this.get("accessToken"),a=c.a.extend({},t.params);return t.appendHeaders&&c.a.defaults(a,this.getHeaders()),t.appendToken&&i&&(a["X-Plex-Token"]=i),h.join([n,e],a)},
swizzleUrl:function(e,t){var n=e.match(/^\w+:\/\/.+?(\/.+)$/),i=n?n[1]:e;return this.resolveUrl(i,t)},getXHROptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.headers,i=t.baseUrl,r=o()(t,["headers","baseUrl"]);return a()({url:this.resolveUrl(e,{baseUrl:i}),dataType:"text",headers:c.a.extend(this.getHeaders(),n),allowHeadersInUrl:!0,allowBlacklistedMethodHeaders:this.supports("allowBlacklistedMethodHeaders")},r)},getHeaders:function(){
var e=v.a.getInstance(),t=c.a.clone(e),n=this.get("accessToken");n&&(t["X-Plex-Token"]=n);var i=Object(f.c)("appModel").get("settings"),a=i.get("language");return a&&(t["X-Plex-Language"]=a,t["Accept-Language"]=a),t},addConnection:function(e){e.sources||(e.sources=[{id:"internal"}]);var t=this.get("connections"),n=new k.a(e),i=t.get(n.id);if(i){return i.get("sources").set(e.sources,{remove:!1}),i}return t.add(e)},hasSource:function(e){return this.get("connections").some(function(t){
return t.hasSource(e)})},removeSource:function(e){for(var t=this.get("connections"),n=t.length-1;n>=0;){t.at(n).get("sources").remove(e),n--}},testAllConnections:function(){var e=this,t=this.get("connections");return Object(p.a)("[Connections] Testing all %s connection(s) for %s",t.length,this.get("debugName")),this._reset(),t.each(function(t){var n=!t.get("relay"),i=!t.get("isUntested");(n||i)&&e.testConnection(t)}),this.populatePromise},testOnlyUntestedConnections:function(){var e=this
;return this.get("connections").each(function(t){var n=!t.get("relay"),i=t.get("isUntested"),a=t.get("isAborted");n&&(i||a)&&e.testConnection(t)}),this.populatePromise},testOnlyUntestedRelayConnections:function(){var e=this;return this.get("connections").each(function(t){var n=t.get("relay"),i=t.get("isUntested");n&&i&&e.testConnection(t)}),this.populatePromise},testConnection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.server=this,t.connection=e,
this.get("promiseState")===U.REJECTED&&this._reset(),g.a.execute("testServerConnection",t).done(this.onConnectionTestSuccess.bind(this)).fail(this.onConnectionTestError.bind(this))},abortAllConnectionTests:function(){var e=this,t=this.get("connections");Object(p.a)("[Connections] Aborting all pending connection tests for",this.get("debugName")),t.each(function(t){e.abortConnectionTest(t)})},abortConnectionTest:function(e){var t={server:this,connection:e}
;g.a.execute("abortServerConnectionTest",t)},populateIdentity:function(e){var t=this;if(this._identityPromise)return this._identityPromise;var n=g.a.execute("populateServerIdentity",{server:this,connection:e});return n.done(function(e){t.set("machineIdentifier",e)}),this._identityPromise=n,n},updateCacheKey:function(){var e=this.get("debugName"),t=this.cacheKey(this.attributes),n=this.cache.get(t);if(n){var i=n.get("debugName");p.a.warn("[Identity] %s and %s (cached) collide",e,i),
n.get("isConnected")||!this.get("isConnected")?(Object(p.a)("[Identity] Merging %s into %s (cached)",e,i),n.merge(this)):(Object(p.a)("[Identity] Merging %s (cached) into %s",i,e),this.merge(n),this.cache.store(this,t))}else this.cache.store(this,t)},merge:function(e){var t=this;e.set("isMerged",!0),e.get("isBundled")&&this.set("isBundled",!0),e.get("connections").each(function(e){t.addConnection(e.toJSON())}),this.collection&&(this.collection.remove(e.cid,{silent:!0}),
this.collection._byId[this.id]=this,this.collection.trigger("remove",e,this.collection),this.collection.trigger("update",this.collection)),this.cache.remove(e),I.a.get("shouldCreateStateTree")&&this.updateEntity()},hasOwnerFeature:function(e){if(this.supports("ownerFeatures")){var t=this.get("ownerFeatures");return!!(t&&t.indexOf(e)>-1)}return!!this.get("myPlexSubscription")&&F.indexOf(e)>-1},supports:function(e){var t=this.get(e);if(c.a.isBoolean(t))return t;var n=R.a[e]
;return null!=n&&this.isVersionOrNewer(n)},isVersionOrNewer:function(e){var t=this.get("shortVersion");return!e||Object(E.a)(t,e)},hasRegression:function(e){if(!e)return!1;var t=this.isVersionOrNewer(e.introduced),n=e.resolved&&this.isVersionOrNewer(e.resolved);return t&&!n},canAllowHttpFallback:function(){if(!this.get("isFullServer")||this.get("isPersonalCloudServer"))return!1;if(u.a.isHostedHttps&&!I.a.get("allowMixedContent"))return!1
;var e=Object(f.c)("appModel").get("settings"),t=e.get("allowHttpFallback"),n=t===O.a.ALWAYS,i=t===O.a.SAME_NETWORK;return!!(n||i&&this.get("publicAddressMatches"))},hasOtherLoopbackServer:function(){return!!this.collection&&this.collection.hasLoopbackServer()},getLoopbackPort:function(){var e=this.get("connections").findWhere({isPrivate:!0});return e?e.get("port"):"32400"},authenticate:function(e){this._resolve({accessToken:e})},deauthenticate:function(){this._reject({accessToken:null})},
_reset:function(){this.startCapturingChangeEvents(),this.set("promiseState",U.PENDING),this._resetPopulate(),this.releaseCapturedChangeEvents()},_resolve:function(e){var t=c.a.extend({connectionTestResult:z.CONNECTED,promiseState:U.RESOLVED},e);this.startCapturingChangeEvents(),this.set(t),I.a.get("shouldCreateStateTree")&&this.updateState(),this._resolvePopulate(),this.releaseCapturedChangeEvents()},_reject:function(e){var t=this.get("connections")
;t.hasOnlyFailedConnections()&&p.a.warn("[Connections] All connections to %s failed",this.get("debugName"));var n=t.findWhere({isUnauthorized:!0})?z.UNAUTHORIZED:z.UNAVAILABLE,i=c.a.extend({connectionTestResult:n,promiseState:U.REJECTED},e);this.startCapturingChangeEvents(),this.set(i),this._rejectPopulate(),this.releaseCapturedChangeEvents()},_checkActiveConnection:function(){var e=this.get("activeConnection"),t=this.get("connections");if(e&&!t.contains(e)){var n=t.getBestConnection()
;n?this.set({activeConnection:n}):this.testAllConnections()}},onMachineIdentifierChange:function(e,t){this.collection?this.listenToOnce(this.collection,"change:machineIdentifier",function(){this.updateCacheKey()}):this.updateCacheKey()},onConnectionRemove:function(e,t){t.length?this._checkActiveConnection():(this.trigger("change:connections.remove",e,t),this.trigger("change:connections.change",this,t),this.trigger("destroy",this,this.collection))},onConnectionsReset:function(e,t){
e.length?this._checkActiveConnection():(this.trigger("change:connections.reset",e,t),this.trigger("change:connections.change",this,e),this.trigger("destroy",this,this.collection))},onConnectionTestSuccess:function(e,t){var n=this.get("connections").getBestConnection();if(n!==this.get("activeConnection")&&p.a.info("[Connections] Active connection to %s is %s",this.get("debugName"),n.id),this._resolve(a()({activeConnection:n},t)),I.a.get("allowLoopbackDiscovery")){
var i=this.get("connections"),r=this.get("activeConnection"),o=r.get("isPrivate"),s=!!i.findWhere({isLoopback:!0});!o||s||this.hasOtherLoopbackServer()||(Object(p.a)("[Connections] Adding possible loopback connection for",this.get("debugName")),this.addConnection(r.getLoopbackAttributes()))}},onConnectionTestError:function(e,t){var n=this;if(!e.get("isAborted")){var i=this.get("connections");if(e.get("isHttps")&&!e.get("isUnauthorized")&&!e.get("relay"))if(this.canAllowHttpFallback()){
var a=this.addConnection({scheme:"http",address:e.get("address"),port:e.get("port"),isFallback:!0});Object(p.a)("[Connections] Added insecure fallback connection for %s at %s",this.get("debugName"),a.id)}else p.a.warn("[Connections] Prevented fallback to insecure connection for",this.get("debugName"));!this.id&&e.get("isUnauthorized")&&this.populateIdentity(e),i.hasOnlyFailedConnections()?this.id||!this._identityPromise?this._reject():this._identityPromise.always(function(){
i.hasOnlyFailedConnections()&&n._reject()}):i.hasFailedEveryDirectConnection()&&this.testOnlyUntestedRelayConnections()}}},{connectionTestResults:z,promiseStates:U,serverClasses:B});Object(y.a)(H,function(){return{relationClass:Object(f.c)("ServerFlexModel"),options:{server:this}}}),t.c=H},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return u})
;var i,a=n(40),r=n(817),o="ui/repopulatePage",s="ui/showAlert",l=Object(a.a)(o),c=Object(a.a)(s,function(e){return"string"==typeof e?{type:r.a,message:e}:e}),u=(i={},i[s]=function(e,t){},i)},function(e,t,n){"use strict";function i(e){var t=e.key,n=e.getModel;return Object(l.a)(r()({},e,{fetch:function(e,i){var a=n(e,i);return(t?a.get(t):a).fetch(i.options).then(null,function(e,t){return s.a.Deferred().reject(t).promise()})}}))}t.a=i;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(1191)
},function(e,t,n){"use strict";function i(e){return e}var a=n(59);n.n(a),n(37),n(683);t.a=i},function(e,t,n){"use strict";n.d(t,"z",function(){return i}),n.d(t,"n",function(){return a}),n.d(t,"t",function(){return r}),n.d(t,"Q",function(){return o}),n.d(t,"D",function(){return s}),n.d(t,"A",function(){return l}),n.d(t,"C",function(){return c}),n.d(t,"B",function(){return u}),n.d(t,"o",function(){return d}),n.d(t,"L",function(){return p}),n.d(t,"q",function(){return h}),n.d(t,"N",function(){
return f}),n.d(t,"u",function(){return v}),n.d(t,"R",function(){return g}),n.d(t,"_5",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"p",function(){return b}),n.d(t,"M",function(){return I}),n.d(t,"_1",function(){return S}),n.d(t,"_6",function(){return M}),n.d(t,"i",function(){return D}),n.d(t,"H",function(){return C}),n.d(t,"f",function(){return j}),n.d(t,"x",function(){return P}),n.d(t,"T",function(){return O}),n.d(t,"Z",function(){return T}),n.d(t,"k",function(){return E}),
n.d(t,"l",function(){return w}),n.d(t,"_2",function(){return A}),n.d(t,"_3",function(){return x}),n.d(t,"_4",function(){return N}),n.d(t,"_9",function(){return L}),n.d(t,"m",function(){return k}),n.d(t,"_10",function(){return R}),n.d(t,"U",function(){return z}),n.d(t,"g",function(){return U}),n.d(t,"O",function(){return B}),n.d(t,"r",function(){return F}),n.d(t,"y",function(){return _}),n.d(t,"G",function(){return V}),n.d(t,"_0",function(){return H}),n.d(t,"v",function(){return Q}),
n.d(t,"b",function(){return Y}),n.d(t,"c",function(){return G}),n.d(t,"_8",function(){return W}),n.d(t,"J",function(){return K}),n.d(t,"K",function(){return Z}),n.d(t,"S",function(){return q}),n.d(t,"w",function(){return J}),n.d(t,"e",function(){return X}),n.d(t,"a",function(){return $}),n.d(t,"d",function(){return ee}),n.d(t,"Y",function(){return te}),n.d(t,"F",function(){return ne}),n.d(t,"E",function(){return ie}),n.d(t,"s",function(){return ae}),n.d(t,"P",function(){return re}),
n.d(t,"X",function(){return oe}),n.d(t,"_7",function(){return se}),n.d(t,"j",function(){return le}),n.d(t,"I",function(){return ce}),n.d(t,"V",function(){return ue}),n.d(t,"W",function(){return de})
;var i="INIT_DISCOVER_PAGE",a="FETCH_HUBS",r="FETCH_PROMOTED_HUBS",o="POPULATE_PROMOTED_HUBS",s="INIT_METADATA_LIST_PAGE",l="INIT_LIBRARY_PAGE",c="INIT_LIBRARY_PAGE_METADATA_LIST",u="INIT_LIBRARY_PAGE_DIRECTORY_LIST",d="FETCH_LIBRARY_DETAILS",p="POPULATE_LIBRARY_DETAILS",h="FETCH_LIBRARY_FIRST_CHARACTERS",f="POPULATE_LIBRARY_FIRST_CHARACTERS",v="FETCH_QUERY_PARSE",g="POPULATE_QUERY_PARSE",m="SELECT_LIBRARY_FILTER",y="DESELECT_LIBRARY_FILTER",b="FETCH_LIBRARY_FILTER_OPTIONS",I="POPULATE_LIBRARY_FILTER_OPTIONS",S="SEARCH_LIBRARY_FILTER_OPTIONS",M="SELECT_LIBRARY_TABLE_COLUMN",D="DESELECT_LIBRARY_TABLE_COLUMN",C="INIT_TIMELINE_PAGE",j="CLOSE_TIMELINE_PAGE",P="FETCH_TIMELINE_DETAILS",O="POPULATE_TIMELINE_DETAILS",T="RESET_EPG_SETTINGS",E="FETCH_EPG_COUNTRIES",w="FETCH_EPG_LANGUAGES",A="SELECT_EPG_COUNTRY",x="SELECT_EPG_LANGUAGE",N="SELECT_EPG_REGION",L="SET_EPG_POSTAL_CODE",k="FETCH_EPG_LINEUPS",R="SHOW_PROVISION_PERSONAL_CLOUD_SERVER_MODAL",z="PROVISION_PERSONAL_CLOUD_SERVER",U="CONNECT_TO_OWNED_PERSONAL_CLOUD_SERVER",B="POPULATE_PERSONAL_CLOUD_SERVER_CACHE",F="FETCH_PERSONAL_CLOUD_SERVER_STATUS",_="INDICATE_INTEREST_IN_PERSONAL_CLOUD_SERVER",V="INIT_QUICK_SEARCH",H="RESET_QUICK_SEARCH",Q="FETCH_QUICK_SEARCH",Y="CHANGE_SEARCH_QUERY",G="CHANGE_SEARCH_SETTINGS",W="SELECT_SEARCH_RESULT",K="NAVIGATE_SEARCH_RESULT",Z="PLAY_SEARCH_RESULT",q="POPULATE_SEARCH_PROVIDERS",J="FETCH_SEARCH_PAGE",X="CLEAR_SEARCH_PAGE",$="CHANGE_BACKGROUND",ee="CHANGE_THEME_MUSIC",te="RESET_BACKGROUND",ne="INIT_PLAYLIST_PAGE",ie="INIT_PLAYLIST_ITEM_LIST",ae="FETCH_PLAYLIST",re="POPULATE_PLAYLIST_ITEM_RANGE",oe="REPOPULATE_PLAYLIST_ITEMS",se="SELECT_PLAYLIST_ITEM",le="DESELECT_PLAYLIST_ITEM",ce="MOVE_PLAYLIST_ITEM",ue="REMOVE_PLAYLIST_ITEM",de="REMOVE_SELECTED_ITEMS"
},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({iconClassName:u.a.icon,icon:"plex-icon-alert-560"},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(85),c=n(3113),u=n.n(c);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(20),m=n(215),y=n(918),b=n(3136),I=n.n(b),S=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),
t.prototype.render=function(){var e=this.props,t=e.children,n=e.tooltip,i=e.className,r=(e.hasLabel,e.tooltipAttachment),s=e.hideOnPress,l=e.onPress,c=o()(e,["children","tooltip","className","hasLabel","tooltipAttachment","hideOnPress","onPress"]);return v.a.createElement(m.a,a()({className:i,"aria-label":n,component:g.a,tooltip:n,tooltipClassName:I.a[r],hideOnPress:s,onPress:l},c),t)},t}(f.Component);S.defaultProps={className:I.a.toolbarButton,tooltipAttachment:y.BOTTOM_CENTER},t.a=S
},,function(e,t,n){"use strict";function i(e,t,n){if(n)switch(n){case s.j:switch(e){case"genre":case"channel":return c}break;case s.i:switch(e){case"episode":return u}break;case s.a:case s.d:return u;case s.f:switch(e){case"movie":case"episode":case"userPlaylistItem":return u}break;case s.h:case s.g:switch(e){case"episode":return u}break;case s.e:switch(e){case"clip":return c}}switch(t){case o.b:case o.c:switch(e){case"show":return c;case"episode":return u}}switch(e){case"movie":case"show":
case"season":case"episode":return l;case"artist":case"album":case"track":case"photo":case"photoalbum":return c;case"clip":return u;case"collection":return l;case"extra":case"musicVideo":return u;case"mixed":return l;case"genre":case"channel":return u;default:return c}}function a(e,t,n,a){var r=i(t,n,a);return Math.round(e*r)}function r(e,t,n,a){var r=i(t,n,a);return Math.round(e/r)}n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u}),t.c=i,t.e=a,t.d=r
;var o=n(106),s=n(33),l=1/1.5,c=1,u=16/9},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(275),b=n(20),I=n(233),S=n(3142),M=n.n(S),D=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.linkClassName,n=e.buttonClassName,i=e.title,r=e.to,s=e.hasMenu,c=e.isMenuOpen,u=e.isSelected,d=e.isDisabled,p=l()(e,["linkClassName","buttonClassName","title","to","hasMenu","isMenuOpen","isSelected","isDisabled"]);return s||r?s?m.a.createElement(y.a,a()({className:n,"data-qa-id":"typeDropdownButton",isSelected:u,isDisabled:d,direction:c?I.UP:I.DOWN},p),i):o()(b.a,{className:t,to:r,isDisabled:d},void 0,i):o()("span",{className:t},void 0,i)},t}(g.Component);D.defaultProps={
linkClassName:M.a.link,buttonClassName:M.a.button,hasMenu:!1,isMenuOpen:!1,isSelected:!1,isDisabled:!1},t.a=D},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metadataListEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(3480))},function(e,t,n){"use strict";function i(e){var t=e.identifiers;for(var n in t)if(t[n]!==e[n])return!1;return!0}function a(e,t,n,a){var r=Object(I.a)(t,function(e){return{identifiers:e}}),s=function(t){
function r(e,n){u()(this,r);var i=p()(this,t.call(this,e,n));return i.onRepopulate=function(){i._repopulate()},i._isPopulated=!1,i._component=null,i}return f()(r,t),r.prototype.componentDidMount=function(){this._populate()},r.prototype.componentDidUpdate=function(){this._isPopulated||this._populate()},r.prototype._populate=function(){var e=this.props,t=(e.identifiers,e.dispatch),i=l()(e,["identifiers","dispatch"]);Object(S.a)(function(){n(t,i)})},r.prototype._repopulate=function(){
if(!a)return this._populate();var e=this.props,t=(e.identifiers,e.dispatch),n=l()(e,["identifiers","dispatch"]);a(t,n)},r.prototype.render=function(){if(this._isPopulated=i(this.props),this._isPopulated){var t=this.props,n=(t.identifiers,t.dispatch,l()(t,["identifiers","dispatch"]));this._component=m.a.createElement(e,o()({onRepopulate:this.onRepopulate},n))}return this._component},r}(g.Component);return s.displayName="Populatable("+Object(b.a)(e)+")",s.WrappedComponent=e,
Object(y.connect)(function(e){return r})(s)}var r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(190),I=(n(37),n(683),n(161)),S=n(36);t.a=a},function(e,t,n){"use strict";function i(e,t){var n=t.searchResultEntityID;return Object(r.a)(e,o.SEARCH_RESULT,n)}function a(e,t){var n=t.sessionEntityID;return Object(r.a)(e,o.SESSION,n)}t.f=i,t.i=a;var r=n(795),o=n(232),s=n(70);n.d(t,"a",function(){return s.b}),
n.d(t,"b",function(){return s.e}),n.d(t,"c",function(){return s.f}),n.d(t,"d",function(){return s.h}),n.d(t,"e",function(){return s.i}),n.d(t,"g",function(){return s.j}),n.d(t,"h",function(){return s.k}),n.d(t,"j",function(){return s.m}),n.d(t,"k",function(){return s.o}),n.d(t,"l",function(){return s.p})},,function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.providers});t.a=r},function(e,t,n){"use strict";function i(e,t,n){
var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=arguments[4];if(e&&t&&n){var c=Object(o.a)(e,t),u=encodeURIComponent(n),d=(i={},i[r.c]="album",i[r.d]="playlist",i[r.a]="playlist",i),p=l?d[l]:"details",h="#!"+c+"/"+p+"?key="+u;return a.join(h,s)}}t.a=i;var a=n(18),r=n(63),o=n(675)},function(e,t,n){"use strict";n.d(t,"g",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"m",function(){return r}),n.d(t,"i",function(){return o}),n.d(t,"d",function(){return s}),
n.d(t,"e",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return d}),n.d(t,"j",function(){return p}),n.d(t,"a",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"f",function(){return v});var i="picker",a="fallback",r="startup",o="server",s="library",l="list",c="selection",u="settings",d="setupWizard",p="serverDownload",h="agenda",f="calendar",v="navBar"},function(e,t,n){"use strict";function i(e){
return s.a.createElement(l.a,r()({},e,{loadingLabel:Object(c.default)("Loading")}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(930),c=n(3);i.defaultProps=l.a.defaultProps,t.a=i},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({machineIdentifier:a.a.string.isRequired,allowSync:a.a.bool,allowMediaDeletion:a.a.bool,transcoderVideo:a.a.bool,isFullServer:a.a.bool.isRequired,isFullOwnedServer:a.a.bool.isRequired})},function(e,t,n){"use strict";function i(){
return Object(y.createSelector)(Object(P.a)(),Object(S.a)(),j.a,M.a,function(e,t,n){var i=I.a.pick(t,"totalSize","populatedRange","allowSync","isPending","isPopulated","error","firstItemType","firstItemSubtype","isFirstItemLibraryItem");return h()({metadataItemEntityIDs:t.metadataItems,containerKey:t.containerKey||t.key,disableReloadThreshold:!!n.activeSelectionType,columnAdjustment:e},i)})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(1),v=(n.n(f),
n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(10)),I=n.n(b),S=n(132),M=n(72),D=n(36),C=n(152),j=n(76),P=n(1486),O={dispatchPopulateMetadataList:C.f,dispatchPopulateMetadataListRange:C.g,dispatchDeselectAllMetadataListItems:C.a,dispatchResetMetadataList:C.i},T=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onPageRequest=function(e){
var t=i.props,n=t.metadataListEntityID,a=t.disableReloadThreshold;(0,t.dispatchPopulateMetadataListRange)(h()({metadataListEntityID:n,disableReloadThreshold:a},e))},a=n,c()(i,a)}return d()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.metadataListEntityID!==this.props.metadataListEntityID&&this._populate(e)},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.metadataListEntityID,n=e.shouldResetOnUnmount
;this.props.dispatchDeselectAllMetadataListItems({metadataListEntityID:t}),n&&this.props.dispatchResetMetadataList({metadataListEntityID:t})},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.metadataListEntityID,n=e.initialSize,i=e.dispatchPopulateMetadataList,a=e.dispatchPopulateMetadataListRange;n&&Object(D.a)(function(){n===1/0?i({metadataListEntityID:t}):a({metadataListEntityID:t,startIndex:0,endIndex:n-1,pages:1})})},
t.prototype.render=function(){var e=this.props,t=e.component,n=(e.dispatchPopulateMetadataListRange,e.dispatchDeselectAllMetadataListItems,e.dispatchResetMetadataList,r()(e,["component","dispatchPopulateMetadataListRange","dispatchDeselectAllMetadataListItems","dispatchResetMetadataList"]));return g.a.createElement(t,h()({},n,{onPageRequest:this.onPageRequest}))},t}(v.Component);T.defaultProps={disableReloadThreshold:!1,shouldResetOnUnmount:!1},t.a=Object(m.connect)(i,O)(T)},function(e,t,n){
"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Object(a.createSelector)(Object(o.a)(),s.a,function(t,n){var i=t?t.playQueueItems:[];if(i.length){var a=t.currentIndex,o=a+e;t.repeat&&(o=Object(r.a)(a,e,t.length));var s=i[o];return s&&n[s]}})}var a=n(4),r=(n.n(a),n(3550)),o=n(1498),s=n(981);t.a=i},function(e,t,n){"use strict";function i(e,t,n){return Math.max(0,Math.min(t-D.b,e+n))}n.d(t,"c",function(){return A}),n.d(t,"a",function(){return z}),
n.d(t,"b",function(){return U}),n.d(t,"n",function(){return B}),n.d(t,"z",function(){return F}),n.d(t,"B",function(){return _}),n.d(t,"C",function(){return V}),n.d(t,"y",function(){return H}),n.d(t,"A",function(){return Q}),n.d(t,"i",function(){return Y}),n.d(t,"t",function(){return G}),n.d(t,"u",function(){return W}),n.d(t,"m",function(){return K}),n.d(t,"x",function(){return Z}),n.d(t,"p",function(){return q}),n.d(t,"q",function(){return J}),n.d(t,"r",function(){return X}),
n.d(t,"s",function(){return $}),n.d(t,"h",function(){return ee}),n.d(t,"w",function(){return te}),n.d(t,"v",function(){return ne}),n.d(t,"e",function(){return ie}),n.d(t,"f",function(){return ae}),n.d(t,"g",function(){return re}),n.d(t,"d",function(){return oe}),n.d(t,"o",function(){return se}),n.d(t,"k",function(){return le}),n.d(t,"j",function(){return ce}),n.d(t,"l",function(){return ue})
;var a,r=n(6),o=n.n(r),s=n(40),l=n(62),c=n(3560),u=n(983),d=n(3561),p=n(436),h=n(3562),f=n(985),v=n(3563),g=n(984),m=n(3564),y=n(434),b=n(3565),I=n(845),S=n(636),M=n(260),D=n(371),C=n(3567),j=n(676),P=n(3568),O=n(70),T=n(198),E=n(36),w=n(172),A="ui/player/playerMedia/updatePlayerPosition",x="ui/player/playerMedia/togglePlayPause",N="ui/player/playerMedia/seek",L="ui/player/playerMedia/skipBack",k="ui/player/playerMedia/stepBack",R="ui/player/playerMedia/changeVolume",z="ui/player/playerSettings/changeQualityIndex",U="ui/player/playerSettings/changeStream",B=Object(s.a)("ui/player/playerMedia/sendTimeline"),F=Object(s.a)("ui/player/playerMedia/updatePlayerDuration"),_=Object(s.a)(A),V=Object(s.a)("ui/player/playerMedia/updatePlayerSeekRange"),H=Object(s.a)("ui/player/playerMedia/updatePlayerBuffering"),Q=(Object(s.a)("ui/player/playerMedia/updatePlayerLoading"),
Object(s.a)("ui/player/playerMedia/updatePlayerError")),Y=Object(s.a)("ui/player/playerMedia/clearPlayerError"),G=Object(s.a)("ui/player/playerMedia/tickPlayer"),W=Object(s.a)(x),K=Object(s.a)(N),Z=Object(s.a)("ui/player/playerMedia/transcodeSeek"),q=Object(s.a)(L),J=Object(s.a)("ui/player/playerMedia/skipForward"),X=Object(s.a)(k),$=Object(s.a)("ui/player/playerMedia/stepForward"),ee=Object(s.a)(R),te=Object(s.a)("ui/player/playerSettings/togglePlayerSettingsState"),ne=Object(s.a)("ui/player/playerSettings/togglePlayerChaptersState"),ie=Object(s.a)(z),ae=Object(s.a)(U),re=Object(s.a)("ui/player/playerSettings/changeSubtitleSize"),oe=Object(s.a)("ui/player/playerMedia/changePlaybackSpeed"),se=Object(s.a)("ui/player/playerMedia/setPlaybackTime"),le=Object(s.a)(x,function(e){
return o()({},e,{shouldPlay:!0})}),ce=Object(s.a)(x,function(e){return o()({},e,{shouldPause:!0})}),ue=(Object(s.a)(R,function(e){return o()({},e,{delta:C.a})}),Object(s.a)(R,function(e){return o()({},e,{delta:-C.a})}),a={},a["ui/player/playerMedia/sendTimeline"]=function(e,t,n){var i=t.playerType,a=t.providerEntityID,r=t.shouldRefreshPlayQueue,s=t.options,l=void 0===s?{}:s,c=Object(T.c)(e,i),u=O.i(e,{providerEntityID:a}),d=O.g(e,t),p={state:Object(f.a)(c),playbackSessionID:g.a}
;Object(b.a)(u,d,o()({},p,l)).done(Object(S.a)(c,function(e){n(Object(w.n)({playerType:i}));var t=e.bandwidthTimeline,a=e.captureBuffer,o=e.transcodeSession;c.set("bandwidthTimeline",t);var s=c.get("liveTVSession");o?(n(V({playerType:i,seekStartSeconds:o.seekStartSeconds,seekEndSeconds:o.seekEndSeconds})),s&&o.startedAt&&s.set({startedAt:o.startedAt,captureBuffer:a})):a&&(n(V({playerType:i,seekStartSeconds:a.seekStartSeconds,seekEndSeconds:a.seekEndSeconds})),s&&a.startedAt&&s.set({
startedAt:a.startedAt}));var l=c.get("playQueue");r&&l.get("playQueueSelectedItemID")===d.get("playQueueItemID")&&Object(y.a)(l).done(Object(S.a)(c,function(){n(Object(w.n)({playerType:i}))})),e.terminationCode&&(n(Object(w.l)()),c.restoreDefaults({hasError:!0,errorMessage:e.terminationText}))}))},a["ui/player/playerMedia/updatePlayerDuration"]=function(e,t){var n=t.playerType,i=t.durationMilliseconds,a=Object(T.c)(e,n),r=Object(u.a)(a),o=r.get("metadataItem"),s=Object(c.a)(a);if(s){
var l=o.get("Media")[s.mediaIndex],d=Object(j.a)(l),p=!!d&&"vbr"===d.bitrateMode,h=i>0&&!p,f=h?i:l.duration;a.set({isMediaLoading:!1,durationSeconds:Math.floor((f||0)/1e3)})}},a[A]=function(e,t){var n=t.playerType,i=t.positionSeconds,a=Object(T.c)(e,n);Object(E.a)(function(){var e={positionSeconds:i},t=a.get("lastSeekPositionSeconds");null!==t&&i>t&&(e.lastSeekPositionSeconds=null),a.set(e)})},a["ui/player/playerMedia/updatePlayerSeekRange"]=function(e,t){
var n=t.playerType,i=t.seekStartSeconds,a=t.seekEndSeconds;Object(T.c)(e,n).set({seekStartSeconds:i,seekEndSeconds:a})},a["ui/player/playerMedia/updatePlayerBuffering"]=function(e,t){var n=t.playerType,i=t.isBuffering;Object(T.c)(e,n).set({isBuffering:i})},a["ui/player/playerMedia/updatePlayerLoading"]=function(e,t){var n=t.playerType,i=t.isMediaLoading;Object(T.c)(e,n).set({isMediaLoading:i})},a["ui/player/playerMedia/updatePlayerError"]=function(e,t){Object(T.c)(e,t.playerType).set({
isMediaLoading:!1,hasError:!0,errorMessage:t.errorMessage,errorCode:t.errorCode,errorCategory:t.errorCategory})},a["ui/player/playerMedia/clearPlayerError"]=function(e,t){var n=t.playerType,i=Object(T.c)(e,n);Object(E.a)(function(){i.set({hasError:!1,errorMessage:null,errorCode:null,errorCategory:null})})},a["ui/player/playerMedia/tickPlayer"]=function(e,t,n){var i=t.playerType,a=(t.index,t.secondsElapsed),r=Object(T.c)(e,i),o=r.get("playQueue"),s=Object(c.a)(r);if(s){
var l=r.get("isPaused"),u=!(a%10),d=!(a%30);if(u){var p=o.get("playQueueSelectedItemID"),h=o.get("playQueueItems").get(p);n(B({playerType:i,providerEntityID:r.get("providerEntityID"),playQueueItemEntityID:h.entityID(),options:{playbackTime:r.get("playbackTime"),positionSeconds:r.get("positionSeconds"),durationSeconds:r.get("durationSeconds"),mediaIndex:s.mediaIndex,partIndex:s.partIndex,partCount:s.partCount}}))}if(d&&l&&s.transcodeSessionID){var f=s.transcodeServerEntityID,v=O.k(e,{
serverEntityID:f});Object(m.a)(v,s.transcodeSessionID)}}},a[x]=function(e,t){var n=t.playerType,i=t.shouldPlay,a=t.shouldPause,r=t.isApplicationInitiated,o=Object(T.c)(e,n),s=o.get("isPaused"),l=Object(p.a)(e),c=void 0;if(o.get("isPostPlayVisible"))return void Object(E.a)(function(){o.set({isPostPlayVisible:!1}),l.playNextItem(o,!0)});c=i?"play":a?"pause":s?"play":"pause",s&&"pause"===c||!s&&"play"===c||Object(E.a)(function(){l[c](o,r)})},a[N]=function(e,t){
var n=t.playerType,i=t.positionSeconds,a=Object(T.c)(e,n),r=Object(p.a)(e);Object(E.a)(function(){r.seek(a,i)})},a["ui/player/playerMedia/transcodeSeek"]=function(e,t){var n,i=t.playerType,a=t.positionSeconds,r=Object(T.c)(e,i),s=Object(c.a)(r);if(s){var l=Object(u.a)(r),d=l.entityID(),p=o()({},s,{url:Object(v.a)(s.url,a)});r.set({currentDecision:p,decisions:o()({},r.get("decisions"),(n={},n[d]=p,n))})}},a[L]=function(e,t){
var n=t.playerType,a=Object(T.c)(e,n),r=Object(p.a)(e),o=l.a.get("seekDebounceMilliseconds"),s=i(a.get("nextPositionSeconds")||a.get("positionSeconds"),a.get("durationSeconds"),-D.c);Object(E.a)(function(){r.seek(a,s,o)})},a["ui/player/playerMedia/skipForward"]=function(e,t){var n=t.playerType,a=Object(T.c)(e,n),r=Object(p.a)(e),o=a.get("positionSeconds"),s=a.get("nextPositionSeconds"),c=a.get("durationSeconds"),u=l.a.get("seekDebounceMilliseconds");if(c-o>D.b){var d=i(s||o,c,D.d)
;Object(E.a)(function(){r.seek(a,d,u)})}},a[k]=function(e,t){var n=t.playerType,a=Object(T.c)(e,n),r=Object(p.a)(e),o=Object(u.a)(a),s=o.get("metadataItem"),l=s.get("chapters"),c=a.get("positionSeconds"),d=a.get("durationSeconds"),f=void 0;f=l&&l.length?Object(h.a)(l,c):i(c,d,-D.e),Object(E.a)(function(){r.seek(a,f)})},a["ui/player/playerMedia/stepForward"]=function(e,t){
var n=t.playerType,a=Object(T.c)(e,n),r=Object(p.a)(e),o=Object(u.a)(a),s=o.get("metadataItem"),l=s.get("chapters"),c=a.get("positionSeconds"),h=a.get("durationSeconds"),f=void 0;l&&l.length?f=Object(d.a)(l,c):h-c>D.b&&(f=i(c,h,D.f)),null!=f&&Object(E.a)(function(){r.seek(a,f)})},a[R]=function(e,t){var n=t.playerType,i=t.volume,a=t.delta,r=Object(P.a)(e),o=a?r+a:i;if((o=Math.max(0,Math.min(100,o)))!==r){var s=Object(T.c)(e,n),l=e.get("experienceSettings"),c=Object(p.a)(e);Object(E.a)(function(){
c.changeVolume(s,l,o)})}},a["ui/player/playerSettings/togglePlayerSettingsState"]=function(e,t){var n=t.playerType,i=Object(T.c)(e,n),a=i.get("isSettingsVisible");Object(E.a)(function(){i.set(Object(I.a)(i,a,{isSettingsVisible:!a,isChaptersVisible:!1,isPlayQueueVisible:!1,isLyricsVisible:!1}))})},a["ui/player/playerSettings/togglePlayerChaptersState"]=function(e,t){var n=t.playerType,i=Object(T.c)(e,n),a=i.get("isChaptersVisible");Object(E.a)(function(){i.set(Object(I.a)(i,a,{
isSettingsVisible:!1,isChaptersVisible:!a,isPlayQueueVisible:!1,isLyricsVisible:!1}))})},a[z]=function(e,t){var n=t.playerType,i=t.qualityIndex,a=Object(T.c)(e,n);Object(p.a)(e).changeQualityIndex(a,i)},a[U]=function(e,t,n){var i=t.playerType,a=t.streamTypeString,r=t.streamID,o=Object(T.c)(e,i),s=Object(u.a)(o),l=s.get("metadataItem"),c=Object(p.a)(e);n(Object(M.e)({metadataItemEntityID:l.entityID(),mediaIndex:o.get("mediaIndex"),streamTypeString:a,streamID:r})),c.changeStream(o,a,r)},
a["ui/player/playerSettings/changeSubtitleSize"]=function(e,t){var n=t.playerType,i=t.subtitleSize,a=Object(T.c)(e,n),r=e.get("experienceSettings");Object(p.a)(e).changeSubtitleSize(a,r,i)},a["ui/player/playerMedia/changePlaybackSpeed"]=function(e,t){var n=t.playerType,i=t.playbackSpeed,a=Object(T.c)(e,n),r=Object(p.a)(e),o=Math.round(10*i)/10;r.changePlaybackSpeed(a,o)},a["ui/player/playerMedia/setPlaybackTime"]=function(e,t,n){var i=t.playerType,a=t.playbackTime
;Object(T.c)(e,i).set("playbackTime",a)},a)},function(e,t,n){"use strict";function i(e){var t=e.className;return r()("div",{className:t})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3955)),c=n.n(l);i.defaultProps={className:c.a.divider},t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,"e",function(){return u})
;var i=n(3),a=n(230),r=n(27),o="movies",s="tv",l="music",c="photos",u="videos",d=["key","typeID","typeString","rootTypeString"],p=Object(a.a)(d,[{key:o,typeID:"1",typeString:r.f,rootTypeString:r.f,title:function(){return Object(i.default)("Movies")},shortTitle:function(){return Object(i.default)("Movies")},defaultAgent:"com.plexapp.agents.imdb",defaultLanguage:"en",defaultScanner:"Plex Movie Scanner",sectionTypeIcon:"plex-icon-movies-560"},{key:s,typeID:"2",typeString:r.k,rootTypeString:r.k,
title:function(){return Object(i.default)("TV Shows")},shortTitle:function(){return Object(i.default)("Shows")},defaultAgent:"com.plexapp.agents.thetvdb",defaultLanguage:"en",defaultScanner:"Plex Series Scanner",sectionTypeIcon:"plex-icon-shows-560"},{key:l,typeID:"8",typeString:r.b,rootTypeString:r.b,title:function(){return Object(i.default)("Music")},shortTitle:function(){return Object(i.default)("Music")},defaultAgent:"com.plexapp.agents.lastfm",defaultLanguage:"en",
defaultScanner:"Plex Music Scanner",sectionTypeIcon:"plex-icon-music-560",exclusiveAgents:["com.plexapp.agents.plexmusic"],exclusiveScanners:["Plex Premium Music Scanner"]},{key:c,typeID:"13",typeString:r.g,rootTypeString:r.h,title:function(){return Object(i.default)("Photos")},shortTitle:function(){return Object(i.default)("Photos")},defaultAgent:"com.plexapp.agents.none",defaultLanguage:"en",defaultScanner:"Plex Photo Scanner",sectionTypeIcon:"plex-icon-photos-560"},{key:u,typeID:"1",
typeString:r.f,rootTypeString:r.c,title:function(){return Object(i.default)("Other Videos")},shortTitle:function(){return Object(i.default)("Videos")},defaultAgent:"com.plexapp.agents.none",defaultLanguage:"xn",defaultScanner:"Plex Video Files Scanner",sectionTypeIcon:"plex-icon-clips-560"}]);t.f=p},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(1182),o=n(622),s=a.a.extend({},o.a,{type:"video",qualities:{bitrate:[64,96,208,320,720,1500,2e3,3e3,4e3,8e3,1e4,12e3,2e4],
videoResolution:["220x128","220x128","284x160","420x240","576x320","720x480","1280x720","1280x720","1280x720","1920x1080","1920x1080","1920x1080","1920x1080"],videoQuality:[10,20,30,30,40,60,60,75,100,60,75,90,100]},getAvailableQualitiesFor:function(e,t,n){if(!e||!t)return[];if(Array.isArray(e)||(e=[e]),0===e.length)return[];var i=t.get("transcoderVideo"),o=t.get("transcoderVideoRemuxOnly"),s=this.getMaximumResolution(e);if(!i||o||!s)return[];var l=t.get("maxUploadBitrate"),c=a.a.extend({},n,{
comparator:function(e){if(l&&this.qualities.bitrate[e]>l)return!0;var t=this.qualities.videoResolution[e].split("x");return Object(r.a)(t[0],t[1])>s}});return this.getAvailableQualities(c)},getNearestIndexToBitrate:function(e){return this.getNearestIndex(this.qualities.bitrate,e)},getMinimumQuality:function(e,t){return(e===s.ORIGINAL?Number.MAX_VALUE:e)<(t===s.ORIGINAL?Number.MAX_VALUE:t)?e:t},getMaximumQuality:function(e,t){return this.getMinimumQuality(e,t)===e?t:e},
getMaximumResolution:function(e){return e.reduce(function(e,t){if(!t.width&&!t.height)return e;var n=Object(r.a)(t.width,t.height);return null===e||n>e?n:e},null)},isExplicitQuality:function(e){return e!==s.ORIGINAL&&e!==s.CONVERT_AUTOMATICALLY}});t.a=s},,,function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.errorClassName,a=e.name,o=e.hasError,l=s()(e,["children","className","errorClassName","name","hasError"]);return u.a.createElement("label",r()({},l,{
className:(n||"")+" "+(o&&i||""||""),htmlFor:a}),t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(2856),p=n.n(d);i.defaultProps={className:p.a.label,errorClassName:p.a.hasError},t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&t&&n){var o=encodeURIComponent(e.machineIdentifier);if(t.isLibraryProvider){if(e.isCloudSyncServer){var s=encodeURIComponent(n+"/all")
;return a.join("#!/server/"+o+"/list?key="+s,i)}var l="/"===String(n).charAt(0),c=l?n:"/library/sections/"+n,u=encodeURIComponent(c);return a.join("#!/server/"+o+"?key="+u,i)}var d=encodeURIComponent(n),p=Object(r.a)(e,t);return a.join("#!"+p+"?key="+d,i)}}t.a=i;var a=n(18),r=n(675)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3138)),c=n.n(l);i.defaultProps={
className:c.a.pageHeaderLeft},t.a=i},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(c.c)("metrics").trackClick(o()({page:t,action:e,context:g.e},n))}n.d(t,"f",function(){return S}),n.d(t,"g",function(){return M}),n.d(t,"h",function(){return D}),n.d(t,"l",function(){return C}),n.d(t,"e",function(){return j}),n.d(t,"j",function(){return P}),n.d(t,"b",function(){return O}),n.d(t,"k",function(){return T}),n.d(t,"c",function(){
return E}),n.d(t,"a",function(){return w}),n.d(t,"i",function(){return A}),n.d(t,"d",function(){return x});var a,r=n(6),o=n.n(r),s=n(40),l=n(19),c=n(16),u=n(43),d=n(124),p=n(249),h=n(1484),f=n(1485),v=n(86),g=n(138),m=n(399),y=n(134),b=n(696),I="metadata/metadataList/fetchMetadataList",S=(Object(s.a)(I),
Object(s.a)("metadata/metadataList/populateMetadataList")),M=Object(s.a)("metadata/metadataList/populateMetadataListRange"),D=Object(s.a)("metadata/metadataList/repopulateMetadataListRange"),C=Object(s.a)("metadata/metadataList/syncMetadataList"),j=Object(s.a)("metadata/metadataList/optimizeMetadataList"),P=Object(s.a)("metadata/metadataList/selectMetadataListItem"),O=Object(s.a)("metadata/metadataList/deselectMetadataListItem"),T=Object(s.a)("metadata/metadataList/selectMetadataListItems"),E=Object(s.a)("metadata/metadataList/deselectMetadataListItems"),w=Object(s.a)("metadata/metadataList/deselectAllMetadataListItems"),A=Object(s.a)("metadata/metadataList/resetMetadataList"),x=(a={},
a[I]=Object(d.a)({getModel:y.c}),a["metadata/metadataList/populateMetadataList"]=Object(p.a)({fetchActionType:I,getModel:y.c}),a["metadata/metadataList/populateMetadataListRange"]=Object(h.a)({getModel:y.c}),a["metadata/metadataList/repopulateMetadataListRange"]=Object(f.a)({getModel:y.c}),a["metadata/metadataList/syncMetadataList"]=function(e,t){var n=Object(y.c)(e,t);u.a.execute("showSyncModal",{item:n}),i(v.X,t.metricsPage,t.metricsProperties)},
a["metadata/metadataList/optimizeMetadataList"]=function(e,t){var n=Object(y.c)(e,t),a=new b.a({item:n});l.a.trigger("show:modal",a),i(v.D,t.metricsPage,t.metricsProperties)},a["metadata/metadataList/selectMetadataListItem"]=function(e,t,n){var i=t.id,a=t.type,r=t.isRangeSelect,o=Object(y.c)(e,t),s=Object(y.b)(e,{metadataItemEntityID:i}),l=o.getCollection();s&&n(Object(m.q)({type:a,model:s,collection:l,isRangeSelect:r}))},a["metadata/metadataList/deselectMetadataListItem"]=function(e,t,n){
var i=Object(y.b)(e,{metadataItemEntityID:t.id});i&&n(Object(m.f)([i.id]))},a["metadata/metadataList/selectMetadataListItems"]=function(e,t,n){var i=t.ids,a=t.type,r=i.reduce(function(t,n){var i=Object(y.j)(e,{metadataItemEntityID:n});return i&&t.push({id:i&&i.id,type:a,model:i}),t},[]);n(Object(m.r)(r))},a["metadata/metadataList/deselectMetadataListItems"]=function(e,t,n){var i=t.ids.reduce(function(t,n){var i=Object(y.j)(e,{metadataItemEntityID:n});return i&&t.push({id:i&&i.id}),t},[])
;n(Object(m.f)(i))},a["metadata/metadataList/deselectAllMetadataListItems"]=function(e,t,n){var i=Object(y.c)(e,t),a=i.getCollection();n(Object(m.e)(a))},a["metadata/metadataList/resetMetadataList"]=function(e,t){var n=Object(y.c)(e,t);n.abortPendingPopulate(),n.resetPopulatePromise(null),n.restoreDefaults({containerKey:n.get("containerKey"),containerTitle:n.get("containerTitle")})},a)},function(e,t,n){"use strict";function i(e){return Object(a.createSelector)(Object(r.a)(),function(t){
return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(89))},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){c()(this,n);var a=d()(this,t.call(this,e,i));return a.onMoveTimeout=function(){a.setState({isMoving:!1})},a.state={isMoving:!1},a}return h()(n,t),n.prototype.componentDidMount=function(){this._setRenderedItem(),this._setVisibleItem()},n.prototype.componentWillReceiveProps=function(e,t){var n=this.props[this.props.keyPropName],i=e[e.keyPropName]
;null!=n&&n===i?this.props.cellIndex!==e.cellIndex&&(this.setState({isMoving:!0}),this._clearMoveTimeout(),this._moveTimeoutID=setTimeout(this.onMoveTimeout,this.props.moveTimeout)):(this._renderedItem=null,this._visibleItem=null,this.setState({isMoving:!1}),this._clearMoveTimeout())},n.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},n.prototype.componentDidUpdate=function(){this._setRenderedItem(),this._setVisibleItem()},n.prototype.componentWillUnmount=function(){
this._clearMoveTimeout()},n.prototype._setRenderedItem=function(){this.props.isScrolling||(this._renderedItem=this.props[this.props.keyPropName])},n.prototype._setVisibleItem=function(){this.props.isVisible&&(this._visibleItem=this.props[this.props.keyPropName])},n.prototype._clearMoveTimeout=function(){this._moveTimeoutID&&(this._moveTimeoutID=clearTimeout(this._moveTimeoutID))},n.prototype.render=function(){
var t=this.props,n=t.className,i=t.keyPropName,a=t.isScrolling,o=t.isVisible,l=(t.moveTimeout,s()(t,["className","keyPropName","isScrolling","isVisible","moveTimeout"])),c=l[i],u=a&&c!==this._renderedItem,d=!o&&c!==this._visibleItem;return g.a.createElement(e,r()({className:(n||"")+" "+(I.a.cell||"")+" "+(this.state.isMoving&&I.a.isMoving||""||""),showScrollPlaceholder:u,showOffscreenPlaceholder:d},l))},n}(v.Component);return t.displayName="Virtualized("+Object(m.a)(e)+")",t.WrappedComponent=e,
t.defaultProps={moveTimeout:400,isScrolling:!1,isVisible:!0},t}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(190),y=n(28),b=n(3631),I=n.n(b);t.a=i},function(e,t,n){"use strict";function i(e,t){return function(n){return s.a.createElement(t,r()({},e,n))}}t.a=i;var a=n(6),r=n.n(a),o=n(0),s=n.n(o)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t,
"data-qa-id":"preplayMainTitle"},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3802)),c=n.n(l);i.defaultProps={className:c.a.primaryTitle},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.innerClassName,i=c()(e,["children","innerClassName"]);return p.a.createElement(h.a,r()({className:v.a.pageContent},i),s()("div",{className:n},void 0,t))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(1436),f=n(4087),v=n.n(f)
;i.defaultProps={innerClassName:v.a.innerPageContent},t.a=i},,function(e,t,n){"use strict";var i=n(3),a=n(230),r=["id","typeString"],o=Object(a.a)(r,[{id:1,typeString:"video",key:"videoStreamID",title:function(){return Object(i.default)("Video")}},{id:2,typeString:"audio",key:"audioStreamID",title:function(){return Object(i.default)("Audio")}},{id:3,typeString:"subtitles",key:"subtitleStreamID",title:function(){return Object(i.default)("Subtitles")}},{id:4,typeString:"lyrics",
key:"lyricStreamID",title:function(){return Object(i.default)("Lyrics")}}]);t.a=o},function(e,t,n){"use strict";var i={dashboardTopPlayedChart:"1.14.1",dashboardBandwidthChart:"1.14.1",mediaProvidersServerRoot:"1.13.10",streamDisplayTitles:"1.13.8",softSubtitlesWithDirectPlay:"1.13.4",channelGrid:"1.13.2.5081",typeFirst:"1.12.1",photoTagEdit:"1.11.1",sharedUserNotifications:"1.11.1",adaptiveBitrateFallback:"1.9.5",truePlaylistsPath:"1.9.3",multiplePlaylistTypes:"1.7.1",itemClusters:"1.5.4",
optimizeDatabaseActivity:"1.4.2",asyncCheckFiles:"1.4.0",json:"1.8.0",libraryDeleteActivity:"1.2.1",cleanBundlesActivity:"1.2.1",allowBlacklistedMethodHeaders:"1.2.1",decisionEndpoint:"1.0.3",defaultSections:"0.9.17.3",ownerFeatures:"0.9.17.0",replaceTranscodeTarget:"0.9.17.0",quickSearch:"0.9.16.0",relay:"0.9.15.0",claimServer:"0.9.14.2",searchSpecificType:"0.9.14.2",linkedYearMetadata:"0.9.14.0",streamReady:"0.9.14.0",syncOriginalQuality:"0.9.14.0",allPartsStreamSelection:"0.9.12.5",
sharedChannels:"0.9.12.5",shortenTranscodeURL:"0.9.12.5",companionProxy:"0.9.12.5",editSimilarArtists:"0.9.12.2",neuterRedirect:"0.9.12.0",audioAsVideo:"0.9.12.0",compositeDelete:"0.9.12.0",batchEdit:"0.9.12.0",premiumMusic:"0.9.12.0",transientToken:"0.9.12.0",softSubtitles:"0.9.12.0",sharedSyncStatus:"0.9.11.14",reachability:"0.9.11.14",photoPlayQueues:"0.9.11.12",publicNowPlaying:"0.9.11.3",labels:"0.9.11.2",updater:"0.9.11.1",playItemsBatchAdd:"0.9.9.16",playlists:"0.9.9.13",
imageFilters:"0.9.9.13",hubFilterSigns:"0.9.9.12",cancelAllUpdates:"0.9.9.10",playQueues:"0.9.9.6",sectionSettings:"0.9.9.6",hubFilters:"0.9.9.2",streamingMKV:"0.9.9.16",chunkedHTTP:"0.9.9.3",sharedSync:"0.9.9.3",dash:"0.9.8.6",specificMediaDeletion:"0.9.7.23",sharedSettings:"0.9.7.23",syncNotifications:"0.9.7.23",universalMusicTranscoder:"0.9.8.3",universalTranscoder:"0.9.7.17",sync:"0.9.7.10",artworkUpload:"0.9.7.9",firstRunPref:"0.9.7.3",timelineState:"0.9.7.2",cleanBundles:"0.9.7.0",
advancedFilters:"0.9.7.0",search:"0.9.7.0",merge:"0.9.7.0",splitApart:"0.9.7.0"};t.a=i},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(251)),r=Object(i.createSelectorCreator)(i.defaultMemoize,a.a);t.a=r},function(e,t,n){"use strict";function i(e){return e.user}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.dangerouslySetInnerHTML,i=e.children,a=i?i.split("\n"):[];return r()(l.a,{className:t,dangerouslySetInnerHTML:n},void 0,a.length>1?a.map(function(e,t){
return r()("p",{},t,e)}):i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3956)),c=n(3958),u=n.n(c);i.defaultProps={className:u.a.summary},t.a=i},function(e,t,n){"use strict";function i(e){return{onServerMenuOpen:function(){e(Object(c.b)()),e(Object(o.a)())}}}var a=n(11),r=n(4),o=(n.n(r),n(304)),s=n(395),l=n(743),c=n(71),u=n(4095),d=Object(r.createStructuredSelector)({primaryServerEntityID:function(e){return e.primaryServer},serverEntityIDs:function(e){return e.servers},
providerEntityIDs:Object(s.a)("providers"),canProvisionPersonalCloudServer:l.a}),p=Object(a.connect)(d,i)(u.a);t.a=p},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(4),g=(n.n(v),n(72)),m=n(36),y=(n(33),n(71)),b=n(746),I=n(4185),S=Object(v.createSelector)(g.a,function(e){return{columnAdjustment:e.columnAdjustment,listStyles:e.listStyles}}),M=function(e){function t(){var n,i,r;o()(this,t)
;for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(c))),i.onColumnAdjustmentChange=function(e){Object(m.a)(function(){i.props.saveExperienceSettings({columnAdjustment:e})})},i.onListStyleChange=function(e){var t,n,r=i.props,o=r.listStyles,s=r.listType,l=r.listSubtype,c=r.listContext,u=Object(b.a)(s,l),d=a()({},o,(n={},n[c]=a()({},o[c]||{},(t={},t[u]=e,t)),n));Object(m.a)(function(){i.props.saveExperienceSettings({listStyles:d})})
},r=n,l()(i,r)}return u()(t,e),t.prototype.render=function(){return h.a.createElement(I.a,a()({},this.props,{onColumnAdjustmentChange:this.onColumnAdjustmentChange,onListStyleChange:this.onListStyleChange}))},t}(p.Component);t.a=Object(f.connect)(function(e){return S},{saveExperienceSettings:y.k})(M)},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.subtype,i=e.height,a=e.posterWidth,r=e.posterTop,o=e.pageHeight,s=e.scrollTop,l=Object(u.d)(a,t,n,c.i),d=r+i-s,p=o+m-l
;return Math.min(Math.max(d,r),p)}function a(e){var t=e.children,n=e.serverEntityID,a=e.providerEntityID,r=e.metadataItemEntityID,s=e.showPoster,l=e.posterType,c=e.attribution,d=e.metadataKey,p=e.type,m=e.subtype,I=e.thumb,S=e.art,M=e.hero,D=e.pageWidth,C=e.pageHeight,j=e.scrollTop,P=e.posterWidth,O=e.posterTop,T=!!S,E=!T&&!!M,w=O,A=void 0;return T&&(A=Math.min(Math.round(D/u.a),C-y),w=i({type:p,subtype:m,height:A,posterWidth:P,posterTop:O,pageHeight:C,scrollTop:j})),E&&(w=i({type:p,subtype:m,
height:b,posterWidth:P,posterTop:O,pageHeight:C,scrollTop:j})),o()("div",{},void 0,T&&o()(h.a,{serverEntityID:n,providerEntityID:a,width:D,height:A,url:S}),E&&o()(f.a,{width:D,height:b,url:M}),c&&o()(c,{providerEntityID:a,pageHeight:C,posterTop:O}),s&&o()(g.a,{serverEntityID:n,providerEntityID:a,metadataItemEntityID:r,metadataKey:d,type:p,subtype:m,posterType:l,pageHeight:C,posterWidth:P,posterTop:w,posterUrl:I}),s?o()(v.a,{posterWidth:P},void 0,t):o()("div",{},void 0,t))}
var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(33)),u=n(130),d=n(46),p=n.n(d),h=n(4635),f=n(4637),v=n(4639),g=n(4641),m=parseInt(p.a.pageHeaderHeight,10),y=246,b=290;a.defaultProps={showPoster:!0},t.a=a},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4644)),c=n.n(l);i.defaultProps={className:c.a.innerContent},t.a=i},,function(e,t,n){
var i=n(229),a=n(120),r=n(775),o=n(421),s=n(349),l=function(e,t,n){var c,u,d,p=e&l.F,h=e&l.G,f=e&l.S,v=e&l.P,g=e&l.B,m=e&l.W,y=h?a:a[t]||(a[t]={}),b=y.prototype,I=h?i:f?i[t]:(i[t]||{}).prototype;h&&(n=t);for(c in n)(u=!p&&I&&void 0!==I[c])&&s(y,c)||(d=u?I[c]:n[c],y[c]=h&&"function"!=typeof I[c]?n[c]:g&&u?r(d,i):m&&I[c]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}
return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):v&&"function"==typeof d?r(Function.call,d):d,v&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&o(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},,function(e,t,n){"use strict";function i(e){return{status:e.status,statusText:e.statusText,readyState:e.readyState,responseText:e.responseText}}t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return m}),n.d(t,"a",function(){return y}),
n.d(t,"h",function(){return b}),n.d(t,"i",function(){return I}),n.d(t,"f",function(){return S}),n.d(t,"g",function(){return M}),n.d(t,"u",function(){return D}),n.d(t,"p",function(){return C}),n.d(t,"t",function(){return j}),n.d(t,"o",function(){return P}),n.d(t,"q",function(){return O}),n.d(t,"s",function(){return T}),n.d(t,"r",function(){return E}),n.d(t,"d",function(){return w}),n.d(t,"e",function(){return A}),n.d(t,"k",function(){return x}),n.d(t,"c",function(){return N}),
n.d(t,"n",function(){return L}),n.d(t,"l",function(){return k}),n.d(t,"m",function(){return R}),n.d(t,"j",function(){return z})
;var i,a=n(40),r=n(32),o=n(18),s=n(436),l=n(434),c=n(845),u=n(636),d=n(371),p=n(41),h=n(70),f=n(198),v=n(36),g=n(77),m="ui/player/playQueue/savePlayQueueState",y="ui/player/playQueue/removePlayQueueState",b=Object(a.a)("ui/player/playQueue/playNextItem"),I=Object(a.a)("ui/player/playQueue/playPreviousItem"),S=Object(a.a)("ui/player/playQueue/playItemByIndex"),M=Object(a.a)("ui/player/playQueue/playItemByKey"),D=(Object(a.a)("ui/player/playQueue/playItemByID"),
Object(a.a)("ui/player/playQueue/toggleShuffle")),C=Object(a.a)("ui/player/playQueue/setRepeat"),j=Object(a.a)("ui/player/playQueue/toggleRepeat"),P=Object(a.a)("ui/player/playQueue/setAutoPlay"),O=Object(a.a)("ui/player/playQueue/showPostPlay"),T=Object(a.a)("ui/player/playQueue/togglePlayerPlayQueueState"),E=Object(a.a)("ui/player/playQueue/togglePlayerLyricsState"),w=Object(a.a)("ui/player/playQueue/fetchPlayQueueItemLyrics"),A=Object(a.a)("ui/player/playQueue/movePlayQueueItem"),x=Object(a.a)("ui/player/playQueue/removePlayQueueItem"),N=Object(a.a)("ui/player/playQueue/fetchPlayQueue"),L=Object(a.a)(m),k=Object(a.a)(y),R=Object(a.a)("ui/player/playQueue/restorePlayQueue"),z=(i={},
i["ui/player/playQueue/playNextItem"]=function(e,t){var n=t.playerType,i=t.isApplicationInitiated,a=Object(f.c)(e,n),r=Object(s.a)(e);Object(v.a)(function(){a.get("isPostPlayVisible")&&a.set({isPostPlayVisible:!1}),r.playNextItem(a,i)})},i["ui/player/playQueue/playPreviousItem"]=function(e,t){var n=t.playerType,i=Object(f.c)(e,n),a=Object(s.a)(e);Object(v.a)(function(){i.set({isPostPlayVisible:!1}),i.get("positionSeconds")>d.a?(a.seek(i,0),a.play(i)):a.playPreviousItem(i)})},
i["ui/player/playQueue/playItemByIndex"]=function(e,t){var n=t.playerType,i=t.index,a=Object(f.c)(e,n),r=Object(s.a)(e);Object(v.a)(function(){r.playItem(a,i)})},i["ui/player/playQueue/playItemByKey"]=function(e,t,n){var i=t.playerType,a=t.key,o=Object(f.c)(e,i),s=o.get("playQueue"),l=s.get("playQueueItems"),c=l.find(function(e){return a===e.get("metadataItem").get("key")});if(c){var u=l.indexOf(c);n(S({playerType:i,index:u}))}else r.a.warn('[Player] Unable to play unknown key "'+a+'"')},
i["ui/player/playQueue/playItemByID"]=function(e,t,n){var i=t.playerType,a=t.playQueueItemID,o=Object(f.c)(e,i),s=o.get("playQueue"),l=s.get("playQueueItems"),c=l.get(a);if(c){var u=l.indexOf(c);n(S({playerType:i,index:u}))}else r.a.warn('[Player] Unable to play unknown PlayQueueItemID "'+a+'"')},i["ui/player/playQueue/toggleShuffle"]=function(e,t,n){var i=t.playerType,a=Object(f.c)(e,i),r=a.get("playQueue");Object(v.a)(function(){var t=r.get("playQueueShuffled"),o=!t
;r.set("playQueueShuffled",o);var c=o?"shuffle":"unshuffle";Object(l.a)(r,{urlPath:c,type:"PUT"}).done(Object(u.a)(a,function(){var t=Object(s.a)(e);n(L({playerType:i})),t.refreshRemotePlayQueue(a)})).fail(Object(u.a)(a,function(){r.set("playQueueShuffled",!o)}))})},i["ui/player/playQueue/setRepeat"]=function(e,t,n){var i=t.playerType,a=t.repeatAll,r=t.repeatOne,o=Object(f.c)(e,i),c=o.get("playQueue"),d=Object(s.a)(e);Object(v.a)(function(){d.setRepeat(o,{repeatAll:a||r,repeatOne:r}),
Object(l.a)(c).done(Object(u.a)(o,function(){n(L({playerType:i}))})).fail(Object(u.a)(o,function(){c.set({repeatAll:!1,repeatOne:!1}),c.set("repeat",!1)}))})},i["ui/player/playQueue/toggleRepeat"]=function(e,t,n){var i=t.playerType,a=Object(f.c)(e,i),r=a.get("repeatAll"),o=a.get("repeatOne");n(C({playerType:i,repeatAll:!r||!o,repeatOne:r&&!o}))},i["ui/player/playQueue/setAutoPlay"]=function(e,t){var n=t.playerType,i=t.autoPlay,a=Object(f.c)(e,n),r=e.get("experienceSettings")
;Object(s.a)(e).changeAutoPlay(a,r,i)},i["ui/player/playQueue/showPostPlay"]=function(e,t,n){var i=t.playerType,a=Object(f.c)(e,i),r=Object(s.a)(e),o=a.get("playQueue"),l=Object(f.a)(a,o.get("currentIndex")),c=l.get("postPlay"),d=o.provider.id,h=function(){a.set({isSettingsVisible:!1,isChaptersVisible:!1,isPostPlayLoading:!1,isPostPlayVisible:!0}),r.pause(a,!0)};a.set({isPostPlayLoading:!0}),d===p.d?c.fetch().then(Object(u.a)(a,function(){var e=c.findWhere({upNext:!0});e&&c.remove(e),h()
}),Object(u.a)(a,h)):setTimeout(Object(u.a)(a,h),0)},i["ui/player/playQueue/togglePlayerPlayQueueState"]=function(e,t){var n=t.playerType,i=Object(f.c)(e,n),a=i.get("isPlayQueueVisible");Object(v.a)(function(){i.set(Object(c.a)(i,a,{isSettingsVisible:!1,isChaptersVisible:!1,isPlayQueueVisible:!a,isLyricsVisible:!1}))})},i["ui/player/playQueue/togglePlayerLyricsState"]=function(e,t){var n=t.playerType,i=Object(f.c)(e,n),a=i.get("isLyricsVisible");Object(v.a)(function(){i.set(Object(c.a)(i,a,{
isSettingsVisible:!1,isChaptersVisible:!1,isPlayQueueVisible:!1,isLyricsVisible:!a}))})},i["ui/player/playQueue/fetchPlayQueueItemLyrics"]=function(e,t,n){var i=t.streamID,a=Object(h.g)(e,t),r=a.get("lyricsStreams").get(i);r.set("lyricsError",null),r.fetch({merge:!0}).fail(function(e){r.set("lyricsError",e)})},i["ui/player/playQueue/movePlayQueueItem"]=function(e,t,n){var i=t.playerType,a=t.playQueueItemEntityID,r=t.moveIndex,c=Object(f.c)(e,i),d=c.get("playQueue"),p=Object(h.g)(e,{
playQueueItemEntityID:a}),g=d.get("playQueueItems"),m=g.indexOf(p);if(m!==r&&m!==r-1){var y=r>m?r-1:r,b=r>0?g.at(r-1).id:void 0,I=o.join(["items",p.id,"move"]),S={after:b};Object(v.a)(function(){g.remove(p),g.add(p,{at:y}),Object(l.a)(d,{urlPath:I,params:S,type:"PUT"}).done(Object(u.a)(c,function(){var t=Object(s.a)(e);n(L({playerType:i})),t.refreshRemotePlayQueue(c)})).fail(Object(u.a)(c,function(){g.indexOf(p)===y&&(g.remove(p),g.add(p,{at:m}))}))})}},
i["ui/player/playQueue/removePlayQueueItem"]=function(e,t,n){var i=t.playerType,a=t.playQueueItemEntityID,r=Object(f.c)(e,i),c=r.get("playQueue"),d=c.get("playQueueItems"),p=Object(h.g)(e,{playQueueItemEntityID:a}),g=d.indexOf(p),m=o.join(["items",p.id]);Object(v.a)(function(){d.remove(p),Object(l.a)(c,{urlPath:m,type:"DELETE"}).done(Object(u.a)(r,function(){var t=Object(s.a)(e);n(L({playerType:i})),t.refreshRemotePlayQueue(r)})).fail(Object(u.a)(r,function(){d.add(p,{at:g})}))})},
i["ui/player/playQueue/fetchPlayQueue"]=function(e,t){var n=t.playerType,i=Object(f.c)(e,n),a=i.get("playQueue");Object(l.a)(a)},i[m]=function(e,t){t.playerType},i[y]=function(e){},i["ui/player/playQueue/restorePlayQueue"]=function(e,t,n){var i=t.serverEntityID,a=t.providerEntityID,r=t.playQueueType,o=t.playQueueOffset,s=t.playQueueRepeat,l=t.playQueueID,c=t.next,u={serverEntityID:i,providerEntityID:a,startOffsetMilliseconds:1e3*o,options:{type:r,playQueueRepeat:s,playQueueID:l,next:c}}
;n(Object(g.h)(u))},i)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.servers});t.a=r},function(e,t,n){"use strict";function i(e){return e.entities}t.a=i},,function(e,t,n){"use strict";function i(e){return e.get("ui").get("dvrSettingsUI").get("dvrSetup")}function a(e){return e.get("ui").get("dvrSettingsUI").get("dvrs")}function r(e,t){return a(e).get(t.dvrID)}function o(e,t){var n=i(e),a=t.deviceID;if(t.dvrID&&a){
var o=r(e,t).get("devices").get(a);if(o)return o}if(a){var s=n.get("devices").get(a);if(s)return s}return n.get("selectedDevice")}function s(e,t){if(t.country)return t.country;var n=i(e),a=n.get("epgSettings").get("selectedCountry");return a?a.get("code"):void 0}function l(e,t){if(t.dvrID&&t.deviceID){return o(e,t).get("channelMappings")}return i(e).get("channelMappings")}function c(e,t){var n=i(e),a=Object(L.h)(e,t),r=o(e,t),s=r.get("channels"),c=t.data,u=[],d={};h()(c).forEach(function(e){
var t=c[e],n=t.enabled,i=t.lineupIdentifier,a=s.get(e),r=!(!a||!a.get("drm"));n&&i&&!r&&u.push(e),i&&(d["channelMapping["+e+"]"]=i)});var p=b.join(["/media/grabbers/devices",t.deviceID,"channelmap"],v()({channelsEnabled:u.toString()},d));n.set("isChannelMappingsSaving",!0);var f=a.getXHROptions(p,{type:"PUT"}),g=m.a.ajax(f);return g.done(function(){n.set({isChannelMappingsSaving:!1,channelMappingsSaveError:null});var i=l(e,t);s.forEach(function(e){
var t=e.id,n=-1!==u.indexOf(t),a=d["channelMapping["+t+"]"];a?i.add([{deviceIdentifier:t,enabled:n,lineupIdentifier:a}],{parse:!0,merge:!0}):i.remove(t)})}),g.fail(function(e){n.set({isChannelMappingsSaving:!1,channelMappingsSaveError:Object(E.a)(e)})}),g}function u(e,t){var n=Object(L.h)(e,t),a=t.enabled,r=b.join(["/media/grabbers/devices",t.deviceID],{enabled:a?1:0}),s=n.getXHROptions(r,{type:"PUT"}),l=m.a.ajax(s).promise();return l.done(function(){if(i(e)){var n=o(e,t)
;n&&n.set("status",a?"enabled":"disabled")}}),l}n.d(t,"g",function(){return k}),n.d(t,"l",function(){return R}),n.d(t,"m",function(){return z}),n.d(t,"q",function(){return U}),n.d(t,"j",function(){return B}),n.d(t,"b",function(){return F}),n.d(t,"z",function(){return _}),n.d(t,"A",function(){return V}),n.d(t,"p",function(){return H}),n.d(t,"o",function(){return Q}),n.d(t,"y",function(){return Y}),n.d(t,"c",function(){return G}),n.d(t,"s",function(){return W}),n.d(t,"B",function(){return K}),
n.d(t,"d",function(){return Z}),n.d(t,"u",function(){return q}),n.d(t,"e",function(){return J}),n.d(t,"v",function(){return X}),n.d(t,"a",function(){return $}),n.d(t,"t",function(){return ee}),n.d(t,"w",function(){return te}),n.d(t,"f",function(){return ne}),n.d(t,"x",function(){return ie}),n.d(t,"i",function(){return ae}),n.d(t,"h",function(){return re}),n.d(t,"C",function(){return oe}),n.d(t,"r",function(){return se}),n.d(t,"n",function(){return le}),n.d(t,"k",function(){return ce})
;var d,p=n(59),h=n.n(p),f=n(6),v=n.n(f),g=n(13),m=n.n(g),y=n(40),b=n(18),I=n(87),S=n(188),M=n(356),D=n(125),C=n(124),j=n(116),P=n(250),O=n(74),T=n(3),E=n(171),w=n(386),A=n(1405),x=n(685),N=n(71),L=n(134),k=Object(y.a)("CLEAR_DVR_SETUP"),R=Object(y.a)("DVR_SETUP_NEXT_STEP"),z=Object(y.a)("DVR_SETUP_PREVIOUS_STEP"),U=Object(y.a)("FETCH_DEVICES"),B=Object(y.a)("DISCOVER_DEVICES"),F=Object(y.a)("ADD_DEVICE"),_=Object(y.a)("SELECT_DEVICE"),V=Object(y.a)("SELECT_DEVICE_SOURCE"),H=Object(y.a)("FETCH_DEVICE_DETAILS"),Q=Object(y.a)("FETCH_DEVICE_CHANNELS"),Y=Object(y.a)("SCAN_DEVICE_CHANNELS"),G=Object(y.a)("CANCEL_SCAN_DEVICE_CHANNELS"),W=Object(y.a)("FIND_BEST_EPG_LINEUP"),K=Object(y.a)("SELECT_EPG_LINEUP"),Z=Object(y.a)("CLEAR_CHANNEL_MAP_ERROR"),q=Object(y.a)("SAVE_CHANNEL_MAP"),J=Object(y.a)("CLEAR_CHANNEL_MAPPINGS_SAVE_ERROR"),X=Object(y.a)("SAVE_DVR"),$=Object(y.a)("ADD_DVR_DEVICE"),ee=Object(y.a)("REMOVE_DVR_DEVICE"),te=Object(y.a)("SAVE_DVR_SETTINGS"),ne=Object(y.a)("CLEAR_DVR_SETTINGS_SAVE_ERROR"),ie=Object(y.a)("SAVE_DEVICE_SETTINGS"),ae=Object(y.a)("CLEAR_DEVICE_SETTINGS_SAVE_ERROR"),re=Object(y.a)("CLEAR_DEVICE_SCAN_PREFS"),oe=Object(y.a)("SET_DVR_DEVICE_ENABLED"),se=Object(y.a)("FETCH_LINEUP_CHANNELS",function(e){
var t=b.join("/livetv/epg/channels",{lineup:e.lineupUUID});return v()({options:{url:t,timeout:I.b}},e)}),le=Object(y.a)("FETCH_CHANNEL_MAP",function(e){var t=b.join("/livetv/epg/channelmap",{device:e.deviceUUID,lineup:e.lineupUUID});return v()({options:{url:t}},e)}),ce=Object(D.a)((d={},d.CLEAR_DVR_SETUP=function(e){i(e).restoreDefaults()},d.DVR_SETUP_NEXT_STEP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a={};switch(n.get("step")){case x.b.DEVICE:
n.get("selectedDevice").get("unsupported")?a.step=x.b.UNSUPPORTED_DEVICE:a.step=x.b.DEVICE_CHANNELS;break;case x.b.UNSUPPORTED_DEVICE:a.step=x.b.DEVICE_CHANNELS;break;case x.b.DEVICE_CHANNELS:t.dvrID?(a.selectedLineupUUID=r(e,t).get("lineup"),a.step=x.b.CHANNEL_MAPPING):a.step=x.b.EPG;break;case x.b.EPG:n.get("selectedLineupUUID")?a.step=x.b.CHANNEL_MAPPING:a.step=x.b.EPG_MAPPING;break;case x.b.EPG_MAPPING:a.step=x.b.CHANNEL_MAPPING;break;case x.b.CHANNEL_MAPPING:a.step=x.b.EPG_DOWNLOAD}
n.get("setupErrorMessages").reset(),n.set(a)},d.DVR_SETUP_PREVIOUS_STEP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a={};switch(n.get("step")){case x.b.UNSUPPORTED_DEVICE:a.step=x.b.DEVICE;break;case x.b.DEVICE_CHANNELS:a.hasScannedChannels=!1,a.step=x.b.DEVICE;break;case x.b.EPG:a.step=x.b.DEVICE_CHANNELS;break;case x.b.CHANNEL_MAPPING:t.dvrID?a.step=x.b.DEVICE_CHANNELS:a.step=x.b.EPG}n.get("setupErrorMessages").reset(),n.set(a)},
d.FETCH_DEVICES=function(e,t,n){var a=i(e),r=a.get("devices");a.set("isDevicesPending",!0),r.fetch().done(function(){a.set({isDevicesPending:!1,isDevicesPopulated:!0,devicesError:null});var e=r.filter(function(e){return!e.get("parentID")&&e.get("status")===w.b.ALIVE});1===e.length&&n(_({serverEntityID:t.serverEntityID,deviceID:e[0].id}))}).fail(function(e,t){a.set({isDevicesPending:!1,devicesError:Object(E.a)(t)})})},d.DISCOVER_DEVICES=function(e,t,n){
var a=Object(L.h)(e,t),r=i(e),o=a.getXHROptions("/media/grabbers/devices/discover",{type:"POST"});r.get("isDiscoveringDevices")||(r.set("isDiscoveringDevices",!0),m.a.ajax(o).done(function(e){var i=r.get("devices"),a=i.add(e,{parse:!0,merge:!0}),o=a.filter(function(e){return!e.get("parentID")&&e.get("status")===w.b.ALIVE});r.get("setupErrorMessages").remove("discoverDevices"),1===o.length&&n(_({serverEntityID:t.serverEntityID,deviceID:o[0].id})),r.set("isDiscoveringDevices",!1)
}).fail(function(e){r.get("setupErrorMessages").add({id:"discoverDevices",message:Object(P.a)(e,Object(T.default)("There was a problem discovering devices"))}),r.set("isDiscoveringDevices",!1)}))},d.ADD_DEVICE=function(e,t,n){var a=Object(L.h)(e,t),r=i(e),o=b.join(["/media/grabbers","tv.plex.grabbers.hdhomerun","devices"],{uri:t.uri}),s=a.getXHROptions(o,{type:"POST"});r.set("addDevicePending",!0),m.a.ajax(s).done(function(e,n){var i=r.get("devices"),a=i.add(e,{parse:!0});if(0===a.length){
var o=O.a.parseXML(e),s=o&&o.message||Object(T.default)("No device found at {1}",t.uri);r.get("setupErrorMessages").add({id:"addDevice",message:s}),r.set("addDevicePending",!1)}else r.get("setupErrorMessages").remove("addDevice"),r.set({addDevicePending:!1,selectedDevice:1===a.length?a[0]:r.get("selectedDevice")})}).fail(function(e){r.get("setupErrorMessages").add({id:"addDevice",message:Object(P.a)(e,Object(T.default)("There was a problem adding the device: {1}",t.uri))}),
r.set("addDevicePending",!1)})},d.SELECT_DEVICE=function(e,t){var n=i(e),a=o(e,t);n.set("selectedDevice",a)},d.SELECT_DEVICE_SOURCE=function(e,t){i(e).get("selectedDevice").set("selectedSource",t.source)},d.FETCH_DEVICE_DETAILS=function(e,t){var n=i(e);o(e,t).fetch().fail(function(e){n.get("setupErrorMessages").add({id:"fetchDeviceDetails",message:Object(P.a)(e,Object(T.default)("There was a problem getting the details for your device"))})})},d.FETCH_DEVICE_CHANNELS=function(e,t){
var n=i(e),a=o(e,t),r=b.join(["/media/grabbers/devices",a.get("key"),"channels"]);a.set("isChannelsPending",!0);var s={url:r,timeout:I.b};a.get("channels").fetch(s).done(function(){a.set({isChannelsPending:!1,isChannelsPopulated:!0,channelsError:null})}).fail(function(e){a.set({isChannelsPending:!1,isChannelsPopulated:!0,channelsError:null}),n.get("setupErrorMessages").add({id:"fetchDeviceDetails",
message:Object(P.a)(e,Object(T.default)("There was a problem getting the channels for your device"))})})},d.SCAN_DEVICE_CHANNELS=function(e,t,n){var a=i(e),r=Object(L.h)(e,t),l=o(e,t),c=s(e,t),u=l.get("selectedSource")||l.get("source"),d=t.prefs,p=t.network,h=b.join(["/media/grabbers/devices",l.get("key"),"scan"],{source:u,country:c,prefs:d,network:p}),f=r.getXHROptions(h,{type:"POST"});m.a.ajax(f).done(function(e,i,r){var o=r.getResponseHeader("X-Plex-Activity");if(l.get("channels").reset(),
o)n(re(t));else{var s=new M.a(e,{parse:!0});a.set("scanPrefs",s)}}).fail(function(e){a.get("setupErrorMessages").add({id:"scanDeviceChannels",message:Object(P.a)(e,Object(T.default)("There was a problem scanning channels"))})})},d.CANCEL_SCAN_DEVICE_CHANNELS=function(e,t,n){var a=i(e),r=Object(L.h)(e,t),o=t.deviceID;if(!o)throw new Error("A device ID is required to cancel a channel scan.");var s=b.join(["/media/grabbers/devices",o,"scan"]),l=r.getXHROptions(s,{type:"DELETE"})
;m.a.ajax(l).fail(function(e){a.get("setupErrorMessages").add({id:"cancelScanDeviceChannels",message:Object(P.a)(e,Object(T.default)("There was a problem canceling the current channel scan"))})})},d.FIND_BEST_EPG_LINEUP=function(e,t,n){var a=Object(L.h)(e,t),r=i(e),o=r.get("selectedDevice"),s=r.get("epgSettings").get("lineupGroup"),l=b.join("/livetv/epg/lineup",{device:o.get("uuid"),lineupGroup:s.get("uuid")}),c=a.getXHROptions(l);m.a.ajax(c).done(function(e,t,n){
var i=n.getResponseHeader("X-Plex-Activity");r.set("epgLineupActivityID",i)}).fail(function(e){r.get("setupErrorMessages").add({id:"findBestEPGLineup",message:Object(P.a)(e,Object(T.default)("There was a problem mapping channels"))})})},d.SELECT_EPG_LINEUP=function(e,t){i(e).set("selectedLineupUUID",t.lineupUUID)},d.FETCH_LINEUP_CHANNELS=Object(C.a)({key:"lineupChannels",getModel:i}),d.FETCH_CHANNEL_MAP=function(e,t){var n=i(e,t),a=n.get("channelMappings"),r=v()({timeout:I.b},t.options)
;n.set("isChannelMappingsPending",!0),a.fetch(r).done(function(){t.forceEnabled&&a.each(function(e){e.set("enabled",e.has("lineupIdentifier"))}),n.set({isChannelMappingsPending:!1,isChannelMappingsPopulated:!0,channelMappingsError:null})}).fail(function(e,t){n.set({isChannelMappingsPending:!1,channelMappingsError:Object(E.a)(t)})})},d.CLEAR_CHANNEL_MAP_ERROR=function(e,t){i(e,t).set({channelMappingsError:null,lineupChannelsError:null})},d.SAVE_CHANNEL_MAP=function(e,t,n){c(e,t).done(function(){
n(H(t))})},d.CLEAR_CHANNEL_MAPPINGS_SAVE_ERROR=function(e){i(e).set("channelMappingsSaveError",null)},d.SAVE_DVR=function(e,t,n){var r=i(e);r.set("isSavingDVR",!0);var o=t.serverEntityID,l=t.deviceID,d=a(e,t);u(e,{serverEntityID:o,deviceID:l,enabled:!0}).then(function(){return c(e,t)}).then(function(){var n=Object(L.h)(e,t),i=r.get("selectedDevice"),a=r.get("selectedLineupUUID"),o=r.get("epgSettings").get("selectedLanguage"),l=s(e,t);r.get("setupErrorMessages").remove("saveDVR")
;var c=b.join("/livetv/dvrs",{device:i.get("uuid"),lineup:a,language:o.get("code"),country:l}),u=n.getXHROptions(c,{type:"POST"});return m.a.ajax(u)}).done(function(e,t,i){var a=i.getResponseHeader("X-Plex-Activity"),s=d.add(e,{parse:!0})[0];r.get("setupErrorMessages").remove("saveDVR"),r.set({epgDownloadActivityID:a,selectedDVR:s,isSavingDVR:!1}),n(Object(N.k)({hasDismissedDVRUpsell:!0})),n(R({serverEntityID:o})),n(Object(j.h)({serverEntityID:o}))}).fail(function(e){
r.get("setupErrorMessages").add({id:"saveDVR",message:Object(P.a)(e,Object(T.default)("There was a problem saving your DVR. Please try again."))}),r.set("isSavingDVR",!1)})},d.ADD_DVR_DEVICE=function(e,t,n){var a=i(e);a.set("isSavingDVR",!0);var o=t.serverEntityID,s=t.deviceID,l=a.get("selectedDevice"),d=r(e,t);u(e,{serverEntityID:o,deviceID:s,enabled:!0}).then(function(){return c(e,t)}).then(function(){var n=Object(L.h)(e,t),i=b.join(["/livetv/dvrs",d.id,"devices",l.id]),a=n.getXHROptions(i,{
type:"PUT"});return m.a.ajax(a)}).done(function(e,t,i){var r=i.getResponseHeader("X-Plex-Activity");d.get("devices").add([l]),a.set({epgDownloadActivityID:r,selectedDVR:d,isSavingDVR:!1}),n(R({serverEntityID:o})),n(Object(j.h)({serverEntityID:o}))}).fail(function(e){a.get("setupErrorMessages").add({id:"addDVRDevice",message:Object(P.a)(e,Object(T.default)("There was a problem adding a new device to your DVR. Please try again."))}),a.set("isSavingDVR",!1)})},d.REMOVE_DVR_DEVICE=function(e,t,n){
var i=Object(L.h)(e,t),a=r(e,t),o=t.deviceID,s=b.join(["/livetv/dvrs",a.id,"devices",o]),l=i.getXHROptions(s,{type:"DELETE"});m.a.ajax(l).done(function(e,t,n){a.get("devices").remove(o)})},d.SAVE_DVR_SETTINGS=function(e,t){var n=Object(L.h)(e,t),i=r(e,t),a=t.prefs,o=b.join(["/livetv/dvrs",t.dvrID,"prefs"],a);i.set("isSaving",!0);var s=n.getXHROptions(o,{type:"PUT"}),l=m.a.ajax(s);l.done(function(){var e=i.get("prefs");h()(a).forEach(function(t){e.get(t).set("value",a[t])}),i.set({isSaving:!1,
saveError:null})}),l.fail(function(e){i.set({isSaving:!1,saveError:Object(E.a)(e)})})},d.CLEAR_DVR_SETTINGS_SAVE_ERROR=function(e,t){r(e,t).set("saveError",null)},d.SAVE_DEVICE_SETTINGS=function(e,t){var n=Object(L.h)(e,t),i=o(e,t),a=t.prefs,r=b.join(["/media/grabbers/devices",t.deviceID,"prefs"],a);i.set("isSaving",!0);var s=n.getXHROptions(r,{type:"PUT"}),l=m.a.ajax(s);l.done(function(){var e=i.get("prefs");h()(a).forEach(function(t){e.get(t).set("value",a[t])}),i.set({isSaving:!1,
saveError:null})}),l.fail(function(e){i.set({isSaving:!1,saveError:Object(E.a)(e)})})},d.CLEAR_DEVICE_SETTINGS_SAVE_ERROR=function(e,t){o(e,t).set("saveError",null)},d.CLEAR_DEVICE_SCAN_PREFS=function(e){i(e).set({scanPrefs:void 0,scanNetworks:void 0})},d.SET_DVR_DEVICE_ENABLED=function(e,t){u(e,t)},d[j.b]=function(e,t,n){var a=i(e);if(a){var r=a.get("selectedDevice"),o=t.activity
;if(!r||o.type!==S.a.PROVIDER_DEVICE_CHANNELSCAN||parseInt(o.Context.deviceID,10)!==r.id)return o.uuid===a.get("epgLineupActivityID")?(a.set({selectedLineupUUID:o.Response.lineup,epgLineupActivityID:""}),void n(R({serverEntityID:t.serverEntityID}))):o.uuid===a.get("epgDownloadActivityID")?void a.set("epgDownloadActivityID",""):void 0;var s=o.Response.Network;if(s){var l=new A.a(s,{parse:!0});a.set("scanNetworks",l)}else a.set("hasScannedChannels",!0)}},d))},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(42),m=n(61),y=n(88),b=n(115),I=n(84),S=n(28),M=n(16),D=n(86),C=n(3),j=n(681),P=n(139),O=n(114),T=n(98),E=n(24),w=n(3010),A=n.n(w),x=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onCancel=function(){Object(M.c)("metrics").trackClick(o()({},a.props.metricsProperties,{page:a.props.metricsPage,action:D.e})),a.props.onCancel()},
a.onAccordChange=function(e){a.setState({isAccordGiven:e.target.checked})},a.state={isAccordGiven:!1},a}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(S.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.isCancelButtonDisabled,n=e.isConfirmButtonSpinning,i=e.isOpen,r=e.metricsPage,s=e.metricsProperties,l=e.kind,c=e.title,u=e.message,d=e.accordMessage,p=e.confirmLabel,h=e.cancelLabel,f=e.hideCancelButton,S=e.onConfirm,M=!!d,w=n||M&&!this.state.isAccordGiven;return a()(O.a,{size:E.e.SMALL,isOpen:i,metricsPage:r,metricsProperties:s,onModalClose:this.onCancel},void 0,a()(T.a,{onModalClose:this.onCancel},void 0,a()(I.a,{},void 0,c),a()(m.a,{className:A.a.confirmBody
},void 0,u,M&&a()("label",{className:A.a.accordLabel},void 0,a()("input",{type:"checkbox",className:A.a.accordInput,checked:this.state.isAccordGiven,onChange:this.onAccordChange}),d)),a()(y.a,{},void 0,a()(b.a,{},void 0,!f&&a()(g.a,{className:A.a.cancelButton,kind:E.b.DEFAULT,isDisabled:t,onPress:this.onCancel},void 0,h||Object(C.default)("Cancel")),v.a.createElement(j.a,o()({},s,{action:D.j}),a()(P.a,{className:A.a.confirmButton,"data-autofocus":!0,kind:l,isDisabled:w,isSpinning:n,onPress:S
},void 0,p||Object(C.default)("OK")))))))},t}(f.Component);x.defaultProps={isConfirmButtonSpinning:!1,kind:E.b.PRIMARY},t.a=x},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Object(a.createSelector)(Object(o.a)(e),r.a,function(e,t){if(e)return t[e.metadataItem]})}t.a=i;var a=n(4),r=(n.n(a),n(108)),o=n(142)},function(e,t,n){e.exports={default:n(1866),__esModule:!0}},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred()
;return e&&e.then?e.then(t.resolve,t.resolve):t.resolve(e),t.promise()}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(351),a=n.n(i),r=n(87),o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(37),d=n(18),p=n(604),h=n(300),f=n(102),v=r.c.Model.extend({mixins:[p.a],cache:new h.a,constructor:function(e,t){if(e||(e={}),t||(t={}),this.server=this.findOption(t,"server"),this.section=this.findOption(t,"section"),this.channel=this.findOption(t,"channel"),this.device=this.findOption(t,"device"),
this.parent=this.findOption(t,"parent"),this.findOption(t,"skipCache"))return void r.c.Model.prototype.constructor.apply(this,arguments);var n=this.cache.getItemCacheKey(this,e),i=this.cache.get(n);return i?(t.parse&&(e=i.parse(e)),this.preserveCachedAttributes&&this.preserveCachedAttributes(t.url)?c.a.each(e,function(e,t){c.a.isUndefined(i.get(t))&&!c.a.isUndefined(e)&&i.set(t,e)}):i.set(e),i.server=this.server||i.server,i.section=this.section||i.section,i.channel=this.channel||i.channel,
i.device=this.device||i.device,i.parent=this.parent||i.parent,t.collection&&(i.collection=t.collection),i):this.findOption(t,"onlyIfCached")?{}:(r.c.Model.prototype.constructor.apply(this,arguments),void this.cache.store(this,n))},findOption:function(e,t){return e[t]||e.collection&&e.collection[t]},clone:function(){var e={server:this.server,section:this.section,channel:this.channel,parent:this.parent,skipCache:!0};return new this.constructor(this.attributes,e)||null},convert:function(e){
return c.a.isObject(e)?e:f.a.parseXML(e)},parse:function(e,t){var n=this.convert(e);return this.whitelistedAttrs&&(n=c.a.pick(n,this.whitelistedAttrs)),n},save:function(e,t,n){var i,o,l,u=this.attributes;null==e||"object"===(void 0===e?"undefined":a()(e))?(i=e,n=t):(i={})[e]=t,n=c.a.extend({validate:!0},n);var p=this.getSaveParams(i,n);if(c.a.extend(p,n.data),i&&!n.wait){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;if(i&&n.wait&&(this.attributes=c.a.extend({},u,i)),
c.a.isEmpty(p)&&!n.force)return n.success&&n.success(this),s.a.Deferred().resolve(this);void 0===n.parse&&(n.parse=!0);var h=this,f=n.success;n.success=function(e){if(h.attributes=u,e){var t=h.parse(e,n);if(n.wait&&(t=c.a.extend(i||{},t)),c.a.isObject(t)&&!h.set(t,n))return!1;h.cache.store(h)}f&&f(h,e,n),h.trigger("sync",h,e,n)},r.c.wrapError(this,n),"patch"===(o=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=i);var v=c.a.result(this,"saveUrl")||c.a.result(this,"url")
;return c.a.isEmpty(p)||(n.url=d.join(v,p)),n.data="",l=this.sync(o,this,n),i&&n.wait&&(this.attributes=u),l},getSaveParams:function(e,t){return this.isNew()?e||this.toJSON():this.changedAttributes(e)||{}},getScopedKey:function(e){return null!=e&&c.a.isFunction(this.cacheKey)?this.cacheKey(this.attributes)+"!"+e:e},restoreDefaults:function(e){var t=c.a.result(this,"defaults");if(!t)return this.clear(e);var n,i=this.attributes;for(n in i)n in t||this.unset(n,e);return this.set(t,e),this},
startCapturingChangeEvents:function(){if(this.releaseCapturedChangeEvents)return void Object(u.a)(!1,"This model is already capturing events");var e=this.set,t={};this.set=function(n,i,r){var o;"object"===(void 0===n?"undefined":a()(n))?(o=n,r=i):(o={})[n]=i;var s=c.a.extend({},r,{silent:!0}),l=e.call(this,o,s);return c.a.extend(t,this.changed),l},this.releaseCapturedChangeEvents=function(){c.a.each(t,function(e,t){this.trigger("change:"+t,this,e)},this),
c.a.isEmpty(t)||this.trigger("change",this,{}),t={},this.set=e,this.releaseCapturedChangeEvents=null}}});v.extend=function(){var e=r.c.Model.extend.apply(this,arguments);return e.prototype.cache=new h.a,e},t.a=v},function(e,t,n){"use strict";function i(e,t){a.a.trigger("navigate",e,t)}t.a=i;var a=n(19)},,function(e,t,n){"use strict";function i(e){return e>=5e5?100:e>=5e4?50:e>=2e4?20:10}
var a=n(6),r=n.n(a),o=n(420),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(13),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(10),I=n.n(b),S=(n(529),n(28)),M=n(311),D=n(1187),C=n(367),j=n(101),P=n(2381),O=n(1244),T=n(18),E=n(1245),w=n(1246),A=n(2382),x=new D.a,N="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",L=function(e){function t(n,i){c()(this,t);var a=d()(this,e.call(this,n,i));return a.preloadImage=function(e){
if(!a.props.allowImagePreloading)return v.a.Deferred().resolve(e).promise();var t=v.a.Deferred(),n=new window.Image,i=e.url,r=e.isPlaceholder;return n.onload=function(){n.onload=n.onabort=n.onerror=null,r?t.notify(e):t.resolve(e)},n.onabort=n.onerror=function(){n.onload=n.onabort=n.onerror=null,t.reject(e)},n.src=i,t.promise()},a.onLoad=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;a.setState({isLoaded:!0,src:t}),a.props.onLoad(a.state.url,t)},
a.onError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.isCanceled;void 0!==n&&n||(a.setState({isLoaded:!0,src:a.props.fallbackSrc}),a.props.onError(a.state.url,t))},a.state={isLoaded:!1,url:a.getImageUrl(n),src:N,prevSrc:N},a}return h()(t,e),t.prototype.componentDidMount=function(){this.loadImage(this.props,this.state.url)},t.prototype.componentWillReceiveProps=function(e){var t=this.getImageUrl(e);if(this.state.url!==t){var n=this.state.src
;this.setState({isLoaded:!1,url:t,prevSrc:n}),this.loadImage(e,t)}},t.prototype.shouldComponentUpdate=function(e,t){return Object(S.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this.abortImage()},t.prototype.getImageUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(e.src)return e.src;if(e.url){
var t=e.allowPixelRatioSize?Object(C.a)():1,n=i(e.width*e.height*t),a=e.allowSizeBracket?Math.ceil(e.width/n)*n:e.width,r=e.allowSizeBracket?a/e.width:1,o={width:Math.round(a*t),height:Math.round(e.height*r*t)};e.filters&&!e.useClientFilters&&s()(o,e.filters),e.minSize&&(o.minSize=1),e.format&&(o.format=e.format),e.quality&&(o.quality=e.quality),e.upscale&&(o.upscale=1);var l=I.a.result(e,"url"),c=l.indexOf("?"),u=l;return c>-1?(u=T.join(l.substring(0,c),o),u+=-1===u.indexOf("?")?"?":"&",
u+=l.substring(c+1)):u=T.join(u,o),u}},t.prototype.getImageProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.exposeUrl,n=e.backgroundSize,i=e.backgroundPosition,a=e.backgroundRepeat,o=e.width,s=e.height,l=e.style,c=e.useClientFilters,u=e.filters,d=e.className,p=this.state,h=p.src,f=p.url,v=l;if(c&&u){var g=[];if(I.a.isNumber(u.blur)&&g.push("blur("+u.blur+"px)"),I.a.isNumber(u.saturation)&&g.push("saturate("+u.saturation+"%)"),
I.a.isNumber(u.opacity)&&g.push("opacity("+u.opacity+"%)"),g.length){var m=g.join(" ");v=v?r()({},v,{filter:m}):{filter:m}}}var y={};return e.background&&(y={backgroundSize:n,backgroundPosition:i,backgroundRepeat:a}),r()({"data-image-url":t?f:void 0,src:h,style:v,className:d,width:o,height:s},y)},t.prototype.loadImage=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments[1];if(this.abortImage(),!t)return void this.setState({isLoaded:!0,src:N})
;var n=e.src?this.preloadImage({url:t}):this.loadBlob({url:t});this._cancelable=Object(O.a)(e.loadedDelayMilliseconds?Object(P.a)(n,e.loadedDelayMilliseconds):n),this._cancelable.promise.then(this.onLoad,this.onError,this.onLoad)},t.prototype.loadBlob=function(e){var t=this,n=e.url;if(!this.props.allowImageBlobs)return this.preloadImage({url:n});var i=v.a.Deferred(),a=x.getBlobUrl(n);if(a)return i.resolve({url:a}),i.promise();var r=x.getPlaceholder(n);r&&i.notify({url:r,isPlaceholder:!0})
;var o=new window.XMLHttpRequest;return o.open("GET",n,!0),o.responseType="arraybuffer",this._xhr=o,o.onreadystatechange=function(){if(4===o.readyState)if(o.onreadystatechange=null,t._xhr=null,200===o.status){var e=new window.Blob([o.response],{type:"image/jpeg"}),a=window.URL.createObjectURL(e);x.store({url:n,blobUrl:a}),i.resolve({url:a})}else i.reject({url:n})},o.send(),i.then(this.preloadImage,this.onError,this.preloadImage),i.promise()},t.prototype.abortImage=function(){
this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.abort(),this._xhr=null),this._cancelable&&this._cancelable.cancel()},t.prototype.render=function(){var e=this.props,t=e.background,n=e.transition,i=e.transitionComponent,a=e.transitionProps,o=this.state,s=o.isLoaded,l=o.prevSrc,c=t?E.a:w.a,u=this.getImageProps();return n?y.a.createElement(i,r()({component:c,isLoaded:s,prevSrc:l,transitionProps:a},u)):y.a.createElement(c,r()({},u,{src:s?u.src:l}))},t}(m.Component);L.defaultProps={
fallbackSrc:N,exposeUrl:!1,transition:!1,transitionComponent:A.a,background:!1,minSize:!1,upscale:!1,transitionProps:r()({},M.a,{style:{position:"relative"}}),filters:{},useClientFilters:!1,allowImageBlobs:j.a.hasBlob&&j.a.hasObjectUrl,allowImagePreloading:!0,allowPixelRatioSize:!0,allowSizeBracket:!1,onLoad:function(){},onError:function(){}},t.a=L},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(c.a)(),function(e){return!e||e.isPersonalCloudServer})}
function a(){return Object(o.createSelector)(Object(l.a)(),i(),function(e,t){return t.useClientFilters},function(e,t,n){return{useClientFilters:null!=n?n:t,url:e}})}var r=n(11),o=n(4),s=(n.n(o),n(184)),l=n(1385),c=n(35),u=Object(r.connect)(a)(s.a);t.a=u},function(e,t,n){"use strict";function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=n.type,a=n.payload;switch(i){case M.CHANGE:var r=a.name,o=a.change;if(null==o){var s=h()({},t);return delete s[r],s}
return h()({},t,(e={},e[r]=o,e));case M.REPLACE_STATE:return a;case M.RESET:return{};case M.SHOW_ERRORS:return b.a.mapObject(t,function(e){return h()({},e,{showErrors:0!==e.errors.length})});default:return t}}n.d(t,"a",function(){return D});var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(630),y=(n.n(m),n(10)),b=n.n(y),I=n(923),S=n(40),M={CHANGE:"CHANGE",REPLACE_STATE:"REPLACE_STATE",RESET:"RESET",SHOW_ERRORS:"SHOW_ERRORS"
},D={change:Object(S.a)(M.CHANGE),replaceState:Object(S.a)(M.REPLACE_STATE),reset:Object(S.a)(M.RESET),showErrors:Object(S.a)(M.SHOW_ERRORS)},C=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a));return r.onFormStoreChange=function(){var e=r.store.getState();e!==r.prevState&&(r.prevState=e,r.props.onChange(e))},r.onSubmit=function(e){e.preventDefault(),e.nativeEvent.preventDefault();var t=r.store.getState();if(b.a.some(t,function(e,t){return 0!==e.errors.length
}))r.actions.showErrors();else{var n=b.a.mapObject(t,function(e,t){return e.value});r.props.onSubmit(n,t)}},r.store=Object(m.createStore)(i),r.prevState=r.store.getState(),r.actions=Object(m.bindActionCreators)(D,r.store.dispatch),r}return d()(t,e),t.prototype.getChildContext=function(){return{formStore:this.store}},t.prototype.componentWillMount=function(){this.unsubscribe=this.store.subscribe(this.onFormStoreChange)},t.prototype.componentWillReceiveProps=function(e){
e.formState&&this.store.getState()!==e.formState&&this.actions.replaceState(e.formState)},t.prototype.componentWillUnmount=function(){this.unsubscribe&&(this.unsubscribe(),this.store.replaceReducer(function(e){return e}))},t.prototype.render=function(){var e=this.props,t=e.children,n=(e.formState,e.onChange,r()(e,["children","formState","onChange"]));return g.a.createElement("form",h()({},n,{onSubmit:this.onSubmit}),t)},t}(v.Component);C.childContextTypes={formStore:I.a},C.defaultProps={
onSubmit:function(){},onChange:function(){}},t.b=C},function(e,t,n){"use strict";function i(e){for(var t=e.className,n=e.component,i=e.tags,a=e.message,o=[a],l=i.length-1,u=0;l>=0;){for(var d=i[l],f=d.open,v=d.close,g=d.component,m=c()(d,["open","close","component"]),y=new RegExp("(^.*)"+Object(h.a)("{"+f+"}")+"(.*)"+Object(h.a)("{"+v+"}")+"(.*$)"),b=[],I=o.length-1;I>=0;I--){var S=o[I];if("string"!=typeof S)b.unshift(S);else{var M=S.match(y);if(M){var D=M[1],C=M[2],j=M[3]
;b.unshift(D,p.a.createElement(g,s()({key:u},m),C),j),u+=1}else b.unshift(S)}}b.length===o.length?l-=1:o=b}return r()(n,{className:t},void 0,o)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=(n(37),n(231));i.defaultProps={component:"span"},t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(17),a=n(14),r=n(95),o={GRABBER_GRAB:"grabber.grab",PROVIDER_DEVICE_CHANNELSCAN:"provider.device.channelscan",
PROVIDER_EPG_LOAD:"provider.epg.load",PROVIDER_SUBSCRIPTION_PROCESS:"provider.subscriptions.process",BACKUP_DATABASE:"general.db.backup",OPTIMIZE_DATABASE:"general.db.optimize",CLEAN_BUNDLES:"general.bundle.clean",LIBRARY_DELETE:"library.delete",LIBRARY_REFRESH_ITEMS:"library.refresh.items",MEDIA_GENERATE_BIF:"media.generate.bif",SUBTITLE_DOWNLOAD:"subtitle.download"},s=i.a.extend({name:"ActivityModel",context:["server"],idAttribute:"uuid",rootPropertyName:"Activity",responseType:function(){
return Object(r.a)(this.server)},sessionAttrs:{synthetic:a.a.boolean},syncedAttrs:{uuid:a.a.string,userID:a.a.integer,title:a.a.string,subtitle:a.a.string,progress:a.a.integer,event:a.a.string,cancellable:a.a.boolean,type:a.a.string,Context:a.a.object,Response:a.a.object},defaults:function(){return{Context:{},Response:{}}}});t.b=s},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){c()(this,n);var a=d()(this,t.call(this,e,i));return a.onFormStoreChange=function(){
var e=a.props.name,t=a.store.getState(),n=t[e];n||a.initializeInputState(a.props),Object(M.a)(t,a.previousFormState)||(a.previousFormState=t,a.handleStateChange(a.props)),a.state!==n&&null!=n&&a.setState(n)},a.onChange=function(e){var t=a.props.transformValue;a.handleStateChange(a.props,t?t(e):e)},a.onBlur=function(){if(!a.hasBlurred){a.hasBlurred=!0;var e=a.store.getState(),t=a.props.name,n=e[t],i=a.calculateErrors(n.value,e,a.props);a.actions.change({name:t,change:s()({},n,{errors:i,
showErrors:0!==i.length})})}},a.store=i.formStore,a.actions=Object(m.bindActionCreators)(j.a,a.store.dispatch),a.state=null,a.hasBlurred=!1,a}return h()(n,t),n.prototype.componentWillMount=function(){this.previousFormState=this.store.getState(),this.unsubscribe=this.store.subscribe(this.onFormStoreChange),this.initializeInputState(this.props)},n.prototype.componentWillReceiveProps=function(e){
Object(C.a)(e.initialValue)&&Object(C.a)(this.props.initialValue)?Object(M.a)(e.initialValue,this.props.initialValue)||this.handleStateChange(e,e.initialValue):e.initialValue!==this.props.initialValue&&this.handleStateChange(e,e.initialValue)},n.prototype.shouldComponentUpdate=function(e,t){return Object(D.a)(this,e,t)},n.prototype.componentWillUnmount=function(){var e=this.props.name;this.unsubscribe&&this.unsubscribe(),this.actions.change({name:e,change:null})},
n.prototype.initializeInputState=function(e){var t=e.name,n=e.initialValue,i=this.store.getState();i[t]={errors:this.calculateErrors(n,i,e),showErrors:!1,value:n},this.actions.replaceState(i)},n.prototype.handleStateChange=function(e,t){var n=this.store.getState(),i=e.name,a=n[i],r=(Array.isArray(t)?b.a.isEqual(e.initialValue,t):null==t)?a.value:t,o=this.calculateErrors(r,n,e);b.a.isEqual(a.value,r)&&b.a.isEqual(a.errors,o)||this.actions.change({name:i,change:{errors:o,
showErrors:this.hasBlurred&&0!==o.length,value:r}})},n.prototype.calculateErrors=function(e,t,n){return n.validations.map(function(n){return n(e,t)}).filter(function(e){return null!=e})},n.prototype.render=function(){var t=this.props,n=(t.validations,t.errors),i=r()(t,["validations","errors"]);if(!this.state)return null;var a=n.length>0,o=this.state,l=o.value,c=o.errors,u=o.showErrors;return g.a.createElement(e,s()({},i,{showErrors:!!a||u,errors:a?n:c,value:l,onChange:this.onChange,
onBlur:this.onBlur}))},n}(v.Component);return t.displayName="FormInput("+Object(I.a)(e)+")",t.WrappedComponent=e,t.contextTypes={formStore:S.a},t.defaultProps={validations:[],errors:[]},t}var a=n(12),r=n.n(a),o=n(6),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(630),y=(n.n(m),n(10)),b=n.n(y),I=n(190),S=n(923),M=n(251),D=n(28),C=(n(37),n(683)),j=n(186);t.a=i},function(e,t,n){"use strict";function i(e){return e.displayName||e.name||"Component"}t.a=i
},function(e,t,n){"use strict";function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(p.c)("metrics").trackClick(o()({page:n,action:e,type:t.get("type")},i))}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"ANALYZE_METADATA_ITEM",function(){return x}),n.d(t,"DELETE_METADATA_ITEM",function(){return N}),n.d(t,"DELETE_METADATA_ITEM_VERSION",function(){return L}),n.d(t,"DOWNLOAD_METADATA_ITEM_VERSION",function(){return k}),
n.d(t,"EDIT_METADATA_ITEM",function(){return R}),n.d(t,"FIX_METADATA_ITEM_MATCH",function(){return z}),n.d(t,"GET_METADATA_ITEM_INFO",function(){return U}),n.d(t,"UPDATE_METADATA_ITEM_PLAYED_STATUS",function(){return B}),n.d(t,"OPTIMIZE_METADATA_ITEM",function(){return F}),n.d(t,"RATE_METADATA_ITEM",function(){return _}),n.d(t,"REFRESH_METADATA_ITEM",function(){return V}),n.d(t,"SPLIT_METADATA_ITEM_APART",function(){return H}),n.d(t,"SYNC_METADATA_ITEM",function(){return Q}),
n.d(t,"UNMATCH_METADATA_ITEM",function(){return Y}),n.d(t,"CHANGE_METADATA_ITEM_FIELD",function(){return G}),n.d(t,"UPDATE_METADATA_ITEM_REFRESHING_STATE",function(){return W}),n.d(t,"UPDATE_METADATA_SETTINGS",function(){return K}),n.d(t,"CLEAR_METADATA_SETTINGS_ERROR",function(){return Z}),n.d(t,"analyzeMetadataItem",function(){return q}),n.d(t,"deleteMetadataItem",function(){return J}),n.d(t,"deleteMetadataItemVersion",function(){return X}),n.d(t,"downloadMetadataItemVersion",function(){
return $}),n.d(t,"editMetadataItem",function(){return ee}),n.d(t,"fixMetadataItemMatch",function(){return te}),n.d(t,"getMetadataItemInfo",function(){return ne}),n.d(t,"updateMetadataItemPlayedStatus",function(){return ie}),n.d(t,"optimizeMetadataItem",function(){return ae}),n.d(t,"rateMetadataItem",function(){return re}),n.d(t,"refreshMetadataItem",function(){return oe}),n.d(t,"splitMetadataItemApart",function(){return se}),n.d(t,"syncMetadataItem",function(){return le}),
n.d(t,"unmatchMetadataItem",function(){return ce}),n.d(t,"changeMetadataItemField",function(){return ue}),n.d(t,"updateMetadataItemRefreshingState",function(){return de}),n.d(t,"updateMetadataSettings",function(){return pe}),n.d(t,"clearMetadataSettingsError",function(){return he}),n.d(t,"favoriteMetadataItem",function(){return fe}),n.d(t,"unfavoriteMetadataItem",function(){return ve}),n.d(t,"markMetadataItemUnplayed",function(){return ge}),n.d(t,"markMetadataItemPlayed",function(){return me}),
n.d(t,"metadataActionHandlers",function(){return ye})
;var a,r=n(6),o=n.n(r),s=n(13),l=n.n(s),c=n(40),u=n(19),d=n(18),p=n(16),h=n(43),f=n(1466),v=n(1467),g=n(1468),m=n(3401),y=n(1470),b=n(260),I=n(123),S=n(86),M=n(703),D=n(3),C=n(134),j=n(3402),P=n(1471),O=n(3446),T=n(3447),E=n(508),w=n(848),A=n(696),x="metadata/analyzeMetadataItem",N="metadata/deleteMetadataItem",L="metadata/deleteMetadataItemVersion",k="metadata/downloadMetadataItemVersion",R="metadata/editMetadataItem",z="metadata/fixMetadataItemMatch",U="metadata/getMetadataItemInfo",B="metadata/updateMetadataItemPlayedStatus",F="metadata/optimizeMetadataItem",_="metadata/rateMetadataItem",V="metadata/refreshMetadataItem",H="metadata/splitMetadataItemApart",Q="metadata/syncMetadataItem",Y="metadata/unmatchMetadataItem",G="metadata/changeMetadataItemField",W="metadata/updateMetadataItemRefreshingState",K="metadata/UPDATE_METADATA_SETTINGS",Z="CLEAR_METADATA_SETTINGS_ERROR",q=Object(c.a)(x),J=Object(c.a)(N),X=Object(c.a)(L),$=Object(c.a)(k),ee=Object(c.a)(R),te=Object(c.a)(z),ne=Object(c.a)(U),ie=Object(c.a)(B),ae=Object(c.a)(F),re=Object(c.a)(_),oe=Object(c.a)(V),se=Object(c.a)(H),le=Object(c.a)(Q),ce=Object(c.a)(Y),ue=Object(c.a)(G),de=Object(c.a)(W),pe=Object(c.a)(K),he=Object(c.a)(Z),fe=Object(c.a)(_,function(e){
return o()({},e,{rating:M.a})}),ve=Object(c.a)(_,function(e){return o()({},e,{rating:M.b})}),ge=Object(c.a)(B,function(e){return o()({},e,{played:!1})}),me=Object(c.a)(B,function(e){return o()({},e,{played:!0})}),ye=o()({},b.b,(a={},a[x]=function(e,t,n){var i=Object(C.b)(e,t),a=t.metricsPage,r={allowMetrics:!!a,metricsProperties:{page:a}};Object(f.a)(i,r).fail(function(e){n(Object(I.d)(Object(D.default)("There was a problem analyzing this item.")))})},a[k]=function(e,t){
var n=Object(C.b)(e,t),i=new j.a({model:n});u.a.trigger("show:modal",i)},a[N]=function(e,t){var n=Object(C.b)(e,t),a=t.options||{},r=n.get("isPlaylist")?"deletePlaylist":"deleteItems";h.a.execute(r,o()({item:n},a)),i(S.k,n,t.metricsPage)},a[L]=function(e,t){var n=Object(C.b)(e,t);h.a.execute("deleteVersions",{item:n}),i(S.k,n,t.metricsPage)},a[R]=function(e,t){var n=Object(C.b)(e,t),a=n.get("isPlaylist")?new O.a({model:n}):new P.a({model:n});u.a.trigger("show:modal",a),i(S.q,n,t.metricsPage)},
a[z]=function(e,t){var n=Object(C.b)(e,t);n.server.get("sections").populate().then(function(){var e=new T.a({model:n});u.a.trigger("show:modal",e),i(S.t,n,t.metricsPage)})},a[U]=function(e,t){var n=Object(C.b)(e,t),a=new w.a({model:n});u.a.trigger("show:modal",a),i(S.w,n,t.metricsPage)},a[B]=function(e,t,n){var a=Object(C.b)(e,t);Object(y.a)(e,t).then(function(){n(Object(I.c)({serverEntityID:t.serverEntityID}))},function(){
var e=t.played?Object(D.default)("There was an unexpected error marking an item played."):Object(D.default)("There was an unexpected error marking an item unplayed.");n(Object(I.d)(e))}),i(t.played?S.A:S.z,a,t.metricsPage)},a[F]=function(e,t){var n=Object(C.b)(e,t),a=new A.a({item:n});u.a.trigger("show:modal",a),i(S.D,n,t.metricsPage)},a[_]=function(e,t,n){var i=t.rating,a=t.metricsPage,r=Object(C.e)(e,t),o=Object(C.b)(e,t),s={rating:i,allowMetrics:!!a,metricsProperties:{page:a}}
;Object(v.a)(r,o,s).fail(function(e){n(Object(I.d)(Object(D.default)("There was a problem rating this item.")))})},a[V]=function(e,t,n){var i=Object(C.b)(e,t),a=t.metricsPage,r={allowMetrics:!!a,metricsProperties:{page:a}};Object(g.a)(i,r).fail(function(e){503===e.status?u.a.trigger("show:modal",new E.a({model:i.server})):n(Object(I.d)(Object(D.default)("There was a problem refreshing this item.")))})},a[H]=function(e,t,n){var a=Object(C.b)(e,t);h.a.execute("splitApart",{item:a,skipNavigate:!0
}).done(function(){n(Object(I.c)({serverEntityID:t.serverEntityID}))}),i(S.V,a,t.metricsPage)},a[Q]=function(e,t){var n=Object(C.b)(e,t);h.a.execute("showSyncModal",{item:n}),i(S.X,n,t.metricsPage)},a[Y]=function(e,t){var n=Object(C.b)(e,t);h.a.execute("unmatch",{item:n}),i(S.Y,n,t.metricsPage)},a[G]=function(e,t,n){var a,r=t.providerEntityID,o=t.metadataItemEntityID,s=t.name,c=t.value,u=t.save,p=Object(C.b)(e,{metadataItemEntityID:o});if(!u){var h;return void p.set((h={},h[s]=c,h))}
var f=Object(C.e)(e,{providerEntityID:r}),v=d.join(p.get("key"),(a={},a[s]=c,a[s+".locked"]=1,a)),g=f.getXHROptions(v,{type:"PUT"});l.a.ajax(g).fail(function(e){n(Object(I.d)(Object(D.default)("There was a problem editing this item.")))}),i(S.q,p,t.metricsPage)},a[W]=function(e,t){var n=Object(C.j)(e,t);n&&n.set({metadataState:t.metadataState,mediaState:t.mediaState})},a[K]=function(e,t,n){var i=Object(C.e)(e,t),a=Object(C.b)(e,t),r=t.data;Object(m.a)(i,a,r).then(function(){n(Object(b.d)({
serverEntityID:t.serverEntityID,metadataItemEntityID:t.metadataItemEntityID}))})},a[Z]=function(e,t,n){Object(C.b)(e,t).set("settingsUpdateError",null)},a))},function(e,t,n){"use strict";function i(e){return r.a.createElement(o.a,e)}var a=n(0),r=n.n(a),o=n(75),s=n(4392),l=n.n(s);i.defaultProps={className:l.a.container},t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(72)),o=n(1706),s=n(4413),l=n(4414),c=Object(a.createSelector)(s.a,r.a,function(e,t){return{types:e,shortcuts:[],
isSidebarExpandable:t.isSidebarExpandable}}),u={onToggleExpandableSidebar:o.a};t.a=Object(i.connect)(c,u)(l.a)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.prePlayPage},function(e){var t=e.relatedHubs,n=e.isRelatedHubsPending;return{hubEntityIDs:t,showSpinner:!t.length&&n}})}var a=n(11),r=n(4),o=(n.n(r),n(1746)),s=Object(a.connect)(i)(o.a);t.a=s},,function(e,t,n){"use strict";var i=(n(37),n(607)),a=n(14),r=n(1956),o=i.a.extend({
name:"UserStorageModel",storageKey:"users",sessionAttrs:{activeUserID:a.a.integer},syncedRelations:{users:{relationClass:r.a}},initialize:function(){this.debouncedSaveTimeout=null},debouncedSave:function(){var e=this;this.debouncedSaveTimeout&&clearTimeout(this.debouncedSaveTimeout),this.debouncedSaveTimeout=setTimeout(function(){return e.save()},2e3)},flushDebouncedSave:function(){this.debouncedSaveTimeout&&(clearTimeout(this.debouncedSaveTimeout),this.save())},getActiveUser:function(){
var e=this.get("users"),t=this.get("activeUserID");if(t)return e.get(t)},clearActiveUser:function(){var e=this.getActiveUser();return e&&e.clearSensitiveAttributes(),this.unset("activeUserID"),this.save()},getActiveServers:function(){var e=this.getActiveUser();if(e)return e.get("servers")}});t.a=new o},function(e,t,n){"use strict";function i(e,t,n){return"#!/settings/server/"+encodeURIComponent(e)+"/"+t+"/"+n}t.a=i},function(e,t,n){"use strict";function i(e,t){return e.get("ui").get(t+"Player")}
function a(e,t){var n=e.get("ui").get("audioVideoPlayer").get("playQueue"),i=e.get("ui").get("photoPlayer").get("playQueue");return n&&n.get("playQueueID")===t?n:i&&i.get("playQueueID")===t?i:void 0}function r(e,t){var n=e.get("playQueue");if(n){var i=n.get("playQueueItems");if(!(t<0||t>=i.length)){return i.at(t)}}}t.c=i,t.b=a,t.a=r},,,function(e,t,n){"use strict";var i=n(4),a=(n.n(i),Object(i.createSelector)(function(e){return e.ui.dvrSettingsUI},function(e){return e.dvrSetup}));t.a=a
},function(e,t,n){"use strict";function i(e,t){Object(v.c)("metrics").trackClick({page:t,action:e,context:j.i})}n.d(t,"k",function(){return z}),n.d(t,"p",function(){return U}),n.d(t,"a",function(){return B}),n.d(t,"o",function(){return F}),n.d(t,"n",function(){return _}),n.d(t,"h",function(){return V}),n.d(t,"j",function(){return H}),n.d(t,"d",function(){return Q}),n.d(t,"g",function(){return Y}),n.d(t,"e",function(){return G}),n.d(t,"l",function(){return W}),n.d(t,"f",function(){return K}),
n.d(t,"c",function(){return Z}),n.d(t,"i",function(){return q}),n.d(t,"b",function(){return J}),n.d(t,"m",function(){return X});var a,r=n(6),o=n.n(r),s=n(147),l=n(13),c=n.n(l),u=n(40),d=n(19),p=n(180),h=n(523),f=n(18),v=n(16),g=n(188),m=n(122),y=n(124),b=n(249),I=n(116),S=n(123),M=n(817),D=n(517),C=n(86),j=n(138),P=n(3),O=n(386),T=n(937),E=n(134),w=n(3034),A=n(559),x=n(3078),N=n(3080),L=n(3082),k=n(463),R=n(71),z=(Object(u.a)("server/fetchSettings"),
Object(u.a)("server/populateSettings")),U=Object(u.a)("server/updateSetting"),B=Object(u.a)("server/addLibrary"),F=Object(u.a)("server/startLibrariesRefresh"),_=Object(u.a)("server/shareLibraries"),V=Object(u.a)("server/enableHttpFallback"),H=Object(u.a)("server/optimizeDatabase"),Q=Object(u.a)("server/cleanbundles"),Y=Object(u.a)("server/emptyTrash"),G=Object(u.a)("server/deleteServer"),W=Object(u.a)("server/restartPersonalCloudServer"),K=Object(u.a)("server/discoverMediaGrabberDevice"),Z=Object(u.a)("server/checkiTunes"),q=Object(u.a)("server/importPlaylists"),J=Object(u.a)("server/startLibrariesRefresh",function(e){
return o()({},e,{cancel:!0})}),X=o()({},I.m,(a={},a["server/fetchSettings"]=Object(y.a)({key:"settings",getModel:E.g}),a["server/populateSettings"]=Object(b.a)({key:"settings",fetchActionType:"server/fetchSettings",getModel:E.g}),a["server/updateSetting"]=function(e,t){var n=Object(E.h)(e,t),i=Object(E.g)(e,t),a=i.get("settings").get(t.setting.id);if(a){var r=a.parse(t.setting);a.set("value",r.value),
"FriendlyName"===r.id&&r.value?n.set("friendlyName",r.value):"allowMediaDeletion"===r.id&&n.set("allowMediaDeletion",r.value)}},a[I.a]=function(e,t,n){var i=t.machineIdentifier,a=t.serverName,r=e.get("experienceSettings"),o=r.get("relayReminders"),l=o[i]||{},c=l.remindAfter;if(!(c&&c>Object(s.a)(new Date))){var u=new L.a({serverName:a});d.a.trigger("show:modal",u),n(Object(I.n)(i))}},a["server/addLibrary"]=function(e,t){var n=Object(E.h)(e,t),a=t.options,r=void 0===a?{}:a,s=new A.a(o()({
server:n,redirect:!1!==t.redirect},r));d.a.trigger("show:modal",s),i(C.a,t.metricsPage)},a["server/startLibrariesRefresh"]=function(e,t,n){var i=t.cancel,a=t.force,r=t.metricsPage,o=Object(E.h)(e,t),s={serverModel:o,libraryID:"all",cancel:i,force:a,allowMetrics:!!r,metricsProperties:{page:r}};if(t.cancel){Object(E.g)(e,t).get("libraries").each(function(e){return e.set("refreshing",!1)})}Object(T.a)(o,s).fail(function(){
var e=t.cancel?Object(P.default)("There was a problem canceling the update."):Object(P.default)("There was a problem updating libraries.");n(Object(S.d)(e))}).always(function(){n(Object(I.g)({serverEntityID:t.serverEntityID}))})},a["server/shareLibraries"]=function(e,t){var n=Object(E.h)(e,t);d.a.trigger("show:modal",new k.a({defaultPaneType:"ownedServer",defaultPaneID:n.id})),i(C.S,t.metricsPage)},a["server/enableHttpFallback"]=function(e,t,n){var i=Object(E.h)(e,t),a=new x.a({server:i})
;a.promise.then(function(){var t=i.get("publicAddressMatches")?D.a.SAME_NETWORK:D.a.ALWAYS;return e.get("settings").save("allowHttpFallback",t)}).done(function(){n(Object(I.q)({serverEntityID:t.serverEntityID}))}),d.a.trigger("show:modal",a)},a["server/optimizeDatabase"]=function(e,t,n){var a=Object(E.h)(e,t),r=Object(E.g)(e,t),o=a.supports("optimizeDatabaseActivity"),s=f.join("/library/optimize",o?{async:1}:{}),l=a.getXHROptions(s,{type:"PUT"});n(Object(I.p)({serverEntityID:t.serverEntityID,
activityType:g.a.OPTIMIZE_DATABASE})),r.set({optimizeDatabaseError:null}),c.a.ajax(l).done(function(){o||n(Object(I.j)({serverEntityID:t.serverEntityID,activityType:g.a.OPTIMIZE_DATABASE}))}).fail(function(){r.set({optimizeDatabaseError:Object(P.default)("There was a problem optimizing the database.")}),n(Object(I.j)({serverEntityID:t.serverEntityID,activityType:g.a.OPTIMIZE_DATABASE})),t.hideAlerts||n(Object(S.d)(Object(P.default)("There was a problem optimizing the database.")))}),
i(C.E,t.metricsPage)},a["server/cleanbundles"]=function(e,t,n){var a=Object(E.h)(e,t),r=Object(E.g)(e,t),o=a.supports("cleanBundlesActivity"),s=f.join("/library/clean/bundles",o?{async:1}:{}),l=a.getXHROptions(s,{type:"PUT"});n(Object(I.p)({serverEntityID:t.serverEntityID,activityType:g.a.CLEAN_BUNDLES})),r.set({cleanBundlesError:null}),c.a.ajax(l).done(function(){o||n(Object(I.j)({serverEntityID:t.serverEntityID,activityType:g.a.CLEAN_BUNDLES}))}).fail(function(){r.set({
cleanBundlesError:Object(P.default)("There was a problem removing unused bundles.")}),n(Object(I.j)({serverEntityID:t.serverEntityID,activityType:g.a.CLEAN_BUNDLES})),t.hideAlerts||n(Object(S.d)(Object(P.default)("There was a problem removing unused bundles.")))}),i(C.h,t.metricsPage)},a["server/emptyTrash"]=function(e,t,n){var a=Object(E.h)(e,t),r=Object(E.g)(e,t),o=r.get("libraries"),s=t.libraryID,l=s?[s]:o.map(function(e){return e.id}),u=l.map(function(e){
var t=a.getXHROptions("/library/sections/"+e+"/emptyTrash",{type:"PUT"});return c.a.ajax(t)});c.a.when.apply(c.a,u).done(function(){n(Object(S.d)({type:M.b,message:Object(P.default)("The trash was emptied.")}))}).fail(function(e){n(Object(S.d)(Object(P.default)("There was a problem emptying the trash.")))}),i(C.s,t.metricsPage)},a["server/deleteServer"]=function(e,t,n){var a=Object(E.h)(e,t),r=e.get("cloudServer");if(a){if(r.get("isResolved")){var o=r.getXHROptions("/api/servers/"+a.id,{
type:"DELETE"});c.a.ajax(o)}var s=r.get("resources"),l=s.get(a.id);if(l&&l.trigger("destroy",l,l.collection),a.get("isFullOwnedServer")&&a.get("isConnected")){a.get("pmp").get("cloudAccount").destroy().done(function(){a.set({myPlexSigninState:m.a,myPlexSubscription:!1})}).always(function(){n(Object(I.q)({serverEntityID:t.serverEntityID})),a.populate().fail(function(){a.trigger("destroy",a,a.collection),n(Object(R.h)({route:"dashboard"}))})})}else a.trigger("destroy",a,a.collection),
n(Object(R.h)({route:"dashboard"}));i(C.m,t.metricsPage)}},a["server/restartPersonalCloudServer"]=function(e){var t=e.get("cloudServer"),n=t.get("pmp");n.set("isPersonalCloudServerRestarting",!0);var i=t.populate().then(function(){return Object(p.a)(c.a.ajax(t.getXHROptions("/api/v2/cloud_server",{method:"DELETE"})))}).then(function(){return c.a.ajax(t.getXHROptions("/api/v2/cloud_server",{method:"POST"}))});Object(h.a)(i,1e3).fail(function(e){n.set("personalCloudServerRestartError",e)
}).always(function(){n.set("isPersonalCloudServerRestarting",!1)})},a["server/discoverMediaGrabberDevice"]=function(e,t){var n=Object(E.h)(e,t),i=e.get("ui").get("dvrSettingsUI"),a=t.device;if(!i.get("isUIPopulated")){var r=new w.a({model:new O.a(a,{parse:!0}),serverEntityID:t.serverEntityID,machineIdentifier:n.get("machineIdentifier")});d.a.trigger("show:bar","alertbar",r)}},a["server/checkiTunes"]=function(e,t){var n=Object(E.h)(e,t),i=Object(E.g)(e,t)
;if(n.get("isPersonalCloudServer"))return void i.set("hasiTunes",!1);var a=f.join("/music/iTunes"),r=n.getXHROptions(a);c.a.ajax(r).done(function(){i.set("hasiTunes",!0)}).fail(function(){i.set("hasiTunes",!1)})},a["server/importPlaylists"]=function(e,t){var n=Object(E.h)(e,t),i=Object(E.g)(e,t),a=i.get("libraries"),r=new N.a({server:n,libraries:a});d.a.trigger("show:modal",r)},a))},function(e,t,n){"use strict";function i(e){var t=e.children,n=c()(e,["children"])
;return p.a.createElement(m.a,r()({title:Object(v.default)("There was an unexpected error"),description:Object(v.default)("Please visit our forums if you continue to experience problems")},n),s()(h.a,{to:f.a,target:"_blank",kind:g.b.PRIMARY},void 0,Object(v.default)("Go to Forums")),t)}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(321),v=n(3),g=n(24),m=n(127);t.a=i},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(947)),r=n(393),o=Object(i.createSelector)(Object(r.a)("features"),a.a);t.a=o},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(o.a,Object(r.a)("liveTVSession"),function(e,t){return e[t]})}t.a=i;var a=n(4),r=(n.n(a),n(153)),o=n(3569)},function(e,t,n){"use strict";function i(e,t){var n=Math.floor(Date.now()/1e3);return e.get("Media").find(function(e){var i=e.beginsAt<=n&&n<=e.endsAt,a=!t||e.channelIdentifier===t;return i&&a})}function a(e){var t=i(e)
;return t?t.channelIdentifier:void 0}function r(e){return{channelIdentifier:e,beginsAt:Math.floor(Date.now()/1e3)}}function o(e,t){var n=Object(E.c)(e,t),i=n.get("liveTVSession");i&&i.set("lastSeekPosition",i.get("currentPosition"))}n.d(t,"l",function(){return z}),n.d(t,"e",function(){return U}),n.d(t,"d",function(){return B}),n.d(t,"a",function(){return F}),n.d(t,"n",function(){return _}),n.d(t,"g",function(){return V}),n.d(t,"h",function(){return H}),n.d(t,"j",function(){return Q}),
n.d(t,"k",function(){return Y}),n.d(t,"i",function(){return G}),n.d(t,"c",function(){return W}),n.d(t,"b",function(){return K}),n.d(t,"m",function(){return Z}),n.d(t,"f",function(){return q})
;var s,l=n(6),c=n.n(l),u=n(13),d=n.n(u),p=n(40),h=n(16),f=n(1515),v=n(435),g=n(844),m=n(3584),y=n(984),b=n(845),I=n(3585),S=n(116),M=n(143),D=n(212),C=n(107),j=n(79),P=n(824),O=n(825),T=n(70),E=n(198),w=n(36),A=n(3),x=n(171),N=n(77),L="ui/player/liveTVPlayer/skipBack",k="ui/player/liveTVPlayer/stepBack",R="ui/player/liveTVPlayer/seek",z=Object(p.a)("ui/player/liveTVPlayer/startLiveTVPlayback"),U=Object(p.a)("ui/player/liveTVPlayer/endLiveTVPlayback"),B=Object(p.a)("ui/player/liveTVPlayer/confirmLiveTVPlayback"),F=Object(p.a)("ui/player/liveTVPlayer/cancelConfirmLiveTVPlayback"),_=Object(p.a)("ui/player/liveTVPlayer/updatePlayerLiveTVMetadata"),V=Object(p.a)("ui/player/liveTVPlayer/playNextItem"),H=Object(p.a)("ui/player/liveTVPlayer/playPreviousItem"),Q=Object(p.a)(L),Y=Object(p.a)("ui/player/liveTVPlayer/skipForward"),G=(Object(p.a)(k),
Object(p.a)("ui/player/liveTVPlayer/stepForward"),Object(p.a)(R)),W=Object(p.a)("ui/player/liveTVPlayer/clearPlayerConflicts"),K=Object(p.a)("ui/player/liveTVPlayer/cancelMediaGrabber"),Z=Object(p.a)("ui/player/liveTVPlayer/togglePlayerAlsoAiringState"),q=(s={},s["ui/player/liveTVPlayer/startLiveTVPlayback"]=function(e,t,n){var a=t.serverEntityID,o=t.providerEntityID,s=Date.now(),l=Object(g.a)(e,t),u=Object(v.a)(l),d=C.c(u),p=Object(E.c)(e,d),m=T.k(e,t),b=T.i(e,{providerEntityID:o
}),S=b.get("parentID"),M=l.metadataItemModel,x=null;if(M?x=i(M,l.identifier):l.identifier&&(x=r(l.identifier)),!x)return void Object(w.a)(function(){p.restoreDefaults({hasError:!0,errorMessage:Object(A.default)("Unable to tune channel (Not on air)")})});if(e.get("remotePlayer")&&!e.get("user").get("features").findWhere({uuid:j.g}))return void Object(w.a)(function(){p.set({hasError:!0,errorMessage:Object(A.default)("Live TV is not currently supported when connected to a remote player.")})})
;Object(w.a)(function(){p.restoreDefaults({serverEntityID:a,providerEntityID:o,isOpen:!0,openState:D.a,isPlayQueueLoading:!0,isMediaLoading:!0,playbackStartTime:s})});var L=new f.a({},{server:m,provider:b}),k=x.channelIdentifier;Object(I.a)(L,S,k,{playbackSessionID:y.a,currentMediaItem:x}).done(function(){p.set("liveTVSession",L);var e=L.get("grabOperation"),i=e.get("metadataItem");n(Object(N.m)(c()({},t,{liveTVSessionEntityID:L.entityID(),metadataItemEntityID:i.entityID(),options:{offset:void 0
}})))}).fail(function(e){var t=e.confirmPlayback,n=e.hasConflicts,i=e.errorMessage;if(t)p.restoreDefaults({serverEntityID:a,providerEntityID:o,liveTVSession:L,confirmLiveTVPlayback:t});else if(n)p.restoreDefaults({serverEntityID:a,providerEntityID:o,liveTVSession:L,hasConflicts:n});else{var r=m.getState();Object(h.c)("metrics").trackEvent({event:"playback:failure",interaction:!0,properties:{serverType:Object(O.a)(r),connectionType:Object(P.a)(r.activeConnection),error:"tuneFailed",identifier:k}
}),p.restoreDefaults({hasError:!0,errorMessage:i})}})},s["ui/player/liveTVPlayer/endLiveTVPlayback"]=function(e,t,n){var i=t.playerType,a=t.showError,r=Object(E.c)(e,i);a?r.restoreDefaults({hasError:!0,errorMessage:Object(A.default)("This live TV session has ended due to a recording conflict")}):n(Object(N.f)({playerType:i}))},s["ui/player/liveTVPlayer/confirmLiveTVPlayback"]=function(e,t,n){
var i=t.playerType,a=t.serverEntityID,r=t.providerEntityID,o=t.offset,s=Object(E.c)(e,i),l=s.get("liveTVSession"),c=l.get("captureBuffer"),u=l.get("grabOperation"),d=u.get("metadataItem");if(null!=o){var p=c.startedAt+Math.floor(o/1e3);l.set({currentPosition:p,lastSeekPosition:p})}n(Object(N.m)({serverEntityID:a,providerEntityID:r,liveTVSessionEntityID:l.entityID(),metadataItemEntityID:d.entityID(),startOffsetMilliseconds:o}))},
s["ui/player/liveTVPlayer/cancelConfirmLiveTVPlayback"]=function(e,t){var n=t.playerType,i=Object(E.c)(e,n);Object(w.a)(function(){i.restoreDefaults()})},s["ui/player/liveTVPlayer/updatePlayerLiveTVMetadata"]=function(e,t){var n=t.serverEntityID,i=t.playerType,a=Object(E.c)(e,i),r=a.get("liveTVSession");if(r&&a.get("serverEntityID")===n){var o=r.get("dvrID"),s=r.get("channelIdentifier");Object(I.a)(r,o,s,{playbackSessionID:y.a})}},s["ui/player/liveTVPlayer/playNextItem"]=function(e,t,n){
var i=t.playerType,a=Object(E.c)(e,i),r=m.a(a);m.g(e,i,r,n)},s["ui/player/liveTVPlayer/playPreviousItem"]=function(e,t,n){var i=t.playerType,a=Object(E.c)(e,i),r=m.b(a);m.g(e,i,r,n)},s[L]=function(e,t,n){var i=t.playerType,a=Object(E.c)(e,i),r=m.c(a);m.g(e,i,r,n)},s["ui/player/liveTVPlayer/skipForward"]=function(e,t,n){var i=t.playerType,a=Object(E.c)(e,i),r=m.d(a);m.g(e,i,r,n)},s[k]=function(e,t,n){var i=t.playerType,a=Object(E.c)(e,i),r=m.e(a);m.g(e,i,r,n)},
s["ui/player/liveTVPlayer/stepForward"]=function(e,t,n){var i=t.playerType,a=Object(E.c)(e,i),r=m.f(a);m.g(e,i,r,n)},s[R]=function(e,t,n){var i=t.playerType,a=t.seekPosition;m.g(e,i,a,n)},s["ui/player/liveTVPlayer/clearPlayerConflicts"]=function(e,t){var n=t.playerType,i=Object(E.c)(e,n);Object(w.a)(function(){i.set({hasConflicts:!1})})},s["ui/player/liveTVPlayer/cancelMediaGrabber"]=function(e,t,n){var i=t.playerType,r=t.grabOperationKey,o=Object(E.c)(e,i),s=o.get("serverEntityID"),l=T.k(e,{
serverEntityID:s}),c=o.get("liveTVSession"),u=c.get("grabOperation"),p=u.get("metadataItem"),h=!o.get("isOpen");if(h&&!a(p))return void o.restoreDefaults({hasError:!0,errorMessage:Object(A.default)("Unable to cancel conflict, please try again.")});Object(w.a)(function(){o.set({isConflictCancelling:!0})});var f=l.getXHROptions(r,{type:"DELETE"});d.a.ajax(f).done(function(e){if(o.set({hasConflicts:!1,isConflictCancelling:!1,cancelConflictError:null}),h){var t=o.get("providerEntityID")
;if(!a(p))return void o.restoreDefaults({hasError:!0,errorMessage:Object(A.default)("Unable to tune channel after cancelling a conflict, please try again.")});n(z({serverEntityID:s,providerEntityID:t,metadataItemEntityID:p.entityID(),playerType:i}))}}).fail(function(e){o.set({isConflictCancelling:!1,cancelConflictError:Object(x.a)(e)})})},s[S.c]=function(e,t){var n=t.serverEntityID,i=t.activity,a=Object(E.c)(e,C.a),r=a.get("liveTVSession")
;if(r&&a.get("serverEntityID")===n&&r.get("activityUUID")===i.uuid&&i.Context){var o=!!i.Context.conflicts,s=a.get("hasConflicts");if(o&&!s){var l=r.get("dvrID"),c=r.get("channelIdentifier");Object(I.a)(r,l,c,{playbackSessionID:y.a}).fail(function(e){e.hasConflicts&&a.set({hasConflicts:!0})})}else!o&&s&&a.set({hasConflicts:!1})}},s[S.b]=function(e,t,n){var i=t.serverEntityID,a=t.activity,r=Object(E.c)(e,C.a),o=r.get("liveTVSession")
;if(o&&r.get("serverEntityID")===i&&o.get("activityUUID")===a.uuid){var s=Object(A.default)("This live TV session has ended");a.Response&&a.Response.errorText?s=a.Response.errorText:r.get("hasConflicts")&&(s=Object(A.default)("This live TV session has ended due to a recording conflict")),r.restoreDefaults({hasError:!0,errorMessage:s})}},s["ui/player/liveTVPlayer/togglePlayerAlsoAiringState"]=function(e,t){var n=t.playerType,i=Object(E.c)(e,n),a=i.get("isAlsoAiringVisible")
;Object(w.a)(function(){i.set(Object(b.a)(i,a,{isSettingsVisible:!1,isChaptersVisible:!1,isAlsoAiringVisible:!a,isLyricsVisible:!1}))})},s[M.a]=function(e,t){o(e,t.playerType)},s[M.b]=function(e,t){o(e,t.playerType)},s[M.c]=function(e,t){var n=t.playerType,i=t.positionSeconds,a=Object(E.c)(e,n),r=a.get("liveTVSession");if(r){var o=r.get("startedAt"),s=r.get("lastSeekPosition"),l=o+i;l>s&&Object(w.a)(function(){r.set({currentPosition:l,lastSeekPosition:null})})}},s)},function(e,t,n){"use strict"
;function i(e,t,n){if("mixed"===e)return[];switch(n){case l.i:switch(e){case"season":return[j.a,S.a];case"episode":return[j.a,M.a];case"album":return[j.a,L.a];case"actor":return[u.a,d.a]}break;case l.a:switch(e){case"movie":return[j.a,O.a,L.a];case"clip":return[j.a,O.a];case"episode":return[p.a,O.a,D.a]}break;case l.l:switch(t){case"news":switch(e){case"clip":return[j.a,T.a,f.a]}}switch(e){case"artist":return[j.a,g.a];case"photo":return[y.a,I.a];case"photoalbum":case"clip":return[j.a,I.a]
;case"playlist":return[j.a,E.a];case"collection":return[j.a,m.a];case"actor":case"genre":case"director":case"autotag":case"tag":case"place":return[z.a]}break;case l.h:case l.f:case l.g:case l.c:switch(t){case"news":switch(e){case"clip":return[y.a,f.a]}break;case"podcast":switch(e){case"track":return[p.a,D.a]}break;case"musicVideo":switch(e){case"clip":return[j.a,N.a]}}switch(e){case"episode":return[p.a,D.a];case"clip":return[j.a,I.a];case"track":return[j.a,N.a]}break;case l.d:
return[P.a,x.a,T.a,f.a,null]}switch(t){case"news":switch(e){case"clip":return[P.a,T.a,f.a,null]}break;case"podcast":switch(e){case"show":return[j.a]}}switch(e){case"movie":return[j.a,L.a];case"show":return[j.a,w.a];case"season":return[h.a,j.a];case"episode":return[p.a,j.a,A.a];case"artist":return[j.a];case"album":return[h.a,j.a];case"track":return[p.a,j.a];case"photo":return[y.a];case"photoalbum":case"clip":return[j.a];case"extra":return[y.a,C.a];case"musicVideo":return[p.a,y.a];case"playlist":
return[j.a,E.a];case"collection":return[j.a,m.a]}return[y.a]}function a(e,t,n,a,r){var o=t===c.e,l=t===c.g,u=n===s.d;if(!o&&!l&&!u)return e;var d=i(n,a,r),p=i(t,a,r),h=e.filter(function(e){return!p.includes(e)});return d.concat(h)}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.subtype,r=n.activeSort,s=n.isSearch,c=n.isSearchAll,u=n.isExternal,d=n.providerEntityID,p=i(e,a,t);if(s?(p.push(R.a),c&&p.push(U.a)):u&&p.push(k.a),
o.c.test(d)&&("movie"===e||"episode"===e||"mixed"===e))switch(t){case l.h:case l.f:p.push(b.a);break;case l.c:break;default:p.push(v.a)}if(r){var h=Object(B.a)(r);h&&!p.includes(h)&&p.push(h)}return p}t.a=a,t.b=r
;var o=n(41),s=n(27),l=n(33),c=n(223),u=n(3662),d=n(3663),p=n(287),h=n(564),f=n(1529),v=n(1531),g=n(1487),m=n(1488),y=n(974),b=n(3667),I=n(975),S=n(1004),M=n(1544),D=n(329),C=n(3671),j=n(716),P=n(3675),O=n(1547),T=n(3676),E=n(3678),w=n(976),A=n(1008),x=n(3680),N=n(977),L=n(400),k=n(3682),R=n(1492),z=n(1548),U=n(3685),B=n(3687)},function(e,t,n){"use strict";function i(e){return s.a.createElement(c.a,r()({className:d.a.innerEmptyPage,contentClassName:d.a.innerEmptyPageContent,
scrollDirection:l.NONE},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(57),c=n(85),u=n(1569),d=n.n(u);t.a=i},function(e,t,n){"use strict";var i=n(299),a=new i.a({interface:["get","set","remove","clear"]});t.a=a},function(e,t,n){"use strict";n.d(t,"d",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"a",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"m",function(){return v}),n.d(t,"l",function(){return g}),n.d(t,"g",function(){return m}),n.d(t,"f",function(){return y}),
n.d(t,"k",function(){return b}),n.d(t,"h",function(){return I}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return M}),n.d(t,"e",function(){return D})
;var i,a=n(59),r=n.n(a),o=n(40),s=n(32),l=n(1951),c=n(70),u=n(36),d="app/setPrimaryServer",p="app/resetPrimaryServer",h="app/changePrimaryServer",f="app/navigate",v=Object(o.a)(d),g=Object(o.a)(p),m=Object(o.a)(h),y=Object(o.a)("app/changeCompanionServer"),b=Object(o.a)("app/removeCompanionServer"),I=Object(o.a)("app/garbageCollectEntities"),S=Object(o.a)(f),M=(Object(o.a)("app/navigateBack"),Object(o.a)("app/navigateForward"),
Object(o.a)("app/navigateHome")),D=(Object(o.a)("app/navigateSearch"),Object(o.a)("app/navigatePrePlay"),i={},i["app/garbageCollectEntities"]=function(e,t){Object(u.a)();var n=Object(l.a)(e.getState(),t),i=e.get("entities");for(var a in n){var o=n[a];i.get(a).remove(o)}t&&t.budget===1/0&&r()(n).length&&Object(u.a)()},i[h]=function(e,t){},i[p]=function(e,t){},i[d]=function(e,t){},i["app/changeCompanionServer"]=function(e,t){var n=Object(c.p)(e,t)
;n?e.set("companionServer",n):s.a.warn("[Companion] Could not find %s to use as companion server",t.serverEntityID)},i["app/removeCompanionServer"]=function(e,t){e.unset("companionServer")},i[f]=function(e,t){},i["app/navigateBack"]=function(e){},i["app/navigateForward"]=function(e){},i["app/navigateHome"]=function(e,t,n){},i["app/navigateSearch"]=function(e,t,n){},i["app/navigatePrePlay"]=function(e,t,n){},i)},function(e,t,n){function i(e){return function(){
return e.apply(this,a.initial(arguments))}}var a=n(10);e.exports=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="full",a="mini"},,,function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(439),b=n(47),I=n(28),S=n(2826),M=n(2828),D=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i))
;return a.onMouseEnter=function(e){a.props.showOnHover&&(a._isHovered=!0,a.setState({isOpen:!0}))},a.onMouseLeave=function(e){a.props.showOnHover&&(a._isHovered=!1,a.setState({isOpen:a._isFocused}))},a.onFocus=function(e){a.props.showOnFocus&&(a._isFocused=!0,a.setState({isOpen:!0}))},a.onBlur=function(e){a.props.showOnFocus&&(a._isFocused=!1,a.setState({isOpen:a._isHovered}))},a.onPress=function(e){a.props.hideOnPress&&(a._isHovered=!1,a._isFocused=!1,a.setState({isOpen:!1}))},a.state={
isOpen:!1},a._isHovered=!1,a._isFocused=!1,a._targetID=Object(b.a)(),a}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.children,i=e.component,r=e.tooltip,s=e.tooltipClassName,c=e.tooltipAttachment,u=e.tooltipTarget,d=e.tooltipOptions,p=(e.showOnHover,e.showOnFocus,e.hideOnPress,
e.onMouseEnter),h=e.onMouseLeave,f=e.onFocus,v=e.onBlur,g=e.onPress,b=l()(e,["id","children","component","tooltip","tooltipClassName","tooltipAttachment","tooltipTarget","tooltipOptions","showOnHover","showOnFocus","hideOnPress","onMouseEnter","onMouseLeave","onFocus","onBlur","onPress"]),I=this.state.isOpen;return m.a.createElement(i,a()({id:t||this._targetID,onMouseEnter:Object(y.a)(this.onMouseEnter,p),onMouseLeave:Object(y.a)(this.onMouseLeave,h),onFocus:Object(y.a)(this.onFocus,f),
onBlur:Object(y.a)(this.onBlur,v),onPress:Object(y.a)(this.onPress,g)},b),r?o()(S.a,{className:s,attachment:c,options:d,target:u||t||this._targetID,isOpen:I},void 0,r):null,n)},t}(g.Component);D.defaultProps={component:M.a,showOnHover:!0,showOnFocus:!0,hideOnPress:!0},t.a=D},function(e,t,n){"use strict";function i(e,t,n){var i=n.shouldCenterCell,r=n.outerPaddingLeft,o=n.outerPaddingTop,s=n.scrollerWidth,l=n.scrollerHeight;return{scrollLeft:e===C.HORIZONTAL?a(t.cellX,{shouldCenterCell:i,offset:r,
viewportDimension:s,cellDimension:t.cellWidth}):0,scrollTop:e===C.VERTICAL?a(t.cellY,{shouldCenterCell:i,offset:o,viewportDimension:l,cellDimension:t.cellHeight}):0}}function a(e,t){if(t.shouldCenterCell){var n=(t.viewportDimension-t.cellDimension)/2,i=Math.round(e-n);return Math.max(i,0)}return e-(t.offset||0)}var r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(6),u=n.n(c),d=n(7),p=n.n(d),h=n(8),f=n.n(h),v=n(9),g=n.n(v),m=n(1),y=(n.n(m),n(0)),b=n.n(y),I=n(67),S=n(80),M=n(237),D=n(925),C=n(57),j=(n(924),
n(531),n(28)),P=n(2887),O=n.n(P),T=function(e){function t(n,i){p()(this,t);var a=f()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop,n=e.scrollLeft;a.setState({scrollTop:t,scrollLeft:n})},a.onListUpdate=function(e){var t=e.visibleStartIndex,n=a.props,i=n.scrollIndex,r=n.onListScrollIndexChange,o=n.onListUpdate;a._currentScrollIndex=t,a.state.isRestoringScrollPosition&&a.setState({isRestoringScrollPosition:!1}),r&&i!==t&&r(t),o&&o(e)},a.onMeasure=function(e){
var t=Math.round(e.width),n=Math.round(e.height),i=a.props.onMeasure;a.setState({isMeasured:!0,width:t,height:n}),i&&i(e)},a.state={isRestoringScrollPosition:!1,isMeasured:!1,width:null,height:null,scrollTop:0,scrollLeft:0},a._currentScrollIndex=0,n.scrollPositionStorageKey&&(a._scrollPositionKey=D.a.getPageKey()+"!scrollPosition!"+n.scrollPositionStorageKey),a}return g()(t,e),t.prototype.componentWillMount=function(){this.props.scrollIndex||this._restoreScrollPosition()},
t.prototype.shouldComponentUpdate=function(e,t){return Object(j.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){var n=this.props,a=n.scrollIndex,r=n.scrollDirection,o=n.shouldCenterScrollIndex,s=n.layout,l=this.state,c=l.scrollLeft,u=l.scrollTop,d=l.width,p=l.height,h=l.isMeasured;if(null!=a&&(a!==this._currentScrollIndex||o)){var f=h&&!t.isMeasured&&a>0,v=h&&a!==e.scrollIndex,g=o!==e.shouldCenterScrollIndex;if(f||v||g){var m=s.getPositionForIndex(Math.max(a,0)),y=i(r,m,{
shouldCenterCell:o,outerPaddingLeft:s.options.outerPaddingLeft,outerPaddingTop:s.options.outerPaddingTop,scrollerWidth:d,scrollerHeight:p}),b=y.scrollLeft!==c||y.scrollTop!==u;this.setState({scrollLeft:y.scrollLeft,scrollTop:y.scrollTop,isRestoringScrollPosition:f&&b})}}},t.prototype.componentWillUnmount=function(){this._scrollPositionKey&&D.a.set(this._scrollPositionKey,{scrollTop:this.state.scrollTop,scrollLeft:this.state.scrollLeft})},t.prototype._restoreScrollPosition=function(){
if(this._scrollPositionKey){var e=D.a.get(this._scrollPositionKey);e&&this.setState(u()({isRestoringScrollPosition:!0},e))}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=e.scrollerClassName,a=e.virtualListClassName,r=e.ignoreWidth,s=e.ignoreHeight,c=e.resizeTimeout,d=e.scrollDirection,p=(e.scrollIndex,e.scrollPositionStorageKey,e.smoothScroll),h=e.scrollerStyle,f=e.forwardedRef,v=(e.onListUpdate,e.onMeasure,
e.onScroll),g=l()(e,["className","children","scrollerClassName","virtualListClassName","ignoreWidth","ignoreHeight","resizeTimeout","scrollDirection","scrollIndex","scrollPositionStorageKey","smoothScroll","scrollerStyle","forwardedRef","onListUpdate","onMeasure","onScroll"]),m=this.state,y=m.isMeasured,D=m.isRestoringScrollPosition,C=m.width,j=m.height,P=m.scrollTop,O=m.scrollLeft;return o()(I.a,{className:t,ignoreWidth:r,ignoreHeight:s,ignorePosition:!0,resizeTimeout:c,onMeasure:this.onMeasure
},void 0,y&&b.a.createElement(S.a,{className:i,smoothScroll:!1!==p&&!D,scrollDirection:d,scrollTop:P,scrollLeft:O,enableChildrenProps:!0,style:h,ref:f,onScroll:v,onScrollPositionChange:this.onScrollPositionChange},b.a.createElement(M.a,u()({className:a,viewportWidth:C,viewportHeight:j,skipRenderCells:D,onListUpdate:this.onListUpdate},g)),n))},t}(y.Component);T.defaultProps={scrollDirection:C.VERTICAL,scrollerClassName:O.a.scroller,shouldCenterScrollIndex:!1},t.a=b.a.forwardRef(function(e,t){
return b.a.createElement(T,u()({},e,{forwardedRef:t}))})},function(e,t,n){"use strict";function i(e){var t=e.errorMessage;return r()("div",{className:d.a.sectionError},void 0,r()(c.a,{name:"plex-icon-alert-560",className:d.a.sectionErrorIcon}),t||Object(l.default)("There was a problem saving your changes."))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(26),u=n(2946),d=n.n(u);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(52),m=n(2962),y=n.n(m),b=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onChange=function(e){i.props.onChange(e.target.value)},i.onFocus=function(){i._select()},i.onRef=function(e){i.inputElement=e},a=n,u()(i,a)}return p()(t,e),
t.prototype.componentDidMount=function(){this.props.focusOnMount&&(this.inputElement.focus(),this._select())},t.prototype._select=function(){if(this.inputElement&&this.props.selectTextOnFocus){var e=this.inputElement.value,t=e?e.length:0;this.inputElement.selectionStart=0,this.inputElement.selectionEnd=t}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,s=(e.initialValue,
e.value),l=e.size,c=e.type,u=e.name,d=e.placeholder,p=e.hasError,h=(e.errors,e.validations,e.focusOnMount),f=(e.selectTextOnFocus,o()(e,["className","errorClassName","disabledClassName","isDisabled","initialValue","value","size","type","name","placeholder","hasError","errors","validations","focusOnMount","selectTextOnFocus"]));return v.a.createElement("input",a()({},f,{id:u,name:u,type:c,disabled:r,value:s,placeholder:d,className:(t||"")+" "+(y.a[l]||"")+" "+(r&&i||"")+" "+(p&&n||""||""),
ref:h?this.onRef:null,onChange:this.onChange,onFocus:this.onFocus}))},t}(f.Component);b.defaultProps={className:y.a.input,errorClassName:y.a.hasError,disabledClassName:y.a.isDisabled,isDisabled:!1,size:g.LARGE,type:"text",hasError:!1,focusOnMount:!1,selectTextOnFocus:!1},t.a=b},function(e,t,n){"use strict";function i(e){var t=e.children,n=s()(e,["children"]);return u.a.createElement("div",r()({className:p.a.pageHeader},n),t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(3137),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){return r()(l.a,{},void 0,s.a.createElement(c.a,e))}var a=n(2),r=n.n(a),o=n(0),s=n.n(o),l=n(963),c=n(964);t.a=i},function(e,t,n){"use strict";function i(e,t){return t.some(function(t){var n=t.provider,i=Object(s.a)(n);return!(!i||!i.directories)&&i.directories.some(function(t){return Object(h.a)(e,n,t)})})}function a(e,t){var n=e.isVisible;return!0===n||o.a.isFunction(n)&&n(e,t)}n.d(t,"b",function(){return f}),
n.d(t,"h",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"f",function(){return y}),n.d(t,"i",function(){return b}),n.d(t,"a",function(){return I}),n.d(t,"j",function(){return S}),n.d(t,"e",function(){return M}),n.d(t,"g",function(){return D}),n.d(t,"l",function(){return C}),n.d(t,"k",function(){return j}),n.d(t,"n",function(){return O}),n.d(t,"m",function(){return T}),t.o=a
;var r=n(10),o=n.n(r),s=n(473),l=n(3),c=n(230),u=n(106),d=n(27),p=n(145),h=n(702),f="home",v="tv",g="movies",m="music",y="photos",b="videos",I="dvr",S="webShows",M="news",D="podcasts",C=[v,g,m,y,b,I,S,M,D],j=[v,g,m,y,b,I,S,M,D],P=Object(c.a)(["key"],[{key:f,isVisible:!1,types:{},metricsMode:"home"},{key:g,title:function(){return Object(l.default)("Movies")},isVisible:!0,types:{type:d.f},metricsMode:"movies",sectionTypeKey:p.a},{key:v,title:function(){return Object(l.default)("TV Shows")},
isVisible:!0,types:{type:d.k},metricsMode:"tv",sectionTypeKey:p.d},{key:m,title:function(){return Object(l.default)("Music")},isVisible:!0,types:{type:d.b},metricsMode:"music",canCreateLibraryForType:!0,sectionTypeKey:p.b},{key:y,title:function(){return Object(l.default)("Photos")},isVisible:!0,types:{type:d.g},sectionTypeKey:p.c},{key:b,title:function(){return Object(l.default)("Other Videos")},isVisible:i,types:{type:d.f},metricsMode:"videos",sectionTypeKey:p.e},{key:I,title:function(){
return Object(l.default)("Live TV & DVR")},isVisible:!0,metricsMode:"dvr"},{key:M,title:function(){return Object(l.default)("News")},isVisible:i,types:{type:d.c,subtype:u.a},metricsMode:"news"},{key:D,title:function(){return Object(l.default)("Podcasts")},isVisible:i,types:{type:d.k,subtype:u.b},metricsMode:"podcasts"},{key:S,title:function(){return Object(l.default)("Web Shows")},isVisible:i,types:{type:d.k,subtype:u.c},metricsMode:"webshows"}]),O=P.get,T=P.getAll},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.circleClassName,i=e.title,a=c()(e,["className","circleClassName","title"]);return p.a.createElement(h.a,r()({className:t,"aria-label":Object(f.default)("Play {title}",{title:i})},a),s()(v.a,{className:n}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(3),v=n(3503),g=n(3504),m=n.n(g);i.defaultProps={className:m.a.playButton,circleClassName:m.a.playCircle},t.a=i},function(e,t,n){"use strict"
;n.d(t,"d",function(){return a}),n.d(t,"e",function(){return r}),n.d(t,"f",function(){return o});var i=n(27);n.d(t,"i",function(){return i.j}),n.d(t,"c",function(){return i.e}),n.d(t,"a",function(){return i.a}),n.d(t,"j",function(){return i.l}),n.d(t,"b",function(){return i.c}),n.d(t,"g",function(){return i.g}),n.d(t,"h",function(){return i.i});var a="extra",r="mixed",o="musicVideo"},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t
},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3805)),c=n.n(l);i.defaultProps={className:c.a.tertiaryTitle},t.a=i},,function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.selectedDirectory},function(e){if(e){var t=e.key;return"/"===t.charAt(0)?t:"/library/sections/"+t}})}t.a=i;var a=n(4);n.n(a)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(78),o=void 0,s=r.a.extend({connect:function(){var e=this
;return this.deferred||(this.deferred=a.a.Deferred(),o?(this.api=o,this.deferred.resolve(this.api)):new window.QWebChannel(window.qt.webChannelTransport,function(t){e.api=t.objects,e.deferred.resolve(e.api)})),this.deferred.promise()}});t.a=new s},,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function i(e){var t=o.a.clone(e)
;return t.hasOwnProperty("title")?(t.title=o.a.result(t,"title"),t.hasOwnProperty("shortTitle")&&(t.shortTitle=o.a.result(t,"shortTitle")),t.hasOwnProperty("plural")&&(t.plural=o.a.result(t,"plural")),t):t}function a(e,t){function n(e){for(var t in o)if(o[t][e])return!0;return!1}function a(e){for(var t in o){var n=o[t],a=n[e];if(a)return i(a)}s.a.warn("No type was found for "+e)}function r(){return t.map(function(e){return i(e)})}var o={};return e.forEach(function(e){
o[e]=t.reduceRight(function(t,n){var i=n[e];return null!=i&&(t[i]=n),t},{})}),{contains:n,get:a,getAll:r}}t.a=a;var r=n(10),o=n.n(r),s=n(32)},function(e,t,n){"use strict";function i(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TRANSCODE_JOBS",function(){return a}),n.d(t,"BACKGROUND_TRANSCODE_JOBS",function(){return r}),n.d(t,"SEARCH_RESULT",function(){return o}),
n.d(t,"SYNC_METADATA_ITEM",function(){return s}),n.d(t,"TOP_PLAYED_METADATA_ITEM",function(){return l});var i=n(45);n.d(t,"SERVER",function(){return i.m}),n.d(t,"PROVIDER",function(){return i.k}),n.d(t,"LIBRARY",function(){return i.c}),n.d(t,"HUB",function(){return i.b}),n.d(t,"USER",function(){return i.o}),n.d(t,"RESOURCE",function(){return i.l}),n.d(t,"FRIEND",function(){return i.a}),n.d(t,"METADATA_LIST",function(){return i.h}),n.d(t,"METADATA_DIRECTORY",function(){return i.f}),
n.d(t,"METADATA_ITEM",function(){return i.g}),n.d(t,"SESSION",function(){return i.n}),n.d(t,"USER_PLAYLIST_ITEM",function(){return i.p}),n.d(t,"MEDIA_SUBSCRIPTION",function(){return i.e}),n.d(t,"LIVE_TV_SESSION",function(){return i.d}),n.d(t,"PLAY_QUEUE_ITEM",function(){return i.j}),n.d(t,"PLAYLIST_ITEM",function(){return i.i});var a="transcodeJobs",r="backgroundTranscodeJobs",o="searchResults",s="syncMetadataItems",l="topPlayedMetadataItems"},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"UP",function(){return i}),n.d(t,"RIGHT",function(){return a}),n.d(t,"DOWN",function(){return r}),n.d(t,"LEFT",function(){return o}),n.d(t,"all",function(){return s});var i="up",a="right",r="down",o="left",s=[i,a,r,o]},,,function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.itemServerEntityID,a=e.itemProviderEntityID,o=e.type,s=e.isOffscreen,u=e.url,d=e.width,p=e.height,h=e.icon,f=e.isFolder,v=e.transitionProps,g=e.onLoad,m=e.onError;return s?null:u?r()(l.a,{serverEntityID:i||t,providerEntityID:a||n,url:u,width:d,height:p,backgroundPosition:"artist"===o?"center top":"center",transitionProps:v,onLoad:g,onError:m}):r()(c.a,{type:o,width:d,height:p,isFolder:f,icon:h})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(674)),c=n(1386);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(10)),g=n.n(v),m=n(2886),y=n(372),b=(n(924),n(251)),I=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.state=a._getListState(n),a._keyPool=Object(m.a)("cell"),a._shouldRequestPage=!1,a}return p()(t,e),t.prototype.componentWillMount=function(){
this.props.onListUpdate&&this.props.onListUpdate(this.state)},t.prototype.componentDidMount=function(){this._checkForPageRequest()},t.prototype.componentWillReceiveProps=function(e){var t=this._getListState(e);Object(b.a)(this.state,t)||this.setState(t)},t.prototype.shouldComponentUpdate=function(e,t){var n=this.props,i=this.state
;return e.items!==n.items||e.size!==n.size||(e.viewportWidth!==n.viewportWidth||e.viewportHeight!==n.viewportHeight||(e.listTop!==n.listTop||e.listLeft!==n.listLeft||(e.isScrolling!==n.isScrolling||(e.skipRenderCells!==n.skipRenderCells||(e.layout!==n.layout||(e.cellRenderer!==n.cellRenderer||(t.visibleStartIndex!==i.visibleStartIndex||(t.visibleEndIndex!==i.visibleEndIndex||(t.partiallyVisibleStartIndex!==i.partiallyVisibleStartIndex||(t.partiallyVisibleEndIndex!==i.partiallyVisibleEndIndex||(t.renderStartIndex!==i.renderStartIndex||(t.renderEndIndex!==i.renderEndIndex||t.moveIndex!==i.moveIndex))))))))))))
},t.prototype.componentWillUpdate=function(e,t){this.props.onListUpdate&&t!==this.state&&this.props.onListUpdate(t)},t.prototype.componentDidUpdate=function(){this._checkForPageRequest()},t.prototype._getListState=function(e){var t=this._getListStyle(e),n=e.layout.getLandmarks&&e.layout.getLandmarks(),i=e.layout.getRangesForPosition(e.scrollTop,e.scrollLeft,e.size);return{listStyle:t,landmarks:n,visibleStartIndex:i.visibleStartIndex,visibleEndIndex:i.visibleEndIndex,
partiallyVisibleStartIndex:i.partiallyVisibleStartIndex,partiallyVisibleEndIndex:i.partiallyVisibleEndIndex,renderStartIndex:i.renderStartIndex,renderEndIndex:i.renderEndIndex,moveIndex:e.moveIndex}},t.prototype._getListStyle=function(e){var t=e.size,n=e.layout,i=e.viewportWidth,a=e.viewportHeight,r=e.listTop,o=e.listLeft,s={viewportWidth:i,viewportHeight:a,listTop:r,listLeft:o};return n.getListStyle(s,t)},t.prototype._checkForPageRequest=function(){var e=this.state
;this._shouldRequestPage&&(this._shouldRequestPage=!1,this.props.onPageRequest({startIndex:e.renderStartIndex,endIndex:e.renderEndIndex}))},t.prototype.renderCells=function(){
var e=this.props,t=e.keyPropName,n=e.items,i=e.itemsOffset,a=e.size,r=e.layout,s=e.hasNestedList,l=e.viewportWidth,c=e.viewportHeight,u=e.scrollLeft,d=e.scrollTop,p=e.cellRenderer,h=e.isScrolling,f=e.onPageRequest,v=this.state,m=v.moveIndex,y=v.renderStartIndex,b=v.renderEndIndex,I=v.partiallyVisibleStartIndex,S=v.partiallyVisibleEndIndex;if(!a)return[];var M=a>n.length&&b===n.length-1,D=this._keyPool.getKeys(y,b,n,i,t),C=[];return g.a.each(D,function(e,i){
var f=e.index,v=e.item,y=f>=I&&f<=S,b=r.getPositionForIndex(f,a,n);(null===v||s)&&(M=!0);var D={key:i,keyPropName:t,isVisible:y,isScrolling:h,moveIndex:m,viewportWidth:l,viewportHeight:c,cellIndex:f,cellX:b.cellX,cellY:b.cellY,cellWidth:b.cellWidth,cellHeight:b.cellHeight};s&&(D.scrollLeft=u,D.scrollTop=d),g.a.isString(v)?D[t]=v:D=o()({},v,D),C.push(p(D))}),this._shouldRequestPage=!!f&&(M&&!h),C},t.prototype.render=function(){
var e=this._getListStyle(this.props),t=this.props,n=t.className,i=t.isScrolling,r=t.skipRenderCells,o=t.children;return a()("div",{className:(n||"")+" "+(i&&y.g||""||""),style:e},void 0,!r&&this.renderCells(),o)},t}(f.Component);I.defaultProps={keyPropName:"entityID",items:[],itemsOffset:0,hasNestedList:!1,listTop:0,listLeft:0,isScrolling:!1,skipRenderCells:!1},t.a=I},function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"]);return l.a.createElement("div",n,t)}
var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(2943),u=n.n(c);i.defaultProps={className:u.a.group},t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(l.a)(),Object(c.a)(),function(e,t){return o.a.find(t,function(t){return t.type===s.a.PROVIDER_EPG_LOAD&&t.Context.identifier===e.identifier})})}var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(188),l=n(54),c=n(319);t.a=i},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(Object(r.a)("currentDecision"),Object(o.a)(),function(e,t){var n=e;if(n&&n.playQueueItemID===t.playQueueItemID)return n})}var a=n(4),r=(n.n(a),n(153)),o=n(142);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n,"data-qa-id":"preplaySecondTitle"},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3804)),c=n.n(l);i.defaultProps={className:c.a.secondaryTitle},t.a=i},function(e,t,n){"use strict"
;function i(e){return o.a.createElement(s.a,e)}var a=n(1),r=(n.n(a),n(0)),o=n.n(r),s=n(390),l=n(4183),c=n.n(l);i.defaultProps={className:c.a.badge},t.a=i},function(e,t,n){"use strict";function i(e){return e.get("ui").get("channelGridPage")}function a(e,t){for(var n=Math.floor(e/y)*y,i=[],a=0;a<=t;a++)i.push(n+a*y);return i}n.d(t,"b",function(){return C}),n.d(t,"c",function(){return j}),n.d(t,"i",function(){return P}),n.d(t,"h",function(){return O}),n.d(t,"e",function(){return T}),
n.d(t,"d",function(){return E}),n.d(t,"j",function(){return w}),n.d(t,"k",function(){return A}),n.d(t,"f",function(){return x}),n.d(t,"g",function(){return L}),n.d(t,"a",function(){return R});var r,o=n(40),s=n(1654),l=n(1655),c=n(125),u=n(124),d=n(249),p=n(123),h=n(4204),f=n(36),v=n(171),g=n(134),m=n(46),y=(n.n(m),
1800),b=parseInt(m.channelGridChannelOverflowWidth,10),I=parseInt(m.channelGridChannelColumnWidth,10),S=parseInt(m.channelGridTitleColumnWidth,10),M=2*y*12,D=6*y,C=Object(o.a)("ui/channelGridPage/initChannelsGridPage"),j=Object(o.a)("ui/channelGridPage/initMetadataList"),P=Object(o.a)("ui/channelGridPage/setStartTime"),O=Object(o.a)("ui/channelGridPage/resetStartTime"),T=Object(o.a)("ui/channelGridPage/navigateTimeFoward"),E=Object(o.a)("ui/channelGridPage/navigateTimeBack"),w=Object(o.a)("ui/channelGridPage/setViewportSize"),A=Object(o.a)("ui/channelGridPage/updateAiredProgress"),x=Object(o.a)("ui/channelGridPage/populateChannelPrograms"),N=Object(o.a)("ui/channelGridPage/repopulateChannelPrograms"),L=Object(o.a)("ui/channelGridPage/populateChannelsList"),k=Object(o.a)("ui/channelGridPage/fetchChannelsList"),R=Object(c.a)((r={},
r["ui/channelGridPage/initChannelsGridPage"]=function(e,t,n){var a=i(e),r=t.serverEntityID,o=t.providerEntityID,s=t.directoryKey,c=Object(g.h)(e,{serverEntityID:r}),u=Object(g.e)(e,{providerEntityID:o}),d=new l.a(null,{server:c,provider:u,type:h.a.CHANNEL}),p={serverEntityID:r,providerEntityID:o,directoryKey:s,channelsList:d};a.set(p),n(O())},r["ui/channelGridPage/initMetadataList"]=function(e,t,n){var a=t.containerKey,r=t.serverEntityID,o=t.providerEntityID,l=i(e),c=Object(g.h)(e,{
serverEntityID:r}),u=Object(g.e)(e,{providerEntityID:o});if(a!==l.get("containerKey")){var d=new s.a({containerKey:a},{server:c,provider:u});l.set({containerKey:a,metadataList:d})}},r["ui/channelGridPage/resetStartTime"]=function(e,t,n){var i=Math.floor(Date.now()/1e3);n(P(i))},r["ui/channelGridPage/setStartTime"]=function(e,t,n){var r=i(e),o=r.get("visibleColumns"),s=a(t,o);Object(f.a)(function(){r.set({startTime:t,columnTimes:s})})},r["ui/channelGridPage/navigateTimeFoward"]=function(e,t,n){
var a=i(e),r=a.get("columnTimes"),o=r[0]+y;n(P(o))},r["ui/channelGridPage/navigateTimeBack"]=function(e,t,n){var a=i(e),r=a.get("columnTimes"),o=r[0]-y,s=Math.floor(Date.now()/1e3)-D;o+y>s&&n(P(o))},r["ui/channelGridPage/setViewportSize"]=function(e,t,n){var r=t.width,o=t.height,s=i(e),l=Math.floor(r+b),c=Math.max(Math.floor((r-S)/I),1)+1,u=Math.floor((l-S)/c),d=a(s.get("startTime"),c);Object(f.a)(function(){s.set({visibleColumns:c,columnTimes:d,columnWidth:u,viewportWidth:l,
viewportHeight:Math.floor(o)})})},r["ui/channelGridPage/updateAiredProgress"]=function(e){var t=i(e),n=t.get("columnTimes"),a=n[0],r=n[n.length-1],o=r-a,s=Math.floor(Date.now()/1e3),l=Math.min(100,Math.max(0,(s-a)/o*100));Object(f.a)(function(){t.set({airedProgress:l})})},r["ui/channelGridPage/populateChannelPrograms"]=function(e){var t=i(e),n=t.get("metadataList"),a=t.get("columnTimes"),r=t.get("viewportWidth");n&&r>0&&(n.set({isPending:!0,error:null}),n.populateRange({start:a[0],
end:a[a.length-1],reloadThreshold:M}).then(function(){n.set({isPending:!1,isPopulated:!0,error:null})},function(e,t){t.aborting||n.set({isPending:!1,error:Object(v.a)(t)})}))},r["ui/channelGridPage/repopulateChannelPrograms"]=function(e){var t=i(e),n=t.get("metadataList");n.set({isPending:!0}),n.repopulateRange().then(function(){n.set({isPending:!1,isPopulated:!0,error:null})},function(e,t){t.aborting||n.set({isPending:!1,error:Object(v.a)(t)})})},r[p.a]=function(e,t,n){
if(!t.metadataItemEntityID&&!t.containerKeyPattern){var a=Object(g.h)(e,t),r=i(e),o=r.get("metadataList"),s=r.get("channelsList");s&&o&&s.server===a&&o.server===a&&(n(N()),n(k()))}},r["ui/channelGridPage/populateChannelsList"]=Object(d.a)({key:"channelsList",fetchActionType:"ui/channelGridPage/fetchChannelsList",getModel:i}),r["ui/channelGridPage/fetchChannelsList"]=Object(u.a)({key:"channelsList",getModel:i}),r))},function(e,t,n){"use strict";function i(e){return o.a.createElement("div",e)}
var a=n(1),r=(n.n(a),n(0)),o=n.n(r),s=n(4395),l=n.n(s);i.defaultProps={className:l.a.pageHeader},t.a=i},function(e,t,n){var i=n(780)("wks"),a=n(602),r=n(229).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:a)("Symbol."+e))}).store=i},function(e,t,n){"use strict";var i=n(87),a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(18),c=n(604),u=n(608),d=n(102),p=i.c.Collection.extend({mixins:[c.a],cache:new u.a,constructor:function(e,t){if(t||(t={}),this.server=t.server,
this.section=t.section,this.channel=t.channel,this.device=t.device,this.parent=t.parent,this.allowInCache=t.allowInCache,this.persistInCache=t.persistInCache,this.skipCache=t.skipCache,t.url&&(this.url=t.url),t.path&&(this.path=t.path),null==t.pageStart&&null==t.pageSize||(this.pageStart=t.pageStart||0,this.pageSize=t.pageSize||0),t.populated&&this.resetPopulatePromise(r.a.Deferred().resolve().promise()),
!t.allowInCache&&!t.persistInCache)return void i.c.Collection.prototype.constructor.apply(this,arguments);this.initialize.apply(this,arguments);var n=this.cache.getItemCacheKey(this),a=this.cache.get(n);if(this.uninitialize(),t.onlyIfCached&&(a||(a={})),a)return a;i.c.Collection.prototype.constructor.apply(this,arguments),this.cache.store(this,n)},uninitialize:function(){this.stopListening()},sync:function(){return(this.allowInCache||this.persistInCache)&&this.cache.store(this),
i.c.sync.apply(this,arguments)},syncUrl:function(){var e="";if(this.url&&(e=s.a.result(this,"url")),this.path&&(e=l.join([e,s.a.result(this,"path")])),null!=this.pageStart||null!=this.pageSize){var t=this.pageStart||0,n=this.pageSize||0,i={};i["X-Plex-Container-Start"]=t,i["X-Plex-Container-Size"]=n,e=l.join(e,i)}return e},convert:function(e,t){var n=s.a.isObject(e)?e:d.a.parseXML(e);if(!t)return n;var i=n[t];return i?(Array.isArray(i)||(i=[i]),i):[]},clone:function(e){var t={server:this.server,
section:this.section,parent:this.parent,url:this.url};return e||(e=this.models),new this.constructor(e,t)},cloneDeep:function(e){return e||(e=this.map(function(e){return e.clone()})),this.clone(e)},clear:function(e){e=s.a.extend({silent:!0},e),this.abortPendingPopulate(),this.resetPopulatePromise(null),this.reset([],e)}});p.extend=function(){var e=i.c.Collection.extend.apply(this,arguments);return e.prototype.cache=new u.a,e},t.a=p},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),a=n.n(i),r=n(19),o=n(18),s=n(25),l=n(69),c=n(41),u=n(1987),d=n(95),p=n(111),h=n(426),f=n(612),v=s.a.extend({name:"HubCollection",
context:["server","provider","section","identifier","hubKey","hubCount","count","includeEmpty","libraryHubsOnly","includeFeaturedTags","includeLibraryPlaylists","includeTypeFirst","includeStations","includeExternalMetadata","asyncAugmentMetadata","excludes","excludeFields","excludeElements","allowSync","maxLength","wait"],responseContext:["identifier","allowSync"],model:f.a,responseType:function(){return Object(d.a)(this.server)},url:function(){var e="/hubs"
;this.hubKey?e=this.hubKey:this.section&&(e="/hubs/sections/"+encodeURIComponent(this.section.id));var t={excludeFields:this.excludeFields||"summary"};return this.excludeElements&&(t.excludeElements=this.excludeElements),this.count&&(t.count=this.count+1),this.hubCount&&(t.hubCount=this.hubCount),this.includeEmpty&&(t.includeEmpty=1),this.libraryHubsOnly&&(t.libraryHubsOnly=1),this.includeFeaturedTags&&(t.includeFeaturedTags=1),this.includeLibraryPlaylists&&(t.includeLibraryPlaylists=1),
this.includeTypeFirst&&(t.includeTypeFirst=1),this.includeStations&&(t.includeStations=1),this.includeExternalMetadata&&(t.includeExternalMetadata=1),this.asyncAugmentMetadata&&(t.asyncAugmentMetadata=1),this.wait&&(t.wait=1),this.excludes&&this.excludes.length&&this.excludes.forEach(function(e){t["exclude"+Object(h.a)(e)]=1}),o.join(e,t)},initialize:function(){this.section&&this.listenTo(r.a,"clear:sections:hubs",this.clear)},fetch:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.a.clone(e);return e.onlyTransient&&this.populatePromise&&(t.remove=!1,t.url=o.join(a.a.result(this,"url"),{onlyTransient:1})),s.a.prototype.fetch.call(this,t)},augmentResponseText:function(e,t){return t===l.a.xml?Object(p.b)(e):e},augmentResponse:function(e){var t=this,n=this.model.prototype.rootPropertyName;if(e&&n){if(Array.isArray(e)){var i;i={},i[n]=e,e=i}else if(e[n]&&!Array.isArray(e[n])){var a;a={},a[n]=[e[n]],e=a}
var r=e[n],o=r&&r.length;if(this.includeTypeFirst){var s=Object(u.a)(),l=r&&r.some(function(e){return e.hubIdentifier===s.hubIdentifier});if((e.identifier===c.g||e.identifier===c.h)&&!l)if(r){var d=0===r.length?0:1;e.Hub.splice(d,0,s)}else e[n]=[s]}if(o){if(!this.includeEmpty)for(;o&&o--;)r[o].size<=0&&r.splice(o,1);this.maxLength&&r.splice(this.maxLength),e.size>r.length&&(e.size=String(r.length)),this.count&&r.forEach(function(e){
e.more&&e.size>t.count&&(e.Metadata.splice(t.count,e.size-t.count),e.size=t.count)})}}return this.responseContext.forEach(function(n){var i=e[n];void 0!==i&&t.setContext(n,i)}),e}});t.default=v},function(e,t,n){"use strict";var i=n(623),a=n(822),r=n(431),o=r.a.extend({background:!0,setup:function(e){this.minSize=!0,this.type=e.type,this.modelAttribute=e.modelAttribute||"thumb",
!1!==e.placeholder&&(this.model&&this.model.get("isFolder")?this.placeholderClass=i.a.folder:e.placeholderClass||(this.placeholderClass=i.a[this.type])),r.a.prototype.setup.apply(this,arguments)},setDimensions:function(e){e.width?e.height=a.a.getPosterHeight(this.type,e.width):e.height&&(e.width=a.a.getPosterWidth(this.type,e.height)),r.a.prototype.setDimensions.call(this,e)},setModel:function(e,t){r.a.prototype.setModel.apply(this,arguments),
this.model&&this.model.get("isFolder")&&(this.placeholderClass=i.a.folder)}});t.a=o},function(e,t,n){"use strict";function i(e){var t=e.key,n=e.actionSuffix,i=e.fetchActionType,o=e.getModel,s=Object(r.a)(n||t),l=Object(a.a)(t),c="is"+l+"Populated";return function(e,t,n){o(e,t).get(c)||n({type:i||"FETCH_"+s,payload:t})}}t.a=i;var a=(n(37),n(426)),r=n(2148)},function(e,t,n){"use strict";function i(e,t){if(!e)return t;var n=a.a.parseXML(e.responseText);return n&&n.message?n.message:t}t.a=i
;var a=n(74)},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;var n=r()(e),i=r()(t);if(n.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!a.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;return!0}t.a=i;var a=n(59),r=n.n(a)},,,,function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(10),b=n.n(y),I=n(52),S=n(2944),M=n.n(S),D=function(e){
function t(){var n,i,a;u()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=p()(this,e.call.apply(e,[this].concat(o))),i.onChange=function(e){i.props.onChange(e.target.value)},a=n,p()(i,a)}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,s=e.size,c=e.name,u=(e.initialValue,e.value),d=e.values,p=e.hasError,h=(e.errors,e.validations,
l()(e,["className","errorClassName","disabledClassName","isDisabled","size","name","initialValue","value","values","hasError","errors","validations"]));return o()("div",{className:(t||"")+" "+(M.a[s]||"")+" "+(r&&i||"")+" "+(p&&n||""||"")},void 0,m.a.createElement("select",a()({},h,{disabled:r,className:M.a.select,id:c,name:c,value:u,onChange:this.onChange}),d.map(function(e){if(b.a.isString(e))return o()("option",{value:e},e,e);var t=b.a.keys(e),n=t[0];return o()("option",{value:n},n,e[n])})))
},t}(g.Component);D.defaultProps={className:M.a.input,errorClassName:M.a.hasError,disabledClassName:M.a.isDisabled,isDisabled:!1,size:I.LARGE,hasError:!1},t.a=D},function(e,t,n){"use strict";function i(e){var t=o[e]||Object(a.createSelector)(r.a,function(t){return!!t[e]});return o[e]=t,t}var a=n(4),r=(n.n(a),n(204)),o={};t.a=i},function(e,t,n){"use strict";function i(e){return e.ui.authCodeExchange}t.a=i},function(e,t,n){"use strict";function i(e){return r()("h2",{className:e.className
},void 0,e.children)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3258)),c=n.n(l);i.defaultProps={className:c.a.header},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.metricsPage,a=e.metricsPane;return r()(l.a,{metricsPage:i,metricsProperties:{pane:a}},void 0,r()("div",{className:n},void 0,t))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(92)),c=n(3259),u=n.n(c);i.defaultProps={className:u.a.content},t.a=i},function(e,t,n){"use strict"
;function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(d.c)("metrics").trackClick(o()({page:n,action:e,type:t.get("type")},i))}n.d(t,"a",function(){return D}),n.d(t,"e",function(){return C}),n.d(t,"g",function(){return j}),n.d(t,"d",function(){return P}),n.d(t,"c",function(){return O}),n.d(t,"f",function(){return T}),n.d(t,"b",function(){return E})
;var a,r=n(6),o=n.n(r),s=n(13),l=n.n(s),c=n(40),u=n(18),d=n(16),p=n(270),h=n(64),f=n(3377),v=n(123),g=n(1465),m=n(86),y=n(41),b=n(38),I=n(45),S=n(70),M=n(3),D="metadata/repopulateMetadataItem",C=Object(c.a)("metadata/selectMetadataItemStream"),j=Object(c.a)("metadata/updateMetadataItemFollowMute"),P=Object(c.a)(D),O=Object(c.a)("metadata/removeMetadataItem"),T=Object(c.a)("metadata/toggleMetadataItemSave"),E=(a={},a[D]=function(e,t){var n=Object(S.m)(e,t);n&&n.fetch({data:{skipRefresh:1},
usePopulatedParams:!0})},a["metadata/removeMetadataItem"]=function(e,t){var n=Object(S.m)(e,t);n&&n.trigger("destroy",n,n.collection)},a["metadata/selectMetadataItemStream"]=function(e,t,n){var i=t.mediaIndex,a=t.streamTypeString,r=t.streamID,o=t.allParts,s=t.metricsPage,l=Object(S.e)(e,t),c={mediaIndex:i,streamTypeString:a,streamID:r,allParts:o,allowMetrics:!!s,metricsProperties:{page:s}};Object(f.a)(l,c).fail(function(e){
e.aborting||n(Object(v.d)(Object(M.default)("There was a problem selecting this stream.")))})},a["metadata/updateMetadataItemFollowMute"]=function(e,t){var n=t.ratingKey,a=t.actionID,r=t.tagElement,s=t.value,c=Object(S.i)(e,t),d=Object(S.e)(e,t),f=void 0,v=d.get(r),y=v.find(function(e){return e.ratingKey===n}),b=o()({},y);a===p.b.FOLLOW&&(b.followed=s,b.muted=s&&y.muted?!y.muted:y.muted,f=m.u),a===p.b.MUTE&&(b.muted=s,b.followed=s&&y.followed?!y.followed:y.followed,f=m.C)
;var I=Object(g.a)(v,y,b),M=c.get("features").get(h.b.ACTIONS).get("actions").get(a),D=s?M.get("key"):M.get("reverseKey"),C=u.join(D,{ratingKey:n});d.set(r,I);var j=c.getXHROptions(C,{type:"PUT"});l.a.ajax(j).then(null,function(){d.set(r,v)}),i(f,d,t.metricsPage,{identifier:c.get("metricsIdentifier"),context:y.tag,value:s})},a["metadata/toggleMetadataItemSave"]=function(e,t,n){
var i=Object(S.i)(e,t),a=Object(S.e)(e,t),r=i.get("identifier"),o=r===y.e||r===y.f,s=a.get("ratingKey"),c=a.get("grandparentRatingKey"),d=void 0;if(c&&!o){s=c;var p=a.get("grandparentKey");if(p){var f=Object(b.a)(I.g,p,t.serverEntityID);d=Object(S.m)(e,{metadataItemEntityID:f})}}var g=a.get("saved"),m=!g;a.set("saved",m),d&&d.set("saved",m);var M=i.get("features").get(h.b.ACTIONS).get("actions").get("save"),D=m?M.get("key"):M.get("reverseKey"),C=u.join(D,{ratingKey:s}),j=i.getXHROptions(C,{
type:"PUT"});l.a.ajax(j).then(function(){n(Object(v.c)({serverEntityID:t.serverEntityID}))},function(){a.set("saved",g),d&&d.set("saved",g)})},a)},function(e,t,n){"use strict";function i(e){return e.thumb||e.parentThumb||e.grandparentThumb}function a(e){return e.art||e.parentArt||e.grandparentArt}function r(e,t,n,r){if(r)switch(r){case c.i:switch(t){case s.b:switch(e){case l.l:return n.thumb||n.grandparentThumb}}switch(e){case l.j:case l.e:case l.a:case l.l:return n.thumb}break;case c.a:
case c.d:switch(e){case l.f:return a(n);case l.e:return a(n)||n.thumb}break;case c.f:switch(e){case l.f:return a(n);case l.e:return n.thumb||a(n)}break;case c.h:case c.g:switch(e){case l.e:return n.thumb}}switch(t){case s.b:switch(e){case l.k:return n.thumb;case l.l:return n.grandparentThumb||n.thumb}break;case s.c:switch(e){case l.e:return n.thumb}}switch(e){case l.f:case l.k:return n.thumb;case l.j:return i(n);case l.e:return n.grandparentThumb;case l.b:return n.thumb;case l.a:case l.l:
return i(n);case l.g:case l.h:case l.c:return n.thumb;case l.i:return n.thumb||n.composite;default:return n.thumb}}function o(e,t,n,i,a,o){var s=null==e?Object(u.e)(t,n,i,o):e,l=null==t?Object(u.d)(e,n,i,o):t;return{url:r(n,i,a,o),width:s,height:l}}t.b=r,t.a=o;var s=n(106),l=n(27),c=n(33),u=n(130)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(o.a,Object(r.a)("providerEntityID"),function(e,t){return e[t]})}t.a=i;var a=n(4),r=(n.n(a),n(153)),o=(n(178),n(136))
},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.activeType},function(e,t){return t.typeKey},l.a,function(e,t,n){var i=void 0;return t?i=o.a.find(n,function(e){return e.key===t}):e&&(i=o.a.find(n,function(t){var n=Object(s.r)(t.type),i=Object(s.r)(e);return!!n&&!!i&&n.id===i.id})),i||(i=o.a.first(n)),i})}t.a=i;var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(27),l=n(331)},,function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(78),l=n(32),c=n(18),u=n(16),d=n(1137),p=s.a.extend({initialize:function(){o.a.bindAll(this,"onAjaxSend","onAjaxComplete"),this.requests=[],this.byId={}},startListening:function(){var e=a()(document);e.on("ajaxSend",this.onAjaxSend),e.on("ajaxComplete",this.onAjaxComplete)},stopListening:function(){var e=a()(document);e.off("ajaxSend",this.onAjaxSend),e.off("ajaxComplete",this.onAjaxComplete)},abortAll:function(e){
for(var t=this.requests.length-1;t>-1;t--){var n=this.requests[t];null!=e&&e!==n.settings.scope||this.abort(n)}},abort:function(e){var t=o.a.isString(e)?this.byId[e]:e;t&&(t.xhr.aborting=!0,t.xhr.abort(),this.remove(t))},store:function(e,t){var n=o.a.uniqueId("r");e.rid=n;var i={xhr:e,settings:t};return this.requests.push(i),this.byId[n]=i,i},remove:function(e){var t=o.a.indexOf(this.requests,e);t>-1&&this.requests.splice(t,1),this.byId.hasOwnProperty(e.xhr.rid)&&delete this.byId[e.xhr.rid]},
onAjaxSend:function(e,t,n){var i=this;if(!n.skipCorsWithRedirect){var a=this.store(t,n);t.always(function(){t.aborting||i.remove(a)})}},onAjaxComplete:function(e,t,n){var i=Object(d.a)(t);if(!t.aborting&&i){var a=Object(c.parseUrl)(n.url);if(!i||"/log"!==a.pathname){var r=Object(u.c)("appModel").get("servers").find(function(e){var t=e.get("activeConnection"),i=t&&t.get("isConnected"),a=o.a.result(t,"url");return!!i&&0===n.url.indexOf(a)})
;r&&(Object(l.a)('[Connections] Active connection to "%s" lost authorization',r.get("debugName")),r.trigger("error:connection",r))}}}});t.a=new p},function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Array.isArray(t[0])?t[0]:t;return r.a.when.apply(r.a,i.map(o.a))}var a=n(13),r=n.n(a),o=n(180);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=[];if(e){var i=r.a.first(e.Part);i&&i.Stream&&n.push.apply(n,r.a.where(i.Stream,t))}
return n}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(87),a=n(10),r=n.n(a),o=n(18),s=n(612),l=n(360),c=n(513),u=n(1167),d=n(27),p={uri:function(e,t){var n=t&&t.items;if(n&&n.length){if(n.length>1)return this.getBatchLibraryMetadataURI(n,t);e||(e=r.a.first(n))}if(e instanceof i.c.Model){if(e.get("isSection"))return this.getSectionURI(e,t);if(e.get("isMetadataList"))return this.getMetadataListURI(e,t);if(e.get("isPlaylist"))return this.getPlaylistURI(e,t)
;if(e.channel)return this.getChannelURI(e,t)}return this.getLibraryMetadataURI(e,t)},getSectionURI:function(e,t){var n,i=r.a.result(e,"url"),a=e.get("currentSubset"),s=e.get("currentFolderKey"),l=e.get("currentType");if("folder"===a.id)n=s||o.join([i,"all"]);else{var c=e.get("items"),u=c.getParams();if(u.type&&delete u.type,u.timelineState&&delete u.timelineState,u.unwatchedLeaves){u[Object(d.q)(e.get("type")).typeString+".unwatched"]=1,delete u.unwatchedLeaves}l&&(u.sourceType=l.id),
n=o.join([i,a.id],u),n=c.replaceSpecialFilterOperators(n)}return this._resolveURI({prefix:"library",parts:[e.get("uuid"),"directory",n]})},getBatchLibraryMetadataURI:function(e,t){var n=this._getSectionInfo(r.a.first(e)),i=r.a.map(e,function(e){return e.get("ratingKey")}),a="/library/metadata/"+i.join(",");return this._resolveURI({prefix:"library",parts:[n.sectionUUID,"directory",a]})},getLibraryMetadataURI:function(e,t){t||(t={});var n,i=this._getSectionInfo(e),a=r.a.result(e,"url")
;return t.excludeSeedItem&&(a=o.join(a,{excludeSeedItem:1})),n=e.models||e.collectionName||e instanceof s.a?"directory":e.get("radio")?"station":"item",this._resolveURI({prefix:"library",parts:[i.sectionUUID,n,a]})},getMetadataListURI:function(e,t){t||(t={});var n=this._getSectionInfo(e);return this._resolveURI({prefix:"library",parts:[n.sectionUUID,"directory",o.join(e.get("containerKey"),{sourceType:t.sourceType})]})},getPlaylistURI:function(e,t){return this._resolveURI({prefix:"playlist",
parts:["",e.get("guid")]})},getChannelURI:function(e,t){t||(t={});var n=r.a.result(e,"url"),i=e.get("items"),a=i&&i.length?"directory":"item";return this._resolveURI({prefix:"channel",parts:[e.channel.get("identifier"),a,n]})},title:function(e,t){var n=t&&t.items;if(n&&n.length){if(n.length>1)return this.getBatchLibraryMetadataTitle(n,t);e=r.a.first(n)}return e.get("isSection")?this.getSectionTitle(e,t):e.get("isMetadataList")?this.getMetadataListTitle(e,t):this.getLibraryMetadataTitle(e,t)},
getSectionTitle:function(e){var t=e.get("title"),n=e.get("currentSubset"),i=e.get("currentFilters");return"all"!==n.id?t+": "+n.get("title"):i.length?t+": "+r.a.flatten(r.a.map(i,function(e){return e.titles})).join(", "):t},getMetadataListTitle:function(e){return e.get("containerTitle")||e.get("title")},getBatchLibraryMetadataTitle:function(e){var t=r.a.map(e,function(e){return e.get("title")});return Object(u.a)(t)},getLibraryMetadataTitle:function(e){
var t=e.get("grandparentTitle")||e.get("parentTitle"),n=e.get("title");if(t&&(n=t+" - "+n),"episode"===e.get("type")){n+=" ("+Object(l.a)({seasonIndex:e.get("parentIndex"),episodeIndex:e.get("index"),date:e.get("originallyAvailableAt"),noLeadingZero:!0,separator:" "})+")"}return n},_resolveURI:function(e){var t=e.parts,n=r.a.map(t,function(e){return e?encodeURIComponent(e):""});return e.prefix+"://"+n.join("/")},_getSectionInfo:function(e){
var t=e.get("librarySectionUUID"),n=e.get("librarySectionID");if(!t||!n){var i=Object(c.a)(e);r.a.isEmpty(i)||(t=i.get("uuid"),n=i.id)}return{sectionUUID:t,sectionID:n}}};t.a=p},,function(e,t,n){"use strict";n.d(t,"b",function(){return r});var i=n(17),a=n(14),r={SCROBBLE:"scrobble",SAVE:"save",ADD_TO_CATALOG:"addToCatalog",FOLLOW:"follow",MUTE:"mute",RATE:"rate"},o=i.a.extend({name:"ProviderActionModel",context:["server","provider"],syncedAttrs:{id:a.a.string,key:a.a.string,reverseKey:a.a.string
}});t.a=o},function(e,t,n){"use strict";function i(e,t){if(Object(a.a)(null!=t,"No `minVersion` supplied to `isVersionOrNewer`. Have you misspelled a constant?"),!e)return!0;for(var n=t.split("."),i=e.split("."),r=0,o=n.length;r<o;r++)if(r<i.length){var s=parseInt(n[r],10),l=parseInt(i[r],10);if(s<l)return!0;if(s>l)return!1}return!0}t.a=i;var a=n(37)},function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"l",function(){return v}),n.d(t,"j",function(){return g}),n.d(t,"d",function(){
return m}),n.d(t,"c",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"e",function(){return I}),n.d(t,"i",function(){return S}),n.d(t,"h",function(){return M}),n.d(t,"f",function(){return D}),n.d(t,"g",function(){return C}),n.d(t,"k",function(){return j})
;var i,a=n(6),r=n.n(a),o=n(40),s=n(32),l=n(355),c=n(2150),u=n(2151),d=n(823),p=n(70),h=n(36),f="user/resetHomeSettings",v=Object(o.a)("user/waitForCloudProviders"),g=Object(o.a)("user/stopWaitingForCloudProviders"),m=Object(o.a)("user/lockUser"),y=Object(o.a)("user/changePreferredServer"),b=Object(o.a)("user/addHomeHubs"),I=Object(o.a)("user/removeHomeHubs"),S=Object(o.a)("user/seedProviderPromotedContent"),M=Object(o.a)("user/seedPreferredServerContent"),D=Object(o.a)("user/reorderHomeHubs"),C=Object(o.a)(f),j=(i={},
i["user/waitForCloudProviders"]=function(e){Object(p.l)(e).set("hasAttemptedPopulateAllProviders",!1)},i["user/stopWaitingForCloudProviders"]=function(e){Object(p.l)(e).set("hasAttemptedPopulateAllProviders",!0)},i["user/lockUser"]=function(e){Object(h.a)(function(){e.get("user").set("lockState",l.a.lockStates.LOCKED)})},i["user/changePreferredServer"]=function(e,t){e.get("experienceSettings").get("homeSettings").set("preferredServerID",t.machineIdentifier),Object(u.a)(e)},
i["user/addHomeHubs"]=function(e,t){var n=e.get("experienceSettings"),i=n.get("homeSettings"),a=t.at,r=t.isUserInitiated,o=t.hubs,l=a>=0?{at:a}:null,d=o.reduce(function(t,n){var i=n.directoryKey,a=n.entityID,r=n.model,o=a?Object(p.a)(e,{hubEntityID:a}):r;return o&&t.push(Object(c.a)({directoryKey:i,hubModel:o})),t},[]);d.length&&(r&&!i.get("hasCustomizations")&&i.set("hasCustomizations",!0),Object(s.a)("[Home] user/addHomeHubs:",t,d),i.get("hubs").add(d,l),Object(u.a)(e))},
i["user/removeHomeHubs"]=function(e,t){var n=e.get("experienceSettings"),i=n.get("homeSettings"),a=t.isUserInitiated,r=t.hubs,o=r.reduce(function(t,n){var i=n.entityID,a=n.homeHubID,r=a;if(i){var o=Object(p.a)(e,{hubEntityID:i});r=o&&d.b(o)}return r&&t.push(r),t},[]);o.length&&(a&&!i.get("hasCustomizations")&&i.set("hasCustomizations",!0),i.get("hubs").remove(o),Object(u.a)(e))},i["user/seedPreferredServerContent"]=function(e,t,n){if(t.hubs.length){
var i=e.get("experienceSettings"),a=i.get("homeSettings"),o=r()({},t);a.get("hasCustomizations")||(o.at=0),n(b(o)),a.set({hasSeededPreferredServerContent:!0}),Object(u.a)(e)}},i["user/seedProviderPromotedContent"]=function(e,t,n){if(t.hubs.length){var i=e.get("experienceSettings"),a=i.get("homeSettings");n(b(t)),a.set({hasSeededProviderPromotedContent:!0}),Object(u.a)(e)}},i["user/reorderHomeHubs"]=function(e,t){
var n=e.get("experienceSettings"),i=n.get("homeSettings"),a=i.get("hubs"),r=t.isUserInitiated,o=t.homeHubIDs,s=o.map(function(e){return a.get(e)});r&&!i.get("hasCustomizations")&&i.set("hasCustomizations",!0),i.get("hubs").reset(s),Object(u.a)(e)},i[f]=function(e,t){e.get("experienceSettings").get("homeSettings").restoreDefaults(),Object(u.a)(e)},i)},,function(e,t,n){"use strict";function i(e){return e.get("ui").get("serverDashboardPage")}n.d(t,"h",function(){return y}),n.d(t,"a",function(){
return b}),n.d(t,"e",function(){return I}),n.d(t,"c",function(){return S}),n.d(t,"g",function(){return M}),n.d(t,"d",function(){return D}),n.d(t,"f",function(){return C}),n.d(t,"j",function(){return j}),n.d(t,"b",function(){return P}),n.d(t,"i",function(){return O})
;var a,r=n(13),o=n.n(r),s=n(40),l=n(250),c=n(36),u=n(3),d=n(27),p=n(1236),h=n(1237),f=n(1238),v=n(71),g=n(2361),m=n(134),y=Object(s.a)("ui/serverDashboardPage/resetServerDashboardPage"),b=Object(s.a)("ui/serverDashboardPage/dismissServerDashboardUpsell"),I=Object(s.a)("ui/serverDashboardPage/fetchServerSessions"),S=Object(s.a)("ui/serverDashboardPage/fetchBandwidthStatistics"),M=Object(s.a)("ui/serverDashboardPage/fetchTopUsers"),D=Object(s.a)("ui/serverDashboardPage/fetchPlayHistory"),C=Object(s.a)("ui/serverDashboardPage/fetchTopPlayed"),j=Object(s.a)("ui/serverDashboardPage/stopServerSession"),P=Object(s.a)("ui/serverDashboardPage/dismissStopServerSessionError"),O=(a={},
a["ui/serverDashboardPage/resetServerDashboardPage"]=function(e){var t=i(e),n=t.get("bandwidthStatistics"),a=t.get("topUsers"),r=t.get("playHistory"),o=t.get("topPlayedMovies"),s=t.get("topPlayedTV"),l=t.get("topPlayedMusic");n&&(n.abortPendingPopulate(),n.resetPopulatePromise(null)),a&&(a.abortPendingPopulate(),a.resetPopulatePromise(null)),r&&(r.abortPendingPopulate(),r.resetPopulatePromise(null)),o&&(o.abortPendingPopulate(),o.resetPopulatePromise(null)),s&&(s.abortPendingPopulate(),
s.resetPopulatePromise(null)),l&&(l.abortPendingPopulate(),l.resetPopulatePromise(null)),t.restoreDefaults()},a["ui/serverDashboardPage/dismissServerDashboardUpsell"]=function(e,t,n){n(Object(v.k)({hasDismissedServerDashboardUpsell:!0}))},a["ui/serverDashboardPage/fetchServerSessions"]=function(e,t,n){Object(m.h)(e,t).get("pmp").get("sessions").fetch()},a["ui/serverDashboardPage/fetchBandwidthStatistics"]=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a=Object(m.h)(e,t),r=n.get("bandwidthStatistics");r&&(r.abortPendingPopulate(),r.resetPopulatePromise(null));var o=new p.a([],{server:a,accountID:t.accountID,deviceID:t.deviceID,timespan:t.timespan,after:t.after,lan:t.lan});Object(c.a)(function(){n.set({isBandwidthStatisticsPending:!0,isBandwidthStatisticsPopulated:!1,bandwidthStatisticsError:null})});var s=Date.now();o.fetch().then(function(e){n.set({bandwidthStatistics:o,
bandwidthStatisticsRequestTimestamp:s,isBandwidthStatisticsPending:!1,isBandwidthStatisticsPopulated:!0})},function(e,t){n.set({bandwidthStatisticsRequestTimestamp:null,isBandwidthStatisticsPending:!1,bandwidthStatisticsError:t.aborting?null:Object(l.a)(t,Object(u.default)("Unable to load statistics"))})})},a["ui/serverDashboardPage/fetchTopUsers"]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a=Object(m.h)(e,t),r=n.get("topUsers")
;r&&(r.abortPendingPopulate(),r.resetPopulatePromise(null));var o=new h.a([],{server:a,accountID:t.accountID,deviceID:t.deviceID,timespan:t.timespan,after:t.after,count:t.count,duration:t.duration});Object(c.a)(function(){n.set({topUsers:o,isTopUsersPending:!0,isTopUsersPopulated:!1,topUsersError:null})}),o.fetch().then(function(e){n.set({isTopUsersPending:!1,isTopUsersPopulated:!0})},function(e,t){n.set({isTopUsersPending:!1,
topUsersError:t.aborting?null:Object(l.a)(t,Object(u.default)("Unable to load statistics"))})})},a["ui/serverDashboardPage/fetchPlayHistory"]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a=Object(m.h)(e,t),r=n.get("playHistory");r&&(r.abortPendingPopulate(),r.resetPopulatePromise(null));var o=new h.a([],{server:a,accountID:t.accountID,deviceID:t.deviceID,timespan:t.timespan,after:t.after,count:t.count,duration:t.duration});Object(c.a)(function(){n.set({
playHistory:o,isPlayHistoryPending:!0,isPlayHistoryPopulated:!1,playHistoryError:null})}),o.fetch().then(function(e){n.set({isPlayHistoryPending:!1,isPlayHistoryPopulated:!0})},function(e,t){n.set({isPlayHistoryPending:!1,playHistoryError:t.aborting?null:Object(l.a)(t,Object(u.default)("Unable to load statistics"))})})},a["ui/serverDashboardPage/fetchTopPlayed"]=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a=Object(m.h)(e,t),r=n.get("topPlayedMovies"),s=n.get("topPlayedTV"),p=n.get("topPlayedMusic");r&&(r.abortPendingPopulate(),r.resetPopulatePromise(null)),s&&(s.abortPendingPopulate(),s.resetPopulatePromise(null)),p&&(p.abortPendingPopulate(),p.resetPopulatePromise(null));var h=new f.a([],{server:a,accountID:t.accountID,type:d.r(d.f).id,viewedAt:t.viewedAt,limit:t.limit}),v=new f.a([],{server:a,accountID:t.accountID,
type:d.r(d.k).id,viewedAt:t.viewedAt,limit:t.limit}),g=new f.a([],{server:a,accountID:t.accountID,type:d.r(d.b).id,viewedAt:t.viewedAt,limit:t.limit});Object(c.a)(function(){n.set({topPlayedMovies:h,topPlayedTV:v,topPlayedMusic:g,isTopPlayedPending:!0,isTopPlayedPopulated:!1,topPlayedError:null})}),o.a.when(h.fetch(),v.fetch(),g.fetch()).then(function(){n.set({isTopPlayedPending:!1,isTopPlayedPopulated:!0})},function(e,t){n.set({isTopPlayedPending:!1,
topPlayedError:t.aborting?null:Object(l.a)(t,Object(u.default)("Unable to load statistics"))})})},a["ui/serverDashboardPage/stopServerSession"]=function(e,t){Object(g.a)(Object(m.i)(e,t),t.message).fail(function(){i(e).set("stopSessionErrorMessage",Object(u.default)("There was a problem stopping playback"))})},a["ui/serverDashboardPage/dismissStopServerSessionError"]=function(e){i(e).set("stopSessionErrorMessage",null)},a)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(438),b=n(20),I=n(233),S=(n(51),n(52)),M=n(2392),D=n.n(M),C=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.arrowClassName,i=e.children,r=e.direction,s=e.kind,c=e.size,u=e.isSelected,d=l()(e,["className","arrowClassName","children","direction","kind","size","isSelected"]),p=c||S.MEDIUM;return m.a.createElement(b.a,a()({className:(t||"")+" "+(D.a[p]||"")+" "+(u&&D.a.isSelected||""||""),"aria-haspopup":!0,kind:s,size:c,isSelected:u},d),i,o()(y.a,{className:(n||"")+" "+(D.a[r]||"")+" "+(D.a[p]||""),direction:r,kind:s,size:p,isSelected:u}))},t}(g.Component)
;C.defaultProps={className:D.a.disclosureArrowButton,arrowClassName:D.a.disclosureArrow,direction:I.DOWN,isSelected:!0},t.a=C},,,,,,,,function(e,t,n){"use strict";function i(e){return o.a.createElement(s.a,e)}var a=n(1),r=(n.n(a),n(0)),o=n.n(r),s=n(553),l=n(26);i.defaultProps={iconComponent:l.a},t.a=i},function(e,t,n){"use strict";function i(){return r()("div",{className:l.a.separator})}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(3143)),l=n.n(s);t.a=i},function(e,t,n){"use strict";function i(e,t){
var n=Object(d.a)(e);return n.set({isBusy:!0}),Object(p.a)(e).then(function(e){var i=e.id,a=e.code,r=e.expiresIn,o=setTimeout(function(){t(y())},1e3*r);n.set({code:a,pinID:i,pinTimeout:o,isBusy:!1})}).fail(function(){n.set({fatalErrorMessage:Object(c.default)("An error occurred"),isBusy:!1})})}n.d(t,"d",function(){return f}),n.d(t,"c",function(){return v}),n.d(t,"e",function(){return g}),n.d(t,"b",function(){return m}),n.d(t,"g",function(){return y}),n.d(t,"f",function(){return b}),
n.d(t,"a",function(){return I});var a,r=n(13),o=n.n(r),s=n(40),l=n(36),c=n(3),u=n(3203),d=n(626),p=n(1441),h=n(1443),f=Object(s.a)("user/authCodeExchange/readStoredPIN"),v=Object(s.a)("user/authCodeExchange/preloadPIN"),g=Object(s.a)("user/authCodeExchange/resetAuthCodeExchange"),m=Object(s.a)("user/authCodeExchange/beginPolling"),y=Object(s.a)("user/authCodeExchange/stopPolling"),b=Object(s.a)("user/authCodeExchange/skipSignIn"),I=(a={},
a["user/authCodeExchange/resetAuthCodeExchange"]=function(e,t,n){var i=Object(d.a)(e);Object(l.a)(function(){i.set({code:null,pinID:null,authToken:null,errorMessage:null})})},a["user/authCodeExchange/readStoredPIN"]=function(e,t,n){var a=Object(d.a)(e),r=a.get("pinIDInitial"),s=r?o.a.Deferred().resolve(r).promise():o.a.Deferred().reject().promise(),l=s.then(function(){return Object(h.a)(e,r).fail(function(){a.set({errorMessage:Object(c.default)("There was an error signing in")})})
}).then(function(e){var t=e.authToken;return t?o.a.Deferred().resolve(t).promise():(a.set({errorMessage:Object(c.default)("There was an error signing in")}),o.a.Deferred().reject().promise())}).then(function(e){a.set({authToken:e})});t.shouldCreatePIN&&l.fail(function(){return i(e,n)})},a["user/authCodeExchange/preloadPIN"]=function(e,t,n){Object(d.a)(e).set({isBusy:!0,code:null,pinID:null}),i(e,n)},a["user/authCodeExchange/beginPolling"]=Object(u.a)(),
a["user/authCodeExchange/stopPolling"]=function(e,t,n){var i=Object(d.a)(e),a=i.get("pinTimeout");a&&clearTimeout(a),i.set({pinID:null,pinTimeout:null,code:null})},a["user/authCodeExchange/skipSignIn"]=function(e,t,n){e.set({skipSignIn:!0})},a)},function(e,t){function n(e,t,n){return e!==t?n.fn(this):n.inverse(this)}e.exports=n},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metricsContext},s.c,o.c,Object(r.a)(),function(e,t,n){
var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};return e&&(a.context=e),{grandparentTitle:i.grandparentTitle,grandparentRoute:Object(c.a)(t,n,i.grandparentKey,a)}})}var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(58),c=n(137),u=n(3492);t.a=Object(l.a)(i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.component,i=e.isSecondary,a=e.isDoubleLine,o=e.isSplitLine,l=s()(e,["className","component","isSecondary","isDoubleLine","isSplitLine"])
;return u.a.createElement(n,r()({className:(t||"")+" "+((a?p.a.doubleLineTitle:p.a.singleLineTitle)||"")+" "+(i&&p.a.isSecondary||"")+" "+(o&&p.a.isSplitLine||""||"")},l))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3653),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose,a=c()(e,["isOpen","metricsProperties","onModalClose"]);return s()(f.a,{isOpen:t,metricsPage:h.I,metricsProperties:n,onModalClose:i
},void 0,p.a.createElement(v.a,r()({},a,{onModalClose:i})))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(30),f=n(114),v=n(3702);t.a=i},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var i="RECORDING_PRIORITY_SUBSCRIPTION",a="PLAY_QUEUE_ITEM",r="PLAYLIST_ITEM",o="ALBUM_ITEM",s="HOME_HUB_ITEM"},function(e,t,n){
"use strict";function i(e){return e.get("ui").get("prePlayPage")}function a(e,t){var n=t.metadataItemEntityID;if(t.containerKeyPattern)return!1;var a=Object(O.h)(e,t),r=i(e),o=r.get("metadataItem");return!(!o||o.server!==a)&&(!n||o.entityID()===n)}function r(e,t,n){var a=i(e),r=a.get("siblingList"),o=a.get("descendantList"),s=a.get("relatedHubs");r&&n(Object(P.h)({metadataListEntityID:r.entityID()})),o&&n(Object(P.h)({metadataListEntityID:o.entityID()})),s&&n(L())}function o(e,t){
var n=Object(O.h)(e,t),a=i(e),r=a.get("metadataItem");if(r&&r.server===n){var o=t.activity.Context;if(o&&o.key===r.get("key")&&(null!=o.exists||null!=o.accessible)){var s=!o.exists||!o.accessible;a.set("isFileUnavailable",s),s&&setTimeout(function(){r.set("isPreFetched",!1)},0)}}}n.d(t,"d",function(){return T}),n.d(t,"c",function(){return E}),n.d(t,"e",function(){return w}),n.d(t,"g",function(){return x}),n.d(t,"a",function(){return N}),n.d(t,"b",function(){return L}),n.d(t,"f",function(){
return R}),n.d(t,"h",function(){return z})
;var s,l=n(6),c=n.n(l),u=n(40),d=n(18),p=n(16),h=n(247),f=n(121),v=n(94),g=n(188),m=n(125),y=n(124),b=n(1504),I=n(260),S=n(116),M=n(123),D=n(1506),C=n(146),j=n(171),P=n(152),O=n(134),T=Object(u.a)("INIT_PRE_PLAY_PAGE"),E=Object(u.a)("INIT_PRE_PLAY_DESCENDANT_LIST"),w=Object(u.a)("INIT_PRE_PLAY_SIBLING_LIST"),A=Object(u.a)("INIT_PRE_PLAY_AUGMENTED_HUBS"),x=Object(u.a)("PRE_FETCH_PRE_PLAY_METADATA_ITEM"),N=Object(u.a)("FETCH_PRE_PLAY_METADATA_ITEM"),L=Object(u.a)("FETCH_PRE_PLAY_RELATED_HUBS"),k=Object(u.a)("FETCH_PRE_PLAY_AUGMENTED_HUBS"),R=Object(u.a)("MAKE_PRE_PLAY_VIDEO_DECISION"),z=Object(m.a)((s={},
s.INIT_PRE_PLAY_PAGE=function(e,t){var n=i(e),a=Object(O.h)(e,t),r=Object(O.e)(e,t),o=t.providerEntityID,s=t.metadataKey;if(o!==n.get("providerEntityID")||s!==n.get("metadataKey")){var l=new v.a({key:s},{server:a,provider:r}),c=d.join([s.replace(/(\/library)?\/metadata/,"/hubs/metadata"),"related"]),u=new h.default([],{server:a,provider:r,metadataItem:l,hubKey:c,count:12,includeExternalMetadata:!0,asyncAugmentMetadata:!0});n.restoreDefaults({providerEntityID:o,metadataKey:s,metadataItem:l,
siblingKey:n.get("siblingKey"),siblingList:n.get("siblingList"),relatedHubs:u})}},s.INIT_PRE_PLAY_DESCENDANT_LIST=function(e,t){var n=i(e),a=Object(O.h)(e,t),r=Object(O.e)(e,t),o=Object(O.b)(e,t),s=t.providerEntityID,l=t.descendantKey;if(!l)return void n.set({descendantKey:l,descendantList:void 0});if(s!==n.get("providerEntityID")||l!==n.get("descendantKey")){var c=new f.default({containerKey:l},{server:a,provider:r,excludeAllLeaves:!0,
includeRelated:"album"===o.get("type")||"artist"===o.get("type")&&o.get("skipChildren")});n.set({descendantKey:l,descendantList:c})}},s.INIT_PRE_PLAY_SIBLING_LIST=function(e,t){var n=i(e),a=Object(O.h)(e,t),r=Object(O.e)(e,t),o=t.providerEntityID,s=t.siblingKey;if(!s)return void n.set({siblingKey:s,siblingList:void 0});if(o!==n.get("providerEntityID")||s!==n.get("siblingKey")){var l=new f.default({containerKey:s},{server:a,provider:r,excludeAllLeaves:!0});n.set({siblingKey:s,siblingList:l})}},
s.INIT_PRE_PLAY_AUGMENTED_HUBS=function(e,t,n){var a=i(e),r=a.get("metadataItem");if(!r.get("augmentationKey"))return void a.set({isAugmentedHubsPending:!1,isAugmentedHubsPopulated:!0});var o=new h.default([],{server:r.server,provider:r.provider,hubKey:r.get("augmentationKey"),count:12,wait:1});a.set({augmentedHubs:o}),n(k())},s.PRE_FETCH_PRE_PLAY_METADATA_ITEM=function(e,t){var n=Object(O.b)(e,t);Object(b.a)(n,{forceFetch:!0})},s.FETCH_PRE_PLAY_METADATA_ITEM=function(e,t,n){
var a=i(e),r=a.get("metadataItem"),o=a.get("isMetadataItemPending");a.set("isMetadataItemPending",!0),Object(b.a)(r,{forceFetch:!0}).done(function(){a.set({isMetadataItemPending:!1,isMetadataItemPopulated:!0,metadataItemError:null}),n(A())}).fail(function(e,t){if(t.aborting)return void a.set("isMetadataItemPending",o);a.set({isMetadataItemPending:!1,metadataItemError:Object(j.a)(t)})})},s.FETCH_PRE_PLAY_RELATED_HUBS=Object(y.a)({key:"relatedHubs",getModel:i}),
s.FETCH_PRE_PLAY_AUGMENTED_HUBS=Object(y.a)({key:"augmentedHubs",getModel:i}),s.MAKE_PRE_PLAY_VIDEO_DECISION=function(e){var t=i(e),n=t.get("metadataItem"),a=e.get("settings"),r=Object(p.c)("getDecisionOptions")(n),o=D.a.getMediaDecision(c()({item:n,transcodeServer:n.server,quality:C.a.getCurrentQuality(n,a)},r));t.set("decisionMediaItem",o.media)},s[S.c]=function(e,t){t.activity.type===g.a.LIBRARY_REFRESH_ITEMS&&o(e,t)},s[S.b]=function(e,t){t.activity.type===g.a.LIBRARY_REFRESH_ITEMS&&o(e,t)},
s[I.a]=function(e,t,n){a(e,t)&&r(e,t,n)},s[M.a]=function(e,t,n){var o=i(e),s=o.get("metadataItem");if(a(e,t))s.fetch({data:{skipRefresh:1},usePopulatedParams:!0}),r(e,t,n);else{var l=Object(O.h)(e,t),c=o.get("siblingList"),u=t.parentMetadataKey;s&&s.server===l&&c&&u&&s.get("parentKey")===u&&n(Object(P.h)({metadataListEntityID:c.entityID()}))}},s))},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID;return r()(u.a,{
className:p.a.ratingRightTitle},void 0,r()(c.a,{className:p.a.starRating,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(l.a,{className:p.a.criticRating,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1010)),c=n(572),u=n(482),d=n(3978),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){return{isWaitingForPrimaryServer:e.isWaitingForPrimaryServer,primaryServerEntityID:e.primaryServer}}
var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(11),f=n(210),v=n(138),g=n(36),m=n(4129),y=function(e){function t(){return r()(this,t),s()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.machineIdentifier&&e.machineIdentifier!==this.props.machineIdentifier&&this._populate(e)},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;Object(g.a)(function(){e.machineIdentifier&&e.changePrimaryServer({machineIdentifier:e.machineIdentifier,metricsProperties:{context:v.g}})})},t.prototype.render=function(){return p.a.createElement(m.a,this.props)},t}(d.Component);t.a=Object(h.connect)(i,{changePrimaryServer:f.g})(y)},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e,t){return t.providerEntityID},Object(I.a)(),function(e,t){
var n=t.providers,i=t.isProvidersPending,a=t.isProvidersPopulated,r=t.providersError,o=t.pmp,s=o.libraries,l=o.isLibrariesPending,c=o.isLibrariesPopulated,u=o.librariesError,d=t.isPersonalCloudServer,p=!a&&!r,h=!c&&!u,f=e||Object(M.a)(C.PROVIDER,S.d,t.entityID);return{providerEntityID:f,hasProvider:n.indexOf(f)>-1,isPersonalCloudServer:d,isRetrying:i||l,showSpinner:p||h,showError:!!u&&!s.length}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(116)),I=n(35),S=n(41),M=n(38),D=n(36),C=n(232),j=n(1632),P={dispatchFetchLibraries:b.g,dispatchPopulateLibraries:b.k,dispatchFetchProviders:b.h,dispatchPopulateProviders:b.l},O=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),
i.onPopulate=function(e){var t=e.serverEntityID;Object(D.a)(function(){i.props.dispatchPopulateProviders({serverEntityID:t}),i.props.dispatchPopulateLibraries({serverEntityID:t})})},i.onRepopulate=function(e){var t=e.serverEntityID;Object(D.a)(function(){i.props.dispatchFetchProviders({serverEntityID:t}),i.props.dispatchFetchLibraries({serverEntityID:t})})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentWillMount=function(){this.onPopulate({serverEntityID:this.props.serverEntityID})},
t.prototype.componentWillReceiveProps=function(e){e.serverEntityID!==this.props.serverEntityID&&this.onRepopulate({serverEntityID:e.serverEntityID})},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchLibraries,e.dispatchPopulateLibraries,e.dispatchFetchProviders,e.dispatchPopulateProviders,s()(e,["dispatchFetchLibraries","dispatchPopulateLibraries","dispatchFetchProviders","dispatchPopulateProviders"]));return g.a.createElement(j.a,r()({},t,{onRetry:this.onRepopulate}))},t
}(v.Component);t.a=Object(m.connect)(i,P)(O)},function(e,t,n){"use strict";function i(e){if(c===e)return u;var t=e.split("?"),n=t.length>1?t[1]:void 0,i=n?s.parseParams(n):{};return c=e,u={url:t[0],params:i}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.hash,n=i(t);return s.join(n.url,o()({},n.params,{type:void 0,typeKey:e.typeKey,filters:Object(l.a)(e.filters),limit:e.limit,filterLabel:e.filterLabel,customFilter:e.customFilter?1:void 0,sort:e.sort,
folderKey:e.folderKey,folderTitle:e.folderTitle,parentFolderKey:e.parentFolderKey,parentFolderTitle:e.parentFolderTitle,save:1}))}t.a=a;var r=n(6),o=n.n(r),s=n(18),l=n(1657),c=void 0,u=void 0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"initLibraryPage",function(){return r}),n.d(t,"initLibraryPageMetadataList",function(){return o}),n.d(t,"initLibraryPageDirectoryList",function(){return s}),n.d(t,"fetchLibraryDetails",function(){return l}),
n.d(t,"populateLibraryDetails",function(){return c}),n.d(t,"fetchLibraryFirstCharacters",function(){return u}),n.d(t,"populateLibraryFirstCharacters",function(){return d}),n.d(t,"fetchQueryParse",function(){return p}),n.d(t,"populateQueryParse",function(){return h}),n.d(t,"selectLibraryFilter",function(){return f}),n.d(t,"deselectLibraryFilter",function(){return v}),n.d(t,"fetchLibraryFilterOptions",function(){return g}),n.d(t,"populateLibraryFilterOptions",function(){return m}),
n.d(t,"searchLibraryFilterOptions",function(){return y}),n.d(t,"selectLibraryTableColumn",function(){return b}),n.d(t,"deselectLibraryTableColumn",function(){return I});var i=n(40),a=n(126),r=Object(i.a)(a.A),o=Object(i.a)(a.C),s=Object(i.a)(a.B),l=Object(i.a)(a.o),c=Object(i.a)(a.L),u=Object(i.a)(a.q),d=Object(i.a)(a.N),p=Object(i.a)(a.u),h=Object(i.a)(a.R),f=Object(i.a)(a._5),v=Object(i.a)(a.h),g=Object(i.a)(a.p),m=Object(i.a)(a.M),y=Object(i.a)(a._1),b=Object(i.a)(a._6),I=Object(i.a)(a.i)
},,,function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(78),l=n(110),c=s.a.extend({mixins:l.a,initialize:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interface&&(this.interface=t.interface),t.props&&(this.props=t.props),o.a.each(this.interface,function(t){e[t]=o.a.bind(e._proxy,e,t)})},_proxy:function(e){for(var t=this.getInstance(),n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t[e].apply(t,i)},
register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.hasInstance()&&!t.ignorePrevious&&(this._previousInstance=this.getInstance()),this._instance=e,t.silent||this.trigger("change:instance",e)},registerOnce:function(e){if(!this.hasInstance()){var t=e();this.register(t.instance||t,t.options||void 0)}},restorePrevious:function(){this._previousInstance&&this.register(this._previousInstance)},registered:function(){var e=a.a.Deferred()
;return this.hasInstance()?e.resolve(this.getInstance()):this.listenToOnce(this,"change:instance",e.resolve),e.promise()},getInstance:function(){if(this.hasInstance())return this._instance;throw new Error("Nothing has been registered to this adapter.")},hasInstance:function(){return null!=this._instance},prop:function(e){if(o.a.contains(this.props,e))return this.getInstance()[e];throw new Error("The "+e+" property has not been defined for this adapter")}});t.a=c},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(802),o=r.a.extend({maxCycles:5,maxSize:100,getItemCacheKey:function(e,t){if(a.a.isFunction(e.cacheKey))return t||(t=e.toJSON()),e.cacheKey(t)}});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(19),r=n(2075),o=n.n(r),s={success:!0,error:!0,notify:!0},l=i.a.ItemView.extend({className:"alert-bar",template:o.a,events:{"click .close-btn":"onCloseClick"},initialize:function(e){var t=e.alert;if(this.alert=t,t){var n=t.type;n&&s[n]&&this.$el.addClass(n)}},hide:function(){
a.a.trigger("hide:bar","alertbar")},serializeData:function(){return this.alert},onCloseClick:function(e){e.preventDefault(),this.hide()}});t.a=l},function(e,t,n){"use strict";var i={AUTO:"auto",AVOID:"avoid",ALWAYS:"always",NEVER:"never"};i.settings=[{value:i.AUTO,title:"Automatic"},{value:i.AVOID,title:"Only image formats"},{value:i.ALWAYS,title:"Always"}],t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r})
;var i="audio",a="video",r="photo"},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return p});var i,a=n(40),r=n(124),o=n(249),s=n(70),l=Object(a.a)("provider/fetchCloudProviders"),c=Object(a.a)("provider/populateCloudProviders"),u=Object(a.a)("providers/fetchProvider"),d=Object(a.a)("providers/populateProvider"),p=(i={},i["provider/fetchCloudProviders"]=Object(r.a)({
key:"providers",getModel:s.l}),i["provider/populateCloudProviders"]=Object(o.a)({key:"providers",fetchActionType:"provider/fetchCloudProviders",getModel:s.l}),i["providers/fetchProvider"]=Object(r.a)({getModel:s.i}),i["providers/populateProvider"]=Object(o.a)({getModel:s.i,fetchActionType:"providers/fetchProvider"}),i)},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMMM d, yyyy";return e?Object(a.a)(e,t):""}
Object.defineProperty(t,"__esModule",{value:!0});var a=n(170);t.default=i},function(e,t,n){"use strict";var i=n(832),a=n.n(i),r=n(87),o=n(22),s=n(10),l=n.n(s),c=n(19),u=n(16),d=o.a.AppRouter.extend({initialize:function(){this.uniqueRoutes=l.a.uniq(l.a.values(this.appRoutes)),this.fragments=l.a.invert(this.appRoutes),this.listenTo(this,"route",this.onRoute),this.listenTo(c.a,"navigate",this.onNavigate)},resolveUrlFragment:function(e,t){var n=e.match(/:\w+/g);return n&&l.a.each(n,function(n){
var i=n.slice(1),a=t[i];if(null==a){var r=new RegExp("\\([^\\)]*"+n+"[^\\)]*\\)","g");e=e.replace(r,"")}else e=e.replace(n,encodeURIComponent(a))}),e.replace(/\(|\)/g,"")},onRoute:function(e){var t=u.c("appModel"),n=a()(t.get("history")),i=a()(t.get("forwardHistory")),o=r.c.history.getFragment();o===i[0]?n.push(i.shift()):o!==l.a.last(n)&&(n.push(o),i.splice(0)),t.set({history:n,forwardHistory:i})},onNavigate:function(e,t){if(-1!==l.a.indexOf(this.uniqueRoutes,e)){t||(t={});var n=!1
;if(null!=t.silent&&(n=t.silent,delete t.silent),null==t.trigger&&(t.trigger=!0),n)this.controller[e].apply(this.controller,l.a.values(t));else{var i=this.resolveUrlFragment(this.fragments[e],t);this.navigate(i,{trigger:t.trigger,replace:t.replace})}}}});t.a=d},function(e,t,n){"use strict";var i,a=n(13),r=n.n(a),o=n(22),s=n(10),l=n.n(s),c=n(19),u=n(2214),d=n(180),p=n(16),h=n(1205),f=(n(247),n(94)),v=n(355),g=n(265),m=!1,y=o.a.Controller.extend({populateView:function(e){e||(e={}),
!1!==e.showLoading&&c.a.trigger("show:loading",{navigating:!0}),this.abortPendingPopulate();var t={options:e},n=r.a.Deferred().resolve(t).promise(),i=this.populateUser(n,t);return i=this.populateServer(i,e.serverID,t),e.primaryServer&&(i=this.populatePrimaryServer(i,t)),i=this.populateUserFeatures(i,t),e.sectionID&&(i=this.populateSection(e,i,t)),e.key&&(i=this.populateMetadata(e,i,t)),e.channelID&&(i=this.populateChannel(e,i,t)),e.channelKey&&(i=this.populateChannelMetadata(e,i,t)),
this.resolveWithResult(i,t)},resolveWithResult:function(e,t){return e=e.then(function(){return r.a.Deferred().resolve(t).promise()},function(){return m?m=!1:c.a.trigger("navigate","unauthorized",{result:t,silent:!0}),r.a.Deferred().reject(t).promise()}),i=e,e},abortPendingPopulate:function(){i&&"pending"===i.state()&&(m=!0),g.a.abortAll("page")},populateUser:function(e,t){
var n=p.c("appModel"),i=n.get("user"),a=i.get("lockState")===v.a.lockStates.PENDING?i.server.populate():r.a.Deferred().resolve().promise(),o=function(){return i.get("isLocked")?r.a.Deferred().reject(t).promise():r.a.Deferred().resolve(t).promise()};return a.then(o,o)},populateUserFeatures:function(e,t){function n(){if(!a.get("isConnected"))return r.a.Deferred().resolve().promise();var e=o.get("features"),t=!!e.failedPopulatePromise,n=o.get("features").populate({timeout:5e3});return t?void 0:n}
var i=p.c("appModel"),a=i.get("cloudServer"),o=i.get("user");return e.then(function(){return Object(d.a)(n())},function(){return Object(u.a)(n())})},populateServer:function(e,t,n){var i=p.c("appModel");return e=e.then(function(){var e=i.get("servers"),a=void 0;if(!t)return e.populateAnyServer();if(/^transient/.test(t)){var o=i.get("transientServer");if(!o||o.id!==t)return c.a.trigger("navigate:refresh:dashboard"),r.a.Deferred().reject().promise();a=r.a.Deferred().resolve(o).promise()
}else a=e.populateServer(t);return a.done(function(e){n.server=e}),a.fail(function(){n.server=e.get(t)}),a})},populatePrimaryServer:function(e,t){var n=p.c("appModel");return e=e.then(function(){function e(r,o){o||(n.off("change:isWaitingForPrimaryServer",e),a=n.get("primaryServer"),a?(t.server=a,a.populate().done(i.resolve).fail(i.reject)):i.reject())}var i=r.a.Deferred(),a=n.get("primaryServer");return a?(t.server=a,
i.resolve().promise()):n.get("isWaitingForPrimaryServer")?(n.on("change:isWaitingForPrimaryServer",e),i.promise()):i.reject().promise()})},populateSection:function(e,t,n){return t=t.then(function(){var e=n.server.get("sections");return e.find(function(e){return e.isNew()})?e.fetch():e.populate()}),t=t.then(function(t){var i=n.item,a=e.sectionID;if(i&&(!(a=i.get("librarySectionID"))||!n.server.get("isFullServer")))return r.a.Deferred().resolve();var o=t.get(a);return o?(n.section=o,
i&&i.setContext("section",o),r.a.Deferred().resolve(o)):r.a.Deferred().reject()})},populateMetadata:function(e,t,n){return t=t.then(function(){var t=new f.a({key:e.key},{server:n.server,relatedOptions:e.relatedOptions});return n.item=t,t.fetch({scope:"page",data:l.a.extend({checkFiles:"1",includeExtras:"1",includeRelated:"1",includeRelatedCount:"0",includeOnDeck:"1",includeChapters:"1"},e.populateData)})}),t=this.populateSection(e,t,n)},populateChannel:function(e,t,n){return t=t.then(function(){
var t=e.channelID,i={};/^\/\w+\//.test(t)?i.key=t:i.identifier=t;var a=new h.a(i,{server:n.server});return n.channel=a,e.channelKey?r.a.Deferred().resolve().promise():a.fetch({scope:"page"})})},populateChannelMetadata:function(e,t,n){return t=t.then(function(){var t=new h.a({key:e.channelKey},{server:n.server,channel:n.channel});return n.channelItem=t,t.fetch({scope:"page"})})},isReload:function(e){var t=p.c("appModel"),n=t.get("servers").get(e);return n&&n.isPopulated()}});t.a=y
},function(e,t,n){"use strict";function i(e){return e?(0,r.a.find(u,function(t){var n=t[0];return e<=n})[1])(e):""}var a=n(10),r=n.n(a),o=n(2277),s=n(2278),l=n(840),c=n(2279),u=[[54e5,c.a],[864e5,l.a],[6048e5,s.a],[1/0,o.a]];t.a=i},function(e,t,n){"use strict";function i(e,t){var n=r.a.invert(e);return r.a.reduce(e,function(e,i){return e[i]=t[n[i]],e},{})}var a=n(10),r=n.n(a),o=n(78),s={playing:"playing",paused:"paused",stopped:"paused",error:"paused",buffering:"playing"},l=o.a.extend({types:{
VIDEO:"video",MUSIC:"music",PHOTO:"photo"},elements:{VIDEO:"video",MUSIC:"audio",PHOTO:"photo"},streams:{VIDEO:"video",MUSIC:"audio",PHOTO:"photo"},states:{STOPPED:"stopped",PAUSED:"paused",PLAYING:"playing",BUFFERING:"buffering",ERROR:"error"},slideshowStates:{PLAYING:"playing",PAUSED:"paused"},castStates:{ERROR:"IDLE",STOPPED:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING",BUFFERING:"BUFFERING"},mediaStates:{LOADING:"LOADING",BUFFERING:"BUFFERING",READY:"READY",ERROR:"ERROR"},initialize:function(){
this.typeByElement=i(this.elements,this.types),this.elementByType=i(this.types,this.elements),this.typeByStream=i(this.streams,this.types),this.streamByType=i(this.types,this.streams),this.statebyCastState=i(this.castStates,this.states),this.castStateByState=i(this.states,this.castStates)},getTypeByElement:function(e){return this.typeByElement[e]},getElementByType:function(e){return this.elementByType[e]},getTypeByStream:function(e){return this.typeByStream[e]},getStreamByType:function(e){
return this.streamByType[e]},getStateByCastState:function(e){return this.statebyCastState[e]},getCastStateByState:function(e){return this.castStateByState[e]},getSlideshowStateByState:function(e){return s[e]}}),c=new l;t.a=c},function(e,t,n){"use strict";function i(e){if(e<=0||!r.a.isNumber(e))return"0:00";var t=Object(o.c)(e),n=t.seconds,i=t.minutes,a=t.hours+24*t.days,s="";return s=n<10?":0"+n:":"+n,s=i<10&&a>0?"0"+i+s:i+s,a>0&&(s=a+":"+s),s}var a=n(10),r=n.n(a),o=n(433);t.a=i
},function(e,t,n){"use strict";var i=n(312),a=n(530),r=n.n(a),o=n(2380),s=n.n(o),l=Object(i.a)(r.a.slowSpeed),c={appear:s.a.appear,appearActive:s.a.appearActive,enter:s.a.enter,enterActive:s.a.enterActive,leave:s.a.leave,leaveActive:s.a.leaveActive},u={transitionName:c,transitionAppear:!0,transitionAppearTimeout:l,transitionEnterTimeout:l,transitionLeaveTimeout:2*l};t.a=u},function(e,t,n){"use strict";function i(e){var t=parseFloat(e,10),n=e.match(/m?s/);switch(n&&(n=n[0]),n){case"s":
return 1e3*t;case"ms":return t}return 0}t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return!1;var t=Object(a.a)(e);return Object(r.a)(new Date,t)}t.a=i;var a=n(81),r=n(276)},,,,,function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=n.n(d),h=n(0),f=n.n(h),v=n(251),g=(n(37),n(16)),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.page=n.page,a}return u()(t,e),
t.prototype.getChildContext=function(){return{metricsPage:this.page}},t.prototype.componentDidMount=function(){var e=this.props,t=(e.children,e.isDelegated),n=a()(e,["children","isDelegated"]);t||window.requestAnimationFrame(function(){Object(g.c)("metrics").trackView(n)})},t.prototype.componentWillReceiveProps=function(e){},t.prototype.componentDidUpdate=function(e){var t=(e.children,e.isDelegated),n=a()(e,["children","isDelegated"]),i=this.props,r=(i.children,
i.isDelegated),o=a()(i,["children","isDelegated"]),s=t!==r||!Object(v.a)(n,o);!r&&s&&Object(g.c)("metrics").trackView(o)},t.prototype.render=function(){return this.props.children?f.a.Children.only(this.props.children):null},t}(h.Component);m.childContextTypes={metricsPage:p.a.string.isRequired},t.a=m},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e.pmp.activities})}var a=n(4),r=(n.n(a),n(35));t.a=i},function(e,t,n){"use strict"
;function i(e){return s.a.createElement(l.a,r()({},e,{textClassName:h.a.circularProgressBarText}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(1413),c=n(1414),u=n(926),d=n.n(u),p=n(2958),h=n.n(p);i.defaultProps=r()({},l.a.defaultProps,{backgroundClassName:h.a.circularProgressBarBackground,strokeColor:d.a.primaryColor,easing:c.b}),t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return o})
;var i="https://forums.plex.tv",a="https://support.plex.tv",r="https://status.plex.tv",o="https://www.plex.tv/tidal"},function(e,t,n){"use strict";function i(e,t,n){return n.includes(e)?e:n.includes(t)?t:n?n[0]:null}function a(){return Object(o.createSelector)(function(e,t){return t.selectedServerEntityID},function(e){return e.primaryServer},function(e){return e.experienceSettings.showAdvancedSettings},c.a,u.a,s.a,Object(l.a)(d.p),function(e,t,n,a,r,o,s){var l=i(e,t,o);return{
serverMenuServerEntityID:l,manageableServerEntityIDs:o,isPlexCloudVisible:!!r.cpms,isWebhooksVisible:s,isUserSignedIn:a.isSignedIn,isUserUnrestricted:!a.restricted,isServerMenuServerEntityIDSelected:l===e,showAdvancedSettings:n,userTitle:a.title}})}var r=n(11),o=n(4),s=(n.n(o),n(3260)),l=n(256),c=n(162),u=n(957),d=n(79),p=n(3262);t.a=Object(r.connect)(a)(p.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(10)),r=n.n(a),o=Object(i.createSelectorCreator)(i.defaultMemoize,r.a.isEqual);t.a=o
},function(e,t,n){"use strict";function i(e){var t=e.message,n=e.children;return r()("div",{},void 0,r()("p",{className:c.a.sidebarMessage},void 0,t),n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1452)),c=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=Object(j.c)(t);return e.get("ui").get(n+"Player")}function a(e,t){
var n=e.appModel,i=e.serverModel,a=e.providerModel,r=e.playerModel,o=e.playQueueModel,l=e.openState,c=e.mediaIndex,u=e.bitrate,d=e.initialState,p=e.requestOptions;if(!r.get("isPlayQueueLoading")){var h=o.get("type");r.restoreDefaults({serverEntityID:i.entityID(),providerEntityID:a.entityID(),isOpen:!0,openState:l||h===D.a?C.b:C.a,isPlayQueueLoading:!0,playQueue:o}),Object(b.a)(s()({serverModel:i,providerModel:a,playQueueModel:o},p)).done(function(){r.set(s()({isPlayQueueLoading:!1},d)),t(_({
playQueueType:h,mediaIndex:c,bitrate:u}))}).fail(function(){var e=n.get("remotePlayer");if(e){var t=e.get("friendlyName");r.restoreDefaults({hasError:!0,errorMessage:Object(x.default)('An error occurred loading the media being played on "{playerName}".',{playerName:t})})}})}}n.d(t,"a",function(){return z}),n.d(t,"l",function(){return U}),n.d(t,"m",function(){return B}),n.d(t,"k",function(){return F}),n.d(t,"n",function(){return V}),n.d(t,"b",function(){return H}),n.d(t,"j",function(){return Q}),
n.d(t,"g",function(){return Y}),n.d(t,"e",function(){return G}),n.d(t,"f",function(){return W}),n.d(t,"i",function(){return K}),n.d(t,"d",function(){return Z}),n.d(t,"c",function(){return q}),n.d(t,"h",function(){return J})
;var r,o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=n(10),d=n.n(u),p=n(40),h=n(32),f=n(16),v=n(562),g=n(3375),m=n(968),y=n(436),b=n(3376),I=n(434),S=n(260),M=n(843),D=n(303),C=n(212),j=n(107),P=n(41),O=n(90),T=n(146),E=n(618),w=n(969),A=n(70),x=n(3),N=n(63),L=n(27),k=n(159),R=n(947),z=Object(p.a)("ui/player/remotePlayer/changeRemotePlayer"),U=Object(p.a)("ui/player/remotePlayer/syncRemotePlayerCurrentItem"),B=Object(p.a)("ui/player/remotePlayer/syncRemotePlayerState"),F=Object(p.a)("ui/player/remotePlayer/syncRemotePlayQueueState"),_=Object(p.a)("ui/player/remotePlayer/syncRemoteQuality"),V=Object(p.a)("ui/player/remotePlayer/syncRemoteStreams"),H=Object(p.a)("ui/player/remotePlayer/changeRemotePlayerVolume"),Q=Object(p.a)("ui/player/remotePlayer/showRemotePlayerError"),Y=Object(p.a)("ui/player/remotePlayer/mirrorDetails"),G=Object(p.a)("ui/player/remotePlayer/discoverRemotePlayers"),W=Object(p.a)("ui/player/remotePlayer/idleRemotePlayer"),K=Object(p.a)("ui/player/remotePlayer/removeRemotePlayer"),Z=Object(p.a)("ui/player/remotePlayer/confirmRemoteToLocal"),q=Object(p.a)("ui/player/remotePlayer/confirmLocalToRemote"),J=(r={},
r["ui/player/remotePlayer/changeRemotePlayer"]=function(e,t){var n=e.get("companionServer").get("pmp").get("players").get(t);e.set("remotePlayer",n)},r["ui/player/remotePlayer/syncRemotePlayerCurrentItem"]=function(e,t,n){var r=t.playQueueType,o=t.options,s=o.machineIdentifier,l=o.providerIdentifier,u=o.containerKey,d=o.key,p=o.mediaIndex,f=o.bitrate,v=o.playQueueItemID,y=o.shouldRefreshPlayQueue,b=o.initialState;if(u&&d){var S=i(e,r);if(S){
var M=s===O.b,D=!s||M?O.a:s,j=e.get("servers").populateServer(D),T=j.then(function(t){return(t.get("isCloud")?e.get("user").get("pmp").get("providers"):t.get("providers")).populate().then(function(e){return e})}),E=T.then(function(e){var t=e.get(l)||e.get(Object(m.a)(u)?P.d:P.a);return t?t.populate().then(function(e){return e}):c.a.Deferred().reject().promise()}),w=E.then(function(e){return Object(g.a)({providerModel:e,currentPlayQueueModel:S.get("playQueue"),metadataKey:d,containerKey:u,
playQueueOptions:{playQueueType:r,playQueueOwn:!1}})});c.a.when(j,E,w).then(function(t,i,r){if(S.get("playQueue")!==r)return void a({appModel:e,serverModel:t,providerModel:i,playerModel:S,playQueueModel:r,openState:S.get("isOpen")?null:C.b,mediaIndex:p,bitrate:f,initialState:b,requestOptions:{metadataKey:M?t.swizzleNodeUrl(d):d,containerKey:M?t.swizzleNodeUrl(u):u}},n);if(!S.get("isPlayQueueLoading")&&!r.get("isUpdatePending")&&y){
var o=r.get("playQueueItems"),s=null!=v?o.get(v):o.find(function(e){return d===e.get("metadataItem").get("key")});if(S.set({isLyricsVisible:!1}),s){var l=r.get("playQueueSelectedItemID"),c=o.get(l),g=r.get("playQueueSelectedItemOffset"),m=o.indexOf(c),D=o.indexOf(s),j=s.get("metadataItem"),P=s.get("playQueueItemID");Object(h.a)("[Cast] The current metadata item on the remote player changed to "+j.get("title")),Object(I.a)(r).done(function(){r.set({playQueueSelectedItemID:P,
playQueueSelectedItemOffset:g+(D-m)})})}else Object(I.a)(r)}}).fail(function(){var t=e.get("remotePlayer");if(t){var n=t.get("friendlyName");S.restoreDefaults({hasError:!0,errorMessage:Object(x.default)('"{playerName}" is playing media from an unknown source.',{playerName:n})})}})}}},r["ui/player/remotePlayer/syncRemotePlayerState"]=function(e,t){var n=t.playQueueType,a=t.playerState,r=i(e,n);r&&r.get("isOpen")&&r.set(a)},r["ui/player/remotePlayer/syncRemotePlayQueueState"]=function(e,t){
var n=t.playQueueType,a=t.playQueueVersion,r=t.repeatAll,o=t.repeatOne,s=i(e,n);if(s&&s.get("isOpen")){var l=s.get("playQueue");if(s.set({repeatAll:r,repeatOne:o}),l){var c=l.get("playQueueVersion");l.set("repeat",r),!l.get("isUpdatePending")&&c<a&&l.fetch()}}},r["ui/player/remotePlayer/syncRemoteQuality"]=function(e,t){var n=t.playQueueType,a=t.mediaIndex,r=void 0===a?0:a,o=t.bitrate,s=i(e,n);if(s&&s.get("isOpen")&&!s.get("isPlayQueueLoading")){
var l=s.get("playQueue"),c=l.get("playQueueItems"),u=c.get(l.get("playQueueSelectedItemID")),d=u.get("metadataItem"),p=Object(L.r)(u.get("type"));if(p&&p.mediaType===N.d){var h=d.get("Media")[r],f=v.a.prop("video"),g=T.a.getAvailableQualitiesFor(h,d.server,{lowestQualityIndex:f.lowestQualityIndex}),m=e.get("experienceSettings"),y=null==o?m.defaults().localQuality:T.a.getNearestIndexToBitrate(o);if(T.a.isExplicitQuality(y)){var b=g[0],I=g[g.length-1]
;b&&y<b.index?y=b.index:I&&y>I.index&&(y=T.a.ORIGINAL)}s.set({qualityIndex:y,availableQualities:g})}}},r["ui/player/remotePlayer/syncRemoteStreams"]=function(e,t,n){var a=t.playQueueType,r=t.key,o=t.mediaIndex,s=void 0===o?0:o,l=t.partIndex,c=void 0===l?0:l,u=t.audioStreamID,p=t.subtitleStreamID,h=i(e,a);if(h&&h.get("isOpen")&&!h.get("isPlayQueueLoading")){
var f=h.get("playQueue"),v=f.get("playQueueItems"),g=v.get(f.get("playQueueSelectedItemID")),m=g.get("metadataItem"),y=m.get("Media")[s],b=y&&y.Part[c];if(r===m.get("key")&&b){var I=d.a.findWhere(b.Stream,{streamType:k.a.get("audio").id,selected:!0}),M=d.a.findWhere(b.Stream,{streamType:k.a.get("subtitles").id,selected:!0}),D=parseInt(u,10),C=parseInt(p||0,10);null!=u&&I&&I.id!==D&&n(Object(S.e)({metadataItemEntityID:m.entityID(),mediaIndex:s,streamTypeString:"audio",streamID:D})),
M&&M.id!==C&&n(Object(S.e)({metadataItemEntityID:m.entityID(),mediaIndex:s,streamTypeString:"subtitles",streamID:C}))}}},r["ui/player/remotePlayer/changeRemotePlayerVolume"]=function(e,t){e.get("remotePlayer").set("volume",t)},r["ui/player/remotePlayer/showRemotePlayerError"]=function(e,t){var n=t.playQueueType,a=t.errorMessage,r=i(e,n);r&&r.restoreDefaults({hasError:!0,errorMessage:a})},r["ui/player/remotePlayer/mirrorDetails"]=function(e,t){
var n=Object(y.a)(e),i=Object(A.i)(e,t),a=Object(A.e)(e,t);Object(w.a)(Object(E.a)(i.get("identifier"),i.get("providerIdentifier")),Object(R.a)(e.get("user").get("features").getState()))&&n.mirrorDetails(a)},r["ui/player/remotePlayer/discoverRemotePlayers"]=function(e){var t=e.get("companionServer");t&&t.get("pmp").get("players").fetch()},r["ui/player/remotePlayer/idleRemotePlayer"]=function(e,t){i(e,t.playQueueType).restoreDefaults()},r["ui/player/remotePlayer/removeRemotePlayer"]=function(e){
var t=e.get("remotePlayer");if(t){var n=e.get("ui"),i=n.get("audioVideoPlayer"),a=n.get("photoPlayer");i.get("isOpen")&&i.set({confirmRemoteToLocal:!0,controllable:null}),a.get("isOpen")&&a.set({confirmRemoteToLocal:!0,controllable:null});var r=t.get("protocol");r===M.a?Object(f.c)("remoteCastPlayerManager").endSession():r===M.b&&Object(f.c)("remotePlexPlayerManager").endSession(),e.unset("remotePlayer")}},r["ui/player/remotePlayer/confirmRemoteToLocal"]=function(e,t){
var n=t.playerType,i=e.get("ui").get(n+"Player"),a=i.get("playQueue"),r=a.get("playQueueItems"),o=a.get("playQueueSelectedItemID"),s=r.get(o),l=s.get("metadataItem");a.set("own",!0),Object(I.a)(a),i.set({confirmRemoteToLocal:!1,startMetadataItemEntityID:l.entityID(),startOffsetMilliseconds:1e3*i.get("positionSeconds")})},r["ui/player/remotePlayer/confirmLocalToRemote"]=function(e,t){var n=t.playerType,i=e.get("ui").get(n+"Player");Object(y.a)(e).startPlayback(i),i.set("confirmLocalToRemote",!1)
},r)},function(e,t,n){"use strict";function i(e,t,n,i){return Object(_.a)(e,t,n,i)}function a(e,t,n,a){return!!i(e,t,n,a)&&(t.isLibraryProvider&&a.Media&&a.Media.length>1)}function r(e,t,n,a){return!a.radio&&(i(e,t,n,a)&&!!t.features.playqueue)}function o(e,t,n,a){var r=i(e,t,n,a),o=a.isExtra&&a.isPremium;return r&&!!t.features.playqueue&&!o}function s(e,t,n,i){var a=!!n[B.l],r=i.stations&&!!i.stations.length;return a&&r}function l(e,t,n,i){return!!i.primaryExtraKey}function c(e,t,n,i){
return!(!i.related||!i.related.find(function(e){return/similarPlaylist/.test(e)}))}function u(e,t,n,i){return c(e,t,n,i)}function d(e,t,n,i){return p(e,t,n,i)}function p(e,t,n,i){var a=!!i.source||!e.isFullServer,r=t&&t.features&&t.features.playlist,o=!!r&&r.flavor===z.c.UNIVERSAL,s=!a||o,l=i.isExtra&&i.isPremium,c=i.identifier===U.e||i.identifier===U.f,u=(!!i.isLibraryItem||c)&&!l;return s&&u}function h(e,t,n,i){return!!t.features.actions.save&&null!=i.saved}function f(e,t,n,i){
return!(!t.features.actions.rate||!n[B.i])&&(!H.u(i.type)&&!Object(F.c)(i))}function v(e,t,n,i){return!(!t.features.actions.rate||!n[B.i])&&(!H.u(i.type)&&Object(F.c)(i))}function g(e,t,n,i){return!(!(t.features.actions&&t.features.actions.scrobble&&t.features.actions.scrobble.key)||t.protocols.livetv||i.type===H.l&&i.subtype!==V.b||null!=i.saved&&!i.saved&&!i.viewOffset||i.isExtra)&&(H.v(i.type)?i.unviewedLeafCount>0:!i.viewCount||!!i.viewOffset)}function m(e,t,n,i){
return!(!(t.features.actions&&t.features.actions.scrobble&&t.features.actions.scrobble.reverseKey)||t.protocols.livetv||i.type===H.l&&i.subtype!==V.b||null!=i.saved&&!i.saved||i.isExtra)&&(H.v(i.type)?i.viewedLeafCount>0:!!i.viewCount||!!i.viewOffset)}function y(e,t,n,i){var a=i.preferences;return!t.features.manage&&null!=a}function b(e,t,n,i){var a=i.isLibraryItem,r=i.isPlaylist,o=i.isExtra,s=i.isFolder,l=i.radio,c=i.readOnly,u=i.source,d=a&&!o&&!s&&!l&&!u;return r?!c:!(!t.features.manage||!d)}
function I(e,t,n,i){return b(e,t,n,i)}function S(e,t,n,i){return b(e,t,n,i)}function M(e,t,n,i){return!!b(e,t,n,i)&&!(!i.guid||/(local|none)\:\/\//.test(i.guid))}function D(e,t,n,i){return!!b(e,t,n,i)&&(!!i.guid&&!M(e,t,n,i))}function C(e,t,n,i){return M(e,t,n,i)}function j(e,t,n,i){if(!b(e,t,n,i))return!1;var a=void 0;return a=H.v(i.type)?i.Location:k.a.filter(i.Media,function(e){return!e.proxyType}),a.length>1}function P(e,t,n,i){if(!e.isFullServer)return!1
;var a=i.allowSync,r=i.isExtra,o=i.isLibraryItem,s=i.isPlaylist,l=i.source;return!(r||l||!o&&!s)&&!(!e.allowSync||!a)}function O(e,t,n,i){return!!b(e,t,n,i)&&!(!e.transcoderVideo||!e.backgroundProcessing)}function T(e,t,n,i){return!!t.protocols.download&&!i.isExtra&&!i.source}function E(e,t,n,i){return!!b(e,t,n,i)&&!(!i.isPlaylist&&i.type!==H.d&&!e.allowMediaDeletion)}function w(e,t,n,i){return!!b(e,t,n,i)&&(!!e.allowMediaDeletion&&k.a.filter(i.Media,function(e){return!!e.proxyType}).length>0)}
function A(e,t,n,i){return t.isLibraryProvider&&!i.isExtra}function x(e,t,n,i){return!i.source&&!i.radio&&(t.isLibraryProvider&&!i.isFolder)}function N(e,t,n,i,a){var r=a&&Y[a]?a:i.type,o=Y[r];return o?o.reduce(function(a,o){var s=Q[o];return Object(R.a)(k.a.isFunction(s),"getMetadataActionProps: Invalid action, "+o+", for "+r),a[o]=s(e,t,n,i),a},{}):{}}t.j=i,t.k=o,t.a=d,t.b=p,t.f=f,t.o=v,t.g=g,t.h=m,t.e=b,t.l=I,t.c=S,t.n=P,t.i=O,t.d=E,t.m=x,t.p=N
;var L=n(10),k=n.n(L),R=n(37),z=n(64),U=n(41),B=n(79),F=n(703),_=n(1480),V=n(106),H=n(27),Q={showPlay:i,showPlayVersion:a,showPlayAll:i,showShuffle:r,showQueue:o,showPlayTrailer:l,showPlayPlexMix:c,showQueuePlexMix:u,showPlayMusicVideo:l,showPlayRadio:s,showAddToAlbum:d,showAddToPlaylist:p,showAddToSaved:h,showFavorite:f,showUnfavorite:v,showMarkPlayed:g,showMarkUnplayed:m,showSettings:y,showEdit:b,showRefresh:I,showAnalyze:S,showFixMatch:M,showMatch:D,showUnmatch:C,showSplitApart:j,showSync:P,
showOptimize:O,showDownload:T,showDelete:E,showDeleteVersion:w,showGetInfo:A,showSelect:x},Y={movie:["showPlay","showPlayVersion","showQueue","showPlayTrailer","showAddToPlaylist","showMarkPlayed","showMarkUnplayed","showEdit","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDownload","showDelete","showDeleteVersion","showGetInfo","showSelect"],
show:["showPlay","showPlayAll","showShuffle","showQueue","showPlayTrailer","showAddToPlaylist","showAddToSaved","showMarkPlayed","showMarkUnplayed","showEdit","showSettings","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDelete","showSelect"],
season:["showPlay","showPlayAll","showShuffle","showQueue","showAddToPlaylist","showMarkPlayed","showMarkUnplayed","showEdit","showAnalyze","showSync","showOptimize","showDelete","showSelect"],episode:["showPlay","showPlayVersion","showQueue","showAddToPlaylist","showMarkPlayed","showMarkUnplayed","showEdit","showRefresh","showAnalyze","showSync","showOptimize","showDownload","showDelete","showDeleteVersion","showGetInfo","showSelect"],
artist:["showPlay","showShuffle","showPlayRadio","showQueue","showAddToPlaylist","showAddToSaved","showEdit","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showDelete","showSelect"],album:["showPlay","showShuffle","showQueue","showAddToPlaylist","showAddToSaved","showEdit","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showDelete","showSelect"],
track:["showPlay","showQueue","showPlayPlexMix","showQueuePlexMix","showPlayMusicVideo","showAddToPlaylist","showAddToSaved","showMarkPlayed","showMarkUnplayed","showEdit","showAnalyze","showSync","showDownload","showDelete","showGetInfo","showSelect"],photoalbum:["showPlay","showShuffle","showAddToAlbum","showEdit","showAnalyze","showSync","showSelect"],
photo:["showPlay","showAddToAlbum","showFavorite","showUnfavorite","showEdit","showAnalyze","showSync","showDownload","showDelete","showGetInfo","showSelect"],clip:["showPlay","showPlayVersion","showQueue","showPlayTrailer","showAddToPlaylist","showAddToSaved","showMarkPlayed","showMarkUnplayed","showEdit","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDownload","showDelete","showDeleteVersion","showGetInfo","showSelect"],
playlist:["showDelete","showEdit","showPlay","showQueue","showShuffle","showAddToSaved","showSync","showSelect","showEdit"],collection:["showPlay","showQueue","showShuffle","showAddToPlaylist","showEdit","showSync","showDelete"]}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.component,a=e.width,o=e.height,l=e.url,u=c()(e,["className","children","component","width","height","url"]);return s()("div",{className:t,style:{width:a,height:o}
},void 0,p.a.createElement(i,r()({width:a,height:o,url:l},u)),n)}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(3488),f=n.n(h);i.defaultProps={className:f.a.card},t.a=i},,function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metricsContext},s.a,o.a,Object(r.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};e&&(a.context=e);var r=i.skipParent&&i.subtype===l.c;return{
title:i.title,index:i.index,route:Object(u.a)(t,n,i.key,a),parentTitle:i.parentTitle,parentIndex:r?null:i.parentIndex,parentRoute:i.skipParent?null:Object(u.a)(t,n,i.parentKey,a),originallyAvailableAt:i.originallyAvailableAt}})}var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(106),c=n(58),u=n(137),d=n(1005);t.a=Object(c.a)(i)(d.a)},function(e,t,n){"use strict";function i(){return r()(u.a,{title:Object(l.default)("You must be lost"),
description:Object(l.default)("We can't find the page you're looking for")},void 0,r()(s.a,{to:"#",kind:c.b.PRIMARY},void 0,Object(l.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(20)),l=n(3),c=n(24),u=n(127);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.ui.libraryPage.details;return t?t.types:void 0}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=s()(e,["children"]);return u.a.createElement(p.a,r()({className:f.a.innerEmptyPage,
contentClassName:f.a.innerEmptyPageContent,scrollDirection:d.NONE},n),t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(57),p=n(203),h=n(1569),f=n.n(h);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="boolean",a="other"},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(Object(I.a)(),function(e){return e?{isProvidersPopulated:!0,hasProvider:!0,isPersonalCloudServer:!1,
isPersonalCloudProvider:!1,providerEntityID:e.entityID,isRetrying:!!e.isPending,showSpinner:!e.isPopulated&&!e.error,showError:!!e.error}:{isProvidersPopulated:!1,isPersonalCloudServer:!1,isPersonalCloudProvider:!1,hasProvider:!1,isRetrying:!0,showSpinner:!0,showError:!1}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(304)),I=n(54),S=n(36),M=n(1632),D={dispatchFetchProvider:b.b,
dispatchPopulateProvider:b.d},C=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onPopulate=function(e){var t=(e.serverEntityID,e.providerEntityID);Object(S.a)(function(){i.props.dispatchPopulateProvider({providerEntityID:t,options:{merge:!0}})})},i.onRepopulate=function(e){var t=(e.serverEntityID,e.providerEntityID);Object(S.a)(function(){i.props.dispatchFetchProvider({
providerEntityID:t,options:{merge:!0}})})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){this.props.isProvidersPopulated&&this.onPopulate({providerEntityID:this.props.providerEntityID})},t.prototype.componentWillReceiveProps=function(e){e.providerEntityID===this.props.providerEntityID&&e.isProvidersPopulated===this.props.isProvidersPopulated||this.onRepopulate({providerEntityID:e.providerEntityID})},t.prototype.render=function(){
var e=this.props,t=(e.dispatchFetchProvider,e.dispatchPopulateProvider,s()(e,["dispatchFetchProvider","dispatchPopulateProvider"]));return g.a.createElement(M.a,r()({},t,{onRetry:this.onRepopulate}))},t}(v.Component);t.a=Object(m.connect)(i,D)(C)},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.closedNode,i=e.title,a=e.errorMessage,o=e.isDirty,s=e.isOpen,p=e.isUpdating,g=e.showButton,m=e.showSpinner,I=e.onFormChange,S=e.onSubmit,M=e.onTogglePress;return r()(f.a,{isOpen:s,
errorMessage:a,closedNode:r()(v.a,{className:y.a.sectionDetails},void 0,r()(c.a,{className:y.a.label},void 0,i),n),onTogglePress:M},void 0,m&&r()(c.a,{className:y.a.label},void 0,i),m&&r()("div",{className:y.a.spinnerContainer},void 0,b),!m&&g&&r()(l.b,{onSubmit:S,onChange:I},void 0,t,r()("div",{className:y.a.submitButton},void 0,r()(h.a,{type:"submit",isDisabled:!o,isSpinning:p,kind:u.PRIMARY},void 0,Object(d.default)("Save Changes")))),!m&&!g&&t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(186)),c=n(149),u=n(51),d=n(3),p=n(31),h=n(139),f=n(1701),v=n(1065),g=n(1054),m=n(4385),y=n.n(m),b=r()(p.a,{});i.defaultProps={showButton:!0},t.a=Object(g.a)(i,{isUpdatingPropName:"isUpdating",errorPropName:"errorMessage",clearDirtyOnChangePropName:"isOpen"})},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e){return e.isWaitingForServers},Object(d.a)(),function(e,t){return t?{hasServer:!0,
showSpinner:!t.isConnected&&!t.isUnauthorized&&!t.isUnavailable,machineIdentifier:t.machineIdentifier,friendlyName:t.friendlyName,isUnauthorized:t.isUnauthorized,isUnavailable:t.isUnavailable,isInstallingServerUpdate:t.isInstallingServerUpdate,hasHttpsConnections:t.hasHttpsConnections,isHostedHttps:u.a.isHostedHttps}:{hasServer:!1,showSpinner:e}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(101)),d=n(35),p=n(4391),h=Object(l.connect)(i)(p.a);h.propTypes=r()({},h.propTypes,{
serverEntityID:s.a.string.isRequired}),t.a=h},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(S.a,I.a,Object(b.a)(),function(e,t,n){return{machineIdentifier:e.machineIdentifier,provider:t,hasProviderSettings:!!(t.features.settings&&t.features.settings.settings.length>0),hasLibraryActions:e.isFullOwnedServer&&t.isLibraryProvider,hasDVRActions:e.isFullOwnedServer&&M.c.test(t.identifier),isGuideRefreshing:!!n}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=n.n(f),g=n(0),m=n.n(g),y=n(4),b=(n.n(y),n(239)),I=n(39),S=n(53),M=n(41),D=n(58),C=n(1053),j=n(202),P=n(682),O=(n(105),n(99),n(4401)),T={dispatchScanLibraryFiles:C.f,dispatchCancelScanLibraryFiles:C.b,dispatchShareLibraries:j.n,dispatchEditLibrary:C.d,dispatchReloadGuide:P.e,dispatchCancelReloadGuide:P.a},E=function(e){function t(){var n,i,a;c()(this,t)
;for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onScanLibraryPress=function(){i.props.dispatchScanLibraryFiles({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,contentDirectory:i.props.sourceDirectory,metricsPage:i.props.metricsPage})},i.onCancelScanLibraryPress=function(){i.props.dispatchCancelScanLibraryFiles({serverEntityID:i.props.serverEntityID,
providerEntityID:i.props.providerEntityID,contentDirectory:i.props.sourceDirectory,metricsPage:i.props.metricsPage})},i.onSharePress=function(){i.props.dispatchShareLibraries({serverEntityID:i.props.serverEntityID,metricsPage:i.props.metricsPage})},i.onEditLibraryPress=function(){i.props.dispatchEditLibrary({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,contentDirectory:i.props.sourceDirectory,metricsPage:i.props.metricsPage})},i.onRefreshGuidePress=function(){
i.props.dispatchReloadGuide({serverEntityID:i.props.serverEntityID,dvrID:i.props.provider.parentID,metricsPage:i.props.metricsPage})},i.onCancelRefreshGuidePress=function(){i.props.dispatchCancelReloadGuide({serverEntityID:i.props.serverEntityID,dvrID:i.props.provider.parentID,metricsPage:i.props.metricsPage})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=(e.metricsPage,e.dispatchScanLibraryFiles,e.dispatchCancelScanLibraryFiles,e.dispatchShareLibraries,
e.dispatchEditLibrary,e.dispatchReloadGuide,e.dispatchCancelReloadGuide,s()(e,["metricsPage","dispatchScanLibraryFiles","dispatchCancelScanLibraryFiles","dispatchShareLibraries","dispatchEditLibrary","dispatchReloadGuide","dispatchCancelReloadGuide"]));return m.a.createElement(O.a,r()({},t,{onScanLibraryPress:this.onScanLibraryPress,onCancelScanLibraryPress:this.onCancelScanLibraryPress,onSharePress:this.onSharePress,onEditLibraryPress:this.onEditLibraryPress,
onRefreshGuidePress:this.onRefreshGuidePress,onCancelRefreshGuidePress:this.onCancelRefreshGuidePress}))},t}(g.Component),w=Object(D.a)(i,T)(E);w.propTypes=r()({},w.propTypes,{serverEntityID:v.a.string.isRequired,providerEntityID:v.a.string.isRequired}),t.a=w},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"i",function(){return c}),n.d(t,"j",function(){return u}),
n.d(t,"a",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return f});var i=n(40),a=n(126),r=Object(i.a)(a.F),o=Object(i.a)(a.E),s=Object(i.a)(a.s),l=Object(i.a)(a.P),c=Object(i.a)(a.X),u=Object(i.a)(a._7),d=Object(i.a)(a.j),p=Object(i.a)(a.I),h=Object(i.a)(a.V),f=Object(i.a)(a.W)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(l.a,s.a,Object(o.a)(),function(e,t,n){var i=n.librarySectionKey
;return!i&&n.librarySectionID&&(i="/library/sections/"+n.librarySectionID),{server:e,provider:t,librarySectionKey:i,roles:n.Role}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(39),l=n(53),c=n(4645);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){switch(e){case b.b:return D.a;case b.f:return P.a;case b.e:return j.a;case b.a:return g.a;case b.d:return y.a;default:return C.a}}function a(e){
var t=e.serverEntityID,n=e.providerEntityID,a=e.metadataListEntityID,r=e.metadataItemEntityIDs,s=e.containerKey,l=e.listType,g=e.listStyle,y=e.populatedRange,I=e.isPopulated,M=e.isPending,D=e.error,C=e.listTitle,j=e.titleButtonTitle,P=e.titleButtonRoute,O=e.totalSize,A=e.previewSize,x=e.showArtwork,N=e.viewportWidth,L=e.viewportHeight,k=e.contentHeight,R=e.scrollTop,z=e.columnAdjustment,U=e.onPageRequest,B=O||r.length,F=null!=A&&B>A?A:B,_=null!=A&&B>A,V=i(g),H=C||Object(p.a)(l,B),Q=g===b.f||g===b.e||g===b.d||g===b.a
;return o()(m.a,{listType:l,isPopulated:I,isPending:M,error:D,size:F},void 0,!!H&&o()(f.a,{className:T.a.descendantHubCellHeader},void 0,o()(v.a,{},void 0,Object(u.a)(H)),(_||null!=j)&&o()(c.a,{className:T.a.titleButton,to:P},void 0,Object(u.a)(j||Object(d.default)("See all")))),Q&&E,o()(S.a,{showArtwork:x,contentHeight:k,scrollTop:R},void 0,o()(V,{serverEntityID:t,providerEntityID:n,metadataListEntityID:a,containerKey:s,listType:l,listContext:h.i,keyPropName:"metadataItemEntityID",items:r,
itemsOffset:y.start,size:F,viewportWidth:N,viewportHeight:L,columnAdjustment:z,onPageRequest:U})),Q&&w)}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(20)),u=n(401),d=n(3),p=n(1744),h=n(33),f=(n(484),n(478)),v=n(403),g=n(4651),m=n(1745),y=n(4655),b=n(68),I=n(764),S=n(766),M=n(765),D=n(4656),C=n(4657),j=n(4658),P=n(4659),O=n(4660),T=n.n(O),E=o()(M.a,{}),w=o()(I.a,{});t.a=a},,,,,function(e,t,n){var i=n(346),a=n(1119),r=n(776),o=Object.defineProperty
;t.f=n(422)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(347);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}
},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(1122),a=n(601);e.exports=function(e){return i(a(e))}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1884),r=i(a),o=n(1132),s=i(o),l="function"==typeof s.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){
return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(r.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(37),o=n(18),s=n(17),l=n(14),c=n(1142),u=n(1143),d=n(794),p=n(1933),h=l.a.boolean.isRequired,f=s.a.extend({name:"ConnectionModel",context:["server"],idAttribute:"uri",sessionAttrs:{currentTest:l.a.custom(function(e){return Array.isArray(e)&&e.every(function(e){return a.a.isFunction(e.abort)})}),testState:l.a.oneOf(c.f,c.c,c.b,c.d,c.e,c.a).isRequired,isBundled:h,isFallback:h},sessionRelations:{sources:{relationClass:p.a}},syncedAttrs:{uri:l.a.string,scheme:l.a.string,
address:l.a.string,port:l.a.string,relay:l.a.boolean},derivedAttrs:{isUntested:function(){return this.get("testState")===c.f},isPending:function(){return this.get("testState")===c.c},isConnected:function(){return this.get("testState")===c.b},isUnauthorized:function(){return this.get("testState")===c.d},isUnavailable:function(){return this.get("testState")===c.e},isFailed:function(){return this.get("isUnauthorized")||this.get("isUnavailable")},isAborted:function(){
return this.get("testState")===c.a},isLoopback:function(){var e=this.get("address");return"localhost"===e||d.a.isLoopbackAddress(e)},isPrivate:function(){return this.get("isLoopback")||d.a.isPrivateAddress(this.get("address"))},isHttps:function(){return"https"===this.get("scheme")},isSecure:function(){return this.get("isLoopback")||this.get("isHttps")},isPlexDirect:function(){return/\.plex\.direct:/.test(this.get("uri"))}},defaults:{testState:c.f,isBundled:!1,isFallback:!1,relay:!1},
url:function(){return this.get("uri")},constructor:function(e,t){var n=a.a.clone(e);a.a.isObject(e)&&!e.uri&&(Object(r.a)(e.scheme&&e.address,"A server connection requires either a uri or a scheme and address. "+e.scheme+"://"+e.address),n.uri=e.scheme+"://"+e.address,e.port&&(n.uri+=":"+e.port)),s.a.prototype.constructor.call(this,n,t)},initialize:function(){this.listenTo(this.get("sources"),"remove reset",this.onSourcesChange)},augmentResponse:function(e){var t=e.protocol
;return t?a.a.extend({},e,{scheme:t}):e},getAddressFromUri:function(){return Object(o.parseUrl)(this.get("uri")).hostname},getIpAddressFromPlexDirectAddress:function(){return Object(u.a)(this.get("address"))},getLoopbackAttributes:function(){return{scheme:"http",address:"127.0.0.1",port:this.get("port")}},hasSource:function(e){return this.get("sources").some(function(t){return e&&t.get("id")===e})},onSourcesChange:function(){
this.get("sources").length||this.trigger("destroy",this,this.collection)}});t.a=f},function(e,t,n){"use strict";function i(e){return null==e||""===e?0:parseInt(e,10)}t.a=i},function(e,t,n){"use strict";var i=n(299),a=new i.a({props:["X-Plex-Client-Identifier","X-Plex-Device","X-Plex-Device-Name","X-Plex-Device-Screen-Resolution","X-Plex-Device-Vendor","X-Plex-Model","X-Plex-Platform","X-Plex-Platform-Version","X-Plex-Product","X-Plex-Version"]});t.a=a},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(87),o=n(13),s=n.n(o),l=n(1953),c=n.n(l),u=n(10),d=n.n(u),p=n(19),h=n(32),f=n(180),v=n(16),g=n(209),m=n(43),y=n(17),b=n(796),I=n(14),S=n(62),M=n(797),D=n(1146),C=n(1147),j=n(196),P=n(799),O=n(800),T=n(801),E=n(1137),w=n(1967),A=n(1154),x=n(1150),N=n(1968),L=n(1151),k=n(1152),R=n(798),z={PENDING:"pending",LOCKED:"locked",UNLOCKED:"unlocked"},U={EMPTY:"",UNSUBSCRIBED:"unsubscribed",ACTIVE:"active",ERROR:"error",REMOVED:"removed"},B=y.a.extend({mixins:[M.a],name:"UserModel",
context:["server"],url:"/api/v2/user?includeSubscriptions=1",sessionAttrs:{isRemote:I.a.boolean,isSignedIn:I.a.boolean.isRequired,hasInvalidToken:I.a.boolean.isRequired,lastPrimaryServerID:I.a.string,lockState:I.a.oneOf(z.PENDING,z.LOCKED,z.UNLOCKED).isRequired,homeUsers:I.a.instanceOf(A.a).isRequired,homeDetails:I.a.instanceOf(w.a).isRequired},syncedAttrs:{id:I.a.integer,uuid:I.a.string,authToken:I.a.string,username:I.a.string,email:I.a.string,emailOnlyAuth:I.a.boolean,title:I.a.string,
subscriptionDescription:I.a.string,locale:I.a.string,thumb:I.a.string,pin:I.a.string,home:I.a.boolean,restricted:I.a.boolean,guest:I.a.boolean,homeSize:I.a.integer,maxHomeSize:I.a.integer,queueUid:I.a.string,queueEmail:I.a.string,hasAllEntitlements:I.a.boolean,mailingListActive:I.a.boolean,hasPassword:I.a.boolean,mailingListStatus:I.a.oneOf(U.EMPTY,U.UNSUBSCRIBED,U.ACTIVE,U.ERROR,U.REMOVED)},sessionRelations:{features:{relationClass:D.a}},syncedRelations:{subscription:{relationClass:R.a},
subscriptions:{relationClass:C.a},roles:{relationClass:k.a},entitlements:{relationClass:x.a},providers:{relationClass:L.a},profile:{relationClass:N.a}},derivedAttrs:{isLocked:function(){return this.get("lockState")===z.LOCKED},isUnlocked:function(){return this.get("lockState")===z.UNLOCKED},isFullUser:function(){return!!this.get("username")},isEmployee:function(){return!!this.get("roles").get("employee")},isNinja:function(){return this.get("isEmployee")||!!this.get("roles").get("ninja")},
hasPlexSubscription:function(){return this.get("subscriptions").some(function(e){var t=e.get("state");return t===P.a||t===P.b})},hasPlexPass:function(){return this.get("subscriptions").some(function(e){var t=e.get("type"),n=e.get("state");return t===O.a&&(n===P.a||n===P.b)})},canGoPremium:function(){var e=this.get("homeSize")>1;return this.get("signedIn")&&!this.get("restricted")&&!this.get("hasPlexSubscription")&&!e},signedIn:function(){return this.get("isSignedIn")},locked:function(){
var e=this.get("lockState");return e===z.LOCKED||e!==z.UNLOCKED&&null}},defaults:function(){var e={server:this.server,parent:this};return{isRemote:!1,isSignedIn:!1,hasInvalidToken:!1,hasPassword:!0,lockState:z.PENDING,homeUsers:new A.a([],e),homeDetails:new w.a({},e)}},initialize:function(e,t){this._resetPopulate(),this.onHomeUsersChange(this,this.get("homeUsers")),this.on("change:homeUsers",this.onHomeUsersChange,this),this.listenTo(this.server,{
"change:isConnected":this.onServerConnectedChange,"change:isUnavailable":this.onServerUnavailableChange})},uninitialize:function(){this.off("change:homeUsers",this.onHomeUsersChange,this),this.stopListening()},fetch:function(){return r.c.Model.prototype.fetch.apply(this,arguments)},augmentResponse:function(e){var t=e.roles,n=e.entitlements,i=e.providers,a=e.subscriptions;return d.a.extend({},e,{roles:t&&t.role,hasAllEntitlements:n&&n.all,entitlements:n&&n.entitlement,providers:i&&i.provider,
subscriptions:a&&a.subscription})},_getTokenPromise:function(){return S.a.get("allowSSO")?this._getSSOThenStorageTokenPromise():this._getStorageTokenPromise()},_getSSOThenStorageTokenPromise:function(){var e=this,t=this._getStorageTokenPromise(),n=this._getSSOTokenPromise(),i=function(){return Object(h.a)("[User] SSO status is signed-out"),t.then(function(){return Object(f.a)(e.signOutDueToInvalidToken())})},a=function(e){return t.then(function(t){
return e===t?(Object(h.a)("[User] SSO status is signed-in, storage token matches SSO token"),e):(Object(h.a)("[User] SSO status is signed-in, storage token and SSO token differ"),m.a.execute("resetUser").then(function(){p.a.trigger("reset:servers"),p.a.trigger("reset:providers")}).then(function(){return e}))},function(){return Object(h.a)("[User] SSO status is signed-in, storage token is not present"),Object(f.a)(e)})},r=function(){return Object(h.a)("[User] SSO status is not available"),t
},o=function(e){return e?a(e):i()};return n.then(o,r)},_getStorageTokenPromise:function(){return g.a.get("myPlexAccessToken")},_getSSOTokenPromise:function(){return Object(T.a)(this.server.getXHROptions("/api/v2/users/signin",{method:"POST",xhrFields:{withCredentials:!0},data:{skipAuthentication:!0},dataType:"json"})).then(function(e){return e.authToken},function(e){return e&&400===e.status?s.a.Deferred().resolve(null).promise():s.a.Deferred().reject().promise()})},
_getManualUserPromise:function(e){return s.a.ajax(this.server.getXHROptions(d.a.result(this,"url"),{headers:{"X-Plex-Token":e}}))},signInUnsupervised:function(){var e=this;if(!this._isSigningIn){this._isSigningIn=!0;var t=this._getTokenPromise();t.done(function(t){Object(h.a)("[User] Token promise succeeded, accessToken="+t);var n=t?e._getManualUserPromise(t):s.a.Deferred().reject().promise();n.done(function(n){Object(h.a)("[User] userPromise succeeded");var i=e.get("homeDetails");i.fetch({
headers:{"X-Plex-Token":t}}).always(function(){var t=e.parse(n),a=e.get("lockState");if(a!==z.UNLOCKED){var r=Object(v.c)("appModel").get("settings"),o=r.get("autoLogin"),s=!!t.guest&&!i.get("guestEnabled");a=!t.home||o&&!s?z.UNLOCKED:z.LOCKED}e.signIn(t,{lockState:a}),e._isSigningIn=!1})}),n.fail(function(t){if(Object(h.a)("[User] userPromise failed"),t&&t.aborting)return void(e._isSigningIn=!1);var n=Object(E.a)(t);n?e.signOutDueToInvalidToken():e.signOut({hasInvalidToken:n,
features:e.get("features")}),e.server.testAllConnections(),e._isSigningIn=!1})}),t.fail(function(){Object(h.a)("[User] tokenPromise failed"),e.signOut(),e._isSigningIn=!1})}},signIn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=d.a.isString(e)?this.parse(e):e,r=i.authToken,o=a()({isSignedIn:!0},i,t);return this._resolve(o,n),g.a.set("myPlexAccessToken",r)},signOut:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._reject(e),s.a.Deferred().resolve().promise()},signOutDueToInvalidToken:function(){return s.a.when(Object(f.a)(this.signOut({hasInvalidToken:!0})),Object(f.a)(this.clearAccessToken()))},activateStoredUser:function(e){j.a.set("activeUserID",e);var t=j.a.getActiveUser();if(t){var n=t.get("lastPrimaryServerID");this.set("lastPrimaryServerID",n),this.get("features").set(t.get("features").models)}},
clearAccessToken:function(){window.PLEXWEB&&window.PLEXWEB.myPlexAccessToken&&delete window.PLEXWEB.myPlexAccessToken;var e=g.a.remove("myPlexAccessToken");return e=e.then(function(){return j.a.clearActiveUser()})},hashPIN:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.get("authToken");return c.a.SHA256_hash(e+t)},hasEntitlement:function(e){var t=this.get("hasAllEntitlements"),n=this.get("entitlements");return!(!t&&!n.get(e))},hasHome:function(){
return!!this.get("pin")||this.get("homeUsers").length>1},isFullUser:function(){return this.get("isFullUser")},isEmployee:function(){return this.get("isEmployee")},isNinja:function(){return this.get("isNinja")},_resolve:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.startCapturingChangeEvents(),this.activateStoredUser(e.id),this.set(e),this._resolvePopulate(),this.server.authenticate(e.authToken),
t.silent?this.discardCapturedChangeEvents():this.releaseCapturedChangeEvents()},_reject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.startCapturingChangeEvents(),this.restoreDefaults(e),this._rejectPopulate(),this.server.deauthenticate(),t.silent?this.discardCapturedChangeEvents():this.releaseCapturedChangeEvents()},onHomeUsersChange:function(e,t){var n=e.previous("homeUsers");n&&this.stopListening(n),
this.listenTo(this.get("homeUsers"),"reset add remove",this.onHomeUsersUpdate)},onHomeUsersUpdate:function(){this.set("homeSize",this.get("homeUsers").length),this.get("homeDetails").fetch()},onServerConnectedChange:function(e,t){t&&this.signInUnsupervised()},onServerUnavailableChange:function(e,t){t&&this.signOut({lockState:this.get("lockState"),features:this.get("features")})}},{lockStates:z,mailingListStates:U});Object(b.a)(B,function(){return{relationClass:Object(v.c)("UserFlexModel")}}),
t.a=B},function(e,t,n){"use strict";var i=n(25),a=n(1155),r=i.a.extend({name:"MediaSettingCollection",context:["server"],model:a.a,getSaveParams:function(){return this.reduce(function(e,t){return e[t.id]=t.get("value"),e},{})}});t.a=r},function(e,t,n){"use strict";function i(e){var t=o.a.get("video").id,n=Object(s.a)(e,{streamType:t});return r.a.first(n)}var a=n(10),r=n.n(a),o=n(159),s=n(267);t.a=i},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(18),l=n(1158),c={
getCollectionName:function(){return this.collectionName||"items"},getCollection:function(){return this.get(this.getCollectionName())},getTotalSize:function(){return this.get("totalSize")||this.get("populatedRange").size},getPaginatedUrl:function(e){var t=this.get("currentPageStart"),n=this.get("currentPageSize");if(null!=t||null!=n){var i={"X-Plex-Container-Start":t||0,"X-Plex-Container-Size":n||0};return s.join(e,i)}return e},getCollectionChangeEvents:function(){var e=this.getCollectionName()
;return["change:"+e+".update","change:"+e+".reset"].join(" ")},startPopulatedRangeMonitor:function(){var e=this.getCollectionName();this.updatePopulatedRange(),this.on(this.getCollectionChangeEvents(),this.updatePopulatedRange,this),this.on("change:"+e+".destroy",this.decrementTotalSize,this)},stopPopulatedRangeMonitor:function(){var e=this.getCollectionName();this.off(this.getCollectionChangeEvents(),this.updatePopulatedRange,this),this.off("change:"+e+".destroy",this.decrementTotalSize,this)},
fetchRange:function(e){var t=o.a.extend({},e,{remove:!1});return e.prepend&&(t.at=0),this.set({currentPageStart:e.start,currentPageSize:e.size}),this.fetch(t).promise()},populateRange:function(e){var t=this.getCollection(),n=this.get("populatedRange"),i=l.a.difference(e,n)[0];if(!i)return a.a.Deferred().resolve().promise();if(i=l.a.degap(i,n),this.isPopulating()){var r=this.get("currentPageStart")!==i.start,s=this.get("currentPageSize")!==i.size;if(!r&&!s)return this.populatePromise
;this.abortPendingPopulate()}if(e.reloadThreshold&&i.size>e.reloadThreshold)return t.reset(),this.populateRange(o.a.omit(e,"reloadThreshold"));var c=o.a.extend({},e,i,{prepend:i.start<n.start});return this.fetchRange(c)},repopulateRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.get("populatedRange").end;return this.set({currentPageStart:0,currentPageSize:Math.max(t,e)}),this.abortPendingPopulate(),this.fetch()},updatePopulatedRange:function(){
var e=this.get("currentPageStart"),t=this.get("populatedRange").start,n=this.get("populatedRange").size,i=this.getCollection().length,a=void 0;a=i?n?Math.min(t,null==e?1/0:e):e||t:0,this.set("populatedRange",{start:a,end:a+i,size:i})},decrementTotalSize:function(){var e=this.get("totalSize");e>0&&this.set("totalSize",e-1)}};t.a=c},function(e,t,n){"use strict";var i={waitingRegex:/^(transcoded|downloaded|directplay|processed)$/,processingRegex:/^(pending|transcoding|downloading)$/,
failedRegex:/^(failed|error)$/,addVersionHeader:function(e,t){return t||(t={}),t.headers||(t.headers={}),t.headers["X-Plex-Sync-Version"]=e,t},addVersionHeaderForDevice:function(e,t){var n=e&&e.get("syncList");return n&&n.get("version")?this.addVersionHeader(n.get("version"),t):t},getSyncStateFromPart:function(e){return e.transcodeState||e.syncState},getSyncStateContextFromPart:function(e){return e.transcodeStateContext||e.syncStateContext}};t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.seasonIndex,n=e.episodeIndex;if((n>0||0===n)&&t<1e3){e.noLeadingZero||(t=Object(l.a)(t),n=Object(l.a)(n));var i=e.separator;if(e.useLongName){var u=Object(c.default)("Season {seasonNumber}",{seasonNumber:t}),d=Object(c.default)("Episode {episodeNumber}",{episodeNumber:n});return""+u+(i||" ")+d}var p=Object(c.default)("S{seasonNumber}",{seasonNumber:t}),h=Object(c.default)("E{episodeNumber}",{episodeNumber:n});return""+p+(i||"")+h}if(e.date){var f=Object(s.a)(e.date)
;return Object(c.default)("{monthNumber}/{dayNumber}/{shortYear}",{monthNumber:Object(o.a)(f)+1,dayNumber:Object(r.a)(f),shortYear:Object(a.a)(f,"yy")})}return""}var a=n(170),r=n(361),o=n(512),s=n(23),l=n(806),c=n(3);t.a=i},,function(e,t,n){"use strict";var i=n(25),a=n(2010),r=i.a.extend({name:"ServerSettingCollection",context:["server"],url:"/:/prefs",model:a.a,augmentResponse:function(e){return e.Setting?(Array.isArray(e.Setting)?e.Setting:[e.Setting]).filter(function(e){return e.id}):[]}})
;t.a=r},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"c",function(){return c});var i=n(17),a=n(14),r=n(2022),o=n(2024),s=n(74),l={ONBOARDED:"onboarded",PLAYBACK_SPEED:"playbackSpeed"},c={BOOL:"bool",GROUP:"group",LOCATION:"location",SELECT:"select",DOUBLE:"double"},u={bool:s.a.parseBoolean,double:s.a.parseFloat},d=i.a.extend({name:"ProviderSettingModel",context:["server","provider"],rootPropertyName:"Setting",url:function(){return this.get("key")},sessionAttrs:{
isOptionsPending:a.a.boolean,isOptionsPopulated:a.a.boolean,optionsError:a.a.object,isLocationsPending:a.a.boolean,isLocationsPopulated:a.a.boolean,locationsError:a.a.object},syncedAttrs:{country:a.a.string,countryLabel:a.a.string,hidden:a.a.boolean,id:a.a.string,key:a.a.string,label:a.a.string,multiselect:a.a.boolean,postalCode:a.a.string,required:a.a.boolean,selectedCount:a.a.integer,summary:a.a.string,type:a.a.string,value:a.a.oneOfType(a.a.string,a.a.boolean,a.a.float),min:a.a.float,
max:a.a.float,step:a.a.float},sessionRelations:{locations:{relationClass:r.a}},syncedRelations:{settings:function(){return{relationClass:n(1170).default,rootPropertyName:"Setting",deferred:!0}},options:{relationClass:o.a,options:function(e){return{url:e.key}}}},defaults:{isOptionsPending:!0,isOptionsPopulated:!1,optionsError:null,isLocationsPending:!0,isLocationsPopulated:!1,locationsError:null},augmentResponse:function(e){var t=u[e.type];return t&&(e.value=t(e.value)),e}});t.a=d
},function(e,t,n){"use strict";function i(e){var t,n=(t={},t["X-Plex-Text-Format"]=Object(p.a)(e),t);switch(e){case h.g:case h.h:case h.i:case h.j:case h.k:case h.l:n["X-Plex-Provider-Version"]="1.2"}return n}var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(18),c=n(17),u=n(14),d=n(507),p=n(1171),h=n(41),f=n(618),v=n(38),g=n(45),m=n(516),y=n(1173),b=c.a.extend({name:"ProviderModel",context:["server"],entityType:g.k,entityID:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(v.a)(this.entityType,e.identifier,this.server.entityID())},idAttribute:"identifier",rootPropertyName:"MediaProvider",url:function(){return this.get("baseURL")},mergeStrategy:function(e,t,n){return"protocols"===e&&n&&n.length>0?n:Object(d.a)(e,t,n)},syncedAttrs:{id:u.a.integer,parentID:u.a.integer,identifier:u.a.string,providerIdentifier:u.a.string,baseURL:u.a.string,title:u.a.string,types:u.a.list,
protocols:u.a.list,subscriptions:u.a.boolean,icon:u.a.string,epgSource:u.a.string},sessionAttrs:{isPending:u.a.boolean,isPopulated:u.a.boolean,error:u.a.object},syncedRelations:{features:{relationClass:y.a,rootPropertyName:"Feature",options:function(){return{provider:this}},setOptions:{remove:!1}}},derivedAttrs:{isLibraryProvider:function(){return Object(f.a)(this.get("identifier"),this.get("providerIdentifier"))===h.d},metricsIdentifier:function(){
var e=this.get("providerIdentifier")||this.get("identifier");return h.c.test(e)?e.split(":")[0]:e}},populate:function(){return this.get("isPopulated")?s.a.Deferred().resolve(this).promise():c.a.prototype.populate.apply(this,arguments)},resolveUrl:function(e,t){return this.server.resolveUrl(e,r()({},t,{baseUrl:this.url()}))},getXHROptions:function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(m.a)(e)?e:l.join([this.get("baseURL"),e]),a=this.get("providerIdentifier")||this.get("identifier");return this.server.getXHROptions(n,r()({},t,{headers:r()({},i(a),t.headers)}))},defaults:function(){return{protocols:[],isPending:!0,isPopulated:!1,error:null}}});t.a=b},function(e,t,n){"use strict";var i={NORMAL:0,LOCAL:42,CLOUD:43};t.a=i},function(e,t,n){"use strict";function i(e,t){if(!e)return"";if(/^\d+$/.test(e)){
return e+(t&&t.length?t[0]:"p")}return e.toUpperCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function i(){return window.viewport&&window.viewport.pixelRatio||window.devicePixelRatio||1}t.a=i},function(e,t,n){"use strict";var i=(n(2167),n(1195),n(1196),n(2168));n.d(t,"a",function(){return i.a});var a=n(826);n.d(t,"b",function(){return a.a});var r=n(2169);n.d(t,"c",function(){return r.a});var o=(n(2170),n(1197));n.d(t,"d",function(){return o.a})
;var s=(n(2171),n(2172),n(2173),n(2174),n(2175),n(2176));n.d(t,"e",function(){return s.a});var l=(n(628),n(629),n(2177),n(2178),n(369));n.d(t,"f",function(){return l.a});var c=(n(1198),n(1199));n.d(t,"g",function(){return c.a});var u=(n(2179),n(1200));n.d(t,"h",function(){return u.a});var d=(n(2180),n(2181),n(2182),n(2183),n(827),n(2184),n(2185),n(2186));n.d(t,"i",function(){return d.a});var p=(n(2187),n(2188),n(2189),n(2190),n(828),n(830),n(2191),n(2192),n(829),n(831),n(2193),n(2194),n(2195))
;n.d(t,"j",function(){return p.a})},function(e,t,n){"use strict";function i(){return"pmp"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pmp")}t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=Object(r.a)(1e3*e);return t?Object(a.default)("{1} left",t):""}var a=n(3),r=n(308);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"e",function(){
return s}),n.d(t,"f",function(){return l});var i=5,a=10,r=30,o=5,s=600,l=600},function(e,t,n){"use strict";n.d(t,"g",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"d",function(){return c});var i="isScrolling",a="isActive",r="isFocused",o="isDisabled",s="isDragging",l="isDraggingBefore",c="isDraggingAfter"},function(e,t,n){"use strict";n.d(t,"a",function(){
return i}),n.d(t,"j",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"i",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"h",function(){return h});var i=8,a=9,r=13,o=16,s=17,l=27,c=38,u=40,d=91,p=93,h=224},,function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.containerClassName,i=e.labelClassName,a=e.size,o=e.label,s=e.loadingLabel,l=(t||"")+" "+(u.a[a]||"");return o?r()("div",{className:(n||"")+" "+(u.a.spinnerContainer||"")},void 0,r()("div",{className:l}),r()("div",{className:(i||"")+" "+(u.a.spinnerLabel||"")},void 0,o)):r()("div",{className:l,"aria-label":s})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(52)),c=n(2403),u=n.n(c);i.defaultProps={size:l.MEDIUM},t.a=i},,,,,,,,,function(e,t,n){"use strict"
;function i(e){var t=e.className,n=c()(e,["className"]);return s()("div",{className:t},void 0,p.a.createElement(h.a,r()({},n,{background:!0})))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(185),f=n(2842),v=n.n(f);i.defaultProps={className:v.a.avatar},t.a=i},function(e,t,n){"use strict";function i(e,t){return Object(a.a)(e,{limit:"past"},t)}var a=n(2895);t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return l})
;var i=n(17),a=n(14),r=n(356),o=n(1404),s=n(2924),l={DEAD:"dead",ALIVE:"alive"},c=i.a.extend({name:"MediaGrabberDeviceModel",context:["server"],rootPropertyName:"Device",idAttribute:"key",sessionAttrs:{isChannelsPending:a.a.boolean,isChannelsPopulated:a.a.boolean,channelsError:a.a.object,selectedSource:a.a.string,isSaving:a.a.boolean,saveError:a.a.object},sessionRelations:{channels:{relationClass:s.a}},syncedAttrs:{key:a.a.integer,uuid:a.a.string,parentID:a.a.integer,uri:a.a.string,
protocol:a.a.string,status:a.a.string,state:a.a.string,lastSeenAt:a.a.integer,make:a.a.string,model:a.a.string,modelNumber:a.a.string,source:a.a.integer,sources:a.a.list,tuners:a.a.integer,thumb:a.a.string,unsupported:a.a.boolean},syncedRelations:{channelMappings:{rootPropertyName:"ChannelMapping",relationClass:o.a},prefs:{relationClass:r.a,rootPropertyName:"Setting",deferred:!0,save:!0}},defaults:{isChannelsPending:!1,isChannelsPopulated:!1,channelsError:null,isSaving:!1,saveError:null,
unsupported:!1}});t.a=c},function(e,t,n){"use strict";function i(e){var t=e.title,n=e.children,i=e.errorMessage,a=e.onModalClose;return r()(d.a,{onModalClose:a},void 0,r()(l.a,{},void 0,t||Object(c.default)("DVR Setup")),i?r()(u.a,{errorMessage:i}):null,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(84)),c=n(3),u=n(217),d=n(98);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(52),b=n(2960),I=n.n(b),S=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.setRef=function(e){a._checkbox=e},a.onChange=function(e){var t=e.target.checked,n=t?a.props.checkedValue:a.props.uncheckedValue;a.props.value!==n&&a.props.onChange(n)},a._checkbox=null,a}return f()(t,e),t.prototype.componentDidMount=function(){this.setIndeterminate()},t.prototype.componentDidUpdate=function(){this.setIndeterminate()},
t.prototype.setIndeterminate=function(){if(this._checkbox){var e=this.props,t=e.value,n=e.uncheckedValue,i=e.checkedValue;this._checkbox.indeterminate=t!==n&&t!==i}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputClassName,i=e.errorClassName,r=e.disabledClassName,s=e.isDisabled,c=e.size,u=e.checkboxText,d=e.name,p=(e.initialValue,e.value),h=e.checkedValue,f=(e.uncheckedValue,e.showErrors,e.hasError),v=(e.errors,e.validations,
l()(e,["className","inputClassName","errorClassName","disabledClassName","isDisabled","size","checkboxText","name","initialValue","value","checkedValue","uncheckedValue","showErrors","hasError","errors","validations"]));return o()("label",{className:(t||"")+" "+(I.a[c]||"")+" "+(s&&r||"")+" "+(f&&i||""||""),htmlFor:d},void 0,m.a.createElement("input",a()({},v,{id:d,type:"checkbox",disabled:s,className:n,checked:p===h,ref:this.setRef,onChange:this.onChange})),u)},t}(g.Component);S.defaultProps={
className:I.a.label,inputClassName:I.a.input,errorClassName:I.a.hasError,disabledClassName:I.a.isDisabled,isDisabled:!1,size:y.LARGE,uncheckedValue:!1,checkedValue:!0,value:!1,hasError:!1},t.a=S},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(20),v=n(28),g=(n(37),n(2964)),m=n(2965),y=n.n(m),b=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMouseDown=function(e){
e.preventDefault(),0===e.button&&a._startDrag(e.pageX,e.pageY,!1)},a.onMouseMove=function(e){var t=e.pageX,n=e.pageY;if(!a.state.isDragging){var i=a._getValueForPosition(t,n),r=a._trackRef.current,o=r.getBoundingClientRect(),s=a.props.isVertical?{x:o.left,y:n}:{x:t,y:o.top};a.props.onMove({position:s,positionValue:i,steppedValue:a._getSteppedValue(i)})}},a.onTouchStart=function(e){e.preventDefault();var t=e.touches&&e.touches[0];t&&a._startDrag(t.pageX,t.pageY,!0)},
a.onDocumentMouseMove=function(e){a._drag(e.pageX,e.pageY)},a.onDocumentTouchMove=function(e){var t=e.touches&&e.touches[0];t&&a._drag(t.pageX,e.pageY)},a.onDocumentMouseUp=function(e){a._stopDrag(e.pageX,e.pageY)},a.onDocumentTouchEnd=function(e){var t=e.changedTouches&&e.changedTouches[0];t&&a._stopDrag(t.pageX,t.pageY)},a._trackRef=h.a.createRef(),a.state={isDragging:!1},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},
t.prototype.componentWillUnmount=function(){this._stopListeningForDrag()},t.prototype._listenForDrag=function(e){e?(document.addEventListener("touchmove",this.onDocumentTouchMove),document.addEventListener("touchcancel",this.onDocumentTouchEnd),document.addEventListener("touchend",this.onDocumentTouchEnd)):(document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp))},t.prototype._stopListeningForDrag=function(){
document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("touchmove",this.onDocumentTouchMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("touchcancel",this.onDocumentTouchEnd),document.removeEventListener("touchend",this.onDocumentTouchEnd)},t.prototype._startDrag=function(e,t,n){this._changeValue(this._getValueForPosition(e,t)),this._listenForDrag(n),this.props.onDragStart&&this.props.onDragStart()},
t.prototype._drag=function(e,t){this.state.isDragging||(document.body.classList.add(y.a.isDragging),this.setState({isDragging:!0})),this._changeValue(this._getValueForPosition(e,t))},t.prototype._stopDrag=function(e,t){document.body.classList.remove(y.a.isDragging),this._stopListeningForDrag();var n=this._getValueForPosition(e,t),i=this._getSteppedValue(n);this._changeValue(n),this.setState({isDragging:!1}),this.props.onDragComplete&&this.props.onDragComplete({positionValue:n,steppedValue:i})},
t.prototype._getValueForPosition=function(e,t){var n=this.props,i=n.isVertical,a=n.min,r=n.max,o=this._trackRef.current,s=o.getBoundingClientRect(),l=void 0;if(i){var c=t-document.body.scrollTop;l=(s.bottom-c)/o.offsetHeight}else{l=(e-document.body.scrollLeft-s.left)/o.offsetWidth}return l=Math.min(Math.max(l,0),1),(r-a)*l+a},t.prototype._getSteppedValue=function(e){var t=this.props,n=t.min,i=t.max,a=t.stepSize;if(!a)return e;var r=Math.round(e/a)*a;return Math.min(Math.max(r,n),i)},
t.prototype._getStickyValue=function(e){var t=this.props,n=t.max,i=t.min,a=t.stepSize,r=t.stickiness;if(!a||!r)return e;var o=this._getSteppedValue(e);return Math.abs(o-e)/(n-i)<r/100?o:e},t.prototype._changeValue=function(e){var t=this.props.value;e!==t&&this.props.onChange({positionDelta:e-t,positionValue:e,steppedValue:this._getSteppedValue(e)})},t.prototype.render=function(){
var e,t,n=this.props,i=n.style,r=n.className,o=n.trackClassName,s=n.secondaryFillClassName,l=n.fillClassName,c=n.thumbClassName,u=n.thumbTrackClassName,d=n.label,p=n.value,v=n.min,m=n.max,b=n.secondaryMin,I=n.secondaryMax,S=n.showSecondaryFill,M=n.showFill,D=n.autoHideThumb,C=n.isDisabled,j=n.isVertical,P=n.onMove,O=n.onMouseEnter,T=n.onMouseLeave,E=n.onWheel,w=this.state.isDragging,A=Object(g.a)(this._getStickyValue(p),v,m),x="left",N="scaleX",L="translateX";j&&(x="top",N="scaleY",
L="translateY");var k=L+"("+(j?-A:A)+"%)",R=b?Object(g.a)(this._getStickyValue(b),v,m):0,z=I?Object(g.a)(this._getStickyValue(I),v,m):0,U=N+"("+(A-R)/100+")",B=N+"("+(z-R)/100+")";return a()("div",{style:i,className:(r||"")+" "+(C&&y.a.isDisabled||"")+" "+(w&&y.a.isDragging||"")+" "+(D&&y.a.hasAutoHideThumb||""||""),onWheel:C?null:E,onMouseEnter:C?null:O,onMouseLeave:C?null:T,onMouseDown:C?null:this.onMouseDown,onMouseMove:C||!P?null:this.onMouseMove,onTouchStart:C?null:this.onTouchStart
},void 0,h.a.createElement("div",{className:o,ref:this._trackRef},S&&a()("div",{className:s,style:(e={},e[x]=b?R+"%":void 0,e.WebkitTransform=B,e.msTransform=B,e.transform=B,e)}),M&&a()("div",{className:l,style:(t={},t[x]=b?R+"%":void 0,t.WebkitTransform=U,t.msTransform=U,t.transform=U,t)})),a()("div",{className:u,style:{WebkitTransform:k,msTransform:k,transform:k}},void 0,a()(f.a,{className:c,role:"slider","aria-labelledby":d,"aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":p,
onMouseDown:this.onMouseDown,onMouseMove:P&&this.onMouseMove,onTouchStart:this.onTouchStart})))},t}(p.Component);b.defaultProps={className:y.a.slider,trackClassName:y.a.track,fillClassName:y.a.fill,secondaryFillClassName:y.a.secondaryFill,thumbClassName:y.a.thumb,thumbTrackClassName:y.a.thumbTrack,min:0,max:100,stepSize:0,stickiness:10,showFill:!1,showSecondaryFill:!1,autoHideThumb:!1,isDisabled:!1,isDragging:!1,isVertical:!1},t.a=b},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children,i=e.kind;return r()("span",{className:(t||"")+" "+(u.a.badge||"")+" "+(u.a[i]||"")+" "+(!n&&u.a.isHidden||""||""),"data-qa-id":"badgeElement"},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(51)),c=n(2999),u=n.n(c);i.defaultProps={kind:l.DEFAULT},t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s})
;var i=n(40),a=n(126),r=Object(i.a)(a.a),o=Object(i.a)(a.d),s=Object(i.a)(a.Y)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments[2];return Object(o.c)(r()({direction:o.b,columns:1,overscan:t,getCellWidth:function(e){return e.innerViewportWidth},getCellHeight:function(){return e}},n))}t.a=i;var a=n(6),r=n.n(a),o=n(456)},function(e,t,n){"use strict";function i(e){
if(o[e])return o[e];var t=Object(a.createSelector)(r.a,function(t){return t[e]});return o[e]=t,t}t.a=i;var a=n(4),r=(n.n(a),n(162)),o={}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(173)),r=Object(i.createSelector)(a.a,function(e){return e.servers},function(e,t){return t?t.map(function(t){return e[t]}):[]});t.a=r},function(e,t,n){"use strict";function i(e){if(o[e])return o[e];var t=Object(a.createSelector)(r.a,function(t){return t[e]});return o[e]=t,t}t.a=i;var a=n(4),r=(n.n(a),
n(678)),o={}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(3360)),r=n(256),o=n(79),s=Object(i.createSelector)(Object(a.a)("typeFirstPreview"),Object(r.a)(o.o),function(e,t){return!1});t.a=s},function(e,t,n){"use strict";function i(e,t,n){return r()({},e,n,t)}t.a=i;var a=n(6),r=n.n(a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.onModalClose,i=c()(e,["isOpen","onModalClose"]);return s()(f.a,{size:g.e.SMALL,isOpen:t,metricsPage:h.O,onModalClose:n
},void 0,p.a.createElement(v.a,r()({onModalClose:n},i)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(30),f=n(114),v=n(3475),g=n(24);t.a=i},function(e,t,n){"use strict";function i(e,t,n){Object(m.c)("metrics").trackClick(l()({page:n,action:e},a(t)))}function a(e){return{context:P.h,selectionType:e.get("activeSelectionType"),selectionCount:e.get("activeSelectionItems").length}}function r(e){
return e.get("ui").get("multiSelect").get("activeSelectionItems").map(function(e){return e.get("model").entityID()})}n.d(t,"q",function(){return N}),n.d(t,"r",function(){return L}),n.d(t,"d",function(){return k}),n.d(t,"f",function(){return R}),n.d(t,"e",function(){return z}),n.d(t,"n",function(){return F}),n.d(t,"h",function(){return _}),n.d(t,"u",function(){return V}),n.d(t,"g",function(){return H}),n.d(t,"p",function(){return Q}),n.d(t,"b",function(){return Y}),n.d(t,"t",function(){return G
}),n.d(t,"m",function(){return W}),n.d(t,"k",function(){return K}),n.d(t,"c",function(){return Z}),n.d(t,"s",function(){return q}),n.d(t,"i",function(){return J}),n.d(t,"j",function(){return X}),n.d(t,"a",function(){return $}),n.d(t,"o",function(){return ee}),n.d(t,"l",function(){return te})
;var o,s=n(6),l=n.n(s),c=n(12),u=n.n(c),d=n(13),p=n.n(d),h=n(10),f=n.n(h),v=n(40),g=n(19),m=n(16),y=n(43),b=n(1466),I=n(1467),S=n(1468),M=n(1470),D=n(77),C=n(123),j=n(86),P=n(138),O=n(703),T=n(1158),E=n(70),w=n(3),A=n(1471),x=n(696),N=Object(v.a)("multiSelect/selectItem"),L=Object(v.a)("multiSelect/selectModels"),k=Object(v.a)("multiSelect/deselectAllItems"),R=Object(v.a)("multiSelect/deselectModels"),z=Object(v.a)("multiSelect/deselectCollection"),U=Object(v.a)("multiSelect/selectRange"),B=Object(v.a)("multiSelect/deselectRange"),F=Object(v.a)("multiSelect/playSelectedItems"),_=Object(v.a)("multiSelect/favoriteSelectedItems"),V=Object(v.a)("multiSelect/unfavoriteSelectedItems"),H=(Object(v.a)("multiSelect/updateSelectedItemsPlayedStatus"),
Object(v.a)("multiSelect/editSelectedItems")),Q=Object(v.a)("multiSelect/refreshSelectedItems"),Y=Object(v.a)("multiSelect/analyzeSelectedItems"),G=Object(v.a)("multiSelect/syncMetadataItems"),W=Object(v.a)("multiSelect/optimizeMetadataItems"),K=Object(v.a)("multiSelect/mergeSelectedItems"),Z=Object(v.a)("multiSelect/deleteSelectedItems"),q=Object(v.a)("multiSelect/playSelectedItems",function(e){var t=e.options,n=void 0===t?{}:t,i=u()(e,["options"]);return l()({},i,{options:l()({},n,{shuffle:!0
})})}),J=Object(v.a)("multiSelect/updateSelectedItemsPlayedStatus",function(e){return l()({},e,{played:!0})}),X=Object(v.a)("multiSelect/updateSelectedItemsPlayedStatus",function(e){return l()({},e,{played:!1})}),$=Object(v.a)("multiSelect/queueSelectedItems",function(e){var t=e.options,n=void 0===t?{}:t,i=u()(e,["options"]);return l()({},i,{options:l()({},n,{next:!1})})}),ee=Object(v.a)("multiSelect/queueSelectedItems",function(e){var t=e.options,n=void 0===t?{}:t,i=u()(e,["options"])
;return l()({},i,{options:l()({},n,{next:!0})})}),te=(o={},o["multiSelect/selectItem"]=function(e,t,n){var i=t.type,a=t.model,r=t.collection,o=t.isRangeSelect,s=void 0!==o&&o,l=e.get("ui").get("multiSelect"),c=l.get("activeSelectionType"),u=l.get("activeSelectionRange");if(!c||c===i){if(l.listenToCollection(r),!s||!u||u.collection!==r)return l.set("activeSelectionRange",{collection:r,startModel:a}),void n(L([{id:a.id,type:i,model:a}]))
;var d=u.startModel,p=u.endModel,h=r.indexOf(d),f=r.indexOf(a);if(p){var v=r.indexOf(p);n(B({collection:r,range:{start:h,end:v}}))}l.set("activeSelectionRange",{collection:r,startModel:d,endModel:a}),n(U({type:i,collection:r,range:{start:h,end:f}}))}},o["multiSelect/selectModels"]=function(e,t){e.get("ui").get("multiSelect").get("activeSelectionItems").add(t)},o["multiSelect/deselectAllItems"]=function(e){e.get("ui").get("multiSelect").get("activeSelectionItems").reset()},
o["multiSelect/deselectModels"]=function(e,t){e.get("ui").get("multiSelect").get("activeSelectionItems").remove(t)},o["multiSelect/deselectCollection"]=function(e,t,n){var i=e.get("ui").get("multiSelect"),a=i.get("activeSelectionItems"),r=[];i.stopListening(t),t.each(function(e){a.get(e.id)&&r.push(e.id)}),r.length&&n(R(r))},o["multiSelect/selectRange"]=function(e,t,n){var i=t.type,a=t.collection,r=t.range,o=e.get("ui").get("multiSelect"),s=o.get("activeSelectionItems"),l=[]
;T.a.each(r,function(e){var t=a.at(e);t&&!s.get(t.id)&&l.push({id:t.id,type:i,model:t})}),l.length&&n(L(l))},o["multiSelect/deselectRange"]=function(e,t,n){var i=t.collection,a=t.range,r=e.get("ui").get("multiSelect"),o=r.get("activeSelectionItems"),s=[];T.a.each(a,function(e){var t=i.at(e);t&&o.get(t.id)&&s.push(t.id)}),s.length&&n(R(s))},o["multiSelect/playSelectedItems"]=function(e,t,n){var i=e.get("ui").get("multiSelect"),o=r(e);n(Object(D.m)(l()({},t,{metadataItemEntityIDs:o,
metricsProperties:a(i)})))},o["multiSelect/queueSelectedItems"]=function(e,t,n){var i=e.get("ui").get("multiSelect"),o=r(e);n(Object(D.h)(l()({},t,{metadataItemEntityIDs:o,metricsProperties:a(i)})))},o["multiSelect/favoriteSelectedItems"]=function(e,t,n){var a=Object(E.i)(e,t),r=e.get("ui").get("multiSelect"),o=r.get("activeSelectionItems").pluck("model"),s=p.a.Deferred().resolve().promise();o.forEach(function(e){s=s.then(function(){return Object(I.a)(a,e,{rating:O.a})})}),s.fail(function(){
n(Object(C.d)(Object(w.default)("There was an unexpected error favoriting an item.")))}),i(j.M,r,t.metricsPage)},o["multiSelect/unfavoriteSelectedItems"]=function(e,t,n){var a=Object(E.i)(e,t),r=e.get("ui").get("multiSelect"),o=r.get("activeSelectionItems").pluck("model"),s=p.a.Deferred().resolve().promise();o.forEach(function(e){s=s.then(function(){return Object(I.a)(a,e,{rating:O.b})})}),s.fail(function(){n(Object(C.d)(Object(w.default)("There was an unexpected error unfavoriting an item.")))
}),i(j.M,r,t.metricsPage)},o["multiSelect/updateSelectedItemsPlayedStatus"]=function(e,t,n){var a=e.get("ui").get("multiSelect"),r=a.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();r.forEach(function(n){o=o.then(function(){return Object(M.a)(e,l()({},t,{metadataItemEntityID:n.entityID()}))})}),o.fail(function(){
var e=t.played?Object(w.default)("There was an unexpected error marking an item played."):Object(w.default)("There was an unexpected error marking an item unplayed.");n(Object(C.d)(e))}),o.always(function(){var e={};r.forEach(function(t){var i=t.server.entityID();e[i]||(e[i]=!0,n(Object(C.c)({serverEntityID:i})))})}),i(t.played?j.A:j.z,a,t.metricsPage)},o["multiSelect/editSelectedItems"]=function(e,t){var n=e.get("ui").get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=new A.a({
items:a});g.a.trigger("show:modal",r),i(j.q,n,t.metricsPage)},o["multiSelect/refreshSelectedItems"]=function(e,t,n){var a=e.get("ui").get("multiSelect"),r=a.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();r.forEach(function(e){o=o.then(function(){return Object(S.a)(e)})}),o.fail(function(){n(Object(C.d)(Object(w.default)("There was an unexpected error refreshing an item.")))}),i(j.N,a,t.metricsPage)},o["multiSelect/analyzeSelectedItems"]=function(e,t,n){
var a=e.get("ui").get("multiSelect"),r=a.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();r.forEach(function(e){o=o.then(function(){return Object(b.a)(e)})}),o.fail(function(){n(Object(C.d)(Object(w.default)("There was an unexpected error analyzing an item.")))}),i(j.c,a,t.metricsPage)},o["multiSelect/syncMetadataItems"]=function(e,t){var n=e.get("ui").get("multiSelect"),a=n.get("activeSelectionItems").pluck("model");y.a.execute("showSyncModal",{item:f.a.first(a),
items:a}),i(j.X,n,t.metricsPage)},o["multiSelect/optimizeMetadataItems"]=function(e,t){var n=e.get("ui").get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=new x.a({item:f.a.first(a),items:a});g.a.trigger("show:modal",r),i(j.D,n,t.metricsPage)},o["multiSelect/mergeSelectedItems"]=function(e,t){var n=e.get("ui").get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=a[0],o=a.slice(1);y.a.execute("merge",{item:r,items:o}),i(j.B,n,t.metricsPage)},
o["multiSelect/deleteSelectedItems"]=function(e,t,n){var a=e.get("ui").get("multiSelect"),r=a.get("activeSelectionItems").pluck("model"),o=t.options||{};y.a.execute("deleteItems",l()({},o,{items:r,skipConfirmation:!0})),i(j.k,a,t.metricsPage)},o)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{year:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).year}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1490)
;t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){if(!e)return"";var t=e.toUpperCase();if("EPs"===e)return e;var n=t.match(/(\d{4})S/);if(n){var i=n[1];return t.replace(i+"S",i+"s")}return t}t.a=i},function(e,t,n){"use strict";var i=n(323),a=n(72),r=Object(i.a)(a.a,function(e){return e.homeSettings});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n,"data-qa-id":"hubCellTitle"},void 0,t)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3627)),c=n.n(l);i.defaultProps={className:c.a.hubCellTitle},t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(312),b=n(28),I=n(997),S=n.n(I),M=n(3734),D=n(3747),C=n.n(D),j="faceFront",P=Object(y.a)(S.a.posterFlipSpeed),O={transitionName:{appear:"appear",enter:"enter",leave:"leave"},transitionAppear:!1,transitionEnter:!1,
transitionLeave:!1},T=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onImageLoad=function(){a.state.isLoadingFace&&a._flipCard()},a.onImageError=function(){a.state.isLoadingFace&&a._flipCard()},a.onFlipComplete=function(){a.setState({isFlippingFace:!1,previousImageUrl:null})},a.state={visibleFace:j,isLoadingFace:!1,isFlippingFace:!1,previousImageUrl:null},a}return f()(t,e),t.prototype.componentWillReceiveProps=function(e){
var t=this.props.imageUrl,n=e.imageUrl&&t!==e.imageUrl;this.props.metadataKey===e.metadataKey&&n&&this._prepareFlip(t)},t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this._cancelFlip()},t.prototype._prepareFlip=function(e){this._cancelFlip(),this.setState({isLoadingFace:!0,isFlippingFace:!0,previousImageUrl:e})},t.prototype._flipCard=function(){var e=this;this.setState(function(t){return{isLoadingFace:!1,
visibleFace:e._getInverseFace(t.visibleFace)}},function(){e._flipTimeoutID=setTimeout(e.onFlipComplete,P)})},t.prototype._cancelFlip=function(){this._flipTimeoutID&&(this._flipTimeoutID=clearTimeout(this._flipTimeoutID))},t.prototype._getInverseFace=function(e){return e===j?"faceBack":j},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.cardClassName,i=e.cardFaceClassName,r=e.metadataKey,s=e.imageWidth,c=e.imageHeight,u=e.imageUrl,d=l()(e,["className","cardClassName","cardFaceClassName","metadataKey","imageWidth","imageHeight","imageUrl"]),p=this.state,h=p.visibleFace,f=p.isLoadingFace,v=p.isFlippingFace,g=p.previousImageUrl,y=this._getInverseFace(h),b={width:s,height:c};return o()("div",{className:t,"data-qa-id":"metadataPosterCard--"+r},r,o()("div",{
className:(n||"")+" "+("faceBack"===h&&C.a.isFlipped||""||""),style:b},void 0,m.a.createElement(M.a,a()({key:h,className:i,visibleFace:h,imageWidth:s,imageHeight:c,imageUrl:f?g:u,imageTransitionProps:v?O:void 0,onImageLoad:this.onImageLoad,onImageError:this.onImageError},d)),v&&m.a.createElement(M.a,a()({key:y,className:i,visibleFace:y,imageWidth:s,imageHeight:c,imageUrl:f?u:g,imageTransitionProps:v?O:void 0,onImageLoad:this.onImageLoad,onImageError:this.onImageError},d))))},t}(g.Component)
;T.defaultProps={className:C.a.cardContainer,cardClassName:C.a.card},t.a=T},,,function(e,t,n){"use strict";function i(){return Object(r.createSelector)(c.a,l.a,Object(o.a)(),Object(s.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],Director:n.Director,Writer:n.Writer,studio:n.studio}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(583),l=n(39),c=n(53),u=n(3959);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(c.a,l.a,Object(o.a)(),Object(s.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],Genre:n.Genre}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(583),l=n(39),c=n(53),u=n(3992);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";function i(){return Object(c.a)(Object(d.a)(),Object(v.a)(),Object(u.a)(),function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=s.a.findWhere(t.features,{type:l.b.CONTENT});if(i&&i.directories)return i.directories.reduce(function(e,i){var a=i;return t.isLibraryProvider&&"/hubs"===i.hubKey&&(a=r()({isHomeDirectory:!0},a)),t.protocols&&t.protocols.length>0&&(a=r()({type:t.protocols[0]},a)),n&&g.test(i.key)?e.unshift(n):e.push(a),e},[]);if(t.identifier===p.d){var a=[{hubKey:"/hubs",isHomeDirectory:!0,title:Object(h.default)("Home")},{
key:"/playlists",title:Object(h.default)("Playlists"),type:f.i}];return e.forEach(function(e){var t=e.key,n=e.title,i=e.type,r="/"===t.charAt(0);a.push({key:r?t:"/library/sections/"+t,hubKey:r?void 0:"/hubs/sections/"+t,title:n,type:i})}),a}return[]})}t.a=i;var a=n(6),r=n.n(a),o=n(10),s=n.n(o),l=n(64),c=n(323),u=n(4124),d=n(691),p=n(41),h=n(3),f=n(27),v=n(54),g=/\/watchnow$/i},function(e,t,n){"use strict";function i(e,t,n){if(n)switch(n){case s.i:return[l.a]}switch(e){case"show":case"episode":
case"movie":return[l.c]}return a(e,t,n)}function a(e,t,n){if(n)switch(n){case s.i:switch(t){case"podcast":switch(e){case"track":return[l.d]}break;case"webshow":switch(e){case"episode":return[l.d]}}switch(e){case"track":return[l.f]}}switch(t){case"podcast":switch(e){case"show":return[l.c,l.f,l.e];case"track":return[l.f,l.d]}}switch(e){case"movie":case"show":return[l.c,l.f,l.e];case"season":return[l.c,l.f];case"episode":case"artist":case"album":return[l.c,l.f,l.e];case"track":return[l.c,l.f]
;case"photo":case"photoalbum":return[l.b];case"clip":return[l.c,l.f];case"collection":return[l.c,l.e];default:return[l.c]}}function r(e,t,n,r){return o.c.test(r.identifier)?i(e,t,n):a(e,t,n)}t.a=r;var o=n(41),s=n(33),l=n(68)},function(e,t,n){"use strict";function i(e){return s.a.createElement(c.a,r()({className:d.a.innerEmptyPage,contentClassName:d.a.innerEmptyPageContent,scrollDirection:l.NONE},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(57),c=n(85),u=n(1705),d=n.n(u);t.a=i},function(e,t,n){
"use strict";function i(e){return e.get("ui").get("recordingSchedulePage")}function a(e){return i(e).get("calendar")}function r(e,t,n){var a=i(e),r=Object(M.k)(e,t);if(a.get("isPagePopulated")){var o=a.get("calendar"),s=a.get("mediaSubscriptions");o&&o.server===r&&n(_()),s&&s.server===r&&n(k())}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"INIT_RECORDING_SCHEDULE_PAGE",function(){return D}),n.d(t,"CLEAR_RECORDING_SCHEDULE_PAGE",function(){return C}),
n.d(t,"FETCH_MEDIA_SUBSCRIPTIONS",function(){return j}),n.d(t,"MOVE_MEDIA_SUBSCRIPTION",function(){return P}),n.d(t,"SET_VISIBLE_DAYS",function(){return O}),n.d(t,"GO_TO_TODAY",function(){return T}),n.d(t,"GO_TO_PREVIOUS_RANGE",function(){return E}),n.d(t,"GO_TO_NEXT_RANGE",function(){return w}),n.d(t,"FETCH_CALENDAR",function(){return A}),n.d(t,"PLAY_RECORDING",function(){return x}),n.d(t,"initRecordingSchedulePage",function(){return N}),n.d(t,"clearRecordingSchedulePage",function(){return L}),
n.d(t,"fetchMediaSubscriptions",function(){return k}),n.d(t,"moveMediaSubscription",function(){return R}),n.d(t,"setVisibleDays",function(){return z}),n.d(t,"goToToday",function(){return U}),n.d(t,"goToPreviousRange",function(){return B}),n.d(t,"goToNextRange",function(){return F}),n.d(t,"fetchCalendar",function(){return _}),n.d(t,"playRecording",function(){return V}),n.d(t,"recordingSchedulePageActionHandlers",function(){return H})
;var o,s=n(234),l=n(81),c=n(147),u=n(536),d=n(40),p=n(94),h=n(188),f=n(1721),v=n(1722),g=n(125),m=n(124),y=n(1557),b=n(116),I=n(77),S=n(30),M=n(70),D="ui/recordingSchedulePage/initRecordingSchedulePage",C="ui/recordingSchedulePage/clearRecordingSchedulePage",j="ui/recordingSchedulePage/fetchMediaSubscriptions",P="ui/recordingSchedulePage/moveMediaSubscription",O="ui/recordingSchedulePage/setVisibleDays",T="ui/recordingSchedulePage/goToToday",E="ui/recordingSchedulePage/goToPreviousRange",w="ui/recordingSchedulePage/goToNextRange",A="ui/recordingSchedulePage/fetchCalendar",x="ui/recordingSchedulePage/playRecording",N=Object(d.a)(D),L=Object(d.a)(C),k=Object(d.a)(j),R=Object(d.a)(P),z=Object(d.a)(O),U=Object(d.a)(T),B=Object(d.a)(E),F=Object(d.a)(w),_=Object(d.a)(A),V=Object(d.a)(x),H=Object(g.a)((o={},
o[D]=function(e,t){var n=i(e),a=n.get("mediaSubscriptions"),r=n.get("calendar"),o=Object(M.k)(e,t),s={isPagePopulated:!0,isCalendarPending:!1,isCalendarPopulated:!1,calendarError:null};a&&a.server===o||(s.mediaSubscriptions=new v.a([],{server:o})),r&&r.server===o?r.restoreDefaults():s.calendar=new f.a({},{server:o}),n.set(s)},o[C]=function(e){i(e).set("isPagePopulated",!1)},o[j]=Object(m.a)({key:"mediaSubscriptions",getModel:i}),o[P]=function(e,t){
var n=i(e),a=n.get("mediaSubscriptions"),r=Object(M.d)(e,t),o=r&&a.indexOf(r),s=t.moveIndex;if(o!==s&&o!==s-1){var l=s>o?s-1:s;a.remove(r),a.add(r,{at:l});var c=l>0?a.at(l-1).id:void 0;Object(y.a)(r,c).fail(function(){a.remove(r),a.add(r,{at:o})})}},o[O]=function(e,t,n){a(e).set("visibleDays",t.visibleDays)},o[T]=function(e,t,n){a(e).set("time",Object(c.a)(new Date))},o[E]=function(e,t,n){var i=a(e),r=i.get("visibleDays"),o=Object(l.a)(i.get("time"));i.set("time",Object(c.a)(Object(u.a)(o,r)))},
o[w]=function(e,t,n){var i=a(e),r=i.get("visibleDays"),o=Object(l.a)(i.get("time"));i.set("time",Object(c.a)(Object(s.a)(o,r)))},o[A]=Object(m.a)({key:"calendar",getModel:i}),o[x]=function(e,t,n){var i=t.serverEntityID,a=t.providerEntityID,r=t.linkedKey,o=Object(M.k)(e,t),s=new p.a({key:r},{server:o});s.populate().done(function(){n(Object(I.m)({serverEntityID:i,providerEntityID:a,metadataItemEntityID:s.entityID(),metricsPage:S._6}))})},o[b.b]=function(e,t,n){var i=t.activity
;if(i.type===h.a.PROVIDER_SUBSCRIPTION_PROCESS&&r(e,t,n),i.type===h.a.GRABBER_GRAB){"error"===i.Response.status&&r(e,t,n)}},o))},,function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n(40),a=n(126),r=Object(i.a)(a.S),o=Object(i.a)(a.w),s=Object(i.a)(a.e)},,,,,,function(e,t,n){e.exports={default:n(1867),__esModule:!0}},function(e,t,n){var i=n(345),a=n(501);e.exports=n(422)?function(e,t,n){return i.f(e,t,a(1,n))
}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(348)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(1121),a=n(781);e.exports=Object.keys||function(e){return i(e,a)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),a=n(69),r=n(610),o=n(111),s=n(94),l=i.a.extend({name:"MetadataCollection",
context:["server","provider","section","playlist","channel","identifier","mediaTagPrefix","mediaTagVersion","allowSync","containerKey"],model:s.a,responseType:function(){return Object(r.a)(this.server,this.provider,this.channel)},url:function(){return this.containerKey},augmentResponseText:function(e,t){return t===a.a.xml?Object(o.b)(e):e},splitByType:function(){var e={};return this.each(function(t){var n=t.get("type");e.hasOwnProperty(n)?e[n].push(t):e[n]=[t]}),e}});t.default=l
},function(e,t,n){"use strict";function i(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}t.a=i},function(e,t,n){"use strict";var i=n(17),a=n(14),r={ASCENDING:"asc",DESCENDING:"desc"},o=i.a.extend({name:"SortModel",context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",sessionAttrs:{selected:a.a.boolean,direction:a.a.string},syncedAttrs:{key:a.a.string,descKey:a.a.string,title:a.a.string,isDefault:a.a.boolean,defaultDirection:a.a.string},defaults:{selected:!1},
augmentResponse:function(e){return e.defaultDirection||(e.defaultDirection=e.default||r.ASCENDING),e.isDefault=!!e.default,e.direction||(e.direction=e.defaultDirection),e},reverseSortDirection:function(){var e=this.get("direction")||this.get("defaultDirection");e=e&&e!==r.ASCENDING?r.ASCENDING:r.DESCENDING,this.set("direction",e)}},{directions:r});t.a=o},function(e,t,n){"use strict";function i(e,t){switch(t){case o.SUBSCRIPTION:switch(e){case"1003":
return Object(r.default)("Subscriptions have been temporarily disabled: too many failed attempts. Please try again later.")}}switch(e){case"1001":return Object(r.default)("The username or password is incorrect");case"1003":return Object(r.default)("Sign in has been temporarily disabled: too many failed attempts. Please try again later.");case"1010-login":return Object(r.default)("Login is required");case"1010-password":return Object(r.default)("Password is required");case"1010-email":
return Object(r.default)("Email is required");case"1011-username":return Object(r.default)("Username has already been taken");case"1011-email":return Object(r.default)("Email has already been taken");case"1030":return Object(r.default)("This account only allows signing in with an email address");case"1031":return Object(r.default)("The username or password is incorrect. Repeated attempts may temporarily disable sign in.");case"1032-password":
return Object(r.default)("Password must be at least 8 characters");case"1033-password":return Object(r.default)("Password is too weak");case"1034-password":return Object(r.default)("Password must be different from username or email address");case"1035-email":return Object(r.default)("Email is not a valid email address");case"1036-username":return Object(r.default)("Username must not be an email address");case"1037-username":return Object(r.default)("Username contains invalid characters")
;case"1038-pin":return Object(r.default)("Pin must be 4 digits");case"1039-passwordConfirmation":return Object(r.default)("Confirm Password must match Password");case"1040":case"1044":return Object(r.default)("Invalid Password")}}function a(e,t){if(e){var n=String(e.code);return i(e.code+"-"+e.field,t)||i(n,t)||e.message||Object(r.default)("An unknown error occurred")}}t.a=a;var r=n(3),o={SUBSCRIPTION:"subscription"}},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r={currentState:null,
enterState:function(e){if(e!==this.currentState){var t=this.currentState,n=this.states[e];if(!n)throw new Error("The state machine is unable to enter undefined state: "+e);if(t){var i=this.states[t];if(a.a.isFunction(i.onExit)){if(!1===i.onExit.call(this))return}}if(this.currentState=e,a.a.isFunction(n.onEnter)){if(!1===n.onEnter.apply(this,a.a.rest(arguments)))return void(this.currentState=t)}this.triggerMethod("stateMachineChange",{from:t,to:e})}},enterNextState:function(){var e
;if(this.currentState){e=this.states[this.currentState].nextState}else{if(!this.initialState)throw new Error("An initial state must be defined for the state machine");e=this.initialState}e?this.enterState(e):this.triggerMethod("stateMachineComplete")}};t.a=r},function(e,t,n){"use strict";var i=n(367),a=n(18),r=n(248),o=r.a.extend({getUrl:function(e){if(e){var t=Object(i.a)();return a.join(e,{size:Math.round(this.width*t)})}return e}});t.a=o},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(1187),c=n(367),u=n(101),d=n(16),p=n(62),h=n(1188),f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",v=r.a.ItemView.extend({tagName:"img",background:!1,backgroundSize:"",cache:new l.a,initialize:function(e){e||(e={}),s.a.bindAll(this,"onLoad","onError","loadImage"),this.url=e.url,this.server=e.server,this.placeholder=e.placeholder,this.placeholderClass=e.placeholderClass,this.modelAttribute=e.modelAttribute,
this.ignoreAttributeChanges=e.ignoreAttributeChanges,this.exposeUrl=e.exposeUrl,this.resetOnError=e.resetOnError,this.emptyImage=e.explicitEmpty?"url("+f+")":"",e.background&&(this.background=e.background),e.backgroundSize&&(this.backgroundSize=e.backgroundSize),e.format&&(this.format=e.format),e.quality&&(this.quality=e.quality),s.a.isFunction(e.getUrl)&&(this.getUrl=e.getUrl),this.allowBaseImageBlobs=p.a.get("allowBaseImageBlobs"),
this.allowBaseImagePreloading=p.a.get("allowBaseImagePreloading"),this.setup(e)},setup:function(e){this.setDimensions(e),this.setFilters(e.filters),this.setModel(e.model,e)},setDimensions:function(e){e.width&&e.height&&(this.transcode=!0,this.width=e.width,this.height=e.height)},setFilters:function(e){this.filters=e||void 0},hasFilters:function(){return void 0!==this.filters},setModel:function(e,t){t||(t={}),this.stopListening(),this.src=null,this.model=e,e&&(this.server||(this.server=e.server),
t.url||this.modelAttribute&&(this.url=this.getUrl(e.get(this.modelAttribute)),this.ignoreAttributeChanges||this.listenTo(e,"change:"+this.modelAttribute,this.onChange)))},setElement:function(e){r.a.ItemView.prototype.setElement.apply(this,arguments),this.render({force:!0})},getUrl:function(e){return e},getTranscodeUrl:function(e){if(!this.server||!this.transcode)return e;var t=d.c("appModel"),n=Object(c.a)();return h.a.image(this.server,e,{fallbackServer:t.get("primaryServer"),
width:this.width*n,height:this.height*n,minSize:this.minSize,filters:this.filters,format:this.format,quality:this.quality})},render:function(e){return e||(e={}),this.url||this.placeholder||this.placeholderClass?this.src?(e.force&&this.showImage(this.src),this):(this.isPlaceholderRendered&&this.url||this.showPlaceholder(),this.url&&this.load(this.url,this.transcode).then(this.onLoad,this.onError,this.onLoad),this):this},showPlaceholder:function(){return this.isPlaceholderRendered=!0,
this.$el.removeClass("loaded"),this.placeholderClass?(this.$el.addClass(this.placeholderClass),void this.$el.css("background-image",this.emptyImage)):this.placeholder?void this.showImage(this.placeholder):void this.clearImage()},clearImage:function(){this.background?this.$el.css("background-image",this.emptyImage):this.showImage(f)},showImage:function(e){if(this.background)return void this.showBackgroundImage(e);this.$el.attr("src",e).removeAttr("width").removeAttr("height")},
showBackgroundImage:function(e){this.$el.css("background-image","url("+e+")")},load:function(e){if(!e)return a.a.Deferred().reject().promise();if(e=this.getTranscodeUrl(e),this.exposeUrl&&this.$el.attr("data-image-url",e),this.allowBaseImageBlobs&&u.a.hasBlob&&u.a.hasObjectUrl){var t=this.loadBlob(e);return t=t.then(this.loadImage,null,this.loadImage)}return this.allowBaseImagePreloading?this.loadImage(e):a.a.Deferred().resolve(e).promise()},loadBlob:function(e){var t=a.a.Deferred()
;this.cancel();var n=this.cache.getBlobUrl(e);if(n)return t.resolve(n),t.promise();var i=this.cache.getPlaceholder(e);i&&t.notify(i,!0);var r=new window.XMLHttpRequest;return r.open("GET",e,!0),r.responseType="arraybuffer",this.xhr=r,r.onreadystatechange=s.a.bind(function(){if(4===r.readyState)if(r.onreadystatechange=null,this.xhr=null,200===r.status){var n=new window.Blob([r.response],{type:"image/jpeg"}),i=window.URL.createObjectURL(n);this.cache.store({url:e,blobUrl:i}),t.resolve(i)
}else t.reject()},this),r.send(),t.promise()},loadImage:function(e,t){var n=a.a.Deferred(),i=new window.Image;return i.onload=function(){i.onload=i.onabort=i.onerror=null,t?n.notify(e,i.width,i.height):n.resolve(e,i.width,i.height)},i.onabort=i.onerror=function(){i.onload=i.onabort=i.onerror=null,n.reject()},i.src=e,n.promise()},cancel:function(){this.xhr&&(this.xhr.onreadystatechange=null,this.xhr.abort(),this.xhr=null)},onLoad:function(e,t,n){if(this.backgroundSize){
var i=t&&t>this.width||n&&n>this.height?this.backgroundSize:"auto";this.$el[0].style.backgroundSize=i}this.src=e,this.placeholderClass&&this.$el.removeClass(this.placeholderClass),this.$el.addClass("loaded"),this.showImage(e),this.trigger("load",e,t,n)},onError:function(){this.resetOnError&&this.showPlaceholder(),this.trigger("error")},onClose:function(){this.cancel()},onChange:function(e,t){if(t=this.getUrl(t),this.url===t)return this;this.url=t,this.src=null,this.render()}});t.a=v
},,function(e,t,n){"use strict";function i(e){for(var t=e<0?-1:1,n={},i=e*t,a=-1;++a<l.length;){var r=l[a],o=c[r],s=Math.floor(i/o);n[r]=s&&s*t,i%=o}return n}n.d(t,"a",function(){return a}),n.d(t,"b",function(){return r}),t.c=i;var a=30,r=365,o=864e5*a,s=864e5*r,l=["years","months","days","hours","minutes","seconds","milliseconds"],c={years:s,months:o,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1}},function(e,t,n){"use strict";function i(e){
return c.a.Deferred().resolve(e).promise()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.urlPath,i=void 0===n?"":n,a=t.params,r=void 0===a?{}:a,o=t.type,l=void 0===o?"GET":o,u=p.join([d.a.result(e,"url"),i]),h=p.join(u,s()({},r,{repeat:e.get("repeat")?1:0,own:e.get("own")?1:0,includeChapters:1,includeGeolocation:1})),f=e.provider,v=f.getXHROptions(h,{type:l}),g=e.get("playQueueSelectedItemID");return e.set("isUpdatePending",!0),
c.a.ajax(v).promise().then(function(t){e.get("own")&&"shuffle"!==i&&"unshuffle"!==i&&g&&(g!==e.get("playQueueSelectedItemID")||g!==e.parseResponse(t).playQueueSelectedItemID)||e.set(e.parse(t));var n=e.get("playQueueItems"),a=e.get("currentIndex");return a>=0&&a<n.length?c.a.Deferred().resolve(e).promise():c.a.Deferred().reject().promise()}).always(function(){e.set("isUpdatePending",!1)})}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
;return e.get("isLocal")?i(e):a(e,t)}t.a=r;var o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=n(10),d=n.n(u),p=n(18)},function(e,t,n){"use strict";function i(e){var t=e.metadataItemModel,n=e.listType,i=t.get("playlistType");if(i)return i;var a=t.get("subtype");if(a===u.b)return c.a;var o=t.get("type");return o===d.d?r(null,a):r(n,o)}function a(e){var t=e.metadataListModel,n=e.listType;return t.get("firstItemSubtype")===u.b?c.a:r(n,t.get("firstItemType"))}function r(e,t){var n=void 0;return e&&(n=d.q(e)),
n||(n=d.q(t)),n&&n.mediaType}function o(e){var t=e.type,n=e.metadataType,o=e.metadataItemModel,s=e.metadataItemModels,c=e.metadataListModel;return t||(n?r(n):o?i(e):s&&s.length?i(l()({},e,{metadataItemModel:s[0]})):c?a(e):void 0)}t.a=o;var s=n(6),l=n.n(s),c=n(63),u=n(106),d=n(27)},function(e,t,n){"use strict";function i(e){var t=e.get("remotePlayer");return t?t.get("protocol")===s.a?r:o:a}t.a=i;var a=n(635),r=n(2322),o=n(2325),s=n(843)},function(e,t,n){"use strict";function i(e){return u[e]}
function a(e){for(var t in u){if(e===u[t])return t}}n.d(t,"c",function(){return s}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c}),t.d=i,t.e=a;var r,o=n(303),s="video",l="music",c="photo",u=(r={},r[o.c]=s,r[o.a]=l,r[o.b]=c,r)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.kind,i=e.size,a=e.direction,o=e.isSelected;return r()("div",{className:(t||"")+" "+(p.a[a]||"")+" "+(p.a[n]||"")+" "+(p.a[i]||"")+" "+(o&&p.a.isSelected||""||"")})}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(233)),c=n(51),u=n(52),d=n(2391),p=n.n(d);i.defaultProps={className:p.a.disclosureArrow,direction:l.DOWN,kind:c.DEFAULT,size:u.MEDIUM,isSelected:!1},t.a=i},function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=0,n=t.length;e<n;e++){var i=t[e];"function"==typeof i&&i.apply(void 0,arguments)}}}t.a=i},function(e,t,n){"use strict";n.d(t,"e",function(){return d}),
n.d(t,"f",function(){return p}),n.d(t,"b",function(){return h}),n.d(t,"g",function(){return f}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return g}),n.d(t,"h",function(){return m}),n.d(t,"a",function(){return y}),n.d(t,"j",function(){return b}),n.d(t,"i",function(){return S});var i=n(147),a=n(536),r=n(1253),o=n(1254),s=n(1255),l=n(1256),c=n(3),u=n(230),d="real-time",p="twelve-hours",h="day",f="week",v="month",g="ninety-days",m="year",y="all-time",b={YEAR:0,MONTH:1,WEEK:2,DAY:3,HOUR:4,
MINUTES:5,REAL_TIME:6},I=Object(u.a)(["key"],[{key:d,title:function(){return Object(c.default)("Real Time")},timespan:b.REAL_TIME,after:function(){}},{key:p,title:function(){return Object(c.default)("Last 12 Hours")},timespan:b.HOUR,after:function(){return Object(i.a)(Object(r.a)(new Date,12))},dateFormat:"H:00",longDateFormat:"H:00"},{key:h,title:function(){return Object(c.default)("Last 24 Hours")},timespan:b.HOUR,after:function(){return Object(i.a)(Object(a.a)(new Date,1))},dateFormat:"HH",
longDateFormat:"H:00"},{key:f,title:function(){return Object(c.default)("Last 7 Days")},timespan:b.DAY,after:function(){return Object(i.a)(Object(s.a)(new Date,1))},dateFormat:"MMM d",longDateFormat:"MMMM do"},{key:v,title:function(){return Object(c.default)("Last 30 Days")},timespan:b.WEEK,after:function(){return Object(i.a)(Object(o.a)(new Date,1))},dateFormat:"MMM d",longDateFormat:"MMMM do"},{key:g,title:function(){return Object(c.default)("Last 90 Days")},timespan:b.WEEK,after:function(){
return Object(i.a)(Object(a.a)(new Date,90))},dateFormat:"MMM d",longDateFormat:"MMMM do"},{key:m,title:function(){return Object(c.default)("Last Year")},timespan:b.MONTH,after:function(){return Object(i.a)(Object(l.a)(new Date,1))},dateFormat:"MMM",longDateFormat:"MMMM"},{key:y,title:function(){return Object(c.default)("All Time")},timespan:b.MONTH,after:function(){return 0},dateFormat:"MMM yy",longDateFormat:"MMMM yyyy"}]),S=I.get;I.getAll},,,,,,,,,,,,,,,,function(e,t,n){"use strict"
;function i(){function e(e,t){var n=[P,T,w,x,t];for(var i in e)n.push(e[i]);var a=n.join(":");if(a===V)return H;k=e.listTop,R=e.listLeft;var s=(e.viewportWidth||0)-T-x,l=(e.viewportHeight||0)-P-w;g===r?s-=R:l-=k,s=Math.max(0,s),l=Math.max(0,l),z=N({innerViewportWidth:s,innerViewportHeight:l,innerHorizontalPadding:M,innerVerticalPadding:C}),U=L({cellWidth:z,innerViewportWidth:s,innerViewportHeight:l,innerHorizontalPadding:M,innerVerticalPadding:C}),B=Math.max(0,m||Math.floor((l+C)/(U+C))),
F=Math.max(0,y||Math.floor((s+M)/(z+M))),_=F*B;var c=0,u=0;return g===r&&F?(c=F*(z+M)-M,u=Math.ceil(t/F)*(U+C)-C):g===o&&B&&(c=Math.ceil(t/B)*(z+M)-M,u=B*(U+C)-C),Q={},V=a,H={width:c+T+x,height:u+P+w}}function t(e){var t=e;if(Q[t])return Q[t];var n=l(e),i=s(e),a={column:n,row:i,cellX:n*(z+M)+R+x,cellY:i*(U+C)+k+P,cellWidth:z,cellHeight:U};return Q[t]=a,a}function n(e,t,n){
var i=U+C,o=z+M,s=e-k,l=t-R,c=g===r?F:B,u=g===r?s/i:l/o,d=_+2*c+I*c*2,p=Math.ceil(u)*c,h=p+_-1,f=Math.floor(u)*c,v=p+_+c-1,m=f-c*I,y=Object(a.a)(m,n)+d-1;return y>=n&&(m=n-d),{visibleStartIndex:Object(a.a)(p,n),visibleEndIndex:Object(a.a)(h,n),partiallyVisibleStartIndex:Object(a.a)(f,n),partiallyVisibleEndIndex:Object(a.a)(v,n),renderStartIndex:Object(a.a)(m,n),renderEndIndex:Object(a.a)(y,n)}}function i(e,t,n,i){var s=g===n,l=g===r&&1===F||g===o&&1===B;if(s&&l)return Object(a.a)(e+t,i)
;var h=void 0,f=void 0,v=void 0;n===r&&(h=s?F*t:t,f=u(e,i),v=p(e,i)),n===o&&(h=s?B*t:t,f=c(e,i),v=d(e,i));var m=e+h;return f||v?Math.max(Math.min(m,v),f):e}function s(e){return g===r?Math.floor(e/F):e%B}function l(e){return g===r?e%F:Math.floor(e/B)}function c(e,t){var n=s(e);return g===r?n*F:n}function u(e,t){var n=l(e);return g===r?n:n*B}function d(e,t){if(g===r){var n=c(e,t);return Object(a.a)(n+(F-1),t)}var i=t-1,o=s(e),u=l(i),d=(u+1)*B-(B-o);return d<t?d:i-t%B-(B-1-o)}function p(e,t){
if(g===r){var n=t-1,i=l(e),o=s(n),c=(o+1)*F-(F-i);return c<t?c:n-t%F-(F-1-i)}var d=u(e,t);return Object(a.a)(d+(B-1),t)}function h(e,t){var n=s(e),i=s(t),a=l(e),r=l(t);return Math.sqrt(Math.pow(i-n,2)+Math.pow(r-a,2))}
var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=f.direction,g=void 0===v?r:v,m=f.rows,y=f.columns,b=f.overscan,I=void 0===b?0:b,S=f.innerHorizontalPadding,M=void 0===S?0:S,D=f.innerVerticalPadding,C=void 0===D?0:D,j=f.outerPaddingTop,P=void 0===j?0:j,O=f.outerPaddingRight,T=void 0===O?0:O,E=f.outerPaddingBottom,w=void 0===E?0:E,A=f.outerPaddingLeft,x=void 0===A?0:A,N=f.getCellWidth,L=f.getCellHeight,k=void 0,R=void 0,z=void 0,U=void 0,B=void 0,F=void 0,_=void 0,V=void 0,H=void 0,Q=void 0
;return{options:f,getListStyle:e,getRelativeIndex:i,getCoordinateDistance:h,getPositionForIndex:t,getRangesForPosition:n}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),t.c=i;var a=(n(37),n(2888)),r="vertical",o="horizontal"},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),Object(i.createSelector)(function(e){return e.ui.dvrSettingsUI},function(e){var t=e.dvrSetup.setupErrorMessages;return t.length?t[0].message:null}));t.a=a},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className;return r()(l.a,{className:n},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(88)),c=n(2947),u=n.n(c);i.defaultProps={className:u.a.footer},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.selectedClassName,i=e.circleClassName,a=e.iconClassName,o=e.title,l=e.isSelected,u=c()(e,["className","selectedClassName","circleClassName","iconClassName","title","isSelected"]);return p.a.createElement(h.a,r()({
className:(t||"")+" "+(l&&n||""||""),"aria-label":l?Object(f.default)("Deselect {title}",{title:o}):Object(f.default)("Select {title}",{title:o})},u),s()("div",{className:i,"data-qa-id":"multipleSelectButton"},void 0,s()(v.a,{name:"plex-icon-selected-560",className:a})))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(3),v=n(26),g=n(2948),m=n.n(g);i.defaultProps={className:m.a.selectButton,selectedClassName:m.a.isSelected,
circleClassName:m.a.selectCircle,iconClassName:m.a.selectedIcon},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=s()(e,["children","className"]);return u.a.createElement("p",r()({},i,{className:n}),t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(2959),p=n.n(d);i.defaultProps={className:p.a.help},t.a=i},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(18),c=n(362),u=n(3),d=n(145),p=n(693),h=n(1428),f=n(3043),v=n(3044),g=r.a.Layout.extend({ui:{formGroup:".form-group"},onlyAfterRender:["showValidationResult"],serializeData:function(){var e={};return this.model.isNew()?e.add=!0:e.edit=!0,e.section=this.model.toJSON(),e},showValidationResult:function(e){var t=this.ui.formGroup;t.removeClass("has-error"),s.a.each(e,function(e){t.filter("."+e+"-group").addClass("has-error")}),
this.trigger(e.length?"invalid":"valid")},createMenuOptions:function(e,t){return s.a.map(e,function(e){return'<option value="'+e.value+'"'+(e.value===t?" selected":"")+">"+e.label+"</option>"}).join("\n")},getSectionType:function(){if(this.model.sectionType)return this.model.sectionType;var e=this.model.get("type"),t=d.f.get(e);return"movie"===e&&"com.plexapp.agents.none"===this.model.get("agent")&&(t=d.f.get("videos")),this.model.sectionType=t,t},setSectionType:function(e){
this.model.sectionType=e},populateAgents:function(){var e=this.getSectionType();return e?(this.model.agents||(this.model.agents=new p.a([],{server:this.model.server,mediaTypeID:e.typeID})),this.model.agents.populate().then(function(e){return e})):a.a.Deferred().reject().promise()},populateScanners:function(){var e=this.getSectionType();return e?(this.model.scanners||(this.model.scanners=new v.a([],{server:this.model.server,sectionTypeID:e.typeID})),
this.model.scanners.populate().then(function(e){return e})):a.a.Deferred().reject().promise()},populateAgentsProxy:function(){var e=this.getSectionType().exclusiveAgents,t=new h.a(this.model.agents,e,this.model.get("agent"));return this.model.agentsProxy=t,a.a.Deferred().resolve(t).promise()},populateScannersProxy:function(){var e=this.getSectionType().exclusiveScanners,t=new f.a(this.model.scanners,e,this.model.get("scanner"));return this.model.scannersProxy=t,
a.a.Deferred().resolve(t).promise()},populateSectionSettings:function(){var e=this;if(!this.model.server.supports("sectionSettings"))return a.a.Deferred().resolve().promise();if(!this.model.settings){var t=new c.a([],{server:this.model.server});if(this.model.isNew()){var n=this.getSectionType(),i=this.model.server.hasOwnerFeature("photo_autotags");"photos"===n.key&&i&&this.model.set("enableAutoPhotoTags",!0);var r={type:n.typeID,agent:this.model.get("agent"),
enableAutoPhotoTags:this.model.get("enableAutoPhotoTags")};t.url=l.join(["/library/sections/prefs"],r)}else t.url=l.join(["/library/sections/",this.model.id,"/prefs"]);this.model.settings=t}return this.model.settings.populate().then(function(){return!(!e.model.isNew()||"music"!==e.model.get("type")||!e.model.server.supports("premiumMusic")||e.model.settings.findWhere({id:"importFromiTunes"})||!e.model.server.get("pmp").get("settings").findWhere({id:"iTunesLibraryXmlPath"
}))&&e.model.settings.unshift({type:"bool",id:"importFromiTunes",value:!1,label:Object(u.default)("Import from iTunes"),summary:Object(u.default)("Importing from iTunes will import your music playlists. It will also import your ratings, the date you added the music, as well as play and skip counts for tracks in your library.")}),e.model.settings})},populateSectionAgentSettings:function(){if(!this.model.agentSettings){var e=new c.a([],{server:this.model.server,
url:l.join(["/:/plugins/",this.model.get("agent"),"/prefs"])});this.model.agentSettings=e}return this.model.agentSettings.populate()},onModalClose:function(){this.model.scanners=null,this.model.scannersProxy=null,this.model.agents=null,this.model.agentsProxy=null,this.model.settings=null}});t.a=g},function(e,t,n){"use strict";function i(e,t){return s[e].localeCompare(s[t])}t.c=i,n.d(t,"a",function(){return l}),n.d(t,"d",function(){return c});var a,r=n(59),o=n.n(r),s=(a={aa:"Afaraf",
af:"Afrikaans",ab:"Abkhazian",ak:"Akan",sq:"Shqip",am:"Amharic",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",an:"Aragon\xe9s",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",as:"Assamese",av:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0",ae:"avesta",ay:"aymar aru",az:"az\u0259rbaycan dili",ba:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435",bm:"bamanankan",eu:"euskara",be:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bn:"Bengali",
bh:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940",bi:"Bislama",bs:"bosanski jezik",br:"brezhoneg",bg:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a",my:"Burmese",ca:"Catal\xe0",ch:"Chamoru",ce:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442",cu:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a",cv:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438",kw:"Kernewek",co:"corsu",
cr:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423",dv:"Divehi",dz:"\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41",en:"English","en-GB":"English (UK)",eo:"Esperanto",et:"eesti",ee:"E\u028begbe",fo:"f\xf8royskt",fj:"vosa Vakaviti",fy:"Frysk",ff:"Fulfulde",ka:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",gd:"G\xe0idhlig",ga:"Gaeilge",gl:"Galego",gv:"Gaelg",gn:"Ava\xf1e&apos;\u1ebd",gu:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",ht:"Krey\xf2l ayisyen",ha:"\u0647\u064e\u0648\u064f\u0633\u064e",hz:"Otjiherero",
hi:"\u0939\u093f\u0928\u094d\u0926\u0940",ho:"Hiri Motu",hr:"hrvatski",ig:"As\u1ee5s\u1ee5 Igbo",is:"\xcdslenska",io:"Ido",ii:"\ua188\ua320\ua4bf Nuosuhxop",iu:"\u1403\u14c4\u1483\u144e\u1450\u1466",ie:"Interlingue",ia:"Interlingua",id:"Bahasa Indonesia",ik:"I\xf1upiaq",jv:"basa Jawa",kl:"kalaallisut",kn:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",ks:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940",kr:"Kanuri",kk:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456",km:"Khmer",ki:"G\u0129k\u0169y\u0169",
rw:"Ikinyarwanda",ky:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438",kv:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432",kg:"KiKongo",kj:"Kuanyama",ku:"Kurd\xee",lo:"Lao",la:"latine",lv:"latvie\u0161u valoda",li:"Limburgs",ln:"Ling\xe1la",lt:"lietuvi\u0173 kalba",lb:"L\xebtzebuergesch",lu:"Luba-Katanga",lg:"Luganda",mk:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a",mh:"Kajin M\u0327aje\u013c",ml:"Malayalam",mi:"te reo M\u0101ori",
mr:"\u092e\u0930\u093e\u0920\u0940",ms:"bahasa Melayu",mg:"Malagasy fiteny",mt:"Malti",mo:"Moldavian",mn:"\u043c\u043e\u043d\u0433\u043e\u043b",na:"Ekakair\u0169 Naoero",nv:"Din\xe9 bizaad",nr:"isiNdebele (North)",nd:"isiNdebele (South)",ng:"Owambo",ne:"\u0928\u0947\u092a\u093e\u0932\u0940",nn:"Norsk nynorsk",nb:"Norsk bokm\xe5l",ny:"chiChe\u0175a",oc:"Occitan",oj:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0",or:"Oriya",om:"Afaan Oromoo",
os:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433",pa:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",pi:"\u092a\u093e\u0934\u093f",ps:"\u067e\u069a\u062a\u0648",qu:"Runa Simi",rm:"rumantsch grischun",ro:"rom\xe2n\u0103",rn:"kiRundi",sg:"y\xe2ng\xe2 t\xee s\xe4ng\xf6",sa:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",sr:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a",si:"Sinhala",sk:"sloven\u010dina",sl:"Sloven\u0161\u010dina",se:"Davvis\xe1megiella",
sm:"gagana fa&apos;a Samoa",sn:"chiShona",sd:"\u0938\u093f\u0928\u094d\u0927\u0940",so:"Soomaaliga",st:"Sesotho",sc:"sardu",ss:"SiSwati",su:"Basa Sunda",sw:"Kiswahili",ty:"Reo Tahiti",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",tt:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",te:"Telugu",tg:"\u0442\u043e\u04b7\u0438\u043a\u04e3",tl:"Wikang Tagalog",th:"\u0e44\u0e17\u0e22",bo:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42",ti:"Tigrinya",to:"faka Tonga",tn:"Setswana",ts:"Xitsonga",tk:"T\xfcrkmen",tw:"Twi",
ug:"Uy\u01a3urq\u0259",uk:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648",uz:"O&apos;zbek",ve:"Tshiven\u1e13a",vi:"Ti\u1ebfng Vi\u1ec7t",vo:"Volap\xfck",cy:"Cymraeg",wa:"Walon",wo:"Wollof",xh:"isiXhosa",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",yo:"Yor\xf9b\xe1",za:"Sa\u026f cue\u014b\u0185",zu:"isiZulu",pb:"Portugu\xeas (Brasil)",fr:"Fran\xe7ais","fr-CA":"Fran\xe7ais Canadien",de:"Deutsch",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomeksi",
nl:"Nederlands",it:"Italiano",es:"Espa\xf1ol","es-419":"Espa\xf1ol (Latinoam\xe9rica)",pl:"Polski",hu:"Magyar",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",tr:"T\xfcrk\xe7e",zh:"\u4e2d\u6587","zh-TW":"\u81fa\u8a9e",ru:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a",he:"\u05e2\u05d1\u05e8\u05d9\u05ea",ja:"\u65e5\u672c\u8a9e",pt:"Portugu\xeas","pt-BR":"Portugu\xeas Brasileiro",ko:"\ud55c\uad6d\uc5b4",cs:"\u010de\u0161tina",fa:"\u0641\u0627\u0631\u0633\u06cc"},
a.xx="Unknown",a.xn="None",a),l=["xx","xn"],c=function(){var e=o()(s).filter(function(e){return-1===l.indexOf(e)});return e.sort(i),e.concat(l)}();t.b=s},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(16),c=n(43),u=n(1431),d=n(803),p=n(102),h=n(3),f=n(430),v=n(3086),g=n(96),m=n(3090),y=n(3092),b=n(3097),I=n(3103),S=n(3105),M=n(3108),D=n(3110),C=n.n(D),j=g.a.extend({name:"editFriendModal",className:"edit-friend-modal modal modal-lg fade",template:C.a,panes:{
username:M.a,general:m.a,ownedServer:b.a,sharedServer:S.a,restrictions:I.a},ui:{poster:".modal-poster",title:".modal-title",message:".form-message",nextBtn:".next-btn",submitBtn:".submit-btn"},regions:{nav:".modal-nav-pane",body:".modal-body-pane"},events:o.a.extend({"submit #share-server-form":"onSubmit"},g.a.prototype.events),initialize:function(e){g.a.prototype.initialize.apply(this,arguments),e||(e={}),this.type=e.type||"friend",this.isAdmin=e.isAdmin,this.defaultPaneType=e.defaultPaneType,
this.defaultPaneID=e.defaultPaneID,"home"===this.type&&this.initHomeUser(e),this.initModel(e),this.initServerOverviews(e),this.initServerShares(e),this.image=new f.a({model:this.model,type:"friend",width:40}),this.listenTo(this.body,"show",this.onShowPane)},initHomeUser:function(e){var t=l.c("appModel");if(this.homeUser=e.homeUser,this.homeUser){var n=t.get("user"),i=n.get("pmp").get("friends");this.model=i.findWhere({id:e.homeUser.id}),this.tempHomeUser=this.homeUser.clone()
}else this.tempHomeUser=new d.a({admin:!1},{server:t.get("user").server})},initModel:function(e){var t=l.c("appModel");this.model?this.tempModel=this.model.cloneDeep():(this.tempModel=new u.a({},{server:t.get("user").server}),this.tempModel.parseServers({Server:[]}))},initServerOverviews:function(e){var t=l.c("appModel"),n=t.get("servers"),i=t.get("user"),a=this.tempModel.get("serverOverviews");a||(a=new v.a([],{server:i.server,parent:this.tempModel}),this.tempModel.set("serverOverviews",a))
;var r=n.filter(function(e){var t=!e.get("shared")&&!e.get("cloud"),n=e.get("isFullServer")||e.get("isCloudSyncServer");return e.id&&t&&n});o.a.each(r,function(e){a.add({machineIdentifier:e.id,name:e.get("friendlyName")}).populate()})},initServerShares:function(e){this.tempModel.get("serverShares").each(function(e){e.populate()})},serializeData:function(){return{type:this.type,title:this.tempModel.get("title")}},showNextPane:function(e){var t,n={}
;if(e||(e=this.tempModel.isNew()?"username":this.defaultPaneType||"general"),"ownedServer"===e||"sharedServer"===e){var i,a;if("ownedServer"===e?(i=this.tempModel.get("serverOverviews"),a="serverOverview"):(i=this.tempModel.get("serverShares"),a="serverShare"),i.length){var r;this.defaultPaneID&&(r=i.findWhere({machineIdentifier:this.defaultPaneID})),r||(r=i.first()),t=r.id,n[a]=r}else e="general"}t||(t=e),this.showPane(e,t,n)},showPane:function(e,t,n){
this.currentPane&&(this.currentPane.flushChanges(),this.stopListening(this.currentPane),"username"===this.currentPane.paneID&&(this.ui.title.text(this.tempModel.get("username")||this.tempModel.get("title")),this.findExistingFriend()));var i=this.panes[e],a=new i(o.a.extend({paneID:t,model:this.tempModel,homeUser:this.tempHomeUser,type:this.type,isAdmin:this.isAdmin},n));return this.listenTo(a,{"change:pane":this.onChangePane,"change:errorMessage":this.onErrorMessageChange,
"enable:submit":this.onEnableSubmit,"destroy:homeUser":this.onHomeUserDestroy,"destroy:friend":this.onFriendDestroy,"destroy:serverShare":this.onServerShareDestroy,"disable:guest":this.onGuestDisable}),this.currentPane=a,this.nav.currentView.selectItem(t),this.body.show(a),a},getSubmitBtn:function(){return this.currentPane&&"username"===this.currentPane.paneID?this.ui.nextBtn:this.ui.submitBtn},findExistingFriend:function(){
var e,t=l.c("appModel"),n=t.get("user"),i=n.get("pmp").get("friends"),a=this.tempModel.get("username");if(this.tempModel.get("restricted")?e=i.findWhere({restricted:!0,title:a}):(e=i.findWhere({username:a}))||(e=i.findWhere({email:a})),e){var r=this.tempModel.get("serverOverviews");this.model=e,this.tempModel=e.cloneDeep(),this.tempModel.set("serverOverviews",r),this.initServerShares(),this.image.setModel(this.model),this.image.render(),this.nav.currentView.setModel(this.tempModel)}},
sendRequests:function(){var e=this.tempHomeUser&&this.tempHomeUser.isNew(),t=!e&&this.tempModel.isNew(),n=[];n.push(this.sendFriendInvite()),n.push(this.sendHomeInvite());var i=a.a.when.apply(a.a,n);return i=i.then(o.a.bind(function(){return Array.prototype.push.apply(n,this.sendServerShareInvites()),this.tempModel.isNew()||n.push(this.tempModel.save({},{parse:!1})),this.tempHomeUser&&!e&&n.push(this.tempHomeUser.save()),a.a.when.apply(a.a,n)},this)),i.done(o.a.bind(function(){
var e=l.c("appModel"),t=e.get("user");t.get("pmp").get("friends").fetch(),"home"===this.type&&t.get("homeUsers").fetch(),this.tempModel.get("restricted")||t.get("pmp").get("sentInvites").fetch(),this.hide()},this)),i.fail(o.a.bind(function(n){var i=p.a.parseXML(n.responseText),a=i&&i.status;o.a.isString(a)||(a=e?Object(h.default)("This user could not be added to your home."):t?Object(h.default)("An invite could not be sent to this user."):Object(h.default)("Your changes could not be saved.")),
s.a.trigger("show:alert",{type:"error",message:a})},this)),i},sendFriendInvite:function(){if("friend"===this.type){var e=this.tempModel.get("serverShares").getActiveCount();return this.tempModel.isNew()&&!e?this.tempModel.save({user:this.tempModel.get("username")}):void 0}},sendHomeInvite:function(){if("home"===this.type&&this.tempHomeUser.isNew()){var e=this.tempHomeUser.save();return e.done(o.a.bind(function(){if(this.tempHomeUser.get("restricted")){
this.tempModel.set("id",this.tempHomeUser.id);l.c("appModel").get("user").set("home",!0)}this.showHomeWarnings()},this)),e}},showHomeWarnings:function(){c.a.execute("showHomeWarningsModal")},sendServerShareInvites:function(){var e=this.model&&this.model.get("serverShares").filterByOwned(),t=this.tempModel.get("serverShares").filterByOwned(),n=e?e.pluck("machineIdentifier"):[],i=t?t.pluck("machineIdentifier"):[],a=o.a.union(n,i),r=[];return o.a.each(a,function(n){var i=e&&e.findWhere({
machineIdentifier:n}),a=t&&t.findWhere({machineIdentifier:n}),o=i&&i.isActive();a&&a.isActive()?r.push(c.a.execute("shareServer",{user:this.tempModel,serverShare:a})):o&&r.push(i.destroy({wait:!0}))},this),r},onRender:function(){g.a.prototype.onRender.apply(this,arguments),this.image.setElement(this.ui.poster);var e=new y.a({model:this.tempModel});this.listenTo(e,"change:pane",this.onChangePane),this.nav.show(e),this.showNextPane()},onClose:function(){this.image.close()},
onChangePane:function(e,t,n){t||(t=e),this.showPane(e,t,n)},onShowPane:function(){var e="username"===this.currentPane.paneID;this.nav.currentView.toggleDisabled(e),this.ui.nextBtn.toggleClass("hidden",!e),this.ui.submitBtn.toggleClass("hidden",e)},onErrorMessageChange:function(e){this.ui.message.text(e)},onEnableSubmit:function(e){this.getSubmitBtn().toggleClass("disabled",!e)},onHomeUserDestroy:function(){if(this.homeUser){c.a.execute("removeHomeUser",{homeUser:this.homeUser
}).done(o.a.bind(this.hide,this))}},onFriendDestroy:function(){if(this.model){c.a.execute("removeFriend",{friend:this.model}).done(o.a.bind(this.hide,this))}},onServerShareDestroy:function(e){c.a.execute("removeServerShare",{serverShare:e}).done(o.a.bind(function(){this.model.get("serverShares").remove(e.id),this.showNextPane("general")},this))},onGuestDisable:function(){var e=l.c("appModel");c.a.execute("toggleGuest",{user:e.get("user"),enable:!1}).done(o.a.bind(this.hide,this))},
onSubmit:function(e){e.preventDefault();var t=this.getSubmitBtn();if(!t.isDisabled()){if("username"===this.currentPane.paneID)return void this.showNextPane("ownedServer");t.addClass("active"),this.currentPane.flushChanges(),this.sendRequests().fail(o.a.bind(function(){this.ui.submitBtn.removeClass("active")},this))}}});t.a=j},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e.some(function(e){return e.refreshing})})}t.a=i
;var a=n(4),r=(n.n(a),n(691))},function(e,t,n){"use strict";function i(e,t,n){return t.all||(t.all=[]),e.index=t.all.length,o(e,{filter:n.get("filter"),timeFilterStart:n.get("timeFilterStart"),timeFilterEnd:n.get("timeFilterEnd"),logLevels:n.get("logLevels")})?t.filtered&&t.filtered.push(e):t.filtered||(t.filtered=t.all.slice(0)),t.all.push(e),t}function a(e){return e.get("ui").get("serverLogPage")}function r(e){return e.split(/\s+/).map(function(e){return new RegExp(Object(g.a)(e),"i")})}
function o(e,t){var n=t.filter,i=t.timeFilterStart,a=t.timeFilterStartIndex,o=t.timeFilterEnd,s=t.timeFilterEndIndex,l=t.logLevels;if(l.length&&-1===l.indexOf(e.level))return!1;if(i||null!=a||o||null!=s){var c=void 0,u=void 0,d=void 0;if(null!=a&&null!=s||(c=Object(b.a)(e.time),null==a&&(u=i&&Object(b.a)(i)),null==s&&(d=o&&Object(b.a)(o))),null!=a&&a>e.index||null!=s&&s<e.index||u&&Object(h.a)(u,c)||d&&Object(f.a)(d,c))return!1}return!n||(t.regexps||r(n)).every(function(t){
return t.test(e.message)||t.test(e.thread)})}function s(e,t){var n=r(t.filter);return e.filter(function(e){return o(e,p()({},t,{regexps:n}))})}function l(e){var t=e.get("filter"),n=e.get("timeFilterStart"),i=e.get("timeFilterEnd"),a=e.get("logLevels"),r=e._unfilteredLogLines,o=Object(y.a)(r,n),l=Object(y.b)(r,i),c=s(r,{logLevels:a,filter:t,timeFilterStart:n,timeFilterStartIndex:-1===o?null:o,timeFilterEndIndex:-1===l?null:l,timeFilterEnd:i});e.set({logLines:c,unfilteredLogLinesCount:r.length,
isTimeFilterStartValid:-1!==o,isTimeFilterEndValid:-1!==l})}function c(e){if(!e)return null;var t=e.match(N),n=t[1],i=t[2],a=t[3],r=t[4];return{time:n.trim(),thread:i.trim(),level:L[a],message:r.trim()}}n.d(t,"b",function(){return M}),n.d(t,"c",function(){return D}),n.d(t,"d",function(){return C}),n.d(t,"a",function(){return j}),n.d(t,"i",function(){return P}),n.d(t,"j",function(){return O}),n.d(t,"e",function(){return T}),n.d(t,"h",function(){return E}),n.d(t,"l",function(){return w}),
n.d(t,"k",function(){return A}),n.d(t,"g",function(){return x})
;var u,d=n(6),p=n.n(d),h=n(942),f=n(943),v=n(40),g=n(231),m=n(125),y=n(3122),b=n(3123),I="ui/serverLogPageActions/clearLog",S="ui/serverLogPageActions/toggleRaw",M=Object(v.a)("ui/serverLogPageActions/changeTextFilter"),D=Object(v.a)("ui/serverLogPageActions/changeTimeFilter"),C=Object(v.a)("ui/serverLogPageActions/clearFilter"),j=Object(v.a)("ui/serverLogPageActions/addLogLine"),P=Object(v.a)("ui/serverLogPageActions/resetLogLevels"),O=Object(v.a)("ui/serverLogPageActions/toggleLogLevel"),T=Object(v.a)(I),E=Object(v.a)("ui/serverLogPageActions/loadLogfile"),w=Object(v.a)("ui/serverLogPageActions/toggleTimeFilter"),A=Object(v.a)(S),x=Object(v.a)("ui/serverLogPageActions/highlightLine"),N=/^([^[]+)\[([^\]]+)]\s+([^\s]+)\s+-\s+(.*)/,L={
ERROR:0,WARN:1,INFO:2,DEBUG:3,VERBOSE:4},k=Object(m.a)((u={},u["ui/serverLogPageActions/addLogLine"]=function(e,t){var n=t.message,r=a(e),o=r.get("logLines").length!==r._unfilteredLogLines.length,s=o?r.get("logLines"):null,l=o?s.length:null,c=i(n,{all:r._unfilteredLogLines.slice(0),filtered:s},r);c.filtered&&c.filtered.length!==l&&(c.filtered=c.filtered.slice(0)),r._unfilteredLogLines=c.all,r.set({unfilteredLogLinesCount:c.all.length,logLines:c.filtered||c.all})},
u["ui/serverLogPageActions/changeTextFilter"]=function(e,t){var n=a(e),i=t.filter;n.set({filter:i}),l(n)},u["ui/serverLogPageActions/changeTimeFilter"]=function(e,t){var n=a(e),i=t.timeFilterStart,r=t.timeFilterEnd;n.set({showTimeFilter:!(!i&&!r),timeFilterStart:i,timeFilterEnd:r}),l(n)},u["ui/serverLogPageActions/clearFilter"]=function(e){var t=a(e);t.set({filter:"",timeFilterStart:"",timeFilterEnd:"",logLevels:[]}),l(t)},u["ui/serverLogPageActions/resetLogLevels"]=function(e){var t=a(e)
;t.set({logLevels:[]}),l(t)},u["ui/serverLogPageActions/toggleLogLevel"]=function(e,t){var n=a(e),i=n.get("logLevels"),r=i.slice(0),o=i.indexOf(t.logLevel);-1===o?r.push(t.logLevel):r.splice(o,1),n.set({logLevels:r}),l(n)},u[I]=function(e){var t=a(e);t.set({logLines:[],unfilteredLogLinesCount:0,highlightedLineIndex:null,showRawText:!1}),t._unfilteredLogLines=[]},u["ui/serverLogPageActions/loadLogfile"]=function(e,t){var n=t.result,r=a(e),o={all:[]};r.set({logLines:[],unfilteredLogLinesCount:0})
;try{n.split(/\n+/).map(c).forEach(function(e){e&&(o=i(e,o,r))}),r._unfilteredLogLines=o.all,r.set({unfilteredLogLinesCount:o.all.length,logLines:o.filtered||o.all})}catch(e){}},u["ui/serverLogPageActions/toggleTimeFilter"]=function(e){var t=a(e),n=t.get("showTimeFilter");t.set({timeFilterStart:"",timeFilterEnd:"",showTimeFilter:!n}),l(t)},u[S]=function(e){var t=a(e);t.set("showRawText",!t.get("showRawText"))},u["ui/serverLogPageActions/highlightLine"]=function(e,t){
a(e).set("highlightedLineIndex",t.index)},u));t.f=k},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(3),s=n(3186),l=n.n(s),c=i.a.Layout.extend({className:"form-group",template:l.a,isDisabled:!0,isActive:!1,ui:{submitBtn:".submit-btn",message:".form-message"},events:{"change #server-settings-form input[name]":"onInputChange","input #server-settings-form input[type=text]":"onInputChange","change #server-settings-form select[name]":"onInputChange",
"submit #server-settings-form":"onSubmit"},initialize:function(e){this.changes=e.changes},serializeData:function(){return r.a.where(this.collection.toJSON(),{group:this.options.group,hidden:!1})},enable:function(){this.isDisabled=!1,this.ui.submitBtn.removeClass("disabled"),this.ui.message.text("")},updateModel:function(e,t){var n=this.collection.get(e);if(n)return n.set("value",t)},onRender:function(){r.a.isEmpty(this.changes)||this.enable()},onInputChange:function(e){
var t=e.currentTarget,n=t.name,i=t.value,a=t.value;if(n){"checkbox"===t.type&&((a=t.checked)||(i="0"));this.updateModel(n,a)&&(this.changes[t.name]=i,this.enable())}},onSubmit:function(e){e.preventDefault(),this.trigger("save")},onBeforeSave:function(){this.isActive=!0,this.ui.submitBtn.addClass("active")},onAfterSave:function(e){var t;this.isActive=!1,this.ui.submitBtn.removeClass("active"),e?(this.isDisabled=!0,this.ui.submitBtn.addClass("disabled"),
t=Object(o.default)("Your changes have been saved.")):t=Object(o.default)("Your changes could not be saved."),this.ui.message.text(t)}});t.a=c},function(e,t,n){"use strict";function i(e,t){var n=e.get("user"),i=t.authToken;return s.a.ajax(n.server.getXHROptions("/api/v2/user?includeSubscriptions=1",{headers:{"X-Plex-Token":i}})).then(function(e){return n.signIn(e,{})})}function a(e,t,n){var i=t.authToken,a=Object(v.k)(e,t),r=Object(y.a)(e);r.set({errorMessage:null,isBusy:!0})
;var o=Object(u.c)("metrics");return Object(m.a)(e,a,i,function(){n(Object(d.g)({machineIdentifier:a.id,metricsProperties:{context:f.k}}))}).done(function(){o.trackEvent({event:S.CLAIM_SERVER,interaction:!0})}).fail(function(){o.trackEvent({event:S.CLAIM_SERVER_FAILURE,interaction:!1}),r.set({errorMessage:Object(g.default)("There was a problem claiming this server."),isBusy:!1})})}n.d(t,"a",function(){return M}),n.d(t,"d",function(){return D}),n.d(t,"e",function(){return C}),
n.d(t,"c",function(){return j}),n.d(t,"b",function(){return P});var r,o=n(13),s=n.n(o),l=n(40),c=n(19),u=n(16),d=n(210),p=n(1438),h=n(1439),f=n(138),v=n(70),g=n(3),m=n(3192),y=n(626),b=n(3194),I=n(1441),S={CLAIM_SERVER:"client:claimServer",CLAIM_SERVER_FAILURE:"client:claimServerFailure"},M=Object(l.a)("server/claim/claimServer"),D=Object(l.a)("server/claim/signInThenClaimServer"),C=Object(l.a)("server/claim/signOutServer"),j=Object(l.a)("server/claim/createPIN"),P=(r={},
r["server/claim/claimServer"]=function(e,t,n){a(e,t,n).then(function(){Object(y.a)(e).set({errorMessage:null,isBusy:!1})})},r["server/claim/signInThenClaimServer"]=function(e,t,n){i(e,t).then(function(){return a(e,t,n)}).then(function(){Object(y.a)(e).set({errorMessage:null,isBusy:!1})}).fail(function(t){var n=Object(p.a)(t);c.a.trigger("show:alert",{message:Object(h.a)(n)}),Object(y.a)(e).set({errorMessage:Object(g.default)("There was a problem claiming this server."),isBusy:!1})})},
r["server/claim/signOutServer"]=function(e,t,n){var i=Object(v.k)(e,t),a=i.get("pmp").get("cloudAccount"),r=Object(y.a)(e);r.set({errorMessage:null,isBusy:!0}),Object(b.a)(a).done(function(){r.set({errorMessage:null,isBusy:!1})}).fail(function(){r.set({errorMessage:Object(g.default)("There was a problem signing the server out."),isBusy:!1})})},r["server/claim/createPIN"]=function(e,t,n){var i=Object(I.a)(e),a=Object(y.a)(e);i.then(function(e){a.set({pinID:e.id,code:e.code,isBusy:!0})}),
i.fail(function(){a.set({fatalErrorMessage:Object(g.default)("An error occurred"),isBusy:!1})})},r)},function(e,t,n){"use strict";function i(){return Object(h.createSelector)(Object(f.a)(),function(e){return{serviceAuthUrl:e}})}function a(e){var t=e.component,n=e.serviceAuthUrl,i=l()(e,["component","serviceAuthUrl"]);return d.a.createElement(t,o()({to:n},i))}var r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(11),h=n(4),f=(n.n(h),n(3204));t.a=Object(p.connect)(i,{})(a)
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ic3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPGNpcmNsZSBpZD0iMCIgY3g9IjUwIiBjeT0iNTAiIHI9IjUwIiBzdHlsZT0iZmlsbDp1cmwoIzMpIi8+CiA8Y2lyY2xlIGlkPSIxIiBjeD0iNTAiIGN5PSI1MCIgcj0iNDciIHN0eWxlPSJmaWxsOnVybCgjNCkiLz4KIDxwYXRoIGlkPSIyIiBkPSJtMzIuOSAxOC44bDE4LjE2MSAwIDIwLjAzOSAzMS4yNS0yMC4wMzkgMzEuMjUtMTguMTYxIDAgMjAuMDM5LTMxLjI1LTIwLjAzOS0zMS4yNSIgc3R5bGU9ImZpbGw6dXJsKCM1KSIvPgogPGRlZnM+CiAgPGxpbmVhckdyYWRpZW50IGlkPSIzIiB4MT0iMTAwIiB4Mj0iMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICA8c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojZjliZTAzIi8+CiAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2NjN2IxOSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPGxpbmVhckdyYWRpZW50IGlkPSI0IiB4MT0iOTciIHgyPSIzIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgIDxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMyODI4MjgiLz4KICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjojMWYxZjFmIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmFkaWFsR3JhZGllbnQgaWQ9IjUiIGN4PSI2NyIgY3k9IjQ5LjkiIHI9IjU3LjgxMjMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4bGluazpocmVmPSIjMyIvPgogPC9kZWZzPgo8L3N2Zz4K"
},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(173)),r=Object(i.createSelector)(a.a,function(e){return e.cloudServer},function(e,t){return e[t]});t.a=r},function(e,t,n){"use strict";var i=n(22),a=i.a.Layout.extend({regions:{content:".content"}});t.a=a},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){var i,a,r="";return r+=' <h2 class="text-muted">',(a=n.subtitle)?i=a.call(e,{hash:{},data:t}):(a=e&&e.subtitle,i=typeof a===u?a.call(e,{
hash:{},data:t}):a),(i||0===i)&&(r+=i),r+="</h2> "}function o(e,t){var i,a,r="";return r+=" <p>",(a=n.message)?i=a.call(e,{hash:{},data:t}):(a=e&&e.message,i=typeof a===u?a.call(e,{hash:{},data:t}):a),(i||0===i)&&(r+=i),r+="</p> "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,l,c="",u="function",d=this;return c+='<div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> <h1>',(l=n.title)?s=l.call(t,{hash:{},data:a}):(l=t&&t.title,s=typeof l===u?l.call(t,{
hash:{},data:a}):l),(s||0===s)&&(c+=s),c+="</h1> ",s=n.if.call(t,t&&t.subtitle,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(s||0===s)&&(c+=s),c+=" ",s=n.if.call(t,t&&t.message,{hash:{},inverse:d.noop,fn:d.program(3,o,a),data:a}),(s||0===s)&&(c+=s),c+=" </div> </div>"})},function(e,t,n){"use strict";function i(e){if(e&&e.features)return e.features.find(function(e){return e.type===a.b.CONTENT})}t.a=i;var a=n(64)},function(e,t,n){"use strict"
;var i=n(3),a=n(230),r=["id","typeString"],o=Object(a.a)(r,[{id:0,typeString:"tag",title:function(){return Object(i.default)("Tag")}},{id:1,typeString:"genre",title:function(){return Object(i.default)("Genre")}},{id:2,typeString:"collection",title:function(){return Object(i.default)("Collection")}},{id:3,typeString:"bookmark",title:function(){return Object(i.default)("Bookmark")}},{id:4,typeString:"director",title:function(){return Object(i.default)("Director")},isPerson:!0},{id:5,
typeString:"writer",title:function(){return Object(i.default)("Writer")},isPerson:!0},{id:6,typeString:"actor",title:function(){return Object(i.default)("Actor")},isPerson:!0},{id:7,typeString:"producer",title:function(){return Object(i.default)("Producer")},isPerson:!0},{id:8,typeString:"country",title:function(){return Object(i.default)("Country")}},{id:9,typeString:"chapter",title:function(){return Object(i.default)("Chapter")}},{id:10,typeString:"review",title:function(){
return Object(i.default)("Review")}},{id:11,typeString:"label",title:function(){return Object(i.default)("Label")}},{id:42,typeString:"versionBackgroundProcessingTarget",title:function(){return Object(i.default)("Version Background Processing Target")}},{id:200,typeString:"make",title:function(){return Object(i.default)("Make")}},{id:201,typeString:"model",title:function(){return Object(i.default)("Model")}},{id:202,typeString:"aperture",title:function(){return Object(i.default)("Aperture")}},{
id:203,typeString:"exposure",title:function(){return Object(i.default)("Exposure")}},{id:204,typeString:"iso",title:function(){return Object(i.default)("ISO")}},{id:205,typeString:"lens",title:function(){return Object(i.default)("Lens")}},{id:206,typeString:"device",title:function(){return Object(i.default)("Device")}},{id:207,typeString:"autotag",title:function(){return Object(i.default)("Autotag")}},{id:400,typeString:"place",title:function(){return Object(i.default)("Place")}},{id:300,
typeString:"mood",title:function(){return Object(i.default)("Mood")}},{id:301,typeString:"bpm",title:function(){return Object(i.default)("BPM")}},{id:302,typeString:"composer",title:function(){return Object(i.default)("Composer")}},{id:303,typeString:"featuring",title:function(){return Object(i.default)("Featuring")}},{id:304,typeString:"trackArtist",title:function(){return Object(i.default)("Track Artist")}},{id:305,typeString:"similarArtist",title:function(){
return Object(i.default)("Similar Artist")}},{id:306,typeString:"concert",title:function(){return Object(i.default)("Concert")}}]);t.a=o},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(r.a,function(e,t){return t.searchResultEntityID},function(e,t){return e[t]})}t.a=i;var a=n(4),r=(n.n(a),n(3465))},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(20),b=n(47),I=n(3),S=n(26),M=n(971),D=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onActionsPress=function(e){a.props.onMenuOpenChange(!a.props.isMenuOpen)},a.onActionsMenuClose=function(){a.props.onMenuOpenChange(!1)},a._moreButtonID=Object(b.a)(),a}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e["data-qa-id"],n=e.className,i=e.iconClassName,r=e.tabIndex,s=e.serverEntityID,c=e.providerEntityID,u=e.metadataItemEntityID,d=e.containerKey,p=e.listType,h=e.isMenuOpen,f=(e.onMenuOpenChange,l()(e,["data-qa-id","className","iconClassName","tabIndex","serverEntityID","providerEntityID","metadataItemEntityID","containerKey","listType","isMenuOpen","onMenuOpenChange"]));return o()(y.a,{"data-qa-id":t,id:this._moreButtonID,className:n,tabIndex:r,
"aria-label":Object(I.default)("More Actions"),"aria-haspopup":!0,onPress:this.onActionsPress},void 0,o()(S.a,{clasName:i,name:"plex-icon-more-560"}),m.a.createElement(M.a,a()({serverEntityID:s,providerEntityID:c,metadataItemEntityID:u,containerKey:d,listType:p,target:this._moreButtonID,isOpen:h,onMenuClose:this.onActionsMenuClose},f)))},t}(g.Component);t.a=D},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.title,a=e.route;return i?a?r()(l.a,{className:t,
"data-qa-id":"metadataTitleLink",tabIndex:n,title:i,to:a},void 0,i):r()("span",{className:t,title:i},void 0,i):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20));t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(3621),b=n(3624),I=n(3626),S=n.n(I),M=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s]
;return n=i=p()(this,e.call.apply(e,[this].concat(o))),i.state={hasMouseEntered:!1},i.onMouseEnter=function(e){i.setState({hasMouseEntered:!0})},i.onMouseLeave=function(e){i.setState({hasMouseEntered:!1})},a=n,p()(i,a)}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.allowPersistentHomeHubStatus,n=e.allowToggleHomeHub,i=e.children,r=e.className,s=e.isHomeHub,c=l()(e,["allowPersistentHomeHubStatus","allowToggleHomeHub","children","className","isHomeHub"]),u=this.state.hasMouseEntered;return o()("div",{className:r,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},void 0,n?m.a.createElement(b.a,a()({},c,{component:y.a,isHomeHub:s,isVisible:u||t&&s})):null,i)},t}(g.Component);M.defaultProps={className:S.a.hubCellHeader},t.a=M
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.isPrimary,i=s()(e,["className","isPrimary"]);return u.a.createElement(d.a,r()({},i,{className:(t||"")+" "+(n&&h.a.isPrimary||""||"")}))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(283),p=n(3637),h=n.n(p);i.defaultProps={className:h.a.playerButton},t.a=i},function(e,t,n){"use strict";function i(e){if(e){var t=e.split("?"),n=t[1];return n?h.a.parseQueryString(n):void 0}}function a(e){
if("now"===e)return{};var t=e.match(/([-+]?\d+)([smhdwMy])/);if(t){var n=t[1],i=t[2];if(n&&i){var a;return a={},a[v[i]]=parseInt(n,10),a}}else{var r=parseInt(e,10);if(u.a.isNumber(r))return r}return{}}function r(e,t){return!(!u.a.isObject(t)||!Object(d.a)(e,t))||e>=t}function o(e,t){return!(!u.a.isObject(t)||!Object(p.a)(e,t))||e<=t}function s(){return Object(l.createSelector)(function(e,t){return t.containerKey},Object(f.a)(),function(e,t){if(t&&t.Media){
for(var n=i(e),s=u.a.sortBy(t.Media,"endsAt"),l=Date.now()/1e3,c=0,d=s.length;c<d;c++){var p=s[c];if(n){var h=n["beginsAt>"],f=n["beginsAt<"],v=n["endsAt>"],g=n["endsAt<"];if(h){var m=a(h);if(o(p.beginsAt,m))continue}if(f){var y=a(f);if(r(p.beginsAt,y))continue}if(v){var b=a(v);if(o(p.endsAt,b))continue}if(g){var I=a(g);if(r(p.endsAt,I))continue}}if(p.endsAt>l)return p}return u.a.first(s)}})}t.a=s;var l=n(4),c=(n.n(l),n(10)),u=n.n(c),d=n(1533),p=n(1535),h=n(74),f=n(21),v={s:"seconds",
m:"minutes",h:"hours",d:"days",w:"weeks",M:"months",y:"years"}},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.containerKey},function(e,t){return t.containerTitle},function(e,t){return t.metricsContext},Object(r.a)(),s.c,o.c,Object(l.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments[4],r=arguments[5],o=arguments[6];if(i.isFolder){var s=e.match(/(.*?)\/folder/)[1],l={folderKey:o,folderTitle:i.title,
parentFolderKey:e,parentFolderTitle:t};return n&&(l.context=n),Object(c.a)(a,r,s,l)}var d={};return n&&(d.context=n),Object(u.a)(a,r,o,d,i.playlistType)})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(3674),c=n(150),u=n(137)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3803)),c=n.n(l);i.defaultProps={className:c.a.rightTitle},t.a=i},function(e,t,n){"use strict"
;var i=n(225),a=(n.n(i),n(406)),r=n.n(a);t.a=Object(i.DragDropContext)(r.a)},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({start:a.a.number.isRequired,end:a.a.number.isRequired,size:a.a.number.isRequired})},function(e,t,n){"use strict";n.d(t,"f",function(){return r}),n.d(t,"e",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u})
;var i=n(40),a=n(126),r=Object(i.a)(a._10),o=Object(i.a)(a.U),s=Object(i.a)(a.g),l=Object(i.a)(a.O),c=Object(i.a)(a.r),u=Object(i.a)(a.y)},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return p});var i,a=n(13),r=n.n(a),o=n(40),s=n(523),l=n(124),c=n(71),u=Object(o.a)("oauth/fetchOauthProviders"),d=Object(o.a)("oauth/unlinkOauthProvider"),p=(i={},i["oauth/fetchOauthProviders"]=Object(l.a)({key:"oauthProviders",
getModel:function(e){return e.get("cloudServer").get("pmp")}}),i["oauth/unlinkOauthProvider"]=function(e,t,n){var i=e.get("cloudServer"),a=i.get("pmp").get("oauthProviders").findWhere(t);a.set("isUnlinking",!0);var o=i.populate().then(function(){return r.a.ajax(i.getXHROptions(t.url,{type:"DELETE"}))});Object(s.a)(o,1e3).done(function(){a.set("unlinkError",null)}).fail(function(e){a.set("unlinkError",e)}).always(function(){n(Object(c.b)()),n(u()),a.set("isUnlinking",!1)})},i)},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(l.a,function(e){return{selectedItemsCount:e.activeSelectionItems.length}})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metricsPage:t.metricsPage};return{onDeselectAllPress:function(){e(s.d(n))}}}var r=n(4),o=(n.n(r),n(58)),s=n(399),l=n(76),c=n(4133);t.a=Object(o.a)(i,a)(c.a)},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e,t){return t.listType
},d.a,u.a,p.a,Object(c.a)(),function(e,t,n,i,a){return Object(g.a)(t,n,i,a,e)})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataListEntityID:t.metadataListEntityID,listType:t.listType,metricsPage:t.metricsPage,metricsProperties:{context:h.e}};return{onPlayAllPress:function(){e(l.m(n))},onShufflePress:function(){e(l.q(n))},onPlayNextPress:function(){e(l.h(o()({},n,{options:{playAll:!0,next:!0}})))},onAddToQueuePress:function(){e(l.h(o()({},n,{
options:{playAll:!0,next:!1}})))},onSyncPress:function(){e(v.l(n))},onOptimizePress:function(){e(v.e(n))}}}var r=n(6),o=n.n(r),s=n(4),l=(n.n(s),n(77)),c=n(132),u=n(39),d=n(53),p=n(204),h=n(138),f=n(58),v=n(152),g=n(4188),m=n(397),y=n(4189);t.a=Object(f.a)(i,a,m.a)(y.a)},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"h",function(){return a}),n.d(t,"a",function(){return r}),n.d(t,"g",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return l}),
n.d(t,"d",function(){return c}),n.d(t,"f",function(){return u});var i="=",a="!=",r="==",o="!==",s=">>=",l="<<=",c=">>=-",u="<<=-",d=[i,a,r,o,">=","<=",s,l,c,u];t.i=d},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(o.a,function(e){return{provider:e.epgSource}})}var a=n(11),r=n(4),o=(n.n(r),n(39)),s=n(4210);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4248)),c=n.n(l);i.defaultProps={className:c.a.pageHeaderCenter},t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.listStyles}t.a=i},function(e,t,n){"use strict";function i(e,t,n,i,o){if(n){var s=Object(a.a)(n,i,t,o);if(1===s.length)return s[0];var l=void 0,c=Object(r.a)(n,i);return e[t]&&(l=e[t][c]),l&&s.indexOf(l)>-1?l:s[0]}}t.a=i;var a=n(410),r=n(746)},function(e,t,n){"use strict";function i(e){
var t=e.types,n=e.pseudoTypes,i=e.selectedType,a=e.libraryRoute,o=e.activeSort,l=e.activeLimit,c=e.activeFilters,p=e.customFilter,g=s()(e,["types","pseudoTypes","selectedType","libraryRoute","activeSort","activeLimit","activeFilters","customFilter"]),m=t.length>0,y=n.length>0;return u.a.createElement(d.a,g,m&&t.map(function(e){var t=e.key,n=e.title;return r()(f.a,{to:Object(h.a)({typeKey:t,filters:p?c:void 0,sort:p?o:void 0,limit:p?l:void 0,customFilter:p},a),isSelected:i.key===t},t,n)
}),m&&y&&v,n.map(function(e){var t=e.key,n=e.title,a=e.route;return r()(f.a,{to:a,isSelected:i.key===t},a,n)}))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(284),h=(n(100),n(295)),f=n(103),v=r()(p.a,{});t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(l.a,function(e){return{selectedItemsCount:e.activeSelectionItems.length}})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,
metricsPage:t.metricsPage};return{onDeselectAllPress:function(){e(s.d(n))}}}var r=n(4),o=(n.n(r),n(58)),s=n(399),l=n(76),c=n(4394);t.a=Object(o.a)(i,a)(c.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),function(){return Object(i.createSelector)(function(e){return e.ui.homePage.homeHubStatuses},function(e,t){return t.homeHubID},function(e,t){return e.find(function(e){return e.homeHubID===t})})});t.a=a},,function(e,t,n){"use strict"
;var i=n(18),a=n(17),r=n(14),o=n(95),s=n(4740),l=n(4742),c=n(4746),u=a.a.extend({name:"LibraryDetailsModel",context:["server","provider","includeAdvanced","includeCollections"],responseType:function(){return Object(o.a)(this.server)},url:function(){var e={includeDetails:1};return this.includeAdvanced&&(e.includeAdvanced=1),this.includeCollections&&(e.includeCollections=1),i.join(this.get("key"),e)},sessionAttrs:{key:r.a.string.isRequired},syncedAttrs:{librarySectionID:r.a.string},
syncedRelations:{directories:{relationClass:s.a,rootPropertyName:"Directory"},types:{relationClass:c.a,rootPropertyName:"Type"},fieldTypes:{relationClass:l.a,rootPropertyName:"FieldType"}}});t.a=u},,,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(601);e.exports=function(e){return Object(i(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";function i(e){
e=e>0?Math.min(e,1024):24;for(var t="";t.length<e;)t+=Math.random().toString(36).substr(2);return t.substr(0,e)}t.a=i},function(e,t,n){"use strict";function i(e){return 1===Number(e)||"true"===e}t.a=i},function(e,t,n){"use strict";function i(e,t,n){return void 0===n?t:r.a.isObject(t)?t:n}t.a=i;var a=n(10),r=n.n(a)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(122),o=n(96),s=n(197),l=n(2029),c=n.n(l),u=o.a.extend({name:"libraryFailureModal",className:"confirm-modal modal modal-sm fade",
template:c.a,events:a.a.extend({"click .confirm-btn":"hide"},o.a.prototype.events),serializeData:function(){return{isSignedIn:this.model.get("myPlexSigninState")===r.b,hasPlexSubscription:this.model.get("myPlexSubscription"),serverSettingsRoute:Object(s.a)(this.model.id,"settings","general")}}});t.a=u},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(25),s=n(427),l=o.a.extend({name:"SortCollection",context:["server","section","typeID"],model:s.a,url:function(){
var e=a.a.result(this.section,"url"),t=this.typeID||this.section.get("currentType").id,n=t?{type:t}:{};return r.join([e,"/sorts"],n)}});t.a=l},,,,function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onlyIfCached,a=void 0===n||n;if(e){if(e.section)return e.section;if(e.get("isSection"))return e;var s=e.get("librarySectionID");if(s){var l=new o.a({key:s},{server:e.server,onlyIfCached:a});return r.a.isEmpty(l)?void 0:l}
return e.parent?i(e.parent,t):void 0}}t.a=i;var a=n(10),r=n.n(a),o=n(514)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(17),s=n(14),l=n(2009),c=n(362),u=n(300),d=n(38),p=n(45),h=n(27),f=n(145),v=n(2011),g=n(1163),m=n(808),y=n(1164),b=n(2013),I=n(2015),S=n(2017),M=n(1165),D=n(2018),C=n(1166),j=n(509),P=n(427),O=o.a.extend({name:"SectionModel",context:["server"],entityType:p.c,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state
;return Object(d.a)(this.entityType,e.key,this.server.entityID())},idAttribute:"key",rootPropertyName:"Directory",cache:new u.a,persistInCache:!0,cacheKey:function(e){return this.server&&this.server.getScopedKey(e.key)},url:function(){return this.isNew()?a.a.result(this,"urlRoot")||a.a.result(this.collection,"url"):a.a.isNaN(parseInt(this.id,10))?this.id:"/library/sections/"+this.id},sessionAttrs:{isSection:s.a.boolean,currentFilters:s.a.array,currentFolderKey:s.a.string,
settings:s.a.instanceOf(c.a)},syncedAttrs:{key:s.a.oneOfType(s.a.string,s.a.integer),uuid:s.a.string,thumb:s.a.string,art:s.a.string,createdAt:s.a.integer,updatedAt:s.a.integer,allowAdvancedFilters:s.a.boolean,allowSync:s.a.boolean,refreshing:s.a.boolean,name:{type:s.a.string,save:!0},title:{type:s.a.string,save:!0},type:{type:s.a.string,save:!0},agent:{type:s.a.string,save:!0},scanner:{type:s.a.string,save:!0},language:{type:s.a.string,save:!0},importFromiTunes:{type:s.a.boolean,save:!0},
enableAutoPhotoTags:{type:s.a.boolean,save:!0}},derivedAttrs:{serverEntityID:function(){return this.state?this.server.entityID():""}},syncedRelations:{locations:function(){return{relationClass:I.a,rootPropertyName:"Location",options:{section:this},save:!0}}},sessionRelations:{items:function(){return{relationClass:l.a,options:{section:this}}},currentSubset:function(){return{relationClass:C.a,options:{section:this}}},currentFirstCharacter:function(){return{relationClass:y.a,deferred:!0}},
currentType:function(){return{relationClass:M.a,deferred:!0}},currentSort:function(){return{relationClass:P.a,deferred:!0}},types:function(){return{relationClass:S.a,options:{section:this}}},subsets:function(){return{relationClass:D.a,options:{section:this}}},filters:function(){return{relationClass:this.get("allowAdvancedFilters")?g.a:b.a,options:{section:this}}},sorts:function(){return{relationClass:j.a,options:{section:this}}},firstCharacters:function(){return{relationClass:m.a,options:{
section:this}}}},defaults:function(){var e=this;return{isSection:!0,currentType:null,currentFilters:[],currentSort:null,currentFirstCharacter:null,currentFolderKey:null,currentSubset:v.a.get("all"),settings:new c.a([],{server:this.server,url:function(){return r.join(["/library/sections/",e.get("key"),"/prefs"])}})}},initialize:function(e){this.updateMediaTypes(this,e.type),this.set({currentType:this.get("types").findWhere({typeString:e.type})}),this.on("change:type",this.updateMediaTypes,this)},
uninitialize:function(){this.off("change:type",this.updateMediaTypes,this),this.stopListening()},augmentResponse:function(e){return e.allowAdvancedFilters=!!e.filters,delete e.filters,e},getSectionType:function(){var e=this.get("type");return f.f.get(e)},getSaveParams:function(e){var t=o.a.prototype.getSaveParams.apply(this,arguments);if("type"in t){var n=f.f.get(t.type);n&&(t.type=n.typeString)}return"title"in t&&(t.name=t.title,delete t.title),a.a.isObject(t.type)&&(t.type=t.type.typeString),
"Location"in t&&(t.location=a.a.pluck(t.Location,"path"),delete t.Location),t},getSyncTitle:function(e){var t=this.get("title"),n=[],i=this.get("currentSubset"),r=this.get("currentFilters");return e?(a.a.each(e,function(e){n.push(e.get("title"))}),t+": "+n.join(", ")):"all"!==i.id?t+": "+i.get("title"):r.length?(a.a.each(r,function(e){n.push(e.titles.join(", "))}),t+": "+n.join(",")):t},setAgentAndScanner:function(e,t,n,i){var a=e.defaultAgent,r=e.defaultScanner;if(i){
var o=e.exclusiveAgents,s=e.exclusiveScanners,l=t.hasExclusiveAgent(o),c=n.hasExclusiveScanner(s);l&&(a=o[0]),c&&(r=s[0])}this.set({agent:a,scanner:r})},updateMediaTypes:function(e,t){var n=Object(h.s)(t);this.get("types").reset(n)}});t.a=O},function(e,t,n){"use strict";function i(){var e=Object(a.c)("appModel"),t=e.get("user");if(!t)return!0;e.get("experienceSettings");return!1}t.a=i;var a=n(16);n(79)},function(e,t,n){"use strict";function i(e){return/^\w+:\/\//.test(e)}t.a=i},function(e,t,n){
"use strict";var i={NEVER:"never",SAME_NETWORK:"samenetwork",ALWAYS:"always"};i.settings=[{value:i.NEVER,title:"Never"},{value:i.SAME_NETWORK,title:"On same network as server"},{value:i.ALWAYS,title:"Always"}],t.a=i},function(e,t,n){"use strict";var i,a,r=n(17),o=n(14),s=n(300),l=n(63),c=n(2086),u=n(2087),d=n(2090),p=n(2091),h=r.a.extend({name:"VersionGeneratorModel",context:["server","section","playlistID"],rootPropertyName:"Item",cache:new s.a,cacheKey:function(e){
return this.server&&this.server.getScopedKey(e.id)},urlRoot:function(){return"/playlists/"+(this.playlistID||this.parent.id)+"/items"},syncedAttrs:{id:o.a.integer,clientIdentifier:o.a.string,contentType:o.a.string,composite:o.a.string,type:{type:o.a.integer,save:!0},title:{type:o.a.string,save:!0},target:{type:o.a.string,save:!0},targetTagID:{type:o.a.integer,save:!0},locationID:{type:o.a.integer,save:!0},Location:{type:o.a.object,save:!0},Device:{type:o.a.object,save:!0}},sessionRelations:{
children:{relationClass:u.a,options:function(){return{generator:this}}}},syncedRelations:{status:{relationClass:p.a,rootPropertyName:"Status"},policy:{relationClass:d.a,rootPropertyName:"Policy",save:!0},mediaSettings:{relationClass:c.a,rootPropertyName:"MediaSettings",save:!0}},derivedAttrs:{isDirectory:function(){var e=this.get("Location");if(e.uri)return/(playlist\:\/\/|library\:\/\/([\w-]*)\/directory\/)/.test(e.uri)}},defaults:function(){return{type:42,locationID:-1,Location:{},Device:{}}},
defaultCounts:(i={},i[l.d]=5,i[l.a]=50,i[l.c]=50,i),warningCounts:(a={},a[l.d]=10,a[l.a]=100,a[l.c]=100,a),getSaveParams:function(e,t){var n=r.a.prototype.getSaveParams.apply(this,arguments);return n.targetTagID&&(delete n.MediaSettings,delete n.Device),{Item:n}},setPolicyDefaultsFor:function(e){var t=this.get("policy"),n=this.get("isDirectory");return t.has("scope")||t.set("scope",n?"count":"all"),!t.has("value")&&n&&t.set("value",this.defaultCounts[e]),this},
shouldShowPolicyWarning:function(e,t){var n=this.get("policy").get("scope");return"count"===n?t>this.warningCounts[e]:"all"===n&&this.get("isDirectory")}});t.a=h},function(e,t,n){var i=n(2097).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";function i(e){return e>=100?Object(r.a)(e):Object(a.a)(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1183),r=n(2098);t.default=i},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(16),l=n(62),c=n(96),u=n(2107),d=n(2109),p=n(2114),h=n(2117),f=n.n(h),v=c.a.extend({name:"userSelectModal",className:"user-select-modal modal modal-transparent fade",template:f.a,transparent:!0,panes:{users:p.a,pin:d.a},regions:{content:".modal-content",alertBar:".modal-alert"},initialize:function(e){c.a.prototype.initialize.apply(this,arguments);var t=s.c("appModel");this.options=e,this.isForced=e.isForced,this.user=t.get("user"),
this.promise=a.a.Deferred()},showPane:function(e,t){this.currentPane&&this.stopListening(this.currentPane);var n=this.panes[e],i=new n(o.a.extend({},this.options,t));return this.listenTo(i,{"change:pane":this.onChangePane,resolve:this.onResolve,reject:this.onReject}),this.currentPane=i,this.content.show(i),i},showAlertBar:function(){var e=l.a.get("alerts");l.a.set("alerts",null);var t=new u.a({alert:o.a.first(e)});this.alertBar.show(t)},onRender:function(){
c.a.prototype.onRender.apply(this,arguments),this.model?this.showPane("pin",{focusDelay:this.focusDelay}):this.showPane("users"),this.showAlertBar()},onHide:function(e){c.a.prototype.onHide.apply(this,arguments),"pending"===this.promise.state()&&this.promise.reject()},onChangePane:function(e,t){this.showPane(e,t)},onResolve:function(e){if(l.a.has("continueUrl")&&!this.options.isEditing)return void(window.location=l.a.get("continueUrl"));this.promise.resolve(e),this.hide()},onReject:function(){
this.promise.reject(),this.hide()}});t.a=v},function(e,t,n){"use strict";n.d(t,"d",function(){return b}),n.d(t,"f",function(){return I}),n.d(t,"i",function(){return S}),n.d(t,"b",function(){return M}),n.d(t,"e",function(){return D}),n.d(t,"a",function(){return C}),n.d(t,"h",function(){return j}),n.d(t,"c",function(){return P}),n.d(t,"g",function(){return O}),n.d(t,"j",function(){return T})
;var i,a=n(12),r=n.n(a),o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=n(10),d=n.n(u),p=n(40),h=n(124),f=n(249),v=n(272),g=n(74),m=n(70),y=n(2152),b=Object(p.a)("user/fetchPlans"),I=(Object(p.a)("user/populatePlans"),Object(p.a)("user/fetchAllFriends"),
Object(p.a)("user/populateAllFriends")),S=Object(p.a)("user/updateUser"),M=Object(p.a)("user/clearUpdateUserError"),D=Object(p.a)("user/fetchWebhooks"),C=Object(p.a)("user/addWebhook"),j=Object(p.a)("user/replaceWebhook"),P=Object(p.a)("user/clearUpdateWebhookError"),O=Object(p.a)("user/removeWebhook"),T=s()({},v.k,(i={},i["user/fetchPlans"]=Object(h.a)({key:"plans",getModel:m.l}),i["user/populatePlans"]=Object(f.a)({key:"plans",getModel:m.l}),i["user/fetchAllFriends"]=Object(h.a)({
key:"allFriends",getModel:m.l}),i["user/populateAllFriends"]=Object(f.a)({key:"allFriends",fetchActionType:"user/fetchAllFriends",getModel:m.l}),i["user/clearUpdateUserError"]=function(e){Object(m.l)(e).set("updateUserError",null)},i["user/updateUser"]=function(e,t,n){var i=Object(m.l)(e),a=e.get("user"),o=t.avatar,s=r()(t,["avatar"]);if(i.set({isUpdatingUser:!0,updateUserError:null}),o){
for(var l=o.split(","),u=l[0],p=l[1],h=u.substr(5),f=window.atob(p),v=[],y=0;y<f.length;y++)v.push(f.charCodeAt(y));var b=new Uint8Array(v),I=new window.Blob([b],{type:h});s.avatar=I}var S=new window.FormData;d.a.each(s,function(e,t){S.append(t,e)});var M=a.server.getXHROptions(d.a.result(a,"url"),{type:"PUT",processData:!1,contentType:!1,data:S});c.a.ajax(M).done(function(e){!t.avatar&&a.get("hasPassword")||a.fetch();var n=d.a.reduce(t,function(e,t,n){return a.hasAttr(n)&&(e[n]=t),e},{})
;a.set(n),i.set({isUpdatingUser:!1,updateUserError:null})}).fail(function(e){var t=g.a.parseXML(e.responseText),n=Array.isArray(t)&&t||(Array.isArray(t.error)?t.error:[t.error]),a=d.a.mapObject(d.a.groupBy(n,function(e){return e&&e.field?e.field:"request"}),function(e,t){return d.a.flatten(e)});i.set({isUpdatingUser:!1,updateUserError:a})})},i["user/fetchWebhooks"]=Object(h.a)({key:"webhooks",getModel:m.l}),i["user/addWebhook"]=function(e){var t=Object(m.l)(e);t.get("webhooks").add({}),
t.set("updateWebhooksError",null)},i["user/replaceWebhook"]=function(e,t){var n=t.oldUrl,i=t.newUrl,a=Object(m.l)(e),r=a.get("webhooks");if(r.findWhere({url:n})){var o=r.map(function(e){var t=e.get("url");return t===n?i:t});a.set({isUpdatingWebhooks:!0,updateWebhooksError:null}),Object(y.a)(r,o).always(function(){a.set("isUpdatingWebhooks",!1)}).fail(function(e){a.set("updateWebhooksError",e[0])})}},i["user/clearUpdateWebhookError"]=function(e){Object(m.l)(e).set("updateWebhooksError",null)},
i["user/removeWebhook"]=function(e,t){var n=Object(m.l)(e),i=n.get("webhooks");if(!t){var a=i.filter(function(e){return e.get("url")!==t});return void i.reset(a)}n.set({isRemovingWebhooks:!0,updateWebhooksError:null});var r=i.map(function(e){return e.get("url")}).filter(function(e){return e!==t});Object(y.a)(i,r).always(function(){n.set("isRemovingWebhooks",!1)}).fail(function(e){n.set("updateWebhooksError",e[0])})},i))},function(e,t,n){"use strict";function i(e,t){function n(){
var e=(new Date).getTime(),t=Math.max(a-e,0);setTimeout(o,t)}var i=r.a.Deferred(),a=(new Date).getTime()+t,o=void 0;return e.then(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o=function(){return i.resolve.apply(i,t)}},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o=function(){return i.reject.apply(i,t)}}),e.then(n,n),i.promise()}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){
var n=t.constructor.prototype.validate;return n?n(e):[]}function a(e){var t=this.panes[e],n=s.call(this,t);return 0===i.call(this,n,t).length}function r(e,t){var n=this.panes[t].dependentPanes;return"function"==typeof n&&(n=n.call(this)),e.concat(n||[])}function o(){var e=this.$(".change-pane-btn");e.addClass("disabled").removeClass("selected"),c.a.each(this.getReachablePanes(),function(t){e.filter("."+t+"-btn").removeClass("disabled")},this),
e.filter("."+this.selectedPane+"-btn").addClass("selected")}function s(e){return this[e.model]||this[this.panesModel]||this.model}var l=n(10),c=n.n(l),u={showPane:function(e){if(e!==this.selectedPane){var t=this.paneRegion.currentView;t&&(this.stopListening(t,"valid",o),this.stopListening(t,"invalid",o),this.$el.removeClass("pane-"+this.selectedPane),this.onPaneHide&&this.onPaneHide(this.selectedPane,t)),this.selectedPane=e
;var n=this.panes[e],i=n.constructor,a=this.paneConstructorArg?this.paneConstructorArg():{},r=new i(c.a.extend(a,{model:s.call(this,n)}));if(r.onModalClose){this._paneOnModalCloseCallbacks||this.listenToOnce(this,"close",function(){c.a.each(this._paneOnModalCloseCallbacks,function(e){e[1].call(e[0])},this),this._paneOnModalCloseCallbacks=null});var l=this._paneOnModalCloseCallbacks||[];l.push([r,r.onModalClose]),this._paneOnModalCloseCallbacks=c.a.uniq(l,function(e){return e[1]})}
this.listenTo(r,"valid",o),this.listenTo(r,"invalid",o),o.call(this),this.onPaneShow&&this.onPaneShow(e,r),this.$el.addClass("pane-"+e),this.paneRegion.show(r),o.call(this)}},getReachablePanes:function(){for(var e,t,n=c.a.reduce(this.panes,function(e,t){var n=t.dependentPanes;return"function"==typeof n&&(n=n.call(this)),c.a.union(e,n||[])},[],this),i=c.a.filter(c.a.keys(this.panes),function(e){return!c.a.contains(n,e)}),o=i;o.length;)e=c.a.filter(o,a,this),t=t||e.length!==o.length,
o=c.a.reduce(e,r,[],this),i=i.concat(o);return i.isAnyInvalid=t,i},onChangePaneClick:function(e){e.preventDefault();var t=this.$(e.currentTarget);t.isDisabled()||this.showPane(t.data("pane"))}};t.a=u},,,function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"a",function(){return r});var i=0,a=1,r=2},function(e,t,n){"use strict";function i(e,t){return e>t?50:e<=0||t<=0?0:parseFloat((e/t*100).toFixed(2))}t.a=i},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(1240),h=n.n(p),f=n(28),v=function(e){function t(){return a()(this,t),o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){return d.a.createElement(h.a,this.props)},t}(u.Component);v.defaultProps={component:"div",transitionName:{appear:"appear",enter:"enter",leave:"leave"},transitionAppear:!0,
transitionEnter:!0,transitionLeave:!0},t.a=v},function(e,t){e.exports={defaultSpeed:"0.2s",slowSpeed:"0.6s",fastSpeed:"0.1s",motionEasing:"cubic-bezier(0.6, 0.4, 0.2, 1.4)",modalSpeed:"0.2s",menuSpeed:"0.15s",tooltipSpeed:"0.15s"}},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({current:a.a.instanceOf(window.Element)})},,function(e,t,n){"use strict";function i(e){try{e.focus()}catch(e){}}function a(e){var t=document.activeElement,n=t&&e&&e.contains(t);t&&!n&&t.blur()}function r(e){
v=document.activeElement,g=e,a(e)}function o(e){Object(p.a)(g,"Call `startScopedFocus(element)` before `scopeTabEvent`");var t=Object(f.a)(g);if(t.length){e.preventDefault();var n=document.activeElement,a=n?t.indexOf(n):-1,r=t.length-1,o=void 0;-1===a?o=e.shiftKey?r:0:(o=e.shiftKey?a-1:a+1,o<0?o=r:o>r&&(o=0)),i(t[o])}}function s(){Object(p.a)(g,"Call `startScopedFocus(element)` before `scopeAutoFocus`");var e=Object(f.a)(g),t=d.a.find(e,function(e){
return Object(h.a)(e.getAttribute("data-autofocus"))});t&&i(t)}function l(){g=null}function c(){v&&(i(v),v=null)}t.a=a,t.f=r,t.e=o,t.d=s,t.b=l,t.c=c;var u=n(10),d=n.n(u),p=n(37),h=n(506),f=n(2394),v=void 0,g=void 0},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.title;return r()("div",{className:c.a.header},void 0,r()("div",{className:c.a.headerTitle},void 0,n),t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2399)),c=n.n(l);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,r()("div",{className:c.a.message},void 0,n))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2400)),c=n.n(l);i.defaultProps={className:c.a.container},t.a=i},,,,,,,,,,,,,,,function(e,t,n){"use strict";var i={movie:"plex-icon-movies-560",show:"plex-icon-shows-560",season:"plex-icon-shows-560",episode:"plex-icon-shows-560",artist:"plex-icon-artist-560",album:"plex-icon-music-560",track:"plex-icon-music-560",
photo:"plex-icon-photos-560",photoalbum:"plex-icon-photos-560",clip:"plex-icon-clips-560",userPlaylistItem:"plex-icon-clips-560"};t.a=i},function(e,t,n){"use strict";function i(e){return s.a.createElement(c.a,r()({},e,{separatorComponent:l.b}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(73),c=n(2847);t.a=i},function(e,t){e.exports={modalFooter:"ModalFooter-modalFooter-30WIB",button:"ModalFooter-button-15VJa Button-button-2kT68 Link-link-2n0yJ",
splitButton:"ModalFooter-splitButton-2NLiB ModalFooter-button-15VJa Button-button-2kT68 Link-link-2n0yJ"}},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.iconComponent,i=e.iconClassName,a=e.activeClassName,o=e.disabledClassName,l=e.icon,u=e.isDisabled,d=e.isActive,f=e.label,v=e.labelClassName,g=e.title,m=e.ariaLabel,y=e.children,b=c()(e,["className","iconComponent","iconClassName","activeClassName","disabledClassName","icon","isDisabled","isActive","label","labelClassName","title","ariaLabel","children"]),I=m||g;return p.a.createElement(h.a,r()({className:(t||"")+" "+(u&&o||"")+" "+(d&&a||""||""),isDisabled:u,"aria-label":I,
title:g},b),s()(n,{className:i,name:l}),f&&s()("span",{className:v},void 0,f),y)}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=(n(37),n(20)),f=n(2884),v=n.n(f);i.defaultProps={className:v.a.button,activeClassName:v.a.isActive,disabledClassName:v.a.isDisabled,labelClassName:v.a.label,isDisabled:!1},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),
n(28)),g=n(16),m=n(86),y=n(30),b=n(114),I=n(24),S=n(2913),M=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onModalClose=function(){Object(g.c)("metrics").trackClick(o()({},i.props.metricsProperties,{page:y.Q,action:m.U})),i.props.onModalClose()},a=n,u()(i,a)}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},
t.prototype.render=function(){var e=this.props,t=e.isOpen,n=e.metricsProperties;return a()(b.a,{size:I.e.LARGE,isOpen:t,metricsPage:y.Q,metricsProperties:n,onModalClose:this.onModalClose},void 0,a()(S.a,{metricsProperties:n,onModalClose:this.onModalClose}))},t}(f.Component);t.a=M},function(e,t,n){"use strict";function i(e){
var t=e.formGroupClassName,n=e.formLabelClassName,i=e.name,a=e.labelText,o=e.helpText,l=e.showErrors,u=e.errors,d=c()(e,["formGroupClassName","formLabelClassName","name","labelText","helpText","showErrors","errors"]);return s()(h.a,{className:t},void 0,s()(v.a,{className:n,showErrors:l,errors:u,name:i,labelText:a}),p.a.createElement(g.a,r()({name:i,hasError:l},d)),o&&s()(f.a,{},void 0,o))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),
n(0)),p=n.n(d),h=n(238),f=n(460),v=n(556),g=n(255),m=n(189);t.a=Object(m.a)(i)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.name,i=e.labelText,a=e.showErrors,o=e.errors,s=o[0];return r()(l.a,{className:t,hasError:a,name:n},void 0,i,a&&s&&" \u2014 "+s)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(149));t.a=i},function(e,t,n){"use strict";function i(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){var t,n=e.label,i=e.value
;return t={},t[i]=n,t})}function a(e){var t=e.id,n=e.type,a=e.label,r=e.summary,s=e.value,l=e.initialValueModifier,g=e.enumValues,y=e.min,b=e.max,I=e.step,S={name:t,helpText:r,initialValue:l(s)};if(Array.isArray(g))return c.a.createElement(p.a,o()({labelText:a},S,{values:i(g)}));switch(n){case f.b.TEXT:return c.a.createElement(h.b,o()({labelText:a},S));case f.b.BOOL:return c.a.createElement(u.a,o()({checkboxText:a},S));case f.b.INT:return c.a.createElement(d.a,o()({labelText:a},S))
;case f.b.DOUBLE:return c.a.createElement(v.a,o()({labelText:a,min:y,max:b,stepSize:I,valueModifier:m[t]},S));default:return null}}var r=n(6),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(688),d=n(2961),p=n(555),h=n(689),f=n(1155),v=n(1418),g=n(933),m={playbackSpeed:g.a};a.defaultProps={initialValueModifier:function(e){return e}},t.a=a},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.deviceID},Object(s.a)(),function(e,t){
if(t)return o.a.find(t.devices,{key:e})})}var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(690);t.a=i},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(18),c=n(16),u=n(514),d=n(64),p=n(116),h=n(41),f=n(102),v=n(3),g=n(27),m=n(145),y=n(524),b=n(3036),I=n(3049),S=n(3051),M=n(3069),D=n(3075),C=n(96),j=n(508),P=n(150),O=n(3077),T=n.n(O),E=C.a.extend({mixins:[y.a],name:"editSectionModal",className:"edit-section-modal modal modal-lg fade",template:T.a,panes:{type:{
constructor:D.a,nextPane:"folders",dependentPanes:function(){return this.showFolders?["folders"]:["options","advanced"]}},folders:{constructor:S.a,nextPane:"options",dependentPanes:["options","advanced"]},options:{constructor:M.a,nextPane:"advanced"},advanced:{constructor:b.a},error:{constructor:I.a}},panesModel:"tempModel",ui:{sidebar:".modal-nav-list",optionsBtn:".options-btn",saveBtn:".save-btn",message:".form-message",headerSectionType:".section-type-title"},regions:{
paneRegion:".pane-region"},events:o.a.extend({"click .change-pane-btn":"onChangePaneClick","click .save-btn":"onSaveClick","submit .edit-section-type-form":"onGeneralFormSubmit"},C.a.prototype.events),onlyAfterRender:["showPane","updateMessage","updateSectionTitle","updateSectionTitleDestabilized","updateSaveBtn"],paneConstructorArg:function(){return{isDefaultSection:this.isDefaultSection}},initialize:function(e){var t=this;C.a.prototype.initialize.apply(this,arguments),this.server=e.server,
this.redirect=e.redirect,this.isDefaultSection=e.isDefaultSection,this.isLoading=!0,this.model?(this.tempModel=this.model.clone(),this.tempModel.collection=this.model.collection):this.tempModel=new u.a({},{server:this.server,collection:this.server.get("sections")}),this.listenTo(this.tempModel,"change:type",this.onSectionTypeChange),this.tempModel.isNew()&&e.seedAttrs&&this.tempModel.set(this.tempModel.parse(e.seedAttrs)),this._deferred=a.a.Deferred(),this.promise=this._deferred.promise()
;var n=this.server.get("providers");n.populate().done(this.whenRendered(function(){var i=n.get(h.d),a=i.get("features").get(d.b.MANAGE),r=a.get("automaticLibraryFolders");t.showFolders=!r,t.isLoading=!1,t.render(),t.showPane(e.selectedPane||"type")}))},serializeData:function(){var e=this.tempModel,t=e.isNew();return{isLoading:this.isLoading,add:t,edit:!t,section:e&&e.toJSON(),selectedPane:this.selectedPane,showFolders:this.showFolders}},updateMessage:function(e){this.ui.message.text(e||"")},
updateSaveBtn:function(){var e=this.ui.saveBtn,t=this.panes[this.selectedPane],n=o.a.bind(function(n){var i=t.nextPane,a=this.tempModel.isNew(),r=!t.constructor.prototype.validate||0===t.constructor.prototype.validate(this.tempModel).length,o=!this.getReachablePanes().isAnyInvalid;this.ui.optionsBtn.toggleClass("hidden",!n.showOptions);var s,l=o||a&&r;s=i,n.showOptions||"options"!==i||(s=!1),o&&(s=!1),n.showOptions&&"options"===i&&(s=!0),n.showAdvanced&&"advanced"===i&&(s=!0),
e.toggleClass("save",!s),e.toggleClass("next",!!s),e.toggleClass("disabled",!l)},this),i=this.tempModel.server,a=this.tempModel.sectionType,r=a&&"music"===a.key,s=a&&"photos"===a.key,l=r&&i.supports("premiumMusic"),c=s&&i.get("photoAutoTag")&&i.hasOwnerFeature("photo_autotags"),u=this.tempModel.isNew();l?this.paneRegion.currentView.populateAgents().then(function(e){var t=e.findWhere({identifier:"com.plexapp.agents.plexmusic"}),i=u&&t;n({showOptions:i,showAdvanced:i})
}):c?this.paneRegion.currentView.populateSectionSettings().then(function(){n({showOptions:!0,showAdvanced:!1})}):n({})},updateSectionTitle:function(){var e=m.f.get(this.tempModel.get("type"));if(e){this.updateSectionTitleDestabilized();var t=o.a.escape(e.title);this.ui.headerSectionType.html(t)}},updateSectionTitleDestabilized:function(){this.ui.headerSectionType.addClass("section-type-title-unstable"),this.ui.headerSectionType.triggerReflow(),
this.ui.headerSectionType.removeClass("section-type-title-unstable")},save:function(){var e=this.ui.saveBtn;this.updateMessage(""),e.addClass("active");var t=this.saveModel();t.always(function(){e.removeClass("active")}),t.fail(o.a.bind(function(e){503===e.status?s.a.trigger("show:modal",new j.a({model:this.server})):this.updateMessage(Object(v.default)("Your changes could not be saved."))},this)),t.then(o.a.bind(function(){var e=this.model.server.entityID(),t=Object(c.c)("appStore").dispatch
;if(t(Object(p.h)({serverEntityID:e})),t(Object(p.g)({serverEntityID:e})),!this.redirect)return this._deferred.resolve(),void this.hide();var n={machineIdentifier:this.model.server.id},i={isLibraryProvider:!0},a={};this.model.get("type")===g.b&&(a.type=Object(g.r)(g.a).id,a.sort="addedAt:desc"),window.location.hash=Object(P.a)(n,i,this.model.id,a),this._deferred.resolve(),this.hide()},this))},saveModel:function(){var e;return this.tempModel.isNew()?(e=this.tempModel.save(),
e=e.then(o.a.bind(function(e,t,n){var i=f.a.parseXML(e);if(201===n.status){if(i.Directory&&(i=i.Directory),!i.key){var a=n.getResponseHeader("Location");a&&(i.key=a.substring(a.lastIndexOf("/")+1))}var r=this.server;return r.supports("advancedFilters")&&(i.filters=!0),this.model=new u.a(i,{parse:!0,server:this.server}),r.get("sections").add(this.model),n}},this))):(this.model.copy(this.tempModel),e=this.model.save()),e=e.then(o.a.bind(this.saveSettings,this)),
e=e.then(o.a.bind(this.saveAgentSettings,this))},saveSettings:function(){var e=a.a.Deferred().resolve(this.model).promise();if(!this.server.supports("sectionSettings"))return e;var t=this.tempModel.settings;if(!t)return e;var n=this.getSettingsChanges(t);if(o.a.isEmpty(n))return e;var i=t.first(),r=i.getSaveParams(n),s=l.join(["/library/sections/",this.model.id,"/prefs"],r),c=o.a.extend(this.server.getXHROptions(s),{type:"PUT"});return a.a.ajax(c).promise().then(function(){return e})},
saveAgentSettings:function(){var e=a.a.Deferred().resolve(this.model).promise(),t=this.tempModel.agentSettings;if(!this.tempModel.agentSettings)return e;var n=this.getSettingsChanges(t);if(o.a.isEmpty(n))return e;var i=t.first(),r=i.getSaveParams(n),s=o.a.result(t,"url"),c=l.join([s,"/set"],r),u=i.server.getXHROptions(c);return a.a.ajax(u).promise().then(function(){return e})},getSettingsChanges:function(e){return e.filter(function(e){return e.changedAttributes()}).reduce(function(e,t){
var n=t.get("value");return"bool"===t.get("type")&&(n=n?"1":"0"),e[t.get("id")]=n,e},{})},onPaneShow:function(e,t){this.listenTo(t,"valid",this.updateSaveBtn),this.listenTo(t,"invalid",this.updateSaveBtn),this.updateSaveBtn()},onPaneHide:function(e,t){this.stopListening(t,"valid",this.updateSaveBtn),this.stopListening(t,"invalid",this.updateSaveBtn)},onChangePaneClick:function(e){e.preventDefault();var t=this.$(e.currentTarget);t.isDisabled()||this.showPane(t.data("pane"))},
onSaveClick:function(e){e.preventDefault();var t=this.ui.saveBtn;if(!t.isDisabled())if(t.hasClass("next")){var n=this.panes[this.selectedPane].nextPane;"folders"!==n||this.showFolders||(n=this.ui.sidebar.find(".options-btn").isDisabled()?"advanced":"options"),n&&!this.ui.sidebar.find("."+n+"-btn").isDisabled()&&this.showPane(n)}else this.save()},onGeneralFormSubmit:function(e){this.onSaveClick(e)},onSectionTypeChange:function(){this.updateSaveBtn()}});t.a=E},function(e,t,n){"use strict"
;function i(){return Object(r.a)()||Object(a.a)()||Object(o.a)()}var a=n(826),r=n(1200),o=n(949);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(112)),f=n(28),v=n(3),g=n(26),m=n(1449),y=n.n(m),b=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.children,n=e.className,i=e.friendlyNameClassName,r=e.detailsClassName,o=e.to,s=e.isDisabled,l=e.isSelected,c=e.identifier,u=e.title,d=e.details,p=e.onPress;return a()(h.a,{className:(n||"")+" "+(y.a.serverMenuItem||"")+" "+(l&&y.a.selectedServerMenuItem||""||""),"data-qa-id":"serverMenuItem--"+c,to:o,isDisabled:s,onPress:p},void 0,a()("div",{className:y.a.serverMenuItemContainer},void 0,a()("div",{className:y.a.serverMenuTitle},void 0,a()("div",{className:i
},void 0,u),a()("div",{className:r},void 0,d)),a()("div",{className:y.a.serverMenuIconContainer},void 0,l&&a()(g.a,{name:"plex-icon-selected-560",className:(y.a.serverMenuIcon||"")+" "+(y.a.selectedIcon||""),"aria-label":Object(v.default)("Selected")}),t)))},t}(p.Component);b.defaultProps={friendlyNameClassName:y.a.serverMenuFriendlyName,detailsClassName:y.a.serverMenuDetails},t.a=b},function(e,t,n){"use strict";var i=n(299),a=new i.a({props:["capabilities","video","music","photo"]});t.a=a
},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(136)),r=n(394),o=n(395),s=Object(i.createSelector)(r.a,a.a,Object(o.a)("providers"),function(e,t,n){return e.reduce(function(e,i){var a=i.isCloud?n:i.providers,r=a.map(function(e){return{server:i,provider:t[e]}}),o=r.length?r:[{server:i}];return e.push.apply(e,o),e},[])});t.a=s},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metricsContext},s.c,o.c,Object(r.a)(),function(e,t,n){
var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};return e&&(a.context=e),{parentTitle:i.parentTitle,parentRoute:Object(c.a)(t,n,i.parentKey,a)}})}var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(58),c=n(137),u=n(3493);t.a=Object(l.a)(i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.title;return r()("span",{className:t,title:n},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(e,t){
var n=Object(v.a)(e),i=n.get("metadataItem");if(n.get("playQueueItemID")===t.playQueueItemID){var a={currentDecision:t,availableQualities:t.availableQualities,qualityIndex:t.qualityIndex,mediaIndex:t.mediaIndex,partIndex:t.partIndex,positionSeconds:t.positionSeconds,durationSeconds:t.durationSeconds};null!=e.get("startMetadataItemEntityID")&&e.get("startMetadataItemEntityID")!==i.entityID()||(a.startMetadataItemEntityID=null,a.startOffsetMilliseconds=null,a.startMediaIndex=null),e.set(a)}}
function a(e,t,n){var i=e.get("playQueue"),a=i.get("playQueueItems").at(i.get("currentIndex"));t.id===a.id&&e.set({isMediaLoading:!1,hasError:!0,errorMessage:n})}n.d(t,"a",function(){return E}),n.d(t,"b",function(){return w}),n.d(t,"d",function(){return A}),n.d(t,"e",function(){return x}),n.d(t,"c",function(){return N});var r,o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=n(10),d=n.n(u),p=n(40),h=(n(37),
n(16)),f=n(1504),v=n(983),g=n(3556),m=n(842),y=n(984),b=n(636),I=n(1505),S=n(146),M=n(3557),D=n(309),C=n(70),j=n(198),P=n(36),O=n(3),T=n(63),E=Object(p.a)("ui/player/playerDecision/makeDecision"),w=Object(p.a)("ui/player/playerDecision/makeNextDecision"),A=Object(p.a)("ui/player/playerDecision/removeDecision"),x=Object(p.a)("ui/player/playerDecision/retryDecision"),N=(r={},r["ui/player/playerDecision/makeDecision"]=function(e,t){
var n=t.playerType,r=t.playQueueItemEntityID,o=t.mediaIndex,l=t.partIndex,u=t.qualityIndex,p=t.transcodeSessionID,v=t.options,P=void 0===v?{}:v,E=Object(j.c)(e,n),w=C.g(e,{playQueueItemEntityID:r});if(w.get("type")!==T.c){var A=E.get("decisions"),x=A[r];if(x)return void i(E,x);var N=w.get("metadataItem"),L=C.i(e,{providerEntityID:N.get("providerEntityID")});if(!L&&N.get("source"))return void a(E,w,Object(O.default)("Source is unavailable"))
;var k=null==o?Object(g.a)(E,N):o,R=N.get("Media")[k],z=Object(h.c)("getDecisionOptions")(N,u,R),U=c.a.extend(!0,{},z,P),B=void 0,F=[],_=S.a.ORIGINAL;z.type===D.a.types.VIDEO&&(F=z.availableQualities,_=z.qualityIndex);var V={forceSyncCheckFiles:!0,itemProvider:L};Object(f.a)(N,V).always(function(){var t=N.get("Media")[k],n=t&&t.Part[l];P.offset,M.a.getPlayerDecision(s()({playbackSessionID:y.a,transcodeSessionID:p,item:N,itemProvider:L,media:t,part:n,offset:Object(m.a)(E,N),
fallbackServer:e.get("primaryServer")},U)).done(Object(b.a)(E,function(e){var t,n=e.transcodeServer,a=e.media,o=e.part,l=E.get("decisions"),c=N.get("Media"),u=a.Part,p=d.a.findIndex(c,function(e){return null!=e.id?e.id===a.id:null==e.uuid||e.uuid===a.uuid}),h=d.a.findIndex(u,function(e){return null!=e.id?e.id===o.id:null==e.key||e.key===o.key});e.abr&&(_=S.a.CONVERT_AUTOMATICALLY),B={playQueueItemID:w.get("playQueueItemID"),availableQualities:F,qualityIndex:_,mediaIndex:p,partIndex:h,
partCount:u.length,url:e.url,subtitlesUrl:e.subtitlesUrl,protocol:e.protocol,isDirectPlay:e.canDirectPlay,useSoftSubtitles:e.useSoftSubtitles,canDirectStreamVideo:e.canDirectStreamVideo,canDirectStreamAudio:e.canDirectStreamAudio,canPlayOriginalQuality:e.canPlayOriginalQuality,positionSeconds:Math.floor(e.offset/1e3),durationSeconds:Math.floor((o.duration||0)/1e3),playbackSessionID:e.playbackSessionID},e.canDirectPlay||(B.transcodeSessionID=e.transcodeSessionID),
B.transcodeServerEntityID=n&&n.entityID(),E.set("decisions",s()({},l,(t={},t[r]=B,t))),i(E,B)})).fail(Object(b.a)(E,function(e){N.set({isPreFetched:!1}),a(E,w,Object(I.a)(e))}))})}},r["ui/player/playerDecision/makeNextDecision"]=function(e,t,n){var i=t.playerType,a=Object(j.c)(e,i),r=a.get("playQueue"),o=r.get("playQueueItems"),s=r.get("currentIndex"),l=a.get("repeatOne")?s:s+1;if(a.get("repeatAll")&&l>o.length-1&&(l=0),l!==s&&l<o.length){var c=o.at(l).entityID();n(E({playerType:i,
playQueueItemEntityID:c}))}},r["ui/player/playerDecision/removeDecision"]=function(e,t){var n=t.playerType,i=t.playQueueItemEntityID,a=Object(j.c)(e,n);Object(P.a)(function(){var e,t=a.get("decisions"),n=a.get("currentDecision"),r={decisions:s()({},t,(e={},e[i]=null,e))};t[i]===n&&(r.currentDecision=null),a.set(r)})},r["ui/player/playerDecision/retryDecision"]=function(e,t,n){
var i=t.playerType,a=t.decisionOptions,r=Object(j.c)(e,i),o=r.get("playQueue"),l=o.get("playQueueItems"),c=r.get("currentDecision"),u=o.get("currentIndex"),d=l.at(u),p=d.entityID();c&&n(A({playerType:i,playQueueItemEntityID:p})),n(c?E({playerType:i,playQueueItemEntityID:p,mediaIndex:c.mediaIndex,partIndex:c.partIndex,qualityIndex:r.get("qualityIndex"),options:s()({offset:1e3*r.get("positionSeconds")},a)}):E({playerType:i,playQueueItemEntityID:p,qualityIndex:r.get("qualityIndex")}))},r)
},function(e,t,n){"use strict";function i(e,t){return Object(s.a)(Object(a.createSelector)(function(e){return e.ui},function(e,t){return t.playerType},function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=i+"Player";return n[a]?o.a.pick(n[a],e):{}}),function(e){return e})}var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(161);t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(o.a,Object(r.a)("serverEntityID"),function(e,t){return e[t]})}t.a=i
;var a=n(4),r=(n.n(a),n(153)),o=(n(178),n(173))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(73),v=n(553),g=n(20),m=n(216),y=n(57),b=(n(924),n(28)),I=n(401),S=n(3),M=n(26),D=n(919),C=n(478),j=n(403),P=n(3628),O=n.n(P),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onListUpdate=function(e){
var t=e.visibleStartIndex,n=e.visibleEndIndex,i=e.renderEndIndex,r=e.listStyle,o=a.props.onListReady,s=a._isReady?void 0:o;a._isReady=!0,a._visibleStartIndex=t,a._visibleEndIndex=n,a._pageSize=a._visibleEndIndex-a._visibleStartIndex;var l=t>0,c=i>n;a.setState({showActions:l||c,enablePrevious:l,enableNext:c,listHeight:r.height},s)},a.onListScrollIndexChange=function(e){a._setScrollIndex(e)},a.onPreviousPress=function(){a._setScrollIndex(a._visibleStartIndex-a._pageSize-1)},
a.onNextPress=function(){a._setScrollIndex(a._visibleEndIndex+1)},a.state={showActions:!1,enablePrevious:!1,enableNext:!1,listHeight:"auto",scrollIndex:a.props.scrollIndex||0},a._isReady=!1,a._listRef=h.a.createRef(),a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){return null!=e.scrollIndex&&e.scrollIndex!==t.scrollIndex?{scrollIndex:e.scrollIndex}:null},t.prototype.componentDidMount=function(){this.props.more&&!this.props.totalSize&&this.props.onPageRequest({startIndex:0,
endIndex:this.props.size}),this.props.size||this.props.totalSize||(this._isReady=!0,this.props.onListReady&&this.props.onListReady())},t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype._setScrollIndex=function(e){this.props.onListScrollIndexChange&&this.props.onListScrollIndexChange(e),null==this.props.scrollIndex&&this.setState({scrollIndex:e})},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.hubEntityID,o=e.directoryKey,s=e.allowHomeHubIndicator,l=e.allowPersistentHomeHubStatus,c=e.allowToggleHomeHub,u=e.hubIdentifier,d=e.isHomeHub,p=e.title,b=e.sourceTitle,P=e.attribution,T=e.route,E=e.size,w=e.more,A=e.random,x=e.totalSize,N=e.keyPropName,L=e.itemsOffset,k=e.items,R=e.layout,z=e.cellRenderer,U=e.resizeTimeout,B=e.shouldConfirmHomeHubRemoval,F=e.onPageRequest,_=this.state,V=_.showActions,H=_.enablePrevious,Q=_.enableNext,Y=_.listHeight
;if(!E&&!x)return null;var G=w?E+1:E,W=A?E:x||G,K={visibility:"auto"===Y?"hidden":"visible"},Z={height:Y,overflow:"hidden"},q=null;if(p){var J=Object(I.a)(p);q=a()(j.a,{className:O.a.title},void 0,P?a()(D.a,{className:O.a.attribution,attribution:P}):null,T?a()(g.a,{to:T},void 0,J):J,b?a()(f.b,{className:O.a.titleSeparator}):null,b?a()("span",{className:O.a.sourceTitle},void 0,b):null)}var X=q||V;return a()("div",{className:t,style:K,"data-qa-id":"hub--"+u},void 0,X?a()(C.a,{
allowHomeHubIndicator:s,allowPersistentHomeHubStatus:l,allowToggleHomeHub:c,className:O.a.hubCellHeader,directoryKey:o,hubEntityID:r,isHomeHub:d,providerEntityID:i,serverEntityID:n,shouldConfirmHomeHubRemoval:B},void 0,q,V?a()("div",{className:O.a.hubActions},void 0,a()(v.a,{className:O.a.hubScrollButton,"data-qa-id":"hubPreviousButton",icon:"plex-icon-hub-prev-560",iconComponent:M.a,isDisabled:!H,title:Object(S.default)("Previous Page"),onPress:this.onPreviousPress}),a()(v.a,{
className:O.a.hubScrollButton,"data-qa-id":"hubNextButton",icon:"plex-icon-hub-next-560",iconComponent:M.a,isDisabled:!Q,title:Object(S.default)("Next Page"),onPress:this.onNextPress})):null):null,a()("div",{style:Z},void 0,h.a.createElement(m.a,{scrollerClassName:O.a.hubScroller,ignoreHeight:!0,keyPropName:N,items:k,itemsOffset:L,scrollDirection:y.HORIZONTAL,scrollIndex:this.state.scrollIndex,shouldCenterScrollIndex:this.props.shouldCenterScrollIndex,size:Math.min(1e4,W),layout:R,
cellRenderer:z,resizeTimeout:U,ref:this._listRef,onListUpdate:this.onListUpdate,onListScrollIndexChange:this.onListScrollIndexChange,onPageRequest:F})))},t}(p.Component);T.defaultProps={className:O.a.hubCell,shouldCenterScrollIndex:!1},t.a=T},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.hubEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(571))},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(174)),r=Object(i.createSelector)(a.a,function(e){return e.hubs});t.a=r},function(e,t,n){"use strict";function i(e,t){return Object(p.createSelector)(g.a,Object(v.a)(),function(e,t){return t.hideUnrated},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=e&&e.features[f.b.ACTIONS][h.b.RATE],a=i&&!t.isFolder,r=(t.userRating||0)/2,o=n&&0===r;return{showRating:!(!a||o),value:r}})}function a(e,t){return{onRatingChange:function(n){
e(Object(y.rateMetadataItem)({metadataItemEntityID:t.metadataItemEntityID,providerEntityID:t.providerEntityID,rating:0===n?-1:2*n,metricsPage:t.metricsPage}))}}}function r(e){var t=e.showRating,n=s()(e,["showRating"]);return t?d.a.createElement(b.a,n):null}var o=n(12),s=n.n(o),l=n(1),c=n.n(l),u=n(0),d=n.n(u),p=n(4),h=(n.n(p),n(270)),f=n(64),v=n(21),g=n(39),m=n(58),y=n(191),b=n(3654),I=Object(m.a)(i,a)(r);I.propTypes={hideUnrated:c.a.bool},t.a=I},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMMM d, yyyy";return e?Object(a.a)(Object(r.a)(e),t):""}Object.defineProperty(t,"__esModule",{value:!0});var a=n(170),r=n(81);t.default=i},function(e,t,n){"use strict";function i(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.includeMinuteZero,s=void 0===i||i,l=n.timeFormat,c=void 0===l?"h:mma":l,u=n.separator,d=void 0===u?"-":u,p=Object(r.a)(e),h=Object(r.a)(t),f=Object(a.a)(p,"a")===Object(a.a)(h,"a"),v=Object(o.a)(p),g=Object(o.a)(h),m=c,y=c;return s||0!==v||(m=m.replace("h:mm","h")),f&&(m=m.replace("a","")),s||0!==g||(y=y.replace("h:mm","h")),""+Object(a.a)(p,m)+d+Object(a.a)(h,y)}var a=n(170),r=n(81),o=n(1002);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.type;return Object(l.u)(n)?r()(c.a,{className:t,name:"plex-icon-dvr-series-560"}):r()(c.a,{className:t,name:"plex-icon-dvr-single-560"})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(27)),c=n(26);t.a=i},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){u()(this,n);var a=p()(this,t.call(this,e,i));return a.onKeyDown=function(e){var t=a.state.pressedModifierKeys;S[e.which]&&-1===t.indexOf(e.which)&&a.setState({
pressedModifierKeys:t.concat(e.which)})},a.onKeyUp=function(e){var t=a.state.pressedModifierKeys,n=t.indexOf(e.which);n>-1&&a.setState({pressedModifierKeys:t.slice(0,n).concat(t.slice(n+1))})},a.onMouseDown=function(e){a._isMouseDown=!0},a.onMouseUp=function(e){a._isMouseDown=!1},a.onFocusChange=function(e){a.state.pressedModifierKeys.length&&a.setState({pressedModifierKeys:[]}),a._isMouseDown=!1},a.onMouseEnter=function(e){var t=a.props,n=t.selectionType,i=t.activeSelectionType
;a._isMouseDown&&i&&i===n&&a.onSelectPress(e)},a.onSelectPress=function(e){var t=a.props,n=t.selectionID,i=t.selectionType,r=t.isSelected,o=t.onSelectItem;r||o({id:n,type:i,isRangeSelect:e.shiftKey})},a.onDeselectPress=function(e){var t=a.props,n=t.selectionID,i=t.isSelected,r=t.onDeselectItem;i&&r({id:n})},a.state={pressedModifierKeys:[]},a}return f()(n,t),n.prototype.componentDidMount=function(){document.addEventListener("keydown",this.onKeyDown),
document.addEventListener("keyup",this.onKeyUp),document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("dragstart",this.onFocusChange),document.addEventListener("contextmenu",this.onFocusChange),window.addEventListener("blur",this.onFocusChange)},n.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},n.prototype.componentWillUnmount=function(){
document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("dragstart",this.onFocusChange),document.removeEventListener("contextmenu",this.onFocusChange),window.removeEventListener("blur",this.onFocusChange)},n.prototype.render=function(){
var t=this.props,n=t.selectionType,i=t.activeSelectionType,a=t.isSelected,r=l()(t,["selectionType","activeSelectionType","isSelected"]),s=this.state.pressedModifierKeys,c=!!i;return m.a.createElement(e,o()({hasActiveSelection:c,isSelected:a,isOtherItemSelected:c&&!a,isConflictingTypeSelected:c&&i!==n,isModifierKeyPressed:s.length>0,onMouseEnter:this.onMouseEnter,onSelectPress:this.onSelectPress,onDeselectPress:this.onDeselectPress},r))},n}(g.Component)
;return t.displayName="Selectable("+Object(y.a)(e)+")",t.WrappedComponent=e,t.defaultProps={disableSelection:!1},t}var a,r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(190),b=n(28),I=n(373),S=(a={},a[I.i]=!0,a[I.b]=!0,a[I.f]=!0,a[I.g]=!0,a[I.h]=!0,a);t.a=i},,,function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"]);return l.a.createElement("div",n,t)}var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=n.n(s),c=n(3916),u=n.n(c);i.defaultProps={className:u.a.dragLayer},t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e,t){return t.sourceDirectoryKey},function(e,t){return Object(o.a)(e,t)})}t.a=i;var a=n(4),r=(n.n(a),n(3937)),o=n(1600)},function(e,t,n){"use strict";function i(e,t,n){var i=encodeURIComponent(t.machineIdentifier),r=encodeURIComponent(n.identifier),o=["#!",e];return t.isCloud||o.push(i),o.push(r),a.join(o)}t.a=i
;var a=n(18)},function(e,t,n){"use strict";function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,p=Object(c.c)(e,t,n),h=e+(t||"")+n+i+a;if(d.hasOwnProperty(h))return d[h];var f=Object(u.a)({type:e,aspectRatio:p,titleCount:a,context:n}),v=f.titleHeight,g=f.minCellWidth,m=f.preferredCellWidth,y=f.minColumns,b=f.maxColumns,I=Object(o.c)({direction:o.a,rows:1,overscan:0,innerHorizontalPadding:30,
innerVerticalPadding:30,outerPaddingTop:10,outerPaddingRight:5,outerPaddingBottom:5,outerPaddingLeft:5,getCellWidth:function(e){return Object(l.a)(r()({},e,{preferredCellWidth:m,minCellWidth:g,minColumns:y,maxColumns:b,columnAdjustment:i,aspectRatio:p}))},getCellHeight:function(e){return Object(s.a)(r()({},e,{aspectRatio:p,titleHeight:v}))}});return I.cellOptions={preferredCellWidth:m,minCellWidth:g,minColumns:y,maxColumns:b,columnAdjustment:i,aspectRatio:p,titleHeight:v},d[h]=I,I}t.a=i
;var a=n(6),r=n.n(a),o=n(456),s=n(992),l=n(712),c=n(130),u=n(1602),d={}},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){if(e){var t=e.librarySectionKey,n=e.librarySectionID;return t||(n?"/library/sections/"+n:void 0)}})}t.a=i;var a=n(4),r=(n.n(a),n(21))},function(e,t,n){"use strict";function i(e){return Object(a.createSelector)(Object(s.a)(),function(t){if(t)return o.a.findWhere(t.features,{type:e})})}t.a=i;var a=n(4),r=(n.n(a),
n(10)),o=n.n(r),s=n(54)},function(e,t,n){"use strict";function i(e,t,n){var i=Object(v.a)(t,n),a=encodeURIComponent(e);return n.isLibraryProvider?"#!"+i+"/dashboard?key="+a:"#!"+i+"?key="+a}function a(e){var t=e.server,n=e.provider,a=e.directories,r=e.selectedDirectory,s=l()(e,["server","provider","directories","selectedDirectory"]),c=r&&(r.hubKey||r.key);return d.a.createElement(p.a,s,a&&a.map(function(e){var a=e.key,r=e.hubKey,s=e.title,l=e.isHomeDirectory
;if((t.isCloud||n.isLibraryProvider)&&!r)return null;var u=r||a,d=i(u,t,n);return o()(f.a,{"data-qa-id":"directoriesMenuItem--"+u,to:d,isSelected:c===u},u,l?Object(h.default)("All Libraries"):s)}))}var r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(56),h=n(3),f=n(103),v=(n(99),n(140),n(675));t.a=a},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(Object(b.a)(),Object(m.a)(),I.a,function(e,t,n){
var i=e.isHubKey,a=e.directory,r=t.isProvidersPending,o=t.pmp.isLibrariesPending,s=!a&&(r||o);return{isHubKey:i,isChannelsGrid:a&&M.test(a.key),selectedDirectory:a,libraryRoutes:n,showSpinner:s}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(35)),y=n(71),b=n(4198),I=n(941),S=n(4200),M=/\/grid$/i,D=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),
t.prototype.componentDidMount=function(){this.props.shouldSaveRoute&&this._saveRoute()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.shouldSaveRoute,i=t.selectedDirectory,a=n!==e.shouldSaveRoute,r=i!==e.selectedDirectory;n&&(a||r)&&this._saveRoute()},t.prototype._saveRoute=function(){var e,t=this.props,n=t.serverEntityID,i=t.isHubKey,a=t.selectedDirectory,o=t.libraryRoutes;if(!i&&a){var s=n+"!"+a.key,l=window.location.hash
;if(o[s]!==l&&-1!==l.indexOf(encodeURIComponent(a.key))){var c=r()({},o,(e={},e[s]=l,e));this.props.saveExperienceSettings({libraryRoutes:c})}}},t.prototype.render=function(){return f.a.createElement(S.a,this.props)},t}(h.Component);t.a=Object(v.connect)(i,{saveExperienceSettings:y.k})(D)},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(d.a)(),Object(u.a)(),function(e,t){return{machineIdentifier:e.machineIdentifier,isRefreshing:!!t}})}function a(e){
return s.a.createElement(p.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(239)),d=n(35),p=n(4212);t.a=Object(l.connect)(i)(a)},,function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.onPress;return s()(u.a,{className:(h.a.sectionWrapper||"")+" "+(n||""),component:"div",onPress:i},void 0,t)}function a(e){var t=e.children,n=e.className;return s()("div",{className:(h.a.sectionWrapper||"")+" "+(n||"")},void 0,t)}function r(e){
var t=e.errorMessage,n=e.children,r=e.className,o=e.onPress,l=o?i:a;return s()(l,{className:r,onPress:o},void 0,t?s()(d.a,{errorMessage:t}):null,s()("div",{className:h.a.section},void 0,n))}var o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(20)),d=n(217),p=n(4381),h=n.n(p);t.a=r},function(e,t,n){"use strict";function i(e){var t=e.className;return r()("div",{className:t})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4400)),c=n.n(l);i.defaultProps={className:c.a.pageHeaderDivider},
t.a=i},function(e,t,n){"use strict";function i(e){return r()("div",{className:e.className},void 0,e.children)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4453)),c=n.n(l);i.defaultProps={className:c.a.badge},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.url,n=e.title,i=e.messages,a=e.children,o=e.contentClassName,l=c()(e,["url","title","messages","children","contentClassName"]);return p.a.createElement(f.a,r()({autoScroll:!0,compactScroller:!0},l),s()(h.a,{url:t
}),s()("div",{className:o},void 0,n?s()("h1",{className:g.a.title},void 0,n):null,i?i.map(function(e,t){return s()("p",{className:g.a.message},t,e)}):null,a))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(4454),f=n(157),v=n(4456),g=n.n(v);i.defaultProps={contentClassName:g.a.content,innerClassName:g.a.innerPageContent},t.a=i},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.playlistItems})
;t.a=r},,,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},,function(e,t,n){"use strict";var i=n(87),a=n(13),r=n.n(a),o=n(265),s={isPopulating:function(){return!!this.populatePromise&&"pending"===this.populatePromise.state()},isPopulated:function(){
return!!this.populatePromise&&"resolved"===this.populatePromise.state()},populate:function(){return this.populatePromise?this.populatePromise:this.fetch.apply(this,arguments)},fetch:function(){var e=this,t=r.a.Deferred(),n=void 0;if(this.isPopulating())return this.populatePromise;n=this._fetch?this._fetch.apply(this,arguments):this instanceof i.c.Collection?i.c.Collection.prototype.fetch.apply(this,arguments):i.c.Model.prototype.fetch.apply(this,arguments);var a=t.promise();return a.rid=n.rid,
this.populatePromise=a,this.failedPopulatePromise=null,n.done(function(n){e.populatePromise=r.a.Deferred().resolveWith(e,[e]).promise(),t.resolveWith(e,[e,n])}),n.fail(function(n){e.populatePromise=null,e.failedPopulatePromise=a,t.rejectWith(e,[e,n])}),a},abortPendingPopulate:function(){return this.isPopulating()&&o.a.abort(this.populatePromise.rid),this.populatePromise},resetPopulatePromise:function(e){return this.isPopulating()||(this.populatePromise=e,this.failedPopulatePromise=null),
this.populatePromise}};t.a=s},function(e,t,n){"use strict";function i(){return l||(l=new o.a(!1,"",!0))}function a(e){if(!e)return s.a.warn("[Parser] Empty XML source"),{};var t=i(),n=t.parseXmlString(e);if(!n)return s.a.warn("[Parser] No XML document created"),{};if(n.getElementsByTagName("parsererror").length)return s.a.warn("[Parser] Errors found while parsing XML document"),{};try{return t.xml2json(n)}catch(e){return s.a.warn("[Parser] Unable to parse XML: "+e.message),{}}}
var r=n(793),o=n.n(r),s=n(32),l=void 0;t.a=a},function(e,t,n){"use strict";var i=n(32),a=n(1932),r=!1;t.a=function(){function e(e){return e&&!n[e]&&(n[e]=/^(client|playback):/.test(e)||!!t()),!!e&&n[e]}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a,n={},o={startPeriod:function(e){return o.mark(e+"-start")},endPeriod:function(e,t){return o.measure(e,t||e+"-start")},mark:function(t){var n=null;if(e(t)){window.performance.mark(t);var a=window.performance.getEntriesByName(t)
;n=a[a.length-1]}else r&&Object(i.a)('[Performance] Ignoring mark "%s"',t);return n},measure:function(t,n,a){var o=null;if(e(t))try{window.performance.measure(t,n,a),window.performance.clearMarks(n);var s=window.performance.getEntriesByName(t);o=s[s.length-1]}catch(e){}else r&&Object(i.a)('[Performance] Ignoring measure "%s"',t);return o}};return o}()},function(e,t,n){"use strict";var i=n(179),a=n.n(i),r=n(10),o=n.n(r),s=n(37),l=n(209),c=n(17),u=n(69),d=c.a.extend({name:"AbstractStorageModel",
responseType:u.a.json,save:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this.attributes,r=void 0;if(null==e||o.a.isObject(e)?(r=e,i=t):(r={})[e]=t,i=o.a.extend({validate:!0},i),r&&!i.wait){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;r&&i.wait&&(this.attributes=o.a.extend({},a,r));var s=l.a.getInstance().excludeDefaults,c=this.toJSON({syncedOnly:!0,excludeDefaults:!1!==s}),u=this._serialize(c),d=l.a.set(this._getStorageKey(),u)
;return d.done(function(){n.attributes=a,n.trigger("sync",n,a,i)}),d.fail(function(e){n.trigger("error",n,e,i)}),r&&i.wait&&(this.attributes=a),d},destroy:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.wait||this.trigger("destroy",this,this.collection,t);var n=l.a.remove(this._getStorageKey());return n.done(function(n){t.wait&&e.trigger("destroy",e,e.collection,t),e.trigger("sync",e,n,t)}),n.fail(function(n){e.trigger("error",e,n,t)}),n},sync:function(){
this._logError("does not support syncing to a server")},_getStorageKey:function(){var e=o.a.result(this,"storageKey");if(!e)throw new Error(this.name+" requires a `storageKey` property");return e},_fetch:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=l.a.get(this._getStorageKey());return n.done(function(n){n&&e.set(e.parse(n)),e.trigger("sync",e,n,t)}),n.fail(function(n){e.trigger("error",e,n,t)}),n},_serialize:function(e){var t="";try{t=a()(e)}catch(e){
this._logError("serialization error: "+e.message)}return t},_warnUnsupportedOptions:function(e){e.parse&&this._logError("does not support the `parse` option. The response from storage is always parsed."),e.success&&this._logError("does not support a `success` callback. Use the returned promise."),e.error&&this._logError("does not support an `error` callback. Use the returned promise.")},_logError:function(e){var t=void 0;try{t=this._getStorageKey()}catch(e){t="no storageKey"}
Object(s.a)(!1,this.name+" ("+t+") "+e)}});t.a=d},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(802),o=r.a.extend({maxCycles:3,maxSize:20,get:function(e){var t=r.a.prototype.get.apply(this,arguments);return t&&t.every(function(e){return!(!e.cache||!e.cache.isListening)&&(e.cache.store(e),!0)}),t},getItemCacheKey:function(e){var t=a.a.result(e,"url");return e.server&&(t=e.server.getScopedKey(t)),e.provider&&(t=e.provider.getScopedKey(t)),t}});t.a=o},function(e,t,n){"use strict"
;var i=n(299),a=new i.a({interface:["getLanguages","load","t"]});t.a=a},function(e,t,n){"use strict";function i(e,t,n){return n?a.a.xml:t&&t.get("identifier")===r.a?a.a.xml:Object(o.a)(e)}t.a=i;var a=n(69),r=n(41),o=n(95)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="livetv"},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(69),o=n(95),s=n(111),l=n(74),c=n(38),u=n(45),d=n(121),p=n(804),h=i.a.extend({name:"HubModel",
context:["server","provider","section","identifier","allowSync"],entityType:u.b,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(c.a)(this.entityType,e.key||e.hubKey||e.hubIdentifier,this.provider.entityID())},idAttribute:"hubIdentifier",rootPropertyName:"Hub",responseType:function(){return Object(o.a)(this.server)},url:function(){return this.get("key")||this.get("hubKey")},syncedAttrs:{key:a.a.string,hubKey:a.a.string,
hubIdentifier:a.a.string,source:a.a.string,title:a.a.string,summary:a.a.string,icon:a.a.string,thumb:a.a.string,attribution:a.a.string,type:a.a.string,subtype:a.a.string,style:a.a.string,size:a.a.integer,totalSize:a.a.integer,more:a.a.boolean,random:a.a.boolean,browse:a.a.boolean,upNext:a.a.boolean,context:a.a.string,promoted:a.a.boolean},syncedRelations:{metadataList:{relationClass:d.default,deferred:!0},directoryList:{relationClass:p.a,deferred:!0}},initialize:function(){
this.listenTo(this.get("metadataList"),"change:populatedRange",this.onPopulatedRangeChange),this.listenTo(this.get("directoryList"),"change:populatedRange",this.onPopulatedRangeChange)},augmentResponseText:function(e,t){return t===r.a.xml?Object(s.b)(e):e},augmentResponse:function(e){var t=null==e.totalSize?void 0:l.a.parseInteger(e.totalSize),n=l.a.parseInteger(e.size)||0,i=e.key||e.hubKey;return e.Directory?e.directoryList={containerKey:i,Directory:e.Directory,size:n,totalSize:t
}:e.metadataList={containerKey:i,Metadata:e.Metadata,size:n,totalSize:t},e},onPopulatedRangeChange:function(e,t){var n=t.size,i=e.get("totalSize"),a={size:n};null!=i&&(a.more=i>n),this.set(a)}});t.a=h},,,,,function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(25),o=n(2012),s=r.a.extend({name:"FilterOptionCollection",context:["server","provider","section","type","standalone"],model:o.a,url:function(){var e=a.a.result(this.section,"url"),t=e+"/"+this.parent.id
;return this.type?t+="?type="+this.type:this.standalone||(t+="?"+this.getUrlParams()),t},getUrlParams:function(){var e=this,t={},n=[],i=this.section.get("currentType"),r=this.section.get("currentFilters");return i&&(t.type=i.id),a.a.each(r,function(n){n.key!==e.parent.id&&n.values.length&&(t[n.key]=n.values.join(","))}),a.a.each(t,function(e,t){"unviewedLeafCount"===t?n.push(t+">="+e):n.push(t+"="+e)}),n.join("&")},augmentResponse:function(e){
return e.Directory&&!Array.isArray(e.Directory)&&(e.Directory=[e.Directory]),e.Directory=a.a.filter(e.Directory,function(e){return e.title}),e},search:function(e){var t=this.filter(function(t){return t.get("title").toLowerCase().indexOf(e.toLowerCase())>-1});return this.clone(t)}});t.a=s},function(e,t,n){"use strict";function i(e,t){var n=t||e,i=n?n.match(a.c):null;return i?i[1]:n}var a=n(41);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return c})
;var i=n(10),a=n.n(i),r=n(25),o=n(62),s=n(794),l=n(352),c=function(e,t){return!e.get("relay")&&t.get("relay")?e:!t.get("relay")&&e.get("relay")?t:!e.get("isLoopback")&&t.get("isLoopback")?t:!t.get("isLoopback")&&e.get("isLoopback")?e:!e.get("isPrivate")&&t.get("isPrivate")?t:!t.get("isPrivate")&&e.get("isPrivate")?e:!e.get("isHttps")&&t.get("isHttps")?t:(!t.get("isHttps")&&e.get("isHttps"),e)},u=r.a.extend({name:"ConnectionCollection",context:["server"],model:l.a,getBestConnection:function(){
var e=o.a.get("allowHttpsMediaServerConnections"),t=!this.server||this.server.get("isCloudBased")||e,n=this.filter(function(e){return e.get("isConnected")&&(t||!e.get("isHttps"))});if(n.length)return a.a.reduce(n,c)},hasBetterConnectionCandidates:function(){var e=this.server&&this.server.get("activeConnection");return this.some(function(t){var n=t.get("isUntested")||t.get("isPending"),i=!e||t!==e&&c(t,e)===t;return n&&i})},hasOnlyFailedConnections:function(){return this.every(function(e){
return e.get("isFailed")})},hasFailedEveryDirectConnection:function(){return this.where({relay:!1}).every(function(e){return e.get("isFailed")})},hasMultiplePrivateV4Subnets:function(){var e=void 0;return this.some(function(t){var n=t.get("address");if(t.get("isPrivate")&&s.a.isValidV4Address(n)){var i=s.a.getV4Subnet(n);return e||(e=i),e!==i}})}});t.b=u},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"a",function(){return d}),
n.d(t,"f",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"h",function(){return v}),n.d(t,"g",function(){return g});var i=n(179),a=n.n(i),r=n(32),o=n(17),s=n(14),l=n(69),c="unknown",u="waiting",d="mapped",p="ok",h="connecting",f="disconnecting",v="unreachable",g="",m=o.a.extend({context:["server"],url:"/myplex/account",responseType:l.a.json,sessionAttrs:{remoteAccessState:s.a.oneOf(h,f,v,p,g)},syncedAttrs:{username:s.a.string,
mappingState:s.a.oneOf(c,u,"failed",d),mappingError:s.a.oneOf("badauth","unreachable","myplexgone","publisherror","doublenat","jumboframes",""),signInState:s.a.oneOf("none","unknown","invalid","ok"),publicAddress:s.a.string,publicPort:s.a.integer,privateAddress:s.a.string,privatePort:s.a.integer,subscriptionActive:s.a.boolean,subscriptionState:s.a.string},derivedAttrs:{signedIn:function(){return"ok"===this.get("signInState")},isWaiting:function(){var e=this.get("remoteAccessState")
;return e===h||e===f}},defaults:{signedIn:!1,mappingState:null,mappingError:null,signInState:null,publicAddress:null,publicPort:null,privateAddress:null,privatePort:null},isNew:function(){return!this.get("signedIn")},augmentResponse:function(e){var t=e.MyPlex;t||(r.a.warn("[Account] Failed to get reachable information for account - received "+a()(e)),t={});var n="ok"===t.signInState;n||(t.username=null);var i=!n||t.mappingError,o=!i&&t.mappingState===d
;return i?t.remoteAccessState=v:o&&(t.remoteAccessState=p),t}});t.i=m},function(e,t,n){"use strict";var i=n(299),a=new i.a({interface:["get","set","remove","clear"]});t.a=a},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(32),o=n(820),s={ORIGINAL:-1,CONVERT_AUTOMATICALLY:-2,qualities:{},getQualityByIndex:function(e){if(e===this.CONVERT_AUTOMATICALLY)return{index:this.CONVERT_AUTOMATICALLY};if(e<0)return{index:this.ORIGINAL};var t={index:e};return a.a.each(this.qualities,function(n,i){
t[i]=a.a.result(this.qualities,i)[e]},this),t},getQualityCount:function(){var e=a.a.first(a.a.keys(this.qualities));return a.a.result(this.qualities,e).length},getQualityAttribute:function(e){var t=Object(o.a)(e,e.server.get("isPrivateConnection"));return"video"!==this.type?this.type+"!"+t:t},getSyncQualityAttribute:function(){return"syncQuality!"+this.type},getCurrentQuality:function(e,t){var n=this.getQualityAttribute(e),i=t.get(n)
;return i>=this.getQualityCount()&&(r.a.warn("Quality index "+i+" is out of bounds"),i=t.defaults[n],t.save(n,i)),a.a.extend(this.getQualityByIndex(i),{attribute:n})},getAvailableQualities:function(e){e||(e={});var t=e.lowestQualityIndex,n=e.highestQualityIndex,i=e.comparator,a=[];n===this.ORIGINAL&&(n=void 0);for(var r=0,o=this.getQualityCount();r<o;r++)if(!(t&&r<t)){if(n&&r>n)return a;if(i&&i.call(this,r))return a;a.push(this.getQualityByIndex(r))}return a},getResolutionFromSize:function(e){
var t=e.split("x"),n=parseInt(t[1],10);return this.getResolutionFromHeight(n)},getResolutionFromHeight:function(e){return e>2560?"8k":e>1100?"4k":e>720?"1080":e>576?"720":e>480?"576":e>360?"480":"sd"},getHeightFromResolution:function(e){switch(e){case"8k":return 5120;case"4k":return 2560;case"1080":return 1080;case"720":return 720;case"576":return 576;case"480":return 480;case"sd":default:return 360}},getNearestIndex:function(e,t){if(!t)return this.ORIGINAL;var n=e.indexOf(t);if(n<0){n=0
;for(var i=0,a=e.length;i<a;i++){if(e[i]>t)break;n=i}}return n}};t.a=s},function(e,t,n){"use strict";var i="placeholder-standard",a="placeholder-square",r="placeholder-widescreen",o={movie:i,show:i,season:i,episode:r,artist:a,album:a,track:a,photo:a,photoalbum:a,clip:r,userPlaylistItem:r,playlist:a,playlistFolder:a,channel:a,channelDirectory:a,folder:"placeholder-folder",friend:"placeholder-friend",device:a,poster:i,art:r,banner:r,collection:i};t.a=o},function(e,t,n){"use strict"
;function i(e,t,n){return null==n&&(n=e+"s"),1===t?e:n}t.a=i},function(e,t,n){"use strict";function i(e){return e?e.toUpperCase():""}t.a=i},function(e,t,n){"use strict";function i(e){return e.get("ui").get("authCodeExchange")}t.a=i},function(e,t,n){"use strict";function i(e){var t="",n="";e?(t=e.userAgent,n=e.platform):null!=window.navigator&&(t=window.navigator.userAgent,n=window.navigator.platform),this.detect({userAgent:t,platform:n})}var a="undefined"!=typeof window;i.prototype={
constructor:i,tests:[{id:"ee",name:"EE",predicate:function(e){return/^Netbox-/.test(e.userAgent)}},{id:"libertyglobal",name:"Liberty Global",tv:!0,predicate:function(e){return/WPE-Horizon$/.test(e.userAgent)}},{id:"sony",name:"Sony",predicate:function(e){return/playstation|sony/i.test(e.userAgent)}},{id:"nintendo",name:"Nintendo",predicate:function(e){return/nintendo/i.test(e.userAgent)}},{id:"tivo",name:"TiVo",predicate:function(e){return/TiVo/.test(e.userAgent)}},{id:"lg",name:"LG",
predicate:function(e){var t=e.userAgent;return/netcast/i.test(t)||/web[o0]s/i.test(t)&&/smarttv/i.test(t)}},{id:"samsung",name:"Samsung",predicate:function(e){return/Samsung|Tizen/i.test(e.userAgent)}},{id:"panasonic",name:"Panasonic",predicate:function(e){return/viera/i.test(e.userAgent)}},{id:"philips",name:"Philips",predicate:function(e){return/philips/i.test(e.userAgent)}},{id:"toshiba",name:"Toshiba",predicate:function(e){return/toshiba/i.test(e.userAgent)}},{id:"vizio",name:"Vizio",
predicate:function(e){var t=/vizio/i.test(e.userAgent),n=/opera/i.test(e.userAgent),i=a&&window.iMTK_JSP;return t||i&&n}},{id:"swisscom",name:"Swisscom",predicate:function(e){return/swisscom/i.test(e.userAgent)}},{id:"humax",name:"Humax",predicate:function(e){return/humax/i.test(e.userAgent)}},{id:"amazon",name:"Amazon",predicate:function(e){return/-AFT\w-/.test(e.userAgent)}},{id:"generic",name:"Generic Device",predicate:function(e){var t=e.userAgent
;return/smarttv/i.test(t)||/large screen/i.test(t)||/hbbtv/i.test(t)}}],id:"unknown",name:"Unknown Manufacturer",detect:function(e){var t=this.runTests(this.tests,e);t&&(this.id=t.id,this.name=t.name)},runTests:function(e,t){for(var n=0,i=e.length;n<i;n++){var a=e[n];if(a.predicate(t))return a}},toJSON:function(){var e={};for(var t in this)this.hasOwnProperty(t)&&this[t]&&(e[t]=this[t]);return e}},t.a=new i},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"opera"===e.id&&!e.presto}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"opera"===e.id&&e.presto}t.a=i;var a=n(50)},,,function(e,t){function n(e){return encodeURIComponent(e||"")}e.exports=n},,function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(16),c=n(77),u=n(360),d=n(3),p=n(846),h=n(847),f=n(2330),v=n(2341),g=n(2343),m=n.n(g),y=r.a.Layout.extend({tagName:"li",className:"striped-list-item media-list-item",template:m.a,ui:{container:".media-list-inner-item",actions:".media-actions",dropdown:".media-actions-dropdown"},regions:{rating:".media-rating",progress:".media-progress"},events:{"mouseenter > a":"onMouseEnter","mouseleave > a":"onMouseLeave","mousedown > a":"onMouseDown",
"click > a":"onClick","click .play-btn":"onPlayClick","click .more-btn":"onMoreClick","hide.bs.dropdown .media-actions-dropdown":"onDropdownHide"},initialize:function(e){var t=this.model,n=t.get("type");this.type=n,this.$el.addClass(n),this.mediaActions=new p.a({},{item:t,type:n,server:t.server}),this.listenTo(this.mediaActions,{"change:showPlay":this.onActionsChange,"change:showListDropdown":this.onActionsChange})},serializeData:function(){this.shared=this.model.server.get("shared"),
this.synced=!this.model.server.get("isFullServer"),this.multiuser=this.model.server.get("multiuser");var e=this.model.toJSON(),t="#!/server/"+encodeURIComponent(this.model.server.id);if(this.model.channel){var n=this.model.channel,i=n.id?n.id:n.get("identifier");t+="/channel/"+encodeURIComponent(i),"clip"===e.type?t+="/details/"+encodeURIComponent(e.key):t+="/"+encodeURIComponent(e.key)}else if(e.source)t="";else if(e.isLibraryItem){var a=e.key
;"track"===e.type&&(a=e.skipParent?e.grandparentKey:e.parentKey),t+="/details?key="+encodeURIComponent(a)}return{item:e,url:t,showActions:this.showActions()}},getPosterUrl:function(e){return"show"===this.type?this.model.get("grandparentThumb")||this.model.get("parentThumb")||e:e||this.model.get("parentThumb")||this.model.get("grandparentThumb")},showActions:function(){return this.mediaActions.get("showPlay")||this.mediaActions.get("showEdit")||this.mediaActions.get("showListDropdown")},
bindings:{".play-btn":{model:"mediaActions",modelAttribute:"showPlay",manual:!0,autohide:!0},".more-btn":{model:"mediaActions",modelAttribute:"showListDropdown",manual:!0,autohide:!0},".media-title":{modelAttribute:"title",modelListeners:["title","parentTitle","grandparentTitle"],isHtml:!0,formatter:function(e){var t=this.model.get("grandparentTitle")||this.model.get("parentTitle")||e
;return/^(season|episode|album|track)$/.test(this.model.get("type"))&&this.model.get("isLibraryItem")?'<span class="btn-metadata-link media-title-link">'+s.a.escape(t)+"</span>":s.a.escape(t)}},".media-subtitle-1":{modelAttribute:"year",modelListeners:["title","parentTitle","grandparentTitle","year"],autohide:!0,formatter:function(e){var t;if("userPlaylistItem"===this.model.get("type"))this.model.get("recommender")&&(t=Object(d.default)("from {1}",this.model.get("recommender")));else{
t=this.model.get("grandparentTitle")||this.model.get("parentTitle")?this.model.get("title"):e}return this.$el.toggleClass("show-subtitle",!!t),t}},".media-subtitle-2":{modelAttribute:"index",modelListeners:["index","message"],autohide:!0,formatter:function(e){var t=this.model.get("type");return"userPlaylistItem"===t?this.model.get("message"):"episode"===t?Object(u.a)({seasonIndex:this.model.get("parentIndex"),episodeIndex:e,date:this.model.get("originallyAvailableAt"),noLeadingZero:!0,
separator:" \xb7 "}):void 0}}},onRender:function(){this.image&&this.image.setElement(this.ui.poster),("rating"===this.sort||this.showRating)&&this.rating.show(new h.a({model:this.model,disabled:!0})),this.progress&&this.progress.show(new v.a({model:this.model}))},onClose:function(){this.image&&this.image.close(),this.dropdown&&this.dropdown.close()},onActionsChange:function(e){if(this.isRendered){var t=!this.showActions();this.ui.container.toggleClass("hide-actions",t),
this.ui.actions.toggleClass("hidden",t)}},onClick:function(e){var t=this.model.get("type"),n=/^(track|photo)$/;if(this.isPhotoSection&&(n=/^(track|photo|clip)$/),n.test(t)){e.preventDefault();Object(l.c)("appStore").dispatch(Object(c.k)({serverModel:this.model.server,metadataItemModel:this.model}))}},onPlayClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),Object(l.c)("appStore").dispatch(Object(c.k)({serverModel:this.model.server,metadataItemModel:this.model}))},
onMoreClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),a()(".media-actions-dropdown").trigger("hide.bs.dropdown"),this.dropdown=new f.a({model:this.model,mediaActions:this.mediaActions}),this.ui.dropdown.append(this.dropdown.render().el),this.ui.dropdown.addClass("open"),this.$el.addClass("force-hover on-top"),this.ui.dropdown.css(this.ui.actions.position())},onDropdownHide:function(e){this.dropdown&&(this.dropdown.close(),this.dropdown=null,
this.$el.removeClass("force-hover on-top"))}});t.a=y},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.get("playQueue"),a=i.get("currentIndex"),r=i.get("playQueueSelectedItemOffset"),o=n.isApplicationInitiated,s=void 0!==o&&o,l=n.isRestoringPlayQueue,c=void 0!==l&&l,u=Object(P.a)(e,t);if(u){var d=u.get("metadataItem"),p=Math.floor(Object(O.a)(e,d)/1e3),h=Math.floor((d.get("duration")||0)/1e3),f={isMediaLoading:!0,isBuffering:!1,
isLyricsVisible:!1,positionSeconds:p,durationSeconds:h,metricsAutoPlay:s,hasError:!1,errorMessage:null,errorCode:null,errorCategory:null,qualityIndex:null};c||i.get("type")===C.b||(f.isPaused=!1),e.set(f),i.set({playQueueSelectedItemID:u.id,playQueueSelectedItemOffset:r+(t-a)}),Object(j.a)()}}function a(e,t){var n=e.get("playQueue"),i=n.get("length"),a=n.get("currentIndex"),r=a+t;return n.get("repeat")?(r+i)%i:Math.min(Math.max(0,r),i-1)}function r(e,t){e.set({lastSeekPositionSeconds:t})}
function o(e,t,n){e.set({nextPositionSeconds:t}),T&&clearTimeout(T),T=setTimeout(function(){e.get("isOpen")&&(r(e,t),T=null)},n)}function s(e,t){i(e,e.get("playQueue").get("currentIndex"),{isRestoringPlayQueue:t})}function l(e){e.restoreDefaults()}function c(e,t){i(e,a(e,1),{isApplicationInitiated:t})}function u(e){i(e,a(e,-1))}function d(e,t){i(e,t)}function p(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.set({isPaused:!1}),Object(j.a)()}function h(e){
arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.set({isPaused:!0}),Object(j.a)()}function f(e,t,n){n?o(e,t,n):r(e,t),Object(j.a)()}function v(e,t,n){t.save("volume",n)}function g(e,t){e.set("qualityIndex",t)}function m(e,t,n){}function y(e,t,n){t.save("subtitleSize",n)}function b(e,t,n){t.save("autoPlay",n)}function I(e,t){e.set("playbackSpeed",t)}function S(e,t){var n=e.get("playQueue");e.set({repeatAll:t.repeatAll,repeatOne:t.repeatOne}),n.set("repeat",t.repeatAll)}function M(e){}
function D(e){}Object.defineProperty(t,"__esModule",{value:!0}),t.startPlayback=s,t.endPlayback=l,t.playNextItem=c,t.playPreviousItem=u,t.playItem=d,t.play=p,t.pause=h,t.seek=f,t.changeVolume=v,t.changeQualityIndex=g,t.changeStream=m,t.changeSubtitleSize=y,t.changeAutoPlay=b,t.changePlaybackSpeed=I,t.setRepeat=S,t.refreshRemotePlayQueue=M,t.mirrorDetails=D;var C=n(303),j=n(1233),P=n(198),O=n(842),T=null},function(e,t,n){"use strict";function i(e,t){var n=e.get("playQueue");return function(){
if(e.get("isOpen")&&n&&n===e.get("playQueue"))return t.apply(void 0,arguments);a.a.warn("[Player] Player was closed or a new playback session was started; ignoring callback")}}t.a=i;var a=n(32)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=n(1247),v=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMenuButtonPress=function(){a.setState({isMenuOpen:!a.state.isMenuOpen})
},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},a.onSelect=function(e){a.setState({isMenuOpen:!1},function(){a.props.onSelect(e)})},a.state={isMenuOpen:!1},a}return u()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.items,i=t.selectedItem,r=this.state.isMenuOpen;return a()(f.a,{title:i.title,isMenuOpen:r,onPress:this.onMenuButtonPress,onMenuClose:this.onMenuClose},void 0,n.map(function(t){var n=t.key;return a()(h.a,{value:n,isSelected:i.key===n,onSelect:e.onSelect
},n,t.title)}))},t}(p.Component);t.a=v},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(129),v=n.n(f),g=(n(531),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onCloseTimeout=function(){a._closeTimeoutID=null,a.setState({shouldPreventPortalClose:!1},function(){a.props.onClose&&a.props.onClose()})},a.onInteractionEvent=function(e){
a.props.allowInteractionEventBubbling||e.stopPropagation()},a.state={isOpen:n.isOpen,shouldPreventPortalClose:!1},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){return e.isOpen===t.isOpen?null:{isOpen:e.isOpen,shouldPreventPortalClose:e.closeTimeout&&!e.isOpen&&t.isOpen}},t.prototype.componentDidMount=function(){this.props.onOpen&&this.props.isOpen&&this.props.onOpen()},t.prototype.componentDidUpdate=function(e,t){
!this.state.shouldPreventPortalClose&&t.shouldPreventPortalClose&&(this._closeTimeoutID=clearTimeout(this._closeTimeoutID)),this.state.shouldPreventPortalClose&&!t.shouldPreventPortalClose&&(this._closeTimeoutID=setTimeout(this.onCloseTimeout,this.props.closeTimeout)),this.props.onOpen&&this.props.isOpen&&!e.isOpen&&this.props.onOpen()},t.prototype.componentWillUnmount=function(){this._closeTimeoutID&&clearTimeout(this._closeTimeoutID)},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.style,i=e.children,a=e.forwardedRef,r=this.state,o=r.isOpen,s=r.shouldPreventPortalClose;return o||s?v.a.createPortal(h.a.createElement("div",{className:t,style:n,ref:a,onTouchStart:this.onInteractionEvent,onTouchMove:this.onInteractionEvent,onTouchEnd:this.onInteractionEvent,onTouchCancel:this.onInteractionEvent,onMouseDown:this.onInteractionEvent,onMouseUp:this.onInteractionEvent,onMouseLeave:this.onInteractionEvent,onClick:this.onInteractionEvent,
onFocus:this.onInteractionEvent,onBlur:this.onInteractionEvent},i),document.body):null},t}(p.Component));g.defaultProps={isOpen:!0,closeTimeout:0,allowInteractionEventBubbling:!1},t.a=h.a.forwardRef(function(e,t){return h.a.createElement(g,a()({},e,{forwardedRef:t}))})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){var t=e.transitionProps,n=s()(e,["transitionProps"]);return u.a.createElement(p.a,r()({style:v,background:!0,minSize:!0,transition:!0,
transitionProps:r()({className:f.a.imageContainer},d.a,t),allowSizeBracket:!0},n))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(311),p=n(185),h=n(2843),f=n.n(h),v={width:"100%",height:"100%"};t.a=i},function(e,t,n){"use strict";function i(e,t){var n=encodeURIComponent(e.machineIdentifier),i=encodeURIComponent(t.identifier),a="/server/"+n;return t.isLibraryProvider?a:(e.isCloud?"":a)+"/provider/"+i}function a(e){
var t=Object(r.a)(e),n=t.isServer,i=t.serverIdentifier,a=t.providerIdentifier;return(n?"/server/"+i:"")+"/provider/"+a}t.a=i,t.b=a;var r=n(1157)},function(e,t,n){"use strict";function i(e){var t=o.a.get("audio").id,n=Object(s.a)(e,{streamType:t,selected:!0});return r.a.first(n)}var a=n(10),r=n.n(a),o=n(159),s=n(267);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return l}),
n.d(t,"d",function(){return c}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return h});var i=n(3),a=n(230),r="all",o="movies",s="tv",l="music",c="photos",u=["id","key"],d=Object(a.a)(u,[{key:r,title:function(){return Object(i.default)("All Media")}},{id:1,key:o,title:function(){return Object(i.default)("Movies")}},{id:4,key:s,title:function(){return Object(i.default)("TV")}},{id:10,key:l,title:function(){return Object(i.default)("Music")}},{id:13,key:c,title:function(){
return Object(i.default)("Photos")}}]),p=d.get,h=d.getAll},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(162)),r=Object(i.createSelector)(a.a,function(e){return e.pmp});t.a=r},,function(e,t,n){"use strict";function i(e){return!e.isShared}function a(e){return!!e.pmp.isSettingsPopulated}function r(e,t){return!!e.features.find(function(e){return e.uuid===t})}function o(e,t){var n=e.diagnostics;return!(!r(t,g.h)||!n||-1===n.indexOf("streaminglogs"))}function s(e,t){return i(e)&&r(t,g.j)}
function l(e){return e.pmp.sessions.length>0}function c(e){return e.allowChannelAccess}function u(e){return e.pmp.backgroundTranscodeJobs.length>0}function d(e){var t=e.pmp.cloudAccount;return t&&t.remoteAccessState}var p=n(2),h=n.n(p),f=n(0),v=(n.n(f),n(30)),g=n(79),m=n(3),y=n(2910),b=n(3033),I=n(3121),S=n(3161),M=n(3166),D=n(3167),C=n(3169),j=[{key:"status",title:function(){return Object(m.default)("Status")},isVisible:!0,metricsPage:v._4,metricsPanePrefix:"",groups:[{key:"now-playing",
title:function(){return Object(m.default)("Now Playing")},isVisible:function(e,t){return i(e)&&!s(e,t)},metricsPage:v.L,createStatusIndicator:function(e){return h()(M.a,{isActive:l(e)})}},{key:"server-dashboard",title:function(){return Object(m.default)("Dashboard")},isVisible:s,metricsPage:v.X,createStatusIndicator:function(e){return h()(M.a,{isActive:l(e)})}},{key:"alerts",title:function(){return Object(m.default)("Alerts")},isVisible:i},{key:"sync",title:function(){
return Object(m.default)("Sync")},isVisible:!0},{key:"conversion",title:function(){return Object(m.default)("Conversions")},isVisible:i,createStatusIndicator:function(e){return h()(M.a,{isActive:u(e)})}}]},{key:"settings",title:function(){return Object(m.default)("Settings")},isVisible:i,metricsPage:v.Y,metricsPanePrefix:"server:",groups:[{key:"general",title:function(){return Object(m.default)("General")},isVisible:a,createStatusIndicator:function(e){return h()(C.a,{isClaimed:!!e.isClaimed})}
},{key:"remoteAccess",title:function(){return Object(m.default)("Remote Access")},isVisible:function(e){return!e.isPersonalCloudServer&&a(e)},createStatusIndicator:function(e){return h()(D.a,{remoteAccessState:d(e)})}},{key:"agents",title:function(){return Object(m.default)("Agents")},isVisible:a},{key:"library",title:function(){return Object(m.default)("Library")}},{key:"channels",title:function(){return Object(m.default)("Plugins")},isVisible:a},{key:"network",title:function(){
return Object(m.default)("Network")}},{key:"transcoder",title:function(){return Object(m.default)("Transcoder")}},{key:"languages",title:function(){return Object(m.default)("Languages")},isVisible:a},{key:"dlna",title:function(){return Object(m.default)("DLNA")}},{key:"butler",title:function(){return Object(m.default)("Scheduled Tasks")}},{key:"extras",title:function(){return Object(m.default)("Extras")}}]},{key:"manage",title:function(){return Object(m.default)("Manage")},isVisible:!0,groups:[{
key:"libraries",title:function(){return Object(m.default)("Libraries")},isVisible:i,metricsPage:v.Y,metricsPane:"server:libraries",paneComponent:b.a},{key:"versions",title:function(){return Object(m.default)("Optimized Versions")},isVisible:function(e){return i(e)&&!e.isPersonalCloudServer&&a(e)},metricsPage:v._4,metricsPane:"versions"},{key:"dvr",title:function(){return Object(m.default)("Live TV & DVR")},isVisible:function(e){return i(e)&&e.livetv>=1&&a(e)},metricsPage:v.Y,
metricsPane:"server:dvr",paneComponent:y.a},{key:"help",title:function(){return Object(m.default)("Troubleshooting")},isVisible:function(e){return i(e)&&a(e)},metricsPage:v.Y,metricsPane:"server:help",paneComponent:S.a},{key:"console",title:function(){return Object(m.default)("Console")},isVisible:function(e,t){return i(e)&&o(e,t)},metricsPage:v.Y,metricsPane:"server:console",pageComponent:I.a},{key:"plugins",title:function(){return Object(m.default)("Plugins")},isVisible:c,route:function(e){
return"#!/server/"+encodeURIComponent(e.machineIdentifier)+"/channels"}}]}];t.a=j},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=n.n(h),v=n(0),g=n.n(v),m=n(439),y=n(28),b=n(16),I=function(e){function t(){var n,i,r;l()(this,t);for(var s=arguments.length,c=Array(s),d=0;d<s;d++)c[d]=arguments[d];return n=i=u()(this,e.call.apply(e,[this].concat(c))),i.onPress=function(e){var t=i.props,n=(t.children,
o()(t,["children"])),r=i.context.metricsPage;Object(b.c)("metrics").trackClick(a()({},n,{page:r}))},r=n,u()(i,r)}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},t.prototype.render=function(){var e=g.a.Children.only(this.props.children);return g.a.cloneElement(e,{onPress:Object(m.a)(this.onPress,e.props.onPress)})},t}(v.Component);I.contextTypes={metricsPage:f.a.string.isRequired},t.a=I},function(e,t,n){"use strict";function i(e){
return e.get("ui").get("dvrSettingsUI")}function a(e,t,n){var i=Object(g.h)(e,t),a=c.join(["/livetv/dvrs",t.dvrID,"reloadGuide"]),r=i.getXHROptions(a,{method:n});s.a.ajax(r)}n.d(t,"d",function(){return m}),n.d(t,"b",function(){return y}),n.d(t,"f",function(){return I}),n.d(t,"e",function(){return S}),n.d(t,"a",function(){return M}),n.d(t,"c",function(){return D})
;var r,o=n(13),s=n.n(o),l=n(40),c=n(18),u=n(125),d=n(124),p=n(123),h=n(3),f=n(1402),v=n(685),g=n(134),m=Object(l.a)("ui/dvrSettings/initDVRSettingsUI"),y=Object(l.a)("ui/dvrSettings/clearDVRSettingsUI"),b=Object(l.a)("ui/dvrSettings/fetchDVRs"),I=Object(l.a)("ui/dvrSettings/removeDVR"),S=Object(l.a)("ui/dvrSettings/reloadGuide"),M=Object(l.a)("ui/dvrSettings/cancelReloadGuide"),D=Object(u.a)((r={},r["ui/dvrSettings/fetchDVRs"]=Object(d.a)({key:"dvrs",getModel:i}),
r["ui/dvrSettings/initDVRSettingsUI"]=function(e,t,n){var a=i(e),r=a.get("dvrSetup"),o=a.get("dvr"),s=Object(g.h)(e,t),l=s.get("machineIdentifier"),c={isUIPopulated:!0};o&&o.server.get("machineIdentifier")===l||(c.dvrs=new f.a([],{server:s})),r&&r.server.get("machineIdentifier")===l?r.restoreDefaults():c.dvrSetup=new v.a({},{server:s}),a.set(c),s.hasOwnerFeature("dvr")&&n(b(t))},r["ui/dvrSettings/clearDVRSettingsUI"]=function(e){i(e).set("isUIPopulated",!1)},
r["ui/dvrSettings/removeDVR"]=function(e,t,n){var a=i(e),r=a.get("dvrs"),o=r.get(t.dvrID);o&&o.destroy().fail(function(){return n(Object(p.d)(Object(h.default)("There was a problem removing your DVR")))})},r["ui/dvrSettings/reloadGuide"]=function(e,t,n){a(e,t,"POST")},r["ui/dvrSettings/cancelReloadGuide"]=function(e,t,n){a(e,t,"DELETE")},r))},function(e,t,n){"use strict";function i(e){if(!e||"object"!==(void 0===e?"undefined":s()(e)))return!1
;var t="function"==typeof e.constructor?r()(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&l(n)===c}t.a=i;var a=n(1401),r=n.n(a),o=n(351),s=n.n(o),l=function(e){return Function.prototype.toString.call(e)},c=l(Object)},function(e,t,n){"use strict";function i(e,t){if(e===t)return 0;for(var n=e.split("."),i=t.split("."),a=0;a<n.length;a++){if(!i[a])return 1;var r=parseInt(n[a],10),o=parseInt(i[a],10);if(r>o)return 1;if(r<o)return-1}return 0}
t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return v});var i=n(17),a=n(14),r=n(356),o=n(928),s=n(386),l=n(1405),c=n(2927),u=n(1403),d=n(2929),p=n(2936),h=n(929),f=n(1404),v={DEVICE:"device",UNSUPPORTED_DEVICE:"unsupportedDevice",DEVICE_CHANNELS:"deviceChannels",EPG:"epg",EPG_MAPPING:"epgMapping",CHANNEL_MAPPING:"channelMapping",EPG_DOWNLOAD:"epgDownload"},g=i.a.extend({name:"DVRSetupModel",context:["server"],sessionAttrs:{isDevicesPending:a.a.boolean,isDevicesPopulated:a.a.boolean,
devicesError:a.a.object,isDiscoveringDevices:a.a.boolean,isChannelMappingsPending:a.a.boolean,isChannelMappingsPopulated:a.a.boolean,channelMappingsError:a.a.object,isChannelMappingsSaving:a.a.boolean,channelMappingsSaveError:a.a.object,isLineupChannelsPending:a.a.boolean,isLineupChannelsPopulated:a.a.boolean,lineupChannelsError:a.a.object,epgLineupActivityID:a.a.string,epgDownloadActivityID:a.a.string,step:a.a.string,selectedLineupUUID:a.a.string,addDevicePending:a.a.boolean,
isSavingDVR:a.a.boolean,hasScannedChannels:a.a.boolean},sessionRelations:{devices:{relationClass:o.a},lineupChannels:{relationClass:p.a},epgSettings:{relationClass:d.a},channelMappings:{relationClass:f.a},selectedDVR:{relationClass:u.a,deferred:!0},selectedDevice:{relationClass:s.a,deferred:!0},selectedLanguage:{relationClass:h.a,deferred:!0},setupErrorMessages:{relationClass:c.a},scanPrefs:{relationClass:r.a,deferred:!0},scanNetworks:{relationClass:l.a,deferred:!0}},defaults:{step:v.DEVICE,
isDevicesPending:!1,isDevicesPopulated:!1,isDiscoveringDevices:!1,devicesError:null,isChannelMappingsPending:!1,isChannelMappingsPopulated:!1,channelMappingsError:null,isChannelMappingsSaving:!1,channelMappingsSaveError:null,isLineupChannelsPending:!1,isLineupChannelsPopulated:!1,lineupChannelsError:null,epgLineupActivityID:"",epgDownloadActivityID:"",addDevicePending:!1,isSavingDVR:!1,hasScannedChannels:!1}});t.a=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
n.d(t,"resetEPGSettings",function(){return r}),n.d(t,"fetchEPGCountries",function(){return o}),n.d(t,"fetchEPGLanguages",function(){return s}),n.d(t,"selectEPGCountry",function(){return l}),n.d(t,"selectEPGLanguage",function(){return c}),n.d(t,"selectEPGRegion",function(){return u}),n.d(t,"setEPGPostalCode",function(){return d}),n.d(t,"fetchEPGLineups",function(){return p})
;var i=n(40),a=n(126),r=Object(i.a)(a.Z),o=Object(i.a)(a.k),s=Object(i.a)(a.l),l=Object(i.a)(a._2),c=Object(i.a)(a._3),u=Object(i.a)(a._4),d=Object(i.a)(a._9),p=Object(i.a)(a.m)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.model,o=e.thumb,s=e.width,c=e.height,d=void 0;switch(a){case"HDHomeRun CONNECT":d=u.a;break;case"HDHomeRun EXPAND":d=p.a;break;case"HDHomeRun EXTEND":d=f.a;break;case"HDHomeRun PRIME":d=g.a}var h={width:s,height:c}
;return r()(l.a,{serverEntityID:n,providerEntityID:i,className:t,style:h,url:o,src:o?void 0:d,background:!0,width:s,height:c,minSize:!0})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(185)),c=n(2950),u=n.n(c),d=n(2951),p=n.n(d),h=n(2952),f=n.n(h),v=n(2953),g=n.n(v),m=n(2954),y=n.n(m);i.defaultProps={className:y.a.image},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.formGroupClassName,n=e.labelText,i=e.checkboxText,a=e.helpText,o=e.showErrors,l=e.errors,u=c()(e,["formGroupClassName","labelText","checkboxText","helpText","showErrors","errors"]),d=l[0];return s()(f.a,{className:t},void 0,n&&s()(g.a,{},void 0,n),p.a.createElement(h.a,r()({hasError:o,checkboxText:s()("span",{},void 0,i,o&&d&&" \u2014 "+d)},u)),a&&s()(v.a,{},void 0,a))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),
n(0)),p=n.n(d),h=n(388),f=n(238),v=n(460),g=n(149),m=n(189);i.defaultProps={showErrors:!1,errors:[]},t.a=Object(m.a)(i)},function(e,t,n){"use strict";function i(e){var t=e.formGroupClassName,n=e.formLabelClassName,i=e.name,a=e.labelText,o=e.helpText,l=e.showErrors,u=e.errors,d=e.children,m=c()(e,["formGroupClassName","formLabelClassName","name","labelText","helpText","showErrors","errors","children"]);return s()(h.a,{className:t},void 0,d,s()(v.a,{className:n,showErrors:l,errors:u,name:i,
labelText:a}),p.a.createElement(g.a,r()({name:i,hasError:l},m)),o&&s()(f.a,{},void 0,o))}t.a=i;var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(238),f=n(460),v=n(556),g=n(218),m=n(189);i.defaultProps={errors:[]},t.b=Object(m.a)(i)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e){return e.ui.dvrSettingsUI},function(e,t){return t.dvrID},function(e,t){var n=e.dvrs;return o.a.find(n,{key:t})})}var a=n(4),r=(n.n(a),
n(10)),o=n.n(r);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return e?e.pmp.libraries:void 0})}function a(){return Object(r.createSelector)(s.a,i(),function(e,t){return t?t.map(function(t){return e[t]}):[]})}t.a=a;var r=n(4),o=(n.n(r),n(35)),s=n(692)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.libraries});t.a=r},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(25),o=n(608),s=n(3039),l=r.a.extend({name:"AgentCollection",context:["server","mediaTypeID","primaryAgentID","relatedAgentID"],model:s.a,cache:new o.a,cacheKey:function(){var e=a.a.result(this,"url");return this.server&&this.server.getScopedKey(e)},url:function(){var e="/system/agents"
;return this.primaryAgentID?e+"/contributors?mediaType="+this.mediaTypeID+"&primaryAgent="+this.primaryAgentID:this.relatedAgentID?e+"/"+this.relatedAgentID+"/config/"+this.mediaTypeID:this.mediaTypeID?e+"?mediaType="+this.mediaTypeID:e},hasExclusiveAgent:function(e){return!!a.a.intersection(this.pluck("identifier"),e).length}});t.a=l},function(e,t,n){!function(t,i){e.exports=i(n(10),n(424))}(0,function(e,t){function n(n){return{underscore:e,backbone:t}[n]}return function(e){function t(e){
var n=t.cache[e];if(!n){var i={};n=t.cache[e]={id:e,exports:i},t.modules[e].call(i,n,i)}return n.exports}return t.cache=[],t.modules=[function(e,i){function a(e,t){this._superset=e,this._filtered=new s(e,t),this._sorted=new l(this._filtered,t),this._paginated=new c(this._sorted,t),u(this._paginated,this),d.call(this,this._filtered,f),d.call(this,this._sorted,g),d.call(this,this._paginated,y),this.initialize(t)}var r=n("underscore"),o=n("backbone"),s=t(2),l=t(5),c=t(4),u=t(1),d=t(7),p={
superset:function(){return this._superset},getFilteredLength:function(){return this._filtered.length},removeTransforms:function(){return this._filtered.resetFilters(),this._sorted.removeSort(),this._paginated.removePagination(),this},destroy:function(){this.stopListening(),this._filtered.destroy(),this._sorted.destroy(),this._paginated.destroy(),this.length=0,this.trigger("obscura:destroy")}
},h=["filterBy","removeFilter","resetFilters","refilter","hasFilter","getFilters"],f=["filtered:add","filtered:remove","filtered:reset"],v=["setSort","reverseSort","removeSort"],g=["sorted:add","sorted:remove"],m=["setPerPage","setPage","getPerPage","getNumPages","getPage","hasNextPage","hasPrevPage","nextPage","prevPage","movePage","removePagination","firstPage","lastPage"],y=["paginated:change:perPage","paginated:change:page","paginated:change:numPages"],b=["add","create","remove","set","reset","sort","parse","sync","fetch","push","pop","shift","unshift"]
;r.each(h,function(e){p[e]=function(){var t=s.prototype[e].apply(this._filtered,arguments);return t===this._filtered?this:t}}),r.each(m,function(e){p[e]=function(){var t=c.prototype[e].apply(this._paginated,arguments);return t===this._paginated?this:t}}),r.each(v,function(e){p[e]=function(){var t=l.prototype[e].apply(this._sorted,arguments);return t===this._sorted?this:t}}),r.each(b,function(e){p[e]=function(){
throw new Error("Backbone.Obscura: Unsupported method: "+e+"called on read-only proxy")}}),r.extend(a.prototype,p,o.Events),a=o.Collection.extend(a.prototype),a.FilteredCollection=s,a.SortedCollection=l,a.PaginatedCollection=c,e.exports=a},function(e,t){function i(e,t){function n(){t.length=e.length}function i(n){var i=a.toArray(arguments),r="change"===n||"change:"===n.slice(0,7);"reset"===n&&(t.models=e.models),
a.contains(s,n)?(a.contains(["add","remove","destroy"],n)?i[2]=t:a.contains(["reset","sort"],n)&&(i[1]=t),t.trigger.apply(this,i)):r&&t.contains(i[1])&&t.trigger.apply(this,i)}var l={};return a.each(a.functions(r.Collection.prototype),function(t){a.contains(o,t)||(l[t]=function(){return e[t].apply(e,arguments)})}),a.extend(t,r.Events,l),t.listenTo(e,"all",n),t.listenTo(e,"all",i),t.models=e.models,n(),t}
var a=n("underscore"),r=n("backbone"),o=["_onModelEvent","_prepareModel","_removeReference","_reset","add","initialize","sync","remove","reset","set","push","pop","unshift","shift","sort","parse","fetch","create","model","off","on","listenTo","listenToOnce","bind","trigger","once","stopListening"],s=["add","remove","reset","sort","destroy","sync","request","error"];e.exports=i},function(e,i){function a(){this._filterResultCache={}}function r(e){
for(var t in this._filterResultCache)this._filterResultCache.hasOwnProperty(t)&&delete this._filterResultCache[t][e]}function o(e,t){this._filters[e]&&r.call(this,e),this._filters[e]=t,this.trigger("filtered:add",e)}function s(e){delete this._filters[e],r.call(this,e),this.trigger("filtered:remove",e)}function l(e){this._filterResultCache[e.cid]||(this._filterResultCache[e.cid]={});var t=this._filterResultCache[e.cid]
;for(var n in this._filters)if(this._filters.hasOwnProperty(n)&&(t.hasOwnProperty(n)||(t[n]=this._filters[n].fn(e)),!t[n]))return!1;return!0}function c(e){e||(e={});var t=[];this._superset&&(t=this._superset.filter(m.bind(l,this))),e.reset?this._collection.reset(t):this._collection.set(t),this.length=this._collection.length}function u(){c.call(this,{reset:!0})}function d(){var e=!(!this._superset||!this._superset.comparator);c.call(this,{reset:e})}function p(e){
if(this._filterResultCache[e.cid]={},l.call(this,e)){if(!this._collection.get(e.cid)){for(var t=this.superset().indexOf(e),n=null,i=t-1;i>=0;i-=1)if(this.contains(this.superset().at(i))){n=this.indexOf(this.superset().at(i))+1;break}n=n||0,this._collection.add(e,{at:n})}}else this._collection.get(e.cid)&&this._collection.remove(e);this.length=this._collection.length}function h(e){this._filterResultCache[e.cid]={},l.call(this,e)||this._collection.get(e.cid)&&this._collection.remove(e)}
function f(e,t,n){"change:"===e.slice(0,7)&&h.call(this,arguments[1])}function v(e){this.contains(e)&&this._collection.remove(e),this.length=this._collection.length}function g(e){this._superset=e,this._collection=new y.Collection(e.toArray()),b(this._collection,this),this.resetFilters(),this.listenTo(this._superset,"reset",u),this.listenTo(this._superset,"sort",d),this.listenTo(this._superset,"add change",p),this.listenTo(this._superset,"remove",v),this.listenTo(this._superset,"all",f)}
var m=n("underscore"),y=n("backbone"),b=t(1),I=t(3),S={defaultFilterName:"__default",filterBy:function(e,t){return t||(t=e,e=this.defaultFilterName),o.call(this,e,I(t)),c.call(this),this},removeFilter:function(e){return e||(e=this.defaultFilterName),s.call(this,e),c.call(this),this},resetFilters:function(){return this._filters={},a.call(this),this.trigger("filtered:reset"),c.call(this),this},superset:function(){return this._superset},refilter:function(e){
return"object"==typeof e&&e.cid?p.call(this,e):(a.call(this),c.call(this)),this},getFilters:function(){return m.keys(this._filters)},hasFilter:function(e){return m.contains(this.getFilters(),e)},destroy:function(){this.stopListening(),this._collection.reset([]),this._superset=this._collection,this.length=0,this.trigger("filtered:destroy")}};m.extend(g.prototype,S,y.Events),e.exports=g},function(e,t){function i(e,t){return function(n){return n.get(e)===t}}function a(e,t){return function(n){
return t(n.get(e))}}function r(e,t){return l.isArray(t)||(t=null),{fn:e,keys:t}}function o(e){var t=l.keys(e),n=l.map(t,function(t){var n=e[t];return l.isFunction(n)?a(t,n):i(t,n)});return r(function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0},t)}function s(e,t){return l.isFunction(e)?r(e,t):l.isObject(e)?o(e):void 0}var l=n("underscore");e.exports=s},function(e,i){function a(){var e=this.getPage()*this.getPerPage();return[e,e+this.getPerPage()]}function r(){var e=a.call(this)
;this._collection.reset(this.superset().slice(e[0],e[1]))}function o(){var e=(this._totalPages,this.superset().length),t=this.getPerPage(),n=e%t==0?e/t:Math.floor(e/t)+1,i=this._totalPages!==n;if(this._totalPages=n,i&&this.trigger("paginated:change:numPages",{numPages:n}),this.getPage()>=n)return this.setPage(n-1),!0}function s(){o.call(this)||r.call(this)}function l(e,t){for(var n=d.max([e.length,t.length]),i=0,a=0;i<n;i+=1,a+=1)if(e[i]!==t[a])if(t[i-1]===e[i])a-=1;else{
if(t[i+1]!==e[i])return e[i];a+=1}}function c(e,t,n){if(!o.call(this)){var i=a.call(this),r=i[0],s=i[1],c=l(this.superset().slice(r,s),this._collection.toArray()),u=l(this._collection.toArray(),this.superset().slice(r,s));u&&this._collection.remove(u),c&&this._collection.add(c,{at:this.superset().indexOf(c)-r})}}function u(e,t){this._superset=e,this._collection=new p.Collection(e.toArray()),this._page=0,this.setPerPage(t&&t.perPage?t.perPage:null),h(this._collection,this),
this.listenTo(this._superset,"add remove",c),this.listenTo(this._superset,"reset sort",s)}var d=n("underscore"),p=n("backbone"),h=t(1),f={removePagination:function(){return this.setPerPage(null),this},setPerPage:function(e){return this._perPage=e,s.call(this),this.setPage(0),this.trigger("paginated:change:perPage",{perPage:e,numPages:this.getNumPages()}),this},setPage:function(e){var t=this.getNumPages()-1;return e=e>0?e:0,e=e<t?e:t,e=e<0?0:e,this._page=e,r.call(this),
this.trigger("paginated:change:page",{page:e}),this},getPerPage:function(){return this._perPage||this.superset().length||1},getNumPages:function(){return this._totalPages},getPage:function(){return this._page},hasNextPage:function(){return this.getPage()<this.getNumPages()-1},hasPrevPage:function(){return this.getPage()>0},nextPage:function(){return this.movePage(1),this},prevPage:function(){return this.movePage(-1),this},firstPage:function(){this.setPage(0)},lastPage:function(){
this.setPage(this.getNumPages()-1)},movePage:function(e){return this.setPage(this.getPage()+e),this},superset:function(){return this._superset},destroy:function(){this.stopListening(),this._collection.reset([]),this._superset=this._collection,this._page=0,this._totalPages=0,this.length=0,this.trigger("paginated:destroy")}};d.extend(u.prototype,f,p.Events),e.exports=u},function(e,i){function a(e){return d.isFunction(e)?e:function(t){return t.get(e)}}function r(e){
return this._comparator?this._reverse?f(this._collection.toArray(),e,a(this._comparator)):d.sortedIndex(this._collection.toArray(),e,a(this._comparator)):this._superset.indexOf(e)}function o(e){var t=r.call(this,e);this._collection.add(e,{at:t})}function s(e){this.contains(e)&&this._collection.remove(e)}function l(e){this.contains(e)&&this._collection.indexOf(e)!==r.call(this,e)&&(this._collection.remove(e),o.call(this,e))}function c(){
if(!this._comparator)return void this._collection.reset(this._superset.toArray());var e=this._superset.sortBy(this._comparator);this._collection.reset(this._reverse?e.reverse():e)}function u(e){this._superset=e,this._reverse=!1,this._comparator=null,this._collection=new p.Collection(e.toArray()),h(this._collection,this),this.listenTo(this._superset,"add",o),this.listenTo(this._superset,"remove",s),this.listenTo(this._superset,"change",l),this.listenTo(this._superset,"reset",c)}
var d=n("underscore"),p=n("backbone"),h=t(1),f=t(6),v={setSort:function(e,t){return this._reverse="desc"===t,this._comparator=e,c.call(this),e?this.trigger("sorted:add"):this.trigger("sorted:remove"),this},reverseSort:function(){return this._reverse=!this._reverse,c.call(this),this},removeSort:function(){return this.setSort(),this},superset:function(){return this._superset},destroy:function(){this.stopListening(),this._collection.reset([]),this._superset=this._collection,this.length=0,
this.trigger("sorted:destroy")}};d.extend(u.prototype,v,p.Events),e.exports=u},function(e,t){function i(e){return r.isFunction(e)?e:function(t){return t[e]}}function a(e,t,n,a){n=null==n?r.identity:i(n);for(var o=n.call(a,t),s=0,l=e.length;s<l;){var c=s+l>>>1;n.call(a,e[c])<o?l=c:s=c+1}return s}var r=n("underscore");e.exports=a},function(e,t){function i(e,t){a.each(t,function(t){this.listenTo(e,t,function(){var e=a.toArray(arguments);e.unshift(t),this.trigger.apply(this,e)})},this)}
var a=n("underscore");e.exports=i}],t(0)}()})},function(e,t,n){"use strict";function i(e){return Object(s.createSelector)(Object(d.a)(),function(t){return c.a.find(t,{type:e})})}function a(){return i(u.a.OPTIMIZE_DATABASE)}function r(){return i(u.a.CLEAN_BUNDLES)}function o(){return i(u.a.LIBRARY_DELETE)}t.c=a,t.a=r,t.b=o;var s=n(4),l=(n.n(s),n(10)),c=n.n(l),u=n(188),d=n(319)},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(429),o=n(835),s=n(3226),l=n(3228),c=n(96),u=n(3230),d=n(3232),p=n(3238),h=n(3240),f=n(3242),v=n.n(f),g=c.a.extend({mixins:[r.a],name:"convertModal",className:"convert-modal modal fade",template:v.a,regions:{bodyRegion:".modal-body-region"},initialize:function(e){c.a.prototype.initialize.apply(this,arguments),this.server=this.model?this.model.server:e.item.server;var t={server:this.server,allowInCache:!0};this.playlists=new o.a([],t),this.targets=new l.a([],t),
this.profiles=new s.a([],t)},initialState:"loading",states:{loading:{nextState:"form",onEnter:function(){this.bodyRegion.show(new p.a),this.listenForStateRequests();var e=this.options.item,t=e&&!e.get("isMetadataList"),n=a.a.when(t?e.populate():null,this.playlists.populate(),this.targets.populate(),this.profiles.populate(),this.server.get("sections").populate());n.done(this.whenRendered(function(){this.playlist=this.playlists.first(),this.playlist?this.enterNextState():this.enterState("error")
})),n.fail(this.whenRendered(function(){this.enterState("error")}))}},form:{nextState:"success",onEnter:function(){this.bodyRegion.show(new d.a({model:this.model,item:this.options.item,items:this.options.items,playlist:this.playlist,targets:this.targets,profiles:this.profiles})),this.listenForStateRequests()}},success:{onEnter:function(){this.model?this.hide():(this.bodyRegion.show(new h.a({server:this.server})),this.listenForStateRequests())}},error:{onEnter:function(e){
this.bodyRegion.show(new u.a({status:e})),this.listenForStateRequests()}}},listenForStateRequests:function(){this.bodyRegion&&this.bodyRegion.currentView&&this.listenTo(this.bodyRegion.currentView,{"request:state":this.enterState,"request:nextState":this.enterNextState})},onRender:function(){c.a.prototype.onRender.apply(this,arguments),this.enterNextState()},onStateMachineComplete:function(){this.hide()}});t.a=g},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=function(e){function t(){return a()(this,t),o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentDidMount=function(){var e=this.props.view;this._view=new e(this.props.viewOptions),this._view.render(),this._el.appendChild(this._view.el),this._view.triggerMethod("show")},t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.componentWillUnmount=function(){
this._view.close&&this._view.close()},t.prototype.render=function(){var e=this;return d.a.createElement("div",{ref:function(t){return e._el=t}})},t}(u.Component);t.a=p},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(28)),f=n(3),v=n(26),g=n(3268),m=n.n(g),y=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){
return Object(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.isConnected,i=e.isUnavailable,r=e.isSecure;return e.isRelayed?a()(v.a,{className:(t||"")+" "+(m.a.warningIcon||""),name:"plex-icon-alert-round-560","aria-label":Object(f.default)("Indirect")}):i?a()(v.a,{className:(t||"")+" "+(m.a.alertIcon||""),name:"plex-icon-alert-560","aria-label":Object(f.default)("Unavailable")}):r&&n?a()(v.a,{className:(t||"")+" "+(m.a.secureIcon||""),name:"plex-icon-lock-560",
"aria-label":Object(f.default)("Secure")}):null},t}(p.Component);t.a=y},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){s()(this,n);var a=c()(this,t.call(this,e,i));return a.onMouseMove=function(e){a._setHoveredState(!0),a.props.onMouseMove&&a.props.onMouseMove(e)},a.onMouseLeave=function(e){a._setHoveredState(!1),a.props.onMouseLeave&&a.props.onMouseLeave(e)},a.onFocus=function(e){a._setHoveredState(!0),a.props.onFocus&&a.props.onFocus(e)},a.onBlur=function(e){
a._setHoveredState(!1),a.props.onBlur&&a.props.onBlur(e)},a.state={isHovered:!1},a._hoverableProps={onMouseMove:a.onMouseMove,onMouseLeave:a.onMouseLeave,onFocus:a.onFocus,onBlur:a.onBlur},a}return d()(n,t),n.prototype._setHoveredState=function(e){this.state.isHovered!==e&&this.setState({isHovered:e})},n.prototype.render=function(){return v.a.createElement(e,r()({},this.props,{isHovered:this.state.isHovered,hoverableProps:this._hoverableProps}))},n}(f.Component)
;return t.displayName="Hoverable("+Object(g.a)(e)+")",t.WrappedComponent=e,t}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=n.n(p),f=n(0),v=n.n(f),g=n(190);h.a.shape({onMouseMove:h.a.func.isRequired,onMouseLeave:h.a.func.isRequired,onFocus:h.a.func.isRequired,onBlur:h.a.func.isRequired}).isRequired,h.a.bool.isRequired;t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(20),m=n(26),y=n(3289),b=n.n(y),I=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.title,i=o()(e,["icon","title"]);return v.a.createElement(g.a,i,a()(m.a,{name:t,label:n}))},t}(f.Component);I.defaultProps={className:b.a.sidebarIconButton},t.a=I},function(e,t,n){"use strict";function i(e){var t=e.machineIdentifier,n=e.showChannels,i=e.cloudProviderEntityIDs
;if(!n&&!i.length)return null;var a=encodeURIComponent(t);return r()(l.a,{title:Object(c.default)("Online Content")},void 0,n&&t&&r()(u.a,{to:"#!/server/"+a+"/channels",icon:"plex-icon-channels-560",title:Object(c.default)("Plugins"),"data-qa-id":"sidebarPlugins"},"channels"),i.map(function(e){return r()(d.a,{providerEntityID:e},e)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(962)),c=n(3),u=n(220),d=n(3301);i.defaultProps={showChannels:!0},t.a=i},function(e,t,n){"use strict"
;function i(e,t,n){var i=e.key,o=e.types,s=void 0===o?{}:o,l=t.protocols.includes(a.a),c=i===r.a;if(l)return c;if(c)return!1;var u="com.plexapp.agents.none"===n.agent;if(i===r.i&&!u||i===r.c&&u)return!1;var d=s.type,p=s.subtype;return n.type===d&&(null==p&&null==n.subtype||null!=p&&n.subtype===p)}var a=n(611),r=n(221);t.a=i},function(e,t,n){"use strict";function i(e){return e.userRating===r}n.d(t,"b",function(){return a}),n.d(t,"a",function(){return r});var a=-1,r=10;t.c=i},function(e,t,n){
"use strict";function i(e){var t=e.className,n=e.leafCount,i=void 0;return null!=n&&(i=1===n?Object(l.default)("{episodeCount} episode",{episodeCount:n}):Object(l.default)("{episodeCount} episodes",{episodeCount:n})),r()("span",{className:t},void 0,i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.circleClassName,i=e.iconClassName,a=e.title,o=c()(e,["className","circleClassName","iconClassName","title"])
;return p.a.createElement(h.a,r()({className:t,"aria-label":Object(f.default)("Record {title}",{title:a})},o),s()(v.a,{circleClassName:n,iconClassName:i}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(3),v=n(1491),g=n(3506),m=n.n(g);i.defaultProps={className:m.a.recordButton},t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return o});var i=n(17),a=n(14),r=n(94),o={INACTIVE:"inactive",SCHEDULED:"scheduled",IN_PROGRESS:"inprogress",
COMPLETE:"complete",CANCELLED:"cancelled",ERROR:"error",POST_PROCESSING:"postprocessing"},s=i.a.extend({name:"MediaGrabOperationModel",context:["server","provider"],rootPropertyName:"MediaGrabOperation",syncedAttrs:{mediaSubscriptionID:a.a.string,provider:a.a.string,identifier:a.a.string,mediaIndex:a.a.integer,channelTitle:a.a.string,status:a.a.string,error:a.a.string,linkedKey:a.a.string,key:a.a.string,rolling:a.a.boolean},sessionAttrs:{isLibraryMetadataItemPending:a.a.boolean,
isLibraryMetadataItemPopulated:a.a.boolean,libraryMetadataItemError:a.a.object},syncedRelations:{metadataItem:{relationClass:r.a,rootPropertyName:"Metadata"},conflicts:function(){return{relationClass:n(980).default,deferred:!0}}},sessionRelations:{libraryMetadataItem:{relationClass:r.a,deferred:!0}},derivedAttrs:{mediaItem:function(){var e=this.get("mediaIndex");return(this.get("metadataItem").get("Media")||[])[e]},beginsAt:function(){var e=this.get("mediaItem");return e&&e.beginsAt},
endsAt:function(){var e=this.get("mediaItem");return e&&e.endsAt}},defaults:{rolling:!1,isLibraryMetadataItemPending:!0,isLibraryMetadataItemPopulated:!1,libraryMetadataItemError:null},augmentResponse:function(e){var t=e;return t[this.rootPropertyName]&&(t=t[this.rootPropertyName]),t.Conflicts&&(t.conflicts=t.Conflicts.MediaGrabOperation,delete t.Conflicts),t}});t.a=s},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
;return Object(a.createSelector)(Object(o.a)(e),r.a,function(e,t){if(e&&e.metadataItem)return t[e.metadataItem]})}var a=n(4),r=(n.n(a),n(108)),o=n(142);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.remotePlayer;return t?t.volume:Object(a.a)(e)}t.a=i;var a=n(1458)},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s})
;var i="stopped",a="playing",r="paused",o="buffering",s="error"},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)("serverEntityID"),Object(s.a)(),o.a,function(e,t,n){return t&&t.transcodeServerEntityID?n[t.transcodeServerEntityID]:e?n[e]:void 0})}var a=n(4),r=(n.n(a),n(153)),o=n(173),s=n(240);t.a=i},function(e,t,n){"use strict";var i={TINY:50,SMALL:75,NORMAL:100,LARGE:125,HUGE:200};i.settings=[{value:i.TINY,title:"Tiny"},{value:i.SMALL,title:"Small"},{
value:i.NORMAL,title:"Normal"},{value:i.LARGE,title:"Large"},{value:i.HUGE,title:"Huge"}],i.ALL=[i.TINY,i.SMALL,i.NORMAL,i.LARGE,i.HUGE],t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.innerViewportWidth,i=t.innerHorizontalPadding,a=void 0===i?0:i;return Math.floor((n+a)/e)-a}function a(e){
var t=e.innerViewportWidth,n=e.innerHorizontalPadding,a=void 0===n?0:n,r=e.preferredCellWidth,o=e.minCellWidth,s=e.minColumns,l=void 0===s?1:s,c=e.maxColumns,u=void 0===c?1/0:c,d=e.columnAdjustment,p=void 0===d?0:d,h=Math.round((t+a)/(r+a));h+=p,h=Math.max(Math.min(h,u),l);var f=i(h,e);return f<o&&(f=h===l?o:i(h-1,e)),f}t.a=a},function(e,t,n){"use strict";function i(e){if(null==e)return!1;var t=Object(a.a)(e);return Object(r.a)(Object(o.a)(new Date,1),t)}t.a=i;var a=n(81),r=n(276),o=n(536)
},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),Object(o.a)(),function(e,t){if(null!=e)for(var n=0;n<t.length;n++)for(var i=t[n],a=0;a<i.Media.length;a++){var r=i.Media[a],o=r.beginsAt,s=r.endsAt;if(o<=e&&s>e)return i}})}t.a=i;var a=n(4),r=(n.n(a),n(715)),o=n(988)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e&&e.currentPosition})}t.a=i;var a=n(4),r=(n.n(a),n(205))},function(e,t,n){
"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),Object(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{title:e.title,route:t}})}var a=n(4),r=(n.n(a),n(21)),o=n(58),s=n(481),l=n(477);t.a=Object(o.a)(i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.duration;return n?r()("span",{className:t},void 0,Object(l.a)(n)):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(308));t.a=i
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(17),l=n(14),c=n(425),u=n(507),d=n(69),p=n(111),h=n(38),f=n(45),v=n(980),g=n(356),m=n(3703),y=s.a.extend({name:"MediaSubscriptionModel",context:["server"],entityType:f.e,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(h.a)(this.entityType,e.key||this.cid,this.server.entityID())},idAttribute:"key",rootPropertyName:"MediaSubscription",urlRoot:"/media/subscriptions",
mergeStrategy:u.a,syncedAttrs:{key:l.a.string,type:l.a.integer,provider:l.a.string,targetLibrarySectionID:{type:l.a.string,save:!0},targetSectionLocationID:{type:l.a.string,save:!0},title:l.a.string,selected:l.a.boolean,parameters:l.a.string},syncedRelations:{target:{relationClass:m.a,rootPropertyName:"Metadata",deferred:!0},grabOperations:{relationClass:v.default,rootPropertyName:"MediaGrabOperation",deferred:!0},prefs:{relationClass:g.a,rootPropertyName:"Setting",deferred:!0,save:!0},
timeline:{relationClass:c.default,rootPropertyName:"Timeline",deferred:!0}},augmentResponseText:function(e,t){return t===d.a.xml?Object(p.b)(e):e},augmentResponse:function(e){var t=e[this.rootPropertyName]||e,n=t.Timeline;return n&&(t.Timeline=n.Metadata),e},getSaveParams:function(){var e=s.a.prototype.getSaveParams.apply(this,arguments),t=e.Setting,n=o()(e,["Setting"]);return a()({prefs:t},n)}});t.a=y},function(e,t,n){"use strict";function i(e){switch(e){case"movie":case"show":return[g.a]
;case"episode":return[v.a,m.a];case"playlist":default:return[g.a]}}function a(e){var t=e.serverEntityID,n=e.providerEntityID,a=e.target,r=e.useStaticHeight,s=e.children,c=a.type,u=a.subtype,v=a.thumb,g=a.grandparentThumb,m="playlist"===c?"show":c;return l()("div",{className:S.a.container},void 0,l()("div",{className:S.a.left},void 0,l()(h.a,{serverEntityID:t,providerEntityID:n,component:f.a,type:m,width:M,height:Object(y.d)(M,m,u),url:g||v},void 0,l()("div",{className:S.a.subscriptionBadge
},void 0,l()(p.a,{type:c})))),l()("div",{className:S.a.right},void 0,l()("div",{className:r?S.a.staticHeightTitleContainer:S.a.titleContainer},void 0,i(c).map(function(e,t){return d.a.createElement(b.a,o()({key:t,component:e,isSecondary:t>0},a))})),s))}var r=n(6),o=n.n(r),s=n(2),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(575),h=n(327),f=n(236),v=n(1012),g=n(565),m=n(1005),y=n(130),b=n(3714),I=n(3716),S=n.n(I),M=130;a.defaultProps={useStaticHeight:!1},t.a=a},function(e,t,n){"use strict"
;function i(e){return s.a.createElement(l.a,r()({iconClassName:u.a.icon,icon:"plex-icon-alert-560"},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(208),c=n(3800),u=n.n(c);t.a=i},,,,,,,,,function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({},e,{barColor:u.a.equalizerBarColor}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(3918),c=n(926),u=n.n(c);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(28)),f=(n(33),n(3934)),v=(n(105),n(1028)),g={opacity:0,pointerEvents:"none"},m={opacity:1,pointerEvents:"auto"},y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onListReady=function(){++a._readyCount===a._initialCount&&a.setState({isReady:!0})},a.state={isReady:!1},a._readyCount=0,a}return u()(t,e),t.prototype.componentWillMount=function(){this._initialCount=this.props.hubEntityIDs.length},t.prototype.componentWillReceiveProps=function(e){
var t=e.hubEntityIDs.length,n=this.props.hubEntityIDs.length;this.state.isReady||t===n||(this._initialCount=t,this._readyCount===t&&this.setState({isReady:!0}))},t.prototype.shouldComponentUpdate=function(e,t){return Object(h.a)(this,e,t)},t.prototype.render=function(){
var e=this,t=this.props,n=t.allowHomeHubIndicator,i=t.allowPersistentHomeHubStatus,r=t.allowToggleHomeHub,o=t.className,s=t.serverEntityID,l=t.providerEntityID,c=t.directoryKey,u=t.hubEntityIDs,d=t.sourceDirectory,p=t.isPromoted,h=t.columnAdjustment,y=t.listContext,b=this.state.isReady,I=p?f.a:v.a;return a()("div",{className:o,style:b?m:g},void 0,u.map(function(t){return a()(I,{serverEntityID:s,providerEntityID:l,hubEntityID:t,sourceDirectory:d,directoryKey:c,allowHomeHubIndicator:n,
allowPersistentHomeHubStatus:i,allowToggleHomeHub:r,listContext:y,columnAdjustment:h,onListReady:e.onListReady},t)}))},t}(p.Component);t.a=y},function(e,t,n){"use strict";function i(e,t,n,i){var a=i.key,r=i.typeKey,u=i.title,p=i.type,h=i.subtype,f=i.content,v=i.context,g=Object(l.a)(t,n);if(g){var m=Object(c.a)(g.key,e,t),y=n.hubKey||n.key;return d[a]?d[a](e,t,m,o()({source:y},i)):/\/library\/sections\/(\d+)\/cluster/.test(a)?s.join([m,"timeline"],{source:y,key:a
}):/\/watchnow$/.test(a)?s.join([m,"guide"],{source:y}):f?s.join(m,{source:y,key:a,typeKey:r,content:1,context:v}):s.join(m,{source:y,key:a,type:p,subtype:h,title:u,context:v})}}n.d(t,"b",function(){return u}),t.a=i;var a,r=n(6),o=n.n(r),s=n(18),l=n(732),c=n(581),u={RECORDING_SCHEDULE:"view://dvr/recording-schedule"},d=(a={},a[u.RECORDING_SCHEDULE]=function(e,t,n,i){return s.join([n,"schedule"],{source:i.source})},a)},function(e,t,n){"use strict";function i(e,t){
for(var n=Object(a.m)(),i=0,o=n.length;i<o;i++){var s=n[i];if(Object(r.a)(s,e,t))return s}}t.a=i;var a=n(221),r=n(702)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metadataDirectoryEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(3941))},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.providerEntityID},d.a,Object(u.a)(),function(e,t){
return!!t[(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).providerEntityID||e]})}function a(){return Object(c.createSelector)(function(e,t){return t.listContext},function(e,t){return t.cellWidth},Object(u.a)(),Object(m.a)(),Object(g.a)(),Object(v.a)(),Object(f.a)(),y.a,i(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=arguments[4],r=arguments[5],o=arguments[6],s=arguments[7],l=arguments[8],c=Object(b.a)(t,null,i,a,n,e);return{
itemServerEntityID:n.serverEntityID,itemProviderEntityID:n.providerEntityID,isFeaturedHub:Object(p.a)(e),metadataKey:n.key,type:i,selectionType:r,activeSelectionType:s.activeSelectionType,isSelected:o,icon:n.icon,imageWidth:c.width,imageHeight:c.height,imageUrl:c.url,isFolder:n.isFolder,isUnavailable:!l}})}function r(e,t){var n=t.metadataListEntityID;return{onSelectItem:function(t){e(Object(h.j)(s()({metadataListEntityID:n},t)))},onDeselectItem:function(t){e(Object(h.b)(s()({
metadataListEntityID:n},t)))}}}var o=n(6),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(21)),d=n(136),p=n(1603),h=n(152),f=n(735),v=n(738),g=n(1608),m=n(739),y=n(76),b=n(261),I=n(3949);t.a=Object(l.connect)(a,r)(I.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),o.a,function(e,t){return!!e&&Object(s.a)(t,e.ratingKey)})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(736),s=n(737)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(10)),r=n.n(a),o=n(76),s=void 0,l=Object(i.createSelector)(o.a,function(e){var t=r.a.pluck(e.activeSelectionItems,"id");return s&&r.a.isEqual(s,t)?s:(s=t,t)});t.a=l},function(e,t,n){"use strict";function i(e,t){if(!e||null==t)return!1;if(e===r&&a.hasOwnProperty(t))return a[t];e!==r&&(r=e,a={});var n=-1!==e.indexOf(t);return a[t]=n,n}t.a=i;var a={},r=void 0},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.listType},Object(r.a)(),function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.type;if(n){if(n===o.i)return o.i;if(n===o.d)return o.d;if(e===s.g)return o.g;var i=o.q(n);return i&&i.mediaType}})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(27),s=n(223)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.listType},Object(r.a)(),function(e,t){if(!t)return e;var n=e===s.g&&t.type===o.c,i=e===s.b&&t.type===o.f;return n||i?e:t.extraType?s.d:t.type})}t.a=i
;var a=n(4),r=(n.n(a),n(21)),o=n(27),s=n(223)},function(e,t,n){"use strict";function i(e){var t=e.imageWidth,n=e.imageHeight,i=e.isSelected,a={width:t,height:n};return r()("div",{className:(c.a.placeholder||"")+" "+(i&&c.a.isSelected||""||""),style:a})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3950)),c=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.labelClassName,a=e.contentClassName,o=e.label;return r()("div",{className:n
},void 0,r()("div",{className:i},void 0,o),r()("div",{className:a},void 0,t))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3962)),c=n.n(l);i.defaultProps={className:c.a.groupItem,labelClassName:c.a.label,contentClassName:c.a.content},t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(c.a,l.a,Object(o.a)(),Object(s.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],
contentRating:n.contentRating}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(583),l=n(39),c=n(53),u=n(3984);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(1039)),r=n(957),o=Object(i.createSelector)(r.a,a.a,function(e,t){return!(!e.cpms||t)});t.a=o},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(128),b=n(28),I=n(26),S=function(e){function t(){
return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.icon,i=e.label,r=e.isMenuOpen,s=l()(e,["children","icon","label","isMenuOpen"]);return m.a.createElement(y.a,a()({"aria-haspopup":!0,"data-qa-id":"toolbarMore",tooltip:r?void 0:i,hideOnPress:!1},s),o()(I.a,{name:n}),t)},t}(g.Component);t.a=S},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(Object(y.a)(),I.a,b.a,S.a,Object(w.a)(),Object(T.a)(),Object(j.a)(),Object(O.a)(),Object(P.a)(),Object(A.a)(),function(e){return e.ui.audioVideoPlayer.isPaused},E.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2],i=arguments[3],a=arguments[4],r=arguments[5],o=arguments[6],s=arguments[7],l=arguments[8],c=arguments[9],u=arguments[10],d=arguments[11];return{activeTableColumns:a,metadataKey:e.key,type:r,
title:e.title,selectionID:e.entityID,selectionType:s,activeSelectionType:d.activeSelectionType,isSelected:l,isPlaying:c,isPlayerPaused:u,route:o,showLink:!!o,showPlay:Object(N.j)(t,n,i,e),showEdit:Object(N.e)(t,n,i,e),showSelect:Object(N.m)(t,n,i,e),showMore:!e.isFolder}})}function a(e,t){var n=t.serverEntityID,i=t.providerEntityID,a=t.metadataListEntityID,r=t.metadataItemEntityID,o=t.containerKey,s=t.listType,l=t.metricsPage;return{onPlayPress:function(){e(Object(m.m)({serverEntityID:n,
providerEntityID:i,metadataItemEntityID:r,metricsPage:l,options:{containerKey:o,listType:s}}))},onEditPress:function(){e(Object(D.editMetadataItem)({serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,metricsPage:l}))},onSelectItem:function(t){e(Object(C.j)(p()({metadataListEntityID:a,id:r},t)))},onDeselectItem:function(t){e(Object(C.b)(p()({metadataListEntityID:a},t)))},onDeselectAllItems:function(){e(Object(C.a)({metadataListEntityID:a}))}}}
var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(4),m=(n.n(g),n(77)),y=n(21),b=n(39),I=n(53),S=n(204),M=n(58),D=n(191),C=n(152),j=n(481),P=n(735),O=n(738),T=n(739),E=n(76),w=n(1647),A=n(1049),x=n(576),N=n(326),L=n(397),k=n(4172),R=n(4178),z=Object(x.a)(k.a),U=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),
i.onSelectItem=function(e){i._isDoubleClick()?i._doubleClick():(i._firstClickTime=Date.now(),i.props.onSelectItem(e))},i.onDeselectItem=function(e){i._isDoubleClick()?i._doubleClick():(i._firstClickTime=Date.now(),i.props.onDeselectItem(e))},a=n,l()(i,a)}return u()(t,e),t.prototype._isDoubleClick=function(){return this._firstClickTime&&Date.now()-this._firstClickTime<300},t.prototype._doubleClick=function(){
var e=this.props,t=e.selectionType,n=e.showPlay,i=e.onPlayPress,a=e.onSelectItem,r=e.onDeselectAllItems;this._firstClickTime=0,r(),a({type:t}),n&&i()},t.prototype.render=function(){return this.props.metadataKey?this.props.showSelect?v.a.createElement(z,p()({},this.props,{onSelectItem:this.onSelectItem,onDeselectItem:this.onDeselectItem})):v.a.createElement(k.a,this.props):v.a.createElement(R.a,this.props)},t}(f.Component);t.a=Object(M.a)(i,a,L.a)(U)},function(e,t,n){"use strict";function i(e,t){
return t?e+"-"+t:e}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className;return r()("div",{className:t})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4184)),c=n.n(l);i.defaultProps={className:c.a.pageHeaderDivider},t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{isEPGRefreshing:!!e,epgActivityProgress:e?e.progress:0,epgActivityTitle:e?e.title:""}})}var a=n(11),r=n(4),o=(n.n(r),n(239)),s=n(4249)
;t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(f.createSelector)(Object(m.a)(),function(e){return{isRefreshing:!!e}})}function a(e,t){var n=t.serverEntityID;return{dispatchFetchProviders:function(){e(Object(v.h)({serverEntityID:n}))},dispatchRepopulatePage:function(){e(Object(g.c)({serverEntityID:n}))}}}var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(116)),g=n(123),m=n(239),y=function(e){
function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i._repopulateProgramGuide=function(){var e=i.props,t=e.dispatchFetchProviders,n=e.dispatchRepopulatePage;t(),n(),i._setRepopulateTimeout()},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){this._setRepopulateTimeout()},t.prototype.componentDidUpdate=function(){this._setRepopulateTimeout()},
t.prototype.componentWillUnmount=function(){this._clearRepopulateTimeout()},t.prototype._setRepopulateTimeout=function(){this.props.isRefreshing&&(this._clearRepopulateTimeout(),this._repopulateTimeoutID=setTimeout(this._repopulateProgramGuide,15e3))},t.prototype._clearRepopulateTimeout=function(){this._repopulateTimeoutID&&clearTimeout(this._repopulateTimeoutID)},t.prototype.render=function(){return null},t}(p.Component);t.a=Object(h.connect)(i,a)(y)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=s()(e,["className"]);return u.a.createElement(d.b,r()({className:t},n))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(73),p=n(4274),h=n.n(p);i.defaultProps={className:h.a.pageHeaderSeparator},t.a=i},function(e,t,n){"use strict";function i(e){return Object(a.createSelector)(Object(o.a)(),function(e,t){return t.activeFilters},function(e,t){return t.activeSort},function(e,t){return t.activeLimit},function(e,t){return t.selectedType},function(e,t){
return t.selectedDirectory},function(t,n,i,a,o,s){if(t){var l={filters:n,sort:i,limit:a};return!(s&&"photo"===s.type)&&o&&o.key?Object(r.a)([o.key.replace("/all?","/"+e+"?")],l):Object(r.a)([t,e],l)}})}t.a=i;var a=n(4),r=(n.n(a),n(1056)),o=n(226)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.activeSort},Object(s.a)(),function(e,t){if(t){var n=e&&o.a.first(e.split(":")),i=o.a.find(t.sorts,function(t){return e?t.key===n||t.descKey===e:t.isDefault
});return i||(i=o.a.first(t.sorts)),i}})}t.a=i;var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(263)},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o});var i="string",a="boolean",r="date",o="rating"},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.server,i=e.provider,a=e.libraryKey,d=e.libraryDirectories,p=void 0===d?[]:d,h=[],f=t===s.c,v=r.a.some(p,function(e){return"cluster"===e.key
}),g=r.a.some(p,function(e){return"folder"===e.key}),m=n.ownerFeatures&&-1!==n.ownerFeatures.indexOf("photos-v5");return f&&v&&h.push({key:"timeline",title:Object(o.default)("Timeline"),route:Object(u.a)(n,i,a,{save:1})}),f&&m&&h.push({key:"albums",title:Object(o.default)("Albums"),route:Object(c.a)(n,i,a,t,{save:1})}),g&&h.push({key:"folder",title:Object(o.default)("Folders"),route:Object(l.a)(n,i,a,{folderKey:a+"/folder",save:1})}),h}t.a=i
;var a=n(10),r=n.n(a),o=n(3),s=n(63),l=n(150),c=n(965),u=n(1434)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.Media;n=void 0===n?[]:n;var i=n[0],r=void 0===i?{}:i,o=r.width,s=r.height,l=r.Part;l=void 0===l?[]:l;var c=l[0],u=void 0===c?{}:c;return o&&s?Object(a.a)(u.orientation)?s/o:o/s:t}t.a=i;var a=n(4352)},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className;return r()("div",{className:n},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4382)),c=n.n(l);i.defaultProps={className:c.a.actionLinks},t.a=i},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(d.a)("isProvidersPopulated"),Object(d.a)("providersError"),Object(u.a)(),function(e,t,n){return n?{hasProvider:!0,showSpinner:!n.isPopulated&&!n.error,showError:!!n.error}:{hasProvider:!1,showSpinner:!e&&!t,showError:!!t}})}
var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(54)),d=n(395),p=n(4390),h=Object(l.connect)(i)(p.a);h.propTypes=r()({},h.propTypes,{providerEntityID:s.a.string.isRequired}),t.a=h},function(e,t,n){"use strict";function i(e){var t=e.children,n=s()(e,["children"]);return u.a.createElement(p.a,r()({className:f.a.innerEmptyPage,contentClassName:f.a.innerEmptyPageContent,scrollDirection:d.NONE},n),t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(57),p=n(203),h=n(1705),f=n.n(h);t.a=i},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({key:a.a.string.isRequired,serverEntityID:a.a.string.isRequired,providerEntityID:a.a.string,directoryKey:a.a.string,directoryHubKey:a.a.string,title:a.a.string,detail:a.a.string,isUnknownUnavailableServer:a.a.bool,isUnavailable:a.a.bool,isOutOfDate:a.a.bool,isLocal:a.a.bool,route:a.a.string})},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(r.a,Object(o.a)(),function(e,t){return e[t.server]})}t.a=i;var a=n(4),r=(n.n(a),n(173)),o=n(496)},function(e,t,n){"use strict";function i(e){if(!e)return[];var t=decodeURIComponent(e).match(h);return t?t.reduce(function(e,t){var n=t.match(f),i=n[1],a=n[2],o=n[3],l=o?r.a.uniq(o.split(u.b)):"";return 1===l.length&&(l=l[0]),Object(s.a)(e,i,{value:l,type:v[i]?c.a:c.b,operator:a})},[]):[]}t.a=i
;var a=n(10),r=n.n(a),o=n(231),s=n(4489),l=n(489),c=n(333),u=n(1658),d=l.i.sort(function(e,t){return e.length<t.length}).map(o.a).join("|"),p="([^&!=<>]+)("+d+")([^&!=<>]+)?",h=new RegExp(p,"g"),f=new RegExp(p),v={unwatched:!0,unwatchedLeaves:!0,duplicate:!0,hdonly:!0}},function(e,t,n){"use strict";function i(e){return e.experienceSettings.showPrePlayArtwork}t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.subtype,i=e.skipChildren;if(t===s.d)return n;if(t===s.k&&n===o.b)return s.l;var a=i?s.q(t):s.p(t);return a&&a.typeString})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(106),s=n(27)},function(e,t,n){"use strict";function i(){return r()(s.a,{className:c.a.bottomDivider})}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(144)),l=n(4629),c=n.n(l);t.a=i},function(e,t,n){"use strict";function i(){return r()(s.a,{className:c.a.topDivider})}
var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(144)),l=n(4630),c=n.n(l);t.a=i},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=function(e){function t(n,i){a()(this,t);var r=o()(this,e.call(this,n,i));return r.onListContainerRef=function(e){r._setOffsetTop(e)},r._hasOffsetChanged=!1,r.state={listOffsetTop:null},r}return l()(t,e),t.prototype.componentWillUpdate=function(e){
this._hasOffsetChanged=e.showArtwork!==this.props.showArtwork||e.contentHeight!==this.props.contentHeight},t.prototype._setOffsetTop=function(e){e&&e.offsetTop!==this.state.listOffsetTop&&this.setState({listOffsetTop:e.offsetTop})},t.prototype.render=function(){var e=this.props,t=e.children,n=e.scrollTop,i=this.state.listOffsetTop,a=d.a.Children.only(t);return d.a.createElement("div",{ref:this._hasOffsetChanged?this._setOffsetTop.bind(this):this.onListContainerRef},null!=i&&d.a.cloneElement(a,{
scrollTop:n-i}))},t}(u.Component);t.a=p},function(e,t,n){"use strict";function i(e,t){return e?d.a.reduce(t,function(t,n,i){return-1===e.indexOf(i)&&(t[i]=n),t},{}):t}function a(e,t){var n;try{n=e._getStorageKey()}catch(e){n="no storageKey"}h.a.error("StorageModel ("+n+") "+t)}var r=n(179),o=n.n(r),s=n(351),l=n.n(s),c=n(87),u=n(10),d=n.n(u),p=n(37),h=n(32),f=n(209),v=n(1141),g=c.c.Model.extend({sessionAttrs:[],save:function(e,t,n){var a,r=this.attributes
;if(null==e||"object"===(void 0===e?"undefined":l()(e))?(a=e,n=t):(a={})[e]=t,n=d.a.extend({validate:!0},n),a&&!n.wait){if(!this.set(a,n))return!1}else if(!this._validate(a,n))return!1;a&&n.wait&&(this.attributes=d.a.extend({},r,a)),void 0===n.parse&&(n.parse=!0);var o=this,s=n.success;n.success=function(){o.attributes=r,s&&s(o,r,n),o.trigger("sync",o,r,n)},c.c.wrapError(this,n);var u=this._getStorage(),p=this._getStorageKey(),h=this.attributes;if(!1!==u.getInstance().excludeDefaults){
var f=d.a.result(this,"defaults");h=Object(v.a)(f,h)}h=i(d.a.result(this,"sessionAttrs"),h);var g=this.serialize(h),m=u.set(p,g);return m.done(n.success).fail(n.error),a&&n.wait&&(this.attributes=r),m},populate:function(){return this.populatePromise||(this.populatePromise=this.fetch.apply(this,arguments)),this.populatePromise},fetch:function(e){e=e?d.a.clone(e):{},void 0===e.parse&&(e.parse=!0);var t=this,n=e.success;e.success=function(i){if(!t.set(t.parse(i,e),e))return!1;n&&n(t,i,e),
t.trigger("sync",t,i,e)},c.c.wrapError(this,e);var i=this._getStorage().get(this._getStorageKey());return i.done(e.success).fail(e.error),this.populatePromise=i,i},destroy:function(e){e=e?d.a.clone(e):{};var t=this,n=e.success,i=function(){t.trigger("destroy",t,t.collection,e)};e.success=function(a){e.wait&&i(),n&&n(t,a,e),t.trigger("sync",t,a,e)},c.c.wrapError(this,e);var a=this._getStorage().remove(this._getStorageKey());return a.done(e.success).fail(e.error),e.wait||i(),a},
serialize:function(e){var t="";try{t=o()(e)}catch(e){a(this,"serialization error: "+e.message)}return t},parse:function(e){var t;if(null==e)return t;if(d.a.isObject(e))return e;try{t=JSON.parse(e);t=i(d.a.result(this,"sessionAttrs"),t)}catch(t){var n=d.a.isString(e)?e.substring(0,50):"no response";a(this,"parse error: "+t.message+" ("+n+")")}return t},sync:function(){throw new Error("storage model doesn`t allow syncing to server")},startCapturingChangeEvents:function(){
if(this.releaseCapturedChangeEvents)return void Object(p.a)(!1,"This model is already capturing events");var e=this.set,t={};this.set=function(n,i,a){var r;"object"===(void 0===n?"undefined":l()(n))?(r=n,a=i):(r={})[n]=i;var o=d.a.extend({},a,{silent:!0}),s=e.call(this,r,o);return d.a.extend(t,this.changed),s},this.releaseCapturedChangeEvents=function(){d.a.each(t,function(e,t){this.trigger("change:"+t,this,e)},this),d.a.isEmpty(t)||this.trigger("change",this,{}),t={},this.set=e,
this.releaseCapturedChangeEvents=null}},_getStorageKey:function(){var e=d.a.result(this,"storageKey");if(!e)throw new Error("storageKey is required");return e},_getStorage:function(){return f.a}});t.a=g},,,,,,,,function(e,t,n){var i=n(1869);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,a){return e.call(t,n,i,a)}}return function(){return e.apply(t,arguments)
}}},function(e,t,n){var i=n(347);e.exports=function(e,t){if(!i(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!i(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!i(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!i(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){
return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(780)("keys"),a=n(602);e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t,n){var i=n(229),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){
e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var i=n(1886)(!0);n(1128)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=!0},function(e,t,n){
var i=n(346),a=n(1888),r=n(781),o=n(779)("IE_PROTO"),s=function(){},l=function(){var e,t=n(1120)("iframe"),i=r.length;for(t.style.display="none",n(1889).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:a(n,t)}},function(e,t,n){
var i=n(345).f,a=n(349),r=n(245)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){t.f=n(245)},function(e,t,n){var i=n(229),a=n(120),r=n(785),o=n(788),s=n(345).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(78),o=n(32),s=r.a.extend({maximumDelay:30,initialize:function(e){var t=e.callback,n=e.logFormat
;this._serversBeingRetried={},this.callback=t,this.logFormat=n},start:function(e){this._serversBeingRetried[e.id]||this.supportsRetry(e)&&(this._serversBeingRetried[e.id]={server:e,attempt:1},this._scheduleRetry(e))},stop:function(e){var t=this._serversBeingRetried[e.id];t&&(clearTimeout(t.timeout),delete this._serversBeingRetried[e.id])},stopAll:function(){var e=this;a.a.each(this._serversBeingRetried,function(t,n){clearTimeout(t.timeout),delete e._serversBeingRetried[n]})},
supportsRetry:function(e){return!0},_scheduleRetry:function(e){var t=this,n=this._serversBeingRetried[e.id],i=Math.min(this.maximumDelay,n.attempt);Object(o.a)(this.logFormat,e.get("debugName"),i),n.timeout=setTimeout(function(){t.callback(e),n.attempt++,t._scheduleRetry(e)},1e3*i)}});t.a=s},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(78),o=n(101),s=n(32),l=n(110),c=r.a.extend({mixins:[l.a],initialize:function(e){this.name=e.name||"ServerEventManager",this.appModel=e.appModel,
this.servers=this.appModel.get("servers"),this.isValidServer=e.isValidServer,this.supportsLongPolling=e.supportsLongPolling,this.allowMultipleConnections=e.allowMultipleConnections,this.ServerEventConnection=e.ServerEventConnection,this.connections={},this._serverRetryManager=new e.ServerRetryManager({appModel:this.appModel,callback:this.retryServerConnections.bind(this),logFormat:"[Connections] Retrying server events connection for %s in %s seconds"})},start:function(){
this.allowMultipleConnections?this.listenTo(this.servers,{"change:isResolved":this.onServerResolvedChange,"change:isRejected":this.onServerRejectedChange,remove:this.onServerRemove,reset:this.onServersReset}):this.listenTo(this.appModel,"change:primaryServer",this.onPrimaryServerChange)},stop:function(){this.stopListening(),this._serverRetryManager.stopAll(),this.disconnectAll(),this.connections={}},tryConnectServer:function(e){var t=this,n=this.connections[e.id]
;this.isValidServer(e)&&!n&&(o.a.hasWebSocket||this.supportsLongPolling?this.connect({server:e}).then(null,function(){t._serverRetryManager.start(e)}):e.trigger("socket:websocket",{error:!0}))},connect:function(e){var t=e.server,n=this.connections[t.id];n||(n=new this.ServerEventConnection({server:t}),this.connections[t.id]=n,this.listenTo(n,{open:this.onOpen,close:this.onClose,error:this.onClose}));var i=n.open(),a=n.socket?n.socket.url:n.pollUrl
;return Object(s.a)("["+this.name+"] Opening server event connection to "+t.get("debugName")+" at "+a),i},disconnectAll:function(){var e=this;a.a.each(this.connections,function(t){e.disconnect({connection:t})})},disconnect:function(e){var t=e.connection;if(t||(t=this.connections[e.server.id]),t){var n=t.socket?t.socket.url:t.pollUrl,i=t.server;Object(s.a)("["+this.name+"] Closing server event connection to "+i.get("debugName")+" at "+n),this.stopListening(t),
this._serverRetryManager.stop(t.server),t.close(),delete this.connections[t.server.id]}},retryServerConnections:function(e){this.isValidServer(e)&&e.get("isResolved")&&this.connect({server:e})},onPrimaryServerChange:function(e,t){this.disconnectAll(),t&&this.tryConnectServer(t)},onServerResolvedChange:function(e,t){t&&this.tryConnectServer(e)},onServerRejectedChange:function(e,t){t&&this.disconnect({server:e})},onServerRemove:function(e){var t=this.connections[e.id];if(t&&(this.disconnect({
connection:t}),e.get("isMerged")&&t)){var n=this.servers.get(e.id);this.connect({server:n})}},onServersReset:function(e,t){var n=this,i=t.previousModels;a.a.each(i,function(t){e.contains(t)||n.disconnect({server:t})})},onOpen:function(e){var t=this.connections[e.id],n=t.socket?t.socket.url:t.pollUrl;s.a.info("["+this.name+"] Opened server event connection to "+e.get("debugName")+" at "+n),this._serverRetryManager.stop(e)},onClose:function(e){
s.a.warn("["+this.name+"] Unexpectedly closed server event connection to "+e.get("debugName")),this._serverRetryManager.start(e)}});t.a=c},function(e,t,n){"use strict";function i(e){return e?Array.isArray(e)?e:[e]:[]}t.a=i},function(e,t){function n(e,t,n){"use strict";function i(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function a(r){var o,s,l;if(r.nodeType==m.DOCUMENT_NODE){var c,u;for(s=r.firstChild,c=0,
u=r.childNodes.length;c<u;c+=1)if(r.childNodes[c].nodeType!==m.COMMENT_NODE){s=r.childNodes[c];break}return n?o=a(s):(o={},l=i(s),o[l]=a(s)),o}if(r.nodeType==m.ELEMENT_NODE){var d=0,p=r.childNodes;o=new Object;for(var h=0;h<p.length;h++)if(s=p.item(h),l=i(s),d++,null==o[l])o[l]=a(s);else{if(null!=o[l]&&!(o[l]instanceof Array)){var f=o[l];o[l]=[],o[l].push(f)}for(var v=0;null!=o[l][v];)v++;o[l][v]=a(s)}for(var g=0;g<r.attributes.length;g++){var y=r.attributes.item(g);d++
;for(var b=y.value,I=0,S=e.length;I<S;I++){var M=e[I];M.test.call(this,y.value)&&(b=M.converter.call(this,y.value))}o[t+y.name]=b}if(null!=o["#text"]){var D=o["#text"];"string"==typeof D?(D=D.replace(/[\r\n]/g,""),o["#text"]=D,1==d&&(o=D)):delete o["#text"]}return o}return r.nodeType==m.TEXT_NODE||r.nodeType==m.CDATA_SECTION_NODE?r.nodeValue:r.nodeType==m.COMMENT_NODE?null:void 0}function r(e){
return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;"):e}function o(e){var t="";return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(t+=g?r(e.__text):e.__text),t}function s(e){var t="";return e instanceof Object?t+=o(e):null!=e&&(t+=g?r(e):e),t}function l(e,t){return-1!==e.indexOf(t,e.length-t.length)}function c(e,t){
return!!(l(t.toString(),"_asArray")||0==t.toString().indexOf("_")||e[t]instanceof Function)}function u(e){var t=0;if(e instanceof Object)for(var n in e)c(e,n)||t++;return t}function d(e){var t=[];if(e instanceof Object)for(var n in e){var i=n.toString(),a=i.charAt(0);-1==n.indexOf("__")&&("_"===a||a===a.toLowerCase()&&a!==a.toUpperCase())&&t.push(n)}return t}function p(e,t,n){var i="";if(0==e.length)i+=h(e,t,n,!0);else for(var a=0;a<e.length;a++)i+=h(e[a],t,d(e[a]),!1),i+=v(e[a]),i+=f(e[a],t)
;return i}function h(e,t,n,i){var a="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=n)for(var o=0;o<n.length;o++){var s=n[o],l=r(e[s]);a+=" "+s.substr(1)+"='"+l+"'"}return a+=i?"/>":">"}function f(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function v(e){var t="";if(u(e)>0)for(var n in e)if(!c(e,n)){var i=e[n],a=d(i);if(null==i||void 0==i)t+=h(i,n,a,!0);else if(i instanceof Object)if(i instanceof Array)t+=p(i,n,a);else{var r=u(i)
;r>0||null!=i.__text||null!=i.__cdata?(t+=h(i,n,a,!1),t+=v(i),t+=f(i,n)):t+=h(i,n,a,!0)}else t+=h(i,n,a,!1),t+=s(i),t+=f(i,n)}return t+=s(e)}null!==t&&void 0!==t||(t="_"),null!==n&&void 0!==n||(n=!1);var g=!1,m={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(e){var t;if(window.DOMParser){t=(new window.DOMParser).parseFromString(e,"text/xml")}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),
t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);return t},this.xml2json=function(e){return a(e.documentElement||e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return this.xml2json(t.documentElement||t)},this.getVersion=function(){return"1.0.11"},this.escapeMode=function(e){g=e},this.json2xml_str=function(e){return v(e)}}e.exports=n},function(e,t,n){"use strict";function i(e){var t=l.exec(e);if(null!=t)return{octets:o.a.map(o.a.rest(t),function(e){
return parseInt(e,10)})}}function a(e){if(c.test(e)){var t=e.split("::"),n=t[0].match(u),i={parts:[]};if(null!=n){if(n.length>8)return;i.parts=o.a.map(n,function(e){return parseInt(e,16)})}if(t.length>1){var a=t[1].match(u),r=o.a.map(a,function(e){return parseInt(e,16)}),s=8-i.parts.length-r.length;if(s<0||8===s)return;o.a.times(s,function(){i.parts.push(0)}),i.parts=i.parts.concat(r)}return i}}
var r=n(10),o=n.n(r),s=/^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/,l=/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/,c=/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/i,u=/[a-f0-9]{1,4}/gi,d={
isValidPort:function(e){return s.test(e)},isValidAddress:function(e){return this.isValidV4Address(e)||this.isValidV6Address(e)},isLoopbackAddress:function(e){return"localhost"===e||this.isLoopbackV4Address(e)||this.isLoopbackV6Address(e)},isPrivateAddress:function(e){return this.isPrivateV4Address(e)||this.isPrivateV6Address(e)},isPlexDirectAddress:function(e){return/plex\.direct$/.test(e)},isValidV4Address:function(e){var t=i(e);return!(!t||!o.a.all(t.octets,function(e){return e>=0&&e<=255}))},
isLoopbackV4Address:function(e){var t=i(e);return!(!t||127!==t.octets[0]&&!o.a.all(t.octets,function(e){return 0===e}))},isPrivateV4Address:function(e){var t=i(e);if(t){if(10===t.octets[0])return!0;if(172===t.octets[0]&&t.octets[1]>=16&&t.octets[1]<=31)return!0;if(192===t.octets[0]&&168===t.octets[1])return!0}return!1},isValidV6Address:function(e){var t=a(e);return!(!t||!o.a.all(t.parts,function(e){return e>=0&&e<=65535}))},isLoopbackV6Address:function(e){var t=a(e);if(t){
return o.a.all(o.a.take(t.parts,7),function(e){return 0===e})&&1===o.a.last(t.parts)}return!1},isPrivateV6Address:function(e){var t=a(e);return!!(t&&t.parts[0]>=64512&&t.parts[0]<=65023)},getV4Subnet:function(e){return d.isValidV4Address(e)?e.split(".").slice(0,-1).join("."):""}};t.a=d},function(e,t,n){"use strict";function i(e,t,n){var i=e.get("entities").get(t);if(i){var a=i.get(n);if(a)return a.get("model")}}function a(e,t,n){var a=i(e,t,n)
;return a||r.a.warn('An entity does not exist with the type "%s" and id "%s"',t,n),a}t.b=i,t.a=a;var r=n(32)},function(e,t,n){"use strict";function i(e,t){if(o.a.get("shouldCreateFlexModels")||o.a.get("shouldCreateFlex"+e.prototype.name)){var n;e.prototype.sessionRelations=r()({},e.prototype.sessionRelations,(n={},n.pmp=t,n))}return e}t.a=i;var a=n(6),r=n.n(a),o=n(62)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(37),o={fetch:function(){
return Object(r.a)(!1,"A model or collection with a controlled populate promise cannot be fetched directly"),this.populatePromise},isPopulating:function(){return!!this.populatePromise&&"pending"===this.populatePromise.state()},_resetPopulate:function(){return this.isPopulating()||(this._populateDeferred=a.a.Deferred(),this.populatePromise=this._populateDeferred.promise()),this.populatePromise},_resolvePopulate:function(){
return"resolved"===this.populatePromise.state()?this.populatePromise:("rejected"===this.populatePromise.state()&&this._resetPopulate(),this._populateDeferred.resolveWith(this,[this]),this.populatePromise)},_rejectPopulate:function(){return"rejected"===this.populatePromise.state()?this.populatePromise:("resolved"===this.populatePromise.state()&&this._resetPopulate(),this._populateDeferred.rejectWith(this,[this]),this.populatePromise)}};t.a=o},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=n(1148),o=n(799),s=n(1955),l=n(800),c=i.a.extend({name:"UserSubscriptionModel",syncedAttrs:{type:a.a.oneOf.apply(a.a,l.c),active:a.a.boolean,status:a.a.oneOf.apply(a.a,s.a),state:a.a.oneOf.apply(a.a,o.c),plan:a.a.oneOf.apply(a.a,r.b),mode:a.a.string}});t.a=c},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="active",a="pending_cancellation",r=[i,"inactive","canceled",a];t.c=r},function(e,t,n){"use strict"
;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="plexpass",a="tidal",r=[i,a];t.c=r},function(e,t,n){"use strict";function i(e){return e&&e.statusText||""}function a(e){var t=c.a.Deferred();return Object(h.a)({url:Object(p.a)(window.location.origin,"https:")+"/"+f,data:e,timeout:5e3,onMessage:function(e){!0===e.success?t.resolve(e.data,i(e.xhr),e.xhr):!1===e.success&&t.reject(e.xhr,i(e.xhr))}}),t.promise()}function r(e){
var t=e.xhrFields&&e.xhrFields.withCredentials,n=t&&!1&&!u.a.isHostedHttps;return e.headers=s()({},d.a.getInstance(),e.headers||{}),n?a(e):c.a.ajax(e)}var o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=n(101),d=n(354),p=n(1153),h=n(1966),f="service-reflector";t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(78),o=n(19),s=n(32),l=n(110),c=r.a.extend({mixins:l.a,maxCycles:3,maxSize:50,isListening:!1,initialize:function(){this._cache={},this.size=0,this.cycles=[],this.cycle()},
startListening:function(){this.isListening||(this.isListening=!0,this.listenTo(o.a,{"cycle:cache":this.cycle,"clearWhere:cache":this.clearWhere,"clearAll:cache":this.clearAll,"clearCycles:cache":this.clearCycles}))},get:function(e){var t=this._cache[e];return t&&t._cacheCycle&&this.setItemCycle(t,e,a.a.first(this.cycles)),t},store:function(e,t){t||(t=this.getItemCacheKey(e)),this.remove(e),t&&(this.startListening(),e._cacheKey=t,this._cache[t]=e,this.size++,
e.persistInCache||this.setItemCycle(e,t,a.a.first(this.cycles)))},getItemCacheKey:function(e){return a.a.result(e,"cacheKey")},setItemCycle:function(e,t,n){var i=e._cacheCycle;i&&i.hasOwnProperty(t)&&delete i[t],e._cacheCycle=n,n[t]=e},cycle:function(){this.size>this.maxSize&&(s.a.warn("Cache overflow, size: "+this.size),a.a.each(this.cycles.slice(1),this.removeCycle,this)),this.cycles.unshift({}),this.cycles.length>Math.max(this.maxCycles,1)&&this.removeCycle(a.a.last(this.cycles))},
remove:function(e){if(e&&e._cacheKey){var t=e._cacheKey;this._cache.hasOwnProperty(t)&&(delete this._cache[t],this.size--),e._cacheCycle&&(e._cacheCycle.hasOwnProperty(t)&&delete e._cacheCycle[t],delete e._cacheCycle),delete e._cacheKey}},removeCycle:function(e){a.a.each(a.a.values(e),this.remove,this);var t=a.a.indexOf(this.cycles,e);this.cycles.splice(t,1)},clearWhere:function(e){var t=a.a.where(a.a.values(this._cache),e);a.a.each(t,this.remove,this)},clearAll:function(){
a.a.each(a.a.values(this._cache),this.remove,this),this.cycles.length=0,this.cycle(),this.stopListening(),this.isListening=!1},clearCycles:function(){for(var e=this.cycles;e.length;)this.removeCycle(e[e.length-1]);this.cycle()}});t.a=c},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({urlRoot:"/api/home/users",whitelistedAttrs:["id","uuid","admin","protected","restricted","guest","title","username","email","thumb"],convert:function(e){
var t=a.a.isObject(e)?e:o.a.parseXML(e);return t.User&&(t=t.User),o.a.parseInteger(t,"id"),o.a.parseBoolean(t,["admin","protected","restricted","guest"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)},getSaveParams:function(e,t){if(a.a.isEmpty(e)){var n={};return this.get("restricted")?n.title=this.get("title"):this.isNew()&&(n.invitedEmail=this.get("username")),n}return r.a.prototype.getSaveParams.apply(this,arguments)}});t.a=s},function(e,t,n){
"use strict";var i=n(17),a=n(14),r=n(358),o=n(95),s=n(38),l=n(45),c=n(1988),u=i.a.extend({mixins:[r.a],name:"MetadataDirectoryListModel",context:["server","provider"],entityType:l.h,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(s.a)(this.entityType,e.containerKey||this.cid,this.provider.entityID())},idAttribute:"containerKey",collectionName:"metadataItems",responseType:function(){return Object(o.a)(this.server)},url:function(){
return this.getPaginatedUrl(this.get("containerKey"))},sessionAttrs:{containerKey:a.a.string,containerTitle:a.a.string,currentPageStart:a.a.integer,currentPageSize:a.a.integer,populatedRange:a.a.object,isPending:a.a.boolean,isPopulated:a.a.boolean,error:a.a.object},syncedAttrs:{totalSize:a.a.integer},syncedRelations:{metadataItems:{relationClass:c.a,rootPropertyName:"Directory",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{populatedRange:{start:0,end:0,
size:0},isPending:!0,isPopulated:!1,error:null}},initialize:function(){this.startPopulatedRangeMonitor()}});t.a=u},,function(e,t,n){"use strict";function i(e){return e=parseInt(e,10),r.a.isNaN(e)?"":(e<10?"0":"")+e}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(617),o=i.a.extend({name:"FilterModel",context:["server","section","type","standalone"],idAttribute:"filter",rootPropertyName:"Directory",defaults:{advanced:!1},syncedAttrs:{filter:a.a.string,
filterType:a.a.string,type:a.a.string,key:a.a.string,title:a.a.string,advanced:a.a.boolean},syncedRelations:{options:{relationClass:r.a}}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(25),o=n(95),s=n(1164),l=r.a.extend({name:"FirstCharacterCollection",context:["server","provider","section"],model:s.a,responseType:function(){return Object(o.a)(this.server)},url:function(){var e=a.a.result(this.section,"url")+"/firstCharacter",t=this.getUrlParams();return t?e+"?"+t:e},
getUrlParams:function(){var e={},t=[],n=this.section.get("currentType");n&&(e.type=n.id);var i=this.section.get("currentFilters");return a.a.each(i,function(t){t.values.length&&(e[t.key]=t.values.join(","))}),a.a.each(e,function(n,i){"unviewedLeafCount"===i?t.push(i+">="+e[i]):t.push(i+"="+e[i])}),t.join("&")}});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(358),o=n(69),s=n(111),l=n(2019),c=i.a.extend({mixins:[r.a],name:"PlaylistItemListModel",
context:["server","provider","playlist"],idAttribute:"key",collectionName:"metadataItems",url:function(){return this.getPaginatedUrl(this.get("containerKey"))},sessionAttrs:{containerKey:a.a.string,currentPageStart:a.a.integer,currentPageSize:a.a.integer,populatedRange:a.a.object},syncedAttrs:{totalSize:a.a.integer},syncedRelations:{metadataItems:{relationClass:l.a,rootPropertyName:"Metadata",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{populatedRange:{
start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},augmentResponseText:function(e,t){return t===o.a.xml?Object(s.b)(e):e}});t.a=c},function(e,t,n){"use strict";var i=n(25),a=n(95),r=n(514),o=i.a.extend({name:"SectionCollection",context:["server"],model:r.a,url:"/library/sections",responseType:function(){return Object(a.a)(this.server)}});t.a=o},function(e,t,n){"use strict";var i=n(41),a=n(3),r=n(270),o=n(64),s=n(364),l=s.a.extend({name:"LegacyChannelProviderModel",
defaults:function(){return{identifier:i.a,title:Object(a.default)("Channel"),types:["video","audio","photo"],protocols:["stream"],features:[{type:o.b.ACTIONS,actions:[{id:r.b.SCROBBLE,key:"/:/scrobble",reverseKey:"/:/unscrobble"}]},{type:o.b.TIMELINE,key:"/:/timeline"}]}}});t.a=l},function(e,t,n){"use strict";function i(e){var t=/(\d+\.){2,3}\d+/.exec(e);return r.a.first(t)||e}var a=n(10),r=n.n(a);t.a=i},,,,function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(96),l=s.a.extend({
className:"select-modal modal modal-sm fade",events:o.a.extend({"click a":"onClick"},s.a.prototype.events),initialize:function(){s.a.prototype.initialize.apply(this,arguments),this.promise=a.a.Deferred()},onRender:function(){s.a.prototype.onRender.apply(this,arguments)},onHide:function(e){s.a.prototype.onHide.apply(this,arguments),this.promise.reject()},onClick:function(e){e.preventDefault(),this.promise.resolve(a()(e.currentTarget).data("value")),this.hide()}});t.a=l},function(e,t,n){
"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="error",a="success"},function(e,t,n){"use strict";var i=n(16),a=n(96),r=n(2080),o=n.n(r),s=a.a.extend({name:"plexPassModal",template:o.a,serializeData:function(){return{plexPassUrl:i.c("appModel").get("user").server.get("plexPassUrl"),friendlyName:this.model.get("friendlyName"),isClaimed:this.model.get("isClaimed")}}});t.a=s},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(14),o=n(359),s=n(518),l=s.a.extend({name:"SyncItemModel",context:["server","device"],urlRoot:function(){return"/devices/"+(this.device?this.device.get("clientIdentifier"):this.get("clientIdentifier"))+"/sync_items"},syncedAttrs:a.a.extend({},s.a.prototype.syncedAttrs,{version:{type:r.a.integer,save:!0},metadataType:{type:r.a.string,save:!0},rootTitle:{type:r.a.string,save:!0},machineIdentifier:{type:r.a.string,save:!0},Server:r.a.object}),defaults:function(){return{
Location:{},Device:{},Server:{}}},augmentResponse:function(e){return"photoAlbum"===e.metadataType&&(e.metadataType="photoalbum"),e},sync:function(e,t,n){var i=o.a.addVersionHeaderForDevice(this.device,n);return s.a.prototype.sync.call(this,e,t,i)},getSaveParams:function(e,t){var n=s.a.prototype.getSaveParams.apply(this,arguments),i=n.Item;return a.a.each(i,function(e,t){""===e&&delete i[t]}),{SyncItem:i}}});t.a=l},function(e,t,n){"use strict";function i(e,t){
return Object(a.a)(e,t)?"localQuality":"remoteQuality"}t.a=i;var a=n(821)},function(e,t,n){"use strict";function i(e,t){var n=e.toJSON?e.toJSON():e,i=n.isChannelItem,a=n.isExtra,r=n.guid,o=a&&!/^file:\/\//.test(r);return!i&&!o&&t}t.a=i},function(e,t,n){"use strict";var i={sizes:{movie:"portrait",show:"portrait",season:"portrait",episode:"landscape",artist:"square",album:"square",track:"square",photo:"square",photoalbum:"square",clip:"landscape",playlist:"square",playlistFolder:"square",
userPlaylistItem:"landscape",channel:"square",channelDirectory:"square",folder:"portrait",friend:"square",poster:"portrait",art:"landscape",banner:"banner",collection:"portrait"},ratios:{portrait:1/1.5,square:1,landscape:16/9,banner:5.2},getRatioByType:function(e){return this.ratios[this.sizes[e]]},getPosterWidthUsingRatio:function(e,t){return Math.round(this.ratios[e]*t)},getPosterHeightUsingRatio:function(e,t){return Math.round(this.ratios[e]&t)},getPosterWidth:function(e,t){
return Math.round(t*this.getRatioByType(e))},getPosterHeight:function(e,t){return Math.round(t/this.getRatioByType(e))}};t.a=i},function(e,t,n){"use strict";function i(e){return r({hubIdentifier:e.get("hubIdentifier"),identifier:e.provider.get("identifier"),machineIdentifier:e.server.get("machineIdentifier")})}function a(e,t,n){return r({hubIdentifier:e.hubIdentifier,identifier:t.identifier,machineIdentifier:n.machineIdentifier})}function r(e){var t=e.identifier,n=e.hubIdentifier
;return e.machineIdentifier+"--"+t+"--"+Object(o.a)(n)}t.b=i,t.a=a;var o=n(1193)},function(e,t,n){"use strict";function i(e){if(e)return e.relay?"relayed":e.isLoopback?"localhost":e.isPrivate?"local":"remote"}t.a=i},function(e,t,n){"use strict";function i(e){return e.isCloud?"online":e.isShared?"shared":"owned"}t.a=i},function(e,t,n){"use strict";function i(){return"konvergo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}t.a=i;var a=n(50)},function(e,t,n){"use strict"
;function i(){return"tivo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziomtk"===e.platformID&&Object(r.a)(e)}t.a=i;var a=n(50),r=n(628)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziosigma"===e.platformID&&Object(r.a)(e)}t.a=i;var a=n(50),r=n(628)
},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziomtk"===e.platformID&&Object(r.a)(e)}t.a=i;var a=n(50),r=n(629)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziosigma"===e.platformID&&Object(r.a)(e)}t.a=i;var a=n(50),r=n(629)},function(e,t,n){e.exports={default:n(2206),__esModule:!0}},,,function(e,t,n){"use strict"
;var i=n(246),a=n(365),r=n(2222),o=i.a.extend({model:r.a,url:"/playlists?type="+a.a.LOCAL,parse:function(e){return this.convert(e,"Playlist")}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(1209),r=i.a.extend({name:"PlayQueueItemCollection",context:["server","provider","identifier","mediaTagPrefix","mediaTagVersion"],model:a.a});t.a=r},function(e,t,n){"use strict";function i(e){return Object(o.a)("web-client","settings",e)}function a(e,t,n){return Object(o.a)("server",e,t,n)}
function r(e){return Object(o.a)("synced-content",e)}t.c=i,t.a=a,t.b=r;var o=n(1210)},,,function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=Object(a.c)(e),n=t.hours+24*t.days,i=t.minutes,o=t.seconds;return n&&i?Object(r.default)("{1} hr {2} min",n,i):n?Object(r.default)("{1} hr",n):i?Object(r.default)("{1} min",i):o>0?Object(r.default)("{1} sec",o):""}var a=n(433),r=n(3);t.a=i},function(e,t,n){"use strict";function i(e){for(var t=0,n=de.length;t<n;t++){var i=de[t],a=i[0]
;if(i[1].test(e))return a}}function a(e,t){var n=pe[e]||pe[t];return n||((n=e&&i(e))?(pe[e]=n,n):(n=t&&i(t),n?(pe[t]=n,n):b.a))}t.a=a
;var r,o=n(10),s=n.n(o),l=n(2291),c=n.n(l),u=n(2292),d=n.n(u),p=n(2293),h=n.n(p),f=n(2294),v=n.n(f),g=n(2295),m=n.n(g),y=n(2296),b=n.n(y),I=n(2297),S=n.n(I),M=n(2298),D=n.n(M),C=n(2299),j=n.n(C),P=n(2300),O=n.n(P),T=n(2301),E=n.n(T),w=n(2302),A=n.n(w),x=n(2303),N=n.n(x),L=n(2304),k=n.n(L),R=n(2305),z=n.n(R),U=n(2306),B=n.n(U),F=n(2307),_=n.n(F),V=n(2308),H=n.n(V),Q=n(2309),Y=n.n(Q),G=n(2310),W=n.n(G),K=n(2311),Z=n.n(K),q=n(2312),J=n.n(q),X=n(2313),$=n.n(X),ee=n(2314),te=n.n(ee),ne=n(2315),ie=n.n(ne),ae=n(2316),re=n.n(ae),oe=n(2317),se=n.n(oe),le=n(2318),ce=n.n(le),ue=(r={},
r[c.a]=/alexa/i,r[d.a]=/android/i,r[h.a]=/plex.*atv|tvos/i,r[v.a]=/chrome/i,r[m.a]=/cloudsync/i,r[S.a]=/dlna/i,r[D.a]=/edge/i,r[j.a]=/firefox/i,r[O.a]=/google.*tv/i,r[E.a]=/internet.*explorer|explorer.*windows/i,r[A.a]=/ios/i,r[N.a]=/linux/i,r[k.a]=/opera/i,r[z.a]=/macosx/i,r[B.a]=/konvergo|plex.*home.*theater|plex.*media.*center/i,r[_.a]=/plexamp/i,r[H.a]=/plex.*media.*server/i,r[Y.a]=/WebMAF|mystery.*3/i,r[W.a]=/roku/i,r[Z.a]=/safari/i,r[J.a]=/samsung/i,r[$.a]=/sonos/i,r[te.a]=/plex.*vr/i,
r[ie.a]=/wii.*u/i,r[re.a]=/windows/i,r[se.a]=/windows.*phone|wince/i,r[ce.a]=/xbox|mystery.*5/i,r),de=s.a.pairs(ue),pe={}},function(e,t,n){"use strict";function i(e,t){return null==e.get("startMetadataItemEntityID")&&null!=e.get("startOffsetMilliseconds")?e.get("startOffsetMilliseconds"):e.get("startMetadataItemEntityID")===t.entityID()?e.get("startOffsetMilliseconds"):t.get("viewOffset")||0}t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a})
;var i="cast",a="plex"},function(e,t,n){"use strict";function i(e,t){var n=t.options?r()({},t.options):{},i=s.i(e,t),a=s.k(e,t),l=t.itemProviderEntityID&&s.i(e,{providerEntityID:t.itemProviderEntityID}),c=t.itemServerEntityID&&s.k(e,{serverEntityID:t.itemServerEntityID}),u=c&&!c.get("isCloud"),d=u&&l;return n.serverModel=d?c:a,n.providerModel=d?l:i,t.metadataItemEntityID&&(n.metadataItemModel=s.e(e,t)),t.playlistMetadataItemEntityID&&(n.playlistModel=s.e(e,{
metadataItemEntityID:t.playlistMetadataItemEntityID})),t.metadataItemEntityIDs&&(n.metadataItemModels=t.metadataItemEntityIDs.map(function(t){return s.e(e,{metadataItemEntityID:t})})),t.metadataListEntityID&&(n.metadataListModel=s.f(e,t)),t.listType&&(n.type=Object(o.a)({metadataType:t.listType})),n}t.a=i;var a=n(6),r=n.n(a),o=n(435),s=n(70)},function(e,t,n){"use strict";function i(e,t,n){var i=e.get("previousOpenState"),a=e.get("openState");return i&&!t?a=i:i&&t&&(a=void 0),r()({
previousOpenState:a,openState:i&&t?i:o.a},n)}t.a=i;var a=n(6),r=n.n(a),o=n(212)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(16),o=n(181),s={movie:{showInfo:!0,showPlay:!0},episode:{showInfo:!0,showPlay:!0},clip:{showInfo:!0,showPlay:!0}},l={showListDropdown:["showInfo"]},c=o.a.extend({initialize:function(e,t){if(t||(t={}),t.item){var n=r.c("appModel");this.item=t.item,this.user=n.get("user"),this.signedIn=this.user.get("signedIn"),this.setDefaults(this.item.get("type")),
this.updateAll(),this.listenTo(this.user,{"change:signedIn":this.onSignedInChange})}},setDefaults:function(e){e&&e!==this.type&&(this.type=e,this.defaults=a.a.clone(s[e]||{}),this.clear().set(this.defaults))},updateAll:function(){this.updateAction("showPlay",this.canPlay),this.updateAction("showInfo",this.canGetInfo),this.updateDropdown("showListDropdown")},updateAction:function(e,t,n){var i=!!this.defaults&&this.defaults[e];this.set(e,t.call(this,i,n))},updateDropdown:function(e){
var t=l[e],n=a.a.map(t,function(e){return this.get(e)},this);this.set(e,a.a.some(n))},canPlay:function(e,t){return!!e&&!this.item.get("hasInvalidKey")},canGetInfo:function(e){return!!e},onSignedInChange:function(e,t){this.signedIn=t,this.updateDropdown("showListDropdown")}});t.a=c},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(43),l=n(2327),c=n(2329),u=n.n(c),d=l.a.extend({tagName:"span",className:"rating star-rating",template:u.a,disabled:!0,modelEvents:{
"change:rating":"onRatingChange","change:userRating":"onRatingChange"},events:o.a.extend({mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},l.a.prototype.events),initialize:function(e){l.a.prototype.initialize.apply(this,arguments);var t=this.model.server.get("shared")&&!this.model.server.get("multiuser");this.disabled=e.disabled||t,this.passive=e.passive,this.updateRating()},updateRating:function(){this.metadataRating=this.model.get("rating")||0,
this.userRating=this.model.get("userRating"),this.setValue(this.userRating>0?this.userRating:this.metadataRating)},normalizeRating:function(e){return Math.round(e/2)},serializeData:function(){var e=this.normalizeRating(this.currentValue);return{stars:[e>0,e>1,e>2,e>3,e>4]}},getValueForPosition:function(e){var t=this.$el,n=e-t.offset().left,i=n/t.width();return i=Math.min(Math.max(i,0),1),i=2*Math.ceil(5*i)},persistValue:function(){var e=this.currentValue||-1;s.a.execute("rate",{item:this.model,
rating:e,passive:this.passive}),this.updateRating(),this.render()},displayValue:function(e){this.$el.data("value",e);var t=this.normalizeRating(e);this.$(".star-icon").each(function(e){var n=t>e;a()(this).toggleClass("star",n).toggleClass("dislikes",!n)}),this.$el.toggleClass("unrated",!e)},onRender:function(){l.a.prototype.onRender.apply(this,arguments),this.$el.toggleClass("unrated",!this.currentValue),this.$el.toggleClass("user-rating",this.userRating>0),
this.$el.toggleClass("disabled",this.disabled)},onRatingChange:function(e,t){this.updateRating(),this.render()},onMouseEnter:function(e){this.disabled||(this.$el.addClass("user-rating"),this.$el.removeClass("unrated"))},onMouseLeave:function(e){this.disabled||this.render()},onMouseMove:function(e){if(!this.disabled)if(this.dragging)this.updateForPosition(e.pageX);else{var t=this.getValueForPosition(e.pageX);this.displayValue(t)}},onDragComplete:function(){this.disabled||this.persistValue()}})
;t.a=d},function(e,t,n){"use strict";function i(e){var t=l.a.reject(e,function(e){return e.id===p.a}),n=l.a.sortBy(t,"streamType");return l.a.map(n,function(e){return O(e,"streamType")})}function a(e){return l.a.map(e.get("Media"),function(e){return l.a.extend(O(e,"Part"),{Part:l.a.map(e.Part,function(e){return l.a.extend(O(e,"Stream"),{file:e.file,exists:!1!==e.exists,accessible:!1!==e.accessible,Stream:i(e.Stream)})})})})}
var r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(18),u=n(16),d=n(43),p=n(1156),h=n(310),f=n(849),v=n(366),g=n(1234),m=n(625),y=n(1235),b=n(2337),I=n(96),S=n(2338),M=n.n(S),D=["id","key","index","videoCodec","audioCodec","audioChannels","default","selected","languageCode","codecID","accessible","exists","provider","lines","minLines","follow","requiredBandwidths","deepAnalysisVersion","deepAnalysisDate"],C={size:f.a,duration:h.a,codec:m.a,format:m.a,container:m.a,videoResolution:v.default,
bitrateMode:m.a,accessible:y.default,exists:y.default,optimizedForStreaming:y.default,timed:y.default,file:c.getLastSegment},j={optimizedForStreaming:"Web Optimized",has64bitOffsets:"Has 64bit Offsets",cabac:"CABAC",postURL:"URL"},P={frameRate:" fps",dialogNorm:" dB",bitrate:" kbps",samplingRate:" Hz"},O=function(e,t){var n={properties:[]};for(var i in e)if(i!==t&&-1===l.a.indexOf(D,i)){var a=j[i],r=e[i];"level"===i&&(r=Object(g.a)(r,e.codec)),C[i]&&(r=C[i](r)),r&&(P[i]&&(r+=P[i]),
a||(a=Object(b.a)(i)),n.properties.push({name:a,value:r}))}return t&&e&&(n[t]=e[t]),n},T=I.a.extend({name:"mediaInfoModal",className:"media-info-modal modal modal-lg fade",template:M.a,ui:{scroller:".modal-body-scroll",files:".files > ul",stickyProps:".media > .props, .part > .props"},events:l.a.extend({"click .delete-btn":"onDeleteClick"},I.a.prototype.events),modelEvents:{"change:Media":"onMediaChange"},initialize:function(e){I.a.prototype.initialize.apply(this,arguments),
this.bindAllWhenRendered("onMediaChange","onScroll"),this.loading=!1,this.media=a(this.model),this.loading=!0,this.model.fetch({usePopulatedParams:!0,data:{checkFiles:1,asyncCheckFiles:0}}).always(this.whenRendered(function(){this.model.changed.hasOwnProperty("Media")||this.updateMedia()}))},serializeData:function(){var e=this.model.get("key"),t=u.c("appModel"),n=t.get("user"),i=this.model.server;return this.model.get("isLibraryItem")&&(e=c.join(e,{checkFiles:1,includeExtras:1,
includeBandwidths:1})),{key:e,url:this.model.server.resolveUrl(e,{appendToken:!0}),media:this.media,hasFiles:this.hasFiles(),hasStreams:this.hasStreams()||this.loading,showDeleteFile:i.get("isFullOwnedServer")&&i.get("allowMediaDeletion")&&i.supports("specificMediaDeletion"),showFilepath:!i.get("shared")||n.isNinja(),loading:this.loading}},updateMedia:function(){this.loading=!1,this.rerender=!0,this.ui.scroller.off("scroll",this.onScroll),this.media=a(this.model),this.render()},
hasFiles:function(){return!!l.a.chain(this.media).pluck("Part").flatten().pluck("file").compact().size().value()},hasStreams:function(){return!!l.a.chain(this.media).pluck("Part").flatten().pluck("Stream").flatten().size().value()},onRender:function(){I.a.prototype.onRender.apply(this,arguments),this.ui.scroller.on("scroll",this.onScroll),this.$el.tooltip({selector:".files .label",placement:"bottom"})},onClose:function(){this.ui.scroller.off("scroll",this.onScroll)},onMediaChange:function(){
if(!this.isHidden)return this.model.get("Media").length?void this.updateMedia():void this.hide()},onDeleteClick:function(e){e.preventDefault(),d.a.execute("deleteMediaItem",{item:this.model,index:o()(e.currentTarget).data("media-item")})},onScroll:function(){var e=this.ui.scroller.scrollTop(),t=this.ui.scroller.offset().top;if(this.ui.files.length&&(t+=parseInt(this.ui.files.css("margin-bottom"),10)),t<0)return void setTimeout(this.onScroll,500);this.ui.stickyProps.each(function(){
var n=o()(this),i=n.parent().height()-n.height(),a=e-this.parentNode.offsetTop,r=Math.min(Math.max(a,0),i);r&&r===a?(n.addClass("sticky"),n.css("top",t)):(n.removeClass("sticky"),n.css("top",r))})}});t.a=T},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return(0).toFixed(t)+" "+a[0];var n=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(t)+" "+a[n]}var a=["B","KB","MB","GB","TB"];t.a=i
},,function(e,t,n){"use strict";function i(e,t,n){var i=0;return r.a.Children.map(e,function(e){if(r.a.isValidElement(e)){var a=i;return i++,t.call(n,e,a)}return e})}t.a=i;var a=n(0),r=n.n(a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(2815),v=n.n(f),g=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(){var e=i.props,t=e.dataKey,n=e.onPress;n&&n(t)},i.onMouseEnter=function(){var e=i.props,t=e.dataKey,n=e.onMouseEnter;n&&n(t)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.title,i=e.labelColor,r=e.onMouseLeave;return a()(h.a,{className:t,onPress:this.onPress,onMouseEnter:this.onMouseEnter,onMouseLeave:r
},void 0,a()("span",{className:v.a.dot,style:{backgroundColor:i}}),n)},t}(p.Component);g.defaultProps={className:v.a.legendLabel},t.a=g},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e&&e.pmp})}t.a=i;var a=n(4),r=(n.n(a),n(35))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TOP_LEFT",function(){return i}),n.d(t,"TOP_CENTER",function(){return a}),n.d(t,"TOP_RIGHT",function(){return r}),
n.d(t,"BOTTOM_LEFT",function(){return o}),n.d(t,"BOTTOM_CENTER",function(){return s}),n.d(t,"BOTTOM_RIGHT",function(){return l}),n.d(t,"MIDDLE_LEFT",function(){return c}),n.d(t,"MIDDLE_RIGHT",function(){return u}),n.d(t,"all",function(){return d});var i="topLeft",a="topCenter",r="topRight",o="bottomLeft",s="bottomCenter",l="bottomRight",c="middleLeft",u="middleRight",d=[i,a,r,o,s,l,c,u]},function(e,t,n){"use strict";function i(e){var t=p[e.attribution];return t?o()("div",{className:e.className
},void 0,o()("div",{className:(d.a.attribution||"")+" "+(t||"")})):null}var a,r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(920)),u=n(2841),d=n.n(u),p=(a={},a[c.a]=d.a.tidal,a);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="com.tidal"},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i="playlist://image.favorite",a="playlist://image.radio",r="folder"},function(e,t,n){"use strict"
;function i(e){var t=o.a.get("subtitles").id,n=Object(s.a)(e,{streamType:t,selected:!0}),i=r.a.first(n);if(i&&i.id>0)return i}var a=n(10),r=n.n(a),o=n(159),s=n(267);t.a=i},function(e,t,n){"use strict";var i=n(1),a=n.n(i),r=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});t.a=r},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({getListStyle:a.a.func.isRequired,getPositionForIndex:a.a.func.isRequired,
getRangesForPosition:a.a.func.isRequired,getRelativeIndex:a.a.func.isRequired})},function(e,t,n){"use strict";var i={},a={getPageKey:function(){return window.location.hash},getKey:function(e){return a.getPageKey()+"!"+e},get:function(e){return i[e]},set:function(e,t){i[e]=t},remove:function(e){delete i[e]},clear:function(){i={}}};t.a=a},function(e,t,n){var i=n(432),a=n(1393);e.exports=i({},a,{dragPreviewBackgroundColor:"rgba(76, 76, 76, 0.7)",dragPreviewOpacity:"0.9",dropLocationColor:"#f9be03",
sliderTrackBackgroundColor:"rgba(255, 255, 255, 0.2)",sliderThumbBackgroundColor:"#ddd",sliderThumbHoverBackgroundColor:"#fff",avatarBackgroundColor:"#999",detailsBackgroundColor:"rgba(0, 0, 0, 0.15)",detailsShadowColor:"#000",playerBackgroundColor:"#232426",playerTopControlsBackgroundColor:"rgba(35, 36, 38, 0.45)",playerBottomControlsBackgroundColor:"rgba(35, 36, 38, 0.8)",playerPrimaryButtonBackgroundColor:"rgba(0, 0, 0, 0.45)",miniPlayerBackgroundColor:"rgba(0, 0, 0, 0.3)",
playerPlaceholderColor:"rgba(0, 0, 0, 0.3)",playerSecondaryOverlayColor:"rgba(0, 0, 0, 0.4)",playerPosterActionColor:"rgba(0, 0, 0, 0.15)",playerPanelColor:"rgba(0, 0, 0, 0.6)",playerDisabledLinkColor:"rgba(255, 255, 255, 0.15)",playerShadowColor:"rgba(0, 0, 0, 0.45)",seekBarTrackColor:"rgba(0, 0, 0, 0.75)",seekBarTrackColorHover:"rgba(255, 255, 255, 0.15)",seekBarFillColor:"#cc7b19",seekBarBufferColor:"rgba(204, 123, 25, 0.3)",seekBarThumbnailShadowColor:"rgba(0, 0, 0, 0.45)",
seekBarTooltipBackgroundColor:"#000",seekBarTooltipShadowColor:"rgba(0, 0, 0, 0.5)",thumbnailBackgroundColor:"rgba(0, 0, 0, 0.45)",adSeekBarFillColor:"#f9be03",equalizerBarColor:"#f9be03",htmlMediaElementBackgroundColor:"#000",posterBackgroundColor:"rgba(0, 0, 0, 0.45)",posterHoverBackgroundColor:"radial-gradient(farthest-corner at 50% 50%, rgba(50, 50, 50, 0.5) 50%, rgb(50, 50, 50) 100%)",posterSelectedBackgroundColor:"rgba(30, 30, 30, 0.5)",
posterBlendedSelectedBackgroundColor:"rgba(19, 19, 19, 0.78);",posterPlaceholderIconColor:"rgba(255, 255, 255, 0.15)",posterCenterCircleBackgroundColor:"rgba(0, 0, 0, 0.45)",posterBadgeShadowColor:"rgba(0, 0, 0, 0.6)",posterProgressTrackBackgroundColor:"rgba(0, 0, 0, 0.75)",posterVersionBadgeColor:"#556688",posterSmartBadgeColor:"rgb(142, 97, 145)",posterFavoriteBadgeColor:"rgb(229, 172, 182)",recordColor:"#f53",recordHoverColor:"color(#f53 lightness(+5%))",recordBackgroundColor:"#b32",
recordActiveBackgroundColor:"color(#b32 blackness(+10%))",dayOfWeekBackgroundColor:"rgba(255, 255, 255, 0.1)",dayOfWeekColor:"rgba(255, 255, 255, 0.75)",todayBackgroundColor:"rgba(255, 255, 255, 0.3)",todayColor:"rgba(255, 255, 255, 0.1)",calendarEventSuccessBackgroundColor:"rgba(0, 102, 153, 0.15)",calendarEventSuccessAlternateBackgroundColor:"rgba(31, 120, 165, 0.17)",calendarEventSuccessHoverBackgroundColor:"rgba(76, 148, 183, 0.20)",calendarEventErrorBackgroundColor:"rgba(187, 51, 34, 0.3)",
calendarEventErrorAlternateBackgroundColor:"rgba(191, 64, 48, 0.31)",calendarEventErrorHoverBackgroundColor:"rgba(199, 87, 73, 0.34)",recordingIconColor:"#ff5533",playColor:"rgba(255, 255, 255, 0.75)",channelGridSelectedItemDetailsBackgroundColor:"rgba(0, 0, 0, 0.2)",channelGridBorderColor:"rgb(43, 57, 70)",channelGridHoverColor:"rgba(255, 255, 255, 0.2)",channelGridOnAirBackgroundColor:"rgba(255, 255, 255, 0.1)",channelGridMissingItemBackgroundColor:"rgba(0, 0, 0, 0)",
channelGridProgressColor:"rgba(255, 255, 255, 0.15)",channelGridChannelThumbBackgroundColor:"rgba(255, 255, 255, 0.4)",channelGridChannelIdentifierBackroundColor:"rgba(255, 255, 255, 0.05)",channelGridNewBadgeColor:"rgba(84, 84, 84)",filterBuilderInputBackgroundColor:"rgba(0, 0, 0, 0.6)",altFilterBuilderInputBackgroundColor:"rgba(0, 0, 0, 0.3)",dvrBackgroundColor:"rgba(0, 0, 0, 0.15)",preplayUnavailableButtonBackgroundColor:"rgba(255, 84, 50, 0.6)",
preplayPartialButtonBackgroundColor:"rgba(204, 123, 25, 0.6)",searchInputBackgroundColor:"rgba(255, 255, 255, 0.08)",preferredServerButtonBackgroundColor:"rgba(0, 0, 0, 0.45)",sortableHomeHubsContainerBackgroundColor:"rgba(255, 255, 255, 0.03)",sortableHomeHubsRowBackgroundColor:"rgba(255, 255, 255, 0.02)",sortableHomeHubDimOpacity:"0.35",chartTranslucentOpacity:"0.25",serverDashboardTileRowBackgroundPrimaryColor:"rgba(229, 160, 13, 0.2)",
serverDashboardTileRowBackgroundSecondaryColor:"rgba(229, 160, 13, 0.15)",serverDashboardTileRowBackgroundTertiaryColor:"rgba(229, 160, 13, 0.1)",serverDashboardTileRowBackgroundQuaternaryColor:"rgba(229, 160, 13, 0.05)",sessionStopBackgroundColor:"#701f29",sessionStopIconColor:"rgba(255, 255, 255, 0.5)"})},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e){return e.ui.dvrSettingsUI},Object(m.a)(),function(e,t){var n=e.isDvrsPending,i=e.dvrs;return{
isUIPopulated:e.isUIPopulated,isDvrsPending:n,hasDVRs:!(!i||!i.length),hasDVRFeature:!!t.ownerFeatures&&t.ownerFeatures.indexOf("dvr")>-1}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(35)),y=n(36),b=n(682),I=n(2938),S={dispatchInitDVRSettingsUI:b.d,dispatchClearDVRSettingsUI:b.b},M=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),
t.prototype.componentDidMount=function(){var e=this;Object(y.a)(function(){e.props.dispatchInitDVRSettingsUI({serverEntityID:e.props.serverEntityID})})},t.prototype.componentWillUnmount=function(){this.props.dispatchClearDVRSettingsUI()},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitDVRSettingsUI,e.dispatchClearDVRSettingsUI,r()(e,["dispatchInitDVRSettingsUI","dispatchClearDVRSettingsUI"]));return this.props.isUIPopulated?f.a.createElement(I.a,t):null},t}(h.Component)
;t.a=Object(v.connect)(i,S)(M)},function(e,t,n){"use strict";var i=n(25),a=n(386),r=i.a.extend({name:"MediaGrabberDeviceCollection",context:["server"],model:a.a,url:"/media/grabbers/devices"});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"EPGLanguageModel",context:["server"],rootPropertyName:"Language",idAttribute:"code",syncedAttrs:{code:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className,i=e.loadingLabel,a=e.spinnerSize,o=e.isDisabled,l=e.isSpinning,u=c()(e,["children","className","loadingLabel","spinnerSize","isDisabled","isSpinning"]);return p.a.createElement(v.a,r()({className:(n||"")+" "+(m.a.button||"")+" "+(l&&m.a.isSpinning||""||""),isDisabled:o||l},u),s()("span",{className:m.a.spinnerContainer},void 0,s()(h.a,{className:m.a.spinner,loadingLabel:i,size:a})),s()("span",{className:m.a.label},void 0,t))}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(375),f=n(52),v=n(42),g=n(2945),m=n.n(g);i.defaultProps={isDisabled:!1,isSpinning:!1,spinnerSize:f.SMALL},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(42),v=n(3),g=n(176),m=n(24),y=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onNextStepPress=function(){i.props.dvrSetupNextStep({dvrID:i.props.dvrID})},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=void 0===t?Object(v.default)("Continue"):t,i=e.isDisabled;return a()(f.a,{kind:m.b.PRIMARY,size:m.e.MEDIUM,isDisabled:i,onPress:this.onNextStepPress},void 0,n)},t}(p.Component);y.defaultProps={isDisabled:!1},t.a=Object(h.connect)(null,{dvrSetupNextStep:g.l})(y)},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(42),v=n(3),g=n(176),m=n(24),y=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPreviousStepPress=function(){i.props.dvrSetupPreviousStep({dvrID:i.props.dvrID})},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){return a()(f.a,{
kind:m.b.DEFAULT,size:m.e.MEDIUM,onPress:this.onPreviousStepPress},void 0,Object(v.default)("Previous"))},t}(p.Component);t.a=Object(h.connect)(null,{dvrSetupPreviousStep:g.m})(y)},function(e,t,n){"use strict";function i(e){return e+"\xd7"}t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e?e.providers:void 0})}t.a=i;var a=n(4),r=(n.n(a),n(35))},function(e,t,n){"use strict";function i(e){
var t=e.iconClassName,n=e.messageClassName,i=e.kind,a=e.message,o=s()(e,["iconClassName","messageClassName","kind","message"]);return u.a.createElement(h.a,o,r()(d.a,{name:"plex-icon-alert-560",className:(v.a[i]||"")+" "+(t||"")}),r()("div",{className:n},void 0,a))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(26),p=n(24),h=n(1426),f=n(3018),v=n.n(f);i.defaultProps={iconClassName:v.a.icon,messageClassName:v.a.message,kind:p.b.DEFAULT},t.a=i},function(e,t,n){
"use strict";function i(e){var t="movie"===e.type&&"com.plexapp.agents.none"===e.agent,n=t?"videos":e.type;return a.f.get(n).key}t.a=i;var a=n(145)},function(e,t,n){"use strict";function i(e,t){var n=t.libraryID,i=t.libraryType,a=t.cancel,o=t.force,d=t.allowMetrics,p=t.metricsProperties,h=void 0===p?{}:p,f=o?{force:1}:void 0,v=Object(l.join)(["/library/sections",n,"refresh"],f),g=e.getXHROptions(v,{type:a?"DELETE":"GET"});if(d){var m=void 0;m=a?u.f:o?u.v:u.Z,
Object(c.c)("metrics").trackClick(r()({},h,{action:m,type:"all"===n?"all":i}))}return s.a.ajax(g).promise()}t.a=i;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(18),c=n(16),u=n(86)},function(e,t,n){"use strict";function i(e){function t(){i<0||e().done(function(){s&&clearTimeout(s),o.resolve.apply(o,arguments)}).fail(function(){i-=1,i<0?(s&&clearTimeout(s),o.reject.apply(o,arguments)):"pending"===o.state()&&setTimeout(t,a)})}
var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Math.floor(Math.max(n.times||0,0)),a=Math.floor(Math.max(n.delay||0,0));n.cancel&&n.cancel.always(function(){i=-1});var o=r.a.Deferred(),s=void 0;return n.maxDuration&&(s=setTimeout(function(){o.reject("maxDuration")},n.maxDuration)),t(),o.promise()}t.a=i;var a=n(13),r=n.n(a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.libraryEntityID},r.a,function(e,t){return t[e]})}t.a=i
;var a=n(4),r=(n.n(a),n(692))},function(e,t,n){"use strict";function i(e,t,n){Object(p.c)("metrics").trackClick({page:n,action:e,type:t.get("type"),context:y.d})}n.d(t,"g",function(){return j}),n.d(t,"i",function(){return P}),n.d(t,"d",function(){return O}),n.d(t,"a",function(){return T}),n.d(t,"e",function(){return E}),n.d(t,"c",function(){return w}),n.d(t,"h",function(){return A}),n.d(t,"b",function(){return x}),n.d(t,"f",function(){return N})
;var a,r=n(6),o=n.n(r),s=n(13),l=n.n(s),c=n(40),u=n(19),d=n(18),p=n(16),h=n(188),f=n(116),v=n(123),g=n(817),m=n(86),y=n(138),b=n(3),I=n(937),S=n(134),M=n(559),D=n(508),C=n(463),j=Object(c.a)("library/shareLibrary"),P=Object(c.a)("library/startLibraryRefresh"),O=Object(c.a)("library/editLibrary"),T=Object(c.a)("library/analyzeLibrary"),E=Object(c.a)("library/emptyTrashLibrary"),w=Object(c.a)("library/deleteLibrary"),A=Object(c.a)("library/startLibraryRefresh",function(e){return o()({},e,{force:!0
})}),x=Object(c.a)("library/startLibraryRefresh",function(e){return o()({},e,{cancel:!0})}),N=(a={},a["library/shareLibrary"]=function(e,t){var n=Object(S.h)(e,t),a=Object(S.a)(e,t);u.a.trigger("show:modal",new C.a({defaultPaneType:"ownedServer",defaultPaneID:n.id})),i(m.S,a,t.metricsPage)},a["library/startLibraryRefresh"]=function(e,t,n){var i=t.cancel,a=t.force,r=t.metricsPage,o=Object(S.h)(e,t),s=Object(S.a)(e,t),l={libraryID:s.id,libraryType:s.get("type"),cancel:i,force:a,allowMetrics:!!r,
metricsProperties:{page:r}};s.set("refreshing",!i),Object(I.a)(o,l).fail(function(e){if(503===e.status)u.a.trigger("show:modal",new D.a({model:o}));else{var i=t.cancel?Object(b.default)("There was a problem canceling the update."):Object(b.default)("There was a problem updating the library.");n(Object(v.d)(i))}}).always(function(e){n(f.g({serverEntityID:t.serverEntityID}))})},a["library/editLibrary"]=function(e,t){var n=Object(S.h)(e,t),a=Object(S.a)(e,t);u.a.trigger("show:modal",new M.a({
server:n,model:a})),i(m.r,a,t.metricsPage)},a["library/analyzeLibrary"]=function(e,t,n){var a=Object(S.h)(e,t),r=Object(S.a)(e,t),o=a.getXHROptions("/library/sections/"+r.id+"/analyze",{type:"PUT"});l.a.ajax(o).fail(function(e){n(Object(v.d)(Object(b.default)("There was a problem analyzing the library.")))}),i(m.d,r,t.metricsPage)},a["library/emptyTrashLibrary"]=function(e,t,n){var a=Object(S.h)(e,t),r=Object(S.a)(e,t),o=a.getXHROptions("/library/sections/"+r.id+"/emptyTrash",{type:"PUT"})
;l.a.ajax(o).done(function(){n(Object(v.d)({type:g.b,message:Object(b.default)("The trash was emptied.")}))}).fail(function(e){n(Object(v.d)(Object(b.default)("There was a problem emptying the trash.")))}),i(m.s,r,t.metricsPage)},a["library/deleteLibrary"]=function(e,t,n){var a=Object(S.h)(e,t),r=Object(S.a)(e,t);if(r.isNew())return void r.destroy();var o=a.supports("libraryDeleteActivity"),s=d.join(r.url(),o?{async:1}:{}),c=a.getXHROptions(s,{type:"DELETE"});n(f.p({
serverEntityID:t.serverEntityID,activityType:h.a.LIBRARY_DELETE})),l.a.ajax(c).done(function(){o||n(f.j({serverEntityID:t.serverEntityID,activityType:h.a.LIBRARY_DELETE}))}).fail(function(){n(f.j({serverEntityID:t.serverEntityID,activityType:h.a.LIBRARY_DELETE})),n(Object(v.d)(Object(b.default)("There was a problem deleting the library.")))}),i(m.l,r,t.metricsPage)},a[f.b]=function(e,t,n){t.activity.type===h.a.LIBRARY_DELETE&&(n(f.h({serverEntityID:t.serverEntityID})),n(f.g({
serverEntityID:t.serverEntityID})),n(Object(v.c)({serverEntityID:t.serverEntityID})))},a)},function(e,t,n){"use strict";function i(e){return e.experienceSettings.libraryRoutes}t.a=i},,,,function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return d
}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return h}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return v}),n.d(t,"n",function(){return g}),n.d(t,"o",function(){return m}),n.d(t,"p",function(){return y}),n.d(t,"q",function(){return b}),n.d(t,"r",function(){return I}),n.d(t,"s",function(){return S}),n.d(t,"t",function(){return M}),n.d(t,"u",function(){return D})
;var i="account",a="activity",r="backgroundGeneratorState",o="backgroundProcessingQueue",s="grabber.device",l="log",c="playing",u="preference",d="progress",p="provider.change",h="provider.content.change",f="provider.subscription.change",v="reachability",g="status",m="syncState",y="timeline",b="transcodeSession.end",I="transcodeSession.start",S="transcodeSession.update",M="update.statechange",D="versionState"},function(e,t,n){"use strict";function i(e){switch(e){case 0:
return Object(a.default)("Error");case 1:return Object(a.default)("Warning");case 2:return Object(a.default)("Info");case 3:return Object(a.default)("Debug");case 4:return Object(a.default)("Verbose");default:return Object(a.default)("Unknown")}}var a=n(3);t.a=i},function(e,t,n){"use strict";function i(e){return Object(a.a)(e,function(e){return e.uuid},function(){return!0})}var a=n(3163);t.a=i},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(18),c=n(3),u=n(96),d=n(3182),p=n.n(d),h=u.a.extend({name:"channelSettingsModal",className:"channel-settings-modal modal fade",template:p.a,ui:{submitBtn:".submit-btn"},events:o.a.extend({"change input[name]":"onInputChange","change select[name]":"onInputChange","submit #channel-settings-form":"onSubmit"},u.a.prototype.events),initialize:function(){u.a.prototype.initialize.apply(this,arguments),this.changes={}},serializeData:function(){
var e=this.model.get("title")||this.model.get("name");return{title:e||"Preferences...",settings:this.collection.toJSON()}},onInputChange:function(e){var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked),this.changes[t.name]=n},onSubmit:function(e){if(e.preventDefault(),o.a.isEmpty(this.changes))return void this.hide();var t=this.ui.submitBtn;if(!t.hasClass("active")){t.addClass("active")
;var n=this.collection.first(),i=n.getSaveParams(this.changes),r=o.a.result(this.collection,"url"),u=l.join([r,"/set"],i),d=a.a.ajax(n.server.getXHROptions(u));d.done(o.a.bind(function(){this.hide()},this)),d.fail(o.a.bind(function(){s.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem saving these settings.")})},this)),d.always(function(){t.removeClass("active")})}}});t.a=h},function(e,t,n){"use strict";function i(){return window!==window.top}t.a=i
},function(e,t,n){"use strict";function i(e){return s.a.createElement(d.a,r()({className:h.a.button,kind:l.DEFAULT,size:c.MEDIUM,target:"_blank"},e),Object(u.default)("Claim Server"))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(51),c=n(52),u=n(3),d=n(139),p=n(3201),h=n.n(p);t.a=i},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=(n.n(u),n(11)),p=n(71),h={dispatchRedirectToUrl:p.i},f=function(e){function t(){return a()(this,t),
o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchRedirectToUrl({url:this.props.to})},t.prototype.render=function(){return null},t}(u.Component);t.a=Object(d.connect)(null,h)(f)},function(e,t,n){"use strict";function i(e,t){var n=e.match(/(^[^#]+)?/),i=n[1];return""+(i=i||"")+t}t.a=i},function(e,t,n){"use strict";function i(){return r()(l.a,{title:Object(s.default)("No soup for you!"),
description:Object(s.default)("You do not have access to this server")})}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(3)),l=n(127);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.friendlyName;return r()(c.a,{title:t?Object(l.default)('The server "{serverName}" is unavailable',{serverName:t}):Object(l.default)("This server is unavailable"),description:Object(l.default)("Plex will automatically try to reconnect to this server")})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(3)),c=n(127);t.a=i},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(s.a)(),function(e){return{friendlyName:e.friendlyName}})}function a(e){return{onReloadHttpPress:function(t){e(Object(l.g)())},onReloadHttpAlwaysPress:function(t){e(Object(l.f)()),e(Object(l.g)())}}}var r=n(11),o=n(4),s=(n.n(o),n(35)),l=n(71),c=n(3254);t.a=Object(r.connect)(i,a)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.friendlyName;return r()(u.a,{
title:Object(l.default)('The server "{serverName}" is installing an update',{serverName:t}),description:Object(l.default)("Grab a cup of tea. This may take a couple of minutes.")},void 0,d)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(31),u=n(85),d=r()(c.a,{});t.a=i},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(161)),r=n(162),o=Object(a.a)(Object(i.createSelector)(r.a,function(e){return e.entitlements.reduce(function(e,t){return e[t.id]=!0,e},{})}),function(e){return e})
;t.a=o},function(e,t,n){"use strict";function i(e){var t=e.className;return l.a.createElement(c.a,r()({className:t,autoScroll:!0},e))}var a=n(6),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(80),u=n(3264),d=n.n(u);i.defaultProps={className:d.a.scroller},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.activeConnection,n=!1,i=void 0
;return e.isConnected&&t?i=e.isCloudSyncServer?Object(a.default)("Cloud"):e.isOutOfDate?Object(a.default)("Needs Update"):t.relay?Object(a.default)("Indirect"):t.isPrivate?Object(a.default)("Nearby"):Object(a.default)("Remote"):e.isRelayed?i=Object(a.default)("Indirect"):e.isUnavailable?i=Object(a.default)("Unavailable"):e.isUnauthorized?i=Object(a.default)("Unauthorized"):(n=!0,i=Object(a.default)("Connecting")),{isConnecting:n,status:i,statusWithSource:e.sourceTitle?i+" ("+e.sourceTitle+")":i}
}var a=n(3);t.a=i},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({spinnerComponent:c.a},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(3274),c=n(31);t.a=i},function(e,t,n){"use strict";function i(e){return!0}function a(e,t){return Object(o.createSelector)(d.a,Object(u.a)(),function(n,i){return i?i.reduce(function(i,a){var r=n[a];return r&&t(r)&&l.a.findWhere(r.features,{type:e})&&i.push(a),i},[]):[]})}function r(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Object(c.a)(a(e,t),function(e){return e})}t.a=r;var o=n(4),s=(n.n(o),n(10)),l=n.n(s),c=n(161),u=n(934),d=n(136)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.headerClassName,i=e.children,a=e.title,o=e.icon,s=e.onRef;return l.a.createElement("div",{className:t,role:"navigation",ref:s},r()("div",{className:u.a.sidebarListHeaderContainer},void 0,r()("div",{className:n,role:"header"},void 0,a),o&&r()("div",{
className:u.a.sidebarListHeaderIcon},void 0,o)),i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(3280),u=n.n(c);i.defaultProps={headerClassName:u.a.sidebarListHeader},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3281)),c=n.n(l);i.defaultProps={className:c.a.sidebarListItem},t.a=i},function(e,t,n){"use strict";function i(e){
return s.a.createElement(l.a,r()({},e,{iconComponent:c.a}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(3282),c=n(26);t.a=i},function(e,t,n){"use strict";function i(e,t,n,i,a){if(e&&t&&t.isLibraryProvider){var l={},c=encodeURIComponent(e.machineIdentifier);if(n){var u="/"===String(n).charAt(0);l.key=u?n:"/library/sections/"+n}var d=e.ownerFeatures&&-1!==e.ownerFeatures.indexOf("photos-v5"),p=i===s.c&&d?"albums":"playlists";return o.join("#!/server/"+c+"/"+p,r()({},l,a))}}t.a=i
;var a=n(6),r=n.n(a),o=n(18),s=n(63)},function(e,t,n){var i=n(3343).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";var i=n(3348),a=n(472),r=n.n(a),o=i.a.extend({className:"container",template:r.a});t.a=o},function(e,t,n){"use strict";function i(e){var t=a.parseUrl(e),n=/^\/playQueues\/([^\/?]+)/.exec(t.pathname||t.href);return n?n[1]:void 0}t.a=i;var a=n(18)},function(e,t,n){"use strict";function i(e,t){
return e===a.d||e===a.a||e===a.i||e===a.j||e===a.b&&t[r.g]||e===a.k&&t[r.q]||e===a.l&&t[r.q]}var a=n(41),r=n(79);t.a=i},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(3),c=r.a.Layout.extend({events:{"click .edit-lock-addon":"onLockClick","keyup .lockable-field:not(.selectized)":"onLockableFieldChange","change .lockable-field:not(.selectized)":"onLockableFieldChange"},ui:{form:".edit-metadata-form"},serializeData:function(){var e=this.model.get("lockedFields"),t={}
;e&&e.each(function(e){t[e.get("name")]=e.get("locked")});var n=this.model.toJSON(),i=this.model.get("mixedFields"),a={originallyAvailableAt:Object(l.default)("YYYY-MM-DD"),capturedTime:"YYYY-MM-DD HH:mm:ss"};return i&&i.forEach(function(e){a[e]=Object(l.default)("MIXED")}),{item:n,locked:t,placeholders:a,canReparent:this.canReparent,canEditSimilarArtists:this.canEditSimilarArtists,disableIndices:!this.canReparent}},flushChanges:function(){},getLockedFieldsArray:function(){
var e=this.ui.form,t=this.model.get("lockedFields").reduce(function(e,t){return e[t.get("name")]=t.get("locked"),e},{});return e.find(".edit-lock-addon").each(function(e,n){var i=a()(n),r=i.data("field");i.hasClass("locked")?t[r]=!0:r in t&&(t[r]=!1)}),s.a.map(t,function(e,t){return{name:t,locked:e}})},onLockClick:function(e){e.preventDefault(),a()(e.currentTarget).hasClass("disabled")||a()(e.currentTarget).toggleClass("locked")},onLockableFieldChange:function(e){
var t=e instanceof a.a?e:a()(e.currentTarget);if(!e.force){var n=t.data("original-value");if(void 0===n&&(n=t.attr("value")||t.val()),t.data("original-value",n),t.val()===n)return}t.siblings(".edit-lock-addon").addClass("locked")}});t.a=c},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.onMenuClose,a=s()(e,["target","isOpen","onMenuClose"]);return r()(d.a,{target:t,isOpen:n,onMenuClose:i},void 0,u.a.createElement(p.a,a))}
var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(3467);i.defaultProps={allowRedirectOnDelete:!1},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(61),m=n(84),y=n(851),b=n(16),I=n(86),S=n(114),M=n(98),D=n(24),C=n(3470),j=n.n(C),P=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onItemSelect=function(e){Object(b.c)("metrics").trackClick(o()({},i.props.metricsProperties,{page:i.props.metricsPage,action:I.P,value:e})),i.props.onItemSelect(e)},i.onCancel=function(){Object(b.c)("metrics").trackClick(o()({},i.props.metricsProperties,{page:i.props.metricsPage,action:I.e})),i.props.onCancel()},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){
var e=this,t=this.props,n=t.children,i=t.isOpen,r=t.metricsPage,o=t.metricsProperties,s=t.title;return a()(S.a,{size:D.e.SMALL,isOpen:i,metricsPage:r,metricsProperties:o,onModalClose:this.onCancel},void 0,a()(M.a,{onModalClose:this.onCancel},void 0,a()(m.a,{},void 0,s),a()(g.a,{innerClassName:j.a.listModalInnerBody},void 0,Object(y.a)(n,function(t){return v.a.cloneElement(t,{onSelect:e.onItemSelect})}))))},t}(f.Component);t.a=P},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(20),m=n(3471),y=n.n(m),b=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){var t=i.props,n=t.value,a=t.onSelect,r=t.onPress;a&&a(n),r&&r(e)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=(e.value,
e.onSelect,o()(e,["value","onSelect"]));return v.a.createElement(g.a,a()({},t,{onPress:this.onPress}))},t}(f.Component);b.defaultProps={className:y.a.listModalItem},t.a=b},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{title:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).title}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(565);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(o.a)(),function(){return{addedAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).addedAt}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3497);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{skipChildren:e.skipChildren,childCount:e.childCount,leafCount:e.leafCount}})}var a=n(11),r=n(4),o=(n.n(r),
n(21)),s=n(3500);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metricsContext},s.a,o.a,Object(r.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};return e&&(a.context=e),{skipParent:i.skipParent,parentTitle:i.parentTitle,parentRoute:Object(c.a)(t,n,i.parentKey,a),grandparentTitle:i.originalTitle||i.grandparentTitle,grandparentRoute:Object(c.a)(t,n,i.grandparentKey,a)}})}
var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(58),c=n(137),u=n(3501);t.a=Object(l.a)(i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.playButtonClassName,i=e.playCircleClassName,a=e.serverEntityID,o=e.providerEntityID,s=e.imageWidth,p=e.imageHeight,f=e.imageUrl,v=e.title,g=e.isLiveTVItem,m=e.recordLink,y=e.onRecordPress,b=e.onPlayPress;return r()(u.a,{className:t,serverEntityID:a,providerEntityID:o,component:d.a,width:s,height:p,url:f},void 0,g?r()(c.a,{
className:h.a.recordButton,"data-qa-id":"metadataPosterRecordButton",circleClassName:h.a.recordCircle,tabIndex:"-1",title:v,to:m,onPress:y}):r()(l.a,{className:n,"data-qa-id":"metadataPosterPlayButton",circleClassName:i,tabIndex:"-1",title:v,onPress:b}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(222)),c=n(705),u=n(327),d=n(236),p=n(3507),h=n.n(p);i.defaultProps={className:h.a.card,playButtonClassName:h.a.playButton,playCircleClassName:h.a.playCircle,isLiveTVItem:!1},t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.imageWidth,i=e.imageHeight,a=e.imageUrl,o=e.tagType,l=s()(e,["className","imageWidth","imageHeight","imageUrl","tagType"]),c=d.a.get(o),f=!!c&&c.isPerson;return u.a.createElement(p.a,r()({className:(t||"")+" "+(f&&v.a.isPerson||""||""),component:h.a,width:n,height:i,url:a,tagType:o},l))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(474),p=n(327),h=n(3510),f=n(3513),v=n.n(f);i.defaultProps={
className:v.a.card},t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),a=n(706),r=i.a.extend({name:"MediaGrabOperationCollection",context:["server","provider"],model:a.a,comparator:function(e){var t=e.get("mediaItem");if(t){return t.beginsAt-(t.startOffsetSeconds||0)}}});t.default=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.playQueueItems});t.a=r},function(e,t,n){"use strict"
;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="audio",a="video"},function(e,t,n){"use strict";function i(e){var t=e.get("playQueue");if(t){var n=t.get("currentIndex");return Object(a.a)(e,n)}}t.a=i;var a=n(198)},function(e,t,n){"use strict";var i=n(505),a=Object(i.a)();t.a=a},function(e,t,n){"use strict";function i(e){return e.get("isOpen")?e.get("hasError")?a.b:e.get("isPaused")?a.c:e.get("isBuffering")?a.a:a.d:a.e}t.a=i;var a=n(709)},function(e,t,n){"use strict"
;function i(){return Object(a.createSelector)(Object(o.a)("mediaIndex"),Object(s.a)(),r.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],n=arguments[2];if(t&&t.metadataItem){return n[t.metadataItem].Media[e]}})}var a=n(4),r=(n.n(a),n(108)),o=n(153),s=n(142);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s});var i=n(1),a=n.n(i),r="bottom-left",o="top-left",s="none"
;a.a.oneOf([r,o,s])},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),r.a,function(e,t){return e&&e.timeline?e.timeline.map(function(e){return t[e]}):[]})}t.a=i;var a=n(4),r=(n.n(a),n(108)),o=n(205)},function(e,t,n){"use strict";function i(e){var t=e.component,n=s()(e,["component"]);return u.a.createElement(t,r()({},n,{type:d.b,allowRecycleElement:!0}))}n.d(t,"a",function(){return f});var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(982),p=n(1500),h=n(1502);i.defaultProps={component:h.a};var f=i;t.b=Object(p.a)(i)},function(e,t,n){"use strict";function i(e){function t(t){var n=t.positionSeconds,i=t.positionMilliseconds,a=s()(t,["positionSeconds","positionMilliseconds"]),o=i;if(null!=n){Math.abs(n-Math.floor(i/1e3))>1&&(o=1e3*n)}return u.a.createElement(e,r()({positionSeconds:n,positionMilliseconds:o},a))}var n=Object(p.createSelector)(function(e){return e.positionMilliseconds},function(e){return{
positionMilliseconds:e}});return t.displayName="WithPositionMilliseconds("+Object(h.a)(e)+")",t.WrappedComponent=e,Object(d.connect)(n,null,null,{storeKey:"playerStore"})(t)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(11),p=n(4),h=(n.n(p),n(190));t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="directory"},function(e,t,n){"use strict";function i(e){var t=e.cellWidth,n=e.aspectRatio,i=e.titleHeight,a=void 0===i?0:i;return Math.floor(t/n+a)}
t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"c",function(){return h});var i,a=n(6),r=n.n(a),o=n(40),s=n(212),l=n(198),c=n(36),u="ui/player/playerControls/togglePlayerOpenState",d=(Object(o.a)(u),Object(o.a)(u,function(e){return r()({},e,{openState:s.a})})),p=Object(o.a)(u,function(e){return r()({},e,{openState:s.b})}),h=(i={},i[u]=function(e,t){var n=t.playerType,i=t.openState,a=Object(l.c)(e,n);Object(c.a)(function(){a.set({
previousOpenState:void 0,openState:i,isSettingsVisible:!1,isChaptersVisible:!1,isPlayQueueVisible:!1,isLyricsVisible:!1})})},i)},function(e,t,n){"use strict";function i(e){var t=e.label,n=e.children,i=e.isDisabled;return r()("div",{className:(c.a.row||"")+" "+(i&&c.a.isDisabled||""||"")},void 0,r()("div",{className:c.a.label},void 0,t),r()("div",{className:c.a.cell},void 0,n))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3644)),c=n.n(l);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3649)),c=n.n(l);i.defaultProps={className:c.a.container},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.durationSeconds,i=e.hasLiveTVProtocol,a=e.isMiniPlayer,o=e.isMusic,b=e.isVideo,S=e.metadataItemEntityID,M=e.playerType,D=e.positionSeconds,C=e.providerEntityID,j=e.serverEntityID,P=e.volume,O=e.activateChaptersButton,T=e.activateLyricsButton,E=e.activatePhotoInformationButton,w=e.activatePhotoStripButton,A=e.activateQueueButton,x=e.activateRepeatButton,N=e.activateRepeatOneButton,L=e.activateSettingsButton,k=e.activateShuffleButton,R=e.disableCloseButton,z=e.disableLyricsButton,U=e.disableMenuButton,B=e.disableNextButton,F=e.disablePauseButton,_=e.disablePlayButton,V=e.disablePreviousButton,H=e.disableQueueButton,Q=e.disableRepeatButton,Y=e.disableRepeatOneButton,G=e.disableSettingsButton,W=e.disableShuffleButton,K=e.disableSkipBackButton,Z=e.disableSkipForwardButton,q=e.showChaptersButton,J=e.showCloseButton,X=e.showDuration,$=e.showEditButton,ee=e.showFavoriteButton,te=e.showLyricsButton,ne=e.showMenuButton,ie=e.showNextButton,ae=e.showPauseButton,re=e.showPhotoInformationButton,oe=e.showPhotoStripButton,se=e.showPlayButton,le=e.showPreviousButton,ce=e.showQueueButton,ue=e.showRecordButton,de=e.showRepeatButton,pe=e.showRepeatOneButton,he=e.showSettingsButton,fe=e.showShuffleButton,ve=e.showSkipBackButton,ge=e.showSkipForwardButton,me=e.showUnfavoriteButton,ye=e.showVolume,be=e.onChaptersPress,Ie=e.onClosePress,Se=e.onControlsMenuChange,Me=e.onEditPress,De=e.onFavoritePress,Ce=e.onLyricsPress,je=e.onNextPress,Pe=e.onPausePress,Oe=e.onPhotoInformationPress,Te=e.onPhotoStripPress,Ee=e.onPlayPress,we=e.onPreviousPress,Ae=e.onQueuePress,xe=e.onRepeatOnePress,Ne=e.onRepeatPress,Le=e.onSettingsPress,ke=e.onShufflePress,Re=e.onSkipBackPress,ze=e.onSkipForwardPress,Ue=e.onUnfavoritePress,Be=e.onVolumeChange,Fe=e.onVolumeIconPress,_e=void 0
;_e=M===l.b?y.a:i?d.a:u.a;var Ve=ye&&null!=P,He=i?null:I.a.balanceLeft,Qe=b?I.a.hasLandscapePoster:I.a.hasSquarePoster;return r()(s.Fragment,{},void 0,r()("div",{className:(t||"")+" "+(a&&Qe||""||""),"data-qa-id":"playerControlsContainer"},void 0,r()("div",{className:I.a.buttonGroupLeft},void 0,a?r()(h.a,{playerType:M,isVideo:b,isMusic:o}):null,r()(_e,{metadataItemEntityID:S,playerType:M,positionSeconds:D,durationSeconds:n,showDuration:X,showStarRating:o})),r()("div",{
className:(I.a.buttonGroupCenter||"")+" "+(He||"")},void 0,ue?r()(p.a,{playerType:M,"data-qa-id":"recordButton",serverEntityID:j,providerEntityID:C,positionSeconds:D}):null,le?r()(v.a,{icon:"plex-icon-player-previous-track-560","data-qa-id":"previousButton",isDisabled:V,title:Object(c.default)("Previous"),onPress:we}):null,ve?r()(v.a,{icon:"plex-icon-player-skip-back-560","data-qa-id":"skipBackButton",isDisabled:K,title:Object(c.default)("Skip Back 10 Seconds"),onPress:Re}):null,se?r()(v.a,{
icon:"plex-icon-player-play-560","data-qa-id":"resumeButton",isPrimary:!0,isDisabled:_,title:Object(c.default)("Play"),onPress:Ee}):null,ae?r()(v.a,{icon:"plex-icon-player-pause-560","data-qa-id":"pauseButton",isPrimary:!0,isDisabled:F,title:Object(c.default)("Pause"),onPress:Pe}):null,ge?r()(v.a,{icon:"plex-icon-player-skip-forward-560","data-qa-id":"skipForwardButton",isDisabled:Z,title:Object(c.default)("Skip Forward 30 Seconds"),onPress:ze}):null,ie?r()(v.a,{
icon:"plex-icon-player-next-track-560","data-qa-id":"nextButton",isDisabled:B,title:Object(c.default)("Next"),onPress:je}):null,J?r()(v.a,{"data-qa-id":"closeButton",isDisabled:R,icon:"plex-icon-player-stop-560",title:Object(c.default)("Close Player"),onPress:Ie}):null),r()("div",{className:I.a.buttonGroupRight},void 0,ne?r()(f.a,{serverEntityID:j,"data-qa-id":"moreButton",providerEntityID:C,metadataItemEntityID:S,isDisabled:U,onMenuChange:Se}):null,de?r()(v.a,{
icon:"plex-icon-player-repeat-560","data-qa-id":"repeatButton",isDisabled:Q,isActive:x,title:Object(c.default)("Repeat"),onPress:Ne}):null,pe?r()(v.a,{icon:"plex-icon-player-repeat-one-560","data-qa-id":"repeatOneButton",isDisabled:Y,isActive:N,title:Object(c.default)("Repeat One"),onPress:xe}):null,fe?r()(v.a,{icon:"plex-icon-player-shuffle-560","data-qa-id":"shuffleButton",isDisabled:W,isActive:k,title:Object(c.default)("Shuffle"),onPress:ke}):null,$?r()(v.a,{icon:"plex-icon-player-edit-560",
"data-qa-id":"playerEditButton",title:Object(c.default)("Edit"),onPress:Me}):null,ee?r()(v.a,{icon:"plex-icon-player-favorite-empty-560","data-qa-id":"playerFavoriteButton",title:Object(c.default)("Add to Favorites"),onPress:De}):null,me?r()(v.a,{icon:"plex-icon-player-favorite-filled-560","data-qa-id":"playerUnfavoriteButton",title:Object(c.default)("Remove from Favorites"),onPress:Ue}):null,re?r()(v.a,{icon:"plex-icon-player-info-560","data-qa-id":"playerPhotoInfoButton",
title:Object(c.default)("Information"),isActive:E,onPress:Oe}):null,oe?r()(v.a,{icon:"plex-icon-player-thumbnails-560","data-qa-id":"playerPhotoStripButton",isActive:w,title:Object(c.default)("Show Photo Strip"),onPress:Te}):null,te?r()(v.a,{icon:"plex-icon-player-lyrics-560","data-qa-id":"lyricsButton",isDisabled:z,isSelected:T,title:Object(c.default)("Lyrics"),onPress:Ce}):null,he?r()(v.a,{icon:"plex-icon-player-settings-560","data-qa-id":"videoSettingsButton",isDisabled:G,isActive:L,
title:Object(c.default)("Settings"),onPress:Le}):null,q?r()(v.a,{icon:"plex-icon-player-chapters-560","data-qa-id":"chaptersButton",isActive:O,title:Object(c.default)("Chapters"),onPress:be}):null,ce?r()(v.a,{icon:"plex-icon-player-queue-560","data-qa-id":"playQueueButton",isDisabled:H,isActive:A,title:Object(c.default)("Play Queue"),onPress:Ae}):null,Ve?r()(g.a,{className:I.a.volumeButton,"data-qa-id":"volumeButton",volume:P,onPress:Fe,onVolumeChange:Be}):null)),Ve?r()(m.a,{
className:I.a.volumeSlider,volume:P,onVolumeChange:Be}):null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(107)),c=n(3),u=n(1528),d=n(3699),p=n(3700),h=n(3732),f=n(3749),v=n(479),g=n(3751),m=n(3755),y=n(3759),b=n(3762),I=n.n(b);i.defaultProps={className:I.a.controls,isMusic:!1,isVideo:!1,isPhoto:!1},t.a=i},function(e,t,n){var i=n(432),a=n(530);e.exports=i({},a,{starSpeed:"0.3s",starPulseScale:1.35,starPulseSpeed:"0.15s",starPulseTimingFunction:"cubic-bezier(0.075, 0.82, 0.165, 1)",
posterFlipSpeed:"0.8s",overlaySpeed:"0.3s",chartOpacitySpeed:"0.3s"})},,,function(e,t,n){"use strict";function i(e){var t=[Object(l.default)("January"),Object(l.default)("February"),Object(l.default)("March"),Object(l.default)("April"),Object(l.default)("May"),Object(l.default)("June"),Object(l.default)("July"),Object(l.default)("August"),Object(l.default)("September"),Object(l.default)("October"),Object(l.default)("November"),Object(l.default)("December")],n=t[e];return n}function a(e){
var t=[Object(l.default)("Jan"),Object(l.default)("Feb"),Object(l.default)("Mar"),Object(l.default)("Apr"),Object(l.default)("May"),Object(l.default)("Jun"),Object(l.default)("Jul"),Object(l.default)("Aug"),Object(l.default)("Sep"),Object(l.default)("Oct"),Object(l.default)("Nov"),Object(l.default)("Dec")],n=t[e];return n}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.abbreviate,r=void 0!==n&&n;if(!e)return"";var l=Object(s.a)(Object(o.a)(e));return r?a(l):i(l)
}var o=n(81),s=n(512),l=(n(37),n(3));t.a=r},,,function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(r.a)(),Object(s.a)(),function(e,t,n){if(null!=e&&t&&n){return t.Media.find(function(t){var i=t.beginsAt,a=t.endsAt,r=t.channelIdentifier;return i<=e&&a>e&&n.channelIdentifier===r})}})}t.a=i;var a=n(4),r=(n.n(a),n(714)),o=n(715),s=n(205)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{
leafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).leafCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(704);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.title,a=e.index,o=e.route,s=e.parentTitle,l=e.parentIndex,p=e.parentRoute,h=e.originallyAvailableAt;return r()("span",{className:t},void 0,r()(u.a,{tabIndex:n,title:i,index:a,route:o,parentTitle:s,parentIndex:l,parentRoute:p,originallyAvailableAt:h
}),i&&d,i&&r()(c.a,{tabIndex:n,title:i,route:o}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(477),u=n(1546),d=r()(l.b,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.duration,i=e.viewOffset,a=void 0;if(n&&i){var o=(n-i)/1e3;o&&(a=Object(l.a)(o))}return r()("span",{className:t},void 0,a)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(370));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.duration;return n?r()("span",{
className:t},void 0,Object(l.a)(n)):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(310));t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metricsContext},s.a,o.a,Object(r.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};e&&(a.context=e);var r=i.skipParent&&i.subtype===l.c;return{title:i.title,index:i.index,route:Object(u.a)(t,n,i.key,a),parentTitle:i.parentTitle,
parentIndex:r?null:i.parentIndex,parentRoute:i.skipParent?null:Object(u.a)(t,n,i.parentKey,a),originallyAvailableAt:i.originallyAvailableAt}})}var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(106),c=n(58),u=n(137),d=n(1546);t.a=Object(c.a)(i)(d.a)},function(e,t,n){"use strict";function i(e){if(!e)return"";var t=e.indexOf("/");return-1!==t?e.substr(t+1):e}t.a=i},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{rating:e.rating,ratingImage:e.ratingImage,audienceRating:e.audienceRating,audienceRatingImage:e.audienceRatingImage}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3690);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.mediaSubscriptions});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.grandparentTitle
;return r()(l.a,{className:t,title:n})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(565));t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(638),b=n(1195),I=n(1196),S=n(369),M=n(389),D=n(3765),C=n(3769),j=n.n(C),P=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onChange=function(e){var t=e.positionValue
;a.props.onSeek&&a.props.onSeek({playerType:a.props.playerType,positionSeconds:Math.floor(t/1e3)})},a.onMove=function(e){var t=e.positionValue,n=e.position;a.setState({hoverValue:t,portalPosition:n})},a.onMouseLeave=function(){a.setState({hoverValue:null})},a.state={hoverValue:null,portalPosition:{x:0,y:0}},a}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.trackClassName,i=e.bufferClassName,r=e.fillClassName,s=e.canSeek,c=e.positionMilliseconds,u=e.offsetMilliseconds,d=e.durationMilliseconds,p=e.bufferStartMilliseconds,h=e.bufferEndMilliseconds,f=e.showBuffer,v=e.noFillTransition,g=e.isDisabled,b=l()(e,["className","trackClassName","bufferClassName","fillClassName","canSeek","positionMilliseconds","offsetMilliseconds","durationMilliseconds","bufferStartMilliseconds","bufferEndMilliseconds","showBuffer","noFillTransition","isDisabled"])
;if(!s)return null;var I=this.state,S=I.hoverValue,C=I.portalPosition;return o()("div",{onMouseLeave:this.onMouseLeave},void 0,o()(M.a,{className:t,trackClassName:n,secondaryFillClassName:(i||"")+" "+(v&&j.a.noFillTransition||""||""),fillClassName:(r||"")+" "+(v&&j.a.noFillTransition||""||""),value:c,min:u,max:d,secondaryMin:p,secondaryMax:h,showFill:!0,showSecondaryFill:f,autoHideThumb:!0,isDisabled:g,onChange:this.onChange,onMove:g?null:this.onMove
}),o()(y.a,{},void 0,m.a.createElement(D.a,a()({},b,{position:C,hoverValue:S,isVisible:null!=S}))))},t}(g.Component);P.defaultProps={className:j.a.seekBar,trackClassName:j.a.seekBarTrack,fillClassName:j.a.seekBarFill,bufferClassName:j.a.seekBarBuffer,canSeek:!0,showBuffer:!1,noFillTransition:Object(b.a)()||Object(I.a)()||Object(S.a)(),isDisabled:!1},t.a=P},function(e,t,n){"use strict";function i(e,t){var n=-1*t+1,i=n/30+o,a=e*i;return Math.max(Math.min(a,l+30*n),s)}
var a=n(46),r=n.n(a),o=parseFloat(r.a.prePlayPosterWidthRatio,10),s=parseInt(r.a.prePlayPosterMinWidth,10),l=parseInt(r.a.prePlayPosterMaxWidth,10);t.a=i},,,,,,,,,,,,,function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.playQueueItemEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(981))},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.sourceDirectory},function(e,t){
return t.listContext},function(e,t){return t.allowSourceTitle},Object(h.a)(),Object(p.a)(),Object(d.a)(),Object(m.a)(),Object(y.a)(),b.a,function(e,t,n,i,a,r,o,s,l){var c=r.hubIdentifier.indexOf("music.video")>-1?g.f:r.type,d=t||Object(f.a)(r.hubIdentifier),p=void 0;if(r.key&&d!==v.a){var h={key:r.key,title:r.title,type:c,subtype:r.subtype,source:r.source,context:r.context};if(l)if(e)p=Object(M.a)(i,a,e,h);else{var m=Object(D.a)("home",i,a);p=u.join(m,h)}else p=Object(S.a)(i,a,h)}return{
metadataListEntityID:r.metadataList||r.directoryList,component:r.metadataList?j.a:C.a,metricsContext:r.context||r.hubIdentifier,hubIdentifier:r.hubIdentifier,title:r.title,sourceTitle:n?o:null,attribution:r.attribution,route:p,style:r.style,size:r.size,more:r.more,random:r.random,containerKey:r.key,listType:c,listSubtype:r.subtype,listContext:d,isHomeHub:s&&l}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),
n(18)),d=n(570),p=n(54),h=n(35),f=n(1597),v=n(33),g=n(223),m=n(3936),y=n(1518),b=n(396),I=n(105),S=n(1029),M=n(731),D=n(581),C=n(3938),j=n(1607),P=n(141),O=Object(l.connect)(i)(P.a);O.propTypes=r()({},O.propTypes,{providerEntityID:s.a.string.isRequired,serverEntityID:s.a.string.isRequired,hubEntityID:s.a.string.isRequired,sourceDirectory:I.a,allowSourceTitle:s.a.bool}),t.a=O},function(e,t,n){"use strict";function i(e,t,n){
var i=n.key,s=n.typeKey,l=n.title,c=n.type,u=n.subtype,d=n.content,p=n.source,h=n.context,f=p?Object(r.b)(p):Object(r.a)(e,t);if(o[i])return o[i](e,t,n);var v=i.match(/\/library\/sections\/(\d+)\/cluster/);return v?a.join(["#!",f,"timeline"],{key:"/library/sections/"+v[1]}):/\/watchnow$/.test(i)?a.join(["#!",f,"guide"]):d?a.join(["#!",f],{key:i,typeKey:s,context:h}):a.join(["#!",f,"list"],{key:i,type:c,subtype:u,title:l,context:h})}t.a=i;var a=n(18),r=n(675),o={
"view://dvr/recording-schedule":function(e,t,n){var i=encodeURIComponent(e.machineIdentifier);return a.join(["#!","server",i,"schedule"])}}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.linkClassName,i=e.server,a=e.provider,o=e.librarySectionKey,s=e.fallbackFilterKey,d=e.type,p=e.tags,h=e.limit;if(!p||!p.length)return null;var f=d&&Object(c.r)(d);return r()("span",{className:t},void 0,p.map(function(e,t){if(!(t>=h)){var c={filters:e.filter,filterLabel:e.tag}
;return!c.filter&&s&&e.id&&(c.filters=s+"="+e.id),f&&(c.type=f.id),e.context&&(c.context=e.context),r()("span",{},t,r()(l.a,{className:n,to:Object(u.a)(i,a,o,c)},void 0,e.tag),t+1<h&&t+1<p.length&&", ")}}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(27),u=(n(99),n(140),n(150)),d=n(3960),p=n.n(d);i.defaultProps={linkClassName:p.a.tagsListLink,limit:1/0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n,
"data-qa-id":"preplayDetailsContainer"},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3961)),c=n.n(l);i.defaultProps={className:c.a.group},t.a=i},function(e,t,n){"use strict";function i(e){return e.get("ui").get("subtitlesModal")}function a(e){return e.get("user").get("profile")}n.d(t,"c",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return I}),n.d(t,"d",function(){return S})
;var r,o=n(13),s=n.n(o),l=n(40),c=n(18),u=n(1614),d=n(188),p=n(125),h=n(260),f=n(116),v=n(250),g=n(70),m=n(3),y=Object(l.a)("ui/subtitlesModal/resetMetadataItemSubtitles"),b=Object(l.a)("ui/subtitlesModal/fetchMetadataItemSubtitles"),I=Object(l.a)("ui/subtitlesModal/downloadMetadataItemSubtitle"),S=(Object(l.a)("ui/subtitlesModal/clearSubtitlesDownloadError"),Object(p.a)((r={},r["ui/subtitlesModal/resetMetadataItemSubtitles"]=function(e){var t=i(e),n=t.get("subtitles");n.abortPendingPopulate(),
n.resetPopulatePromise(null),t.restoreDefaults()},r["ui/subtitlesModal/fetchMetadataItemSubtitles"]=function(e,t,n){var r=i(e),o=a(e),s=Object(g.e)(e,t),l=r.get("subtitles");l&&(l.abortPendingPopulate(),l.resetPopulatePromise(null));var c=new u.a([],{key:s.get("key"),server:s.server,provider:s.provider,language:t.language,title:t.title,mediaItemID:t.mediaItemID,minimumScore:t.minimumScore,hearingImpaired:o.get("defaultSubtitleAccessibility")});r.set({subtitles:c,
metadataItemEntityID:t.metadataItemEntityID,isSubtitlesPending:!0,isSubtitlesPopulated:!1,subtitlesError:null}),c.fetch().then(function(e){r.set({isSubtitlesPending:!1,isSubtitlesPopulated:!0})},function(e,t){if(t.aborting)return void r.set("isSubtitlesPending",!1);r.set({isSubtitlesPending:!1,subtitlesError:Object(v.a)(t,Object(m.default)("Unable to load subtitles"))})})},r["ui/subtitlesModal/downloadMetadataItemSubtitle"]=function(e,t,n){var a=i(e),r=Object(g.e)(e,t),o=r.server,l={key:t.key,
codec:t.codec,language:t.language,hearingImpaired:t.hearingImpaired?1:0,providerTitle:t.providerTitle,mediaItemID:t.mediaItemID,transient:t.transient},u=c.join([r.get("key"),"/subtitles"],l),d=o.getXHROptions(u,{type:"PUT"});a.set({subtitlesDownloadKey:t.key,isSubtitlesDownloaded:!1,subtitlesDownloadError:null}),s.a.ajax(d).then(function(e,t,n){var i=n.getResponseHeader("X-Plex-Activity");a.set("subtitlesDownloadActivityID",i)},function(e){a.set({subtitlesDownloadKey:null,
subtitlesDownloadError:Object(v.a)(e,Object(m.default)("Unable to download subtitles"))})})},r[f.b]=function(e,t,n){var a=t.activity;if(a.type===d.a.SUBTITLE_DOWNLOAD){var r=i(e);if(a.uuid===r.get("subtitlesDownloadActivityID")){var o=r.get("metadataItemEntityID"),s=Object(g.e)(e,{metadataItemEntityID:o}),l=s.server.entityID(),c={subtitlesDownloadActivityID:null,subtitlesDownloadKey:null},u=null!=a.Response.error;u?(c.isSubtitlesDownloaded=!1,
c.subtitlesDownloadError=a.Response.status):c.isSubtitlesDownloaded=!0,r.set(c),u||n(Object(h.d)({serverEntityID:l,metadataItemEntityID:o}))}}},r["ui/subtitlesModal/clearSubtitlesDownloadError"]=function(e){i(e).set("subtitlesDownloadError",null)},r)))},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(Object(c.a)(),Object(u.a)(),Object(p.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];return o()({
duration:e.duration,saved:e.saved,viewCount:e.viewCount,viewOffset:e.viewOffset,type:e.type,subtype:e.subtype,isFileUnavailable:n},t)})}function a(e,t){return{onGetInfoPress:function(n){e(Object(d.getMetadataItemInfo)({metadataItemEntityID:t.metadataItemEntityID}))}}}var r=n(6),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(21)),u=n(3979),d=n(191),p=n(3980),h=n(3981);t.a=Object(s.connect)(i,a)(h.a)},function(e,t,n){"use strict";function i(e){return o.a.createElement(s.a,e)}var a=n(1),r=(n.n(a),
n(0)),o=n.n(r),s=n(42),l=n(24),c=n(3985),u=n.n(c);i.defaultProps={className:u.a.statusButton,size:l.e.SMALL},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.summary;return r()(s.Fragment,{},void 0,r()(d.a,{},void 0,r()(f.a,{},void 0,r()(h.a,{},void 0,r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),r()(g.a,{},void 0,r()(h.a,{},void 0,r()(c.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i})),r()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(y.a,{},void 0,r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),I,r()(d.a,{},void 0,r()(p.a,{dangerouslySetInnerHTML:{__html:a}})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(287)),c=n(329),u=n(144),d=n(109),p=n(163),h=n(118),f=n(156),v=n(292),g=n(241),m=n(1033),y=n(224),b=n(1617),I=r()(u.a,{})
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.type,o=e.Genre;return r()(l.a,{server:t,provider:n,librarySectionKey:i,fallbackFilterKey:"genre",type:a,tags:o,limit:2})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1030));n(99),n(140);t.a=i},function(e,t,n){"use strict";function i(){return!Object(a.a)()}t.a=i;var a=n(369)},function(e,t,n){var i=n(1235).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict"
;var i=n(4),a=(n.n(i),n(10)),r=n.n(a),o=n(4089),s=Object(i.createSelector)(o.a,function(e){return r.a.find(e,function(e){return e.isFullOwnedServer})});t.a=s},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({"data-qa-id":"toolbarAddToAlbum",tooltip:Object(d.default)("Add to Album")},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{name:"plex-icon-toolbar-add-to-album-560"});t.a=i},function(e,t,n){"use strict";function i(e){
return c.a.createElement(u.a,s()({tooltip:Object(d.default)("Add to Playlist"),"data-qa-id":"toolbarPlaylist"},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{name:"plex-icon-toolbar-add-to-playlist-560"});t.a=i},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({tooltip:Object(d.default)("Edit"),"data-qa-id":"toolbarEdit"},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{
name:"plex-icon-toolbar-edit-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.playLabel,n=void 0===t?Object(f.default)("Play"):t,i=c()(e,["playLabel"]);return p.a.createElement(h.a,s()({tooltip:n,"data-qa-id":"toolbarPlay"},i),g)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(128),f=n(3),v=n(26),g=r()(v.a,{name:"plex-icon-toolbar-play-560"});t.a=i},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({
tooltip:Object(d.default)("Shuffle"),"data-qa-id":"toolbarShuffle"},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{name:"plex-icon-toolbar-shuffle-560"});t.a=i},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({tooltip:Object(d.default)("Sync"),"data-qa-id":"toolbarSync"},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{name:"plex-icon-toolbar-sync-560"});t.a=i},function(e,t,n){
"use strict";function i(e){return s.a.createElement(l.a,r()({className:u.a.toolbarMenu},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(56),c=n(4140),u=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e,t){return e.filter(function(e){return!!t[e]})}function a(e,t,n,i){var a=Math.floor(n/i),r={showOverflow:a<e.length||t.length>0},o=a-(r.showOverflow?1:0);return e.forEach(function(e){r[e]=o-- >0,r[e]||(r[e+"Overflow"]=!0)}),r}function r(e,t,n){var r=function(r){function o(e,t){d()(this,o)
;var n=h()(this,r.call(this,e,t));return n.onMeasure=function(e){var t=e.width;n.setState({isMeasured:!0,width:t})},n.state={isMeasured:!1},n}return v()(o,r),o.prototype.render=function(){var r=this.state,o=r.isMeasured,l=r.width,u={};if(o){u=a(i(t,this.props),i(n,this.props),l,C)}return c()(y.a,{className:D.a.toolbarContainer,ignoreHeight:!0,ignorePosition:!0,onMeasure:this.onMeasure},void 0,o&&m.a.createElement(e,s()({className:D.a.toolbar},this.props,u)))},o}(g.Component)
;return r.displayName="PageHeaderToolbar("+Object(b.a)(e)+")",r.WrappedComponent=e,r}var o=n(6),s=n.n(o),l=n(2),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(0),m=n.n(g),y=n(67),b=n(190),I=n(46),S=n.n(I),M=n(4141),D=n.n(M),C=parseInt(S.a.toolbarButtonWidth,10);t.a=r},function(e,t,n){"use strict";function i(e){return e===u.i?o()({},m,{outerPaddingTop:10,outerPaddingRight:v,outerPaddingBottom:5,outerPaddingLeft:v}):m}function a(e,t,n){
var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=e+(t||"")+n+a+r;if(g.hasOwnProperty(u))return g[u];var p=Object(d.c)(e,t,n),h=Object(f.a)({type:e,aspectRatio:p,titleCount:r,context:n}),v=h.titleHeight,m=h.minCellWidth,y=h.preferredCellWidth,b=h.minColumns,I=h.maxColumns,S=i(n),M=Object(s.c)(o()({direction:s.b},S,{getCellWidth:function(e){return Object(c.a)(o()({},e,{preferredCellWidth:y,minCellWidth:m,minColumns:b,
maxColumns:I,columnAdjustment:a,aspectRatio:p}))},getCellHeight:function(e){return Object(l.a)(o()({},e,{aspectRatio:p,titleHeight:v}))}}));return M.cellOptions={minCellWidth:m,minColumns:b,maxColumns:I,columnAdjustment:a,aspectRatio:p,titleHeight:v},g[u]=M,M}t.a=a;var r=n(6),o=n.n(r),s=n(456),l=n(992),c=n(712),u=n(33),d=n(130),p=n(46),h=n.n(p),f=n(1602),v=parseInt(h.a.prePlayContentPadding,10),g={},m={innerHorizontalPadding:30,innerVerticalPadding:30,outerPaddingTop:30,outerPaddingRight:60,
outerPaddingBottom:30,outerPaddingLeft:60}},function(e,t,n){"use strict";function i(e,t){return t[e.playQueueItems[e.currentIndex]].metadataItem}function a(){return Object(r.createSelector)(function(e){return e.ui.audioVideoPlayer},function(e){return e.ui.photoPlayer},function(e,t){return t.metadataItemEntityID},o.a,function(e,t,n,a){if(!n)return!1;var r=void 0,o=void 0;return e.playQueue&&(r=i(e.playQueue,a)),t.playQueue&&(o=i(t.playQueue,a)),r===n||o===n})}t.a=a;var r=n(4),o=(n.n(r),n(981))
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.index;return null==n?null:r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";var i=n(392),a=n(46),r=n.n(a),o=parseInt(r.a.tableRowHeight,10),s=Object(i.a)(o);t.a=s},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.containerTitle,l=e.activeSort,c=e.listType,g=e.listSubtype,m=e.listContext,y=e.columnAdjustment,b=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","activeSort","listType","listSubtype","listContext","columnAdjustment"]),I=Object(f.b)(c,m,{providerEntityID:n,subtype:g,activeSort:l});return u.a.createElement(d.a,r()({listType:c,listContext:m,
layout:Object(p.a)(c,g,m,y,I.length),cellRenderer:Object(h.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:c,listSubtype:g,listContext:m,titleComponents:I,containerKey:a,containerTitle:o},v.a)},b))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(216),p=(n(33),n(1048)),h=n(155),f=n(207),v=n(734);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.get("key");return e.get("id")||t.substr(t.lastIndexOf("/")+1)}n.d(t,"a",function(){return j}),
n.d(t,"c",function(){return P}),n.d(t,"f",function(){return O}),n.d(t,"d",function(){return T}),n.d(t,"b",function(){return E}),n.d(t,"e",function(){return w})
;var a,r=n(6),o=n.n(r),s=n(13),l=n.n(s),c=n(40),u=n(19),d=n(18),p=n(16),h=n(94),f=n(64),v=n(304),g=n(116),m=n(86),y=n(138),b=n(70),I=n(36),S=n(171),M=n(937),D=n(559),C=n(137),j=Object(c.a)("provider/addToCatalog"),P=Object(c.a)("provider/clearAddToCatalogError"),O=Object(c.a)("provider/scanLibraryFiles"),T=Object(c.a)("provider/editLibrary"),E=Object(c.a)("provider/scanLibraryFiles",function(e){return o()({},e,{cancel:!0})}),w=o()({},v.e,(a={},a["provider/clearAddToCatalogError"]=function(e,t){
e.get("ui").get("addToCatalogModal").set("error",null)},a["provider/addToCatalog"]=function(e,t,n){var i=e.get("ui").get("addToCatalogModal"),a=Object(b.i)(e,t),r=a.get("features").get("actions").get("actions").get("addToCatalog"),o=r.get("key");if(Object(I.a)(function(){i.set({isUpdating:!0,error:null})}),t.data.fileURL){var s=new window.XMLHttpRequest;return s.open("GET",t.data.fileURL,!0),s.responseType="blob",s.onload=function(e){if(200===e.target.status){
var n=e.target.response,r=new window.FormData;r.append("file",n);var s=a.getXHROptions(o,{method:"POST",processData:!1,contentType:!1,data:r});l.a.ajax(s).then(function(e,t,n){i.set({isUpdating:!1})},function(e){i.set({isUpdating:!1,error:Object(S.a)(e)})})}window.URL.revokeObjectURL(t.data.fileURL)},void s.send()}var c=d.join(o,{url:t.data.channelURL}),u=a.getXHROptions(c,{method:"PUT",dataType:"json"});l.a.ajax(u).then(function(e,t,n){i.set("isUpdating",!1);var r=new h.a(e,{server:a.server,
provider:a,parse:!0});if(!r.get("key"))return void i.set({isUpdating:!1,error:Object(S.a)(n)});var o=Object(C.a)(a.server.state,a.state,r.get("key"));window.location.hash=o},function(e){i.set({isUpdating:!1,error:Object(S.a)(e)})})},a["provider/scanLibraryFiles"]=function(e,t,n){var a=t.cancel,r=t.force,o=t.metricsPage,s=Object(b.k)(e,t),l=Object(b.i)(e,t),c=l.get("features").get(f.b.CONTENT),u=c.get("directories").findWhere(t.contentDirectory),d={libraryID:i(u),libraryType:u.get("type"),
cancel:a,force:r,allowMetrics:!!o,metricsProperties:{page:o}};u.set("refreshing",!a),Object(M.a)(s,d).fail(function(e){u.set("scanFilesError",Object(S.a)(e))}).always(function(e){n(g.q({serverEntityID:t.serverEntityID}))})},a["provider/editLibrary"]=function(e,t){var n=Object(b.k)(e,t),a=Object(b.i)(e,t),r=n.get("pmp").get("libraries"),o=a.get("features").get(f.b.CONTENT),s=o.get("directories").findWhere(t.contentDirectory);r.populate().then(function(){var e=i(s),a=r.get(e)
;u.a.trigger("show:modal",new D.a({server:n,model:a})),Object(p.c)("metrics").trackClick({page:t.metricsPage,action:m.r,type:a.get("type"),context:y.d})})},a))},function(e,t,n){"use strict";function i(e,t){var n=t.isUpdatingPropName,i=t.errorPropName,a=t.clearDirtyOnChangePropName,o=function(t){function o(e,n){s()(this,o);var i=c()(this,t.call(this,e,n));return i.onFormChange=function(e){i.props.onFormChange&&i.props.onFormChange(e),i.state.isDirty||i.setState({isDirty:!0})},i.state={isDirty:!1
},i}return d()(o,t),o.prototype.componentWillReceiveProps=function(e){var t=!1;a&&(t=this.props[a]!==e[a]);var r=this.props[n]&&!e[n]&&null===e[i];this.state.isDirty&&(t||r)&&this.setState({isDirty:!1})},o.prototype.render=function(){return f.a.createElement(e,r()({isDirty:this.state.isDirty},this.props,{onFormChange:this.onFormChange}))},o}(h.Component);return o.displayName="DirtyAware("+Object(v.a)(e)+")",o.WrappedComponent=e,o}
var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(190);n(37);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(128),b=n(3),I=n(26),S=n(1652),M=o()(I.a,{name:"plex-icon-toolbar-add-podcast-560"}),D=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onButtonPress=function(){a.setState({
isModalOpen:!0})},a.onModalClose=function(){a.setState({isModalOpen:!1})},a.state={isModalOpen:!1},a}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.providerEntityID,n=l()(e,["providerEntityID"]);return m.a.createElement(y.a,a()({tooltip:Object(b.default)("Add Podcast by URL"),"data-qa-id":"toolbarAddCustomPodcast",onPress:this.onButtonPress},n),M,o()(S.a,{providerEntityID:t,isOpen:this.state.isModalOpen,onModalClose:this.onModalClose}))},t}(g.Component);t.a=D
},function(e,t,n){"use strict";function i(e,t){var n=Object(o.a)(t,!0);if(!n)return e;var i=e.indexOf("?"),a=e.length;return(e+=i>-1?i<a-1?"&":"":"?")+n}function a(e,t){var n=t.type,a=t.filters,o=t.sort,s=t.limit,l=r.join(e),c={};return n&&(c.type=n),o&&(c.sort=o),s&&(c.limit=s),r.join(i(l,a),c)}t.a=a;var r=n(18),o=n(1657)},function(e,t,n){"use strict";function i(e){function t(e){var t=e.viewportHeight+":"+e.viewportWidth;if(t===j)return P;I=e.viewportHeight,S=e.viewportWidth-(b+v),M=c(S),C=[]
;var n=h;return M.forEach(function(e){C.push(n),n+=e}),D=M.reduce(function(e,t){return e+t},h+m),j=t,P={height:D,width:S}}function n(){Object(o.a)(void 0!==I,"`getListStyle` must be called before `getLandmarks`");var e=I+":"+D;return e===O?T:(O=e,T=C.map(function(e,t){return{index:t,position:e/D}}))}function i(e){return Object(o.a)(void 0!==I,"`getListStyle` must be called before `getPositionForIndex`"),{cellX:b,cellY:C[e],cellWidth:S,cellHeight:M[e]}}function a(){
Object(o.a)(!1,"Stacked layouts do not support relative indexing")}function s(e){var t=r.a.findIndex(C,function(t){return t>e}),n=C.length-1;return-1===t?n:Math.min(Math.max(0,t-1),n)}function l(e){Object(o.a)(void 0!==I,"`getListStyle` must be called before `getPositionForIndex`");var t=e+I-1,n=s(e-d*I),i=s(e),a=s(t);return{renderStartIndex:n,renderEndIndex:s(t+d*I),visibleStartIndex:i,visibleEndIndex:a,partiallyVisibleStartIndex:i,partiallyVisibleEndIndex:a}}
var c=e.getCellHeights,u=e.overscan,d=void 0===u?0:u,p=e.outerPaddingTop,h=void 0===p?0:p,f=e.outerPaddingRight,v=void 0===f?0:f,g=e.outerPaddingBottom,m=void 0===g?0:g,y=e.outerPaddingLeft,b=void 0===y?0:y,I=void 0,S=void 0,M=void 0,D=void 0,C=void 0,j=void 0,P=void 0,O=void 0,T=void 0;return{getListStyle:t,getLandmarks:n,getPositionForIndex:i,getRelativeIndex:a,getRangesForPosition:l}}t.a=i;var a=n(10),r=n.n(a),o=n(37)},function(e,t,n){"use strict";function i(e){var t=e.className
;return r()(l.a,{className:t},void 0,Object(c.default)("New"))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(390)),c=n(3),u=n(4229),d=n.n(u);i.defaultProps={className:d.a.badge},t.a=i},function(e,t,n){"use strict";function i(e){if(!e)return"";var t=e instanceof Date?e:new Date(e);return Object(r.a)(t,new Date)?Object(o.default)("Today"):Object(a.a)(t,"EEEE")}t.a=i;var a=n(170),r=n(276),o=n(3)},,function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),
n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l});var i=n(40),a=n(126),r=Object(i.a)(a.z),o=Object(i.a)(a.n),s=Object(i.a)(a.t),l=Object(i.a)(a.Q)},,function(e,t,n){"use strict";function i(e){var t=e.className,n=e.selectedListStyle,i=e.allListStyles;return Object(c.g)(i,n)?r()(l.a,{className:t}):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(747)),c=n(68);i.defaultProps={selectedListStyle:c.c,allListStyles:[c.c]},t.a=i},function(e,t,n){"use strict";function i(e,t){
return Object(y.i)(e,t).get("features").get(f.b.SETTINGS)}function a(e,t){return i(e,t).get("settings").get(t.settingID)}function r(e,t){switch(e.get("type")){case v.c.LOCATION:var n=e.get("locations").get(t.country);e.set({country:t.country,countryLabel:n.get("title"),postalCode:t.postalCode});break;case v.c.SELECT:d.a.each(t,function(t,n){e.get("options").get(n).set({selected:t})}),e.set("selectedCount",d.a.values(t).filter(function(e){return e}).length);break;default:e.set("value",t[e.id])}}
function o(e,t,n){var i=d.a.mapObject(t,function(e,t){return!0===e?"1":!1===e?"0":e}),a=h.join(d.a.result(e,"url"),{prefs:i}),o=n.getXHROptions(a,{type:"PUT"});return c.a.ajax(o).then(function(){r(e,t)})}n.d(t,"c",function(){return S}),n.d(t,"a",function(){return D}),n.d(t,"f",function(){return j}),n.d(t,"b",function(){return P}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return T})
;var s,l=n(13),c=n.n(l),u=n(10),d=n.n(u),p=n(40),h=n(18),f=n(64),v=n(363),g=n(124),m=n(249),y=n(70),b=n(36),I=n(171),S=Object(p.a)("provider/providerSettings/fetchProviderSettings"),M=Object(p.a)("provider/providerSettings/fetchProviderSettingSelectOptions"),D=Object(p.a)("provider/provderSettings/clearProviderSettingFetchError"),C=(Object(p.a)("provider/providerSettings/fetchProviderSettingLocationOptions"),
Object(p.a)("provider/providerSettings/populateProviderSettingLocationOptions")),j=Object(p.a)("provider/providerSettings/updateProviderSetting"),P=Object(p.a)("provider/providerSettings/clearProviderSettingUpdateError"),O=Object(p.a)("provider/providerSettings/populateProviderSettingOptions"),T=(s={},s["provider/providerSettings/fetchProviderSettings"]=Object(g.a)({key:"settings",getModel:i}),s["provider/providerSettings/fetchProviderSettingSelectOptions"]=Object(g.a)({key:"options",getModel:a
}),s["provider/providerSettings/fetchProviderSettingLocationOptions"]=Object(g.a)({key:"locations",getModel:a}),s["provider/providerSettings/populateProviderSettingLocationOptions"]=Object(m.a)({key:"locations",fetchActionType:"provider/providerSettings/fetchProviderSettingLocationOptions",getModel:a}),s["provider/providerSettings/updateProviderSetting"]=function(e,t){
var n=t.settingID,i=t.values,a=Object(y.i)(e,t),r=a.get("features").get(f.b.SETTINGS),s=e.get("ui").get("providerSettingsPage"),l=r.get("settings").get(n);s.set({isUpdatePending:!0,updateError:null});var u=[];l.get("type")===v.c.GROUP?l.get("settings").forEach(function(e){var t,n=(t={},t[e.id]=i[e.id],t);u.push(o(e,n,a))}):u.push(o(l,i,a)),c.a.when.apply(c.a,u).then(function(){s.set({isUpdatePending:!1,updateError:null})},function(e){s.set({isUpdatePending:!1,updateError:Object(I.a)(e)})})},
s["provider/providerSettings/clearProviderSettingUpdateError"]=function(e,t){e.get("ui").get("providerSettingsPage").set("updateError",null)},s["provider/provderSettings/clearProviderSettingFetchError"]=function(e,t){Object(y.i)(e,t).get("features").get(f.b.SETTINGS).get("settings").get(t.settingID).set({optionsError:null,locationsError:null})},s["provider/providerSettings/populateProviderSettingOptions"]=function(e,t,n){
var i=Object(y.i)(e,t),a=i.get("features"),r=a.get(f.b.SETTINGS),o=r.get("settings").get(t.settingID),s=o.get("type");s===v.c.SELECT&&Object(b.a)(function(){n(M(t))}),s===v.c.LOCATION&&n(C(t))},s)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4384)),c=n.n(l);i.defaultProps={className:c.a.sectionDetails},t.a=i},function(e,t,n){"use strict";function i(e){
return e.get("experienceSettings").get("homeSettings")}function a(e){return e.get("ui").get("homePage")}n.d(t,"f",function(){return T}),n.d(t,"a",function(){return E}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return A}),n.d(t,"d",function(){return x}),n.d(t,"g",function(){return N}),n.d(t,"h",function(){return L}),n.d(t,"e",function(){return R})
;var r,o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=n(40),d=n(32),p=n(266),h=n(64),f=n(364),v=n(122),g=n(4420),m=n(1067),y=n(4421),b=n(1191),I=n(1068),S=n(4423),M=n(4424),D=n(272),C=n(30),j=n(41),P=n(606),O=n(70),T=Object(u.a)("home/initHomePage"),E=Object(u.a)("home/fetchHomeContent"),w=Object(u.a)("home/fetchHomeHubs"),A=Object(u.a)("home/fetchPreferredServerContent"),x=Object(u.a)("home/fetchProviderPromotedContent"),N=Object(u.a)("home/resetHomePage"),L=Object(u.a)("home/updateHomeHubsStatus"),k=void 0,R=(r={},
r["home/initHomePage"]=function(e,t,n){var a=i(e).get("hubs");P.a.startPeriod("client:view:"+C.D),Object(M.a)(a).forEach(function(e){var t=e.identifier,i=e.homeHubIDs,a=e.machineIdentifier,r={skipCache:!0},o=new v.c({machineIdentifier:a},r),l=new f.a({identifier:t},s()({},r,{server:o}));n(L({homeHubIDs:i,status:{provider:l.entityID(),server:o.entityID()}})),l.uninitialize(),o.uninitialize()})},r["home/resetHomePage"]=function(e,t){k=clearTimeout(k),a(e).restoreDefaults()},
r["home/updateHomeHubsStatus"]=function(e,t){var n=t.homeHubIDs,i=t.status;a(e).get("homeHubStatuses").set(n.map(function(e){return s()({},i,{homeHubID:e})}),{remove:!1})},r["home/fetchHomeHubs"]=function(e,t,n){var a=t.homeHubIDs,r=t.fetchDelayMS,o=i(e),s=o.get("hubs"),l=s.get(a[0]),u=l.get("server").get("machineIdentifier"),p=l.get("provider").get("identifier"),h=l.get("directoryKey");n(L({homeHubIDs:a,status:{error:null,isPending:!0,isPopulated:!1}}))
;var f=e.get("servers").findServer(u).then(function(e){return e.get("isOutOfDate")?c.a.Deferred().reject(e).promise():e.get("isPending")?Object(m.a)({eventSource:e,events:["change:isPending"]}):c.a.Deferred().resolve(e).promise()});f=f.then(function(t){var n=t.get("isCloud")?Object(O.l)(e):t;return Object(y.a)(n.get("providers"),{identifier:p})}),r>0&&(f=f.then(function(e){var t=c.a.Deferred();return setTimeout(t.resolve.bind(null,e),r),t.promise()})),f=f.then(function(e){return Object(I.b)({
hubKey:h,provider:e,server:e.server}).fetch()}),f.then(function(e){a.forEach(function(t){var i=s.get(t);if(i){var a={isPending:!1},r=e.findWhere({hubIdentifier:i.get("hubIdentifier")});r?(a.isPopulated=!0,a.hub=r,a.provider=e.provider.entityID(),a.server=e.provider.server.entityID()):(a.error={isContentUnavailable:!0},d.a.warn("[Home] home/fetchHomeHubs: missing",i)),n(L({homeHubIDs:[t],status:a}))}})},function(){n(L({homeHubIDs:a,status:{isPending:!1,error:{}}}))})},
r["home/fetchHomeContent"]=Object(b.a)({key:"content",getModel:function(e,t){return e.get("ui").get("homePage")},fetch:function(e,t,n){var a=i(e).get("hubs"),r=c.a.Deferred();return a.length?(Object(M.a)(a).forEach(function(e){n(w({homeHubIDs:e.homeHubIDs}))}),k=clearTimeout(k),k=setTimeout(r.resolve,1e3),r.promise()):r.resolve().promise()}}),r["home/fetchPreferredServerContent"]=Object(b.a)({key:"preferredServerContent",getModel:function(e,t){return e.get("ui").get("homePage")},
fetch:function(e,t,n){var a=i(e),r={identifier:j.d},o=a.get("preferredServerID"),s=e.get("servers").findServer(o);return s=s.then(function(e){return Object(y.a)(e.get("providers"),r)}),s=s.then(function(e){return Object(S.a)({provider:e,server:e.server,directoryKey:"/hubs"})}),s.then(function(e){var t=e.directoryKey,i=e.hubModels,a=i.map(function(e){return{directoryKey:t,model:e}});n(Object(D.h)({hubs:a}))},function(){return c.a.Deferred().reject({}).promise()})}}),
r["home/fetchProviderPromotedContent"]=Object(b.a)({key:"providerPromotedContent",getModel:function(e,t){return e.get("ui").get("homePage")},fetch:function(e,t,n){var i={type:h.b.PROMOTED},a=Object(g.a)(e);return a=a.then(function(e){var t=e.reduce(function(e,t){var n=t.get("features").findWhere(i);return n&&e.push(n),e},[]);return Object(p.a)(t.map(function(e){return Object(S.a)({directoryKey:e.get("key"),onlyPromoted:!0,provider:e.provider,server:e.server})}))}),a.then(function(){
for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=t.reduce(function(e,t){var n=t.directoryKey,i=t.hubModels;return e.push.apply(e,i.map(function(e){return{directoryKey:n,model:e}})),e},[]);n(Object(D.i)({hubs:a}))},function(){return c.a.Deferred().reject({}).promise()})}}),r[D.a]=function(e,t){e.get("ui").get("homePage").restoreDefaults()},r)},function(e,t,n){"use strict";function i(e){var t=e.eventSource,n=e.events,i=e.predicate,a=void 0===i?function(){return!0
}:i,l=e.waitDuration,c=void 0===l?s:l,u=r.a.Deferred(),d=function(){a(t)&&(h=clearTimeout(h),t.off(p),u.resolve(t))},p=n.reduce(function(e,t){return e[t]=d,e},{}),h=setTimeout(function(){o.a.warn('Model "%s" events %o did not pass the predicate within %dms',t.name,n,c),t.off("add",p),u.reject(t)},c);return t.on(p),u.promise()}t.a=i;var a=n(13),r=n.n(a),o=n(32),s=2500},function(e,t,n){"use strict";function i(e){return new o.default([],r()({count:s,excludes:["playlists"],libraryHubsOnly:!0,
includeEmpty:!0,includeFeaturedTags:!0,includeTypeFirst:!0,includeExternalMetadata:!0,includeStations:!0},e))}n.d(t,"a",function(){return s}),t.b=i;var a=n(6),r=n.n(a),o=n(247),s=16},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(r.a,function(e,t){return t.homeHubID},function(e,t){return e.hubs.find(function(e){return e.id===t})})}t.a=i;var a=n(4),r=(n.n(a),n(402))},function(e,t,n){"use strict";function i(e,t){var n=e.x,i=e.y,a="translate3d("+n+"px, "+i+"px, 0)"
;return{WebkitTransform:a,msTransform:a,transform:a,width:t?t+"px":"100%"}}t.a=i},function(e,t,n){"use strict";function i(e){return Object(a.createSelector)(function(e,t){return t.libraryKey},function(e,t){return t.activeFilters},function(e,t){return t.activeSort},function(e,t){return t.activeLimit},function(e,t){return t.selectedType},function(e,t){return t.sourceDirectory},function(t,n,i,a,s,l){var c={filters:n,sort:i,limit:a}
;return l.type!==r.g&&s&&s.key?Object(o.a)([s.key.replace("/all?","/"+e+"?")],c):Object(o.a)([t,e],c)})}t.a=i;var a=n(4),r=(n.n(a),n(27)),o=n(1056)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.selectedListStyle,i=e.allListStyles;return Object(c.g)(i,n)?r()(l.a,{className:t}):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(590)),c=n(68);i.defaultProps={selectedListStyle:c.c,allListStyles:[c.c]},t.a=i},,,function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(function(e,t){return t.providerID},Object(r.a)(),o.a,function(e,t,n){if(e)return t.find(function(t){var i=n[t];return i&&i.identifier===e})})}t.a=i;var a=n(4),r=(n.n(a),n(934)),o=n(136)},function(e,t,n){"use strict";function i(e){var t=e.isSearchCapable,n=e.providers,i=e.searchAllServers,a=e.columnAdjustment;return t?s()(p.a,{innerClassName:g.a.searchPageContent},void 0,n.map(function(e){return u.a.createElement(f.a,r()({key:e.providerEntityID,columnAdjustment:a,
searchAllServers:i},e))})):s()(h.a,{title:Object(d.default)("This server does not support search"),description:Object(d.default)("Browse libraries using the sidebar")})}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3),p=n(157),h=n(127),f=n(4607),v=n(4614),g=n.n(v);i.defaultProps={searchAllServers:!1},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataListEntityID,o=e.showSpinner,s=e.showError,d=e.activeSelectionType,h=e.columnAdjustment,b=e.record,I=e.allEpisodes,S=e.multiSelectToolbarComponent;return o?y:s?r()(f.a,{title:Object(u.default)("There was an unexpected error loading this item")}):r()(p.a,{metricsPage:c.S,isMetricsDelegated:!0,disableBackgroundPreset:!0,scrollDirection:l.NONE},void 0,d?r()(v.a,{serverEntityID:t,providerEntityID:n,toolbarComponent:S,
allowRedirectOnDelete:!0}):r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:a,columnAdjustment:h,record:b,allEpisodes:I}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(3),d=n(31),p=n(92),h=n(85),f=n(203),v=n(487),g=n(4620),m=n(4717),y=r()(h.a,{},void 0,r()(d.a,{}));t.a=i},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(l.a,Object(o.a)(),Object(s.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=n.metadataItems.length,a=1===i&&!!t.primaryExtraKey;return{metadataItemEntityIDs:n.metadataItems,containerKey:n.containerKey,size:a?0:i,populatedRange:n.populatedRange}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(132),l=n(39),c=n(4661);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){
var t=e.posterTop,n=e.pageHeight,i=e.providerEntityID,a=t+n-2*h-v*f;return r()(l.a,{style:{position:"fixed",top:a},providerEntityID:i})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(490)),c=n(46),u=n.n(c),d=n(4673),p=n.n(d),h=parseInt(u.a.pagePadding,10),f=parseInt(p.a.defaultFontSize,10),v=parseFloat(p.a.lineHeightComputed,10);t.a=i},function(e,t,n){"use strict";function i(e,t){return Object(o.createSelector)(function(e,t){return t.playlistItemEntityID
},Object(l.a)(),Object(s.a)(),u.a,d.a,function(e,t,n,i,a){var r=t.playlistItemID;return{itemServerEntityID:n.serverEntityID,itemProviderEntityID:n.providerEntityID,metadataItemEntityID:n.entityID,metadataKey:n.key,title:n.title,selectionID:e,selectionType:n.type,activeSelectionType:a.activeSelectionType,isSelected:Object(h.a)(i,r)}})}function a(e,t){var n={playlistItemEntityID:t.playlistItemEntityID};return{onSelectItem:function(t){e(Object(c.j)(t))},onDeselectItem:function(t){e(Object(c.a)(t))
},onRemovePress:function(){e(Object(c.g)(n))}}}var r=n(11),o=n(4),s=(n.n(o),n(1762)),l=n(1081),c=n(338),u=n(736),d=n(76),p=n(576),h=n(737),f=n(4683),v=Object(r.connect)(i,a)(Object(p.a)(f.a));t.a=v},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.playlistItemEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(593))},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e){return e.ui.prePlayPage
},c.a,p.a,l.a,function(e,t,n,i){var a=e.metadataItem,r=e.descendantList,o=e.isMetadataItemPending,s=e.metadataItemError;return{metadataItemEntityID:a,metadataListEntityID:r,showSpinner:o&&!t,showError:!o&&!!s,activeSelectionType:n.activeSelectionType,columnAdjustment:i.columnAdjustment}})}function a(e){var t=e.ui.prePlayPage;return{providerEntityID:t.providerEntityID,metadataKey:t.metadataKey}}function r(e,t){e(d.d({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,
metadataKey:t.metadataKey})),e(d.a()),e(d.b())}var o=n(11),s=n(4),l=(n.n(s),n(72)),c=n(1778),u=n(133),d=n(291),p=n(76),h=n(1077),f=Object(u.a)(h.a,a,r),v=Object(o.connect)(i)(f);t.a=v},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e){return e.ui.prePlayPage},c.a,p.a,l.a,function(e,t,n,i){var a=e.metadataItem,r=e.descendantList,o=e.isMetadataItemPending,s=e.metadataItemError;return{metadataItemEntityID:a,metadataListEntityID:r,showSpinner:o&&!t,
showError:!o&&!!s,activeSelectionType:n.activeSelectionType,columnAdjustment:i.columnAdjustment}})}function a(e){var t=e.ui.prePlayPage;return{providerEntityID:t.providerEntityID,metadataKey:t.metadataKey}}function r(e,t){e(d.d({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(d.a()),e(d.b())}var o=n(11),s=n(4),l=(n.n(s),n(72)),c=n(1778),u=n(133),d=n(291),p=n(76),h=n(4775),f=Object(u.a)(h.a,a,r),v=Object(o.connect)(i)(f);t.a=v},function(e,t,n){
"use strict";function i(e){return e.get("user").get("profile")}function a(e){return e.get("ui").get("accountSettingsPage")}n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});var r,o=n(40),s=n(428),l=Object(o.a)("ui/accountSettingsPage/updateUserProfile"),c=Object(o.a)("ui/accountSettingsPage/clearUpdateUserProfileError"),u=(r={},r["ui/accountSettingsPage/updateUserProfile"]=function(e,t){var n=i(e),r=a(e);r.set({isUpdatingUserProfile:!0,
updateUserProfileError:null}),n.save(t,{type:"PUT",wait:!0}).done(function(){n.set(t),r.set({isUpdatingUserProfile:!1,updateUserProfileError:null})}).fail(function(e){r.set({isUpdatingUserProfile:!1,updateUserProfileError:Object(s.a)(e)})})},r["ui/accountSettingsPage/clearUpdateUserProfileError"]=function(e){a(e).set("updateUserProfileError",null)},r)},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({url:a.a.string.isRequired})},function(e,t,n){"use strict"
;var i=n(18),a=n(17),r=n(14),o=n(69),s=n(95),l=n(111),c=n(5021),u=a.a.extend({name:"SearchModel",context:["server","provider","includeCollections"],responseType:function(){return Object(s.a)(this.server)},url:function(){var e={};return this.includeCollections&&(e.includeCollections=1),i.join(this.get("key"),e)},idAttribute:"providerEntityID",sessionAttrs:{providerEntityID:r.a.string,serverEntityID:r.a.string,key:r.a.string,isSearchPending:r.a.boolean,isSearchPopulated:r.a.boolean,
searchError:r.a.object},syncedRelations:{hubs:{relationClass:c.a,rootPropertyName:"Hub"}},defaults:{isSearchPending:!0,isSearchPopulated:!1},augmentResponseText:function(e,t){return t===o.a.xml?Object(l.b)(e):e},augmentResponse:function(e){if(!e.Hub)return e;var t=Array.isArray(e.Hub)?e.Hub:[e.Hub];return e.Hub=t.filter(function(e){return parseInt(e.size,10)>0}),e}});t.a=u},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=!n(422)&&!n(348)(function(){
return 7!=Object.defineProperty(n(1120)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(347),a=n(229).document,r=i(a)&&i(a.createElement);e.exports=function(e){return r?a.createElement(e):{}}},function(e,t,n){var i=n(349),a=n(350),r=n(1871)(!1),o=n(779)("IE_PROTO");e.exports=function(e,t){var n,s=a(e),l=0,c=[];for(n in s)n!=o&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(777)
;e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(778),a=Math.min;e.exports=function(e){return e>0?a(i(e),9007199254740991):0}},,function(e,t,n){e.exports={default:n(1875),__esModule:!0}},function(e,t,n){var i=n(169),a=n(601),r=n(348),o=n(783),s="["+o+"]",l="\u200b\x85",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,n){var a={},s=r(function(){return!!o[e]()||l[e]()!=l}),c=a[e]=s?t(p):o[e];n&&(a[n]=c),
i(i.P+i.F*s,"String",a)},p=d.trim=function(e,t){return e=String(a(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d},function(e,t,n){var i=n(169),a=n(120),r=n(348);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],o={};o[e]=t(n),i(i.S+i.F*r(function(){n(1)}),"Object",o)}},function(e,t,n){"use strict";var i=n(785),a=n(169),r=n(1129),o=n(421),s=n(504),l=n(1887),c=n(787),u=n(1130),d=n(245)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this}
;e.exports=function(e,t,n,f,v,g,m){l(n,t,f);var y,b,I,S=function(e){if(!p&&e in j)return j[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},M=t+" Iterator",D="values"==v,C=!1,j=e.prototype,P=j[d]||j["@@iterator"]||v&&j[v],O=P||S(v),T=v?D?S("entries"):O:void 0,E="Array"==t?j.entries||P:P;if(E&&(I=u(E.call(new e)))!==Object.prototype&&I.next&&(c(I,M,!0),i||"function"==typeof I[d]||o(I,d,h)),D&&P&&"values"!==P.name&&(C=!0,
O=function(){return P.call(this)}),i&&!m||!p&&!C&&j[d]||o(j,d,O),s[t]=O,s[M]=h,v)if(y={values:D?O:S("values"),keys:g?O:S("keys"),entries:T},m)for(b in y)b in j||r(j,b,y[b]);else a(a.P+a.F*(p||C),t,y);return y}},function(e,t,n){e.exports=n(421)},function(e,t,n){var i=n(349),a=n(503),r=n(779)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),
i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){n(1890)
;for(var i=n(229),a=n(421),r=n(504),o=n(245)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){
var c=s[l],u=i[c],d=u&&u.prototype;d&&!d[o]&&a(d,o,c),r[c]=r.Array}},function(e,t,n){e.exports={default:n(1893),__esModule:!0}},function(e,t,n){"use strict"
;var i=n(229),a=n(349),r=n(422),o=n(169),s=n(1129),l=n(1894).KEY,c=n(348),u=n(780),d=n(787),p=n(602),h=n(245),f=n(788),v=n(789),g=n(1895),m=n(1896),y=n(346),b=n(347),I=n(350),S=n(776),M=n(501),D=n(786),C=n(1897),j=n(1135),P=n(345),O=n(423),T=j.f,E=P.f,w=C.f,A=i.Symbol,x=i.JSON,N=x&&x.stringify,L=h("_hidden"),k=h("toPrimitive"),R={}.propertyIsEnumerable,z=u("symbol-registry"),U=u("symbols"),B=u("op-symbols"),F=Object.prototype,_="function"==typeof A,V=i.QObject,H=!V||!V.prototype||!V.prototype.findChild,Q=r&&c(function(){
return 7!=D(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=T(F,t);i&&delete F[t],E(e,t,n),i&&e!==F&&E(F,t,i)}:E,Y=function(e){var t=U[e]=D(A.prototype);return t._k=e,t},G=_&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},W=function(e,t,n){return e===F&&W(B,t,n),y(e),t=S(t,!0),y(n),a(U,t)?(n.enumerable?(a(e,L)&&e[L][t]&&(e[L][t]=!1),n=D(n,{enumerable:M(0,!1)})):(a(e,L)||E(e,L,M(1,{})),e[L][t]=!0),
Q(e,t,n)):E(e,t,n)},K=function(e,t){y(e);for(var n,i=g(t=I(t)),a=0,r=i.length;r>a;)W(e,n=i[a++],t[n]);return e},Z=function(e,t){return void 0===t?D(e):K(D(e),t)},q=function(e){var t=R.call(this,e=S(e,!0));return!(this===F&&a(U,e)&&!a(B,e))&&(!(t||!a(this,e)||!a(U,e)||a(this,L)&&this[L][e])||t)},J=function(e,t){if(e=I(e),t=S(t,!0),e!==F||!a(U,t)||a(B,t)){var n=T(e,t);return!n||!a(U,t)||a(e,L)&&e[L][t]||(n.enumerable=!0),n}},X=function(e){
for(var t,n=w(I(e)),i=[],r=0;n.length>r;)a(U,t=n[r++])||t==L||t==l||i.push(t);return i},$=function(e){for(var t,n=e===F,i=w(n?B:I(e)),r=[],o=0;i.length>o;)!a(U,t=i[o++])||n&&!a(F,t)||r.push(U[t]);return r};_||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(B,n),a(this,L)&&a(this[L],e)&&(this[L][e]=!1),Q(this,e,M(1,n))};return r&&H&&Q(F,e,{configurable:!0,set:t}),Y(e)},
s(A.prototype,"toString",function(){return this._k}),j.f=J,P.f=W,n(1134).f=C.f=X,n(502).f=q,n(782).f=$,r&&!n(785)&&s(F,"propertyIsEnumerable",q,!0),f.f=function(e){return Y(h(e))}),o(o.G+o.W+o.F*!_,{Symbol:A});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)h(ee[te++]);for(var ne=O(h.store),ie=0;ne.length>ie;)v(ne[ie++]);o(o.S+o.F*!_,"Symbol",{for:function(e){return a(z,e+="")?z[e]:z[e]=A(e)
},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),o(o.S+o.F*!_,"Object",{create:Z,defineProperty:W,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:$}),x&&o(o.S+o.F*(!_||c(function(){var e=A();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){
for(var t,n,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);if(n=t=i[1],(b(t)||void 0!==e)&&!G(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,N.apply(x,i)}}),A.prototype[k]||n(421)(A.prototype,k,A.prototype.valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(1121),a=n(781).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},function(e,t,n){
var i=n(502),a=n(501),r=n(350),o=n(776),s=n(349),l=n(1119),c=Object.getOwnPropertyDescriptor;t.f=n(422)?c:function(e,t){if(e=r(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return a(!i.f.call(e,t),e[t])}},,function(e,t,n){"use strict";function i(e){return!(!e||!e.status)&&(401===e.status||422===e.status)}t.a=i},function(e,t,n){"use strict";var i=n(790),a=i.a.extend({supportsRetry:function(e){return e.get("isCloud")}});t.a=a},function(e,t,n){"use strict";function i(e,t){if(t||(t={}),
r.a.isObject(e))return e;if(!r.a.isString(e))return{};if(!(e=e.trim().replace(/^(\?|#)/,"")))return{};var n=t.separator||"&";return e.split(n).reduce(function(e,t){var n=t.split("="),i=n[0],a=n[1];try{i=decodeURIComponent(i),a=void 0===a?null:decodeURIComponent(a),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]:e[i]=a}catch(e){o.a.warn("[Parser] Unable to decode query string at "+i)}return e},{})}var a=n(10),r=n.n(a),o=n(32);t.a=i},function(e,t,n){"use strict";function i(e,t){
return r()(e||{}).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join(t&&t.separator||"&")}var a=n(59),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){return e?r.a.reduce(t,function(t,n,i){return e[i]!==n&&(t[i]=n),t},{}):t}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";n.d(t,"f",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return s}),
n.d(t,"a",function(){return l});var i="untested",a="pending",r="connected",o="unauthorized",s="unavailable",l="aborted"},function(e,t,n){"use strict";function i(e){if(/\.plex\.direct$/.test(e)){var t=e.indexOf(".");t>0&&(e=e.substring(0,t),e=e.replace(/\-/g,"."))}return e}t.a=i},function(e,t,n){"use strict";var i=n(299),a=new i.a({interface:["init","enable","disable","set","capture"]});t.a=a},function(e,t,n){"use strict";var i=n(110),a=n(790),r=a.a.extend({mixins:[i.a],initialize:function(e){
var t=e.appModel;a.a.prototype.initialize.apply(this,arguments),this.appModel=t,this.listenTo(this.appModel,"change:primaryServer",this.onPrimaryServerChange)},supportsRetry:function(e){var t=this.appModel.get("primaryServer");return!(e.get("isPersonalCloudServer")&&(!t||t.id!==e.id))},onPrimaryServerChange:function(e,t){t&&!t.get("hasEventConnection")&&(this.stop(t),this.start(t))}});t.a=r},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(69),o=n(1954),s=a.a.extend({
name:"UserFeatureCollection",context:["server"],model:o.a,url:i.join(["https://plex.tv","/api/v2/features"]),responseType:r.a.json});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(798),r=i.a.extend({name:"UserSubscriptionCollection",model:a.a});t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="lite",a=["","lifetime","yearly","monthly",i,"comped","pro","six_months","premium"];t.b=a},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(17),o=n(14),s=n(1959),l=r.a.extend({name:"StoredServerModel",idAttribute:"machineIdentifier",syncedAttrs:{machineIdentifier:o.a.string,friendlyName:o.a.string,accessToken:o.a.string,sourceTitle:o.a.string,home:o.a.boolean,synced:o.a.boolean,serverClass:o.a.string,platform:o.a.string,isShared:o.a.boolean,version:o.a.string,publicAddressMatches:o.a.boolean,ownerId:o.a.integer,mediaProviders:o.a.integer},syncedRelations:{connections:{relationClass:s.a}},
copyFromServer:function(e){var t={};a.a.each(this.syncedAttrs,function(n,i){t[i]=e.get(i)}),this.set(t)}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(1963),r=i.a.extend({name:"UserEntitlementCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1964),r=i.a.extend({name:"UserProviderCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1965),r=i.a.extend({name:"UserRoleCollection",model:a.a});t.a=r},function(e,t,n){"use strict";function i(e,t){
return e.replace(/^\w+:\/\//,t+"//")}t.a=i},function(e,t,n){"use strict";var i=n(246),a=n(803),r=i.a.extend({model:a.a,url:"/api/home/users",parse:function(e){return this.convert(e,"User")}});t.a=r},function(e,t,n){"use strict";function i(e,t){switch(e){case s.INT:case s.ENUM:return o.a.parseInteger(t);case s.BOOL:return o.a.parseBoolean(t);case s.DOUBLE:return o.a.parseFloat(t);default:return t}}n.d(t,"b",function(){return s});var a=n(17),r=n(14),o=n(74),s={INT:"int",TEXT:"text",BOOL:"bool",
DOUBLE:"double"},l=a.a.extend({name:"MediaSettingModel",context:["server"],idAttribute:"id",rootPropertyName:"Setting",syncedAttrs:{id:r.a.string,advanced:r.a.boolean,default:r.a.oneOfType(r.a.integer,r.a.string,r.a.boolean),hidden:r.a.boolean,group:r.a.string,label:r.a.string,summary:r.a.string,type:r.a.oneOf(s.INT,s.TEXT,s.BOOL,s.ENUM,s.DOUBLE),value:r.a.oneOfType(r.a.integer,r.a.float,r.a.string,r.a.boolean),min:r.a.float,max:r.a.float,step:r.a.float,enumValues:r.a.array},
augmentResponse:function(e){return e.default=i(e.type,e.default),e.value=i(e.type,e.value),e.enumValues&&(e.enumValues=e.enumValues.split("|").map(function(t){var n=t.split(":"),a=n[0],r=n[1],o=void 0===r?a:r;return{label:decodeURIComponent(o),value:i(e.type,a)}})),e},parseAndSetValue:function(e){this.set("value",i(this.get("type"),e))}});t.a=l},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=0},function(e,t,n){"use strict";function i(e){if(o[e])return o[e]
;var t=e.match("^(server|provider)://([a-fA-F0-9-]+)?/?([^/]*)/?$");if(t){var n="server"===t[1],i=n?t[2]:r.a,s=t[3]||a.d;o[e]={isServer:n,serverIdentifier:i,providerIdentifier:s}}else o[e]={};return o[e]}t.a=i;var a=n(41),r=n(90),o={}},function(e,t,n){"use strict";function i(e){var t=o.a.clone(e);return void 0!==t.last?(t.end=t.last+1,t.size=t.end-t.start):void 0!==t.size?(t.end=t.start+t.size,t.last=t.end-1):void 0!==t.end&&(t.last=t.end-1,t.size=t.end-t.start),t}function a(e,t){
return o.a.filter(o.a.map(e,i),function(e){return t?e.size>=0:e.size>0})}var r=n(10),o=n.n(r),s={augment:i,difference:function(e,t,n){return e=i(e),t=i(t),a([{start:e.start,last:Math.min(e.last,t.start-1)},{start:Math.max(e.start,t.end),last:e.last}],n)},union:function(e,t,n){if(e=i(e),t=i(t),e.start>t.start){var r=e;e=t,t=r}var o=[e];return t.start<=e.end?o[0].last=Math.max(t.last,e.last):o.push(t),a(o,n)},degap:function(e,t){var n=i(e);return t=i(t),t.size?(n.start>t.end&&(n={start:t.end,
end:n.end}),n.end<t.start&&(n={start:n.start,end:t.start}),i(n)):n},each:function(e,t,n){e=i(e);for(var a=Math.min(e.start,e.end),r=Math.max(e.start,e.end);a<=r;a++)t.call(n,a)},roundByPage:function(e,t){return e=i(e),i({start:Math.floor(e.start/t)*t,end:Math.ceil(e.end/t)*t})}};t.a=s},,,,,function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(25),s=n(807),l=o.a.extend({name:"FilterCollection",context:["server","section","includeAdvanced"],model:s.a,comparator:"filterType",
includeAdvanced:!0,url:function(){var e=a.a.result(this.section,"url"),t=this.section.get("currentType"),n={includeAdvanced:this.includeAdvanced?1:0};return t&&(n.type=t.id),r.join([e,"/filters"],n)},findUnwatchedFilter:function(){return this.get("unwatched")||this.get("unwatchedLeaves")}});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"FirstCharacterModel",context:["server","provider","section"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{
key:a.a.string,title:a.a.string,size:a.a.integer},urlRoot:function(){return"/library/sections/"+this.section.id+"/firstCharacter"}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"MediaTypeModel",context:["server","section"],sessionAttrs:{id:a.a.integer,typeString:a.a.string,title:a.a.string,plural:a.a.string,mediaType:a.a.string,child:a.a.string,parent:a.a.string,selected:a.a.boolean},defaults:{selected:!1}});t.a=r},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(17),o=n(14),s=n(3),l=["all","recentlyAdded","recentlyViewed","recentlyViewedShows","onDeck","newest","folder"],c=r.a.extend({name:"SectionSubsetModel",context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",sessionAttrs:{selected:o.a.boolean},syncedAttrs:{key:o.a.string,title:o.a.string,secondary:o.a.boolean},derivedAttrs:{primary:function(){return!this.get("secondary")&&a.a.contains(l,this.get("key"))}},defaults:{selected:!1},
augmentResponse:function(e){return"all"===e.key&&(e.title=Object(s.default)("All")),e}},{whitelistedPrimaryKeySubsets:l});t.a=c},function(e,t,n){"use strict";function i(e){if(e&&e.length){var t=e.length;return 1===t?e[0]:2===t?Object(a.default)("{1} and {2}",e[0],e[1]):3===t?Object(a.default)("{1}, {2}, and {3}",e[0],e[1],e[2]):Object(a.default)("{1}, {2}, and {3} others",e[0],e[1],e.length-2)}}var a=n(3);t.a=i},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(25),o=n(95),s=n(1169),l=n(364),c=r.a.extend({name:"ProviderCollection",context:["server"],model:l.a,url:"/media/providers",responseType:function(){return Object(o.a)(this.server)},fetch:function(){var e=this.server,t=void 0;return t=e.get("mediaProviders")||e.get("isCloud")?r.a.prototype.fetch.apply(this,arguments):a.a.Deferred().resolve(this,"").promise(),t.then(function(t){Object(s.a)(t,e)}),t}});t.a=c},function(e,t,n){"use strict";function i(e,t){
t.get("isCloud")||e.forEach(function(e){e.set({isPending:!1,isPopulated:!0})}),t.get("isCloud")||e.get(o.d)||e.add(new r.a({isPending:!1,isPopulated:!0},{server:t})),e.get(o.a)||e.add(new a.a({isPending:!1,isPopulated:!0},{server:t}))}t.a=i;var a=n(811),r=n(2028),o=(n(364),n(41))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),a=n(515),r=n(74),o=n(363),s=i.a.extend({name:"ProviderSettingCollection",context:["server","provider"],url:"/settings",
model:o.a,augmentResponse:function(e){if(!Object(a.a)())return e;var t=e.Setting?e.Setting:e;t=r.a.parseArray(t);var n=t.find(function(e){return"experience"===e.id});return n?(n.Setting=r.a.parseArray(n.Setting),n.Setting=n.Setting.filter(function(e){return"promoteToDashboard"!==e.id}),0===n.Setting.length?t.filter(function(e){return"experience"!==e.id}):t):t}});t.default=s},function(e,t,n){"use strict";function i(e){if(!a.a.get("shouldRequestHTMLFromCloudProvider"))return o.b;switch(e){
case r.i:case r.j:case r.k:case r.l:return o.a}return o.b}var a=n(62),r=n(41),o=n(1172);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="html",a="plain"},function(e,t,n){"use strict";var i=n(25),a=n(270),r=n(64),o=i.a.extend({name:"ProviderFeatureCollection",context:["server","provider"],model:r.a,modelId:function(e){return e.type===r.b.ACTION?e.id:e.type},augmentResponse:function(e){Array.isArray(e)||(e=[e]);var t=e.find(function(e){
return e.type===r.b.ACTIONS});return null==t||Array.isArray(t.Action)||(t.Action=[t.Action]),null==t&&(t={Action:[],type:r.b.ACTIONS},e.push(t)),e.forEach(function(e){if(e.type===r.b.TIMELINE&&(null!=e.scrobbleKey||null!=e.unscrobbleKey)){var n=e.scrobbleKey,i=e.unscrobbleKey;t.Action.push({id:a.b.SCROBBLE,key:n,reverseKey:i}),delete e.scrobbleKey,delete e.unscrobbleKey}if(e.type===r.b.RATE){var o=e.key;t.Action.push({id:a.b.RATE,key:o}),delete e.key}
if(e.type===r.b.ACTION&&(null!=e.key||null!=e.reverseKey)){var s=e.key,l=e.reverseKey;t.Action.push({id:e.id,key:s,reverseKey:l}),delete e.key,delete e.reverseKey}}),e}});t.a=o},,function(e,t,n){"use strict";function i(e,t){return Object(r.default)(Object(a.getLastSegment)(e||""),t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),r=n(1176);t.default=i},function(e,t,n){"use strict";function i(e,t,n){if(!e)return"";if(e.length>t){n=n||Math.floor((t-3)/2);var i=t-3-n
;return e.substr(0,n)+"..."+e.substr(e.length-i)}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){var i=n(1178).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";function i(e,t){if(!e)return"";if(e.length>t){for(var n=e.substring(0,t-3);!1===/\S/.test(n.charAt(n.length-1))&&n.length>1;)n=n.slice(0,-1);return n+"..."}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict"
;var i=n(429),a=n(96),r=n(2083),o=n(2085),s=n(2102),l=n(2104),c=n.n(l),u=a.a.extend({mixins:[i.a],name:"syncModal",className:"convert-modal modal fade",template:c.a,regions:{bodyRegion:".modal-body-region"},initialize:function(e){a.a.prototype.initialize.apply(this,arguments),this.device=this.model?this.model.device:e.device},initialState:"form",states:{form:{nextState:"success",onEnter:function(){this.bodyRegion.show(new o.a({model:this.model,item:this.options.item,items:this.options.items,
device:this.device})),this.listenForStateRequests()}},success:{onEnter:function(){this.model?this.hide():(this.bodyRegion.show(new s.a({server:this.options.item.server,device:this.device})),this.listenForStateRequests())}},error:{onEnter:function(){this.bodyRegion.show(new r.a),this.listenForStateRequests()}}},listenForStateRequests:function(){this.bodyRegion&&this.bodyRegion.currentView&&this.listenTo(this.bodyRegion.currentView,{"request:state":this.enterState,
"request:nextState":this.enterNextState})},onRender:function(){a.a.prototype.onRender.apply(this,arguments),this.enterNextState()},onStateMachineComplete:function(){this.hide()}});t.a=u},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(63),s=n(27),l=n(2092),c=n.n(l),u=i.a.ItemView.extend({className:"convert-policy-container",template:c.a,ui:{policyUnwatchedInput:"#convert-policy-unwatched",policyScopeInput:"#convert-policy-scope",policyValueInput:"#convert-policy-value",
policyWarning:".convert-warning"},events:{"change input[name=policyUnwatched]":"onPolicyUnwatchedChange","change input[name=policyScope]":"onPolicyScopeChange","keyup input[name=policyValue]":"onPolicyValueChange","change input[name=policyValue]":"onPolicyValueChange"},initialize:function(e){this.type=Object(s.r)(this.model.get("metadataType")||"movie"),this.leafMediaType=Object(s.q)(this.type.typeString).mediaType,this.model.setPolicyDefaultsFor(this.leafMediaType)},serializeData:function(){
var e={isSync:this.options.isSync,isCloudSync:this.options.isCloudSync,isDirectory:this.model.get("isDirectory"),policy:this.model.get("policy").toJSON()};return e.showLimitWarning=this.model.shouldShowPolicyWarning(this.leafMediaType,e.policy.value),e.showUnwatched=e.isDirectory&&this.leafMediaType===o.d,e},updatePolicyValue:function(){var e=this.model.get("policy"),t=Math.abs(parseInt(this.ui.policyValueInput.val(),10));this.ui.policyValueInput.val(r.a.isNaN(t)?"":t),r.a.isNaN(t)&&(t=0),
e.set("value","all"===e.scope?null:t);var n=this.model.shouldShowPolicyWarning(this.leafMediaType,t);this.ui.policyWarning.toggleClass("hidden",!n)},onPolicyUnwatchedChange:function(e){this.model.get("policy").set("unwatched",this.ui.policyUnwatchedInput.prop("checked"))},onPolicyScopeChange:function(e){var t=this.model.get("policy"),n=this.ui.policyScopeInput.prop("checked")?this.ui.policyScopeInput.val():"all";t.set("scope",n),this.updatePolicyValue()},onPolicyValueChange:function(e){
this.updatePolicyValue()}});t.a=u},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=2},function(e,t,n){"use strict";function i(e,t){var n=t?8*Math.round(t/8):0,i=e?8*Math.round(e/8*(9/16)):0;return Math.max(n,i)}t.a=i},function(e,t,n){"use strict";function i(e){return e>0?e+" kbps":""}t.a=i},function(e,t,n){"use strict";function i(e){return Object(a.a)(e)}t.a=i;var a=n(1183)},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(16),o=n(3),s=n(182),l=n(96),c=n(2106),u=n.n(c),d=l.a.extend({name:"homeWarningModal",template:u.a,events:a.a.extend({"click .server-settings-btn":"onServerSettingsClick"},l.a.prototype.events),initialize:function(e){l.a.prototype.initialize.apply(this,arguments),this.type=e.type},serializeData:function(){var e;return e="pin"===this.type?Object(o.default)("You've added a PIN restriction"):Object(o.default)("You've joined a Plex Home"),{intro:e}},
onServerSettingsClick:function(e){e.preventDefault(),this.hide();var t=Object(r.c)("appModel"),n=t.get("primaryServer");Object(s.a)("serverSettings",{serverID:n.id,group:"general"})}});t.a=d},function(e,t,n){"use strict";var i=n(22),a=n(16),r=n(430),o=n(2112),s=n.n(o),l=i.a.ItemView.extend({tagName:"li",className:"user-select-list-item",template:s.a,ui:{container:".user-select-container",poster:".user-poster"},events:{"click a":"onClick"},initialize:function(e){this.disabled=e.disabled,
this.posterImage=new r.a({model:this.model,type:"friend",width:80});var t=a.c("appModel"),n=t.get("primaryServer");n&&n.supports("imageFilters")&&(this.backgroundImage=new r.a({model:this.model,type:"friend",width:120,background:!0,filters:{blur:20,opacity:50,background:"000000"}}),this.backgroundImage.placeholderClass=!1)},serializeData:function(){return{disabled:this.disabled}},bindings:{".username":{modelAttribute:"title"},".protected-icon":{modelAttribute:"protected",autohide:!0,manual:!0},
".admin-icon":{modelAttribute:"admin",autohide:!0,manual:!0}},onRender:function(){this.posterImage.setElement(this.ui.poster),this.backgroundImage&&this.backgroundImage.setElement(this.ui.container)},onClose:function(){this.posterImage.close(),this.backgroundImage&&this.backgroundImage.close()},onClick:function(e){e.preventDefault(),this.trigger("selectUser",this.model)}});t.a=l},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(101),o=n(802),s=o.a.extend({maxCycles:3,maxSize:50,
imageParamsRegex:/&?(width|height|minSize)=([^&]+)/g,initialize:function(){o.a.prototype.initialize.apply(this,arguments),this._infoMemo={}},store:function(e,t){if(t||(t=this.getItemCacheKey(e)),t){var n=e.url,i=this.getImageInfo(n),r={url:n,blobUrl:e.blobUrl,size:i.size},o=this.get(t);if(o){if(!o.images.hasOwnProperty(n)){var s=o.sizes;o.images[n]=r;var l=a.a.sortedIndex(s,r,"size");s.splice(l,0,r)}}else o={images:{},sizes:[r]},o.images[n]=r,this.startListening(),o._cacheKey=t,this._cache[t]=o,
this.size++,e.persistInCache||this.setItemCycle(o,t,a.a.first(this.cycles))}},getItemCacheKey:function(e){return this.getImageInfo(e.url).key},getImageInfo:function(e){if(this._infoMemo.hasOwnProperty(e))return this._infoMemo[e];var t={width:0,height:0,minSize:0},n=e.replace(this.imageParamsRegex,function(e,n,i){return t[n]=parseInt(i,10),""}),i={key:n,size:t.width*t.height+t.minSize};return this._infoMemo[e]=i,i},removeImageInfo:function(e){
this._infoMemo.hasOwnProperty(e)&&delete this._infoMemo[e]},getBlobUrl:function(e){var t=this.getImageInfo(e),n=this.get(t.key);if(n){var i=n.images[e];if(i)return i.blobUrl}},getPlaceholder:function(e){var t=this.getImageInfo(e),n=this.get(t.key);if(n){if(n.images[e])return;return a.a.last(n.sizes).blobUrl}},remove:function(e,t){o.a.prototype.remove.apply(this,arguments),a.a.each(e.sizes,function(e){this.removeImageInfo(e.url),r.a.hasObjectUrl&&window.URL.revokeObjectURL(e.blobUrl)},this)}})
;t.a=s},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(32),o=n(18),s=n(352),l=n(2110),c=n(2111),u={extensions:{dash:".mpd",hls:".m3u8",http:""},logParams:function(e,t,n){r.a.group("[Transcoder] %s (%s) options",e,t),a.a.forEach(n,function(e,t){return r.a.info("%s: %s",t,e)}),r.a.groupEnd()},serializeParams:function(e,t){var n={},i={},r=/^X-Plex/;return a.a.each(e,function(e,t){r.test(t)?i[t]=e:n[t]=e}),n=o.stringifyParams(n),i=o.stringifyParams(i),n&&i?n+"&"+i:n||i},image:function(e,t,n){
if(!t)return"";var i,r=n.fallbackServer,o=!1;if(r&&r.get("isConnected")){i=r.get("isFullServer")?r:null}if(i)if(e.get("cloud"))o=!0;else if(!e.get("isFullServer")){var l=!e.get("activeConnection").get("isPrivate"),c=i.get("activeConnection").get("isPrivate");o=l||c}var u=o?i:e,d=u.id===e.id;e.get("cloud")&&(t=o?i.resolveUrl(t,{appendToken:!0}):e.resolveUrl(t,{appendToken:!0,connection:new s.a({scheme:"https",address:"node.plexapp.com",port:"32443"})}));var p={url:e.resolveUrl(t,{
useRelativeUrl:d,appendToken:!0}),width:n.width&&Math.round(parseFloat(n.width)),height:n.height&&Math.round(parseFloat(n.height))};n.minSize&&(p.minSize=1),n.format&&(p.format=n.format),n.quality&&(p.quality=n.quality),n.filters&&a.a.each(n.filters,function(e,t){void 0!==e&&(p[t]=e)});var h="/photo/:/transcode?"+this.serializeParams(p,u);return u.resolveUrl(h,{appendToken:!0})},music:function(e,t,n,i){i||(i="start");var r=a.a.first(t.get("Media"));if(r){var o=a.a.first(r.Part);if(o){var s,l
;e.supports("universalMusicTranscoder")?(s=a.a.extend({hasMDE:1,path:e.resolveUrl(t.get("key"),{useRelativeUrl:!0}),mediaIndex:0,partIndex:0},n),l="/music/:/transcode/universal/"+i):(s={identifier:t.get("identifier"),url:e.resolveUrl(o.key,{useRelativeUrl:!0}),format:"mp3",audioCodec:"libmp3lame",audioBitrate:320,audioSamples:44100},l="/music/:/transcode/generic.mp3"),this.logParams("Music",i,s),s=a.a.extend(s,e.getHeaders());var c=this.extensions[s.protocol];return"start"===i&&c&&(l+=c),
e.resolveUrl(l+"?"+this.serializeParams(s,e))}}},video:function(e,t,n,i,r,o){r||(r={}),o||(o="start");var s=e.id===t.server.id,u=t.server.get("cloud")?e:t.server,d=e.get("activeConnection"),p=d.get("isPrivate"),h=a.a.extend({hasMDE:1,path:u.resolveUrl(t.get("key"),{useRelativeUrl:s,appendToken:!s}),mediaIndex:Object(l.a)(t,n.id),partIndex:Object(c.a)(n,i.key),protocol:"hls",fastSeek:1,directPlay:0,directStream:1,subtitleSize:100,audioBoost:100,location:p?"lan":"wan"},r)
;h.path=h.path.replace(/^http[s]?:\/\/node.plexapp.com:[\d]+\//,e.url()),this.logParams("Video",o,h);var f=t.get("indirectHttpHeaders");f&&(h.httpCookies=f.Cookie,h.userAgent=f["User-Agent"]),h=a.a.extend(h,e.getHeaders());var v=this.extensions[h.protocol],g="/video/:/transcode/universal/"+o;return"start"===o&&v&&(g+=v),e.resolveUrl(g+"?"+this.serializeParams(h,e))}};t.a=u},function(e,t,n){"use strict";var i=n(2137),a=i.a.extend({name:"BasicVolatileStorage",initialize:function(){var e={}
;this.api={getItem:function(t){return e[t]},setItem:function(t,n){e[t]=n},removeItem:function(t){delete e[t]},clear:function(){for(var t in e)e.hasOwnProperty(t)&&delete e[t]}}},getStorage:function(){return this.api}});t.a=a},function(e,t,n){"use strict";function i(e){return e?r()("<p>"+e+"<p>").text():""}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.key,n=e.getModel,i=Object(a.a)(t),o="is"+i+"Pending",s="is"+i+"Populated",l=t?t+"Error":"error"
;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],c=n(t,i),u=(c.sessionAttrs,c.get(o));c.set(o,!0),e.fetch(t,i,a).then(function(){var e;c.set((e={},e[o]=!1,e[s]=!0,e[l]=null,e))},function(e){var t,n,i=e.aborting?(t={},t[o]=u,t):(n={},n[o]=!1,n[l]=Object(r.a)(e),n);c.set(i)})}}t.a=i;var a=(n(37),n(426)),r=n(171)},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c})
;var i=n(6),a=n.n(i),r=n(17),o=n(14),s={hubIdentifier:o.a.string,hubKey:o.a.string,key:o.a.string,style:o.a.string,subtype:o.a.string,title:o.a.string,type:o.a.string},l={friendlyName:o.a.string,machineIdentifier:o.a.string.isRequired,sourceTitle:o.a.string},c={identifier:o.a.string,providerIdentifier:o.a.string,title:o.a.string},u=r.a.extend({name:"HomeHubProviderModel",syncedAttrs:a()({},c)}),d=r.a.extend({name:"HomeHubServerModel",syncedAttrs:a()({},l)}),p=r.a.extend({name:"HomeHubModel",
syncedAttrs:a()({},s,{id:o.a.string.isRequired,directoryKey:o.a.string.isRequired}),syncedRelations:{provider:{relationClass:u},server:{relationClass:d}}});t.d=p},function(e,t,n){"use strict";function i(e,t){return t.some(function(t){return t.test(e)})}function a(e){for(var t in r){if(i(e,r[t]))return t}return e}t.a=a;var r={"home.continue":[/^(movie|tv)\.inprogress\.*/],"home.movies.recent":[/^movie\.recentlyadded\.*/],"home.music.recent":[/^music\.recent\.added\.*/],
"home.photos.recent":[/^photo\.recent\.*/],"home.ondeck":[/^tv\.ondeck\.*/],"home.television.recent":[/^tv\.recentlyadded\.*/],"home.videos.recent":[/^video\.recent\.*/]}},function(e,t,n){"use strict";function i(e){var t=e.match(/(^[^#]+)(?:#(.*$))?/),n=t[1],i=t[2],a=void 0===i?"":i,r=n.match(/(^[^\?]+)(\?.*$)?/),o=r[1],s=r[2],l=void 0===s?"":s,c=a.match(/(^[^\?]*)(\?.*$)?/),u=c[1],d=c[2];return{base:o,searchParams:l,hashPath:u,hashParams:void 0===d?"":d}}t.a=i},function(e,t,n){"use strict"
;function i(){return"edge"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){return"ie"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){return"openelec-rpi2"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){
return"ps3"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){return"ps4"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){return!1}t.a=i},function(e,t,n){var i=n(305).default,a=n(211);e.exports=a(i)},,function(e,t,n){"use strict";function i(e,t){var n=t&&!s,i=o[e]
;return n&&i&&i.length?(Object(r.a)("[MediaElement] Found existing media element to use. type: %s",e),i.shift()):(Object(r.a)("[MediaElement] Creating new media element. type: %s",e),document.createElement(e))}function a(e){var t=e.nodeName.toLowerCase();Object(r.a)("[MediaElement] Releasing media element to pool. type: %s",t),o[t]||(o[t]=[]),o[t].push(e)}t.a=i,t.b=a;var r=(n(37),n(32)),o={},s=!1},function(e,t,n){var i=n(2211),a=n(245)("iterator"),r=n(504)
;e.exports=n(120).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||r[i(e)]}},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(121),o=n(69),s=n(111),l=n(74),c=i.a.extend({name:"ChannelModel",context:["server","channel"],idAttribute:"key",url:function(){return this.id?this.id:this.identifierUrl(this.get("identifier"))},identifierUrl:function(e){return"/:/plugins/"+e+"/root"},syncedAttrs:{key:a.a.string,identifier:a.a.string,type:a.a.string,name:a.a.string,
title1:a.a.string,title2:a.a.string,message:a.a.string,summary:a.a.string,thumb:a.a.string,art:a.a.string,prefsKey:a.a.string,searchKey:a.a.string,installed:a.a.boolean,noCache:a.a.boolean,allowSync:a.a.boolean,hasPrefs:a.a.boolean,hasStoreServices:a.a.boolean,share:a.a.boolean,lastAccessedAt:a.a.integer},syncedRelations:{metadataList:{relationClass:r.default,attrs:function(e){return{containerKey:e.key?e.key:this.identifierUrl(e.identifier)}},options:function(e){return{channel:this,skipCache:!0}
}}},derivedAttrs:{title:function(){return this.get("name")||this.get("title2")||this.get("title1")}},augmentResponseText:function(e,t){return t===o.a.xml?Object(s.b)(e,{includeDirectories:!0}):e},augmentResponse:function(e){if(this.has("key")&&(e.key=this.get("key")),"none"===e.key&&delete e.key,e.key){var t=e.key.match(/^\/(\w+)\//);t&&(e.type=t[1])}e.title&&(e.name=e.title);for(var n=l.a.parseArray(e.Metadata),i=n.length-1;i>=0;i--){var a=n[i];if(a.settings||a.search){
e[a.settings?"prefsKey":"searchKey"]=a.key,n.splice(i,1)}}return e.Metadata=n,e.metadataList=e,e}});t.a=c},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(420),u=n.n(c),d=n(13),p=n.n(d),h=n(0),f=n.n(h),v=n(75),g=n(19),m=n(16),y=n(2221),b=n(362),I=n(38),S=n(45),M=n(36),D=n(3),C=n(835),j=n(1208),P=n(182),O=n(837),T=n(48),E=n(2267),w=n(2272),A=n(2286),x=n(2346),N=n(2893),L=n(2908),k=n(322),R=T.a.extend({initialize:function(e){
var t=this,n=e.serverID,i=e.settingsSection,a=e.settingsGroup,r=m.c("appModel"),o=r.get("servers");this.options={settingsSection:i,settingsGroup:a,machineIdentifier:n,isViewDataPending:!0},o.findServer(n).done(this.whenRendered(function(n){return Object(M.a)(),r.set("primaryServer",n),t.listenTo(n,"change:isConnected",t.onServerIsConnectedChanged),
n.get("isConnected")?!n.get("shared")||"status"===i&&"sync"===a?void("settings"===i||"manage"===i?t.initializeServerSettingsView(n,e):"status"===i&&"alerts"===a?t.initializeAlertsView(n):"status"===i&&"conversion"===a?t.initializeConversionView(n):"status"===i&&"sync"===a?t.initializeSyncView(n,e):"status"===i&&"now-playing"===a?t.initializeNowPlayingView(n):"status"===i&&"server-dashboard"===a?t.initializeServerDashboardView(n):(t.options.isViewDataPending=!1,
t.render())):void Object(P.a)("sync",{serverID:n.id}):(t.options.isViewDataPending=!1,void t.render())})).fail(this.whenRendered(function(){u()(t.options,{viewDataErrorMessage:Object(D.default)("The server you're trying to access doesn't seem to exist."),isViewDataPending:!1}),t.render()}))},initializeServerSettingsView:function(e,t){var n=this,i=t.group;this.options.settingsGroup=i;var a=e.get("pmp"),r=a.get("settings"),o=new y.a({key:"/accounts/1"},{server:e
}),s=a.get("cloudAccount"),l=new b.a([],{server:e,url:"/system/:/prefs"}),c=p.a.when(r.fetch(),o.fetch({scope:"page"}),s.fetch({scope:"page"}),l.fetch({scope:"page"}));c.done(this.whenRendered(function(){u()(n.options,{model:e,collection:r,account:o,cloudAccount:s,channelSettings:l,subset:"server",group:i,isViewDataPending:!1}),n.render()})),c.fail(this.whenRendered(function(){u()(n.options,{viewDataErrorMessage:Object(D.default)("Server settings are unavailable."),isViewDataPending:!1}),
n.render()}))},initializeAlertsView:function(e){var t=e.get("pmp");u()(this.options,{model:e,collection:t.get("alerts"),subset:"alerts",contentView:E.a,isViewDataPending:!1}),this.render()},initializeConversionView:function(e){var t=this,n=e.get("pmp");this.options.contentView=w.a;var i=new j.a([],{server:e,allowInCache:!0}),a=n.get("backgroundTranscodeJobs"),r=new C.a([],{server:e,allowInCache:!0
}),o=void 0,s=void 0,l=p.a.when(i.populate(),a.fetch(),n.get("settings").fetch(),r.populate()).then(function(){o=i.first();var e=r.first();return o&&e?(s=e.get("children"),p.a.when(o.fetch(),s.fetch())):p.a.Deferred().reject().promise()});l.done(this.whenRendered(function(){u()(t.options,{model:e,playQueue:o,transcodeJobs:a,generators:s,subset:"conversion",isViewDataPending:!1}),t.render()})),l.fail(this.whenRendered(function(){u()(t.options,{
viewDataErrorMessage:Object(D.default)("The conversion queue is unavailable."),isViewDataPending:!1}),t.render()}))},initializeSyncView:function(e,t){var n=this,i=t.deviceID,a=t.routeOrigin;u()(this.options,{contentView:N.a,sidebarKey:"syncedContent"===a?Object(O.b)(e.id):null});var r=m.c("appModel"),o=r.get("user"),s=o.get("pmp").get("devices"),l=s.populate();l.done(this.whenRendered(function(){var t=s.filterSyncDevices(),r=i?t.get(i):null;u()(n.options,{model:e,collection:t,selectedDevice:r,
subset:"sync",routeOrigin:a,isViewDataPending:!1}),n.render()})),l.fail(this.whenRendered(function(){u()(n.options,{viewDataErrorMessage:Object(D.default)("Sync status is unavailable."),isViewDataPending:!1}),n.render()}))},initializeNowPlayingView:function(e){var t=e.get("pmp");u()(this.options,{model:e,collection:t.get("sessions"),subset:"now-playing",contentView:A.a,isViewDataPending:!1}),this.render()},initializeServerDashboardView:function(e){u()(this.options,{server:e,
subset:"server-dashboard",contentView:x.a,isViewDataPending:!1}),this.render()},component:function(e){var t=e.machineIdentifier,n=e.settingsSection,i=e.settingsGroup,r=e.sidebarKey,s=l()(e,["machineIdentifier","settingsSection","settingsGroup","sidebarKey"]),c=Object(I.a)(S.m,t),u=r||Object(O.a)(t,n,i);return o()(v.a,{},void 0,o()(k.a,{selectedKey:u,settingsSection:n,settingsGroup:i,selectedServerEntityID:c}),f.a.createElement(L.a,a()({serverEntityID:c,settingsSection:n,settingsGroup:i},s)))},
onServerIsConnectedChanged:function(e,t){t&&g.a.trigger("navigate:refresh")}});t.a=R},,function(e,t,n){"use strict";var i=n(246),a=n(365),r=n(2225),o=i.a.extend({model:r.a,url:"/playQueues?type="+a.a.LOCAL,parse:function(e){return this.convert(e,"PlayQueue")}});t.a=o},function(e,t,n){"use strict";var i=n(59),a=n.n(i),r=n(10),o=n.n(r),s=n(17),l=n(14),c=n(247),u=n(94),d=n(2226),p=n(300),h=n(74),f=n(38),v=n(45),g=n(159),m=n(2233),y=s.a.extend({name:"PlayQueueItemModel",
context:["server","provider","identifier","mediaTagPrefix","mediaTagVersion"],entityType:v.j,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(f.a)(this.entityType,e.playQueueItemID,this.server.entityID())},idAttribute:"playQueueItemID",cache:new p.a,cacheKey:function(e){return this.server&&this.server.getScopedKey(e.playQueueItemID)},sessionAttrs:{isPlayQueueItem:l.a.boolean},syncedAttrs:{playQueueItemID:l.a.string,queueIndex:l.a.integer,
key:l.a.string,ratingKey:l.a.string,type:l.a.string,subtype:l.a.string,advertisement:l.a.boolean,allowSkipAfter:l.a.integer,librarySectionID:l.a.string,hasPremiumLyrics:l.a.boolean,syncItemId:l.a.integer,generatorID:l.a.integer,generatorType:l.a.integer,clientIdentifier:l.a.string,target:l.a.string},syncedRelations:{metadataItem:{relationClass:u.a,deferred:!0},lyricsStreams:{relationClass:d.a,deferred:!0},vast:{relationClass:m.a,deferred:!0}},sessionRelations:{postPlay:{relationClass:c.default,
options:function(){return{url:"hubs/metadata/"+this.get("metadataItem").id+"/postplay"}}}},defaults:{isPlayQueueItem:!0},augmentResponse:function(e){var t=o.a.pick(e,a()(this.syncedAttrs));e.Vast&&(t.vast=e.Vast),t.metadataItem=e;var n=o.a.first(h.a.parseArray(e.Media));if(n){var i=o.a.first(h.a.parseArray(n.Part));if(i){var r=h.a.parseArray(i.Stream);if(r){var s=g.a.get("lyrics");t.lyricsStreams=o.a.filter(r,function(e){return h.a.parseInteger(e.streamType)===s.id})}}}return t}});t.a=y
},function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return!!e}).join("--")}t.a=i},,,,,,,,,,function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(2274),o=r.a.extend({initialize:function(e){this.playQueue=e.playQueue,this.includeSelectedItem=e.includeSelectedItem,this.addFilter(a.a.bind(this.filterUpNext,this)),this.listenForUpNextChanges()},listenForUpNextChanges:function(){
var e=a.a.debounce(this.onPlayQueueChange),t=["change:playQueueSelectedItemID","change:playQueueLastAddedItemID"];this.listenTo(this.playQueue,t.join(" "),e),this.listenTo(this.playQueue.get("collection"),"change:queueIndex",e)},filterUpNext:function(e){var t=this.superset.indexOf(e),n=this.playQueue.getUpNextRange(),i=n.start,a=n.end;return this.includeSelectedItem||(i+=1),t>=i&&t<=a},onPlayQueueChange:function(){this.refilter()}});t.a=o},function(e,t,n){"use strict"
;var i=n(87),a=n(22),r=n(370),o=n(3),s=n(1222),l=n(429),c=n(2281),u=n.n(c),d=a.a.Layout.extend({mixins:[l.a],className:"conversion-status",template:u.a,regions:{progressBarRegion:".progress-bar-region"},initialize:function(e){this.initialState=e.initialState,this.initialErrorMessage=e.initialErrorMessage,this.generator=e.generator,this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.progressModel=new i.c.Model({progress:0,remaining:0,speed:0})},states:{pending:{
onEnter:function(){this.$el.addClass("pending")},onExit:function(){this.$el.removeClass("pending")}},converting:{onEnter:function(){this.$el.addClass("converting")},onExit:function(){this.$el.removeClass("converting")}},processed:{onEnter:function(){this.$el.addClass("processed")},onExit:function(){this.$el.removeClass("processed")}},disabled:{onEnter:function(){this.$el.addClass("disabled")},onExit:function(){this.$el.removeClass("disabled")}},error:{onEnter:function(){
this.$el.addClass("error")},onExit:function(){this.$el.removeClass("error")}}},bindingsModel:"progressModel",bindings:{".conversion-status-converting-label":{model:"pausedSetting",modelAttribute:"value",formatter:function(e){return e?Object(o.default)("Paused"):Object(o.default)("Converting")}},".conversion-status-pending-label":{model:"pausedSetting",modelAttribute:"value",formatter:function(e){return e?Object(o.default)("Paused"):Object(o.default)("Waiting")}},
".conversion-status-converting-speed":{modelAttribute:"speed",autohide:!0,formatter:function(e){if(e){var t=Math.round(10*e)/10;return t>10&&(t=Math.round(t)),"("+t+"x)"}}},".conversion-status-converting-percentage":{modelAttribute:"progress",formatter:function(e){return Math.round(e)+"%"}},".conversion-status-converting-progress-separator":{modelAttribute:"remaining",manual:!0,autohide:function(e){return e&&this.progressModel.get("speed")}},".conversion-status-converting-remaining":{
modelAttribute:"remaining",autohide:!0,formatter:function(e){if(this.progressModel.get("speed"))return Object(r.a)(e)}}},serializeData:function(){return{initialErrorMessage:this.initialErrorMessage}},findTranscodeJob:function(){return this.transcodeJob=this.transcodeJobs.find(function(e){
var t=this.model.get("ratingKey"),n=this.generator?this.generator.id:this.model.get("generatorID"),i=this.model.get("syncItemId"),a=t&&t===e.get("ratingKey"),r=n&&n===e.get("generatorID"),o=i&&i===e.get("syncItemId");return a&&(r||o)},this),this.transcodeJob&&(this.stopListening(this.transcodeJobs),this.enterState("converting"),this.progressModel.set({progress:this.transcodeJob.get("progress"),speed:this.transcodeJob.get("speed"),remaining:this.transcodeJob.get("remaining")}),
this.listenTo(this.transcodeJob,{remove:this.onTranscodeJobRemove,"change:progress":this.onTranscodeProgressChange,"change:speed":this.onTranscodeSpeedChange,"change:remaining":this.onTranscodeRemainingChange})),this.transcodeJob},onRender:function(){this.enterState(this.initialState||"pending"),this.findTranscodeJob()||this.listenTo(this.transcodeJobs,"reset add",this.findTranscodeJob),this.progressBarRegion.append(new s.a({model:this.progressModel,size:30,lineWidth:3}))},
onTranscodeJobRemove:function(e){this.enterState("pending")},onTranscodeProgressChange:function(e,t){this.progressModel.set("progress",t)},onTranscodeSpeedChange:function(e,t){this.progressModel.set("speed",t)},onTranscodeRemainingChange:function(e,t){this.progressModel.set("remaining",t)}});t.a=d},function(e,t,n){"use strict";var i=n(22),a=n(2280),r=n.n(a),o=i.a.ItemView.extend({className:"circle-progress",template:r.a,size:30,lineWidth:5,strokeColor:"#cc7b19",hasSize:!1,ui:{
svg:".circle-progress-bar",svgCircle:".circle-progress-bar circle"},bindings:{".circle-progress-text":{modelAttribute:"text"}},modelEvents:{"change:progress":"onProgressChange"},initialize:function(e){this.size=e.size||this.size,this.lineWidth=e.lineWidth||this.lineWidth,this.strokeColor=e.strokeColor||this.strokeColor,this.size&&(this.$el.width(this.size),this.$el.height(this.size))},drawProgressBar:function(){var e=this.size,t=e/2,n=t-this.lineWidth,i=Math.PI*(2*n)
;this.hasSize||(this.ui.svg.attr("width",e),this.ui.svg.attr("height",e),this.ui.svgCircle.attr("r",n),this.ui.svgCircle.attr("cx",t),this.ui.svgCircle.attr("cy",t),this.ui.svgCircle.attr("stroke-dasharray",i),this.ui.svgCircle.css("stroke-width",this.lineWidth),this.ui.svgCircle.css("stroke",this.strokeColor),this.hasSize=!0);var a=this.model.get("progress"),r=(100-a)/100*i;this.ui.svgCircle.css("stroke-dashoffset",r)},onRender:function(){this.drawProgressBar()},onProgressChange:function(){
this.drawProgressBar()}});t.a=o},function(e,t,n){"use strict";function i(e,t,n){var i=Object(a.a)(e,t);if(n=Object(o.a)(i,n)){var s=Object(r.a)(e,i,t);return"/library/parts/"+i.id+"/indexes/"+n+"/"+s}}var a=n(1224),r=n(1225),o=n(1226);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=void 0;if(e.Part.length>1)for(var i=0,a=0,o=e.Part.length;a<o&&(n=e.Part[a],n.duration)&&!((i+=n.duration)>t);a++);else n=r.a.first(e.Part);return n}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict"
;function i(e,t,n){var i=n;if(e.Part.length>1)for(var a=0,r=e.Part.length;a<r;a++){var o=e.Part[a];if(!o.duration)break;if(t.key===o.key)break;i-=o.duration}return i}t.a=i},function(e,t,n){"use strict";function i(e,t){if(e.indexes){var n=e.indexes.split(",");if(n.length)return r.a.indexOf(n,t)>-1?t:n[0]}}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return e?e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}):""}t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.product;return r.hasOwnProperty(t)||(r[t]=a.some(function(e){return e.test(t)})),r[t]}t.a=i;var a=[/alexa/i,/sonos/i],r={}},function(e,t,n){"use strict";function i(e,t,n){var i=n.path,a=n.model,r=n.attr,o=void 0===r?"key":r;if(Object(h.a)(i||a,"A path or a model is required to build a source URI"),t.get("isUniversal")){var s=a&&a.get("source")||Object(m.a)(e.server.get("machineIdentifier"),e.get("identifier")),l=i||a.get(o)
;return f.join([s,l])}return i||g.a.uri(a)}function a(e){return e.metadataItemModel?r(e):e.metadataItemKey?o(e):e.metadataItemModels&&e.metadataItemModels.length?s(e):e.metadataListModel?l(e):p.a.Deferred().reject().promise()}function r(e){
var t=e.playQueueModel,n=e.providerModel,a=e.playlistModel,r=e.metadataItemModel,o=e.containerKey,s=e.shuffle,l=e.playAll,u=t.get("isUniversal"),d=r.get("type"),h=r.get("subtype"),g=d===b.k,m=d===b.j,I=d===b.e,S=d===b.g,M=d===b.c,D=d===b.l,C=!!a||r.get("isPlaylist"),j=r.get("isExtra"),P=!!r.get("radio"),O=c(e);if((g||m||I||h===y.b)&&(O.continuous=1),(g||m)&&!l&&!s){var T=g?r:new v.a({key:r.get("parentKey")},{server:r.server,provider:r.providerModel});return T.fetch({merge:!0,data:{
includeOnDeck:"1"}}).then(function(){var e=T.get("onDeck"),a=e&&g,o=e&&m&&e.get("parentRatingKey")===r.get("ratingKey");return a||o?(O.uri=i(n,t,{model:e}),O):m?r.get("children").populate().then(function(){var e=r.get("children").get("metadataItems"),a=e.findWhere(function(e){return!e.get("viewCount")});return O.uri=i(n,t,{model:a||e.first()}),O}):(O.uri=i(n,t,{model:r}),O)})}return C?a?(u&&(O.uri=i(n,t,{model:a})),O.playlistID=a.get("ratingKey"),O.key=r.get("key")):(u&&(O.uri=i(n,t,{model:r})),
O.playlistID=r.get("ratingKey")):(D||S||M&&!j)&&o&&!O.continuous?(O.uri=i(n,t,{path:u?o:"library:///directory/"+encodeURIComponent(o)}),O.key=r.get("key")):O.uri=P&&u?i(n,t,{path:f.join(r.get("key"),{includeSharedContent:1})}):i(n,t,{model:r}),p.a.Deferred().resolve(O).promise()}function o(e){var t=e.providerModel,n=e.playQueueModel,a=e.metadataItemKey,r=n.get("isUniversal"),o=c(e);return o.uri=i(t,n,{path:r?a:"library:///item/"+encodeURIComponent(a)}),p.a.Deferred().resolve(o).promise()}
function s(e){var t=c(e);return t.uri=g.a.uri(null,{items:e.metadataItemModels}),p.a.Deferred().resolve(t).promise()}function l(e){var t=e.providerModel,n=e.playQueueModel,a=e.metadataListModel,r=c(e);return r.uri=i(t,n,{model:a,attr:"containerKey"}),p.a.Deferred().resolve(r).promise()}function c(e){return{type:e.playQueueModel.get("type"),shuffle:e.shuffle?1:void 0,next:e.next?1:void 0,extrasPrefixCount:e.extrasPrefixCount}}function u(e){var t=e.playQueueModel
;if(t.get("isLocal"))return Object(I.a)(e).then(function(){return Object(S.a)(t)});var n=t.isNew()?"POST":"PUT";return a(e).then(function(e){return Object(S.a)(t,{params:e,type:n}).then(null,function(){return p.a.Deferred().reject().promise()})})}t.a=u;var d=n(13),p=n.n(d),h=n(37),f=n(18),v=n(94),g=n(268),m=n(1230),y=n(106),b=n(27),I=n(2319),S=n(434)},function(e,t,n){"use strict";function i(e,t){return e===a.a?"provider://"+t:"server://"+e+"/"+t}t.a=i;var a=n(90)},function(e,t,n){"use strict"
;function i(e){var t=e.providerModel,n=e.playQueueID,i=e.playQueueType,s=e.playQueueRepeat,l=e.playQueueOwn,c=void 0===l||l,u=t&&t.get("features"),d=u&&u.get(o.b.PLAY_QUEUE),p=!!d&&d.get("flavor")===o.c.UNIVERSAL;return d?new r.a({playQueueID:n,key:d.get("key"),type:i,repeat:s,own:c,isUniversal:p},{server:t.server,provider:t}):new a.a({playQueueID:n,type:i},{server:t.server,provider:t})}t.a=i;var a=(n(37),n(2321)),r=n(1232),o=n(64);n(303)},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=n(836),o=n(69),s=n(111),l=i.a.extend({name:"PlayQueueModel",context:["server","provider","identifier","mediaTagPrefix","mediaTagVersion"],responseContext:["identifier","mediaTagPrefix","mediaTagVersion"],idAttribute:"playQueueID",hasResponseOnSave:!0,urlRoot:function(){return this.get("key")},sessionAttrs:{key:a.a.string,type:a.a.string,repeat:a.a.boolean,own:a.a.boolean,isUpdatePending:a.a.boolean,isUniversal:a.a.boolean},syncedAttrs:{allowShuffle:a.a.boolean,
playQueueID:a.a.string,playQueueSelectedItemOffset:a.a.integer,playQueueSelectedItemID:a.a.string,playQueueSelectedMetadataItemID:a.a.string,playQueueLastAddedItemID:a.a.string,playQueueShuffled:a.a.boolean,playQueueSourceURI:a.a.string,playQueueTotalCount:a.a.integer,playQueueVersion:a.a.integer},syncedRelations:{playQueueItems:{relationClass:r.a,rootPropertyName:"Metadata"}},derivedAttrs:{canShuffle:function(){var e=this.get("playQueueSourceURI")||"",t=-1!==e.indexOf("library://x/station")
;return!this.get("playQueueLastAddedItemID")&&this.get("allowShuffle")&&!t},currentIndex:function(){var e=this.get("playQueueItems"),t=this.get("playQueueSelectedItemID"),n=e.get(t);return e.indexOf(n)},length:function(){var e=this.get("playQueueTotalCount")||0,t=this.get("playQueueItems")||[];return Math.max(e,t.length)}},defaults:{repeat:!1,own:!0,isUpdatePending:!1,isUniversal:!1,allowShuffle:!0},augmentResponseText:function(e,t){return t===o.a.xml?Object(s.b)(e):e},
augmentResponse:function(e,t){var n=this;return this.responseContext.forEach(function(t){var i=e[t];void 0!==i&&n.setContext(t,i)}),e}});t.a=l},function(e,t,n){"use strict";function i(){var e=Date.now(),t=Object(r.c)("sessionStats");a.a.debug("[Metrics] Updating session last interaction time"),t.save("lastInteractionTime",e)}var a=n(32),r=n(16);t.a=i},function(e,t,n){"use strict";function i(e,t){if(null===e||void 0===e||s()(e))return"";var n=parseInt(e,10),i=l[t||"h264"]
;return r()(n)&&r()(i)?(n/i).toFixed(1):String(e)}var a=n(2331),r=n.n(a),o=n(2334),s=n.n(o),l={h264:10,hevc:30};t.a=i},function(e,t,n){"use strict";function i(e){return e&&a.a.parseBoolean(e)?Object(r.default)("Yes"):Object(r.default)("No")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(74),r=n(3);t.default=i},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(95),o=n(2355),s=a.a.extend({name:"BandwidthStatisticsCollection",
context:["server","accountID","deviceID","timespan","after","lan"],model:o.a,responseType:function(){return Object(r.a)(this.server)},url:function(){var e={};return null!=this.accountID&&(e.accountID=this.accountID),null!=this.deviceID&&(e.deviceID=this.deviceID),null!=this.timespan&&(e.timespan=this.timespan),null!=this.after&&(e.at=this.after),null!=this.lan&&(e.lan=this.lan),i.join("/statistics/bandwidth",e).replace("at=","at>=")}});t.a=s},function(e,t,n){"use strict"
;var i=n(18),a=n(17),r=n(95),o=n(2356),s=n(2358),l=a.a.extend({name:"MediaStatisticsModel",context:["server","accountID","deviceID","timespan","after","count"],responseType:function(){return Object(r.a)(this.server)},url:function(){var e={};return null!=this.accountID&&(e.accountID=this.accountID),null!=this.deviceID&&(e.deviceID=this.deviceID),null!=this.timespan&&(e.timespan=this.timespan),null!=this.after&&(e.at=this.after),null!=this.count&&(e.count=this.count),
i.join("/statistics/media",e).replace("at=","at>=")},syncedRelations:{users:{relationClass:s.a,rootPropertyName:"Account"},statistics:{relationClass:o.a,rootPropertyName:"StatisticsMedia"}}});t.a=l},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(69),o=n(95),s=n(111),l=n(2360),c=a.a.extend({name:"TopPlayedCollection",context:["server","accountID","type","viewedAt","limit"],model:l.a,responseType:function(){return Object(o.a)(this.server)},url:function(){var e={}
;null!=this.accountID&&(e.accountID=this.accountID),null!=this.type&&(e.type=this.type),null!=this.viewedAt&&(e.viewedAt=this.viewedAt),null!=this.limit&&(e.limit=this.limit);var t=i.join("/library/all/top",e);return t=t.replace("viewedAt=","viewedAt>="),t},augmentResponseText:function(e,t){return t===r.a.xml?Object(s.b)(e):e}});t.a=c},,,,,,function(e,t,n){"use strict";function i(e){var t=r.a.Deferred();return e.then(t.resolve,t.reject,t.notify),{promise:t.promise(),cancel:function(){t.reject({
isCanceled:!0})}}}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.src,n=e.style,i=e.width,a=e.height,o=e.backgroundSize,l=e.backgroundPosition,c=e.backgroundRepeat,d=s()(e,["src","style","width","height","backgroundSize","backgroundPosition","backgroundRepeat"]),p=r()({backgroundImage:"url("+t+")",backgroundSize:o,backgroundPosition:l,backgroundRepeat:c,width:i,height:a},n);return u.a.createElement("div",r()({style:p},d))}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c);i.defaultProps={backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},t.a=i},function(e,t,n){"use strict";function i(e){return r.a.createElement("img",e)}t.a=i;var a=n(0),r=n.n(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(275)),f=n(56),v=n(47),g=n(233),m=n(52),y=n(2398),b=n.n(y),I=function(e){function t(n,i){
o()(this,t);var a=l()(this,e.call(this,n,i));return a._menuButtonID=Object(v.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=e.title,r=e.isMenuOpen,o=e.onPress,s=e.onMenuClose;return a()(p.Fragment,{},void 0,a()(h.a,{className:t,id:this._menuButtonID,size:m.LARGE,direction:r?g.UP:g.DOWN,isSelected:!1,onPress:o},void 0,i),a()(f.a,{target:this._menuButtonID,isOpen:r,onMenuClose:s},void 0,n))},t}(p.Component);I.defaultProps={
className:b.a.menuButton},t.a=I},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1249),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(129),g=n.n(v),m=n(638),y=(n(531),n(28)),b=(n(37),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onOpen=function(){a._open()},a.onClose=function(){a._close()},a.onPopperUpdate=function(e){var t=a.props.onReposition;if(t){t(e.placement.split("-")[0])}},
a._ref=n.forwardedRef||f.a.createRef(),a._popper=null,a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){this._popper&&this._popper.scheduleUpdate()},t.prototype.componentWillUnmount=function(){this._close()},t.prototype._open=function(){var e=this.props,t=e.target,n=e.options,i=document.getElementById(t)||document.getElementsByName(t)[0]
;this._popper=new d.default(i,g.a.findDOMNode(this._ref.current),a()({},n,{onUpdate:this.onPopperUpdate})),this._popper.scheduleUpdate()},t.prototype._close=function(){this._popper&&(this._popper.destroy(),this._popper=null)},t.prototype.render=function(){return f.a.createElement(m.a,a()({},this.props,{ref:this._ref,onOpen:this.onOpen,onClose:this.onClose}))},t}(h.Component)),I={options:{placement:"bottom-start"}};b.defaultProps=I,t.a=f.a.forwardRef(function(e,t){
return f.a.createElement(b,a()({},e,{forwardedRef:t}))})},,function(e,t){e.exports={gapSmall:"15px",gapMedium:"30px",gapLarge:"60px",navigationHeaderHeight:"60px",navigationUserMenuImageSize:"34px",pageHeaderHeight:"60px",breadcrumbMargin:"25px",menuSmallWidth:"120px",menuMediumWidth:"180px",menuLargeWidth:"220px",menuPadding:"8px",menuItemTopPadding:"4px",menuItemSidePadding:"20px",toolbarButtonWidth:"50px",posterTitlePadding:"10px",posterTitleHeight:"20px",searchHubTitleHeight:"18px",
searchResultWidth:"346px",searchResultHeight:"50px",sidebarWidth:"240px",sidebarRightGutterWidth:"15px",sidebarLeftGutterWidth:"25px",tableCellPadding:"20px",tableHeaderHeight:"40px",tableRowHeight:"40px",tableTitleHeight:"60px",inputBorderRadius:"4px",autosuggestSuggestionRadius:"4px",smallArrowWidth:"6px",mediumArrowWidth:"8px",largeArrowWidth:"10px",tooltipArrowSize:"6px",breakpointMobileNarrow:"320px",breakpointExtraSmall:"480px",breakpointSmall:"768px",breakpointMedium:"992px",
breakpointLarge:"1200px",modalBodyPadding:"30px"}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return u});var i=n(3),a=n(230),r="all",o="remote",s="local",l=Object(a.a)(["key"],[{key:r,title:function(){return Object(i.default)("All")}},{key:o,title:function(){return Object(i.default)("Remote")}},{key:s,title:function(){return Object(i.default)("Local")}
}]),c=l.get,u=l.getAll},,,,,,function(e,t,n){"use strict";function i(e){return e.every(function(e){return e.visible})}function a(e){return function(t){return y.a.createElement(S.a,v()({},t,e))}}function r(e){return function(t){return y.a.createElement(I.a,v()({},t,e))}}var o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(6),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(855),I=n(2813),S=n(1382),M=n(916),D=n(2817),C=n.n(D),j=function(e){function t(n,i){c()(this,t)
;var a=d()(this,e.call(this,n,i));return a.onMouseEnter=function(e){a.setState({hoveredDataKey:e})},a.onMouseLeave=function(){a.setState({hoveredDataKey:null})},a.renderLegend=function(){var e=a.props,t=e.series,n=e.onLegendPress,i=a.state.hoveredDataKey;return s()("div",{className:C.a.legend},void 0,t.map(function(e){var t=i&&i!==e.dataKey,r=!e.selected,o=!e.visible;return s()(M.a,{className:t&&r||o?C.a.translucentLegendLabel:C.a.legendLabel,dataKey:e.dataKey,title:e.title,labelColor:e.color,
onPress:n,onMouseEnter:a.onMouseEnter,onMouseLeave:a.onMouseLeave},e.dataKey)}))},a.state={hoveredDataKey:null},a}return h()(t,e),t.prototype.render=function(){
var e=this,t=this.props,n=t.className,o=t.width,l=t.height,c=t.series,u=t.data,d=t.xAxisKey,p=t.stacked,h=t.isAnimationActive,f=t.chartMargin,v=t.gridLinesStyles,g=t.barGap,m=t.legendHeight,I=t.tooltipLabelFormatter,S=t.tooltipValueFormatter,M=t.xAxisStyle,D=t.xAxisPadding,j=t.xAxisTick,P=t.xAxisTickMargin,O=t.xAxisTickLineStyle,T=t.xAxisTickFormatter,E=t.yAxisWidth,w=t.yAxisStyle,A=t.yAxisPadding,x=t.yAxisTick,N=t.yAxisTickMargin,L=t.yAxisTickLineStyle,k=t.yAxisTickFormatter,R=this.state.hoveredDataKey,z=c.map(function(e){
return e.dataKey});return s()(b.ResponsiveContainer,{className:n,width:o,height:l},void 0,s()(b.BarChart,{data:u,margin:f},void 0,y.a.createElement(b.CartesianGrid,v),s()(b.XAxis,{axisLine:M,dataKey:d,padding:D,tick:j,tickLine:O,tickMargin:P,minTickGap:0,tickFormatter:T}),s()(b.YAxis,{axisLine:w,padding:A,tick:x,tickLine:L,tickMargin:N,tickCount:6,tickFormatter:k,width:E}),s()(b.Tooltip,{cursor:!1,isAnimationActive:!1,content:a({series:c,labelFormatter:I,valueFormatter:S})}),c.map(function(t,n){
return s()(b.Bar,{className:R&&R!==t.dataKey&&i(c)?C.a.translucentBar:C.a.bar,dataKey:t.dataKey,shape:r({barGap:p?g:0,data:u,dataKey:d,seriesOrdering:z,seriesIndex:n}),radius:2,fill:t.color,isAnimationActive:h,stackId:p?"stacked":null,onMouseEnter:e.onMouseEnter.bind(null,t.dataKey),onMouseLeave:e.onMouseLeave},t.dataKey)}),s()(b.Legend,{height:m,content:this.renderLegend,wrapperStyle:{paddingLeft:E+"px"}})))},t}(m.Component);j.defaultProps={xAxisKey:"date",stacked:!0,isAnimationActive:!0,
chartMargin:{top:15,right:10,bottom:10,left:0},gridLinesStyles:{horizontal:!0,vertical:!1,stroke:"rgba(255, 255, 255, 0.1)"},barGap:2,legendHeight:20,xAxisStyle:!1,xAxisPadding:{left:0,right:0},xAxisTick:{fill:"rgba(255, 255, 255, 0.45)",fontSize:"10px"},xAxisTickMargin:15,xAxisTickLineStyle:{fill:"rgba(255, 255, 255, 0.1)",strokeWidth:5},yAxisWidth:60,yAxisStyle:!1,yAxisPadding:{top:0,bottom:0},yAxisTick:{fill:"rgba(255, 255, 255, 0.45)",fontSize:"10px"},yAxisTickMargin:5,yAxisTickLineStyle:!1
},t.a=j},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){var t=e.active,n=e.label,i=e.payload,a=e.series,o=e.labelFormatter,s=e.valueFormatter;if(!t||!i)return null;var l=o?o(n):n,d=i.reduce(function(e,t){return e+t.value},0);return r()("div",{className:p.a.container},void 0,r()("div",{className:p.a.label},void 0,l),r()("div",{className:p.a.separator
}),r()("div",{},void 0,r()("div",{className:p.a.values},void 0,i.map(function(e){var t=a.find(function(t){return t.dataKey===e.dataKey}).title;return r()("div",{},e.dataKey,r()(u.a,{className:p.a.LegendLabel,title:t,labelColor:e.color}),h,s(e.value))})),r()("div",{className:p.a.separator}),r()("div",{className:p.a.total},void 0,Object(c.default)("Total"),f,s(d))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(3),u=n(916),d=n(2816),p=n.n(d),h=r()(l.b,{}),f=r()(l.b,{});t.a=i
},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e.sessions||[]})}t.a=i;var a=n(4),r=(n.n(a),n(917))},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(r.a,function(e,t){return t.sessionEntityID},function(e,t){return e[t]})}var a=n(4),r=(n.n(a),n(2839));t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID,i=t.providerEntityID,a=n+":"+i
;return v[a]||(v[a]=Object(u.a)(Object(r.createSelector)(Object(p.a)(),Object(d.a)(),function(e,t){var n=e&&e.activeConnection&&e.activeConnection.uri;if(!n)return f;var i="/photo/:/transcode",a=!1,r=!1,o=void 0;if(t){var l=s.a.findWhere(t.features,{type:c.b.IMAGE_TRANSCODER});l&&(i=l.key,a=Object(h.a)(i),r=l.public)}return o=a?t&&t.baseURL?t.baseURL:n:"",{accessToken:e.accessToken,baseUrl:o,isAbsoluteTranscodeKey:a,isPublicTranscoder:r,transcodeKey:i,uri:n}}),function(e){return e})),v[a](e,t)}
function a(){return Object(r.createSelector)(function(e,t){return t.url},i,function(e,t){if(e&&t!==f){var n=t.accessToken,i=t.baseUrl,a=t.isAbsoluteTranscodeKey,r=t.isPublicTranscoder,o=t.transcodeKey,s=t.uri,c=Object(h.a)(e)?e:l.join([i,e],{"X-Plex-Token":n}),u=a?o:[s,o];return l.join(u,{url:c,"X-Plex-Token":r?void 0:n})}})}t.a=a;var r=n(4),o=(n.n(r),n(10)),s=n.n(o),l=n(18),c=n(64),u=n(161),d=n(54),p=n(35),h=n(516),f={},v={}},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.type,i=e.icon,a=e.width,o=e.height,s=e.isFolder;return r()(c.a,{className:(t||"")+" "+(d.a.placeholderIcon||""),type:n,icon:s?l.b:i,width:a,height:o})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(921)),c=n(2844),u=n(2845),d=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){return e=parseInt(e,10),e?e<2?Object(a.default)("Mono"):e<3?Object(a.default)("Stereo"):(e-1).toString()+".1":""}var a=n(3);t.a=i},function(e,t,n){"use strict";function i(e){
return e?"dca"===e?"DTS":e.toUpperCase():""}t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3)),f=n(103),v=n(1247),g=n(2865),m=n.n(g),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMenuButtonPress=function(){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},a.onSelect=function(e){a.setState({isMenuOpen:!1},function(){
a.props.onSelect(e)})},a.state={isMenuOpen:!1},a}return u()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.users,i=t.selectedUser,r=this.state.isMenuOpen;return a()(v.a,{className:m.a.menuButton,title:i?i.name||i.title||Object(h.default)("Unknown User"):Object(h.default)("All Users"),isMenuOpen:r,onPress:this.onMenuButtonPress,onMenuClose:this.onMenuClose},void 0,a()(f.a,{value:null,isSelected:!i,onSelect:this.onSelect},void 0,Object(h.default)("All Users")),n.map(function(t){
return a()(f.a,{menuLabelClassName:m.a.menuLabel,value:t.id,isSelected:i&&i.id===t.id,onSelect:e.onSelect},t.id,t.name||t.title||Object(h.default)("Unknown User"))}))},t}(p.Component);t.a=y},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.friends});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(678)),r=Object(i.createSelector)(a.a,function(e){return e.allFriends});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(174)),r=Object(i.createSelector)(a.a,function(e){return e.topPlayedMetadataItems});t.a=r},function(e,t){e.exports={defaultColor:"#fff",quietColor:"#a8a8a8",inverseColor:"#222",primaryColor:"#cc7b19",primaryAlternateColor:"#e5a00d",selectedColor:"#f9be03",successColor:"#6b5",dangerColor:"#f53",warningColor:"#f0ad4e",appBackgroundColor:"#3f4245",badgeBackgroundColor:"rgba(0, 0, 0, 0.15)",defaultBadgeColor:"rgba(255, 255, 255, 0.7)",defaultLinkColor:"rgba(255, 255, 255, 0.7)",
defaultLinkHoverColor:"#fff",defaultLinkDisabledLinkColor:"rgba(255, 255, 255, 0.3)",selectedLinkColor:"#f9be03",selectedLinkHoverColor:"color(#f9be03 lightness(+15%))",defaultBackgroundColor:"rgba(255, 255, 255, 0.25)",defaultHoverBackgroundColor:"rgba(255, 255, 255, 0.3)",defaultActiveBackgroundColor:"rgba(255, 255, 255, 0.2)",defaultDisabledBackgroundColor:"rgba(255, 255, 255, 0.15)",primaryBackgroundColor:"#cc7b19",primaryHoverBackgroundColor:"color(#cc7b19 lightness(+5%))",
primaryActiveBackgroundColor:"color(#cc7b19 blackness(+10%))",primaryDisabledBackgroundColor:"color(#cc7b19 blackness(+30%))",quietBackgroundColor:"rgba(255, 255, 255, 0.08)",quietHoverBackgroundColor:"rgba(255, 255, 255, 0.1)",quietActiveBackgroundColor:"rgba(255, 255, 255, 0.06)",successBackgroundColor:"#3d7832",successHoverBackgroundColor:"color(#3d7832 lightness(+5%))",successActiveBackgroundColor:"color(#3d7832 blackness(+10%))",
successDisabledBackgroundColor:"color(#3d7832 blackness(+30%))",dangerBackgroundColor:"#b32",dangerHoverBackgroundColor:"color(#b32 lightness(+5%))",dangerActiveBackgroundColor:"color(#b32 blackness(+10%))",dangerDisabledBackgroundColor:"color(#b32 blackness(+30%))",darkBackgroundColor:"rgba(0, 0, 0, 0.3)",darkHoverBackgroundColor:"rgba(255, 255, 255, 0.3)",darkActiveBackgroundColor:"rgba(255, 255, 255, 0.2)",darkDisabledBackgroundColor:"rgba(255, 255, 255, 0.15)",
headerColor:"rgba(255, 255, 255, 0.3)",dimColor:"rgba(255, 255, 255, 0.45)",shadowColor:"rgba(0, 0, 0, 0.35)",dividerColor:"rgba(0, 0, 0, 0.3)",scrollbarBackgroundColor:"rgba(255, 255, 255, 0.2)",scrollbarHoverBackgroundColor:"rgba(255, 255, 255, 0.3)",scrollbarInactiveBackgroundColor:"rgba(255, 255, 255, 0.05)",errorBackgroundColor:"rgba(255, 85, 51, 0.3)",inputBackgroundColor:"rgba(255, 255, 255, 0.25)",inputFocusBackgroundColor:"#eee",inputColor:"#eee",inputFocusColor:"#555",
inputPlaceholderColor:"#afb0b1",inputDisabledOpacity:"0.5",formSectionBackgroundColor:"rgba(0, 0, 0, 0.3)",formSectionHoverBackgroundColor:"rgba(0, 0, 0, 0.15)",modalBackdropBackgroundColor:"rgba(102, 102, 102, 0.6)",modalBackgroundColor:"#2d2d2d",menuBackgroundColor:"#191a1c",menuItemHoverBackgroundColor:"rgba(255, 255, 255, 0.08)",menuItemActiveBackgroundColor:"rgba(255, 255, 255, 0.15)",menuSeparatorBackgroundColor:"rgba(200, 200, 200, 0.15)",tooltipBackgroundColor:"#191a1c",
pageHeaderBackgroundColor:"rgba(0, 0, 0, 0.7)",pageHeaderLinkColor:"#999",pageHeaderLinkHoverColor:"#eee",pageHeaderColor:"rgba(255, 255, 255, 0.75)",searchInputBackgroundColor:"rgba(255, 255, 255, 0.25)",searchFocusBackgroundColor:"#eee",searchInputColor:"#eee",searchInputFocusColor:"#555",searchImagePlaceholderBackgroundColor:"rgba(255, 255, 255, 0.1)",searchHoverResultBackgroundColor:"rgba(255, 255, 255, 0.05)",searchSelectedResultBackgroundColor:"rgba(255, 255, 255, 0.08)",
searchResultTitleColor:"rgba(255, 255, 255, 0.75)",searchResultTitleSelectedColor:"rgba(255, 255, 255, 1)",searchResultSecondaryTitleColor:"rgba(255, 255, 255, 0.3)",sidebarBackgroundColor:"rgba(0, 0, 0, 0.15)",sidebarMenuButtonBackgroundColor:"rgba(0, 0, 0, 0.3)",sidebarMenuButtonHoverBackgroundColor:"rgba(0, 0, 0, 0.45)",sidebarMenuButtonActiveBackgroundColor:"rgba(0, 0, 0, 0.75)",stripeListAlternateBackgroundColor:"rgba(255, 255, 255, 0.02)",
stripeListHoverBackgroundColor:"rgba(255, 255, 255, 0.06)",stripeListSelectedBackgroundColor:"rgba(0, 0, 0, 0.15)"}},function(e,t,n){"use strict";var i=n(94),a=n(300),r=n(38),o=n(232),s=i.a.extend({name:"SyncMetadataModel",entityType:o.SYNC_METADATA_ITEM,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(r.a)(this.entityType,e.ratingKey,this.syncItemId,this.server.entityID())},context:["server","device","syncItemId"],cache:new a.a,
cacheKey:function(){return i.a.prototype.cacheKey.apply(this,arguments)+"!"+this.syncItemId}});t.a=s},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(u.a)(),function(e){return e.reduce(function(e,t){return!t.group||e.includes(t.group)||t.hidden||e.push(t.group),e},[])})}function a(e,t,n){return!0===e||l.a.isFunction(e)&&e(t,n)}function r(){return Object(o.createSelector)(Object(c.a)(),d.a,i(),function(e,t,n){return!e||e.isUnavailable?[]:p.a.reduce(function(i,r){
if(!a(r.isVisible,e,t))return i;var o=r.groups.reduce(function(i,o){return(a(o.isVisible,e,t)||!1!==o.isVisible&&n.includes(o.key))&&i.push({key:o.key,title:o.title(),statusIndicator:o.createStatusIndicator&&o.createStatusIndicator(e),pageComponent:o.pageComponent,paneComponent:o.paneComponent,hasCustomRoute:!!o.route,route:o.route?o.route(e):Object(h.a)(e.machineIdentifier,r.key,o.key)}),i},[]);return o.length>0&&i.push({key:r.key,title:r.title(),groups:o}),i},[])})}t.a=r;var o=n(4),s=(n.n(o),
n(10)),l=n.n(s),c=n(35),u=n(2909),d=n(162),p=n(680),h=n(197)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.icon,i=e.title,a=e.text;return r()("div",{className:t},void 0,r()("div",{className:u.a.iconContainer},void 0,r()(l.a,{className:u.a.icon,name:n})),r()("div",{className:u.a.title},void 0,i),r()("div",{className:u.a.text},void 0,a))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=n(2911),u=n.n(c);i.defaultProps={className:u.a.upsell},t.a=i},function(e,t,n){
"use strict";function i(){return Object(c.createSelector)(function(e){return e.user},Object(u.a)(),function(e,t){return{machineIdentifier:t.machineIdentifier,isClaimed:t.isClaimed,isSignedIn:!!e&&e.signedIn,hasPlexSubscription:!!e&&e.hasPlexSubscription}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(35)),d=n(2912),p=Object(l.connect)(i)(d.a);p.propTypes=r()({},p.propTypes,{serverEntityID:s.a.string.isRequired}),t.a=p},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1IDUpIj4KICAgIDxwYXRoIGQ9Ik0xNS4zMzMsMTcuNjY3IEMxNC45NjUsMTcuNjY3IDE0LjY2NiwxNy45NjYgMTQuNjY2LDE4LjMzNCBMMTQuNjY2LDI0LjMzNCBMMS4zMzMsMjQuMzM0IEwxLjMzMywxMS4wMDEgTDcuMzMzLDExLjAwMSBDNy43MDEsMTEuMDAxIDgsMTAuNzAyIDgsMTAuMzM0IEM4LDkuOTY2IDcuNzAxLDkuNjY3IDcuMzMzLDkuNjY3IEwxLjMzMyw5LjY2NyBMMS4zMzMsNy42NjcgQzEuMzMzLDYuNTY0IDIuMjMsNS42NjcgMy4zMzMsNS42NjcgTDcuMzMzLDUuNjY3IEM3LjcwMSw1LjY2NyA4LDUuMzY4IDgsNSBDOCw0LjYzMiA3LjcwMSw0LjMzMyA3LjMzMyw0LjMzMyBMMy4zMzMsNC4zMzMgQzEuNDk2LDQuMzMzIDAsNS44MjggMCw3LjY2NiBMMCwyNy42NjYgQzAsMjkuNTA1IDEuNDk2LDMwLjk5OSAzLjMzMywzMC45OTkgTDEyLjY2NiwzMC45OTkgQzE0LjUwMywzMC45OTkgMTUuOTk5LDI5LjUwNCAxNS45OTksMjcuNjY2IEwxNS45OTksMTguMzMzIEMxNS45OTksMTcuOTY1IDE1LjcsMTcuNjY2IDE1LjMzMiwxNy42NjYgTDE1LjMzMywxNy42NjcgWiBNMTIuNjY3LDI5LjY2NyBMMy4zMzQsMjkuNjY3IEMyLjIzMSwyOS42NjcgMS4zMzQsMjguNzcgMS4zMzQsMjcuNjY3IEwxLjMzNCwyNS42NjcgTDE0LjY2NywyNS42NjcgTDE0LjY2NywyNy42NjcgQzE0LjY2NywyOC43NyAxMy43NywyOS42NjcgMTIuNjY3LDI5LjY2NyBaIi8+CiAgICA8cGF0aCBkPSJNNy4zMzMgN0w2IDdDNS42MzIgNyA1LjMzMyA3LjI5OSA1LjMzMyA3LjY2NyA1LjMzMyA4LjAzNSA1LjYzMiA4LjMzNCA2IDguMzM0TDcuMzMzIDguMzM0QzcuNzAxIDguMzM0IDggOC4wMzUgOCA3LjY2NyA4IDcuMjk5IDcuNzAxIDcgNy4zMzMgN3pNOS4zMzMgMjcuNjY3QzkuMzMzIDI4LjQwMyA4LjczNiAyOSA4IDI5IDcuMjY0IDI5IDYuNjY3IDI4LjQwMyA2LjY2NyAyNy42NjcgNi42NjcgMjYuOTMxIDcuMjY0IDI2LjMzNCA4IDI2LjMzNCA4LjczNiAyNi4zMzQgOS4zMzMgMjYuOTMxIDkuMzMzIDI3LjY2N3pNMjcuMzMzLjMzM0wxNCAuMzMzQzEyLjE2My4zMzMgMTAuNjY3IDEuODI4IDEwLjY2NyAzLjY2NkwxMC42NjcgMTEuNjY2QzEwLjY2NyAxMy41MDUgMTIuMTYzIDE0Ljk5OSAxNCAxNC45OTlMMjcuMzMzIDE0Ljk5OUMyOS4xNyAxNC45OTkgMzAuNjY2IDEzLjUwNCAzMC42NjYgMTEuNjY2TDMwLjY2NiAzLjY2NkMzMC42NjYgMS44MjcgMjkuMTcuMzMzIDI3LjMzMy4zMzN6TTE1LjY0OCAxMy42NjdMMTcuNDM5IDEwLjY4NCAyMC40ODYgMTEuODM2QzIwLjc5MSAxMS45NDkgMjEuMTM3IDExLjgyNyAyMS4zMDEgMTEuNTQzTDI0LjA4NSA2LjY2NyAyNi4wODkgMTMuNjY3IDE1LjY0OSAxMy42NjcgMTUuNjQ4IDEzLjY2N3pNMjkuMzMzIDExLjY2N0MyOS4zMzMgMTIuNzIzIDI4LjUwOSAxMy41ODIgMjcuNDcyIDEzLjY1MkwyNC45MzIgNC43NzlDMjQuODU5IDQuNTIyIDI0LjYzNyA0LjMzMiAyNC4zNzIgNC4zMDIgMjQuMDkzIDQuMjYzIDIzLjg0NSA0LjM5OSAyMy43MTMgNC42MzNMMjAuNDI0IDEwLjM4OCAxNy4zODkgOS4yNDFDMTcuMDg4IDkuMTI5IDE2Ljc0OSA5LjI0NiAxNi41ODIgOS41MjJMMTQuMDk0IDEzLjY2NyAxMy45OTkgMTMuNjY3QzEyLjg5NiAxMy42NjcgMTEuOTk5IDEyLjc3IDExLjk5OSAxMS42NjdMMTEuOTk5IDMuNjY3QzExLjk5OSAyLjU2NCAxMi44OTYgMS42NjcgMTMuOTk5IDEuNjY3TDI3LjMzMiAxLjY2N0MyOC40MzUgMS42NjcgMjkuMzMyIDIuNTY0IDI5LjMzMiAzLjY2N0wyOS4zMzIgMTEuNjY3IDI5LjMzMyAxMS42Njd6Ii8+CiAgICA8cGF0aCBkPSJNMTcuMTQ1LDMuODMzIEMxNi4wMzcsMy44MzMgMTUuMTM3LDQuNzM0IDE1LjEzNyw1Ljg0MSBDMTUuMTM3LDYuOTQ4IDE2LjAzNyw3Ljg0OSAxNy4xNDUsNy44NDkgQzE4LjI1Myw3Ljg0OSAxOS4xNTMsNi45NDggMTkuMTUzLDUuODQxIEMxOS4xNTMsNC43MzQgMTguMjUzLDMuODMzIDE3LjE0NSwzLjgzMyBaIE0xNy4xNDUsNi41MTYgQzE2Ljc3Myw2LjUxNiAxNi40Nyw2LjIxMyAxNi40Nyw1Ljg0MSBDMTYuNDcsNS40NjkgMTYuNzczLDUuMTY2IDE3LjE0NSw1LjE2NiBDMTcuNTE3LDUuMTY2IDE3LjgyLDUuNDY5IDE3LjgyLDUuODQxIEMxNy44Miw2LjIxMyAxNy41MTcsNi41MTYgMTcuMTQ1LDYuNTE2IFoiLz4KICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMCA0KSI+CiAgICA8cGF0aCBkPSJNMTUuOTUxLDE2LjQ0NCBDMTUuODUsMTYuMTkzIDE1LjYwOCwxNi4wMjkgMTUuMzM5LDE2LjAyOCBMMTIuNjY3LDE2LjAwNSBMMTIuNjY3LDEwIEMxMi42NjcsOS42MzIgMTIuMzY4LDkuMzMzIDEyLDkuMzMzIEw4LDkuMzMzIEM3LjYzMiw5LjMzMyA3LjMzMyw5LjYzMiA3LjMzMywxMCBMNy4zMzMsMTYgTDQuNjEsMTYgQzQuMzQxLDE2IDQuMDk3LDE2LjE2MyAzLjk5NCwxNi40MTIgQzMuODksMTYuNjYxIDMuOTQ3LDE2Ljk0OCA0LjEzOCwxNy4xMzkgTDkuNDcxLDIyLjQ3MiBDOS42MDIsMjIuNjAxIDkuNzcyLDIyLjY2NyA5Ljk0MywyMi42NjcgQzEwLjExMSwyMi42NjcgMTAuMjgsMjIuNjAzIDEwLjQxMSwyMi40NzUgTDE1LjgsMTcuMTcgQzE1Ljk5MiwxNi45ODEgMTYuMDUyLDE2LjY5NSAxNS45NDksMTYuNDQ1IEwxNS45NTEsMTYuNDQ0IFogTTkuOTQ4LDIxLjA2MSBMNi4yMiwxNy4zMzMgTDgsMTcuMzMzIEM4LjM2OCwxNy4zMzMgOC42NjcsMTcuMDM0IDguNjY3LDE2LjY2NiBMOC42NjcsMTAuNjY2IEwxMS4zMzQsMTAuNjY2IEwxMS4zMzQsMTYuNjY2IEMxMS4zMzQsMTcuMDMxIDExLjYyOSwxNy4zMyAxMS45OTUsMTcuMzMzIEwxMy43MTksMTcuMzQ4IEw5Ljk0OCwyMS4wNjEgWiIvPgogICAgPHBhdGggZD0iTTE2LDcuODg4NjA5MDVlLTMxIEw0LDcuODg4NjA5MDVlLTMxIEMyLjE2Myw3Ljg4ODYwOTA1ZS0zMSAwLjY2NywxLjQ5NSAwLjY2NywzLjMzMyBMMC42NjcsMjguNjY2IEMwLjY2NywzMC41MDUgMi4xNjMsMzEuOTk5IDQsMzEuOTk5IEwxNiwzMS45OTkgQzE3LjgzNywzMS45OTkgMTkuMzMzLDMwLjUwNCAxOS4zMzMsMjguNjY2IEwxOS4zMzMsMy4zMzMgQzE5LjMzMywxLjQ5NCAxNy44MzcsLTEuNzc2MzU2ODRlLTE1IDE2LDcuODg4NjA5MDVlLTMxIFogTTIsNi42NjcgTDE4LDYuNjY3IEwxOCwyNS4zMzQgTDIsMjUuMzM0IEwyLDYuNjY3IFogTTQsMS4zMzMgTDE2LDEuMzMzIEMxNy4xMDMsMS4zMzMgMTgsMi4yMyAxOCwzLjMzMyBMMTgsNS4zMzMgTDIsNS4zMzMgTDIsMy4zMzMgQzIsMi4yMyAyLjg5NywxLjMzMyA0LDEuMzMzIFogTTE2LDMwLjY2NyBMNCwzMC42NjcgQzIuODk3LDMwLjY2NyAyLDI5Ljc3IDIsMjguNjY3IEwyLDI2LjY2NyBMMTgsMjYuNjY3IEwxOCwyOC42NjcgQzE4LDI5Ljc3IDE3LjEwMywzMC42NjcgMTYsMzAuNjY3IFoiLz4KICAgIDxwYXRoIGQ9Ik02LjY2NyA0TDEzLjMzNCA0QzEzLjcwMiA0IDE0LjAwMSAzLjcwMSAxNC4wMDEgMy4zMzMgMTQuMDAxIDIuOTY1IDEzLjcwMiAyLjY2NiAxMy4zMzQgMi42NjZMNi42NjcgMi42NjZDNi4yOTkgMi42NjYgNiAyLjk2NSA2IDMuMzMzIDYgMy43MDEgNi4yOTkgNCA2LjY2NyA0ek0xMS4zMzMgMjguNjY3QzExLjMzMyAyOS40MDMgMTAuNzM2IDMwIDEwIDMwIDkuMjY0IDMwIDguNjY3IDI5LjQwMyA4LjY2NyAyOC42NjcgOC42NjcgMjcuOTMxIDkuMjY0IDI3LjMzNCAxMCAyNy4zMzQgMTAuNzM2IDI3LjMzNCAxMS4zMzMgMjcuOTMxIDExLjMzMyAyOC42Njd6Ii8+CiAgPC9nPgo8L3N2Zz4K"
},function(e,t,n){"use strict";function i(e){var t=e.img,n=e.title,i=e.description;return r()("div",{className:c.a.feature},void 0,r()("div",{className:c.a.featurePadding},void 0,r()("img",{className:c.a.featureImage,src:t}),r()("div",{className:c.a.featureContainer},void 0,r()("div",{className:c.a.featureTitle},void 0,n),r()("div",{className:c.a.featureDescription},void 0,i))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2919)),c=n.n(l);t.a=i},function(e,t,n){e.exports={
default:n(2921),__esModule:!0}},function(e,t,n){"use strict";var i=n(25),a=n(1403),r=i.a.extend({name:"DVRCollection",context:["server"],model:a.a,url:"/livetv/dvrs"});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(356),o=n(928),s=i.a.extend({name:"DVRModel",context:["server"],rootPropertyName:"Dvr",idAttribute:"key",sessionAttrs:{isSaving:a.a.boolean,saveError:a.a.object},syncedAttrs:{key:a.a.integer,epgIdentifier:a.a.string,country:a.a.string,language:a.a.string,lineup:a.a.string,
lineupTitle:a.a.string,uuid:a.a.string},syncedRelations:{devices:{relationClass:o.a,rootPropertyName:"Device"},prefs:{relationClass:r.a,rootPropertyName:"Setting",deferred:!0,save:!0}},defaults:{isSaving:!1,saveError:null}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(2923),r=i.a.extend({name:"ChannelMappingCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(2926),r=i.a.extend({name:"DVRNetworkCollection",model:a.a});t.a=r},function(e,t,n){
"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"EPGCountryModel",context:["server"],idAttribute:"code",rootPropertyName:"Country",syncedAttrs:{key:a.a.string,type:a.a.string,title:a.a.string,code:a.a.string,example:a.a.string,flavor:a.a.integer,language:a.a.string,languageTitle:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"EPGCountryRegionModel",context:["server"],idAttribute:"key",rootPropertyName:"Region",syncedAttrs:{key:a.a.string,
type:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(28)),g=n(16),m=n(86),y=n(30),b=n(114),I=n(2939),S=n(3005),M=n.n(S),D=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onModalClose=function(){
Object(g.c)("metrics").trackClick(o()({},i.props.metricsProperties,{page:y.C,action:m.n})),i.props.onModalClose()},a=n,u()(i,a)}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.isOpen,r=e.metricsProperties;return a()(b.a,{className:M.a.modal,isOpen:i,metricsPage:y.C,metricsProperties:r,preventCloseOnBackdropPress:!0,onModalClose:this.onModalClose},void 0,a()(I.a,{
serverEntityID:t,dvrID:n,onModalClose:this.onModalClose}))},t}(f.Component);t.a=D},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.deviceID},Object(l.a)(),c.a,function(e,t,n){var i=n.selectedDevice&&n.selectedDevice.key;return o.a.find(t,function(t){return t.type===s.a.PROVIDER_DEVICE_CHANNELSCAN&&parseInt(t.Context.deviceID,10)===(e||i)})})}var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(188),l=n(319),c=n(201);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(3),v=n(459),g=n(1411),m=n(687),y=n(1412),b=n(46),I=n.n(b),S=n(2955),M=n.n(S),D=parseInt(I.a.dvrSetupImageWidth,10),C=a()(g.a,{}),j=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onSelectDevicePress=function(){i.props.onSelectDevice(i.props.deviceID)},a=n,l()(i,a)
}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.make,r=e.model,o=e.uri,s=e.thumb,l=e.channelCount,c=e.unsupported,u=e.isSelectable,d=e.isSelected,p=e.includeUri,g=e.includeChannelCount,b=void 0;return b=1===l?Object(f.default)("1 channel"):l>1?Object(f.default)("{channelCount} channels",{channelCount:l}):Object(f.default)("No channels"),a()("div",{className:t},void 0,u&&a()(h.a,{onPress:this.onSelectDevicePress},void 0,a()("div",{
className:M.a.deviceImageContainer},void 0,a()(m.a,{serverEntityID:n,model:r,thumb:s,width:D,height:100}),d&&a()(v.a,{className:M.a.selectButton,component:"div",title:r,isSelected:!0,isDisabled:!0}))),!u&&a()(m.a,{serverEntityID:n,model:r,thumb:s,width:D,height:100}),a()("div",{className:M.a.details},void 0,a()("div",{className:M.a.make},void 0,i),a()("div",{className:M.a.modelContainer},void 0,a()("div",{className:M.a.model},void 0,r),c&&C),p&&a()(y.a,{className:M.a.uri,uri:o}),g&&a()("div",{
className:M.a.channelCount},void 0,b)))},t}(p.Component);j.defaultProps={includeUri:!1,includeChannelCount:!1,isSelectable:!1},t.a=j},function(e,t,n){"use strict";function i(){var e=Object(c.default)("This tuner isn't officially supported by Plex, click for more information");return r()(l.a,{className:h.a.unsupported,component:s.a,tooltip:e,tooltipClassName:h.a.unsupportedTooltip,tooltipAttachment:d.f.BOTTOM_CENTER,target:"_blank",to:"https://support.plex.tv/articles/community-supported-tuners/"
},void 0,r()(u.a,{className:h.a.unsupportedIcon,name:"plex-icon-alert-560","aria-label":e}))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(20)),l=n(215),c=n(3),u=n(26),d=n(24),p=n(2949),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.uri,i=n.replace(/^https?\:\/\//,"");return r()("div",{className:t},void 0,i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(532),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(1393)),g=n.n(v),m=n(2957),y=n.n(m),b=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onProgressToUpdate=function(){a.setState({progress:a._progressPosition.progress})},a.onProgressToComplete=function(){a._progressToTween=null},a.state={progress:0},a}return u()(t,e),t.prototype.componentDidMount=function(){this._progressTo(this.props)},
t.prototype.componentDidUpdate=function(e){e.progress!==this.props.progress&&this._progressTo(this.props)},t.prototype.componentWillUnmount=function(){this._cancelProgressTo()},t.prototype._progressTo=function(e){var t=e.progress,n=this.props.smoothProgressDuration/1e3,i={progress:t,ease:this.props.easing,onUpdate:this.onProgressToUpdate,onComplete:this.onProgressToComplete};this._progressPosition={progress:this.state.progress},this._cancelProgressTo(),
this._progressToTween=p.a.to(this._progressPosition,n,i)},t.prototype._cancelProgressTo=function(){this._progressToTween&&(this._progressToTween.kill(),this._progressToTween=null)},t.prototype.render=function(){
var e=this.state.progress,t=this.props,n=t.className,i=t.containerClassName,r=t.backgroundClassName,o=t.textClassName,s=t.size,l=t.lineWidth,c=t.strokeColor,u=t.progressText,d=void 0===u?Math.round(e)+"%":u,p=t.showProgressText,h=s/2,f=h-l,v=Math.PI*(2*f),g=s+"px",m=s-3*l+"px",y=(100-e)/100*v;return a()("div",{className:i,style:{width:g,height:g,lineHeight:g}},void 0,a()("svg",{className:n,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:s,height:s},void 0,a()("circle",{fill:"transparent",
r:f,cx:h,cy:h,strokeDasharray:v,style:{strokeWidth:l,stroke:c,strokeDashoffset:y}})),a()("div",{className:r,style:{width:m,height:m}}),p&&a()("div",{className:o},void 0,d))},t}(f.Component);b.defaultProps={className:y.a.circularProgressBar,containerClassName:y.a.circularProgressBarContainer,backgroundClassName:y.a.circularProgressBarBackground,textClassName:y.a.circularProgressBarText,size:60,lineWidth:5,strokeColor:g.a.primaryColor,showProgressText:!0,smoothProgressDuration:1e3},t.a=b
},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n(850),a=n.n(i),r=a.a.Power0.easeInOut,o=a.a.Power3.easeOut},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.networks,i=n.reduce(function(e,t){var n;return e.push((n={},n[t.key]=t.title,n)),e},[{"":Object(c.default)("Select Network")}]);return r()("div",{className:t},void 0,r()(l.a,{name:"network",labelText:"Network",initialValue:"",values:i}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(555)),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.prefs;return s()("div",{className:t},void 0,n.map(function(e){var t=e.id,n=e.value,i=e.enumValues,a=e.label,o=Array.isArray(i)?[{label:Object(d.default)("Select {label}",{label:a}),value:""}].concat(i):void 0;return u.a.createElement(p.a,r()({key:t},e,{value:null==n?"":n,enumValues:o}))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(3),p=n(557);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(218),v=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onChange=function(e){var t=e?parseInt(e,10):null;i.props.onChange(t)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){
return h.a.createElement(f.a,a()({type:"number"},this.props,{selectTextOnFocus:!1,onChange:this.onChange}))},t}(p.Component);t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(238)),f=n(556),v=n(189),g=n(389),m=n(2966),y=n.n(m),b=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),
i.onChange=function(e){var t=e.steppedValue,n=String(i.props.stepSize),a=n.split("."),r=a[1],o=null!=r?parseFloat(t.toFixed(r.length)):t;i.props.onChange(o)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.name,n=e.value,i=e.min,r=e.max,o=e.stepSize,s=e.labelText,l=e.showErrors,c=e.errors,u=e.valueModifier;return a()(h.a,{},void 0,a()(f.a,{showErrors:l,errors:c,name:t,labelText:s}),a()("div",{className:y.a.sliderContainer},void 0,a()(g.a,{className:y.a.slider,
value:n,min:i,max:r,stepSize:o,onChange:this.onChange}),a()("div",{className:y.a.sliderValue},void 0,u(n))))},t}(p.Component);b.defaultProps={valueModifier:function(e){return e}},t.a=Object(v.a)(b)},function(e,t,n){"use strict";function i(e){return e<=20?d.a:e<=40?h.a:e<=60?v.a:e<=80?m.a:e<=100?b.a:void 0}function a(e){var t=e.className,n=e.width,a=e.height,r=e.signalStrength;if(null==r)return null;var s=i(r);return o()("div",{className:t},void 0,o()(c.a,{src:s,width:n,height:a}))}
var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(184)),u=n(2968),d=n.n(u),p=n(2969),h=n.n(p),f=n(2970),v=n.n(f),g=n(2971),m=n.n(g),y=n(2972),b=n.n(y),I=n(2973),S=n.n(I);a.defaultProps={className:S.a.signalStrength,width:23,height:18},t.a=a},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.dvrID},Object(l.a)(),c.a,function(e,t,n){return e?o.a.find(t,function(t){return t.type===s.a.PROVIDER_EPG_LOAD&&parseInt(t.Context.dvrID,10)===e
}):o.a.find(t,{uuid:n.epgDownloadActivityID})})}var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(188),l=n(319),c=n(201);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(d.a,Object(u.a)(),function(e,t){var n=t?t.channels:e.selectedDevice.channels,i=t?t.channelMappings:e.channelMappings,a=e.lineupChannels,r=s.a.pluck(n,"key"),o=s.a.pluck(i,"deviceIdentifier"),l=r.concat(o);return s.a.uniq(l).map(function(e){var t=s.a.find(n,{key:e}),r=s.a.findWhere(i,{deviceIdentifier:e
}),o=r&&r.lineupIdentifier?r.lineupIdentifier:"",l=o&&s.a.find(a,{identifier:o}),c=!(!t||g||!r||!r.enabled),u=t||{},d=u.name,p=void 0===d?"":d,h=u.identifier,f=void 0===h?"":h,v=u.drm,g=void 0!==v&&v,m=u.signalStrength,y=u.signalQuality,b=u.hd,I=void 0!==b&&b;return{key:e,name:p,deviceIdentifier:f,enabled:c,drm:g,isChannelMissing:!t,lineupIdentifier:r&&r.lineupIdentifier?r.lineupIdentifier:"",signalStrength:m,signalQuality:y,isDeviceChannelHD:I,isLineupChannelHD:!!l&&l.hd}}).sort(function(e,t){
return Object(c.a)(e.deviceIdentifier,t.deviceIdentifier)})})}function a(){return Object(l.a)(i(),function(e){return e})}t.a=a;var r=n(4),o=(n.n(r),n(10)),s=n.n(o),l=n(161),c=n(684),u=n(558),d=n(201)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(161)),r=n(201),o=Object(i.createSelector)(r.a,function(e){return e.lineupChannels.reduce(function(e,t){var n=t.identifier+" "+t.callSign;return t.title&&(n+=" ("+t.title+")"),e[t.identifier]=n,e},{})}),s=Object(a.a)(o,function(e){return e});t.a=s
},function(e,t,n){"use strict";function i(e){return h()(e).sort(S.a).reduce(function(t,n){var i;return t.push((i={},i[n]=e[n],i)),t},[{"":Object(M.default)("Select Channel")}])}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(59),h=n.n(p),f=n(1),v=n.n(f),g=n(0),m=(n.n(g),n(390)),y=n(388),b=n(255),I=n(189),S=n(684),M=n(3),D=n(1419),C=n(3e3),j=n(24),P=n(3002),O=n.n(P),T=r()(C.a,{}),E=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i))
;return a.onSelectPress=function(e){a.setState({showSelectOptions:!0})},a.onEnabledChange=function(e){a.setState({enabled:e},function(){a.props.onChange({enabled:e,lineupIdentifier:a.state.lineupIdentifier})})},a.onLineupChannelChange=function(e){a.setState({lineupIdentifier:e},function(){a.props.onChange({enabled:a.state.enabled,lineupIdentifier:e})})},a.state={enabled:n.initialValue.enabled,lineupIdentifier:n.initialValue.lineupIdentifier,showSelectOptions:!1},a}return d()(t,e),
t.prototype.componentWillReceiveProps=function(e){var t=this.state,n=t.enabled,i=t.lineupIdentifier,a=e.value,r=a.enabled,o=a.lineupIdentifier;n===r&&i===o||this.setState(this.props.value)},t.prototype.shouldComponentUpdate=function(e,t){
return t.enabled!==this.state.enabled||(t.lineupIdentifier!==this.state.lineupIdentifier||(t.showSelectOptions!==this.state.showSelectOptions||(e.deviceIdentifier!==this.props.deviceIdentifier||(e.channelName!==this.props.channelName||(e.initialValue.enabled!==this.props.initialValue.enabled||(e.initialValue.lineupIdentifier!==this.props.initialValue.lineupIdentifier||(e.value.enabled!==this.props.value.enabled||(e.value.lineupIdentifier!==this.props.value.lineupIdentifier||e.lineupChannels!==this.props.lineupChannels))))))))
},t.prototype.render=function(){var e,t=this.props,n=t.name,a=t.deviceIdentifier,o=t.channelName,s=t.drm,l=t.signalStrength,c=t.isDeviceChannelHD,u=t.isLineupChannelHD,d=t.isChannelMissing,p=t.showResolution,h=t.lineupChannels,f=this.state,v=f.enabled,g=f.lineupIdentifier;return d?null:r()("div",{className:O.a.channelMapping},void 0,r()("div",{className:O.a.deviceInfo},void 0,r()("div",{className:O.a.channelEnabled},void 0,s?null:r()(y.a,{name:n+"Check",value:v,onChange:this.onEnabledChange
})),r()("label",{className:(O.a.deviceIdentifier||"")+" "+(!v&&O.a.mappingDisabled||""||""),htmlFor:n+"Check"},void 0,a),r()("div",{className:(O.a.channelName||"")+" "+(!v&&O.a.mappingDisabled||""||"")},void 0,o),r()(D.a,{className:O.a.signalStrength,signalStrength:l})),s?r()("div",{className:O.a.drmChannel},void 0,r()(m.a,{className:O.a.drmChannelBadge},void 0,Object(M.default)("Protected"))):r()("div",{className:O.a.epgChannel},void 0,r()(b.a,{name:n+"Select",value:g,
values:this.state.showSelectOptions?i(h):[(e={},e[g]=h[g],e)],size:j.e.SMALL,isDisabled:!v,onMouseDown:this.onSelectPress,onTouchStart:this.onSelectPress,onChange:this.onLineupChannelChange}),p?r()("div",{className:O.a.resolutionContainer},void 0,c||u?T:null):null))},t}(g.Component);v.a.shape({enabled:v.a.bool.isRequired,lineupIdentifier:v.a.string});t.a=Object(I.a)(E)},function(e,t,n){"use strict";function i(e){
var t=e.showSignalStrength,n=e.allChannelMappingsEnabled,i=e.allChannelMappingsDisabled,a=e.onAllChannelMappingsEnabledChange,o=null;return n?o=!0:i&&(o=!1),r()("div",{className:d.a.container},void 0,r()("div",{className:d.a.deviceChannelsContainer},void 0,r()(l.a,{name:"toggleAll",value:o,onChange:a}),r()("div",{className:d.a.deviceChannelsPadding}),r()("div",{className:d.a.deviceChannels},void 0,Object(c.default)("Device Channels")),t&&r()("div",{className:d.a.signalStrength
},void 0,Object(c.default)("Strength"))),r()("div",{className:d.a.guideChannels},void 0,Object(c.default)("Guide Channels")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(388)),c=n(3),u=n(3003),d=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){c()(this,n);var a=d()(this,t.call(this,e,i));return a.onFormStateChange=function(e){var t=!0,n=!0;s()(e).forEach(function(i){e[i].value.enabled?n=!1:t=!1}),a.setState({formState:e,
allChannelMappingsEnabled:t,allChannelMappingsDisabled:n})},a.onAllChannelMappingsEnabledChange=function(e){a.setState(function(t){var n={};return s()(t.formState).forEach(function(i){var a=t.formState[i].value;a.enable===e?n[i]=t.formState[i]:n[i]=r()({},t.formState[i],{value:{enabled:e,lineupIdentifier:a.lineupIdentifier}})}),{formState:n,allChannelMappingsEnabled:e,allChannelMappingsDisabled:!e}})},a.state={formState:{},allChannelMappingsEnabled:!1,allChannelMappingsDisabled:!1},a}
return h()(n,t),n.prototype.render=function(){var t=this.state,n=t.allChannelMappingsEnabled,i=t.allChannelMappingsDisabled;return v.a.createElement(e,r()({formState:this.state.formState,allChannelMappingsEnabled:n,allChannelMappingsDisabled:i,onFormStateChange:this.onFormStateChange,onAllChannelMappingsEnabledChange:this.onAllChannelMappingsEnabledChange},this.props))},n}(f.Component);return t.displayName="DeviceChannelMappingsForm("+Object(g.a)(e)+")",t.WrappedComponent=e,t}
var a=n(6),r=n.n(a),o=n(59),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(0),v=n.n(f),g=n(190);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=s()(e,["children"]);return u.a.createElement(p.a,n,r()(d.a,{className:f.a.modalScroller,innerClassName:f.a.innerModalBody},void 0,t))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(61),p=n(98),h=n(3017),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(e){return a.b[e]||""}t.a=i
;var a=n(462)},function(e,t,n){"use strict";var i=n(694),a=n.n(i),r=n(10),o=n.n(r),s=a.a.extend({constructor:function(e,t,n,i){this.exclusiveAgents=t,this.agentIdentifier=n,a.a.call(this,e,i),this.filterBy(o.a.bind(this.filterExclusiveAgent,this))},filterExclusiveAgent:function(e){var t=e.get("identifier"),n=this.exclusiveAgents;if(!n)return!0;var i=this.agentIdentifier,a=-1!==n.indexOf(i),r=-1!==n.indexOf(t);return a?t===i:!r}});t.a=s},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(17),o=n(14),s=r.a.extend({name:"CloudDriveUpdateStatusModel",context:["server"],url:"/services/clouddrive/updatestatus",syncedAttrs:{updating:o.a.boolean},fetchAndNotUpdating:function(){var e=this;return this.fetch().then(function(){return e.get("updating")?a.a.Deferred().rejectWith(e,[e]).promise():e})}});t.a=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(17),r=n(14),o=n(69),s=n(3056),l=n(3058),c=a.a.extend({
name:"FilePathListModel",responseType:o.a.json,context:["server","includeFiles","url"],url:function(){var e={};return this.includeFiles&&(e.includeFiles=1),i.join(["/services/browse"],e)},sessionAttrs:{truncatedFilesCount:r.a.integer},syncedRelations:{paths:{relationClass:l.a,rootPropertyName:"Path"},files:{relationClass:s.a,rootPropertyName:"File"}},augmentResponse:function(e){return e.File&&(e.truncatedFilesCount=Math.max(0,e.File.length-500),e.File=e.File.slice(0,500)),e}});t.default=c
},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(181),l=n(3084),c=n(102),u=s.a.extend({whitelistedAttrs:["id","home","protected","restricted","title","username","email","thumb","recommendationsPlaylistId","allowSync","allowCameraUpload","allowChannels","allowTuners","filterMovies","filterTelevision","filterMusic","filterPhotos"],saveAttrs:["allowSync","allowCameraUpload","allowChannels","allowTuners","filterMovies","filterTelevision","filterMusic","filterPhotos"],
filterAttrs:["filterMovies","filterTelevision","filterMusic","filterPhotos"],urlRoot:function(){return this.get("home")?"/api/users":"/api/friends"},convert:function(e){var t=o.a.isObject(e)?e:c.a.parseXML(e);return t.User&&(t=t.User),c.a.parseInteger(t,"id"),c.a.parseBoolean(t,["home","protected","restricted","allowSync","allowCameraUpload","allowChannels","allowTuners"]),c.a.parseQueryString(t,["filterMovies","filterTelevision","filterMusic","filterPhotos"],"|"),c.a.parseArray(t,"Server"),t},
parse:function(e){var t=this.convert(e);return this.parseServers(t),t=o.a.pick(t,this.whitelistedAttrs)},parseServers:function(e){var t=this.get("serverShares"),n=e.Server;t?t.set(n,{parse:!0}):(t=new l.a(n,{server:this.server,parent:this,populated:!0,parse:!0}),this.set("serverShares",t))},cloneDeep:function(){var e=this.toJSON();e.Server=e.serverShares.toJSON(),e.serverShares=null;var t={server:this.server,section:this.section,channel:this.channel,parent:this.parent,parse:!0,skipCache:!0}
;return new this.constructor(a.a.extend(!0,{},e),t)||null},getSaveParams:function(e,t){var n=this;if(o.a.isEmpty(e)){var i=this.pick(this.saveAttrs);return o.a.map(i,function(e,t,i){o.a.isBoolean(e)?i[t]=e?"1":"0":o.a.contains(n.filterAttrs,t)&&(i[t]=n.stringifyFilter(e))},this),i}return s.a.prototype.getSaveParams.apply(this,arguments)},stringifyFilter:function(e){return o.a.map(o.a.keys(e),function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("|")}});t.a=u
},function(e,t,n){(function(i){var a,r,o,s,l,c,u,d,p;!function(e,t){r=t,o={id:"sifter",exports:{},loaded:!1},a="function"==typeof r?r.call(o.exports,n,o.exports,o):r,o.loaded=!0,void 0===a&&(a=o.exports)}(0,function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(!(e=a(String(e||"").toLowerCase()))||!e.length)return[];var t,n,i,o,l=[],c=e.split(/ +/);for(t=0,n=c.length;t<n;t++){if(i=r(c[t]),
this.settings.diacritics)for(o in s)s.hasOwnProperty(o)&&(i=i.replace(new RegExp(o,"g"),s[o]));l.push({string:c[t],regex:new RegExp(i,"i")})}return l},e.prototype.iterator=function(e,t){var n;n=o(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)},n.apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,i,a,r;n=this,e=n.prepareSearch(e,t),a=e.tokens,i=e.options.fields,
r=a.length;var o=function(e,t){var n,i;return e?(e=String(e||""),-1===(i=e.search(t.regex))?0:(n=t.string.length/e.length,0===i&&(n+=.5),n)):0},s=function(){var e=i.length;return e?1===e?function(e,t){return o(t[i[0]],e)}:function(t,n){for(var a=0,r=0;a<e;a++)r+=o(n[i[a]],t);return r/e}:function(){return 0}}();return r?1===r?function(e){return s(a[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,i=0;n<r;n++){if((t=s(a[n],e))<=0)return 0;i+=t}return i/r}:function(e){
for(var t=0,n=0;t<r;t++)n+=s(a[t],e);return n/r}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var i,a,r,o,s,l,c,u,d,p,h;if(r=this,e=r.prepareSearch(e,n),h=!e.query&&n.sort_empty||n.sort,d=function(e,t){return"$score"===e?t.score:r.items[t.id][e]},s=[],h)for(i=0,a=h.length;i<a;i++)(e.query||"$score"!==h[i].field)&&s.push(h[i]);if(e.query){for(p=!0,i=0,a=s.length;i<a;i++)if("$score"===s[i].field){p=!1;break}p&&s.unshift({field:"$score",direction:"desc"})}else for(i=0,
a=s.length;i<a;i++)if("$score"===s[i].field){s.splice(i,1);break}for(u=[],i=0,a=s.length;i<a;i++)u.push("desc"===s[i].direction?-1:1);return l=s.length,l?1===l?(o=s[0].field,c=u[0],function(e,n){return c*t(d(o,e),d(o,n))}):function(e,n){var i,a,r;for(i=0;i<l;i++)if(r=s[i].field,a=u[i]*t(d(r,e),d(r,n)))return a;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;t=n({},t);var i=t.fields,a=t.sort,r=t.sort_empty;return i&&!o(i)&&(t.fields=[i]),
a&&!o(a)&&(t.sort=[a]),r&&!o(r)&&(t.sort_empty=[r]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,i,a,r,o=this;return i=this.prepareSearch(e,t),t=i.options,e=i.query,r=t.score||o.getScoreFunction(i),e.length?o.iterator(o.items,function(e,a){n=r(e),(!1===t.filter||n>0)&&i.items.push({score:n,id:a})}):o.iterator(o.items,function(e,t){i.items.push({score:1,id:t})}),a=o.getSortFunction(i,t),a&&i.items.sort(a),
i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=l(String(e||"")),t=l(String(t||"")),e>t?1:t>e?-1:0)},n=function(e,t){var n,i,a,r;for(n=1,i=arguments.length;n<i;n++)if(r=arguments[n])for(a in r)r.hasOwnProperty(a)&&(e[a]=r[a]);return e},a=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},r=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")
},o=Array.isArray||i&&i.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s={a:"[a\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\u0100\u0101\u0105\u0104]",c:"[c\xc7\xe7\u0107\u0106\u010d\u010c]",d:"[d\u0111\u0110\u010f\u010e]",e:"[e\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\u011b\u011a\u0112\u0113\u0119\u0118]",i:"[i\xcc\xcd\xce\xcf\xec\xed\xee\xef\u012a\u012b]",l:"[l\u0142\u0141]",n:"[n\xd1\xf1\u0148\u0147\u0144\u0143]",
o:"[o\xd2\xd3\xd4\xd5\xd5\xd6\xd8\xf2\xf3\xf4\xf5\xf6\xf8\u014c\u014d]",r:"[r\u0159\u0158]",s:"[s\u0160\u0161\u015b\u015a]",t:"[t\u0165\u0164]",u:"[u\xd9\xda\xdb\xdc\xf9\xfa\xfb\xfc\u016f\u016e\u016a\u016b]",y:"[y\u0178\xff\xfd\xdd]",z:"[z\u017d\u017e\u017c\u017b\u017a\u0179]"},l=function(){var e,t,n,i,a="",r={};for(n in s)if(s.hasOwnProperty(n))for(i=s[n].substring(2,s[n].length-1),a+=i,e=0,t=i.length;e<t;e++)r[i.charAt(e)]=n;var o=new RegExp("["+a+"]","g");return function(e){
return e.replace(o,function(e){return r[e]}).toLowerCase()}}();return e}),function(e,t){l=t,c={id:"microplugin",exports:{},loaded:!1},s="function"==typeof l?l.call(c.exports,n,c.exports,c):l,c.loaded=!0,void 0===s&&(s=c.exports)}(0,function(){var e={};e.mixin=function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,i,a,r=this,o=[];if(r.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,
i=e.length;n<i;n++)"string"==typeof e[n]?o.push(e[n]):(r.plugins.settings[e[n].name]=e[n].options,o.push(e[n].name));else if(e)for(a in e)e.hasOwnProperty(a)&&(r.plugins.settings[a]=e[a],o.push(a));for(;o.length;)r.require(o.shift())},e.prototype.loadPlugin=function(t){var n=this,i=n.plugins,a=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');i.requested[t]=!0,i.loaded[t]=a.fn.apply(n,[n.plugins.settings[t]||{}]),i.names.push(t)},
e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}};var t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e}),function(i,r){d=[n(13),a,s],u=r,void 0!==(p="function"==typeof u?u.apply(t,d):u)&&(e.exports=p)}(0,function(e,t,n){
"use strict";var i=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,i=function(e){var t=0;if(3===e.nodeType){var a=e.data.search(n);if(a>=0&&e.data.length>0){var r=e.data.match(n),o=document.createElement("span");o.className="highlight";var s=e.splitText(a),l=(s.splitText(r[0].length),s.cloneNode(!0));o.appendChild(l),s.parentNode.replaceChild(o,s),t=1}
}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var c=0;c<e.childNodes.length;++c)c+=i(e.childNodes[c]);return t};return e.each(function(){i(this)})}},a=function(){};a.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},
void(e in this._events!=!1&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=!1)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},a.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=a.prototype[t[n]]}
;var r=/Mac/.test(navigator.userAgent),o=r?91:17,s=r?18:17,l=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("form").validity,c=function(e){return void 0!==e},u=function(e){return void 0===e||null===e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},p=function(e){return(e+"").replace(/\$/g,"$$$$")},h={};h.before=function(e,t,n){var i=e[t];e[t]=function(){
return n.apply(e,arguments),i.apply(e,arguments)}},h.after=function(e,t,n){var i=e[t];e[t]=function(){var t=i.apply(e,arguments);return n.apply(e,arguments),t}};var f=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},v=function(e,t){var n;return function(){var i=this,a=arguments;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(i,a)},t)}},g=function(e,t,n){var i,a=e.trigger,r={};e.trigger=function(){var n=arguments[0]
;if(-1===t.indexOf(n))return a.apply(e,arguments);r[n]=arguments},n.apply(e,[]),e.trigger=a;for(i in r)r.hasOwnProperty(i)&&a.apply(e,r[i])},m=function(e,t,n,i){e.on(t,n,function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,i.apply(this,[t])})},y=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus()
;var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},b=function(e,t,n){var i,a,r={};if(n)for(i=0,a=n.length;i<a;i++)r[n[i]]=e.css(n[i]);else r=e.css();t.css(r)},I=function(t,n){if(!t)return 0;var i=e("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(t).appendTo("body")
;b(n,i,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var a=i.width();return i.remove(),a},S=function(e){var t=null,n=function(n,i){var a,r,o,s,l,c,u,d;n=n||window.event||{},i=i||{},n.metaKey||n.altKey||(i.force||!1!==e.data("grow"))&&(a=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(r=n.keyCode,o=r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||32===r,46===r||8===r?(d=y(e[0]),
d.length?a=a.substring(0,d.start)+a.substring(d.start+d.length):8===r&&d.start?a=a.substring(0,d.start-1)+a.substring(d.start+1):46===r&&void 0!==d.start&&(a=a.substring(0,d.start)+a.substring(d.start+1))):o&&(c=n.shiftKey,u=String.fromCharCode(n.keyCode),u=c?u.toUpperCase():u.toLowerCase(),a+=u)),s=e.attr("placeholder"),!a&&s&&(a=s),(l=I(a,e)+4)!==t&&(t=l,e.width(l),e.triggerHandler("resize")))};e.on("keydown keyup update blur",n),n()},M=function(n,i){var a,r,o,s,l=this;s=n[0],s.selectize=l
;var c=window.getComputedStyle&&window.getComputedStyle(s,null);if(o=c?c.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction,o=o||n.parents("[dir]:first").attr("dir")||"",e.extend(l,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(o),eventNS:".selectize"+ ++M.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,
isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?l.onSearchChange:v(l.onSearchChange,i.loadThrottle)}),l.sifter=new t(this.options,{diacritics:i.diacritics}),l.settings.options){for(a=0,
r=l.settings.options.length;a<r;a++)l.registerOption(l.settings.options[a]);delete l.settings.options}if(l.settings.optgroups){for(a=0,r=l.settings.optgroups.length;a<r;a++)l.registerOptionGroup(l.settings.optgroups[a]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),
l.setup()};return a.mixin(M),n.mixin(M),e.extend(M.prototype,{setup:function(){var t,n,i,a,c,u,d,p,h,f=this,v=f.settings,g=f.eventNS,y=e(window),b=e(document),I=f.$input;if(d=f.settings.mode,p=I.attr("class")||"",t=e("<div>").addClass(v.wrapperClass).addClass(p).addClass(d),n=e("<div>").addClass(v.inputClass).addClass("items").appendTo(t),i=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",I.is(":disabled")?"-1":f.tabIndex),u=e(v.dropdownParent||t),
a=e("<div>").addClass(v.dropdownClass).addClass(d).hide().appendTo(u),c=e("<div>").addClass(v.dropdownContentClass).appendTo(a),f.settings.copyClassesToDropdown&&a.addClass(p),t.css({width:I[0].style.width}),f.plugins.names.length&&(h="plugin-"+f.plugins.names.join(" plugin-"),t.addClass(h),a.addClass(h)),(null===v.maxItems||v.maxItems>1)&&1===f.tagType&&I.attr("multiple","multiple"),f.settings.placeholder&&i.attr("placeholder",v.placeholder),!f.settings.splitOn&&f.settings.delimiter){
var M=f.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");f.settings.splitOn=new RegExp("\\s*"+M+"+\\s*")}I.attr("autocorrect")&&i.attr("autocorrect",I.attr("autocorrect")),I.attr("autocapitalize")&&i.attr("autocapitalize",I.attr("autocapitalize")),f.$wrapper=t,f.$control=n,f.$control_input=i,f.$dropdown=a,f.$dropdown_content=c,a.on("mouseenter","[data-selectable]",function(){return f.onOptionHover.apply(f,arguments)}),a.on("mousedown click","[data-selectable]",function(){
return f.onOptionSelect.apply(f,arguments)}),m(n,"mousedown","*:not(input)",function(){return f.onItemSelect.apply(f,arguments)}),f.settings.manualInputWidth||S(i),n.on({mousedown:function(){return f.onMouseDown.apply(f,arguments)},click:function(){return f.onClick.apply(f,arguments)}}),i.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return f.onKeyDown.apply(f,arguments)},keyup:function(){return f.onKeyUp.apply(f,arguments)},keypress:function(){
return f.onKeyPress.apply(f,arguments)},resize:function(){f.positionDropdown.apply(f,[])},blur:function(){return f.onBlur.apply(f,arguments)},focus:function(){return f.ignoreBlur=!1,f.onFocus.apply(f,arguments)},paste:function(){return f.onPaste.apply(f,arguments)}}),I.parents().last().find('label[for="'+I.attr("id")+'"]').on("click",function(){f.onClick.apply(f,arguments)}),b.on("keydown"+g,function(e){f.isCmdDown=e[r?"metaKey":"ctrlKey"],f.isCtrlDown=e[r?"altKey":"ctrlKey"],
f.isShiftDown=e.shiftKey}),b.on("keyup"+g,function(e){e.keyCode===s&&(f.isCtrlDown=!1),16===e.keyCode&&(f.isShiftDown=!1),e.keyCode===o&&(f.isCmdDown=!1)}),b.on("mousedown"+g,function(e){if(f.isFocused){if(e.target===f.$dropdown[0]||e.target.parentNode===f.$dropdown[0])return!1;f.$control.has(e.target).length||e.target===f.$control[0]||f.blur(e.target)}}),y.on(["scroll"+g,"resize"+g].join(" "),function(){f.isOpen&&f.positionDropdown.apply(f,arguments)}),y.on("mousemove"+g,function(){
f.ignoreHover=!1}),this.revertSettings={$children:I.children().detach(),tabindex:I.attr("tabindex")},I.attr("tabindex",-1).hide().after(f.$wrapper),e.isArray(v.items)&&(f.setValue(v.items),delete v.items),l&&I.on("invalid"+g,function(e){e.preventDefault(),f.isInvalid=!0,f.refreshState()}),f.updateOriginalInput(),f.refreshItems(),f.refreshState(),f.updatePlaceholder(),f.isSetup=!0,I.is(":disabled")&&f.disable(),f.on("change",this.onChange),I.data("selectize",f),I.addClass("selectized"),
f.trigger("initialize"),!0===v.preload&&f.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,i=t.settings.optgroupLabelField,a={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[i])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){
return'<div class="create">Add <strong>'+t(e.input)+"</strong>&hellip;</div>"}};t.settings.render=e.extend({},a,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",
dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){var t=this;t.isFocused||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,i=t.isDefaultPrevented();e(t.target);if(n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode&&t.target!==n.$control[0]?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1
}else i||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout(function(){for(var t=e.trim(n.$control_input.val()||"").split(n.settings.splitOn),i=0,a=t.length;i<a;i++)n.createItem(t[i])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which)
;return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target,this.$control_input[0],this);if(t.isLocked)return void(9!==e.keyCode&&e.preventDefault());switch(e.keyCode){case 65:if(t.isCmdDown)return void t.selectAll();break;case 27:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:
if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(t.$activeOption){t.ignoreHover=!0;var i=t.getAdjacentOption(t.$activeOption,-1);i.length&&t.setActiveOption(i,!0,!0)}return void e.preventDefault();case 13:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),
e.preventDefault()));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return void(t.settings.selectOnTab&&t.isOpen&&t.$activeOption?(t.onOptionSelect({currentTarget:t.$activeOption}),t.settings.allowCreateEmpty&&1===t.settings.maxItems||t.isFull()||e.preventDefault()):t.settings.create&&t.createItem()&&e.preventDefault());case 8:return void t.deleteSelection(e,!0);case 46:return void t.deleteSelection(e)}
return!t.isFull()&&!t.isInputHidden||(r?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load(function(i){n.apply(t,[e,i])})))},onFocus:function(e){var t=this,n=t.isFocused
;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus))return n.ignoreBlur||document.activeElement!==n.$dropdown_content[0]?void setTimeout(function(){var e=function(){n.close(),
n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),(t||document.body).focus(),n.ignoreFocus=!1,n.trigger("blur")};n.ignoreFocus=!0,n.settings.selectOnBlur&&n.$activeOption&&1===n.$activeOption.not(".create").length?(n.addItem(n.$activeOption.not(".create").data("value")),e()):n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,e):e()}):(n.ignoreBlur=!0,void n.onFocus(e))},onOptionHover:function(e){
this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,i,a=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),i=e(t.currentTarget),i.hasClass("create")?a.createItem(null,function(){a.settings.closeAfterSelect&&a.close()}):void 0!==(n=i.attr("data-value"))&&(a.lastQuery=null,a.setTextboxValue(""),a.addItem(n),a.settings.closeAfterSelect?a.close():!a.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&a.setActiveOption(a.getOption(n)))},
onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input
;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){g(this,t?[]:["change"],function(){this.clear(t),this.addItems(e,t)})},setActiveItem:function(t,n){var i,a,r,o,s,l,c,u,d=this;if("single"!==d.settings.mode){if(t=e(t),!t.length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput())
;if("mousedown"===(i=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(u=d.$control.children(".active:last"),o=Array.prototype.indexOf.apply(d.$control[0].childNodes,[u[0]]),s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]),o>s&&(c=o,o=s,s=c),a=o;a<=s;a++)l=d.$control[0].childNodes[a],-1===d.$activeItems.indexOf(l)&&(e(l).addClass("active"),d.$activeItems.push(l));n.preventDefault()
}else"mousedown"===i&&d.isCtrlDown||"keydown"===i&&this.isShiftDown?t.hasClass("active")?(r=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(r,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,i){var a,r,o,s,l,u=this;u.$activeOption&&u.$activeOption.removeClass("active"),u.$activeOption=null,t=e(t),
t.length&&(u.$activeOption=t.addClass("active"),!n&&c(n)||(a=u.$dropdown_content.height(),r=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,o=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,s=o,l=o-a+r,o+r>a+n?u.$dropdown_content.stop().animate({scrollTop:l},i?u.settings.scrollDuration:0):o<n&&u.$dropdown_content.stop().animate({scrollTop:s},i?u.settings.scrollDuration:0)))},selectAll:function(){var e=this
;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){this.setTextboxValue(""),this.$control_input.css({opacity:0}),this.settings.manualInputWidth||this.$control_input.css({position:"absolute",left:this.rtl?1e4:-1e4}),this.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1}),
this.settings.manualInputWidth||this.$control_input.css({position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout(function(){e.ignoreFocus=!1,e.onFocus()},0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField
;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t}},search:function(t){var n,i,a,r=this,o=r.settings,s=this.getSearchOptions();if(o.score&&"function"!=typeof(a=r.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==r.lastQuery?(r.lastQuery=t,i=r.sifter.search(t,e.extend(s,{score:a})),r.currentResults=i):i=e.extend(!0,{},r.currentResults),
o.hideSelected)for(n=i.items.length-1;n>=0;n--)-1!==r.items.indexOf(u(i.items[n].id))&&i.items.splice(n,1);return i},refreshOptions:function(t){var n,a,r,o,s,l,c,d,p,h,f,v,g,m,y,b;void 0===t&&(t=!0);var I=this,S=e.trim(I.$control_input.val()),M=I.search(S),D=I.$dropdown_content,C=I.$activeOption&&u(I.$activeOption.attr("data-value"));for(o=M.items.length,"number"==typeof I.settings.maxOptions&&(o=Math.min(o,I.settings.maxOptions)),s={},l=[],n=0;n<o;n++)for(c=I.options[M.items[n].id],
d=I.render("option",c),p=c[I.settings.optgroupField]||"",h=e.isArray(p)?p:[p],a=0,r=h&&h.length;a<r;a++)p=h[a],I.optgroups.hasOwnProperty(p)||(p=""),s.hasOwnProperty(p)||(s[p]=[],l.push(p)),s[p].push(d);for(this.settings.lockOptgroupOrder&&l.sort(function(e,t){return(I.optgroups[e].$order||0)-(I.optgroups[t].$order||0)}),f=[],n=0,o=l.length;n<o;n++)p=l[n],I.optgroups.hasOwnProperty(p)&&s[p].length?(v=I.render("optgroup_header",I.optgroups[p])||"",v+=s[p].join(""),
f.push(I.render("optgroup",e.extend({},I.optgroups[p],{html:v})))):f.push(s[p].join(""));if(D.html(f.join("")),I.settings.highlight&&M.query.length&&M.tokens.length)for(n=0,o=M.tokens.length;n<o;n++)i(D,M.tokens[n].regex);if(!I.settings.hideSelected)for(n=0,o=I.items.length;n<o;n++)I.getOption(I.items[n]).addClass("selected");g=I.canCreate(S),g&&(D.prepend(I.render("option_create",{input:S})),b=e(D[0].childNodes[0])),I.hasOptions=M.items.length>0||g,
I.hasOptions?(M.items.length>0?(y=C&&I.getOption(C),y&&y.length?m=y:"single"===I.settings.mode&&I.items.length&&(m=I.getOption(I.items[0])),m&&m.length||(m=b&&!I.settings.addPrecedence?I.getAdjacentOption(b,1):D.find("[data-selectable]:first"))):m=b,I.setActiveOption(m),t&&!I.isOpen&&I.open()):(I.setActiveOption(null),t&&I.isOpen&&I.close())},addOption:function(t){var n,i,a,r=this;if(e.isArray(t))for(n=0,i=t.length;n<i;n++)r.addOption(t[n]);else(a=r.registerOption(t))&&(r.userOptions[a]=!0,
r.lastQuery=null,r.trigger("option_add",a,t))},registerOption:function(e){var t=u(e[this.settings.valueField]);return!(!t||this.options.hasOwnProperty(t))&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=u(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},
removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var i,a,r,o,s,l,c,d=this;if(t=u(t),r=u(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof r)throw new Error("Value must be set in option data");c=d.options[t].$order,r!==t&&(delete d.options[t],
-1!==(o=d.items.indexOf(t))&&d.items.splice(o,1,r)),n.$order=n.$order||c,d.options[r]=n,s=d.renderCache.item,l=d.renderCache.option,s&&(delete s[t],delete s[r]),l&&(delete l[t],delete l[r]),-1!==d.items.indexOf(r)&&(i=d.getItem(t),a=e(d.render("item",n)),i.hasClass("active")&&a.addClass("active"),i.replaceWith(a)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=u(e);var i=n.renderCache.item,a=n.renderCache.option;i&&delete i[e],a&&delete a[e],
delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var e=this;e.loadedSearches={},e.userOptions={},e.renderCache={},e.options=e.sifter.items={},e.lastQuery=null,e.trigger("option_clear"),e.clear()},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var i=this.$dropdown.find("[data-selectable]"),a=i.index(t)+n
;return a>=0&&a<i.length?i.eq(a):e()},getElementWithValue:function(t,n){if(void 0!==(t=u(t))&&null!==t)for(var i=0,a=n.length;i<a;i++)if(n[i].getAttribute("data-value")===t)return e(n[i]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){for(var i=e.isArray(t)?t:[t],a=0,r=i.length;a<r;a++)this.isPending=a<r-1,this.addItem(i[a],n)},addItem:function(t,n){g(this,n?[]:["change"],function(){var i,a,r,o,s,l=this,c=l.settings.mode
;if(t=u(t),-1!==l.items.indexOf(t))return void("single"===c&&l.close());l.options.hasOwnProperty(t)&&("single"===c&&l.clear(n),"multi"===c&&l.isFull()||(i=e(l.render("item",l.options[t])),s=l.isFull(),l.items.splice(l.caretPos,0,t),l.insertAtCaret(i),(!l.isPending||!s&&l.isFull())&&l.refreshState(),l.isSetup&&(r=l.$dropdown_content.find("[data-selectable]"),l.isPending||(a=l.getOption(t),o=l.getAdjacentOption(a,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==c),
o&&l.setActiveOption(l.getOption(o))),!r.length||l.isFull()?l.close():l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",t,i),l.updateOriginalInput({silent:n}))))})},removeItem:function(e,t){var n,i,a,r=this;n="object"==typeof e?e:r.getItem(e),e=u(n.attr("data-value")),-1!==(i=r.items.indexOf(e))&&(n.remove(),n.hasClass("active")&&(a=r.$activeItems.indexOf(n[0]),r.$activeItems.splice(a,1)),r.items.splice(i,1),r.lastQuery=null,
!r.settings.persist&&r.userOptions.hasOwnProperty(e)&&r.removeOption(e,t),i<r.caretPos&&r.setCaret(r.caretPos-1),r.refreshState(),r.updatePlaceholder(),r.updateOriginalInput({silent:t}),r.positionDropdown(),r.trigger("item_remove",e,n))},createItem:function(t,n){var i=this,a=i.caretPos;t=t||e.trim(i.$control_input.val()||"");var r=arguments[arguments.length-1];if("function"!=typeof r&&(r=function(){}),"boolean"!=typeof n&&(n=!0),!i.canCreate(t))return r(),!1;i.lock()
;var o="function"==typeof i.settings.create?this.settings.create:function(e){var t={};return t[i.settings.labelField]=e,t[i.settings.valueField]=e,t},s=f(function(e){if(i.unlock(),!e||"object"!=typeof e)return r();var t=u(e[i.settings.valueField]);if("string"!=typeof t)return r();i.setTextboxValue(""),i.addOption(e),i.setCaret(a),i.addItem(t),i.refreshOptions(n&&"single"!==i.settings.mode),r(e)}),l=o.apply(this,[t,s]);return void 0!==l&&s(l),!0},refreshItems:function(){this.lastQuery=null,
this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){var e=this;e.isRequired&&(e.items.length&&(e.isInvalid=!1),e.$control_input.prop("required",void 0)),e.refreshClasses()},refreshClasses:function(){var t=this,n=t.isFull(),i=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),
t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",i).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!i)},isFull:function(){
return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,a,r=this;if(e=e||{},1===r.tagType){for(i=[],t=0,n=r.items.length;t<n;t++)a=r.options[r.items[t]][r.settings.labelField]||"",i.push('<option value="'+d(r.items[t])+'" selected="selected">'+d(a)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),r.$input.html(i.join(""))}else r.$input.val(r.getValue()),
r.$input.attr("value",r.$input.val());r.isSetup&&(e.silent||r.trigger("change",r.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||e.settings.hideDropdown||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({
visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&e.hideInput(),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),
this.$dropdown.css({width:e.outerWidth(),top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(t){var n=Math.min(this.caretPos,this.items.length);0===n?this.$control.prepend(t):e(this.$control[0].childNodes[n]).before(t),this.setCaret(n+1)},
deleteSelection:function(t,n){var i,a,r,o,s,l,c,u,d,p=this;if(r=n||void 0===n&&t&&8===t.keyCode?-1:1,o=y(p.$control_input[0]),p.$activeOption&&!p.settings.hideSelected&&(c=p.getAdjacentOption(p.$activeOption,-1).attr("data-value")),s=[],p.$activeItems.length){for(d=p.$control.children(".active:"+(r>0?"last":"first")),l=p.$control.children(":not(input)").index(d),r>0&&l++,i=0,a=p.$activeItems.length;i<a;i++)s.push(e(p.$activeItems[i]).attr("data-value"));t&&(t.preventDefault(),
t.stopPropagation())}else(p.isFocused||"single"===p.settings.mode)&&p.items.length&&(r<0&&0===o.start&&0===o.length?s.push(p.items[p.caretPos-1]):r>0&&o.start===p.$control_input.val().length&&s.push(p.items[p.caretPos]));if(!s.length||"function"==typeof p.settings.onDelete&&!1===p.settings.onDelete.apply(p,[s]))return!1;for(void 0!==l&&p.setCaret(l);s.length;)p.removeItem(s.pop());return p.showInput(),p.positionDropdown(),p.refreshOptions(!0),c&&(u=p.getOption(c),u.length&&p.setActiveOption(u)),
!0},advanceSelection:function(e,t){var n,i,a,r,o,s=this;0!==e&&(s.rtl&&(e*=-1),n=e>0?"last":"first",i=y(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(r=s.$control_input.val().length,(e<0?0===i.start&&0===i.length:i.start===r)&&!r&&s.advanceCaret(e,t)):(o=s.$control.children(".active:"+n),o.length&&(a=s.$control.children(":not(input)").index(o),s.setActiveItem(null),s.setCaret(e>0?a+1:a))))},advanceCaret:function(e,t){var n,i,a=this;0!==e&&(n=e>0?"next":"prev",
a.isShiftDown?(i=a.$control_input[n](),i.length&&(a.hideInput(),a.setActiveItem(i),t&&t.preventDefault())):a.setCaret(a.caretPos+e))},setCaret:function(t){var n=this;if(t="single"===n.settings.mode?n.items.length:Math.max(0,Math.min(n.items.length,t)),!n.isPending){var i,a,r,o;for(r=n.$control.children(":not(input)"),i=0,a=r.length;i<a;i++)o=e(r[i]).detach(),i<t?n.$control_input.before(o):n.$control.append(o)}n.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},
unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,i=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),
t.$input.html("").append(i.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:i.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(e,t){var n,i,a="",r=!1,o=this,s=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return"option"!==e&&"item"!==e||(n=u(t[o.settings.valueField]),r=!!n),
r&&(c(o.renderCache[e])||(o.renderCache[e]={}),o.renderCache[e].hasOwnProperty(n))?o.renderCache[e][n]:(a=o.settings.render[e].apply(this,[t,d]),"option"!==e&&"option_create"!==e||(a=a.replace(s,"<$1 data-selectable")),"optgroup"===e&&(i=t[o.settings.optgroupValueField]||"",a=a.replace(s,'<$1 data-group="'+p(d(i))+'"')),"option"!==e&&"item"!==e||(a=a.replace(s,'<$1 data-value="'+p(d(n||""))+'"')),r&&(o.renderCache[e][n]=a),a)},clearCache:function(e){var t=this
;void 0===e?t.renderCache={}:delete t.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return(e.length||t.settings.allowCreateEmpty)&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),M.count=0,M.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,selectOnBlur:!1,createFilter:null,
highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,allowCreateEmpty:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",manualInputWidth:!1,dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,
wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,i=e.extend({},n,t),a=i.dataAttr,r=i.labelField,o=i.valueField,s=i.optgroupField,l=i.optgroupLabelField,c=i.optgroupValueField,d=function(t,n){var s,l,c,u,d=t.attr(a);if(d)for(n.options=JSON.parse(d),s=0,
l=n.options.length;s<l;s++)n.items.push(n.options[s][o]);else{var p=e.trim(t.val()||"");if(!i.allowEmptyOption&&!p.length)return;for(c=p.split(i.delimiter),s=0,l=c.length;s<l;s++)u={},u[r]=c[s],u[o]=c[s],n.options.push(u);n.items=c}},p=function(t,n){var d,p,h,f,v=n.options,g={},m=function(e){var t=a&&e.attr(a);return"string"==typeof t&&t.length?JSON.parse(t):null},y=function(t,a){t=e(t);var l=u(t.attr("value"));if(l||i.allowEmptyOption)if(g.hasOwnProperty(l)){if(a){var c=g[l][s]
;c?e.isArray(c)?c.push(a):g[l][s]=[c,a]:g[l][s]=a}}else{var d=m(t)||{};d[r]=d[r]||t.text(),d[o]=d[o]||l,d[s]=d[s]||a,g[l]=d,v.push(d),t.is(":selected")&&n.items.push(l)}};for(n.maxItems=t.attr("multiple")?null:1,f=t.children(),d=0,p=f.length;d<p;d++)h=f[d].tagName.toLowerCase(),"optgroup"===h?function(t){var i,a,r,o,s;for(t=e(t),r=t.attr("label"),r&&(o=m(t)||{},o[l]=r,o[c]=r,n.optgroups.push(o)),s=e("option",t),i=0,a=s.length;i<a;i++)y(s[i],r)}(f[d]):"option"===h&&y(f[d])}
;return this.each(function(){if(!this.selectize){var a=e(this),r=this.tagName.toLowerCase(),o=a.attr("placeholder")||a.attr("data-placeholder");o||i.allowEmptyOption||(o=a.children('option[value=""]').text());var s={placeholder:o,options:[],optgroups:[],items:[]};"select"===r?p(a,s):d(a,s),new M(a,e.extend(!0,{},n,s,t))}})},e.fn.selectize.defaults=M.defaults,e.fn.selectize.support={validity:l},M.define("remove_button",function(t){if("single"!==this.settings.mode){t=e.extend({label:"&times;",
title:"Remove",className:"remove",append:!0},t);var n=this,i='<a href="javascript:void(0)" class="'+t.className+'" tabindex="-1" title="'+d(t.title)+'">'+t.label+"</a>",a=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};this.setup=function(){var r=n.setup;return function(){if(t.append){var o=n.settings.render.item;n.settings.render.item=function(e){return a(o.apply(this,arguments),i)}}r.apply(this,arguments),
this.$control.on("click","."+t.className,function(t){if(t.preventDefault(),!n.isLocked){var i=e(t.currentTarget).parent();n.setActiveItem(i),n.deleteSelection()&&n.setCaret(n.items.length)}})}}()}}),M.define("restore_on_backspace",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var i,a
;return 8===t.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1)>=0&&i<this.items.length?(a=this.options[this.items[i]],this.deleteSelection(t,!0)&&(this.setTextboxValue(e.text.apply(this,[a])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)}}()}),M.define("restore_on_focus",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]};var n=t.onFocus;this.onFocus=function(t){return function(t){
var i=this.caretPos-1;if(i>=0&&i<this.items.length){var a=this.options[this.items[i]],r=e.text.call(this,a);this.removeItem(a[this.settings.valueField]),this.setTextboxValue(r),this.refreshOptions(!0)}return n.apply(this,arguments)}}()}),M})}).call(t,n(13))},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(r.a)(),s.a,function(e,t,n){var i=t.key,a=t.title,r=void 0===a?"":a,o=t.type,s="photo"===o&&e.itemClusters,u=r.trim(),d=e.isCloudSyncServer?{
type:o,title:u}:{},p=e.entityID+"!/library/sections/"+i,h=n[p],f={isLibraryProvider:!0},v=s&&Object(c.a)(e,f,i),g=Object(l.a)(e,f,i,d);return h||v||g})}t.a=i;var a=n(4),r=(n.n(a),n(939)),o=n(35),s=n(941),l=n(150),c=n(1434)},function(e,t,n){"use strict";function i(e,t,n,i){if(e&&t&&t.isLibraryProvider&&n){var r=encodeURIComponent(e.machineIdentifier),o="/"===String(n).charAt(0),s=o?n:"/library/sections/"+n,l=encodeURIComponent(s);return a.join("#!/server/"+r+"/timeline?key="+l,i)}}t.a=i
;var a=n(18)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(78),l=n(32),c=n(110),u=n(16),d=n(352),p=n(116),h=n(3130),f=s.a.extend({mixins:c.a,url:function(){var e=this.server.get("activeConnection");if(e){var t=e.id.replace(/^http/,"ws");return this.server.resolveUrl("/:/websockets/notifications",{connection:new d.a({uri:t}),appendToken:!0})}},initialize:function(e){o.a.bindAll(this,"onOpen","onClose","onError","onMessage","getMessageTypes"),this.server=e.server},
open:function(){this.socket&&this.close(),this._deferred=a.a.Deferred();var e=o.a.result(this,"url");return e?(this.socket=new window.WebSocket(e),this.socket.onopen=this.onOpen,this.socket.onclose=this.onClose,this.socket.onerror=this.onError,this.socket.onmessage=this.onMessage,this._deferred.promise()):this._deferred.reject().promise()},close:function(){this.socket&&(this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null,this.socket.close(),
this.socket=null,this._deferred&&"pending"===this._deferred.state()&&this._deferred.reject())},testConnection:function(){if(this.server.get("connected")){var e=this.server.get("pmp").get("update");e&&"installing"===e.get("state")&&this.server.set("connected",null),this.server.trigger("error:connection",this.server)}},onOpen:function(e){var t=u.c("appStore"),n=this.server.entityID();n&&t.dispatch(Object(p.f)({serverEntityID:n,event:e})),this.server.trigger("socket:websocket",{opened:!0}),
this.trigger("open",this.server,e),this._deferred.resolve(this.server,e)},onClose:function(e){this.close();var t=u.c("appStore"),n=this.server.entityID();n&&t.dispatch(Object(p.e)({serverEntityID:n,event:e})),this.server.trigger("socket:websocket",{closed:!0}),this.trigger("close",this.server,e),this._deferred.reject(this.server,e),this.testConnection()},onError:function(e){this.close(),this.server.trigger("socket:websocket",{error:!0}),this.trigger("error",this.server,e),
this._deferred.reject(this.server,e),this.testConnection()},onMessage:function(e){var t=this,n=void 0;try{n=JSON.parse(e.data)}catch(t){return void l.a.warn("[Connections] Error formatting message:\n%s",e.data)}var i=!!n._elementType,a=i?o.a.first(n._children):n.NotificationContainer;if(a){var r=i?n.type:a.type,s=this[r],c=void 0;c=i?Array.isArray(a)?a:[a]:Object(h.a)(a,this.getMessageTypes()),c.forEach(function(e){t.trigger("message",e),o.a.isFunction(s)&&s.call(t,e)})}}});t.a=f
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(80),m=n(925),y=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop;a.state.isScrolling||(a._currentScrollTop=t)},a.state={isScrolling:!1},a._positionKey=m.a.getKey(n.scrollPositionKey),a._currentScrollTop=0,
a._restoreScrollDelay=n.smoothScroll?n.smoothScrollDuration:n.restoreScrollDelay,a._restoreScroll=!1,a._restoreScrollTimeoutID=null,a}return p()(t,e),t.prototype.componentDidMount=function(){this._restoreScrollPosition()},t.prototype.componentDidUpdate=function(e){var t=this.props.scrollPositionKey;e.scrollPositionKey!==t&&(this._positionKey=m.a.getKey(t))},t.prototype.componentWillUnmount=function(){this._storeScrollPosition(),
this._restoreScrollTimeoutID&&clearTimeout(this._restoreScrollTimeoutID)},t.prototype._restoreScrollPosition=function(){var e=this,t=m.a.get(this._positionKey);t&&(this.setState({isScrolling:!0}),this._currentScrollTop=t.scrollTop,this._restoreScroll=!0,this._restoreScrollTimeoutID=setTimeout(function(){e.setState({isScrolling:!1}),e._restoreScroll=!1},this._restoreScrollDelay))},t.prototype._storeScrollPosition=function(){m.a.set(this._positionKey,{scrollTop:this._currentScrollTop})},
t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=(e.restoreScrollDelay,e.scrollPositionKey,o()(e,["children","className","restoreScrollDelay","scrollPositionKey"]));return v.a.createElement(g.a,a()({className:n,scrollTop:this._currentScrollTop,restoreScroll:this._restoreScroll,onScrollPositionChange:this.onScrollPositionChange},i),t)},t}(f.Component);y.defaultProps={restoreScrollDelay:100,scrollPositionKey:"scrollPosition",smoothScroll:!0,smoothScrollDuration:400},
t.a=y},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return e?e.pmp.cloudAccount:null})}var a=n(4),r=(n.n(a),n(35));t.a=i},function(e,t,n){"use strict";function i(e){var t=e&&e.responseJSON,n=!t&&e&&e.responseText&&a.a.parseXML(e.responseText),i=t&&t.errors||n&&n.error;return i?Array.isArray(i)?i:[i]:[]}var a=n(74);t.a=i},function(e,t,n){"use strict";function i(e){var t=e&&e[0]
;return t?r.a.isObject(t)?Object(o.a)(t):t:Object(s.default)("There was a problem signing in to Plex.")}t.a=i;var a=n(10),r=n.n(a),o=n(428),s=n(3)},function(e,t,n){"use strict";function i(e){return!!e.get("shortVersion")&&Object(r.a)(e.get("shortVersion"),a.a.mediaProvidersServerRoot)}t.a=i;var a=n(160),r=n(271)},function(e,t,n){"use strict";function i(e){var t=e.get("cloudServer");return r.a.ajax(t.getXHROptions("/api/v2/pins",{method:"POST",dataType:"json",data:{strong:!0}})).then(function(e){
return e})}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.avatarUrl;return r()("div",{className:d.a.avatar},void 0,!n&&r()(l.a,{className:d.a.icon,name:"plex-icon-alert-560"}),r()(c.a,{serverEntityID:t,url:n,width:p,height:p}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=n(384),u=n(3197),d=n.n(u),p=60;t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e.get("cloudServer")
;return r.a.ajax(n.getXHROptions("/api/v2/pins/"+t,{dataType:"json"})).promise().then(function(e){return e})}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(22),a=n(3219),r=n.n(a),o=i.a.ItemView.extend({className:"loading",template:r.a,initialize:function(e){e&&e.inline&&this.$el.addClass("loading-inline")}});t.a=o},function(e,t,n){var i=n(1176).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";function i(e,t){if(e=parseInt(e,10),t=t||1,r.a.isNaN(e))return""
;if(0===e)return"0 Bytes";var n=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(t)+" "+o[n]}var a=n(10),r=n.n(a),o=["Bytes","KB","MB","GB","TB"];t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3263)),c=n.n(l);i.defaultProps={className:c.a.sidebarContainer},t.a=i},function(e,t,n){"use strict";function i(){
return Object(a.a)()?Object(r.default)("Plex Media Player"):Object(r.default)("Web Client")}t.a=i;var a=n(369),r=n(3)},function(e,t){e.exports={serverMenuItem:"ServerMenuItem-serverMenuItem-2djO5",disabledServerMenuItem:"ServerMenuItem-disabledServerMenuItem-22OGf",selectedServerMenuItem:"ServerMenuItem-selectedServerMenuItem-jaUTX",serverMenuItemContainer:"ServerMenuItem-serverMenuItemContainer-1DS9V",serverMenuTitle:"ServerMenuItem-serverMenuTitle-1s5qR",
serverMenuFriendlyName:"ServerMenuItem-serverMenuFriendlyName-37Gt7",serverMenuDetails:"ServerMenuItem-serverMenuDetails-1-Rfq",serverMenuIconContainer:"ServerMenuItem-serverMenuIconContainer-2WtBG",serverMenuIcon:"ServerMenuItem-serverMenuIcon-2zKCW",selectedIcon:"ServerMenuItem-selectedIcon-dhK05",secureIcon:"ServerMenuItem-secureIcon-3-O-_"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.isInstallingServerUpdate,i=e.isUnavailable,a=e.isSettingsPending
;return n||a&&!i?r()("div",{className:t},void 0,r()(u.a,{className:h.a.spinner,size:c.SMALL})):l.a.createElement(d.a,e)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(52),u=n(31),d=n(698),p=n(3269),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){return!e.isLibraryProvider}function a(){return Object(m.createSelector)(Object(M.a)(),S.c(),S.a(),Object(I.a)(y.b.CONTENT,i),Object(I.a)(y.b.SUBSCRIBE),Object(D.a)(C.j),Object(E.a)(),function(e,t,n,i,a,r,o){var s=e&&e.pmp||{};return{
machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName,promiseState:e.promiseState,presence:e.presence,allowChannelAccess:e.allowChannelAccess,isInstallingServerUpdate:e.isInstallingServerUpdate,isConnected:e.isConnected,isFullServer:e.isFullServer,isFullOwnedServer:e.isFullOwnedServer,isPersonalCloudServer:e.isPersonalCloudServer,isBundled:e.isBundled,isClaimed:e.isClaimed,hasHttpsConnections:e.hasHttpsConnections,hasFallbackConnections:e.hasFallbackConnections,
isProvidersPending:e.isProvidersPending,isProvidersPopulated:e.isProvidersPopulated,providersError:e.providersError,libraries:s.libraries,isLibrariesPending:s.isLibrariesPending,isLibrariesPopulated:s.isLibrariesPopulated,librariesError:s.librariesError,contentProviders:i,showRecordingSchedule:!!a.length,userHasServerDashboardFeature:r,isLibraryRefreshing:o,isOptimizeDatabaseInProgress:!!t,isCleanBundlesInProgress:!!n}})}function r(e,t){var n={serverEntityID:t.serverEntityID,
metricsPage:t.metricsPage};return{dispatchFetchLibraries:function(){e(b.g(n))},dispatchFetchProviders:function(){e(b.h(n))},onReloadHttpPress:function(){e(Object(O.g)())},onReloadHttpAlwaysPress:function(){e(Object(O.f)()),e(Object(O.g)())},onRestartPress:function(){e(T.l(n))},onDeleteServerConfirm:function(){e(T.e(n))},onAddLibraryPress:function(){e(T.a(n))},onSharePress:function(){e(T.n(n))},onUpdateLibrariesPress:function(){e(T.o(n))},onCancelUpdatePress:function(){e(T.b(n))},
onOptimizeDatabaseConfirm:function(){e(T.j(n))},onCleanBundlesConfirm:function(){e(T.d(n))},onEmptyTrashConfirm:function(){e(T.g(n))},onTryAgainPress:function(){e(Object(O.b)()),e(b.q(n))},onAllowFallbackPress:function(){e(T.h(n))}}}var o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(4),y=(n.n(m),n(64)),b=n(116),I=n(961),S=n(695),M=n(35),D=n(256),C=n(79),j=n(36),P=n(58),O=n(71),T=n(202),E=n(464),w=n(3279),A=function(e){function t(){
return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this.props.isConnected&&this._populate()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.serverEntityID,i=t.isConnected,a=n!==e.serverEntityID,r=i!==e.isConnected;i&&(a||r)&&this._populate()},t.prototype._populate=function(){var e=this;Object(j.a)(function(){e.props.dispatchFetchLibraries(),e.props.dispatchFetchProviders()})},t.prototype.render=function(){
var e=this.props,t=(e.metricsPage,e.dispatchFetchLibraries,e.dispatchFetchProviders,s()(e,["metricsPage","dispatchFetchLibraries","dispatchFetchProviders"]));return g.a.createElement(w.a,t)},t}(v.Component);t.a=Object(P.a)(a,r)(A)},function(e,t){e.exports={sidebarMessage:"SidebarMessage-sidebarMessage-3O-De"}},function(e,t,n){"use strict";function i(e){var t=e.className;return r()("div",{className:t},void 0,d)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(31)),c=n(3304),u=n.n(c),d=r()(l.a,{});i.defaultProps={className:u.a.spinnerContainer},t.a=i},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({headerClassName:u.a.header},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(962),c=n(3306),u=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.selectableKey,a=e.selectedKey,o=e.to,s=e.title,u=a&&a===i,p=void 0;return/^#/.test(o)||(Object(l.a)(),p="_blank"),r()(c.a,{className:t,target:p,
to:o,iconClassName:u?d.a.selectedIcon:d.a.icon,title:s,isSelected:u},i,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(949)),c=n(220),u=n(3307),d=n.n(u);t.a=i},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(305),o=n(840),s=n(1457),l=n(528),c=n(3336),u={tagsRenderer:c.a,tagsRendererOptions:{},defaultBindings:{".item-title":{modelAttribute:"title"},".item-year":{modelAttribute:"year"},".item-progress":{modelAttribute:"viewOffset",manual:!0,formatter:function(e,t){
var n=this.model.get("duration"),i=Object(l.a)(e,n);i&&t.css("width",i+"%"),t.parent().toggleClass("hidden",!i)}},".item-duration":{modelAttribute:"duration",autohide:!0,formatter:function(e){return e?Object(o.a)(e):0}},".item-unwatched-label":{modelAttribute:"viewCount",modelListeners:["viewCount","viewOffset"],manual:!0,autohide:function(e){if(this.shared&&!this.multiuser)return!1;var t=this.model.get("viewOffset");return!e&&!t}},".item-unavailable-btn":{modelAttribute:"Media",manual:!0,
autohide:function(e){return!!Object(s.a)(e).length}},".item-available-at":{modelAttribute:"originallyAvailableAt",autohide:!0,formatter:function(e){return Object(r.default)(e)}},".item-tagline":{modelAttribute:"tagline",autohide:!0},".item-genre":{modelAttribute:"Genre",autohide:!0,isHtml:!0,formatter:function(e){return e&&e.length?this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"genre",tags:e,maxLen:50,maxTags:2})):""}},".item-director":{modelAttribute:"Director",
manual:!0,autohide:!0,formatter:function(e,t){if(!e||!e.length)return"";var n=this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"director",tags:e,maxLen:50,maxTags:3}));return t.find(".metadata-tag-list").html(n),n}},".item-writer":{modelAttribute:"Writer",manual:!0,autohide:!0,formatter:function(e,t){if(!e||!e.length)return"";var n=this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"writer",tags:e,maxLen:50,maxTags:3}))
;return t.find(".metadata-tag-list").html(n),n}},".item-cast":{modelAttribute:"Role",manual:!0,autohide:!0,formatter:function(e,t){if(!e||!e.length)return"";var n=this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"actor",tags:e,maxLen:50,maxTags:5}));return t.find(".metadata-tag-list").html(n),n}},".item-summary":{modelAttribute:"summary",autohide:!0},".item-content-rating":{modelAttribute:"contentRating",autohide:!0},".media-count-badge":{modelAttribute:"Media",
formatter:function(e){return e.length},autohide:function(e){return e>1}},".details-unwatched-count-badge":{modelAttribute:"unviewedLeafCount",autohide:function(e){return!(this.shared&&!this.multiuser)&&!!e}},".content-rating-flag-container":{modelAttribute:"contentRating",manual:!0,autohide:!0},".studio-flag-container":{modelAttribute:"studio",manual:!0,autohide:!0}}};t.a=u},function(e,t,n){"use strict";function i(e){var t=[];return Array.isArray(e)||(e=[e]),r.a.each(e,function(e){var n=e.Part
;n&&r.a.each(n,function(e){!1!==e.exists&&!1!==e.accessible||t.push(e)})}),t}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.volume}t.a=i},function(e,t,n){"use strict";function i(e,t,n,i){return n*e/i+t}t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),
n(28)),g=n(311),m=n(3361),y=n.n(m),b=n(3362),I=n.n(b),S=n(3363),M=n.n(S),D=n(3364),C=n.n(D),j=n(185),P={position:"absolute",width:"100%",height:"100%"},O=p()({},P,{background:"url("+y.a+")",zIndex:2}),T={opacity:30,background:"36383b"},E=p()({},T,{format:"png"}),w=a()("div",{style:O}),A=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.url,r=e.allowPreset,o=e.allowLightPreset,s=e.allowBlur,l=e.isTypeFirstEnabled,c=window.innerWidth,u=window.innerHeight,d=s?E:T,h=void 0,f=void 0,v=void 0,m=void 0;if(s){var y=c/u;h=y>1?640:640*y,f=y>1?640/y:640;var b=Math.max(c/h,u/f);v=Math.round(100/b)}else h=Math.min(window.innerWidth,1920),f=Math.min(window.innerHeight,1080);if(!i&&r){var S=l?C.a:M.a;m=o?S:I.a}return a()("div",{},void 0,a()(j.a,{serverEntityID:t,providerEntityID:n,
url:i,src:m,width:h,height:f,minSize:!0,upscale:s,style:P,background:!0,transition:!0,transitionProps:g.a,filters:m?null:p()({},d,{blur:v}),allowPixelRatioSize:!1}),w)},t}(f.Component);A.defaultProps={allowBlur:!0},t.a=A},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(678)),r=Object(i.createSelector)(a.a,function(e){return e.invites});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(3371)),r=Object(i.createSelector)(a.a,function(e){return e.filter(function(e){return!e.read})})
;t.a=r},function(e,t,n){"use strict";function i(e){return{onDiscoverPlayers:function(t){e(c.e())},onPlayerSelect:function(e){Object(o.c)("remotePlexPlayerManager").requestSession(e)},onCastPress:function(t){e(l.b())},onDisconnectPress:function(t){e(c.i())}}}var a=n(11),r=n(4),o=(n.n(r),n(16)),s=n(173),l=n(1464),c=n(325),u=n(3378),d=Object(r.createSelector)(function(e){return e.companionServer},s.a,function(e,t){return t[e]}),p=Object(r.createSelector)(d,function(e){return e?e.pmp.players:[]
}),h=Object(r.createSelector)(function(e){return e.isCastApiAvailable},function(e){return e.remotePlayer},p,function(e){return e.companionServer},function(e,t,n,i){return{isCastApiAvailable:e,hasCompanionServer:!!i,isRemotePlayer:!!t,remotePlayerName:t&&t.friendlyName,remotePlayerProduct:t&&t.product,players:n}});t.a=Object(a.connect)(h,i)(u.a)},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return l})
;var i,a=n(40),r=n(16),o=n(3373),s=(Object(a.a)("ui/player/remoteCastPlayer/changeCastApiAvailability"),Object(a.a)("ui/player/remoteCastPlayer/requestCastSession")),l=(Object(a.a)("ui/player/remoteCastPlayer/changeRemoteCastPlayer"),i={},i["ui/player/remoteCastPlayer/changeCastApiAvailability"]=function(e,t){e.set("isCastApiAvailable",t)},i["ui/player/remoteCastPlayer/requestCastSession"]=function(e){Object(r.c)("remoteCastPlayerManager").requestSession()},
i["ui/player/remoteCastPlayer/changeRemoteCastPlayer"]=function(e,t){var n=e.get("ui"),i=n.get("audioVideoPlayer"),a=n.get("photoPlayer");i.get("isOpen")&&i.set("confirmLocalToRemote",!0),a.get("isOpen")&&a.set("confirmLocalToRemote",!0),e.set("remotePlayer",new o.a(t,{parse:!0}))},i)},function(e,t,n){"use strict";function i(e,t,n){var i=e.indexOf(t);if(i<0)return e;var a=e.slice(0);return a[i]=n,a}t.a=i},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowMetrics,i=t.metricsProperties,a=void 0===i?{}:i,o=e.server,p="/library/metadata/"+e.get("ratingKey")+"/analyze",h=o.getXHROptions(p,{type:"PUT"}),f=e.get("mediaState"),v=c.a,g=Object(d.u)(e.get("type"));g||e.set("mediaState",v);var m=s.a.ajax(h).fail(function(t){g||e.get("mediaState")!==v||e.set("mediaState",f)});return n&&Object(l.c)("metrics").trackClick(r()({},a,{action:u.c,type:e.get("type")})),m.promise()}t.a=i
;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(16),c=n(3400),u=n(86),d=n(27)},function(e,t,n){"use strict";function i(e,t,n){var i=n.rating,a=n.allowMetrics,o=n.metricsProperties,h=void 0===o?{}:o,f=e.get("features").get(d.b.ACTIONS).get("actions").get(u.b.RATE);if(!f)return s.a.Deferred().reject().promise();var v={key:t.get("ratingKey"),identifier:t.get("identifier"),rating:i},g=l.join(f.get("key"),v),m=e.getXHROptions(g,{type:"PUT"}),y=t.get("userRating"),b=-1===i?void 0:i;t.set("userRating",b)
;var I=s.a.ajax(m).fail(function(e){t.get("userRating")===b&&t.set("userRating",y)});return a&&Object(c.c)("metrics").trackClick(r()({},h,{action:p.M,type:t.get("type"),rating:i})),I.promise()}t.a=i;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(18),c=n(16),u=n(270),d=n(64),p=n(86)},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowMetrics,i=t.metricsProperties,a=void 0===i?{}:i,o=e.server,d="/library/metadata/"+e.get("ratingKey")+"/refresh",p=o.getXHROptions(d,{type:"PUT"}),h=e.get("metadataState"),f=c.d;e.set("metadataState",f);var v=s.a.ajax(p).fail(function(t){e.get("metadataState")===f&&e.set("metadataState",h)});return n&&Object(l.c)("metrics").trackClick(r()({},a,{action:u.N,type:e.get("type")})),v.promise()}t.a=i
;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(16),c=n(1469),u=n(86)},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o});var i="queued",a="matching",r="processing",o="loading"},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.played,i=t.providerEntityID,o=t.serverEntityID,s=t.metadataItemEntityID,l=Object(v.i)(e,t);if(null==l){
return c.a.Deferred().reject({errorMessage:"Could not find providerModel with provided `providerEntityID`"}).promise()}var h=Object(v.k)(e,t);if(null==h){return c.a.Deferred().reject({errorMessage:"Could not find serverModel with provided `serverEntityID`"}).promise()}var f=Object(v.m)(e,{metadataItemEntityID:s});if(null==f){return c.a.Deferred().reject({errorMessage:"Could not find metadataModel with provided `metadataItemEntityID`"}).promise()}
var g=l.get("features").get(p.b.ACTIONS).get("actions").get(d.b.SCROBBLE),m=n?g.get("key"):g.get("reverseKey"),y={identifier:f.get("identifier")||"com.plexapp.plugins.library"};h.get("isCloudSyncServer")?(y.key=f.get("key"),y.ratingKey=f.get("ratingKey")):y.key=f.get("ratingKey");var b=u.join(m,y),I=c.a.ajax(l.getXHROptions(b));return I.then(function(){var t={providerEntityID:i,serverEntityID:o,metadataItemEntityID:f.entityID()};r(e,t,n),a(e,t,n)}),I}function a(e,t,n){var i=Object(v.m)(e,t)
;if(i)if(Object(g.u)(i.get("type"))){i.set({viewedLeafCount:n?i.get("leafCount"):0});var r=Object(h.a)(f.h,i.get("childrenKey"),t.serverEntityID),o=Object(v.n)(e,{metadataListEntityID:r});o&&o.get("metadataItems").forEach(function(i){var r=s()({},t,{metadataItemEntityID:i.entityID()});a(e,r,n)})}else i.set({viewOffset:0,viewCount:n?1:0})}function r(e,t,n,i){var a=Object(v.m)(e,t);if(a){var o=Object(g.r)(a.get("type")),l=Object(h.a)(f.g,a.get("parentKey"),t.serverEntityID),c=Object(v.m)(e,{
metadataItemEntityID:l}),u=void 0;if(c&&(u=Object(g.r)(c.get("type"))),u&&u.typeString===o.parent){var d=void 0,p=Object(g.u)(a.get("type"));n?d=p?a.get("unviewedLeafCount"):1:(d=p?a.get("viewedLeafCount"):1,d*=-1);var m=null!=i?i:d;c.set({viewedLeafCount:c.get("viewedLeafCount")+m});r(e,s()({},t,{metadataItemEntityID:l}),n,m)}}}t.a=i;var o=n(6),s=n.n(o),l=n(13),c=n.n(l),u=(n(37),n(18)),d=n(270),p=n(64),h=n(38),f=n(45),v=n(70),g=n(27)},function(e,t,n){"use strict"
;var i=n(613),a=n(944),r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(19),u=n(18),d=n(16),p=n(43),h=n(123),f=n(513),v=n(3),g=n(524),m=n(3406),y=n(3410),b=n(3412),I=n(1473),S=n(3432),M=n(3436),D=n(1475),C=n(96),j=n(65),P=n(1476),O=n.n(P),T={movie:["general","tags","sharing","poster","art","info","advanced"],show:["general","tags","sharing","poster","banner","art","advanced"],season:["general","poster","art","info","advanced"],episode:["general","tags","poster","art","info","advanced"],
artist:["general","tags","poster","art","advanced"],album:["general","tags","sharing","poster","art","info","advanced"],track:["general","tags","info","advanced"],photoalbum:["general","poster","art","advanced"],photo:["general","tags","info","advanced"],clip:["general","info","advanced"],collection:["general","sharing","poster","art","info","advanced"]},E=["poster","art","banner","info","advanced"],w=C.a.extend({mixins:[g.a],name:"editMetadataModal",
className:"edit-metadata-modal modal modal-lg fade",template:O.a,panes:{general:{constructor:I.a},tags:{constructor:D.a},poster:{constructor:b.a},art:{constructor:b.a},banner:{constructor:b.a},sharing:{constructor:M.a},info:{constructor:S.a},advanced:{constructor:y.a}},events:l.a.extend({"click .change-pane-btn":"onChangePaneClick","click .save-btn":"onFormSubmit","submit .edit-metadata-form":"onFormSubmit"},C.a.prototype.events),ui:{saveBtn:".save-btn",message:".form-message",
navPane:".modal-nav-pane",loadingIndicator:".modal-body-pane .loading-inline"},regions:{paneRegion:".pane-region"},onlyAfterRender:["saveChanges","showPane","showNav"],initialize:function(e){C.a.prototype.initialize.apply(this,arguments);var t=e.items||[this.model],n=t[0],i=n.fetch({usePopulatedParams:!0,data:{includePreferences:"1"}});this.model=new m.a({},{server:n.server,metadataItems:t}),i=i.then(l.a.bind(function(){return this.model.setContext("section",Object(f.a)(n,{onlyIfCached:!1})),
this.model.populate()},this)),i.done(l.a.bind(function(){this.model.set("originalSaveParams",this.model.getSaveParams()),this.render(),this.showNav(),this.showPane(e.selectedPane||"general"),this.listenTo(c.a,"shortcut:save",this.saveChanges)},this)),i.fail(l.a.bind(function(){this.ui.message.text(Object(v.default)("There was an error editing this item")),this.ui.loadingIndicator.addClass("hidden")},this))},serializeData:function(){var e=this.model.get("type"),t=T[e]||T.movie
;this.model.get("isSingleMetadataItem")||(t=l.a.difference(t,E)),this.model.getSingleMetadataItem().has("preferences")||(t=l.a.difference(t,["advanced"])),"photo"!==e||this.model.server.supports("photoTagEdit")||(t=l.a.difference(t,["tags"]));var n=l.a.reduce(t,function(e,t){return e[t]=!0,e},{}),i=Object(v.default)("Edit {1}",this.model.get("aggregateTitle"),{escape:!0});return{item:this.model.toJSON(),panes:n,selectedPane:this.selectedPane,paneTitle:i}},paneConstructorArg:function(){return{
type:this.selectedPane}},invalidChangedAttrs:function(e){var t=[],n=this.model.get("type");if("track"===n){var r=l.a.has(e,"artist.id.value")||l.a.has(e,"artist.title.value")||l.a.has(e,"album.id.value")||l.a.has(e,"album.title.value"),o=e["album.id.value"]||e["album.title.value"],s=e["artist.id.value"]||e["artist.title.value"];!r||s&&o||(s||t.push("grandparentTitle"),o||t.push("parentTitle"))}else if("album"===n&&!this.model.get("isSingleMetadataItem")){
var c=this.model.get("mixedFields"),u=l.a.has(e,"artist.title.value")||l.a.has(e,"artist.id.value"),d=l.a.includes(c,"ratingKey"),p=l.a.has(e,"title.value");d&&p&&!u&&t.push("parentTitle")}if(l.a.has(e,"originallyAvailableAt.value")){var h=e["originallyAvailableAt.value"];if(/^\d{4}$/.test(h)&&(e["originallyAvailableAt.value"]+="-01-01",h=e["originallyAvailableAt.value"]),""!==h){var f=Object(i.a)(Object(a.a)(h,"yyyy-MM-dd",new Date)),v=Object(i.a)(Object(a.a)(h,"yyyy-MM-dd HH:mm:ss",new Date))
;f||v||t.push("originallyAvailableAt")}else this.model.set("originallyAvailableAt",h)}return t},markInvalid:function(e){this.paneRegion.currentView.markInvalid(e)},showNav:function(){this.ui.navPane.removeClass("hidden")},saveChanges:function(){var e=this.ui.saveBtn,t=this.ui.message;if(!e.isDisabled()){t.text(""),this.paneRegion.currentView.flushChanges();var n=[],i=this.model.getSaveParams(),a=this.invalidChangedAttrs(i);if(a.length)return void this.markInvalid(a);e.addClass("active")
;var r=this.showAdvancedConfirmModal({saving:!0});r.done(l.a.bind(function(){l.a.each(["poster","banner","art"],function(e){var t=this.model.get(e);t&&n.push(p.a.execute("changeArtwork",{item:this.model.getSingleMetadataItem(),artworkType:e,artworkRatingKey:t}))},this),n.push(this.savePreferences()),n.push(this.model.save());var i=o.a.when.apply(o.a,n);i.done(l.a.bind(function(){var e=d.c("appStore").dispatch,t=this.model.server.entityID();t&&e(Object(h.c)({serverEntityID:t})),this.hide()
},this)),i.fail(function(){t.text(Object(v.default)("Your changes could not be saved."))}),i.always(function(){e.removeClass("active")})},this)),r.fail(l.a.bind(function(){e.removeClass("active"),this.showPane("advanced")},this))}},savePreferences:function(){var e=this.model.get("preferences");if(!e.length)return o.a.Deferred().resolve().promise()
;var t=this.model.getSingleMetadataItem(),n=u.join(["/library/metadata",t.get("ratingKey"),"prefs"],e.getSaveParams()),i=this.model.server.getXHROptions(n,{type:"PUT"}),a=o.a.ajax(i);return a.done(function(){var n=t.get("preferences");e.forEach(function(e){n.get(e.id).set("value",e.get("value"))})}),a},showAdvancedConfirmModal:function(){if(!this.model.get("preferences").some(function(e){return/^autoDeletion/.test(e.id)}))return o.a.Deferred().resolve().promise();var e=new j.a({
title:Object(v.default)("Confirm Deletion Settings"),message:Object(v.default)("Deletion settings will take effect immediately! Files may be deleted and this can't be undone. Are you sure?"),confirmLabel:Object(v.default)("Yes"),cancelLabel:Object(v.default)("Cancel"),requireDoubleConfirm:!0,doubleConfirmMessage:Object(v.default)("Multiple files may be deleted."),doubleConfirmLabel:Object(v.default)("Yes, I'm sure"),hasDanger:!0});return c.a.trigger("show:modal",e),e.promise},
onPaneShow:function(e,t){this.listenTo(t,"focusSubmit",function(){this.ui.saveBtn.focus()})},onPaneHide:function(e,t){t.flushChanges(),this.stopListening(t)},onFormSubmit:function(e){e.preventDefault(),this.saveChanges()}});t.a=w},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"TagModel",context:["server","section"],idAttribute:"tag",syncedAttrs:{id:a.a.integer,tag:{type:a.a.string,save:!0},tagType:a.a.integer,librarySectionID:a.a.string,librarySectionKey:a.a.string,
librarySectionType:a.a.integer,filter:a.a.string,role:a.a.string,thumb:a.a.string,count:a.a.integer,context:a.a.string}});t.a=r},function(e,t,n){"use strict";function i(e){return s.a.reduce(e,function(e,t){return e[t]=!0,e},{})}
var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(3),c=n(27),u=n(847),d=n(970),p=n(3419),h=n(3421),f=n.n(h),v=n(3422),g=n.n(v),m=n(3423),y=n.n(m),b=n(3424),I=n.n(b),S=n(3425),M=n.n(S),D=n(3426),C=n.n(D),j=n(3427),P=n.n(j),O=n(3428),T=n.n(O),E=n(3429),w=n.n(E),A=n(3430),x=n.n(A),N=n(3431),L=n.n(N),k={movie:M.a,show:x.a,season:w.a,episode:I.a,artist:g.a,album:f.a,track:L.a,photoalbum:C.a,photo:P.a,playlist:T.a,collection:y.a},R=d.a.extend({regions:{ratingRegion:".rating-region"},ui:s.a.extend({
selectizeInputs:".selectize input[type=text]"},d.a.prototype.ui),initialize:function(e){var t=this.model.get("type");this.template=k[t]||k.movie;var n=Object(c.r)(t);this.canSelectize=this.model.server.supports("batchEdit")&&n,this.canReparent=this.model.server.supports("batchEdit")},serializeData:function(){var e=d.a.prototype.serializeData.apply(this,arguments);return e.supportsLinkedYears=this.model.server.supports("linkedYearMetadata"),e},flushChanges:function(){
var e=this.ui.form,t=e.find(".selectize input[tabindex=-1]"),n=i(s.a.pluck(t,"name")),a=i(s.a.pluck(e.find("[type=number]"),"name")),o=s()(e.serializeArray()).reject(function(e){return n[e.name]},this),l=s.a.reduce(o,function(e,t){if(a[t.name]){var n=t.value.trim();if(n)return e[t.name]=parseFloat(n,10),e;if(!this.model.get(t.name))return e}return e[t.name]=t.value,e},{},this);s.a.each(t,function(e){
var t=r()(e),n=t.data("updateAttr"),i=t.data("altUpdateAttr"),a=t.data("isText"),o=e.selectize.getValue();if(i)if(a)l[n]=o,l[i]=null;else{var s=e.selectize.options[o];if(s){var c=s[t.data("autocompleteAttr")];l[n]=c,l[i]=o}}else l[n]=o});var c=this.model.get("lockedFields");c&&c.set(this.getLockedFieldsArray(),{parse:!0}),this.model.set(l)},markInvalid:function(e){this.$(".form-group").removeClass("has-error"),s()(e).each(function(e){var t=this.$('.form-group[data-attr="'+e+'"]')
;t.addClass("has-error"),t.find(".control-error").text(Object(l.default)("Required"))},this)},onRender:function(){if(this.$(".rating-region").length>0&&this.ratingRegion.show(new u.a({model:this.model,passive:!0})),this.canSelectize){var e=this;this.ui.selectizeInputs.each(function(t,n){Object(p.a)(e,n)})}}});t.a=R},function(e,t,n){"use strict";function i(e,t,n){var i=/!$/.test(n),a=/\.id$/.test(n);if(i||a)return e[n]=t,e;var r=n.match(/^(.+)\.(.+)/);return r&&(e.type=Object(u.r)(r[1]).id,
n=r[2]),e[n+".query"]=t,e}var a=n(10),r=n.n(a),o=n(18),s=n(25),l=n(69),c=n(111),u=n(27),d=n(3420),p=s.a.extend({name:"MetadataAutocompleteResultCollection",context:["server","section","multiMetadataItem","query"],model:d.a,url:function(){var e={type:Object(u.r)(this.multiMetadataItem.get("type")).id,limit:10};return e=r.a.reduce(this.query,i,e),o.join([this.multiMetadataItem.sectionUrl(),"autocomplete"],e)},augmentResponseText:function(e,t){return t===l.a.xml?Object(c.b)(e):e}});t.a=p
},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(1432),o=(n.n(r),n(10)),s=n.n(o),l=n(514),c=n(970),u=n(3437),d=n(3438),p=n.n(d),h=n(3439),f=n.n(h),v=n(3440),g=n.n(v),m=n(3441),y=n.n(m),b=n(3442),I=n.n(b),S=n(3443),M=n.n(S),D=n(3444),C=n.n(D),j=c.a.extend({templatesByType:{movie:y.a,show:M.a,episode:g.a,artist:f.a,album:p.a,track:C.a,photo:I.a},ui:s.a.extend({tagInputs:".tag-input-hidden"},c.a.prototype.ui),events:s.a.extend({"change .lockable-field":"onLockableFieldChange"
},c.a.prototype.events),initialize:function(e){this.template=this.templatesByType[this.model.get("type")]||this.templatesByType.movie,this.canAutocomplete=this.model.server.supports("batchEdit"),this.canEditSimilarArtists=this.model.server.supports("editSimilarArtists"),this.getSection()},getSection:function(){var e=this.model.section;if(!e){var t=this.model.get("librarySectionID");e=new l.a({key:t},{server:this.model.server})}this.section=e},flushChanges:function(){
var e=this.ui.form,t=s.a.reduce(e.serializeArray(),function(e,t){return e[t.name]=t.value,e},{}),n=s.a.reduce(this.ui.tagInputs,function(e,t){var n=t.selectize,i=a()(t).data("name");return e[a()(t).data("attr")]=s.a.map(n.items,function(e){var t=n.options[e];return{tag:t.tag,id:t.id}}),this.model["original.tag."+i]=s.a.toArray(n.options),e},{},this);s.a.each(n,function(e,t){this.model.get(t).set(e,{parse:!0})},this),this.model.get("lockedFields").set(this.getLockedFieldsArray(),{parse:!0}),
this.model.set(t)},onRender:function(){var e=this;this.ui.tagInputs.each(function(t,n){Object(u.a)(e,n)})}});t.a=j},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn general-btn" data-pane="general" href="#"> <i class="modal-nav-icon glyphicon align-center"></i> '+m(i(n(5)).call(e,"General",{hash:{},data:t}))+" </a></li> "}function l(e,t){
var a="";return a+=' <li><a class="btn-gray change-pane-btn tags-btn" data-pane="tags" href="#"> <i class="modal-nav-icon glyphicon tags"></i> '+m(i(n(5)).call(e,"Tags",{hash:{},data:t}))+" </a></li> "}function c(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn sharing-btn" data-pane="sharing" href="#"> <i class="modal-nav-icon glyphicon parents"></i> '+m(i(n(5)).call(e,"Sharing",{hash:{},data:t}))+" </a></li> "}function u(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn poster-btn" data-pane="poster" href="#"> <i class="modal-nav-icon glyphicon picture"></i> '+m(i(n(5)).call(e,"Poster",{hash:{},data:t}))+" </a></li> "}function d(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn banner-btn" data-pane="banner" href="#"> <i class="modal-nav-icon glyphicon picture"></i> '+m(i(n(5)).call(e,"Banner",{hash:{},data:t}))+" </a></li> "}function p(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn art-btn" data-pane="art" href="#"> <i class="modal-nav-icon glyphicon picture"></i> '+m(i(n(5)).call(e,"Background",{hash:{},data:t}))+" </a></li> "}function h(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn info-btn" data-pane="info" href="#"> <i class="modal-nav-icon glyphicon circle-info"></i> '+m(i(n(5)).call(e,"Info",{hash:{},data:t}))+" </a></li> "}function f(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn advanced-btn" data-pane="advanced" href="#"> <i class="modal-nav-icon glyphicon cogwheel"></i> '+m(i(n(5)).call(e,"Advanced",{hash:{},data:t}))+" </a></li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m=this.escapeExpression,y=this
;return g+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon pencil"></i> '+m((v=t&&t.paneTitle,"function"==typeof v?v.apply(t):v))+'</h4> </div> <div class="modal-body modal-body-scroll modal-body-with-panes"> <div class="modal-nav-pane dark-scrollbar hidden"> <ul class="list modal-nav-list"> ',
v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.general),{hash:{},inverse:y.noop,fn:y.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.tags),{hash:{},inverse:y.noop,fn:y.program(3,l,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.sharing),{hash:{},inverse:y.noop,fn:y.program(5,c,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.poster),{hash:{},inverse:y.noop,
fn:y.program(7,u,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.banner),{hash:{},inverse:y.noop,fn:y.program(9,d,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.art),{hash:{},inverse:y.noop,fn:y.program(11,p,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||!1===v?v:v.info),{hash:{},inverse:y.noop,fn:y.program(13,h,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.panes,
null==v||!1===v?v:v.advanced),{hash:{},inverse:y.noop,fn:y.program(15,f,o),data:o}),(v||0===v)&&(g+=v),g+=' </ul> </div> <div class="modal-body-pane pane-region dark-scrollbar"> <div class="loading loading-inline"></div> </div> </div> <div class="modal-footer"> <span class="form-message"></span> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+m(i(n(5)).call(t,"Cancel",{hash:{},data:o
}))+'</button> <button type="button" class="save-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+m(i(n(5)).call(t,"Save Changes",{hash:{},data:o}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),a=n(3453),r=i.a.extend({name:"MatchResultCollection",context:["server"],model:a.a,url:function(){return"/library/metadata/"+this.parent.id+"/matches"}});t.default=r
},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],l=n.type,c=n.subtype,u=n.playlistType,d=n.key;if(!n.skipDetails&&l!==r.g)return l===r.l&&c!==a.b&&(d=n.skipParent?n.grandparentKey:n.parentKey),!d&&n.librarySectionID?Object(o.a)(e,t,n.librarySectionID,i):Object(s.a)(e,t,d,i,u)}t.a=i;var a=n(106),r=n(27),o=n(150),s=n(137)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){
return t.listType},Object(r.a)(),s.a,o.a,l.a,function(e,t,n,i,a){var r=t.type,o=r===c.d?r:e;return Object(u.p)(n,i,a,t,o)})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(204),c=n(27),u=n(326)},function(e,t,n){"use strict";function i(e,t,n,i){if(!(e&&t&&n&&i))return!1;var s=i.type,l=i.hasInvalidKey,c=i.deletedAt,u=i.isFolder,d=i.isMetadataList,p=i.firstItemType,h=i.onAir,f=l||c||u;if(!d&&f)return!1;if(!t.protocols.stream&&!h)return!1;if(t.features.playqueue)return!0;if(d&&!p)return!1
;var v=!!n[r.e];if(t.protocols.livetv&&(e.livetv<4||!v))return!1;if(t.protocols.livetv&&!a.a.get("allowLiveTVPlayback"))return!1;var g=d?p:s,m=Object(o.q)(g),y=Object(o.p)(g);return g===m.typeString||y.id===m.id}t.a=i;var a=n(62),r=n(79),o=n(27)},function(e,t,n){"use strict";function i(e){return e!==y.k&&e!==y.j}function a(e){var t=e.title,n=e.leafCount;return 1===n?Object(m.default)('Are you sure you want to mark 1 episode in "{showTitle}" as unplayed?',{showTitle:t
}):Object(m.default)('Are you sure you want to mark {numEpisodes} episodes in "{showTitle}" as unplayed?',{numEpisodes:n,showTitle:t})}function r(e){var t=e.title,n=e.leafCount;return 1===n?Object(m.default)('Are you sure you want to mark 1 episode in "{showTitle}" as played?',{showTitle:t}):Object(m.default)('Are you sure you want to mark {numEpisodes} episodes in "{showTitle}" as played?',{numEpisodes:n,showTitle:t})}
var o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),n(30)),m=n(3),y=n(27),b=n(177),I=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this._checkAutoConfirm()},t.prototype.componentDidUpdate=function(){this._checkAutoConfirm()},t.prototype._checkAutoConfirm=function(){i(this.props.type)&&this.props.isOpen&&this.props.onConfirm()},t.prototype.render=function(){
var e=this.props,t=e.isOpen,n=e.type,o=e.markUnplayed,l=e.onConfirm,c=e.onCancel;return i(n)?null:s()(b.a,{isOpen:t,metricsPage:o?g.n:g.o,title:o?Object(m.default)("Mark as Unplayed"):Object(m.default)("Mark as Played"),message:o?a(this.props):r(this.props),onConfirm:l,onCancel:c})},t}(v.Component);t.a=I},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.isOpen,o=e.metricsProperties,s=e.onModalClose;return r()(c.a,{size:u.e.SMALL,
isOpen:a,metricsPage:l.K,metricsProperties:o,onModalClose:s},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,onModalClose:s}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(114),u=n(24),d=n(3472);t.a=i},function(e,t,n){"use strict";function i(e){return e.get("ui").get("addToPlaylistModal")}function a(e,t){Object(f.a)(function(){e.set({isUpdating:!0,error:null})}),Object(u.a)(t).then(function(){e.set({isUpdating:!1})},function(t){e.set({isUpdating:!1,
error:Object(v.a)(t)})})}n.d(t,"f",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"g",function(){return y}),n.d(t,"e",function(){return b}),n.d(t,"d",function(){return I}),n.d(t,"a",function(){return S}),n.d(t,"b",function(){return M})
;var r,o=n(40),s=n(121),l=n(125),c=n(3476),u=n(3478),d=n(268),p=n(70),h=n(198),f=n(36),v=n(171),g=Object(o.a)("ui/modal/initAddToPlaylistModal"),m=Object(o.a)("ui/modal/clearAddToPlaylistModal"),y=Object(o.a)("ui/modal/selectDestination"),b=Object(o.a)("ui/modal/editPlaylistTitle"),I=Object(o.a)("ui/modal/createPlaylist"),S=Object(o.a)("ui/modal/addToPlaylist"),M=Object(l.a)((r={},r["ui/modal/initAddToPlaylistModal"]=function(e,t,n){var a=i(e),r=void 0,o=void 0,s=void 0,l=void 0,c=""
;if(t.metadataItemEntityID)r=Object(p.e)(e,t),c=d.a.title(r);else if(t.metadataListEntityID)o=Object(p.f)(e,t),c=d.a.title(o);else if(t.playQueueID)l=Object(h.b)(e,t.playQueueID);else{s=e.get("ui").get("multiSelect");var u=s.get("activeSelectionItems").pluck("model");c=d.a.title(u,{items:u})}a.set({title:c,smart:t.smart,metadataItem:r,metadataList:o,multiSelect:s,playQueue:l}),n(y(t))},r["ui/modal/clearAddToPlaylistModal"]=function(e){i(e).restoreDefaults()},
r["ui/modal/selectDestination"]=function(e,t){var n=i(e),a=Object(p.k)(e,t),r=Object(p.i)(e,t),o=n.get("metadataItem"),l=n.get("metadataList"),u=n.get("multiSelect"),d=n.get("playQueue"),h=n.get("smart"),f=o?Object(p.i)(e,{providerEntityID:o.get("providerEntityID")}):r,v=Object(c.a)({providerModel:r,itemProviderModel:f,metadataItemModel:o,metadataListModel:l,multiSelectModel:u,playQueueModel:d}),g=v.containerKey,m=v.playlistType,y=v.uri,b=new s.default({containerKey:g},{server:a,provider:r})
;n.set({server:a,provider:r,type:m,smart:h,containerKey:g,uri:y,playlists:b})},r["ui/modal/editPlaylistTitle"]=function(e,t){var n=t.title;i(e).set("title",n)},r["ui/modal/createPlaylist"]=function(e){var t=i(e),n=t.get("provider"),r=t.get("playQueue"),o=t.pick("type","title","uri","smart");o.providerModel=n,r&&(o.playQueueID=r.get("playQueueID")),a(t,o)},r["ui/modal/addToPlaylist"]=function(e,t){var n=t.playlistID,r=i(e),o=r.get("provider"),s=r.get("playQueue"),l=r.get("uri"),c={playlistID:n,
providerModel:o,uri:l};s&&(c.playQueueID=s.get("playQueueID")),a(r,c)},r))},function(e,t,n){"use strict";function i(e){var t=e.key,n=e.getModel,i=Object(a.a)(t),o="is"+i+"Pending",s="is"+i+"Populated",l=t?t+"Error":"error";return function(e,i){var a=i.startIndex,c=i.endIndex,u=i.pages,d=void 0===u?3:u,p=i.reloadThreshold,h=void 0===p?6:p,f=i.disableReloadThreshold,v=c-a+1,g=n(e,i),m=t?g.get(t):g,y=(g.sessionAttrs,m.get("populatedRange")),b=a,I=c;if(a<y.start?b=Math.max(0,a-v*d):I=a+v*d,
!(b>=y.start&&I<=y.end)){var S=g.get(o);g.set(o,!0),m.populateRange({start:b,end:I,reloadThreshold:f?null:v*h}).done(function(){var e;g.set((e={},e[o]=!1,e[s]=!0,e[l]=null,e))}).fail(function(e,t){var n;if(t.aborting)return void g.set(o,S);g.set((n={},n[o]=!1,n[l]=Object(r.a)(t),n))})}}}t.a=i;var a=(n(37),n(426)),r=n(171)},function(e,t,n){"use strict";function i(e){var t=e.key,n=e.getModel,i=Object(a.a)(t),o="is"+i+"Pending",s="is"+i+"Populated",l=t?t+"Error":"error";return function(e){
var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.count,c=n(e,i),u=t?c.get(t):c,d=(c.sessionAttrs,c.get(o));c.set(o,!0),u.repopulateRange(a).done(function(){var e;c.set((e={},e[o]=!1,e[s]=!0,e[l]=null,e))}).fail(function(e,t){var n;if(t.aborting)return void c.set(o,d);c.set((n={},n[o]=!1,n[l]=Object(r.a)(t),n))})}}t.a=i;var a=(n(37),n(426)),r=n(171)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.columnAdjustment
},r.a,function(e,t){return e||t.columnAdjustment})}t.a=i;var a=n(4),r=(n.n(a),n(72))},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{skipChildren:e.skipChildren,childCount:e.childCount,leafCount:e.leafCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3494);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{childCount:e.childCount,subtype:e.subtype}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3496);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.leafCount,i=void 0;return null!=n&&(i=1===n?Object(l.default)("{itemCount} item",{itemCount:n}):Object(l.default)("{itemCount} items",{itemCount:n})),r()("span",{className:t},void 0,i)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.year;return r()("span",{className:t,"data-qa-id":"metadataYear"},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.circleClassName,n=e.iconClassName;return r()("div",{className:t},void 0,r()("span",{className:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3505)),c=n.n(l);i.defaultProps={
circleClassName:c.a.recordCircle,iconClassName:c.a.recordIcon},t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(l.a,s.a,Object(c.a)(),Object(o.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=i||n.tagItem;return{server:e,provider:t,reasonID:n.reasonID,reason:n.reason,reasonTitle:n.reasonTitle,originalTitle:a.originalTitle,filter:a.filter,librarySectionID:a.librarySectionID,librarySectionKey:a.librarySectionKey,
librarySectionType:a.librarySectionType}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(39),l=n(53),c=n(475),u=n(3517);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";function i(){return Object(d.createSelector)(Object(p.a)(),function(e){var t=e.metadataItem;return{metadataItemEntityID:t,isMetadataItem:!!t}})}function a(e){var t=e.component,n=o()(e,["component"]);return c.a.createElement(t,n)}var r=n(12),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),n(475))
;t.a=Object(u.connect)(i)(a)},function(e,t,n){"use strict";function i(e){return o.a.reduce(e,function(e,t,n){var i=a(t);if(0===n)return e.concat(i);var r=i.length>1;return e.concat({plain:!0,split:r,s:"or"},i)},[])}function a(e){var t=e.match(/(.+) (.+)/);if(t)return a(t[1]).concat({plain:!0,s:"then"}).concat(a(t[2]));var n=e.match(/(.+)\+(\S+)/);return n?a(n[1]).concat({plain:!0,s:"+"}).concat(a(n[2])):[{
s:o.a.reduce([[/command/,"\u2318"],[/up/,"\u2191"],[/down/,"\u2193"],[/left/,"\u2190"],[/right/,"\u2192"]],function(e,t){return e.replace(t[0],t[1])},e)}]}var r=n(10),o=n.n(r),s=n(96),l=n(3526),c=n.n(l),u=s.a.extend({name:"keyboardShortcutsModal",className:"keyboard-shortcuts-modal modal fade",template:c.a,orderedGroups:[{group:"navigation",label:"Navigation"},{group:"actions",label:"Actions"},{group:"player",label:"Player"}],initialize:function(e){s.a.prototype.initialize.apply(this,arguments),
this.shortcuts=e.shortcuts},serializeData:function(){var e={};return o.a.each(this.shortcuts,function(t){var n=t.group;("function"!=typeof t.isSupported||t.isSupported())&&(e[n]||(e[n]=[]),e[n].push(this.humanizeShortcut(t)))},this),{groups:o.a.map(this.orderedGroups,function(t){var n=o.a.clone(t);return n.shortcuts=e[t.group],n},this)}},humanizeShortcut:function(e){return e=o.a.clone(e),e.keys=i(e.keys),e.label=e.label(),e}});t.a=u},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(161)),r=n(394),o=Object(a.a)(Object(i.createSelector)(r.a,function(e){return e.filter(function(e){return e.isFullOwnedServer&&e.isConnected})}),function(e){return e});t.a=o},function(e,t,n){"use strict";var i,a=n(188),r=(i={},i[a.a.PROVIDER_DEVICE_CHANNELSCAN]=!0,i[a.a.PROVIDER_EPG_LOAD]=!0,i[a.a.GRABBER_GRAB]=!0,i[a.a.CLEAN_BUNDLES]=!0,i[a.a.BACKUP_DATABASE]=!0,i[a.a.OPTIMIZE_DATABASE]=!0,i[a.a.LIBRARY_DELETE]=!0,i[a.a.MEDIA_GENERATE_BIF]=!0,i[a.a.SUBTITLE_DOWNLOAD]=!0,i);t.a=r
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tooltipClassName,i=e.labelClassName,a=e.iconClassName,o=e.iconComponent,l=e.title,u=e.label,d=e.icon,v=e.iconProps,g=c()(e,["className","tooltipClassName","labelClassName","iconClassName","iconComponent","title","label","icon","iconProps"]);return p.a.createElement(f.a,s()({className:t,tooltipClassName:n,component:h.a,tooltip:l,"aria-label":l},g),p.a.createElement(o,s()({className:a,name:d},v)),u&&r()("span",{className:i
},void 0,u))}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(215),v=n(26),g=n(3543),m=n.n(g);i.defaultProps={className:m.a.button,iconClassName:m.a.icon,tooltipClassName:m.a.tooltip,iconComponent:v.a},t.a=i},function(e,t,n){"use strict";function i(){return Object(a.a)("playQueue")}var a=n(153);t.a=i},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(3551)),r=Object(i.createSelector)(a.a,function(e){return!!e&&e.debugHasForcedVideoAds});t.a=r
},function(e,t,n){"use strict";function i(e){var t={dispatchUpdatePosition:I.c,dispatchResetPosition:I.b},n=function(t){function n(){var e,i,a;c()(this,n);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return e=i=d()(this,t.call.apply(t,[this].concat(o))),i.onPositionMillisecondsChange=function(e){i.props.dispatchUpdatePosition(e)},a=e,d()(i,a)}return h()(n,t),n.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},
n.prototype.componentWillUnmount=function(){this.props.dispatchResetPosition()},n.prototype.render=function(){var t=this.props,n=(t.dispatchUpdatePosition,t.dispatchResetPosition,s()(t,["dispatchUpdatePosition","dispatchResetPosition"]));return g.a.createElement(e,r()({},n,{onPositionMillisecondsChange:this.onPositionMillisecondsChange}))},n}(v.Component);return n.displayName="PositionMonitor("+Object(y.a)(e)+")",n.WrappedComponent=e,Object(m.connect)(null,t,null,{storeKey:"playerStore"})(n)}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(190),b=n(28),I=n(1501);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=t.type,i=t.payload;switch(n){case g:return{positionMilliseconds:i};case m:return{positionMilliseconds:0};default:return e}}n.d(t,"c",function(){return y}),n.d(t,"b",function(){return b})
;var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(630),f=(n.n(h),n(923)),v=n(40),g="UPDATE_POSITION",m="RESET_POSITION",y=Object(v.a)(g),b=Object(v.a)(m),I=function(e){function t(n,a){r()(this,t);var o=s()(this,e.call(this,n,a));return o.store=Object(h.createStore)(i,{positionMilliseconds:0}),o}return c()(t,e),t.prototype.getChildContext=function(){return{playerStore:this.store}},t.prototype.render=function(){return p.a.Children.only(this.props.children)},t
}(d.Component);I.childContextTypes={playerStore:f.a},t.a=I},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(function(e,t){return t.mediaType},Object(s.a)("openState"),function(e,t){return e===p.d&&t===d.a})}function a(){return Object(o.createSelector)(Object(s.a)("qualityIndex"),c.a,u.a,Object(l.a)(),i(),function(e,t,n,i,a){return{qualityIndex:e,subtitleSize:t.subtitleSize,volume:n,playbackSpeed:i,shouldCoverWhenDecisionPending:a}})}var r=n(11),o=n(4),s=(n.n(o),
n(153)),l=n(1503),c=n(72),u=n(708),d=n(212),p=n(63),h=n(3555);t.a=Object(r.connect)(a)(h.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e){return e.remotePlayer},Object(o.a)("playbackSpeed"),Object(r.a)(),function(e,t,n){return e?1:t||n&&n.playbackSpeed||1})}t.a=i;var a=n(4),r=(n.n(a),n(707)),o=n(153)},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.itemProvider
;if(e.get("isPreFetched")&&!t.forceFetch)return r.a.Deferred().resolve().promise();var i={includeConcerts:1,includeExtras:1,includeOnDeck:1,includePopularLeaves:1,includePreferences:1,includeChapters:1,includeStations:1,asyncAugmentMetadata:1};e.get("type")===s.l&&(i.includeRelated=1),!t.forceSyncCheckFiles&&e.server.supports("asyncCheckFiles")?(i.asyncCheckFiles=1,i.asyncRefreshAnalysis=1,i.asyncRefreshLocalMediaAgent=1):i.checkFiles=1
;var a=n||e.provider,l=Object(o.a)(a.server,a,e.channel),c=a.getXHROptions(e.url(),{dataType:l.typeName,data:i,merge:!0});return e.fetch(c).done(function(){e.set("isPreFetched",!0)})}t.a=i;var a=n(13),r=n.n(a),o=n(610),s=n(27)},function(e,t,n){"use strict";function i(e){return e>=2e3}function a(e){return i(e.transcodeDecisionCode)?e.transcodeDecisionText:i(e.generalDecisionCode)?e.generalDecisionText:i(e.mdeDecisionCode)?e.mdeDecisionText:e.errorMessage}t.a=a},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=(n(37),n(32)),l=n(365),c=n(302),u=n(1457),d=n(676),p=n(922),h=n(357),f=n(267),v=n(1507),g=n(146),m=n(309),y=n(3),b=n(159),I={getMediaDecision:function(e){var t=this.augmentProfile(e);if(s.a.info("[MDE] Augmented profile:",t),e.media)return this.analyzeMedia(e.media,t,e);var n=e.item,i=n.get("Media");if(!i.length)return{transcodeServer:e.transcodeServer,canPlay:!0,canDirectPlay:!0};if(1===i.length)return this.analyzeMedia(o.a.first(i),t,e)
;var a=o.a.map(i,function(n){return this.analyzeMedia(n,t,e)},this);return this.getBestDecision(a)},augmentProfile:function(e){var t=e.profile;if(!t)throw new Error("MDE: No player profile provided for "+e.type);var n=e.type===m.a.types.VIDEO,i=a.a.extend(!0,{},t.directPlay),r=a.a.extend(!0,{},t.directStream),s=i.generic;s&&delete i.generic;var l=e.allowedAC3Containers,c="*"===l;!c&&l&&(l=Array.isArray(l)?l:[l]);var u=e.allowedEAC3Containers,d="*"===u;!d&&u&&(u=Array.isArray(u)?u:[u])
;var p=e.allowedDCAContainers,h="*"===p;!h&&p&&(p=Array.isArray(p)?p:[p]);var f=e.allowedTrueHDContainers,v="*"===f;return!v&&f&&(f=Array.isArray(f)?f:[f]),o.a.each(i,function(t,i){this.mergeGenericOptions(t,s),this.mergeMaxQualityOptions(t,e),(c||l&&o.a.contains(l,i))&&this.addAudioCodec("ac3",t,e),(d||u&&o.a.contains(u,i))&&this.addAudioCodec("eac3",t,e),(h||p&&o.a.contains(p,i))&&this.addAudioCodec("dca",t,e),(v||f&&o.a.contains(f,i))&&this.addAudioCodec("truehd",t,e)
;var a=m.a.getStreamByType(e.type),r=t[a];if(r){var g=r.codecs;o.a.each(g,function(t,n){this.mergeMaxQualityOptions(t,e,!0),e.videoCodecOptions&&e.videoCodecOptions[n]&&this.mergeCodecOptions(t,e.videoCodecOptions[n])},this)}var y=n&&t.audio;if(y&&e.audioCodecOptions){var b=y.codecs;o.a.each(b,function(t,n){e.audioCodecOptions[n]&&this.mergeCodecOptions(t,e.audioCodecOptions[n])},this)}},this),this.mergeMaxQualityOptions(r,e),
n&&(e.videoCodecOptions&&r.video&&o.a.each(r.video.codecs,function(t,n){e.videoCodecOptions[n]&&this.mergeCodecOptions(t,e.videoCodecOptions[n])},this),e.audioCodecOptions&&r.audio&&o.a.each(r.audio.codecs,function(t,n){e.audioCodecOptions[n]&&this.mergeCodecOptions(t,e.audioCodecOptions[n])},this)),{directPlay:i,directStream:r}},mergeGenericOptions:function(e,t){t&&(o.a.defaults(e,o.a.omit(t,"video","audio")),o.a.each(["audio","video"],function(n){var i=t[n],a=e[n];i&&(a||(a={},e[n]=a),
o.a.defaults(a,o.a.omit(i,"codecs")),i.codecs&&o.a.each(i.codecs,function(e,t){o.a.defaults(this.ensureCodecs(t,a),e)},this))},this))},mergeCodecOptions:function(e,t){o.a.each(t,function(t,n){e[n]=t},this)},ensureCodecs:function(e,t){return t.codecs||(t.codecs={}),t.codecs[e]||(t.codecs[e]={}),t.codecs[e]},mergeMaxQualityOptions:function(e,t,n){var i=[{option:"bitrate",setting:"maxBitrate"},{option:"videoResolution",setting:"maxVideoResolution"}];o.a.each(i,function(i){
if("videoResolution"!==i.option||t.type===m.a.types.VIDEO){var a=this.getMaxQualityOption(e,i.option,t);if(null!=a){var r=i.setting,o=m.a.getStreamByType(t.type);e.hasOwnProperty(r)?e[r]=a:e.hasOwnProperty(o)?e[o][r]=a:n||(e[o]={},e[o][r]=a)}}},this)},getMaxQualityOption:function(e,t,n){var i=n.quality||{},a="max"+t.charAt(0).toUpperCase()+t.slice(1),r=i[t],o=this.getPrimaryStreamProperty(e,a,n);if("videoResolution"===t&&r&&(r=g.a.getResolutionFromSize(r)),"bitrate"===t){
var s=n.item.server,l=s.get("maxUploadBitrate");l&&(!r||l<r)&&(r=l)}if(r||o){return r&&o?Math.min(r,o):r||o}},addAudioCodec:function(e,t,n){t.audio||(t.audio={}),this.ensureCodecs(e,t.audio)},analyzeMedia:function(e,t,n){s.a.info("[MDE] Starting analysis of",this.getMediaTitle(e)),Object(s.a)("[MDE] Analyzing direct play");var i=this.canDirectPlay(e,t.directPlay,n);i.result||Object(s.a)("[MDE] Cannot direct play:",i.failedCheck);var a={finalProfile:t,transcodeServer:n.transcodeServer,
item:n.item,media:e,canDirectPlay:i.result,canDirectPlayFailedCheck:i.failedCheck},r=n.transcoderOptions||{};if(o.a.isFunction(r)&&(r=r(a)),n.type===m.a.types.VIDEO){Object(s.a)("[MDE] Analyzing video direct stream");var l=Object(h.a)(e);if(l){var c=this.canDirectStreamVideo(l,t.directStream.video,n,r);a.canDirectStreamVideo=c.result,a.canDirectStreamVideoFailedCheck=c.failedCheck}}if(n.type!==m.a.types.PHOTO){Object(s.a)("[MDE] Analyzing audio direct stream");var u=Object(d.a)(e);if(u){
var f=this.canDirectStreamAudio(u,t.directStream.audio,n,r);a.canDirectStreamAudio=f.result,a.canDirectStreamAudioFailedCheck=f.failedCheck}}var v=Object(p.a)(a.media);return v&&(Object(s.a)("[MDE] Analyzing subtitles"),o.a.extend(a,this.analyzeSubtitles(v,n))),Object(s.a)("[MDE] Analyzing playability"),o.a.extend(a,this.canPlay(a,n)),o.a.extend(a,this.getEffectiveQuality(e,t.directStream,n)),s.a.group("[MDE] Finished analysis of",this.getMediaTitle(e)),
this.getDecisionLogs(a).forEach(function(e){return s.a.info(e)}),s.a.groupEnd(),a},canDirectPlay:function(e,t,n){if(n.forceDirectPlay)return Object(s.a)("[MDE] Direct play forced"),{result:!0};if(!1===n.allowDirectPlay&&!n.transcodeServer.get("isCloud"))return s.a.warn("[MDE] Direct play failed; option is disabled"),{result:!1,failedCheck:"allowDirectPlay"};if(n.type===m.a.types.VIDEO&&!this.canDirectPlayVideo(e,n))return{result:!1,failedCheck:"canDirectPlayVideo"};var i=t[e.container]
;if(!i)return s.a.warn("[MDE] Direct play failed; unsupported container:",e.container),{result:!1,failedCheck:"containerProfile"};var a=o.a.keys(i);if(a&&a.length){for(var r=0,l=a.length;r<l;r++){var c=a[r],u=i[c];if("mimeType"===c){if(!n.skipCanPlayTypeTest&&!this.canPlayType(m.a.getElementByType(n.type),u))return s.a.warn("[MDE] Direct play failed; canPlayType test, %s: %s",c,u),{result:!1,failedCheck:"canPlayType"}}else if("video"===c||"audio"===c){var p=b.a.get(c),v=Object(f.a)(e,{
streamType:p.id}),g="video"===c?Object(h.a)(e):Object(d.a)(e);if(!g){s.a.warn("[MDE] No stream selected; will not be able to analyze stream codecs");continue}var y="audio"===c&&g!==v[0];if(y&&!n.allowMultiTrackAudio)return s.a.warn("[MDE] Direct play failed; multi-track audio is required"),{result:!1,failedCheck:"allowMultiTrackAudio"};var I=this.analyzeStream(g,u,n);if(!I.result)return{result:!1,failedCheck:I.failedCheck}}else if("photo"===c){var S=this.analyzeStream(o.a.first(e.Part),u,n)
;if(!S.result)return{result:!1,failedCheck:S.failedCheck}}else if(!this.validateProfileProperty(c,u,e))return{result:!1,failedCheck:"validateProfileProperty:"+c}}return{result:!0}}return{result:!0}},canDirectPlayVideo:function(e,t){return t.allowDirectPlay||t.transcodeServer.get("isCloud")?"hls"!==e.protocol||t.hasNativeHLS?"flv"!==e.container||t.hasFlash?!("dash"===e.protocol&&!t.hasDASH)||(s.a.warn("[MDE] Direct play failed; cannot play DASH"),
!1):(s.a.warn("[MDE] Direct play failed; cannot play FLV"),!1):(s.a.warn("[MDE] Direct play failed; cannot play HLS"),!1):(s.a.warn("[MDE] Direct play failed; option is disabled"),!1)},canPlayType:function(e,t){if(e===m.a.elements.PHOTO)return!0;var n=document.createElement(e);return!(!n.canPlayType||!n.canPlayType(t).replace(/^no$/,""))},canDirectStreamVideo:function(e,t,n,i){
return i.directStream||n.transcodeServer.get("isCloud")?this.analyzeStream(e,t,n):(s.a.warn("[MDE] Direct stream video failed; option is disabled"),{result:!1,failedCheck:"options:directStream"})},canDirectStreamAudio:function(e,t,n,i){return i.directStreamAudio||n.transcodeServer.get("isCloud")?this.analyzeStream(e,t,n):(s.a.warn("[MDE] Direct stream audio failed; option is disabled"),{result:!1,failedCheck:"options:directStreamAudio"})},analyzeStream:function(e,t,n){
var i=t&&t.codecs&&t.codecs[e.codec];for(var a in t){var r=t[a];if("codecs"===a){var o=r[e.codec];if(!o)return{result:!1,failedCheck:"noCodecInProfile:"+e.codec};var s=this.analyzeStream(e,o,n);if(!s.result)return{result:!1,failedCheck:s.failedCheck}}else if(!(i&&a in i||this.validateProfileProperty(a,r,e)))return{result:!1,failedCheck:"validateProfileProperty:"+a}}return{result:!0}},validateProfileProperty:function(e,t,n){var i,a=e.match(/^(min|max)(\w)(\w*)/);if(a){
var r="min"===a[1],l="max"===a[1];if(e=a[2].toLowerCase()+a[3],i=n[e],null==i&&s.a.warn("[MDE] Unable to validate %s; re-analyze the media if possible",e),null!=i&&"videoResolution"===e&&(i=g.a.getHeightFromResolution(i),t=g.a.getHeightFromResolution(t)),null!=i){if(r&&i<t)return s.a.warn("[MDE] Invalid profile property; %s: %s < %s",e,i,t),!1;if(l&&i>t)return s.a.warn("[MDE] Invalid profile property; %s: %s > %s",e,i,t),!1}}else if(i=n[e],
null==i&&s.a.warn("[MDE] Unable to validate %s; re-analyze the media if possible",e),i!==t&&!o.a.contains(t,i))return s.a.warn("[MDE] Invalid profile property; %s: %s !== %s",e,i,t),!1;return!0},analyzeSubtitles:function(e,t){var n=t.subtitlesBurnLevel||c.a.ALWAYS,i=e.codec;return Object(s.a)("[MDE] Subtitle codec:",i),Object(s.a)("[MDE] Burn level:",n),n===c.a.NEVER?{useSoftSubtitles:!1}:n===c.a.ALWAYS?(s.a.warn("[MDE] Direct play failed; asked to always burn subtitles"),{useSoftSubtitles:!1,
canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles:burnLevelAlways",canDirectStreamVideo:!1}):t.transcodeServer.supports("softSubtitles")?Object(v.a)(i)?(s.a.warn("[MDE] Soft subtitles failed; bitmap subtitles"),{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles",canDirectStreamVideo:!1}):/^(ass|ssa)$/i.test(i)&&n===c.a.AUTO?(s.a.warn("[MDE] Soft subtitles failed; ASS subtitles"),{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles",
canDirectStreamVideo:!1}):/^eia_608$/i.test(i)?(s.a.warn("[MDE] Soft subtitles failed; Closed captioning"),{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles",canDirectStreamVideo:!1}):t.transcodeServer.supports("softSubtitlesWithDirectPlay")?t.allowDirectStreamVideoWithSoftSubtitles?{useSoftSubtitles:!0}:{useSoftSubtitles:!0,canDirectStreamVideo:!1}:(s.a.warn("[MDE] Direct play failed; %s subtitles",i),t.allowDirectStreamVideoWithSoftSubtitles?{useSoftSubtitles:!0,
canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles"}:{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles",canDirectStreamVideo:!1}):(s.a.warn("[MDE] Direct play failed; server support requires burn subtitles"),s.a.warn("[MDE] Soft subtitles failed; server version"),{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles:softSubtitlesUnsupported",canDirectStreamVideo:!1})},canPlay:function(e,t){var n=this.validateParts(e,t)||this.validateTranscoder(e,t)
;return n?{canPlay:!1,errorMessage:n}:{canPlay:!0}},validateParts:function(e,t){var n=Object(u.a)(e.media);if(n.length){s.a.warn("[MDE] Unable to play; missing parts");var i=o.a.first(n);return 1===Number(i.exists)?Object(y.default)("Please check the permissions for this file."):Object(y.default)("Please check that the file exists and the necessary drive is mounted.")}},validateTranscoder:function(e,t){if(!e.canDirectPlay){
var n,i=t.type,a=i===m.a.types.MUSIC,r=i===m.a.types.VIDEO,l=t.transcodeServer,c=l.get("transcoderAudio"),u=l.get("transcoderVideo");if(a||"track"===t.item.get("type")){if(n=Object(y.default)("This server is not powerful enough to convert audio."),r&&!u)return s.a.warn("[MDE] Unable to play; server unable to transcode music using video transcoder"),n;if(a&&!c)return s.a.warn("[MDE] Unable to play; server unable to transcode music using audio transcoder"),n}else if(r){
var d=Object(y.default)("This server is not powerful enough to convert video. You may be able to enable playback by increasing your quality setting."),p=Object(y.default)("This server is not powerful enough to convert video. Playback qualities are limited because an indirect connection is being used."),h=e.canDirectStreamVideo||!l.get("transcoderVideoRemuxOnly");if(n=Object(y.default)("This server is not powerful enough to convert video."),!u||!h){
if(s.a.warn("[MDE] Unable to play; server unable to transcode video"),l.get("isCloudSyncServer"))switch(e.canDirectPlayFailedCheck){case"validateProfileProperty:maxLevel":return Object(y.default)("Synced media cannot be converted to a lower H.264 level.");case"validateProfileProperty:maxBitrate":return Object(y.default)("Synced media cannot be converted to a lower quality.");case"allowDirectPlay":default:return Object(y.default)("Converting is not supported for synced media.")}if(t.quality){
if(t.quality.index===g.a.ORIGINAL)return n;var f=o.a.clone(t);return f.quality=o.a.extend({index:g.a.ORIGINAL},o.a.pick(t.quality,"attribute")),this.getMediaDecision(f).canDirectPlay?d:"relay"===l.get("maxUploadBitrateReason")?p:n}return d}}}},getEffectiveQuality:function(e,t,n){var i=n.quality,a={},r={};if(e.bitrate||s.a.warn("[MDE] Unable to determine effective quality; re-analyze the media if possible"),n.type===m.a.types.VIDEO){a.bitrate=e.bitrate,
a.videoResolution=g.a.getHeightFromResolution(e.videoResolution);var o=this.getPrimaryStreamProperty(t,"maxBitrate",n);if(o){var l=Object(h.a)(e),c=l?l.bitrate:e.bitrate;a.bitrate=Math.min(c,o),r.maxVideoBitrate=o}if(i){if(i.videoResolution){var u=g.a.getResolutionFromSize(i.videoResolution),d=g.a.getHeightFromResolution(u);a.videoResolution=Math.min(a.videoResolution,d)}}}else if(n.type===m.a.types.MUSIC){a.bitrate=e.bitrate;var p=this.getPrimaryStreamProperty(t,"maxBitrate",n)
;p&&(a.bitrate=Math.min(e.bitrate,p),r.maxAudioBitrate=p)}return a.transcoderQualityOptions=r,a},getPrimaryStreamProperty:function(e,t,n){var i=m.a.getStreamByType(n.type),a=e[i],r=e[t];return null==r&&a&&(r=a[t]),r},getMediaTitle:function(e){var t=e.title||e.videoResolution||e.bitrate||e.container,n=o.a.compact([e.container,e.videoCodec,e.audioCodec]),i=Object(h.a)(e);return i&&n.push(i.level,i.profile),n.length&&(t+=" ("+n.join(", ")+")"),t},getDecisionLogs:function(e){
var t=["canPlay: "+e.canPlay,"canDirectPlay: "+e.canDirectPlay],n=e.canDirectStreamVideo;null!=n&&t.push("canDirectStreamVideo: "+n);var i=e.canDirectStreamAudio;null!=i&&t.push("canDirectStreamAudio: "+i);var a=e.useSoftSubtitles;null!=a&&t.push("useSoftSubtitles: "+a);var r=e.bitrate;null==r||o.a.isNaN(r)||t.push("bitrate: "+r);var s=e.videoResolution;return null==s||o.a.isNaN(s)||t.push("videoResolution: "+s),t},getBestDecision:function(e){var t=o.a.last(this.sortDecisions(e))
;return s.a.group("[MDE] Selected %s to play",this.getMediaTitle(t.media)),this.getDecisionLogs(t).forEach(function(e){return s.a.info(e)}),s.a.groupEnd(),t},sortDecisions:function(e){
return o.a.chain(e).reverse().sortBy(this.preferHigherBitrate,this).sortBy(this.preferMoreAudioChannels,this).sortBy(this.preferDirectStreamAudio,this).sortBy(this.preferHigherResolution,this).sortBy(this.preferDirectStreamVideo,this).sortBy(this.preferDirectPlay,this).sortBy(this.preferHigherResolutionIfCapable,this).sortBy(this.preferCloudIfRemote,this).sortBy(this.preferPlayable,this).value()},preferPlayable:function(e){return void 0===e.canPlay?null:e.canPlay},
preferCloudIfRemote:function(e){var t=e.media.proxyType===l.a.CLOUD;return e.transcodeServer.get("isPrivateConnection")?!t:t},preferHigherResolutionIfCapable:function(e){var t=e.transcodeServer,n=t.get("transcoderVideo"),i=t.get("transcoderVideoRemuxOnly");return n&&!i&&(e.canDirectPlay||e.canDirectStreamVideo)?this.preferHigherResolution(e):null},preferDirectPlay:function(e){return void 0===e.canDirectPlay?null:e.canDirectPlay},preferDirectStreamVideo:function(e){
return void 0===e.canDirectStreamVideo?null:e.canDirectStreamVideo},preferHigherResolution:function(e){return void 0===e.videoResolution?null:e.videoResolution},preferDirectStreamAudio:function(e){return void 0===e.canDirectStreamAudio?null:e.canDirectStreamAudio},preferMoreAudioChannels:function(e){var t=e.media.audioChannels;return void 0===t?null:t},preferHigherBitrate:function(e){return void 0===e.bitrate?null:e.bitrate}};t.a=I},function(e,t,n){"use strict";function i(e){
return/^(pgs|vobsub)$/i.test(e)}t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=n;if(e.Part.length>1)for(var a=0,r=e.Part.length;a<r;a++){var o=e.Part[a];if(!o.duration)break;if(t.key===o.key)break;i+=o.duration}return i}t.a=i},function(e,t,n){"use strict";function i(e){return e.get("experienceSettings").get("volume")}t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),function(e){if(!e)return{videoStreams:[],selectedVideoStream:null,
audioStreams:[],selectedAudioStream:null,subtitlesStreams:[],selectedSubtitlesStream:null};var t=r.a.get("video").id,n=r.a.get("audio").id,i=r.a.get("subtitles").id,a=e.Stream.filter(function(e){return e.streamType===t}),o=e.Stream.filter(function(e){return e.streamType===n}),s=e.Stream.filter(function(e){return e.streamType===i});return{videoStreams:a,selectedVideoStream:a[0],audioStreams:o,selectedAudioStream:o.find(function(e){return e.selected}),subtitlesStreams:s,
selectedSubtitlesStream:s.find(function(e){return e.selected})}})}var a=n(4),r=(n.n(a),n(159)),o=n(1511);t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)("partIndex"),Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1];if(t)return t.Part[e]})}var a=n(4),r=(n.n(a),n(153)),o=n(986);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(30),m=n(987),y=(n(63),n(318)),b=n(3573),I=n(3576),S=n(3577),M=n(1501),D=(n(3581),
n(3582)),C=n(3583),j=n(3588),P=n(3590),O=n(3592),T=n(3594),E=n(3596),w=n(3605),A=n(3608),x=n(3611),N=n(989),L=n(3612),k=n(46),R=n.n(k),z=n(3613),U=n.n(z),B=parseInt(R.a.playerControlsPosterHeight,10),F=parseInt(R.a.playerControlsLandscapePosterWidth,10),_=parseInt(R.a.playerControlsNarrowBreakpoint,10),V=parseInt(R.a.playerControlsPosterLeftGutter,10),H=parseInt(R.a.playerControlsPosterBottomGutter,10),Q=parseInt(R.a.playerControlsNarrowPosterBottomGutter,10),Y=function(e){function t(n,i){
l()(this,t);var a=u()(this,e.call(this,n,i));return a.onBufferChange=function(e){var t=(e.start,e.end);a.setState({bufferEndMilliseconds:t})},a.onAdPositionMillisecondsChange=function(e){a.setState({adPositionMilliseconds:e})},a.onAdDurationMillisecondsChange=function(e){a.setState({adDurationMilliseconds:e})},a.onAdResponse=function(){a.setState({isAdLoaded:!0})},a.onAdSkipDelayChange=function(e){a.setState({adSkipDelaySeconds:e})},a.onAdSkipPress=function(){a.setState({isAdSkipped:!0})},
a.onAdEnd=function(){a.setState({isAdVisible:!1,isAdLoaded:!1,isAdSkipped:!1,adSkipDelaySeconds:null,adPositionMilliseconds:0,adDurationMilliseconds:null})},a.onScreenSizeChange=function(e){var t=e.width,n=t<=_;n!==a.state.isNarrowLayout&&a.setState({isNarrowLayout:n})},a.state={seekStartMilliseconds:0,seekEndMilliseconds:0,bufferStartMilliseconds:0,bufferEndMilliseconds:0,adPositionMilliseconds:0,adDurationMilliseconds:null,isAdVisible:!!n.vast,isAdLoaded:!1,isAdSkipped:!1,isNarrowLayout:!1,
adSkipDelaySeconds:null},a}return p()(t,e),t.prototype.componentDidMount=function(){Object(L.a)(this.props.showBackgroundVideoPlayer)},t.prototype.componentWillReceiveProps=function(e){this.props.vast!==e.vast&&this.setState({isAdVisible:!!e.vast,isAdSkipped:!1,isAdLoaded:!1,adSkipDelaySeconds:null,adPositionMilliseconds:0,adDurationMilliseconds:null})},t.prototype.componentDidUpdate=function(e,t){
e.showBackgroundVideoPlayer!==this.props.showBackgroundVideoPlayer&&Object(L.a)(this.props.showBackgroundVideoPlayer)},t.prototype.componentWillUnmount=function(){Object(L.a)(!1)},t.prototype.render=function(){
var e=this.props,t=e.playerType,n=e.isOpen,i=e.isMiniPlayer,r=e.isRemotePlayer,s=e.isPlayQueueLoading,l=e.isPostPlayVisible,c=e.isFullscreen,u=e.isVideo,d=e.hasError,p=e.hasConflicts,h=e.confirmLiveTVPlayback,f=e.showBackgroundVideoPlayer,L=e.currentMediaType,k=e.confirmPlaybackPayload,R=e.confirmOffsetPayload,z=e.confirmRemoteToLocal,_=e.confirmLocalToRemote,Y=e.vast,G=e.mediaComponent,W=e.mediaHeight,K=e.mediaPlacement,Z=e.mediaWidth,q=e.playerComponent,J=e.onToggleFullscreen,X=this.state,$=X.seekStartMilliseconds,ee=X.seekEndMilliseconds,te=X.bufferStartMilliseconds,ne=X.bufferEndMilliseconds,ie=X.adSkipDelaySeconds,ae=X.adPositionMilliseconds,re=X.adDurationMilliseconds,oe=X.isAdVisible,se=X.isAdLoaded,le=X.isAdSkipped,ce=X.isNarrowLayout
;if(!n)return d?o()(w.a,{isOpen:!0,isRemotePlayer:r,mediaType:L,playerType:t}):p?o()(E.a,{isOpen:!0,isPlayerOpen:n,playerType:t}):h?o()(C.a,{isOpen:!0,isPlayerOpen:n,playerType:t}):null;var ue=u&&i?{edgeGutterX:V,edgeGutterY:ce?Q:H,height:B,placement:m.a,width:F}:{height:W,placement:K,width:Z};return o()(M.a,{},void 0,o()(y.a,{page:g.M},void 0,o()("div",{className:((i?U.a.miniPlayerContainer:U.a.fullPlayerContainer)||"")+" "+(!f&&!i&&U.a.fullPlayerContainerBackground||""||"")
},void 0,k&&o()(O.a,{isOpen:!0,playerType:t,confirmPlaybackPayload:k}),R&&o()(P.a,{isOpen:!0,playerType:t,confirmOffsetPayload:R}),z&&o()(T.a,{isOpen:!0,playerType:t}),_&&o()(j.a,{isOpen:!0,playerType:t}),d&&o()(w.a,{isOpen:!0,isRemotePlayer:r,mediaType:L,playerType:t}),p&&o()(E.a,{isOpen:!0,isPlayerOpen:n,playerType:t}),!oe&&!l&&!s&&!r&&!z&&v.a.createElement(G,a()({},ue,{playerType:t,mediaType:L,isNarrowLayout:ce,isStackedAbove:i,onBufferChange:this.onBufferChange
})),oe&&v.a.createElement(N.a,a()({},ue,{playerType:t,isMiniPlayer:i,isFullscreen:c,isSkipped:le,component:S.a,isStackedAbove:i,isNarrowLayout:ce,positionSeconds:Math.floor(ae/1e3),url:Y.url,urlTemplateFilters:Y.UrlTemplateFilter,onPositionMillisecondsChange:this.onAdPositionMillisecondsChange,onDurationMillisecondsChange:this.onAdDurationMillisecondsChange,onResponse:this.onAdResponse,onSkipDelayChange:this.onAdSkipDelayChange,onEnd:this.onAdEnd})),v.a.createElement(q,a()({},this.props,ue,{
isAdVisible:oe&&se,isNarrowLayout:ce,seekStartMilliseconds:$,seekEndMilliseconds:ee,bufferStartMilliseconds:te,bufferEndMilliseconds:ne,adPositionMilliseconds:ae,adDurationMilliseconds:re,adSkipDelaySeconds:ie,onAdSkipPress:this.onAdSkipPress})),o()(A.a,{playerType:t,onToggleFullscreenShortcut:J}),o()(x.a,{playerType:t}),o()(b.a,{playerType:t,isRemotePlayer:r}),o()(I.a,{playerType:t}),o()(D.a,{onScreenSizeChange:this.onScreenSizeChange}))))},t}(f.Component);Y.defaultProps={
confirmLiveTVPlayback:!1,isMusic:!1,isPhoto:!1,isVideo:!1},t.a=Y},function(e,t,n){"use strict";function i(e,t){var n=e/t;return n=Math.round(n),n*=t}t.a=i},function(e,t,n){"use strict";function i(e){if(null!=e){var t=Math.round(e/1e3),n=void 0;return n=t>=3600?300:60,Object(a.a)(t,n)}}t.a=i;var a=n(1513)},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(425),o=n(69),s=n(706),l=n(111),c=n(38),u=n(45),d=i.a.extend({name:"LiveTVSessionModel",context:["server","provider"],entityType:u.d,
entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(c.a)(this.entityType,e.key||this.cid,this.server.entityID())},idAttribute:"key",rootPropertyName:"MediaSubscription",sessionAttrs:{dvrID:a.a.integer,channelIdentifier:a.a.string,activityUUID:a.a.string,currentPosition:a.a.integer,nextPosition:a.a.integer,lastSeekPosition:a.a.integer,startedAt:a.a.integer,captureBuffer:a.a.object},syncedAttrs:{key:a.a.string,type:a.a.integer,title:a.a.string
},syncedRelations:{grabOperation:{relationClass:s.a,rootPropertyName:"MediaGrabOperation",deferred:!0},timeline:{relationClass:r.default,rootPropertyName:"Timeline",deferred:!0},alsoAiring:{relationClass:r.default,rootPropertyName:"AlsoAiring",deferred:!0}},defaults:{nextPosition:null,lastSeekPosition:null},augmentResponseText:function(e,t){return t===o.a.xml?Object(l.b)(e):e},augmentResponse:function(e){var t=e[this.rootPropertyName]||e,n=t.Timeline,i=t.AlsoAiring
;return n&&(t.Timeline=n.Metadata),i&&(t.AlsoAiring=i.Metadata),e}});t.a=d},,function(e,t,n){"use strict";function i(e){var t=e.isMonochrome,n=e.isRemovable,i=e.tooltip,a=s()(e,["isMonochrome","isRemovable","tooltip"]),o=i||(n?Object(f.default)("Remove"):Object(f.default)("Add"));return u.a.createElement(p.a,r()({},a,{component:d.a,hideOnPress:!1,iconComponent:v.a,iconClassName:n?m.a.iconRemovable:m.a.icon,kind:n&&!t?h.DANGER:h.DEFAULT,ariaLabel:o,tooltip:o}))}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(553),p=n(215),h=n(51),f=n(3),v=n(26),g=n(3622),m=n.n(g);i.defaultProps={className:m.a.button,icon:"plex-icon-add-560"},t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){return!!e})}t.a=i;var a=n(4),r=(n.n(a),n(3625))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(67)),f=n(46),v=n.n(f),g=n(3629),m=n.n(g),y=parseInt(v.a.playerControlsHeight,10),b=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onMeasure=function(e){i.props.onDimensionsChange&&i.props.onDimensionsChange(e)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.bottom,i=e.children;return a()(h.a,{className:t,style:{bottom:n},
ignoreWidth:!0,ignorePosition:!0,onMeasure:this.onMeasure},void 0,i)},t}(p.Component);b.defaultProps={className:m.a.container,bottom:y},t.a=b},function(e,t,n){"use strict";function i(e){return e-M}function a(){return Object(s.c)({direction:s.a,rows:1,overscan:0,innerHorizontalPadding:30,outerPaddingTop:10,outerPaddingLeft:5,outerPaddingRight:5,getCellWidth:function(e){return Object(c.a)(o()({},e,{minCellWidth:m,preferredCellWidth:g,minColumns:y,maxColumns:b,aspectRatio:v}))},
getCellHeight:function(e){return Object(l.a)(o()({},e,{aspectRatio:v,titleHeight:M}))}})}t.a=i,t.b=a;var r=n(6),o=n.n(r),s=n(456),l=n(992),c=n(712),u=n(27),d=n(33),p=n(130),h=n(46),f=n.n(h),v=Object(p.c)(u.f,null,d.f),g=180,m=135,y=2,b=11,I=parseInt(f.a.posterTitleHeight,10),S=parseInt(f.a.posterTitlePadding,10),M=2*(I+S)},function(e,t,n){"use strict";function i(e,t){var n={playerType:t.playerType};return{onCollapsePress:function(i){t.isFullscreen&&t.onExitFullscreenPress(i),e(Object(o.a)(n))}}}
var a=n(11),r=n(4),o=(n.n(r),n(993)),s=n(3635),l=n(3636),c=Object(r.createSelector)(function(e){return e.remotePlayer?e.remotePlayer.friendlyName:null},function(e){return e.remotePlayer?e.remotePlayer.product:null},Object(s.a)(),function(e,t,n){return{remotePlayerName:e,remotePlayerProduct:t,showRemotePlayer:n}});t.a=Object(a.connect)(c,i)(l.a)},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(l.a)(),function(e){return{isPaused:e.isPaused}})}function a(e,t){
var n={playerType:t.playerType};return{onTogglePlayPress:function(t){e(Object(s.u)(n))}}}var r=n(11),o=n(4),s=(n.n(o),n(143)),l=n(89),c=n(3639);t.a=Object(r.connect)(i,a)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.bottom,n=e.children,i=e.onDimensionsChange;return r()(c.a,{className:d.a.container,bottom:t,onDimensionsChange:i},void 0,r()("div",{className:d.a.title},void 0,Object(l.default)("Playback Settings")),r()("div",{className:d.a.menusContainer,
"data-qa-id":"playbackSettingsContainer"},void 0,n))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1519),u=n(3643),d=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.playerType,n=e.isPostPlayVisible,i=e.isVideo,a=e.isMusic,o=e.isAdVisible,s=e.isMiniPlayer,y=e.hasLiveTVProtocol,b=e.currentSubType,I=e.seekStartMilliseconds,S=e.seekEndMilliseconds,M=e.bufferStartMilliseconds,D=e.bufferEndMilliseconds,C=e.adPositionMilliseconds,j=e.adDurationMilliseconds,P=e.adSkipDelaySeconds,O=e.onAdSkipPress,T=e.onControlsMenuChange,E=e.onFollowMuteMenuChange,w=b===l.a;return r()(c.a,{},void 0,y&&!s?r()(g.a,{playerType:t}):null,o&&!s?r()(p.a,{skipDelaySeconds:P,
positionSeconds:Math.floor(C/1e3),onSkipPress:O}):null,o||!w||s?null:r()(m.a,{playerType:t,onFollowMuteMenuChange:E}),r()(u.a,{},void 0,n?null:r()(f.a,{playerType:t,isAdVisible:o,seekStartMilliseconds:I,seekEndMilliseconds:S,bufferStartMilliseconds:M,bufferEndMilliseconds:D,adPositionMilliseconds:C,adDurationMilliseconds:j}),r()(d.a,{component:y?v.a:h.a,playerType:t,hasLiveTVProtocol:y,isVideo:i,isMusic:a,isAdVisible:o,isMiniPlayer:s,onControlsMenuChange:T})))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(107),n(106)),c=n(1525),u=n(1526),d=n(1527),p=n(3648),h=n(3651),f=n(3763),v=n(3774),g=n(3776),m=n(3785);i.defaultProps={isMiniPlayer:!1},t.a=i},function(e,t,n){"use strict";function i(e){return r()("div",{className:e.className},void 0,e.children)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3646)),c=n.n(l);i.defaultProps={className:c.a.bottomBar},t.a=i},function(e,t,n){"use strict";function i(e){return r()("div",{
className:e.className},void 0,e.children)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3647)),c=n.n(l);i.defaultProps={className:c.a.controlsContainer},t.a=i},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(Object(D.a)(),Object(M.a)(),C.a,function(e,t,n){var i=e.controllable,a=e.playQueue,r=a.currentIndex,o=t.subtype===P.a,s=void 0,l=void 0,c=void 0;return i?(l=!i.skipNext,s=!i.skipPrevious,c=!i.shuffle):(l=!e.repeatAll&&r>=e.playQueue.playQueueItems.length-1,
s=!e.repeatAll&&r<=0&&e.positionSeconds<=j.a,c=!a.canShuffle),{metadataItemEntityID:t.metadataItem,providerEntityID:e.providerEntityID,serverEntityID:e.serverEntityID,volume:n,activateChaptersButton:e.isChaptersVisible,activateLyricsButton:e.isLyricsVisible,activateQueueButton:e.isPlayQueueVisible,activateRepeatButton:e.repeatAll,activateRepeatOneButton:e.repeatOne,activateSettingsButton:e.isSettingsVisible,activateShuffleButton:a.playQueueShuffled,disableNextButton:l,
disablePauseButton:!!i&&!i.playPause,disablePlayButton:!!i&&!i.playPause,disablePreviousButton:s,disableRepeatButton:!!i&&!i.repeat,disableRepeatOneButton:!!i&&!i.repeat,disableShuffleButton:c,disableSkipBackButton:!!i&&!i.seekTo,disableSkipForwardButton:!!i&&!i.seekTo,showCloseButton:!0,showNextButton:!0,showPauseButton:!e.isPaused,showPlayButton:e.isPaused,showPreviousButton:!0,showRepeatButton:!o&&!e.repeatOne,showRepeatOneButton:e.repeatOne,showVolume:!i||i.volume}})}function a(e,t){
var n=t.playerType,i={playerType:n};return{onEditPress:function(t){e(O.editMetadataItem(t))},onFavoritePress:function(t){e(O.favoriteMetadataItem(t))},onUnfavoritePress:function(t){e(O.unfavoriteMetadataItem(t))},onRepeatPress:function(){e(b.t(i))},onRepeatOnePress:function(){e(b.t(i))},onPreviousPress:function(){e(b.i(i))},onNextPress:function(){e(b.h(i))},onShufflePress:function(){e(b.u(i))},onQueuePress:function(){e(b.s(i))},onLyricsPress:function(){e(b.r(i))},onSkipBackPress:function(){
e(S.p(i))},onPlayPress:function(){e(S.k(i))},onPausePress:function(){e(S.j(i))},onSkipForwardPress:function(){e(S.q(i))},onSettingsPress:function(){e(S.w(i))},onChaptersPress:function(){e(S.v(i))},onVolumeChange:function(t){e(S.h(h()({},i,{volume:t})))},onClosePress:function(){e(I.f(i))}}}function r(e,t,n){var i=e.metadataItemEntityID,a=e.providerEntityID;return h()({},n,e,t,{onEditPress:function(){t.onPausePress(),t.onEditPress({metadataItemEntityID:i})},onFavoritePress:function(){
t.onFavoritePress({metadataItemEntityID:i,providerEntityID:a})},onUnfavoritePress:function(){t.onUnfavoritePress({metadataItemEntityID:i,providerEntityID:a})}})}var o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(172)),I=n(77),S=n(143),M=n(142),D=n(89),C=n(708),j=n(371),P=n(106),O=n(191),T=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onVolumeChange=function(e){
var t=a.state.volume,n=Math.round(Math.min(100,Math.max(0,t+e)));t!==n&&a.setState({volume:n},function(){a.props.onVolumeChange(a.state.volume)})},a.onVolumeIconPress=function(){var e=a.state.volume>0;e&&(a._lastVolume=a.state.volume),a.setState({volume:e?0:a._lastVolume||100},function(){a.props.onVolumeChange(a.state.volume)})},a.state={volume:n.volume},a}return d()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.volume;t!==this.state.volume&&this.setState({volume:t})},
t.prototype.render=function(){var e=this.props.component;return g.a.createElement(e,h()({},this.props,this.state,{onVolumeChange:this.onVolumeChange,onVolumeIconPress:this.onVolumeIconPress}))},t}(v.Component);t.a=Object(m.connect)(i,a,r)(T)},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(d.a)(),Object(u.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{serverEntityID:t.serverEntityID||e.serverEntityID,
providerEntityID:t.providerEntityID||e.providerEntityID,type:t.type,subtype:t.subtype,context:p.f,hasUserRating:null!=t.userRating}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(21)),d=n(89),p=n(33),h=n(3652),f=Object(l.connect)(i)(h.a);f.propTypes=r()({},f.propTypes,{metadataItemEntityID:s.a.string,playerType:s.a.string.isRequired}),t.a=f},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){return{
addedAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).addedAt}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3664);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e,t){var n=Math.abs(Date.now()-1e3*e);return n<36e5?setTimeout(t,6e4):n<864e5?setTimeout(t,36e5):void 0}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(385)),v=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a));g.call(r)
;var o=r.props.timestamp,l=Object(f.a)(o);return r.state={title:l},r.timeoutID=i(o,r.trackTime),r}return d()(t,e),t.prototype.componentWillReceiveProps=function(e){if(e.timestamp!==this.props.timestamp){var t=Object(f.a)(e.timestamp);this.setState({title:t})}},t.prototype.componentWillUnmount=function(){this.timeoutID&&(this.timeoutID=clearTimeout(this.timeoutID))},t.prototype.render=function(){var e=this.props.className,t=this.state.title;return r()("span",{className:e},void 0,t)},t
}(h.Component),g=function(){var e=this;this.trackTime=function(){var t=e.props.timestamp,n=Object(f.a)(t);e.setState({title:n}),e.timeoutID=i(t,e.trackTime)}};t.a=v},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.experienceSettings.timeFormat},Object(s.a)(),Object(o.a)(),function(e,t,n){return{beginsAt:t&&t.beginsAt,endsAt:t&&t.endsAt,channel:n&&n.tag,timeFormat:e}})}var a=n(11),r=n(4),o=(n.n(r),n(1532)),s=n(480),l=n(1536)
;t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(s.a)(),Object(l.a)(),function(e,t){if(e&&t)return o.a.findWhere(e.Channel,{id:t.channelID})})}t.a=i;var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(21),l=n(480)},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e&&Object(r.a)(Object(a.a)(new Date),t)<=e}t.a=i;var a=n(147),r=n(1534)},function(e,t,n){"use strict"
;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(d.a)(e);for(var i in t)n=h[i](n,t[i]);return Object(p.a)(n)}t.a=i;var a=n(234),r=n(852),o=n(998),s=n(537),l=n(679),c=n(374),u=n(854),d=n(81),p=n(147),h={days:a.a,hours:r.a,minutes:o.a,months:s.a,seconds:l.a,weeks:c.a,years:u.a}},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e&&Object(r.a)(Object(a.a)(new Date),t)>=e}t.a=i
;var a=n(147),r=n(1534)},function(e,t,n){"use strict";function i(e){var t=e.beginsAt,n=e.endsAt,i=e.channel,a=e.showChannel,r=e.showFullTime,o=e.timeFormat;if(!t)return Object(D.default)("No upcoming airings");if(Object(M.a)(t,n)){var s=n-Date.now()/1e3;return s<=60?Object(D.default)("About to end"):Object(b.a)(s)}if(Object(I.a)(t)&&Object(S.a)(t,{minutes:60})){var l=1e3*t-Date.now();if(l<=P)return a&&i?Object(D.default)("Starting now on {channel}",{channel:i}):Object(D.default)("Starting now")
;var c=Object(y.a)(l);return a&&i?Object(D.default)("Starting in {duration} on {channel}",{duration:c,channel:i}):Object(D.default)("Starting in {duration}",{duration:c})}return(r?g.a:m.a)(t,a&&i,{timeFormat:o})}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(73)),v=n(28),g=n(1537),m=n(3665),y=n(308),b=n(370),I=n(1533),S=n(1535),M=n(1543),D=n(3),C=n(3666),j=n.n(C),P=6e4,O=function(e){function t(n,i){s()(this,t)
;var a=c()(this,e.call(this,n,i));return a.onTickTimeout=function(){a.setState(a.getState(a.props)),a.setTickTimeout()},a.state=a.getState(n),a}return d()(t,e),t.prototype.componentDidMount=function(){this.setTickTimeout()},t.prototype.componentWillReceiveProps=function(e){var t=this.getState(e);t.title!==this.state.title&&this.setState(t)},t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.componentWillUnmount=function(){
this.tickTimeout&&clearTimeout(this.tickTimeout)},t.prototype.getState=function(e){return{title:i(e)}},t.prototype.setTickTimeout=function(){this.tickTimeout=setTimeout(this.onTickTimeout,P-Date.now()%P)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.beginsAt,i=e.endsAt,a=e.channel,o=e.showChannel,s=this.state.title,l=o&&!!a&&Object(M.a)(n,i);return r()("span",{className:t},void 0,l?r()("span",{},void 0,Object(D.default)("Now on {channel}",{channel:a}),r()(f.b,{
className:j.a.separator}),s):s)},t}(h.Component);O.defaultProps={showFullTime:!1,showChannel:!1},t.a=O},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.timeFormat,v=void 0===i?"h:mma":i;if(null==e)return"";var g=Object(c.default)(e,v),m=void 0
;return m=Object(f.a)(e)?Object(o.default)("Yesterday"):Object(d.a)(e)?Object(h.a)(e)?Object(o.default)("Tonight"):Object(o.default)("Today"):Object(p.a)(e)?Object(o.default)("Tomorrow"):Object(u.a)(e)?Object(s.a)(e):Object(o.default)("{dayOfWeekAbbreviated}, {monthAbbreviated} {dayNumber}",{dayOfWeekAbbreviated:Object(s.a)(e,{abbreviate:!0}),monthAbbreviated:Object(l.a)(e,{abbreviate:!0}),dayNumber:Object(r.a)(Object(a.a)(e))}),
t?Object(o.default)("{1} at {2} on {3}",m,g,t):Object(o.default)("{1} at {2}",m,g)}t.a=i;var a=n(81),r=n(361),o=n(3),s=n(1538),l=n(1e3),c=n(573),u=n(1539),d=n(313),p=n(1540),h=n(1541),f=n(713)},function(e,t,n){"use strict";function i(e){var t=[Object(l.default)("Sunday"),Object(l.default)("Monday"),Object(l.default)("Tuesday"),Object(l.default)("Wednesday"),Object(l.default)("Thursday"),Object(l.default)("Friday"),Object(l.default)("Saturday")],n=t[e];return n}function a(e){
var t=[Object(l.default)("Sun"),Object(l.default)("Mon"),Object(l.default)("Tue"),Object(l.default)("Wed"),Object(l.default)("Thu"),Object(l.default)("Fri"),Object(l.default)("Sat")],n=t[e];return n}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.abbreviate,r=void 0!==n&&n;if(!e)return"";var l=Object(s.a)(Object(o.a)(e));return r?a(l):i(l)}var o=n(81),s=n(999),l=(n(37),n(3));t.a=r},function(e,t,n){"use strict";function i(e){if(null==e)return!1
;var t=Object(a.a)(e);return Object(r.a)(Date.now(),t)}t.a=i;var a=n(81),r=n(1001)},function(e,t,n){"use strict";function i(e){if(null==e)return!1;var t=Object(r.a)(e);return Object(o.a)(t,Object(a.a)(new Date,1))}t.a=i;var a=n(234),r=n(81),o=n(276)},function(e,t,n){"use strict";function i(e){return!(null==e||!Object(o.a)(e))&&Object(r.a)(Object(a.a)(e))>16}t.a=i;var a=n(81),r=n(1542),o=n(313)},,function(e,t,n){"use strict";function i(e,t){if(null==e||null==t)return!1;var n=Object(a.a)(new Date)
;return n>=e&&n<=t}t.a=i;var a=n(147)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{index:e.index,originallyAvailableAt:e.originallyAvailableAt}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3669);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.episodeIndex;if(t>0||0===t)return e.noLeadingZero||(t=Object(l.a)(t)),
e.useLongName?Object(c.default)("Episode {episodeNumber}",{episodeNumber:t}):Object(c.default)("E{episodeNumber}",{episodeNumber:t});if(e.date&&e.dateFormat)return Object(a.a)(Object(s.a)(e.date),e.dateFormat);if(e.date){var n=Object(s.a)(e.date);return Object(c.default)("{monthNumber}/{dayNumber}/{shortYear}",{monthNumber:Object(o.a)(n)+1,dayNumber:Object(r.a)(n),shortYear:Object(a.a)(n,"yy")})}return""}var a=n(170),r=n(361),o=n(512),s=n(23),l=n(806),c=n(3);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.tabIndex,i=e.title,a=e.index,o=e.route,s=e.parentTitle,l=e.parentIndex,f=e.parentRoute,v=e.originallyAvailableAt,g=Object(d.a)({seasonIndex:l,noLeadingZero:!0}),m=Object(u.a)({episodeIndex:a,date:v,noLeadingZero:!0});return o&&f?r()("span",{className:t},void 0,a>0&&!!g&&r()(c.a,{tabIndex:n,title:s,to:f},void 0,g),a>0&&!!g&&h,r()(c.a,{tabIndex:n,title:i,to:o},void 0,m)):r()("span",{className:t
},void 0,a>0&&!!g&&r()("span",{},void 0,g),a>0&&!!g&&p,r()("span",{},void 0,m))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(20),u=n(1545),d=n(3670),p=r()(l.b,{separator:"\xb7"}),h=r()(l.b,{separator:"\xb7"});t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{duration:e.duration,viewOffset:e.viewOffset}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1006)
;t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(d.createSelector)(v.a,f.a,Object(g.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=h.a.pick(n.tagItem,"id","tag","tagType","librarySectionType","librarySectionKey");return o()({server:e,provider:t,reasonID:n.reasonID},i)})}function a(e){return c.a.createElement(m.a,e)}var r=n(6),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),
n(10)),h=n.n(p),f=n(39),v=n(53),g=n(475),m=n(3684);t.a=Object(u.connect)(i)(a)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(s.r)(e.type),n=e.Media&&e.Media[0];return{type:t&&t.mediaType,bitrate:n&&n.bitrate}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(27),l=n(3688);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e,t){
return Object(r.createSelector)(Object(o.a)(),function(){return{contentRating:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).contentRating}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3689);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){return{duration:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).duration}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(717);t.a=Object(a.connect)(i)(s.a)
},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){return{lastViewedAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).lastViewedAt}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3693);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){return{originallyAvailableAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).originallyAvailableAt}})}
var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3696);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Media&&e.Media[0];return{videoResolution:t&&t.videoResolution}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3697);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){return e.get("ui").get("mediaSubscriptionModal")}n.d(t,"d",function(){
return b}),n.d(t,"b",function(){return I}),n.d(t,"g",function(){return M}),n.d(t,"a",function(){return D}),n.d(t,"f",function(){return C}),n.d(t,"c",function(){return j}),n.d(t,"e",function(){return P})
;var a,r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(40),u=n(18),d=n(718),p=n(1556),h=n(125),f=n(124),v=n(1557),g=n(70),m=n(36),y=n(27),b=Object(c.a)("ui/modal/initMediaSubscriptionModal"),I=Object(c.a)("ui/modal/clearMediaSubscriptionModal"),S=Object(c.a)("ui/modal/fetchMediaSubscription"),M=Object(c.a)("ui/modal/saveMediaSubscription"),D=Object(c.a)("ui/modal/changeMediaSubscriptionTemplateMode"),C=(Object(c.a)("ui/modal/clearMediaSubscriptionModalError"),
Object(c.a)("ui/modal/moveMediaSubscriptionModal")),j=Object(c.a)("ui/modal/deleteMediaSubscriptionModal"),P=Object(h.a)((a={},a["ui/modal/initMediaSubscriptionModal"]=function(e,t,n){var a=i(e);a.set("isMediaSubscriptionPending",!0);var r={};if(t.showConflicts&&(r.options={data:{includeGrabs:1}}),t.mediaSubscriptionEntityID)return a.set({mediaSubscription:Object(g.d)(e,t)}),void n(S(r));var s=Object(g.k)(e,t),l=Object(g.e)(e,t),c=l.get("grandparentSubscriptionID")||l.get("subscriptionID")
;if(c)return a.set({mediaSubscription:new d.a({key:c},{server:s})}),void n(S(r));var h=u.join("/media/subscriptions/template",{guid:l.get("guid")}),f=s.getXHROptions(h);o.a.ajax(f).done(function(e){var t=new p.a(e,{parse:!0,server:s}),n=t.findWhere({selected:!0});a.set({isMediaSubscriptionPending:!1,isMediaSubscriptionPopulated:!0,mediaSubscriptionError:null,templates:t,mediaSubscription:n})}).fail(function(e){a.set({isMediaSubscriptionPending:!1,mediaSubscriptionError:e})})},
a["ui/modal/clearMediaSubscriptionModal"]=function(e){i(e).restoreDefaults()},a["ui/modal/fetchMediaSubscription"]=Object(f.a)({key:"mediaSubscription",getModel:i}),a["ui/modal/saveMediaSubscription"]=function(e,t){var n=i(e),a=Object(g.k)(e,t),r=n.get("mediaSubscription"),s=t.targetLibrarySectionID,c=t.targetSectionLocationID,d=void 0===c?null:c,p=t.prefs;Object(m.a)(function(){n.set({isMediaSubscriptionSaving:!0,mediaSubscriptionSaveError:null})})
;var h=r.get("key"),f=r.getSaveParams(),v=o.a.extend(!0,{},f,{includeGrabs:1,targetLibrarySectionID:s,targetSectionLocationID:d,prefs:p}),b=u.join(l.a.result(r,"url"),v);if(!h){var I=Object(y.r)(r.get("target").get("type"));b=b+"&"+r.get("parameters")+"&type="+I.id}var S=a.getXHROptions(b,{type:h?"PUT":"POST"});o.a.ajax(S).done(function(i){if(r.set(r.parse(i)),n.set({templates:void 0,isMediaSubscriptionSaving:!1}),t.metadataItemEntityID){var a=Object(g.e)(e,t);if(a){
var o,s=r.get("target").get("type"),l=Object(y.v)(s),c=l?"grandparentSubscriptionID":"subscriptionID",u=l?"grandparentSubscriptionType":"subscriptionType";a.set((o={},o[c]=r.id,o[u]=s,o))}}}).fail(function(e){n.set({isMediaSubscriptionSaving:!1,mediaSubscriptionSaveError:e})})},a["ui/modal/changeMediaSubscriptionTemplateMode"]=function(e,t){var n=i(e),a=n.get("templates"),r=t.modeIndex;n.set("mediaSubscription",a.at(r))},a["ui/modal/clearMediaSubscriptionModalError"]=function(e,t){i(e).set({
mediaSubscriptionSaveError:null,mediaSubscriptionError:null,mediaSubscriptionMoveError:null,mediaSubscriptionDeleteError:null})},a["ui/modal/moveMediaSubscriptionModal"]=function(e,t){var n=i(e),a=n.get("mediaSubscription");Object(m.a)(function(){n.set({isMediaSubscriptionMoving:!0,mediaSubscriptionMoveError:null})}),Object(v.a)(a).done(function(){n.set({isMediaSubscriptionMoving:!1})}).fail(function(e){n.set({isMediaSubscriptionMoving:!1,mediaSubscriptionMoveError:e})})},
a["ui/modal/deleteMediaSubscriptionModal"]=function(e,t,n){var a=i(e),r=a.get("mediaSubscription");Object(m.a)(function(){a.set({isMediaSubscriptionDeleting:!0,mediaSubscriptionDeleteError:null})}),r.destroy({wait:!0}).done(function(){if(a.set({isMediaSubscriptionDeleting:!1}),t.metadataItemEntityID){var n=Object(g.e)(e,t),i=r.get("key");n.get("subscriptionID")===i?(n.unset("subscriptionID"),
n.unset("subscriptionType")):n.get("grandparentSubscriptionID")===i&&(n.unset("grandparentSubscriptionID"),n.unset("grandparentSubscriptionType"))}}).fail(function(e){a.set({isMediaSubscriptionDeleting:!1,mediaSubscriptionDeleteError:e})})},a))},function(e,t,n){"use strict";var i=n(25),a=n(69),r=n(111),o=n(718),s=i.a.extend({name:"MediaSubscriptionTemplateCollection",context:["server"],url:"/media/subscriptions/template",model:o.a,augmentResponseText:function(e,t){
return t===a.a.xml?Object(r.b)(e):e},augmentResponse:function(e){return e.SubscriptionTemplate}});t.a=s},function(e,t,n){"use strict";function i(e,t){var n=e.server,i=s.a.result(e,"url"),a=n.getXHROptions(l.join([i,"move"],{after:t}),{type:"PUT"});return r.a.ajax(a).promise()}t.a=i;var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(18)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=s()(e,["className","children"]);return r()("div",{className:t,style:i},void 0,n)}
var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0));n.n(c);i.defaultProps={flexGrow:1,flexShrink:0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=s()(e,["className","children"]);return r()("div",{className:(d.a.grid||"")+" "+(t||""),style:i},void 0,n)}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(3723)),d=n.n(u);i.defaultProps={flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center"},t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.name,n=(e.initialValue,e.labelText),i=(e.showErrors,e.errors,e.validations,c()(e,["name","initialValue","labelText","showErrors","errors","validations"]));return s()("div",{},void 0,s()(h.a,{name:t},void 0,n),p.a.createElement(f.a,r()({name:t,size:g.e.SMALL},i)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(149),f=n(255),v=n(189),g=n(24);t.a=Object(v.a)(i)},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(Object(c.a)(),Object(l.a)(),function(e,t){return o.a.find(e,function(e){return e.type===s.a.GRABBER_GRAB&&e.Context.itemKey&&e.Context.itemKey===t.key})})}var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(188),l=n(21),c=n(319);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.isLibraryItem,i=e.isExtra,o=e.Media,s=Object(r.r)(t);if(!s)return!1;var l=o.length;return n&&!i&&s.mediaType===a.d&&l>1}t.a=i;var a=n(63),r=n(27)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3743)),f=n.n(h),v=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.state={progress:n.progress},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({progress:e.progress})},t.prototype.render=function(){var e=this.props.className,t=this.state.progress;return a()("div",{className:e},void 0,a()("div",{className:f.a.progressTrack
}),a()("div",{style:{transform:"translate3d(-"+(100-t)+"%, 0, 0)"},className:f.a.progressBar}))},t}(p.Component);v.defaultProps={progress:f.a.progress},t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(215),v=n(47),g=n(3),m=n(26),y=n(31),b=n(222),I=n(459),S=n(476),M=n(24),D=n(1563),C=n(3745),j=n.n(C),P=a()(m.a,{name:"plex-icon-edit-560"}),O=a()(m.a,{name:"plex-icon-favorite-empty-560"}),T=a()(m.a,{
name:"plex-icon-favorite-full-560"}),E=a()(m.a,{name:"plex-icon-remove-560"}),w=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onActionsMenuOpenChange=function(e){a.setState({isActionsMenuOpen:e})},a.state={isActionsMenuOpen:!1},a._selectButtonID=Object(v.a)(),a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.itemServerEntityID,o=e.itemProviderEntityID,s=e.metadataItemEntityID,l=e.containerKey,c=e.listType,u=e.route,d=e.title,p=e.viewPercent,v=e.unviewedLeafCount,C=e.mediaCount,w=e.isMultiVersion,A=e.isSmart,x=e.isFavorite,N=e.isMatching,L=e.isProcessing,k=e.isAnalyzing,R=e.isRefreshing,z=e.isTrash,U=e.showUnplayedBadge,B=e.showUnplayedNumberBadge,F=e.showLink,_=e.showLinkOnly,V=e.showPlay,H=e.showEdit,Q=e.showSelect,Y=e.showMore,G=e.showFavorite,W=e.showUnfavorite,K=e.showRemove,Z=e.canDrag,q=e.hasActiveSelection,J=e.isSelected,X=e.isOtherItemSelected,$=e.isConflictingTypeSelected,ee=e.isModifierKeyPressed,te=e.isDragging,ne=e.onMouseEnter,ie=e.onPlayPress,ae=e.onEditPress,re=e.onFavoritePress,oe=e.onUnfavoritePress,se=e.onRemovePress,le=e.onSelectPress,ce=e.onDeselectPress,ue=this.state.isActionsMenuOpen,de=Q&&(ee||X)
;return _?a()("div",{className:(t||"")+" "+(j.a.overlay||"")},void 0,F&&a()(h.a,{className:j.a.link,to:u})):a()("div",{className:(t||"")+" "+(j.a.overlay||"")+" "+(q&&j.a.hasActiveSelection||"")+" "+(J&&j.a.isSelected||"")+" "+($&&j.a.isConflictingTypeSelected||"")+" "+(Q&&ee&&j.a.isModifierKeyPressed||"")+" "+(te&&j.a.isDragging||"")+" "+(R&&j.a.isRefreshing||"")+" "+(z&&j.a.isTrash||"")+" "+(ue&&j.a.isActionsMenuOpen||""||""),onMouseEnter:ne},void 0,a()("div",{className:j.a.background
}),U&&a()("div",{className:j.a.unplayedTagContainer,"data-qa-id":"metadataPosterUnwatchedBadge"},void 0,a()("div",{className:j.a.unplayedTag})),B&&a()("div",{"data-qa-id":"metadataPosterUnwatchedNumberBadge",className:j.a.unplayedBadge},void 0,v),w&&a()("div",{className:j.a.versionBadge,"data-qa-id":"metadataPosterMultipleVersionBadge"},void 0,a()(m.a,{name:"plex-icon-files-560",className:j.a.versionBadgeIcon}),C),A&&!x&&a()("div",{className:j.a.smartBadge,"data-qa-id":"metadataPosterSmartBadge"
},void 0,a()(m.a,{name:"plex-icon-settings-560",className:j.a.smartBadgeIcon})),A&&x&&a()("div",{className:j.a.favoriteBadge,"data-qa-id":"metadataPosterFavoriteBadge"},void 0,a()(m.a,{name:"plex-icon-favorite-full-560",className:j.a.favoriteBadgeIcon})),!!p&&a()(D.a,{className:j.a.progress,progress:p}),R&&a()("div",{className:j.a.refreshingSpinnerContainer},void 0,a()(y.a,{className:j.a.refreshingSpinner})),N&&a()("div",{className:j.a.refreshingCircle},void 0,a()(m.a,{
name:"plex-icon-search-560","aria-label":Object(g.default)("Matching")})),L&&a()("div",{className:j.a.refreshingCircle},void 0,a()(m.a,{name:"plex-icon-tagging-560","aria-label":Object(g.default)("Downloading Metadata")})),k&&a()("div",{className:j.a.refreshingCircle},void 0,a()(m.a,{name:"plex-icon-analyzing-560","aria-label":Object(g.default)("Analyzing")})),z&&a()("div",{className:j.a.trashCircle},void 0,a()(m.a,{name:"plex-icon-trash-560","aria-label":Object(g.default)("In Trash")
})),F&&a()(h.a,{className:j.a.link,to:u}),de&&!$&&a()(h.a,{className:j.a.selectCoverButton,onPress:le}),de&&$&&a()(f.a,{className:j.a.selectCoverButton,component:h.a,tooltip:Object(g.default)("A different type is selected"),tooltipAttachment:M.f.TOP_CENTER,tooltipTarget:this._selectButtonID,showOnFocus:!1,hideOnPress:!1}),V&&a()(b.a,{className:F?j.a.playButton:j.a.playCoverButton,circleClassName:j.a.playCircle,component:Z?"div":"button",tabIndex:"-1",title:d,
"data-qa-id":"metadataPosterPlayButton",onPress:ie}),H&&a()(h.a,{className:j.a.editButton,tabIndex:"-1","aria-label":Object(g.default)("Edit {title}",{title:d}),"data-qa-id":"metadataPosterEditButton",onPress:ae},void 0,P),G&&a()(h.a,{className:j.a.favoriteButton,tabIndex:"-1","aria-label":Object(g.default)("Add {title} to favorites",{title:d}),"data-qa-id":"metadataPosterFavoriteButton",onPress:re},void 0,O),W&&a()(h.a,{className:j.a.favoriteButton,tabIndex:"-1",
"aria-label":Object(g.default)("Remove {title} from favorites",{title:d}),"data-qa-id":"metadataPosterUnfavoriteButton",onPress:oe},void 0,T),K&&a()(h.a,{className:j.a.removeButton,tabIndex:"-1","aria-label":Object(g.default)("Remove {title}",{title:d}),onPress:se},void 0,E),Y&&a()(S.a,{"data-qa-id":"metadataPosterMoreButton",className:j.a.moreButton,tabIndex:"-1",serverEntityID:n,providerEntityID:i,itemServerEntityID:r,itemProviderEntityID:o,metadataItemEntityID:s,containerKey:l,listType:c,
showPlay:!1,showQueuePlexMix:!1,showEdit:!1,isMenuOpen:ue,onMenuOpenChange:this.onActionsMenuOpenChange}),Q&&a()(I.a,{id:this._selectButtonID,className:j.a.selectButton,circleClassName:j.a.selectCircle,tabIndex:"-1",title:d,isSelected:J,isDisabled:$,onPress:le}),J&&a()(h.a,{className:j.a.deselectCoverButton,onPress:ce}))},t}(p.Component);t.a=w},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.callback,n=e.axisLockDuration,i=void 0===n?l:n,a=e.sensitivity,u=void 0===a?c:a,d=e.maxAbsDelta,p=void 0===d?r.a:d,h=void 0,f=void 0;return function(e){e.preventDefault(),(void 0===f||e.timeStamp-f>=i)&&(h=Math.abs(e[o])>Math.abs(e[s])?o:s,f=e.timeStamp);var n=e[h]*u;if(n){var a=Math.max(0,Math.min(p,Math.abs(n)));a*=n>0?1:-1,a=(e.nativeEvent||e).webkitDirectionInvertedFromDevice?a:-a,t(a)}}}t.a=i
;var a=n(3752),r=n.n(a),o="deltaX",s="deltaY",l=250,c=.5},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(l.a)(),Object(s.a)(),function(e,t){var n=e.serverEntityID,i=e.positionSeconds,a=e.durationSeconds,r=e.mediaIndex,o=e.partIndex,s=e.controllable,l={serverEntityID:n,metadataItemEntityID:t.metadataItem,canSeek:!!a,positionSeconds:i,durationMilliseconds:1e3*a,mediaIndex:r,partIndex:o};return s&&!s.seekTo&&(l.canSeek=!1),l})}var a=n(11),r=n(4),o=(n.n(r),
n(143)),s=n(142),l=n(89),c=n(990),u=n(1013),d={onSeek:o.m},p=Object(c.a)(u.a);t.a=Object(a.connect)(i,d)(p)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)("seekStartSeconds"),Object(r.a)("seekEndSeconds"),Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],i=n&&n.captureBuffer,a=0;return n&&i?(a=i.startedAt,e=i.seekStartSeconds,
t=i.seekEndSeconds):n&&(a=n.startedAt),{seekRangeStartedAtSeconds:a,seekStartSeconds:e,seekEndSeconds:t}})}t.a=i;var a=n(4),r=(n.n(a),n(153)),o=n(205)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.imageUrl,i=e.allowBlur;return r()("div",{className:u.a.backgroundContainer},void 0,r()(l.a,{serverEntityID:t,url:n,allowBlur:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1460)),c=n(3797),u=n.n(c);t.a=i},function(e,t){e.exports={
innerEmptyPage:"InnerEmptyPage-innerEmptyPage-1MHKZ EmptyPage-emptyPage-2AM9u",innerEmptyPageContent:"InnerEmptyPage-innerEmptyPageContent-3kRFW EmptyPage-content-10PgB"}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(l.a)(),function(e){var t=Object(c.r)(e.type),n=t&&t.mediaType;return{metadataItemEntityID:e.metadataItem,mediaType:n}})}function a(e,t){return{onRemovePress:function(n){e(Object(s.k)({playerType:t.playerType,
playQueueItemEntityID:t.playQueueItemEntityID}))}}}var r=n(11),o=n(4),s=(n.n(o),n(172)),l=n(1027),c=n(27),u=n(3917);t.a=Object(r.connect)(i,a)(u.a)},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(Object(l.a)(),c.c,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return!!e.source&&t.ownerId})}function a(){return Object(s.createSelector)(d.a,u.a,i(),function(e,t,n){var i=e.find(function(e){var i=t[e];return i&&i.id===n})
;return i&&t[i]})}function r(){return Object(s.createSelector)(Object(l.a)(),a(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{attribution:e.attribution,hasOwner:!!t,avatar:t&&t.thumb,name:t&&t.title}})}var o=n(11),s=n(4),l=(n.n(s),n(21)),c=n(53),u=n(1390),d=n(1391),p=n(3922);t.a=Object(o.connect)(r)(p.a)},function(e,t,n){"use strict";function i(e){var t=e.title;return r()("div",{className:c.a.heading},void 0,t)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3929)),c=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children;return r()("div",{className:c.a.headingContainer},void 0,t,r()("div",{className:c.a.divider}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3930)),c=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){if(e){var t=void 0,n=void 0,i=e.match(/^server:\/\/(.*)\/(.*)/);if(i)t=i[1],n=i[2];else{var s=e.match(/^provider:\/\/(.*)/);if(!s)return;t=a.a,
n=s[1]}var l=Object(r.a)(o.m,t);return{serverEntityID:l,providerEntityID:Object(r.a)(o.k,n,l)}}}t.a=i;var a=n(90),r=n(38),o=n(45)},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.b;switch(e){case"home.continue":return a.a;case"home.newscast":return a.d;case"home.recommended":return a.k;default:return t}}t.a=i;var a=n(33)},function(e,t,n){"use strict";function i(e,t){return Object(a.a)(e,function(e){return t.reduce(function(t,n){
return e&&n in e&&(t[n]=e[n]),t},{})})}t.a=i;var a=n(323)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.identifier,r=e.title,o=t.friendlyName,s=t.sourceTitle,l=void 0;return i===a.d?l=s||o:n.title?l=n.title:r&&(l=r),l}t.a=i;var a=n(41)},function(e,t,n){"use strict";function i(e,t){
if(e&&t)for(var n=0,i=e.length;n<i;n++){var a=e[n],r=a.key,o=a.hubKey;if(o===t||r===t)return a}}t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="list"},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.aspectRatio,i=e.titleCount,o=e.context,l=parseInt(s.a.posterTitleHeight,10),c=parseInt(s.a.posterTitlePadding,10),u=void 0,d=void 0,p=void 0,h=void 0,f=void 0;return Object(a.a)(o)?(u=Math.max(2,i-1),d=300,p=200,f=2,h=6,c*=2):(u=t===r.e?i+3:i,p=n>1?180:80,
d=n>1?240:120,f=n>1?2:3,h=n>1?8:11),{titleHeight:u*l+c,minCellWidth:p,preferredCellWidth:d,minColumns:f,maxColumns:h}}t.a=i;var a=n(1603),r=n(223),o=n(46),s=n.n(o)},function(e,t,n){"use strict";function i(e){return e===a.a||e===a.d}t.a=i;var a=n(33)},function(e,t,n){"use strict";function i(e){switch(e){case c.a:return u.a;default:return d.a}}function a(e){var t=i(e.hubStyle);return function(n){return l.a.createElement(t,o()({},e,n))}}t.a=a
;var r=n(6),o=n.n(r),s=n(0),l=n.n(s),c=n(1601),u=n(3940),d=n(3944)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metricsContext},Object(r.a)(),s.a,o.a,function(e,t,n,i){if(t){var a={key:t.key,typeKey:t.typeKey,title:t.title,content:t.content,context:t.context||e};return Object(l.a)(n,i,a)}})}t.a=i;var a=n(4),r=(n.n(a),n(733)),o=n(39),s=n(53),l=n(1029)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){
return t.sourceDirectory},function(e,t){return t.metricsContext},Object(s.a)(),Object(o.a)(),Object(r.a)(),function(e,t,n,i,a){if(e&&a){var r={key:a.key,typeKey:a.typeKey,title:a.title,content:a.content,context:a.context||t};return Object(l.a)(n,i,e,r)}})}t.a=i;var a=n(4),r=(n.n(a),n(733)),o=n(54),s=n(35),l=n(731)},function(e,t,n){"use strict";function i(e){
var t=e.metadataListEntityID,n=e.metadataItemEntityIDs,i=e.metricsContext,a=e.containerKey,o=e.listType,l=e.listSubtype,c=e.listContext,g=e.columnAdjustment,m=e.populatedRange,y=s()(e,["metadataListEntityID","metadataItemEntityIDs","metricsContext","containerKey","listType","listSubtype","listContext","columnAdjustment","populatedRange"]),b=y.serverEntityID,I=y.providerEntityID,S=y.hubIdentifier,M=Object(h.b)(o,c,{providerEntityID:I,subtype:l,isExternal:S.indexOf("external")>-1})
;return u.a.createElement(f.a,r()({},y,{containerKey:a,keyPropName:"metadataItemEntityID",items:n,itemsOffset:m.start,layout:Object(d.a)(o,l,c,g,M.length),cellRenderer:Object(p.a)({serverEntityID:b,providerEntityID:I,metadataListEntityID:t,containerKey:a,listType:o,listSubtype:l,listContext:c,titleComponents:M,metricsContext:i},v.a)}))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=(n(33),n(484),n(582)),p=n(155),h=n(207),f=n(569),v=n(734);t.a=i},function(e,t,n){
"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.listSubtype},Object(r.a)(),function(e,t){return t?t.subtype:e})}t.a=i;var a=n(4),r=(n.n(a),n(21))},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.type,o=e.summary,u=e.showStreams;return r()(s.Fragment,{},void 0,r()(d.a,{},void 0,r()(g.a,{},void 0,r()(v.a,{},void 0,r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i
}))),r()(y.a,{},void 0,r()(v.a,{},void 0,r()(c.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(I.a,{},void 0,r()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(S.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),M,r()(d.a,{},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,type:a}),u&&r()(h.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i}),r()(f.a,{},void 0,o)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(287)),c=n(329),u=n(144),d=n(109),p=n(407),h=n(1610),f=n(163),v=n(118),g=n(156),m=n(292),y=n(241),b=n(1033),I=n(224),S=n(1617),M=r()(u.a,{});i.defaultProps={showStreams:!0},t.a=i},function(e,t,n){"use strict";function i(){return Object(m.createSelector)(function(e){return e.ui.prePlayPage.decisionMediaItem},Object(b.a)(),Object(I.a)(),function(e,t,n){return{mediaItem:e,mediaItems:t.Media,
canShowMoreSubtitlesAction:n}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(4),y=(n.n(m),n(260)),b=n(21),I=n(3963),S=n(58),M=n(291),D=n(3964),C={dispatchMakePrePlayVideoDecision:M.f,dispatchSelectMetadataItemStream:y.e},j=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),
i.onAudioStreamSelect=function(e){i.props.dispatchSelectMetadataItemStream({metadataItemEntityID:i.props.metadataItemEntityID,streamTypeString:"audio",streamID:e,allParts:!0,metricsPage:i.props.metricsPage})},i.onSubtitlesStreamSelect=function(e){i.props.dispatchSelectMetadataItemStream({metadataItemEntityID:i.props.metadataItemEntityID,streamTypeString:"subtitles",streamID:e,allParts:!0,metricsPage:i.props.metricsPage})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){
this.props.dispatchMakePrePlayVideoDecision()},t.prototype.componentDidUpdate=function(e){e.mediaItems!==this.props.mediaItems&&e.dispatchMakePrePlayVideoDecision()},t.prototype.render=function(){var e=this.props,t=(e.metricsPage,e.dispatchMakePrePlayVideoDecision,e.dispatchSelectMetadataItemStream,s()(e,["metricsPage","dispatchMakePrePlayVideoDecision","dispatchSelectMetadataItemStream"]));return g.a.createElement(D.a,r()({},t,{onAudioStreamSelect:this.onAudioStreamSelect,
onSubtitlesStreamSelect:this.onSubtitlesStreamSelect}))},t}(v.Component);t.a=Object(S.a)(i,C)(j)},function(e,t,n){"use strict";function i(e,t,n,i){return!(!(e.ownerFeatures&&e.ownerFeatures.indexOf(a.m)>-1)||!t||!n||!n.isLibraryItem||n.isExtra||i)}t.a=i;var a=n(79)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){i.props.onStreamSelect(i.props.stream.id),i.props.onMenuClose()},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.stream;return a()(h.a,{isSelected:!!n.selected,onPress:this.onPress},void 0,t)},t}(p.Component);t.a=f},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(1032),g=n(3968),m={dispatchResetMetadataItemSubtitles:v.c},y=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onModalClose=function(){i.props.dispatchResetMetadataItemSubtitles(),i.props.onModalClose()},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){
return h.a.createElement(g.a,a()({},this.props,{onModalClose:this.onModalClose}))},t}(p.Component);t.a=Object(f.connect)(null,m)(y)},function(e,t,n){"use strict";var i=(n(37),n(18)),a=n(25),r=n(3967),o=a.a.extend({name:"SubtitlesCollection",context:["server","key","language","title","mediaItemID","minimumScore","hearingImpaired"],model:r.a,url:function(){var e={language:this.language};return this.title&&(e.title=this.title),this.mediaItemID&&(e.mediaItemID=this.mediaItemID),
this.minimumScore&&(e.minimumScore=this.minimumScore),null!=this.hearingImpaired&&(e.hearingImpaired=this.hearingImpaired),i.join([this.key,"/subtitles"],e)}});t.a=o},function(e,t,n){"use strict";function i(e){e=e||[];for(var t=0,n=e.length;t<n;t++){var o=e[t];if("xx"!==o&&"xn"!==o){if(a.b[o])return o;var s=o.match(r),l=s&&i([s[1]]);if(l)return l}}}t.a=i;var a=n(462),r=/(^[^-]+)\-/},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("span",{className:t
},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3988)),c=n.n(l);i.defaultProps={className:c.a.tertiaryTitleSpacer},t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{originallyAvailableAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).originallyAvailableAt}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3991);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.title,o=e.year,l=e.summary,S=e.showStreams;return r()(s.Fragment,{},void 0,r()(c.a,{},void 0,r()(v.a,{},void 0,r()(f.a,{},void 0,a)),r()(m.a,{},void 0,r()(f.a,{},void 0,o),r()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(b.a,{},void 0,r()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(h.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i
}))),I,r()(c.a,{},void 0,r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),S&&r()(d.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(p.a,{},void 0,l)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(144)),c=n(109),u=n(407),d=n(1610),p=n(163),h=n(408),f=n(118),v=n(156),g=n(292),m=n(241),y=n(1033),b=n(224),I=r()(l.a,{});i.defaultProps={showStreams:!0},t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return d})
;var i,a=n(6),r=n.n(a),o=n(40),s=n(436),l=n(172),c=n(198),u=Object(o.a)("ui/player/playQueue/toggleAutoPlay"),d=r()({},l.j,(i={},i[l.b]=function(e,t){var n,i=t.playerType,a=e.get("user").id,o=Object(c.c)(e,i),s=o.get("playQueue"),l=e.get("experienceSettings"),u={providerEntityID:o.get("providerEntityID"),serverEntityID:o.get("serverEntityID"),playQueueOffset:o.get("positionSeconds"),playQueueType:s.get("type"),playQueueRepeat:s.get("repeat"),playQueueID:s.get("playQueueID")
},d=l.get("restorePlayQueue");l.save("restorePlayQueue",r()({},d,(n={},n[a]=u,n)))},i[l.a]=function(e){var t=e.get("user").id,n=e.get("experienceSettings").get("restorePlayQueue"),i=r()({},n);delete i[t],e.get("experienceSettings").save("restorePlayQueue",i)},i["ui/player/playQueue/toggleAutoPlay"]=function(e,t){var n=t.playerType,i=Object(c.c)(e,n),a=e.get("experienceSettings"),r=a.get("autoPlay");Object(s.a)(e).changeAutoPlay(i,a,!r)},i))},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children,i=e.isPlayQueueLoading;return r()("div",{className:(t||"")+" "+(i&&u.a.playQueueIsLoading||""||"")},void 0,i?d:n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(31)),c=n(4023),u=n.n(c),d=r()(l.a,{});t.a=i},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e){return!!e.remotePlayer},function(e){return e.isFullscreen},Object(j.a)(),Object(P.a)(),Object(C.a)(),O.a,function(e,t,n,i,a,r){var o=n.isOpen,s=n.openState,l=s===T.b
;return{isOpen:o,isServerlessPlayer:o&&(!i||!a),isMiniPlayer:l,isRemotePlayer:e,isFullscreen:t,hasFullscreen:Object(I.c)("fullscreenManager").hasFullscreen,restorePlayQueuePayload:r}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(32)),I=n(16),S=n(172),M=n(77),D=n(143),C=n(262),j=n(89),P=n(568),O=n(4024),T=n(212),E=n(107),w=n(3),A={dispatchRestorePlayQueue:S.m,dispatchEndPlayback:M.f,
dispatchUpdatePlayerError:D.A},x=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onEnterFullscreen=function(){Object(I.c)("fullscreenManager").enter()},i.onExitFullscreen=function(){Object(I.c)("fullscreenManager").exit()},i.onToggleFullscreen=function(){i.props.isFullscreen?i.onExitFullscreen():i.onEnterFullscreen()},a=n,d()(i,a)}return h()(t,e),
t.prototype.componentDidMount=function(){this._restorePlayQueue(),this.props.isServerlessPlayer&&this.props.dispatchEndPlayback({playerType:this.props.playerType})},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.dispatchEndPlayback,i=t.isFullscreen,a=t.isOpen,r=t.isServerlessPlayer,o=t.playerType;this._restorePlayQueue(),r&&!e.isServerlessPlayer&&n({playerType:o});var s=Object(I.c)("fullscreenManager");!a&&e.isOpen&&i&&s.shouldExitOnPlayerClose&&this.onExitFullscreen()},
t.prototype.componentDidCatch=function(e,t){b.a.error(e.stack),this.props.dispatchEndPlayback({playerType:this.props.playerType}),this.props.dispatchUpdatePlayerError({playerType:this.props.playerType,errorMessage:Object(w.default)("There was an unexpected error during playback. Please visit our forums if you continue to experience problems.")})},t.prototype._restorePlayQueue=function(){var e=this.props,t=e.playerType,n=e.isOpen,i=e.restorePlayQueuePayload,a=e.dispatchRestorePlayQueue;if(!n&&i){
t===Object(E.c)(i.playQueueType)&&a(i)}},t.prototype.render=function(){var e=this.props,t=e.component,n=e.isServerlessPlayer,i=(e.restorePlayQueuePayload,e.dispatchRestorePlayQueue,e.dispatchEndPlayback,e.dispatchUpdatePlayerError,s()(e,["component","isServerlessPlayer","restorePlayQueuePayload","dispatchRestorePlayQueue","dispatchEndPlayback","dispatchUpdatePlayerError"]));return n?null:g.a.createElement(t,r()({},i,{onEnterFullscreenPress:this.onEnterFullscreen,
onExitFullscreenPress:this.onExitFullscreen,onToggleFullscreen:this.onToggleFullscreen}))},t}(v.Component);t.a=Object(m.connect)(i,A)(x)},function(e,t,n){"use strict";function i(e){var t=e.playerType,n=e.bufferStartMilliseconds,i=e.bufferEndMilliseconds,a=e.positionMilliseconds,o=c()(e,["playerType","bufferStartMilliseconds","bufferEndMilliseconds","positionMilliseconds"]);return s()(h.a,{},void 0,s()(f.a,{},void 0,s()(g.a,{playerType:t,bufferStartMilliseconds:n,bufferEndMilliseconds:i,
positionMilliseconds:a,showBuffer:!0}),p.a.createElement(v.a,r()({component:m.a,playerType:t},o))))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=(n(107),n(1525)),f=n(1526),v=n(1527),g=n(1566),m=n(4030);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u});var i,a=n(40),r=n(18),o=n(247),s=n(125),l=n(198),c=Object(a.a)("ui/player/photoPlayer/fetchRelatedPhotos"),u=Object(s.a)((i={},
i["ui/player/photoPlayer/fetchRelatedPhotos"]=function(e){var t=Object(l.c)(e,"photo"),n=t.get("playQueue"),i=n.get("currentIndex"),a=Object(l.a)(t,i),s=a.get("metadataItem"),c=s.get("key"),u=Object(r.join)([c.replace("/library/","/hubs/"),"related"]),d=new o.default([],{server:s.server,provider:s.provider,metadataItem:s,hubKey:u,hubCount:8});t.set({relatedHubs:d}),s.get("isLibraryItem")&&d.fetch()},i))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),
n(75)),s=n(48),l=n(4069),c=a()(o.a,{},void 0,a()(l.a,{})),u=s.a.extend({component:function(){return c}});t.a=u},function(e,t,n){"use strict";function i(e,t){var n=t.authToken,i=e.get("cloudServer"),a=e.get("user");return o.a.ajax(i.getXHROptions(l.a.result(a,"url"),{headers:{"X-Plex-Token":n}})).then(function(e){return a.signIn(e)}).then(function(){u.a.trigger("navigate:refresh")}).fail(function(e){var t=Object(d.a)(e);u.a.trigger("show:alert",{message:Object(p.a)(t)})})}n.d(t,"b",function(){
return h}),n.d(t,"a",function(){return f});var a,r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(40),u=n(19),d=n(1438),p=n(1439),h=Object(c.a)("user/signIn/signInWithAuthToken"),f=(a={},a["user/signIn/signInWithAuthToken"]=function(e,t,n){i(e,{authToken:t.authToken})},a)},function(e,t,n){"use strict";function i(e){return c.a.createElement(f.a,r()({title:Object(p.default)("Plex is down for maintenance"),description:Object(p.default)("Don't worry, it will be back soon")},e),s()(u.a,{to:d.c,target:"_blank",
kind:h.b.PRIMARY},void 0,"status.plex.tv"))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(0),c=n.n(l),u=n(20),d=n(321),p=n(3),h=n(24),f=n(127);t.a=i},function(e,t,n){"use strict";function i(){return Object(o.createStructuredSelector)({server:Object(c.a)(),outOfDateServers:u.a,isDownForMaintenance:g,hasFailedResources:m,hasPlexSubscription:function(e){return e.user.hasPlexSubscription},isUserRestricted:function(e){return!!e.user.restricted},canProvisionPersonalCloudServer:p.a})}function a(e){return{
onDownloadServer:function(t){e(Object(h.c)(t))},onLinkPersonalCloudServerPress:function(t){e(Object(f.f)({open:!0}))}}}var r=n(11),o=n(4),s=(n.n(o),n(10)),l=n.n(s),c=n(35),u=n(1628),d=n(394),p=n(743),h=n(71),f=n(485),v=n(4090),g=Object(o.createSelector)(d.a,function(e){return!!l.a.findWhere(e,{isDownForMaintenance:!0})}),m=Object(o.createSelector)(d.a,function(e){return!!l.a.findWhere(e,{hasFailedResources:!0})});t.a=Object(r.connect)(i,a)(v.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(10)),r=n.n(a),o=n(394),s=Object(i.createSelector)(o.a,function(e){return r.a.where(e,{isOutOfDate:!0})});t.a=s},function(e,t,n){"use strict";var i=n(1630);t.a=Object(i.a)("plexCloud")},function(e,t,n){"use strict";function i(e){return Object(a.createSelector)(r.a,function(t){if(!t)return{};var n=t.pmp;return{oauthProviders:n.oauthProviders.filter(function(t){return t.usage&&t.usage[e]}),isOauthProvidersPending:n.isOauthProvidersPending,isOauthProvidersPopulated:n.isOauthProvidersPopulated,
oauthProvidersError:n.oauthProvidersError}})}var a=n(4),r=(n.n(a),n(470));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.selectedProviderEntityID,a=e.serverEntityIDs,o=e.providerEntityIDs,s=e.onMenuClose;return r()(l.a,{className:m.a.serverMenu,target:t,isOpen:n,scrollerProps:I,maxHeight:b,onMenuClose:s},void 0,r()(u.a,{page:"serverPicker"},void 0,r()(f.a,{onPress:s}),a.map(function(e){return r()(v.a,{selectedProviderEntityID:i,serverEntityID:e},e)
}),o.map(function(e){return r()(h.a,{selectedProviderEntityID:i,providerEntityID:e},e)})))}n.d(t,"a",function(){return b}),n.d(t,"b",function(){return I});var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=n(57),u=n(4112),d=n(46),p=n.n(d),h=n(4113),f=n(4114),v=n(4117),g=n(4119),m=n.n(g),y=parseInt(p.a.serverMenuItemHeight,10),b=5*y,I={className:m.a.serverMenuScroller,scrollDirection:c.VERTICAL,autoScroll:!0};t.c=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(20),m=n(51),y=n(3),b=n(31),I=n(85),S=n(330),M=n(203),D=a()(I.a,{},void 0,a()(b.a,{})),C=a()(S.a,{}),j=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onRetry=function(e){i.props.onRetry({serverEntityID:i.props.serverEntityID})},a=n,u()(i,a)}
return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.hasProvider,i=e.isPersonalCloudServer,r=e.isRetrying,s=e.showSpinner,l=e.showError,c=o()(e,["children","hasProvider","isPersonalCloudServer","isRetrying","showSpinner","showError"]);if(s)return D;if(l)return i?a()(M.a,{title:Object(y.default)("There was an unexpected error"),description:Object(y.default)("Please retry, or visit our forums if you continue to experience problems")
},void 0,r?Object(y.default)("Retrying\u2026"):a()(g.a,{kind:m.PRIMARY,onPress:this.onRetry},void 0,Object(y.default)("Retry"))):a()(M.a,{title:Object(y.default)("There was an unexpected error")});if(!n)return C;var u=v.a.Children.only(t);return v.a.cloneElement(u,c)},t}(f.Component);t.a=j},function(e,t,n){"use strict";function i(e){var t=e.ui.metadataListPage;return{providerEntityID:t.providerEntityID,listKey:t.listKey}}function a(e,t){e(Object(l.a)({serverEntityID:t.serverEntityID,
providerEntityID:t.providerEntityID,listKey:t.listKey,listTitle:t.listTitle})),e(Object(c.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:t.providerIdentifier,sectionID:null}))}var r=n(11),o=n(4),s=(n.n(o),n(133)),l=n(1634),c=n(93),u=n(76),d=n(4132),p=Object(o.createSelector)(function(e){return e.ui.metadataListPage},u.a,function(e,t){return{metadataListEntityID:e.metadataList,activeSelectionType:t.activeSelectionType}
}),h=Object(s.a)(d.a,i,a),f=Object(r.connect)(p)(h);t.a=f},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(40),a=n(126),r=Object(i.a)(a.D)},function(e,t,n){"use strict";function i(){return Object(f.createSelector)(v.a,D.a,function(e,t){return t.activeSelectionItems.map(function(t){return e[t.model]})})}function a(){return Object(f.createSelector)(y.a,function(e){for(var t={},n=h()(e),i=Array.isArray(n),a=0,n=i?n:d()(n);;){var r;if(i){if(a>=n.length)break;r=n[a++]}else{
if(a=n.next(),a.done)break;r=a.value}var o=r;t[o]=Object(b.b)(e[o])}return t})}function r(){return Object(f.createSelector)(g.a,function(e){for(var t={},n=h()(e),i=Array.isArray(n),a=0,n=i?n:d()(n);;){var r;if(i){if(a>=n.length)break;r=n[a++]}else{if(a=n.next(),a.done)break;r=a.value}var o=r;t[o]=Object(m.b)(e[o])}return t})}function o(){return Object(f.createSelector)(a(),r(),i(),D.a,I.a,function(e,t,n,i,a){var r=i.activeSelectionType,o=n.map(function(n){return{model:n,
provider:t[n.providerEntityID],server:e[n.serverEntityID]}}),s=Object(C.a)(a,o,r),l=s.showMarkPlayed||s.showMarkUnplayed;return c()({activeSelectionType:r,showTogglePlayed:l},s)})}function s(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metricsPage:t.metricsPage};return{onPlaySelectedPress:function(){e(M.n(n))},onShufflePress:function(){e(M.s(n))},onPlaySelectedNextPress:function(){e(M.o(n))},onAddToQueuePress:function(){e(M.a(n))},onFavoritePress:function(){
e(M.h(n))},onUnfavoritePress:function(){e(M.u(n))},onMarkPlayedConfirm:function(){e(M.i(n))},onMarkUnplayedConfirm:function(){e(M.j(n))},onEditPress:function(){e(M.g(n))},onRefreshPress:function(){e(M.p(n))},onAnalyzePress:function(){e(M.b(n))},onMergePress:function(){e(M.k(n))},onSyncPress:function(){e(M.t(n))},onOptimizePress:function(){e(M.m(n))},onDeleteConfirm:function(){e(M.c(c()({},n,{options:{skipRedirect:!t.allowRedirectOnDelete}})))},onDeselectAllPress:function(){e(M.d(n))}}}
var l=n(6),c=n.n(l),u=n(4134),d=n.n(u),p=n(59),h=n.n(p),f=n(4),v=(n.n(f),n(108)),g=n(136),m=n(39),y=n(173),b=n(53),I=n(204),S=n(58),M=n(399),D=n(76),C=n(4137),j=n(4138);t.a=Object(S.a)(o,s)(j.a)},function(e,t,n){"use strict";function i(e,t){if(e)return p.a;switch(t){case I.f:return v.a;case I.e:return f.a;case I.d:return h.a;default:return g.a}}function a(e){
var t=e.children,n=e.serverEntityID,a=e.providerEntityID,r=e.metadataListEntityID,s=e.containerKey,l=e.containerTitle,u=e.listTitle,d=e.listType,p=e.listSubtype,h=e.listContext,f=e.listStyle,v=e.typeKey,g=e.activeSort,I=e.selectedSort,S=e.isDirectoryList,C=e.isFolder,j=e.metadataItemEntityIDs,P=e.totalSize,O=e.populatedRange,T=e.firstItemType,E=e.firstItemSubtype,w=e.isPending,A=e.isPopulated,x=e.error,N=e.columnAdjustment,L=e.hasGutter,k=e.onPageRequest,R=e.onListScrollIndexChange,z=e.onListUpdate,U=e.onMeasure,B=e.scrollIndex,F=P||j.length
;if(A&&F){var _=d||T,V=p||E,H=i(S,f);return o()(H,{className:M.a.metadataListPageContent,scrollerClassName:(M.a.metadataListScroller||"")+" "+(L&&M.a.hasGutter||""||""),serverEntityID:n,providerEntityID:a,metadataListEntityID:r,containerKey:s,containerTitle:l,listType:_,listSubtype:V,listContext:h,typeKey:v,isFolder:C,activeSort:g,selectedSort:I,scrollIndex:B,scrollPositionStorageKey:"MetadataListPageContent",keyPropName:S?"metadataDirectoryEntityID":"metadataItemEntityID",items:j,
itemsOffset:O.start,size:F,columnAdjustment:N,onPageRequest:k,onListScrollIndexChange:R,onListUpdate:z,onMeasure:U},void 0,t)}return w?D:x?o()(m.a,{},void 0,o()(b.a,{title:u?Object(c.default)("There was an unexpected error loading {listTitle}",{listTitle:u}):Object(c.default)("There was an unexpected error loading this list")})):o()(m.a,{},void 0,o()(y.a,{title:Object(c.default)("Nothing to see here"),description:u?Object(c.default)("There are no items in {listTitle}",{listTitle:u
}):Object(c.default)("There are no items in this list")}))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(3)),u=n(33),d=(n(484),n(31)),p=n(1637),h=n(1638),f=n(1643),v=n(1646),g=n(1052),m=n(157),y=n(208),b=n(332),I=n(68),S=n(4180),M=n.n(S),D=o()(m.a,{},void 0,o()(y.a,{},void 0,o()(d.a,{})));a.defaultProps={listContext:u.b,listStyle:I.c},t.a=a},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.sourceDirectory,o=e.containerKey,l=e.containerTitle,c=e.activeSort,v=e.listType,g=e.listSubtype,m=e.listContext,y=e.columnAdjustment,b=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","sourceDirectory","containerKey","containerTitle","activeSort","listType","listSubtype","listContext","columnAdjustment"]),I=Object(f.b)(v,m,{activeSort:c,subtype:g,providerEntityID:n});return u.a.createElement(d.a,r()({
listType:v,listContext:m,layout:Object(p.a)(v,g,m,y,I.length),cellRenderer:Object(h.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,sourceDirectory:a,containerKey:o,containerTitle:l,listType:v,listContext:m,titleComponents:I})},b))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(216),p=(n(33),n(1048)),h=n(1604),f=n(207);n(105);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.containerTitle,l=e.listType,c=e.listContext,v=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","listType","listContext"]);return u.a.createElement(d.a,r()({listType:l,listContext:c,layout:p.a,cellRenderer:Object(h.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:l,listContext:c,containerKey:a,containerTitle:o},f.a)},v))}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(216),p=(n(33),n(1639)),h=n(155),f=n(1640);t.a=i},function(e,t,n){"use strict";var i=n(392),a=n(46),r=n.n(a),o=parseInt(r.a.simpleSummaryCellHeight,10),s=Object(i.a)(o,5);t.a=s},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.listContext},function(e,t){return t.cellHeight},Object(d.a)(),h.a,p.a,f.a,Object(y.a)(),Object(g.a)(),Object(m.a)(),Object(b.a)(),function(e){
return e.ui.audioVideoPlayer.isPaused},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(arguments[3],arguments[4],arguments[5],arguments[6]),a=arguments[7],r=arguments[8],o=arguments[9],s=arguments[10];return{metadataKey:n.key,grandparentKey:n.grandparentKey,type:i,index:n.index,title:n.title,summary:r,tagline:n.tagline,route:a,showLink:!!a,showMore:!n.isFolder,isPlaying:o,isPlayerPaused:s}})}function a(e,t){
var n=t.serverEntityID,i=t.providerEntityID,a=t.metadataItemEntityID,r=t.containerKey,o=t.listType,s=t.metricsPage,l=t.metricsContext;return{onPlayPress:function(){e(Object(u.m)({serverEntityID:n,providerEntityID:i,metadataItemEntityID:a,metricsPage:s,metricsContext:l,options:{containerKey:r,listType:o}}))}}}function r(e){return e.metadataKey?l.a.createElement(S.a,e):l.a.createElement(M.a,e)}var o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(4),u=(n.n(c),
n(77)),d=n(21),p=n(39),h=n(53),f=n(204),v=n(58),g=n(481),m=n(1641),y=n(739),b=n(1049),I=n(397),S=n(4145),M=n(4149);t.a=Object(v.a)(i,a,I.a)(r)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(s.a)(),Object(o.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.summary;return Object(r.a)(e.identifier)===l.a?Object(c.a)(n):n})}t.a=i;var a=n(4),r=(n.n(a),n(1171)),o=n(21),s=n(54),l=n(1172),c=n(1190)},function(e,t,n){"use strict"
;function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{saved:e.saved,viewOffset:e.viewOffset,viewCount:e.viewCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4146);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.containerTitle,l=e.listType,c=e.listContext,v=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","listType","listContext"]);return u.a.createElement(d.a,r()({listType:l,listContext:c,layout:p.a,cellRenderer:Object(h.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:l,listContext:c,containerKey:a,containerTitle:o},f.a)},v))}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(216),p=(n(33),n(1644)),h=n(155),f=n(1645);t.a=i},function(e,t,n){"use strict";var i=n(392),a=n(46),r=n.n(a),o=parseInt(r.a.summaryCellHeight,10),s=Object(i.a)(o,5);t.a=s},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e,t){return t.listContext},function(e,t){return t.cellHeight
},Object(m.a)(),b.a,y.a,I.a,Object(E.a)(),Object(T.a)(),Object(C.a)(),Object(j.a)(),Object(O.a)(),Object(P.a)(),w.a,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=arguments[4],r=arguments[5],o=arguments[6],s=arguments[7],l=arguments[8],c=arguments[9],u=arguments[10],d=arguments[11],p=arguments[12],h=t-2*B,f=Object(N.a)(null,h,o,s,n,e);return{metadataKey:n.key,grandparentKey:n.grandparentKey,type:o,index:n.index,title:n.title,summary:c,
isFolder:n.isFolder,selectionID:n.entityID,selectionType:u,activeSelectionType:p.activeSelectionType,isSelected:d,route:l,showLink:!!l,showEdit:Object(x.e)(i,a,r,n),showSelect:Object(x.m)(i,a,r,n),showMore:!n.isFolder,imageWidth:f.width,imageHeight:f.height,imageUrl:f.url}})}function a(e,t){var n=t.serverEntityID,i=t.providerEntityID,a=t.metadataListEntityID,r=t.metadataItemEntityID,o=t.metricsPage;return{onEditPress:function(){e(Object(M.editMetadataItem)({serverEntityID:n,providerEntityID:i,
metadataItemEntityID:r,metricsPage:o}))},onSelectItem:function(t){e(Object(D.j)(p()({metadataListEntityID:a,id:r},t)))},onDeselectItem:function(t){e(Object(D.b)(p()({metadataListEntityID:a},t)))}}}var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(4),m=(n.n(g),
n(21)),y=n(39),b=n(53),I=n(204),S=n(58),M=n(191),D=n(152),C=n(481),j=n(1641),P=n(735),O=n(738),T=n(1608),E=n(739),w=n(76),A=n(576),x=n(326),N=n(261),L=n(397),k=n(46),R=n.n(k),z=n(4151),U=n(4153),B=parseInt(R.a.summaryCellPadding,10),F=Object(A.a)(z.a),_=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){
return this.props.metadataKey?this.props.showSelect?v.a.createElement(F,this.props):v.a.createElement(z.a,this.props):v.a.createElement(U.a,this.props)},t}(f.Component);t.a=Object(S.a)(i,a,L.a)(_)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.containerTitle,l=e.listType,c=e.listSubtype,v=e.listContext,g=e.typeKey,m=e.isFolder,y=e.activeSort,b=e.selectedSort,I=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","listType","listSubtype","listContext","typeKey","isFolder","activeSort","selectedSort"]);return u.a.createElement(d.a,r()({layout:p.a,cellRenderer:Object(h.a)({serverEntityID:t,
providerEntityID:n,metadataListEntityID:i,containerKey:a,containerTitle:o,listType:l,listSubtype:c,listContext:v,typeKey:g,isFolder:m,activeSort:y,selectedSort:b},f.a)},I))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(216),p=(n(33),n(1051)),h=n(155),f=n(745);t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.listType},function(e,t){return t.listSubtype},function(e,t){return t.listContext},function(e,t){
return t.isFolder},Object(r.a)(),c.a,function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments[5],c=n===o.b,u=Object(s.a)(e,t);return Object(l.c)(e,t,n,{isFolder:i,keys:c?r[u]:void 0,sorts:c?a.sorts:void 0})})}t.a=i;var a=n(4),r=(n.n(a),n(263)),o=n(33),s=n(746),l=n(1648),c=n(4171)},function(e,t,n){"use strict";function i(e){return oe[e]}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.reduce(function(e,t){return e[t.key]=!0,e
},{});return se.reduce(function(e,n){return t[n.ascKey]&&e.push(n),e},[])}function r(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.keys,u=r.sorts,d=r.isFolder;if(o&&o.length){return(u&&u.length&&!d?a(u):i(e)).reduce(function(e,t){return-1!==o.indexOf(t.key)&&e.push(t),e},[])}switch(n){case c.i:switch(e){case l.j:return[k,H,X,Y];case l.e:return[q,L,Y];case l.a:return[L,H,Y];case l.l:return[_,G]}}switch(t){case s.b:switch(e){case l.k:return[L];case l.l:return[L,K]}}
switch(e){case l.f:return[L,H,K,Z];case l.k:return[L,H,J,$];case l.j:return[k,R];case l.e:return[L,z,Z];case l.b:return[L];case l.a:return[L,U,H];case l.l:return[L,B,V,K];case l.g:case l.h:case l.c:case l.d:return[L]}return[]}t.b=i,t.a=a,t.c=r;var o=n(3),s=n(106),l=n(27),c=n(33),u=n(287),d=n(564),p=n(4155),h=n(1549),f=n(4159),v=n(1550),g=n(1010),m=n(975),y=n(1551),b=n(1004),I=n(1552),S=n(1642),M=n(1651),D=n(4162),C=n(1553),j=n(1554),P=n(976),O=n(4165),T=n(4167),E=n(572),w=n(4169),A=n(400),x={
flex:"2 1 350px"},N={flex:"0 1 200px"},L={key:"title",ascKey:"titleSort",descKey:"titleSort:desc",title:function(e){switch(e){case l.f:return Object(o.default)("Movie Title");case l.k:return Object(o.default)("Show Title");case l.e:return Object(o.default)("Episode Title");case l.b:return Object(o.default)("Artist Title");case l.a:return Object(o.default)("Album Title");case l.l:return Object(o.default)("Track Title");default:return Object(o.default)("Title")}},component:function(){return p.a},
style:x},k={key:"season",ascKey:"season.index,season.titleSort",descKey:"season.index:desc,season.titleSort",title:function(){return Object(o.default)("Season")},component:function(){return p.a},style:x},R={key:"seasonShow",ascKey:"show.titleSort,index",descKey:"show.titleSort:desc,index",title:function(){return Object(o.default)("Show")},component:function(){return d.a},style:x},z={key:"episodeShow",
ascKey:"show.titleSort,season.index:nullsLast,episode.index:nullsLast,episode.originallyAvailableAt:nullsLast,episode.titleSort,episode.id",descKey:"show.titleSort:desc,season.index:nullsLast,episode.index:nullsLast,episode.originallyAvailableAt:nullsLast,episode.titleSort,episode.id",title:function(){return Object(o.default)("Show")},component:function(){return u.a},style:x},U={key:"albumArtist",ascKey:"artist.titleSort,album.titleSort,album.index,album.id,album.originallyAvailableAt",
descKey:"artist.titleSort:desc,album.titleSort,album.index,album.id,album.originallyAvailableAt",title:function(){return Object(o.default)("Album Artist")},component:function(){return d.a},style:x},B={key:"trackAlbumArtist",ascKey:"artist.titleSort,album.titleSort,album.year,track.absoluteIndex,track.index,track.titleSort,track.id",descKey:"artist.titleSort:desc,album.titleSort,album.year,track.absoluteIndex,track.index,track.titleSort,track.id",title:function(){
return Object(o.default)("Album Artist")},component:function(){return u.a},style:x},F={key:"trackArtist",title:function(){return Object(o.default)("Artist")},ascKey:"originalTitle",descKey:"originalTitle:desc",component:function(){return O.a},style:x},_={key:"combinedTitleTrackArtist",ascKey:"titleSort",descKey:"titleSort:desc",title:function(){return Object(o.default)("Track Title")},component:function(){return f.a},style:x},V={key:"trackAlbum",ascKey:"album.titleSort",
descKey:"album.titleSort:desc",title:function(){return Object(o.default)("Album")},component:function(){return d.a},style:x},H={key:"year",ascKey:"year",descKey:"year:desc",title:function(){return Object(o.default)("Year")},component:function(){return A.a},style:{flex:"0 1 150px"}},Q={key:"criticRating",ascKey:"rating",descKey:"rating:desc",title:function(){return Object(o.default)("Critic Rating")},component:function(){return g.a},style:{flex:"0 0 150px"}},Y={key:"userRating",
ascKey:"userRating",descKey:"userRating:desc",title:function(){return Object(o.default)("Rating")},component:function(){return E.a},style:{flex:"0 0 115px"}},G={key:"miniUserRating",ascKey:"userRating",descKey:"userRating:desc",title:function(){return Object(o.default)("Rating")},component:function(){return E.a},style:{flex:"0 0 75px",padding:0}},W={key:"contentRating",ascKey:"contentRating",descKey:"contentRating:desc",title:function(){return Object(o.default)("Content Rating")},
component:function(){return v.a},style:{flex:"0 0 150px"}},K={key:"duration",ascKey:"duration",descKey:"duration:desc",title:function(){return Object(o.default)("Duration")},component:function(e){switch(e){case l.l:return M.a;default:return y.a}},style:{flex:"0 1 150px"}},Z={key:"progress",ascKey:"viewOffset",descKey:"viewOffset:desc",title:function(){return Object(o.default)("Progress")},component:function(){return D.a},style:{flex:"0 1 150px"}},q={key:"miniProgress",ascKey:"viewOffset",
descKey:"viewOffset:desc",title:function(){return Object(o.default)("Progress")},component:function(){return S.a},style:{flex:"0 0 25px",paddingLeft:"10px",paddingRight:0}},J={key:"seasonCount",ascKey:"childCount",descKey:"childCount:desc",title:function(){return Object(o.default)("Seasons")},component:function(){return P.a},style:{flex:"0 1 150px"}},X={key:"seasonCount",ascKey:"childCount",descKey:"childCount:desc",title:function(){return Object(o.default)("Episodes")},component:function(){
return b.a},style:{flex:"0 1 150px"}},$={key:"unwatchedCount",ascKey:"unviewedLeafCount",descKey:"unviewedLeafCount:desc",title:function(){return Object(o.default)("Unplayed")},component:function(){return T.a},style:{flex:"0 1 150px"}},ee={key:"playCount",ascKey:"viewCount",descKey:"viewCount:desc",title:function(){return Object(o.default)("Plays")},component:function(){return w.a},style:{flex:"0 1 150px"}},te={key:"dateAdded",ascKey:"addedAt",descKey:"addedAt:desc",title:function(){
return Object(o.default)("Date Added")},component:function(){return m.a},style:N},ne={key:"dateViewed",ascKey:"lastViewedAt",descKey:"lastViewedAt:desc",title:function(){return Object(o.default)("Date Viewed")},component:function(){return I.a},style:N},ie={key:"releaseDate",ascKey:"originallyAvailableAt",descKey:"originallyAvailableAt:desc",title:function(e){switch(e){case"movie":return Object(o.default)("Release Date");case"show":case"episode":return Object(o.default)("Air Date");case"album":
default:return Object(o.default)("Release Date")}},component:function(){return C.a},style:N},ae={key:"resolution",ascKey:"mediaHeight",descKey:"mediaHeight:desc",title:function(){return Object(o.default)("Resolution")},component:function(){return j.a},style:{flex:"0 1 150px"}},re={key:"bitrate",ascKey:"mediaBitrate",descKey:"mediaBitrate:desc",title:function(){return Object(o.default)("Bitrate")},component:function(){return h.a},style:{flex:"0 1 150px"}},oe={
movie:[L,H,Q,Y,W,K,Z,ee,te,ne,ie,ae,re],show:[L,H,Q,Y,W,J,$,te,ne,ie],season:[k,R,Y,te],episode:[L,z,H,Q,Y,K,Z,ee,te,ne,ie,ae,re],artist:[L,Y,te],album:[L,U,H,Q,Y,te,ie],track:[L,B,F,V,H,Y,K,Z,ee,te,re],collection:[L,Y]},se=[L,k,R,z,U,B,F,V,H,Q,Y,W,K,Z,J,X,$,ee,te,ne,ie,ae,re]},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.primaryExtraKey;return"track"===t&&!!n}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.iconClassName,i=e.name;return r()("span",{
className:t},void 0,r()(l.a,{className:n,name:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=n(4157),u=n.n(c);i.defaultProps={className:u.a.decoratorIconContainer,iconClassName:u.a.decoratorIcon},t.a=i},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){return{duration:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).duration}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1007);t.a=Object(a.connect)(i)(s.a)
},function(e,t,n){"use strict";function i(e){var t=e.providerEntityID,n=e.isOpen,i=e.onModalClose;return r()(c.a,{providerEntityID:t,isOpen:n,title:Object(l.default)("Add a Podcast"),message:Object(l.default)("Want to add a podcast we haven\u2019t listed? If you know the URL for the podcast, you can enter it below."),textInputLabel:Object(l.default)("Podcast Feed"),fileInputButtonLabel:Object(l.default)("Choose OPML File"),
fileImportLabel:Object(l.default)("Import podcasts from an OPML file instead"),urlImportLabel:Object(l.default)("Import podcasts from a URL instead"),hasFileImportFeature:!0,onModalClose:i})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(4192);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(42),b=n(3),I=n(4194),S=n.n(I),M=function(e){function t(n,i){
u()(this,t);var a=p()(this,e.call(this,n,i));return a.onChange=function(e){if(e.target.files&&e.target.files.length){var t=e.target.files[0];a.setState({filename:t.name})}a.props.onChange(e)},a.state={filename:null},a}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputClassName,i=e.buttonText,r=(e.isDisabled,e.showFilename),s=l()(e,["className","inputClassName","buttonText","isDisabled","showFilename"]),c=this.state.filename
;return o()("span",{},void 0,o()(y.a,{className:t,component:"label"},void 0,i,m.a.createElement("input",a()({},s,{className:n,type:"file",onChange:this.onChange}))),r?o()("span",{className:(S.a.filename||"")+" "+(!c&&S.a.noFilename||""||"")},void 0,c||Object(b.default)("No file selected")):null)},t}(g.Component);M.defaultProps={inputClassName:S.a.fileInput,showFilename:!1},t.a=M},function(e,t,n){"use strict";var i=n(14),a=n(4202),r=n(121),o=r.default.extend({mixins:[a.a],
name:"ChannelGridMetadataListModel",sessionAttrs:{isMetadataList:i.a.boolean,containerKey:i.a.string,containerTitle:i.a.string,beginsAt:i.a.integer,endsAt:i.a.integer,populatedRange:i.a.object,isPending:i.a.boolean,isPopulated:i.a.boolean,error:i.a.object},defaults:function(){return{isMetadataList:!0,populatedRange:{start:0,end:0,size:0},isPending:!0,isPopulated:!1,error:null}}});t.a=o},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(608),o=n(4203),s=a.a.extend({
name:"ProviderTagCollection",context:["server","provider","type"],model:o.a,cache:new r.a,url:function(){var e={type:this.type};return i.join([this.provider.get("identifier"),"tags"],e)}});t.a=s},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(function(e,t){return t.activeFilters},Object(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(!t)return null
;var n="/"+t.identifier+"/grid",i=[Object(l.r)(l.f).id,Object(l.r)(l.e).id].join(","),a=e.reduce(function(e,t){return t.key===u?e.push(r()({},t,{key:"channel.value"})):e.push(t),e},[]),o={type:i,filters:a,sort:"beginsAt"};return Object(c.a)(n,o)})}t.a=i;var a=n(6),r=n.n(a),o=n(4),s=(n.n(o),n(54)),l=n(27),c=n(1056),u="hdonly"},function(e,t,n){"use strict";function i(e){if(!r.a.isEmpty(e)){if(e===l)return c;var t=e.map(function(e){
var t=e.key,n=e.value,i=e.operator,a=void 0===i?o.b:i,r=Array.isArray(n)?n.map(encodeURIComponent).join(s.b):encodeURIComponent(n),l=a.lastIndexOf(o.b),c=a.substr(0,l),u=a.substr(l+1,a.lastIndexOf(o.b));return encodeURIComponent(t)+encodeURIComponent(c)+o.b+encodeURIComponent(u)+r},[]);return l=e,c=t.join(s.a)}}t.a=i;var a=n(10),r=n.n(a),o=(n(37),n(489)),s=n(1658),l=void 0,c=void 0},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="&",a=","
},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e){return e.ui.channelGridPage},Object(c.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPending,i=void 0===n||n,a=t.isPopulated,o=void 0!==a&&a,s=t.metadataItems,l=void 0===s?[]:s,c=t.error,u=!!i&&!o&&!c,d=!!c,p=o&&!i&&!c&&0===l.length;return r()({},e,{isPending:i,isEmpty:p,showSpinner:u,showError:d})})}var a=n(6),r=n.n(a),o=n(11),s=n(4),l=(n.n(s),
n(243)),c=n(132),u=n(4209),d={dispatchUpdateAiredProgress:l.k};t.a=Object(o.connect)(i,d)(u.a)},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(l.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.title,i=e.grandparentTitle,a=e.subscriptionID,r=e.grandparentSubscriptionID,o=e.subscriptionType,s=e.grandparentSubscriptionType;return{type:t,title:i||n,subscriptionType:s||o||t,isSubscribed:!(!r&&!a)}})}function a(e,t){var n={
serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage,options:{type:c.d,identifier:t.channelIdentifier}};return{dispatchStartLiveTVPlayback:function(){e(Object(s.l)(n))}}}var r=n(11),o=n(4),s=(n.n(o),n(206)),l=n(21),c=n(63),u=n(4220);t.a=Object(r.connect)(i,a)(u.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.activeFilters},function(e,t){
return t.activeFilterLabel},Object(o.a)(),function(e,t,n){if(!e||!e.length)return Object(r.default)("All Channels");if(e&&1===e.length){var i=e[0],a=n.find(function(e){return e.filter===i.key});if(a)return a.title}return t||Object(r.default)("Filtered")})}t.a=i;var a=n(4),r=(n.n(a),n(3)),o=n(1662)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(){return[{
key:"/"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).identifier+"/grid?channel.value=1",filter:"hdonly",filterKey:"channel.value",filterType:"boolean",title:Object(o.default)("HD Channels Only")}]})}t.a=i;var a=n(4),r=(n.n(a),n(54)),o=n(3)},function(e,t,n){"use strict";function i(e){for(var t=[],n=Object(o.a)(e),i=0;i<f;i++){var a=Object(r.a)(new Date,i),c=Object(p.a)(a),u=Object(l.a)(a,n);t.push({title:c,value:Object(s.a)(a),isSelected:u})}return t}function a(){
return Object(u.createSelector)(function(e){return e.ui.channelGridPage},function(e){return{dateOptions:i(e.startTime)}})}var r=n(234),o=n(81),s=n(147),l=n(276),c=n(11),u=n(4),d=(n.n(u),n(243)),p=n(1059),h=n(4251),f=8,v={dispatchSetStartTime:d.i};t.a=Object(c.connect)(a,v)(h.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(){var e=i.props,t=e.option;(0,e.onPress)(t)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.option,i=e.isDisabled,r=e.isSelected;return a()(h.a,{className:t,isDisabled:i,isSelected:r,onPress:this.onPress},void 0,n.title)},t}(p.Component);t.a=f},,function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),
n(243)),o=n(1662),s=n(4257),l=Object(a.createStructuredSelector)({filters:Object(o.a)()}),c={dispatchSetStartTime:r.i};t.a=Object(i.connect)(l,c)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.typeKey,i=e.activeFilters,a=e.activeFilterLabel,o=e.activeSort,s=e.filters,l=e.selectedFilter,d=e.showSpinner,y=e.showCustomFilter,M=e.onFilterSelect,D=c.a.groupBy(s,function(e){var t=e.filterType;return t===p.a?t:p.b}),C=D[p.a],j=D[p.b];return r()(u.a,{
className:(t||"")+" "+(b.a.filtersScroller||""),autoScroll:!0},void 0,r()(v.a,{to:Object(f.a)({typeKey:n,sort:o}),isSelected:c.a.isEmpty(i)},"all",Object(h.default)("All")),!!C&&C.map(function(e){return r()(g.a,{typeKey:n,activeFilters:i,activeFilterLabel:a,activeSort:o,filter:e.filter,title:e.title},e.filter)}),!!j&&I,!!j&&j.map(function(e){var t=!(!l||l.filter!==e.filter);return r()(m.a,{typeKey:n,activeFilters:i,activeSort:o,filter:e.filter,filterKey:e.key,title:e.title,showSpinner:d&&t,
onFilterSelect:M},e.filter)}),y&&S,y&&r()(v.a,{to:Object(f.a)({typeKey:n,customFilter:!0})},"customFilter",Object(h.default)("Custom Filter...")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(10)),c=n.n(l),u=n(80),d=n(284),p=(n(37),n(333)),h=n(3),f=(n(100),n(295)),v=n(103),g=n(4258),m=n(4259),y=n(4261),b=n.n(y),I=r()(d.a,{}),S=r()(d.a,{});t.a=i},function(e,t,n){"use strict";function i(e,t,n){for(var i=[].concat(e),a=i.length-1;a>=0;a--){var o=i[a],l=o.type===s.a,c=n.type===s.a
;o&&l!==c||i.splice(a,1)}return i.push(r()({key:t},n)),i}t.a=i;var a=n(6),r=n.n(a),o=n(10),s=(n.n(o),n(37),n(333))},function(e,t,n){"use strict";function i(e,t){if(!e)return!1;var n="string"==typeof t?decodeURIComponent(t):t;return!!r.a.find(e,function(e){var t=e.value;return Array.isArray(t)?t.indexOf(n)>-1:t===n})}t.a=i;var a=n(10),r=n.n(a)},function(e,t,n){"use strict";function i(e,t,n){if(null==n)return e.filter(function(e){return e.key!==t});for(var i=[].concat(e),a=i.length;a-- >0;){
var o=i[a],s=o.key,l=o.value;if(t===s&&n===l)i.splice(a,1);else if(t===s&&Array.isArray(l)){var c=l.indexOf(n);c>-1&&(l.splice(c,1),1===l.length?i.splice(a,1,r()({},o,{value:l[0]})):l.length||i.splice(a,1))}}return i}t.a=i;var a=n(6),r=n.n(a),o=n(10);n.n(o),n(37)},function(e,t,n){"use strict";function i(e,t,n){var i=t,a=[];e.sort(function(e,t){return e.beginsAt>t.beginsAt?1:e.beginsAt<t.beginsAt?-1:0});for(var r=0;r<e.length;r++){var o=e[r];if(o.beginsAt>i){var s={beginsAt:i,endsAt:o.beginsAt}
;a.push(s)}a.push(o),i=o.endsAt}if(i<n){var l={beginsAt:i,endsAt:n};a.push(l)}return a}function a(e){return e?e.split(" ")[1]:""}function r(e,t,n){return e.reduce(function(e,i){return i&&i.Media?(i.Media.forEach(function(r,o){var s=r.channelIdentifier,l=r.channelThumb,c=r.channelTitle,u=r.channelCallSign,d=r.beginsAt,p=r.endsAt;if(e[s]||(e[s]={identifier:s,thumb:l,title:c,callSign:u||a(c),programs:[]}),d<n&&p>t){var h={beginsAt:Math.max(d,t),endsAt:Math.min(p,n),metadataItemEntityID:i.entityID,
mediaIndex:o};e[s].programs.push(h)}}),e):e},{})}function o(e,t,n){return c()(e).map(function(a){var r=e[a];return r.programs=i(r.programs,t,n),r}).sort(function(e,t){return Object(u.a)(e.identifier,t.identifier)})}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e[0],a=e[e.length-1],s=r(t,i,a);return n.forEach(function(e){s[e.channelIdentifier]||(s[e.channelIdentifier]={identifier:e.channelIdentifier,thumb:e.thumb,title:e.tag,callSign:e.channelCallSign,
programs:[]})}),o(s,i,a)}t.a=s;var l=n(59),c=n.n(l),u=n(684)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),Object(l.a)(c.b),s.a,function(e,t,n){var i=e.isFullOwnedServer&&!e.isPersonalCloudServer,a=e.ownerFeatures&&-1!==e.ownerFeatures.indexOf("dvr"),r=!n.hasDismissedDVRUpsell;return{showDVRUpsell:t&&i&&a&&r}})}var a=n(11),r=n(4),o=(n.n(r),n(35)),s=n(72),l=n(256),c=n(79),u=n(4265);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict"
;n.d(t,"a",function(){return i});var i="tidal"},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(o.a,function(e){var t=e.find(function(e){return e.type===l.b})||{};return{hasTidal:t.state===s.a||t.state===s.b}})}var a=n(11),r=n(4),o=(n.n(r),n(4276)),s=n(799),l=n(800),c=n(4277);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="folder",a="type"},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=e.reduce(function(e,t){return e[t.key]=t,e},{});return t.map(function(e){var t=n[e.ascKey];return t?f()({},e,{title:function(n){return t.title||e.title(n)}}):e})}function a(){return Object(b.createSelector)(function(e,t){return t.listType},function(e,t){return t.isFolder},Object(M.a)(),Object(I.a)(),function(e,t,n,a){var r=t?Object(D.b)(e):Object(D.a)(a.sorts),o=n.reduce(function(e,t){return e[t.key]=t,e},{})
;return{allTableColumns:i(a.sorts,r),activeTableColumnsByKey:o,activeTableColumns:n}})}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(263)),S=n(296),M=n(1647),D=n(1648),C=n(4288),j={dispatchSelectLibraryTableColumn:S.selectLibraryTableColumn,dispatchDeselectLibraryTableColumn:S.deselectLibraryTableColumn},P=function(e){function t(){var n,i,a;l()(this,t)
;for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onColumnSelect=function(e){i.props.dispatchSelectLibraryTableColumn({type:i.props.listType,subtype:i.props.listSubtype,activeTableColumns:i.props.activeTableColumns,key:e})},i.onColumnDeselect=function(e){i.props.dispatchDeselectLibraryTableColumn({type:i.props.listType,subtype:i.props.listSubtype,activeTableColumns:i.props.activeTableColumns,key:e})},a=n,u()(i,a)}
return p()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchSelectLibraryTableColumn,e.dispatchDeselectLibraryTableColumn,e.activeTableColumns,o()(e,["dispatchSelectLibraryTableColumn","dispatchDeselectLibraryTableColumn","activeTableColumns"]));return m.a.createElement(C.a,f()({},t,{onColumnSelect:this.onColumnSelect,onColumnDeselect:this.onColumnDeselect}))},t}(g.Component);t.a=Object(y.connect)(a,j)(P)},function(e,t,n){"use strict";function i(e,t){
var n=e.field,i=e.type,a=e.fieldTitle,r=e.valueTitle,o=null==i?n:i+"."+n,s=void 0,l=void 0;return e.operator!==C.c&&e.operator!==C.e||!w.test(e.value)||t[o].type!==j.b?t[o].type===j.b?(s=e.operator,l=Object(h.a)(Object(f.a)(e.value),"yyyy-MM-dd")):(s=e.operator,l=e.value):(s=e.operator+"-",l=e.value.substr(1)),{key:o,keyTitle:a,operator:s,value:[{value:decodeURIComponent(l),valueTitle:r?decodeURIComponent(r):void 0}]}}function a(e,t){var n=[];if("composite"===e.type&&"and"===e.operator){
if(e.rules){var r=e.rules.reduce(function(e,n){return e.push.apply(e,a(n,t)),e},[]);n.push.apply(n,r)}}else if("composite"===e.type&&"or"===e.operator){var o=e.rules.reduce(function(e,n){var a=i(n,t);return e.key=a.key,e.keyTitle=a.keyTitle,e.operator=a.operator,null==e.value&&(e.value=[]),e.value.push.apply(e.value,a.value),e},{});n.push(o)}else n.push(i(e,t));return n}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(170),f=n(81),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(10)),S=n.n(I),M=n(331),D=n(39),C=n(489),j=n(753),P=n(296),O=n(1678),T=n(1679),E=n(4291),w=/^\-([0-9]+)([a-zA-Z]+)$/,A=Object(b.createSelector)(O.a,function(e){return e.reduce(function(e,t){return e[t.key]=t,e},{})}),x=Object(b.createSelector)(function(e){return e.ui.libraryPage.queryParse},A,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return e.rule?a(e.rule,t):[]
}),N=Object(b.createSelector)(D.a,M.a,T.a,A,x,function(e){return e.ui.libraryPage.queryParse.key},function(e){return e.ui.libraryPage.queryParseError},function(e){return e.ui.libraryPage.isQueryParsePopulated},function(e,t,n,i,a,r,o,s){var l=t[0],c=l.fields,u=c[0],d=S.a.find(n,function(e){return e.type===u.type});return{supportsQueryParser:!!e.features.queryParser,activeFilters:a,allTypeFieldsByKey:i,queryParseKey:r,queryParseError:o,isQueryParsePopulated:s,defaultField:u,defaultFieldType:d}
}),L={dispatchPopulateQueryParse:P.populateQueryParse},k=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.supportsQueryParser&&this.props.dispatchPopulateQueryParse()},t.prototype.componentWillReceiveProps=function(e){this.props.queryParseKey!==e.queryParseKey&&this.props.dispatchPopulateQueryParse()},t.prototype.render=function(){var e=this.props,t=(e.dispatchPopulateQueryParse,
e.supportsQueryParser),n=o()(e,["dispatchPopulateQueryParse","supportsQueryParser"]);return t?m.a.createElement(E.a,n):null},t}(g.Component);t.a=Object(y.connect)(N,L)(k)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(331)),r=Object(i.createSelector)(a.a,function(e){return e.reduce(function(e,t){return e.push.apply(e,t.fields),e},[])});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.ui.libraryPage.details;return t?t.fieldTypes:void 0}t.a=i},function(e,t,n){"use strict"
;function i(e){return a.d===e||a.f===e}var a=n(489);t.a=i},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({container:a.a.string,containerOpen:a.a.string,input:a.a.string,inputOpen:a.a.string,inputFocused:a.a.string,suggestionsContainer:a.a.string,suggestionsContainerOpen:a.a.string,suggestionsList:a.a.string,suggestion:a.a.string,suggestionFirst:a.a.string,suggestionHighlighted:a.a.string,sectionContainer:a.a.string,sectionContainerFirst:a.a.string,sectionTitle:a.a.string})
},,,function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(1685),m=(n.n(g),n(52)),y=n(4321),b=n.n(y),I=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.setInputRef=function(e){i.inputRef=e},i.onChange=function(e){i.textMaskInputElement.update(),
i.props.onChange(i.textMaskInputElement.state.previousConformedValue)},a=n,u()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){var e=this.props.value,t=this.props,n=t.mask,i=t.guide,a=t.pipe,r=t.placeholderChar,o=t.keepCharPositions;this.textMaskInputElement=Object(g.createTextMaskInputElement)({inputElement:this.inputRef,mask:n,guide:i,pipe:a,placeholderChar:r,keepCharPositions:o}),this.textMaskInputElement.update(e)},t.prototype.componentDidUpdate=function(){
this.textMaskInputElement.update(this.props.value)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,s=e.type,l=e.name,c=(e.initialValue,e.value),u=e.size,d=(e.mask,e.guide,e.pipe,e.placeholderChar,e.keepCharPositions,e.hasError),p=(e.errors,e.validations,e.onChange,
o()(e,["className","errorClassName","disabledClassName","isDisabled","type","name","initialValue","value","size","mask","guide","pipe","placeholderChar","keepCharPositions","hasError","errors","validations","onChange"]));return v.a.createElement("input",a()({},p,{className:(t||"")+" "+(b.a[u]||"")+" "+(r&&i||"")+" "+(d&&n||""||""),id:l,name:l,type:s,disabled:r,defaultValue:c,ref:this.setInputRef,onChange:this.onChange}))},t}(f.Component);I.defaultProps={className:b.a.input,
errorClassName:b.a.hasError,disabledClassName:b.a.isDisabled,isDisabled:!1,size:m.LARGE,type:"text",hasError:!1},t.a=I},,function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.activeFilters},function(e,t){return t.activeFilterLabel},Object(s.a)(),function(e,t,n){if(o.a.isEmpty(e)||!n)return Object(c.default)("All");var i=[],a=e.reduce(function(e,t){return(t.type===l.a?e.boolean:e.other).push(t),e},{boolean:[],other:[]}),r=a.boolean,s=a.other
;if(1===r.length){var u=r[0],d=o.a.findWhere(n.filters,{filter:u.key,filterType:l.a});d&&i.push(d.title)}return 1===s.length&&t&&i.push(t),i.length?i.join(" "):Object(c.default)("Filtered")})}t.a=i;var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(263),l=n(333),c=n(3)},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e,t){return t.activeFilters},function(e,t){return t.selectedType},function(e){return e.ui.libraryPage},Object(I.a)(),function(e,t,n,i){
var a=n.selectedFilterKey,r=n.filterOptionQuery,o=n.selectedFilterOptions,s=void 0===o?[]:o,l=n.isSelectedFilterOptionsPopulated,c=n.selectedFilterOptionsError,u=t&&t.filters;return{filters:u,selectedFilter:a&&y.a.findWhere(u,{key:a}),filterOptions:i,filterOptionQuery:r,showSpinner:!l&&!c,showError:!!c,showSearchInput:s.length>12}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),
n(10)),y=n.n(m),b=n(296),I=n(4334),S=n(4335),M=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onFilterSelect=function(e){i.props.selectLibraryFilter({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,key:e}),i.props.fetchLibraryFilterOptions()},i.onFilterDeselect=function(){i.props.deselectLibraryFilter()},i.onSearch=function(e){
i.props.searchLibraryFilterOptions(e)},a=n,c()(i,a)}return d()(t,e),t.prototype.render=function(){return f.a.createElement(S.a,r()({onFilterSelect:this.onFilterSelect,onFilterDeselect:this.onFilterDeselect,onSearch:this.onSearch},this.props))},t}(h.Component);t.a=Object(v.connect)(i,b)(M)},function(e,t,n){"use strict";function i(e){
var t=e.typeKey,n=e.activeFilters,i=e.activeFilterLabel,a=e.activeSort,o=e.activeLimit,l=e.sorts,c=e.selectedSort,p=e.customFilter,g=s()(e,["typeKey","activeFilters","activeFilterLabel","activeSort","activeLimit","sorts","selectedSort","customFilter"]);return u.a.createElement(d.a,g,l.map(function(e){var s=e.key,l=e.descKey,u=e.defaultDirection,d=e.title,g=c.key===s,b=u;g&&(b=a?a===l?m:y:u===m?y:m);var I=b===y;return r()(v.a,{to:Object(f.a)({typeKey:t,filters:n,filterLabel:i,sort:I?l:s,
limit:p?o:null,customFilter:p}),isSelected:g,selectedIconName:I?"plex-icon-sort-ascending-560":"plex-icon-sort-descending-560",selectedIconAriaLabel:I?Object(h.default)("Ascending"):Object(h.default)("Descending")},s,d)}))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(427),h=n(3),f=(n(100),n(295)),v=n(103),g=p.a.directions,m=g.ASCENDING,y=g.DESCENDING;t.a=i},function(e,t,n){"use strict";function i(e){var t=0;return e.map(function(e,n){var i=o()({},e,{
position:n,scrollIndex:t});return t+=e.size,i})}function a(){return Object(l.createSelector)(function(e,t){return t.activeSort},function(e){return e.ui.libraryPage.firstCharacters},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{firstCharacters:i(/titleSort:desc/i.test(e)?t.slice().reverse():t)}})}var r=n(6),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(4339));t.a=Object(s.connect)(a)(c.a)},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),
n.d(t,"a",function(){return o}),n.d(t,"c",function(){return s});var i=n(40),a=n(126),r=Object(i.a)(a.H),o=Object(i.a)(a.f),s=(Object(i.a)(a.x),Object(i.a)(a.T))},function(e,t,n){"use strict";function i(e){var t=e.ticks,n=e.pixelProportion,i=e.majorTickGap,a=e.minorTickGap,r=v.a.where(t,{type:m.a}),o=v.a.where(t,{type:m.b}),s=Object(g.a)({items:r,gap:n*i});return Object(g.a)({items:o,existingItems:s,gap:n*a})}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),
n(0)),f=(n.n(h),n(10)),v=n.n(f),g=n(4350),m=n(1692),y=n(4351),b=n.n(y),I=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a));return r.state={ticks:i(n)},r}return d()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.ticks,n=e.pixelProportion,a=e.majorTickGap,r=e.minorTickGap,o=this.props.ticks!==t,s=this.props.pixelProportion!==n,l=this.props.majorTickGap!==a,c=this.props.minorTickGap!==r;(o||s||l||c)&&this.setState({ticks:i(e)})},t.prototype.render=function(){
return r()("div",{className:b.a.container},void 0,r()("div",{className:b.a.ticks},void 0,this.state.ticks.map(function(e){var t=e.type,n=e.position,i=e.label;return r()("div",{className:b.a[t],style:{top:100*n+"%"}},n,i&&"major"===t&&r()("div",{className:b.a.label},void 0,i))})))},t}(h.Component);I.defaultProps={majorTickGap:20,minorTickGap:5},t.a=I},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i="minor",a="major"},function(e,t,n){"use strict"
;function i(){return Object(u.createSelector)(function(e,t){return t.start},function(e,t){return t.end},Object(h.a)(),function(e,t,n){var i=n.populatedRange,a=n.metadataItems;return e<i.start||t>i.end?p.a.times(t-e,function(){return null}):a.slice(e-i.start,t-i.start)})}function a(){return Object(u.createSelector)(i(),f.a,function(e,t){return e.map(function(e){return t[e]})})}function r(){return Object(u.createSelector)(a(),y.a,function(e,t){return e.every(function(e){
return e&&Object(I.a)(t,e.ratingKey)})})}function o(){return Object(u.createSelector)(function(e,t){return t.avgAR},a(),function(e,t){return t.map(function(t){return t?Object(g.a)(t,e):e})})}function s(){return Object(u.createSelector)(Object(h.a)(),i(),o(),r(),b.a,function(e,t,n,i,a){return{containerKey:e.containerKey,listType:"photo",aspectRatios:n,items:t,isSelected:i,hasSelection:a.activeSelectionItems.length>0}})}function l(e,t){return{onSelectItems:function(t){e(Object(m.k)({type:v.g,ids:t
}))},onDeselectItems:function(t){e(Object(m.c)({ids:t}))}}}var c=n(11),u=n(4),d=(n.n(u),n(10)),p=n.n(d),h=n(132),f=n(108),v=n(27),g=n(755),m=n(152),y=n(736),b=n(76),I=n(737),S=n(4353);t.a=Object(c.connect)(s,l)(S.a)},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(Object(u.a)(),Object(c.a)(),Object(h.a)(),Object(p.a)(),f.a,function(e){var t=e.machineIdentifier,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],a=arguments[3],r=arguments[4]
;return{machineIdentifier:t,metadataKey:n.key,type:n.type,title:n.title,thumb:n.thumb,selectionType:i,activeSelectionType:r.activeSelectionType,isSelected:a}})}function a(e,t){return{onSelectItem:function(n){e(Object(d.j)(o()({metadataListEntityID:t.metadataListEntityID},n)))},onDeselectItem:function(n){e(Object(d.b)(o()({metadataListEntityID:t.metadataListEntityID},n)))}}}var r=n(6),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(21)),u=n(35),d=n(152),p=n(735),h=n(738),f=n(76),v=n(4354)
;t.a=Object(s.connect)(i,a)(v.a)},function(e,t,n){"use strict";function i(e){function t(e){var t=e.viewportWidth+":"+e.viewportHeight;if(t===P)return O;T=e.viewportHeight;var n=e.viewportWidth-2*g,i=p.reduce(function(e,t){return e+t.height},0);E=n/u,w=I?(I-g)/i:E;var a=w*i;return P=t,O={height:a,width:n}}function n(e){Object(l.a)(void 0!==T,"`getListStyle` must be called before `getPositionForIndex`");var t=s.a.find(D,function(t){var n=t.last;return e<=n}),n=s.a.find(t.cellLayouts,function(t){
return t.cellIndex===e});return{cellX:Math.round(n.left*E)+y+g,cellY:Math.round(t.top*w)+y+g,cellWidth:Math.round(n.width*E)-2*y,cellHeight:Math.round(t.height*w)-2*y}}function i(){Object(l.a)(!1,"Mosaic layouts do not support relative indexing")}function a(e){return e<0?D[0]:s.a.find(D,function(t){var n=t.bottom;return e<g+(n+1)*w})||s.a.last(D)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
;Object(l.a)(void 0!==T,"`getListStyle` must be called before `getRangesForPosition`");var t=e+T-1,n=e-f*T,i=t+f*T,r=a(n).first,o=a(i).last,s=a(e).first,c=a(t).last;return{renderStartIndex:r,renderEndIndex:o,visibleStartIndex:s,visibleEndIndex:c,partiallyVisibleStartIndex:s,partiallyVisibleEndIndex:c}}
var c=e.columns,u=void 0===c?1:c,d=e.rows,p=void 0===d?[]:d,h=e.overscan,f=void 0===h?0:h,v=e.outerPadding,g=void 0===v?0:v,m=e.innerPadding,y=void 0===m?0:m,b=e.maximumHeight,I=void 0===b?0:b,S=e.offset,M=void 0===S?0:S,D=[],C=0,j=M;p.forEach(function(e){var t=C;C+=e.height;var n=C-1,i=j;j+=e.widths.length;var a=j-1,o=[],s=0;e.widths.forEach(function(e,t){var n=s;s+=e,o.push({width:e,left:n,cellIndex:i+t})}),D.push(r()({},e,{top:t,bottom:n,first:i,last:a,cellLayouts:o}))})
;var P=void 0,O=void 0,T=void 0,E=void 0,w=void 0;return{getListStyle:t,getPositionForIndex:n,getRangesForPosition:o,getRelativeIndex:i}}t.a=i;var a=n(6),r=n.n(a),o=n(10),s=n.n(o),l=n(37)},function(e,t,n){"use strict";function i(e){return Math.abs(e.actual-e.desired)/e.actual}function a(e){return 0===e.cells.length?1/0:e.cells.reduce(function(e,t){return e+i(t)},0)/e.cells.length+Math.abs(e.scale-1)}function r(e,t){var n=e.cells,i=n.reduce(function(e,t){return e+t.desired},0),a=t/i;return{
scale:a,cells:n.map(function(e){var t=e.desired;return{desired:t,actual:t*a}})}}function o(e){var t=e.aspectRatios,n=e.columns,i=void 0===n?4:n,o=e.minAspectRatio,s=void 0===o?.4:o,l=e.maxAspectRatio,c=void 0===l?5:l,u=t.map(function(e){return Math.max(s,Math.min(c,e))}),d=[],p={scale:null,cells:[]};u.forEach(function(e){var t={desired:e},n={scale:0,cells:p.cells.slice(0)};n.cells.push(t),n=r(n,i),a(n)<=a(p)?p=n:(d.push(p),p=r({scale:0,cells:[t]},i))});var h=1/Math.max(1,p.scale)
;return p.scale=Math.min(1,p.scale),p.cells=p.cells.map(function(e){return{desired:e.desired,actual:e.actual*h}}),d.push(p),d.map(function(e){return{height:e.scale,widths:e.cells.map(function(e){return e.actual})}})}t.a=o},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(I.a,function(e){return{disableReloadThreshold:!!e.activeSelectionType}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),
n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(152)),I=n(76),S=n(4357),M={dispatchPopulateMetadataListRange:b.g,dispatchDeselectAllMetadataListItems:b.a},D=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onPageRequest=function(e){var t=e.startIndex,n=e.endIndex,a=i.props,r=a.metadataListEntityID,o=a.disableReloadThreshold,s=a.items;(0,a.dispatchPopulateMetadataListRange)({
metadataListEntityID:r,disableReloadThreshold:o,startIndex:s[t].start,endIndex:s[n].end-1,pages:1})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentWillUnmount=function(){var e=this.props.metadataListEntityID;this.props.dispatchDeselectAllMetadataListItems({metadataListEntityID:e})},t.prototype.render=function(){var e=this.props,t=(e.dispatchPopulateMetadataListRange,e.dispatchDeselectAllMetadataListItems,s()(e,["dispatchPopulateMetadataListRange","dispatchDeselectAllMetadataListItems"]))
;return g.a.createElement(S.a,r()({onPageRequest:this.onPageRequest},t))},t}(v.Component);t.a=Object(m.connect)(i,M)(D)},function(e,t,n){"use strict";function i(e,t){var n={},i={};return e.reduce(function(e,o){var s=o.index,l=o.position,c=Object(a.default)(1e3*t[s],"yyyy MM"),u=c.slice(0,4);return n[u]?i[c]||(i[c]=!0,e.push({position:l,type:r.b})):(n[u]=!0,i[c]=!0,e.push({position:l,type:r.a,label:u})),e},[])}t.a=i;var a=n(305),r=n(1692)},function(e,t,n){"use strict";function i(e){
if(e.postalCode&&!/^\d{5}$/.test(e.postalCode))return Object(v.default)("Postal Code is not in correct format")}function a(e){var t=e.id,n=e.type,i=e.multiselect,r=e.label,s=e.summary,c=e.country,u=e.locations,v=e.postalCode,b=e.value,M=e.options,D=e.settings,C=e.parentSetting;return n===f.c.GROUP?l()("div",{},void 0,D.map(function(t){return t.hidden?null:d.a.createElement(a,o()({key:t.id},t,{parentSetting:e}))})):n===f.c.BOOL?l()(p.a,{name:t,labelText:C&&C.label||r,checkboxText:r,helpText:s,
initialValue:b}):n===f.c.DOUBLE?l()(g.a,{name:t,labelText:r,min:e.min,max:e.max,stepSize:e.step,initialValue:b,valueModifier:S[t]}):n===f.c.LOCATION?l()(y.a,{name:t,labelText:r,helpText:s,initialValue:{country:c,postalCode:v},validations:I,countries:u}):n===f.c.SELECT&&i?l()(m.a,{labelText:r,helpText:s,options:M}):(h.a.warn("Unsupported provider setting type:[%s]",n),null)}var r=n(6),o=n.n(r),s=n(2),l=n.n(s),c=n(1),u=(n.n(c),
n(0)),d=n.n(u),p=n(688),h=n(32),f=n(363),v=n(3),g=n(1418),m=n(4377),y=n(4379),b=n(933),I=[i],S={playbackSpeed:b.a};t.a=a},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(32),m=n(363),y=n(3),b=n(335),I=n(4386),S=n(4387),M=n(4388),D=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s]
;return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onTogglePress=function(){var e=i.props.setting,t=e.optionsError,n=e.locationsError,a=e.id;i.props.onTogglePress(a),(t||n)&&i.props.onOptionsFetchErrorDismiss(a)},i.onSubmit=function(e){i.props.onUpdateSetting(i.props.setting.id,e)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props.setting,t=e.summary,n=e.optionsError,i=e.locationsError,r=e.type,s=e.multiselect,l=this.props,c=l.updateError,u=(l.onUpdateSetting,
l.onTogglePress,l.onOptionsFetchErrorDismiss,o()(l,["updateError","onUpdateSetting","onTogglePress","onOptionsFetchErrorDismiss"])),d=c?Object(y.default)("Unable to save settings"):null,p=n||i?Object(y.default)("There was an error loading the options"):d;return r===m.c.GROUP?v.a.createElement(I.a,a()({},u,{errorMessage:p,onSubmit:this.onSubmit,onTogglePress:this.onTogglePress})):r===m.c.LOCATION?v.a.createElement(S.a,a()({},u,{errorMessage:p,onSubmit:this.onSubmit,
onTogglePress:this.onTogglePress})):r===m.c.SELECT&&s?v.a.createElement(M.a,a()({},u,{errorMessage:p,onSubmit:this.onSubmit,onTogglePress:this.onTogglePress})):r===m.c.DOUBLE||r===m.c.BOOL?v.a.createElement(b.a,a()({closedNode:t},u,{errorMessage:p,onSubmit:this.onSubmit,onTogglePress:this.onTogglePress})):(g.a.warn("Unsupported provider setting type:[%s]",r),null)},t}(f.Component);t.a=D},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className,i=e.closedNode,a=e.errorMessage,o=e.isOpen,s=e.onTogglePress;return r()(d.a,{className:((o?f.a.isOpen:f.a.isClosed)||"")+" "+(n||""),errorMessage:o?a:null,onPress:o?null:s},void 0,r()(p.a,{},void 0,o&&r()(l.a,{kind:c.PRIMARY,onPress:s},void 0,Object(u.default)("Cancel")),!o&&r()(l.a,{kind:c.PRIMARY},void 0,Object(u.default)("Edit"))),o?t:i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(51),u=n(3),d=n(589),p=n(756),h=n(4383),f=n.n(h);t.a=i
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(210),v=n(36),g=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){this._populate(this.props)},t.prototype.componentDidUpdate=function(e){var t=this.props.machineIdentifier;t&&t!==e.machineIdentifier&&this._populate(this.props)},t.prototype._populate=function(e){
var t=e.machineIdentifier,n=e.dispatchSetPrimaryServer;t&&Object(v.a)(function(){n({machineIdentifier:t})})},t.prototype.render=function(){return a()(p.Fragment,{},void 0,this.props.children)},t}(p.Component),m={dispatchSetPrimaryServer:f.m};t.a=Object(h.connect)(null,m)(g)},function(e,t,n){"use strict";function i(e){var t=e.ui.metadataListPage;return{providerEntityID:t.providerEntityID,listKey:t.listKey}}function a(e,t){e(Object(l.a)({serverEntityID:t.serverEntityID,
providerEntityID:t.providerEntityID,listKey:t.listKey,listTitle:t.listTitle})),e(Object(c.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:t.providerIdentifier,sectionID:null}))}var r=n(11),o=n(4),s=(n.n(o),n(133)),l=n(1634),c=n(93),u=n(76),d=n(4393),p=Object(o.createSelector)(function(e){return e.ui.metadataListPage},u.a,function(e,t){return{metadataListEntityID:e.metadataList,activeSelectionType:t.activeSelectionType}
}),h=Object(s.a)(d.a,i,a),f=Object(r.connect)(p)(h);t.a=f},function(e,t,n){"use strict";function i(e,t){if(e)return p.a;switch(t){case I.f:return v.a;case I.e:return f.a;case I.d:return h.a;default:return g.a}}function a(e){
var t=e.children,n=e.serverEntityID,a=e.providerEntityID,r=e.metadataListEntityID,s=e.sourceDirectory,l=e.containerKey,u=e.containerTitle,d=e.listTitle,p=e.listType,h=e.listSubtype,f=e.listContext,v=e.listStyle,g=e.typeKey,I=e.activeSort,S=e.selectedSort,C=e.isDirectoryList,j=e.isFolder,P=e.metadataItemEntityIDs,O=e.totalSize,T=e.populatedRange,E=e.firstItemType,w=e.firstItemSubtype,A=e.isPending,x=e.isPopulated,N=e.error,L=e.columnAdjustment,k=e.hasGutter,R=e.onPageRequest,z=e.onListScrollIndexChange,U=e.onListUpdate,B=e.onMeasure,F=e.scrollIndex,_=O||P.length
;if(x&&_){var V=p||E,H=h||w,Q=i(C,v);return o()(Q,{className:M.a.metadataListPageContent,scrollerClassName:(M.a.metadataListScroller||"")+" "+(k&&M.a.hasGutter||""||""),serverEntityID:n,providerEntityID:a,metadataListEntityID:r,sourceDirectory:s,containerKey:l,containerTitle:u,listType:V,listSubtype:H,listContext:f,typeKey:g,isFolder:j,activeSort:I,selectedSort:S,scrollIndex:F,scrollPositionStorageKey:"MetadataListPageContent",keyPropName:C?"metadataDirectoryEntityID":"metadataItemEntityID",
items:P,itemsOffset:T.start,size:_,columnAdjustment:L,onPageRequest:R,onListScrollIndexChange:z,onListUpdate:U,onMeasure:B},void 0,t)}return A?D:N?o()(m.a,{},void 0,o()(b.a,{title:d?Object(c.default)("There was an unexpected error loading {listTitle}",{listTitle:d}):Object(c.default)("There was an unexpected error loading this list")})):o()(m.a,{},void 0,o()(y.a,{title:Object(c.default)("Nothing to see here"),description:d?Object(c.default)("There are no items in {listTitle}",{listTitle:d
}):Object(c.default)("There are no items in this list")}))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(3)),u=n(33),d=(n(484),n(31)),p=n(1637),h=n(1638),f=n(1643),v=n(1646),g=n(1052),m=n(157),y=n(411),b=n(758),I=n(68),S=(n(105),n(4397)),M=n.n(S),D=o()(m.a,{},void 0,o()(y.a,{},void 0,o()(d.a,{})));a.defaultProps={listContext:u.b,listStyle:I.c},t.a=a},function(e,t){e.exports={innerEmptyPage:"InnerEmptyPage-innerEmptyPage-9fpLM EmptyPage-emptyPage-2AM9u",
innerEmptyPageContent:"InnerEmptyPage-innerEmptyPageContent--Yoft EmptyPage-content-10PgB"}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u});var i,a=n(6),r=n.n(a),o=n(40),s=n(19),l=n(123),c=Object(o.a)("ui/toggleExpandableSidebar"),u=r()({},l.e,(i={},i[l.b]=function(e,t){s.a.trigger("show:alert",t)},i["ui/toggleExpandableSidebar"]=function(e){var t=e.get("experienceSettings");t.save("isSidebarExpandable",!t.get("isSidebarExpandable"))},i))
},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(395)),r=n(563),o=Object(i.createSelector)(Object(a.a)("isProvidersPopulated"),Object(a.a)("providersError"),r.a,function(e,t,n){var i=!(!e&&!t),a=n.every(function(e){var t=e.server,n=e.provider;return!t.isPending&&(!n||n.isPopulated||n.error)});return i&&a});t.a=o},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(u.a)(),Object(c.a)(),Object(d.a)(),function(e,t,n,i){
var a=t?n:e.provider,o=t?i:e.server,c=Object(s.a)(a),u=c&&Object(l.a)(c.directories,e.directoryKey);return Object(r.a)(a,o,u)})}t.a=i;var a=n(4),r=(n.n(a),n(1599)),o=n(1069),s=n(473),l=n(1600),c=n(4436),u=n(1709),d=n(760)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(r.a,Object(o.a)(),function(e,t){return e[t.hub]})}t.a=i;var a=n(4),r=(n.n(a),n(571)),o=n(496)},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(Object(s.a)(),Object(r.a)(),function(e,t){var n=void 0;return e&&e.title?n=e.title:t&&t.title&&(n=t.title),n||Object(o.default)("Unknown")})}t.a=i;var a=n(4),r=(n.n(a),n(1069)),o=n(3),s=n(1709)},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({directoryKey:a.a.string.isRequired,hubIdentifier:a.a.string,hubKey:a.a.string,id:a.a.string.isRequired,key:a.a.string,provider:a.a.shape({identifier:a.a.string,providerIdentifier:a.a.string,title:a.a.string}),
server:a.a.shape({friendlyName:a.a.string,machineIdentifier:a.a.string.isRequired,sourceTitle:a.a.string}),style:a.a.string,subtype:a.a.string,title:a.a.string,type:a.a.string})},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({homeHubID:a.a.string.isRequired,error:a.a.object,isPending:a.a.bool.isRequired,isPopulated:a.a.bool.isRequired,hub:a.a.string,provider:a.a.string,server:a.a.string})},function(e,t,n){
e.exports=n.p+"desktop/common/img/banners/zero-state-movies.25090dd37e4e1699169a07444d5fa089.jpg"},function(e,t,n){"use strict";function i(){return Object(u.createSelector)(Object(p.a)(),Object(d.a)(),function(e,t){return{title:e,sourceTitle:t}})}function a(e,t){return{onToggleRemoveHomeHub:function(){t.onToggleRemoveHomeHub(t.homeHubID)}}}var r=n(6),o=n.n(r),s=n(1),l=n.n(s),c=n(11),u=n(4),d=(n.n(u),n(1708)),p=n(1710),h=n(4466),f=Object(c.connect)(i,a)(h.a);f.propTypes=o()({},f.propTypes,{
homeHubID:l.a.string.isRequired}),t.a=f},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(394)),r=Object(i.createSelector)(a.a,function(e){return e.filter(function(e){return e.isFullServer&&!!e.friendlyName})});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(173)),r=n(402),o=Object(i.createSelector)(r.a,a.a,function(e,t){var n=e.preferredServerID;if(n)for(var i in t){var a=t[i];if(a.machineIdentifier===n)return a}});t.a=o},function(e,t,n){"use strict";function i(e){
return e.experienceSettings.homeSettings.preferredServerID}t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=n.n(d),h=n(0),f=(n.n(h),n(42)),v=n(47),g=n(51),m=n(4479),y=n(4484),b=n(4487),I=n.n(b),S=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMenuButtonPress=function(){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},
a.onActionButtonPress=function(){var e=a.state.selectedServerIdentifiers;a.props.onActionPress({entityID:e.entityID,machineIdentifier:e.machineIdentifier})},a.onSelectEligibleServer=function(e){var t=e.machineIdentifier,n=e.entityID,i=a.state.selectedServerIdentifiers;n===i.entityID&&t===i.machineIdentifier||a.setState({selectedServerIdentifiers:{entityID:n,machineIdentifier:t}})},a.state={isMenuOpen:!1,selectedServerIdentifiers:n.preferredServerIdentifiers||n.serverIdentifiers[0]},
a._menuButtonID=Object(v.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverIdentifiers,n=e.actionDescription,i=this.state,r=i.isMenuOpen,o=i.selectedServerIdentifiers;return a()(h.Fragment,{},void 0,a()(y.a,{id:this._menuButtonID,isMenuOpen:r,serverEntityID:o.entityID,onPress:this.onMenuButtonPress}),a()(f.a,{kind:g.PRIMARY,className:I.a.continueButton,onPress:this.onActionButtonPress},void 0,n),a()(m.a,{target:this._menuButtonID,isOpen:r,serverIdentifiers:t,
onMenuClose:this.onMenuClose,onPress:this.onSelectEligibleServer}))},t}(h.Component);p.a.shape({machineIdentifier:p.a.string.isRequired,entityID:p.a.string.isRequired});t.a=S},function(e,t,n){e.exports=n.p+"desktop/common/img/banners/zero-state-dvr.83425971b07afe6de5a96074b8f15f6b.jpg"},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.sourceDirectory,l=e.libraryKey,c=e.libraryDirectories,u=void 0===c?[]:c,d=Object(o.a)(n,i);if(!d)return[];var p=[],h=u.find(function(e){
return"folder"===e.key});return h&&p.push({key:"folder",title:Object(r.default)("Folders"),route:a.join(Object(s.a)(d.key,t,n),{source:i.key,key:i.key,folderKey:a.join([l,h.key]),content:1})}),p}t.a=i;var a=n(18),r=n(3),o=n(732),s=n(581)},function(e,t,n){"use strict";var i=n(234),a=n(1073),r=n(1074),o=n(81),s=n(147),l=n(441),c=n(536),u=n(10),d=n.n(u),p=n(17),h=n(14),f=n(69),v=n(980),g=n(111),m=p.a.extend({name:"CalendarModel",context:["server"],url:"/media/subscriptions/scheduled",sessionAttrs:{
visibleDays:h.a.integer,time:h.a.integer},syncedRelations:{scheduled:{relationClass:v.default,rootPropertyName:"MediaGrabOperation"}},derivedAttrs:{startTime:function(){var e=this.get("visibleDays"),t=Object(o.a)(this.get("time")),n=Object(l.a)(t);return e>1&&(n=Object(c.a)(n,1)),Object(s.a)(n)},endTime:function(){var e=this.get("visibleDays"),t=Object(o.a)(this.get("time")),n=Object(r.a)(t);return e>1&&(n=Object(i.a)(n,e-2)),Object(s.a)(n)},daysOfWeek:function(){
var e=Object(o.a)(this.get("startTime")),t=Object(o.a)(this.get("endTime")),n=Object(a.a)(t,e);return d.a.times(Math.min(n+1,7),function(t){return Object(s.a)(Object(i.a)(e,t))})},days:function(){var e=Object(o.a)(this.get("startTime")),t=Object(o.a)(this.get("endTime")),n=Object(a.a)(t,e);return d.a.times(n+1,function(t){return Object(s.a)(Object(i.a)(e,t))})},firstEvent:function(){return this.get("scheduled").first()},lastEvent:function(){return this.get("scheduled").last()},
hasPastEvents:function(){var e=this.get("firstEvent");return!!e&&e.get("beginsAt")<this.get("startTime")},hasFutureEvents:function(){var e=this.get("lastEvent");return!!e&&e.get("beginsAt")>this.get("endTime")}},defaults:function(){return{visibleDays:7,time:Object(s.a)(Date.now())}},augmentResponseText:function(e,t){return t===f.a.xml?Object(g.b)(e):e}});t.a=m},function(e,t,n){"use strict";var i=n(25),a=n(69),r=n(111),o=n(718),s=i.a.extend({name:"MediaSubscriptionCollection",context:["server"],
model:o.a,url:"/media/subscriptions",augmentResponseText:function(e,t){return t===a.a.xml?Object(r.b)(e):e}});t.a=s},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.mediaSubscriptions,n=e.calendar,i=e.isCalendarPopulated,a=e.calendarError;return{showError:!i&&!!a,isEmpty:!n.scheduled.length,subscriptionCount:t.length}})}var a=n(11),r=n(4),o=(n.n(r),n(4550));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){
"use strict";function i(e){var t=e.subscriptionCount;return r()(c.a,{icon:"plex-icon-calendar-560",title:Object(l.default)("You have no recordings scheduled"),description:1===t?Object(l.default)("There are no upcoming airings of the item in your list"):Object(l.default)("There are no upcoming airings of the {subscriptionCount} items in your list",{subscriptionCount:t})})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(208);t.a=i},function(e,t,n){"use strict";function i(){
return Object(y.createSelector)(function(e,t){return t.linkedKey},function(e,t){return t.metricsContext},P.a,function(e,t,n){var i={isLibraryProvider:!0},a={};return t&&(a.context=t),Object(T.a)(n,i,e,a)})}function a(){return Object(y.createSelector)(function(e,t){return t.mediaSubscriptionID},function(e,t){return t.status},function(e){return e.experienceSettings.timeFormat},i(),Object(C.a)(),Object(D.a)(),Object(j.a)(),function(e,t,n,i,a,r,o){
var s=t===S.b.COMPLETE,l=t===S.b.ERROR,c=I.a.pick(a,"type","title","grandparentTitle","index","parentIndex","originallyAvailableAt"),u=f()({providerEntityID:o,prePlayRoute:i,isComplete:s,hasError:l,hasSubscription:!!e,showPlay:s&&!!i,timeFormat:n},c);return r?(u.isRecording=!0,u.isPostProcessing=r.Context.status===S.b.POST_PROCESSING,u.recordingProgress=r.progress):(u.isRecording=!1,u.isPostProcessing=!1),u})}
var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(4),b=(n.n(y),n(10)),I=n.n(b),S=n(706),M=n(412),D=n(1561),C=n(21),j=n(1075),P=n(53),O=n(58),T=n(137),E={dispatchPlayRecording:M.playRecording},w=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onPlayPress=function(e){
var t=i.props,n=t.serverEntityID,a=t.providerEntityID,r=t.linkedKey;(0,t.dispatchPlayRecording)({serverEntityID:n,providerEntityID:a,linkedKey:r})},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.component,n=(e.mediaSubscriptionID,e.status,e.linkedKey,o()(e,["component","mediaSubscriptionID","status","linkedKey"]));return m.a.createElement(t,f()({},n,{onPlayPress:this.onPlayPress}))},t}(g.Component);t.a=Object(O.a)(a,E)(w)},function(e,t,n){"use strict"
;function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.metadataItemEntityID,a=e.onRecordingModify,o=e.onModalClose,l=c()(e,["isOpen","metricsProperties","metadataItemEntityID","onRecordingModify","onModalClose"]);return s()(f.a,{isOpen:t,metricsPage:h.b,metricsProperties:n,onModalClose:o},void 0,p.a.createElement(v.a,r()({metadataItemEntityID:i,onRecordingModify:a,onModalClose:o},l)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(30),f=n(114),v=n(4554)
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.mediaItem,i=n&&n.videoResolution,a=!1,o=void 0;if(i){var s=parseInt(i,10);a=!0,o=s>=720||4===s||8===s}return t||a?r()(c.a,{},void 0,t,a&&r()(u.a,{label:Object(l.default)("Video")},void 0,o?Object(l.default)("HD"):Object(l.default)("SD"))):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1031),u=n(741);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.beginsAt,i=e.endsAt,a=e.channel,o=e.timeFormat;if(!n||!i)return null;var s=Date.now()/1e3,d=void 0;return d=i<s?Object(l.default)("Aired"):n<=s&&i>=s?Object(l.default)("Airing"):Object(l.default)("Airs"),r()(u.a,{label:d},void 0,r()(c.a,{beginsAt:n,endsAt:i,channel:a,showFullTime:!0,showChannel:!0,timeFormat:o}),t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1536),u=n(741);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.error,n=e.onPress
;return r()(c.a,{className:h.a.errorButton,component:l.a,tooltip:t,tooltipClassName:h.a.errorTooltip,tooltipAttachment:d.f.BOTTOM_CENTER,onPress:n},void 0,r()(u.a,{name:"plex-icon-alert-560","aria-label":t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(215),u=n(26),d=n(24),p=n(4557),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){var t=Object(l.a)(e);return Object(v.default)("{month} {dayNumber}",{month:Object(f.a)(e),dayNumber:Object(c.a)(t)})}function a(e){
var t=Object(l.a)(e);return Object(v.default)("{month} {dayNumber}, {year}",{month:Object(f.a)(e),dayNumber:Object(c.a)(t),year:Object(u.a)(t)})}function r(e){var t=e.startTime,n=e.endTime,r=Object(l.a)(t),o=Object(l.a)(n),c=Object(d.a)(r,o)?a(t):i(t)+" \u2013 "+a(n);return s()("span",{className:m.a.title},void 0,c)}var o=n(2),s=n.n(o),l=n(81),c=n(361),u=n(1731),d=n(276),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(1e3)),v=n(3),g=n(4561),m=n.n(g);t.a=r},,function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.mediaSubscriptions,n=e.calendar,i=e.isCalendarPopulated,a=e.calendarError;return{showError:!i&&!!a,isEmpty:!n.scheduled.length,subscriptionCount:t.length,visibleDays:n.visibleDays}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(412)),y=n(36),b=n(4563),I=function(e){function t(){var n,i,a;s()(this,t)
;for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onVisibleDaysChange=function(e){Object(y.a)(function(){i.props.setVisibleDays({visibleDays:e})})},i.onGoToPreviousRangePress=function(){i.props.goToPreviousRange()},i.onGoToNextRangePress=function(){i.props.goToNextRange()},a=n,c()(i,a)}return d()(t,e),t.prototype.render=function(){return f.a.createElement(b.a,r()({onVisibleDaysChange:this.onVisibleDaysChange,
onGoToPreviousRangePress:this.onGoToPreviousRangePress,onGoToNextRangePress:this.onGoToNextRangePress},this.props))},t}(h.Component);t.a=Object(v.connect)(i,m)(I)},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getSourceClientOffset()}}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(225)),v=(n.n(f),
n(28)),g=n(579),m=n(290),y=n(46),b=n.n(y),I=n(1734),S=n(4592),M=n.n(S),D=parseInt(b.a.recordingPriorityPaneWidth,10),C=parseInt(b.a.recordingPriorityDragHandleWidth,10),j=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.item,a=e.itemType,o=e.currentOffset;if(!o||a!==m.e)return null
;var s=o.x,l=o.y,c=D-C,u="translate3d("+(s-c)+"px, "+l+"px, 0)",d={position:"absolute",WebkitTransform:u,msTransform:u,transform:u};return r()(g.a,{},void 0,r()("div",{className:M.a.dragPreview,style:d},void 0,r()(I.a,{serverEntityID:t,providerEntityID:n,mediaSubscriptionEntityID:i.mediaSubscriptionEntityID})))},t}(h.Component);t.a=Object(f.DragLayer)(i)(j)},function(e,t,n){"use strict";function i(){return Object(p.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar.scheduled
},Object(v.a)(),function(e,t){return f.a.find(e,function(e){return Object(s.a)(Object(o.a)(e.beginsAt),new Date)&&e.mediaSubscriptionID===t.key})})}function a(){return Object(p.createSelector)(function(e){return e.experienceSettings.timeFormat},Object(v.a)(),i(),function(e,t,n){var i=f.a.pick(t.target,"title","grandparentTitle","type","year","index","parentIndex","originallyAvailableAt","thumb","grandparentThumb");return n&&(i.beginsAt=n.beginsAt,i.endsAt=n.endsAt),i.timeFormat=e,i})}
function r(e){return u.a.createElement(g.a,e)}var o=n(81),s=n(942),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(11),p=n(4),h=(n.n(p),n(10)),f=n.n(h),v=n(4584),g=n(4585);t.a=Object(d.connect)(a)(r)},function(e,t,n){"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function a(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=(n.n(f),n(225)),g=(n.n(v),n(406)),m=(n.n(g),n(129)),y=(n.n(m),n(372)),b=n(28),I=n(290),S=n(1734),M=n(4593),D=n.n(M),C={beginDrag:function(e){return{mediaSubscriptionEntityID:e.mediaSubscriptionEntityID}},endDrag:function(e,t,n){e.onSubscriptionDragEnd(t.getItem(),t.didDrop())}},j={hover:function(e,t,n){var i=Object(m.findDOMNode)(n).getBoundingClientRect(),a=(i.bottom-i.top)/2,r=t.getClientOffset(),o=r.y-i.top,s=e.sortIndex,l=o>a?s+1:s;e.onSubscriptionDragMove(l)}},P=function(e){
function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.connectDragPreview(Object(g.getEmptyImage)())},t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.mediaSubscriptionEntityID,a=e.isDragging,r=e.isDraggingBefore,s=e.isDraggingAfter,l=e.isOver,c=e.connectDropTarget,u=e.connectDragSource
;return c(o()("div",{className:(D.a.dragSource||"")+" "+(a&&y.c||"")+" "+(r&&l&&y.e||"")+" "+(s&&l&&y.d||""||"")},void 0,o()(S.a,{serverEntityID:t,providerEntityID:n,mediaSubscriptionEntityID:i,connectDragSource:u})))},t}(f.Component);t.a=Object(v.DropTarget)(I.e,j,a)(Object(v.DragSource)(I.e,C,i)(P))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(219)),f=n(131),v=n(491),g=n(151),m=n(117),y=n(750),b=n(47),I=n(28),S=n(3),M=n(31),D=n(165),C=n(24),j=n(1737),P=n(4615),O=n.n(P),T=a()(y.a,{}),E=a()(m.a,{},void 0,a()(D.a,{})),w=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSearchMenuButtonPress=function(e){a.setState({isSearchMenuOpen:!a.state.isSearchMenuOpen})},a.onSearchMenuClose=function(){a.setState({isSearchMenuOpen:!1})},a.state={isSearchMenuOpen:!1},a._searchMenuButtonID=Object(b.a)(),a}
return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.isSearchPending,n=e.query,i=e.allowSearchAllServers,r=e.searchAllServers,o=e.onSearchAllChange,s=this.state.isSearchMenuOpen;return a()(h.a,{},void 0,a()(g.a,{},void 0,Object(S.default)("Search"),i&&T,i&&a()(f.a,{id:this._searchMenuButtonID,title:r?Object(S.default)("All Servers"):Object(S.default)("This Server"),hasMenu:!0,isMenuOpen:s,isSelected:!0,
onPress:this.onSearchMenuButtonPress}),i&&a()(j.a,{target:this._searchMenuButtonID,isOpen:s,isSearchAll:r,onMenuClose:this.onSearchMenuClose,onSearchAllChange:o})),a()(v.a,{},void 0,a()("span",{},void 0,t?Object(S.default)('Searching for "{query}"',{query:n}):Object(S.default)('Results for "{query}"',{query:n})),t&&a()(M.a,{className:O.a.spinner,size:C.e.SMALL})),E)},t}(p.Component);t.a=w},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(56),m=n(3),y=n(103),b=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onThisServerPress=function(){i.props.onSearchAllChange(!1)},i.onAllServersPress=function(){i.props.onSearchAllChange(!0)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.isSearchAll,n=o()(e,["isSearchAll"]);return v.a.createElement(g.a,n,a()(y.a,{isSelected:!t,onPress:this.onThisServerPress},void 0,Object(m.default)("This Server")),a()(y.a,{isSelected:t,onPress:this.onAllServersPress},void 0,Object(m.default)("All Servers")))},t}(f.Component);t.a=b},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(function(e,t){return t.serverEntityIDs},C.a,D.a,function(e,t,n){return e.reduce(function(e,i){
return t[i].providers.forEach(function(t){var a=n[t];e[t]={serverEntityID:i,identifier:a.identifier,title:a.title}}),e},{})})}function a(){return Object(M.a)(i(),function(e){return e})}function r(){return Object(b.createSelector)(function(e){return e.ui.searchPage.searches},a(),function(e,t){var n=e.reduce(function(e,n){var i=n.providerEntityID,a=t[i];if(!a)return e;var r=e[a.identifier];return r||(r=e[a.identifier]={providerEntityID:i,title:a.title,isSearchPending:!1,isSearchPopulated:!1,
hubs:{}}),n.isSearchPending&&(r.isSearchPending=!0),n.isSearchPopulated&&(r.isSearchPopulated=!0),n.hubs.forEach(function(e){var t=function(e){return{serverEntityID:a.serverEntityID,providerEntityID:i,searchResultEntityID:e}},n=e.metadataResults.map(t),o=e.tagResults.map(t),s=r.hubs[e.hubIdentifier];s?(s.size+=e.size,s.results=s.results.concat(n,o)):r.hubs[e.hubIdentifier]={hubIdentifier:e.hubIdentifier,size:e.size,type:e.type,title:e.title,results:[].concat(n,o)}}),e},{})
;return S.a.map(n,function(e){return{providerEntityID:e.providerEntityID,title:e.title,isSearchPending:e.isSearchPending,isSearchPopulated:e.isSearchPopulated,hubs:S.a.values(e.hubs)}})})}function o(){return Object(b.createSelector)(a(),r(),j.a,function(e,t,n){return{availableProviders:e,isSearchCapable:!!f()(e).length,searchAllServers:n.searchAllServers,columnAdjustment:n.columnAdjustment,providers:t}})}var s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(59),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(10)),S=n.n(I),M=n(323),D=n(136),C=n(173),j=n(72),P=n(36),O=n(414),T=n(1076),E={fetchSearchPage:O.b,clearSearchPage:O.a},w=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentWillMount=function(){var e=this;Object(P.a)(function(){e._clear(),e._populate()})},t.prototype.componentWillReceiveProps=function(e){
var t=this,n=e.query!==this.props.query,i=e.availableProviders!==this.props.availableProviders;(n||i)&&Object(P.a)(function(){n&&t._clear(e),t._populate(e)})},t.prototype._clear=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props).clearSearchPage()},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;e.fetchSearchPage({availableProviders:e.availableProviders,query:e.query,limit:30})},t.prototype.render=function(){
return m.a.createElement(T.a,this.props)},t}(g.Component);t.a=Object(y.connect)(o,E)(w)},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(function(e){return e.ui.playlistPage.playlist},function(e){return e.ui.playlistPage.playlistItemList},S.a,I.a,function(e,t,n,i){var a=i[e],r=a&&a.playlistType===D.g,o=t&&t.metadataItems.length;if(r&&o){return i[n[t.metadataItems[0]].metadataItem].librarySectionID}})}function a(e,t){return Object(b.createSelector)(function(e){
return e.ui.playlistPage},M.a,O.a,i(),function(e,t,n,i){var a=e.playlist,r=e.isPlaylistPending,o=e.playlistError;return{metadataItemEntityID:a,librarySectionID:i,showSpinner:r,showError:!r&&!!o,columnAdjustment:t.columnAdjustment,activeSelectionType:n.activeSelectionType,multiSelectToolbarComponent:E.a}})}function r(e){var t=e.ui.playlistPage;return{serverEntityID:t.serverEntityID,metadataKey:t.metadataKey}}function o(e,t){e(j.d({serverEntityID:t.serverEntityID,
providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(j.b())}var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(108)),S=n(593),M=n(72),D=n(27),C=n(133),j=n(338),P=n(93),O=n(76),T=n(1077),E=n(1776),w={dispatchChangeQuickSearchSettings:P.changeQuickSearchSettings},A=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s]
;return n=i=p()(this,e.call.apply(e,[this].concat(o))),i.onLibraryChange=function(){i.props.dispatchChangeQuickSearchSettings({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,providerIdentifier:i.props.selectedProviderID,sectionID:i.props.librarySectionID})},a=n,p()(i,a)}return f()(t,e),t.prototype.componentDidMount=function(){this.onLibraryChange()},t.prototype.componentDidUpdate=function(e){this.props.librarySectionID!==e.librarySectionID&&this.onLibraryChange()
},t.prototype.componentWillUnmount=function(){this.props.dispatchChangeQuickSearchSettings({serverEntityID:this.props.serverEntityID,providerEntityID:this.props.providerEntityID,providerIdentifier:null,sectionID:null})},t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeQuickSearchSettings,l()(e,["dispatchChangeQuickSearchSettings"]));return m.a.createElement(T.a,t)},t}(g.Component),x=Object(C.a)(A,r,o);t.a=Object(y.connect)(a,w)(x)},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(Object(o.a)(),function(e){if(e&&e.childrenKey){var t=e.key,n=e.skipChildren?"grandchildren":"children";return r.join([t,n])}})}t.a=i;var a=n(4),r=(n.n(a),n(18)),o=n(21)},function(e,t,n){"use strict";function i(e){return e.experienceSettings.playThemeMusic}t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.metricsPage;return c.a.createElement(u.a,r()({},e,{page:n}))}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(0),c=n.n(l),u=n(318);i.contextTypes={
metricsPage:s.a.string.isRequired},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(141),g=n(564),m=n(4625),y=n(166),b=n(144),I=n(4643),S=n(109),M=n(167),D=n(163),C=n(339),j=n(194),P=n(118),O=n(156),T=n(292),E=n(482),w=n(241),A=n(224),x=(n(68),a()(b.a,{})),N=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){
var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.type,c=e.year,u=e.summary,d=e.thumb,p=e.art,f=e.listType,b=e.listStyle,N=e.isListReady,L=e.pageWidth,k=e.pageHeight,R=e.scrollTop,z=e.posterWidth,U=e.posterTop,B=this.state,F=B.isContentMeasured,_=B.contentWidth,V=B.contentHeight,H=!!p,Q=!(!F||!r);return a()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:o,type:l,thumb:d,art:p,
pageWidth:L,pageHeight:k,scrollTop:R,posterWidth:z,posterTop:U},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(S.a,{},void 0,a()(O.a,{},void 0,a()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(w.a,{},void 0,a()(P.a,{},void 0,s),a()(T.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(A.a,{},void 0,a()(P.a,{},void 0,c),a()(E.a,{},void 0,a()(I.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i
})))),x,!!u&&a()(S.a,{},void 0,a()(D.a,{},void 0,u))),a()(M.a,{},void 0,Q&&a()(v.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,initialSize:1/0,listType:f,listStyle:b,showArtwork:H,component:m.a,viewportWidth:_,viewportHeight:k,contentHeight:V,scrollTop:R}),N&&a()(S.a,{},void 0,a()(C.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(j.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=N},function(e,t,n){"use strict";function i(e,t){switch(e){
case r.i:return Object(a.default)("Seasons");case r.c:return 1===t?Object(a.default)("1 Episode"):Object(a.default)("{episodeCount} Episodes",{episodeCount:t});case r.a:return 1===t?Object(a.default)("1 Album"):Object(a.default)("{albumCount} Albums",{albumCount:t});case r.j:return 1===t?Object(a.default)("1 Track"):Object(a.default)("{trackCount} Tracks",{trackCount:t})}}t.a=i;var a=n(3),r=n(223)},function(e,t,n){"use strict";function i(e){
var t=e.listType,n=e.isPopulated,i=e.isPending,a=e.error,o=e.size,s=e.children;return n&&o?r()("div",{className:p.a.container,"data-qa-id":"preplayContainer--"+[t]},void 0,s):i?r()("div",{className:p.a.emptyContainer},void 0,h):a?r()("div",{className:p.a.emptyMessage},void 0,Object(c.a)(t)):r()("div",{className:p.a.emptyMessage},void 0,Object(l.a)(t))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4632)),c=n(4633),u=n(31),d=n(4634),p=n.n(d),h=r()(u.a,{});t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.hubEntityIDs;return e.showSpinner?r()("div",{className:p.a.spinnerContainer},void 0,h):r()(u.a,{className:p.a.relatedList,serverEntityID:t,providerEntityID:n,hubEntityIDs:i,listContext:l.i,columnAdjustment:1})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(33)),c=n(31),u=n(730),d=n(4649),p=n.n(d),h=r()(c.a,{});t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(3),g=n(141),m=n(166),y=n(144),b=n(109),I=n(167),S=n(407),M=n(163),D=n(4650),C=n(340),j=n(1078),P=n(194),O=n(118),T=n(156),E=n(292),w=(n(68),n(4663)),A=n(4669),x=n(4671),N=a()(y.a,{}),L=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,
contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.extrasMetadataListEntityID,s=e.popularLeavesMetadataListEntityID,l=e.metadataKey,c=e.title,u=e.type,d=e.summary,p=e.thumb,f=e.art,y=e.listType,L=e.listStyle,k=e.isListReady,R=e.pageWidth,z=e.pageHeight,U=e.scrollTop,B=e.posterWidth,F=e.posterTop,_=this.state,V=_.isContentMeasured,H=_.contentWidth,Q=_.contentHeight,Y=!(!V||!s),G=!(!V||!r);return a()(m.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i,metadataKey:l,type:u,thumb:p,art:f,pageWidth:R,pageHeight:z,scrollTop:U,posterWidth:B,posterTop:F},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(b.a,{},void 0,a()(T.a,{},void 0,a()(O.a,{},void 0,c),a()(E.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(A.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),N,a()(b.a,{},void 0,a()(S.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i}),a()(M.a,{},void 0,d))),a()(I.a,{},void 0,Y&&a()(g.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:s,component:x.a,showArtwork:!!f,viewportWidth:H,viewportHeight:z,contentHeight:Q,scrollTop:U,listStyle:L}),G&&a()(g.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:y,listStyle:L,component:C.a,initialSize:20,showArtwork:!!f,viewportWidth:H,viewportHeight:z,contentHeight:Q,scrollTop:U}),k&&a()(b.a,{},void 0,!!o&&a()(j.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:o,title:Object(v.default)("Music Videos")}),a()(w.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(P.a,{serverEntityID:t,providerEntityID:n}),a()(D.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=L},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(237),m=n(1695),y=n(1696),b=function(e){
function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.state={layout:a._createLayout(n)},a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.aspectRatios!==e.aspectRatios,n=this.props.viewportWidth!==e.viewportWidth,i=this.props.columnAdjustment!==e.columnAdjustment;(t||n||i)&&this.setState({layout:this._createLayout(e)})},t.prototype._createLayout=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.viewportWidth,n=e.columnAdjustment,i=e.aspectRatios,a=Math.ceil(t/400),r=Math.max(1,a+n),o=Object(y.a)({aspectRatios:i,columns:r});return Object(m.a)({columns:r,rows:o})},t.prototype.render=function(){if(!this.state)return null;var e=this.props,t=e.cellRenderer,n=o()(e,["cellRenderer"]),i=this.state.layout;return v.a.createElement(g.a,a()({layout:i,cellRenderer:t},n))},t}(f.Component);b.defaultProps={columnAdjustment:0},
t.a=b},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(141),g=n(166),m=n(144),y=n(109),b=n(167),I=n(163),S=n(340),M=n(194),D=n(118),C=n(156),j=n(292),P=n(241),O=(n(68),a()(m.a,{})),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={
isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.minYear,c=e.maxYear,u=e.type,d=e.summary,p=e.thumb,f=e.art,m=e.listType,T=e.listStyle,E=e.isListReady,w=e.pageWidth,A=e.pageHeight,x=e.scrollTop,N=e.posterWidth,L=e.posterTop,k=this.state,R=k.isContentMeasured,z=k.contentWidth,U=k.contentHeight,B=!(!l||!c||l===c),F=!(!c||l!==c),_=!(!R||!r);return a()(g.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i,metadataKey:o,type:u,thumb:p,art:f,pageWidth:w,pageHeight:A,scrollTop:x,posterWidth:N,posterTop:L},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(y.a,{},void 0,a()(C.a,{},void 0,a()(D.a,{},void 0,s)),a()(P.a,{},void 0,(B||F)&&a()(D.a,{},void 0,B?l+" \u2014 "+c:c),a()(j.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),O,!!d&&a()(y.a,{},void 0,a()(I.a,{},void 0,d))),a()(b.a,{},void 0,_&&a()(v.a,{serverEntityID:t,
providerEntityID:n,metadataListEntityID:r,listType:m,listStyle:T,component:S.a,initialSize:20,showArtwork:!!f,viewportWidth:z,viewportHeight:A,contentHeight:U,scrollTop:x}),E&&a()(y.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=T},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,o=e.type,s=e.summary,d=e.grandparentThumb,T=e.art,E=e.pageWidth,w=e.pageHeight,A=e.scrollTop,x=e.posterWidth,N=e.posterTop,L=e.record;return r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,posterType:"show",attribution:g.a,metadataKey:a,type:o,thumb:d,art:T,pageWidth:E,pageHeight:w,scrollTop:A,posterWidth:x,posterTop:N},void 0,r()(p.a,{},void 0,r()(C.a,{},void 0,r()(D.a,{},void 0,r()(l.a,{
serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),r()(j.a,{},void 0,r()(D.a,{},void 0,r()(c.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),r()(P.a,{},void 0,r()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,record:L}),r()(M.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),O,r()(p.a,{},void 0,r()(f.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(m.a,{metadataItemEntityID:i},void 0,r()(y.a,{
metadataItemEntityID:i,showFullTime:!0,showChannel:!0})),r()(v.a,{},void 0,s),r()(h.a,{},void 0,r()(p.a,{},void 0,r()(I.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(S.a,{serverEntityID:t,providerEntityID:n})))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(287)),c=n(329),u=n(166),d=n(144),p=n(109),h=n(167),f=n(407),v=n(163),g=n(1079),m=n(1751),y=n(1752),b=n(1753),I=n(339),S=n(194),M=n(408),D=n(118),C=n(156),j=n(241),P=n(224),O=r()(d.a,{});t.a=i},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{mediaItem:e}})}var a=n(11),r=n(4),o=(n.n(r),n(480)),s=n(1727);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e){return e.experienceSettings.timeFormat},Object(c.a)(),Object(l.a)(),function(e,t,n){return{beginsAt:t&&t.beginsAt,endsAt:t&&t.endsAt,channel:n&&n.tag,timeFormat:e}})}var a=n(1),r=(n.n(a),n(0)),o=(n.n(r),n(11)),s=n(4),l=(n.n(s),
n(1532)),c=n(480),u=n(1728);t.a=Object(o.connect)(i)(u.a)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(s.a,Object(o.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:t.type,duration:t.duration,isSubscribed:null!=t.subscriptionID||null!=t.grandparentSubscriptionID,subscriptionType:t.subscriptionType,grandparentSubscriptionType:t.grandparentSubscriptionType,showRecord:!!e.features.subscribe}})}var a=n(11),r=n(4),o=(n.n(r),
n(21)),s=n(39),l=n(4675);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(28),v=n(3),g=n(575),m=n(289),y=n(24),b=n(4676),I=n.n(b),S=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={
isSubscribeModalOpen:n.isSubscribeModalOpen},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.type,o=e.isSubscribed,s=e.subscriptionType,l=e.grandparentSubscriptionType,c=this.state.isSubscribeModalOpen;return a()(h.a,{"data-qa-id":"preplayRecordButton",className:I.a.recordButton,size:y.e.SMALL,onPress:this.onRecordPress
},void 0,a()(g.a,{className:o?I.a.recordingIcon:I.a.recordIcon,type:l||s||r}),o?Object(v.default)("Recording Scheduled"):Object(v.default)("Record"),a()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,isOpen:c,subscriptionType:r,onModalClose:this.onSubscribeModalClose}))},t}(p.Component);S.defaultProps={isSubscribeModalOpen:!1},t.a=S},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,o=e.type,s=e.summary,f=e.thumb,v=e.art,g=e.pageWidth,m=e.pageHeight,y=e.scrollTop,b=e.posterWidth,I=e.posterTop;return r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:a,type:o,thumb:f,art:v,pageWidth:g,pageHeight:m,scrollTop:y,posterWidth:b,posterTop:I},void 0,r()(h.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,type:o,summary:s
}),r()(u.a,{},void 0,r()(c.a,{},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(p.a,{serverEntityID:t,providerEntityID:n}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(166)),c=n(109),u=n(167),d=n(339),p=n(194),h=n(1609);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,o=e.type,s=e.subtype,h=e.summary,f=e.thumb,v=e.art,g=e.pageWidth,m=e.pageHeight,y=e.scrollTop,b=e.posterWidth,I=e.posterTop;return r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:a,type:o,subtype:s,thumb:f,art:v,pageWidth:g,pageHeight:m,scrollTop:y,posterWidth:b,posterTop:I},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,summary:h
}),r()(u.a,{},void 0,r()(c.a,{},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(166)),c=n(109),u=n(167),d=n(194),p=n(1035);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,o=e.type,s=e.subtype,h=e.summary,f=e.thumb,v=e.art,g=e.pageWidth,m=e.pageHeight,y=e.scrollTop,b=e.posterWidth,I=e.posterTop;return r()(l.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i,metadataKey:a,type:o,subtype:s,thumb:f,art:v,pageWidth:g,pageHeight:m,scrollTop:y,posterWidth:b,posterTop:I},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,summary:h}),r()(u.a,{},void 0,r()(c.a,{},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(166)),c=n(109),u=n(167),d=n(194),p=n(1035);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,o=e.title,s=e.type,c=e.year,P=e.summary,O=e.thumb,T=e.art,E=e.pageWidth,w=e.pageHeight,A=e.scrollTop,x=e.posterWidth,N=e.posterTop,L=e.record;return r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,attribution:f.a,metadataKey:a,type:s,thumb:O,art:T,pageWidth:E,pageHeight:w,scrollTop:A,posterWidth:x,posterTop:N
},void 0,r()(u.a,{},void 0,r()(M.a,{},void 0,r()(S.a,{},void 0,o)),r()(D.a,{},void 0,r()(S.a,{},void 0,c)),r()(C.a,{},void 0,r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,record:L}),r()(I.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),j,r()(u.a,{},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(v.a,{metadataItemEntityID:i},void 0,r()(g.a,{metadataItemEntityID:i,showFullTime:!0,showChannel:!0
})),r()(h.a,{},void 0,P),r()(d.a,{},void 0,r()(u.a,{},void 0,r()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(b.a,{serverEntityID:t,providerEntityID:n})))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(166)),c=n(144),u=n(109),d=n(167),p=n(407),h=n(163),f=n(1079),v=n(1751),g=n(1752),m=n(1753),y=n(339),b=n(194),I=n(408),S=n(118),M=n(156),D=n(241),C=n(224),j=r()(c.a,{});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.extrasMetadataListEntityID,o=e.metadataKey,s=e.title,g=e.type,m=e.year,y=e.summary,b=e.thumb,I=e.art,S=e.pageWidth,M=e.pageHeight,D=e.posterWidth,C=e.posterTop,j=e.scrollTop;return r()(c.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:o,type:g,thumb:b,art:I,pageWidth:S,pageHeight:M,scrollTop:j,posterWidth:D,posterTop:C},void 0,r()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,
extrasMetadataListEntityID:a,title:s,year:m,summary:y}),r()(d.a,{},void 0,r()(u.a,{},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),!!a&&r()(h.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:a,title:Object(l.default)("Extras")}),r()(f.a,{serverEntityID:t,providerEntityID:n}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(166),u=n(109),d=n(167),p=n(339),h=n(1078),f=n(194),v=n(1618);t.a=i},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(141),g=n(166),m=n(144),y=n(109),b=n(167),I=n(163),S=n(340),M=n(118),D=n(156),C=n(292),j=(n(68),a()(m.a,{})),P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,
contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.type,c=e.summary,u=e.art,d=e.listType,p=e.listStyle,f=e.pageWidth,m=e.pageHeight,P=e.scrollTop,O=this.state,T=O.isContentMeasured,E=O.contentWidth,w=O.contentHeight,A=!(!T||!r);return a()(g.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i,showPoster:!1,metadataKey:o,type:l,art:u,pageWidth:f,pageHeight:m,scrollTop:P},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(y.a,{},void 0,a()(D.a,{},void 0,a()(M.a,{},void 0,s),a()(C.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),j,!!c&&a()(y.a,{},void 0,a()(I.a,{},void 0,c))),a()(b.a,{},void 0,A&&a()(v.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:d,listStyle:p,component:S.a,
initialSize:1e3,showArtwork:!!u,viewportWidth:E,viewportHeight:m,contentHeight:w,scrollTop:P})))},t}(p.Component);t.a=P},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(63),g=n(166),m=n(144),y=n(109),b=n(167),I=n(163),S=n(156),M=n(4678),D=a()(m.a,{}),C=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height
;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataKey,o=e.title,s=e.type,l=e.playlistType,c=e.summary,u=e.art,d=e.composite,p=e.thumb,f=e.pageWidth,m=e.pageHeight,C=e.scrollTop,j=e.posterWidth,P=e.posterTop,O=this.state,T=O.contentWidth,E=O.contentHeight,w=O.isContentMeasured;return a()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,showPoster:l!==v.c,metadataKey:r,type:s,thumb:d||p,art:u,pageWidth:f,pageHeight:m,scrollTop:C,
posterWidth:j,posterTop:P},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(y.a,{},void 0,a()(S.a,{},void 0,o)),D,!!c&&a()(y.a,{},void 0,a()(I.a,{},void 0,c))),a()(b.a,{},void 0,w&&a()(M.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,playlistType:l,contentHeight:E,viewportWidth:T,viewportHeight:m,scrollTop:C})))},t}(p.Component);t.a=C},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),r.a,function(e,t){
return t[e.metadataItem]})}t.a=i;var a=n(4),r=(n.n(a),n(108)),o=n(1081)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(27)),f=n(26),v=n(327),g=n(236),m=n(1564),y=n(4701),b=n.n(y),I=a()(f.a,{name:"plex-icon-clips-560"}),S=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),
i.onPlayPress=function(){i.props.onPlayPress(i.props.metadataItemEntityID)},i.onEditPress=function(){i.props.onEditPress(i.props.metadataItemEntityID)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.playlistItemID,o=e.metadataKey,s=e.type,l=e.thumb,c=e.title,u=e.width,d=e.height,p=e.hasActiveSelection,f=e.isSelected,y=e.isOtherItemSelected,S=e.isModifierKeyPressed,M=e.isDragging,D=e.isSmart,C=e.canDrag,j=e.connectDragSource,P=e.onSelectPress,O=e.onDeselectPress,T=e.onRemovePress,E=s===h.c,w=!o;return j(a()("div",{className:b.a.photoContainer},void 0,a()("div",{
className:(b.a.photo||"")+" "+(f&&b.a.isSelected||""||"")},void 0,a()("div",{className:b.a.image},void 0,!w&&a()(v.a,{serverEntityID:t,providerEntityID:n,component:g.a,url:l,width:u,height:d},r||o),a()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,title:c,showPlay:!0,showEdit:!0,showSelect:!D,showRemove:!D,hasActiveSelection:p,isSelected:f,isOtherItemSelected:y,isModifierKeyPressed:S,isDragging:M,canDrag:C,onPlayPress:this.onPlayPress,onEditPress:this.onEditPress,
onSelectPress:P,onDeselectPress:O,onRemovePress:T}),E&&a()("div",{className:b.a.badge},void 0,I)))))},t}(p.Component);S.defaultProps={connectDragSource:function(e){return e}},t.a=S},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(141),g=n(564),m=n(166),y=n(144),b=n(109),I=n(167),S=n(163),M=n(339),D=n(340),C=n(194),j=n(118),P=n(156),O=n(292),T=n(241),E=(n(68),a()(y.a,{})),w=function(e){
function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.type,c=e.summary,u=e.thumb,d=e.art,p=e.listType,f=e.listStyle,y=e.isListReady,w=e.pageWidth,A=e.pageHeight,x=e.scrollTop,N=e.posterWidth,L=e.posterTop,k=this.state,R=k.isContentMeasured,z=k.contentWidth,U=k.contentHeight,B=!(!R||!r);return a()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:o,type:l,thumb:u,art:d,pageWidth:w,
pageHeight:A,scrollTop:x,posterWidth:N,posterTop:L},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(b.a,{},void 0,a()(P.a,{},void 0,a()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(T.a,{},void 0,a()(j.a,{},void 0,s),a()(O.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),E,!!c&&a()(b.a,{},void 0,a()(S.a,{},void 0,c))),a()(I.a,{},void 0,B&&a()(v.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:p,
listStyle:f,component:D.a,initialSize:20,showArtwork:!!d,viewportWidth:z,viewportHeight:A,contentHeight:U,scrollTop:x}),y&&a()(b.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(C.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=w},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(67)),f=n(28),v=n(141),g=n(166),m=n(144),y=n(109),b=n(167),I=n(407),S=n(163),M=n(1079),D=n(4710),C=n(339),j=n(340),P=n(194),O=n(408),T=n(118),E=n(156),w=n(241),A=n(224),x=(n(68),a()(m.a,{})),N=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.type,c=e.year,u=e.summary,d=e.thumb,p=e.art,f=e.listType,m=e.listStyle,N=e.isListReady,L=e.pageWidth,k=e.pageHeight,R=e.scrollTop,z=e.posterWidth,U=e.posterTop,B=e.record,F=this.state,_=F.isContentMeasured,V=F.contentWidth,H=F.contentHeight,Q=!(!_||!r)
;return a()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,attribution:M.a,metadataKey:o,type:l,thumb:d,art:p,pageWidth:L,pageHeight:k,scrollTop:R,posterWidth:z,posterTop:U},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(y.a,{},void 0,a()(E.a,{},void 0,a()(T.a,{},void 0,s)),a()(w.a,{},void 0,a()(T.a,{},void 0,c)),a()(A.a,{},void 0,a()(D.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,record:B}),a()(O.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i}))),x,a()(y.a,{},void 0,a()(I.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(S.a,{},void 0,u))),a()(b.a,{},void 0,Q&&a()(v.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:f,listStyle:m,component:j.a,initialSize:20,showArtwork:!!p,viewportWidth:V,viewportHeight:k,contentHeight:H,scrollTop:R}),N&&a()(y.a,{},void 0,a()(C.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(P.a,{serverEntityID:t,
providerEntityID:n}))))},t}(p.Component);t.a=N},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(18),g=n(3),m=n(141),y=n(166),b=n(144),I=n(109),S=n(167),M=n(163),D=n(1767),C=n(340),j=n(194),P=n(1768),O=n(408),T=n(118),E=n(156),w=n(224),A=(n(68),n(1769)),x=n.n(A),N=a()(b.a,{}),L=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){
var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.type,c=e.subtype,u=e.summary,d=e.saved,p=e.thumb,f=e.art,b=e.hero,A=e.allEpisodes,L=e.listType,k=e.listStyle,R=e.isListReady,z=e.pageWidth,U=e.pageHeight,B=e.scrollTop,F=e.posterWidth,_=e.posterTop,V=this.state,H=V.isContentMeasured,Q=V.contentWidth,Y=V.contentHeight,G=!(!H||!r);return a()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,
metadataKey:o,type:l,subtype:c,thumb:p,art:f,hero:b,pageWidth:z,pageHeight:U,scrollTop:B,posterWidth:F,posterTop:_},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(I.a,{},void 0,a()(E.a,{},void 0,a()(T.a,{},void 0,s)),a()(w.a,{},void 0,a()(P.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(O.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),N,a()(I.a,{},void 0,a()(M.a,{dangerouslySetInnerHTML:{__html:u}}),null!=d&&a()(D.a,{
className:x.a.addToSavedButton,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),a()(S.a,{},void 0,G&&a()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:L,listStyle:k,component:C.a,initialSize:20,previewSize:A?null:3,listTitle:A?Object(g.default)("All Episodes"):Object(g.default)("Recent Episodes"),titleButtonTitle:A?Object(g.default)("See Recent Episodes"):Object(g.default)("See All Episodes"),titleButtonRoute:v.join(window.location.hash,{
allEpisodes:A?void 0:1},{parseParams:!0}),showArtwork:!!f,viewportWidth:Q,viewportHeight:U,contentHeight:Y,scrollTop:B}),R&&a()(I.a,{},void 0,a()(j.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=L},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(c.c,Object(l.a)(),function(e,t){return{providerIdentifier:e.identifier,saved:t.saved,subtype:t.subtype}})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,
metadataItemEntityID:t.metadataItemEntityID};return{onPress:function(t){e(Object(s.f)(n))}}}var r=n(11),o=n(4),s=(n.n(o),n(260)),l=n(21),c=n(39),u=n(4713),d=Object(r.connect)(i,a)(u.a);t.a=d},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{leafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).leafCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4715);t.a=Object(a.connect)(i)(s.a)},function(e,t){e.exports={
addToSavedButton:"PodcastShowPrePlay-addToSavedButton-2aatE undefined"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(73)),f=n(67),v=n(28),g=n(3),m=n(141),y=n(1004),b=n(1008),I=n(166),S=n(144),M=n(109),D=n(167),C=n(407),j=n(163),P=n(339),O=n(340),T=n(1078),E=n(194),w=n(742),A=n(408),x=n(118),N=n(156),L=n(292),k=n(241),R=n(224),z=n(1616),U=(n(68),a()(h.b,{})),B=a()(S.a,{}),F=function(e){function t(n,i){
o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.onDeckMetadataItemEntityID,s=e.extrasMetadataListEntityID,l=e.metadataKey,c=e.title,u=e.type,d=e.year,p=e.summary,h=e.thumb,v=e.art,S=e.listType,F=e.listStyle,_=e.isListReady,V=e.pageWidth,H=e.pageHeight,Q=e.scrollTop,Y=e.posterWidth,G=e.posterTop,W=this.state,K=W.isContentMeasured,Z=W.contentWidth,q=W.contentHeight,J=!(!K||!r);return a()(I.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i,metadataKey:l,type:u,thumb:h,art:v,pageWidth:V,pageHeight:H,scrollTop:Q,posterWidth:Y,posterTop:G},void 0,a()(f.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(M.a,{},void 0,a()(N.a,{},void 0,a()(x.a,{},void 0,c)),a()(k.a,{},void 0,a()(x.a,{},void 0,d),a()(L.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(R.a,{},void 0,a()(x.a,{},void 0,a()(z.a,{},void 0,o?a()("span",{},void 0,Object(g.default)("On Deck")," ",U,a()(b.a,{
serverEntityID:t,providerEntityID:n,metadataItemEntityID:o})):a()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(w.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(A.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),B,a()(M.a,{},void 0,a()(C.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(j.a,{},void 0,p))),a()(D.a,{},void 0,J&&a()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:S,
listStyle:F,component:O.a,initialSize:20,showArtwork:!!v,viewportWidth:Z,viewportHeight:H,contentHeight:q,scrollTop:Q}),_&&a()(M.a,{},void 0,a()(P.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),!!s&&a()(T.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:s,title:Object(g.default)("Extras")}),a()(E.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=F},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(18),g=n(3),m=n(141),y=n(166),b=n(144),I=n(109),S=n(167),M=n(163),D=n(1767),C=n(340),j=n(194),P=n(1768),O=n(408),T=n(118),E=n(156),w=n(224),A=(n(68),n(1769)),x=n.n(A),N=a()(b.a,{}),L=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,
contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.metadataKey,s=e.title,l=e.type,c=e.subtype,u=e.summary,d=e.saved,p=e.thumb,f=e.art,b=e.hero,A=e.allEpisodes,L=e.listType,k=e.listStyle,R=e.isListReady,z=e.pageWidth,U=e.pageHeight,B=e.scrollTop,F=e.posterWidth,_=e.posterTop,V=this.state,H=V.isContentMeasured,Q=V.contentWidth,Y=V.contentHeight,G=!(!H||!r);return a()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,
metadataKey:o,type:l,subtype:c,thumb:p,art:f,hero:b,pageWidth:z,pageHeight:U,scrollTop:B,posterWidth:F,posterTop:_},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(I.a,{},void 0,a()(E.a,{},void 0,a()(T.a,{},void 0,s)),a()(w.a,{},void 0,a()(P.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(O.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),N,a()(I.a,{},void 0,a()(M.a,{dangerouslySetInnerHTML:{__html:u}}),null!=d&&a()(D.a,{
className:x.a.addToSavedButton,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),a()(S.a,{},void 0,G&&a()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:L,listStyle:k,component:C.a,initialSize:20,previewSize:A?null:3,listTitle:A?Object(g.default)("All Episodes"):Object(g.default)("Recent Episodes"),titleButtonTitle:A?Object(g.default)("See Recent Episodes"):Object(g.default)("See All Episodes"),titleButtonRoute:v.join(window.location.hash,{
allEpisodes:A?void 0:1},{parseParams:!0}),showArtwork:!!f,viewportWidth:Q,viewportHeight:U,contentHeight:Y,scrollTop:B}),R&&a()(I.a,{},void 0,a()(j.a,{serverEntityID:t,providerEntityID:n}))))},t}(p.Component);t.a=L},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),function(e){if(e){var t=e.skipParent,n=t?e.grandparentKey:e.parentKey;if(n){var i=t?"grandchildren":"children";return r.join([n,i])}}})}t.a=i;var a=n(4),r=(n.n(a),n(18)),o=n(21)},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.metadataItemEntityID},Object(o.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.metadataItems,i=n.indexOf(e),a=i+1,r=i-1,o=void 0,s=void 0;return r>-1&&(o=n[r]),a>0&&a<n.length&&(s=n[a]),{previousMetadataItemEntityID:o,nextMetadataItemEntityID:s}})}var a=n(11),r=n(4),o=(n.n(r),n(132)),s=n(4721);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityIDs,a=e.isPending,o=e.error,s=e.selectedKey,u=e.target,h=e.isOpen,g=e.onMenuClose,m=!!i.length,y=!m&&a,b=!m&&!a&&!!o,I=!m&&!y&&!b;return r()(l.a,{target:u,isOpen:h,size:d.e.LARGE,onMenuClose:g},void 0,y&&r()("span",{className:f.a.emptyContainer},void 0,v),b&&r()("span",{className:f.a.emptyContainer},void 0,Object(c.default)("Unable to load items")),I&&r()("span",{className:f.a.emptyContainer
},void 0,Object(c.default)("No items")),i.map(function(e){return r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:e,selectedKey:s},e)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=n(3),u=n(31),d=n(24),p=n(4723),h=n(4725),f=n.n(h),v=r()(u.a,{});t.a=i},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(p.a,d.a,h.a,Object(u.a)(),function(e,t,n,i){
var a=i.type,r=i.subtype,s=i.title,l=i.viewedLeafCount,c=i.unviewedLeafCount,u=Object(g.p)(e,t,n,i),d=u.showMarkPlayed||u.showMarkUnplayed,p=!!t.protocols.livetv,h=e.isFullServer&&!!t.features.subscribe;return o()({type:a,subtype:r,title:s,viewedLeafCount:l,unviewedLeafCount:c,isLiveTV:p,showRecord:h,showTogglePlayed:d},u)})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage};return{
onPlayPress:function(){e(c.m(n))},onPlayLiveTVPress:function(){e(Object(l.l)(n))},onPlayTrailerPress:function(){e(c.n(n))},onPlayRadioPress:function(){e(c.o(n))},onShufflePress:function(){e(c.q(n))},onMarkPlayedConfirm:function(){e(v.markMetadataItemPlayed(o()({},n,{skipConfirm:!0})))},onMarkUnplayedConfirm:function(){e(v.markMetadataItemUnplayed(o()({},n,{skipConfirm:!0})))},onEditPress:function(){e(v.editMetadataItem(n))},onSyncPress:function(){e(v.syncMetadataItem(n))},
onGetInfoPress:function(){e(v.getMetadataItemInfo(n))}}}var r=n(6),o=n.n(r),s=n(4),l=(n.n(s),n(206)),c=n(77),u=n(21),d=n(39),p=n(53),h=n(204),f=n(58),v=n(191),g=n(326),m=n(4726);t.a=Object(f.a)(i,a)(m.a)},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(c.a,function(e){return{isAlbum:e.activeSelectionType===s.c}})}function a(e,t){return{onRemovePress:function(){e(l.h())}}}var r=n(11),o=n(4),s=(n.n(o),n(63)),l=n(338),c=n(76),u=n(4734);t.a=Object(r.connect)(i,a)(u.a)
},function(e,t,n){"use strict";function i(e){return e.get("ui").get("playlistsPage")}n.d(t,"b",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"c",function(){return y});var a,r=n(40),o=n(498),s=n(509),l=n(121),c=n(124),u=n(249),d=n(123),p=n(70),h=n(152),f=n(134),v="ui/playlistsPage/fetchSorts",g=Object(r.a)("ui/playlistsPage/initPlaylistPage"),m=(Object(r.a)(v),Object(r.a)("ui/playlistsPage/populateSorts")),y=(Object(r.a)("ui/playlistsPage/fetchLibraryDetails"),
Object(r.a)("ui/playlistsPage/populateLibraryDetails")),b=(a={},a["ui/playlistsPage/initPlaylistPage"]=function(e,t){var n=i(e),a=Object(f.h)(e,t),r=Object(p.i)(e,t),c=t.serverEntityID,u=t.libraryKey,d=t.containerKey,h=c===n.get("serverEntityID"),v=u===n.get("libraryKey"),g=d===n.get("containerKey");if(!(h&&v&&g)){var m=new l.default({containerKey:d},{server:a,provider:r}),y=n.get("libraryDetails"),b=n.get("sorts");h&&v||(y=u&&new o.a({key:u},{server:a,provider:r}),b=new s.a([],{
url:"/playlists/sorts",server:a})),n.restoreDefaults({serverEntityID:c,libraryKey:u,containerKey:d,playlists:m,libraryDetails:y,sorts:b})}},a["ui/playlistsPage/fetchLibraryDetails"]=Object(c.a)({key:"libraryDetails",getModel:i}),a["ui/playlistsPage/populateLibraryDetails"]=Object(u.a)({key:"libraryDetails",fetchActionType:"ui/playlistsPage/fetchLibraryDetails",getModel:i}),a[v]=Object(c.a)({key:"sorts",getModel:i}),a["ui/playlistsPage/populateSorts"]=Object(u.a)({key:"sorts",fetchActionType:v,
getModel:i}),a[d.a]=function(e,t,n){var a=t.metadataItemEntityID,r=t.containerKeyPattern,o=Object(f.h)(e,t),s=i(e),l=s.get("playlists");a||l&&l.server===o&&r&&l.get("containerKey").match(r)&&n(Object(h.h)({metadataListEntityID:l.entityID()}))},a);t.a=b},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(108)),r=Object(i.createSelector)(function(e){return e.ui.prePlayPage.metadataItem},a.a,function(e,t){var n=t[e]||{};return!(!n||!n.isPreFetched)});t.a=r},function(e,t,n){"use strict"
;var i=n(4),a=(n.n(i),n(173)),r=Object(i.createSelector)(a.a,function(e){return e.transientServer},function(e,t){return e[t]});t.a=r},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(131)),f=n(491),v=n(151),g=n(117),m=n(750),y=n(47),b=n(28),I=n(3),S=n(31),M=n(244),D=n(165),C=n(1737),j=n(24),P=n(4768),O=n.n(P),T=a()(m.a,{}),E=a()(g.a,{},void 0,a()(D.a,{})),w=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onSearchMenuButtonPress=function(e){a.setState({isSearchMenuOpen:!a.state.isSearchMenuOpen})},a.onSearchMenuClose=function(){a.setState({isSearchMenuOpen:!1})},a.state={isSearchMenuOpen:!1},a._searchMenuButtonID=Object(y.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.isSearchPending,n=e.query,i=e.allowSearchAllServers,r=e.searchAllServers,o=e.onSearchAllChange,s=this.state.isSearchMenuOpen;return a()(M.a,{},void 0,a()(v.a,{},void 0,Object(I.default)("Search"),i&&T,i&&a()(h.a,{id:this._searchMenuButtonID,title:r?Object(I.default)("All Servers"):Object(I.default)("This Server"),hasMenu:!0,isMenuOpen:s,isSelected:!0,onPress:this.onSearchMenuButtonPress}),i&&a()(C.a,{target:this._searchMenuButtonID,isOpen:s,isSearchAll:r,
onMenuClose:this.onSearchMenuClose,onSearchAllChange:o})),a()(f.a,{},void 0,a()("span",{},void 0,t?Object(I.default)('Searching for "{query}"',{query:n}):Object(I.default)('Results for "{query}"',{query:n})),t&&a()(S.a,{className:O.a.spinner,size:j.e.SMALL})),E)},t}(p.Component);t.a=w},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(function(e){return e.ui.playlistPage.playlist},function(e){return e.ui.playlistPage.playlistItemList},S.a,I.a,function(e,t,n,i){
var a=i[e],r=a&&a.playlistType===C.g,o=t&&t.metadataItems.length;if(r&&o){return i[n[t.metadataItems[0]].metadataItem].librarySectionID}})}function a(e,t){return Object(b.createSelector)(function(e){return e.ui.playlistPage},M.a,T.a,i(),function(e,t,n,i){var a=e.playlist,r=e.isPlaylistPending,o=e.playlistError;return{metadataItemEntityID:a,librarySectionID:i,showSpinner:r,showError:!r&&!!o,columnAdjustment:t.columnAdjustment,activeSelectionType:n.activeSelectionType,
multiSelectToolbarComponent:w.a}})}function r(e){var t=e.ui.playlistPage;return{serverEntityID:t.serverEntityID,metadataKey:t.metadataKey}}function o(e,t){e(P.d({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(P.b())}var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(108)),S=n(593),M=n(72),D=n(41),C=n(27),j=n(133),P=n(338),O=n(93),T=n(76),E=n(1077),w=n(1776),A={
dispatchChangeQuickSearchSettings:O.changeQuickSearchSettings},x=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=p()(this,e.call.apply(e,[this].concat(o))),i.onLibraryChange=function(){i.props.dispatchChangeQuickSearchSettings({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,providerIdentifier:D.d,sectionID:i.props.librarySectionID})},a=n,p()(i,a)}return f()(t,e),
t.prototype.componentDidMount=function(){this.onLibraryChange()},t.prototype.componentDidUpdate=function(e){this.props.librarySectionID!==e.librarySectionID&&this.onLibraryChange()},t.prototype.componentWillUnmount=function(){this.props.dispatchChangeQuickSearchSettings({serverEntityID:this.props.serverEntityID,providerEntityID:this.props.providerEntityID,providerIdentifier:null,sectionID:null})},t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeQuickSearchSettings,
l()(e,["dispatchChangeQuickSearchSettings"]));return m.a.createElement(E.a,t)},t}(g.Component),N=Object(j.a)(x,r,o);t.a=Object(y.connect)(a,A)(N)},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({iconClassName:u.a.icon,icon:"plex-icon-alert-560"},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(411),c=n(4780),u=n.n(c);t.a=i},function(e,t,n){"use strict";var i=n(22),a=n(19),r=n(16),o=n(4817),s=n(1785),l=n(4825),c=n.n(l),u=i.a.Layout.extend({
className:"friends-container col-sm-12 col-md-12",template:c.a,ui:{inviteListHeader:".invite-list-header",friendListHeader:".friend-list-header",pendingListHeader:".pending-list-header"},regions:{inviteList:".invite-list-container",friendList:".friend-list-container",pendingList:".pending-list-container"},initialize:function(e){var t=r.c("appModel"),n=t.get("user");if(n.get("restricted"))return void a.a.trigger("navigate","users",{usersSubset:"home"})
;this.collection=n.get("pmp").get("friends").filterByUnrestricted(),this.invites=n.get("pmp").get("invites").filterByFriends(),this.sentInvites=n.get("pmp").get("sentInvites").filterByFriends(),this.addListeners()},addListeners:function(){this.listenTo(this.invites,"reset add remove",this.onInvitesChange),this.listenTo(this.sentInvites,"reset add remove",this.onInvitesChange)},updateHeaders:function(){var e=!!this.invites.length,t=!!this.sentInvites.length,n=e||t
;this.ui.friendListHeader.toggleClass("hidden",!n),this.ui.inviteListHeader.toggleClass("hidden",!e),this.ui.pendingListHeader.toggleClass("hidden",!t),this.ui.friendListHeader.toggleClass("top",!e),this.ui.inviteListHeader.toggleClass("top",e)},onRender:function(){this.friendList.show(new o.a({collection:this.collection})),this.inviteList.show(new s.a({collection:this.invites})),this.pendingList.show(new s.a({collection:this.sentInvites})),this.updateHeaders()},onClose:function(){
this.collection.destroy&&this.collection.destroy(),this.invites.destroy(),this.sentInvites.destroy()},onInvitesChange:function(){this.updateHeaders()}});t.a=u},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=n(16),u=n(624),d=n(3),p=n(463),h=n(4821),f=n.n(h),v=r.a.ItemView.extend({className:"friend-server-status-container",template:f.a,events:{"click .server-share-edit-btn":"onEditClick"},initialize:function(){var e=c.c("appModel")
;this.collection=this.model.get("serverShares"),this.servers=e.get("servers"),this.attachedServers=[],this.collection.each(this.addServerShare,this),this.listenTo(this.collection,{add:this.onServerShareAdd,remove:this.onServerShareRemove,"change:numLibraries":this.render}),this.listenTo(this.servers,"add",this.onServerAdd)},serializeData:function(){var e=c.c("appModel"),t={owned:this.getLibrariesData({owned:!0}),shared:this.getLibrariesData({owned:!1}),canEdit:!e.get("user").get("restricted")}
;return t.owned.numLibraries||t.shared.numLibraries||(t.showEmptyMessage=!0),t},getLibrariesData:function(e){var t={friendLabel:this.model.get("restricted")?Object(d.default)("user"):Object(d.default)("friend"),status:this.getServerStatus(e),hasActiveShare:!!this.collection.findWhere({pending:!1,owned:e.owned})};return t.numLibraries=this.collection.getLibraryCount({pending:!t.hasActiveShare,owned:e.owned}),
t.libraryLabel=Object(u.a)(Object(d.default)("library"),t.numLibraries,Object(d.default)("libraries")),t},getServerStatus:function(e){for(var t,n=0,i=this.collection.length;n<i;n++){var a=this.collection.at(n);if(a.get("owned")===e.owned){var r=this.servers.get(a.get("machineIdentifier")),o=r&&r.get("connected");if(!1===o)return"unavailable";o&&(t="available")}}return t},addServerShare:function(e){var t=this.servers.get(e.get("machineIdentifier"));t&&this.attachServer(t)},
removeServerShare:function(e){var t=this.servers.get(e.get("machineIdentifier"));t&&!e.get("owned")&&this.detachServer(t)},attachServer:function(e){this.attachedServers.push(e),this.listenTo(e,"change:connected",this.render)},detachServer:function(e){var t=s.a.indexOf(this.attachedServers,e);t>-1&&this.attachedServers.splice(t,1),this.stopListening(e)},onServerShareAdd:function(e){this.addServerShare(e),this.render()},onServerShareRemove:function(e){this.removeServerShare(e),this.render()},
onServerAdd:function(e){this.collection.findWhere({machineIdentifier:e.id})&&(this.attachServer(e),this.render())},onEditClick:function(e){e.preventDefault();var t=a()(e.currentTarget);if(!t.isDisabled()){var n,i=t.hasClass("owned"),r=this.collection.findWhere({owned:i});r&&(n=r.get("machineIdentifier")),l.a.trigger("show:modal",new p.a({model:this.model,defaultPaneType:i?"ownedServer":"sharedServer",defaultPaneID:n}))}}});t.a=v},function(e,t,n){"use strict";var i=n(97),a=n(4823),r=i.a.extend({
tagName:"ul",className:"list card-tile-list",itemView:a.a,sorted:!0});t.a=r},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(19),s=n(16),l=n(43),c=n(3),u=n(430),d=n(1784),p=n(463),h=n(521),f=n(4829),v=n.n(f),g=r.a.Layout.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:v.a,ui:{poster:".card-poster"},regions:{details:".card-details"},events:{"click .pin-btn":"onPINClick","click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},
initialize:function(e){var t=s.c("appModel"),n=t.get("user"),i=n.get("pmp").get("friends"),a=i.get(this.model.id);this.isAdmin=e.isAdmin,this.isSignedInUser=this.model.id===n.id,this.image=new u.a({model:this.model,type:"friend",width:80}),a?this.friend=a:this.listenTo(i,"add",this.onFriendAdd)},serializeData:function(){return{isSignedInUser:this.isSignedInUser}},canEditPIN:function(){
var e=this.isSignedInUser&&!this.model.get("restricted"),t=this.isAdmin&&this.model.get("restricted")&&!this.model.get("guest");return e||t},showStatusView:function(){this.friend&&this.details.append(new d.a({model:this.friend}))},bindings:{".username":{modelAttribute:"title"},".admin-icon":{modelAttribute:"admin",autohide:!0,manual:!0},".user-type":{modelAttribute:"restricted",autohide:!0,formatter:function(e){
return this.model.get("guest")?Object(c.default)("Guest User"):e?Object(c.default)("Managed User"):void 0}},".pin-protected-btn":{modelAttribute:"protected",manual:!0,autohide:!0,formatter:function(e,t){return t.toggleClass("disabled",!this.canEditPIN()),e}},".pin-unprotected-btn":{modelAttribute:"protected",manual:!0,autohide:!0,formatter:function(e,t){return t.toggleClass("disabled",!this.canEditPIN()),!e}},".edit-btn":{modelAttribute:"admin",manual:!0,autohide:!0,formatter:function(e){
var t=s.c("appModel"),n=t.get("user");return(this.isAdmin||!n.get("restricted")&&!this.model.get("restricted"))&&!this.isSignedInUser}},".delete-btn":{modelAttribute:"admin",manual:!0,autohide:!0,formatter:function(e){return this.isAdmin&&!this.isSignedInUser&&!this.model.get("guest")}}},onRender:function(){this.image.setElement(this.ui.poster),this.showStatusView()},onClose:function(){this.image.close()},onFriendAdd:function(e){e.id===this.model.id&&(this.friend=e,this.showStatusView())},
onPINClick:function(e){e.preventDefault(),a()(e.currentTarget).isDisabled()||o.a.trigger("show:modal",new h.a({model:this.model,isEditing:!0}))},onEditClick:function(e){e.preventDefault(),o.a.trigger("show:modal",new p.a({type:"home",homeUser:this.model,isAdmin:this.isAdmin}))},onDeleteClick:function(e){e.preventDefault(),l.a.execute("removeHomeUser",{homeUser:this.model})}});t.a=g},function(e,t,n){"use strict";var i={DISABLED:0,ENABLED:1,VERBOSE:2};i.settings=[{value:i.DISABLED,title:"Disabled"
},{value:i.ENABLED,title:"Enabled"},{value:i.VERBOSE,title:"Verbose"}],t.a=i},function(e,t,n){"use strict";function i(e){return e.get("pmp").get("settings").populate().then(function(e){return e.get("AcceptedEULA").save({AcceptedEULA:!0})})}t.a=i},function(e,t,n){"use strict";function i(e){if(!e)return Object(d.default)("Username is required")}function a(e){if(!e)return Object(d.default)("Email address is required")}function r(e){if(!e)return Object(d.default)("Password is required")}
function o(e){if(!e)return Object(d.default)("Password confirmation is required")}function s(e){if(!e)return Object(d.default)("Current password is required")}function l(e){if(e&&e.length<8)return Object(d.default)("Password must be at least 8 characters")}function c(e,t){if(e!==t.password.value)return Object(d.default)("Passwords must match")}function u(e){if(!e)return Object(d.default)("URL is required")}t.g=i,t.d=a,t.e=r,t.b=o,t.c=s,t.h=l,t.a=c,t.f=u;var d=n(3)},function(e,t,n){"use strict"
;var i=n(1630);t.a=Object(i.a)("federatedAuth")},function(e,t,n){"use strict";function i(e,t){var n=Object(r.a)(window.location.href,t);return a.join([e],{origin:n})}var a=n(18),r=n(952);t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i,a=n(40),r=n(19),o=Object(a.a)("user/linkAccount/navigateRefresh"),s=(i={},i["user/linkAccount/navigateRefresh"]=function(e,t,n){r.a.trigger("navigate:refresh")},i)},function(e,t,n){"use strict"
;function i(e){return e.get("ui").get("onlineMediaSourcesPage")}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.get("cloudServer"),a=e.get("user").get("uuid"),r=h.join(["/api/v2/user",a,"settings/opt_outs"],t);return i.getXHROptions(r,c()({dataType:"json"},n))}n.d(t,"b",function(){return y}),n.d(t,"d",function(){return S}),n.d(t,"a",function(){return M}),n.d(t,"c",function(){return D})
;var r,o=n(59),s=n.n(o),l=n(6),c=n.n(l),u=n(13),d=n.n(u),p=n(40),h=n(18),f=n(124),v=n(304),g=n(171),m=n(1794),y=Object(p.a)("ui/onlineMediaSourcePage/initOnlineMediaSourcesPage"),b=Object(p.a)("ui/onlineMediaSourcePage/fetchAvailableProviders"),I=Object(p.a)("ui/onlineMediaSourcePage/fetchOptOutStatuses"),S=Object(p.a)("ui/onlineMediaSourcePage/updateOptOutStatuses"),M=Object(p.a)("ui/onlineMediaSourcePage/clearOnlineMediaSourcesUpdateError"),D=(r={},
r["ui/onlineMediaSourcePage/initOnlineMediaSourcesPage"]=function(e,t,n){var a=i(e),r=e.get("cloudServer");a.restoreDefaults({availableProviders:new m.a([],{server:r})}),n(b()),n(I())},r["ui/onlineMediaSourcePage/fetchAvailableProviders"]=Object(f.a)({key:"availableProviders",getModel:i}),r["ui/onlineMediaSourcePage/fetchOptOutStatuses"]=function(e,t){var n=i(e);n.set({isOptOutStatusesPending:!0,optOutStatusesError:null});var r=a(e);d.a.ajax(r).then(function(e){n.set({optOutStatuses:e,
isOptOutStatusesPending:!1,optOutStatusesError:null})},function(e){n.set({isOptOutStatusesPending:!1,optOutStatusesError:Object(g.a)(e)})})},r["ui/onlineMediaSourcePage/updateOptOutStatuses"]=function(e,t,n){var r=i(e);r.set({isUpdatePending:!0,updateError:null});var o=s()(t.optOutStatuses)[0],l=t.optOutStatuses[o],u=a(e,{key:o,value:l},{type:"POST"});d.a.ajax(u).then(function(){var e,t=r.get("optOutStatuses");r.set({optOutStatuses:c()({},t,(e={},e[o]=l,e)),isUpdatePending:!1,updateError:null}),
n(Object(v.a)())},function(e){r.set({isUpdatePending:!1,updateError:Object(g.a)(e)})})},r["ui/onlineMediaSourcePage/clearOnlineMediaSourcesUpdateError"]=function(e,t){i(e).set("updateError",null)},r)},function(e,t,n){"use strict";var i=n(25),a=n(4895),r=i.a.extend({name:"AvailableProvidersCollection",context:["server"],model:a.a,url:"/media/providers?ignore_opt_outs=true"});t.a=r},function(e,t,n){"use strict";function i(e){return r()("div",{className:c.a.spinnerContainer},void 0,u)}
var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(31)),l=n(4902),c=n.n(l),u=r()(s.a,{});t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"a",function(){return r});var i="never",a="samenetwork",r="always"},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="stopped",a="paused",r="buffering",o="error"},function(e,t,n){"use strict"
;function i(e,t){if(e.get("isCloud")&&t.get("identifier")===r.a)return{machineIdentifier:o.b,protocol:"https",address:"node.plexapp.com",port:"32443"};var n=e.get("connections"),i=n.filter(function(e){return e.get("isConnected")&&!e.get("isLoopback")}),s=i.length?i.reduce(a.a):null;return s?{machineIdentifier:e.get("originalMachineIdentifier")||e.get("machineIdentifier"),protocol:s.get("scheme"),address:s.getAddressFromUri(),port:s.get("port")}:void 0}t.a=i;var a=n(619),r=n(41),o=n(90)
},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(14),o=n(122),s=o.c.extend({name:"TransientServerModel",cache:null,persistInCache:!1,sessionAttrs:a.a.extend({},o.c.prototype.sessionAttrs,{isTransient:r.a.boolean,originalMachineIdentifier:r.a.string}),defaults:function(){var e=o.c.prototype.defaults.apply(this,arguments);return a.a.extend({},e,{friendlyName:"Transient Server",isTransient:!0})},updateCacheKey:function(){}});t.a=s},function(e,t,n){"use strict";n.d(t,"a",function(){return c
}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return h});var i,a=n(6),r=n.n(a),o=n(40),s=n(437),l=n(107),c="ui/player/localCompanionPlayer/mirrorLocalDetails",u=Object(o.a)("ui/player/localCompanionPlayer/runLocalCompanionPlaybackAction"),d=Object(o.a)("ui/player/localCompanionPlayer/setTransientServer"),p=Object(o.a)(c),h=(i={},i["ui/player/localCompanionPlayer/runLocalCompanionPlaybackAction"]=function(e,t,n){
var i=t.type,a=t.action,o=a.type,c=a.payload,u=void 0===c?{}:c,d=e.get("ui"),p=i===s.b?l.b:l.a,h=d.get(p+"Player");h.get("isOpen")&&h.get("playQueue")&&n({type:o,payload:r()({},u,{playerType:p})})},i["ui/player/localCompanionPlayer/setTransientServer"]=function(e,t){e.set("transientServer",t)},i[c]=function(e,t){},i)},function(e,t,n){"use strict";var i=n(793),a=n.n(i),r=new a.a(!1,"_",!0),o={writeXml:function(e){return'<?xml version="1.0"?>'+r.json2xml_str(e)}};t.a=o},function(e,t,n){
"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="playPause,stop,skipPrevious,skipNext,seekTo,repeat,shuffle,stepBack,stepForward,audioStream,subtitleStream",a=i+",volume",r="playPause,stop,skipPrevious,skipNext,seekTo,repeat,shuffle,volume",o="playPause,stop,skipPrevious,skipNext"},function(e,t,n){"use strict";n.d(t,"a",function(){return p})
;var i=n(10),a=n.n(i),r=n(78),o=n(19),s=n(110),l=n(16),c=n(43),u=n(812),d=n(4962),p="unknown",h=r.a.extend({mixins:[s.a],bundleUpdatesDelay:36e5,initialize:function(e){this.appModel=e.appModel},start:function(){this.stop(),this.listenTo(this.appModel,{"change:primaryServer":this.onPrimaryServerChange,"change:primaryServer.change:isConnected":this.onPrimaryServerConnectedChange})},stop:function(){this.stopListening()},isLastHistoryEntry:function(e){var t=this.appModel.get("history"),n=a.a.last(t)
;return!(!n||!n.indexOf("fragment"))},isDismissedUpdate:function(e){return(Object(u.a)(e.get("version"))||p)===Object(l.c)("appModel").get("settings").get("serverUpdateDismissedVersion")},checkForServerUpdates:function(e){if(e.get("isConnected")&&e.get("updater")){var t=e.get("pmp").get("update");e.supports("updater")?t.fetch().then(function(){c.a.execute("checkForServerUpdates",{server:e,download:!1})}):this.isDismissedUpdate(t)||o.a.trigger("show:bar","alertbar",new d.a({model:t}))}},
onPrimaryServerChange:function(e,t){var n=e.previous("primaryServer");if(n&&this.stopListening(n.get("pmp").get("update")),!t||!t.get("isFullOwnedServer"))return void clearTimeout(this.bundleUpdatesTimeout);this.listenTo(t.get("pmp").get("update"),"change:state",this.onServerUpdateStateChange),this.checkForServerUpdates(t)},onPrimaryServerConnectedChange:function(e,t){this.checkForServerUpdates(e)},onServerUpdateStateChange:function(e,t){
this.isDismissedUpdate(e)||this.isLastHistoryEntry("/settings/server")||/^(available|downloaded|notify)$/.test(t)&&o.a.trigger("show:bar","alertbar",new d.a({model:e}))}});t.b=h},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(17),o=n(14),s=n(5e3),l=r.a.extend({name:"MultiSelectModel",sessionAttrs:{activeSelectionRange:o.a.object},sessionRelations:{activeSelectionItems:{relationClass:s.a}},derivedAttrs:{activeSelectionType:function(){var e=this.get("activeSelectionItems").first()
;if(e)return e.get("type")}},initialize:function(){this.listenTo(this.get("activeSelectionItems"),{remove:this.resetSelectionRange,reset:this.resetSelectionRange})},listenToCollection:function(e){this.stopListening(e),this.listenTo(e,{reset:this.onCollectionReset,remove:this.onCollectionRemove})},resetSelectionRange:function(){this.set("activeSelectionRange",null)},onCollectionReset:function(e,t){var n=this.get("activeSelectionItems"),i=t.previousModels;a.a.each(i,function(t){
e.contains(t)||n.remove(t.id)})},onCollectionRemove:function(e){this.get("activeSelectionItems").remove(e.id)}});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(5011),o=n(1806),s=i.a.extend({name:"QueryParseModel",context:["server"],url:function(){return this.get("key")},sessionAttrs:{key:a.a.string},syncedAttrs:{type:a.a.string},syncedRelations:{rule:{relationClass:o.a,rootPropertyName:"Rule",deferred:!0},limits:{relationClass:r.a,rootPropertyName:"Limit",deferred:!0}}});t.a=s
},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"QueryRuleModel",syncedAttrs:{field:a.a.string,fieldTitle:a.a.string,value:a.a.string,valueTitle:a.a.string,operator:a.a.string,type:a.a.string},syncedRelations:{rules:function(){return{relationClass:n(5013).default,rootPropertyName:"Rule",deferred:!0}}}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1086),r=i.a.extend({name:"SearchCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=n(5028),o=i.a.extend({name:"MomentListModel",context:["server","provider"],url:function(){return this.get("momentKey")},sessionAttrs:{momentKey:a.a.string},syncedAttrs:{key:a.a.string},syncedRelations:{moments:{relationClass:r.a,rootPropertyName:"Directory"}}});t.a=o},function(e,t,n){"use strict";function i(){return Object(u.createSelector)(function(e,t){return t.subtitleStream},Object(g.a)(),Object(p.a)(),Object(h.a)(),function(e,t,n,i){var a=void 0
;if(e&&0!==e.id&&n)if(n.isDirectPlay)if(e.key){var r="idx"===e.codec?".idx":"",o=e.subIndex?"#"+e.subIndex+",":"";a=o+d.join([t.activeConnection.uri,e.key+r],{"X-Plex-Token":t.accessToken})}else e&&(a="#"+e.index);else{var s=Object(y.a)(i,{streamType:b.a.get("audio").id}),l=Object(y.a)(i,{streamType:b.a.get("video").id}),c=l.length+s.length;a="#"+c}return a})}function a(){return Object(u.createSelector)(i(),Object(f.a)("isMediaLoading"),Object(v.a)(),Object(h.a)(),function(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=Object(m.a)(i);return{frameRate:a?a.frameRate:null,headers:n.indirectHttpHeaders||null,mediaItem:i,subtitleStreamPath:e,isMediaLoading:t}})}var r=n(6),o=n.n(r),s=n(1),l=n.n(s),c=n(11),u=n(4),d=(n.n(u),n(18)),p=n(240),h=n(986),f=n(153),v=n(178),g=n(710),m=n(357),y=n(267),b=n(159),I=n(5088),S=Object(c.connect)(a)(I.a);S.propTypes=o()({},S.propTypes,{playerType:l.a.string.isRequired,subtitleStream:l.a.object}),t.a=S
},,function(e,t,n){"use strict";var i=n(299);t.a=new i.a},function(e,t,n){"use strict";var i=n(1234),a={settings:[]};[52,51,50,42,41,40,32,31,30].forEach(function(e){var t=Object(i.a)(e);a["LEVEL_"+e]=e,a.settings.push({value:e,title:t})}),a.LEVEL_NONE=-1,a.settings.unshift({value:a.LEVEL_NONE,title:"None"}),a.LEVEL_ANY=53,t.a=a},function(e,t,n){"use strict";function i(){var e=Object(c.a)(),t=s.a.Deferred();return t.resolve(r()({},e.indices,{recommendedLevel:l.a.LEVEL_NONE,
transcodeProtocol:"http",directPlay:{mp4:{},asf:{},avi:{},mkv:{},mpeg:{},mpegts:{},"3gpp":{},wtv:{},mov:{}},protocols:{http:{},hls:{}}})),t.promise()}t.a=i;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(1812),c=n(5121)},function(e,t,n){"use strict";var i=n(5130),a={rendering:{delayBeforeFilling:80,pagesAhead:.5,pagesAheadLandscape:1.5,pagesBehind:.5,pagesBehindLandscape:1.25},taskThrottle:{wait:50,batchSize:2},hubLimit:12,hubItemLimit:2*i.a.hubItemLimit,seekThumbnailCount:5,
allowProgressBarTransition:!1,allowEnterOrLeaveTransition:!1,allowImageBackgroundCrossfadeTransition:!1,allowImageBackgroundStyleDimInPlayer:!1,allowOnFocusTransitions:!1,allowPostersDuringScroll:!1,allowScaleOnFocus:!1,allowBoxShadow:!1};for(var r in i.a)a.hasOwnProperty(r)||(!1===i.a[r]?a[r]=!0:a[r]=i.a[r]);t.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1865),a=n(5142);n.n(a);i.a.start()
},function(e,t,n){"use strict";var i=n(22),a=n(1907),r=(n(4920),n(4928)),o=n(5138),s=n(5140),l=n(5141),c=new i.a.Application;c.addInitializer(function(){return Object(l.a)().then(function(){return Object(r.a)()}).then(function(){return Object(o.a)()}).then(function(){return Object(s.a)()}).then(function(){return Object(a.a)()})}),t.a=c},function(e,t,n){var i=n(120),a=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(e){return a.stringify.apply(a,arguments)}},function(e,t,n){n(1868),
e.exports=n(120).Object.assign},function(e,t,n){var i=n(169);i(i.S+i.F,"Object",{assign:n(1870)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var i=n(423),a=n(782),r=n(502),o=n(503),s=n(1122),l=Object.assign;e.exports=!l||n(348)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i
})?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=a.f,d=r.f;l>c;)for(var p,h=s(arguments[c++]),f=u?i(h).concat(u(h)):i(h),v=f.length,g=0;v>g;)d.call(h,p=f[g++])&&(n[p]=h[p]);return n}:l},function(e,t,n){var i=n(350),a=n(1123),r=n(1872);e.exports=function(e){return function(t,n,o){var s,l=i(t),c=a(l.length),u=r(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(778),a=Math.max,r=Math.min
;e.exports=function(e,t){return e=i(e),e<0?a(e+t,0):r(e,t)}},,,function(e,t,n){n(1876),e.exports=n(120).Number.parseFloat},function(e,t,n){var i=n(169),a=n(1877);i(i.S+i.F*(Number.parseFloat!=a),"Number",{parseFloat:a})},function(e,t,n){var i=n(229).parseFloat,a=n(1126).trim;e.exports=1/i(n(783)+"-0")!=-1/0?function(e){var t=a(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){e.exports={default:n(1879),__esModule:!0}},function(e,t,n){n(1880),
e.exports=n(120).Number.parseInt},function(e,t,n){var i=n(169),a=n(1881);i(i.S+i.F*(Number.parseInt!=a),"Number",{parseInt:a})},function(e,t,n){var i=n(229).parseInt,a=n(1126).trim,r=n(783),o=/^[-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=a(String(e),3);return i(n,t>>>0||(o.test(n)?16:10))}:i},function(e,t,n){n(1883),e.exports=n(120).Object.keys},function(e,t,n){var i=n(503),a=n(423);n(1127)("keys",function(){return function(e){return a(i(e))}})},function(e,t,n){
e.exports={default:n(1885),__esModule:!0}},function(e,t,n){n(784),n(1131),e.exports=n(788).f("iterator")},function(e,t,n){var i=n(778),a=n(601);e.exports=function(e){return function(t,n){var r,o,s=String(a(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):r:e?s.slice(l,l+2):o-56320+(r-55296<<10)+65536)}}},function(e,t,n){"use strict";var i=n(786),a=n(501),r=n(787),o={}
;n(421)(o,n(245)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(o,{next:a(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(345),a=n(346),r=n(423);e.exports=n(422)?Object.defineProperties:function(e,t){a(e);for(var n,o=r(t),s=o.length,l=0;s>l;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(229).document;e.exports=i&&i.documentElement},function(e,t,n){"use strict";var i=n(1891),a=n(1892),r=n(504),o=n(350);e.exports=n(1128)(Array,"Array",function(e,t){
this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):"keys"==t?a(0,n):"values"==t?a(0,e[n]):a(0,[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){n(1133),n(1898),n(1899),n(1900),e.exports=n(120).Symbol},function(e,t,n){
var i=n(602)("meta"),a=n(347),r=n(349),o=n(345).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(348)(function(){return l(Object.preventExtensions({}))}),u=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},p=function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},h=function(e){return c&&f.NEED&&l(e)&&!r(e,i)&&u(e),e
},f=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:p,onFreeze:h}},function(e,t,n){var i=n(423),a=n(782),r=n(502);e.exports=function(e){var t=i(e),n=a.f;if(n)for(var o,s=n(e),l=r.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){var i=n(777);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(350),a=n(1134).f,r={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{
return a(e)}catch(e){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==r.call(e)?s(e):a(i(e))}},function(e,t){},function(e,t,n){n(789)("asyncIterator")},function(e,t,n){n(789)("observable")},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r={bindToModel:function(){this.bindings&&a.a.each(a.a.keys(this.bindings),function(e){var t,n=this.bindings[e];if(t=n.model?this[n.model]:this[this.bindingsModel]||this.model){var i=n.modelListeners||[n.modelAttribute]
;a.a.each(i,function(i){var r={obj:t,name:"change:"+i,callback:a.a.bind(this.renderBinding,this,e,n,t)};this._bindingListeners||(this._bindingListeners=[]),this._bindingListeners.push(r),this.listenTo(r.obj,r.name,r.callback)},this),this.renderBinding(e,n,t)}},this)},unbindFromModel:function(){this.bindings&&(a.a.each(this._bindingListeners,function(e){this.stopListening(e.obj,e.name,e.callback)},this),this._bindingListeners=null)},renderBinding:function(e,t,n){
var i=this.$(e),r=t.formatter,o=!!t.isHtml,s=t.autohide,l=t.hiddenClass||"hidden",c=n.get(t.modelAttribute);if(r&&(c=r.call(this,c,i)),s){var u=a.a.isFunction(s)?s.call(this,c):c;i.toggleClass(l,!u)}t.manual||(!o&&a.a.isString(c)&&(c=a.a.escape(c)),i.html(c))}};t.a=r},,,function(e,t,n){"use strict";var i=n(13);n.n(i).a.fn.isDisabled=function(){return this.hasClass("disabled")||this.hasClass("active")||this.hasClass("hidden")}},function(e,t,n){"use strict";var i=n(13)
;n.n(i).a.fn.selectText=function(){var e,t=this[0];if(document.body.createTextRange)e=document.body.createTextRange(),e.moveToElementText(t),e.select();else if(window.getSelection){var n=window.getSelection();e=document.createRange(),e.selectNodeContents(t),n.removeAllRanges(),n.addRange(e)}}},function(e,t,n){"use strict";var i=n(13);n.n(i).a.fn.triggerReflow=function(){var e=this[0];return e&&e.offsetHeight,this}},function(e,t,n){"use strict";function i(){c.a.trigger("initialize:app")
;var e=Object(f.a)();return e=e.then(E.a),e=e.then(I.a),e=e.then(D.a),e=e.then(b.a),e=e.then(d.a),e=e.then(u.a),e=e.then(M.a),e=e.then(C.a),y.a.get("allowCloudPubSub")&&(e=e.then(function(){return Object(p.a)()})),e=e.then(v.a),e=e.then(S.a),e=e.then(m.a),e=e.then(T.a),e=e.then(h.a),e=e.then(O.a),e=e.then(j.a),e=e.then(g.a),e=e.then(P.a),e=e.then(w.a)}t.a=i;var a=n(1908),r=(n.n(a),n(1909)),o=(n.n(r),n(1910)),s=(n.n(o),n(1911)),l=(n.n(s),n(1912)),c=(n.n(l),
n(19)),u=n(1913),d=n(1915),p=n(1916),h=n(1935),f=n(1937),v=n(1939),g=n(1940),m=n(1942),y=n(62),b=n(1943),I=n(1944),S=n(2132),M=n(2134),D=n(2136),C=n(2141),j=n(2153),P=n(2155),O=n(2198),T=n(2199),E=n(2201),w=n(2204)},function(e,t,n){(function(e){+function(e){"use strict";var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i)};t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",a=n.data()
;e+="Text",a.resetText||n.data("resetText",n[i]()),n[i](a[e]||this.options[e]),setTimeout(function(){"loadingText"==e?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons"]');if(e.length){"radio"===this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change").prop("type")&&e.find(".active").removeClass("active")}this.$element.toggleClass("active")};var n=e.fn.button
;e.fn.button=function(n){return this.each(function(){var i=e(this),a=i.data("bs.button"),r="object"==typeof n&&n;a||i.data("bs.button",a=new t(this,r)),"toggle"==n?a.toggle():n&&a.setState(n)})},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),t.preventDefault()})}(e)}).call(t,n(13))},function(e,t,n){
(function(e){+function(e){"use strict";function t(){e(i).remove(),e(a).each(function(t){var i=n(e(this));i.hasClass("open")&&(i.trigger(t=e.Event("hide.bs.dropdown")),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function n(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}var i=".dropdown-backdrop",a="[data-toggle=dropdown]",r=function(t){
e(t).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(i){var a=e(this);if(!a.is(".disabled, :disabled")){var r=n(a),o=r.hasClass("open");if(t(),!o){if("ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",t),r.trigger(i=e.Event("show.bs.dropdown")),i.isDefaultPrevented())return;r.toggleClass("open").trigger("shown.bs.dropdown"),a.focus()}return!1}},r.prototype.keydown=function(t){
if(/(38|40|27)/.test(t.keyCode)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var r=n(i),o=r.hasClass("open");if(!o||o&&27==t.keyCode)return 27==t.which&&r.find(a).focus(),i.click();var s=e("[role=menu] li:not(.divider):visible a",r);if(s.length){var l=s.index(s.filter(":focus"));38==t.keyCode&&l>0&&l--,40==t.keyCode&&l<s.length-1&&l++,~l||(l=0),s.eq(l).focus()}}}};var o=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){
var n=e(this),i=n.data("dropdown");i||n.data("dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",a,r.prototype.toggle).on("keydown.bs.dropdown.data-api",a+", [role=menu]",r.prototype.keydown)}(e)}).call(t,n(13))},function(e,t,n){
(function(e){+function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this[this.isShown?"hide":"show"](e)},t.prototype.show=function(t){var n=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),
this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var i=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:t});i?n.$element.find(".modal-dialog").one(e.support.transition.end,function(){n.$element.focus().trigger(a)
}).emulateTransitionEnd(300):n.$element.focus().trigger(a)}))},t.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),
e.support.transition&&this.$element.hasClass("fade")?this.$element.one(e.support.transition.end,e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.focus()},this))},t.prototype.escape=function(){
this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(t){
var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",e.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return
;i?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var n=e.fn.modal;e.fn.modal=function(n,i){return this.each(function(){var a=e(this),r=a.data("bs.modal"),o=e.extend({},t.DEFAULTS,a.data(),"object"==typeof n&&n);r||a.data("bs.modal",r=new t(this,o)),
"string"==typeof n?r[n](i):o.show&&r.show(i)})},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),i=n.attr("href"),a=e(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},a.data(),n.data());t.preventDefault(),a.modal(r,this).one("hide",function(){n.is(":visible")&&n.focus()})}),
e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})}(e)}).call(t,n(13))},function(e,t,n){(function(e){+function(e){"use strict";var t=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};t.DEFAULTS={animation:!0,placement:"top",selector:!1,
template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.prototype.init=function(t,n,i){this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i);for(var a=this.options.trigger.split(" "),r=a.length;r--;){var o=a[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){
var s="hover"==o?"mouseenter":"focus",l="hover"==o?"mouseleave":"blur";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),
t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show()
;n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)},t.prototype.show=function(){var t=e.Event("show.bs."+this.type)
;if(this.hasContent()&&this.enabled){if(this.$element.trigger(t),t.isDefaultPrevented())return;var n=this.tip();this.setContent(),this.options.animation&&n.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(i);r&&(i=i.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(i),
this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var o=this.getPosition(),s=n[0].offsetWidth,l=n[0].offsetHeight;if(r){var c=this.$element.parent(),u=i,d=document.documentElement.scrollTop||document.body.scrollTop,p="body"==this.options.container?window.innerWidth:c.outerWidth(),h="body"==this.options.container?window.innerHeight:c.outerHeight(),f="body"==this.options.container?0:c.offset().left
;i="bottom"==i&&o.top+o.height+l-d>h?"top":"top"==i&&o.top-d-l<0?"bottom":"right"==i&&o.right+s>p?"left":"left"==i&&o.left-s<f?"right":i,n.removeClass(u).addClass(i)}var v=this.getCalculatedOffset(i,o,s,l);this.applyPlacement(v,i),this.$element.trigger("shown.bs."+this.type)}},t.prototype.applyPlacement=function(e,t){var n,i=this.tip(),a=i[0].offsetWidth,r=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),e.top=e.top+o,
e.left=e.left+s,i.offset(e).addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;if("top"==t&&c!=r&&(n=!0,e.top=e.top+r-c),/bottom|top/.test(t)){var u=0;e.left<0&&(u=-2*e.left,e.left=0,i.offset(e),l=i[0].offsetWidth,c=i[0].offsetHeight),this.replaceArrow(u-a+l,l,"left")}else this.replaceArrow(c-r,c,"top");n&&i.offset(e)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle()
;e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(){function t(){"in"!=n.hoverState&&i.detach()}var n=this,i=this.tip(),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i.one(e.support.transition.end,t).emulateTransitionEnd(150):t(),this.$element.trigger("hidden.bs."+this.type),this},
t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(){var t=this.$element[0];return e.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},
t.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.tip=function(){
return this.$tip=this.$tip||e(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){
var n=t?e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),a=i.data("bs.tooltip"),r="object"==typeof n&&n;a||i.data("bs.tooltip",a=new t(this,r)),"string"==typeof n&&a[n]()})},e.fn.tooltip.Constructor=t,
e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(e)}).call(t,n(13))},function(e,t,n){(function(e){+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]}}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one(e.support.transition.end,function(){n=!0
});var a=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(a,t),this},e(function(){e.support.transition=t()})}(e)}).call(t,n(13))},function(e,t,n){"use strict";function i(){return r.a.ajaxPrefilter(o.a),s.a.startListening(),r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=n(1914),s=n(265)},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.contentType,i=e.headers,a=e.allowHeadersInUrl,h=e.allowBlacklistedMethodHeaders;if(a&&(!l[t]||h)){var f={},v=!1
;if(r.a.each(i,function(e,t){c[t]||(d.test(t)?(v=!0,f[t]=e,delete i[t]):o.a.warn('Did not move header "%s" to query string. This can result in an unnecessary OPTIONS preflight request.',t))}),v){var g=e.url.match(p),m=g||[null,e.url,null],y=m[1],b=m[2],I=b?b.split("&"):[],S=r.a.partition(I,function(e){return d.test(e)}),M=S[0],D=S[1],C=e.data;"GET"===t&&C&&(D.push(r.a.isString(C)?C:s.stringifyParams(C)),delete e.data),M.forEach(function(e){var t=e.match(d);t&&delete f[t[1]]})
;var j=s.stringifyParams(f);j&&M.push(j),e.url=y+"?"+D.concat(M).join("&")}n&&!u.test(n)&&o.a.warn('Sending %s request with Content-Type "%s". This can result in an unnecessary OPTIONS preflight request.',t,n)}}t.a=i;var a=n(10),r=n.n(a),o=n(32),s=n(18),l={PUT:!0,DELETE:!0},c={Accept:!0,"Accept-Language":!0,"Content-Language":!0,"Content-Type":!0},u=/^(text\/plain|multipart\/form-data|application\/x-www-form-urlencoded)/,d=/(^X\-Plex\-[^=]+)/i,p=/(^[^\?]+)\?(.+$)/},function(e,t,n){"use strict"
;function i(e){return c.a.isString(e)&&e.trim().length>0}function a(e,t){var n=Object(f.a)();return Object(u.a)("[appModelInitializer] Generating new %s [%s]",t,n),e.set(t,n),h.a.set(t,n)}function r(e,t){var n=void 0,r=e.get(t);return i(r)?n=h.a.set(t,r):(n=h.a.get(t),n=n.then(function(n){if(!i(n))return u.a.error("[appModelInitializer] Invalid %s found in storage [%s]",t,r),a(e,t);e.set(t,n)},function(){return Object(u.a)("[appModelInitializer] Failed to read %s from storage",t),a(e,t)})),n}
function o(e){var t=h.a.get("skipSignIn");return t.always(function(t){e.set("skipSignIn","1"===t)}),t}function s(){var e=Object(p.c)("appModel");return Object(d.a)(r(e,"clientID"),r(e,"anonymousClientID"),o(e))}t.a=s;var l=n(10),c=n.n(l),u=n(32),d=n(266),p=n(16),h=n(209),f=n(505)},function(e,t,n){"use strict";function i(e){return e.get("isCloud")}function a(){if(s.a.hasWebSocket){new u.a({name:"CloudServerEventManager",appModel:Object(l.c)("appModel"),isValidServer:i,supportsLongPolling:!0,
allowMultipleConnections:!0,ServerEventConnection:d.a,ServerRetryManager:c.a}).start()}return o.a.Deferred().resolve().promise()}t.a=a;var r=n(13),o=n.n(r),s=n(101),l=n(16),c=n(1138),u=n(791),d=n(1917)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(78),l=n(101),c=n(19),u=n(110),d=n(18),p=n(16),h=n(352),f=n(102),v=n(265),g=s.a.extend({lastModified:null,eTag:null,mixins:u.a,url:function(){
var e=p.c("appModel"),t=e.get("user"),n="/sub/"+this.requestType+"/"+t.id+"/"+e.get("clientID"),i=new h.a({scheme:"websockets"===this.requestType?"wss":"https",address:"pubsub.plex.tv"});return this.server.resolveUrl(n,{connection:i,appendToken:!0})},initialize:function(e){o.a.bindAll(this,"onSocketOpen","onSocketClose","onSocketError","onSocketMessage","onPingTimeout","onPollSuccess","onPollError"),this.server=e.server},open:function(){return(this.socket||this.pollRequest)&&this.close(),
l.a.hasWebSocket?(this._deferred=a.a.Deferred(),this.requestType="websockets",this.socket=new window.WebSocket(o.a.result(this,"url")),this.socket.onopen=this.onSocketOpen,this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError,this.socket.onmessage=this.onSocketMessage,this._deferred.promise()):this.poll()},close:function(){this.pollRequest&&(v.a.abort(this.pollRequest.rid),this.pollRequest=null),this._deferred&&"pending"===this._deferred.state()&&this._deferred.reject(),
this.socket&&(this.cancelPing(),this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null,this.socket.close(),this.socket=null)},schedulePing:function(){this.cancelPing(),this._pingTimeoutID=setTimeout(this.onPingTimeout,3e4)},cancelPing:function(){this._pingTimeoutID&&(clearTimeout(this._pingTimeoutID),this._pingTimeoutID=null)},poll:function(){this.requestType="longpolling",this.pollUrl=d.join(o.a.result(this,"url"),{ttl:String(30)+"s"})
;var e=this.server.getXHROptions(this.pollUrl,{timeout:35e3});return e.headers["If-Modified-Since"]=this.lastModified?this.lastModified:"Thu, 01 Jan 1970 00:00:00 GMT",this.eTag&&(e.headers["If-None-Match"]=this.eTag),this.pollRequest=a.a.ajax(e).done(this.onPollSuccess).fail(this.onPollError),this.pollRequest.promise()},handleResponse:function(e){if(e){var t=f.a.parseXML(e);if(o.a.isObject(t)){var n=t.command;c.a.trigger("cloudServer:"+n,t)}}},onSocketOpen:function(e){
this.server.set("hasEventConnection",!0),this.trigger("open",this.server,e),this._deferred.resolve(this.server,e),this.schedulePing()},onSocketClose:function(e){this.close(),this.server.set("hasEventConnection",!1),this.trigger("close",this.server,e),this._deferred.reject(this.server,e)},onSocketError:function(e){this.close(),this.trigger("error",this.server,e),this._deferred.reject(this.server,e)},onSocketMessage:function(e){this.handleResponse(e.data)},onPingTimeout:function(){
this._pingTimeoutID=null,this.socket.send("hello"),this.schedulePing()},onPollSuccess:function(e,t,n){this.trigger("open",this.server,e),this.lastModified=n.getResponseHeader("Last-Modified"),this.eTag=n.getResponseHeader("ETag"),this.handleResponse(e),this.poll()},onPollError:function(e,t){"abort"===t?this.poll():this.pollRequest.aborting||this.trigger("error",this.server,e)}});t.a=g},function(e,t,n){e.exports={default:n(1919),__esModule:!0}},function(e,t,n){n(1920),
e.exports=n(120).Number.isInteger},function(e,t,n){var i=n(169);i(i.S,"Number",{isInteger:n(1921)})},function(e,t,n){var i=n(347),a=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&a(e)===e}},function(e,t,n){"use strict";function i(e){if(null==e)return"";try{return decodeURIComponent(e)}catch(t){return a.a.warn("[Parser] Unable to parse encoded string"),e}}var a=n(32);t.a=i},function(e,t,n){"use strict";function i(e){return null==e||""===e?0:window.parseFloat(e)}t.a=i},function(e,t,n){
"use strict";function i(e){try{return JSON.parse(e)}catch(n){var t=Object(r.a)(e)?e.substring(0,50):"no response";return a.a.warn("[Parser] Unable to parse JSON: "+n.message+" ("+t+")"),{}}}var a=n(32),r=n(1925);t.a=i},function(e,t,n){"use strict";function i(e){return"[object String]"===toString.call(e)}t.a=i},function(e,t,n){"use strict";function i(e){return e?Array.isArray(e)?e:e.split(","):[]}t.a=i},function(e,t,n){"use strict";function i(e){return null==e?"":e.toString()}t.a=i
},function(e,t,n){"use strict";function i(e){return e?"1":"0"}t.a=i},function(e,t,n){"use strict";function i(e){return e.join(",")}t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n.n(i),r=n(1931),o=a()({},r.a,{allowFlash:!1,allowMixedContent:!0,allowLoopbackDiscovery:!0});t.default=o},function(e,t,n){"use strict";var i={allowFlash:!0,allowServerUpdates:!0,allowHttpsMediaServerConnections:!0,allowMediaServerRelayConnections:!0,
allowMultipleWebSocketConnections:!0,allowCloudSyncServers:!0,shouldCreateFlexModels:!0,shouldCreateStateTree:!0,shouldRequestHTMLFromCloudProvider:!0,allowCloudPubSub:!0,allowLoopbackDiscovery:"http:"===window.location.protocol,allowSSO:!1,bufferingDetectionLimit:500};t.a=i},function(e,t,n){"use strict";function i(){if(void 0===r){var e="performanceReportingHost",t=window.location.search.match(new RegExp(e+"=([^&=]+)"));r=t&&t[1]?decodeURIComponent(t[1]):a.a.get(e),r=r||null}return r}t.a=i
;var a=n(62),r=void 0},function(e,t,n){"use strict";var i=n(25),a=n(1934),r=i.a.extend({name:"ConnectionSourceCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ConnectionSourceModel",context:["server"],sessionAttrs:{id:a.a.string}});t.a=r},function(e,t,n){"use strict";function i(){if(Object(d.c)("appModel").get("settings").get("companion")){var e=Object(d.c)("appModel"),t=e.get("cloudServer"),n=e.get("clientID")
;t&&t.get("authorized")&&n&&n!==h&&(h=n,c.a.info('[Companion] Registering player with plex.tv, clientID="%s"',n),Object(d.c)("companionProxy").registerPlayer(t,n).done(function(){c.a.info('[Companion] Registered player with plex.tv, clientID="%s"',n)}).fail(function(e){e||(e={}),h=null,c.a.warn('[Companion] Couldn\'t register player with plex.tv, status="%s", response="%s"',e.status,e.responseText&&e.responseText.substr(0,100))}))}}function a(){
var e=Object(d.c)("appModel"),t=e.get("cloudServer"),n=e.get("clientID");if(t.get("authorized")&&n){c.a.info('[Companion] Unregistering player with plex.tv, clientID="%s"',n);return Object(d.c)("companionProxy").unregisterPlayer(t,n).done(function(){return c.a.info('[Companion] Unregistered player with plex.tv, clientID="%s"',n)}).fail(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
;return c.a.warn('[Companion] Couldn\'t unregister player with plex.tv, status="%s", response="%s"',e.status,e.responseText&&e.responseText.substr(0,100))})}}function r(){var e=Object(d.c)("appModel").get("settings"),t=e.get("companion"),n=Object(d.c)("companionProxy");if(f!==t)return f=t,t?(p.a.subscribe(),l.a.when(n.subscribe(Object(d.c)("localCompanionCommandHandler")))):(p.a.unsubscribe(),l.a.when(n.unsubscribe(),a()))}function o(){var e=Object(d.c)("appModel"),t=e.get("cloudServer");i(),
e.on("change:clientID",i),t.on("change:authorized",i);var n=Object(d.c)("appModel").get("settings");return n.on("change:companion",r),n.get("companion")?r().then(function(){var e=Object(d.c)("companionProxy"),t=e.getDeepLink();return t.fail(function(){c.a.warn("[Companion] Ignoring error getting deep link")}),Object(u.a)(t)}):l.a.Deferred().resolve().promise()}t.a=o;var s=n(13),l=n.n(s),c=n(32),u=n(180),d=n(16),p=n(1936),h=null,f=null},function(e,t,n){"use strict";var i=n(19),a=n(16),r={
subscribe:function(){i.a.on("cloudServer:processRemoteControlCommand",this.onCloudServerCommand,this)},unsubscribe:function(){i.a.off("cloudServer:processRemoteControlCommand",this.onCloudServerCommand,this)},onCloudServerCommand:function(e){var t=e.Command,n={supportsTimeline:!1,path:t.path,commandID:t.commandID,query:{key:[t.queryKey],offset:[t.queryOffset],mediaIndex:[t.queryMediaIndex],containerKey:[t.queryContainerKey],playQueueID:[t.queryPlayqueueid],type:[t.queryType],
volume:[t.queryVolume],repeat:[t.queryRepeat],audioStreamID:[t.queryAudioStreamID],subtitleStreamID:[t.querySubtitleStreamID],token:[t.queryToken],machineIdentifier:[t.queryMachineIdentifier],protocol:[t.queryProtocol],address:[t.queryAddress],port:[t.queryPort],text:[t.queryText],field:[t.queryField]}};Object(a.c)("localCompanionCommandHandler")(n)}};t.a=r},function(e,t,n){"use strict";function i(){s.a.init("https://4d5a67f2a0c84fa98c88bd5d1aefb0fd@sentry.io/160688");var e={lifecycle:"started",
release:"3.83.2-ecd072f",version:o.a.prop("X-Plex-Version")};return o.a.props.forEach(function(t){var n=o.a.prop(t);n&&(e[t]=n)}),s.a.set(e),s.a.enable(),r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=(n(1938),n(354)),s=n(1144)},function(e,t,n){"use strict";n(32)},function(e,t,n){"use strict";function i(e){return e.get("isFullOwnedServer")||e.get("isFullServer")&&e.supports("sharedUserNotifications")}function a(){if(s.a.hasWebSocket){new u.a({name:"MediaServerEventManager",
appModel:Object(l.c)("appModel"),isValidServer:i,supportsLongPolling:!1,allowMultipleConnections:d.a.get("allowMultipleWebSocketConnections"),ServerEventConnection:Object(l.c)("mediaServerEventConnection"),ServerRetryManager:c.a}).start()}return o.a.Deferred().resolve().promise()}t.a=a;var r=n(13),o=n.n(r),s=n(101),l=n(16),c=n(1145),u=n(791),d=n(62)},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(s.c)("metrics"),n=e.context,i=void 0===n?{}:n;return t.set({deviceIdentifier:l.a.prop("X-Plex-Client-Identifier"),context:r()({},i,{device:{product:l.a.prop("X-Plex-Product"),version:l.a.prop("X-Plex-Version"),platform:l.a.prop("X-Plex-Platform"),platformVersion:l.a.prop("X-Plex-Platform-Version"),device:l.a.prop("X-Plex-Device"),model:l.a.prop("X-Plex-Model"),screenResolution:l.a.prop("X-Plex-Device-Screen-Resolution"),
layout:"desktop",environment:Object(c.a)()}})}),Object(o.a)(t.start())}t.a=i;var a=n(6),r=n.n(a),o=n(180),s=n(16),l=n(354),c=n(1941)},function(e,t,n){"use strict";function i(){return"standalone"}t.a=i},function(e,t,n){"use strict";function i(){Object(c.a)("[Providers] Initializing..."),Object(u.c)("providerManager").start(),Object(c.a)("[Providers] Finished initialization")}function a(){Object(c.a)("[Providers] Resetting..."),Object(u.c)("providerManager").stop(),i()}function r(){return i(),
l.a.on("reset:providers",a),s.a.Deferred().resolve().promise()}t.a=r;var o=n(13),s=n.n(o),l=n(19),c=n(32),u=n(16)},function(e,t,n){"use strict";function i(){if(!o.a.hasReplaceState)return r.a.Deferred().resolve().promise();var e=r.a.Deferred(),t=window.location,n=c.a.parseQueryString(t.search),i=void 0;try{i=JSON.parse(n.alerts),delete n.alerts}catch(e){}if(i){l.a.set("alerts",i);var a=""+s.join([""+t.origin+t.pathname],n)+t.hash;window.history.replaceState({},"",a)}return e.resolve().promise()}
var a=n(13),r=n.n(a),o=n(101),s=n(18),l=n(62),c=n(74);t.a=i},function(e,t,n){"use strict";function i(){return o.a.registerAll(s),r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=n(43),s=n(1945)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1946);n.d(t,"testServerConnection",function(){return i.j}),n.d(t,"abortServerConnectionTest",function(){return i.a}),n.d(t,"populateServerIdentity",function(){return i.f}),n.d(t,"resetUser",function(){
return i.g}),n.d(t,"switchUser",function(){return i.i}),n.d(t,"authenticateWithServer",function(){return i.c}),n.d(t,"authenticateWithHash",function(){return i.b}),n.d(t,"selectStream",function(){return i.h}),n.d(t,"updateWatchedStatus",function(){return i.k}),n.d(t,"deleteFile",function(){return i.d}),n.d(t,"deleteItem",function(){return i.e});var a=n(1990);n.d(t,"refreshMetadata",function(){return a.a});var r=n(2032);n.d(t,"analyzeItems",function(){return r.a});var o=n(2033)
;n.d(t,"analyzeSection",function(){return o.a});var s=n(2035);n.d(t,"markWatched",function(){return s.a});var l=n(2036);n.d(t,"markUnwatched",function(){return l.a});var c=n(2037);n.d(t,"unmatch",function(){return c.a});var u=n(2038);n.d(t,"splitApart",function(){return u.a});var d=n(2039);n.d(t,"merge",function(){return d.a});var p=n(2040);n.d(t,"deleteItems",function(){return p.a});var h=n(2041);n.d(t,"deleteMediaItem",function(){return h.a});var f=n(2045);n.d(t,"deleteVersions",function(){
return f.a});var v=n(2046);n.d(t,"deleteSection",function(){return v.a});var g=n(2047);n.d(t,"deleteSectionThumbnails",function(){return g.a});var m=n(2048);n.d(t,"deletePlaylist",function(){return m.a});var y=n(2049);n.d(t,"updateLibrary",function(){return y.a});var b=n(2050);n.d(t,"optimize",function(){return b.a});var I=n(2051);n.d(t,"cleanBundles",function(){return I.a});var S=n(2052);n.d(t,"emptyTrash",function(){return S.a});var M=n(2053);n.d(t,"match",function(){return M.a});var D=n(2054)
;n.d(t,"autoMatch",function(){return D.a});var C=n(2055);n.d(t,"changeArtwork",function(){return C.a});var j=n(2056);n.d(t,"rate",function(){return j.a});var P=n(2057);n.d(t,"enableVersionGenerator",function(){return P.a});var O=n(2058);n.d(t,"disableVersionGenerator",function(){return O.a});var T=n(2059);n.d(t,"reprocessVersionGenerator",function(){return T.a});var E=n(2060);n.d(t,"deleteVersionGenerator",function(){return E.a});var w=n(2061);n.d(t,"deleteAllVersionGenerators",function(){
return w.a});var A=n(2062);n.d(t,"updateChannel",function(){return A.a});var x=n(2063);n.d(t,"uninstallChannel",function(){return x.a});var N=n(2064);n.d(t,"stopMedia",function(){return N.a});var L=n(2067);n.d(t,"connectServer",function(){return L.a});var k=n(2068);n.d(t,"reconnectServer",function(){return k.a});var R=n(2069);n.d(t,"signInServer",function(){return R.a});var z=n(2070);n.d(t,"removeServer",function(){return z.a});var U=n(2071);n.d(t,"checkForServerUpdates",function(){return U.a})
;var B=n(2072);n.d(t,"installServerUpdates",function(){return B.a});var F=n(2073);n.d(t,"showClaimServerAlertBar",function(){return F.a});var _=n(2077);n.d(t,"signIn",function(){return _.a});var V=n(2078);n.d(t,"signUp",function(){return V.a});var H=n(2079);n.d(t,"showSyncModal",function(){return H.a});var Q=n(2105);n.d(t,"showHomeWarningsModal",function(){return Q.a});var Y=n(2118);n.d(t,"deleteSyncItem",function(){return Y.a});var G=n(2119);n.d(t,"refreshSyncLists",function(){return G.a})
;var W=n(2120);n.d(t,"removeDevice",function(){return W.a});var K=n(2121);n.d(t,"removeFriend",function(){return K.a});var Z=n(2122);n.d(t,"acceptInvite",function(){return Z.a});var q=n(2123);n.d(t,"rejectInvite",function(){return q.a});var J=n(2124);n.d(t,"shareServer",function(){return J.a});var X=n(2125);n.d(t,"removeServerShare",function(){return X.a});var $=n(2126);n.d(t,"removeHomeUser",function(){return $.a});var ee=n(2127);n.d(t,"validateUsername",function(){return ee.a});var te=n(2128)
;n.d(t,"toggleGuest",function(){return te.a});var ne=n(2129);n.d(t,"lockUser",function(){return ne.a});var ie=n(2130);n.d(t,"signOut",function(){return ie.a});var ae=n(2131);n.d(t,"remotePlaybackUnlock",function(){return ae.a})},function(e,t,n){"use strict";var i=n(1947);n.d(t,"j",function(){return i.a});var a=n(1948);n.d(t,"a",function(){return a.a});var r=n(1949);n.d(t,"f",function(){return r.a});var o=n(1950);n.d(t,"g",function(){return o.a});var s=n(1952);n.d(t,"i",function(){return s.a})
;var l=n(1969);n.d(t,"c",function(){return l.a});var c=n(1970);n.d(t,"b",function(){return c.a});var u=n(1971);n.d(t,"h",function(){return u.a});var d=n(1973);n.d(t,"k",function(){return d.a});var p=n(1974);n.d(t,"d",function(){return p.a});var h=n(1975);n.d(t,"e",function(){return h.a})},function(e,t,n){"use strict";function i(e){return Object(a.c)("serverConnectionTestManager").queueConnectionTest(e)}var a=n(16);t.a=i},function(e,t,n){"use strict";function i(e){
return Object(a.c)("serverConnectionTestManager").abortConnectionTest(e)}var a=n(16);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.connection;if(t.id)return r.a.Deferred().resolve(t.id).promise();var i=t.resolveUrl("/identity",{connection:n}),a=s.a.extend(t.getXHROptions(i),{timeout:t.connectionTestTimeout});Object(l.a)("[Identity] Requesting the machine identifier of "+t.get("debugName")+" at "+i);var o=r.a.ajax(a).promise();return o=o.then(function(e){
var n=r.a.Deferred(),i=c.a.parseXML(e),a=i&&i.machineIdentifier;return a?(Object(l.a)("[Identity] Machine identifier found for "+t.get("debugName")+": "+a),!t.collection||t.collection.get(a)?n.resolve(a):(t.collection.populateServer({isCloud:!0}).done(function(e){e.get("resources").populate().always(function(){n.resolve(a)})}),t.collection.findServer({isCloud:!0}).done(function(e){e.populate().fail(function(){n.resolve(a)})}).fail(function(){n.resolve(a)}))):n.reject(),n.promise()}),
o.fail(function(){l.a.warn("[Identity] Machine identifier not found for "+t.get("debugName")+" at "+i)}),o}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(32),c=n(74);t.a=i},function(e,t,n){"use strict";function i(){var e=Object(s.c)("appStore"),t=Object(s.c)("appModel"),n=t.get("ui"),i=t.get("user"),u=t.get("fakeRouter"),d=i.server,p=i.clearAccessToken();return p.fail(function(){r.a.warn("Failed to clear the access token and user storage")}).always(function(){t.set("history",[]),
n&&n.restoreDefaults(),u&&u.restoreDefaults(),c.a.abortAll(),i.signOut(),i.uninitialize(),i.initialize(),e.dispatch(Object(l.h)({budget:1/0})),a.a.trigger("clearAll:cache"),d.cache.store(d)}),Object(o.a)(p)}var a=n(19),r=n(32),o=n(180),s=n(16),l=n(210),c=n(265);t.a=i},function(e,t,n){"use strict";function i(e,t){for(var n='"'+t+'"',i=0;-1!==i;){var a=e.indexOf(n,i);if(-1===a)i=a;else if(i=a+n.length,":"!==e[i]&&'"entityID":'!==e.substring(a-'"entityID":'.length,a))return!0}return!1}
function a(e,t){return e+1>=t?0:e+1}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c()(e),r=null!=t.budget?t.budget:u,o=window.performance.now(),l=e.entities,v=s()(l),g=v.length,m={},y=v[d],b=l[y];for(h=d,f=Math.max(Math.min(p,s()(b).length-1),0);d<g;){for(var I=v[d],S=l[I],M=s()(S),D=M.length,C=a(d,g);p<D;){var j=M[p],P=a(p,D);if(i(n,j)||(m[I]||(m[I]=[]),m[I].push(j)),C===h&&P===f)return d=C,p=P,m;if(window.performance.now()-o>=r)return d=C,p=P,m;p++}if(d=C,p=0,
d===h&&p===f)return m}return m}t.a=r;var o=n(59),s=n.n(o),l=n(179),c=n.n(l),u=1e3/60,d=0,p=0,h=void 0,f=void 0},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(o.c)("appModel").get("user"),n=t.get("signedIn"),i=t.id!==e.homeUser.id,r=e.allowGuestLock,c=!!e.isRemoteUser,u=i||r,d=n?s.a.execute("authenticateWithServer",e):s.a.execute("authenticateWithHash",e);return n&&u?d=d.then(function(t){return a(t,e)}):d.done(function(){t.set({
isRemote:c,lockState:l.a.lockStates.UNLOCKED})}),d}function a(e,t){var n=Object(o.c)("appModel").get("user"),i=s.a.execute("resetUser");return i=i.then(function(){return n.activateStoredUser(t.homeUser.id),r.a.trigger("reset:servers"),r.a.trigger("reset:providers"),n.signIn(e,{lockState:l.a.lockStates.UNLOCKED})}),i.done(function(){Object(o.c)("metrics").trackEvent({event:"client:switchuser",interaction:!0})}),i}var r=n(19),o=n(16),s=n(43),l=n(355);t.a=i},function(e,t){function n(e){
for(var t=e.length,n=new Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n}function i(e){for(var t="",n=0;n<e.length;n++)t+=SHA256_hexchars[e[n]>>4]+SHA256_hexchars[15&e[n]];return t}function a(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function r(){SHA256_H=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),SHA256_buf=new Array,SHA256_len=0}function o(e){
SHA256_buf="string"==typeof e?SHA256_buf.concat(n(e)):SHA256_buf.concat(e);for(var t=0;t+64<=SHA256_buf.length;t+=64)b(SHA256_H,SHA256_buf.slice(t,t+64));SHA256_buf=SHA256_buf.slice(t),SHA256_len+=e.length}function s(){if(SHA256_buf[SHA256_buf.length]=128,SHA256_buf.length>56){for(var e=SHA256_buf.length;e<64;e++)SHA256_buf[e]=0;b(SHA256_H,SHA256_buf),SHA256_buf.length=0}for(var e=SHA256_buf.length;e<59;e++)SHA256_buf[e]=0;SHA256_buf[59]=SHA256_len>>>29&255,SHA256_buf[60]=SHA256_len>>>21&255,
SHA256_buf[61]=SHA256_len>>>13&255,SHA256_buf[62]=SHA256_len>>>5&255,SHA256_buf[63]=SHA256_len<<3&255,b(SHA256_H,SHA256_buf);for(var t=new Array(32),e=0;e<8;e++)t[4*e+0]=SHA256_H[e]>>>24,t[4*e+1]=SHA256_H[e]>>16&255,t[4*e+2]=SHA256_H[e]>>8&255,t[4*e+3]=255&SHA256_H[e];return SHA256_H=null,SHA256_buf=null,SHA256_len=null,t}function l(e){var t;return r(),o(e),t=s(),i(t)}function c(e){HMAC_SHA256_key="string"==typeof e?n(e):(new Array).concat(e),HMAC_SHA256_key.length>64&&(r(),o(HMAC_SHA256_key),
HMAC_SHA256_key=s());for(var t=HMAC_SHA256_key.length;t<64;t++)HMAC_SHA256_key[t]=0;for(var t=0;t<64;t++)HMAC_SHA256_key[t]^=54;r(),o(HMAC_SHA256_key)}function u(e){o(e)}function d(){for(var e=s(),t=0;t<64;t++)HMAC_SHA256_key[t]^=106;r(),o(HMAC_SHA256_key),o(e);for(var t=0;t<64;t++)HMAC_SHA256_key[t]=0;return HMAC_SHA256_key=null,s()}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function h(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}function f(e){
return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function v(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function g(e,t,n){return n^e&(t^n)}function m(e,t,n){return e&t^n&(e^t)}function y(e,t){for(var n=16;n<64;n++)t[n]=h(t[n-2])+t[n-7]+p(t[n-15])+t[n-16]&4294967295;for(var i=(new Array).concat(e),n=0;n<64;n++){var a=i[7]+v(i[4])+g(i[4],i[5],i[6])+SHA256_K[n]+t[n],r=f(i[0])+m(i[0],i[1],i[2]);i.pop(),i.unshift(a+r&4294967295),i[4]=i[4]+a&4294967295}
for(var n=0;n<8;n++)e[n]=e[n]+i[n]&4294967295}function b(e,t){for(var n=new Array(16),i=0;i<16;i++)n[i]=t[4*i+0]<<24|t[4*i+1]<<16|t[4*i+2]<<8|t[4*i+3];y(e,n)}SHA256_hexchars=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"),
SHA256_K=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),
t.array_to_string=a,t.SHA256_hash=l,t.HMAC_SHA256_init=c,t.HMAC_SHA256_write=u,t.HMAC_SHA256_finalize=d},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"UserFeatureModel",idAttribute:"uuid",syncedAttrs:{uuid:a.a.string.isRequired}});t.a=r},function(e,t,n){"use strict";var i=["Active","Inactive","Canceled"];t.a=i},function(e,t,n){"use strict";var i=n(25),a=n(1957),r=i.a.extend({name:"StoredUserCollection",model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(17),o=n(14),s=n(1958),l=n(1150),c=n(1146),u=n(1151),d=n(1152),p=n(1147),h=n(798),f=r.a.extend({name:"StoredUserModel",additionalRelations:["servers"],syncedAttrs:{id:o.a.integer,authToken:o.a.string,username:o.a.string,email:o.a.string,title:o.a.string,thumb:o.a.string,pin:o.a.string,home:o.a.boolean,restricted:o.a.boolean,guest:o.a.boolean,hasAllEntitlements:o.a.boolean,lastPrimaryServerID:o.a.string},syncedRelations:{subscription:{relationClass:h.a},subscriptions:{
relationClass:p.a},roles:{relationClass:d.a},entitlements:{relationClass:l.a},providers:{relationClass:u.a},servers:{relationClass:s.a},features:{relationClass:c.a}},copyFromUser:function(e){var t=this,n={};a.a.each(this.syncedAttrs,function(t,i){n[i]=e.get(i)}),a.a.each(this.syncedRelations,function(n,i){if(!a.a.contains(t.additionalRelations,i)){var r=t.get(i),o=e.get(i);if(o){var s=o.toJSON();r.set(r.parse(s))}}}),this.set(n)},clearSensitiveAttributes:function(){this.unset("authToken"),
this.unset("pin"),this.get("servers").reset()}});t.a=f},function(e,t,n){"use strict";var i=n(25),a=n(1149),r=i.a.extend({name:"StoredServerCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1960),r=i.a.extend({name:"StoredConnectionCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1961),o=i.a.extend({name:"StoredConnectionModel",idAttribute:"uri",syncedAttrs:{uri:a.a.string,scheme:a.a.string,address:a.a.string,port:a.a.string,
relay:a.a.boolean},syncedRelations:{sources:{relationClass:r.a}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(1962),r=i.a.extend({name:"StoredConnectionSourceCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"StoredConnectionSourceModel",syncedAttrs:{id:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"UserEntitlementModel",syncedAttrs:{id:a.a.string}});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"UserProviderModel",syncedAttrs:{id:a.a.string,territory:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"UserRoleModel",syncedAttrs:{id:a.a.string}});t.a=r},function(e,t,n){"use strict";function i(e){function t(){window.document.body.removeChild(c),window.removeEventListener("message",n),clearTimeout(l)}function n(e){if(e.source===c.contentWindow){var n=void 0;try{n=JSON.parse(e.data)}catch(e){}n&&(o(n),t())}}
var i=e.url,a=e.data,o=e.onMessage,s=e.timeout,l=setTimeout(function(){o({success:!1}),t()},s);window.addEventListener("message",n);var c=window.document.createElement("iframe");c.style.display="none",c.src=i+"#"+encodeURIComponent(r()({data:a})),window.document.body.appendChild(c)}var a=n(179),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({url:"/api/home",whitelistedAttrs:["id","guestUserID","guestEnabled","name"],convert:function(e){
var t=a.a.isObject(e)?e:o.a.parseXML(e);return o.a.parseInteger(t,"id"),o.a.parseBoolean(t,["guestEnabled"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)},getSaveParams:function(e,t){return a.a.isEmpty(e)?{guestEnabled:this.get("guestEnabled")?"1":"0"}:r.a.prototype.getSaveParams.apply(this,arguments)}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"UserProfileModel",context:["server"],url:"/api/v2/user/profile",syncedAttrs:{
autoSelectAudio:a.a.boolean,autoSelectSubtitle:a.a.integer,defaultAudioLanguage:a.a.string,defaultSubtitleLanguage:a.a.string,defaultSubtitleAccessibility:a.a.integer}});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.homeUser,n=r.c("appModel"),i=n.get("user"),l=t.get("uuid")||i.get("uuid"),c={includeSubscriptions:1,pin:e.pin},u=a.join(["/api/v2/home/users/",l,"/switch"],c),d=t.server.getXHROptions(u,{type:"POST",xhrFields:{withCredentials:o.a.get("allowSSO")}});return Object(s.a)(d)}
var a=n(18),r=n(16),o=n(62),s=n(801);t.a=i},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred().resolve().promise(),n=r.a.Deferred().reject().promise(),i=s.a.getActiveUser();if(!i)return n;var a=i.get("pin"),l=i.get("authToken");return a||e.pin?a===Object(o.c)("appModel").get("user").hashPIN(e.pin,l)?t:n:t}var a=n(13),r=n.n(a),o=n(16),s=n(196);t.a=i},function(e,t,n){"use strict";function i(e){
var t=r.a.Deferred(),n=e.item,i=n.server,a=e.media||s.a.first(n.get("Media")),o=e.part||a&&s.a.first(a.Part),p=e.streamType,h=e.streamID;if(!a||!o)return t.reject().promise();var f={};f[p.key]=h,!e.media&&i.supports("allPartsStreamSelection")&&(f.allParts=1);var v=c.join(["/library/parts/",o.id],f),g=s.a.extend(i.getXHROptions(v),{type:"PUT"}),m=r.a.ajax(g);return m.done(function(){Object(u.a)(a,p,h),n.trigger("change:streams"),t.resolve()}),m.fail(function(e){l.a.trigger("show:alert",{
type:"error",message:Object(d.default)("There was a problem selecting the stream for this item.")}),t.reject(e)}),t.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(18),u=n(1972),d=n(3);t.a=i},function(e,t,n){"use strict";function i(e,t,n){if(e){var i=Object(o.a)(e,{streamType:t.id});r.a.each(i,function(e){e.selected=e.id===n})}}var a=n(10),r=n.n(a),o=n(267);t.a=i},function(e,t,n){"use strict";function i(e){var t,n,i=e.watched;e.item?(t=e.item,n=[t]):e.items&&(n=e.items,t=n[0])
;var o=c.a.map(n,function(e){var t=i?"scrobble":"unscrobble",n={identifier:e.get("identifier")||"com.plexapp.plugins.library"};e.server.get("isCloudSyncServer")?(n.key=e.get("key"),n.ratingKey=e.get("ratingKey")):n.key=e.get("ratingKey");var o=d.join(["/:/",t],n),l=s.a.ajax(e.server.getXHROptions(o));return l.done(function(){r(e,i),a(e,i)}),l}),l=s.a.when.apply(s.a,o);return l.fail(function(){var e
;e=i?Object(p.default)("There was a problem marking this item as watched."):Object(p.default)("There was a problem marking this item as unwatched."),u.a.trigger("show:alert",{type:"error",message:e})}),l}function a(e,t){if(Object(h.u)(e.get("type"))){e.set({unviewedLeafCount:t?0:e.get("leafCount"),viewedLeafCount:t?e.get("leafCount"):0});var n=e.get("children")||e.get("items");n&&n.getCollection().each(function(e){a(e,t)})}else e.set({viewOffset:0,viewCount:t?1:0})}function r(e,t){
var n,i=Object(h.r)(e.get("type")),a=e.parent;if(a&&a.get("isMetadataList")&&(a=a.parent),a&&(n=Object(h.r)(a.get("type"))),n&&n.typeString===i.parent){var o,s=Object(h.u)(e.get("type"));t?o=s?e.get("unviewedLeafCount"):1:(o=s?e.get("viewedLeafCount"):1,o*=-1),a.set({unviewedLeafCount:a.get("unviewedLeafCount")-o,viewedLeafCount:a.get("viewedLeafCount")+o}),r(a,t)}}var o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(19),d=n(18),p=n(3),h=n(27);t.a=i},function(e,t,n){"use strict";function i(e){
var t,n=e.item,i=e.media,a=n.server;if(i){var o="/library/metadata/"+n.id+"/media/"+i.id,u=s.a.extend(a.getXHROptions(o),{type:"DELETE"});t=r.a.ajax(u),t.done(function(){var t=e.item.get("Media");t.splice(s.a.indexOf(t,i),1),n.trigger("change:Media",n,n.get("Media"))})}else t=n.destroy({wait:!0});return t.fail(function(e){
var t=403===e.status?Object(c.default)("Ensure that media deletion is enabled for library content in your server settings."):Object(c.default)("There was a problem deleting this item.");l.a.trigger("show:alert",{type:"error",message:t})}),t}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e.get("librarySectionKey")||t&&t.get("librarySectionKey");if(n){
return Object(h.c)("appModel").get("experienceSettings").get("libraryRoutes")[e.server.entityID()+"!"+n]}}function a(e){var t=f.a.execute("deleteFile",e);return t.done(function(){var t=e.item,n=r(t.get("parentKey"),e);if(!n)return void o(e);var i=n.get("children");i.fetchRange({size:1}).then(function(){if(i.getCollection().length>0)return void s(n,e);n.trigger("destroy",n,n.collection);var a=r(t.get("grandparentKey"),e);if(!a)return void o(c()({},e,{skipRedirect:!1}));var l=a.get("children")
;l.fetchRange({size:1}).then(function(){l.getCollection().length>0?s(a,c()({},e,{skipRedirect:!1})):o(e)})})}),t}function r(e,t){if(!e)return!1;var n=new v.a({key:e},{server:t.item.server,onlyIfCached:!0});return!d.a.isEmpty(n)&&n}function o(e){if(!e.skipRedirect){if(e.refreshPage)return void p.a.trigger("navigate:refresh");var t=e.item,n=t.get("isLibraryItem")&&t.parent,a=t.get("librarySectionID")||n&&n.get("librarySectionID");if(a){var r=i(t,n)
;if(r)return void Object(h.c)("appStore").dispatch(Object(g.i)({pathname:r,replace:!0}));p.a.trigger("navigate","section",{serverID:t.server.id,sectionID:a,replace:!0})}else p.a.trigger("navigate:back")}}function s(e,t){t.skipRedirect||p.a.trigger("navigate","details",{serverID:e.server.id,key:e.get("key"),type:e.get("type"),replace:!0})}var l=n(6),c=n.n(l),u=n(10),d=n.n(u),p=n(19),h=n(16),f=n(43),v=n(94),g=n(210);t.a=a},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({
name:"TranscodeSessionModel",context:["server"],url:function(){return"/transcode/sessions/"+this.id},syncedAttrs:{key:a.a.string,progress:a.a.float,throttled:a.a.boolean,speed:a.a.float,duration:a.a.integer,videoDecision:a.a.string,audioDecision:a.a.string,protocol:a.a.string,container:a.a.string,videoCodec:a.a.string,audioCodec:a.a.string,audioChannels:a.a.integer,width:a.a.string,height:a.a.string,transcodeHwDecoding:a.a.string,transcodeHwEncoding:a.a.string,timeStamp:a.a.integer,
minOffsetAvailable:a.a.integer,maxOffsetAvailable:a.a.integer}});t.a=r},function(e,t,n){"use strict";function i(e,t){return e?e===a.d:/^(\/sync\/[\w\d-\/]*)?\/library\//.test(t)}t.a=i;var a=n(41)},function(e,t,n){"use strict";function i(e){r||(r=Object(a.o)().map(function(e){return e.typeString}).join("|"));var t=new RegExp('<Directory([^>]*?)type="('+r+')"([\\s\\S]*?)</Directory>',"gm"),n=new RegExp('<Directory([^>]*?)type="('+r+')"([\\s\\S]*?)/>',"gm")
;return e.replace(t,'<Metadata$1type="$2" elementName="Directory"$3</Metadata>').replace(n,'<Metadata$1type="$2" elementName="Directory"$3/>')}var a=n(27),r=void 0;t.a=i},function(e,t,n){"use strict";function i(e,t,n){Array.isArray(t)||(t=[t]);var i=t.join("|"),a=new RegExp("<("+i+")","g"),r=new RegExp("</("+i+")>","g");return e.replace(a,"<"+n+' elementName="$1"').replace(r,"</"+n+">")}t.a=i},function(e,t,n){"use strict";var i=n(25),a=n(1981),r=i.a.extend({name:"ChapterCollection",
context:["server","section"],model:a.a,modelId:function(e){return e.id+"_"+e.index}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ChapterModel",context:["server","section"],syncedAttrs:{id:a.a.integer,tag:a.a.string,index:a.a.integer,startTimeOffset:a.a.integer,endTimeOffset:a.a.integer,thumb:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1983),r=i.a.extend({name:"ConcertCollection",context:["server","section"],model:a.a});t.a=r
},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ConcertModel",context:["server","section"],syncedAttrs:{id:a.a.integer,at:a.a.integer,tag:a.a.string,venue:a.a.string,city:a.a.string,country:a.a.string,url:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1985),r=i.a.extend({name:"OverlayCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"OverlayModel",context:["server","section"],
syncedAttrs:{key:a.a.string,marginTop:a.a.integer,marginRight:a.a.integer,marginBottom:a.a.integer,marginLeft:a.a.integer,width:a.a.integer,height:a.a.integer,alignHorizontal:a.a.string,alignVertical:a.a.string,relative:a.a.string,imageScaling:a.a.string,marginScaling:a.a.string}});t.a=r},function(e,t,n){"use strict";function i(e){var t=0;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var a=e[n],r=a.Part;if(r)for(var o=0,s=r.length;o<s;o++){var l=r[o],c=l.Stream;c&&(t+=c.length)}}return t}
function a(e){var t=0;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var a=e[n],r=a.Part;if(r)for(var o=0,s=r.length;o<s;o++){var l=r[o];null!=l.exists&&null!=l.accessible&&t++}}return t}function r(e){return e&&e.some(function(e){return e.protocol===v.a})}function o(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){return e[[t.beginsAt,t.channelIdentifier,t.endsAt].join("-")]=t,e},{})}function s(e,t){if(!t)return null;var n=o(e),i=o(t),a=h()({},n,i)
;return d()(a).map(function(e){return a[e]})}function l(e,t){var n=i(t),r=i(e);if(n>r)return t;if(n===r){if(a(t)>=a(e))return t}return null}function c(e,t,n){if(g.hasOwnProperty(e))return n;if(m.hasOwnProperty(e)&&n&&n.length){if(!t||n.length>t.length)return n;if(n.length===t.length){var i=t&&t[0],a=n&&n[0];if(!i&&a)return n;if(!a&&i)return t;var o=d()(i).length;if(d()(a).length>o)return n}}if("Media"===e){if(n&&!t)return n;var c=r(n||t)?s(t,n):l(t,n);if(c)return c}return Object(f.a)(e,t,n)}
t.a=c;var u=n(59),d=n.n(u),p=n(6),h=n.n(p),f=n(507),v=n(611),g={viewedLeafCount:!0,viewCount:!0,viewOffset:!0,subscriptionID:!0,grandparentSubscriptionID:!0,subscriptionType:!0,grandparentSubscriptionType:!0},m={Channel:!0,Director:!0,Producer:!0,Writer:!0,Genre:!0,Mood:!0,Country:!0,Label:!0,Role:!0,Location:!0,Tag:!0,Topic:!0,Autotag:!0}},function(e,t,n){"use strict";function i(){return{context:"hub.home.quicklinks",hubIdentifier:"home.quicklinks",size:2,style:"list",totalSize:2,
type:"directory",Directory:[{content:1,context:"content.categories",key:"/library/sections/categories",subtype:"news",title:Object(a.default)("Categories"),type:"genre"},{content:1,context:"content.channels",key:"/library/sections/channels",subtype:"news",title:Object(a.default)("Channels")}]}}t.a=i;var a=n(3)},function(e,t,n){"use strict";var i=n(25),a=n(95),r=n(1989),o=i.a.extend({name:"MetadataDirectoryCollection",context:["server","provider"],model:r.a,modelId:function(e){
var t=e.key,n=e.filter,i=t;return n&&(i+="?"+n),i},responseType:function(){return Object(a.a)(this.server)}});t.a=o},function(e,t,n){"use strict";var i=n(18),a=n(17),r=n(14),o=n(95),s=n(38),l=n(45),c=n(27),u=a.a.extend({name:"MetadataDirectoryModel",context:["server","provider"],entityType:l.f,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(s.a)(this.entityType,e.key,e.filter,this.provider.entityID())},responseType:function(){
return Object(o.a)(this.server)},syncedAttrs:{key:r.a.string,title:r.a.string,containerKey:r.a.string,typeKey:r.a.string,type:r.a.string,subtype:r.a.string,thumb:r.a.string,icon:r.a.string,content:r.a.boolean,context:r.a.string,filter:r.a.string},augmentResponse:function(e){var t=e.key,n=e.filter;if(n)return e.containerKey=t,e.typeKey=i.join([t,"all"],n),e;var a=t.match(/\/library\/sections\/(\d+)\/collection/);if(a){var r=a[1],o=Object(c.r)(c.d).id,s="/library/sections/"+r,l=s+"/all?type="+o
;return e.containerKey=s,e.typeKey=l,e.content=!0,e}var u=t.match(/\/library\/sections\/(\d+)\/all\?type=(\d+)/);if(u){var d=u[1],p=u[2],h="/library/sections/"+d+"?type="+p;e.key=h,e.typeKey=t,e.content=!0}return e}});t.a=u},function(e,t,n){"use strict";function i(e){var t,n;return e.item?(t=e.item,n=[t]):(n=e.items,t=n[0]),r.a.when.apply(r.a,s.a.map(n,function(e){var n="/library/metadata/"+e.id+"/refresh",i=s.a.extend(t.server.getXHROptions(n),{type:"PUT"});return r.a.ajax(i).promise()
})).fail(function(e){503===e.status?l.a.trigger("show:modal",new u.a({model:t.server})):l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem refreshing.")})})}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(508);t.a=i},function(e,t,n){"use strict";var i=n(181),a=n(509),r=n(1992),o=i.a.extend({name:"PlaylistsSectionModel",defaults:function(){return{pseudo:!0,currentType:0,sorts:new a.a([],{section:this,server:this.server}),items:new r.a({},{section:this,
server:this.server})}},url:function(){return"/playlists"}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(17),s=n(14),l=n(358),c=n(95),u=n(359),d=n(1993),p=o.a.extend({mixins:[l.a],name:"PlaylistListModel",context:["server","section"],idAttribute:"key",collectionName:"playlists",responseType:function(){return Object(c.a)(this.server)},url:function(){return this.getPaginatedUrl(a.a.result(this,"containerKey"))},containerKey:function(){
var e=this.section.get("currentType"),t=this.section.get("currentSort"),n={type:15};return n.sort=t?t.id+":"+(t.get("direction")||"asc"):"titleSort:asc",e&&(n.playlistType=e),this.section.get("onlyDumb")&&(n.smart=0),r.join("/playlists/all",n)},sessionAttrs:{isPlaylistList:s.a.boolean,currentPageStart:s.a.integer,currentPageSize:s.a.integer,populatedRange:s.a.object},syncedAttrs:{totalSize:s.a.integer},syncedRelations:{playlists:{relationClass:d.a,rootPropertyName:"Playlist",options:function(e){
return{containerKey:a.a.result(this,"containerKey")}},setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{isPlaylistList:!0,populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},sync:function(e,t,n){var i=u.a.addVersionHeader(2,n);return o.a.prototype.sync.call(this,e,t,i)},augmentResponse:function(e){return e.Metadata&&(e.Playlist=e.Metadata,delete e.Metadata),e}});t.a=p},function(e,t,n){"use strict"
;var i=n(25),a=n(1994),r=i.a.extend({name:"PlaylistCollection",context:["server","containerKey"],model:a.a,url:function(){return this.containerKey}});t.a=r},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(18),l=n(17),c=n(14),u=n(268),d=n(809),p=l.a.extend({name:"PlaylistModel",context:["server","containerKey"],idAttribute:"ratingKey",rootPropertyName:"Playlist",urlRoot:"/playlists",saveUrl:function(){
return this.server.supports("truePlaylistsPath")?o.a.result(this,"url"):"/library/metadata/"+this.id},sessionAttrs:{isPlaylist:c.a.boolean,isLibraryItem:c.a.boolean},syncedAttrs:{ratingKey:c.a.string,key:c.a.string,guid:c.a.string,type:c.a.string,playlistType:c.a.string,title:c.a.string,titleSort:c.a.string,composite:c.a.string,summary:c.a.string,smart:c.a.boolean,allowSync:c.a.boolean,duration:c.a.integer,durationInSeconds:c.a.integer,leafCount:c.a.integer,addedAt:c.a.integer,
updatedAt:c.a.integer},sessionRelations:{children:{relationClass:d.a,attrs:function(e){var t={};return"audio"===e.playlistType&&(t.includeRelated=1),{containerKey:s.join(["/playlists",e.ratingKey,"items"],t)}},options:function(){return{playlist:this}}}},defaults:{isPlaylist:!0,isLibraryItem:!0},findItem:function(e){return this.get("children").getCollection().findWhere({playlistItemID:e})},moveItem:function(e,t){if(void 0!==e){var n=t?{after:t
}:{},i=s.join([o.a.result(this,"url"),"/items/",e,"/move"],n),r=o.a.extend(this.server.getXHROptions(i),{type:"PUT"}),l=a.a.ajax(r),c=this.get("children").getCollection(),u=this.findItem(e);c.remove(u);var d=this.findItem(t),p=d?c.indexOf(d)+1:0;return c.add(u,{at:p}),l}},removeItem:function(e){var t=this;if(void 0!==e){var n=s.join([o.a.result(this,"url"),"/items/",e]),i=o.a.extend(this.server.getXHROptions(n),{type:"DELETE"}),r=a.a.ajax(i);r.then(function(e){t.set(t.parse(e))})
;var l=this.get("children").getCollection(),c=this.findItem(e);return l.remove(c),l.trigger("destroy",c,l),r}},addContent:function(e,t){var n=this,i=this.isNew()?"POST":"PUT",r=[o.a.result(this,"url")],l={};this.isNew()?(l.type=this.get("playlistType"),l.title=this.get("title"),l.smart=this.get("smart")?1:0):r.push("/items"),e.get("playQueueID")?l.playQueueID=e.get("playQueueID"):l.uri=u.a.uri(e,t);var c=s.join(r,l),d=o.a.extend(e.server.getXHROptions(c),{type:i}),p=a.a.ajax(d)
;return p.then(function(e){n.set(n.parse(e))}),p.promise()},isLibraryItem:function(e,t){return!0},isPlexMusicItem:function(){return!1}});t.a=p},,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(427),s=n(27),l=n(121),c={unviewedLeafCount:">="},u=l.default.extend({name:"SectionMetadataListModel",context:["server","section","identifier","mediaTagPrefix","mediaTagVersion","allowSync"],url:function(){var e=[],t=void 0,n=void 0,i=this.section.get("currentFolderKey")
;if(i)e.push(i);else if(e.push(a.a.result(this.section,"url")),t=this.section.get("currentSubset").id,this.section.get("allowAdvancedFilters"))"recentlyAdded"!==t&&"newest"!==t||(t="all"),e.push(t),n=this.getParams();else{var o=this.section.get("currentFilters");o.length?e=[o[0].values[0]]:e.push(t)}var s=r.join(e,n);return s=this.replaceSpecialFilterOperators(s),this.set("containerKey",s),this.server.get("isFullServer")?this.getPaginatedUrl(s):s},getParams:function(){
var e=this.getFilterParams(),t=this.getMetadataTypeID(),n=this.getSort();return t&&t!==Object(s.r)("photo").id&&(e.type=t),n&&(e.sort=n),this.section.get("refreshing")&&this.server.supports("timelineState")&&(e.timelineState=1),e},getFilterParams:function(){var e=this.section.get("currentFilters"),t={};return a.a.each(e,function(e){e.values.length&&(t[e.key]=e.values.map(decodeURIComponent).join(","))}),t},getMetadataTypeID:function(){
var e=this.section.get("currentSubset").id,t=this.section.get("currentType").id||Object(s.r)(this.section.get("type")).id;return/^(onDeck|recentlyAdded|recentlyViewed|newest)$/.test(e)?t===Object(s.r)("show").id||t===Object(s.r)("season").id?t=Object(s.r)("episode").id:t!==Object(s.r)("artist").id&&t!==Object(s.r)("track").id||(t=Object(s.r)("album").id):/^recentlyViewedShows$/.test(e)&&(t=Object(s.r)("show").id),t},getSort:function(){
var e=this.section.get("currentSort"),t=this.section.get("currentSubset").id;if("recentlyAdded"===t)return"addedAt:desc";if("newest"===t)return"originallyAvailableAt:desc";if(e){return(e.get("direction")||e.get("defaultDirection"))===o.a.directions.DESCENDING?e.get("descKey"):e.get("key")}},replaceSpecialFilterOperators:function(e){return a.a.each(c,function(t,n){e=e.replace(n+"=",n+t)}),e}});t.a=u},function(e,t,n){"use strict";function i(e,t){switch(e){case c.INT:case c.ENUM:
return l.a.parseInteger(t);case c.BOOL:return l.a.parseBoolean(t);default:return t}}var a=n(59),r=n.n(a),o=n(17),s=n(14),l=n(74),c={INT:"int",TEXT:"text",BOOL:"bool",ENUM:"enum",DOUBLE:"double"},u=o.a.extend({idAttribute:"id",url:"/:/prefs",context:["server"],syncedAttrs:{id:s.a.string,label:s.a.string,default:s.a.oneOfType(s.a.integer,s.a.string,s.a.boolean,s.a.array),summary:s.a.string,value:{type:s.a.oneOfType(s.a.integer,s.a.string,s.a.boolean,s.a.array),save:!0},
type:s.a.oneOf(c.INT,c.TEXT,c.BOOL,c.ENUM,c.DOUBLE),group:s.a.string,advanced:s.a.boolean,option:s.a.string,hidden:s.a.boolean,enumValues:s.a.array,values:s.a.string},defaults:{type:"string",summary:"",label:"",group:""},augmentResponse:function(e){if(e.value=i(e.type,e.value),e.advanced=i(c.BOOL,e.advanced),e.hidden=i(c.BOOL,e.hidden),e.enumValues&&!Array.isArray(e.enumValues)&&(e.enumValues=e.enumValues.split("|").map(function(t){var n=t.split(":"),a=n[0],r=n[1];return{label:void 0===r?a:r,
value:i(e.type,a)}})),e.type===c.ENUM&&e.values&&!Array.isArray(e.values)){var t=0;e.enumValues=e.values.split("|").map(function(e){return{label:e,value:t++}})}return e},getSaveParams:function(e){var t=o.a.prototype.getSaveParams.apply(this,arguments);if(e&&!e.hasOwnProperty("value"))return r()(t).forEach(function(t){return delete e[t]}),t;var n;return n={},n[this.get("id")]=t.value,n}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n(230),r=["key"],o=Object(a.a)(r,[{key:"all",
title:function(){return Object(i.default)("All")}},{key:"unwatched",title:function(){return Object(i.default)("Unplayed")}},{key:"newest",title:function(){return Object(i.default)("Recently Released")}},{key:"recentlyAdded",title:function(){return Object(i.default)("Recently Added")}},{key:"recentlyViewed",title:function(){return Object(i.default)("Recently Viewed")}},{key:"recentlyViewedShows",title:function(){return Object(i.default)("Recently Viewed Shows")}},{key:"onDeck",title:function(){
return Object(i.default)("On Deck")}},{key:"folder",title:function(){return Object(i.default)("By Folder")}}]);t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"FilterOptionModel",context:["server","section","type","standalone"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{key:a.a.encodedString,type:a.a.string,field:a.a.string,value:a.a.string,title:a.a.string},augmentResponse:function(e){return e.fastKey?(e.value=e.key,e.key=e.fastKey,e.field=e.type,
delete e.type,delete e.fastKey):e.fastKey||e.value||(e.value=e.key),e}});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(25),o=n(2014),s=r.a.extend({name:"LinearFilterCollection",context:["server","section"],model:o.a,url:function(){return a.a.result(this.section,"url")},filterBySecondary:function(){var e=this.filter(function(e){return e.get("secondary")});return this.clone(e)}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(617),o=i.a.extend({name:"LinearFilterModel",
context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{secondary:a.a.boolean,key:a.a.string,title:a.a.string},syncedRelations:{options:{relationClass:r.a}},defaults:{secondary:!1}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(2016),r=i.a.extend({name:"LocationCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"LocationModel",context:["server","section"],
rootPropertyName:"Location",syncedAttrs:{id:a.a.integer,path:{type:a.a.string,save:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1165),r=i.a.extend({name:"MediaTypeCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(25),o=n(1166),s=r.a.extend({name:"SectionSubsetCollection",context:["server","section"],model:o.a,url:function(){return a.a.result(this.section,"url")},filterPrimaries:function(){var e=this.filter(function(e){
return e.get("primary")});return this.clone(e)}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(2020),r=i.a.extend({name:"PlaylistItemCollection",context:["server","provider","playlist"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(94),o=n(38),s=n(45),l=i.a.extend({name:"PlaylistItemModel",context:["server","provider","playlist"],entityType:s.i,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state
;return Object(o.a)(this.entityType,e.playlistItemID||e.key,this.server.entityID())},idAttribute:"playlistItemID",syncedAttrs:{playlistItemID:a.a.string,key:a.a.string,type:a.a.string},syncedRelations:{metadataItem:{relationClass:r.a,deferred:!0}},augmentResponse:function(e){return{playlistItemID:e.playlistItemID,key:e.key,type:e.type,metadataItem:e}}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(270),r=i.a.extend({name:"ProviderActionCollection",context:["server","provider"],model:a.a})
;t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(2023),r=i.a.extend({name:"ProviderCountryCollection",context:["server","provider"],url:"https://services.provider.plex.tv/location/countries",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ProviderCountryModel",context:["server","provider"],idAttribute:"code",rootPropertyName:"Country",syncedAttrs:{code:a.a.string,title:a.a.string,postalCodeFormat:a.a.string,flavor:a.a.string}});t.a=r},function(e,t,n){
"use strict";var i=n(25),a=n(2025),r=i.a.extend({name:"ProviderSettingOptionsCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ProviderSettingOptionsModel",context:["server","provider"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{key:a.a.string,title:a.a.string,type:a.a.string,selected:a.a.boolean}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(2027),r=i.a.extend({
name:"ProviderDirectoryCollection",context:["server","provider"],model:a.a,modelId:function(e){return e.key||e.hubKey}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ProviderDirectoryModel",context:["server","provider"],sessionAttrs:{scanFilesError:a.a.object},syncedAttrs:{id:a.a.string,key:a.a.string,hubKey:a.a.string,title:a.a.string,icon:a.a.string,type:a.a.string,subtype:a.a.string,agent:a.a.string,refreshing:a.a.boolean,updatedAt:a.a.integer,
scannedAt:a.a.integer,context:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(41),a=n(3),r=n(270),o=n(1173),s=n(64),l=n(364),c=l.a.extend({name:"LegacyLibraryProviderModel",defaults:function(){var e=this.server,t=e.get("isFullServer"),n=e.get("isFullOwnedServer"),l=[{type:s.b.CONTENT,key:"/library/sections"},{type:s.b.MATCH,key:"/library/matches"},{type:s.b.METADATA,key:"/library/metadata"}];return t&&l.push({type:s.b.SEARCH,key:"/hubs/search"},{type:s.b.PLAY_QUEUE,key:"/playQueues"},{
type:s.b.PLAYLIST,key:"/playlists"},{type:s.b.TIMELINE,key:"/:/timeline"},{type:s.b.ACTIONS,actions:[{id:r.b.SCROBBLE,key:"/:/scrobble",reverseKey:"/:/unscrobble"},{id:r.b.RATE,key:"/:/rate"}]}),n&&l.push({type:s.b.MANAGE}),{identifier:i.d,title:Object(a.default)("Library"),types:["video","audio","photo"],protocols:n?["stream","download"]:["stream"],features:new o.a(l,{parse:!0,server:e})}}});t.a=c},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"Internet Required",{hash:{},data:t}))+" "}function l(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"Plex Pass Required",{hash:{},data:t}))+" "}function c(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"This server cannot reach the Internet. Please verify connectivity and try again.",{hash:{},data:t}))+" "}function u(e,t){var a=""
;return a+=" "+m(i(n(5)).call(e,"This library requires your server be signed in to a Plex Pass account.",{hash:{},data:t}))+" "}function d(e,t){var a="";return a+=' <button type="button" class="confirm-btn btn btn-lg btn-primary">'+m(i(n(5)).call(e,"OK",{hash:{},data:t}))+"</button> "}function p(e,t){var n,i="";return i+=' <a class="confirm-btn btn btn-lg btn-primary" href="'+m((n=e&&e.serverSettingsRoute,typeof n===y?n.apply(e):n))+'"> ',n=a.if.call(e,e&&e.isSignedIn,{hash:{},
inverse:b.program(14,f,t),fn:b.program(12,h,t),data:t}),(n||0===n)&&(i+=n),i+=" </a> "}function h(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"Settings",{hash:{},data:t}))+" "}function f(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"Sign In",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m=this.escapeExpression,y="function",b=this
;return g+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-exclamation-mark"></i> ',v=a.if.call(t,t&&t.hasPlexSubscription,{hash:{},inverse:b.program(3,l,o),fn:b.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+=' </h4> </div> <div class="modal-body"> <p class="confirm-message"> ',
v=a.if.call(t,t&&t.hasPlexSubscription,{hash:{},inverse:b.program(7,u,o),fn:b.program(5,c,o),data:o}),(v||0===v)&&(g+=v),g+=' </p> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+m(i(n(5)).call(t,"Ignore",{hash:{},data:o}))+"</button> ",v=a.if.call(t,t&&t.hasPlexSubscription,{hash:{},inverse:b.program(11,p,o),fn:b.program(9,d,o),data:o}),(v||0===v)&&(g+=v),g+=" </div> </div> </div> "})},,,function(e,t,n){"use strict"
;function i(e){var t=e.items;return r.a.when.apply(r.a,s.a.map(t,function(e){var t="/library/metadata/"+e.id+"/analyze",n=s.a.extend(e.server.getXHROptions(t),{type:"PUT"});return r.a.ajax(n).promise()}))}var a=n(13),r=n.n(a),o=n(10),s=n.n(o);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=r.a.ajax(o);e.done(function(){n.resolve()}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem analyzing the library.")}),n.reject(e)
}),e.always(function(e){d.hide()})}var n=r.a.Deferred(),i=e.section,a="/library/sections/"+i.id+"/analyze",o=s.a.extend(i.server.getXHROptions(a),{type:"PUT"}),d=new u.a({title:Object(c.default)("Analyze Library"),message:Object(c.default)("Analyzes all the media files in the library. The analysis captures information about the media which helps Plex decide how to optimally play back the media."),confirmLabel:Object(c.default)("Analyze"),cancelLabel:Object(c.default)("Cancel"),async:!0
}),p=d.promise;return p.done(t),p.fail(function(){n.reject()}),l.a.trigger("show:modal",d),n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+p(i(n(5)).call(e,e&&e.cancelLabel,{hash:{},data:t}))+"</button> "}
function l(e,t){return"btn-danger"}function c(e,t){return"btn-primary"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p=this.escapeExpression,h=this;return d+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-exclamation-mark"></i> '+p((u=t&&t.title,
"function"==typeof u?u.apply(t):u))+'</h4> </div> <div class="modal-body"> <p class="confirm-message">'+p((u=t&&t.message,"function"==typeof u?u.apply(t):u))+'</p> <p class="double-confirm-message text-warning"></p> </div> <div class="modal-footer"> ',u=a.unless.call(t,t&&t.hideCancel,{hash:{},inverse:h.noop,fn:h.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+=' <button type="button" class="confirm-btn btn btn-lg ',u=a.if.call(t,t&&t.hasDanger,{hash:{},inverse:h.program(5,c,o),fn:h.program(3,l,o),
data:o}),(u||0===u)&&(d+=u),d+=' btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(5)).call(t,t&&t.confirmLabel,{hash:{},data:o}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){"use strict";function i(e){var t,n,i;e.item?(n=e.item,i=[n]):e.items&&(i=e.items,n=i[0]);var a=r.a.extend({},e,{watched:!0}),d=n.get("type"),p=Object(c.u)(d),h=(p||i.length>1)&&!e.force,f=1===i.length,v=f&&n.get("isSection")?n.getSyncTitle():n.get("title");if(h){var g
;switch(d){case"movie":g=f?Object(l.default)("Are you sure you want to mark {1} as watched?",v):Object(l.default)("Are you sure you want to mark these movies as watched?");break;case"show":case"season":case"episode":g=f?Object(l.default)("Are you sure you want to mark all episodes of {1} as watched?",v):Object(l.default)("Are you sure you want to mark these episodes as watched?");break;default:
g=f?Object(l.default)("Are you sure you want to mark {1} as watched?",v):Object(l.default)("Are you sure you want to mark these items as watched?")}var m=new u.a({title:Object(l.default)("Mark as Watched"),message:g});t=m.promise.then(function(){return s.a.execute("updateWatchedStatus",a)}),o.a.trigger("show:modal",m)}else t=s.a.execute("updateWatchedStatus",a);return t}var a=n(10),r=n.n(a),o=n(19),s=n(43),l=n(3),c=n(27),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){var t,n,i
;e.item?(n=e.item,i=[n]):e.items&&(i=e.items,n=i[0]);var a=r.a.extend({},e,{watched:!1}),d=n.get("type"),p=Object(c.u)(d),h=(p||i.length>1)&&!e.force,f=1===i.length,v=f&&n.get("isSection")?n.getSyncTitle():n.get("title");if(h){var g;switch(d){case"movie":g=f?Object(l.default)("Are you sure you want to mark {1} as unwatched?",v):Object(l.default)("Are you sure you want to mark these movies as unwatched?");break;case"show":case"season":case"episode":
g=f?Object(l.default)("Are you sure you want to mark all episodes of {1} as unwatched?",v):Object(l.default)("Are you sure you want to mark these episodes as unwatched?");break;default:g=f?Object(l.default)("Are you sure you want to mark {1} as unwatched?",v):Object(l.default)("Are you sure you want to mark these items as unwatched?")}var m=new u.a({title:Object(l.default)("Mark as Unwatched"),message:g});t=m.promise.then(function(){return s.a.execute("updateWatchedStatus",a)}),
o.a.trigger("show:modal",m)}else t=s.a.execute("updateWatchedStatus",a);return t}var a=n(10),r=n.n(a),o=n(19),s=n(43),l=n(3),c=n(27),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.item,n="/library/metadata/"+t.id+"/unmatch",i=s.a.extend(t.server.getXHROptions(n),{type:"PUT"}),a=r.a.ajax(i);return a.fail(function(){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem unmatching this item.")})}),a.promise()}
var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=s.a.extend(i.server.getXHROptions(a),{type:"PUT"}),u=r.a.ajax(t);u.done(function(){var t,a=i.get("type");t="show"===a||"artist"===a||"album"===a?"Location":"Media",i.set(t,i.get(t).slice(0,1)),e.skipNavigate||l.a.trigger("navigate:back"),n.resolve()}),u.fail(function(e){l.a.trigger("show:alert",{type:"error",
message:Object(c.default)("There was a problem splitting this item apart.")}),n.reject(e)}),u.always(function(e){o.hide()})}var n=r.a.Deferred(),i=e.item,a="/library/metadata/"+i.id+"/split",o=new u.a({title:Object(c.default)("Split Apart"),message:Object(c.default)("Are you sure you want to split this item apart?"),async:!0}),d=o.promise;return d.done(t),d.fail(function(){n.reject()}),l.a.trigger("show:modal",o),n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i
},function(e,t,n){"use strict";function i(e){function t(){var e=r.a.ajax(d);e.done(function(){n.resolve()}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem merging these items.")}),n.reject(e)}),e.always(function(e){p.hide()})}var n=r.a.Deferred(),i=e.item,a=s.a.pluck(e.items,"id").join(","),o="/library/metadata/"+i.id+"/merge?ids="+a,d=s.a.extend(i.server.getXHROptions(o),{type:"PUT"}),p=new u.a({title:Object(c.default)("Merge"),
message:Object(c.default)("Are you sure you want to merge these items together?"),async:!0}),h=p.promise;return h.done(t),h.fail(function(){n.reject()}),l.a.trigger("show:modal",p),n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e,t){return c.a.map(e,function(e){return d.a.execute("deleteItem",{item:e,skipRedirect:t})})}function a(e){var t=e.items,n=e.item,a=e.skipConfirmation,o=e.skipRedirect;t||(t=[n]),n||(n=c.a.first(t))
;var l=n.get("Media");if(1===t.length&&l.length>1&&n.server.supports("specificMediaDeletion"))return d.a.execute("deleteMediaItem",{item:n});var u;if(a)u=s.a.when.apply(s.a,i(t,o));else{var p=r({item:n,items:t});u=p.promise.then(function(){return s.a.when.apply(s.a,i(t,o)).always(function(){p.hide()})})}return u}function r(e){var t,n,i=e.item,a=e.items,r=a.length>1,o=i.get("type"),s=h.r(o);o===h.d?(t=s.title,
n=Object(p.default)("Are you sure you want to delete {1}? This cannot be undone.",i.get("title"))):r?(t=s.plural,n=Object(p.default)("Are you sure you want to delete {1} items from your filesystem?",a.length)):(t=s.title,n=Object(p.default)("Are you sure you want to delete this item from your filesystem?"));var l={title:Object(p.default)("Delete {1}",t),message:n,confirmLabel:Object(p.default)("Delete"),cancelLabel:Object(p.default)("Cancel"),async:!0,hasDanger:!0}
;(r||h.v(o))&&(l.requireDoubleConfirm=!0,l.doubleConfirmMessage=Object(p.default)("Multiple files may be deleted."),l.doubleConfirmLabel=Object(p.default)("Yes, I'm sure"));var c=new f.a(l);return u.a.trigger("show:modal",c),c}var o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(19),d=n(43),p=n(3),h=n(27),f=n(65);t.a=a},function(e,t,n){"use strict";function i(e){var t=a(e);return t=t.then(function(t){var n=r();return n.promise.then(function(){return c.a.execute("deleteFile",{item:e.item,media:t
}).always(function(){n.hide()})})})}function a(e){var t=s.a.Deferred(),n=e.item,i=n.get("Media");if(e.index in i)return t.resolve(i[e.index]).promise();var a=new p.a({model:n}),r=a.promise;return r.done(function(e){t.resolve(i[e])}),r.fail(function(){t.reject()}),l.a.trigger("show:modal",a),t.promise()}function r(){var e=new d.a({title:Object(u.default)("Delete File"),message:Object(u.default)("Are you sure you want to delete this file from your filesystem?"),
confirmLabel:Object(u.default)("Delete"),cancelLabel:Object(u.default)("Cancel"),async:!0,hasDanger:!0});return l.a.trigger("show:modal",e),e}var o=n(13),s=n.n(o),l=n(19),c=n(43),u=n(3),d=n(65),p=n(2042);t.a=i},function(e,t,n){"use strict";var i=n(816),a=n(2043),r=n.n(a),o=i.a.extend({name:"SelectMediaFileModal",template:r.a,serializeData:function(){return{medias:this.model.get("Media")}}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=' <li class="striped-list-item select-list-item"> <a class="media" data-value="'+d((a=null==t||!1===t?t:t.index,typeof a===u?a.apply(e):a))+'" href="#"> ',a=i(n(2044)).call(e,(a=e&&e.Part,a=null==a||!1===a?a:a[0],null==a||!1===a?a:a.file),35,{hash:{},data:t}),(a||0===a)&&(r+=a),r+=" </a> </li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var l,c="",u="function",d=this.escapeExpression,p=this;return c+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon file"></i> '+d(i(n(5)).call(t,"Select a File",{hash:{},data:o}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <ul class="list select-list"> ',
l=a.each.call(t,t&&t.medias,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=" </ul> </div> </div> </div> "})},function(e,t,n){var i=n(1175).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";function i(e){var t=e.item,n=t.server,i=t.get("Media"),r=l.a.filter(i,function(e){return!!e.proxyType}),s=a({item:t,versions:r});return s.promise.then(function(){var e=u.join(["/library/metadata/",t.id],{proxy:1}),a=l.a.extend(n.getXHROptions(e),{type:"DELETE"
}),p=o.a.ajax(a);return p.done(function(){l.a.each(r,function(e){i.splice(l.a.indexOf(i,e),1)}),t.trigger("change:Media",t,t.get("Media"))}),p.fail(function(e){var t=403===e.status?Object(d.default)("Ensure that media deletion is enabled for library content in your server settings."):Object(d.default)("There was a problem deleting these versions.");c.a.trigger("show:alert",{type:"error",message:t})}),p.always(function(){s.hide()}),p.promise()})}function a(e){
var t,n=e.item,i=e.versions,a=i.length>1;if(a)t=Object(d.default)("Are you sure you want to delete {1} versions of {2}?",i.length,n.get("title"));else{var r=l.a.first(i);t=Object(d.default)("Are you sure you want to delete the {1} version of {2}?",r.title,n.get("title"))}var o=new p.a({title:a?Object(d.default)("Delete Versions"):Object(d.default)("Delete Version"),message:t,confirmLabel:Object(d.default)("Delete"),cancelLabel:Object(d.default)("Cancel"),async:!0,hasDanger:!0})
;return c.a.trigger("show:modal",o),o}var r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(19),u=n(18),d=n(3),p=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=i.destroy({wait:!0});if(!e)return void n.resolve();e.done(function(){var e=s.c("appStore").dispatch,t=this.server.entityID();t&&e(Object(l.c)({serverEntityID:t})),n.resolve()}),e.fail(function(e){o.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem deleting the library.")}),n.reject(e)})}
var n=r.a.Deferred(),i=e.section,a=new u.a({title:Object(c.default)("Delete Library"),message:Object(c.default)("Are you sure you want to delete {1}?",i.get("title")),confirmLabel:Object(c.default)("Delete"),cancelLabel:Object(c.default)("Cancel"),requireDoubleConfirm:!0,doubleConfirmMessage:Object(c.default)("This cannot be undone."),doubleConfirmLabel:Object(c.default)("Yes, I'm sure"),async:!0,hasDanger:!0}),d=a.promise;return d.done(t),d.fail(function(){n.reject()}),
o.a.trigger("show:modal",a),n.promise().always(function(){a.hide()}),n.promise()}var a=n(13),r=n.n(a),o=n(19),s=n(16),l=n(123),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=r.a.ajax(a);return e.done(function(e){l.a.trigger("show:alert",{type:"success",message:Object(c.default)("The preview thumbnails for items in this library were deleted.")})}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",
message:Object(c.default)("There was a problem deleting the preview thumbnails for items in this library.")})}),e.always(function(e){o.hide()}),e}var n=e.section,i="/library/sections/"+n.id+"/indexes",a=s.a.extend(n.server.getXHROptions(i),{type:"DELETE"}),o=new u.a({title:Object(c.default)("Delete Preview Thumbnails"),message:Object(c.default)("Are you sure you want to delete the preview thumbnails for items in this library? This cannot be undone."),confirmLabel:Object(c.default)("Delete"),
cancelLabel:Object(c.default)("Cancel"),async:!0,hasDanger:!0}),d=o.promise;return d=d.then(function(){return t()}),l.a.trigger("show:modal",o),d}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=e.item.destroy();t.done(function(){e.skipRedirect||o.a.trigger("navigate:back"),n.resolve()}),t.fail(function(e){o.a.trigger("show:alert",{type:"error",
message:i?Object(s.default)("There was a problem deleting the album."):Object(s.default)("There was a problem deleting the playlist.")}),n.reject(e)}),t.always(function(e){a.hide()})}var n=r.a.Deferred(),i="photo"===e.item.get("playlistType"),a=new l.a({title:i?Object(s.default)("Delete Album"):Object(s.default)("Delete Playlist"),message:Object(s.default)("Are you sure you want to delete {1}? This cannot be undone.",e.item.get("title")),confirmLabel:Object(s.default)("Delete"),
cancelLabel:Object(s.default)("Cancel"),async:!0,hasDanger:!0}),c=a.promise;return c.done(t),c.fail(function(){n.reject()}),o.a.trigger("show:modal",a),n.promise()}var a=n(13),r=n.n(a),o=n(19),s=n(3),l=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=r.a.ajax(g);e.done(function(){n.resolve()}),e.fail(function(e){if(503===e.status)l.a.trigger("show:modal",new d.a({model:p}));else{
var t=o?Object(c.default)("There was a problem canceling the update."):Object(c.default)("There was a problem updating the library.");l.a.trigger("show:alert",{type:"error",message:t})}n.reject(e)})}var n=r.a.Deferred(),i=e.section,a=i?i.id:"all",o=e.cancel,p=i?i.server:e.server,h=e.params||{},f={};h.force&&(f.force=1);var v="/library/sections/"+a+"/refresh",g=s.a.extend(p.getXHROptions(v),{data:f});if(o&&(g.type="DELETE",i&&i.set("refreshing",!1)),f.force){var m=new u.a({
title:Object(c.default)("Refresh All"),message:Object(c.default)("Forces a download of fresh media information from the internet. This can take a long time. Any locked fields are not modified."),confirmLabel:Object(c.default)("Refresh"),cancelLabel:Object(c.default)("Cancel")}),y=m.promise;y.done(t),y.fail(function(){n.reject()}),l.a.trigger("show:modal",m)}else t();return n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65),d=n(508);t.a=i},function(e,t,n){"use strict"
;function i(e){function t(){var e=r.a.ajax(a);e.done(function(){l.a.trigger("show:alert",{type:"success",message:Object(c.default)("The database was optimized.")}),n.resolve()}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem optimizing this database.")}),n.reject(e)}),e.always(function(e){o.hide()})}var n=r.a.Deferred(),i=e.server,a=s.a.extend(i.getXHROptions("/library/optimize"),{type:"PUT"}),o=new u.a({
title:Object(c.default)("Optimize Database"),message:Object(c.default)("Cleans up the library database and ensures it is operating as quickly as possible. This is especially useful when you've added or removed a large amount of media from the library."),confirmLabel:Object(c.default)("Optimize"),cancelLabel:Object(c.default)("Cancel"),async:!0}),d=o.promise;return d.done(t),d.fail(function(){n.reject()}),l.a.trigger("show:modal",o),n.promise()}
var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=r.a.ajax(a);e.done(function(){l.a.trigger("show:alert",{type:"success",message:Object(c.default)("Unused bundles are being removed.")}),n.resolve()}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem removing unused bundles.")}),n.reject(e)}),e.always(function(e){o.hide()})}
var n=r.a.Deferred(),i=e.server,a=s.a.extend(i.getXHROptions("/library/clean/bundles"),{type:"PUT"}),o=new u.a({title:Object(c.default)("Clean Bundles"),message:Object(c.default)("The media server stores information about your media to disk, as well as posters, artwork, and other media resources from the internet. Running this task deletes any bundles which are no longer in use."),confirmLabel:Object(c.default)("Clean"),cancelLabel:Object(c.default)("Cancel"),async:!0}),d=o.promise
;return d.done(t),d.fail(function(){n.reject()}),l.a.trigger("show:modal",o),n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){s.a.each(o,function(e){var t="/library/sections/"+e+"/emptyTrash",n=s.a.extend(a.getXHROptions(t),{type:"PUT"});d.push(r.a.ajax(n))});var e=r.a.when.apply(r.a,d);e.done(function(){l.a.trigger("show:alert",{type:"success",message:Object(c.default)("The trash was emptied.")}),n.resolve()
}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem emptying the trash.")}),n.reject(e)}),e.always(function(e){p.hide()})}var n=r.a.Deferred(),i=e.section,a=i?i.server:e.server,o=[],d=[];if(i)o.push(i.id);else{a.get("sections").each(function(e){o.push(e.id)})}var p=new u.a({title:Object(c.default)("Empty Trash"),
message:Object(c.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:Object(c.default)("Empty"),cancelLabel:Object(c.default)("Cancel"),async:!0}),h=p.promise;return h.done(t),h.fail(function(){n.reject()}),l.a.trigger("show:modal",p),n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65)
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.item,n={guid:e.guid,name:e.name};"album"===t.get("type")&&e.children&&e.children.reduce(function(e,t){var n=t.get("id");return n&&(e["guid["+n+"]"]=t.get("guid")),e},n);var i=l.join(["/library/metadata/",t.id,"/match"],n),a=s.a.extend(t.server.getXHROptions(i),{type:"PUT"});return r.a.ajax(a).promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(18);t.a=i},function(e,t,n){"use strict";function i(e){
var t=r.a.Deferred(),n=e.item,i=e.agent,a={agent:i.id,manual:0},o=c.join(["/library/metadata/",n.id,"/matches"],a),p=s.a.extend(n.server.getXHROptions(o)),h=r.a.ajax(p);return h.done(function(e){var i=s.a.isObject(e)?e:u.a.parseXML(e);if(i.SearchResult){var o=i.SearchResult;Array.isArray(i.SearchResult)&&(o=i.SearchResult[0]),a={guid:o.guid,name:o.name};var p=c.join(["/library/metadata/",n.id,"/match"],a),h=s.a.extend(n.server.getXHROptions(p),{type:"PUT"}),f=r.a.ajax(h);f.done(function(){
t.resolve()}),f.fail(function(){l.a.trigger("show:alert",{type:"error",message:Object(d.default)("There was a problem matching this item.")}),t.reject()})}else l.a.trigger("show:alert",{type:"error",message:Object(d.default)("No matches were found using this agent.")}),t.reject()}),h.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(d.default)("There was a problem searching for matches.")}),t.reject(e)}),t.promise()}
var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(18),u=n(102),d=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.item,n={url:e.artworkRatingKey},i=l.join(["/library/metadata/",t.id,e.artworkType],n),a=s.a.extend(t.server.getXHROptions(i),{type:"PUT"}),o=r.a.ajax(a);return o.done(function(n){t.set(c[e.artworkType],n)}),o.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(18),c={poster:"thumb",art:"art",banner:"banner"};t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.item,n=e.rating,i=t.get("userRating");if(-1===n?t.unset("userRating"):t.set("userRating",n),e.passive)return r.a.Deferred().resolve().promise();var a={key:t.get("ratingKey"),identifier:t.get("identifier"),rating:n},c=s.join("/:/rate",a),u=r.a.ajax(t.server.getXHROptions(c));return u.fail(function(){t.set("userRating",i),o.a.trigger("show:alert",{type:"error",message:Object(l.default)("There was a problem rating this item.")})}),u.promise()}var a=n(13),r=n.n(a),o=n(19),s=n(18),l=n(3)
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.generator,n=s.a.result(t,"url")+"/"+e.ratingKey+"/enable",i=s.a.extend(t.server.getXHROptions(n),{type:"PUT"}),a=r.a.ajax(i).promise();return a.fail(function(e){l.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem enabling this version.")})}),a}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.generator,n=l.a.result(t,"url")+"/"+e.ratingKey+"/disable",i=a();return i.promise.then(function(){var e=l.a.extend(t.server.getXHROptions(n),{type:"PUT"}),a=o.a.ajax(e).promise();return a.fail(function(e){c.a.trigger("show:alert",{type:"error",message:Object(u.default)("There was a problem disabling this version.")})}),a.always(function(){i.hide()}),a})}function a(){var e=new d.a({title:Object(u.default)("Remove Version"),
message:Object(u.default)("Are you sure you want to delete this version? You can enable it again in Optimized Versions Settings."),confirmLabel:Object(u.default)("Remove"),cancelLabel:Object(u.default)("Cancel"),async:!0,hasDanger:!0});return c.a.trigger("show:modal",e),e}var r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(19),u=n(3),d=n(65);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.generator,n=e.ratingKey,i=s.a.result(t,"url");n&&(i+="/"+n),i+="/reprocess"
;var a=s.a.extend(t.server.getXHROptions(i),{type:"PUT"}),o=r.a.ajax(a).promise();return o.fail(function(e){var t=n?Object(c.default)("There was a problem processing this item."):Object(c.default)("There was a problem processing these items.");l.a.trigger("show:alert",{type:"error",message:t})}),o}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.generator,n=a(e);return n.promise.then(function(){var e=t.destroy()
;return e.fail(function(e){r.a.trigger("show:alert",{type:"error",message:Object(o.default)("Unable to stop generating these versions.")})}),e.always(function(){n.hide()}),e})}function a(e){var t=e.generator.get("title"),n=t?Object(o.default)("Removing this item will delete all versions created by {1}. Are you sure you want to continue?",t):Object(o.default)("Removing this item will delete all related versions. Are you sure you want to continue?"),i=new s.a({
title:Object(o.default)("Delete Versions"),message:n,confirmLabel:Object(o.default)("Remove"),cancelLabel:Object(o.default)("Cancel"),async:!0,hasDanger:!0});return r.a.trigger("show:modal",i),i}var r=n(19),o=n(3),s=n(65);t.a=i},function(e,t,n){"use strict";function i(e){var t=a(),n=t.promise;return n=n.then(function(){var n="/playlists/generators?type="+u.a.LOCAL,i=l.a.extend(e.server.getXHROptions(n),{type:"DELETE"}),a=o.a.ajax(i).promise();return a.fail(function(e){c.a.trigger("show:alert",{
type:"error",message:Object(d.default)("There was a problem deleting all versions.")})}),a.always(function(){t.hide()}),a.promise()})}function a(){var e=new p.a({title:Object(d.default)("Delete All Versions"),message:Object(d.default)("Are you sure you want to delete all versions? This cannot be undone."),confirmLabel:Object(d.default)("Delete"),cancelLabel:Object(d.default)("Cancel"),async:!0,hasDanger:!0});return c.a.trigger("show:modal",e),e}
var r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(19),u=n(365),d=n(3),p=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(e){var i=s.a.isObject(e)?e:c.a.parseXML(e);if(!i||!i.message&&!i.Directory)return void n();if(i.message)p||l.a.trigger("show:alert",{type:"success",message:i.message}),a.resolve();else{c.a.parseArray(i,"Directory");var o=i.Directory[0].key,u=r.a.ajax(d.getXHROptions(o));u.done(t),u.fail(n)}}function n(e){p||l.a.trigger("show:alert",{type:"error",
message:Object(u.default)("There was a problem checking for updates.")}),a.reject(e)}var i,a=r.a.Deferred(),o=e.channel,d=o?o.server:e.server,p=e.silent;if(o){var h=o.get("identifier");i=(h?"/system/appstore/apps/"+h:o.get("key"))+"/update"}else i="/system/appstore/updates";var f=r.a.ajax(d.getXHROptions(i));return f.done(t),f.fail(n),a.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(102),u=n(3);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=r.a.ajax(f)
;t.done(function(t){var a=s.a.isObject(t)?t:c.a.parseXML(t);i.set("installed",!1),a.message&&!e.skipConfirmation&&l.a.trigger("show:alert",{type:"success",message:a.message}),n.resolve()}),t.fail(function(e){if(400===e.status){var t=new p.a({title:Object(u.default)("Unable to Uninstall Plugin"),message:Object(u.default)("This plugin could not be uninstalled, but you can disable it in the server settings."),confirmLabel:Object(u.default)("OK"),cancelLabel:Object(u.default)("Ignore")})
;t.promise.done(function(){Object(d.a)("serverSettings",{serverID:i.server.id,group:"channels"})}),l.a.trigger("show:modal",t)}else l.a.trigger("show:alert",{type:"error",message:Object(u.default)("This plugin could not be uninstalled.")});n.reject(e)})}var n=r.a.Deferred(),i=e.channel,a=i.get("identifier"),o=a?"/system/appstore/apps/"+a:i.get("key"),h=o+"/uninstall",f=i.server.getXHROptions(h);if(e.skipConfirmation)t();else{var v=new p.a({title:Object(u.default)("Uninstall Plugin"),
message:Object(u.default)("Are you sure you want to uninstall this plugin?")}),g=v.promise;g.done(t),g.fail(function(){n.reject()}),l.a.trigger("show:modal",v)}return n.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(102),u=n(3),d=n(182),p=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(e){if(i&&i.id){var t="/status/sessions/terminate?sessionId="+i.id+"&reason="+e,l=r.a.ajax(a.getXHROptions(t));l.done(function(e){n.trigger("destroy",n,n.collection),c.resolve(e)}),
l.fail(function(e){o.a.trigger("show:alert",{type:"error",message:Object(s.default)("There was a problem stopping playback")}),c.reject(e)}),l.always(function(){return u.hide()})}}var n=e.model,i=n.get("Session"),a=n.server,c=r.a.Deferred(),u=new l.a,d=u.promise;return d.done(function(e){return t(e)}),d.fail(function(){return c.reject()}),o.a.trigger("show:modal",u),c.promise()}var a=n(13),r=n.n(a),o=n(19),s=n(3),l=n(2065);t.a=i},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(96),l=n(2066),c=n.n(l),u=s.a.extend({name:"stopMediaModal",className:"stop-media-modal select-modal modal modal-sm fade",template:c.a,ui:{stopMediaBtn:".stop-media-btn",messageContainer:".message-container",message:".message"},events:o.a.extend({"click .stop-media-btn":"onStopMediaClick"},s.a.prototype.events),initialize:function(){this.promise=a.a.Deferred()},onHide:function(e){s.a.prototype.onHide.apply(this,arguments),this.promise.reject()},
onStopMediaClick:function(e){e.preventDefault();var t=this.ui.message.val();this.promise.resolve(t)}});t.a=u},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-exclamation-mark"></i> '+l(i(n(5)).call(t,"Stop this item",{hash:{},data:o}))+'</h4> </div> <div class="modal-body"> <p class="confirm-message"> '+l(i(n(5)).call(t,"Do you wish to stop this item's playback?",{hash:{},data:o
}))+"<br/> "+l(i(n(5)).call(t,"You can add a message to the user below.",{hash:{},data:o}))+' </p> <div class="message-container"> <textarea class="message form-control"></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+l(i(n(5)).call(t,"Cancel",{hash:{},data:o
}))+'</button> <button type="button" class="stop-media-btn btn btn-lg btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+l(i(n(5)).call(t,"Stop",{hash:{},data:o}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){"use strict";function i(e){function t(){i.fetch().done(function(){var a=i.get("mappingState"),r=e.value&&a===s.b,o=!e.value&&a===s.a;a===s.c||r||o?n||(n=setInterval(t,d)):(n=clearInterval(n),
i.get("isWaiting")&&i.set("remoteAccessState",s.g),u.resolve())})}var n,i=e.cloudAccount,a=i.server.get("pmp").get("settings"),c=a.get("PublishServerOnPlexOnlineKey"),u=r.a.Deferred(),d=500;if(!i.get("isWaiting")){var p=e.value?s.d:s.e;i.set("remoteAccessState",p)}var h=i.previous("remoteAccessState"),f=c.save({PublishServerOnPlexOnlineKey:e.value},{timeout:0});return f.done(t),f.fail(function(t){var n
;n=e.value?Object(l.default)("There was a problem connecting your server."):Object(l.default)("There was a problem disconnecting your server."),o.a.trigger("show:alert",{type:"error",message:n}),i.set("remoteAccessState",h),u.reject(t)}),u.promise()}var a=n(13),r=n.n(a),o=n(19),s=n(620),l=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.cloudAccount,n={cloudAccount:t,value:!1},i=o.a.execute("connectServer",n);return i=i.then(function(){return n.value=!0,
o.a.execute("connectServer",n)}),i=i.then(function(){if(t.get("mappingError"))return r.a.Deferred().reject().promise()})}var a=n(13),r=n.n(a),o=n(43);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.getXHROptions("/api/claim/token"),i=s.a.ajax(n).promise();return i=i.then(function(t){var n=f.a.parseXML(t),i=n.token,a=d.join("/myplex/claim",{token:i}),r=e.getXHROptions(a,{type:"POST"});return s.a.ajax(r).promise()})}function a(e,t,n){var i=d.join("/myplex/account",{username:e,
password:t}),a=n.getXHROptions(i,{type:"PUT"});return s.a.ajax(a).promise()}function r(e){var t=e.cloudAccount,n=e.username,r=e.password,o=e.claim,l=void 0!==o&&o,d=s.a.Deferred(),g=t.server,m=Object(p.c)("appModel"),y=m.get("user"),b=m.get("cloudServer"),I=g.get("accessToken");g.set("accessToken",y.get("authToken"));var S=l?i(g,b):a(n,r,g);return S.done(function(e){var n=c.a.isObject(e)?e:f.a.parseXML(e);n&&"invalid"===n.signInState?(u.a.trigger("show:alert",{type:"error",
message:Object(v.default)("The username or password is incorrect.")}),d.reject()):(g.set({myPlexSigninState:h.b,myPlexUsername:y.get("email")}),t.set({signedIn:!0,username:y.get("email")}),d.resolve())}),S.fail(function(e){g.set("accessToken",I),!0===t.get("signedIn")&&t.set("signedIn",!1);var n=void 0;n=401===e.status?Object(v.default)("The username or password is incorrect."):Object(v.default)("There was a problem signing in to Plex."),u.a.trigger("show:alert",{type:"error",message:n}),
d.reject(e)}),d.promise()}var o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(19),d=n(18),p=n(16),h=n(122),f=n(74),v=n(3);t.a=r},function(e,t,n){"use strict";function i(e){var t=new h.c({machineIdentifier:e},{onlyIfCached:!0});if(!u.a.isEmpty(t))return t}function a(e){var t=e.get("pmp").get("cloudAccount"),n=t.destroy();return n.done(function(){e.set({accessToken:void 0,myPlexSigninState:h.a,myPlexSubscription:!1})}),n}function r(e){e.trigger("destroy",e,e.collection),e.cache.remove(e)}function o(e){
function t(){var e;if(c)e=c.destroy({wait:!0});else{var t="/api/servers/"+g.id,n=u.a.extend(s.server.getXHROptions(t),{type:"DELETE"});e=l.a.ajax(n)}if(g){if(g.get("connected")&&g.get("myPlexSigninState")===h.b){var i=g.get("pmp").get("cloudAccount");e=e.then(function(){return i.fetch()}),e=e.then(function(){return a(g)})}!1===g.get("connected")?r(g):e.always(function(){d.a.trigger("test:server",g),g.populate().fail(function(){r(g)})})}return e.always(function(){y.hide()}),e.promise()}
var n,o=p.c("appModel"),s=o.get("user"),c=e.device,g=e.server||i(c.get("clientIdentifier"))
;n=c?c.get("isPersonalCloudServer")?Object(f.default)("If you remove this Plex Cloud server, all your Plex libraries, shares, and metadata will be deleted! Your media files will not be affected. This cannot be undone."):Object(f.default)("If you remove the server, all syncs and shares associated with the server will be lost and you will need to sign the server in again to restore access to Plex."):Object(f.default)("Are you sure you want to remove this server?");var m={
title:Object(f.default)("Remove Server"),message:n,confirmLabel:Object(f.default)("Remove"),cancelLabel:Object(f.default)("Cancel"),async:!0,hasDanger:!0};c&&(m.requireDoubleConfirm=!0,m.doubleConfirmMessage=Object(f.default)("Are you sure you want to remove this server?"),m.doubleConfirmLabel=Object(f.default)("Yes, I'm sure"));var y=new v.a(m),b=y.promise;return b=b.then(function(){return t()}),d.a.trigger("show:modal",y),b}
var s=n(13),l=n.n(s),c=n(10),u=n.n(c),d=n(19),p=n(16),h=n(122),f=n(3),v=n(65);t.a=o},function(e,t,n){"use strict";function i(e){var t=e.server,n={download:!1===e.download?"0":"1"},i=l.join("/updater/check",n),a=s.a.extend(t.getXHROptions(i),{type:"PUT"}),o=e.initialState||"checking",c=t.get("pmp").get("update");c.set("state",o);var u=r.a.ajax(a).promise();return u.fail(function(){c.set("state","error")}),u}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(18);t.a=i},function(e,t,n){"use strict"
;function i(e){function t(){var e=n.get("pmp").get("update");return r.a.ajax(i).promise().then(function(){e.set("state","installing"),n.set("isInstallingServerUpdate",!0)},function(){e.set("state","error"),n.set("isInstallingServerUpdate",!1)})}var n=e.server,i=s.a.extend(n.getXHROptions("/updater/apply"),{type:"PUT"}),a=void 0;n.get("activeConnection").get("isLoopback")||(a=new u.a({title:Object(c.default)("Remote Installation"),confirmLabel:Object(c.default)("Continue"),
cancelLabel:Object(c.default)("Cancel"),message:Object(c.default)("The installer may display dialogs that require input. Make sure you have desktop access to the computer running Plex Media Server before continuing."),hasDanger:!0}),l.a.trigger("show:modal",a));var o=a?a.promise:r.a.Deferred().resolve().promise();return o=o.then(function(){return t()})}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){
var t=Object(o.c)("appModel").get("settings"),n=t.get("dismissedUnclaimedServers"),i=n.indexOf(e.id)>-1,l=a.c.history.getFragment();i||/^\!\/setup/.test(l)||r.a.trigger("show:bar","alertbar",new s.a({model:e}))}t.a=i;var a=n(87),r=n(19),o=n(16),s=n(2074)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(101),o=n(16),s=n(86),l=n(30),c=n(182),u=n(301),d=n(2076),p=n.n(d),h=u.a.extend({name:"ClaimServerAlertBarView",className:"claim-server-alert-bar alert-bar notify",template:p.a,
events:a.a.extend({"click .claim-link":"onClaimClick","click .reload-link":"onReloadClick"},u.a.prototype.events),initialize:function(){u.a.prototype.initialize.apply(this,arguments);var e=Object(o.c)("appModel").get("settings"),t=e.get("viewedUnclaimedServers");this.model.id&&-1===t.indexOf(this.model.id)&&(Object(o.c)("metrics").trackView({page:l._8,mode:"banner"},{interaction:!1}),e.save("viewedUnclaimedServers",t.concat(this.model.id)))},serializeData:function(){return{
showInsecureMessage:r.a.isHostedHttps&&!this.model.get("isSecure")}},onClaimClick:function(e){e.preventDefault(),Object(o.c)("metrics").trackClick({action:s.g,page:l._8,mode:"banner"}),Object(c.a)("serverSettings",{serverID:this.model.id,group:"general"}),this.hide()},onReloadClick:function(e){e.preventDefault(),window.location=this.model.resolveUrl("/web",{connection:this.model.get("connections").first()}),this.hide()},onCloseClick:function(e){u.a.prototype.onCloseClick.apply(this,arguments)
;var t=Object(o.c)("appModel").get("settings"),n=t.get("dismissedUnclaimedServers");this.model.id&&-1===n.indexOf(this.model.id)&&(Object(o.c)("metrics").trackClick({action:s.n,page:l._8,mode:"banner"}),t.save("dismissedUnclaimedServers",n.concat(this.model.id)))}});t.a=h},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression
;return s+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message">',(o=n.message)?r=o.call(t,{hash:{},data:a}):(o=t&&t.message,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+"</span> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <span class="message">'+d(i(n(5)).call(e,"An insecure media server has been found on your network.",{hash:{},data:t}))+'</span> <a class="reload-link link" href="#">'+d(i(n(5)).call(e,"Reload app insecurely",{hash:{},data:t}))+"</a> "}function l(e,t){var a="";return a+=' <span class="message">'+d(i(n(5)).call(e,"An unclaimed media server has been found on your network.",{hash:{},data:t}))+'</span> <a class="claim-link link" href="#">'+d(i(n(5)).call(e,"Claim it now",{hash:{},data:t
}))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return u+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> ',c=a.if.call(t,t&&t.showInsecureMessage,{hash:{},inverse:p.program(3,l,o),fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=" "})},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(l.c)("appModel").get("user"),n=void 0,i=void 0;if(e.username&&e.password){var a=s.join("/api/v2/users/signin",{includeSubscriptions:1});n=t.server.getXHROptions(a,{type:"POST",data:{login:e.username,password:e.password},xhrFields:{withCredentials:d.a.get("allowSSO")}}),i="password"}else{var g=s.join("/api/v2/user",{includeSubscriptions:1,"X-Plex-Token":e.accessToken});n=t.server.getXHROptions(g),i="code"}
var m=Object(v.a)(n);return m=m.then(function(n){return e.remember?c.a.restorePrevious():c.a.register(u.a.getInstance()),t.signIn(n)}),m.fail(function(t){var n=void 0;if(!e.silent){var i=t.responseText&&h.a.parseXML(t.responseText),a=i&&i.error,s=Array.isArray(a)?r.a.first(a):a;n=s?r.a.isObject(s)?Object(p.a)(s):s:Object(f.default)("There was a problem signing in to Plex."),o.a.trigger("show:alert",{type:"error",message:n})}}),m.done(function(){Object(l.c)("metrics").trackEvent({
event:"client:signin",interaction:!0,properties:{mode:i,firstRun:!!e.isFirstRun}})}),m}var a=n(10),r=n.n(a),o=n(19),s=n(18),l=n(16),c=n(209),u=n(621),d=n(62),p=n(428),h=n(74),f=n(3),v=n(801);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(c.c)("appModel").get("user"),n=s.a.pick(e,"username","email","password"),i=t.server.getXHROptions("/api/v2/users?includeSubscriptions=1",{type:"POST",data:n}),a=r.a.ajax(i).promise()
;return a=a.then(function(n){return e.remember?u.a.restorePrevious():u.a.register(d.a.getInstance()),t.signIn(n,{lockState:p.a.lockStates.UNLOCKED})}),a.fail(function(e){var t=void 0;if(422===e.status){var n=e.responseText&&f.a.parseXML(e.responseText),i=n&&n.error,a=Array.isArray(i)?s.a.first(i):i;t=a?s.a.isObject(a)?Object(h.a)(a):a:Object(v.default)("This account information is invalid.")}else t=Object(v.default)("There was a problem connecting to Plex.");l.a.trigger("show:alert",{
type:"error",message:t})}),a.done(function(){Object(c.c)("metrics").trackEvent({event:"client:signup",interaction:!0,properties:{firstRun:!!e.isFirstRun}})}),a}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(16),u=n(209),d=n(621),p=n(355),h=n(428),f=n(74),v=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=s.c("appModel"),n=t.get("user"),i=e.item.server;if(i.get("myPlexSigninState")!==l.b){var a=Object(c.default)("This server needs to be connected to Plex to sync its content.")
;return void o.a.trigger("show:alert",{type:"error",message:a})}if(!i.get("allowSync"))return void o.a.trigger("show:modal",new u.a({model:i}));var h=n.get("pmp").get("devices"),f=h.filterSyncDevices(e.item),v=r.a.clone(e);if(f.length){var g=new d.a({collection:f});g.promise.done(function(e){v.device=f.get(e),o.a.trigger("show:modal",new p.a(v))}),o.a.trigger("show:modal",g)}else o.a.trigger("show:alert",{type:"error",
message:Object(c.default)("You are not signed in to any sync capable devices.")})}var a=n(10),r=n.n(a),o=n(19),s=n(16),l=n(122),c=n(3),u=n(818),d=n(2081),p=n(1179);t.a=i},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <p class="text-muted">'+d(i(n(5)).call(e,"Everything you need to experience the best of Plex. Your subscription gives you premium features and exclusive access to new ones.",{hash:{},data:t}))+"</p> "}function l(e,t){var a="";return a+=' <p class="text-muted">'+d(i(n(5)).call(e,'The server "{1}" has not been claimed. This server must be claimed by an account with a Plex Pass subscription.',e&&e.friendlyName,{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-arrow-right"></i> '+d(i(n(5)).call(t,"Go Premium",{hash:{},data:o
}))+' </h4> </div> <div class="modal-body"> <p class="text-center"><i class="plex-image plex-pass"></i></p> <h4 class="text-center">'+d(i(n(5)).call(t,"This feature requires a Plex Pass subscription.",{hash:{},data:o}))+"</h4> ",c=a.if.call(t,t&&t.isClaimed,{hash:{},inverse:p.program(3,l,o),fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=' <p class="text-center"> <a class="btn btn-sm btn-primary" href="'+d((c=t&&t.plexPassUrl,
"function"==typeof c?c.apply(t):c))+'" target="_blank">'+d(i(n(5)).call(t,"Learn More",{hash:{},data:o}))+"</a> </p> </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(816),a=n(2082),r=n.n(a),o=i.a.extend({name:"selectDeviceModal",template:r.a,serializeData:function(){return{devices:this.collection.toJSON()}}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i=""
;return i+=' <li class="striped-list-item select-list-item"> <a class="media" data-value="'+h((n=e&&e.id,typeof n===f?n.apply(e):n))+'" href="#"> ',n=a.if.call(e,e&&e.name,{hash:{},inverse:v.program(4,c,t),fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.isCloudSync,{hash:{},inverse:v.noop,fn:v.program(6,u,t),data:t}),(n||0===n)&&(i+=n),i+=" </a> </li> "}function l(e,t){var a="";return a+=" "+h(i(n(1177)).call(e,e&&e.name,25,{hash:{},data:t}))+" "}function c(e,t){
var a="";return a+=" "+h(i(n(1177)).call(e,e&&e.device,25,{hash:{},data:t}))+" "}function u(e,t){return'<i class="cloud-sync-icon glyphicon cloud"></i>'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h=this.escapeExpression,f="function",v=this
;return p+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon iphone"></i> '+h(i(n(5)).call(t,"Choose Destination",{hash:{},data:o}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <ul class="list select-list"> ',d=a.each.call(t,t&&t.devices,{hash:{},inverse:v.noop,fn:v.program(1,s,o),
data:o}),(d||0===d)&&(p+=d),p+=" </ul> </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(2084),r=n.n(a),o=i.a.ItemView.extend({className:"modal-body",template:r.a,events:{"click .try-again-link":"onTryAgainClick"},onTryAgainClick:function(e){e.preventDefault(),this.triggerMethod("request:state","form")}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-error-icon"><i class="glyphicon circle-exclamation-mark"></i></p> </div> <div class="col-sm-8"> <h4>'+l(i(n(5)).call(t,"There was a problem syncing this media.",{hash:{},data:o}))+'</h4> <h4><a class="try-again-link" href="#">'+l(i(n(5)).call(t,"Try again",{hash:{},data:o
}))+"</a></h4> </div> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(16),s=n(43),l=n(268),c=n(27),u=n(819),d=n(1180),p=n(2093),h=n(2101),f=n.n(h),v={video:"movie",audio:"track",photo:"photo"},g=i.a.Layout.extend({template:f.a,ui:{submitBtn:".submit-btn"},regions:{policyRegion:".policy-region",qualityRegion:".quality-region"},events:{"change input[name=title]":"onTitleChange","submit #sync-form":"onSubmit"},initialize:function(e){var t=o.c("appModel")
;if(this.device=e.device,this.model)this.tempModel=this.model.clone();else{var n,i,a=e.item,r=e.items;a.get("isPlaylist")?(n=a,i=v[a.get("playlistType")]):a.get("isMetadataList")?(n=a,i=Object(c.q)(a.get("firstItemType")).typeString):(n=a.has("childrenKey")?a.get("children"):a,i=Object(c.q)(a.get("type")).typeString),this.tempModel=new u.a({metadataType:i,title:l.a.title(a,{items:r}),rootTitle:this.getRootTitle(a),machineIdentifier:a.server.id,
clientIdentifier:this.device.get("clientIdentifier"),Location:{uri:l.a.uri(n,{items:r})}},{parent:a.server,server:t.get("user").server,device:this.device})}},serializeData:function(){return{syncItem:this.tempModel.toJSON(),isNew:this.tempModel.isNew()}},getRootTitle:function(e){return e.section?e.section.get("title"):e.channel?e.channel.get("title"):e.get("title")},onRender:function(){this.policyRegion.show(new d.a({model:this.tempModel,isSync:!0,isCloudSync:this.device.get("isCloudSync")})),
this.qualityRegion.show(new p.a({model:this.tempModel}))},onTitleChange:function(e){this.tempModel.set("title",e.currentTarget.value)},onSubmit:function(e){e.preventDefault();var t=this.ui.submitBtn;if(!t.hasClass("active")){t.addClass("active");var n=this.tempModel.save();n.done(r.a.bind(function(){if(this.model){var e=this.model.get("version")||0,t=r.a.omit(this.tempModel.toJSON(),"children");t.version=e+1,this.model.set(this.model.parse(t))}},this)),n=n.then(r.a.bind(function(){
return s.a.execute("refreshSyncLists",{server:this.tempModel.parent,silent:!0})},this)),n.done(this.whenRendered(function(){this.trigger("request:nextState")})),n.fail(this.whenRendered(function(){this.trigger("request:state","error")}))}}});t.a=g},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"VersionGeneratorMediaSettingsModel",context:["server"],syncedAttrs:{videoQuality:{type:a.a.integer,save:!0},videoResolution:{type:a.a.string,save:!0},maxVideoBitrate:{
type:a.a.integer,save:!0},audioBoost:{type:a.a.integer,save:!0},subtitleSize:{type:a.a.integer,save:!0},musicBitrate:{type:a.a.integer,save:!0},photoQuality:{type:a.a.integer,save:!0},photoResolution:{type:a.a.string,save:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(17),s=n(14),l=n(358),c=n(69),u=n(111),d=n(2088),p=o.a.extend({mixins:[l.a],name:"VersionGeneratorMetadataListModel",context:["server","generator"],collectionName:"metadataItems",url:function(){
var e=r.join([a.a.result(this.generator,"url"),"items"]);return this.getPaginatedUrl(e)},sessionAttrs:{currentPageStart:s.a.integer,currentPageSize:s.a.integer,populatedRange:s.a.object},syncedAttrs:{totalSize:s.a.integer,identifier:s.a.string,mediaTagPrefix:s.a.string,mediaTagVersion:s.a.string,viewGroup:s.a.string,title:s.a.string},syncedRelations:{metadataItems:{relationClass:d.a,rootPropertyName:"Metadata",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{
populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},augmentResponseText:function(e,t){return t===c.a.xml?Object(u.b)(e):e}});t.a=p},function(e,t,n){"use strict";var i=n(25),a=n(2089),r=i.a.extend({name:"VersionGeneratorMetadataCollection",context:["server","generator"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(17),o=n(14),s=n(94),l=r.a.extend({name:"VersionGeneratorMetadataModel",context:["server","generator"],
idAttribute:"ratingKey",syncedAttrs:a.a.extend({},s.a.prototype.syncedAttrs,{processingState:o.a.string,processingStateContext:o.a.string})});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"VersionGeneratorPolicyModel",context:["server"],syncedAttrs:{scope:{type:a.a.string,save:!0},value:{type:a.a.integer,save:!0},unwatched:{type:a.a.boolean,save:!0}},defaults:{unwatched:!1}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({
name:"VersionGeneratorStatusModel",context:["server"],syncedAttrs:{state:a.a.string,failureCode:a.a.string,failure:a.a.string,itemsCount:a.a.integer,itemsCompleteCount:a.a.integer,itemsSuccessfulCount:a.a.integer,itemsFailedCount:a.a.integer,itemsDisabledCount:a.a.integer,totalSize:a.a.integer}});t.a=r},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hidden"}function l(e,t){return"checked"
}function c(e,t){var n,i="";return i+='value="'+m((n=e&&e.policy,n=null==n||!1===n?n:n.value,typeof n===g?n.apply(e):n))+'"'}function u(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.isCloudSync,{hash:{},inverse:y.program(10,p,t),fn:y.program(8,d,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function d(e,t){var a=""
;return a+=" "+m(i(n(5)).call(e,"A large number of sync items may be time-consuming to convert, and the time to upload is dependent on your bandwidth. A large number of high quality items may take a very long time. If you have trouble, try reducing the number of items or your quality setting.",{hash:{},data:t}))+" "}function p(e,t){var a=""
;return a+=" "+m(i(n(5)).call(e,"A large number of sync items may be time-consuming to convert and transfer to your device. If you have trouble, try reducing the number of items.",{hash:{},data:t}))+" "}function h(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"A large number of items may be time-consuming to convert. If you have trouble, try reducing the number of items.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var f,v="",g="function",m=this.escapeExpression,y=this;return v+='<div class="form-group ',f=a.unless.call(t,t&&t.showUnwatched,{hash:{},inverse:y.noop,fn:y.program(1,s,o),data:o}),(f||0===f)&&(v+=f),v+='"> <label class="control-label"> <input type="checkbox" id="convert-policy-unwatched" name="policyUnwatched" ',f=a.if.call(t,(f=t&&t.policy,null==f||!1===f?f:f.unwatched),{hash:{},inverse:y.noop,fn:y.program(3,l,o),data:o}),(f||0===f)&&(v+=f),v+="> "+m(i(n(5)).call(t,"Unwatched only",{hash:{},
data:o}))+' </label> </div> <div class="form-group ',f=a.unless.call(t,t&&t.isDirectory,{hash:{},inverse:y.noop,fn:y.program(1,s,o),data:o}),(f||0===f)&&(v+=f),v+='"> <label class="control-label"> <input type="checkbox" id="convert-policy-scope" name="policyScope" value="count" ',f=i(n(34)).call(t,(f=t&&t.policy,null==f||!1===f?f:f.scope),"count",{hash:{},inverse:y.noop,fn:y.program(3,l,o),data:o}),(f||0===f)&&(v+=f),v+="> "+m(i(n(5)).call(t,"Limit to",{hash:{},data:o
}))+' <input type="number" id="convert-policy-value" name="policyValue" class="policy-value-control form-control" ',f=a.if.call(t,(f=t&&t.policy,null==f||!1===f?f:f.value),{hash:{},inverse:y.noop,fn:y.program(5,c,o),data:o}),(f||0===f)&&(v+=f),v+="> "+m(i(n(5)).call(t,"items",{hash:{},data:o}))+' </label> <p class="convert-warning help-block ',f=a.unless.call(t,t&&t.showLimitWarning,{hash:{},inverse:y.noop,fn:y.program(1,s,o),data:o}),(f||0===f)&&(v+=f),
v+='"> <i class="convert-warning-icon glyphicon circle-exclamation-mark"></i> <span class="convert-warning-text"> ',f=a.if.call(t,t&&t.isSync,{hash:{},inverse:y.program(12,h,o),fn:y.program(7,u,o),data:o}),(f||0===f)&&(v+=f),v+=" </span> </p> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(16),r=n(1181),o=n(2094),s=n(2095),l=n(146),c=n(27),u=n(2096),d=n.n(u),p=i.a.ItemView.extend({className:"sync-quality-container form-group",template:d.a,events:{
"change select[name=videoQuality]":"onVideoQualityChange","change select[name=musicQuality]":"onMusicQualityChange","change select[name=photoQuality]":"onPhotoQualityChange"},initialize:function(e){var t=Object(a.c)("appModel").get("settings");this.mediaSettings=this.model.get("mediaSettings"),this.mediaSettings.has("audioBoost")||this.mediaSettings.set("audioBoost",t.get("audioBoost")),this.mediaSettings.has("subtitleSize")||this.mediaSettings.set("subtitleSize",t.get("subtitleSize")),
this.initVideoQuality(),this.initMusicQuality(),this.initPhotoQuality()},initVideoQuality:function(){this.availableVideoQualities=l.a.getAvailableQualities({lowestQualityIndex:r.a}).reverse();var e=Object(a.c)("appModel").get("settings"),t=this.mediaSettings.get("maxVideoBitrate"),n=t?l.a.getNearestIndexToBitrate(t):e.get(l.a.getSyncQualityAttribute());this.updateVideoQuality(l.a.getQualityByIndex(n))},initMusicQuality:function(){this.availableMusicQualities=o.a.getAvailableQualities().reverse()
;var e=Object(a.c)("appModel").get("settings"),t=this.mediaSettings.get("musicBitrate"),n=t?o.a.getNearestIndexToBitrate(t):e.get(o.a.getSyncQualityAttribute());this.updateMusicQuality(o.a.getQualityByIndex(n))},initPhotoQuality:function(){this.availablePhotoQualities=s.a.getAvailableQualities().reverse();var e=Object(a.c)("appModel").get("settings"),t=this.mediaSettings.get("photoQuality"),n=t?s.a.getNearestIndexToQuality(t):e.get(s.a.getSyncQualityAttribute())
;this.updatePhotoQuality(s.a.getQualityByIndex(n))},serializeData:function(){return{typeElement:Object(c.r)(this.model.get("metadataType")).mediaType,supportsOriginalQuality:this.model.server.supports("syncOriginalQuality"),availableVideoQualities:this.availableVideoQualities,selectedVideoQuality:this.selectedVideoQuality,availableMusicQualities:this.availableMusicQualities,selectedMusicQuality:this.selectedMusicQuality,availablePhotoQualities:this.availablePhotoQualities,
selectedPhotoQuality:this.selectedPhotoQuality}},updateVideoQuality:function(e){this.selectedVideoQuality=e,this.mediaSettings.set({videoQuality:e.videoQuality,videoResolution:e.videoResolution,maxVideoBitrate:e.bitrate})},updateMusicQuality:function(e){this.selectedMusicQuality=e,this.mediaSettings.set({musicBitrate:e.bitrate})},updatePhotoQuality:function(e){this.selectedPhotoQuality=e,this.mediaSettings.set({photoQuality:e.photoQuality,photoResolution:e.photoResolution})},
saveQualityIndex:function(e,t){var n=parseInt(t,10);return Object(a.c)("appModel").get("settings").save(e.getSyncQualityAttribute(),n),e.getQualityByIndex(n)},onVideoQualityChange:function(e){var t=this.saveQualityIndex(l.a,e.currentTarget.value);this.updateVideoQuality(t)},onMusicQualityChange:function(e){var t=this.saveQualityIndex(o.a,e.currentTarget.value);this.updateMusicQuality(t)},onPhotoQualityChange:function(e){var t=this.saveQualityIndex(s.a,e.currentTarget.value)
;this.updatePhotoQuality(t)}});t.a=p},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(622),o=a.a.extend({},r.a,{type:"music",qualities:{bitrate:[96,128,192,320]},getNearestIndexToBitrate:function(e){return this.getNearestIndex(this.qualities.bitrate,e)}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(622),o=n(3),s=a.a.extend({},r.a,{type:"photo",qualities:{photoResolution:["720x480","1280x720","1920x1080","3840x2160"],photoQuality:[24,49,74,99],title:function(){
return[Object(o.default)("Low"),Object(o.default)("Medium"),Object(o.default)("High"),Object(o.default)("Highest")]}},getNearestIndexToQuality:function(e){return this.getNearestIndex(this.qualities.photoQuality,e)}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <select class="sync-quality-select" name="videoQuality"> ',n=a.if.call(e,e&&e.supportsOriginalQuality,{
hash:{},inverse:m.noop,fn:m.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.each.call(e,e&&e.availableVideoQualities,{hash:{},inverse:m.noop,fn:m.programWithDepth(5,u,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function l(e,t){var a,r="";return r+=' <option value="-1" ',a=i(n(34)).call(e,(a=e&&e.selectedVideoQuality,null==a||!1===a?a:a.index),-1,{hash:{},inverse:m.noop,fn:m.program(3,c,t),data:t}),(a||0===a)&&(r+=a),r+="> "+y(i(n(5)).call(e,"Original",{hash:{},data:t}))+" </option> "
}function c(e,t){return"selected"}function u(e,t,a){var r,o="";return o+=' <option value="'+y((r=e&&e.index,typeof r===b?r.apply(e):r))+'" ',r=i(n(34)).call(e,(r=a&&a.selectedVideoQuality,null==r||!1===r?r:r.index),e&&e.index,{hash:{},inverse:m.noop,fn:m.program(3,c,t),data:t}),(r||0===r)&&(o+=r),o+="> "+y(i(n(519)).call(e,e,{hash:{},data:t}))+" </option> "}function d(e,t){var n,i="";return i+=' <select class="sync-quality-select" name="musicQuality"> ',
n=a.each.call(e,e&&e.availableMusicQualities,{hash:{},inverse:m.noop,fn:m.programWithDepth(8,p,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function p(e,t,a){var r,o="";return o+=' <option value="'+y((r=e&&e.index,typeof r===b?r.apply(e):r))+'" ',r=i(n(34)).call(e,(r=a&&a.selectedMusicQuality,null==r||!1===r?r:r.index),e&&e.index,{hash:{},inverse:m.noop,fn:m.program(3,c,t),data:t}),(r||0===r)&&(o+=r),o+="> "+y(i(n(2099)).call(e,e,{hash:{},data:t}))+" </option> "}function h(e,t){var n,i=""
;return i+=' <select class="sync-quality-select" name="photoQuality"> ',n=a.each.call(e,e&&e.availablePhotoQualities,{hash:{},inverse:m.noop,fn:m.programWithDepth(11,f,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function f(e,t,a){var r,o="";return o+=' <option value="'+y((r=e&&e.index,typeof r===b?r.apply(e):r))+'" ',r=i(n(34)).call(e,(r=a&&a.selectedPhotoQuality,null==r||!1===r?r:r.index),e&&e.index,{hash:{},inverse:m.noop,fn:m.program(3,c,t),data:t}),(r||0===r)&&(o+=r),
o+="> "+y((r=e&&e.title,typeof r===b?r.apply(e):r))+" </option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m=this,y=this.escapeExpression,b="function";return v=i(n(34)).call(t,t&&t.typeElement,"video",{hash:{},inverse:m.noop,fn:m.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=i(n(34)).call(t,t&&t.typeElement,"audio",{hash:{},inverse:m.noop,fn:m.program(7,d,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=i(n(34)).call(t,t&&t.typeElement,"photo",{hash:{},
inverse:m.noop,fn:m.program(10,h,o),data:o}),(v||0===v)&&(g+=v),g+=' <p class="help-block">'+y(i(n(5)).call(t,"Plex will convert your media to this quality and transfer the converted media to your device.",{hash:{},data:o}))+"</p> "})},function(e,t,n){"use strict";function i(e){if(e.index===a.a.CONVERT_AUTOMATICALLY)return Object(r.default)("Convert Automatically");if(e.index===a.a.ORIGINAL)return Object(r.default)("Original");var t=e.bitrate||e.maxVideoBitrate,n=e.videoResolution
;if(!t&&!n)return Object(r.default)("Unknown");var i=[];if(t&&i.push(Object(s.default)(t)),n&&(!t||t>=1e3)){var l=a.a.getResolutionFromSize(n);i.push(Object(o.default)(l))}var c=i.join(", ");return e.description?c+" "+e.description:c}Object.defineProperty(t,"__esModule",{value:!0});var a=n(146),r=n(3),o=n(366),s=n(520);t.default=i},function(e,t,n){"use strict";function i(e){if(!(e>0))return"";var t=e/1e3;return(t=t>=.1?Number(t.toFixed(1)):t)+" Mbps"}t.a=i},function(e,t,n){
var i=n(2100).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";function i(e){return Object(a.a)(e.bitrate)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(1184)},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return d(i(n(5)).call(e,"Sync",{hash:{},data:t}))}function l(e,t){return d(i(n(5)).call(e,"Save",{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return u+='<form id="sync-form" class="settings-container"> <div class="modal-body"> <div class="form-group"> <label class="control-label" for="sync-title">'+d(i(n(5)).call(t,"Title",{hash:{},data:o}))+'</label> <input type="text" id="sync-title" name="title" class="form-control" value="'+d((c=t&&t.syncItem,c=null==c||!1===c?c:c.title,"function"==typeof c?c.apply(t):c))+'" placeholder="'+d((c=t&&t.syncItem,
c=null==c||!1===c?c:c.title,"function"==typeof c?c.apply(t):c))+'"> </div> <div class="policy-region"></div> <div class="quality-region"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">'+d(i(n(5)).call(t,"Cancel",{hash:{},data:o}))+'</button> <button type="submit" class="submit-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">',c=a.if.call(t,t&&t.isNew,{hash:{},inverse:p.program(3,l,o),
fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+="</span> </button> </div> </form> "})},function(e,t,n){"use strict";var i=n(22),a=n(182),r=n(2103),o=n.n(r),s=i.a.ItemView.extend({className:"modal-body",template:o.a,events:{"click .status-link":"onStatusClick"},onStatusClick:function(e){e.preventDefault(),this.triggerMethod("request:nextState"),Object(a.a)("syncedContent",{serverID:this.options.server.id,deviceID:this.options.device.id})}});t.a=s},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-success-icon"><i class="glyphicon ok-2"></i></p> </div> <div class="col-sm-8"> <h4>'+l(i(n(5)).call(t,"This media is being synced.",{hash:{},data:o
}))+"</h4> <h4>"+l(i(n(5)).call(t,"Watch the status of the sync {1}here{2}.",'<a class="status-link" href="#">',"</a>",{hash:{},data:o}))+"</h4> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s=""
;return s+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon download"></i> '+(0,this.escapeExpression)(i(n(5)).call(t,"Sync",{hash:{},data:o}))+'</h4> </div> <div class="modal-body-region"></div> </div> </div> '})},function(e,t,n){"use strict";function i(e){
var t=Object(s.c)("appModel").get("user"),n=t.get("homeUsers"),i=n.get(t.id);if(i.get("protected")||n.length>1)return r.a.Deferred().reject().promise();var a=new c.a({model:i,isEditing:!0,isEditWarning:!0});return a.promise.always(function(e){e||o.a.trigger("show:modal",new l.a({type:"home"}))}),o.a.trigger("show:modal",a),a.promise}var a=n(13),r=n.n(a),o=n(19),s=n(16),l=n(1185),c=n(521);t.a=i},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-info"></i> '+l(i(n(5)).call(t,"Welcome to Plex Home",{hash:{},data:o
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <p>'+l(i(n(5)).call(t,"{1}, so we've made a few changes to help keep your media safe.",t&&t.intro,{hash:{},data:o}))+"</p> <ol> <li>"+l(i(n(5)).call(t,"We've increased the security requirements on this server, so anything communicating with it will need to be signed in to a Plex account.",{hash:{},data:o
}))+"</li> <li>"+l(i(n(5)).call(t,"We've disabled DLNA to prevent any DLNA-enabled device from browsing and playing media without a password or PIN. You can change this preference in your {1}server settings{2}.",'<a class="server-settings-btn" href="#">',"</a>",{hash:{},data:o
}))+"</li> </ol> <p>"+l(i(n(5)).call(t,"For more information on Plex Home security settings, please see the {1}Plex Home section{2} on our support site.",'<a href="https://support.plex.tv/hc/en-us/sections/200641063" target="_blank">',"</a>",{hash:{},data:o}))+'</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-lg btn-primary" data-dismiss="modal">'+l(i(n(5)).call(t,"OK",{hash:{},data:o}))+"</button> </div> </div> </div> "})},function(e,t,n){"use strict"
;var i=n(301),a=n(2108),r=n.n(a),o=i.a.extend({className:"user-select-alert-bar",template:r.a});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<span class="message">',(o=n.message)?r=o.call(t,{hash:{},data:a}):(o=t&&t.message,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+"</span> "})},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(50),c=n(19),u=n(16),d=n(43),p=n(3),h=n(1185),f=n(1186),v=n(2113),g=n.n(v),m=r.a.Layout.extend({className:"user-select-modal-pin-container",template:g.a,ui:{digitContainer:".pin-digit-container",input:".pin-input",digits:".pin-digit",loading:".loading",removeBtn:".remove-btn",saveBtn:".save-btn",pinForgotLink:".pin-forgot-link"},regions:{userList:".user-select-list"},events:{"keydown input":"onKeyDown","input input":"onInput",
"keyup input":"onKeyUp","focus input":"onFocus","blur input":"onBlur","change input":"onChange","animationend .pin-input-container":"onInputsAnimationEnd","webkitAnimationEnd .pin-input-container":"onInputsAnimationEnd","oAnimationEnd .pin-input-container":"onInputsAnimationEnd","click .back-btn":"onBackClick","click .remove-btn":"onRemoveClick","submit #pin-form":"onSubmit","click .pin-digit":"onPINClick","keydown .save-btn":"onSaveKeyDown"},onlyAfterRender:["confirmUser"],
initialize:function(e){var t=u.c("appModel");this.isForced=e.isForced,this.isEditing=e.isEditing,this.isEditWarning=e.isEditWarning,this.showBackButton=e.showBackButton,this.focusDelay=e.focusDelay,this.user=t.get("user"),this.isEditConfirmation=this.isEditing&&this.model.get("protected")&&!this.model.get("restricted")},serializeData:function(){return{isEditing:this.isEditing&&!this.isEditConfirmation,isEditWarning:this.isEditWarning,isEditConfirmation:this.isEditConfirmation,
hasCurrentPIN:this.model.get("protected"),showBackButton:this.showBackButton}},focusInput:function(){this.ui.input.val(""),this.ui.input.focus()},getPIN:function(){return this.ui.input.val()},editPIN:function(e){if(!this.ui.saveBtn.isDisabled()){this.ui.saveBtn.addClass("disabled");this.savePIN(e).fail(this.whenRendered(function(){this.ui.saveBtn.removeClass("disabled"),c.a.trigger("show:alert",{type:"error",message:Object(p.default)("This PIN could not be saved.")})}))}},removePIN:function(){
if(!this.ui.removeBtn.isDisabled()){this.ui.removeBtn.addClass("disabled");this.savePIN("").fail(this.whenRendered(function(){this.ui.removeBtn.removeClass("disabled"),c.a.trigger("show:alert",{type:"error",message:Object(p.default)("This PIN could not be removed.")})}))}},savePIN:function(e){this.ui.loading.removeClass("hidden");var t={pin:e};this.currentPin&&(t.currentPin=this.currentPin);var n=this.model.save(t,{wait:!0});return n.done(s.a.bind(function(){this.model.unset("pin"),
this.model.unset("currentPin"),this.model.set("protected",!!e),this.model.id===this.user.id&&(e?this.user.set("pin",this.user.hashPIN(e)):this.user.unset("pin"),this.user.set("home",this.user.hasHome())),this.trigger("resolve",e),e&&this.user.get("homeUsers").length<2&&c.a.trigger("show:modal",new h.a({type:"pin"}))},this)),n.always(this.whenRendered(function(){this.ui.loading.addClass("hidden")})),n},confirmUser:function(e){this.ui.loading.removeClass("hidden");var t=d.a.execute("switchUser",{
homeUser:this.model,pin:e,allowGuestLock:!this.isEditing});t.done(s.a.bind(function(){this.isEditing?(this.isEditConfirmation=!1,this.currentPin=e,this.render()):this.trigger("resolve",e)},this)),t.fail(this.whenRendered(function(){this.ui.digitContainer.addClass("shake"),this.ui.input.val(""),this.focusInput()})),t.always(this.whenRendered(function(){this.ui.loading.addClass("hidden")}))},renderPIN:function(){var e=this.getPIN(),t=e.length,n=this.isEditing&&!this.isEditConfirmation
;this.ui.digits.each(function(i,r){var o=e[i]||"";o&&!n&&(o="&bull;"),a()(r).toggleClass("current",i===t).html(o)})},onRender:function(){this.userList.show(new f.a({model:this.model,disabled:!0})),this.ui.pinForgotLink.toggleClass("hidden",this.model.get("restricted")),l.a.mobile||setTimeout(s.a.bind(this.focusInput,this),this.focusDelay)},onKeyDown:function(e){var t=e.which;if(13!==t&&8!==t&&46!==t&&229!==t){var n=t>=48&&t<=57,i=t>=96&&t<=105;n||i||e.preventDefault()}},onInput:function(e){
var t=a()(e.currentTarget),n=t.val(),i=n.length;if(!/[0-9]/.test(n.charAt(n.length-1)))return void t.val(n.slice(0,i-1));4===n.length&&(!this.isEditing||this.isEditConfirmation?(t.blur(),this.confirmUser(this.getPIN())):this.ui.saveBtn.focus())},onKeyUp:function(e){this.renderPIN()},onFocus:function(e){this.renderPIN()},onBlur:function(e){this.renderPIN(),this.ui.digits.removeClass("current")},onChange:function(e){this.renderPIN()},onInputsAnimationEnd:function(e){
a()(e.currentTarget).removeClass("shake")},onBackClick:function(e){e.preventDefault(),this.trigger("change:pane","users")},onRemoveClick:function(e){e.preventDefault(),this.removePIN()},onSubmit:function(e){e.preventDefault();var t=this.getPIN();if(4!==t.length)return void c.a.trigger("show:alert",{type:"error",message:Object(p.default)("Please enter a 4 digit PIN.")});this.isEditing&&!this.isEditConfirmation?this.editPIN(t):this.confirmUser(t)},onSaveKeyDown:function(e){var t=e.which
;8!==t&&46!==t||(e.preventDefault(),this.ui.input.val(""),this.focusInput())},onPINClick:function(){this.focusInput()}});t.a=m},function(e,t,n){"use strict";function i(e,t){return t?e.get("Media").findIndex(function(e){return e.id===t}):0}t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e.Part;return r.a.indexOf(n,r.a.findWhere(n,{key:t}))}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){
return' <div class="user-select-container"> '}function o(e,t){return' <a class="user-select-container" href="#"> '}function s(e,t){return" </div> "}function l(e,t){return" </a> "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var c,u="",d=this;return c=n.if.call(t,t&&t.disabled,{hash:{},inverse:d.program(3,o,a),fn:d.program(1,r,a),data:a}),(c||0===c)&&(u+=c),
u+=' <div class="user-select-top"> <div class="user-poster img-circle"></div> <i class="protected-icon user-icon glyphicon lock"></i> <i class="admin-icon user-icon glyphicon crown"></i> </div> <div class="username"></div> ',c=n.if.call(t,t&&t.disabled,{hash:{},inverse:d.program(7,l,a),fn:d.program(5,s,a),data:a}),(c||0===c)&&(u+=c),u+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){
return' <a class="back-btn btn-gray" href="#"><i class="glyphicon chevron-left"></i></a> '}function l(e,t){var a="";return a+=' <i class="modal-icon glyphicon pencil"></i> '+b(i(n(5)).call(e,"Edit PIN",{hash:{},data:t}))+" "}function c(e,t){var n;return n=a.if.call(e,e&&e.isEditConfirmation,{hash:{},inverse:I.program(8,d,t),fn:I.program(6,u,t),data:t}),n||0===n?n:""}function u(e,t){var a="";return a+=" "+b(i(n(5)).call(e,"Confirm Current PIN",{hash:{},data:t}))+" "}function d(e,t){var a=""
;return a+=" "+b(i(n(5)).call(e,"Enter PIN",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=' <p class="help-block"> '+b(i(n(5)).call(e,"You do not currently have a PIN. This will allow any users in this home to switch to your account.",{hash:{},data:t}))+" </p> "}function h(e,t){var r,o="";return o+=' <div class="modal-footer"> ',r=a.if.call(e,e&&e.hasCurrentPIN,{hash:{},inverse:I.noop,fn:I.program(13,f,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,e&&e.isEditWarning,{hash:{},
inverse:I.program(17,g,t),fn:I.program(15,v,t),data:t}),(r||0===r)&&(o+=r),o+=' <button type="submit" class="save-btn btn-link">'+b(i(n(5)).call(e,"Save",{hash:{},data:t}))+"</button> </div> "}function f(e,t){var a="";return a+=' <button type="button" class="remove-btn btn-gray pull-left">'+b(i(n(5)).call(e,"Remove",{hash:{},data:t}))+"</button> "}function v(e,t){var a="";return a+=' <button type="button" class="skip-btn btn-gray" data-dismiss="modal">'+b(i(n(5)).call(e,"Skip",{hash:{},data:t
}))+"</button> "}function g(e,t){var a="";return a+=' <button type="button" class="cancel-btn btn-gray" data-dismiss="modal">'+b(i(n(5)).call(e,"Cancel",{hash:{},data:t}))+"</button> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var m,y="",b=this.escapeExpression,I=this;return y+='<div class="modal-header"> <div class="home-user-dropdown-container pull-right"></div> <h4 class="modal-title"> ',m=a.if.call(t,t&&t.showBackButton,{hash:{},inverse:I.noop,fn:I.program(1,s,o),
data:o}),(m||0===m)&&(y+=m),y+=" ",m=a.if.call(t,t&&t.isEditing,{hash:{},inverse:I.program(5,c,o),fn:I.program(3,l,o),data:o}),(m||0===m)&&(y+=m),y+=' <span class="loading loading-sm hidden"></span> </h4> </div> <form id="pin-form"> <div class="modal-body"> <ul class="tile-list user-select-list disabled"></ul> <input type="number" pattern="[0-9]*" class="pin-input"> <a class="pin-forgot-link btn-gray hidden" href="https://www.plex.tv/pin-reset/" target="_blank">'+b(i(n(5)).call(t,"Forgot?",{
hash:{},data:o}))+'</a> <div class="pin-digit-container" aria-hidden="true"> <div class="pin-digit"></div> <div class="pin-digit"></div> <div class="pin-digit"></div> <div class="pin-digit"></div> </div> ',m=a.if.call(t,t&&t.isEditWarning,{hash:{},inverse:I.noop,fn:I.program(10,p,o),data:o}),(m||0===m)&&(y+=m),y+=" </div> ",m=a.if.call(t,t&&t.isEditing,{hash:{},inverse:I.noop,fn:I.program(12,h,o),data:o}),(m||0===m)&&(y+=m),y+=" </form> "})},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(16),s=n(43),l=n(1154),c=n(355),u=n(196),d=n(2115),p=n(2116),h=n.n(p),f=i.a.Layout.extend({className:"user-select-modal-users-container",template:h.a,ui:{loading:".loading"},regions:{body:".modal-body"},onlyAfterRender:["onUserPopulated","onHomeUsersPopulated","onError"],initialize:function(e){var t=o.c("appModel");this.user=t.get("user"),this.homeUsers=this.user.get("homeUsers"),
this.user.server.populate().done(r.a.bind(this.onUserPopulated,this)).fail(r.a.bind(this.onError,this))},showList:function(e){this.ui.loading.addClass("hidden"),this.body.show(new d.a({collection:e})),this.listenTo(this.body.currentView,"itemview:selectUser",this.onUserSelect)},selectUser:function(e){this.ui.loading.removeClass("hidden");var t=s.a.execute("switchUser",{homeUser:e,switchUser:!0,allowGuestLock:!0});t.done(r.a.bind(function(){this.trigger("resolve")},this)),
t.always(this.whenRendered(function(){this.ui.loading.addClass("hidden")}))},onUserPopulated:function(){this.homeUsers.fetch().done(r.a.bind(this.onHomeUsersPopulated,this)).fail(r.a.bind(this.onError,this))},onHomeUsersPopulated:function(e){s.a.execute("lockUser").always(r.a.bind(function(){1===e.length&&e.first().get("protected")?this.trigger("change:pane","pin",{model:e.first(),showBackButton:!1,focusDelay:0}):this.showList(e)},this))},onError:function(){var e=u.a.getActiveUser()
;if(e&&e.get("home")){var t={id:e.id,title:e.get("title"),protected:!!e.get("pin")};this.showList(new l.a([t],{server:this.user.server,parent:this.user}))}else this.user.set("lockState",c.a.lockStates.UNLOCKED),this.trigger("resolve")},onUserSelect:function(e,t){t.get("protected")?this.trigger("change:pane","pin",{model:t,showBackButton:!0,focusDelay:0}):this.selectUser(t)}});t.a=f},function(e,t,n){"use strict";var i=n(97),a=n(1186),r=i.a.extend({tagName:"ul",
className:"tile-list user-select-list",itemView:a.a});t.a=r},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="modal-header"> <h4 class="modal-title"> '+(0,this.escapeExpression)(i(n(5)).call(t,"Select User",{hash:{},data:o}))+' <span class="loading loading-sm"></span> </h4> </div> <div class="modal-body"></div> '})
},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="modal-dialog"> <div class="modal-alert"></div> <div class="modal-content"></div> </div> '})},function(e,t,n){"use strict";function i(e){var t=e.syncItem,n=e.server;if(!t.server.get("connected"))return s.a.trigger("show:alert",{type:"error",message:Object(c.default)("Please sign in to remove sync items.")}),
o.a.Deferred().reject().promise();var i=a(),r=i.promise.then(function(){var e=t.destroy();return e.fail(function(e){s.a.trigger("show:alert",{type:"error",message:Object(c.default)("There was a problem removing this sync item.")})}),e.always(function(){i.hide()}),e});return r=r.then(function(){return l.a.execute("refreshSyncLists",{server:n,silent:!0,skipContent:!0})})}function a(){var e=new u.a({title:Object(c.default)("Stop Syncing"),
message:Object(c.default)("Are you sure you want to stop syncing this item? All files created by this job will be removed from the device."),confirmLabel:Object(c.default)("Remove"),cancelLabel:Object(c.default)("Cancel"),async:!0,hasDanger:!0});return s.a.trigger("show:modal",e),e}var r=n(13),o=n.n(r),s=n(19),l=n(43),c=n(3),u=n(65);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,n=s.a.extend(t.getXHROptions("/sync/refreshSynclists"),{type:"PUT"}),i=r.a.ajax(n)
;return e.skipContent||(i=i.then(function(e){var n=s.a.extend(t.getXHROptions("/sync/refreshContent"),{type:"PUT"});return r.a.ajax(n)})),i.done(function(){e.silent||l.a.trigger("show:alert",{type:"success",message:Object(c.default)("Synced items were refreshed.")})}),i.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(19),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=i.destroy({wait:!0});return e.fail(function(){a.a.trigger("show:alert",{type:"error",
message:Object(r.default)("There was a problem removing this device.")})}),e.always(function(){s.hide()}),e.promise()}var n,i=e.device;n=i.get("isCloudSync")?Object(r.default)("Deleting the Cloud Sync entry will stop Plex from being able to access any existing Cloud Sync content. You will need to create and upload new sync items."):Object(r.default)("If you remove this device, you will need to sign in again on the device to restore access to Plex.");var s=new o.a({
title:Object(r.default)("Remove Device"),message:n,confirmLabel:Object(r.default)("Remove"),cancelLabel:Object(r.default)("Cancel"),async:!0,hasDanger:!0}),l=s.promise;return l=l.then(function(){return t()}),a.a.trigger("show:modal",s),l}var a=n(19),r=n(3),o=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){i&&n.set("home",!1);var e=n.destroy({wait:!0});return e.done(function(){var e=o.c("appModel"),t=e.get("user"),a=n.get("serverShares")
;if(t.get("pmp").get("invites").fetch(),t.get("pmp").get("sentInvites").fetch(),i){t.get("homeUsers").fetch()}a.getLibraryCount({owned:!1})&&r.a.trigger("discover:servers")}),e.fail(function(){i&&n.set("home",!0),r.a.trigger("show:alert",{type:"error",message:Object(l.default)("There was a problem removing this friend.")})}),e.always(function(){s.hide()}),e.promise()}var n=e.friend,i=n.get("home"),s=a(e),c=s.promise;return c=c.then(function(){return t()}),r.a.trigger("show:modal",s),c}
function a(e){var t=e.friend,n=t.get("serverShares"),i=n.getLibraryCount({owned:!0}),a=n.getLibraryCount({owned:!1}),r=i+a,u=t.get("title"),d=Object(l.default)("Are you sure you want to remove {1}?",u),p=Object(s.a)(Object(l.default)("library"),r,Object(l.default)("libraries"))
;if(i&&a?d+=" "+Object(l.default)("You are sharing {1} {2} with each other.",r,p):i?d+=" "+Object(l.default)("You are sharing {1} {2} with this friend.",i,p):a&&(d+=" "+Object(l.default)("This friend is sharing {1} {2} with you.",a,p)),t.get("home")){var h=o.c("appModel"),f=h.get("user");f.get("homeUsers").get(f.id).get("admin")?d+=" "+Object(l.default)("This friend will be removed from your home."):d+=" "+Object(l.default)("You will be leaving your home.")}return new c.a({
title:Object(l.default)("Remove Friend"),message:d,confirmLabel:Object(l.default)("Remove"),cancelLabel:Object(l.default)("Cancel"),async:!0,hasDanger:!0})}var r=n(19),o=n(16),s=n(624),l=n(3),c=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=n.save(null,{force:!0});n.trigger("destroy",n,i),e.done(function(){f.fetch(),h.get("pmp").get("friends").fetch(),h.get("pmp").get("sentInvites").fetch(),n.get("server")&&u.a.trigger("discover:servers"),v.resolve()}),
e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:Object(p.default)("There was a problem accepting this invite.")}),i.add(n,{at:o}),v.reject(e)})}var n=e.invite,i=n.collection,o=i.indexOf(n),l=d.c("appModel"),h=l.get("user"),f=h.get("homeUsers"),v=s.a.Deferred();c.a.extend(e,{homeUsers:f,signedInHomeUser:f.get(h.id)});var g=a(e);return g.done(function(){r(e).always(t)}),g.fail(function(){v.reject()}),v.promise}function a(e){
if(!e.invite.get("home"))return s.a.Deferred().resolve().promise();var t
;t=e.homeUsers.length>1?e.signedInHomeUser.get("admin")?Object(p.default)("You are the admin in your current home. If you leave, the remaining users will be removed and managed users will be deleted."):Object(p.default)("Are you sure you want to join this home? You will leave your current home."):Object(p.default)("The admin of this home will have access to your account. Other users of this home will be able to switch to your account by entering your PIN.");var n=new h.a({
title:Object(p.default)("Join Home"),message:t,confirmLabel:Object(p.default)("Join"),cancelLabel:Object(p.default)("Cancel"),hasDanger:!0});return u.a.trigger("show:modal",n),n.promise}function r(e){if(e.invite.get("home")&&!e.signedInHomeUser.get("protected")){var t=new f.a({model:e.signedInHomeUser,isEditing:!0,isEditWarning:!0});return u.a.trigger("show:modal",t),t.promise}return s.a.Deferred().resolve().promise()}var o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(19),d=n(16),p=n(3),h=n(65),f=n(521)
;t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=n.destroy({wait:!0});return t.done(function(){if(n.get("server")){s.c("appModel").get("user").get("pmp").get("friends").fetch()}}),t.fail(function(){r(e)}),t.always(function(){i.hide()}),t.promise()}var n=e.invite,i=a(e),l=i.promise;return l=l.then(function(){return t()}),o.a.trigger("show:modal",i),l}function a(e){var t,n;return"requests"===e.subset?(t=Object(l.default)("Reject Invite"),
n=Object(l.default)("Are you sure you want to reject this invite?")):(t=Object(l.default)("Cancel Invite"),n=Object(l.default)("Are you sure you want to cancel this invite?")),new c.a({title:t,message:n,async:!0})}function r(e){var t;t="requests"===e.subset?Object(l.default)("There was a problem rejecting this invite."):Object(l.default)("There was a problem canceling this invite."),o.a.trigger("show:alert",{type:"error",message:t})}var o=n(19),s=n(16),l=n(3),c=n(65);t.a=i},function(e,t,n){
"use strict";function i(e){var t,n=e.user,i=e.serverShare,a=i.get("Section");if(!a||!a.length)return s.a.Deferred().resolve().promise();t=i.get("allLibraries")?[]:c.a.pluck(c.a.where(a,{shared:!0}),"id");var o={server_id:i.get("machineIdentifier"),shared_server:{library_section_ids:t}};n.isNew()&&(o.sharing_settings=n.getSaveParams()),i.isNew()&&(n.isNew()?o.shared_server.invited_email=n.get("username"):o.shared_server.invited_id=n.id);var l=i.url(),u=c.a.extend(n.server.getXHROptions(l),{
type:i.isNew()?"POST":"PUT",contentType:"application/json",data:r()(o)});return s.a.ajax(u).promise()}var a=n(179),r=n.n(a),o=n(13),s=n.n(o),l=n(10),c=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=l.destroy({wait:!0});return e.done(function(){var e=r.c("appModel"),t=e.get("user");t.get("pmp").get("friends").fetch(),t.get("pmp").get("invites").fetch(),a.a.trigger("discover:servers")}),e.fail(function(){var e
;e=l.get("owned")?Object(o.default)("There was a problem removing this share."):Object(o.default)("There was a problem leaving this server."),a.a.trigger("show:alert",{type:"error",message:e})}),e.always(function(){c.hide()}),e.promise()}var n,i,l=e.serverShare;l.get("owned")?(n=Object(o.default)("Stop Sharing"),i=Object(o.default)("Are you sure you want to stop sharing with this friend?")):(n=Object(o.default)("Leave Server"),
i=Object(o.default)("Are you sure you want to leave this server? You can rejoin at any time."));var c=new s.a({title:n,message:i,async:!0,hasDanger:!0}),u=c.promise;return u=u.then(function(){return t()}),a.a.trigger("show:modal",c),u}var a=n(19),r=n(16),o=n(3),s=n(65);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=c.a.extend(n.server.getXHROptions(n.url()),{type:"DELETE"}),i=s.a.ajax(t);return i.done(function(){var e=p.get(n.id);e?(n.trigger("destroy",n,l),
n.get("restricted")?e.trigger("destroy",e,p):e.set("home",!1)):(l.reset([n]),n.set("admin",!0),p.each(function(e){e.set("home",!1)}));var t=o.hasHome();if(o.set("home",t),!t){o.get("homeDetails").clear()}}),i.fail(function(){r(e)}),i.always(function(){h.hide()}),i.promise()}var n=e.homeUser,i=d.c("appModel"),o=i.get("user"),l=o.get("homeUsers"),p=o.get("pmp").get("friends"),h=a(e),f=h.promise;return f=f.then(function(){return t()}),u.a.trigger("show:modal",h),f}function a(e){
var t,n,i,a=e.homeUser;return e.isSignedInUser?(t=Object(p.default)("Leave Home"),i=Object(p.default)("Leave"),n=a.get("admin")?Object(p.default)("You are the admin in this home. If you leave, the remaining users will be removed and managed users will be deleted."):Object(p.default)("Are you sure you want to leave this home?")):(t=Object(p.default)("Remove User"),i=Object(p.default)("Remove"),
n=a.get("restricted")?Object(p.default)("Removing a managed user from your home will delete the managed user. Watched status for this user will be lost. This cannot be undone."):Object(p.default)("You will no longer be able to switch to this user.")),new h.a({title:t,message:n,confirmLabel:i,cancelLabel:Object(p.default)("Cancel"),async:!0,hasDanger:!0})}function r(e){var t
;t=e.isSignedInUser?Object(p.default)("There was a problem leaving this home."):Object(p.default)("There was a problem removing this user."),u.a.trigger("show:alert",{type:"error",message:t})}var o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(19),d=n(16),p=n(3),h=n(65);t.a=i},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred(),n="/api/users/validate?invited_email="+encodeURIComponent(e.username),i=s.a.extend(e.server.getXHROptions(n),{type:"POST"}),a=r.a.ajax(i);return a.done(function(){
t.resolve()}),a.fail(function(e){var n=e.responseText,i=l.a.parseXML(n);t.reject(e,i&&i.status)}),t.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(102);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.user,n=t.get("homeDetails"),i=t.get("homeSize");n.set("guestEnabled",e.enable);var a=n.save();return a.done(function(){t.get("homeUsers").fetch(),t.get("pmp").get("friends").fetch(),t.hasHome()||s.a.execute("showHomeWarningsModal"),e.enable||2!==i||n.clear()}),a.fail(function(t){
var n=l.a.parseXML(t.responseText),i=n&&n.status;r.a.isString(i)||(i=e.enable?Object(c.default)("Unable to enable guest account"):Object(c.default)("Unable to disable guest account")),o.a.trigger("show:alert",{type:"error",message:i})}),a}var a=n(10),r=n.n(a),o=n(19),s=n(43),l=n(102),c=n(3);t.a=i},function(e,t,n){"use strict";function i(){return a().then(r).then(o)}function a(){var e=l.a.Deferred(),t=c.c("appModel"),n=t.get("user");if(!!n.get("features").get(p.d)||n.get("homeUsers").length>1){
var i=n.get("homeUsers").findWhere({guest:!0}),a=n.get("homeDetails");if(i)e.resolve(i);else{var r=a.populate();r.done(function(){i=new d.a({id:a.get("guestUserID"),guest:!0},{server:n.server}),e.resolve(i)}),r.fail(function(){e.reject()})}}else e.reject();return e.promise()}function r(e){return u.a.execute("authenticateWithServer",{homeUser:e})}function o(e){var t=l.a.Deferred(),n=c.c("appModel"),i=n.get("user");return i.clearAccessToken().always(function(){i.signIn(e).always(function(){
t.resolve()})}),t.promise()}var s=n(13),l=n.n(s),c=n(16),u=n(43),d=n(803),p=n(79);t.a=i},function(e,t,n){"use strict";function i(){Object(s.c)("metrics").trackEvent({event:"client:signout",interaction:!0});var e=c.a.get("allowSSO");return l.a.execute("resetUser").then(function(){return u.a.restoreDefaults(),u.a.save()}).then(function(){if(e){return Object(s.c)("appModel").set({isSigningOut:!0}),Object(d.a)(),o.a.trigger("navigate","login"),r.a.Deferred().reject().promise()}
o.a.trigger("reset:servers"),o.a.trigger("reset:providers")})}var a=n(13),r=n.n(a),o=n(19),s=n(16),l=n(43),c=n(62),u=n(196),d=n(36);t.a=i},function(e,t,n){"use strict";function i(){var e=r.a.Deferred();return Object(o.c)("appModel").get("user").get("isLocked")?e.reject():e.resolve(),e.promise()}var a=n(13),r=n.n(a),o=n(16);t.a=i},function(e,t,n){"use strict";function i(){var e=Object(r.a)();return e.done(function(){Object(a.c)("serverUpdateManager").start()}),e}t.a=i;var a=n(16),r=n(2133)
},function(e,t,n){"use strict";function i(){Object(f.a)("[Servers] Resetting...");var e=Object(v.c)("appStore"),t=Object(v.c)("appModel"),n=t.get("servers");Object(v.c)("serverManager").stop(),Object(v.c)("primaryServerManager").stop(),Object(v.c)("manualServerManager").stop(),Object(v.c)("serverConnectionManager").stop(),Object(v.c)("serverConnectionTestManager").reset(),Object(v.c)("companionServerManager").stop(),n.uninitialize(),n.reset(),n.initialize(),t.unset("primaryServer"),
t.unset("companionServer"),t.unset("transientServer"),e.dispatch(Object(b.h)({budget:1/0})),a()}function a(){Object(f.a)("[Servers] Initializing..."),r(),o(),s(),l(),c(),Object(v.c)("serverManager").start(),Object(v.c)("primaryServerManager").start(),Object(v.c)("manualServerManager").start(),Object(v.c)("serverConnectionManager").start(),Object(v.c)("companionServerManager").start(),Object(f.a)("[Servers] Finished initialization")}function r(){
var e=Object(v.c)("appModel"),t=e.get("servers"),n=e.get("cloudServer"),i="https://plex.tv".match(/^([^:]+):\/\/(.*)$/),a=i[1],r=i[2];n.addConnection({scheme:a,address:r}),t.add(n)}function o(e){var t=Object(v.c)("appModel"),n=t.get("servers"),i=y.a.getActiveServers();i&&i.each(function(e){if(e.get("connections").length)try{var i=new m.c(e.toJSON(),{parent:t});n.add(i)}catch(e){f.a.warn(e)}})}function s(){var e=Object(v.c)("appModel"),t=e.get("servers"),n=g.a.get("primaryServer");if(n){
var i=new m.c({machineIdentifier:n.machineIdentifier,friendlyName:n.name,isShared:n.shared,superToken:n.superToken,accessToken:n.accessToken,sourceTitle:n.sourceTitle},{parent:e});i.addConnection({scheme:n.scheme,address:n.address,port:n.port}),t.add(i)}}function l(){return}function c(){if(g.a.get("allowLoopbackDiscovery")){var e=Object(v.c)("appModel"),t=e.get("servers"),n=new m.c({},{parent:e});n.addConnection({scheme:"http",address:"127.0.0.1",port:"32400"}),t.add(n)}}function u(){return a(),
h.a.on("reset:servers",i),p.a.Deferred().resolve().promise()}t.a=u;var d=n(13),p=n.n(d),h=n(19),f=n(32),v=n(16),g=n(62),m=n(122),y=n(196),b=n(210)},function(e,t,n){"use strict";function i(){var e=Object(r.c)("appModel");return Object(a.a)(Object(o.a)(),e.get("experienceSettings").populate(),e.get("deviceSettings").populate())}t.a=i;var a=n(266),r=n(16),o=n(2135)},function(e,t,n){"use strict";function i(){var e=Object(o.c)("appModel").get("settings"),t=r.a.Deferred()
;return r.a.when(e.populate(),l.a.populate()).always(function(){var n=e.get("language");s.a.load(n).always(function(){t.resolve()})}),t.promise()}t.a=i;var a=n(13),r=n.n(a),o=n(16),s=n(609),l=n(196)},function(e,t,n){"use strict";function i(){var e=s.a.Deferred(),t=d.a.get("myPlexAccessToken");return t.done(function(){window.PLEXWEB&&window.PLEXWEB.myPlexAccessToken||u.a.register(d.a.getInstance())}),t.always(function(){e.resolve()}),e.promise()}function a(){var e=s.a.Deferred(),t=u.a.set(v,1)
;return t.done(function(){u.a.remove(v),e.resolve()}),t.fail(function(t){var n=new c.a;l.a.warn("Storage module swapped for "+n.name+' due to exception: "'+t+'"'),d.a.register(n),u.a.register(n,{ignorePrevious:!0}),e.resolve()}),e.promise()}function r(){return i().then(a).then(f.a).then(h.a).then(p.a)}t.a=r;var o=n(13),s=n.n(o),l=n(32),c=n(1189),u=n(209),d=n(621),p=n(2138),h=n(2139),f=n(2140),v="plexTestToken"},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(78),o=n(32),s=r.a.extend({
getStorage:function(){},get:function(e){var t=this;return this._catchStorageError(function(n){var i=window.PLEXWEB,a=i&&e in i?i[e]:n.getItem(e);if(null==a)throw new Error(e+" is not in "+t.name);return a})},set:function(e,t){var n=this;return this._catchStorageError(function(i){if(!e)throw new Error("Unable to set value in "+n.name+" without a key");if(null==t)throw new Error("Unable to set null or undefined value for "+e+" in "+n.name+". Use the remove function.");return i.setItem(e,t)})},
remove:function(e){return this._catchStorageError(function(t){return t.removeItem(e)})},clear:function(){return this._catchStorageError(function(e){return e.clear()})},_catchStorageError:function(e){var t=a.a.Deferred();try{t.resolve(e(this.getStorage()))}catch(e){o.a.warn(e.message),t.reject(e)}return t.promise()}});t.a=s},function(e,t,n){"use strict";function i(){var e=r.a.populate().then(function(){var e=r.a.get("users"),t=!1;if(e.each(function(e){e.get("servers").each(function(e){
"Plex Cloud"!==e.get("friendlyName")||e.get("platform")||(e.set("platform","Cloud"),t=!0)})}),t)return r.a.save()});return Object(a.a)(e)}t.a=i;var a=n(180),r=n(196)},function(e,t,n){"use strict";function i(){var e=Object(l.c)("appModel"),t=e.get("experienceSettings"),n=e.get("settings"),i=n.populate().then(function(){var e=r.a.result(t,"defaults"),i=n.get("subtitlesBurnLevel"),a=n.get("subtitleSize"),o=[];if(null!=i&&i!==c.a.ALWAYS){var l=t.save("subtitlesBurnLevel",i);l=l.then(function(){
return n.save("subtitlesBurnLevel",void 0)}),o.push(l)}if(null!=a&&a!==e.subtitleSize){var u=t.save("subtitleSize",a);u=u.then(function(){return n.save("subtitleSize",void 0)}),o.push(u)}return Object(s.a)(o)});return Object(o.a)(i)}var a=n(10),r=n.n(a),o=n(180),s=n(266),l=n(16),c=n(302);t.a=i},function(e,t,n){"use strict";function i(){var e=Object(p.c)("appModel"),t=e.get("experienceSettings"),n=e.get("settings"),i=n.populate().then(function(){
var e=c.a.result(t,"defaults"),i=n.get("extrasPrefixCount"),a=n.get("localQuality"),o=n.get("remoteQuality"),l=h.a.get("resumePlayQueue"),u=[];if(null!=i&&i!==e.extrasPrefixCount){var p=t.save("extrasPrefixCount",i);p=p.then(function(){return n.save("extrasPrefixCount",void 0)}),u.push(p)}if(null!=a&&a!==e.localQuality){var y=t.save("localQuality",a);y=y.then(function(){return n.save("localQuality",void 0)}),u.push(y)}if(null!=o&&o!==e.remoteQuality){var b=t.save("remoteQuality",o)
;b=b.then(function(){return n.save("remoteQuality",void 0)}),u.push(b)}return u.push(l.then(function(e){var n=void 0;try{n=JSON.parse(e)}catch(e){n={}}var i=r()(n);if(!i.length)return s.a.Deferred().reject().promise();var a=i.reduce(function(e,t){var i=n[t],a=Object(g.a)(m.m,i.serverID),r=Object(g.a)(m.k,v.d,a);return e[t]={serverEntityID:a,providerEntityID:r,playQueueID:i.playQueueID,playQueueType:f.a,playQueueRepeat:!1,playQueueOffset:Math.floor(i.position/1e3)},e},{})
;return t.save("restorePlayQueue",a)}).then(function(){return h.a.remove("resumePlayQueue")})),Object(d.a)(u)});return Object(u.a)(i)}var a=n(59),r=n.n(a),o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(180),d=n(266),p=n(16),h=n(209),f=n(303),v=n(41),g=n(38),m=n(45);t.a=i},function(e,t,n){"use strict";function i(){var e=Object(a.c)("appModel").get("user"),t=Object(r.a)();return t.done(function(){new s.a(e).start(),(new o.a).start()}),t}t.a=i;var a=n(16),r=n(2142),o=n(2143),s=n(2146)},function(e,t,n){
"use strict";function i(){var e=r.a.Deferred(),t=s.a.get("myPlexAccessToken");return t.done(function(e){var t=Object(o.c)("appModel").get("user"),n=l.a.get("users"),i=n.findWhere({authToken:e});i&&t.activateStoredUser(i.id)}),t.always(function(){e.resolve()}),e.promise()}t.a=i;var a=n(13),r=n.n(a),o=n(16),s=n(209),l=n(196)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(78),o=n(19),s=n(110),l=n(16),c=n(2144),u=r.a.extend({mixins:s.a,announcementsUpdateDelay:36e5,initialize:function(){
this.user=Object(l.c)("appModel").get("user"),a.a.bindAll(this,"updateAnnouncements","onSignedInChange")},start:function(){var e=a.a.debounce(this.onAnnouncementsChange),t=a.a.debounce(this.onSignedInChange);this.listenTo(this.user,"change:signedIn",t),this.listenTo(this.user.get("pmp"),{"change:announcements":e,"change:announcements.reset":e,"change:announcements.update":e,"change:announcements.change:read":e,"change:announcements.change:priority":e}),this.user.populate().fail(t)},
stop:function(){clearTimeout(this.announcementsUpdateTimeout),this.user.get("pmp").get("announcements").reset(),this.stopListening()},updateAnnouncements:function(){!this.user.get("restricted")&&this.user.server.get("isConnected")&&(this.user.get("pmp").get("announcements").fetch(),this.announcementsUpdateTimeout&&clearTimeout(this.announcementsUpdateTimeout),this.announcementsUpdateTimeout=setTimeout(this.updateAnnouncements,this.announcementsUpdateDelay))},onSignedInChange:function(){
this.user.get("pmp").get("announcements").reset(),this.updateAnnouncements()},onAnnouncementsChange:function(){if(this.user.get("isSignedIn")&&!this.user.get("restricted")){var e=this.user.get("pmp").get("announcements"),t=e.findWhere({style:"priority",read:!1});t&&o.a.trigger("show:bar","alertbar",new c.a({model:t}))}}});t.a=u},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(1190),o=n(301),s=n(2145),l=n.n(s),c=o.a.extend({className:"alert-bar notify",template:l.a,events:a.a.extend({
"click .info-link":"onInfoClick"},o.a.prototype.events),initialize:function(){this.listenTo(this.model,"change:read",this.hide)},serializeData:function(){var e=this.model.get("content");return{content:Object(r.a)(e),url:this.model.get("url")}},onInfoClick:function(e){this.hide(),this.model.markAsRead()},onCloseClick:function(e){o.a.prototype.onCloseClick.apply(this,arguments),this.model.markAsRead()}});t.a=c},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=' <a class="info-link link" href="'+d((a=e&&e.url,typeof a===u?a.apply(e):a))+'" target="_blank">'+d(i(n(5)).call(e,"More Info",{hash:{},data:t}))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u="function",d=this.escapeExpression,p=this
;return c+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message">'+d((l=t&&t.content,typeof l===u?l.apply(t):l))+"</span> ",l=a.if.call(t,t&&t.url,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=" "})},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(13),o=n.n(r),s=n(19),l=n(2147),c=n(304),u=n(3),d=n(522),p=n(65),h=n(521),f=l.a.prototype,v=l.a.extend({collectionNames:["homeDetails","homeUsers"],
flexCollectionNames:["devices","friends","invites","socialNetworks"],populateActions:[c.c,d.f],handleInvalidToken:function(){var e=new p.a({title:Object(u.default)("Invalid Credentials"),message:Object(u.default)("Your credentials have expired. Please sign in again."),confirmLabel:Object(u.default)("OK"),cancelLabel:Object(u.default)("Ignore")});e.promise.done(function(){s.a.trigger("navigate","login",{silent:!0})}),s.a.trigger("show:modal",e)},onIsSignedInChange:function(e,t){
if(f.onIsSignedInChange.apply(this,arguments),e.get("isFullUser")&&t){var n=e.server.getXHROptions("/api/claim/subscribe");o.a.ajax(a()({},n,{type:"POST"}))}},onIsLockedChange:function(e,t){f.onIsLockedChange.apply(this,arguments),t&&s.a.trigger("show:modal",new h.a({isForced:!0}))},onIsUnlockedChange:function(){}});t.a=v},function(e,t,n){"use strict";var i=n(78),a=n(19),r=(n(37),n(32)),o=n(110),s=n(16),l=n(355),c=n(196),u=n(426),d=i.a.extend({mixins:o.a,collectionNames:[],
flexCollectionNames:[],populateActions:[],initialize:function(e){this.user=e,this.debouncedChangeTimeout=null},start:function(){var e=this,t=this.user;this.previousUserID=t.id;var n={change:this.onUserChange};["isSignedIn","isLocked","isUnlocked","hasInvalidToken"].forEach(function(i){var a=t.get(i),r=e["on"+Object(u.a)(i)+"Change"];n["change:"+i]=r,a&&r.call(e,t,a)}),this.listenTo(t,n);var i=Object(s.c)("appModel").get("settings"),a=i.get("autoLogin")||t.get("isUnlocked")
;Object(r.a)("[UserManager] autoLogin",a),a||this._lockIfInHome()},handleInvalidToken:function(){},_lockIfInHome:function(){var e=c.a.getActiveUser();e&&e.get("home")&&this.user.set("lockState",l.a.lockStates.LOCKED)},_updateUser:function(e,t){if(t)t.copyFromUser(e);else{c.a.get("users").add(e.toJSON(),{parse:!0})}c.a.debouncedSave()},onHasInvalidTokenChange:function(e,t){t&&this.handleInvalidToken()},onIsUnlockedChange:function(e,t){},onUserChange:function(e){if(this.user.get("isSignedIn")){
this.debouncedChangeTimeout&&clearTimeout(this.debouncedChangeTimeout);var t=c.a.getActiveUser();this.debouncedChangeTimeout=setTimeout(this._updateUser.bind(this,e,t),0)}},onIsSignedInChange:function(e,t){if(this.stopListening(e,"change:hasInvalidToken",this.onHasInvalidTokenChange),!t)return void(e.get("hasInvalidToken")&&this.handleInvalidToken());t&&e.get("isLocked")&&(this.previousUserID=e.id);var n={reset:!0},i=e.get("features");i.abortPendingPopulate(),i.fetch(),
this.collectionNames.forEach(function(t){return e.get(t).populate(n)}),this.flexCollectionNames.forEach(function(t){return e.get("pmp").get(t).populate(n)});var a=Object(s.c)("appStore").dispatch;this.populateActions.forEach(function(e){return a(e())})},onIsLockedChange:function(e,t){t&&(this.previousUserID=e.id,this.isPreviousUserRemote=e.get("isRemote"),this.listenTo(e,"change:isUnlocked",this.onNextIsUnlockedChange))},onNextIsUnlockedChange:function(e,t){var n=this
;t&&(this.stopListening(e,"change:isUnlocked",this.onNextIsUnlockedChange),setTimeout(function(){var e=n.previousUserID,t=e&&e===n.user.id?"navigate:refresh":"navigate:refresh:dashboard";a.a.trigger(t)},0))}});t.a=d},function(e,t,n){"use strict";function i(e){return Object(a.a)(Object(r.a)(e).join("_"))}var a=n(625),r=n(2149);t.a=i},function(e,t,n){"use strict";function i(e){return e?e.match(/^[^A-Z]+|[A-Z]+(?![^A-Z])|[A-Z][^A-Z]+/g)||[]:[]}t.a=i},function(e,t,n){"use strict";function i(e,t){
var n={};for(var i in t)e.hasAttr(i)&&(n[i]=e.get(i));return n}function a(e){var t=e.directoryKey,n=e.hubModel,a=n.get("hubIdentifier"),r=Object(l.a)(a),u=r===a?t:"/hubs";return new s.d(o()({},i(n,s.a),{provider:o()({},i(n.provider,s.b)),server:o()({},i(n.server,s.c)),hubIdentifier:r,id:c.b(n),directoryKey:u}))}t.a=a;var r=n(6),o=n.n(r),s=n(1192),l=n(1193),c=n(823)},function(e,t,n){"use strict";function i(e){var t=e.get("experienceSettings")
;t.get("homeSettings").set("settingsKey",Object(a.a)()),t.save()}t.a=i;var a=n(505)},function(e,t,n){"use strict";function i(e,t){var n=e.server,i=n.getXHROptions(c.a.result(e,"url"),{method:"POST",dataType:"json",data:s.a.stringify({urls:t},{arrayFormat:"brackets"})||"urls="});return Object(u.a)(r.a.ajax(i),400).then(function(t){e.reset(t)},function(e){return r.a.Deferred().reject(e.status&&e.responseJSON.errors||[]).promise()})}var a=n(13),r=n.n(a),o=n(603),s=n.n(o),l=n(10),c=n.n(l),u=n(523)
;t.a=i},function(e,t,n){"use strict";function i(){var e=Object(p.a)(window.location.href),t=e.hashParams,n=s.a.parse(t.substr(1)),i=Object(l.a)(n.pinID);if(i){var a=Object(c.c)("appModel");Object(h.a)(a).set({pinIDInitial:i}),Object(u.a)(),window.history.replaceState(null,null,Object(d.a)(window.location.href,"pinID"))}return r.a.Deferred().resolve().promise()}var a=n(13),r=n.n(a),o=n(603),s=n.n(o),l=n(353),c=n(16),u=n(36),d=n(2154),p=n(1194),h=n(626);t.a=i},function(e,t,n){"use strict"
;function i(e,t){var n=new RegExp("(\\?|&)("+Object(a.a)(t)+"=[^\\?&]+(?:[\\?&]?))","g");return e.replace(n,function(e,t){return"?"===t?"?":""}).replace(/\?$/,"")}var a=n(231);t.a=i},function(e,t,n){"use strict";function i(){var e=Object(r.c)("fullscreenManager").initialize({dispatchEnterFullscreen:function(){Object(r.c)("appStore").dispatch(Object(o.d)())},dispatchExitFullscreen:function(){Object(r.c)("appStore").dispatch(Object(o.e)())}});return Object(a.a)(e)}t.a=i
;var a=n(180),r=n(16),o=n(71)},function(e,t,n){"use strict";function i(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";return e&&("string"==typeof e.pathname?n=e.query?a.join(e.pathname,e.query):e.pathname:"string"==typeof e&&(n=e)),n&&t&&0!==n.indexOf(r)&&(n=r+n),n}t.a=i;var a=n(18),r="#!"},function(e,t,n){"use strict";function i(e){r.a.flushDebouncedSave(),a.a.set("main.webMode",e)}t.a=i;var a=n(209),r=n(196)},function(e,t,n){"use strict";function i(){
var e=Object(o.a)(window.location.href,"http:");r.a.get("allowSSO")?window.location=a.join(e,{secure:0},{parseParams:!0,recognizeHash:!0}):window.location=e}var a=n(18),r=n(62),o=n(1153);t.a=i},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(50),o=n(16),s=n(86),l=n(30),c=n(524),u=n(2160),d=n(2166),p=n(96),h=n(2197),f=n.n(h),v={osx:"mac"},g=p.a.extend({mixins:[c.a],name:"serverDownloadModal",className:"server-download-modal modal modal-lg fade",template:f.a,ui:{downloadBtn:".download-btn",
paneTabs:".show-pane-btn",loading:".server-download-loading"},regions:{paneRegion:".pane-region"},events:a.a.extend({"click .show-pane-btn":"onShowPaneClick","click .download-btn":"onDownloadClick"},p.a.prototype.events),panesModel:"selectedModel",onlyAfterRender:["showPane"],initialize:function(e){var t=this;p.a.prototype.initialize.apply(this,arguments);var n=o.c("appModel");n.get("primaryServer")||this.listenTo(n,"change:primaryServer",function(e,n){n&&n.id&&t.hide()}),
this.downloadType=e.downloadType;var i=new u.a([],{server:n.get("cloudServer")});i.populate().done(function(){t.collection=i.get(t.downloadType).get("platforms"),t.paneSetup(),t.render(),t.ui.loading.addClass("hidden")}),o.c("metrics").trackView({page:l.y,firstRun:!0})},serializeData:function(){return{items:this.collection?this.collection.toJSON():[],selectedPane:this.selectedModel?this.selectedModel.get("id"):null}},selectListItem:function(){var e=this.selectedModel.get("id")
;this.ui.paneTabs.removeClass("selected"),this.ui.paneTabs.filter('[data-pane="'+e+'"]').addClass("selected")},paneSetup:function(){this.panes=this.collection.reduce(function(e,t){return e[t.get("id")]={constructor:d.a},e},{});var e=r.a.platformID,t=v[e]||e;this.selectedModel=this.collection.get(t)||this.collection.first(),this.showPane(this.selectedModel.get("id"))},onRender:function(){p.a.prototype.onRender.apply(this,arguments),this.selectedModel&&this.selectListItem()},
onShowPaneClick:function(e){e.preventDefault();var t=this.$(e.currentTarget),n=t.data("pane");this.selectedModel=this.collection.get(n),this.showPane(n),this.selectListItem()},onDownloadClick:function(e){var t=this.selectedModel.get("id");o.c("metrics").trackClick({page:l.y,firstRun:!0,action:s.p,platform:this.downloadType,os:t}),this.hide()}});t.a=g},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(25),s=n(2161),l=o.a.extend({name:"DownloadServerCollection",context:["server"],
url:function(){var e=a.a.result(this.server,"url");return r.join([e,"api/downloads/1"])},model:s.a});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(2162),o=i.a.extend({name:"DownloadServerModel",context:["server"],rootPropertyName:"Type",idAttribute:"name",syncedAttrs:{name:a.a.string},syncedRelations:{platforms:{rootPropertyName:"Platform",relationClass:r.a,options:function(e){return{type:e.name}}}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(2163),r=i.a.extend({
name:"DownloadServerPlatformCollection",context:["server","type"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(17),l=n(14),c=n(2164),u=s.a.extend({name:"DownloadServerPlatformModel",context:["server","type"],rootPropertyName:"Platform",idAttribute:"id",syncedAttrs:{id:l.a.string,name:l.a.string,version:l.a.string,date:l.a.integer,requirements:l.a.string,fixed:l.a.string,added:l.a.string,info:l.a.string},syncedRelations:{releases:{
rootPropertyName:"Release",relationClass:c.a}},derivedAttrs:{type:function(){return this.type}},augmentResponse:function(e){var t=e.release_date,n=e.extra_info,i=e.items_fixed,r=e.items_added,s=o()(e,["release_date","extra_info","items_fixed","items_added"]);return a()({},s,{info:n,fixed:i,added:r,date:t+"000"})}});t.a=u},function(e,t,n){"use strict";var i=n(25),a=n(2165),r=i.a.extend({name:"DownloadServerReleaseCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"DownloadServerReleaseModel",context:["server"],modelId:function(){return this.get("build")+"-"+this.get("distro")},syncedAttrs:{label:a.a.string,build:a.a.string,distro:a.a.string,url:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(22),o=n(368),s=n(2196),l=n.n(s),c=r.a.ItemView.extend({template:l.a,className:"download-server-pane",serializeData:function(){var e=this.model.toJSON(),t=!Object(o.f)()&&!Object(o.h)(),n=!t&&"_blank"
;return a()({},e,{target:n,shouldUseDownload:t,shouldUseDropup:e.releases.length>1})}});t.a=c},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";function i(){return"ios"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a,t=e.platformID;return"linuxkonvergo"===t||"osxkonvergo"===t||"windowskonvergo"===t}t.a=i;var a=n(50)
},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(627)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";function i(){return"opera"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}t.a=i;var a=n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50),n(1198),n(1199)},function(e,t,n){
"use strict";n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(627)},function(e,t,n){"use strict";n(627)},function(e,t,n){"use strict";n(50),n(628),n(827)},function(e,t,n){"use strict";n(50),n(629),n(827)},function(e,t,n){"use strict";function i(){return"tizen"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){"use strict";n(627)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50),n(828),n(829)
},function(e,t,n){"use strict";n(50),n(828),n(830)},function(e,t,n){"use strict";n(50),n(830),n(831)},function(e,t,n){"use strict";n(50),n(829),n(831)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";function i(){return"winvergo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}t.a=i;var a=n(50)},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+="<p>"+m(i(n(5)).call(e,"Requirements",{hash:{},data:t}))+": ",a=e&&e.requirements,a=typeof a===y?a.apply(e):a,(a||0===a)&&(r+=a),r+="</p>"}function l(e,t){var n,i="";return i+="<p>",n=e&&e.info,n=typeof n===y?n.apply(e):n,(n||0===n)&&(i+=n),i+="</p>"}function c(e,t,r){var o,s=""
;return s+=' <div class="btn-group dropup download-server-btn-group"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> '+m(i(n(5)).call(e,"Download",{hash:{},data:t}))+' <span class="caret"></span> </button> <ul class="dropdown-menu"> ',o=a.each.call(e,e&&e.releases,{hash:{},inverse:b.noop,fn:b.programWithDepth(6,u,t,e,r),data:t}),(o||0===o)&&(s+=o),s+=" </ul> </div> "}function u(e,t,n,i){var r,o=""
;return o+=' <li><a href="'+m((r=e&&e.url,typeof r===y?r.apply(e):r))+'" ',r=a.if.call(e,i&&i.shouldUseDownload,{hash:{},inverse:b.noop,fn:b.program(7,d,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,i&&i.target,{hash:{},inverse:b.noop,fn:b.programWithDepth(9,p,t,n),data:t}),(r||0===r)&&(o+=r),o+=' class="download-btn">'+m((r=e&&e.label,typeof r===y?r.apply(e):r))+"</a></li> "}function d(e,t){return"download"}function p(e,t,n){var i,a="";return a+='target="'+m((i=n&&n.target,
typeof i===y?i.apply(e):i))+'"'}function h(e,t,n){var i,r="";return r+=' <div class="download-server-btn-group"> ',i=a.each.call(e,e&&e.releases,{hash:{},inverse:b.noop,fn:b.programWithDepth(12,f,t,e,n),data:t}),(i||0===i)&&(r+=i),r+=" </div> "}function f(e,t,n,i){var r,o="";return o+=' <a href="'+m((r=e&&e.url,typeof r===y?r.apply(e):r))+'" ',r=a.if.call(e,i&&i.shouldUseDownload,{hash:{},inverse:b.noop,fn:b.program(7,d,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,i&&i.target,{hash:{},
inverse:b.noop,fn:b.programWithDepth(9,p,t,n),data:t}),(r||0===r)&&(o+=r),o+=' class="btn btn-primary download-btn">'+m((r=e&&e.label,typeof r===y?r.apply(e):r))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m=this.escapeExpression,y="function",b=this;return g+='<div class="type-'+m((v=t&&t.type,typeof v===y?v.apply(t):v))+" platform-logo platform-"+m((v=t&&t.id,typeof v===y?v.apply(t):v))+'"></div> <h2><strong>'+m((v=t&&t.name,
typeof v===y?v.apply(t):v))+"</strong> "+m(i(n(5)).call(t,"Download",{hash:{},data:o}))+"</h2> <h5>"+m(i(n(5)).call(t,"Version",{hash:{},data:o}))+" "+m((v=t&&t.version,typeof v===y?v.apply(t):v))+"</h5> <h5>"+m(i(n(1201)).call(t,t&&t.date,{hash:{},data:o}))+'</h5> <div class="more-info"> ',v=a.if.call(t,t&&t.requirements,{hash:{},inverse:b.noop,fn:b.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,t&&t.info,{hash:{},inverse:b.noop,fn:b.program(3,l,o),data:o}),(v||0===v)&&(g+=v),
g+=" </div> ",v=a.if.call(t,t&&t.shouldUseDropup,{hash:{},inverse:b.programWithDepth(11,h,o,t),fn:b.programWithDepth(5,c,o,t),data:o}),(v||0===v)&&(g+=v),g+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=' <li><a class="btn-gray show-pane-btn type-btn',a=i(n(34)).call(e,e&&e.selectedPane,e&&e.id,{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(a||0===a)&&(r+=a),
r+='" href="#" data-pane="'+h((a=e&&e.id,typeof a===p?a.apply(e):a))+'">'+h((a=e&&e.name,typeof a===p?a.apply(e):a))+"</a></li> "}function l(e,t){return" selected"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this,p="function",h=this.escapeExpression
;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon plex-icon-plex-chevron"></i> '+h(i(n(5)).call(t,"Plex Media Server Downloads",{hash:{},data:o}))+' </h4> </div> <div class="modal-body modal-body-scroll modal-body-with-panes"> <div class="modal-nav-pane dark-scrollbar"> <ul class="list modal-nav-list"> ',
c=a.each.call(t,t&&t.items,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=' </ul> </div> <div class="modal-body-pane pane-region dark-scrollbar"> </div> </div> <div class="server-download-loading loading loading-inline"></div> </div> </div> '})},function(e,t,n){"use strict";function i(){function e(e,i,a){if((n||i instanceof window.KeyboardEvent&&"esc"===a)&&("function"!=typeof e.isSupported||e.isSupported()))return t[e.fn](t,i,a)}
var t=Object(c.c)("keyboardShortcuts"),n=!0;return l.a.on("anyModalOpen",function(){n=!1}),l.a.on("allModalsClosed",function(){n=!0}),t.shortcuts.forEach(function(t){s.a.bind(t.keys,e.bind(null,t))}),r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=n(1202),s=n.n(o),l=n(19),c=n(16)},function(e,t,n){"use strict";function i(){function e(){function t(){n.removeEventListener("playing",t),n.removeEventListener("error",t),n.src="",n.removeAttribute("src"),Object(s.b)(n)}
c.forEach(function(t){document.body.removeEventListener(t,e,!0)});var n=Object(s.a)("audio",!0);n.addEventListener("playing",t),n.addEventListener("error",t),n.src=o.a,n.play()}return Object(l.f)()||Object(l.h)()||c.forEach(function(t){document.body.addEventListener(t,e,!0)}),r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=n(2200),s=n(1203),l=n(368),c=["touchstart","mousedown","click","keydown","keypress"]},function(e,t,n){"use strict"
;t.a="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU="
},function(e,t,n){"use strict";function i(){return new o.a,r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=n(2202)},function(e,t,n){"use strict";var i,a=n(101),r=n(32),o=n(2203),s=(i={},i[r.a.LEVEL_LOG]={method:"log",color:"black"},i[r.a.LEVEL_DEBUG]={method:"debug",color:"#d500ff"},i[r.a.LEVEL_INFO]={method:"info",color:"blue"},i[r.a.LEVEL_WARN]={method:"warn",color:"#ff6600"},i[r.a.LEVEL_ERROR]={method:"error",color:"red"},i),l=o.a.extend({name:"ConsoleReporter",
hasSupport:function(){return a.a.hasConsole},onLogMessage:function(e){var t=e.message,n=s[e.level],i=window.console[n&&n.method]||window.console.log;n&&n.color?i.call(window.console,"%c"+t,"color: "+n.color+";"):i.call(window.console,t)},onLogGroup:function(e){(window.console.group||window.console.log).call(window.console,e.message)},onLogGroupCollapsed:function(e){(window.console.groupCollapsed||window.console.log).call(window.console,e.message)},onLogGroupEnd:function(){
window.console.groupEnd&&window.console.groupEnd()}});t.a=l},function(e,t,n){"use strict";var i=n(179),a=n.n(i),r=n(78),o=n(101),s=n(19),l=n(110),c=r.a.extend({mixins:l.a,name:"AbstractReporter",enabled:!1,destroyed:!1,_suspended:!1,initialize:function(){!1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).enabled&&this.enable()},hasSupport:function(){return!0},enable:function(){this.enabled||this.destroyed||!this.hasSupport()||(this.enabled=!0,this.listenTo(s.a,{
"log:message":this.onLog,"log:group":this.onLog,"log:groupCollapsed":this.onLog,"log:groupEnd":this.onLog}),this.onEnabled())},disable:function(){this.enabled&&(this.enabled=!1,this.stopListening(),this.onDisabled())},destroy:function(){this.destroyed||(this.disable(),this.destroyed=!0,this.onDestroyed())},_suspend:function(){this._suspended||(this._suspended=!0,this.onSuspended())},_resume:function(){this._suspended&&(this._suspended=!1,this.onResumed())},onLog:function(e){
if(this._suspended)return void(o.a.hasConsole&&window.console.warn("[Logging] Ignored log reentrancy:",a()(e)));switch(this._suspend(),e.type){case"log:message":this.onLogMessage(e);break;case"log:group":this.onLogGroup(e);break;case"log:groupCollapsed":this.onLogGroupCollapsed(e);break;case"log:groupEnd":this.onLogGroupEnd(e)}this._resume()},onLogMessage:function(){},onLogGroup:function(){},onLogGroupCollapsed:function(){this.onLogGroup.apply(this,arguments)},onLogGroupEnd:function(){},
onEnabled:function(){},onDisabled:function(){},onResumed:function(){},onSuspended:function(){},onDestroyed:function(){}});t.a=c},function(e,t,n){"use strict";function i(){return new c.a,new h.a,new u.a,new l.a,new p.a,new s.a,new f.a,new d.a,a.c.history.start(),o.a.Deferred().resolve().promise()}t.a=i;var a=n(87),r=n(13),o=n.n(r),s=n(2205),l=n(3309),c=n(3349),u=n(4601),d=n(4791),p=n(4803),h=n(4840),f=n(4867)},function(e,t,n){"use strict";var i=n(306),a=n(2213),r=i.a.extend({controller:new a.a,
appRoutes:{"!/settings/server/:serverID/status/alerts":"alerts","!/settings/server/:serverID/status/sync(/:deviceID)":"sync","!/settings/server/:serverID/status/conversion":"conversion","!/settings/server/:serverID/status/now-playing":"nowPlaying","!/settings/server/:serverID/status/server-dashboard":"serverDashboard","!/settings/synced-content/:serverID(/:deviceID)":"syncedContent","!/activity":"activity","!/activity/alerts(/:serverID)":"legacyAlerts",
"!/activity/sync(/:serverID)(/:deviceID)":"legacySync","!/activity/conversion(/:serverID)":"legacyConversion","!/activity/playing(/:serverID)":"legacyNowPlaying","!/status":"activity","!/status/alerts(/:serverID)":"legacyAlerts","!/status/sync(/:serverID)(/:deviceID)":"legacySync","!/status/conversion(/:serverID)":"legacyConversion","!/status/playing(/:serverID)":"legacyNowPlaying"}});t.a=r},function(e,t,n){n(784),n(2207),e.exports=n(120).Array.from},function(e,t,n){"use strict"
;var i=n(775),a=n(169),r=n(503),o=n(2208),s=n(2209),l=n(1123),c=n(2210),u=n(1204);a(a.S+a.F*!n(2212)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,a,d,p=r(e),h="function"==typeof this?this:Array,f=arguments.length,v=f>1?arguments[1]:void 0,g=void 0!==v,m=0,y=u(p);if(g&&(v=i(v,f>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(t=l(p.length),n=new h(t);t>m;m++)c(n,m,g?v(p[m],m):p[m]);else for(d=y.call(p),n=new h;!(a=d.next()).done;m++)c(n,m,g?o(d,v,[a.value,m],!0):a.value)
;return n.length=m,n}})},function(e,t,n){var i=n(346);e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,n){var i=n(504),a=n(245)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[a]===e)}},function(e,t,n){"use strict";var i=n(345),a=n(501);e.exports=function(e,t,n){t in e?i.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){
var i=n(777),a=n(245)("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=o(t=Object(e),a))?n:r?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var i=n(245)("iterator"),a=!1;try{var r=[7][i]();r.return=function(){a=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1
;var n=!1;try{var r=[7],o=r[i]();o.next=function(){return{done:n=!0}},r[i]=function(){return o},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(19),o=n(307),s=n(90),l=n(1206),c=o.a.extend({activity:function(){var e=this;this.populateView({primaryServer:!0}).done(function(t){var n=t.server;n.get("shared")?e.sync(n.id):e.alerts(n.id)})},alerts:function(e){var t=this.getPopulateOptions(e);this.showAlertsView(t,e)},legacyAlerts:function(e){
var t=this.getPopulateOptions(e);this.showAlertsView(t,e)},showAlertsView:function(e,t){this.populateView(e).done(function(){r.a.trigger("show:view",new l.a({settingsSection:"status",settingsGroup:"alerts",serverID:t}))})},sync:function(e,t){var n=this.getPopulateOptions(e);this.showSyncView(n,e,t)},legacySync:function(e,t){var n=this.getPopulateOptions(e);this.showSyncView(n,e,t)},syncedContent:function(e,t){var n=this.getPopulateOptions(e);this.showSyncView(n,e,t,"syncedContent")},
showSyncView:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"sync",c=this.populateView(a()({},e,{serverID:s.a}));c=c.then(function(){return i.populateView(e)}),c.done(function(){r.a.trigger("show:view",new l.a({settingsSection:"status",settingsGroup:"sync",serverID:t,deviceID:n,routeOrigin:o}))})},conversion:function(e){var t=this.getPopulateOptions(e);this.showConversionView(t,e)},legacyConversion:function(e){var t=this.getPopulateOptions(e)
;this.showConversionView(t,e)},showConversionView:function(e,t){this.populateView(e).done(function(){r.a.trigger("show:view",new l.a({settingsSection:"status",settingsGroup:"conversion",serverID:t}))})},nowPlaying:function(e){var t=this.getPopulateOptions(e);this.showNowPlayingView(t,e)},legacyNowPlaying:function(e){var t=this.getPopulateOptions(e);this.showNowPlayingView(t,e)},showNowPlayingView:function(e,t){this.populateView(e).done(function(){r.a.trigger("show:view",new l.a({
settingsSection:"status",settingsGroup:"now-playing",serverID:t}))})},serverDashboard:function(e){var t=this.getPopulateOptions(e);this.showServerDashboardView(t,e)},showServerDashboardView:function(e,t){this.populateView(e).done(function(){r.a.trigger("show:view",new l.a({settingsSection:"status",settingsGroup:"server-dashboard",serverID:t}))})},getPopulateOptions:function(e){return{showLoading:!this.isReload(e)}}});t.a=c},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred()
;return e&&e.then?e.then(t.reject,t.reject):t.reject(e),t.promise()}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){e.exports={default:n(2216),__esModule:!0}},function(e,t,n){n(1133),e.exports=n(120).Symbol.for},,,,function(e,t){e.exports={container:"FullPage-container-17Y0c"}},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({idAttribute:"key",whitelistedAttrs:["key","name","defaultAudioLanguage","autoSelectAudio","defaultSubtitleLanguage","subtitleMode"],
url:function(){return this.get("key")},convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);return t.Account&&(t=t.Account),o.a.parseBoolean(t,"autoSelectAudio"),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=s},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(18),l=n(2223),c=n(2224),u=l.a.extend({defaults:function(){return{children:new c.a([],{server:this.server,parent:this})}},findItem:function(e){
return this.get("children").get(e)},addContent:function(e){var t=[o.a.result(this,"url"),"items",e.id],n=s.join(t,e.getSaveParams()),i=o.a.extend(e.server.getXHROptions(n),{type:"PUT"}),r=a.a.ajax(i);return r.then(o.a.bind(function(e){this.set(this.parse(e))},this)),r.promise()}});t.a=u},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(18),l=n(181),c=n(425),u=n(268),d=n(102),p=n(359),h=l.a.extend({idAttribute:"ratingKey",
whitelistedAttrs:["guid","addedAt","composite","duration","key","leafCount","playlistType","ratingKey","smart","summary","title","type","allowSync"],defaults:function(){return{children:new c.default([],{server:this.server,parent:this,url:function(){var e,t="/playlists/"+this.parent.id+"/items";return"audio"===this.parent.get("playlistType")&&(e={includeRelated:1}),s.join(t,e)}})}},urlRoot:"/playlists",saveUrl:function(){return"/library/metadata/"+this.id},cacheKey:function(e){
if(e.key)return this.server&&this.server.getScopedKey(e.key)},initialize:function(){this.listenToOnce(this.get("children"),"add",function(e){this.set("art",e.get("art"))})},sync:function(e,t,n){var i=p.a.addVersionHeader(2,n);return l.a.prototype.sync.call(this,e,t,i)},parse:function(e){var t=this.convert(e);return t.Playlist&&(t=t.Playlist),d.a.parseInteger(t,["duration","leafCount","addedAt"]),d.a.parseBoolean(t,["smart","allowSync"]),t.isPlaylist=!0,t},findItem:function(e){
return this.get("children").findWhere({playlistItemID:e})},moveItem:function(e,t){var n=t?{after:t}:{},i=s.join([o.a.result(this,"url"),"/items/",e,"/move"],n),r=o.a.extend(this.server.getXHROptions(i),{type:"PUT"}),l=a.a.ajax(r),c=this.get("children"),u=this.findItem(e);c.remove(u);var d=this.findItem(t),p=d?c.indexOf(d)+1:0;return c.add(u,{at:p}),l},removeItem:function(e){e=e.toString();var t=s.join([o.a.result(this,"url"),"/items/",e]),n=o.a.extend(this.server.getXHROptions(t),{type:"DELETE"
}),i=a.a.ajax(n);i.then(o.a.bind(function(e){this.set(this.parse(e))},this));var r=this.get("children"),l=this.findItem(e);return r.remove(l),i},addContent:function(e,t){var n=this.isNew()?"POST":"PUT",i=[o.a.result(this,"url")],r={};this.isNew()?(r.type=this.get("playlistType"),r.title=this.get("title"),r.smart=this.get("smart")?1:0):i.push("/items"),e.get("playQueueID")?r.playQueueID=e.get("playQueueID"):r.uri=u.a.uri(e,t);var l=s.join(i,r),c=o.a.extend(e.server.getXHROptions(l),{type:n
}),d=a.a.ajax(c);return d.then(o.a.bind(function(e){this.set(this.parse(e))},this)),d.promise()},isLibraryItem:function(){return!0},isPlexMusicItem:function(){return!1}});t.a=h},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(365),o=n(518),s=a.a.extend({name:"VersionGeneratorCollection",context:["server"],model:o.a,url:function(){return i.join(["playlists",this.parent.id,"items"],{type:r.a.LOCAL})}});t.a=s},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(18),c=n(181),u=n(836),d=n(102),p=c.a.extend({idAttribute:"playQueueID",whitelistedAttrs:["playQueueID","playQueueSelectedItemID","playQueueSelectedItemOffset","playQueueSelectedMetadataItemID","playQueueLastAddedItemID","playQueueShuffled","playQueueSourceURI","playQueueTotalCount","playQueueVersion","message"],defaults:{selectedItem:null,mediaType:null,owned:!0,hasUserAdditions:!1,playQueueVersion:0},
metadataElementNames:["Directory","Video","Track","Photo","Hub"],url:function(){return"/playQueues/"+this.id},initialize:function(){this.listenTo(this,"change:message",this.onMessageChange)},_fetch:function(){var e=o.a.result(this,"url");return this._ajax("GET",e)},convert:function(e){var t=o.a.isObject(e)?e:d.a.parseXML(e);return d.a.parseBoolean(t,"playQueueShuffled"),d.a.parseInteger(t,["playQueueSelectedItemOffset","playQueueTotalCount","playQueueVersion"]),d.a.parseArray(t,"Metadata"),t},
parse:function(e,t){o.a.isString(e)&&(e=d.a.replaceXMLElementNames(e,this.metadataElementNames,"Metadata"));var n=this.convert(e);n.id&&(n.playQueueID=n.id);var i=o.a.pick(n,this.whitelistedAttrs);return this.set(i,{silent:!0}),this.pendingChanges=this.changed,this.parseItems(n),i},parseItems:function(e){var t=this.get("collection"),n=e.Metadata,i=!!n.length,a=o.a.pluck(n,"playQueueItemID").indexOf(e.playQueueSelectedItemID),r=e.playQueueSelectedItemOffset,s=r-a;o.a.each(n,function(t,n){
t.queueIndex=s+n,e.identifier&&(t.identifier=e.identifier),e.mediaTagPrefix&&(t.mediaTagPrefix=e.mediaTagPrefix),e.mediaTagVersion&&(t.mediaTagVersion=e.mediaTagVersion)}),t?t.set(n,{parse:i}):(t=new u.a(n,{server:this.server,parent:this,parse:i}),this.set("collection",t)),t.totalSize=e.playQueueTotalCount,t.availableRange={start:s,end:s+t.length}},moveItem:function(e,t){if(e===this.get("playQueueSelectedItemID"))return a.a.Deferred().resolve().promise();this.set("hasUserAdditions",!0);var n={
after:t||-1},i=l.join([o.a.result(this,"url"),"/items/",e,"/move"],n);return this._ajax("PUT",i)},getUpNextRange:function(){var e=this.get("collection"),t=e.get(this.get("playQueueSelectedItemID")),n=e.indexOf(t),i=Math.max(n,0),a=i,r=this.get("playQueueLastAddedItemID");if(null!=r){var o=e.get(r),s=e.indexOf(o);s>i&&(a=s)}return{start:i,end:a}},getCurrentItem:function(){var e=this.get("playQueueSelectedItemID");return this.get("collection").findWhere({playQueueItemID:e})||null},
_ajax:function(e,t){var n=o.a.extend(this.server.getXHROptions(t),{type:e}),i=a.a.ajax(n);return i.done(o.a.bind(function(e){this.set(this.parse(e)),o.a.isEmpty(this.pendingChanges)||(o.a.each(this.pendingChanges,function(e,t){this.trigger("change:"+t,this,e)},this),this.trigger("change",this),this.pendingChanges=null),this.set("selectedItem",this.getCurrentItem())},this)),i.promise()},onMessageChange:function(e,t){t&&s.a.trigger("show:alert",{type:"error",message:t})}});t.a=p},function(e,t,n){
"use strict";var i=n(2227),a=n(25),r=n(2228),o=a.a.extend({mixins:[i.a],name:"LyricsStreamCollection",context:["server","section"],model:r.a,initialize:function(){this.exclusiveBoolAttr("selected")}});t.a=o},function(e,t,n){"use strict";var i={exclusiveBoolAttr:function(e){var t=this;this.listenTo(this,"change:"+e,function(n,i){i&&t.each(function(t){t.set(e,t===n&&i)})})}};t.a=i},function(e,t,n){"use strict";var i=n(18),a=n(17),r=n(14),o=n(507),s=n(2229),l=a.a.extend({name:"LyricsStreamModel",
context:["server","section"],rootPropertyName:"Lyrics",mergeStrategy:o.a,url:function(){return i.join(this.get("key"),{format:"xml"})},sessionAttrs:{follow:r.a.boolean,lyricsError:r.a.object},syncedAttrs:{id:r.a.integer,key:r.a.string,streamType:r.a.integer,index:r.a.integer,title:r.a.string,selected:r.a.boolean,codec:r.a.string,provider:r.a.string,format:r.a.string,minLines:r.a.integer,timed:r.a.boolean},syncedRelations:{lines:{relationClass:s.a,rootPropertyName:"Line"}},defaults:{follow:!0,
selected:!1,lyricsError:null}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(2230),r=i.a.extend({name:"LyricsLineCollection",context:["server","section"],model:a.a,eachSpan:function(e){this.each(function(t){t.get("spans").each(e)})}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(2231),o=i.a.extend({name:"LyricsLineModel",context:["server","section"],syncedAttrs:{startOffset:a.a.integer,endOffset:a.a.integer},syncedRelations:{spans:{relationClass:r.a,rootPropertyName:"Span"}
},defaults:{startOffset:-1,endOffset:-1}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(2232),r=i.a.extend({name:"LyricsSpanCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"LyricsSpanModel",context:["server","section"],sessionAttrs:{active:a.a.boolean},syncedAttrs:{startOffset:a.a.integer,endOffset:a.a.integer,text:a.a.string},defaults:{startOffset:-1,endOffset:-1},isPositionWithin:function(e){
var t=this.get("startOffset"),n=this.get("endOffset");if(-1===t)return!1;var i=e>=t,a=e<=n||-1===n;return i&&a}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"PlayQueueItemModel",context:["server","provider"],syncedAttrs:{url:a.a.string,UrlTemplateFilter:a.a.array},defaults:{UrlTemplateFilter:[]}});t.a=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(22),a=n(3),r=n(2268),o=n(2271),s=n.n(o),l=i.a.Layout.extend({className:"alerts-container",
template:s.a,ui:{pageCount:".page-count",previousBtn:".previous-btn",nextBtn:".next-btn"},regions:{serverDropdown:".filter-bar",list:".alert-list-container"},modelEvents:{"change:shared":"onSharedChange"},collectionEvents:{add:"onAlertAdd"},events:{"click .previous-btn":"onPreviousClick","click .next-btn":"onNextClick"},onlyAfterRender:["onAlertAdd"],initialize:function(){this.shared=this.model.get("shared"),this.page=1,this.listCollection=this.collection.clone(this.collection.page(this.page,{
reverse:!0})),this.listCollection.stopListening()},serializeData:function(){var e=this.collection.pages();return{shared:this.shared,page:this.page,pages:e,enablePrevious:this.page>1,enableNext:this.page<e}},updatePages:function(){var e=this.collection.pages();this.ui.pageCount.text(Object(a.default)("{1} of {2}",this.page,e)),this.ui.previousBtn.toggleClass("disabled",this.page<2),this.ui.nextBtn.toggleClass("disabled",this.page>=e)},updateList:function(){
this.listCollection.reset(this.collection.page(this.page,{reverse:!0}))},onRender:function(){this.shared||this.list.append(new r.a({collection:this.listCollection}))},onSharedChange:function(e,t){this.shared=t,this.render()},onAlertAdd:function(e,t){this.shared||(this.updatePages(),this.updateList())},onPreviousClick:function(e){e.preventDefault(),this.ui.previousBtn.isDisabled()||(this.page--,this.updatePages(),this.updateList())},onNextClick:function(e){e.preventDefault(),
this.ui.nextBtn.isDisabled()||(this.page++,this.updatePages(),this.updateList())}});t.a=l},function(e,t,n){"use strict";var i=n(97),a=n(2269),r=i.a.extend({tagName:"ul",className:"list card-list alert-list",itemView:a.a,reversed:!0});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(16),s=n(3),l=n(2270),c=n.n(l),u=i.a.ItemView.extend({tagName:"li",className:"card-collapsed striped-list-item alert-list-item",template:c.a,serializeData:function(){
var e=Object(o.c)("appModel"),t=this.model.toJSON(),n={serverID:this.model.server.id,serverName:r.a.escape(this.model.server.get("friendlyName")),itemKey:"/library/metadata/"+this.model.get("itemID"),event:t,timeFormat:e.get("experienceSettings").get("timeFormat")};if(t.label=r.a.escape(t.label),t.value=r.a.escape(t.value),"playing"===t._type&&(t.username=r.a.escape(t.username),t.title=r.a.escape(t.title),t.player=r.a.escape(t.player)),
"timeline"===t._type)switch(t.mediaTitle=this.model.get("title")||"an item",this.model.get("state")){case 0:t.stateString=Object(s.default)("Created");break;case 1:t.stateString=Object(s.default)("Progress for");break;case 2:t.stateString=Object(s.default)("Matching");break;case 3:t.stateString=Object(s.default)("Downloading metadata for");break;case 4:t.stateString=Object(s.default)("Loading metadata for");break;case 5:t.stateString=Object(s.default)("Finished processing");break;case 6:
t.stateString=Object(s.default)("Analyzing");break;case 9:t.stateString=Object(s.default)("Deleted")}return n}});t.a=u},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return' <i class="server-alert-icon glyphicon cogwheel"></i> '}function l(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a._type),"status",{hash:{},inverse:Q.program(6,u,t),fn:Q.program(4,c,t),data:t}),
a||0===a?a:""}function c(e,t){return' <i class="server-alert-icon glyphicon bullhorn"></i> '}function u(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a._type),"playing",{hash:{},inverse:Q.program(9,p,t),fn:Q.program(7,d,t),data:t}),a||0===a?a:""}function d(e,t){return' <i class="server-alert-icon glyphicon imac"></i> '}function p(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a._type),"websocket",{hash:{},inverse:Q.program(13,v,t),fn:Q.program(10,h,t),
data:t}),a||0===a?a:""}function h(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,null==n||!1===n?n:n.opened),{hash:{},inverse:Q.program(11,f,t),fn:Q.program(4,c,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function f(e,t){return' <i class="server-alert-icon glyphicon warning-sign"></i> '}function v(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a.state),0,{hash:{},inverse:Q.program(16,m,t),fn:Q.program(14,g,t),data:t}),a||0===a?a:""}function g(e,t){
return' <i class="server-alert-icon glyphicon plus"></i> '}function m(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a.state),5,{hash:{},inverse:Q.program(19,b,t),fn:Q.program(17,y,t),data:t}),a||0===a?a:""}function y(e,t){return' <i class="server-alert-icon glyphicon ok-2"></i> '}function b(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a.state),6,{hash:{},inverse:Q.program(22,S,t),fn:Q.program(20,I,t),data:t}),a||0===a?a:""}function I(e,t){
return' <i class="server-alert-icon glyphicon magic"></i> '}function S(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a.state),9,{hash:{},inverse:Q.program(25,D,t),fn:Q.program(23,M,t),data:t}),a||0===a?a:""}function M(e,t){return' <i class="server-alert-icon glyphicon bin"></i> '}function D(e,t){return' <i class="server-alert-icon glyphicon tags"></i> '}function C(e,t){var a,r="";return r+=" "+Y(i(n(5)).call(e,"{1} set to {2}.",(a=e&&e.event,
null==a||!1===a?a:a.label),(a=e&&e.event,null==a||!1===a?a:a.value),{hash:{},data:t}))+" "}function j(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a._type),"status",{hash:{},inverse:Q.program(36,w,t),fn:Q.program(30,P,t),data:t}),a||0===a?a:""}function P(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,null==n||!1===n?n:n.message),{hash:{},inverse:Q.program(33,T,t),fn:Q.program(31,O,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function O(e,t){var a,r=""
;return r+=" "+Y(i(n(5)).call(e,(a=e&&e.event,null==a||!1===a?a:a.message),{hash:{},data:t}))+" "}function T(e,t){var r,o="";return o+=" "+Y(i(n(5)).call(e,(r=e&&e.event,null==r||!1===r?r:r.title),{hash:{},data:t})),r=a.if.call(e,(r=e&&e.event,null==r||!1===r?r:r.description),{hash:{},inverse:Q.noop,fn:Q.program(34,E,t),data:t}),(r||0===r)&&(o+=r),o+=" "}function E(e,t){var a,r="";return r+=": "+Y(i(n(5)).call(e,(a=e&&e.event,null==a||!1===a?a:a.description),{hash:{},data:t}))}function w(e,t){
var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a._type),"timeline",{hash:{},inverse:Q.program(39,x,t),fn:Q.program(37,A,t),data:t}),a||0===a?a:""}function A(e,t){var a,r="";return r+=" "+Y(i(n(5)).call(e,(a=e&&e.event,null==a||!1===a?a:a.stateString),{hash:{},data:t}))+' <a href="#!/server/'+Y(i(n(632)).call(e,e&&e.serverID,{hash:{},data:t}))+"/details?key="+Y(i(n(632)).call(e,e&&e.itemKey,{hash:{},data:t}))+'">'+Y((a=e&&e.event,a=null==a||!1===a?a:a.mediaTitle,
typeof a===G?a.apply(e):a))+"</a> "}function x(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,null==a||!1===a?a:a._type),"playing",{hash:{},inverse:Q.program(45,R,t),fn:Q.program(40,N,t),data:t}),a||0===a?a:""}function N(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,null==n||!1===n?n:n.player),{hash:{},inverse:Q.program(43,k,t),fn:Q.program(41,L,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function L(e,t){var a,r=""
;return r+=" "+Y(i(n(5)).call(e,"{1} started playing {2} on {3}.",(a=e&&e.event,null==a||!1===a?a:a.username),(a=e&&e.event,null==a||!1===a?a:a.title),(a=e&&e.event,null==a||!1===a?a:a.player),{hash:{},data:t}))+" "}function k(e,t){var a,r="";return r+=" "+Y(i(n(5)).call(e,"{1} started playing {2}.",(a=e&&e.event,null==a||!1===a?a:a.username),(a=e&&e.event,null==a||!1===a?a:a.title),{hash:{},data:t}))+" "}function R(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.event,
null==a||!1===a?a:a._type),"websocket",{hash:{},inverse:Q.noop,fn:Q.program(46,z,t),data:t}),a||0===a?a:""}function z(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,null==n||!1===n?n:n.opened),{hash:{},inverse:Q.program(49,B,t),fn:Q.program(47,U,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function U(e,t){var a="";return a+=" "+Y(i(n(5)).call(e,"Opened connection to {1}, listening for events.",e&&e.serverName,{hash:{},data:t}))+" "}function B(e,t){var n;return n=a.if.call(e,(n=e&&e.event,
null==n||!1===n?n:n.closed),{hash:{},inverse:Q.program(52,_,t),fn:Q.program(50,F,t),data:t}),n||0===n?n:""}function F(e,t){var a="";return a+=" "+Y(i(n(5)).call(e,"Connection to {1} closed.",e&&e.serverName,{hash:{},data:t}))+" "}function _(e,t){var a="";return a+=" "+Y(i(n(5)).call(e,"Unable to listen for events on {1}.",e&&e.serverName,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var V,H="",Q=this,Y=this.escapeExpression,G="function"
;return H+='<div class="striped-list-inner-item alert-list-inner-item"> ',V=i(n(34)).call(t,(V=t&&t.event,null==V||!1===V?V:V._type),"setting",{hash:{},inverse:Q.program(3,l,o),fn:Q.program(1,s,o),data:o}),(V||0===V)&&(H+=V),H+=' <div class="server-alert-details"> <span class="server-alert-time">'+Y(i(n(1201)).call(t,(V=t&&t.event,null==V||!1===V?V:V.time),t&&t.timeFormat,{hash:{},data:o}))+"</span> ",V=i(n(34)).call(t,(V=t&&t.event,null==V||!1===V?V:V._type),"setting",{hash:{},
inverse:Q.program(29,j,o),fn:Q.program(27,C,o),data:o}),(V||0===V)&&(H+=V),H+=" </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <div class="filter-bar-right"> <a class="previous-btn btn-gray ',n=a.unless.call(e,e&&e.enablePrevious,{hash:{},inverse:h.noop,fn:h.program(2,l,t),data:t}),(n||0===n)&&(i+=n),
i+='" href="#"> <i class="glyphicon chevron-left"></i> </a> <a class="next-btn btn-gray ',n=a.unless.call(e,e&&e.enableNext,{hash:{},inverse:h.noop,fn:h.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+='" href="#"> <i class="glyphicon chevron-right"></i> </a> </div> '}function l(e,t){return"disabled"}function c(e,t){var a=""
;return a+=' <div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> <h4 class="text-muted text-center">'+f(i(n(5)).call(e,"Alerts are restricted from shared users.",{hash:{},data:t}))+"</h4> </div> </div> "}function u(e,t){return' <div class="alert-list-container"></div> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h=this,f=this.escapeExpression
;return p+='<div class="filter-bar"> <span class="page-count">'+f(i(n(5)).call(t,"Page {1} of {2}",t&&t.page,t&&t.pages,{hash:{},data:o}))+"</span> ",d=a.unless.call(t,t&&t.shared,{hash:{},inverse:h.noop,fn:h.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=" </div> ",d=a.if.call(t,t&&t.shared,{hash:{},inverse:h.program(6,u,o),fn:h.program(4,c,o),data:o}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(2273),s=n(1220),l=n(160),c=n(3),u=n(2275),d=n(2283),p=n(197),h=n(2285),f=n.n(h),v=i.a.Layout.extend({className:"conversion-container",template:f.a,ui:{filterBar:".filter-bar",pauseBtn:".pause-btn",resumeBtn:".resume-btn",divider:".conversion-queue-divider"},regions:{filterBar:".filter-bar",upNextList:".conversion-queue-up-next-list-region",afterUpNextList:".conversion-queue-after-up-next-list-region",emptyRegion:".conversion-queue-empty-region"},events:{
"click .pause-btn":"onTogglePauseClick","click .resume-btn":"onTogglePauseClick"},initialize:function(e){this.playQueue=e.playQueue,this.transcodeJobs=e.transcodeJobs,this.generators=e.generators,this.items=this.playQueue.get("collection"),this.upNextItems=new s.a(this.items,{playQueue:this.playQueue,includeSelectedItem:!0}),this.afterUpNextItems=new o.a(this.items,{playQueue:this.playQueue}),this.settings=this.model.get("pmp").get("settings"),
this.pausedSetting=this.settings.get("BackgroundQueueIdlePaused"),this.listenTo(this.upNextItems,"reset add remove",this.onUpNextChange),this.listenTo(this.afterUpNextItems,"reset add remove",this.onAfterUpNextChange)},serializeData:function(){return{shouldShowList:this.model.supports("streamReady"),shouldShowDivider:!!this.afterUpNextItems.length,minServerVersion:l.a.streamReady,hasPausedSetting:!!this.pausedSetting,isPaused:this.pausedSetting&&this.pausedSetting.get("value"),
errorMessage:this.getErrorMessage(),manageVersionsRoute:Object(p.a)(this.model.id,"manage","versions")}},toggleEmptyView:function(){var e=this.upNextItems.length+this.afterUpNextItems.length>0;e?this.emptyRegion.close():this.emptyRegion.show(new d.a({model:this.model})),this.$el.toggleClass("is-empty",!e),this.ui.filterBar.toggleClass("hide-actions",!e)},getErrorMessage:function(){var e=this.generators.reduce(function(e,t){var n=t.get("status")
;return"failed"===n.get("state")?e+=Math.max(n.get("itemsCount"),1):n.get("itemsFailedCount")&&(e+=n.get("itemsFailedCount")),e},0);if(e)return 1===e?Object(c.default)("There was a problem converting 1 item."):Object(c.default)("There were problems converting {1} items.",e)},onRender:function(){var e={playQueue:this.playQueue},t={playQueue:this.playQueue,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting};this.upNextList.show(new u.a(r.a.extend({},e,{collection:this.upNextItems,
itemViewOptions:t,sortableOptions:{sort:!0,group:{name:"upNext",pull:!1,put:["afterUpNext"]}}}))),this.afterUpNextList.show(new u.a(r.a.extend({},e,{collection:this.afterUpNextItems,itemViewOptions:r.a.extend({},t,{hideDragHandle:!0}),sortableOptions:{sort:!1,group:{name:"afterUpNext",pull:!0,put:!1}}}))),this.toggleEmptyView()},onClose:function(){this.upNextItems.destroy(),this.afterUpNextItems.destroy()},onUpNextChange:function(){this.toggleEmptyView()},onAfterUpNextChange:function(){
this.ui.divider.toggleClass("hidden",!this.afterUpNextItems.length),this.toggleEmptyView()},onTogglePauseClick:function(e){e.preventDefault();var t=this.pausedSetting.get("value");this.ui.pauseBtn.toggleClass("hidden",!t),this.ui.resumeBtn.toggleClass("hidden",t),this.pausedSetting.set("value",!t),this.settings.first().save(this.pausedSetting.id,t?0:1)}});t.a=v},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(1220),o=r.a.extend({initialize:function(e){this.playQueue=e.playQueue,
this.addFilter(a.a.bind(this.filterAfterUpNext,this)),this.listenForUpNextChanges()},filterAfterUpNext:function(e){return this.superset.indexOf(e)>this.playQueue.getUpNextRange().end}});t.a=o},function(e,t,n){"use strict";var i=n(87),a=n(10),r=n.n(a),o=n(78),s=n(110),l=o.a.extend({mixins:[s.a],defaultFilterName:"__default",whitelistedEvents:["add","remove","reset","sort","destroy","sync","request","error"],
blacklistedMethods:["_onModelEvent","_prepareModel","_removeReference","_reset","add","initialize","sync","remove","reset","set","push","pop","unshift","shift","sort","parse","fetch","create","model","off","on","listenTo","listenToOnce","bind","trigger","once","stopListening"],constructor:function(e,t){this.superset=e,this._collection=new i.c.Collection(e.toArray()),this._proxyCollection(this._collection),this.resetFilters(),this.listenTo(e,{add:this.onSupersetAdd,remove:this.onSupersetRemove,
reset:this.onSupersetReset}),this.initialize(t)},_proxyCollection:function(e){this.models=e.models,this._proxyCollectionMethods(e),this._proxyCollectionLength(e),this._proxyCollectionEvents(e)},_proxyCollectionMethods:function(e){var t={};r.a.each(r.a.functions(i.c.Collection.prototype),function(n){r.a.contains(this.blacklistedMethods,n)||(t[n]=function(){return e[n].apply(e,arguments)})},this),r.a.extend(this,t)},_proxyCollectionLength:function(e){var t=function(){this.length=e.length}
;this.listenTo(e,"all",t),t.call(this)},_proxyCollectionEvents:function(e){var t=function(t){var n=r.a.toArray(arguments),i="change"===t||"change:"===t.slice(0,7);"reset"===t&&(this.models=e.models),r.a.contains(this.whitelistedEvents,t)?(r.a.contains(["add","remove","destroy"],t)?n[2]=this:r.a.contains(["reset","sort"],t)&&(n[1]=this),this.trigger.apply(this,n)):i&&this.contains(n[1])&&this.trigger.apply(this,n)};this.listenTo(e,"all",t)},addFilter:function(e,t){return t||(t=e,
e=this.defaultFilterName),r.a.has(this._filters,e)&&this._invalidateCacheForFilter(e),this._filters[e]=this._createFilter(t),this._execFilters(),this.trigger("filtered:add",e),this},removeFilter:function(e){return e||(e=this.defaultFilterName),delete this._filters[e],this._invalidateCacheForFilter(e),this._execFilters(),this.trigger("filtered:remove",e),this},resetFilters:function(){return this._filters={},this._invalidateCache(),this._execFilters(),this.trigger("filtered:reset"),this},
getFilters:function(){return r.a.keys(this._filters)},hasFilter:function(e){return r.a.contains(this.getFilters(),e)},refilter:function(e){return r.a.isObject(e)&&e.cid?this.onSupersetAdd(e):(this._invalidateCache(),this._execFilters()),this},destroy:function(){return this.stopListening(),this.superset=null,this._collection.reset([]),this.length=0,this.trigger("filtered:destroy"),this},_createFilter:function(e,t){if(r.a.isFunction(e))return e;throw new Error("Unsupported filter type")},
_execFilters:function(e){e||(e={});var t=[];this.superset&&(t=this.superset.filter(r.a.bind(this._execFiltersOnModel,this))),e.reset?this._collection.reset(t):this._collection.set(t),this.length=this._collection.length},_execFiltersOnModel:function(e){this._filterResultCache[e.cid]||(this._filterResultCache[e.cid]={});var t=this._filterResultCache[e.cid];for(var n in this._filters)if(r.a.has(this._filters,n)&&(r.a.has(t,n)||(t[n]=this._filters[n](e)),!t[n]))return!1;return!0},
_invalidateCache:function(){this._filterResultCache={}},_invalidateCacheForFilter:function(e){for(var t in this._filterResultCache)r.a.has(this._filterResultCache,t)&&delete this._filterResultCache[t][e]},onSupersetAdd:function(e){if(this._filterResultCache[e.cid]={},this._execFiltersOnModel(e)){if(!this._collection.get(e.cid)){for(var t=this.superset.indexOf(e),n=0,i=t-1;i>=0;i-=1)if(this.contains(this.superset.at(i))){n=this.indexOf(this.superset.at(i))+1;break}this._collection.add(e,{at:n})}
}else this._collection.get(e.cid)&&this._collection.remove(e);this.length=this._collection.length},onSupersetRemove:function(e){this.contains(e)&&this._collection.remove(e),this.length=this._collection.length},onSupersetReset:function(){this._execFilters({reset:!0})}});t.a=l},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(633),o=n.n(r),s=n(10),l=n.n(s),c=n(19),u=n(3),d=n(97),p=n(2276),h=n(65),f=d.a.extend({tagName:"ol",className:"list media-list playlist-items",itemView:p.a,sorted:!0,
itemEvents:{sort:"onSort"},initialize:function(){l.a.bindAll(this,"onItemMove")},onRender:function(){this.sortable&&this.sortable.destroy(),this.sortable=new o.a(this.el,l.a.extend({onAdd:this.onItemMove,onUpdate:this.onItemMove,handle:".sortable-handle",animation:200,scroll:!0,scrollSensitivity:100,scrollSpeed:2},this.options.sortableOptions))},onClose:function(){this.sortable&&this.sortable.destroy()},onSort:function(){this.render()},onItemMove:function(e){
var t=a()(e.item).data("queue-item-id"),n=a()(e.item).prev().data("queue-item-id"),i=this.options.playQueue;if(n)return void i.moveItem(t,n);var r=i.get("selectedItem").get("metadataItem"),o=r.get("title"),s=new h.a({title:Object(u.default)("Convert Immediately"),message:Object(u.default)("Do you want to start converting this item immediately? Any conversion progress for '{1}' will be lost.",o)}),d=s.promise;d.done(function(){i.moveItem(t)}),d.fail(l.a.bind(this.render,this)),
c.a.trigger("show:modal",s)}});t.a=f},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(16),s=n(43),l=n(268),c=n(623),u=n(3),d=n(248),p=n(518),h=n(819),f=n(1221),v=n(2282),g=n.n(v),m=i.a.Layout.extend({className:"striped-list-item media-list-item playlist-item version-generator-item",tagName:"li",template:g.a,ui:{poster:".media-poster"},events:{"click .promote-btn":"onPromoteClick","click .delete-btn":"onDeleteClick"},regions:{statusRegion:".conversion-status-region"},
attributes:function(){return{"data-queue-item-id":this.model.id}},initialize:function(e){this.metadataItem=e.model.get("metadataItem"),this.playQueue=e.playQueue,this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.hideDragHandle=e.hideDragHandle,this.type=this.metadataItem.get("type");var t=c.a[this.type];"movie"===this.type&&(t=c.a.art);var n="episode"===this.type?"show":this.type;this.image=new d.a({model:this.metadataItem,type:n,placeholderClass:t,height:60,
modelAttribute:"thumb",getUrl:this.getPosterUrl})},bindings:{".generator-title":{model:"metadataItem",modelAttribute:"title",formatter:function(e){return l.a.title(this.metadataItem)}},".generator-target":{modelAttribute:"target",formatter:function(e){return this.model.get("syncItemId")?Object(u.default)("Sync"):e}},".sortable-handle":{model:"playQueue",modelAttribute:"playQueueSelectedItemID",manual:!0,autohide:function(e){return this.model.get("playQueueItemID")!==e}},".promote-btn":{
modelAttribute:"queueIndex",manual:!0,autohide:function(e){var t=this.playQueue.getCurrentItem();return this.hideDragHandle||e-t.get("queueIndex")>1}}},serializeData:function(){return{hideDragHandle:this.hideDragHandle}},getPosterUrl:function(e){return"episode"===this.model.get("type")?this.model.get("grandparentThumb")||this.model.get("parentThumb")||e:e},deleteSyncItem:function(){var e=o.c("appModel"),t=new h.a({id:this.model.get("syncItemId"),
clientIdentifier:this.model.get("clientIdentifier")},{server:e.get("user").server});return s.a.execute("deleteSyncItem",{syncItem:t,server:this.model.server})},deleteGenerator:function(){var e=new p.a({id:this.model.get("generatorID")},{server:this.model.server,playlistID:this.metadataItem.get("playlistID")});return s.a.execute("disableVersionGenerator",{generator:e,ratingKey:this.metadataItem.get("ratingKey")})},onRender:function(){this.image.setElement(this.ui.poster),
this.statusRegion.show(new f.a({model:this.model,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}))},onClose:function(){this.image.close()},onCollectionSort:function(e){this.trigger("sort")},onPromoteClick:function(e){e.preventDefault();var t=this.playQueue.get("collection");this.listenToOnce(t,"sort",r.a.debounce(this.onCollectionSort));var n=this.model.get("playQueueItemID"),i=this.playQueue.get("playQueueSelectedItemID");this.playQueue.moveItem(n,i)},
onDeleteClick:function(e){e.preventDefault(),this.model.has("syncItemId")?this.deleteSyncItem():this.deleteGenerator()}});t.a=m},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=Object(a.c)(e),n=t.years*a.b,i=t.months*a.a,o=n+i+t.days;return 1!==o?Object(r.default)("{1} days",o):Object(r.default)("{1} day",o)}var a=n(433),r=n(3);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=Object(a.c)(e),n=t.days,i=t.hours,o=1!==n
;return n&&i?o?Object(r.default)("{1} days {2} hr",n,i):Object(r.default)("{1} day {2} hr",n,i):n?o?Object(r.default)("{1} days",n):Object(r.default)("{1} day",n):Object(r.default)("{1} hr",i)}var a=n(433),r=n(3);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=Object(a.c)(e),n=24*t.days*60,i=60*t.hours,o=t.minutes+i+n,s=t.seconds;return o?Object(r.default)("{1} min",o):s>0?Object(r.default)("{1} sec",s):""}var a=n(433),r=n(3);t.a=i},function(e,t,n){var i=n(15)
;e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<svg class="circle-progress-bar" version="1.1" xmlns="http://www.w3.org/2000/svg"> <circle fill="transparent"></circle> </svg> <div class="circle-progress-text"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),
o=o||{};var s,l="",c=this.escapeExpression;return l+='<div class="conversion-status-container conversion-status-converting"> <div class="progress-bar-region"></div> <div class="conversion-status-converting-label-container"> <span class="conversion-status-converting-label">'+c(i(n(5)).call(t,"Converting",{hash:{},data:o
}))+'</span> <span class="conversion-status-converting-speed"></span> <div class="conversion-status-converting-progress"> <span class="conversion-status-converting-percentage"></span> <span class="conversion-status-converting-progress-separator">&middot;</span> <span class="conversion-status-converting-remaining"></span> </div> </div> </div> <div class="conversion-status-container conversion-status-processed"> <i class="conversion-status-icon glyphicon ok-2 text-success"></i> '+c(i(n(5)).call(t,"Complete",{
hash:{},data:o}))+' </div> <div class="conversion-status-container conversion-status-disabled"> <i class="conversion-status-icon glyphicon circle-exclamation-mark text-danger"></i> '+c(i(n(5)).call(t,"Deleted",{hash:{},data:o
}))+' <button class="enable-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon repeat"></i></button> </div> <div class="conversion-status-container conversion-status-error"> <i class="conversion-status-icon glyphicon circle-exclamation-mark text-danger"></i> <span class="conversion-status-failed-message">'+c((s=t&&t.initialErrorMessage,
"function"==typeof s?s.apply(t):s))+'</span> <button class="retry-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon repeat"></i></button> </div> <div class="conversion-status-container conversion-status-pending"> <i class="conversion-status-icon glyphicon clock"></i> <span class="conversion-status-pending-label">'+c(i(n(5)).call(t,"Waiting",{hash:{},data:o}))+"</span> </div> "})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){
function r(e,t){return' <div class="sortable-handle btn-gray-link"><i class="glyphicon show-lines"></i></div> '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,s,l="",c=this.escapeExpression,u=this;return l+='<div class="show-actions striped-list-inner-item playlist-inner-item ',(s=n.type)?o=s.call(t,{hash:{},data:a}):(s=t&&t.type,o="function"==typeof s?s.call(t,{hash:{},data:a}):s),l+=c(o)+'"> <div class="media-actions media-reorder"> ',
o=n.unless.call(t,t&&t.hideDragHandle,{hash:{},inverse:u.noop,fn:u.program(1,r,a),data:a}),(o||0===o)&&(l+=o),
l+=' </div> <div class="generator-poster-container"> <div class="media-poster"></div> </div> <div class="media-actions generator-actions"> <button class="promote-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon up-arrow"></i></button> <button class="delete-btn media-action-btn btn-gray-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> <div class="media-item"> <div class="media-details"> <div class="generator-title col-lg"></div> <div class="generator-target col-md col-secondary"></div> <div class="conversion-status-region col-md col-secondary"></div> </div> </div> </div> '
})},function(e,t,n){"use strict";var i=n(22),a=n(197),r=n(2284),o=n.n(r),s=i.a.ItemView.extend({template:o.a,serializeData:function(){return{manageVersionsRoute:Object(a.a)(this.model.id,"manage","versions")}}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<div class="row row-padded"> <h4 class="text-muted text-center"> <p>'+l(i(n(5)).call(t,"Conversions for sync and media optimization will appear here.",{hash:{},data:o}))+"</p> <p>"+l(i(n(5)).call(t,"Manage your optimized versions in {1}Optimized Versions Settings{2}.",'<a href="{3}">',"</a>",t&&t.manageVersionsRoute,{hash:{},data:o}))+"</p> </h4> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o="";return o+=' <div class="filter-bar-right"> <button class="pause-btn btn btn-sm btn-default ',r=a.if.call(e,e&&e.isPaused,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+='">'+g(i(n(5)).call(e,"Pause",{hash:{},data:t}))+'</button> <button class="resume-btn btn btn-sm btn-primary ',r=a.unless.call(e,e&&e.isPaused,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(r||0===r)&&(o+=r),
o+='">'+g(i(n(5)).call(e,"Resume",{hash:{},data:t}))+"</button> </div> "}function l(e,t){return"hidden"}function c(e,t){var a,r="";return r+=' <p class="conversion-error-message"><i class="conversion-error-icon glyphicon circle-exclamation-mark text-danger"></i> '+g((a=e&&e.errorMessage,typeof a===m?a.apply(e):a))+" "+g(i(n(5)).call(e,"Check the status in {1}Optimized Versions Settings{2}.",'<a href="{3}">',"</a>",e&&e.manageVersionsRoute,{hash:{},data:t}))+"</p> "}function u(e,t){var a=""
;return a+=' <p class="conversion-status-message">'+g(i(n(5)).call(e,"Manage your completed conversions in {1}Optimized Versions Settings{2}.",'<a href="{3}">',"</a>",e&&e.manageVersionsRoute,{hash:{},data:t}))+"</p> "}function d(e,t){var n,i="";return i+=' <div class="conversion-queue-empty-region"></div> <div class="conversion-queue-up-next-list-region"></div> <hr class="conversion-queue-divider ',n=a.unless.call(e,e&&e.shouldShowDivider,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),
(n||0===n)&&(i+=n),i+='"> <div class="conversion-queue-after-up-next-list-region"></div> '}function p(e,t){var a="";return a+=' <div class="row row-padded"> <h4 class="text-muted text-center"> '+g(i(n(5)).call(e,"This requires Plex Media Server {1} or later.",e&&e.minServerVersion,{hash:{},data:t}))+" </h4> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var h,f="",v=this,g=this.escapeExpression,m="function";return f+='<div class="conversion-filter-bar filter-bar"> ',
h=a.if.call(t,t&&t.hasPausedSetting,{hash:{},inverse:v.noop,fn:v.program(1,s,o),data:o}),(h||0===h)&&(f+=h),f+=" </div> ",h=a.if.call(t,t&&t.errorMessage,{hash:{},inverse:v.program(6,u,o),fn:v.program(4,c,o),data:o}),(h||0===h)&&(f+=h),f+=" ",h=a.if.call(t,t&&t.shouldShowList,{hash:{},inverse:v.program(10,p,o),fn:v.program(8,d,o),data:o}),(h||0===h)&&(f+=h),f+=" "})},function(e,t,n){"use strict";var i=n(22),a=n(160),r=n(2287),o=n(2345),s=n.n(o),l=i.a.Layout.extend({
className:"now-playing-container",template:s.a,regions:{filterBar:".filter-bar",list:".sessions-list-container"},modelEvents:{"change:shared":"onSharedChange"},shouldShowList:function(){return!this.shared&&!this.synced&&this.supported},initialize:function(){this.shared=this.model.get("shared"),this.synced=!this.model.get("isFullServer"),this.supported=this.model.supports("publicNowPlaying")||this.model.get("myPlexSubscription")},serializeData:function(){return{
shouldShowList:this.shouldShowList(),shared:this.shared,synced:this.synced,minServerVersion:a.a.publicNowPlaying}},poll:function(){this.pollTimeoutID=setTimeout(this.whenRendered(this.refreshList),5e3)},refreshList:function(){this.collection.length&&this.collection.fetch(),this.poll()},onRender:function(){clearTimeout(this.pollTimeoutID),this.shouldShowList()&&(this.list.show(new r.a({collection:this.collection})),this.refreshList())},onSharedChange:function(e,t){this.shared=t,this.render()}})
;t.a=l},function(e,t,n){"use strict";var i=n(97),a=n(2288),r=n(2290),o=i.a.extend({tagName:"ul",className:"tile-list session-tile-list",itemView:r.a,emptyView:a.a});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(2289),r=n.n(a),o=i.a.ItemView.extend({template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s=""
;return s+='<div class="row row-padded"> <h4 class="text-muted text-center"> '+(0,this.escapeExpression)(i(n(5)).call(t,"Nothing is currently being played.",{hash:{},data:o}))+" </h4> </div> "})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(43),o=n(1223),s=n(309),l=n(1227),c=n(625),u=n(3),d=n(248),p=n(841),h=n(1228),f=n(634),v=n(2344),g=n.n(v),m=f.a.extend({className:"poster-item session-tile-list-item",template:g.a,screenshotPreferredIndex:"hd",screenshotInterval:null,
screenshotIntervalDelay:2e3,screenshotCount:0,ui:{poster:".media-poster",posterFade:".media-poster-fade",userPoster:".user-poster"},events:a.a.extend({"click .stop-btn":"onStopClick"},f.a.prototype.events),modelEvents:{"change:viewOffset":"onViewOffsetChange","change:Player":"onPlayerChange"},initialize:function(e){f.a.prototype.initialize.apply(this,arguments);var t=this.getScreenshotUrl(this.model.get("metadataItem").get("Media"));this.image=new d.a({model:this.model,
modelAttribute:"ratingKey",type:"clip",getUrl:this.getPosterUrl,width:350,url:t||null}),this.userImage=new d.a({model:this.model,modelAttribute:"User",type:"friend",getUrl:this.getUserPosterUrl,width:44}),this.posterFade=new d.a({model:this.model.get("metadataItem"),modelAttribute:"Media",type:"clip",getUrl:a.a.bind(this.getScreenshotUrl,this),width:350});var n=this.model.get("Player")
;n&&n.state===s.a.states.PLAYING&&(this.screenshotInterval=setInterval(a.a.bind(this.updateScreenshot,this),this.screenshotIntervalDelay)),this.listenTo(this.model,"change:Player",this.onPlayerChange)},serializeData:function(){var e=f.a.prototype.serializeData.apply(this,arguments);return e.showStopButton=this.model.server.hasOwnerFeature("session_kick")&&this.model.get("Session")&&!Object(h.a)(this.model.get("Player")),e},getPosterUrl:function(e){var t=this.model.get("metadataItem")
;return"photo"===t.get("type")?t.get("thumb"):t.get("art")||t.get("parentArt")||t.get("grandparentArt")||t.get("thumb")},getUserPosterUrl:function(e){return e&&e.thumb},getScreenshotUrl:function(e){var t=a.a.first(e);if(t){var n=this.model.get("viewOffset")||0,i=this.screenshotCount*this.screenshotIntervalDelay+n+4e3;return Object(o.a)(t,i,this.screenshotPreferredIndex)}},updateScreenshot:function(){if(this.screenshotCount++,this.posterFade){
var e=this.posterFade.screenshotUrl,t=this.getScreenshotUrl(this.model.get("metadataItem").get("Media"));t&&(this.posterFade.screenshotUrl=t,this.posterFade.load(t).done(this.whenRendered(function(t){this.posterFade.showImage(t),this.ui.posterFade.removeClass("invisible"),this.posterFadeDelay=a.a.delay(this.whenRendered(function(){if(this.image.showImage(t),this.ui.posterFade.addClass("invisible"),e){var n=this.posterFade.cache,i=this.image.getTranscodeUrl(e),a=n.get(n.getItemCacheKey({url:i}))
;a&&n.remove(a)}}),800)})))}},bindings:a.a.extend({},f.a.prototype.bindings,{".media-subtitle-1":{modelAttribute:"year",modelListeners:["title","year"],autohide:!0,formatter:function(e){var t=f.a.prototype.bindings[".media-subtitle-1"].formatter.apply(this,arguments),n=f.a.prototype.bindings[".media-subtitle-2"].formatter.call(this,this.model.get("index"));return n?n+" "+t:t}},".device-icon":{modelAttribute:"Player",manual:!0,formatter:function(e,t){var n=Object(p.a)(e.product,e.platform)
;t.attr("src",n)}},".session-player":{modelAttribute:"Player",formatter:function(e){return e.title||e.product}},".session-state":{modelAttribute:"Player",formatter:function(e){return Object(l.a)(e.state)}},".session-transcode":{modelAttribute:"TranscodeSession",formatter:function(e){return e&&(e.videoCodec||e.audioCodec)?Object(u.default)("Converting"):Object(u.default)("Direct Play")}},".session-transcode-throttled":{modelAttribute:"TranscodeSession",autohide:!0,formatter:function(e){
return e&&"1"===e.throttled?Object(u.default)("(throttled)"):""}},".session-transcode-video-decision":{modelAttribute:"TranscodeSession",formatter:function(e,t){var n=!(!e||!e.videoCodec);if(t.parent().toggleClass("hidden",!n),n){if("copy"===e.videoDecision)return Object(u.default)("Direct Stream")
;var i=this.model.get("metadataItem").get("Media")[0],a=e.sourceVideoCodec||i.videoCodec,r=Object(c.a)(a)+(e.transcodeHwDecoding?" (hw)":""),o=Object(c.a)(e.videoCodec)+(e.transcodeHwEncoding?" (hw)":"");return Object(u.default)("Transcoding {sourceCodec} to {targetCodec}",{sourceCodec:r,targetCodec:o})}return""}},".session-transcode-audio-decision":{modelAttribute:"TranscodeSession",formatter:function(e,t){var n=!(!e||!e.audioCodec);if(t.parent().toggleClass("hidden",!n),n){
if("copy"===e.audioDecision)return Object(u.default)("Direct Stream");var i=this.model.get("metadataItem").get("Media")[0],a=e.sourceAudioCodec||i.audioCodec,r=Object(c.a)(a),o=Object(c.a)(e.audioCodec);return Object(u.default)("Transcoding {sourceCodec} to {targetCodec}",{sourceCodec:r,targetCodec:o})}return""}},".session-username":{modelAttribute:"User",formatter:function(e){return e.title}}}),onRender:function(){f.a.prototype.onRender.apply(this,arguments),
this.userImage.setElement(this.ui.userPoster),this.posterFade.setElement(this.ui.posterFade)},onClose:function(){f.a.prototype.onClose.call(this),clearTimeout(this.posterFadeDelay),clearInterval(this.screenshotInterval),this.posterFade&&this.posterFade.close()},onClick:function(){},onViewOffsetChange:function(e,t){this.screenshotCount=0},onPlayerChange:function(e,t){t&&(t.state!==s.a.states.PLAYING&&this.screenshotInterval?(this.screenshotInterval=clearInterval(this.screenshotInterval),
this.screenshotCount=0):t.state!==s.a.states.PLAYING||this.screenshotInterval||(this.screenshotInterval=setInterval(a.a.bind(this.updateScreenshot,this),this.screenshotIntervalDelay)))},onStopClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),r.a.execute("stopMedia",{model:this.model})}});t.a=m},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTUwLjEzOCA4NS42MXYtNi4xNDZjMC0yLjE4NS0xLjMzOC00LjEzMy0zLjM2Ni00Ljk5NC03LjU5NS0zLjIyNC0xMi45MS0xMC43NjUtMTIuOTEtMTkuNDcgMC0xMS42MDMgOS40NDMtMjEuMTM5IDIxLjEzOC0yMS4xMzkgMTEuNjk1IDAgMjEuMTM5IDkuNTM2IDIxLjEzOSAyMS4xMzkgMCAxMy42OS0xMC41OSAyNi42MzQtMjYgMzAuNjF6TTU1IDI0Yy0xNy4xNTEgMC0zMSAxMy45ODUtMzEgMzFzMTMuODQ5IDMxIDMxIDMxIDMxLTEzLjk4NSAzMS0zMS0xMy44NDktMzEtMzEtMzF6IiBmaWxsPSIjMzFDNEYzIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTQzLjg5MSAyMy40NzlsMy4wMDUgNS4xODNjLTUuNDY5IDIuNjYxLTkuMTc1IDcuODczLTkuMTc1IDEzLjg1MmgzNC45OTRjMC01Ljk3OS0zLjcwNy0xMS4xOS05LjE3Ny0xMy44NTJsMy4wMDUtNS4xODNzLjE0My0uMjc1LS4xMjctLjQzYy0uMjctLjE1NS0uNDUxLjEwOS0uNDUxLjEwOWwtMy4wNSA1LjIyOWExOS4wMyAxOS4wMyAwIDAgMC03LjY5OC0xLjYwNmMtMi43NjMgMC01LjM3Ni41OC03LjY5NyAxLjYwNmwtMy4wNS01LjIyOXMtLjE3MS0uMjY0LS40NDItLjExYy0uMjcyLjE1NC0uMTM3LjQzLS4xMzcuNDNtMy4wMDUgMTAuMDRhMS42NiAxLjY2IDAgMCAxIDEuNjY0IDEuNjVjMCAuOTEtLjc0NyAxLjYyOC0xLjY2NCAxLjYyOC0uOTE2IDAtMS42NjQtLjcxOS0xLjY2NC0xLjYyNyAwLS45MS43NDgtMS42NTIgMS42NjQtMS42NTJtMTYuNjQyIDBhMS42NiAxLjY2IDAgMCAxIDEuNjY0IDEuNjUyYzAgLjkxLS43NDcgMS42MjctMS42NjQgMS42MjctLjkxNiAwLTEuNjY0LS43MTktMS42NjQtMS42MjcgMC0uOTEuNzQ4LTEuNjUyIDEuNjY0LTEuNjUybS0yNS45NiAxMS4wMTd2MjYuMzRjMCAxLjMwNyAxLjU5MyAzLjAxOCAyLjkxIDMuMDE4aDQuMTYzdjguOThjMCAyLjI4NiAxLjY3OSA0LjEyOCAzLjc2OCA0LjEyOCAyLjA4OSAwIDMuNzY4LTEuODQyIDMuNzY4LTQuMTI4di04Ljk4aDYuMDU2djguOThjMCAyLjI4NiAxLjY4IDQuMTI4IDMuNzY4IDQuMTI4czMuNzktMS44NDIgMy43OS00LjEyOHYtOC45OGg0LjE0YzEuMzE4IDAgMi45MS0xLjcxMSAyLjkxLTMuMDE4di0yNi4zNEgzNy41NzdtLTUuODA1LS41NTJjMi4wODMgMCAzLjc3IDEuODQ5IDMuNzcgNC4xMjh2MTUuNjI4YzAgMi4yNzktMS42ODggNC4xMjgtMy43NyA0LjEyOC0yLjA4MyAwLTMuNzcyLTEuODQ4LTMuNzcyLTQuMTI4VjQ4LjExYzAtMi4yNzkgMS42ODktNC4xMjggMy43NzItNC4xMjhtNDYuODg2IDBjMi4wODMgMCAzLjc3MiAxLjg0OSAzLjc3MiA0LjEyOHYxNS42MjhjMCAyLjI3OS0xLjY4OCA0LjEyOC0zLjc3MiA0LjEyOC0yLjA4MiAwLTMuNzctMS44NDgtMy43Ny00LjEyOFY0OC4xMWMwLTIuMjc5IDEuNjg3LTQuMTI4IDMuNzctNC4xMjgiIGZpbGw9IiNBNEM2MzkiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTU2LjU1IDM5LjE0NWg1LjExNHY1Ljc3Nmg0LjkyNHY0LjA0OGgtNC45MjR2MTQuMzY5YzAgMi4yMjUuOTk0IDMuMjY2IDMuMTQ4IDMuMjY2LjU0NSAwIDEuNDItLjA3IDEuNzUyLS4xMTh2NC4wNDhjLS41NjguMTQyLTEuNzc1LjI2LTIuODg4LjI2LTUuMTM3IDAtNy4xMjUtMS45NjQtNy4xMjUtNi45MzV2LTE0Ljg5SDUzVjQ0LjkyaDMuNTV2LTUuNzc2em0zNi4yMDMgNS43NzZsLTkuMjU1IDI1LjcwOGgtNS40NjlMNjguNzUgNDQuOTJoNS40Mmw2LjU1OCAyMC42NDJoLjExOGw2LjU4MS0yMC42NDJoNS4zMjZ6bS01MC40NzEgOS41NGMtLjA0LTQuMzk4IDMuNTM4LTYuNTExIDMuNjk5LTYuNjEzLTIuMDEyLTIuOTg3LTUuMTQ0LTMuMzk3LTYuMjYxLTMuNDQ2LTIuNjY3LS4yNzQtNS4yMDMgMS41OTQtNi41NTQgMS41OTRzLTMuNDQtMS41NTMtNS42NS0xLjUxYy0yLjkwNy4wNDItNS41ODUgMS43MTQtNy4wODQgNC4zNTQtMy4wMTcgNS4zMTgtLjc3MSAxMy4xOTUgMi4xNzEgMTcuNTEgMS40MzkgMi4xMDggMy4xNTMgNC40ODIgNS40MDQgNC4zOTcgMi4xNy0uMDg2IDIuOTg4LTEuNDIzIDUuNjA4LTEuNDIzIDIuNjIgMCAzLjM1OCAxLjQyMyA1LjY1MiAxLjM3OCAyLjMzNC0uMDQyIDMuODExLTIuMTUgNS4yMzktNC4yNjcgMS42NS0yLjQ1IDIuMzMtNC44MiAyLjM3MS00Ljk0Mi0uMDUtLjAyNC00LjU1LTEuNzczLTQuNTk1LTcuMDMxbS00LjMwOC0xMi45MTNjMS4xOTYtMS40NyAyLjAwMS0zLjUxMyAxLjc4LTUuNTQ5LTEuNzIuMDcyLTMuODA2IDEuMTY1LTUuMDQzIDIuNjMzLTEuMTA3IDEuMzAxLTIuMDc4IDMuMzc5LTEuODE1IDUuMzc1IDEuOTIuMTUxIDMuODgyLS45OSA1LjA3OC0yLjQ2IiBmaWxsPSIjRkZGIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxkZWZzPgogICAgICAgIDxyYWRpYWxHcmFkaWVudCBjeD0iMTQuOTM1JSIgY3k9IjEzLjY0NCUiIGZ4PSIxNC45MzUlIiBmeT0iMTMuNjQ0JSIgcj0iMTAwLjQyNiUiIGlkPSJhIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuMDk4IiBvZmZzZXQ9IjAlIi8+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iMCIgb2Zmc2V0PSIxMDAlIi8+CiAgICAgICAgPC9yYWRpYWxHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMjQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTQuOTIxIDE0LjI0M0MxMC40NCA1LjY3NyAyMC4wNjIgMCAzMSAwYzEyLjAzNyAwIDIyLjQ4IDYuODc1IDI3LjYxNSAxNi45MUgzMUwxOC43OTcgMzguMDQ0SDQuOTIxVjE0LjI0M3oiIGZpbGw9IiNEQjQ0MzciIGZpbGwtcnVsZT0ibm9uemVybyIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNC45MiAxNC4yNDVsMTMuODc3IDIzLjhoMjQuNDF2MTAuMjU5TDI5LjU0MyA2MS45NjZDMTMuMTA5IDYxLjIwNSAwIDQ3LjYyMSAwIDMxYzAtNi4xNyAxLjgwNy0xMS45MjMgNC45Mi0xNi43NTV6IiBmaWxsPSIjMEY5RDU4IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgICAgICAgICAgPHBhdGggZD0iTTU4LjYxNSAxNi45MUEzMC44NDMgMzAuODQzIDAgMCAxIDYyIDMxYzAgMTcuMTEtMTMuODkgMzEtMzEgMzEtLjQ5MyAwLS45ODMtLjAxMi0xLjQ3LS4wMzVsMTMuNjc2LTIzLjkyTDMxIDE2LjkxaDI3LjYxNXoiIGZpbGw9IiNGRkNENDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPgogICAgICAgICAgICA8cGF0aCBkPSJNMzEgMTYuOTFoMjcuNjE4TDMxIDI0LjI5di03LjM4ek00LjkyMSAxNC4yNUwyNS4wOSAzNC40MTNsLTYuMjkyIDMuNjMxTDQuOTIxIDE0LjI1em0yNC42MSA0Ny43MTFsNy4zODQtMjcuNTQ3IDYuMjkxIDMuNjMxLTEzLjY3NSAyMy45MTZ6IiBmaWxsLW9wYWNpdHk9Ii4xIiBmaWxsPSIjMDAwIi8+CiAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0iI0YxRjFGMSIgY3g9IjMxIiBjeT0iMzEiIHI9IjE0LjA5MSIvPgogICAgICAgICAgICA8Y2lyY2xlIGZpbGw9IiM0Mjg1RjQiIGN4PSIzMSIgY3k9IjMxIiByPSIxMS4yNzMiLz4KICAgICAgICAgICAgPGNpcmNsZSBmaWxsPSJ1cmwoI2EpIiBjeD0iMzEiIGN5PSIzMSIgcj0iMzEiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwaDExMHYxMTBIMHoiLz4KICAgICAgICA8ZyBmaWxsPSIjRTVBMDBEIj4KICAgICAgICAgICAgPHBhdGggZD0iTTc0LjA0MyA3MS41NzJDNzIuOTgxIDYxLjk5NiA2NC44NiA1NC41NDggNTUgNTQuNTQ4Yy05Ljg3MyAwLTE4LjAwMiA3LjQ2Ny0xOS4wNDggMTcuMDYyaC0zLjY2NUMyNi42MDcgNzEuNjEgMjIgNjYuNzc1IDIyIDYxLjA3M2MwLTQuOTQzIDMuNDY1LTkuMjc0IDguMDg4LTEwLjI4Ny0uMDY2LS42NjEtLjEtMS4zMzItLjEtMi4wMTJDMjkuOTg4IDM3Ljg1NCAzOC44MDYgMjkgNDkuNjg3IDI5YzcuOTkzIDAgMTQuODU0IDQuNzgyIDE3Ljk0NSAxMS42NDVhMTUuNTIgMTUuNTIgMCAwIDEgNC44MS0uNzczQzgxLjAzNSAzOS44NzIgODggNDcuMDkyIDg4IDU1Ljc0YzAgOC4yOTQtNS45IDE1LjI2Ny0xMy45NTcgMTUuODMyeiIgZmlsbC1ydWxlPSJub256ZXJvIi8+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik02MC4yNyA2OC40NGE3LjQ1MiA3LjQ1MiAwIDEgMCAuNTA1IDkuOThsMi4yNjYgMi4yNjZBMTAuNjIgMTAuNjIgMCAwIDEgNTUgODQuMzU1Yy01Ljg4IDAtMTAuNjQ1LTQuNzY2LTEwLjY0NS0xMC42NDUgMC01Ljg4IDQuNzY2LTEwLjY0NSAxMC42NDUtMTAuNjQ1IDIuOTQgMCA1LjYgMS4xOTEgNy41MjcgMy4xMTdsMy4xMTgtMy4xMTd2OC41MTZINTcuMTNsMy4xNC0zLjE0eiIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZmlsbC1vcGFjaXR5PSIuMyIgZmlsbD0iI0ZGRiIgZD0iTTM4IDI1aDE3LjQzNGwxOS4yMzggMzAtMTkuMjM4IDMwSDM4bDE5LjIzOC0zMEwzOCAyNSIvPgogICAgPC9nPgo8L3N2Zz4K"},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTU1LjE4NCAyNy4yNTNjMTUuNTQ4IDAgMjguNTIgOS41MTIgMzEuNTI5IDIyLjE2LjI4IDEuMTc0LjQ3IDIuMzYyLS4wNzIgMy4xNTctLjc2NSAxLjEyNC0yLjUxNi45MTItMy43MjQuOTEyaC0yMi45OWMtMi4zMjIgMC00LjAwNy4wMy02LjE5OC0xLjA2LTEuNjkxLS44NDEtMi4yNzktMS41NDctMy40My0yLjg3NmE4LjQ2MSA4LjQ2MSAwIDAgMC02LjQxMS0yLjk0Yy00LjcwNCAwLTguNTIgMy44NTMtOC41MiA4LjYwNnMzLjgxNSA4LjYwNiA4LjUyIDguNjA2YTguNDI1IDguNDI1IDAgMCAwIDUuMzYxLTEuOTJjLjc2NS0uNjI1IDEuNzY1LTEuNzk0IDIuNDcyLTIuNTM5IDEuNzMtMS44MjEgNC40NDMtMi40MDMgNy41MzEtMi4yODRoMjQuNTZjMi42MDYtLjA2NCAzLjU1Ni40NTMgMy4wNjIgMi44NTItMi42OCAxMy4wMDMtMTUuODQ4IDIyLjg3Ni0zMS42ODcgMjIuODc2LTkuNTc3IDAtMTguMTc4LTMuNjEtMjQuMDczLTkuMzQyLS43MTEtLjY5MS0xLTEuNTc3LjAwNi0yLjE0Mi4zNzMtLjIwOS45MjUtLjMyNiAxLjY5LS4zMjhoMTYuNTA4YzEuNzY4LjEgMy4zNDMuNTYyIDQuNzQ3IDEuMzg3IDEuNjM5Ljk2NCAxLjkzNCAxLjYzIDMuMSAyLjg1MmE4LjQ1MiA4LjQ1MiAwIDAgMCA2LjEzNiAyLjYzNWM0LjcwMyAwIDguNTE5LTMuODUyIDguNTE5LTguNjA1IDAtNC43NTQtMy44MTUtOC42MDYtOC41Mi04LjYwNmE4LjQyNSA4LjQyNSAwIDAgMC01LjM2IDEuOTE5Yy0uNzY1LjYyNi0xLjc2NiAxLjc5NC0yLjQ3MiAyLjU0LTIuNjQyIDIuNzgtNy4wMTggMi4yODQtMTAuNTE1IDIuMjg0SDMyLjQ4NGMtMS45MzggMC00LjA5LjIwMS01Ljc3LS45MTMtMS4wNTgtLjcwMy0xLjc5LTEuODMtMi4zNTYtMy40NTdhMjQuMjQ3IDI0LjI0NyAwIDAgMS0uMzg0LTE0LjgwM2MuOTQzLTMuMTU0IDIuNDk4LTUuNjQ3IDcuMDkxLTUuNTIzaDE3LjA3NmMyLjQ5Mi0uMDk1IDQuNzQyLjI2NiA2LjQyNiAxLjM2OC45MjMuNjAzIDEuMjgyIDEuMTU5IDEuOTk1IDEuOTQyLjUyNS41NzcgMS4wOTYgMS4xNTIgMS41OCAxLjUxNCAxLjUxNiAxLjEzNSAzLjMzIDEuOTIgNS4zNjIgMS45MiA0LjcwNCAwIDguNTE4LTMuODUzIDguNTE4LTguNjA2IDAtNC43NTQtMy44MTMtOC42MDYtOC41MTgtOC42MDZhOC40NjQgOC40NjQgMCAwIDAtNi40ODggMy4wM2MtMS41MSAxLjc5Mi0zLjA3NyAyLjkyOS01LjExIDMuNDc4LTEuMzkuMzc1LTIuNTI0LjM2Ni0zLjkzLjM2NmgtMTQuOTZjLTIuOTUzLS4wMDgtMi44MzMtMS43MDctMS4wNzMtMy4yOSA1Ljg1OC01LjI4IDE0LjExLTguNTY3IDIzLjI0OS04LjU2NyIgZmlsbD0iIzQ1QUE0MiIvPgogICAgPC9nPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTQ0LjQyNSA0OS4xNzNoMjEuMTFjMC03LjU0My0zLjI3LTEyLjY4NS0xMi4xODctMTIuNjg1QzQyLjgxIDM2LjQ4OCAzMi4wOTQgNDMuMzkyIDI3IDUyYzEuNTc4LTE0Ljk0MSAxMi4yMjMtMjcgMjguMjUtMjcgMTMuNzM2IDAgMjYuNzUxIDEwLjU3IDI2Ljc1MSAyOC4xNHY2LjY4SDQ0LjUzOGMwIDkuMDkgNy44ODEgMTIuNjk0IDE2LjEzIDEyLjY5NCAxMC4wNCAwIDE2LjI2NS00LjU0MyAxNi4yNjUtNC41NDN2MTIuNzM1cy03LjAyIDQuMjkzLTE4LjIxNSA0LjI5M2MtMTQuNTQ1IDAtMjQuODEzLTEwLjQ5MS0yNC44MTMtMjMuNTM2IDAtMTAuMjQgNi4xNTQtMTguNDE1IDE0LjY3OS0yMS43ODktNC4xNSA0LjU4Ni00LjE2NCA5LjUwMi00LjE2NCA5LjUwMiIgZmlsbD0iIzMyNzdCQyIvPgogICAgPC9nPgo8L3N2Zz4K"
},function(e,t,n){e.exports=n.p+"desktop/common/img/devices/firefox.e8c991b3b5dcf1bb813ceaea5f428ab4.svg"},function(e,t,n){e.exports=n.p+"desktop/common/img/devices/gtv.9b15f518c4c922f2d6036fe6f13178a6.svg"},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTgzLjk5OSA1NS44N2MwLTQuOTAyLTEuMjY3LTkuNTA2LTMuNDktMTMuNTA3Qzg5Ljk4MiAyMC45MjYgNzAuMzYgMjQuMDY2IDY5LjI2OSAyNC4yOGE0OS44OTcgNDkuODk3IDAgMCAwLTExLjU1IDMuNzc0Yy0uNTIzLS4wMy0xLjA1LS4wNDUtMS41OC0uMDQ1LTEzLjIzOSAwLTI0LjMyIDkuMjM0LTI3LjE1NyAyMS42MTIgNi45NzgtNy44MjggMTEuODYxLTEwLjk4NiAxNC43ODYtMTIuMjUtLjQ2Ny40MTctLjkyNC44MzgtMS4zNzMgMS4yNjMtLjE1LjE0Mi0uMjk0LjI4NS0uNDQyLjQyNy0uMjk2LjI4NS0uNTkyLjU3LS44OC44NTgtLjE3My4xNzItLjM0LjM0NC0uNTEuNTE3LS4yNTUuMjYtLjUxMS41MjEtLjc2MS43ODQtLjE3OC4xODYtLjM1MS4zNzMtLjUyNi41NmE2OS4zNzYgNjkuMzc2IDAgMCAwLTIuMzggMi42NzUgODAuMzY1IDgwLjM2NSAwIDAgMC0xLjY1IDIuMDEyYy0uMTcyLjIxOC0uMzQ2LjQzNy0uNTE1LjY1NS0uMTYxLjIwNy0uMzE4LjQxNC0uNDc1LjYyMS0uMTc4LjIzNC0uMzU4LjQ2OC0uNTMxLjcwMS0uMTI0LjE2Ny0uMjQzLjMzMi0uMzY1LjQ5OGE4Ni40MjEgODYuNDIxIDAgMCAwLTMuNzE3IDUuNTA0bC0uMDM3LjA2Yy0uMjI3LjM2NS0uNDQ1LjcyNC0uNjU5IDEuMDhsLS4wMjIuMDM3YTg5LjQ5NCA4OS40OTQgMCAwIDAtMS41ODQgMi43NDZjLTIuNTA5IDQuNTQ3LTMuNzMgNy43MjQtMy43ODMgNy45MTMtNy45MjQgMjguMzI4IDE2LjgwNiAxNi4zNjUgMjAuMjU3IDE0LjU4YTI3Ljc0NyAyNy43NDcgMCAwIDAgMTIuMzI0IDIuODY4YzEyLjExNSAwIDIyLjQyMi03LjczMiAyNi4yNTgtMTguNTMxSDY3Ljc1N2MtMi4xNjYgMy42Ni02LjMzNiA2LjEzOC0xMS4xMjcgNi4xMzgtNy4wMiAwLTEyLjcxLTUuMzE4LTEyLjcxLTExLjg4aDM5Ljg1QTI4LjEzIDI4LjEzIDAgMCAwIDg0IDU1Ljg3aC0uMDAxem0tNS4yMDUtMjcuNDE3YzIuNCAxLjYyIDQuMzI0IDQuMTYyIDEuMDIgMTIuNzI2YTI3Ljk1NCAyNy45NTQgMCAwIDAtMTMuNjA3LTExLjI5M2MyLjU3OC0xLjI0NiA4Ljk2My0zLjg4IDEyLjU4Ny0xLjQzM3pNMjcuODA2IDgwLjgwNGMtMS45NTQtMi4wMDQtMi4zLTYuODg1IDIuMDEzLTE1Ljc4QTI3Ljk0MiAyNy45NDIgMCAwIDAgNDEuOTUgNzkuODUzYy0yLjc5MSAxLjUzNi0xMC4yMDIgNC45OTUtMTQuMTQ0Ljk1MnptMTYuMDUyLTI4Ljk2NmMuMjIzLTYuMzc2IDUuNzcyLTExLjQ4MiAxMi41OS0xMS40ODIgNi44MTkgMCAxMi4zNjggNS4xMDYgMTIuNTkgMTEuNDgyaC0yNS4xOHoiIGZpbGw9IiMxRUJCRUUiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwaDExMHYxMTBIMHoiLz4KICAgICAgICA8cGF0aCBkPSJNMjIuMzkgNzEuMzM4VjQ3Ljc4NGg0LjcwN3YyMy41NTRIMjIuMzl6bTIuMzY1LTI2LjkxNmMtMS41MTkgMC0yLjc1NS0xLjIxNC0yLjc1NS0yLjcxQzIyIDQwLjE3MSAyMy4yMzYgMzkgMjQuNzU1IDM5YzEuNTE4IDAgMi43NTQgMS4xNzEgMi43NTQgMi43MTEgMCAxLjQ5Ny0xLjIzNiAyLjcxMS0yLjc1NCAyLjcxMXptMjEuMzQyLTQuOTAxYzkgMCAxNC42NjEgNi4yMjQgMTQuNjYxIDE2LjE4IDAgOS45NTUtNS42NiAxNi4xNTgtMTQuNjYxIDE2LjE1OC05LjAyMyAwLTE0LjY2Mi02LjIwMy0xNC42NjItMTYuMTU4IDAtOS45NTYgNS42MzktMTYuMTggMTQuNjYyLTE2LjE4em0wIDQuMjcyYy01Ljk0MyAwLTkuNjk1IDQuNTk4LTkuNjk1IDExLjkwOCAwIDcuMjg3IDMuNzUyIDExLjg4NSA5LjY5NSAxMS44ODUgNS45NDIgMCA5LjY3My00LjU5OCA5LjY3My0xMS44ODUgMC03LjMxLTMuNzMtMTEuOTA4LTkuNjczLTExLjkwOHpNNjMuOTkgNjIuNjJoNC43OTNjLjM0NyAzLjEwMiAzLjM2MiA1LjE0IDcuNDgzIDUuMTQgMy45NDggMCA2Ljc4OS0yLjAzOCA2Ljc4OS00LjgzNiAwLTIuNDMtMS43MTQtMy44ODItNS43Ny00Ljg4bC00LjA1NS0uOTc2Yy01Ljc0OC0xLjM4OC04LjQxNi00LjA3OC04LjQxNi04LjQzNyAwLTUuNCA0LjcwNy05LjExIDExLjM4Ny05LjExIDYuNjE1IDAgMTEuMTQ4IDMuNzEgMTEuMyA5LjExaC00LjcyOGMtLjI4Mi0zLjEyMy0yLjg2My01LjAxLTYuNjM3LTUuMDEtMy43NzQgMC02LjM1NSAxLjkwOC02LjM1NSA0LjY4NSAwIDIuMjEyIDEuNjQ5IDMuNTEzIDUuNjgzIDQuNTExbDMuNDQ4Ljg0NmM2LjQyIDEuNTE4IDkuMDg4IDQuMSA5LjA4OCA4LjY3NSAwIDUuODU3LTQuNjYzIDkuNTIyLTEyLjA4IDkuNTIyLTYuOTQxIDAtMTEuNjI2LTMuNTc5LTExLjkzLTkuMjR6IiBmaWxsPSIjRkZGIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t,n){e.exports=n.p+"desktop/common/img/devices/linux.f04c01f0c805e16c0a4f522f7ddd6de3.svg"},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iNDkuOTk0JSIgeTE9IjEuNjMxJSIgeDI9IjQ5Ljk5NCUiIHkyPSI5OC41NDMlIiBpZD0iYSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjFCMkQiIG9mZnNldD0iMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGMUIyRCIgb2Zmc2V0PSIzMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGMUIyRCIgb2Zmc2V0PSI2MSUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0E3MDAxNCIgb2Zmc2V0PSIxMDAlIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwLjAwNSUiIHkxPSIuODQ4JSIgeDI9IjUwLjAwNSUiIHkyPSI5OS42MDIlIiBpZD0iYiI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM5QzAwMDAiIG9mZnNldD0iMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGNEI0QiIgb2Zmc2V0PSI3MCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGNEI0QiIgb2Zmc2V0PSIxMDAlIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTMwLjg0IDBDMTMuODA2IDAgMCAxMy44MTIgMCAzMC44NDdjMCAxNi41NDMgMTMuMDI2IDMwLjA0MiAyOS4zOCAzMC44MWEzMC43MzQgMzAuNzM0IDAgMCAwIDIyLjAyNS03LjgxNGMtMy42MTYgMi4zOTktNy44NDUgMy43NzQtMTIuMzYzIDMuNzc0LTcuMzQ4IDAtMTMuOTIzLTMuNjQ2LTE4LjM0OS05LjM5Mi0zLjQxMy00LjAyLTUuNjIzLTkuOTc1LTUuNzctMTYuNjU0di0xLjQ1NWMuMTQ3LTYuNjczIDIuMzU3LTEyLjYyNyA1Ljc2NC0xNi42NTQgNC40MjYtNS43NDYgMTEuMDA3LTkuMzg2IDE4LjM1NS05LjM4NiA0LjUxOCAwIDguNzQ3IDEuMzgxIDEyLjM2MyAzLjc4MUEzMC43MzMgMzAuNzMzIDAgMCAwIDMwLjk1NyAwaC0uMTE3eiIgZmlsbD0idXJsKCNhKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMjQpIi8+CiAgICAgICAgPHBhdGggZD0iTTIwLjY4NyAxMy40NjJjMi44MzYtMy4zNCA2LjQ4OS01LjM1MyAxMC40ODUtNS4zNTMgOC45OCAwIDE2LjI2MSAxMC4xODQgMTYuMjYxIDIyLjczOCAwIDEyLjU2LTcuMjggMjIuNzM3LTE2LjI2MSAyMi43MzctMy45OTYgMC03LjY0OS0yLjAxNC0xMC40NzktNS4zNTMgNC40MjYgNS43NDYgMTEgOS4zOTIgMTguMzQ5IDkuMzkyIDQuNTE4IDAgOC43NDctMS4zODEgMTIuMzYzLTMuNzc1IDYuMzEtNS42NTQgMTAuMjgyLTEzLjg2MSAxMC4yODItMjMuMDAxIDAtOS4xMzUtMy45NzItMTcuMzQ4LTEwLjI4OC0yMi45OTYtMy42MTYtMi40LTcuODQtMy43NzUtMTIuMzU3LTMuNzc1LTcuMzQ4IDAtMTMuOTIzIDMuNjQ2LTE4LjM0OSA5LjM5MiIgZmlsbD0idXJsKCNiKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMjQpIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTcxLjc2IDU0Ljk5NGMtLjA3NC03Ljc0IDYuMzQ0LTExLjQ2IDYuNjM1LTExLjY0LTMuNjEtNS4yNTctOS4yMjQtNS45NzgtMTEuMjMyLTYuMDY0LTQuNzgzLS40ODItOS4zMzIgMi44MDQtMTEuNzU1IDIuODA0LTIuNDI0IDAtNi4xNjYtMi43MzEtMTAuMTMzLTIuNjU3LTUuMjE1LjA3NS0xMC4wMTggMy4wMTctMTIuNzA2IDcuNjY0LTUuNDEyIDkuMzYtMS4zODQgMjMuMjIyIDMuODkzIDMwLjgxIDIuNTggMy43MTEgNS42NTMgNy44ODkgOS42OTMgNy43MzcgMy44OS0uMTUxIDUuMzYtMi41MDMgMTAuMDU5LTIuNTAzIDQuNyAwIDYuMDIzIDIuNTAzIDEwLjEzNiAyLjQyNSA0LjE4Ni0uMDczIDYuODM2LTMuNzg0IDkuMzk3LTcuNTEgMi45NjItNC4zMSA0LjE4LTguNDgzIDQuMjUzLTguNjk3LS4wOTItLjA0Mi04LjE2NC0zLjEyLTguMjQ1LTEyLjM3M20tNy43MjgtMjIuNzI1YzIuMTQ2LTIuNTg3IDMuNTg5LTYuMTg3IDMuMTkzLTkuNzY1LTMuMDg4LjEyNS02LjgyNyAyLjA0OS05LjA0NSA0LjYzNC0xLjk4NyAyLjI5LTMuNzI2IDUuOTQ4LTMuMjU1IDkuNDYgMy40NDIuMjY1IDYuOTYyLTEuNzQ1IDkuMTA3LTQuMzMiIGZpbGw9IiNGRkYiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxkZWZzPgogICAgICAgIDxyYWRpYWxHcmFkaWVudCBjeD0iODkuMjY3JSIgY3k9IjQ5LjcxMyUiIGZ4PSI4OS4yNjclIiBmeT0iNDkuNzEzJSIgcj0iOTIuNSUiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLjYxMTIgMCAuMTkzKSIgaWQ9ImEiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRjlCRTAzIiBvZmZzZXQ9IjAlIi8+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNDQzdDMTkiIG9mZnNldD0iMTAwJSIvPgogICAgICAgIDwvcmFkaWFsR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxwYXRoIGZpbGw9IiMxOTFBMUMiIGQ9Ik0wIDBoMTEwdjExMEgweiIvPgogICAgICAgIDxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik0zOCAyNWgxNy40MzRsMTkuMjM4IDMwLTE5LjIzOCAzMEgzOGwxOS4yMzgtMzBMMzggMjUiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMTAwJSIgeTE9IjUwJSIgeDI9IjAlIiB5Mj0iNTAlIiBpZD0iYSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGNENFMUUiIG9mZnNldD0iMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0NDN0MxOSIgb2Zmc2V0PSIxMDAlIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc4LjQ3MyA1NWwtMjAuMy0yOC45ODZMNTEuNzI4IDI2bC0zLjIyMi4wMTRMNjguODA2IDU1IDUwLjc2IDgwLjc3N2gtMy4yMjJMNjUuNTg0IDU1bC0yMC4zLTI4Ljk4NkwzOC44NCAyNmwtMy4yMjMuMDE0IDE4LjA2MSAyNS43NjRIMTlWNTVoNDAuMTRMNDEuMDg0IDI5LjIyMmgzLjIyM0w2Mi4zNjEgNTVsLTIwLjMgMjloOS42NjdsMjAuMy0yOS0xOC4wNTQtMjUuNzc4aDMuMjIzTDc1LjI1IDU1bC0yMC4zIDI5aDkuNjY3bDE4LjAxLTI1Ljc3OGg4LjcwNlY1NWgtOS42MzlMNjMuNjUgODAuNzc3aC0zLjIyMnoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMTAwJSIgeTE9IjUwJSIgeDI9IjAlIiB5Mj0iNTAlIiBpZD0iYSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGOUJFMDMiIG9mZnNldD0iMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0U1QTAwRCIgb2Zmc2V0PSI0Ny43MzglIi8+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNDQzdDMTkiIG9mZnNldD0iMTAwJSIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPHJhZGlhbEdyYWRpZW50IGN4PSI4OS4yNjclIiBjeT0iNDkuNzEzJSIgZng9Ijg5LjI2NyUiIGZ5PSI0OS43MTMlIiByPSI5Mi41JSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAuNjExMiAwIC4xOTMpIiBpZD0iYiI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGOUJFMDMiIG9mZnNldD0iMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0NDN0MxOSIgb2Zmc2V0PSIxMDAlIi8+CiAgICAgICAgPC9yYWRpYWxHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTMxIDYyQzEzLjg3OSA2MiAwIDQ4LjEyMSAwIDMxIDAgMTMuODc5IDEzLjg3OSAwIDMxIDBjMTcuMTIxIDAgMzEgMTMuODc5IDMxIDMxIDAgMTcuMTIxLTEzLjg3OSAzMS0zMSAzMXptMC0xLjg2YzE2LjA5MyAwIDI5LjE0LTEzLjA0NyAyOS4xNC0yOS4xNFM0Ny4wOTMgMS44NiAzMSAxLjg2IDEuODYgMTQuOTA3IDEuODYgMzEgMTQuOTA3IDYwLjE0IDMxIDYwLjE0eiIgZmlsbD0idXJsKCNhKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMjQpIi8+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNiKSIgZD0iTTIwLjM5OCAxMS42NTZoMTEuMjZsMTIuNDI0IDE5LjM3NS0xMi40MjUgMTkuMzc1SDIwLjM5OGwxMi40MjUtMTkuMzc1LTEyLjQyNS0xOS4zNzUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI0IDI0KSIvPgogICAgPC9nPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0iYSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMxQTgwRDMiIG9mZnNldD0iMCUiLz4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzFBNDU5MyIgb2Zmc2V0PSIxMDAlIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTg5LjkxMSA2OS44NmMtMS40MTcgMS43ODgtNC44OSAzLjA2NC00Ljg5IDMuMDY0bC0yNS44MyA5LjI3OFY3NS4zNmwxOS4wMS02Ljc3NGMyLjE1Ni0uNzczIDIuNDg4LTEuODY1LjczNC0yLjQzOS0xLjc1LS41NzUtNC45Mi0uNDEtNy4wNzguMzY2TDU5LjE5IDcwLjk3NHYtNy4xMDFsLjczLS4yNDdzMy42Ni0xLjI5NiA4LjgwNy0xLjg2NmM1LjE0Ny0uNTY3IDExLjQ1LjA3OCAxNi4zOTcgMS45NTMgNS41NzUgMS43NjIgNi4yMDMgNC4zNiA0Ljc4NyA2LjE0N3pNNjEuNjUgNTguMjF2LTE3LjVjMC0yLjA1NC0uMzc5LTMuOTQ2LTIuMzA3LTQuNDgyLTEuNDc3LS40NzMtMi4zOTMuODk4LTIuMzkzIDIuOTUyVjgzTDQ1LjEzIDc5LjI1VjI3YzUuMDI1LjkzMyAxMi4zNDUgMy4xMzggMTYuMjggNC40NjUgMTAuMDEgMy40MzYgMTMuNDAzIDcuNzEyIDEzLjQwMyAxNy4zNDggMCA5LjM5Mi01Ljc5OCAxMi45NTItMTMuMTY1IDkuMzk2ek0yMy40NDYgNzQuNjQ0Yy01LjcyMy0xLjYxMS02LjY3Ni00Ljk3LTQuMDY3LTYuOTA1IDIuNDEtMS43ODYgNi41MTEtMy4xMzEgNi41MTEtMy4xMzFsMTYuOTQ1LTYuMDI1djYuODY5bC0xMi4xOTQgNC4zNjRjLTIuMTU0Ljc3My0yLjQ4NSAxLjg2Ny0uNzM1IDIuNDQgMS43NTIuNTc0IDQuOTIzLjQxIDcuMDgtLjM2NGw1Ljg1LTIuMTIydjYuMTQ1Yy0uMzcyLjA2Ni0uNzg1LjEzMi0xLjE2OC4xOTYtNS44NS45NTYtMTIuMDgxLjU1Ny0xOC4yMjItMS40Njd6IiBmaWxsPSJ1cmwoI2EpIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwaDExMHYxMTBIMHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNjYyRDkxIiBkPSJNMTEgMzJoODh2NDZIMTF6Ii8+CiAgICAgICAgPHBhdGggZD0iTTY2LjkyNyA1NC4zODhsLTYuMTk2IDYuMjF2LTYuMjMxaC01LjM3OHYxNS44MzVoNS4zNzh2LTYuNDI0bDYuNDY5IDYuNDI0aDYuNzdsLTguMjIxLTguMjQyIDYuODA5LTYuODIzdjkuMzk4YzAgMy4xMiAxLjg3MiA2IDYuNTg2IDYgMi4yMzggMCA0LjI5Mi0xLjI3MiA1LjI5LTIuNDI0bDIuNDE4IDIuMDlIODhWNTQuMzg0aC01LjM3OHYxMC4yNGMtLjYwNSAxLjA2LTEuNDUgMS43MjYtMi43NTQgMS43MjYtMS4zMjMgMC0xLjkzLS43ODctMS45My0zLjMwMXYtOC42NjVoLTExLjAxbS0zMy4wNzMgMTUuODRsLTQuODQ2LTYuNzRoLTEuNjN2Ni43MjZIMjJWNTBoNy43MDZjNC40NDMgMCA4LjA2OSAzLjAyOSA4LjA2OSA2Ljc1NCAwIDIuMjczLTEuMzkgNC4zMDItMy41MSA1LjU0NGw1LjY5IDcuOTI3LTYuMS0uMDAyem0tMS40NjQtMTMuNDY3YzAtMS44OC0xLjUwOS0zLjM5My0zLjM1My0zLjM5M2gtMS42NjN2Ni43NTZoMS42NjNjMS44NDUgMCAzLjM1My0xLjUxNSAzLjM1My0zLjM2M3ptMjEuOTE3IDUuNTRjMCA0LjU3OC0zLjcxNCA4LjI0NC04LjI4IDguMjQ0YTguMjI2IDguMjI2IDAgMCAxLTguMjUxLTguMjQzIDguMjI2IDguMjI2IDAgMCAxIDguMjUtOC4yNDFjNC41NjYgMCA4LjI4IDMuNjY3IDguMjggOC4yNHptLTguMjgtNC4zM2MtMS40MjEgMC0yLjYzMSAxLjkzNS0yLjYzMSA0LjMzIDAgMi4zOTcgMS4yMDggNC4zMzUgMi42MyA0LjMzNSAxLjQ1MyAwIDIuNjYtMS45MzggMi42Ni00LjMzNCAwLTIuMzk3LTEuMjA2LTQuMzMxLTIuNjYtNC4zMzF6IiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t,n){e.exports=n.p+"desktop/common/img/devices/safari.ebe0357a3d1fcf188ad15d1f619f2c5a.svg"},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwMC45NDMgNDcuMzY5YzEuMjUzIDcuMjc2LTE4LjI5OSAxNi44MDYtNDMuNjc2IDIxLjI4NC0yNS4zNzMgNC40NzgtNDYuOTU5IDIuMjA1LTQ4LjIxLTUuMDc0LTEuMjUtNy4yNzggMTguMzA3LTE2LjgwNCA0My42OC0yMS4yODEgMjUuMzc1LTQuNDggNDYuOTU3LTIuMjA4IDQ4LjIwNiA1LjA3eiIgZmlsbD0iIzAzNEVBMiIvPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4wNjEgNTguMTdsLS4xMy03LjU2NmgyLjM1NXY5LjUzN0g3NS45bC0yLjM1LTcuODI2aC0uMDVsLjEzIDcuODI2aC0yLjM0di05LjUzN2gzLjUzMmwyLjE4NiA3LjU2N2guMDUzem0tNDIuODA2LTYuNjczbC0xLjMwMyA4Ljc0NGgtMi41NjhsMS43NjMtOS42MzdoNC4yMzFsMS43NTYgOS42MzdoLTIuNTU4bC0xLjI2OC04Ljc0NGgtLjA1M3ptMTEuMDkyIDYuNDc0bDEuMTc2LTcuMzY3aDMuODc5bC4yMDYgOS42MzdINDguMjNsLS4wNjMtOC42NjRoLS4wNWwtMS41OSA4LjY2NGgtMi40MTNsLTEuNTktOC42NjRoLS4wNTJsLS4wNiA4LjY2NGgtMi4zODJsLjIxLTkuNjM3aDMuODgxbDEuMTc1IDcuMzY3aC4wNXptLTE4Ljk2OS0uNDQ4Yy0uNDg5LTEuMjQ4LTMuODY4LTEuODE4LTQuMjgzLTMuNzg3LS4xLS40ODMtLjA5LS44Ny0uMDIxLTEuMzAzLjI1Mi0xLjU2OSAxLjYzNS0yLjEzNSAzLjMyNy0yLjEzNSAxLjM0NyAwIDMuMjA3LjMyOCAzLjIwNyAyLjQyN3YuNjc3aC0yLjM3MnYtLjU5NWMwLS41MjYtLjMyOS0uODc0LS44ODUtLjg3NC0uNTk1IDAtLjgwMy4zMzgtLjg2OS42NDYtLjAyMi4xMS0uMDM1LjMxNC4wMS41MDguMjcgMS4xMjggMy44OCAxLjczIDQuMjggMy43NDguMDQuMjA1LjEyNi43NS4wMSAxLjU4My0uMjI1IDEuNjA1LTEuNjQyIDIuMjAxLTMuMzYyIDIuMjAxLTEuNzg5IDAtMy40NTktLjY0OC0zLjQ1OS0yLjc5NmwuMDAyLS43NDdoMi41NTF2LjkzM2MwIC41My4zNjIuODc2Ljk1OS44NzYuNjMyIDAgLjg0Ny0uMzI3LjkyNi0uNjQ4LjA0NC0uMTguMDcyLS40OC0uMDItLjcxNHptMzAuOTMtLjAxOGMtLjQ4NC0xLjIzNS0zLjgzLTEuODAxLTQuMjQtMy43NWEzLjM2IDMuMzYgMCAwIDEtLjAyMS0xLjI4N2MuMjQ3LTEuNTU3IDEuNjE5LTIuMTE3IDMuMjkyLTIuMTE3IDEuMzM0IDAgMy4xNzguMzI2IDMuMTc4IDIuNDAzdi42N2gtMi4zNTR2LS41OWMwLS41MjItLjMyMS0uODYyLS44NzItLjg2Mi0uNTkgMC0uNzkzLjMzMS0uODYxLjY0LS4wMjMuMTA0LS4wMzYuMzA3LjAwOS41LjI2NiAxLjExNiAzLjg0IDEuNzEyIDQuMjM5IDMuNzExLjA0MS4yMDIuMTIzLjc0LjAwOCAxLjU2Ni0uMjIxIDEuNTkxLTEuNjI1IDIuMTgtMy4zMjcgMi4xOC0xLjc3MSAwLTMuNDI2LS42NDMtMy40MjYtMi43N2wuMDA0LS43MzZoMi41MjRsLjAwMi45MjVjMCAuNTE3LjM2Ljg2My45NDcuODYzLjYyOSAwIC44NDEtLjMyMi45MTktLjY0MS4wNDItLjE4MS4wNzMtLjQ3My0uMDIxLS43MDV6bTcuOTkgMS4yOTVjLjY2IDAgLjg2Ni0uNDYzLjkxMS0uN2EyLjAzIDIuMDMgMCAwIDAgLjAyMi0uMzY4VjUwLjZoMi40MDZ2Ni45MTNjLjAwNS4xNzgtLjAxMi41NDItLjAyLjYzMy0uMTcgMS44LTEuNTczIDIuMzgzLTMuMzIgMi4zODMtMS43NSAwLTMuMTU1LS41ODQtMy4zMjItMi4zODNhOC4zMzMgOC4zMzMgMCAwIDEtLjAyLS42MzNWNTAuNmgyLjQwM3Y3LjEzMmMwIC4xMjQuMDA1LjI2NS4wMjMuMzY4LjA1MS4yMzcuMjUxLjcuOTE2Ljd6bTE5Ljg0Mi0uMTAyYy42ODkgMCAuOTMtLjQ0MS45NzQtLjY5OC4wMTctLjExLjAyMi0uMjQ1LjAyMS0uMzY3di0xLjM5OWgtLjk3NnYtMS40MDdoMy4zNzN2Mi41ODdjLS4wMDMuMTgtLjAwNy4zMTMtLjAzNS42MzUtLjE1OSAxLjc1My0xLjY2IDIuMzc5LTMuMzQ1IDIuMzc5LTEuNjkgMC0zLjE4OC0uNjI2LTMuMzQ5LTIuMzc5YTcuOSA3LjkgMCAwIDEtLjAzNC0uNjM1bC4wMDItNC4wNThjMC0uMTcxLjAyMS0uNDc0LjA0LS42MzUuMjEtMS44MDEgMS42NTItMi4zOCAzLjM0LTIuMzhzMy4xNjQuNTc2IDMuMzQgMi4zOGMuMDMuMzA3LjAyLjYzNS4wMi42MzV2LjMyMWgtMi4zOTh2LS41NGMuMDAyLjAwMi0uMDAzLS4yMjktLjAzMS0uMzY2LS4wNC0uMjEzLS4yMjQtLjcwMi0uOTQ4LS43MDItLjY5NCAwLS44OTcuNDYzLS45NDguNzAyYTIuMTkgMi4xOSAwIDAgMC0uMDQuNDU1djQuNDA3Yy0uMDAyLjEyMi4wMDUuMjU2LjAyNC4zNjcuMDQyLjI1OC4yODEuNjk4Ljk3LjY5OHoiIGZpbGw9IiNGRkYiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTM0LjI1IDQ2Yy00Ljg3NSAwLTguODQyIDMuOTY2LTguODQyIDguODQyIDAgNC44NzQgMy45NjcgOC44NCA4Ljg0MiA4Ljg0czguODQxLTMuOTY2IDguODQxLTguODRjMC00Ljg3Ni0zLjk2Ni04Ljg0Mi04Ljg0LTguODQyem0wIDE0LjUwNmMtMy4wOTIgMC01LjYwNS0yLjU0LTUuNjA1LTUuNjY0IDAtMy4xMjQgMi41MTMtNS42NjQgNS42MDUtNS42NjQgMy4wOTEgMCA1LjYwNyAyLjU0IDUuNjA3IDUuNjY0IDAgMy4xMjMtMi41MTYgNS42NjQtNS42MDcgNS42NjR6bS0xNC4yMTktNS41MThjMS4yNS45NTMgMS44ODMgMi4xNzQgMS44ODMgMy42MjUgMCAxLjM1Mi0uNjI1IDIuNjcxLTEuNzE3IDMuNjItMS4wOTcuOTQ5LTIuNjAyIDEuNDczLTQuMjQgMS40NzMtMy40MDYgMC01LjM2NC0yLjI4My01LjQ0NS0yLjM3OGwtLjI3OC0uMzMgMi41NDctMS43Mi4yMjEuMTY1Yy40MS4zMDcgMS41MiAxLjAyMiAyLjk1NiAxLjAyMiAxLjcgMCAyLjcxNi0uOTQxIDIuNzE2LTEuODUyIDAtLjM4OCAwLTEuMTk1LTMuMjAxLTIuMjEzLTEuNjQ2LS41MjItMi43NS0xLjA0LTMuNTg4LTEuNjgtMS4yNS0uOTUyLTEuODg1LTIuMTcyLTEuODg1LTMuNjI0IDAtMS4zNTIuNjI2LTIuNjcxIDEuNzE5LTMuNjE5IDEuMDk2LS45NSAyLjYtMS40NzQgNC4yMzgtMS40NzQgMy40MDYgMCA1LjM2NCAyLjI4IDUuNDQ3IDIuMzc4bC4yNzYuMzMtMi41NDUgMS43Mi0uMjItLjE2NWMtLjQxMy0uMzA4LTEuNTI2LTEuMDIzLTIuOTU4LTEuMDIzLTEuNyAwLTIuNzE1Ljk0My0yLjcxNSAxLjg1MyAwIC4zODggMCAxLjE5NSAzLjIwMSAyLjIxMyAxLjY0Ni41MjIgMi43NSAxLjA0IDMuNTg4IDEuNjh6bTM4LjcyIDEuMTF2LTkuNDY1aDMuMTU5VjYzLjUybC0xMC42NTktOS45MnY5LjQwNmgtMy4xNThWNDYuMTZsMTAuNjU4IDkuOTM2em0xNy0xMC4wMzNjNC44NzYgMCA4Ljg0MiAzLjk2NiA4Ljg0MiA4Ljg0MSAwIDQuODc1LTMuOTY2IDguODQxLTguODQyIDguODQxLTQuODc0IDAtOC44NC0zLjk2Ni04Ljg0LTguODQgMC00Ljg3NiAzLjk2Ni04Ljg0MiA4Ljg0LTguODQyem0wIDE0LjUwNWMzLjA5IDAgNS42MDYtMi41NDEgNS42MDYtNS42NjQgMC0zLjEyMi0yLjUxNS01LjY2My01LjYwNi01LjY2My0zLjA5MiAwLTUuNjA1IDIuNTQtNS42MDUgNS42NjNzMi41MTMgNS42NjQgNS42MDUgNS42NjR6bTE0LjIxOS01LjgxYy0xLjI1LS45NTQtMS44ODItMi4xNzMtMS44ODItMy42MjUgMC0xLjM1Mi42MjUtMi42NyAxLjcxNy0zLjYyIDEuMDk2LS45NSAyLjYwMS0xLjQ3NCA0LjIzOS0xLjQ3NCAzLjQwNiAwIDUuMzY0IDIuMjgzIDUuNDQ1IDIuMzc5bC4yNzguMzMtMi41NDYgMS43Mi0uMjIyLS4xNjVjLS40MS0uMzA3LTEuNTItMS4wMjItMi45NTUtMS4wMjItMS43IDAtMi43MTcuOTQxLTIuNzE3IDEuODUyIDAgLjM4OCAwIDEuMTk1IDMuMjAyIDIuMjEzIDEuNjQ2LjUyMiAyLjc1IDEuMDQgMy41ODggMS42OEM5OS4zNjcgNTUuOTggMTAwIDU3LjIgMTAwIDU4LjY1YzAgMS4zNTQtLjYyNiAyLjY3Mi0xLjcxOCAzLjYyLTEuMDk2Ljk1LTIuNiAxLjQ3NC00LjIzOCAxLjQ3NC0zLjQwNyAwLTUuMzY0LTIuMjgxLTUuNDQ1LTIuMzc4bC0uMjc5LS4zMyAyLjU0Ny0xLjcyLjIyLjE2NWMuNDEyLjMwNyAxLjUyNSAxLjAyMiAyLjk1NyAxLjAyMiAxLjcgMCAyLjcxNi0uOTQyIDIuNzE2LTEuODUzIDAtLjM4OCAwLTEuMTk1LTMuMjAyLTIuMjExLTEuNjQ2LS41MjMtMi43NS0xLjA0LTMuNTg4LTEuNjh6IiBmaWxsPSIjRkZGIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwaDExMHYxMTBIMHoiLz4KICAgICAgICA8cGF0aCBkPSJNODAuMjYgNTEuNDYzdi04LjM3aDYuNjA4djkuMjUxYzAgMy45MDktNi42MDggNC43MDgtNi42MDgtLjg4em0tOS4xMDQgNS44NzRWNDYuMDNjMC0xLjc4NiAxLjU2LTIuOTM3IDMuMzc3LTIuOTM3aDIuNzl2OS44MzljMCA3LjA0NiAxMi42MjkgNy4xMDIgMTIuNjI5LS4xNDdWNDMuMjRoMy42N2MxLjMgMCAyLjM1IDEuNTI4IDIuMzUgMi45Mzd2MTEuNmMwIDIuMzM5LTEuOTAzIDMuOTY1LTQuMjU4IDMuOTY1aC0xNS44NmMtMi43OSAwLTQuNjk4LTEuNjQ0LTQuNjk4LTQuNDA1eiIgZmlsbD0iIzAwOUFDNyIvPgogICAgICAgIDxwYXRoIGQ9Ik02NC41NTYgNjcuMjU2aC00LjkxOVY1MS4zNWg0LjkxOXYxNS45MDd6bS01LjM5NS0yMS40MmMwLTEuNTQ4IDEuMzEtMi43NzcgMi44OTYtMi43NzcgMS42MjYgMCAyLjkzNSAxLjIzIDIuOTM1IDIuNzc2IDAgMS41NDctMS4zMDkgMi43NzctMi45MzUgMi43NzctMS41ODcgMC0yLjg5Ni0xLjI3LTIuODk2LTIuNzc3em0tNC41NjIgMjEuNDJINDkuNjhWNTEuMzVoNC45MnYxNS45MDd6bS01LjM5NS0yMS40MmMwLTEuNTQ4IDEuMjctMi43NzcgMi44NTctMi43NzcgMS42NjYgMCAyLjk3NSAxLjIzIDIuOTc1IDIuNzc2IDAgMS41NDctMS4zMSAyLjc3Ny0yLjk3NSAyLjc3Ny0xLjU4NyAwLTIuODU3LTEuMjctMi44NTctMi43Nzd6bS03LjMzOC0xLjQyOWg1LjE5NnMtNC45NTggMTcuOTctNS42MzIgMjAuMDcyYy0uNTU2IDEuNjI3LTEuNzg2IDIuOTM2LTMuNjUgMi45MzYtMi4xMDIgMC0zLjA5NC0xLjU0Ny0zLjU3LTIuOTM2LS40MzYtMS40MjgtMy42NS0xMy4yODgtMy42NS0xMy4yODhzLTMuMjEzIDExLjg2LTMuNjg5IDEzLjI4OGMtLjQzNiAxLjM4OS0xLjQyOCAyLjkzNi0zLjU3IDIuOTM2LTEuODI0IDAtMy4wOTQtMS4zMS0zLjYxLTIuOTM2LS42NzQtMi4xMDItNS42MzItMjAuMDcyLTUuNjMyLTIwLjA3Mmg1LjE1N2w0LjMyMyAxNi44NnMzLjI5My0xMi42NTUgMy44MDgtMTQuNDhjLjU1Ni0xLjc4NSAxLjYyNy0yLjU3OCAzLjIxNC0yLjU3OCAxLjU0NyAwIDIuNjU3Ljc5MyAzLjE3MyAyLjU3OC41NTUgMS44MjUgMy44NDggMTQuNDggMy44NDggMTQuNDhsNC4yODQtMTYuODZ6IiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTI3IDM0LjkyOWwyMi44ODUtMy4xMDcuMDEgMjIuMDA2LTIyLjg3NC4xM0wyNyAzNC45Mjh6bTIyLjg3NSAyMS40MzVsLjAxNyAyMi4wMjYtMjIuODc0LTMuMTM1LS4wMDItMTkuMDM5IDIyLjg1OS4xNDh6bTIuNzc0LTI0Ljk0OUw4Mi45OTMgMjd2MjYuNTQ4bC0zMC4zNDQuMjRWMzEuNDE2ek04MyA1Ni41NzFMODIuOTkzIDgzbC0zMC4zNDQtNC4yNy0uMDQzLTIyLjIwOCAzMC4zOTQuMDV6IiBmaWxsPSIjMERBREVBIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZmlsbD0iIzE5MUExQyIgZD0iTTAgMGgxMTB2MTEwSDB6Ii8+CiAgICAgICAgPHBhdGggZD0iTTI3IDM0LjkyOWwyMi44ODUtMy4xMDcuMDEgMjIuMDA2LTIyLjg3NC4xM0wyNyAzNC45Mjh6bTIyLjg3NSAyMS40MzVsLjAxNyAyMi4wMjYtMjIuODc0LTMuMTM1LS4wMDItMTkuMDM5IDIyLjg1OS4xNDh6bTIuNzc0LTI0Ljk0OUw4Mi45OTMgMjd2MjYuNTQ4bC0zMC4zNDQuMjRWMzEuNDE2ek04MyA1Ni41NzFMODIuOTkzIDgzbC0zMC4zNDQtNC4yNy0uMDQzLTIyLjIwOCAzMC4zOTQuMDV6IiBmaWxsPSIjRTgxMTIzIi8+CiAgICA8L2c+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.get("type"),a=f.r(i),r=f.q(i);if(!a)return u.a.Deferred().reject().promise();if(a.id===r.id){var o=e.get("playQueueItems"),s=t.get("containerKey");if(s&&!o.length&&!n.skipSiblings&&(i===f.l||i===f.e||i===f.g)){var l=new p.default([],{server:t.server,provider:t.provider,channel:t.channel});return l.fetch({url:s}).then(function(){var e=l.models.map(h.a)
;return u.a.Deferred().resolve(e).promise()})}return u.a.Deferred().resolve([Object(h.a)(t)]).promise()}if(f.p(i).id===r.id){var c=d.join([t.get("key"),"children"]),v=new p.default([],{server:t.server,provider:t.provider,channel:t.channel});return v.fetch({url:c}).then(function(){var e=v.models.map(h.a);return u.a.Deferred().resolve(e).promise()})}return u.a.Deferred().reject().promise()}function a(e,t,n){var a=t.map(function(t){return i(e,t,n)});return u.a.when.apply(u.a,a).then(function(){
var t,i=(t=[]).concat.apply(t,arguments);return e.get("playQueueItems").add(i,n),r(e)})}function r(e,t){var n=e.get("playQueueItems");if(e.get("playQueueSelectedItemID")||!n.length)return u.a.Deferred().resolve(e).promise();if(t){var i=n.findWhere({metadataItem:t}),a=i?i.id:n.at(0).id;e.set("playQueueSelectedItemID",a)}else{var r=e.get("playQueueSelectedItemOffset"),o=n.at(r);e.set("playQueueSelectedItemID",o.id)}return u.a.Deferred().resolve(e).promise()}function o(e){
var t=e.next,n=e.playQueueModel,o=e.metadataItemModel,s=e.metadataItemModels,c=e.metadataListModel,d=t?n.get("playQueueSelectedItemOffset")+1:void 0,p={at:d};if(o)return i(n,o).then(function(e){return n.get("playQueueItems").add(e,p),r(n,o)});if(s&&s.length)return a(n,s,p);if(c){var h=c.get("metadataItems").models;return a(n,h,l()({},p,{skipSiblings:!0}))}return u.a.Deferred().reject().promise()}t.a=o;var s=n(6),l=n.n(s),c=n(13),u=n.n(c),d=n(18),p=n(425),h=n(2320),f=n(27)},function(e,t,n){
"use strict";function i(e){s+=1;var t=s.toString(),n=r.a.extend({},e.attributes,{playQueueItemID:t});return new o.a(n,{server:e.server,provider:e.provider,parent:e.parent,parse:!0})}var a=n(10),r=n.n(a),o=n(1209),s=0;t.a=i},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(17),o=n(14),s=n(836),l=r.a.extend({name:"LocalPlayQueueModel",context:["server","provider"],url:function(){var e=this.get("playQueueItems"),t=this.get("playQueueSelectedItemID"),n=e.get(t)
;if(n)return n.get("metadataItem").get("key")},sessionAttrs:{key:o.a.string,playQueueID:o.a.string,isLocal:o.a.boolean,type:o.a.string,repeat:o.a.boolean,own:o.a.boolean,isUpdatePending:o.a.boolean,playQueueShuffled:o.a.boolean,playQueueSelectedItemID:o.a.string},sessionRelations:{playQueueItems:{relationClass:s.a}},derivedAttrs:{playQueueTotalCount:function(){return this.get("playQueueItems").length},length:function(){return this.get("playQueueItems").length},
playQueueSelectedItemOffset:function(){var e=this.get("playQueueItems"),t=this.get("playQueueSelectedItemID");if(!t)return 0;var n=e.get(t);return e.indexOf(n)},currentIndex:function(){return this.get("playQueueSelectedItemOffset")},canShuffle:function(){return!1}},defaults:{isLocal:!0,repeat:!1,own:!0,isUpdatePending:!1,playQueueShuffled:!1,playQueueSelectedItemOffset:0},fetch:function(){return a.a.Deferred().resolve(this).promise()}});t.a=l},function(e,t,n){"use strict";function i(e){
C.startPlayback(e);var t=Object(I.c)("remoteCastPlayerManager");e.get("playQueue").set("own",!1),t.startPlayback(e),e.set({startMetadataItemEntityID:null,startOffsetMilliseconds:null,startMediaIndex:null})}function a(e){C.endPlayback(e),Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.m})}function r(e){Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.a})}function o(e){Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.d})}function s(e,t){C.playItem(e,t)
;var n=Object(I.c)("remoteCastPlayerManager"),i=e.get("playQueue"),a=i.get("playQueueItems"),r=i.get("playQueueSelectedItemID"),o=a.get(r),s=o.get("metadataItem");n.sendMessage({type:S.l,playQueueItemID:r,key:s.get("key")})}function l(e){C.play(e),Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.c})}function c(e){C.pause(e),Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.b})}function u(e,t){C.seek(e,t),Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.f,
currentTime:t})}function d(e,t,n){Object(I.c)("remoteCastPlayerManager").setVolume(n)}function p(e,t){C.changeQualityIndex(e,t);var n=D.a.getQualityByIndex(t);Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.h,bitrate:n.bitrate})}function h(e,t,n){Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.j,stream:{type:t,id:n}})}function f(e,t,n){Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.k,subtitleSize:n}),t.save("subtitleSize",n)}function v(e,t,n){
Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.g,autoPlay:n}),t.save("autoPlay",n)}function g(e,t){}function m(e,t){e.set({repeatAll:t.repeatAll,repeatOne:t.repeatOne}),Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.i,repeat:Object(M.a)(t)})}function y(e){Object(I.c)("remoteCastPlayerManager").sendMessage({type:S.e})}function b(e){Object(I.c)("remoteCastPlayerManager").mirrorDetails(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.startPlayback=i,t.endPlayback=a,
t.playNextItem=r,t.playPreviousItem=o,t.playItem=s,t.play=l,t.pause=c,t.seek=u,t.changeVolume=d,t.changeQualityIndex=p,t.changeStream=h,t.changeSubtitleSize=f,t.changeAutoPlay=v,t.changePlaybackSpeed=g,t.setRepeat=m,t.refreshRemotePlayQueue=y,t.mirrorDetails=b;var I=n(16),S=n(2323),M=n(2324),D=n(146),C=n(635)},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"f",function(){return r}),n.d(t,"m",function(){return o}),n.d(t,"d",function(){return s
}),n.d(t,"a",function(){return l}),n.d(t,"l",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return p}),n.d(t,"h",function(){return h}),n.d(t,"k",function(){return f}),n.d(t,"g",function(){return v});var i="PLAY",a="PAUSE",r="SEEK",o="STOP",s="PREVIOUS",l="NEXT",c="SKIPTO",u="REFRESHPLAYQUEUE",d="SETREPEAT",p="SETSTREAM",h="SETQUALITY",f="SETSUBTITLESIZE",v="SETAUTOPLAY"},function(e,t,n){"use strict";function i(e){
return e.repeatOne?a.c:e.repeatAll?a.a:a.b}var a=n(527);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.get("playQueue");return Object(M.d)(t.get("type"))}function a(e){j.startPlayback(e);var t=Object(S.c)("remotePlexPlayerManager");e.get("playQueue").set("own",!1),t.startPlayback(e)}function r(e){var t=Object(S.c)("remotePlexPlayerManager"),n={};e.get("playQueue")&&(n.type=i(e)),j.endPlayback(e),t.sendCommand("/player/playback/stop",n)}function o(e){
var t=Object(S.c)("remotePlexPlayerManager"),n=i(e);t.sendCommand("/player/playback/skipNext",{type:n})}function s(e){var t=Object(S.c)("remotePlexPlayerManager"),n=i(e);t.sendCommand("/player/playback/skipPrevious",{type:n})}function l(e,t){j.playItem(e,t);var n=Object(S.c)("remotePlexPlayerManager"),a=i(e),r=e.get("playQueue"),o=r.get("playQueueItems"),s=r.get("playQueueSelectedItemID"),l=o.get(s),c=l.get("metadataItem");n.sendCommand("/player/playback/skipTo",{type:a,key:c.get("key")})}
function c(e){j.play(e);var t=Object(S.c)("remotePlexPlayerManager"),n=i(e);t.sendCommand("/player/playback/play",{type:n})}function u(e){j.pause(e);var t=Object(S.c)("remotePlexPlayerManager"),n=i(e);t.sendCommand("/player/playback/pause",{type:n})}function d(e,t){j.seek(e,t);var n=Object(S.c)("remotePlexPlayerManager"),a=i(e);n.seek({type:a,offset:1e3*t})}function p(e,t,n){var a=Object(S.c)("remotePlexPlayerManager"),r=i(e);a.changeVolume({type:r,volume:n})}function h(e,t){}function f(e,t,n){
var a,r=Object(S.c)("remotePlexPlayerManager"),o=i(e),s=C.a.get(t).key;r.sendCommand("/player/playback/setStreams",(a={type:o},a[s]=n,a))}function v(e,t,n){}function g(e,t,n){}function m(e,t){}function y(e,t){j.setRepeat(e,t);var n=Object(S.c)("remotePlexPlayerManager"),a=i(e),r=e.get("repeatAll"),o=e.get("repeatOne"),s=D.b;r&&(s=o?D.c:D.a),n.sendCommand("/player/playback/setParameters",{type:a,repeat:s})}function b(e){
var t=Object(S.c)("remotePlexPlayerManager"),n=i(e),a=e.get("playQueue"),r=a.get("playQueueID");t.sendCommand("/player/playback/refreshPlayQueue",{type:n,playQueueID:r})}function I(e){Object(S.c)("remotePlexPlayerManager").mirrorDetails(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.startPlayback=a,t.endPlayback=r,t.playNextItem=o,t.playPreviousItem=s,t.playItem=l,t.play=c,t.pause=u,t.seek=d,t.changeVolume=p,t.changeQualityIndex=h,t.changeStream=f,t.changeSubtitleSize=v,
t.changeAutoPlay=g,t.changePlaybackSpeed=m,t.setRepeat=y,t.refreshRemotePlayQueue=b,t.mirrorDetails=I;var S=n(16),M=n(437),D=n(527),C=n(159),j=n(635)},function(e,t,n){"use strict";function i(e){var t=e.get("type"),n="channelDirectory"===t,i=n||Object(a.u)(t)||e.get("isFolder");return void 0===e.length&&!i}var a=n(27);t.a=i},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(2328),c=n.n(l),u=r.a.ItemView.extend({className:"player-slider",template:c.a,dragging:!1,ui:{
thumb:".player-slider-thumb",track:".player-slider-track",progress:".player-slider-progress"},events:{mousedown:"onMouseDown",touchstart:"onTouchStart"},onlyAfterRender:["displayValue"],initialize:function(e){s.a.bindAll(this,"onMouseMove","onMouseUp","onTouchMove","onTouchEnd"),this.$document=a()(document),this.currentValue=e.value||0},startDragging:function(){this.dragging=!0,this.$el.addClass("active")},stopDragging:function(){this.dragging=!1,this.$el.removeClass("active"),
this.triggerMethod("dragComplete")},updateForPosition:function(e,t){var n=this.getValueForPosition(e);this.setValue(n)&&this.displayValue(n,t)},getValueForPosition:function(e){var t=this.ui.track,n=e-t.offset().left,i=n/t.width();return i=Math.min(Math.max(i,0),1),i=Math.round(100*i)},setValue:function(e){return this.currentValue=e,this.trigger("change:value",e),!0},displayValue:function(e,t){this.ui.thumb.css("left",e+"%"),this.ui.progress.css("width",e+"%"),this.$el.data("value",e)},
onRender:function(){this.displayValue(this.currentValue)},onClose:function(){this.$document.off("mousemove",this.onMouseMove),this.$document.off("mouseup",this.onMouseUp),this.$document.off("touchmove",this.onTouchMove),this.$document.off("touchend",this.onTouchEnd)},onMouseDown:function(e){e.preventDefault(),this.$document.on("mousemove",this.onMouseMove),this.$document.on("mouseup",this.onMouseUp),this.startDragging(),this.setValue(this.getValueForPosition(e.pageX))},onTouchStart:function(e){
this.$document.on("touchmove",this.onTouchMove),this.$document.on("touchend",this.onTouchEnd),this.startDragging();var t=e.originalEvent.touches[0];t&&this.updateForPosition(t.pageX)},onMouseMove:function(e){e.preventDefault(),this.updateForPosition(e.pageX)},onTouchMove:function(e){e.preventDefault();var t=e.originalEvent.touches[0];t&&this.updateForPosition(t.pageX)},onMouseUp:function(e){e.preventDefault(),this.$document.off("mousemove",this.onMouseMove),
this.$document.off("mouseup",this.onMouseUp),this.updateForPosition(e.pageX),this.stopDragging()},onTouchEnd:function(e){this.$document.off("touchmove",this.onTouchMove),this.$document.off("touchend",this.onTouchEnd);var t=e.originalEvent.touches[0];t&&this.updateForPosition(t.pageX),this.stopDragging()}});t.a=u},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div class="player-slider-track"> <div class="player-slider-progress"></div> </div> <div class="player-slider-thumb"></div> '})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){var i,a="";return a+='<span class="star"><i class="star-icon glyphicon ',i=n.if.call(e,e,{hash:{},inverse:u.program(4,s,t),fn:u.program(2,o,t),data:t}),(i||0===i)&&(a+=i),a+='"></i><span class="empty-icon"></span></span>'}function o(e,t){return"star"}function s(e,t){
return"dislikes"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,c="",u=this;return l=n.each.call(t,t&&t.stars,{hash:{},inverse:u.noop,fn:u.program(1,r,a),data:a}),(l||0===l)&&(c+=l),c+=" "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(19),s=n(846),l=n(848),c=n(2340),u=n.n(c),d=r.a.ItemView.extend({tagName:"ul",className:"dropdown-menu",template:u.a,events:{"click .info-btn":"onInfoClick"},initialize:function(e){this.mediaActions=new s.a({},{
item:this.model}),a()(".dropdown.open .dropdown-toggle").dropdown("toggle")},serializeData:function(){return{}},bindingsModel:"mediaActions",bindings:{".delete-btn":{modelAttribute:"showDelete",manual:!0,autohide:!0},".info-btn":{modelAttribute:"showInfo",manual:!0,autohide:!0}},onClose:function(){this.mediaActions.stopListening()},onInfoClick:function(e){e.preventDefault(),o.a.trigger("show:modal",new l.a({model:this.model}))}});t.a=d},function(e,t,n){e.exports={default:n(2332),__esModule:!0}
},function(e,t,n){n(2333),e.exports=n(120).Number.isFinite},function(e,t,n){var i=n(169),a=n(229).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&a(e)}})},function(e,t,n){e.exports={default:n(2335),__esModule:!0}},function(e,t,n){n(2336),e.exports=n(120).Number.isNaN},function(e,t,n){var i=n(169);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";function i(e){for(var t="",n=0,i=e.length;n<i;n++){var a=e.charAt(n),r=a.toUpperCase()
;t+=0===n?r:a===r?" "+r:a}return t}t.a=i},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hide-streams-column"}function l(e,t){var r,o="";return o+=' <div class="files"> <h4>'+N(i(n(5)).call(e,"Files",{hash:{},data:t}))+"</h4> ",r=a.each.call(e,e&&e.media,{hash:{},inverse:k.noop,fn:k.programWithDepth(4,c,t,e),data:t}),(r||0===r)&&(o+=r),o+=" </div> "}function c(e,t,n){var i,r=""
;return r+=' <ul class="media-info-file-list well"> ',i=a.if.call(e,n&&n.showDeleteFile,{hash:{},inverse:k.noop,fn:k.program(5,u,t),data:t}),(i||0===i)&&(r+=i),r+=" ",i=a.each.call(e,e&&e.Part,{hash:{},inverse:k.noop,fn:k.programWithDepth(10,h,t,n),data:t}),(i||0===i)&&(r+=i),r+=" </ul> "}function u(e,t){var a,r="";return r+=' <a href="#" data-media-item="'+N((a=null==t||!1===t?t:t.index,typeof a===L?a.apply(e):a))+'" class="delete-btn text-danger pull-right"> <i class="glyphicon bin"></i> ',
a=i(n(34)).call(e,(a=e&&e.Part,null==a||!1===a?a:a.length),"1",{hash:{},inverse:k.program(8,p,t),fn:k.program(6,d,t),data:t}),(a||0===a)&&(r+=a),r+=" </a> "}function d(e,t){var a="";return a+=" "+N(i(n(5)).call(e,"Delete File",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=" "+N(i(n(5)).call(e,"Delete Files",{hash:{},data:t}))+" "}function h(e,t,n){var i,r="";return r+=" <li> ",i=a.if.call(e,n&&n.showFilepath,{hash:{},inverse:k.program(13,v,t),fn:k.program(11,f,t),data:t}),
(i||0===i)&&(r+=i),r+=" ",i=a.unless.call(e,e&&e.accessible,{hash:{},inverse:k.noop,fn:k.program(15,g,t),data:t}),(i||0===i)&&(r+=i),r+=" </li> "}function f(e,t){var n,i="";return i+=" "+N((n=e&&e.file,typeof n===L?n.apply(e):n))+" "}function v(e,t){var a="";return a+=" "+N(i(n(2339)).call(e,e&&e.file,{hash:{},data:t}))+" "}function g(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.exists,{hash:{},inverse:k.program(18,y,t),fn:k.program(16,m,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function m(e,t){
var a="";return a+=' <span class="label label-danger" data-toggle="tooltip" title="'+N(i(n(5)).call(e,"Please check the permissions for this file.",{hash:{},data:t}))+'">'+N(i(n(5)).call(e,"Inaccessible",{hash:{},data:t}))+"</span> "}function y(e,t){var a="";return a+=' <span class="label label-danger" data-toggle="tooltip" title="'+N(i(n(5)).call(e,"Please check that this file exists and the necessary drive is mounted.",{hash:{},data:t}))+'">'+N(i(n(5)).call(e,"Unavailable",{hash:{},data:t
}))+"</span> "}function b(e,t,r){var o,s="";return s+=' <div class="media"> <div class="props"> <h4>'+N(i(n(5)).call(e,"Media",{hash:{},data:t}))+"</h4> <ul> ",o=a.each.call(e,e&&e.properties,{hash:{},inverse:k.noop,fn:k.program(21,I,t),data:t}),(o||0===o)&&(s+=o),s+=" </ul> </div> ",o=a.each.call(e,e&&e.Part,{hash:{},inverse:k.noop,fn:k.programWithDepth(23,S,t,r),data:t}),(o||0===o)&&(s+=o),s+=" </div> "}function I(e,t){var a,r=""
;return r+=' <li> <span class="detail-label">'+N(i(n(5)).call(e,e&&e.name,{hash:{},data:t}))+'</span> <span class="detail">'+N((a=e&&e.value,typeof a===L?a.apply(e):a))+"</span> </li> "}function S(e,t,r){var o,s="";return s+=' <div class="part"> <div class="props"> <h4>'+N(i(n(5)).call(e,"Part",{hash:{},data:t}))+"</h4> <ul> ",o=a.each.call(e,e&&e.properties,{hash:{},inverse:k.noop,fn:k.program(21,I,t),data:t}),(o||0===o)&&(s+=o),s+=' </ul> </div> <div class="streams"> ',
o=a.each.call(e,e&&e.Stream,{hash:{},inverse:k.noop,fn:k.program(24,M,t),data:t}),(o||0===o)&&(s+=o),s+=" ",o=a.if.call(e,r&&r.loading,{hash:{},inverse:k.noop,fn:k.program(33,T,t),data:t}),(o||0===o)&&(s+=o),s+=" </div> </div> "}function M(e,t){var r,o="";return o+=' <div class="props"> ',r=i(n(34)).call(e,e&&e.streamType,"1",{hash:{},inverse:k.program(27,C,t),fn:k.program(25,D,t),data:t}),(r||0===r)&&(o+=r),o+=" <ul> ",r=a.each.call(e,e&&e.properties,{hash:{},inverse:k.noop,
fn:k.program(21,I,t),data:t}),(r||0===r)&&(o+=r),o+=" </ul> </div> "}function D(e,t){var a="";return a+=" <h4>"+N(i(n(5)).call(e,"Video",{hash:{},data:t}))+"</h4> "}function C(e,t){var a;return a=i(n(34)).call(e,e&&e.streamType,"2",{hash:{},inverse:k.program(30,P,t),fn:k.program(28,j,t),data:t}),a||0===a?a:""}function j(e,t){var a="";return a+=" <h4>"+N(i(n(5)).call(e,"Audio",{hash:{},data:t}))+"</h4> "}function P(e,t){var a;return a=i(n(34)).call(e,e&&e.streamType,"3",{hash:{},inverse:k.noop,
fn:k.program(31,O,t),data:t}),a||0===a?a:""}function O(e,t){var a="";return a+=" <h4>"+N(i(n(5)).call(e,"Subtitles",{hash:{},data:t}))+"</h4> "}function T(e,t){var a="";return a+=' <div class="props"> <h4>'+N(i(n(5)).call(e,"Loading",{hash:{},data:t}))+"...</h4> </div> "}function E(e,t,n){var i;return i=a.if.call(e,n&&n.showFilepath,{hash:{},inverse:k.noop,fn:k.program(36,w,t),data:t}),i||0===i?i:""}function w(e,t){var a,r=""
;return r+=' <div class="modal-footer"> <div class="pull-left"> <a href="'+N((a=e&&e.url,typeof a===L?a.apply(e):a))+'" target="_blank">'+N(i(n(5)).call(e,"View XML",{hash:{},data:t}))+"</a> </div> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var A,x="",N=this.escapeExpression,L="function",k=this
;return x+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-info"></i> '+N(i(n(5)).call(t,"Media Info",{hash:{},data:o}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <div class="position-ref ',A=a.unless.call(t,t&&t.hasStreams,{hash:{},inverse:k.noop,fn:k.program(1,s,o),
data:o}),(A||0===A)&&(x+=A),x+='"> ',A=a.if.call(t,t&&t.hasFiles,{hash:{},inverse:k.noop,fn:k.program(3,l,o),data:o}),(A||0===A)&&(x+=A),x+=" ",A=a.each.call(t,t&&t.media,{hash:{},inverse:k.noop,fn:k.programWithDepth(20,b,o,t),data:o}),(A||0===A)&&(x+=A),x+=" </div> </div> ",A=a.if.call(t,t&&t.key,{hash:{},inverse:k.noop,fn:k.programWithDepth(35,E,o,t),data:o}),(A||0===A)&&(x+=A),x+=" </div> </div> "})},function(e,t,n){var i=n(18).getLastSegment,a=n(211);e.exports=a(i)},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<li><a class="info-btn" href="#" tabindex="-1">'+(0,this.escapeExpression)(i(n(5)).call(t,"Get Info",{hash:{},data:o}))+"</a></li> "})},function(e,t,n){"use strict";var i=n(22),a=n(528),r=n(2342),o=n.n(r),s=i.a.ItemView.extend({className:"hidden",template:o.a,bindings:{".media-progress-pct":{
modelAttribute:"viewOffset",manual:!0,formatter:function(e,t){var n=this.model,i="track"===n.get("type")?0:Object(a.a)(e,n.get("duration"));i&&t.css("width",i+"%"),this.$el.toggleClass("hidden",!i)}}}});t.a=s},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="media-progress-track"></div> <div class="media-progress-pct"></div> '})},function(e,t,n){var i=n(15)
;e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"show-actions"}function o(e,t){return"selected"}function s(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,c,u="",d=this,p=this.escapeExpression;return u+='<a class="media-list-inner-item ',l=n.if.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(l||0===l)&&(u+=l),u+=" ",l=n.if.call(t,t&&t.selected,{hash:{},inverse:d.noop,fn:d.program(3,o,a),data:a
}),(l||0===l)&&(u+=l),u+='" href="',(c=n.url)?l=c.call(t,{hash:{},data:a}):(c=t&&t.url,l="function"==typeof c?c.call(t,{hash:{},data:a}):c),u+=p(l)+'"> <div class="media-actions ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(5,s,a),data:a}),(l||0===l)&&(u+=l),
u+='"> <button class="play-btn media-action-btn" tabindex="-1"><i class="glyphicon play"></i></button> <button class="more-btn media-action-btn btn-link" tabindex="-1"><i class="glyphicon more"></i></button> </div> <span class="media-title media-heading"></span> <span class="media-subtitle-2 media-heading secondary"></span> <span class="media-subtitle-1 media-heading secondary"></span> </a> <div class="media-actions-dropdown dropdown pull-right"> <div class="dropdown-toggle" data-toggle="dropdown"></div> </div> '
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <a class="media-poster-container ',n=a.unless.call(e,e&&e.showActions,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+='" href="'+m((n=e&&e.url,typeof n===g?n.apply(e):n))+'"> '}function l(e,t){return"hide-actions"}function c(e,t){var n,i="";return i+=' <div class="media-poster-container ',
n=a.unless.call(e,e&&e.showActions,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+='"> '}function u(e,t){return"hidden"}function d(e,t){return" </a> "}function p(e,t){return" </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var h,f="",v=this,g="function",m=this.escapeExpression;return h=a.if.call(t,t&&t.url,{hash:{},inverse:v.program(4,c,o),fn:v.program(1,s,o),data:o}),(h||0===h)&&(f+=h),
f+=' <div class="media-poster-fade invisible"></div> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-top-overlay"></div> <div class="media-poster-actions ',h=a.unless.call(t,t&&t.showStopButton,{hash:{},inverse:v.noop,fn:v.program(6,u,o),data:o}),(h||0===h)&&(f+=h),f+='"> <button class="stop-btn media-poster-btn btn-link" tabindex="-1"> <i class="glyphicon remove-2"></i> <span class="media-poster-btn-text">'+m(i(n(5)).call(t,"Stop playback",{hash:{},
data:o}))+'</span> </button> </div> <img class="device-icon"> <div class="session-player"></div> <div class="session-state"></div> <div class="session-transcode-details"> <p class="session-transcode-title"> <span class="session-transcode"></span> <span class="session-transcode-throttled"></span> </p> <p class="session-transcode-video"> <span class="session-transcode-label">'+m(i(n(5)).call(t,"Video",{hash:{},data:o
}))+'</span> <span class="session-transcode-video-decision"></span> </p> <p class="session-transcode-audio"> <span class="session-transcode-label">'+m(i(n(5)).call(t,"Audio",{hash:{},data:o
}))+'</span> <span class="session-transcode-audio-decision"></span> </p> </div> <div class="media-progress"></div> </div> <div class="session-user pull-right"> <div class="user-poster img-circle"></div> <div class="session-username media-heading secondary"></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> ',h=a.if.call(t,t&&t.url,{hash:{},inverse:v.program(10,p,o),fn:v.program(8,d,o),data:o}),(h||0===h)&&(f+=h),f+=" "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return' <div class="sessions-list-container"></div> '}function l(e,t){var n,i="";return i+=' <div class="row row-padded"> <h4 class="text-muted text-center"> ',n=a.if.call(e,e&&e.shared,{hash:{},inverse:g.program(6,u,t),fn:g.program(4,c,t),data:t}),(n||0===n)&&(i+=n),i+=" </h4> </div> "}function c(e,t){var a=""
;return a+=" "+v(i(n(5)).call(e,"Now Playing is restricted from shared users.",{hash:{},data:t}))+" "}function u(e,t){var n;return n=a.if.call(e,e&&e.synced,{hash:{},inverse:g.program(9,p,t),fn:g.program(7,d,t),data:t}),n||0===n?n:""}function d(e,t){var a="";return a+=" "+v(i(n(5)).call(e,"Now Playing is unavailable with synced servers.",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=" "+v(i(n(5)).call(e,"Now Playing requires Plex Media Server {1} or later.",e&&e.minServerVersion,{
hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var h,f="",v=this.escapeExpression,g=this;return f+='<div class="filter-bar"></div> ',h=a.if.call(t,t&&t.shouldShowList,{hash:{},inverse:g.program(3,l,o),fn:g.program(1,s,o),data:o}),(h||0===h)&&(f+=h),f+=" "})},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(48)),s=n(2347),l=o.a.extend({component:function(e){var t=e.server;return a()(s.a,{serverEntityID:t.entityID()})}});t.a=l
},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(Object(m.a)(),y.a,function(e,t){var n=-1!==e.ownerFeatures.indexOf(b.k);return{showCharts:n,showServerDashboardUpsell:!n&&!t.hasDismissedServerDashboardUpsell}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(35)),y=n(72),b=n(79),I=n(274),S=n(2362),M={dispatchResetServerDashboardPage:I.h},D=function(e){function t(){return s()(this,t),
c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatchResetServerDashboardPage()},t.prototype.render=function(){var e=this.props,t=(e.dispatchResetServerDashboardPage,r()(e,["dispatchResetServerDashboardPage"]));return f.a.createElement(S.a,t)},t}(h.Component);t.a=Object(v.connect)(i,M)(D)},function(e,t,n){e.exports={default:n(2349),__esModule:!0}},function(e,t,n){n(2350),e.exports=n(120).Object.setPrototypeOf},function(e,t,n){
var i=n(169);i(i.S,"Object",{setPrototypeOf:n(2351).set})},function(e,t,n){var i=n(347),a=n(346),r=function(e,t){if(a(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n(775)(Function.call,n(1135).f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){e.exports={
default:n(2353),__esModule:!0}},function(e,t,n){n(2354);var i=n(120).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(169);i(i.S,"Object",{create:n(786)})},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"BandwidthStatisticsModel",rootPropertyName:"StatisticsBandwidth",syncedAttrs:{accountID:a.a.integer,deviceID:a.a.integer,timespan:a.a.integer,at:a.a.integer,lan:a.a.boolean,bytes:a.a.integer}});t.a=r},function(e,t,n){"use strict"
;var i=n(25),a=n(2357),r=i.a.extend({name:"StatisticsMediaCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"StatisticsMediaModel",syncedAttrs:{accountID:a.a.integer,deviceID:a.a.integer,timespan:a.a.integer,at:a.a.integer,metadataType:a.a.integer,count:a.a.integer,duration:a.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(2359),r=i.a.extend({name:"StatisticsUserCollection",model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"StatisticsUserModel",syncedAttrs:{id:a.a.integer,key:a.a.string,name:a.a.string,thumb:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),o=n(94),s=n(232),l=o.a.extend({name:"TopPlayedMetadataModel",entityType:s.TOP_PLAYED_METADATA_ITEM,cacheKey:function(e){return this.server?this.entityType+"--"+this.server.getScopedKey(e.key):null},syncedAttrs:a()({},o.a.prototype.syncedAttrs,{globalViewCount:r.a.integer,userCount:r.a.integer})
});t.a=l},function(e,t,n){"use strict";function i(e,t){var n=e.get("Session");return n&&n.id?r.a.ajax(e.server.getXHROptions("/status/sessions/terminate",{data:{sessionId:n.id,reason:t}})).then(function(){e.trigger("destroy",e,e.collection)}):r.a.Deferred().reject()}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.showCharts,i=e.showServerDashboardUpsell;return r()(s.Fragment,{},void 0,i?v:null,r()(l.a,{},void 0,r()(d.a,{serverEntityID:t
})),n?r()(s.Fragment,{},void 0,r()(l.a,{},void 0,r()(u.a,{serverEntityID:t})),r()(l.a,{},void 0,r()(f.a,{serverEntityID:t})),r()(l.a,{},void 0,r()(p.a,{serverEntityID:t})),r()(l.a,{},void 0,r()(h.a,{serverEntityID:t}))):null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2363)),c=n(2365),u=n(2386),d=n(2823),p=n(2863),h=n(2869),f=n(2882),v=r()(c.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children;return r()("div",{className:c.a.section},void 0,t)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(2364)),c=n.n(l);t.a=i},function(e,t){e.exports={section:"ServerDashboardPageSection-section-dCuCk"}},function(e,t,n){"use strict";var i=n(11),a=n(274),r=n(2366),o={onDismissPress:a.a};t.a=Object(i.connect)(null,o)(r.a)},function(e,t,n){"use strict";function i(e){var t=e.onDismissPress;return r()("div",{className:y.a.upsell},void 0,r()("div",{className:y.a.description
},void 0,Object(d.default)("Want more data? Get stats like top users, what's popular, and bandwidth usage with the new server Dashboard for Plex Pass holders!")+" ",r()(l.a,{kind:u.PRIMARY,to:"https://www.plex.tv/plex-pass",target:"_blank"},void 0,Object(d.default)("Learn more"))),r()("div",{className:y.a.chartImageContainer},void 0,r()(c.a,{className:y.a.image,src:f.a})),r()("div",{className:y.a.listImageContainer},void 0,r()(c.a,{className:y.a.image,src:g.a})),r()(l.a,{className:y.a.button,
onPress:t},void 0,b))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(184),u=n(51),d=n(3),p=n(26),h=n(2383),f=n.n(h),v=n(2384),g=n.n(v),m=n(2385),y=n.n(m),b=r()(p.a,{name:"plex-icon-remove-560"});t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=s()({collapsed:!1,name:""},n),a=Object(l.a)(e,t,n);if(r()(a).length){var o=i.name,c=i.collapsed,u="shallowCompare()"+(o?": "+o:""),d=window.console;c&&d.groupCollapsed?d.groupCollapsed(u):d.group(u);for(var p in a){d.group(p)
;for(var h in a[p]){var f=a[p][h];d.debug(h+":",f.current,"=>",f.next)}d.groupEnd()}d.groupEnd()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(59),r=n.n(a),o=n(6),s=n.n(o),l=n(2368)},function(e,t,n){"use strict";function i(e,t,n){return e.reduce(function(e,i){return e[i]={current:t[i],next:n[i]},e},{})}function a(e,t){var n=o()(e,t);return s.reduce(function(a,r){return n[r].length&&(a[r]=i(n[r],e,t)),a},{})}t.a=a;var r=n(1239),o=n.n(r),s=["added","deleted","updated"]
},,function(e,t){e.exports={link:"Link-link-2n0yJ",default:"Link-default-2XA2b",primary:"Link-primary-1vcAG",success:"Link-success-oE5mZ",danger:"Link-danger-58vt6",small:"Link-small-_K-QD",medium:"Link-medium-3gAfL",large:"Link-large-3a4C4",isSelected:"Link-isSelected-IRm9u",isActiveRoute:"Link-isActiveRoute-2N5cg"}},,,,,,,,,,function(e,t){e.exports={appear:"crossFadeTransition-appear-3FC71",enter:"crossFadeTransition-enter-2rg1k",appearActive:"crossFadeTransition-appearActive-3D8kF",
enterActive:"crossFadeTransition-enterActive-V4ARk",leave:"crossFadeTransition-leave-2kwUR",leaveActive:"crossFadeTransition-leaveActive-jKpWB"}},function(e,t,n){"use strict";function i(e,t){function n(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=r.a.Deferred();return setTimeout(function(){return a.resolve.apply(a,n)},t),a.promise()}return e.then(n)}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.component,n=e.transitionProps,i=e.isLoaded,a=e.style,o=e.src,l=e.prevSrc,c=r()(e,["component","transitionProps","isLoaded","style","src","prevSrc"]);return u.a.createElement(d.a,n,i&&u.a.createElement(t,s()({style:p(2,a)},c,{key:o,src:o})),!i&&l&&u.a.createElement(t,s()({style:p(1,a)},c,{key:l,src:l})))}var a=n(12),r=n.n(a),o=n(6),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(529),p=(n(1245),n(1246),function(e,t){return s()({position:"absolute",zIndex:e},t)});t.a=i},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t,n){e.exports=n.p+"desktop/common/img/upsell/upsell-server-dashboard-list.57fd1b383a084b3b564cbba3d4ff024d.svg"},function(e,t){e.exports={upsell:"ServerDashboardPageUpsell-upsell-37J5K",description:"ServerDashboardPageUpsell-description-1EYv9",chartImageContainer:"ServerDashboardPageUpsell-chartImageContainer-2wVqg",listImageContainer:"ServerDashboardPageUpsell-listImageContainer-1RWgo",image:"ServerDashboardPageUpsell-image-2u0wK",button:"ServerDashboardPageUpsell-button-25r8s"}
},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.serverDashboardPage},Object(s.a)(),function(e,t){return{machineIdentifier:t.machineIdentifier,bandwidthStatistics:e.bandwidthStatistics,bandwidthStatisticsRequestTimestamp:e.bandwidthStatisticsRequestTimestamp,minServerVersion:o.a.dashboardBandwidthChart,canShowGraph:Object(l.a)(t.version,o.a.dashboardBandwidthChart),showSpinner:e.isBandwidthStatisticsPending,
showGraph:e.isBandwidthStatisticsPopulated,errorMessage:e.bandwidthStatisticsError}})}var a=n(11),r=n(4),o=(n.n(r),n(160)),s=n(35),l=n(271),c=n(274),u=n(2387),d={onFetchBandwidthStatistics:c.c};t.a=Object(a.connect)(i,d)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(3),v=n(637),g=n(534),m=n(535),y=n(1251),b=n(440),I=n(2401),S=n(2822),M=n.n(S),D=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.fetchBandwidthStatistics=function(){var e=a.props,t=e.serverEntityID,n=e.onFetchBandwidthStatistics,i=a.state.selectedTimePeriodType;n({serverEntityID:t,timespan:i.timespan,after:i.after()})},a.onBandwidthSourceTypeSelect=function(e){a.setState({selectedBandWidthSourceType:y.e(e)})},a.onTimePeriodTypeSelect=function(e){a.setState({selectedTimePeriodType:b.i(e)})},a.onGraphBandwidthSourceTypeSelect=function(e){
var t=a.state.selectedBandWidthSourceType,n=e===t.key?y.a:e;a.setState({selectedBandWidthSourceType:y.e(n)})},a.state={selectedBandWidthSourceType:y.e(y.a),selectedTimePeriodType:b.i(b.e)},a._availableTimePeriodTypes=[b.e,b.f,b.b,b.g,b.c,b.d,b.h,b.a].map(b.i),a}return u()(t,e),t.prototype.componentDidMount=function(){if(this.props.canShowGraph){this.state.selectedTimePeriodType.key===b.e&&this.startFetchingRealTimeBandwidthStatistics(),this.fetchBandwidthStatistics()}},
t.prototype.componentDidUpdate=function(e,t){var n=this.state.selectedTimePeriodType;if(n.key!==t.selectedTimePeriodType.key){n.key===b.e?this.startFetchingRealTimeBandwidthStatistics():this.stopFetchingRealTimeBandwidthStatistics(),this.fetchBandwidthStatistics()}},t.prototype.componentWillUnmount=function(){this.stopFetchingRealTimeBandwidthStatistics()},t.prototype.startFetchingRealTimeBandwidthStatistics=function(){
this._fetchRealTimeBandwidthStatisticsIntervalID=setInterval(this.fetchBandwidthStatistics,1e3)},t.prototype.stopFetchingRealTimeBandwidthStatistics=function(){clearInterval(this._fetchRealTimeBandwidthStatisticsIntervalID)},t.prototype.render=function(){
var e=this.props,t=e.machineIdentifier,n=e.bandwidthStatistics,i=e.bandwidthStatisticsRequestTimestamp,r=e.minServerVersion,o=e.canShowGraph,s=e.showSpinner,l=e.showGraph,c=e.errorMessage,u=this.state,d=u.selectedBandWidthSourceType,p=u.selectedTimePeriodType;return a()("div",{className:M.a.container},void 0,a()(g.a,{title:Object(f.default)("Bandwidth")},void 0,o?a()("div",{},void 0,a()(v.a,{items:y.d(),selectedItem:d,onSelect:this.onBandwidthSourceTypeSelect}),a()(v.a,{
items:this._availableTimePeriodTypes,selectedItem:p,onSelect:this.onTimePeriodTypeSelect})):null),a()("div",{className:M.a.graph},void 0,o?a()(I.a,{statistics:n,requestTimestamp:i,bandWidthSourceType:d,timePeriodType:p,showSpinner:s,showGraph:l,errorMessage:c,onGraphBandwidthSourceTypeSelect:this.onGraphBandwidthSourceTypeSelect}):a()("div",{className:M.a.message},void 0,a()(m.a,{},void 0,a()(h.a,{to:"#!/settings/server/"+t+"/settings/general"
},void 0,Object(f.default)("The Bandwidth chart requires Plex Media Server {version} or higher",{version:r}))))))},t}(p.Component);t.a=D},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(112),b=n(2390),I=n.n(b),S=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=p()(this,e.call.apply(e,[this].concat(o))),
i.onPress=function(e){var t=i.props,n=t.value,a=t.onSelect,r=t.onPress;a&&a(n),r&&r(e)},a=n,p()(i,a)}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=e.menuLabelClassName,r=e.iconComponent,s=e.isSelected,c=e.selectedIconName,u=e.selectedIconAriaLabel,d=l()(e,["children","className","menuLabelClassName","iconComponent","isSelected","selectedIconName","selectedIconAriaLabel"]);return m.a.createElement(y.a,a()({
className:(n||"")+" "+(s&&I.a.isSelected||""||"")},d,{onPress:this.onPress}),o()("div",{className:I.a.menuItemContainer},void 0,o()("div",{className:i},void 0,t),s&&o()("div",{className:I.a.selectedIcon},void 0,o()(r,{name:c,"aria-label":u}))))},t}(g.Component);S.defaultProps={menuLabelClassName:I.a.menuLabel,selectedIconName:"plex-icon-selected-560"},t.a=S},function(e,t){e.exports={menuItem:"MenuItem-menuItem-1s02m",isDisabled:"MenuItem-isDisabled-37rHX",isHidden:"MenuItem-isHidden-t1VSN",
default:"MenuItem-default-2SKQ8",primary:"MenuItem-primary-2LuUH",success:"MenuItem-success-3F7NZ",danger:"MenuItem-danger-3P_Df"}},function(e,t){e.exports={menuItemContainer:"SelectedMenuItem-menuItemContainer-2hXIr",menuLabel:"SelectedMenuItem-menuLabel-2fp2l",selectedIcon:"SelectedMenuItem-selectedIcon-20Yx1",isSelected:"SelectedMenuItem-isSelected-178xe"}},function(e,t){e.exports={disclosureArrow:"DisclosureArrow-disclosureArrow-1KPaB",default:"DisclosureArrow-default-_QTDZ",
primary:"DisclosureArrow-primary-2w1Te",success:"DisclosureArrow-success-1gS8P",danger:"DisclosureArrow-danger-3OtVy",small:"DisclosureArrow-small-lqtG6",up:"DisclosureArrow-up-L-Dw3",right:"DisclosureArrow-right-2D3Mw",medium:"DisclosureArrow-medium-20Idw",large:"DisclosureArrow-large-2JBrD",down:"DisclosureArrow-down-3lf_G DisclosureArrow-up-L-Dw3",left:"DisclosureArrow-left-3Q0NG DisclosureArrow-right-2D3Mw",isSelected:"DisclosureArrow-isSelected-QMJhD"}},function(e,t){e.exports={
disclosureArrowButton:"DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ",isSelected:"DisclosureArrowButton-isSelected-1aPl5",small:"DisclosureArrowButton-small-2fBp-",medium:"DisclosureArrowButton-medium-3zt1W",large:"DisclosureArrowButton-large-2E9J1",disclosureArrow:"DisclosureArrowButton-disclosureArrow-1Gz1v DisclosureArrow-disclosureArrow-1KPaB",down:"DisclosureArrowButton-down-2EHTT",left:"DisclosureArrowButton-left-1_7OF",up:"DisclosureArrowButton-up-3CeKS",
right:"DisclosureArrowButton-right-3r62H"}},function(e,t){e.exports={scroller:"Scroller-scroller-3GqQc",none:"Scroller-none-3GfKR",vertical:"Scroller-vertical-VScFL",auto:"Scroller-auto-LsWiW",horizontal:"Scroller-horizontal-cOKsq",omni:"Scroller-omni-2Pq3H",compactScroller:"Scroller-compactScroller-rzREb"}},function(e,t,n){"use strict";function i(e){if(e===document)return!0;if(!e)return!1;if(!e.parentNode)return!1;if(e.style){var t=e.style;if("none"===t.display||"hidden"===t.visibility)return!1
}if(window.getComputedStyle){var n=window.getComputedStyle(e);if("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))return!1}return i(e.parentNode)}function a(e){var t=e.tabIndex;return null===t&&(t=void 0),!isNaN(t)&&t>=0&&r(e)}function r(e){if(!i(e))return!1;var t=e.nodeName.toLowerCase();return/input|select|textarea|button|object/.test(t)?!e.disabled:"a"!==t||e.href}function o(e){if(!e)return[]
;var t=[].slice.call(e.getElementsByTagName("*"),0).filter(function(e){return a(e)});return l.a.sortBy(t,function(e){return 0===e.tabIndex?1/0:e.tabIndex})}t.a=o;var s=n(10),l=n.n(s)},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.size,a=e.isDisabled;return r()("div",{role:"menu",className:(n||"")+" "+(u.a[i]||"")+" "+(a&&u.a.isDisabled||""||"")},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(52)),c=n(2396),u=n.n(c);i.defaultProps={
className:u.a.menu,size:l.MEDIUM,isDisabled:!1},t.a=i},function(e,t){e.exports={menu:"MenuContainer-menu-2OAQT",isDisabled:"MenuContainer-isDisabled-3FK4r",small:"MenuContainer-small-3kO2H",medium:"MenuContainer-medium-3u4Aw",large:"MenuContainer-large-1Mm6B"}},function(e,t){e.exports={menuPortal:"Menu-menuPortal-AbMPT",menuScroller:"Menu-menuScroller-1TF6o Scroller-vertical-VScFL",enter:"Menu-enter-3RnFj",enterActive:"Menu-enterActive-37dAF",leave:"Menu-leave-17vQv",
leaveActive:"Menu-leaveActive-2T7IF"}},function(e,t){e.exports={menuButton:"ServerDashboardPageMenuButton-menuButton-3c9Td DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ"}},function(e,t){e.exports={header:"ServerDashboardPageHeader-header-2Zk-2",headerTitle:"ServerDashboardPageHeader-headerTitle-21VOd"}},function(e,t){e.exports={container:"ServerDashboardPageMessage-container-1Gpee",message:"ServerDashboardPageMessage-message-2jGks"}},function(e,t,n){"use strict"
;function i(e){return Object(w.a)(e)||Object(j.a)(Object(P.a)(new Date))<=e}function a(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.timespan===U.j.DAY&&Object(w.a)(e)){var a=Object(N.default)("Today");return i?a.toUpperCase():a}return Object(D.a)(Object(C.a)(e),n)}function r(e){return 0===e?Object(N.default)("Now").toUpperCase():e%60==0?Math.floor(e/60)+"m":e>60?Math.floor(e/60)+"m "+e%60+"s":e+"s"}function o(e,t,n){if(!e)return[]
;var i=t.key,a=i===z.a||i===z.c,r=i===z.a||i===z.b,o=Math.floor(n/1e3)-_-1,s=S()(new Array(_+1),function(e,t){var n;return n={at:o+t,date:_-t},n[z.c]=a?0:null,n[z.b]=r?0:null,n});return e.forEach(function(e){var t=e.at,n=e.lan,i=e.bytes,o=s.findIndex(function(e){return e.at===Number(t)});if(-1!==o){var l=s[o];!n&&a&&(l[z.c]=l[z.c]+i),n&&r&&(l[z.b]=l[z.b]+i),s[o]=l}}),s}function s(e,t,n){if(!e)return[];var i=t.key,a=i===z.a||i===z.c,r=i===z.a||i===z.b,o={};return e.forEach(function(e){
var t=e.at,n=e.lan,i=e.bytes;if(!o[t]){var s;o[t]=(s={},s[z.c]=0,s[z.b]=0,s)}!n&&a&&(o[t][z.c]=o[t][z.c]+i),n&&r&&(o[t][z.b]=o[t][z.b]+i)}),b()(o).sort().map(function(e){var t=o[e];return m()({},t,{date:e})})}var l=n(2),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(6),m=n.n(g),y=n(59),b=n.n(y),I=n(832),S=n.n(I),M=n(374),D=n(170),C=n(81),j=n(147),P=n(441),O=n(1),T=(n.n(O),n(0)),E=(n.n(T),
n(52)),w=n(313),A=n(2402),x=n(849),N=n(3),L=n(31),k=n(1257),R=n(2818),z=n(1251),U=n(440),B=n(2821),F=n.n(B),_=120,V=function(e){function t(n,o){d()(this,t);var s=h()(this,e.call(this,n,o));return s.realTimeTooltipLabelFormatter=function(e){return 0===e?Object(N.default)("Now"):Object(N.default)("{timeAgo} ago",{timeAgo:r(e)})},s.tooltipLabelFormatter=function(e){var t=s.state.timePeriodType;if(t.timespan===U.j.WEEK){var n=a(e,t,t.longDateFormat),r=Object(j.a)(Object(M.a)(Object(C.a)(e),1))
;if(Object(w.a)(e)&&i(r))return Object(N.default)("Today");return n+" - "+a(r,t,t.longDateFormat)}return a(e,t,t.longDateFormat)},s.realTimeTooltipValueFormatter=function(e){return Object(A.a)(8*e,0)},s.tooltipValueFormatter=function(e){return Object(x.a)(e,0)},s.realTimeXAxisTickFormatter=function(e){return r(e)},s.xAxisTickFormatter=function(e){var t=s.state.timePeriodType;if(t.key===U.c){var n=a(e,t,t.dateFormat),r=Object(j.a)(Object(M.a)(Object(C.a)(e),1))
;if(Object(w.a)(e)&&i(r))return Object(N.default)("Today").toUpperCase();return n+" - "+a(r,t,t.dateFormat)}return a(e,t,t.dateFormat,!0)},s.yAxisTickFormatter=function(e){return 0===e?"":s.props.timePeriodType.key===U.e?Object(A.a)(8*e,0):Object(x.a)(e,0)},s.state={statistics:null,bandWidthSourceType:null,timePeriodType:null,data:null,isFirstRealTimeStatisticsLoad:!1},s}return v()(t,e),t.getDerivedStateFromProps=function(e,t){
var n=e.statistics,i=e.bandWidthSourceType,a=e.timePeriodType,r=e.requestTimestamp;if(t.statistics!==n||t.bandWidthSourceType!==i||t.timePeriodType!==a){var l=t.timePeriodType&&t.timePeriodType.key===U.e,c=a.key===U.e;return{statistics:n,bandWidthSourceType:i,timePeriodType:a,data:c?o(n,i,r):s(n,i,a),isFirstRealTimeStatisticsLoad:!l&&c}}return null},t.prototype.render=function(){
var e=this.props,t=e.showSpinner,n=e.showGraph,i=e.errorMessage,a=e.onGraphBandwidthSourceTypeSelect,r=this.state,o=r.bandWidthSourceType,s=r.timePeriodType,l=r.data,u=r.isFirstRealTimeStatisticsLoad,d=o.key,p=[{dataKey:z.c,title:Object(N.default)("Remote"),visible:d===z.a||d===z.c,selected:d===z.c,color:"#366dfc"},{dataKey:z.b,title:Object(N.default)("Local"),visible:d===z.a||d===z.b,selected:d===z.b,color:"#e69f23"}],h=s.key===U.e,f=t&&(!h||u),v=h?!i&&!u:!i&&n,g=i&&!t,m=h?R.a:k.a
;return c()("div",{className:F.a.container},void 0,f?c()(L.a,{className:F.a.spinner,size:E.LARGE}):null,v?c()(m,{width:"98%",height:280,series:p,data:l,isAnimationActive:!h,xAxisTickInterval:h?9:null,tooltipLabelFormatter:h?this.realTimeTooltipLabelFormatter:this.tooltipLabelFormatter,tooltipValueFormatter:h?this.realTimeTooltipValueFormatter:this.tooltipValueFormatter,xAxisTickFormatter:h?this.realTimeXAxisTickFormatter:this.xAxisTickFormatter,yAxisTickFormatter:this.yAxisTickFormatter,
onLegendPress:a}):null,g?c()("div",{className:F.a.message},void 0,i):null)},t}(T.Component);t.a=V},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return(0).toFixed(t)+" "+a[0];var n=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(t)+" "+a[n]}var a=["bps","Kbps","Mbps","Gbps","Tbps"];t.a=i},function(e,t){e.exports={spinner:"Spinner-spinner-Niere spin-spin-2kLwt",
spinnerContainer:"Spinner-spinnerContainer-1dbVI",spinnerLabel:"Spinner-spinnerLabel-3_zR9",small:"Spinner-small-3PStH Spinner-spinner-Niere spin-spin-2kLwt",medium:"Spinner-medium-31XpH Spinner-spinner-Niere spin-spin-2kLwt",large:"Spinner-large-3AQPy Spinner-spinner-Niere spin-spin-2kLwt"}
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e,t,n,i,a,r){
var o=t-r,s=i>=0?1:-1,l=i>=0?1:0,c=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=Math.min(c,a);return"M "+e+","+(o+s*u)+"\n    A "+u+","+u+",0,0,"+l+","+(e+u)+","+o+"\n    L "+(e+n-u)+","+o+"\n    A "+u+","+u+",0,0,"+l+","+(e+n)+","+(o+s*u)+"\n    L "+(e+n)+","+(o+i-s*u)+"\n    A "+u+","+u+",0,0,"+l+","+(e+n-u)+","+(o+i)+"\n    L "+(e+u)+","+(o+i)+"\n    A "+u+","+u+",0,0,"+l+","+e+","+(o+i-s*u)+" Z"}function a(e){
var t=e.x,n=e.y,a=e.width,r=e.height,s=e.radius,l=e.fill,c=e.barGap,u=e.data,d=e.dataKey,p=e.seriesOrdering,h=e.seriesIndex,f=p.slice(0,h),v=u.find(function(t){return t[d]===e[d]}),g=f.reduce(function(e,t){return 0!==v[t]&&e++,e},0),m=g*c;return o()("path",{d:i(t,n,a,r,s,m),fill:l})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0));n.n(l);t.a=a},function(e,t){e.exports={separator:"DashSeparator-separator-4CyEF"}},function(e,t){e.exports={legendLabel:"LegendLabel-legendLabel-2z2Ue Link-link-2n0yJ",
dot:"LegendLabel-dot-320-i"}},function(e,t){e.exports={container:"ChartTooltip-container-3qn8Y",separator:"ChartTooltip-separator-3cEIa",LegendLabel:"ChartTooltip-LegendLabel-11wpb LegendLabel-legendLabel-2z2Ue Link-link-2n0yJ",label:"ChartTooltip-label-2Ez54",values:"ChartTooltip-values-Alrdz",total:"ChartTooltip-total-2SwEH"}},function(e,t){e.exports={bar:"BarChart-bar-TGQuu",translucentBar:"BarChart-translucentBar-g8W7O BarChart-bar-TGQuu",legend:"BarChart-legend-1ZcOP",
legendLabel:"BarChart-legendLabel-2VxIT LegendLabel-legendLabel-2z2Ue Link-link-2n0yJ",translucentLegendLabel:"BarChart-translucentLegendLabel-25PxU BarChart-legendLabel-2VxIT LegendLabel-legendLabel-2z2Ue Link-link-2n0yJ"}},function(e,t,n){"use strict";function i(e){return e.every(function(e){return e.visible})}function a(e){return function(t){return y.a.createElement(I.a,v()({},t,e))}}function r(e){return function(t){return y.a.createElement(M.a,v()({},t,e))}}
var o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(6),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(855),I=n(1382),S=n(916),M=n(2819),D=n(2820),C=n.n(D),j=function(e){function t(n,i){c()(this,t);var a=d()(this,e.call(this,n,i));return a.onMouseEnter=function(e){a.setState({hoveredDataKey:e})},a.onMouseLeave=function(){a.setState({hoveredDataKey:null})},a.renderLegend=function(){var e=a.props,t=e.series,n=e.onLegendPress,i=a.state.hoveredDataKey;return s()("div",{
className:C.a.legend},void 0,t.map(function(e){var t=i&&i!==e.dataKey,r=!e.selected,o=!e.visible;return s()(S.a,{className:t&&r||o?C.a.translucentLegendLabel:C.a.legendLabel,dataKey:e.dataKey,title:e.title,labelColor:e.color,onPress:n,onMouseEnter:a.onMouseEnter,onMouseLeave:a.onMouseLeave},e.dataKey)}))},a.state={hoveredDataKey:null},a}return h()(t,e),t.prototype.render=function(){
var e=this,t=this.props,n=t.className,o=t.width,l=t.height,c=t.series,u=t.data,d=t.xAxisKey,p=t.connectNulls,h=t.lineType,f=t.lineStrokeWidth,g=t.isAnimationActive,m=t.chartMargin,I=t.gridLinesStyles,S=t.legendHeight,M=t.tooltipLabelFormatter,D=t.tooltipValueFormatter,j=t.dot,P=t.xAxisStyle,O=t.xAxisPadding,T=t.xAxisTick,E=t.xAxisTickInterval,w=t.xAxisTickMargin,A=t.xAxisTickLineStyle,x=t.xAxisTickFormatter,N=t.yAxisWidth,L=t.yAxisStyle,k=t.yAxisPadding,R=t.yAxisTick,z=t.yAxisTickMargin,U=t.yAxisTickLineStyle,B=t.yAxisTickFormatter,F=this.state.hoveredDataKey,_=[].concat(c).reverse()
;return s()(b.ResponsiveContainer,{className:n,width:o,height:l},void 0,s()(b.LineChart,{data:u,margin:m},void 0,y.a.createElement(b.CartesianGrid,I),s()(b.XAxis,{axisLine:P,dataKey:d,padding:O,tick:r(v()({},T,{margin:w,tickFormatter:x})),tickLine:A,minTickGap:0,interval:E}),s()(b.YAxis,{axisLine:L,padding:k,tick:R,tickLine:U,tickMargin:z,tickCount:6,tickFormatter:B,width:N}),s()(b.Tooltip,{cursor:!1,isAnimationActive:!1,content:a({series:c,labelFormatter:M,valueFormatter:D})
}),_.map(function(t){return s()(b.Line,{className:F&&F!==t.dataKey&&i(c)?C.a.translucentLine:C.a.line,type:h,dataKey:t.dataKey,dot:j,stroke:t.color,strokeWidth:f,connectNulls:p,isAnimationActive:g,onMouseEnter:e.onMouseEnter.bind(null,t.dataKey),onMouseLeave:e.onMouseLeave},t.dataKey)}),s()(b.Legend,{height:S,content:this.renderLegend,wrapperStyle:{paddingLeft:N+"px"}})))},t}(m.Component);j.defaultProps={xAxisKey:"date",connectNulls:!1,lineType:"monotone",lineStrokeWidth:3,isAnimationActive:!0,
chartMargin:{top:15,right:10,bottom:10,left:0},gridLinesStyles:{horizontal:!0,vertical:!1,stroke:"rgba(255, 255, 255, 0.1)"},legendHeight:20,dot:!1,xAxisStyle:!1,xAxisPadding:{left:0,right:0},xAxisTick:{fill:"rgba(255, 255, 255, 0.45)",fontSize:"10px"},xAxisTickMargin:20,xAxisTickLineStyle:{fill:"rgba(255, 255, 255, 0.1)",strokeWidth:5},yAxisWidth:60,yAxisStyle:!1,yAxisPadding:{top:0,bottom:0},yAxisTick:{fill:"rgba(255, 255, 255, 0.45)",fontSize:"10px"},yAxisTickMargin:5,yAxisTickLineStyle:!1},
t.a=j},function(e,t,n){"use strict";function i(e){var t=e.x,n=e.y,i=e.margin,a=e.fill,o=e.fontSize,s=e.index,l=e.visibleTicksCount,c=e.payload,u=e.tickFormatter,d="middle";0===s?d="start":s+1===l&&(d="end");var p=u?u(c.value):c.value;return r()("g",{transform:"translate("+t+","+n+")"},void 0,r()("text",{dy:i,fill:a,fontSize:o,textAnchor:d},void 0,p))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t){e.exports={line:"LineChart-line-kpWRY",
translucentLine:"LineChart-translucentLine-3Noru LineChart-line-kpWRY",legend:"LineChart-legend-3gGCz",legendLabel:"LineChart-legendLabel-3FrzJ LegendLabel-legendLabel-2z2Ue Link-link-2n0yJ",translucentLegendLabel:"LineChart-translucentLegendLabel-177DB LineChart-legendLabel-3FrzJ LegendLabel-legendLabel-2z2Ue Link-link-2n0yJ"}},function(e,t){e.exports={container:"BandwidthGraph-container-2tiBb",spinner:"BandwidthGraph-spinner-2WPVl",message:"BandwidthGraph-message-3I8Fe"}},function(e,t){
e.exports={container:"Bandwidth-container-1ekmV",graph:"Bandwidth-graph-1rImG",message:"Bandwidth-message-3JNt4"}},function(e,t,n){"use strict";function i(e){var t=e.myPlexSubscription||Object(d.a)(e.version,l.a.publicNowPlaying);return!e.shared&&e.isFullServer&&t}function a(){return Object(s.createSelector)(function(e){return e.ui.serverDashboardPage},u.a,Object(c.a)(),Object(v.a)(),function(e,t,n,a){return{sessionEntityIDs:a,shouldShowList:i(n),showDetails:t.dashboardNowPlayingShowDetails,
canStopSessions:-1!==n.ownerFeatures.indexOf("session_kick"),stopSessionErrorMessage:e.stopSessionErrorMessage}})}function r(e){return{onSessionsPoll:function(t){e(Object(f.e)({serverEntityID:t}))},onToggleNowPlayingDetails:function(t){Object(p.a)(function(){e(Object(h.k)({dashboardNowPlayingShowDetails:t}))})},onErrorDismiss:function(){e(Object(f.b)())}}}var o=n(11),s=n(4),l=(n.n(s),n(160)),c=n(35),u=n(72),d=n(271),p=n(36),h=n(71),f=n(274),v=n(1383),g=n(2824);t.a=Object(o.connect)(a,r)(g.a)
},function(e,t,n){"use strict";function i(e,t){var n=Math.max(Math.floor((t+T)/(O+T)),1),i=h()(new Array(n),function(){return[]});return e.reduce(function(e,t,i){return e[i%n].push(t),e},i)}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(832),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),n(67)),m=n(20),y=n(215),b=n(3),I=n(26),S=n(534),M=n(535),D=n(2829),C=n(2838),j=n(2862),P=n.n(j),O=280,T=40,E=r()(I.a,{name:"plex-icon-dashboard-expand-560"}),w=function(e){function t(n,i){
s()(this,t);var a=c()(this,e.call(this,n,i));return a.sessionsPoll=function(){var e=a.props,t=e.serverEntityID;(0,e.onSessionsPoll)(t)},a.onMeasure=function(e){var t=e.width;a.setState({width:t,isMeasured:!0})},a.onTogglePress=function(){var e=a.props,t=e.showDetails;(0,e.onToggleNowPlayingDetails)(!t)},a.state={width:null,isMeasured:!1},a}return d()(t,e),t.prototype.componentDidMount=function(){this.props.sessionEntityIDs.length>0&&this.startSessionsPoll()},
t.prototype.componentDidUpdate=function(e,t){var n=this.props.sessionEntityIDs,i=e.sessionEntityIDs;0===i.length&&n.length>0?this.startSessionsPoll():i.length>0&&0===n.length&&this.stopSessionsPoll()},t.prototype.componentWillUnmount=function(){this.stopSessionsPoll()},t.prototype.startSessionsPoll=function(){this.stopSessionsPoll(),this._SessionsPollID=setInterval(this.sessionsPoll,5e3)},t.prototype.stopSessionsPoll=function(){clearInterval(this._SessionsPollID)},t.prototype.render=function(){
var e=this.props,t=e.sessionEntityIDs,n=e.shouldShowList,a=e.showDetails,o=e.canStopSessions,s=e.stopSessionErrorMessage,l=e.onErrorDismiss,c=this.state,u=c.width,d=c.isMeasured;return r()(g.a,{ignoreHeight:!0,onMeasure:this.onMeasure},void 0,s?r()(D.a,{isOpen:!0,errorMessage:s,onModalClose:l}):null,r()(S.a,{title:Object(b.default)("Now Playing")},void 0,t.length?r()(y.a,{className:P.a.toggle,component:m.a,tooltip:a?Object(b.default)("Hide Details"):Object(b.default)("Show Details"),
"data-qa-id":"toolbarToggleNowPlayingDetails",isSelected:a,hideOnPress:!1,onPress:this.onTogglePress},void 0,E):null),r()("div",{className:P.a.tilesContainer},void 0,n&&t.length&&d?r()("div",{className:P.a.nowPlayingList},void 0,i(t,u).map(function(e,t){return r()("div",{className:P.a.column,style:{width:O+"px"}},t,e.map(function(e){return r()(C.a,{sessionEntityID:e,showDetails:a,canStopSessions:o},e)}))})):null,n&&!t.length?r()(M.a,{className:P.a.emptyMessage
},void 0,Object(b.default)("Nothing is currently being played")):null))},t}(v.Component);t.a=w},function(e,t){e.exports={container:"Measure-container-3yONE",scrollContainer:"Measure-scrollContainer-1c6dy",expandContent:"Measure-expandContent-zsLw6",shrinkContent:"Measure-shrinkContent-303GS Measure-expandContent-zsLw6"}},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.target,a=e.attachment,r=e.options,s=e.isOpen,c=(e.onMenuClose,
u()(e,["children","className","target","attachment","options","isOpen","onMenuClose"]));return l()(f.a,{className:S.a.tooltipPortal,target:i,options:r||C[a],isOpen:s,closeTimeout:M},void 0,l()(v.a,{transitionName:D,transitionAppearTimeout:M,transitionEnterTimeout:M,transitionLeaveTimeout:M},void 0,s&&h.a.createElement("div",o()({className:n||S.a[a]},c),t)))}var a,r=n(6),o=n.n(r),s=n(2),l=n.n(s),c=n(12),u=n.n(c),d=n(1),p=(n.n(d),
n(0)),h=n.n(p),f=n(1248),v=n(529),g=n(312),m=n(918),y=n(530),b=n.n(y),I=n(2827),S=n.n(I),M=Object(g.a)(b.a.tooltipSpeed),D={appear:S.a.enter,appearActive:S.a.enterActive,enter:S.a.enter,enterActive:S.a.enterActive,leave:S.a.leave,leaveActive:S.a.leaveActive},C=(a={},a[m.TOP_LEFT]={placement:"top-start"},a[m.TOP_CENTER]={placement:"top"},a[m.TOP_RIGHT]={placement:"top-end"},a[m.BOTTOM_LEFT]={placement:"bottom-start"},a[m.BOTTOM_CENTER]={placement:"bottom"},a[m.BOTTOM_RIGHT]={
placement:"bottom-end"},a[m.MIDDLE_LEFT]={placement:"left"},a[m.MIDDLE_RIGHT]={placement:"right"},a);i.defaultProps={attachment:m.BOTTOM_CENTER},t.a=i},function(e,t){e.exports={tooltipPortal:"Tooltip-tooltipPortal-3Nb82",tooltip:"Tooltip-tooltip-9TKmA",tooltipArrow:"Tooltip-tooltipArrow-3GUCr",tooltipBottomArrow:"Tooltip-tooltipBottomArrow-34fSA",tooltipTopArrow:"Tooltip-tooltipTopArrow-NjH0D",tooltipRightArrow:"Tooltip-tooltipRightArrow-18BKz",tooltipLeftArrow:"Tooltip-tooltipLeftArrow-1Zt2g",
tooltipCenterAlignArrow:"Tooltip-tooltipCenterAlignArrow-35uHt",tooltipLeftAlignArrow:"Tooltip-tooltipLeftAlignArrow-NweCL",tooltipRightAlignArrow:"Tooltip-tooltipRightAlignArrow-1ETgz",tooltipMiddleAlignArrow:"Tooltip-tooltipMiddleAlignArrow-3x1zF",topLeft:"Tooltip-topLeft-2DEJ1 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipBottomArrow-34fSA Tooltip-tooltipLeftAlignArrow-NweCL",
topCenter:"Tooltip-topCenter-Hv9C9 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipBottomArrow-34fSA Tooltip-tooltipCenterAlignArrow-35uHt",topRight:"Tooltip-topRight-3-Bmg Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipBottomArrow-34fSA Tooltip-tooltipRightAlignArrow-1ETgz",bottomLeft:"Tooltip-bottomLeft-2fPtV Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipLeftAlignArrow-NweCL",
bottomCenter:"Tooltip-bottomCenter-2yj43 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipCenterAlignArrow-35uHt",bottomRight:"Tooltip-bottomRight-T6_Ik Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipRightAlignArrow-1ETgz",middleLeft:"Tooltip-middleLeft-11JlO Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipRightArrow-18BKz Tooltip-tooltipMiddleAlignArrow-3x1zF",
middleRight:"Tooltip-middleRight-3lubO Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipLeftArrow-1Zt2g Tooltip-tooltipMiddleAlignArrow-3x1zF",enter:"Tooltip-enter-GVOuq",enterActive:"Tooltip-enterActive-29GJJ",leave:"Tooltip-leave-2B4cn",leaveActive:"Tooltip-leaveActive-1CpHe"}},function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"]);return l.a.createElement("div",n,t)}var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s);t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.isOpen,n=e.errorMessage,i=e.onModalClose;return r()(d.a,{isOpen:t,size:h.e.SMALL,onModalClose:i},void 0,r()(p.a,{onModalClose:i},void 0,r()(c.a,{className:v.a.modalHeader},void 0,Object(u.default)("Error")),r()(l.a,{},void 0,n)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(61)),c=n(84),u=n(3),d=n(114),p=n(98),h=n(24),f=n(2837),v=n.n(f);t.a=i},function(e,t){e.exports={modalBody:"ModalBody-modalBody--5uHS",
modalScroller:"ModalBody-modalScroller-1xOMq ModalBody-modalBody--5uHS",innerModalBody:"ModalBody-innerModalBody-36gmb"}},function(e,t){e.exports={modalHeader:"ModalHeader-modalHeader-1Kf9R"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(129),v=n.n(f),g=n(638),m=n(529),y=n(312),b=n(533),I=n(52),S=n(28),M=n(530),D=n.n(M),C=n(373),j=n(2833),P=n.n(j),O=Object(y.a)(D.a.modalSpeed),T={appear:P.a.enter,
appearActive:P.a.enterActive,enter:P.a.enter,enterActive:P.a.enterActive,leave:P.a.leave,leaveActive:P.a.leaveActive},E=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onBackdropBeginPress=function(e){i._isBackdropPressed=i._isBackdropTarget(e)},i.onBackdropEndPress=function(e){
!i.props.preventCloseOnBackdropPress&&i._isBackdropPressed&&i._isBackdropTarget(e)&&i.props.onModalClose(),i._isBackdropPressed=!1},i.onTouchMove=function(e){i._isBackdropPressed=!1},i.onTouchCancel=function(e){i._isBackdropPressed=!1},i.onKeyDown=function(e){var t=e.keyCode;t===C.j?b.e(e):t===C.e&&(e.preventDefault(),e.stopPropagation(),i.props.onModalClose(),b.c())},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){this.props.isOpen&&this._openModal()},
t.prototype.shouldComponentUpdate=function(e,t){return Object(S.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){!e.isOpen&&this.props.isOpen?this._openModal():e.isOpen&&!this.props.isOpen&&this._closeModal()},t.prototype.componentWillUnmount=function(){this.props.isOpen&&this._closeModal()},t.prototype._openModal=function(){b.f(v.a.findDOMNode(this.refs.modal)),this._autoFocusTimeoutID=setTimeout(b.d,O),document.addEventListener("keydown",this.onKeyDown)},
t.prototype._closeModal=function(){clearTimeout(this._autoFocusTimeoutID),document.removeEventListener("keydown",this.onKeyDown)},t.prototype._isBackdropTarget=function(e){var t=this._findEventTarget(e);if(t){var n=v.a.findDOMNode(this.refs.modal);return!n||!n.contains(t)}return!1},t.prototype._findEventTarget=function(e){var t=e.changedTouches;if(!t)return e.target;if(1===t.length){var n=t[0];return document.elementFromPoint(n.clientX,n.clientY)}},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.backdropClassName,i=e.children,r=e.size,o=e.isOpen;return a()(g.a,{isOpen:o,closeTimeout:O},void 0,a()(m.a,{className:P.a.modalContainer,transitionName:T,transitionAppearTimeout:O,transitionEnterTimeout:O,transitionLeaveTimeout:O},void 0,o&&a()("div",{className:n,onMouseDown:this.onBackdropBeginPress,onMouseUp:this.onBackdropEndPress,onTouchStart:this.onBackdropBeginPress,onTouchEnd:this.onBackdropEndPress,onTouchMove:this.onTouchMove,
onTouchCancel:this.onTouchCancel},void 0,h.a.createElement("div",{className:t||P.a[r],ref:"modal"},i))))},t}(p.Component);E.defaultProps={backdropClassName:P.a.modalBackdrop,size:I.MEDIUM,preventCloseOnBackdropPress:!1},t.a=E},function(e,t){e.exports={modalContainer:"Modal-modalContainer-tNumM",modalBackdrop:"Modal-modalBackdrop-3-L45",modal:"Modal-modal-3Z1JS",small:"Modal-small-37D0M Modal-modal-3Z1JS",medium:"Modal-medium-1UIAd Modal-modal-3Z1JS",large:"Modal-large-1fVmO Modal-modal-3Z1JS",
enter:"Modal-enter-2jg6A",enterActive:"Modal-enterActive-2u3GY",leave:"Modal-leave-2eoNB",leaveActive:"Modal-leaveActive-3p317"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.iconComponent,a=e.onModalClose,o=c()(e,["className","children","iconComponent","onModalClose"]);return p.a.createElement("div",r()({className:t},o),s()(h.a,{className:v.a.closeButton,onPress:a},void 0,s()(i,{name:"plex-icon-remove-560"})),n)}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(2835),v=n.n(f);i.defaultProps={className:v.a.modalContent},t.a=i},function(e,t){e.exports={modalContent:"ModalContent-modalContent-UQlV4",closeButton:"ModalContent-closeButton-3NY5u Link-link-2n0yJ"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CALENDAR",function(){return i}),n.d(t,"AGENDA",function(){return a}),n.d(t,"all",function(){return r})
;var i="calendar",a="agenda",r=[i,a]},function(e,t){e.exports={modalHeader:"NowPlayingErrorModal-modalHeader-2_4v8 ModalHeader-modalHeader-1Kf9R"}},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(u.a,c.a,l.a,Object(d.a)(),function(e,t,n,i){var a=n[i.metadataItem];return r()({},i,{metadataItem:a,server:e[a.serverEntityID],provider:t[a.providerEntityID]})})}var a=n(6),r=n.n(a),o=n(11),s=n(4),l=(n.n(s),n(108)),c=n(136),u=n(173),d=n(1384),p=n(2840)
;t.a=Object(o.connect)(i)(p.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.sessions});t.a=r},function(e,t,n){"use strict";function i(e,t,n){var i=n.key,a=n.parentKey,r=n.grandparentKey,o=n.type,s=n.skipDetails,l=n.skipParent,c=n.isLibraryItem,u=n.isExtra;if(c&&!u&&!s&&o!==j.g){var d=i;return o===j.l&&(d=l?r:a),Object(L.a)(e,t||{isLibraryProvider:!0},d)}}function a(e){
return e.type===j.g?e.thumb:e.grandparentThumb||e.parentThumb||e.thumb}function r(e){var t=e.Media,n=e.type,i=e.grandparentTitle,a=e.parentTitle,r=e.title;return"livetv"===(t.find(function(e){return e.selected})||t[0]).origin?Object(C.default)("Live TV"):n===j.l||n===j.g?r:i||a||r}function o(e){var t=e.type,n=e.index,i=e.parentIndex,a=e.originallyAvailableAt,r=e.grandparentTitle,o=e.parentTitle,s=e.title,l=e.recommender,c=e.year;if(t===j.m)return l?Object(C.default)("from {1}",l):null
;if(t===j.l||t===j.g)return o;var u=o||r?s:c;return t===j.e?Object(M.a)({seasonIndex:i,episodeIndex:n,date:a,noLeadingZero:!0,separator:" \xb7 "})+" "+u:u}function s(e){var t=e.type,n=e.grandparentTitle,i=e.parentTitle,a=e.year,r=e.duration;return t===j.f||t===j.e?Object(b.a)(r):t===j.a||t===j.l?n||i:t===j.g?a:void 0}var l=n(2),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=(n.n(m),
n(20)),b=n(308),I=n(528),S=n(1223),M=n(360),D=n(309),C=n(3),j=n(27),P=n(26),O=n(185),T=n(33),E=n(1228),w=n(919),A=n(384),x=n(236),N=n(130),L=n(137),k=n(2846),R=n(2853),z=n(2861),U=n.n(z),B=1e3,F=function(e){function t(n,i){d()(this,t);var a=h()(this,e.call(this,n,i));a.startUpdateViewOffset=function(){a.stopUpdateViewOffset(),a.props.Player&&a.props.Player.state===D.a.states.PLAYING&&(a._updateViewPointIntervalID=setInterval(a.updateViewOffset,B))},a.stopUpdateViewOffset=function(){
clearInterval(a._updateViewPointIntervalID)},a.updateViewOffset=function(){a.setState({count:a.state.count+1})},a.onMouseEnter=function(){a.setState({isHovered:!0})},a.onMouseLeave=function(){a.setState({isHovered:!1})},a.onStopPress=function(e){e.preventDefault(),e.stopPropagation(),a.setState({isStopSessionModalOpen:!0})},a.onModalClose=function(e){a.setState({isStopSessionModalOpen:!1})};var r=n.metadataItem;return a.state={count:0,viewOffsetFromProps:r.viewOffset,isHovered:!1,
isStopSessionModalOpen:!1},a}return v()(t,e),t.getDerivedStateFromProps=function(e,t){return t.viewOffsetFromProps!==e.metadataItem.viewOffset?{count:0,viewOffsetFromProps:e.metadataItem.viewOffset||0}:null},t.prototype.componentDidMount=function(){this.startUpdateViewOffset()},t.prototype.componentDidUpdate=function(e){var t=e.viewOffsetFromProps!==this.props.metadataItem.viewOffset,n=e.Player.state!==this.props.Player.state;(t||n)&&this.startUpdateViewOffset()},
t.prototype.componentWillUnmount=function(){this.stopUpdateViewOffset()},t.prototype.render=function(){
var e=this.props,t=e.sessionEntityID,n=e.User,l=e.Session,u=e.TranscodeSession,d=e.Player,p=e.server,h=e.provider,f=e.metadataItem,v=e.showDetails,g=e.canStopSessions,m=this.state,b=m.count,M=m.viewOffsetFromProps,D=m.isHovered,L=m.isStopSessionModalOpen,z=f.Media,F=f.type,_=f.subtype,V=f.duration,H=f.attribution,Q=f.isLibraryItem,Y=M+b*B,G=Q&&F!==j.g,W=u&&!!u.progress,K=z?Object(S.a)(z[0],Y,"hd"):null,Z=D&&K,q=i(p,h,f),J=q?y.a:"div",X=!(!g||!l||Object(E.a)(d)),$=r(f),ee=o(f),te=s(f),ne=a(f),ie=G?100:104,ae=Object(N.e)(ie,F,_,T.e),re=p.entityID
;return c()("div",{className:U.a.listItem,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},void 0,c()(J,{className:(U.a.mediaInformationContainer||"")+" "+((q?U.a.link:void 0)||""),to:q},void 0,c()("div",{className:U.a.posterContainer,style:{width:ae}},void 0,c()(x.a,{serverEntityID:re,type:F,subtype:_,url:ne,width:ae,height:ie}),H?c()(w.a,{className:U.a.attribution,attribution:H}):null),c()("div",{className:(U.a.infoContainer||"")+" "+((G?U.a.visibleProgressBar:void 0)||"")
},void 0,Z?c()("div",{className:U.a.previewThumbnailContainer},void 0,c()(O.a,{serverEntityID:re,background:!0,url:K,width:214,height:ie,transition:!0})):c()("div",{className:U.a.metadataText},void 0,c()("div",{className:U.a.title,title:$},void 0,$),c()("div",{className:U.a.subtitle,title:ee},void 0,ee),c()("div",{className:U.a.subtitle,title:te},void 0,te))),G?c()("div",{className:U.a.progressTrack},void 0,c()("div",{className:U.a.playProgressPercent,style:{width:Object(I.a)(Y,V)+"%"}
}),W?c()("div",{className:U.a.transcodeProgressPercent,style:{width:u.progress+"%"}}):null):null),c()(k.a,{className:(U.a.detailsContainer||"")+" "+((v?U.a.detailsContainerExpanded:void 0)||""),serverEntityID:re,Player:d,TranscodeSession:u,metadataItem:f,viewOffset:Y}),c()("div",{className:U.a.userContainer},void 0,c()(A.a,{className:U.a.avatarImg,serverEntityID:re,url:n.thumb,width:40,height:40}),c()("div",{className:U.a.username},void 0,n.title),X?c()(y.a,{className:U.a.stopControls,
onPress:this.onStopPress},void 0,c()(P.a,{name:"plex-icon-dashboard-stop-560",className:U.a.stopIcon,"aria-label":Object(C.default)("Stop playback")}),Object(C.default)("Stop playback")):null),c()(R.a,{sessionEntityID:t,serverEntityID:re,metadataItem:f,isOpen:L,onModalClose:this.onModalClose}))},t}(m.Component);t.a=F},function(e,t){e.exports={attribution:"AttributionBadge-attribution-1XPCz",tidal:"AttributionBadge-tidal-2hHYz"}},function(e,t){e.exports={avatar:"AvatarImg-avatar-3Op56"}
},function(e,t){e.exports={imageContainer:"PosterCardImg-imageContainer-1Ar4M"}},function(e,t,n){"use strict";function i(e){switch(e){case c.c:return"plex-icon-radio-560";case c.b:return"plex-icon-folder-560"}}function a(e){var t=e.className,n=e.type,a=e.width,r=e.height,s=e.icon,l=i(s)||u.a[n];if(!l)return null;var c={fontSize:Math.max(14,Math.min(Math.round(a/4),42)),lineHeight:r+"px"};return o()(d.a,{name:l,className:t,style:c})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),
n(921)),u=n(550),d=n(26);t.a=a},function(e,t){e.exports={placeholderIcon:"MetadataPosterCardIcon-placeholderIcon-2P76z"}},function(e,t,n){"use strict";function i(e,t){return s()(I.a,{serverEntityID:e,type:"video",mediaItem:t})}function a(e,t,n){var i="audio"===t?Object(h.a)(n):Object(f.a)(n);return s()(I.a,{serverEntityID:e,type:t,stream:i})}function r(e){
var t=e.className,n=e.serverEntityID,r=e.Player,o=e.TranscodeSession,l=e.metadataItem,h=e.viewOffset,I=l.Media,S=l.duration,T=I.find(function(e){return e.selected})||I[0],E=Object(f.a)(T),w=!!T.videoCodec,A=!!T.audioCodec,x=!!E;return s()("div",{className:t},void 0,s()("div",{className:M.a.playerContainer},void 0,s()(d.a,{className:M.a.productLogo,src:Object(b.a)(r.product,r.platform),width:40,height:40}),s()("div",{className:M.a.playerInformation},void 0,s()("div",{className:M.a.title,
title:r.product+" "+u.a+" "+r.title},void 0,r.product," ",C," ",r.title),s()("div",{className:M.a.subtitle},void 0,Object(g.a)(r.state),S?s()(c.Fragment,{},void 0,j,Object(p.a)(h)+" / "+Object(p.a)(S)):null))),w?s()("div",{className:M.a.videoStreamInformation},void 0,s()("div",{className:M.a.streamType},void 0,Object(y.default)("Video")),s()("div",{className:M.a.streams},void 0,s()("div",{className:M.a.title},void 0,i(n,T),o&&o.transcodeHwDecoding?" (hw)":null),s()("div",{className:M.a.title
},void 0,o&&null!=o.videoDecision?null:s()(D,{},void 0,Object(y.default)("Direct Play")),o&&"copy"===o.videoDecision?s()(D,{},void 0,Object(y.default)("Direct Stream")):null,o&&"transcode"===o.videoDecision?s()(D,{},void 0,(Object(v.default)(T.videoResolution,o.scanType)||Object(y.default)("Unknown"))+" ","(",Object(m.a)(o.videoCodec),")",P,Object(y.default)("Transcode"),o.transcodeHwEncoding?" (hw)":null):null))):null,A?s()("div",{className:M.a.audioStreamInformation},void 0,s()("div",{
className:M.a.streamType},void 0,Object(y.default)("Audio")),s()("div",{className:M.a.streams},void 0,s()("div",{className:M.a.title},void 0,a(n,"audio",T)),s()("div",{className:M.a.title},void 0,o&&null!=o.audioDecision?null:s()(D,{},void 0,Object(y.default)("Direct Play")),o&&"copy"===o.audioDecision?s()(D,{},void 0,Object(y.default)("Direct Stream")):null,o&&"transcode"===o.audioDecision?s()(D,{},void 0,Object(m.a)(o.audioCodec),O,Object(y.default)("Transcode")):null))):null,x?s()("div",{
className:M.a.subtitlesStreamInformation},void 0,s()("div",{className:M.a.streamType},void 0,Object(y.default)("Subtitles")),s()("div",{className:M.a.title},void 0,a(n,"subtitles",T))):null)}var o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(73)),d=n(184),p=n(310),h=n(676),f=n(922),v=n(366),g=n(1227),m=n(625),y=n(3),b=n(841),I=n(551),S=n(2852),M=n.n(S),D=function(e){var t=e.children;return s()("span",{className:M.a.rightArrow},void 0,t)
},C=s()(u.b,{}),j=s()(u.b,{}),P=s()(u.b,{}),O=s()(u.b,{});t.a=r},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{serverShortVersion:e.shortVersion}})}var a=n(11),r=n(4),o=(n.n(r),n(35)),s=n(2848);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.stream,i=e.mediaItem,a=e.serverShortVersion,o=c()(e,["type","stream","mediaItem","serverShortVersion"])
;if(!n&&!i)return s()("span",{},void 0,Object(g.default)("None"));if(a&&Object(f.a)(a,h.a.streamDisplayTitles)){var l=void 0;if("video"===t){var u=Object(v.a)(i);l=u?u.displayTitle:Object(g.default)("None")}else l=n.displayTitle||n.language;return s()("span",{"aria-label":l,"data-qa-id":t+"Stream"},void 0,l)}var d=I[t];return p.a.createElement(d,r()({},o,{stream:n,mediaItem:i}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),
n(0)),p=n.n(d),h=n(160),f=n(271),v=n(357),g=n(3),m=n(2849),y=n(2850),b=n(2851),I={audio:m.a,subtitles:y.a,video:b.a};t.a=i},function(e,t,n){"use strict";function i(e){var t=e.stream,n=e.separatorComponent,i=[];t.codec&&i.push(Object(c.a)(t.codec)),t.channels&&i.push(Object(l.a)(t.channels));var a=t.language||Object(u.default)("Unknown"),o=i&&i.length>0?i.join(" "):null,s=o?Object(u.default)("{label}, {details}",{label:a,details:o}):a;return r()("span",{"aria-label":s,"data-qa-id":"audioStream"
},void 0,a,o&&r()(n,{}),o)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1387)),c=n(1388),u=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.stream,n=e.separatorComponent,i=[];t.codec&&i.push(t.codec.toUpperCase()),t.key&&i.push(Object(l.default)("External")),t.forced&&i.push(Object(l.default)("Forced"));var a=t.language||Object(l.default)("Unknown"),o=i&&i.length>0?i.join(" "):null,s=o?Object(l.default)("{label}, {details}",{label:a,details:o}):a;return r()("span",{
"aria-label":s,"data-qa-id":"subtitlesStream"},void 0,a,o&&r()(n,{}),o)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.mediaItem,n=e.separatorComponent,i=void 0;t.videoCodec&&(i=[t.videoCodec.toUpperCase()]);var a=Object(l.a)(t),o=a&&a.scanType,s=Object(c.default)(t.videoResolution,o)||Object(u.default)("Unknown"),d=i&&i.length>0?i.join(" "):null,p=d?Object(u.default)("{label}, {details}",{label:s,details:d}):s
;return r()("span",{"aria-label":p,"data-qa-id":"videoStream"},void 0,s,d&&r()(n,{}),d)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(357)),c=n(366),u=n(3);t.a=i},function(e,t){e.exports={playerContainer:"SessionTileDetails-playerContainer-2SkQo",productLogo:"SessionTileDetails-productLogo-29pwk",playerInformation:"SessionTileDetails-playerInformation-1InxI",title:"SessionTileDetails-title-3qQk5",subtitle:"SessionTileDetails-subtitle-INedq",
streamInformation:"SessionTileDetails-streamInformation-agaLF",videoStreamInformation:"SessionTileDetails-videoStreamInformation-2nF7R SessionTileDetails-streamInformation-agaLF",audioStreamInformation:"SessionTileDetails-audioStreamInformation-228K0 SessionTileDetails-streamInformation-agaLF",subtitlesStreamInformation:"SessionTileDetails-subtitlesStreamInformation-37imW SessionTileDetails-streamInformation-agaLF",streamType:"SessionTileDetails-streamType-2ZBaS",
streams:"SessionTileDetails-streams-3WW-I",rightArrow:"SessionTileDetails-rightArrow-226XP"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.metadataItem},Object(s.a)(),function(e,t){return{username:t.User.title,thumb:t.User.thumb,type:e.type,grandparentTitle:e.grandparentTitle,parentTitle:e.parentTitle,title:e.title,parentIndex:e.parentIndex,index:e.index,originallyAvailableAt:e.originallyAvailableAt}})}var a=n(11),r=n(4),o=(n.n(r),
n(274)),s=n(1384),l=n(2854),c={onStopServerSession:o.j};t.a=Object(a.connect)(i,c)(l.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(73)),f=n(42),v=n(186),g=n(149),m=n(2857),y=n(61),b=n(88),I=n(115),S=n(84),M=n(51),D=n(30),C=n(360),j=n(3),P=n(27),O=n(384),T=n(114),E=n(98),w=n(24),A=n(2860),x=n.n(A),N=a()(h.b,{}),L=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.stopSession=function(){var e=a.props,t=e.sessionEntityID,n=e.onStopServerSession,i=e.onModalClose;n({message:a.state.message,sessionEntityID:t}),i()},a.onMessageChange=function(e){a.setState({message:e})},a.onFormSubmit=function(e){e.preventDefault(),e.stopPropagation(),a.stopSession()},a.onStopPress=function(){a.stopSession()},a.state={message:null},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.isOpen,i=e.username,r=e.thumb,o=e.type,s=e.grandparentTitle,l=e.parentTitle,c=e.title,u=e.parentIndex,d=e.index,h=e.originallyAvailableAt,A=e.onModalClose,L=o===P.e?Object(C.a)({seasonIndex:u,episodeIndex:d,date:h,noLeadingZero:!0,separator:" \xb7 "}):null;return a()(T.a,{isOpen:n,size:w.e.SMALL,metricsPage:D._5,onModalClose:A},void 0,a()(E.a,{onModalClose:A},void 0,a()(S.a,{},void 0,Object(j.default)("Stop {title}",{title:s||l||c
}),L?a()(p.Fragment,{},void 0,N,L):null),a()(y.a,{className:x.a.modalBody},void 0,a()("div",{className:x.a.topContainer},void 0,a()(O.a,{className:x.a.avatarImg,serverEntityID:t,url:r,width:76,height:76}),a()("div",{className:x.a.description},void 0,a()("p",{},void 0,Object(j.default)("Do you wish to stop this item's playback?")),a()("p",{},void 0,Object(j.default)("You may supply a message that will be displayed to {username}.",{username:i}))))),a()(b.a,{className:x.a.modalFooter
},void 0,a()(g.a,{className:x.a.formLabel,name:"message"},void 0,Object(j.default)("Message")),a()(v.b,{className:x.a.form,onSubmit:this.onFormSubmit},void 0,a()(m.a,{className:x.a.textArea,"data-autofocus":!0,name:"message",rows:4,onChange:this.onMessageChange})),a()(I.a,{className:x.a.buttonBar},void 0,a()(f.a,{onPress:A},void 0,Object(j.default)("Cancel")),a()(f.a,{kind:M.PRIMARY,onPress:this.onStopPress},void 0,Object(j.default)("Stop"))))))},t}(p.Component);t.a=L},function(e,t){e.exports={
button:"Button-button-2kT68 Link-link-2n0yJ",default:"Button-default--yDCH",primary:"Button-primary-3fwLz",success:"Button-success-lQICH",danger:"Button-danger-2T8IU",dark:"Button-dark-y17Cm",small:"Button-small-PnnoG",medium:"Button-medium-3g45_",large:"Button-large-3S9Ud"}},function(e,t){e.exports={label:"FormLabel-label-2aLJ9",hasError:"FormLabel-hasError-3DBzX"}},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(52),m=n(2858),y=n.n(m),b=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onChange=function(e){i.props.onChange(e.target.value)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=(e.initialValue,e.isDisabled),s=e.size,l=e.name,c=e.hasError,u=o()(e,["className","errorClassName","disabledClassName","initialValue","isDisabled","size","name","hasError"]);return v.a.createElement("textarea",a()({},u,{id:l,name:l,disabled:r,className:(t||"")+" "+(y.a[s]||"")+" "+(r&&i||"")+" "+(c&&n||""||""),onChange:this.onChange}))},t}(f.Component);b.defaultProps={className:y.a.textArea,errorClassName:y.a.hasError,
disabledClassName:y.a.isDisabled,isDisabled:!1,size:g.LARGE,hasError:!1,rows:2},t.a=b},function(e,t){e.exports={textArea:"TextArea-textArea-2jx-X input-input-1P2Vi",small:"TextArea-small-1qB4k",large:"TextArea-large-3b8XT",isDisabled:"TextArea-isDisabled-33gHr input-isDisabled-2FiSY",hasError:"TextArea-hasError-2KSz1 input-hasError-1to6Q"}},function(e,t){e.exports={buttonBar:"ModalFooterButtonBar-buttonBar-3X6qj"}},function(e,t){e.exports={
modalBody:"StopServerSessionModal-modalBody-3WYgC ModalBody-modalBody--5uHS",topContainer:"StopServerSessionModal-topContainer-n4yyA",avatarImg:"StopServerSessionModal-avatarImg-3X8xu AvatarImg-avatar-3Op56",description:"StopServerSessionModal-description-3djDx",modalFooter:"StopServerSessionModal-modalFooter-1mOhE ModalFooter-modalFooter-30WIB",formLabel:"StopServerSessionModal-formLabel-syEM- FormLabel-label-2aLJ9",form:"StopServerSessionModal-form-3U6xS",
textArea:"StopServerSessionModal-textArea-2mu_A TextArea-textArea-2jx-X input-input-1P2Vi",buttonBar:"StopServerSessionModal-buttonBar-XYwtJ ModalFooterButtonBar-buttonBar-3X6qj"}},function(e,t){e.exports={listItem:"SessionTile-listItem-2Scy7",mediaInformationContainer:"SessionTile-mediaInformationContainer-1-9kZ",link:"SessionTile-link-1Z-Tt",posterContainer:"SessionTile-posterContainer-2EzQN",attribution:"SessionTile-attribution-UkRVr",infoContainer:"SessionTile-infoContainer-3RYIu",
previewThumbnailContainer:"SessionTile-previewThumbnailContainer-1D1PJ",metadataText:"SessionTile-metadataText-oU8hQ",visibleProgressBar:"SessionTile-visibleProgressBar-3wK0u",title:"SessionTile-title-9ZXpl",subtitle:"SessionTile-subtitle-NnxzE",progressTrack:"SessionTile-progressTrack-3GcVn",progressPercent:"SessionTile-progressPercent-3U0xH",playProgressPercent:"SessionTile-playProgressPercent-3kuKU SessionTile-progressPercent-3U0xH",
transcodeProgressPercent:"SessionTile-transcodeProgressPercent-12EHX SessionTile-progressPercent-3U0xH",detailsContainer:"SessionTile-detailsContainer-3eQM1",detailsContainerExpanded:"SessionTile-detailsContainerExpanded-1aEz4",userContainer:"SessionTile-userContainer-1y1kB",stopControls:"SessionTile-stopControls-1n6mt",stopIcon:"SessionTile-stopIcon-2hSq2",avatarImg:"SessionTile-avatarImg-37yBF AvatarImg-avatar-3Op56",username:"SessionTile-username-2nfvc"}},function(e,t){e.exports={
toggle:"NowPlaying-toggle-f6BvW",tilesContainer:"NowPlaying-tilesContainer-CVYAj",nowPlayingList:"NowPlaying-nowPlayingList-2-BKC",column:"NowPlaying-column-2Tn18",emptyMessage:"NowPlaying-emptyMessage-30c8I ServerDashboardPageMessage-container-1Gpee"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.serverDashboardPage},function(e){var t=e.playHistory,n=void 0===t?{}:t,i=e.isPlayHistoryPending,a=e.isPlayHistoryPopulated,r=e.playHistoryError
;return{users:n.users||[],statistics:n.statistics,showSpinner:i,showGraph:a,errorMessage:r}})}var a=n(11),r=n(4),o=(n.n(r),n(274)),s=n(2864),l={onFetchPlayHistory:o.d};t.a=Object(a.connect)(i,l)(s.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3)),f=n(637),v=n(534),g=n(1389),m=n(677),y=n(440),b=n(2866),I=n(2868),S=n.n(I),M=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onMetadataTypeSelect=function(e){a.setState({selectedMetadataType:m.g(e)})},a.onUserSelect=function(e){var t=a.props.users.find(function(t){return t.id===e});a.setState({selectedUser:t})},a.onTimePeriodTypeSelect=function(e){var t=y.i(e),n=a.state.selectedTimePeriodType.key!==e;a.setState({selectedTimePeriodType:t},function(){n&&a.fetchPlayHistory()})},a.onGraphMetadataTypeSelect=function(e){var t=a.state.selectedMetadataType,n=e===t.key?m.a:e;a.setState({selectedMetadataType:m.g(n)})
},a.state={selectedMetadataType:m.g(m.a),selectedUser:null,selectedTimePeriodType:y.i(y.c)},a._availableTimePeriodTypes=[y.g,y.c,y.d,y.h,y.a].map(y.i),a}return u()(t,e),t.prototype.componentDidMount=function(){this.fetchPlayHistory()},t.prototype.fetchPlayHistory=function(){var e=this.props,t=e.serverEntityID,n=e.onFetchPlayHistory,i=this.state.selectedTimePeriodType;n({serverEntityID:t,timespan:i.timespan,after:i.after()})},t.prototype.render=function(){
var e=this.props,t=e.users,n=e.statistics,i=e.showSpinner,r=e.showGraph,o=e.errorMessage,s=this.state,l=s.selectedMetadataType,c=s.selectedUser,u=s.selectedTimePeriodType;return a()("div",{className:S.a.container},void 0,a()(v.a,{title:Object(h.default)("Play History")},void 0,a()("div",{},void 0,a()(f.a,{items:m.f(),selectedItem:l,onSelect:this.onMetadataTypeSelect}),a()(g.a,{users:t,selectedUser:c,onSelect:this.onUserSelect}),a()(f.a,{items:this._availableTimePeriodTypes,selectedItem:u,
onSelect:this.onTimePeriodTypeSelect}))),a()(b.a,{statistics:n,mediaStatisticMetadataType:l,user:c,timePeriodType:u,showSpinner:i,showGraph:r,errorMessage:o,onGraphMetadataTypeSelect:this.onGraphMetadataTypeSelect}))},t}(p.Component);t.a=M},function(e,t){e.exports={menuButton:"ServerDashboardPageUserMenu-menuButton-3vYFC ServerDashboardPageMenuButton-menuButton-3c9Td DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ",
menuLabel:"ServerDashboardPageUserMenu-menuLabel-2e4r2 SelectedMenuItem-menuLabel-2fp2l"}},function(e,t,n){"use strict";function i(e){return Object(j.a)(e)||Object(I.a)(Object(S.a)(new Date))<=e}function a(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.timespan===w.j.DAY&&Object(j.a)(e)){var a=Object(P.default)("Today");return i?a.toUpperCase():a}return Object(y.a)(Object(b.a)(e),n)}function r(e){var t=e/60,n=t/60,i=n/24,a=i/365,r=void 0,o=void 0
;return t<1?(r=g()(e).toFixed(),o="s"):n<1?(r=g()(t).toFixed(),o="m"):i<1?(r=g()(n).toFixed(1),o="h"):a<1?(r=g()(i).toFixed(1),o="d"):(r=g()(a).toFixed(1),o="y"),""+r+o}function o(e,t,n,i){if(!e)return[];var a=t.key;return e.reduce(function(e,t){var i=t.accountID,r=t.at,o=t.metadataType,s=t.duration,l=E.g(o);if(!l)return e;var c=e.findIndex(function(e){return e.date===r}),u=-1!==c,d=void 0;if(d=u?e[c]:{date:r},n&&n.id!==i)return u||e.push(d),e;var p=l.key
;return a!==E.a&&a!==p||(d[p]=(d[p]||0)+s),u?e[c]=d:e.push(d),e},[])}var s=n(2),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1125),g=n.n(v),m=n(374),y=n(170),b=n(81),I=n(147),S=n(441),M=n(1),D=(n.n(M),n(0)),C=(n.n(D),n(52)),j=n(313),P=n(3),O=n(31),T=n(1257),E=n(677),w=n(440),A=n(2867),x=n.n(A),N=function(e){function t(n,o){u()(this,t);var s=p()(this,e.call(this,n,o));return s.tooltipLabelFormatter=function(e){var t=s.state.timePeriodType;if(t.timespan===w.j.WEEK){
var n=a(e,t,t.longDateFormat),r=Object(I.a)(Object(m.a)(Object(b.a)(e),1));if(Object(j.a)(e)&&i(r))return Object(P.default)("Today");return n+" - "+a(r,t,t.longDateFormat)}return a(e,t,t.longDateFormat)},s.tooltipValueFormatter=function(e){return r(e)},s.xAxisTickFormatter=function(e){var t=s.state.timePeriodType;if(t.key===w.c){var n=a(e,t,t.dateFormat),r=Object(I.a)(Object(m.a)(Object(b.a)(e),1));if(Object(j.a)(e)&&i(r))return Object(P.default)("Today").toUpperCase()
;return n+" - "+a(r,t,t.dateFormat)}return a(e,t,t.dateFormat,!0)},s.yAxisTickFormatter=function(e){return 0===e?"":r(e)},s.state={statistics:null,mediaStatisticMetadataType:null,user:null,timePeriodType:null,data:null},s}return f()(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.statistics,i=e.mediaStatisticMetadataType,a=e.user,r=e.timePeriodType;return t.statistics!==n||t.mediaStatisticMetadataType!==i||t.user!==a||t.timePeriodType!==r?{statistics:n,mediaStatisticMetadataType:i,user:a,
timePeriodType:r,data:o(n,i,a,r)}:null},t.prototype.render=function(){var e=this.props,t=e.showSpinner,n=e.showGraph,i=e.errorMessage,a=e.onGraphMetadataTypeSelect,r=this.state,o=r.mediaStatisticMetadataType,s=r.data,c=o.key,u=[{dataKey:E.b,title:E.g(E.b).title,visible:c===E.a||c===E.b,selected:c===E.b,color:"#9ad186"},{dataKey:E.e,title:E.g(E.e).title,visible:c===E.a||c===E.e,selected:c===E.e,color:"#f1335e"},{dataKey:E.c,title:E.g(E.c).title,visible:c===E.a||c===E.c,selected:c===E.c,
color:"#366dfc"},{dataKey:E.d,title:E.g(E.d).title,visible:c===E.a||c===E.d,selected:c===E.d,color:"#e69f23"}],d=n&&!i,p=i&&!t;return l()("div",{className:x.a.container},void 0,t?l()(O.a,{className:x.a.spinner,size:C.LARGE}):null,d?l()(T.a,{width:"98%",height:280,series:u,data:s,tooltipLabelFormatter:this.tooltipLabelFormatter,tooltipValueFormatter:this.tooltipValueFormatter,xAxisTickFormatter:this.xAxisTickFormatter,yAxisTickFormatter:this.yAxisTickFormatter,onLegendPress:a}):null,p?l()("div",{
className:x.a.message},void 0,i):null)},t}(D.Component);t.a=N},function(e,t){e.exports={container:"PlayHistoryGraph-container-3lRGw",spinner:"PlayHistoryGraph-spinner-391EF",message:"PlayHistoryGraph-message-lOat5"}},function(e,t){e.exports={container:"PlayHistory-container-26wSc"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.serverDashboardPage},u.a,l.a,c.a,Object(s.a)(),function(e,t,n,i,a){
var r=e.topPlayedMovies,s=void 0===r?[]:r,l=e.topPlayedTV,c=void 0===l?[]:l,u=e.topPlayedMusic,p=void 0===u?[]:u,h=e.isTopPlayedPending,f=e.isTopPlayedPopulated,v=e.topPlayedError,g=i.reduce(function(e,t){var i=n[t];return i.serverShares.find(function(e){return e.machineIdentifier===a.machineIdentifier})&&e.push(i),e},[]);return{machineIdentifier:a.machineIdentifier,ownerID:t.id,users:[t].concat(g),topPlayedMovies:s,topPlayedTV:c,topPlayedMusic:p,minServerVersion:o.a.dashboardTopPlayedChart,
canShowGraph:Object(d.a)(a.version,o.a.dashboardTopPlayedChart),showSpinner:h,showList:f,errorMessage:v}})}var a=n(11),r=n(4),o=(n.n(r),n(160)),s=n(35),l=n(1390),c=n(1391),u=n(162),d=n(271),p=n(274),h=n(2870),f={onFetchTopPlayed:p.f};t.a=Object(a.connect)(i,f)(h.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(3),v=n(637),g=n(534),m=n(535),y=n(1389),b=n(440),I=n(2871),S=n(2881),M=n.n(S),D=function(e){
function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onUserSelect=function(e){var t=a.props.users,n=a.state.selectedUser,i=t.find(function(t){return t.id===e}),r=!n&&i||n&&!i||n.id!==i.id;a.setState({selectedUser:i},function(){r&&a.fetchTopPlayed()})},a.onTimePeriodTypeSelect=function(e){var t=b.i(e),n=a.state.selectedTimePeriodType.key!==e;a.setState({selectedTimePeriodType:t},function(){n&&a.fetchTopPlayed()})},a.state={selectedUser:null,selectedTimePeriodType:b.i(b.c)},
a._availableTimePeriodTypes=[b.g,b.c,b.d,b.h,b.a].map(b.i),a}return u()(t,e),t.prototype.componentDidMount=function(){this.props.canShowGraph&&this.fetchTopPlayed()},t.prototype.fetchTopPlayed=function(){var e=this.props,t=e.serverEntityID,n=e.ownerID,i=e.onFetchTopPlayed,a=this.state,r=a.selectedUser,o=a.selectedTimePeriodType,s=void 0;r&&(s=r.id===n?1:r.id),i({serverEntityID:t,accountID:s,viewedAt:o.after(),limit:6})},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.machineIdentifier,i=e.users,r=e.topPlayedMovies,o=e.topPlayedTV,s=e.topPlayedMusic,l=e.minServerVersion,c=e.canShowGraph,u=e.showSpinner,d=e.showList,b=e.errorMessage,S=this.state,D=S.selectedUser,C=S.selectedTimePeriodType;return a()(p.Fragment,{},void 0,a()(g.a,{title:Object(f.default)("Top Played")},void 0,c?a()("div",{},void 0,a()(y.a,{users:i,selectedUser:D,onSelect:this.onUserSelect}),a()(v.a,{items:this._availableTimePeriodTypes,selectedItem:C,
onSelect:this.onTimePeriodTypeSelect})):null),c?a()(I.a,{serverEntityID:t,topPlayedMovies:r,topPlayedTV:o,topPlayedMusic:s,showSpinner:u,showList:d,errorMessage:b}):a()("div",{className:M.a.message},void 0,a()(m.a,{},void 0,a()(h.a,{to:"#!/settings/server/"+n+"/settings/general"},void 0,Object(f.default)("The Top Played chart requires Plex Media Server {version} or higher",{version:l})))))},t}(p.Component);t.a=D},function(e,t,n){"use strict";function i(e,t,n){return[{type:d.f,
title:Object(u.default)("Movies"),items:e},{type:d.k,title:Object(u.default)("TV"),items:t},{type:d.b,title:Object(u.default)("Artists"),items:n}]}function a(e){var t=e.serverEntityID,n=e.topPlayedMovies,a=e.topPlayedTV,r=e.topPlayedMusic,s=e.showSpinner,l=e.showList,u=e.errorMessage,d=l&&!u,v=u&&!s,m=i(n,a,r);return o()("div",{className:g.a.container},void 0,s?o()(p.a,{className:g.a.spinner,size:c.LARGE}):null,d?m.map(function(e){return o()(f.a,{className:g.a.column,serverEntityID:t,
type:e.type,title:e.title,items:e.items},e.type)}):null,v?o()(h.a,{className:g.a.errorMessage},void 0,u):null)}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(52)),u=n(3),d=n(27),p=n(31),h=n(535),f=n(2872),v=n(2880),g=n.n(v);t.a=a},function(e,t,n){"use strict";function i(e){switch(e){case u.f:return Object(c.default)("No Movies Played");case u.k:return Object(c.default)("No TV Played");case u.b:return Object(c.default)("No Artists Played")}}function a(e){
var t=e.className,n=e.serverEntityID,a=e.type,r=e.title,s=e.items,l=0===s.length;return o()("div",{className:t},void 0,o()(d.a,{className:l?f.a.header:f.a.tintedHeader,serverEntityID:n,metadataItemEntityID:s[0],isEmpty:l,title:r}),l?o()("div",{className:f.a.emptyItem},void 0,i(a)):s.map(function(e,t){return o()(p.a,{className:f.a.item,style:{backgroundColor:"rgba(0, 0, 0, "+v[t]+")"},serverEntityID:n,metadataItemEntityID:e},e)}))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),
n(3)),u=n(27),d=n(2873),p=n(2876),h=n(2879),f=n.n(h),v=[.5,.4,.3,.2,.1,.05];t.a=a},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.metadataItemEntityID},s.a,o.a,function(e,t,n){var i=t[e]||{};return{background:i.art||i.thumb}})}var a=n(11),r=n(4),o=(n.n(r),n(53)),s=n(1392),l=n(2874);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.isEmpty,a=e.title,o=e.background;return r()("div",{
className:t},void 0,i?null:r()(l.a,{serverEntityID:n,url:o,width:200,height:100,backgroundPosition:"center top"}),r()("div",{className:i?u.a.emptyTitleBackground:u.a.titleBackground},void 0,r()("div",{className:u.a.title},void 0,a)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(674)),c=n(2875),u=n.n(c);t.a=i},function(e,t){e.exports={titleBackground:"TopPlayedColumnHeader-titleBackground-VwA_D",
emptyTitleBackground:"TopPlayedColumnHeader-emptyTitleBackground-3zFBI TopPlayedColumnHeader-titleBackground-VwA_D",title:"TopPlayedColumnHeader-title-llQFn"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.metadataItemEntityID},s.a,o.a,function(e,t,n){var i=t[e];return{server:n,itemKey:i.key,type:i.type,title:i.title,thumb:i.thumb,globalViewCount:i.globalViewCount,userCount:i.userCount}})}var a=n(11),r=n(4),o=(n.n(r),n(53)),s=n(1392),l=n(2877)
;t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.style,i=e.server,a=e.itemKey,o=e.type,s=e.title,h=e.thumb,v=e.globalViewCount,g=e.userCount,m=o===u.b;return r()("div",{className:t,style:n},void 0,r()(l.a,{className:m?f.a.artistPoster:f.a.poster,to:Object(p.a)(i,{isLibraryProvider:!0},a)},void 0,r()(d.a,{serverEntityID:i.entityID,type:o,url:h,width:m?60:53,height:m?60:80})),r()("div",{className:f.a.summary},void 0,r()("div",{
className:f.a.itemTitle,title:s},void 0,s),r()("div",{},void 0,1===v?Object(c.default)("{count} play",{count:1}):Object(c.default)("{count} plays",{count:v})),r()("div",{},void 0,1===g?Object(c.default)("{count} user",{count:1}):Object(c.default)("{count} users",{count:g}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(3),u=n(27),d=n(236),p=n(137),h=n(2878),f=n.n(h);t.a=i},function(e,t){e.exports={poster:"TopPlayedColumnRow-poster-1mkhc",
artistPoster:"TopPlayedColumnRow-artistPoster-1zSrT",summary:"TopPlayedColumnRow-summary-2r-9f",itemTitle:"TopPlayedColumnRow-itemTitle-1arH4"}},function(e,t){e.exports={header:"TopPlayedColumn-header-3vguc",tintedHeader:"TopPlayedColumn-tintedHeader-3cEDw TopPlayedColumn-header-3vguc",title:"TopPlayedColumn-title-2_vTz",item:"TopPlayedColumn-item-2uq7d",emptyItem:"TopPlayedColumn-emptyItem-2b8e8 TopPlayedColumn-item-2uq7d"}},function(e,t){e.exports={container:"TopPlayedList-container-2qYfz",
spinner:"TopPlayedList-spinner-2UGFT",column:"TopPlayedList-column-3YN6l",errorMessage:"TopPlayedList-errorMessage-2HMHH ServerDashboardPageMessage-container-1Gpee"}},function(e,t){e.exports={message:"TopPlayed-message-1QRRE"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.serverDashboardPage},function(e){var t=e.topUsers,n=void 0===t?{}:t,i=e.isTopUsersPending,a=e.isTopUsersPopulated,r=e.topUsersError;return{users:n.users,
statistics:n.statistics,showSpinner:i,showList:a,errorMessage:r}})}var a=n(11),r=n(4),o=(n.n(r),n(274)),s=n(2883),l={onFetchTopUsers:o.g};t.a=Object(a.connect)(i,l)(s.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(553)),f=n(3),v=n(26),g=n(637),m=n(534),y=n(440),b=n(2885),I=n(2892),S=n.n(I),M=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTimePeriodTypeSelect=function(e){
e!==a.state.selectedTimePeriodType.key&&a.setState({selectedTimePeriodType:y.i(e),scrollIndex:0},a.fetchTopUsers)},a.onListUpdate=function(e){var t=e.visibleStartIndex,n=e.visibleEndIndex,i=e.renderEndIndex;a._visibleStartIndex=t,a._visibleEndIndex=n,a._pageSize=a._visibleEndIndex-a._visibleStartIndex;var r=t>0,o=i>n;a.setState({showActions:r||o,enablePrevious:r,enableNext:o})},a.onListScrollIndexChange=function(e){a.setScrollIndex(e)},a.onPreviousPress=function(){
a.setScrollIndex(a._visibleStartIndex-a._pageSize-1)},a.onNextPress=function(){a.setScrollIndex(a._visibleEndIndex+1)},a.state={selectedTimePeriodType:y.i(y.g),scrollIndex:0,showActions:!1,enablePrevious:!1,enableNext:!1},a._availableTimePeriodTypes=[y.b,y.g,y.c,y.d,y.h,y.a].map(y.i),a}return u()(t,e),t.prototype.componentDidMount=function(){this.fetchTopUsers()},t.prototype.fetchTopUsers=function(){var e=this.props.serverEntityID,t=this.state.selectedTimePeriodType;this.props.onFetchTopUsers({
serverEntityID:e,timespan:t.timespan,after:t.after()})},t.prototype.setScrollIndex=function(e){this.setState({scrollIndex:e})},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.users,i=e.statistics,r=e.showSpinner,o=e.showList,s=e.errorMessage,l=this.state,c=l.selectedTimePeriodType,u=l.scrollIndex,d=l.showActions,p=l.enablePrevious,y=l.enableNext;return a()("div",{className:S.a.container},void 0,a()(m.a,{title:Object(f.default)("Top Users")
},void 0,a()("div",{},void 0,a()(g.a,{items:this._availableTimePeriodTypes,selectedItem:c,onSelect:this.onTimePeriodTypeSelect}),d?a()("div",{className:S.a.listActions},void 0,a()(h.a,{className:S.a.listScrollButton,icon:"plex-icon-hub-prev-560",iconComponent:v.a,isDisabled:!p,title:Object(f.default)("Previous Page"),onPress:this.onPreviousPress}),a()(h.a,{className:S.a.listScrollButton,icon:"plex-icon-hub-next-560",iconComponent:v.a,isDisabled:!y,title:Object(f.default)("Next Page"),
onPress:this.onNextPress})):null)),a()(b.a,{serverEntityID:t,users:n,statistics:i,showSpinner:r,showList:o,errorMessage:s,scrollIndex:u,onListUpdate:this.onListUpdate,onListScrollIndexChange:this.onListScrollIndexChange}))},t}(p.Component);t.a=M},function(e,t){e.exports={button:"IconButton-button-9An-7",isDisabled:"IconButton-isDisabled-2Wi5U",isActive:"IconButton-isActive-1_AJJ",label:"IconButton-label-1cUJa"}},function(e,t,n){"use strict";function i(e){return function(t){
return m.a.createElement(P.a,f()({},e,t))}}function a(e,t){return t?t.reduce(function(t,n){var i=n.accountID,a=n.metadataType,r=n.count,o=n.duration,s=j.g(a);if(!s||-1===i)return t;var l=t.findIndex(function(e){return e.accountID===i}),c=-1!==l,u=void 0;if(c)u=t[l];else{var d,p=e.find(function(e){return e.id===i});u={accountID:i,username:p.name,thumb:p.thumb,playCount:0,totalDuration:0,durations:(d={},d[j.b]=0,d[j.e]=0,d[j.c]=0,d[j.d]=0,d)}}var h=s.key;return u.playCount=u.playCount+r,
u.totalDuration=u.totalDuration+o,u.durations[h]=u.durations[h]+o,c?t[l]=u:t.push(u),t},[]).sort(function(e,t){return e.totalDuration>t.totalDuration?-1:e.totalDuration<t.totalDuration?1:0}):[]}var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(216),b=n(456),I=n(57),S=n(52),M=n(3),D=n(31),C=n(535),j=n(677),P=n(2889),O=n(2891),T=n.n(O),E=Object(b.c)({direction:b.a,rows:1,innerHorizontalPadding:40,getCellWidth:function(){
return 200},getCellHeight:function(){return 290}}),w=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.state={users:null,statistics:null,items:null},a}return p()(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.users,i=e.statistics;return t.users!==n||t.statistics!==i?{users:n,statistics:i,items:a(n,i)}:null},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.showSpinner,a=e.showList,r=e.errorMessage,s=e.scrollIndex,l=e.onListUpdate,c=e.onListScrollIndexChange,u=this.state.items,d=a&&0===u.length?Object(M.default)("No data"):null,p=r||d,h=a&&!p,f=p&&!n;return o()("div",{className:T.a.container},void 0,n?o()(D.a,{size:S.LARGE}):null,h?o()("div",{className:T.a.listContainer},void 0,o()(y.a,{keyPropName:"accountID",items:u,scrollDirection:I.HORIZONTAL,scrollIndex:s,size:u.length,layout:E,cellRenderer:i({
serverEntityID:t}),onListUpdate:l,onListScrollIndexChange:c})):null,f?o()(C.a,{},void 0,p):null)},t}(g.Component);t.a=w},function(e,t,n){"use strict";function i(){function e(){var e=void 0;return i.length?e=i.shift():(e=n+s,s++),e}function t(e){delete a[e]}var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=[],a={},o={},s=0;return{getKeys:function(n,s,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments[4];r.a.each(a,function(e,t){var a=e.item
;if(null===a)i.push(t);else{var d=r.a.isString(a)?a:a[u],p=l.indexOf(a)+c;(p<n||p>s)&&(i.push(t),delete o[d])}});for(var d=n;d<=s;d++){var p=l[d-c]||null,h=p&&(r.a.isString(p)?p:p[u]),f=p&&o[h];f||(f=e(),p&&(o[h]=f)),a[f]={index:d,item:p}}return i.forEach(t),i.length=0,r.a.extend({},a)}}}t.a=i;var a=n(10),r=n.n(a)},function(e,t){e.exports={scroller:"VirtualListScroller-scroller-3aWqh"}},function(e,t,n){"use strict";function i(e,t){return Math.max(Math.min(e,t-1),0)}t.a=i},function(e,t,n){
"use strict";function i(e){return Object(p.a)(1e3*e)||Object(h.default)("{1} min",0)}function a(e){var t=e.cellX,n=e.cellY,a=e.cellWidth,r=e.cellHeight,s=e.serverEntityID,c=e.username,u=e.thumb,p=e.playCount,g=e.totalDuration,m=e.durations,y=l()(m).sort(function(e,t){return m[e]>m[t]?-1:m[e]<m[t]?1:0});return o()(d.a,{cellX:t,cellY:n,cellWidth:a,cellHeight:r},void 0,o()("div",{className:b.a.summaryContainer},void 0,o()(f.a,{className:b.a.avatar,serverEntityID:s,url:u,width:50,height:50
}),o()("div",{className:b.a.summary},void 0,o()("div",{},void 0,1===p?Object(h.default)("{playCount} play",{playCount:p}):Object(h.default)("{playCount} plays",{playCount:p})),o()("div",{},void 0,i(g)))),o()("div",{className:b.a.username,title:c},void 0,c),y.map(function(e,t){var n=v.g(e);return o()("div",{className:b.a.metadataRow,style:{backgroundColor:I[t]}},e,o()("div",{className:b.a.metadataTitle},void 0,n.title),o()("div",{className:b.a.duration},void 0,i(m[e])))}))}
var r=n(2),o=n.n(r),s=n(59),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=(n.n(u),n(91)),p=n(308),h=n(3),f=n(384),v=n(677),g=n(926),m=n.n(g),y=n(2890),b=n.n(y),I=[m.a.serverDashboardTileRowBackgroundPrimaryColor,m.a.serverDashboardTileRowBackgroundSecondaryColor,m.a.serverDashboardTileRowBackgroundTertiaryColor,m.a.serverDashboardTileRowBackgroundQuaternaryColor];t.a=a},function(e,t){e.exports={summaryContainer:"TopUsersCell-summaryContainer-1yfwz",avatar:"TopUsersCell-avatar-32G-s AvatarImg-avatar-3Op56",
summary:"TopUsersCell-summary-2kJUg",row:"TopUsersCell-row-3J07t",username:"TopUsersCell-username-2id3J TopUsersCell-row-3J07t",metadataRow:"TopUsersCell-metadataRow-18eeu TopUsersCell-row-3J07t",metadataTitle:"TopUsersCell-metadataTitle-3elrC",duration:"TopUsersCell-duration-aWMKX"}},function(e,t){e.exports={container:"TopUsersList-container-5y91e",listContainer:"TopUsersList-listContainer-2-82G"}},function(e,t){e.exports={container:"TopUsers-container-9Qzi_",
listActions:"TopUsers-listActions-1yrx3",listScrollButton:"TopUsers-listScrollButton-3a0n1"}},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(101),c=n(16),u=n(43),d=n(122),p=n(3),h=n(182),f=n(2894),v=n(197),g=n(2907),m=n.n(g),y=r.a.Layout.extend({className:"sync-container",template:m.a,transcodeJobDelay:2e3,ui:{devices:".nav a"},regions:{filterBar:".filter-bar",container:".sync-device-container"},modelEvents:{"change:shared":"onSharedChange"},events:{
"click .dropdown-menu a":"onDeviceDropdownClick","click .nav a":"onDeviceClick","click .edit-btn":"onEditClick","click .refresh-btn":"onRefreshClick","click .cloud-sync-settings-btn":"onCloudSyncSettingsClick"},initialize:function(e){var t=c.c("appModel");this.routeOrigin=e.routeOrigin,this.selectedDevice=e.selectedDevice,this.user=t.get("user"),this.shared=this.model.get("shared"),this.transcodeJobs=this.model.get("pmp").get("transcodeJobs"),this.allowSync=this.model.get("allowSync"),
this.signedIn=this.model.get("myPlexSigninState")===d.b,this.collection.length&&(this.selectedDevice||(this.selectedDevice=this.collection.first()),this.fetchTranscodeJobs())},serializeData:function(){return{showDeviceDropdown:this.collection.length>0,showCloudSyncFilterBarButton:this.selectedDevice&&this.selectedDevice.get("isCloudSync"),shared:this.shared,hasTouchScreen:l.a.hasTouchScreen,signedIn:this.signedIn,allowSync:this.allowSync,sync:this.model.get("sync"),
selectedDevice:this.selectedDevice?this.selectedDevice.toJSON():null,devices:this.collection.toJSON(),plexPassInfo:this.getPlexPassInfo()}},fetchTranscodeJobs:function(){this.transcodeJobs.fetch({reset:!0,scope:"page"}),this.transcodeJobTimeout=setTimeout(s.a.bind(this.fetchTranscodeJobs,this),this.transcodeJobDelay)},showList:function(){this.selectedDevice?this.container.show(new f.a({model:this.selectedDevice,server:this.model})):this.container.close()},getPlexPassInfo:function(){
return this.signedIn||this.shared?{url:this.user.server.get("plexPassUrl"),message:Object(p.default)("The server needs a Plex Pass to use sync."),buttonText:Object(p.default)("Learn More"),target:"_blank",showButton:!this.shared}:{url:Object(v.a)(this.model.id,"settings","general"),message:Object(p.default)("The server needs to be signed in with a Plex Pass to use sync."),buttonText:Object(p.default)("Sign In"),target:"_self",showButton:!0}},onRender:function(){this.allowSync&&this.showList()},
onClose:function(){clearTimeout(this.transcodeJobTimeout)},onSharedChange:function(e,t){this.shared=t,this.render()},onDeviceDropdownClick:function(e){e.preventDefault();var t=a()(e.currentTarget).data("id");this.selectedDevice=this.collection.get(t),Object(h.a)(this.routeOrigin,{serverID:this.model.id,deviceID:t,replace:!0,trigger:!1}),this.render()},onDeviceClick:function(e){e.preventDefault();var t=a()(e.currentTarget),n=t.data("id");this.ui.devices.removeClass("selected"),
t.addClass("selected"),this.selectedDevice=this.collection.get(n),this.showList()},onEditClick:function(e){e.preventDefault(),a()(e.currentTarget).toggleClass("selected"),this.$el.toggleClass("force-hover")},onRefreshClick:function(e){e.preventDefault();var t=u.a.execute("refreshSyncLists",{server:this.model});this.selectedDevice&&t.always(this.whenRendered(function(){this.selectedDevice.get("syncList").fetch({scope:"page"})}))},onCloudSyncSettingsClick:function(e){e.preventDefault(),
e.stopImmediatePropagation();var t=c.c("appModel"),n=t.get("user");window.open(n.server.get("cloudSyncUrl"))}});t.a=y},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(385),s=n(3),l=n(2897),c=n(2906),u=n.n(c),d=i.a.Layout.extend({className:"sync-device-items-container",template:u.a,ui:{loading:".row-loading",empty:".sync-empty-message",deviceMessage:".sync-device-message",deviceMessageText:".sync-device-message-text"},regions:{list:".sync-item-list-container"},
onlyAfterRender:["onDebouncedSyncItemsChange"],initialize:function(e){this.server=e.server,this.onDebouncedSyncItemsChange=r.a.debounce(this.onDebouncedSyncItemsChange,100),this.listenTo(this.model,{"change:syncList":this.onSyncListChange,"change:syncList.change:syncItems.reset":this.onDebouncedSyncItemsChange,"change:syncList.change:syncItems.update":this.onDebouncedSyncItemsChange}),this.fetchSyncList()},fetchSyncList:function(){var e=this.model.get("syncList");e&&e.fetch({scope:"page"
}).always(this.onDebouncedSyncItemsChange)},onSyncListChange:function(){this.fetchSyncList()},onDebouncedSyncItemsChange:function(){var e=this.model.get("syncList"),t=void 0;e&&(t=e.clone(),t.resetToServer(this.server.id)),this.ui.loading.addClass("hidden");var n=!t||0===t.getCollection().length;this.ui.empty.toggleClass("hidden",!n);var i=!t||t.get("isActive");if(this.ui.deviceMessage.toggleClass("hidden",i),!i){var a=t.device,r=a.get("lastSeenAt")
;r&&this.ui.deviceMessageText.text(Object(s.default)("{1} was last seen {2}. Syncing will resume next time you launch Plex on this device.",a.get("name"),Object(o.a)(r)))}t?this.list.show(new l.a({collection:t.getCollection(),itemViewOptions:{server:this.server}})):this.list.close()}});t.a=d},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return"";var l=new Date
;e=Math.round(e),"past"===n?e=Math.min(e,Object(o.a)(l)):"future"===n&&(e=Math.max(e,Object(o.a)(Object(a.a)(l,1))));var c=Object(r.a)(e),u=c.getTime()-l.getTime(),d=void 0;return d="future"===n||"past"!==n&&u>0,Object(s.a)({milliseconds:u,isShorthand:i,isFuture:d})}t.a=i;var a=n(679),r=n(81),o=n(147),s=n(2896)},function(e,t,n){"use strict";function i(e){var t=e.milliseconds,n=e.isShorthand,i=e.isFuture,s=Math.abs(t)/1e3;s&&(s=s<1?1:Math.round(s))
;var l=Math.round(s/60),c=Math.round(l/60),u=Math.round(c/24),d=Math.round(u/30),p=Math.round(u/365),h=s<=o.ss&&["s",s]||s<o.s&&["ss",s]||l<=1&&["m",1]||l<o.m&&["mm",l]||c<=1&&["h",1]||c<o.h&&["hh",c]||u<=1&&["d",1]||u<o.d&&["dd",u]||d<=1&&["M",1]||d<o.M&&["MM",d]||p<=1&&["y",1]||["yy",p],f=h[0],v=h[1],g=n?r:a,m=g[f],y=m.replace("%d",v);return y=(i?g.future:g.past).replace("%s",y)}t.a=i;var a={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",
h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},r={future:"in %s",past:"%s ago",ss:"%ds",s:"%ds",m:"%dm",mm:"%dm",h:"%dh",hh:"%dh",d:"%dd",dd:"%dd",M:"%dmo",MM:"%dmo",y:"%dy",yy:"%dy"},o={ss:44,s:45,m:45,h:22,d:26,M:11}},function(e,t,n){"use strict";var i=n(97),a=n(2898),r=i.a.extend({tagName:"ul",className:"tile-list media-tile-list sync-tile-list show-context",itemView:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(87),a=n(22),r=n(10),o=n.n(r),s=n(19),l=n(43),c=n(370),u=n(359),d=n(3),p=n(1222),h=n(248),f=n(2899),v=n(2900),g=n(1179),m=n(2905),y=n.n(m),b=a.a.Layout.extend({tagName:"li",className:"poster-item media-tile-list-item sync-tile-list-item",template:y.a,metadataItemsDelay:5e3,ui:{poster:".media-poster",transcodeStatus:".sync-status-transcode",transcodeTimeRemaining:".media-context",statusIcons:".sync-status-icon",completeIcon:".sync-complete-icon",waitingIcon:".sync-waiting-icon",
processingIcon:".sync-processing-icon",failedIcon:".sync-failed-icon",unknownIcon:".sync-unknown-icon"},regions:{transcodeProgress:".sync-status-transcode"},events:{"click a":"onClick","click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},onlyAfterRender:["onMetadataItemsReset","onMediaChange","onTranscodeJobsReset"],initialize:function(e){this.server=e.server,this.model.parent=this.server,this.type=this.model.get("metadataType"),this.contentType=this.model.get("contentType")
;var t=this.type,n=this.contentType,a=150;"episode"===t?t="show":"clip"===t||"userPlaylistItem"===t?a=250:"directory"===t&&(t="audio"===n?"track":"photo"===n?"photo":"movie"),this.$el.addClass(t),this.image=new h.a({server:this.server,type:t,width:a}),this.progressModel=new i.c.Model({current:0});var r=this.server.get("pmp").get("transcodeJobs");this.metadataItems=new f.a([],{server:this.server,device:this.model.device,syncItemId:this.model.id}),
this.listenTo(this.metadataItems,"reset",this.onMetadataItemsReset),this.listenTo(r,"reset",this.onTranscodeJobsReset),this.metadataItems.fetch({reset:!0}),this.server.supports("syncNotifications")?this.listenTo(this.metadataItems,"change:Media",this.onMediaChange):this.metadataItemsInterval=setInterval(o.a.bind(function(){this.metadataItems.fetch({reset:!0})},this),this.metadataItemsDelay)},serializeData:function(){return{syncItem:this.model.toJSON(),
isCloudSync:this.model.device.get("isCloudSync"),isFailure:!!this.model.get("status").get("failure")}},getPosterUrl:function(e){var t=e.get("thumb");return this.hasMultipleItems?this.hasSameParents?e.get("parentThumb")||e.get("grandparentThumb")||t:this.hasSameGrandparents?e.get("grandparentThumb")||e.get("parentThumb")||t:void 0:t},updatePoster:function(e){if(this.hasPoster=!0,!e){var t=this.metadataItems.first();if(!t)return;e=this.getPosterUrl(t)}this.image.url!==e&&(this.image.src=null,
this.image.url=e,this.image.render())},analyzeParts:function(e){if(this.model.get("status").get("failure"))return"failed";var t=e.models,n=t.length;if(!n)return"unknown";for(var i="complete",a=[],r=[],s=0;s<n;s++){var l=t[s],c=l.get("Media");if(a.push(l.get("grandparentKey")),r.push(l.get("parentKey")),c.length||(i="unknown"),"failed"!==i&&"unknown"!==i)for(var d=0,p=c.length;d<p;d++)for(var h=c[d].Part,f=0,v=h.length;f<v;f++){var g=h[f],m=u.a.getSyncStateFromPart(g)
;u.a.failedRegex.test(m)&&(i="failed"),u.a.processingRegex.test(m)&&(i="processing"),u.a.waitingRegex.test(m)&&"processing"!==i&&(i=g.key?"waiting":"processing")}}return this.hasMultipleItems=n>1,this.hasSameGrandparents=1===o.a.compact(o.a.uniq(a)).length,this.hasSameParents=1===o.a.compact(o.a.uniq(r)).length,this.hasPoster||this.updatePoster(),i},bindings:{".media-title":{modelAttribute:"title"},".media-subtitle-1":{modelAttribute:"rootTitle"}},onRender:function(){
this.image.setElement(this.ui.poster),this.transcodeProgress.append(new p.a({model:this.progressModel,size:56}))},onClose:function(){clearInterval(this.metadataItemsInterval)},onMetadataItemsReset:function(e){var t=this.analyzeParts(e);if(this.ui.statusIcons.addClass("hidden"),this.ui.transcodeStatus.hasClass("hidden"))switch(t){case"complete":this.ui.completeIcon.removeClass("hidden");break;case"waiting":this.ui.waitingIcon.removeClass("hidden");break;case"processing":
this.ui.processingIcon.removeClass("hidden");break;case"failed":this.ui.failedIcon.removeClass("hidden");break;default:this.ui.unknownIcon.removeClass("hidden")}},onMediaChange:function(e,t){this.onMetadataItemsReset(this.metadataItems)},onTranscodeJobsReset:function(e){var t=e.where({syncItemId:this.model.id});if(!t.length)return this.ui.transcodeStatus.hasClass("hidden")||(this.ui.transcodeStatus.addClass("hidden"),this.ui.waitingIcon.removeClass("hidden")),
this.ui.transcodeTimeRemaining.text(""),void this.updatePoster();var n=t[0],i=n.get("progress");if(this.ui.statusIcons.addClass("hidden"),i>0){this.ui.transcodeStatus.removeClass("hidden");var a=n.get("type"),r=Object(c.a)(n.get("remaining"));if(this.progressModel.set("progress",i),"download"===a)this.progressModel.set("text",i.toString()+"%"),this.ui.transcodeTimeRemaining.text(Object(d.default)("Downloading"));else if("upload"===a)this.progressModel.set("text",i.toString()+"%"),
this.ui.transcodeTimeRemaining.text(Object(d.default)("Uploading"));else{var o=n.get("speed");if(o){var s=Math.round(10*n.get("speed"))/10;s>10&&(s=Math.round(s)),this.progressModel.set("text",s.toString()+"x")}else this.progressModel.set("text","");this.ui.transcodeTimeRemaining.text(r)}this.updatePoster(n.get("thumb"))}else this.ui.transcodeStatus.addClass("hidden"),this.ui.processingIcon.removeClass("hidden")},onClick:function(e){e.preventDefault(),s.a.trigger("show:modal",new v.a({
model:this.model,collection:this.metadataItems}))},onEditClick:function(e){e.stopImmediatePropagation(),e.preventDefault(),s.a.trigger("show:modal",new g.a({model:this.model}))},onDeleteClick:function(e){e.stopImmediatePropagation(),e.preventDefault(),l.a.execute("deleteSyncItem",{syncItem:this.model,server:this.server})}});t.a=b},function(e,t,n){"use strict";var i=n(25),a=n(69),r=n(111),o=n(1394),s=i.a.extend({name:"SyncMetadataCollection",context:["server","device","syncItemId"],model:o.a,
url:function(){return"/sync/items/"+this.syncItemId},augmentResponseText:function(e,t){return t===a.a.xml?Object(r.b)(e):e}});t.a=s},function(e,t,n){"use strict";var i=n(2901),a=n(96),r=n(2904),o=n.n(r),s=a.a.extend({name:"syncStatusModal",template:o.a,regions:{list:".sync-status-list-container"},onRender:function(){a.a.prototype.onRender.apply(this,arguments),this.list.show(new i.a({collection:this.collection,itemViewOptions:{syncItem:this.model}}))}});t.a=s},function(e,t,n){"use strict"
;var i=n(97),a=n(2902),r=i.a.extend({tagName:"ul",className:"list sync-status-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(370),s=n(359),l=n(3),c=n(248),u=n(2903),d=n.n(u),p=i.a.ItemView.extend({tagName:"li",className:"sync-status-list-item",template:d.a,ui:{poster:".media-poster"},initialize:function(e){this.syncItem=e.syncItem,this.transcodeJobs=this.model.server.get("pmp").get("transcodeJobs"),this.$el.addClass(this.model.get("type")),
this.image=new c.a({model:this.model,type:this.model.get("type"),getUrl:this.getPosterUrl,height:50,background:!1}),this.listenTo(this.transcodeJobs,"reset",function(e){this.model.trigger("change:Media",this.model,this.model.get("Media"))})},serializeData:function(){return{isCloudSync:this.model.device.get("isCloudSync")}},getPosterUrl:function(e){return e||this.model.get("parentThumb")||this.model.get("grandparentThumb")},analyzeTranscodeJobs:function(){var e
;if(this.transcodeJobs.each(r.a.bind(function(t){if(this.syncItem.id===t.get("syncItemId")){var n=this.model.get("thumb"),i=this.model.get("title"),a=t.get("transcodeThumb"),r=t.get("title"),o=r&&r.indexOf(i)>-1,s=!0;if(n&&a){s=new RegExp("(.+)"+t.get("thumb")+"$").exec(n)}o&&s&&(e=t)}},this)),e&&e.get("progress")>0){return{active:!0,speed:Math.round(10*e.get("speed"))/10,remaining:Object(o.a)(e.get("remaining"))||Object(l.default)("done"),progress:Math.round(10*e.get("progress"))/10,
isUploading:"upload"===e.get("type")}}return{active:!1}},analyzeParts:function(){var e="complete",t=this.model.get("Media");if(!t.length)return"unknown";for(var n=0,i=t.length;n<i;n++)for(var a=t[n].Part,r=0,o=a.length;r<o;r++){var l=a[r],c=s.a.getSyncStateFromPart(l);s.a.failedRegex.test(c)&&(e=s.a.getSyncStateContextFromPart(l)),s.a.processingRegex.test(c)&&(e="downloading"===c?"downloading":"processing"),s.a.waitingRegex.test(c)&&"processing"!==e&&(e=l.key?"waiting":"processing")}return e},
getErrorMessage:function(e){switch(e){case"sourceFileUnavailable":return Object(l.default)("This media is inaccessible. Please check that the file exists with the correct permissions.");case"sourceFileMetadataError":return Object(l.default)("The metadata for this media is invalid. Please reanalyze the media and try again.");case"clientProfileError":return Object(l.default)("The client profile for the sync target is invalid.");case"ioError":
return Object(l.default)("An error occurred processing this media. Please check that the disk is not full.");case"transcoderError":return Object(l.default)("The transcoder was unable to process this media.");case"mediaAnalysisError":return Object(l.default)("This media was unable to be analyzed.");case"downloadFailed":return Object(l.default)("This media was unable to be downloaded. Please check that it is still available and try again.");case"unknownError":
return Object(l.default)("An error occurred while syncing this media.")}return Object(l.default)("An error occurred while syncing this media.")},bindings:{".title":{modelAttribute:"title"},".subtitle":{modelAttribute:"Media",manual:!0,formatter:function(e){var t=this.analyzeParts(),n=this.analyzeTranscodeJobs();switch(this.$(".subtitle").addClass("hidden"),t){case"complete":this.$(".complete-subtitle").removeClass("hidden");break;case"waiting":this.$(".waiting-subtitle").removeClass("hidden"),
n.isUploading&&(this.$(".cloud-sync-waiting").addClass("hidden"),this.$(".cloud-sync-uploading").removeClass("hidden"),this.$(".transcode-progress").text(n.progress));break;case"downloading":n.active?(this.$(".downloading-subtitle").removeClass("hidden"),this.$(".transcode-progress").text(n.progress)):this.$(".processing-subtitle").removeClass("hidden");break;case"processing":n.active?(this.$(".converting-subtitle").removeClass("hidden"),this.$(".transcode-progress").text(n.progress),
this.$(".transcode-remaining").text(n.remaining)):this.$(".processing-subtitle").removeClass("hidden");break;case"unknown":this.$(".unknown-subtitle").removeClass("hidden");break;default:this.$(".failed-subtitle").removeClass("hidden"),this.$(".error-message").text(this.getErrorMessage(t))}}}},onRender:function(){this.image.setElement(this.ui.poster)}});t.a=p},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){
function s(e,t){var a="";return a+=' <i class="glyphicon cloud-download"></i> <span class="cloud-sync-waiting">'+d(i(n(5)).call(e,"Waiting to be uploaded",{hash:{},data:t}))+'</span> <span class="cloud-sync-uploading hidden">'+d(i(n(5)).call(e,"Uploading",{hash:{},data:t}))+' &middot; <span class="transcode-progress"></span>%</span> '}function l(e,t){var a="";return a+=' <i class="glyphicon circle-arrow-down"></i> '+d(i(n(5)).call(e,"Waiting to be downloaded",{hash:{},data:t}))+" "}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return u+='<div class="media-poster"></div> <p class="title"></p> <p class="complete-subtitle subtitle hidden"> <i class="glyphicon ok-2"></i> '+d(i(n(5)).call(t,"Synced",{hash:{},data:o}))+' </p> <p class="waiting-subtitle subtitle hidden"> ',c=a.if.call(t,t&&t.isCloudSync,{hash:{},inverse:p.program(3,l,o),fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),
u+=' </p> <p class="downloading-subtitle subtitle hidden"> <i class="glyphicon more"></i> '+d(i(n(5)).call(t,"Downloading",{hash:{},data:o}))+' &middot; <span class="transcode-progress"></span>% </p> <p class="converting-subtitle subtitle hidden"> <i class="glyphicon more"></i> '+d(i(n(5)).call(t,"Converting",{hash:{},data:o
}))+' &middot; <span class="transcode-progress"></span>% &middot; <span class="transcode-remaining"></span> </p> <p class="processing-subtitle subtitle hidden"> <i class="glyphicon more"></i> '+d(i(n(5)).call(t,"Waiting to be converted",{hash:{},data:o}))+' </p> <p class="unknown-subtitle subtitle hidden"> <i class="glyphicon circle-question-mark"></i> '+d(i(n(5)).call(t,"Unknown",{hash:{},data:o
}))+' </p> <p class="failed-subtitle subtitle hidden"> <i class="glyphicon warning-sign"></i> <span class="error-message"></span> </p> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <p class="text-muted"><i class="glyphicon warning-sign"></i> '+d((n=e&&e.Status,n=null==n||!1===n?n:n.failure,typeof n===u?n.apply(e):n))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var l,c="",u="function",d=this.escapeExpression,p=this;return c+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon download"></i> '+d(i(n(5)).call(t,"Sync Status",{hash:{},data:o
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <h4 class="sync-item-title">'+d((l=t&&t.rootTitle,typeof l===u?l.apply(t):l))+" &middot; "+d((l=t&&t.title,typeof l===u?l.apply(t):l))+"</h4> ",l=a.if.call(t,(l=t&&t.Status,null==l||!1===l?l:l.failure),{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=' <div class="sync-status-list-container"></div> </div> </div> </div> '})},function(e,t,n){var i=n(15)
;e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"cloud-download"}function o(e,t){return"circle-arrow-down"}function s(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,c="",u=this
;return c+='<a class="media-poster-container" href="#"> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="sync-status"> <div class="sync-status-transcode hidden"></div> <i class="sync-status-icon sync-complete-icon glyphicon ok-2 hidden"></i> <i class="sync-status-icon sync-waiting-icon glyphicon ',l=n.if.call(t,t&&t.isCloudSync,{hash:{},inverse:u.program(3,o,a),fn:u.program(1,r,a),data:a}),(l||0===l)&&(c+=l),
c+=' hidden"></i> <i class="sync-status-icon sync-processing-icon glyphicon more hidden"></i> <i class="sync-status-icon sync-failed-icon glyphicon warning-sign ',l=n.unless.call(t,t&&t.isFailure,{hash:{},inverse:u.noop,fn:u.program(5,s,a),data:a}),(l||0===l)&&(c+=l),c+='"></i> <i class="sync-status-icon sync-unknown-icon glyphicon circle-question-mark ',l=n.if.call(t,t&&t.isFailure,{hash:{},inverse:u.noop,fn:u.program(5,s,a),data:a}),(l||0===l)&&(c+=l),
c+='"></i> </div> <div class="media-poster-actions"> <button class="edit-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon pencil"></i></button> <button class="delete-btn media-poster-btn btn-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> <div class="media-context media-heading secondary"></div> </a> '})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="row row-loading"> <div class="loading loading-inline"></div> </div> <div class="sync-empty-message row row-padded hidden"> <h4 class="text-muted text-center"> '+(0,this.escapeExpression)(i(n(5)).call(t,"Nothing is synced to this device.",{hash:{},data:o
}))+' </h4> </div> <div class="sync-device-message row hidden"> <h4 class="sync-device-message-text text-muted text-center"></h4> </div> <div class="sync-item-list-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i=""
;return i+=' <span class="dropdown"> <a class="dropdown-toggle" href="#device-dropdown" data-toggle="dropdown"> <span class="dropdown-friendly-name">'+M((n=e&&e.selectedDevice,n=null==n||!1===n?n:n.name,typeof n===S?n.apply(e):n))+'</span> <i class="caret-icon"></i> </a> <ul class="dropdown-menu"> ',n=a.each.call(e,e&&e.devices,{hash:{},inverse:D.noop,fn:D.programWithDepth(2,l,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </ul> </span> "}function l(e,t,a){var r,o=""
;return o+=' <li><a data-id="'+M((r=e&&e.id,typeof r===S?r.apply(e):r))+'" href="#"><span class="dropdown-truncated-label">'+M((r=e&&e.name,typeof r===S?r.apply(e):r))+"</span>",r=i(n(34)).call(e,(r=a&&a.selectedDevice,null==r||!1===r?r:r.id),e&&e.id,{hash:{},inverse:D.noop,fn:D.program(3,c,t),data:t}),(r||0===r)&&(o+=r),o+="</a></li> "}function c(e,t){return'<i class="dropdown-selected-icon glyphicon ok-2"></i>'}function u(e,t){
return'<a class="edit-btn btn-gray" href="#"><i class="glyphicon pencil"></i></a>'}function d(e,t){return'<a class="cloud-sync-settings-btn btn-gray" href="#"><i class="glyphicon cogwheel"></i></a>'}function p(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.devices,{hash:{},inverse:D.program(12,f,t),fn:D.program(10,h,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function h(e,t){return' <div class="row"> <div class="sync-device-container col-sm-12 col-md-12"></div> </div> '}function f(e,t){var a=""
;return a+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+M(i(n(5)).call(e,"You have no sync capable devices.",{hash:{},data:t}))+"</h4> </div> "}function v(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.sync,{hash:{},inverse:D.program(18,y,t),fn:D.program(15,g,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function g(e,t){var n,i="";return i+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+M((n=e&&e.plexPassInfo,n=null==n||!1===n?n:n.message,
typeof n===S?n.apply(e):n))+'</h4> <p class="text-center ',n=a.unless.call(e,(n=e&&e.plexPassInfo,null==n||!1===n?n:n.showButton),{hash:{},inverse:D.noop,fn:D.program(16,m,t),data:t}),(n||0===n)&&(i+=n),i+='"> <a class="btn btn-sm btn-primary" href="'+M((n=e&&e.plexPassInfo,n=null==n||!1===n?n:n.url,typeof n===S?n.apply(e):n))+'" target="'+M((n=e&&e.plexPassInfo,n=null==n||!1===n?n:n.target,typeof n===S?n.apply(e):n))+'">'+M((n=e&&e.plexPassInfo,n=null==n||!1===n?n:n.buttonText,
typeof n===S?n.apply(e):n))+"</a> </p> </div> "}function m(e,t){return"hidden"}function y(e,t){var a="";return a+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+M(i(n(5)).call(e,"This server does not support sync.",{hash:{},data:t}))+"</h4> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var b,I="",S="function",M=this.escapeExpression,D=this;return I+='<div class="filter-bar"> ',b=a.if.call(t,t&&t.showDeviceDropdown,{hash:{},inverse:D.noop,
fn:D.program(1,s,o),data:o}),(b||0===b)&&(I+=b),I+=' <div class="filter-bar-right"> ',b=a.if.call(t,t&&t.hasTouchScreen,{hash:{},inverse:D.noop,fn:D.program(5,u,o),data:o}),(b||0===b)&&(I+=b),I+=" ",b=a.if.call(t,t&&t.showCloudSyncFilterBarButton,{hash:{},inverse:D.noop,fn:D.program(7,d,o),data:o}),(b||0===b)&&(I+=b),I+=' <a class="refresh-btn btn-gray" href="#"><i class="glyphicon repeat"></i></a> </div> </div> ',b=a.if.call(t,t&&t.allowSync,{hash:{},inverse:D.program(14,v,o),
fn:D.program(9,p,o),data:o}),(b||0===b)&&(I+=b),I+=" "})},function(e,t,n){"use strict";function i(e,t,n){var i=e.find(function(e){return e.key===t});return i?i.groups.find(function(e){return e.key===n}):null}function a(){return Object(o.createSelector)(function(e,t){return t.settingsSection},function(e,t){return t.settingsGroup},Object(c.a)(),Object(l.a)(),function(e,t,n,a){var r=i(n,e,t);return{isInstallingServerUpdate:!(!a||!a.isInstallingServerUpdate),isUnavailable:!(!a||!a.isUnavailable),
isUnauthorized:!(!a||!a.isUnauthorized),isHostedHttps:s.a.isHostedHttps,hasHttpsConnections:!(!a||!a.hasHttpsConnections),isSettingAccessible:!!r&&!r.hasCustomRoute,isSettingsPending:!(!a||!a.pmp.isSettingsPending),friendlyName:a?a.friendlyName:"",pageComponent:r&&r.pageComponent,paneComponent:r&&r.paneComponent}})}var r=n(11),o=n(4),s=(n.n(o),n(101)),l=n(35),c=n(1395),u=n(3171);t.a=Object(r.connect)(a)(u.a)},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(Object(r.a)(),function(e){return e?e.pmp.settings:[]})}t.a=i;var a=n(4),r=(n.n(a),n(35))},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID;return r()(v.a,{className:y.a.container,serverEntityID:t},void 0,function(e){var n=e.noDVRs,i=e.hasDVRFeature,a=e.onOpen;return r()("div",{},void 0,n&&r()("div",{className:y.a.info},void 0,r()(p.a,{className:y.a.upsell,icon:"plex-icon-marketing-dvr-560",title:Object(u.default)("Introducing Live TV & DVR"),
text:Object(u.default)("With Plex Pass and a digital tuner, you can record over-the-air broadcast TV and watch your favorite shows, movies, news, and sports on any device, anywhere in the world. Cut the cord and love TV again.")}),r()("div",{className:y.a.moreInfo},void 0,r()(d.a,{
message:Object(u.default)("To get started recording TV, connect a tuner device to your network. Here's a {openLinkSupported}list of supported devices{closeLinkSupported}. However, some tuners not officially supported {openLinkUnsupported}work as well{closeLinkUnsupported}!"),tags:[{open:"openLinkSupported",close:"closeLinkSupported",component:c.a,kind:f.b.PRIMARY,to:"https://support.plex.tv/articles/225877427-supported-dvr-tuners-and-antennas/",target:"_blank"},{open:"openLinkUnsupported",
close:"closeLinkUnsupported",component:c.a,kind:f.b.PRIMARY,to:"https://support.plex.tv/articles/community-supported-tuners/",target:"_blank"}]})),i?r()(l.a,{kind:f.b.PRIMARY,size:f.e.LARGE,onPress:a},void 0,Object(u.default)("Set Up Plex DVR")):r()(h.a,{serverEntityID:t,modalMetricsProperties:{context:"dvrSetup"}})),i&&r()(g.a,{serverEntityID:t,hasDVRFeature:i}))})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(42)),c=n(20),u=n(3),d=n(187),p=n(1396),h=n(1397),f=n(24),v=n(927),g=n(3006),m=n(3032),y=n.n(m);t.a=i},function(e,t){e.exports={upsell:"PlexPassUpsell-upsell-3i2JL",iconContainer:"PlexPassUpsell-iconContainer-3uKd8",icon:"PlexPassUpsell-icon-1r94u",title:"PlexPassUpsell-title-3m6RL",text:"PlexPassUpsell-text-2hF28"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(42)),f=n(3),v=n(554),g=n(24),m=n(197),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onPlexPassPress=function(){a.setState({isPlexPassModalOpen:!0})},a.onPlexPassModalClose=function(){a.setState({isPlexPassModalOpen:!1})},a.state={isPlexPassModalOpen:!1},a}return u()(t,e),t.prototype.getButtonText=function(){var e=this.props,t=e.isSignedIn,n=e.hasPlexSubscription
;return t?t&&n?Object(f.default)("Claim Server"):t&&!n?Object(f.default)("Get a Plex Pass"):void 0:Object(f.default)("Sign In")},t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,n=e.modalMetricsProperties,i=e.isSignedIn,r=e.isClaimed,o=e.hasPlexSubscription;if(o&&r)return null;var s=this.state.isPlexPassModalOpen,l=i&&!o,c=Object(m.a)(t,"settings","general");return a()(h.a,{kind:g.b.PRIMARY,size:g.e.LARGE,to:l?void 0:c,onPress:l?this.onPlexPassPress:void 0
},void 0,this.getButtonText(),l&&a()(v.a,{metricsProperties:n,isOpen:s,onModalClose:this.onPlexPassModalClose}))},t}(p.Component);t.a=y},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(11),h=n(4),f=(n.n(h),n(18)),v=n(162),g=n(522),m=n(2914),y=Object(h.createSelector)(v.a,function(e){var t=e.pmp;return{isSignedIn:e.isSignedIn,plans:t.plans,isPlansPending:t.isPlansPending,isPlansPopulated:t.isPlansPopulated,
plansError:t.plansError,subscribeUrl:f.join(["https://plex.tv","subscription/new"]),infoUrl:f.join(["https://plex.tv","subscription/about"]),giftUrl:f.join(["https://plex.tv","gifts"])}}),b=function(e){function t(){return a()(this,t),o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentWillMount=function(){this.props.isSignedIn&&this.props.fetchPlans()},t.prototype.componentWillReceiveProps=function(e){e.isSignedIn&&e.isSignedIn!==this.props.isSignedIn&&e.fetchPlans()},
t.prototype.render=function(){return d.a.createElement(m.a,this.props)},t}(u.Component);t.a=Object(p.connect)(function(e){return y(e)},{fetchPlans:g.d})(b)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(42),m=n(20),y=n(61),b=n(88),I=n(84),S=n(28),M=n(18),D=n(86),C=n(3),j=n(681),P=n(31),O=n(98),T=n(24),E=n(1398),w=n.n(E),A=n(2915),x=n.n(A),N=n(2916),L=n.n(N),k=n(1399),R=n.n(k),z=n(2917),U=n.n(z),B=n(2918),F=n.n(B),_=n(1400),V=n(2920),H=n.n(V),Q=o()(P.a,{}),Y=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(S.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.metricsProperties,n=e.subscribeUrl,i=e.infoUrl,r=e.giftUrl,s=e.plans,l=e.isPlansPending,c=e.isPlansPopulated,u=e.plansError,d=e.onModalClose;return o()(O.a,{onModalClose:d},void 0,o()(I.a,{className:H.a.header},void 0,o()("div",{className:H.a.plexPassTitle},void 0,Object(C.default)("Plex Pass")),Object(C.default)("Enhance your Plex experience with exclusive premium features")),o()(y.a,{innerClassName:H.a.body},void 0,o()(_.a,{img:R.a,title:Object(C.default)("Mobile Sync"),
description:Object(C.default)("Enjoy your media offline on Android, iOS, and Windows devices")}),o()(_.a,{img:L.a,title:Object(C.default)("Live TV & DVR"),description:Object(C.default)("Connect a tuner and antenna to access free OTA broadcasts")}),o()(_.a,{img:F.a,title:Object(C.default)("Trailers & Extras"),description:Object(C.default)("See movie trailers, cast interviews, and other bonus features")}),o()(_.a,{img:w.a,title:Object(C.default)("Camera Upload"),
description:Object(C.default)("Sync photos from your mobile devices to Plex Media Server")}),o()(_.a,{img:U.a,title:Object(C.default)("Automagic phototagging"),description:Object(C.default)("Auto-tag your photos to easily classify and find photos in libraries of any size")}),o()(_.a,{img:x.a,title:Object(C.default)("Gracenote Music Magic"),description:Object(C.default)("Song identification, album reviews, artist bios, and Plex Mix playlists")}),o()("div",{className:H.a.moreFeatures
},void 0,o()(m.a,{className:H.a.link,to:i,target:"_blank"},void 0,Object(C.default)("...plus more exclusive features!")))),o()(b.a,{className:H.a.footer},void 0,l&&o()("div",{className:H.a.spinnerContainer},void 0,Q),o()("div",{className:(H.a.plansContainer||"")+" "+(l&&H.a.isPlansPending||""||"")},void 0,!l&&c&&s.map(function(e){return v.a.createElement(j.a,a()({key:e.id},t,{action:D.W,plan:e.id}),o()(g.a,{className:H.a.planButton,to:M.join(n,{plan:e.id,continue:window.location.href}),
target:"_blank",kind:T.b.PRIMARY,size:T.e.LARGE},void 0,e.formattedPrice," \u2014 ",e.name))}),!l&&u&&v.a.createElement(j.a,a()({},t,{action:D.W,plan:"unknown"}),o()(g.a,{className:H.a.planButton,to:n,target:"_blank",kind:T.b.PRIMARY,size:T.e.LARGE},void 0,Object(C.default)("Subscribe")))),o()("div",{},void 0,Object(C.default)("Subscribe today"),o()("span",{className:H.a.linkSeparator},void 0,"\u2014"),v.a.createElement(j.a,a()({},t,{action:D.x}),o()(m.a,{className:H.a.link,to:r,target:"_blank"
},void 0,Object(C.default)("or give Plex Pass as a gift!"))))))},t}(f.Component);t.a=Y},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0IDQpIj4KICAgIDxwYXRoIGQ9Ik0xMi41MzIgMTUuMjcyQzExLjIzMiAxNi41NzIgMTEuMjMyIDE4LjY4OCAxMi41MzIgMTkuOTg3IDEzLjE2MyAyMC42MTYgMTMuOTk5IDIwLjk2MiAxNC44ODkgMjAuOTYyIDE1Ljc3OSAyMC45NjIgMTYuNjE2IDIwLjYxNSAxNy4yNDYgMTkuOTg3IDE4LjU0NiAxOC42ODcgMTguNTQ2IDE2LjU3MSAxNy4yNDYgMTUuMjcyIDE1Ljk4NSAxNC4wMTUgMTMuNzkzIDE0LjAxNSAxMi41MzEgMTUuMjcyTDEyLjUzMiAxNS4yNzJ6TTE2LjMwNCAxOS4wNDRDMTUuNTQ5IDE5Ljc5OSAxNC4yMzEgMTkuNzk5IDEzLjQ3NiAxOS4wNDQgMTIuNjk2IDE4LjI2NCAxMi42OTYgMTYuOTk1IDEzLjQ3NiAxNi4yMTUgMTMuODUzIDE1LjgzOCAxNC4zNTYgMTUuNjMxIDE0Ljg5MSAxNS42MzEgMTUuNDI2IDE1LjYzMSAxNS45MjcgMTUuODM4IDE2LjMwNiAxNi4yMTUgMTcuMDgzIDE2Ljk5NSAxNy4wODMgMTguMjY0IDE2LjMwNSAxOS4wNDRMMTYuMzA0IDE5LjA0NHpNNS45MzIgMjIuODE1QzUuNjcyIDIyLjU1NSA1LjI0OSAyMi41NTUgNC45ODkgMjIuODE1IDQuNzI5IDIzLjA3NSA0LjcyOSAyMy40OTggNC45ODkgMjMuNzU4TDguNzYgMjcuNTI5QzguODkxIDI3LjY2IDkuMDYxIDI3LjcyNCA5LjIzMiAyNy43MjQgOS40MDMgMjcuNzI0IDkuNTczIDI3LjY1OSA5LjcwNCAyNy41MjkgOS45NjQgMjcuMjY5IDkuOTY0IDI2Ljg0NiA5LjcwNCAyNi41ODZMNS45MzIgMjIuODE1eiIvPgogICAgPHBhdGggZD0iTTMxLjQ2MSw1LjMzMyBMMzIuMzIyLDQuNDcyIEMzMi41ODIsNC4yMTIgMzIuNTgyLDMuNzg5IDMyLjMyMiwzLjUyOSBMMjguOTg5LDAuMTk2IEMyOC43MjksLTAuMDY0IDI4LjMwNiwtMC4wNjQgMjguMDQ2LDAuMTk2IEwyNy4xODUsMS4wNTcgTDI2LjMyNCwwLjE5NiBDMjYuMDY0LC0wLjA2NCAyNS42NDEsLTAuMDY0IDI1LjM4MSwwLjE5NiBDMjUuMTIxLDAuNDU2IDI1LjEyMSwwLjg3OSAyNS4zODEsMS4xMzkgTDI2LjI0MiwyIEwyNS4xODUsMy4wNTcgTDI0LjMyNCwyLjE5NiBDMjQuMDY0LDEuOTM2IDIzLjY0MSwxLjkzNiAyMy4zODEsMi4xOTYgQzIzLjEyMSwyLjQ1NiAyMy4xMjEsMi44NzkgMjMuMzgxLDMuMTM5IEwyNC4yNDIsNCBMMjIuNzE0LDUuNTI4IEMyMi40NTQsNS43ODggMjIuNDU0LDYuMjExIDIyLjcxNCw2LjQ3MSBMMjIuOTA5LDYuNjY3IEwxOC40MjgsMTEuMTQ4IEMxNy4zMDQsMTAuNDc1IDE2LjA4OCwxMC4xMjEgMTQuODgsMTAuMTIxIEMxMi4xMDUsMTAuMTIxIDkuOTAzLDExLjkxMiA5LjMwNywxNC41NTQgQzUuNjk0LDE0LjAxIDIuODAyLDE1LjQ5MyAxLjU3NiwxOC40NDkgQzAuMjUzLDIxLjY0MiAxLjI0NywyNS42NjkgNC4wNDgsMjguNDcgQzUuOTg1LDMwLjQwNyA4LjU0LDMxLjUxOCAxMS4wNTcsMzEuNTE4IEMxMy4zMjUsMzEuNTE4IDE1LjM1NCwzMC42MTcgMTYuNjI1LDI5LjA0NiBDMTcuNSwyNy45NjMgMTguNDAyLDI2LjA5NSAxNy45NjIsMjMuMjA5IEMxOS43MTgsMjIuODA4IDIxLjE1NSwyMS42NjggMjEuODgzLDIwLjA2NCBDMjIuNzIsMTguMjE5IDIyLjUyMywxNi4wMjMgMjEuMzcsMTQuMDkyIEwyNS44NTEsOS42MTEgTDI2LjA0Niw5LjgwNiBDMjYuMzA2LDEwLjA2NiAyNi43MjksMTAuMDY2IDI2Ljk4OSw5LjgwNiBMMjguNTE3LDguMjc4IEwyOS4zNzgsOS4xMzkgQzI5LjUxLDkuMjY4IDI5LjY4MSw5LjMzNCAyOS44NTEsOS4zMzQgQzMwLjAyMSw5LjMzNCAzMC4xOTIsOS4yNjkgMzAuMzIzLDkuMTM5IEMzMC41ODMsOC44NzkgMzAuNTgzLDguNDU2IDMwLjMyMyw4LjE5NiBMMjkuNDYsNy4zMzMgTDMwLjUxNyw2LjI3NiBMMzEuMzc4LDcuMTM3IEMzMS41MDksNy4yNjggMzEuNjc5LDcuMzMzIDMxLjg1LDcuMzMzIEMzMi4wMjEsNy4zMzMgMzIuMTkxLDcuMjY4IDMyLjMyMiw3LjEzOCBDMzIuNTgyLDYuODc4IDMyLjU4Miw2LjQ1NSAzMi4zMjIsNi4xOTUgTDMxLjQ1OSw1LjMzMiBMMzEuNDYxLDUuMzMzIFogTTI2LjUxOSw4LjM5MSBMMjYuMzI0LDguMTk2IEMyNi4wNjQsNy45MzYgMjUuNjQxLDcuOTM2IDI1LjM4MSw4LjE5NiBMMjAuMDQ4LDEzLjUyOSBDMTkuODIsMTMuNzU3IDE5Ljc4OCwxNC4xMTYgMTkuOTcyLDE0LjM4MSBDMjEuMTE5LDE2LjAyOSAyMS4zOCwxNy45NDkgMjAuNjY5LDE5LjUxNCBDMjAuMDMzLDIwLjkxNyAxOC43MzYsMjEuODIzIDE3LjExLDIyLjAwNSBDMTYuOTIzLDIyLjAyNiAxNi43NTMsMjIuMTI1IDE2LjY0MywyMi4yNzggQzE2LjUzMiwyMi40MyAxNi40OTIsMjIuNjIzIDE2LjUzMiwyMi44MDYgQzE3LjAwMSwyNC45OTQgMTYuNjczLDI2Ljg2MiAxNS41ODcsMjguMjA5IEMxNC41NzEsMjkuNDY2IDEyLjkyLDMwLjE4NiAxMS4wNTYsMzAuMTg2IEM4Ljg4OSwzMC4xODYgNi42NzcsMjkuMjE3IDQuOTg5LDI3LjUyOSBDMi41NjUsMjUuMTA1IDEuNjg4LDIxLjY2MiAyLjgwNiwxOC45NjEgQzMuNjQ1LDE2LjkzNiA1LjQ4MiwxNS43NzYgNy44NDYsMTUuNzc2IEM4LjQzNSwxNS43NzYgOS4wNjMsMTUuODQ3IDkuNzEsMTUuOTg1IEM5Ljg5NCwxNi4wMiAxMC4wODcsMTUuOTg1IDEwLjIzOSwxNS44NzMgQzEwLjM5MSwxNS43NjQgMTAuNDkxLDE1LjU5NCAxMC41MTIsMTUuNDA2IEMxMC43NzEsMTMuMDgxIDEyLjU2NSwxMS40NTUgMTQuODc3LDExLjQ1NSBDMTUuOTgyLDExLjQ1NSAxNy4xMDgsMTEuODMyIDE4LjEzNCwxMi41NDYgQzE4LjM5OCwxMi43MzEgMTguNzU3LDEyLjY5OCAxOC45ODYsMTIuNDcgTDI0LjMxOSw3LjEzNyBDMjQuNTc5LDYuODc3IDI0LjU3OSw2LjQ1NCAyNC4zMTksNi4xOTQgTDI0LjEyNCw1Ljk5OSBMMjguNTE1LDEuNjA4IEwzMC45MDYsMy45OTkgTDI2LjUxNSw4LjM5IEwyNi41MTksOC4zOTEgWiIvPgogIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzIDQpIj4KICAgIDxwYXRoIGQ9Ik0yNSwxNiBDMjAuNTg4LDE2IDE3LDE5LjU4OCAxNywyNCBDMTcsMjguNDEyIDIwLjU4OCwzMiAyNSwzMiBDMjkuNDEyLDMyIDMzLDI4LjQxMiAzMywyNCBDMzMsMTkuNTg4IDI5LjQxMiwxNiAyNSwxNiBaIE0yNSwzMC42NjcgQzIxLjMyNCwzMC42NjcgMTguMzMzLDI3LjY3NiAxOC4zMzMsMjQgQzE4LjMzMywyMC4zMjQgMjEuMzI0LDE3LjMzMyAyNSwxNy4zMzMgQzI4LjY3NiwxNy4zMzMgMzEuNjY3LDIwLjMyNCAzMS42NjcsMjQgQzMxLjY2NywyNy42NzYgMjguNjc2LDMwLjY2NyAyNSwzMC42NjcgWiIvPgogICAgPHBhdGggZD0iTTI1LDIwIEMyMi43OTUsMjAgMjEsMjEuNzk1IDIxLDI0IEMyMSwyNi4yMDUgMjIuNzk1LDI4IDI1LDI4IEMyNy4yMDUsMjggMjksMjYuMjA1IDI5LDI0IEMyOSwyMS43OTUgMjcuMjA1LDIwIDI1LDIwIFogTTI1LDI2LjY2NyBDMjMuNTI5LDI2LjY2NyAyMi4zMzMsMjUuNDcxIDIyLjMzMywyNCBDMjIuMzMzLDIyLjUyOSAyMy41MjksMjEuMzMzIDI1LDIxLjMzMyBDMjYuNDcxLDIxLjMzMyAyNy42NjcsMjIuNTI5IDI3LjY2NywyNCBDMjcuNjY3LDI1LjQ3MSAyNi40NzEsMjYuNjY3IDI1LDI2LjY2NyBaIi8+CiAgICA8cGF0aCBkPSJNMzIuMzMzIDkuMzMzTDEuNjY2IDkuMzMzQzEuMjk4IDkuMzMzLjk5OSA5LjYzMi45OTkgMTBMLjk5OSAyNi44MDFDLjk5OSAyOC4xOTcgMi4xNTggMjkuMzMzIDMuNTgzIDI5LjMzM0wxNC4zMzIgMjkuMzMzIDE0LjMzMiAyOCAzLjU4MyAyOEMyLjg5MiAyOCAyLjMzMiAyNy40NjMgMi4zMzIgMjYuODAxTDIuMzMyIDEwLjY2NiAzMS42NjUgMTAuNjY2IDMxLjY2NSAxNS45OTMgMzIuOTk4IDE1Ljk5MyAzMi45OTggMTBDMzIuOTk4IDkuNjMyIDMyLjY5OSA5LjMzMyAzMi4zMzEgOS4zMzNMMzIuMzMzIDkuMzMzek0zMSAwTDMgMEMxLjg5NyAwIDEgLjg5NyAxIDIuMDAxTDEgNy4zMzNDMSA3LjcwMSAxLjI5OSA4IDEuNjY3IDhMMzIuMzM0IDhDMzIuNzAyIDggMzMuMDAxIDcuNzAxIDMzLjAwMSA3LjMzM0wzMy4wMDEgMi4wMDFDMzMuMDAxLjg5NyAzMi4xMDQgNC40NDA4OTIxZS0xNiAzMS4wMDEgNC40NDA4OTIxZS0xNkwzMSAwek0zMS42MiAxLjc3MkwyNi43MjUgNi42NjcgMjMuMjc3IDYuNjY3IDI4LjYxIDEuMzM0IDMwLjk5OSAxLjMzNEMzMS4yODYgMS4zMzQgMzEuNTI2IDEuNTE4IDMxLjYxOSAxLjc3M0wzMS42MiAxLjc3MnpNMTIuNjExIDEuMzMzTDE2LjA1OSAxLjMzMyAxMC43MjYgNi42NjYgNy4yNzggNi42NjYgMTIuNjExIDEuMzMzek01LjM5MiA2LjY2N0wyLjYxMSA2LjY2NyA3Ljk0NCAxLjMzNCAxMC43MjUgMS4zMzQgNS4zOTIgNi42Njd6TTE3Ljk0NCAxLjMzM0wyMS4zOTIgMS4zMzMgMTYuMDU5IDYuNjY2IDEyLjYxMSA2LjY2NiAxNy45NDQgMS4zMzN6TTIzLjI3NyAxLjMzM0wyNi43MjUgMS4zMzMgMjEuMzkyIDYuNjY2IDE3Ljk0NCA2LjY2NiAyMy4yNzcgMS4zMzN6TTMgMS4zMzNMNi4wNTkgMS4zMzMgMi4zMzQgNS4wNTggMi4zMzQgMi4wMDFDMi4zMzQgMS42MzMgMi42MzMgMS4zMzMgMy4wMDEgMS4zMzNMMyAxLjMzM3pNMjguNjExIDYuNjY3TDMxLjY2NyAzLjYxMSAzMS42NjcgNi42NjcgMjguNjExIDYuNjY3eiIvPgogIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8cGF0aCBmaWxsPSIjQ0M3QjE5IiBkPSJNMjYuNjY3LDguNjY3IEwyNi42NjcsMC42NjcgQzI2LjY2NywwLjI5OSAyNi4zNjgsMCAyNiwwIEwxNy42NTYsMCBDMTcuNDc5LDAgMTcuMzA5LDAuMDcxIDE3LjE4NCwwLjE5NSBMMC44NjEsMTYuNTI4IEMwLjYwMSwxNi43ODggMC42MDEsMTcuMjExIDAuODYxLDE3LjQ3MSBMOS4xOTQsMjUuODA0IEM5LjMxOSwyNS45MjkgOS40ODksMjYgOS42NjYsMjYgQzkuODA5LDI2LjAzNyAxMC4wMTcsMjUuOTI3IDEwLjE0MiwyNS44IEwyNi40NzUsOS4xMzMgQzI2LjU5Niw5LjAwOSAyNi42NjYsOC44NDEgMjYuNjY2LDguNjY2IEwyNi42NjcsOC42NjcgWiBNMjUuMzMzLDguMzk1IEw5LjY2MSwyNC4zODYgTDIuMjc2LDE3LjAwMSBMMTcuOTMyLDEuMzM0IEwyNS4zMzMsMS4zMzQgTDI1LjMzMyw4LjM5NSBaIE0yMS4zMzMsOCBDMjIuODA0LDggMjQsNi44MDQgMjQsNS4zMzMgQzI0LDMuODYyIDIyLjgwNCwyLjY2NiAyMS4zMzMsMi42NjYgQzE5Ljg2MiwyLjY2NiAxOC42NjYsMy44NjIgMTguNjY2LDUuMzMzIEMxOC42NjYsNi44MDQgMTkuODYyLDggMjEuMzMzLDggWiBNMjEuMzMzLDQgQzIyLjA2OSw0IDIyLjY2Niw0LjU5NyAyMi42NjYsNS4zMzMgQzIyLjY2Niw2LjA2OSAyMi4wNjksNi42NjYgMjEuMzMzLDYuNjY2IEMyMC41OTcsNi42NjYgMjAsNi4wNjkgMjAsNS4zMzMgQzIwLDQuNTk3IDIwLjU5Nyw0IDIxLjMzMyw0IFogTTI0LjY2NywxNy4zMzMgQzI4LjcwOSwxNy4zMzMgMzIsMjAuNjI0IDMyLDI0LjY2NiBDMzIsMjguNzA4IDI4LjcwOSwzMS45OTkgMjQuNjY3LDMxLjk5OSBDMjAuNjI1LDMxLjk5OSAxNy4zMzQsMjguNzA4IDE3LjMzNCwyNC42NjYgQzE3LjMzNCwyMC42MjQgMjAuNjI0LDE3LjMzMyAyNC42NjcsMTcuMzMzIFogTTI0LjY2NywzMC42NjcgQzI3Ljk3NSwzMC42NjcgMzAuNjY3LDI3Ljk3NSAzMC42NjcsMjQuNjY3IEMzMC42NjcsMjEuMzU5IDI3Ljk3NSwxOC42NjcgMjQuNjY3LDE4LjY2NyBDMjEuMzU5LDE4LjY2NyAxOC42NjcsMjEuMzU5IDE4LjY2NywyNC42NjcgQzE4LjY2NywyNy45NzUgMjEuMzU5LDMwLjY2NyAyNC42NjcsMzAuNjY3IFogTTI3LjUyOSwyMi4xOTMgTDI3LjUyOCwyMi4xOTMgQzI3Ljc5MiwyMS45MzIgMjguMjEyLDIxLjkzOSAyOC40NzIsMjIuMTk2IEMyOC43MzEsMjIuNDU3IDI4LjcyOCwyMi44OCAyOC40NjgsMjMuMTQgTDI0LjQzNSwyNy4xNCBDMjQuMzA5LDI3LjI2NCAyNC4xNCwyNy4zMzMgMjMuOTY0LDI3LjMzMyBDMjMuNzc0LDI3LjMxMyAyMy42MTYsMjcuMjYyIDIzLjQ4OSwyNy4xMzQgTDIwLjg1NiwyNC40NjIgQzIwLjU5OSwyNC4yIDIwLjYwMSwyMy43NzggMjAuODY0LDIzLjUxOSBDMjEuMTI0LDIzLjI2MyAyMS41NSwyMy4yNjMgMjEuODA3LDIzLjUyNyBMMjMuOTcsMjUuNzIyIEwyNy41MjksMjIuMTkzIFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMgNCkiLz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzIDQpIj4KICAgIDxwYXRoIGQ9Ik0yNSwxNiBDMjAuNTg4LDE2IDE3LDE5LjU4OCAxNywyNCBDMTcsMjguNDEyIDIwLjU4OCwzMiAyNSwzMiBDMjkuNDEyLDMyIDMzLDI4LjQxMiAzMywyNCBDMzMsMTkuNTg4IDI5LjQxMiwxNiAyNSwxNiBaIE0yNSwzMC42NjcgQzIxLjMyNCwzMC42NjcgMTguMzMzLDI3LjY3NiAxOC4zMzMsMjQgQzE4LjMzMywyMC4zMjQgMjEuMzI0LDE3LjMzMyAyNSwxNy4zMzMgQzI4LjY3NiwxNy4zMzMgMzEuNjY3LDIwLjMyNCAzMS42NjcsMjQgQzMxLjY2NywyNy42NzYgMjguNjc2LDMwLjY2NyAyNSwzMC42NjcgWiIvPgogICAgPHBhdGggZD0iTTI5LjM2NCwyMy40MTYgTDIzLjMyMywyMC4wODMgQzIzLjExNiwxOS45NyAyMi44NjQsMTkuOTc0IDIyLjY2MiwyMC4wOTIgQzIyLjQ1OCwyMC4yMTIgMjIuMzM0LDIwLjQzMSAyMi4zMzQsMjAuNjY3IEwyMi4zMzQsMjcuMzU1IEMyMi4zMzQsMjcuNTkxIDIyLjQ1OSwyNy44MSAyMi42NjMsMjcuOTMgQzIyLjc2NywyNy45OTEgMjIuODg0LDI4LjAyMiAyMywyOC4wMjIgQzIzLjExMSwyOC4wMjIgMjMuMjIzLDI3Ljk5NCAyMy4zMjQsMjcuOTM4IEwyOS4zNjUsMjQuNTgzIEMyOS41NzcsMjQuNDY2IDI5LjcwOSwyNC4yNDIgMjkuNzA4LDIzLjk5OSBDMjkuNzA4LDIzLjc1NiAyOS41NzYsMjMuNTM0IDI5LjM2NCwyMy40MTYgWiBNMjMuNjY3LDI2LjIyMSBMMjMuNjY3LDIxLjc5NiBMMjcuNjY2LDI0LjAwMyBMMjMuNjY3LDI2LjIyMiBMMjMuNjY3LDI2LjIyMSBaIi8+CiAgICA8cGF0aCBkPSJNMzIuMzMzIDkuMzMzTDEuNjY2IDkuMzMzQzEuMjk4IDkuMzMzLjk5OSA5LjYzMi45OTkgMTBMLjk5OSAyNi44MDFDLjk5OSAyOC4xOTcgMi4xNTggMjkuMzMzIDMuNTgzIDI5LjMzM0wxNC4zMzIgMjkuMzMzIDE0LjMzMiAyOCAzLjU4MyAyOEMyLjg5MiAyOCAyLjMzMiAyNy40NjMgMi4zMzIgMjYuODAxTDIuMzMyIDEwLjY2NiAzMS42NjUgMTAuNjY2IDMxLjY2NSAxNS45OTMgMzIuOTk4IDE1Ljk5MyAzMi45OTggMTBDMzIuOTk4IDkuNjMyIDMyLjY5OSA5LjMzMyAzMi4zMzEgOS4zMzNMMzIuMzMzIDkuMzMzek0zMSAwTDMgMEMxLjg5NyAwIDEgLjg5NyAxIDIuMDAxTDEgNy4zMzNDMSA3LjcwMSAxLjI5OSA4IDEuNjY3IDhMMzIuMzM0IDhDMzIuNzAyIDggMzMuMDAxIDcuNzAxIDMzLjAwMSA3LjMzM0wzMy4wMDEgMi4wMDFDMzMuMDAxLjg5NyAzMi4xMDQgNC40NDA4OTIxZS0xNiAzMS4wMDEgNC40NDA4OTIxZS0xNkwzMSAwek0zMS42MiAxLjc3MkwyNi43MjUgNi42NjcgMjMuMjc3IDYuNjY3IDI4LjYxIDEuMzM0IDMwLjk5OSAxLjMzNEMzMS4yODYgMS4zMzQgMzEuNTI2IDEuNTE4IDMxLjYxOSAxLjc3M0wzMS42MiAxLjc3MnpNMTIuNjExIDEuMzMzTDE2LjA1OSAxLjMzMyAxMC43MjYgNi42NjYgNy4yNzggNi42NjYgMTIuNjExIDEuMzMzek01LjM5MiA2LjY2N0wyLjYxMSA2LjY2NyA3Ljk0NCAxLjMzNCAxMC43MjUgMS4zMzQgNS4zOTIgNi42Njd6TTE3Ljk0NCAxLjMzM0wyMS4zOTIgMS4zMzMgMTYuMDU5IDYuNjY2IDEyLjYxMSA2LjY2NiAxNy45NDQgMS4zMzN6TTIzLjI3NyAxLjMzM0wyNi43MjUgMS4zMzMgMjEuMzkyIDYuNjY2IDE3Ljk0NCA2LjY2NiAyMy4yNzcgMS4zMzN6TTMgMS4zMzNMNi4wNTkgMS4zMzMgMi4zMzQgNS4wNTggMi4zMzQgMi4wMDFDMi4zMzQgMS42MzMgMi42MzMgMS4zMzMgMy4wMDEgMS4zMzNMMyAxLjMzM3pNMjguNjExIDYuNjY3TDMxLjY2NyAzLjYxMSAzMS42NjcgNi42NjcgMjguNjExIDYuNjY3eiIvPgogIDwvZz4KPC9zdmc+Cg=="
},function(e,t){e.exports={feature:"PlexPassFeature-feature-227Do",featurePadding:"PlexPassFeature-featurePadding-3qxKL",featureImage:"PlexPassFeature-featureImage-1MQuZ",featureContainer:"PlexPassFeature-featureContainer-5yGpR",featureTitle:"PlexPassFeature-featureTitle-cBOf4",featureDescription:"PlexPassFeature-featureDescription-2mgxr"}},function(e,t){e.exports={plexPassTitle:"PlexPassModalContent-plexPassTitle-3B6zq",header:"PlexPassModalContent-header-2D-A9 ModalHeader-modalHeader-1Kf9R",
body:"PlexPassModalContent-body-3BSt2 ModalBody-innerModalBody-36gmb",moreFeatures:"PlexPassModalContent-moreFeatures-2qv0-",footer:"PlexPassModalContent-footer-15_IJ ModalFooter-modalFooter-30WIB",planButton:"PlexPassModalContent-planButton-3JY2b",link:"PlexPassModalContent-link-3Xt-y",linkSeparator:"PlexPassModalContent-linkSeparator-2yiHh",spinnerContainer:"PlexPassModalContent-spinnerContainer-ytMIf",plansContainer:"PlexPassModalContent-plansContainer-2boTW",
isPlansPending:"PlexPassModalContent-isPlansPending-SjJBD"}},function(e,t,n){n(2922),e.exports=n(120).Object.getPrototypeOf},function(e,t,n){var i=n(503),a=n(1130);n(1127)("getPrototypeOf",function(){return function(e){return a(i(e))}})},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ChannelMappingModel",context:["server"],rootPropertyName:"ChannelMapping",idAttribute:"deviceIdentifier",syncedAttrs:{deviceIdentifier:a.a.string,lineupIdentifier:a.a.string,enabled:a.a.boolean
},defaults:{enabled:!1}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(684),r=n(2925),o=i.a.extend({name:"MediaGrabberDeviceChannelCollection",context:["server"],model:r.a,comparator:function(e,t){return Object(a.a)(e.get("identifier"),t.get("identifier"))}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"MediaGrabberDeviceChannelModel",rootPropertyName:"DeviceChannel",idAttribute:"key",syncedAttrs:{key:a.a.string,identifier:a.a.string,name:a.a.string,
drm:a.a.boolean,hd:a.a.boolean,signalStrength:a.a.integer,signalQuality:a.a.integer},augmentResponse:function(e){return e.key=e.key||e.identifier,e}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"DVRNetworkModel",sessionAttrs:{key:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(2928),r=i.a.extend({name:"DVRSetupErrorMessageCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({
name:"DVRSetupErrorMessageModel",sessionAttrs:{id:a.a.string,message:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(2930),o=n(1406),s=n(2931),l=n(1407),c=n(2932),u=n(2935),d=n(929),p=i.a.extend({name:"EPGSettingsModel",context:["server"],sessionAttrs:{baseUrl:a.a.string,postalCode:a.a.string,isFetching:a.a.boolean,isPopulated:a.a.boolean},sessionRelations:{countries:{relationClass:r.a},languages:{relationClass:u.a},regions:{relationClass:s.a},lineupGroup:{
relationClass:c.a},selectedCountry:{relationClass:o.a,deferred:!0},selectedLanguage:{relationClass:d.a,deferred:!0},selectedRegion:{relationClass:l.a,deferred:!0}},defaults:{baseUrl:"/livetv/epg/countries",isFetching:!1,isPopulated:!1,postalCode:""}});t.a=p},function(e,t,n){"use strict";var i=n(25),a=n(1406),r=i.a.extend({name:"EPGCountryCollection",context:["server"],model:a.a,url:"/livetv/epg/countries"});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(1407),r=i.a.extend({
name:"EPGCountryRegionCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(2933),o=i.a.extend({name:"EPGLineupGroupModel",context:["server"],idAttribute:"uuid",syncedAttrs:{uuid:a.a.string},syncedRelations:{lineups:{relationClass:r.a,rootPropertyName:"Lineup"}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(2934),r=i.a.extend({name:"EPGCountryRegionCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"EPGLineupModel",context:["server"],idAttribute:"uuid",rootPropertyName:"Lineup",syncedAttrs:{uuid:a.a.string,type:a.a.string,title:a.a.string,lineupType:a.a.integer,location:a.a.string},defaults:{location:""}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(929),r=i.a.extend({name:"EPGLanguageCollection",context:["server"],model:a.a,url:"/livetv/epg/languages"});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(2937),r=i.a.extend({
name:"EPGChannelCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"EPGChannelModel",context:["server"],rootPropertyName:"Channel",idAttribute:"identifier",syncedAttrs:{identifier:a.a.string,callSign:a.a.string,thumb:a.a.string,title:a.a.string,hd:a.a.boolean},defaults:{hd:!1}});t.a=r},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(138)),f=n(1408),v={context:h.k},g=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onCreateDVRPress=function(){a.setState({isDVRSetupModalOpen:!0})},a.onDVRSetupModalClose=function(){a.setState({isDVRSetupModalOpen:!1}),a.props.onModalClose&&a.props.onModalClose()},a.state={isDVRSetupModalOpen:n.isModalOpen},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.isDvrsPending,r=e.hasDVRs,o=e.hasDVRFeature,s=e.children,l=this.state.isDVRSetupModalOpen,c=!i&&!r;return a()("div",{className:t},void 0,s&&s({serverEntityID:n,hasDVRFeature:o,noDVRs:c,onOpen:this.onCreateDVRPress}),a()(f.a,{serverEntityID:n,metricsProperties:v,isOpen:l,onModalClose:this.onDVRSetupModalClose}))},t}(p.Component);g.defaultProps={isModalOpen:!1},t.a=g},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(b.a,function(e){return{step:e.step}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(685)),y=n(176),b=n(201),I=n(2941),S=n(2979),M=n(2982),D=n(2985),C=n(2988),j=n(2991),P=n(2997),O={clearDVRSetup:y.g},T=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentWillUnmount=function(){this.props.clearDVRSetup()},
t.prototype.render=function(){var e=this.props,t=e.step,n=r()(e,["step"]);switch(t){case m.b.DEVICE:return f.a.createElement(S.a,n);case m.b.UNSUPPORTED_DEVICE:return f.a.createElement(M.a,n);case m.b.DEVICE_CHANNELS:return f.a.createElement(I.a,n);case m.b.EPG:return f.a.createElement(j.a,n);case m.b.EPG_MAPPING:return f.a.createElement(C.a,n);case m.b.CHANNEL_MAPPING:return f.a.createElement(P.a,n);case m.b.EPG_DOWNLOAD:return f.a.createElement(D.a,n)}},t}(h.Component)
;t.a=Object(v.connect)(i,O)(T)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=s[e]||o;return{times:e+1,remindAfter:Object(r.a)(Object(a.a)(new Date,t))}}var a=n(234),r=n(147),o=180,s=[7,30,60,90,o];t.a=i},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(j.a,P.a,Object(C.a)(),function(e,t,n){var i=e.selectedDevice,a=i.sources.reduce(function(e,t){var n,i;switch(t){case"0":e.push((n={},
n[t]=Object(S.default)("Antenna"),n));break;case"1":e.push((i={},i[t]=Object(S.default)("Cable"),i))}return e},[]),r=e.scanPrefs,o=e.scanNetworks,s=e.hasScannedChannels,l=e.epgSettings,c=l.selectedCountry,u=l.countries,d=u.length>0,p=c?c.code:"",h=u.reduce(function(e,t){var n;return e.push((n={},n[t.code]=t.title,n)),e},[]);return{selectedDevice:i,setupErrorMessage:t,isChannelsPending:i.isChannelsPending,sourceOptions:a,countriesPopulated:d,selectedCountryCode:p,countryOptions:h,scanPrefs:r,
scanNetworks:o,hasScannedChannels:s,channelScanActivity:n}})}function a(e,t){var n=t.serverEntityID;return{dispatchFetchDeviceDetails:function(){e(D.p({serverEntityID:n}))},dispatchFetchDeviceChannels:function(){e(D.o({serverEntityID:n}))},dispatchFetchEPGCountries:function(){e(Object(M.fetchEPGCountries)({serverEntityID:n}))},dispatchCancelScanDeviceChannels:function(t){e(D.c({serverEntityID:n,deviceID:t}))},onDeviceSourceSelect:function(t){e(D.A({serverEntityID:n,source:t}))},
onScanDeviceChannels:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(D.y(f()({serverEntityID:n},t)))},onCountrySelect:function(t){e(Object(M.selectEPGCountry)({serverEntityID:n,countryCode:t}))},onClearDeviceScanPrefs:function(){e(D.h({serverEntityID:n}))}}}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),
n(36)),S=n(3),M=n(686),D=n(176),C=n(1409),j=n(201),P=n(457),O=n(2942),T=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onCancelScanDeviceChannels=function(){a.setState({isCancellingChannelScan:!0}),a.props.dispatchCancelScanDeviceChannels(a.props.selectedDevice.key)},a.state={isCancellingChannelScan:!1},a}return p()(t,e),t.prototype.componentWillMount=function(){this.props.channelScanActivity&&this.setState({isCancellingChannelScan:!0})},
t.prototype.componentDidMount=function(){var e=this,t=this.props.selectedDevice,n=t.source>-1?t.source.toString():t.sources[0];Object(I.a)(function(){e.props.dispatchFetchDeviceDetails(),e.props.dispatchFetchDeviceChannels(),e.props.dispatchFetchEPGCountries(),e.props.onDeviceSourceSelect(n),e.props.onClearDeviceScanPrefs()})},t.prototype.componentWillReceiveProps=function(e){!e.channelScanActivity&&this.props.channelScanActivity&&this.setState({isCancellingChannelScan:!1})},
t.prototype.componentDidUpdate=function(e,t){var n=this;this.props.channelScanActivity||!e.channelScanActivity||this.props.scanNetworks||Object(I.a)(function(){n.props.dispatchFetchDeviceChannels()})},t.prototype.componentWillUnmount=function(){this.props.channelScanActivity&&!this.state.isCancellingChannelScan&&this.props.dispatchCancelScanDeviceChannels(this.props.selectedDevice.key)},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchDeviceDetails,e.dispatchFetchDeviceChannels,
e.dispatchFetchEPGCountries,e.dispatchCancelScanDeviceChannels,o()(e,["dispatchFetchDeviceDetails","dispatchFetchDeviceChannels","dispatchFetchEPGCountries","dispatchCancelScanDeviceChannels"]));return m.a.createElement(O.a,f()({isCancellingChannelScan:this.state.isCancellingChannelScan,onCancelScanDeviceChannels:this.onCancelScanDeviceChannels},t))},t}(g.Component);t.a=Object(y.connect)(i,a)(T)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(80),m=n(42),y=n(186),b=n(238),I=n(149),S=n(255),M=n(61),D=n(115),C=n(3),j=n(139),P=n(387),O=n(458),T=n(931),E=n(932),w=n(24),A=n(1410),x=n(2956),N=n(2976),L=n(2978),k=n.n(L),R=o()(E.a,{}),z=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),
i.onScanDeviceChannelsPress=function(e){var t=i.props.scanPrefs.length?{prefs:e}:e;i.props.onScanDeviceChannels(t)},i.onDeviceSourceSelect=function(e){i.props.onDeviceSourceSelect(e),i.clearExistingScanPrefs()},i.onCountrySelect=function(e){i.props.onCountrySelect(e),i.clearExistingScanPrefs()},a=n,u()(i,a)}return p()(t,e),t.prototype.clearExistingScanPrefs=function(){var e=this.props,t=e.selectedDevice,n=e.scanPrefs,i=e.scanNetworks,a=e.onScanDeviceChannels,r=e.onClearDeviceScanPrefs
;n.length?(r(),a(t.deviceID)):i.length&&r()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.selectedDevice,r=e.setupErrorMessage,s=e.isChannelsPending,l=e.sourceOptions,c=e.channelScanActivity,u=e.isCancellingChannelScan,d=e.selectedCountryCode,p=e.countryOptions,h=e.countriesPopulated,f=e.scanPrefs,E=e.scanNetworks,L=e.hasScannedChannels,z=e.onCancelScanDeviceChannels,U=e.onModalClose,B=i.selectedSource||i.sources[0],F=c?parseInt(c.Response.channels,10):i.channels.length,_=!(!F||c||s),V=!!f.length,H=!!E.length,Q=[{
"":Object(C.default)("Select Country")}].concat(p),Y=i.channels.some(function(e){return null!=e.signalQuality||null!=e.signalStrengh}),G=!(i&&i.channels.length&&!c&&d);return o()(P.a,{errorMessage:r,onModalClose:U},void 0,o()(M.a,{className:k.a.deviceInfoBody,scrollDirection:w.d.NONE},void 0,o()(y.b,{className:k.a.deviceInfoForm,onSubmit:this.onScanDeviceChannelsPress},void 0,o()("div",{className:k.a.channelInfo},void 0,o()(N.a,{channelCount:F,hasSignalStrength:Y,isChannelsPending:s,
channelScanActivity:c,hasScanPrefs:V,hasScanNetworks:H}),o()("div",{},void 0,o()(j.a,{type:c?"button":"submit",kind:c||F||s?w.b.DEFAULT:w.b.PRIMARY,size:w.e.MEDIUM,isSpinning:u,isDisabled:!d||u,onPress:c?z:null},void 0,c?Object(C.default)("Stop scanning"):Object(C.default)("Scan channels")))),o()("div",{className:k.a.channelDetails},void 0,o()("div",{className:k.a.deviceDetails},void 0,v.a.createElement(A.a,a()({serverEntityID:t,deviceID:i.key,channelCount:F,includeChannelCount:!0
},i)),o()(b.a,{},void 0,o()(S.a,{className:k.a.channelScanSourceSelect,name:"deviceSource",value:B,values:l,isDisabled:!!c,onChange:this.onDeviceSourceSelect})),h&&o()(b.a,{className:k.a.countryInputGroup},void 0,o()(I.a,{},void 0,Object(C.default)("Country")),o()(S.a,{name:"countrySelect",value:d,values:Q,isDisabled:!!c,onChange:this.onCountrySelect}))),o()("div",{className:k.a.deviceChannelsContainer},void 0,o()(g.a,{className:_?k.a.deviceChannels:k.a.deviceChannelsInfo,autoScroll:!0
},void 0,o()(x.a,{selectedDevice:i,channelCount:F,isChannelsPending:s,channelScanActivity:c,scanPrefs:f,scanNetworks:E,hasScannedChannels:L})))))),o()(O.a,{},void 0,o()(D.a,{},void 0,o()(m.a,{kind:w.b.DEFAULT,size:w.e.MEDIUM,onPress:U},void 0,Object(C.default)("Cancel"))),o()(D.a,{},void 0,R,o()(T.a,{dvrID:n,isDisabled:G}))))},t}(f.Component);z.defaultProps={scanPrefs:[],scanNetworks:[]},t.a=z},function(e,t){e.exports={group:"FormGroup-group-Gtcqp"}},function(e,t){e.exports={
input:"SelectInput-input-x1tNm input-input-1P2Vi",small:"SelectInput-small-2QgMQ input-small-3LyjJ",select:"SelectInput-select-3zFgU",large:"SelectInput-large-8FdD3 input-large-3wNGT",isDisabled:"SelectInput-isDisabled-1d1Xj",hasError:"SelectInput-hasError-3tk9i"}},function(e,t){e.exports={button:"SpinnerButton-button-1A8Ec Button-button-2kT68 Link-link-2n0yJ",spinnerContainer:"SpinnerButton-spinnerContainer-1NdZW",spinner:"SpinnerButton-spinner-1TgDP Spinner-spinner-Niere spin-spin-2kLwt",
label:"SpinnerButton-label-qxG01",isSpinning:"SpinnerButton-isSpinning-bbh-4"}},function(e,t){e.exports={sectionError:"FormSectionError-sectionError-3ZuKe",sectionErrorIcon:"FormSectionError-sectionErrorIcon--74cE"}},function(e,t){e.exports={footer:"DVRSetupModalFooter-footer-VLPNT ModalFooter-modalFooter-30WIB"}},function(e,t){e.exports={selectButton:"SelectButton-selectButton-3Kbjm",isSelected:"SelectButton-isSelected-3mX24",selectCircle:"SelectButton-selectCircle-3tdvG",
selectedIcon:"SelectButton-selectedIcon-3-SAL"}},function(e,t){e.exports={unsupported:"UnsupportedDeviceIcon-unsupported-_Tz7j",unsupportedIcon:"UnsupportedDeviceIcon-unsupportedIcon-gpTqo",unsupportedTooltip:"UnsupportedDeviceIcon-unsupportedTooltip-38E6z Tooltip-bottomCenter-2yj43 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipCenterAlignArrow-35uHt"}},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzJmNDc0MSIvPgogPHBhdGggZD0ibTE0MCAyNDRjMC04LjI0MyA1LjgzMi0xNS4zNDcgMTQtMTYuNTE2bDI4LTMuNDgzaDE5NmwyOCAzLjQ4M2M4LjE4MyAxLjE2OSAxNCA4LjI4MSAxNCAxNi41MTZ2NzJjMCA4LjI0My01LjgzMiAxNS4zNDctMTQgMTYuNTE2bC0yOCAzLjQ4M2gtMTk2bC0yOC0zLjQ4M2MtOC4xODMtMS4xNjktMTQtOC4yODEtMTQtMTYuNTE2di03MiIgc3R5bGU9ImZpbGwtb3BhY2l0eTouMTQ5MDIiLz4KIDxwYXRoIGQ9Im0zNzggMzM2aC0xOTZsLTI4LTMuNDgzYy0uNTA2LS4wNzUtMS4wMS0uMTY4LTEuNTA2LS4yODgtMS4wODktLjI2MS0yLjE0OS0uNjM3LTMuMTU5LTEuMTItMi4xMzItMS4wMTgtNC4wMi0yLjUxNC01LjUyLTQuMzQtMS4yMzEtMS41MDItMi4xOTQtMy4yMi0yLjg0MS01LjA1LS40MzQtMS4yMzItLjcyNi0yLjUxMy0uODY5LTMuODExLS4wNjMtLjU2OS0uMTA0LTEuNzE0LS4xMDQtMS43MTR2LTcyLjM5YzAgMCAuMDQxLTEuMTQ2LjEwNC0xLjcxNi4xNDQtMS4yOTkuNDM2LTIuNTgxLjg3MS0zLjgxMi42NDgtMS44MzIgMS42MTItMy41NTEgMi44NDUtNS4wNSAxLjQ5OC0xLjgyNSAzLjM4OS0zLjMyIDUuNTE5LTQuMzM4IDEuMDEtLjQ4MiAyLjA2OS0uODU3IDMuMTU2LTEuMTE5LjQ5Ny0uMTE5Ljk5OS0uMjEyIDEuNTA0LS4yODdsMjgtMy40ODNoMTk2YzAgMCAxOC42NjcgMi4zMjIgMjggMy40ODMuNTA2LjA3NSAxLjAxLjE2OCAxLjUwNi4yODggMS4wODkuMjYxIDIuMTQ5LjYzNyAzLjE1OSAxLjEyIDIuMTMyIDEuMDE4IDQuMDIgMi41MTQgNS41MiA0LjM0IDEuMjMxIDEuNTAyIDIuMTk0IDMuMjIgMi44NDEgNS4wNS40MzQgMS4yMzIuNzI2IDIuNTEzLjg2OSAzLjgxMS4wNjMuNTY5LjEwNCAxLjcxNC4xMDQgMS43MTR2NzIuMzljMCAwLS4wNDEgMS4xNDYtLjEwNCAxLjcxNi0uMTQ0IDEuMjk5LS40MzYgMi41ODEtLjg3MSAzLjgxMi0uNjQ4IDEuODMyLTEuNjEyIDMuNTUxLTIuODQ1IDUuMDUtMS40OTggMS44MjUtMy4zODkgMy4zMi01LjUxOSA0LjMzOC0xLjAxLjQ4Mi0yLjA2OS44NTctMy4xNTYgMS4xMTktLjQ5Ny4xMTktLjk5OS4yMTItMS41MDQuMjg3bC0yOCAzLjQ4M20tLjU1OC0xMDNoLTE5NC44OGMtOS4xMjQgMS4xMzUtMTguMjc4IDIuMDUyLTI3LjM3MiAzLjQwNS0uMTEzLjAxOS0uMjI2LjAzOS0uMzM4LjA2MS0uNjQxLjEzNC0xLjI2LjM0OC0xLjg0MS42NS0uOTMxLjQ4Ni0xLjc0NSAxLjE4My0yLjM4NCAyLjAxLS40OTcuNjQ4LS44ODkgMS4zNzYtMS4xNjEgMi4xNDYtLjI5OS44NDYtLjQ2MSAyLjYyOS0uNDYxIDIuNjI5bC4wMDEgNzIuMjhjMCAwIC4xOTMgMS44MzQuNTE5IDIuNjk3LjI4Ny43NjIuNjkyIDEuNDc5IDEuMjAyIDIuMTE0LjY3MS44MzcgMS41MjQgMS41MjggMi40OTMgMS45OTEuNTk4LjI4NiAxLjIzMi40NzkgMS44ODQuNTkybC4wODcuMDE0LjAzMi4wMDQgMjcuMzM5IDMuNDAxaDE5NC44OGMwIDAgMTguMjc4LTIuMDUyIDI3LjM3MS0zLjQwNS42ODEtLjExIDEuMzQzLS4zMDcgMS45NjYtLjYwNCAxLjAyLS40ODggMS45MS0xLjIyNiAyLjU5OC0yLjEyMi40OC0uNjI1Ljg2MS0xLjMyNSAxLjEzMi0yLjA2NS4zMTctLjg2OS40OS0yLjcxLjQ5LTIuNzFsLS4wMDEtNzIuMjhjMCAwLS4xOTMtMS44MzQtLjUxOS0yLjY5OC0uMjg3LS43NjEtLjY5Mi0xLjQ3OC0xLjIwMS0yLjExMy0uNjU1LS44MTYtMS40ODItMS40OTQtMi40MjItMS45NTYtLjYxOS0uMzA1LTEuMjc4LS41MDktMS45NTYtLjYyN2wtLjA4Ni0uMDEzLS4wMzItLjAwNS0yNy4zNC0zLjQwMW0tMTMuNDQyIDM4YzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOW0tNDIgMGM0Ljk2NyAwIDkgNC4wMyA5IDkgMCA0Ljk2Ny00LjAzIDktOSA5LTQuOTY3IDAtOS00LjAzLTktOSAwLTQuOTY3IDQuMDMtOSA5LTltLTEyNiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOSIgc3R5bGU9ImZpbGw6IzkxYzUzYiIvPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzQxNDEzZSIvPgogPHBhdGggZD0ibTg0IDI0NGMwLTguMjQzIDUuODMyLTE1LjM0NyAxNC0xNi41MTZsNTYtMy40ODNoMjUybDU2IDMuNDgzYzguMTgzIDEuMTY5IDE0IDguMjgxIDE0IDE2LjUxNnY3MmMwIDguMjQzLTUuODMyIDE1LjM0Ny0xNCAxNi41MTZsLTU2IDMuNDgzaC0yNTJsLTU2LTMuNDgzYy04LjE4My0xLjE2OS0xNC04LjI4MS0xNC0xNi41MTZ2LTcyIiBzdHlsZT0iZmlsbC1vcGFjaXR5Oi4xNDkwMiIvPgogPHBhdGggZD0ibTQwNiAzMzZoLTI1MmwtNTYtMy40ODNjLS41MDYtLjA3NS0xLjAxLS4xNjgtMS41MDYtLjI4OC0xLjA4OS0uMjYxLTIuMTQ5LS42MzctMy4xNTktMS4xMi0yLjEzMi0xLjAxOC00LjAyLTIuNTE0LTUuNTItNC4zNC0xLjIzMS0xLjUwMi0yLjE5NC0zLjIyLTIuODQxLTUuMDUtLjQzNC0xLjIzMi0uNzI2LTIuNTEzLS44NjktMy44MTEtLjA2My0uNTY5LS4xMDQtMS43MTQtLjEwNC0xLjcxNHYtNzIuMzljMCAwIC4wNDEtMS4xNDYuMTA0LTEuNzE2LjE0NC0xLjI5OS40MzYtMi41ODEuODcxLTMuODEyLjY0OC0xLjgzMiAxLjYxMi0zLjU1MSAyLjg0NS01LjA1IDEuNDk4LTEuODI1IDMuMzg5LTMuMzIgNS41MTktNC4zMzggMS4wMS0uNDgyIDIuMDY5LS44NTcgMy4xNTYtMS4xMTkuNDk3LS4xMTkuOTk5LS4yMTIgMS41MDQtLjI4N2w1Ni0zLjQ4M2gyNTJjMCAwIDM3LjMzIDIuMzIyIDU2IDMuNDgzLjUwNi4wNzUgMS4wMS4xNjggMS41MDYuMjg4IDEuMDg5LjI2MSAyLjE0OS42MzcgMy4xNTkgMS4xMiAyLjEzMiAxLjAxOCA0LjAyIDIuNTE0IDUuNTIgNC4zNCAxLjIzMSAxLjUwMiAyLjE5NCAzLjIyIDIuODQxIDUuMDUuNDM0IDEuMjMyLjcyNiAyLjUxMy44NjkgMy44MTEuMDYzLjU2OS4xMDQgMS43MTQuMTA0IDEuNzE0djcyLjM5YzAgMC0uMDQxIDEuMTQ2LS4xMDQgMS43MTYtLjE0NCAxLjI5OS0uNDM2IDIuNTgxLS44NzEgMy44MTItLjY0OCAxLjgzMi0xLjYxMiAzLjU1MS0yLjg0NSA1LjA1LTEuNDk4IDEuODI1LTMuMzg5IDMuMzItNS41MTkgNC4zMzgtMS4wMS40ODItMi4wNjkuODU3LTMuMTU2IDEuMTE5LS40OTcuMTE5LS45OTkuMjEyLTEuNTA0LjI4N2wtNTYgMy40ODNtLS4yOC0xMDNoLTI1MS40NGwtNTUuMjkgMy40MzljLS4xMDMuMDE5LS4yMDYuMDQtLjMwOC4wNjMtLjYwOC4xNDItMS4xOTUuMzU2LTEuNzQ1LjY1MS0uOTUxLjUxLTEuNzc2IDEuMjQxLTIuNDEzIDIuMTExLS40NTEuNjE0LS44MDggMS4yOTUtMS4wNjIgMi4wMS0uMjk5Ljg0NS0uNDYxIDIuNjI4LS40NjEgMi42Mjh2NzIuMjhjMCAwIC4xOTMgMS44MzQuNTE5IDIuNjk4LjI4Ny43NjEuNjkyIDEuNDc4IDEuMjAyIDIuMTEzLjY3MS44MzggMS41MjQgMS41MjggMi40OTMgMS45OTEuNTYzLjI2OSAxLjE2LjQ1OSAxLjc3NC41NzJsNTUuMjkgMy40MzloMjUxLjQ0bDU1LjI5LTMuNDM5Yy42MTItLjExMyAxLjIwNy0uMzAyIDEuNzY5LS41NyAxLjAyLS40ODggMS45MS0xLjIyNiAyLjU5OC0yLjEyMi40OC0uNjI1Ljg2MS0xLjMyNSAxLjEzMi0yLjA2NS4zMTctLjg2OS40OS0yLjcxLjQ5LTIuNzFsLS4wMDEtNzIuMjhjMCAwLS4xOTMtMS44MzQtLjUxOS0yLjY5OC0uMjg3LS43NjEtLjY5Mi0xLjQ3OC0xLjIwMS0yLjExMy0uNjcyLS44MzgtMS41MjUtMS41MjgtMi40OTUtMS45OTItLjU2My0uMjY5LTEuMTYtLjQ1OC0xLjc3My0uNTcxbC01NS4yOS0zLjQzOW0tNDEuNzIgMzhjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOW0tNDIgMGM0Ljk2NyAwIDkgNC4wMyA5IDkgMCA0Ljk2Ny00LjAzIDktOSA5LTQuOTY3IDAtOS00LjAzLTktOSAwLTQuOTY3IDQuMDMtOSA5LTltLTg0IDBjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOSIgc3R5bGU9ImZpbGw6I2Y3OTQxZSIvPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzFlNDI1NCIvPgogPHBhdGggZD0ibTQyMCAyMzhjMC03LjcyNi02LjI3NS0xNC0xNC0xNGgtMjUyYy03LjcyNyAwLTE0IDYuMjc0LTE0IDE0djg0YzAgNy43MjcgNi4yNzMgMTQgMTQgMTRoMjUyYzcuNzI2IDAgMTQtNi4yNzMgMTQtMTR2LTg0IiBzdHlsZT0iZmlsbC1vcGFjaXR5Oi4xNDkwMiIvPgogPHBhdGggZD0ibTQwNi4xOCAyMjRjMCAwIC45NTIuMDM2IDEuNDI2LjA5IDEuMDM2LjExOSAyLjA1OS4zNTQgMy4wNDMuNzAxIDEuOTE2LjY3NSAzLjY3NSAxLjc3NCA1LjEyOCAzLjE5MiAxLjQ5MiAxLjQ1OCAyLjY1NCAzLjI0NiAzLjM3MiA1LjIwNC4zNTguOTc4LjYwNiAxLjk5Ny43MzcgMy4wMy4wNjguNTMyLjExMiAxLjYwMS4xMTIgMS42MDF2ODQuMzZjMCAwLS4wNDQgMS4wNjktLjExMiAxLjYwMS0uMTMxIDEuMDMzLS4zNzkgMi4wNTItLjczNyAzLjAzLS43MTggMS45NTgtMS44OCAzLjc0Ni0zLjM3MiA1LjIwNC0xLjQ1MyAxLjQxOC0zLjIxMiAyLjUxNy01LjEyOCAzLjE5Mi0uOTg0LjM0Ny0yLjAxLjU4Mi0zLjA0My43MDEtLjQ3NC4wNTQtMS40MjYuMDktMS40MjYuMDloLTI1Mi4zNmMwIDAtLjk1Mi0uMDM2LTEuNDI2LS4wOS0xLjAzNi0uMTE5LTIuMDU5LS4zNTQtMy4wNDMtLjcwMS0xLjkxNi0uNjc1LTMuNjc1LTEuNzc0LTUuMTI4LTMuMTkyLTEuNDkyLTEuNDU4LTIuNjU0LTMuMjQ2LTMuMzcyLTUuMjA0LS4zNTgtLjk3OC0uNjA2LTEuOTk3LS43MzctMy4wMy0uMDY4LS41MzItLjExMi0xLjYwMS0uMTEyLTEuNjAxdi04NC4zNmMwIDAgLjA0NC0xLjA2OS4xMTItMS42MDEuMTMxLTEuMDMzLjM3OS0yLjA1Mi43MzctMy4wMy43MTgtMS45NTggMS44OC0zLjc0NiAzLjM3Mi01LjIwNCAxLjQ1My0xLjQxOCAzLjIxMi0yLjUxNyA1LjEyOC0zLjE5Mi45ODQtLjM0NyAyLjAxLS41ODIgMy4wNDMtLjcwMS40NzQtLjA1NCAxLjQyNi0uMDkgMS40MjYtLjA5aDI1Mi4zNm0tMjUyLjE1IDguOTk5YzAgMC0uNDA4LjAxLS42MTEuMDMzLS40MDYuMDQ3LS44MDYuMTQ0LTEuMTg4LjI4OS0xLjM0NC41MTEtMi40MzQgMS42MTQtMi45MjggMi45NjMtLjE5NC41MjktLjMgMS42NDgtLjMgMS42NDhsLjAwMSA4NC4yYzAgMCAuMTEyIDEuMDc0LjI5OSAxLjU4Mi40OTQgMS4zNDkgMS41ODQgMi40NTIgMi45MjggMi45NjMuNTI0LjIgMS42MzguMzIgMS42MzguMzJoMjUyLjI3YzAgMCAxLjExNC0uMTIgMS42MzktLjMyIDEuMzQzLS41MTEgMi40MzMtMS42MTQgMi45MjctMi45NjMuMTg2LS41MDguMjk5LTEuNTgyLjI5OS0xLjU4MnYtODQuMjdjMCAwLS4xMi0xLjExNC0uMzItMS42MzgtLjUxMS0xLjM0NC0xLjYxNC0yLjQzNC0yLjk2My0yLjkyOC0uNTA4LS4xODctMS41ODItLjI5OS0xLjU4Mi0uMjk5bC0yNTIuMS0uMDAybTEwMS43MSA2My40MmgtNi45NjN2LTMyLjgzOGg2Ljk2M3YxMi44N2gxMy4wMXYtMTIuODdoNi45NDF2MzIuODM4aC02Ljk0MXYtMTQuMTczaC0xMy4wMXYxNC4xNzNtMzcuNTMyIDBoLTkuMjk4di0zMi44MzhoMTAuMzA5YzUuMzYxIDAgOS41MjQgMS40MTUgMTIuNDg4IDQuMjQ1IDIuOTY1IDIuODMgNC40NDggNi43ODMgNC40NDggMTEuODYgMCA1LjQwNS0xLjUzOSA5LjU0NS00LjYxNiAxMi40Mi0zLjA3NyAyLjg3NS03LjUyIDQuMzEzLTEzLjMzMSA0LjMxM20xLjM3MS0yNy4xM2gtMy43MDd2MjEuMzgzaDIuOTg4YzYuNzA4IDAgMTAuMDYtMy42MDEgMTAuMDYtMTAuODA0IDAtNy4wNS0zLjExNC0xMC41NzktOS4zNDMtMTAuNTc5IiBzdHlsZT0iZmlsbDojMzFhZmMwIi8+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzJmMzM0ZCIvPgogPHBhdGggZD0ibTg0IDI0NGMwLTguMjQzIDUuODMyLTE1LjM0NyAxNC0xNi41MTZsNTYtMy40ODNoMjUybDU2IDMuNDgzYzguMTgzIDEuMTY5IDE0IDguMjgxIDE0IDE2LjUxNnY3MmMwIDguMjQzLTUuODMyIDE1LjM0Ny0xNCAxNi41MTZsLTU2IDMuNDgzaC0yNTJsLTU2LTMuNDgzYy04LjE4My0xLjE2OS0xNC04LjI4MS0xNC0xNi41MTZ2LTcyIiBzdHlsZT0iZmlsbC1vcGFjaXR5Oi4xNDkwMiIvPgogPHBhdGggZD0ibTQwNiAzMzZoLTI1MmwtNTYtMy40ODNjLS41MDYtLjA3NS0xLjAxLS4xNjgtMS41MDYtLjI4OC0xLjA4OS0uMjYxLTIuMTQ5LS42MzctMy4xNTktMS4xMi0yLjEzMi0xLjAxOC00LjAyLTIuNTE0LTUuNTItNC4zNC0xLjIzMS0xLjUwMi0yLjE5NC0zLjIyLTIuODQxLTUuMDUtLjQzNC0xLjIzMi0uNzI2LTIuNTEzLS44NjktMy44MTEtLjA2My0uNTY5LS4xMDQtMS43MTQtLjEwNC0xLjcxNHYtNzIuMzljMCAwIC4wNDEtMS4xNDYuMTA0LTEuNzE2LjE0NC0xLjI5OS40MzYtMi41ODEuODcxLTMuODEyLjY0OC0xLjgzMiAxLjYxMi0zLjU1MSAyLjg0NS01LjA1IDEuNDk4LTEuODI1IDMuMzg5LTMuMzIgNS41MTktNC4zMzggMS4wMS0uNDgyIDIuMDY5LS44NTcgMy4xNTYtMS4xMTkuNDk3LS4xMTkuOTk5LS4yMTIgMS41MDQtLjI4N2w1Ni0zLjQ4M2gyNTJjMCAwIDM3LjMzIDIuMzIyIDU2IDMuNDgzLjUwNi4wNzUgMS4wMS4xNjggMS41MDYuMjg4IDEuMDg5LjI2MSAyLjE0OS42MzcgMy4xNTkgMS4xMiAyLjEzMiAxLjAxOCA0LjAyIDIuNTE0IDUuNTIgNC4zNCAxLjIzMSAxLjUwMiAyLjE5NCAzLjIyIDIuODQxIDUuMDUuNDM0IDEuMjMyLjcyNiAyLjUxMy44NjkgMy44MTEuMDYzLjU2OS4xMDQgMS43MTQuMTA0IDEuNzE0djcyLjM5YzAgMC0uMDQxIDEuMTQ2LS4xMDQgMS43MTYtLjE0NCAxLjI5OS0uNDM2IDIuNTgxLS44NzEgMy44MTItLjY0OCAxLjgzMi0xLjYxMiAzLjU1MS0yLjg0NSA1LjA1LTEuNDk4IDEuODI1LTMuMzg5IDMuMzItNS41MTkgNC4zMzgtMS4wMS40ODItMi4wNjkuODU3LTMuMTU2IDEuMTE5LS40OTcuMTE5LS45OTkuMjEyLTEuNTA0LjI4N2wtNTYgMy40ODNtLS4yOC0xMDNoLTI1MS40NGwtNTUuMjkgMy40MzljLS4xMDMuMDE5LS4yMDYuMDQtLjMwOC4wNjMtLjYwOC4xNDItMS4xOTUuMzU2LTEuNzQ1LjY1MS0uOTUxLjUxLTEuNzc2IDEuMjQxLTIuNDEzIDIuMTExLS40NTEuNjE0LS44MDggMS4yOTUtMS4wNjIgMi4wMS0uMjk5Ljg0NS0uNDYxIDIuNjI4LS40NjEgMi42Mjh2NzIuMjhjMCAwIC4xOTMgMS44MzQuNTE5IDIuNjk4LjI4Ny43NjEuNjkyIDEuNDc4IDEuMjAyIDIuMTEzLjY3MS44MzggMS41MjQgMS41MjggMi40OTMgMS45OTEuNTYzLjI2OSAxLjE2LjQ1OSAxLjc3NC41NzJsNTUuMjkgMy40MzloMjUxLjQ0bDU1LjI5LTMuNDM5Yy42MTItLjExMyAxLjIwNy0uMzAyIDEuNzY5LS41NyAxLjAyLS40ODggMS45MS0xLjIyNiAyLjU5OC0yLjEyMi40OC0uNjI1Ljg2MS0xLjMyNSAxLjEzMi0yLjA2NS4zMTctLjg2OS40OS0yLjcxLjQ5LTIuNzFsLS4wMDEtNzIuMjhjMCAwLS4xOTMtMS44MzQtLjUxOS0yLjY5OC0uMjg3LS43NjEtLjY5Mi0xLjQ3OC0xLjIwMS0yLjExMy0uNjcyLS44MzgtMS41MjUtMS41MjgtMi40OTUtMS45OTItLjU2My0uMjY5LTEuMTYtLjQ1OC0xLjc3My0uNTcxbC01NS4yOS0zLjQzOW0tNDEuNzIgMzhjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOW0tNDIgMGM0Ljk2NyAwIDkgNC4wMyA5IDkgMCA0Ljk2Ny00LjAzIDktOSA5LTQuOTY3IDAtOS00LjAzLTktOSAwLTQuOTY3IDQuMDMtOSA5LTltLTg0IDBjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOSIgc3R5bGU9ImZpbGw6Izk0NTA4ZCIvPgo8L3N2Zz4K"
},function(e,t){e.exports={image:"DVRDeviceImage-image-1q4Bg"}},function(e,t){e.exports={deviceImageContainer:"DVRSetupDevice-deviceImageContainer-2xU-H",selectButton:"DVRSetupDevice-selectButton-ae6X2 SelectButton-selectButton-3Kbjm",details:"DVRSetupDevice-details-3KGan",make:"DVRSetupDevice-make-1bKta",modelContainer:"DVRSetupDevice-modelContainer-2aBGG",model:"DVRSetupDevice-model-2C8RY",uri:"DVRSetupDevice-uri-1doZG",channelCount:"DVRSetupDevice-channelCount-3h5cj"}},function(e,t,n){
"use strict";function i(e){var t=e.selectedDevice,n=e.channelCount,i=e.isChannelsPending,a=e.channelScanActivity,o=e.scanPrefs,l=e.scanNetworks,c=e.hasScannedChannels;return a?s()("div",{className:y.a.container},void 0,s()(h.a,{size:90,progress:a.progress}),s()("div",{className:y.a.message},void 0,Object(d.default)("Scanning channels"))):o.length?s()(v.a,{className:y.a.settings,prefs:o}):l.length?s()(f.a,{className:y.a.settings,networks:l}):i?s()("div",{className:y.a.container
},void 0,s()("div",{className:y.a.message},void 0,Object(d.default)("Loading channels"))):n?s()("div",{},void 0,t.channels.map(function(e){return u.a.createElement(g.a,r()({key:e.identifier},e))})):c?s()("div",{className:y.a.container},void 0,s()("div",{className:y.a.noChannelsIconContainer},void 0,s()("div",{className:y.a.noChannelsIconBackground},void 0,s()(p.a,{className:y.a.noChannelsIcon,name:"plex-icon-alert-560"}))),s()("div",{className:y.a.message
},void 0,Object(d.default)("No channels found. Make sure your device has a signal from your antenna and try scanning again."))):s()("div",{className:y.a.container},void 0,s()("div",{className:y.a.clockContainer},void 0,s()("div",{className:y.a.clockBackground}),s()(p.a,{className:y.a.clockTime,name:"plex-icon-dvr-clock-hour-560"}),s()(p.a,{className:y.a.clock,name:"plex-icon-dvr-clock-separator-560"}),s()(p.a,{className:y.a.clockTime,name:"plex-icon-dvr-clock-minutes-560"})),s()("div",{
className:y.a.message},void 0,Object(d.default)("Awaiting channel scan")))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3),p=n(26),h=n(320),f=n(1415),v=n(1416),g=n(2967),m=n(2975),y=n.n(m);t.a=i},function(e,t){e.exports={circularProgressBarContainer:"CircularProgressBar-circularProgressBarContainer-26EO1",absoluteCenterCircularProgressBarContainer:"CircularProgressBar-absoluteCenterCircularProgressBarContainer--zr4W",
circularProgressBar:"CircularProgressBar-circularProgressBar-3gv7m",circularProgressBarBackground:"CircularProgressBar-circularProgressBarBackground-RvD8O",circularProgressBarText:"CircularProgressBar-circularProgressBarText-gC1Z-"}},function(e,t){e.exports={circularProgressBarText:"CircularProgressBar-circularProgressBarText-1kr2I CircularProgressBar-circularProgressBarText-gC1Z-",
circularProgressBarBackground:"CircularProgressBar-circularProgressBarBackground-1a1VU CircularProgressBar-circularProgressBarBackground-RvD8O"}},function(e,t){e.exports={help:"FormHelp-help-3VCuq"}},function(e,t){e.exports={input:"CheckInput-input-1Pi_2",label:"CheckInput-label-2yG4r",small:"CheckInput-small-3zAF6",large:"CheckInput-large-3wPNU",isDisabled:"CheckInput-isDisabled-C1Lz-",hasError:"CheckInput-hasError-1V3ZU"}},function(e,t,n){"use strict";function i(e){
var t=e.formGroupClassName,n=e.formLabelClassName,i=e.inputClassName,a=e.name,o=e.labelText,l=e.helpText,u=e.showErrors,d=e.errors,g=c()(e,["formGroupClassName","formLabelClassName","inputClassName","name","labelText","helpText","showErrors","errors"]);return s()(h.a,{className:t},void 0,s()(v.a,{className:n,showErrors:u,errors:d,name:a,labelText:o}),p.a.createElement(m.a,r()({className:i,name:a,type:"number",hasError:u},g)),l&&s()(f.a,{},void 0,l))}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(238),f=n(460),v=n(556),g=n(189),m=n(1417),y=n(2963),b=n.n(y);i.defaultProps={inputClassName:b.a.input},t.a=Object(g.a)(i)},function(e,t){e.exports={input:"TextInput-input-1VMum input-input-1P2Vi",small:"TextInput-small-2i2et input-small-3LyjJ",large:"TextInput-large-2sz70 input-large-3wNGT",isDisabled:"TextInput-isDisabled-3hj7I input-isDisabled-2FiSY",hasError:"TextInput-hasError-3FVrz input-hasError-1to6Q"
}},function(e,t){e.exports={input:"NumberInputGroup-input-yz7KY TextInput-input-1VMum input-input-1P2Vi"}},function(e,t,n){"use strict";function i(e,t,n){return(e-t)/(n-t)*100}t.a=i},function(e,t){e.exports={slider:"Slider-slider-2oLVT",isDisabled:"Slider-isDisabled-1hEOt",thumb:"Slider-thumb-2QGiU Link-link-2n0yJ",isDragging:"Slider-isDragging-3wZpY",hasAutoHideThumb:"Slider-hasAutoHideThumb-tpdhC",track:"Slider-track-28JOS",fill:"Slider-fill-35GFq",
secondaryFill:"Slider-secondaryFill-31_05 Slider-fill-35GFq",thumbTrack:"Slider-thumbTrack-21hGV"}},function(e,t){e.exports={sliderContainer:"SliderInputGroup-sliderContainer-2Dx08 input-input-1P2Vi",slider:"SliderInputGroup-slider-1x6JA Slider-slider-2oLVT",sliderValue:"SliderInputGroup-sliderValue-2oLoo"}},function(e,t,n){"use strict";function i(e){var t=e.identifier,n=e.name,i=e.signalStrength,a=e.signalQuality;return r()("div",{className:u.a.channel},void 0,r()("div",{
className:u.a.channelIdentifier},void 0,t),r()(l.a,{className:u.a.signalStrength,signalStrength:a||i}),r()("div",{},void 0,n))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1419)),c=n(2974),u=n.n(c);t.a=i},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgNDIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TdHJlbmd0aCAtIDE8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMS4xLVNpZ25hbC1TdHJlbmd0aC1NYW5hZ2UtQ2hhbm5lbHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzc4LjAwMDAwMCwgLTEwNzguMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJTdHJlbmd0aC1JbmRpY2F0b3JzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMzc4LjAwMDAwMCwgNzU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlN0cmVuZ3RoLS0tMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDMyMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNSIgZmlsbD0iIzUyNTI1MiIgeD0iMzUuNzQ0NjgwOSIgeT0iMCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMzIiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5IiBmaWxsPSIjNTI1MjUyIiB4PSIyNi44MDg1MTA2IiB5PSI2LjQiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjI1LjYiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTIiIGZpbGw9IiM1MjUyNTIiIHg9IjE3Ljg3MjM0MDQiIHk9IjEyLjgiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjE5LjIiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTMiIGZpbGw9IiM1MjUyNTIiIHg9IjguOTM2MTcwMjEiIHk9IjE5LjIiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjEyLjgiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTQiIGZpbGw9IiNEMDAyMUIiIHg9IjAiIHk9IjI1LjYiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjYuNCIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgNDIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TdHJlbmd0aCAtIDI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMS4xLVNpZ25hbC1TdHJlbmd0aC1NYW5hZ2UtQ2hhbm5lbHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzc4LjAwMDAwMCwgLTk5OC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IlN0cmVuZ3RoLUluZGljYXRvcnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNzguMDAwMDAwLCA3NTguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iU3RyZW5ndGgtLS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjQwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtQ29weS01IiBmaWxsPSIjNTI1MjUyIiB4PSIzNS43NDQ2ODA5IiB5PSIwIiB3aWR0aD0iNi4yNTUzMTkxNSIgaGVpZ2h0PSIzMiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHkiIGZpbGw9IiM1MjUyNTIiIHg9IjI2LjgwODUxMDYiIHk9IjYuNCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMjUuNiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktMiIgZmlsbD0iIzUyNTI1MiIgeD0iMTcuODcyMzQwNCIgeT0iMTIuOCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMTkuMiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktMyIgZmlsbD0iI0Y5ODkwMCIgeD0iOC45MzYxNzAyMSIgeT0iMTkuMiIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMTIuOCIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNCIgZmlsbD0iI0Y5ODkwMCIgeD0iMCIgeT0iMjUuNiIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iNi40IiByeD0iMy4xMjc2NTk1NyI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgNDIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TdHJlbmd0aCAtIDM8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMS4xLVNpZ25hbC1TdHJlbmd0aC1NYW5hZ2UtQ2hhbm5lbHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzc4LjAwMDAwMCwgLTkxOC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IlN0cmVuZ3RoLUluZGljYXRvcnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNzguMDAwMDAwLCA3NTguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iU3RyZW5ndGgtLS0zIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMTYwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtQ29weS01IiBmaWxsPSIjNTI1MjUyIiB4PSIzNS43NDQ2ODA5IiB5PSIwIiB3aWR0aD0iNi4yNTUzMTkxNSIgaGVpZ2h0PSIzMiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHkiIGZpbGw9IiM1MjUyNTIiIHg9IjI2LjgwODUxMDYiIHk9IjYuNCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMjUuNiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktMiIgZmlsbD0iI0Y5QkUwMyIgeD0iMTcuODcyMzQwNCIgeT0iMTIuOCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMTkuMiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktMyIgZmlsbD0iI0Y5QkUwMyIgeD0iOC45MzYxNzAyMSIgeT0iMTkuMiIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMTIuOCIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNCIgZmlsbD0iI0Y5QkUwMyIgeD0iMCIgeT0iMjUuNiIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iNi40IiByeD0iMy4xMjc2NTk1NyI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgNDIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TdHJlbmd0aCAtIDQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMS4xLVNpZ25hbC1TdHJlbmd0aC1NYW5hZ2UtQ2hhbm5lbHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzc4LjAwMDAwMCwgLTgzOC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IlN0cmVuZ3RoLUluZGljYXRvcnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNzguMDAwMDAwLCA3NTguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iU3RyZW5ndGgtLS00IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgODAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTUiIGZpbGw9IiM1MjUyNTIiIHg9IjM1Ljc0NDY4MDkiIHk9IjAiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjMyIiByeD0iMy4xMjc2NTk1NyI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtQ29weSIgZmlsbD0iI0FDRDMyMSIgeD0iMjYuODA4NTEwNiIgeT0iNi40IiB3aWR0aD0iNi4yNTUzMTkxNSIgaGVpZ2h0PSIyNS42IiByeD0iMy4xMjc2NTk1NyI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtQ29weS0yIiBmaWxsPSIjQUNEMzIxIiB4PSIxNy44NzIzNDA0IiB5PSIxMi44IiB3aWR0aD0iNi4yNTUzMTkxNSIgaGVpZ2h0PSIxOS4yIiByeD0iMy4xMjc2NTk1NyI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtQ29weS0zIiBmaWxsPSIjQUNEMzIxIiB4PSI4LjkzNjE3MDIxIiB5PSIxOS4yIiB3aWR0aD0iNi4yNTUzMTkxNSIgaGVpZ2h0PSIxMi44IiByeD0iMy4xMjc2NTk1NyI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtQ29weS00IiBmaWxsPSIjQUNEMzIxIiB4PSIwIiB5PSIyNS42IiB3aWR0aD0iNi4yNTUzMTkxNSIgaGVpZ2h0PSI2LjQiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgNDIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TdHJlbmd0aCAtIDU8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMS4xLVNpZ25hbC1TdHJlbmd0aC1NYW5hZ2UtQ2hhbm5lbHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzc4LjAwMDAwMCwgLTc1OC4wMDAwMDApIiBmaWxsPSIjN0VEMzIxIj4KICAgICAgICAgICAgPGcgaWQ9IlN0cmVuZ3RoLUluZGljYXRvcnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzNzguMDAwMDAwLCA3NTguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iU3RyZW5ndGgtLS01Ij4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHkiIHg9IjI2LjgwODUxMDYiIHk9IjYuNCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMjUuNiIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNSIgeD0iMzUuNzQ0NjgwOSIgeT0iMCIgd2lkdGg9IjYuMjU1MzE5MTUiIGhlaWdodD0iMzIiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTIiIHg9IjE3Ljg3MjM0MDQiIHk9IjEyLjgiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjE5LjIiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTMiIHg9IjguOTM2MTcwMjEiIHk9IjE5LjIiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjEyLjgiIHJ4PSIzLjEyNzY1OTU3Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTQiIHg9IjAiIHk9IjI1LjYiIHdpZHRoPSI2LjI1NTMxOTE1IiBoZWlnaHQ9IjYuNCIgcng9IjMuMTI3NjU5NTciPjwvcmVjdD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"
},function(e,t){e.exports={signalStrength:"SignalStrength-signalStrength-33wP3"}},function(e,t){e.exports={channel:"DVRSetupDeviceChannel-channel-3Z90s",channelIdentifier:"DVRSetupDeviceChannel-channelIdentifier-1EqGb",signalStrength:"DVRSetupDeviceChannel-signalStrength-2Jp2f SignalStrength-signalStrength-33wP3"}},function(e,t){e.exports={container:"DVRSetupDeviceInfoChannelInfo-container-38Jxg",settings:"DVRSetupDeviceInfoChannelInfo-settings-3rutx",
message:"DVRSetupDeviceInfoChannelInfo-message-1d9gE",noChannelsIcon:"DVRSetupDeviceInfoChannelInfo-noChannelsIcon-339HB",clockContainer:"DVRSetupDeviceInfoChannelInfo-clockContainer-2n_Vv",noChannelsIconContainer:"DVRSetupDeviceInfoChannelInfo-noChannelsIconContainer-25faJ",clock:"DVRSetupDeviceInfoChannelInfo-clock-2vxBT",clockTime:"DVRSetupDeviceInfoChannelInfo-clockTime-qyydg DVRSetupDeviceInfoChannelInfo-clock-2vxBT",blink:"DVRSetupDeviceInfoChannelInfo-blink-107UT",
clockBackground:"DVRSetupDeviceInfoChannelInfo-clockBackground-2moSt",noChannelsIconBackground:"DVRSetupDeviceInfoChannelInfo-noChannelsIconBackground-3tc9i"}},function(e,t,n){"use strict";function i(e){var t=e.channelCount,n=e.hasSignalStrength,i=e.isChannelsPending,a=e.channelScanActivity,r=e.hasScanPrefs,o=e.hasScanNetworks
;return a?Object(c.default)("Scanning for channels... This may take some time."):r?Object(c.default)("We need some more information before proceeding with the channel scan."):o?Object(c.default)("Please select a network before proceeding with the channel scan."):i?Object(c.default)("Fetching device channels"):t?n?Object(c.default)("We found {channelCount} channels. If these don't look right, you can scan again. Signal strength is stored at the time of scanning.",{channelCount:t
}):Object(c.default)("We found {channelCount} channels. If these don't look right, you can scan again.",{channelCount:t}):Object(c.default)("Make sure your device is connected to your antenna or cable and click Scan Channels.")}function a(e){var t=i(e);return o()("div",{className:d.a.message},void 0,t)}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(3)),u=n(2977),d=n.n(u);t.a=a},function(e,t){e.exports={message:"DVRSetupDeviceInfoMessage-message-2ozwd"}},function(e,t){e.exports={
deviceInfoBody:"DVRSetupDeviceInfo-deviceInfoBody-2LzEx ModalBody-modalBody--5uHS",deviceInfoForm:"DVRSetupDeviceInfo-deviceInfoForm-1K-pG",channelInfo:"DVRSetupDeviceInfo-channelInfo-32L38",channelDetails:"DVRSetupDeviceInfo-channelDetails-314k9",deviceDetails:"DVRSetupDeviceInfo-deviceDetails-3DYVe",countryInputGroup:"DVRSetupDeviceInfo-countryInputGroup-5CATq",channelScanSourceSelect:"DVRSetupDeviceInfo-channelScanSourceSelect-22g5X SelectInput-input-x1tNm input-input-1P2Vi",
deviceChannelsContainer:"DVRSetupDeviceInfo-deviceChannelsContainer-2ffnz",deviceChannels:"DVRSetupDeviceInfo-deviceChannels-2erQ6 Scroller-vertical-VScFL",deviceChannelsInfo:"DVRSetupDeviceInfo-deviceChannelsInfo-3oUd5 DVRSetupDeviceInfo-deviceChannels-2erQ6 Scroller-vertical-VScFL"}},function(e,t,n){"use strict";function i(){return Object(m.createSelector)(D.a,C.a,P,function(e,t,n){return{isDiscoveringDevices:e.isDiscoveringDevices,selectedDevice:e.selectedDevice,setupErrorMessage:t,
addDevicePending:e.addDevicePending,devices:n}})}function a(e,t){var n=t.serverEntityID;return{dispatchDiscoverDevices:function(){e(Object(M.j)({serverEntityID:n}))},dispatchFetchDevices:function(){e(Object(M.q)({serverEntityID:n}))},onAddDevice:function(t){e(Object(M.b)({serverEntityID:n,uri:t}))},onSelectDevice:function(t){e(Object(M.z)({serverEntityID:n,deviceID:t}))}}}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(10)),b=n.n(y),I=n(36),S=n(386),M=n(176),D=n(201),C=n(457),j=n(2980),P=Object(m.createSelector)(function(e){return e.ui.dvrSettingsUI.dvrSetup.devices},function(e){return b.a.filter(e,function(e){return!e.parentID&&e.status===S.b.ALIVE})}),O=function(e){function t(n){l()(this,t);var i=u()(this,e.call(this,n));return i._discoverDevices=function(){i.props.dispatchDiscoverDevices()},i._discoverTimeoutID=null,i.discoverDelay=2e3,i}return p()(t,e),
t.prototype.componentDidMount=function(){var e=this;Object(I.a)(function(){e.props.dispatchFetchDevices()}),this._discoverTimeoutID=setTimeout(this._discoverDevices,this.discoverDelay)},t.prototype.componentDidUpdate=function(e){!this.props.isDiscoveringDevices&&e.isDiscoveringDevices&&(this._discoverTimeoutID=setTimeout(this._discoverDevices,this.discoverDelay))},t.prototype.componentWillUnmount=function(){this._discoverTimeoutID&&clearTimeout(this._discoverTimeoutID)},
t.prototype.render=function(){var e=this.props,t=(e.dispatchDiscoverDevices,e.dispatchFetchDevices,o()(e,["dispatchDiscoverDevices","dispatchFetchDevices"]));return v.a.createElement(j.a,t)},t}(f.Component);t.a=Object(g.connect)(i,a)(O)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(80),m=n(42),y=n(275),b=n(238),I=n(149),S=n(218),M=n(61),D=n(115),C=n(3),j=n(31),P=n(139),O=n(387),T=n(458),E=n(931),w=n(24),A=n(1410),x=n(2981),N=n.n(x),L=o()(j.a,{}),k=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onShowDeviceAddressPress=function(){a.setState({showManualAddress:!a.state.showManualAddress})},a.onDeviceAddressChange=function(e){a.setState({manualDeviceAddress:e})},a.onAddDevicePress=function(){
a.props.onAddDevice(a.state.manualDeviceAddress)},a.state={showManualAddress:!1,manualDeviceAddress:""},a}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.selectedDevice,i=e.setupErrorMessage,r=e.addDevicePending,s=e.devices,l=e.onSelectDevice,c=e.onModalClose,u=this.state,d=u.showManualAddress,p=u.manualDeviceAddress,h=s.length>0;return o()(O.a,{errorMessage:i,onModalClose:c
},void 0,o()(M.a,{},void 0,h&&o()("div",{},void 0,Object(C.default)("We found hardware we recognize!")),!h&&o()("div",{},void 0,Object(C.default)("Looking for compatible devices...")),o()("div",{className:N.a.manualDeviceButtonContainer},void 0,o()(y.a,{kind:w.b.PRIMARY,direction:d?w.a.UP:w.a.DOWN,isSelected:!1,onPress:this.onShowDeviceAddressPress},void 0,Object(C.default)("Don't see your HDHomeRun device? Enter its network address manually"))),o()("div",{className:N.a.manualDeviceContainer
},void 0,d&&o()("div",{},void 0,o()(b.a,{},void 0,o()(I.a,{},void 0,Object(C.default)("HDHomeRun Device Address")),o()(S.a,{type:"text",name:"manualDeviceInput",className:N.a.manualDeviceInput,value:this.state.manualDeviceAddress,placeholder:Object(C.default)("IP address or hostname"),onChange:this.onDeviceAddressChange}),o()(P.a,{className:N.a.addDeviceButton,kind:w.b.PRIMARY,size:w.e.LARGE,isDisabled:!p,isSpinning:r,onPress:this.onAddDevicePress
},void 0,Object(C.default)("Connect"))))),!h&&o()("div",{className:N.a.spinnerContainer},void 0,L),h&&o()("div",{},void 0,o()("div",{className:N.a.deviceCount},void 0,1===s.length?Object(C.default)("1 device found"):Object(C.default)("{deviceCount} devices found",{deviceCount:s.length})),o()(g.a,{className:N.a.devices,scrollDirection:w.d.HORIZONTAL},void 0,s.map(function(e){var i=n&&n.key===e.key;return v.a.createElement(A.a,a()({key:e.key,className:N.a.device,serverEntityID:t,deviceID:e.key,
isSelectable:!0,isSelected:i,includeUri:!0,onSelectDevice:l},e))})))),o()(T.a,{},void 0,o()(D.a,{},void 0,o()(m.a,{kind:w.b.DEFAULT,size:w.e.MEDIUM,onPress:c},void 0,Object(C.default)("Cancel"))),o()(D.a,{},void 0,o()(E.a,{isDisabled:!n}))))},t}(f.Component);t.a=k},function(e,t){e.exports={addDeviceButton:"DVRSetupDeviceSelector-addDeviceButton-37qk2",manualDeviceButtonContainer:"DVRSetupDeviceSelector-manualDeviceButtonContainer-3-lqe",
manualDeviceContainer:"DVRSetupDeviceSelector-manualDeviceContainer-6K51i",manualAddressArrow:"DVRSetupDeviceSelector-manualAddressArrow-e9thn",manualDeviceInput:"DVRSetupDeviceSelector-manualDeviceInput-22enz TextInput-input-1VMum input-input-1P2Vi",deviceCount:"DVRSetupDeviceSelector-deviceCount-6HUil",devices:"DVRSetupDeviceSelector-devices-2f43G",device:"DVRSetupDeviceSelector-device-QX9WA",spinnerContainer:"DVRSetupDeviceSelector-spinnerContainer-2U4Wi"}},function(e,t,n){"use strict"
;function i(){return Object(r.createSelector)(o.a,function(e){var t=e.selectedDevice;return{make:t.make,model:t.model,thumb:t.thumb}})}var a=n(11),r=n(4),o=(n.n(r),n(201)),s=n(2983);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.dvrID,i=e.make,a=e.model,o=e.thumb,s=e.onModalClose;return r()(v.a,{title:Object(p.default)("Unsupported Tuner"),onModalClose:s},void 0,r()(u.a,{className:M.a.unsupportedDeviceBody,scrollDirection:y.d.NONE
},void 0,r()("div",{className:M.a.imageContainer},void 0,r()(f.a,{serverEntityID:t,make:i,model:a,thumb:o,width:D,height:C}),r()("div",{className:M.a.makeModelContainer},void 0,r()("div",{},void 0,i),r()("div",{},void 0,a))),r()("div",{className:M.a.info
},void 0,Object(p.default)("Community Supported Tuners opens up your Plex account to access a larger variety of DVR tuners, many of which have been tested and are supported by the community. If your tuner hasn't been recognized by Plex DVR and you're up for a little adventure, this will allow you to use unsupported tuners that have not been tested by Plex.")),r()("div",{className:M.a.info},void 0,r()(h.a,{
message:Object(p.default)("We recommend you review our {openLink}Community Supported Tuners{closeLink} article to learn about limitations, compatibility, and how to get involved."),tags:[{open:"openLink",close:"closeLink",component:c.a,kind:y.b.PRIMARY,to:"https://support.plex.tv/articles/community-supported-tuners/",target:"_blank"}]}))),r()(g.a,{},void 0,r()(d.a,{},void 0,r()(l.a,{kind:y.b.DEFAULT,size:y.e.MEDIUM,onPress:s},void 0,Object(p.default)("Cancel"))),r()(d.a,{},void 0,r()(m.a,{
dvrID:n,label:Object(p.default)("Enable Unsupported Tuner")}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(20),u=n(61),d=n(115),p=n(3),h=n(187),f=n(687),v=n(387),g=n(458),m=n(931),y=n(24),b=n(46),I=n.n(b),S=n(2984),M=n.n(S),D=parseInt(I.a.dvrSetupImageWidth,10),C=100;t.a=i},function(e,t){e.exports={unsupportedDeviceBody:"DVRSetupUnsupportedDevice-unsupportedDeviceBody-1vVn1 ModalBody-modalBody--5uHS",imageContainer:"DVRSetupUnsupportedDevice-imageContainer-3DhXF",
makeModelContainer:"DVRSetupUnsupportedDevice-makeModelContainer-2bdrZ",info:"DVRSetupUnsupportedDevice-info-1un44"}},function(e,t,n){"use strict";function i(){return Object(u.createSelector)(function(e,t){return t.serverEntityID},Object(d.a)(),g.a,function(e,t,n){var i=n.selectedDVR;if(i&&t){var a=i.epgIdentifier,r=Object(h.a)(f.k,a,e);return t.indexOf(r)>-1?a:void 0}})}function a(){return Object(u.createSelector)(g.a,m.a,Object(p.a)(),Object(v.a)(),i(),function(e,t,n,i,a){
var r=i||{},o=r.progress,s=r.subtitle;return{setupErrorMessage:t,machineIdentifier:n.machineIdentifier,epgProviderIdentifier:a,epgDownloadActivityID:e.epgDownloadActivityID,progress:o,message:s}})}function r(e){return l.a.createElement(y.a,e)}var o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(11),u=n(4),d=(n.n(u),n(934)),p=n(35),h=n(38),f=n(45),v=n(1420),g=n(201),m=n(457),y=n(2986);t.a=Object(c.connect)(a)(r)},function(e,t,n){"use strict";function i(e){
var t=e.setupErrorMessage,n=e.machineIdentifier,i=e.epgProviderIdentifier,a=e.epgDownloadActivityID,o=e.progress,s=e.message,g=e.onModalClose,y=encodeURIComponent(n),b=encodeURIComponent(i);return r()(f.a,{errorMessage:t,onModalClose:g},void 0,r()(c.a,{},void 0,r()("div",{className:m.a.message
},void 0,r()("div",{},void 0,Object(p.default)("Setup complete!")),r()("div",{},void 0,Object(p.default)("You can now find your Guide and Recordings in the sidebar under \"Live TV\". While we're grabbing the guide data, you can start browsing; it will update automatically as we download what's on."))),a&&r()("div",{},void 0,r()("div",{className:m.a.spinnerContainer},void 0,r()(h.a,{size:90,progress:o}),r()("div",{className:m.a.spinnerMessage
},void 0,s)))),r()(u.a,{},void 0,r()(d.a,{},void 0,r()(l.a,{kind:v.b.DEFAULT,size:v.e.MEDIUM,onPress:g},void 0,Object(p.default)("Close")),r()(l.a,{kind:v.b.PRIMARY,size:v.e.MEDIUM,to:"#!/server/"+y+"/provider/"+b,isDisabled:!i},void 0,Object(p.default)("View Guide")))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(115),p=n(3),h=n(320),f=n(387),v=n(24),g=n(2987),m=n.n(g);i.defaultProps={progress:0,message:""},t.a=i},function(e,t){e.exports={
message:"EPGDownload-message-1nld-",spinnerContainer:"EPGDownload-spinnerContainer-OHwKI",spinnerMessage:"EPGDownload-spinnerMessage-j4e6W"}},function(e,t,n){"use strict";function i(){return Object(f.createSelector)(I.a,S.a,Object(m.a)(),function(e,t,n){return{setupErrorMessage:t,progress:(g.a.find(n,{uuid:e.epgLineupActivityID})||{}).progress}})}var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(11),f=n(4),v=(n.n(f),
n(10)),g=n.n(v),m=n(319),y=n(36),b=n(176),I=n(201),S=n(457),M=n(2989),D={findBestEPGLineup:b.s},C=function(e){function t(){return r()(this,t),s()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype._populate=function(e){Object(y.a)(function(){e.findBestEPGLineup({serverEntityID:e.serverEntityID})})},t.prototype.render=function(){return p.a.createElement(M.a,this.props)},t}(d.Component);t.a=Object(h.connect)(i,D)(C)
},function(e,t,n){"use strict";function i(e){var t=e.setupErrorMessage,n=e.progress,i=e.onModalClose;return r()(h.a,{errorMessage:t,onModalClose:i},void 0,r()(c.a,{},void 0,r()("div",{className:m.a.message},void 0,r()("div",{},void 0,Object(d.default)("We're finding the best guide for your channels and location.")),r()("div",{},void 0,Object(d.default)("This should only take a few moments."))),r()("div",{className:m.a.spinnerContainer},void 0,r()(p.a,{size:90,progress:n
}))),r()(f.a,{},void 0,r()(u.a,{},void 0,r()(l.a,{kind:v.b.DEFAULT,size:v.e.MEDIUM,onPress:i},void 0,Object(d.default)("Cancel")))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(115),d=n(3),p=n(320),h=n(387),f=n(458),v=n(24),g=n(2990),m=n.n(g);i.defaultProps={progress:0},t.a=i},function(e,t){e.exports={message:"EPGMapping-message-2-bns",spinnerContainer:"EPGMapping-spinnerContainer-TAwZ1"}},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(Object(m.a)(),S.a,M.a,function(e,t,n){var i=t.selectedLineupUUID,a=t.epgSettings,r=a.isFetching,o=a.selectedCountry,s=a.selectedLanguage,l=a.selectedRegion,c=a.languages,u=a.regions,d=a.lineupGroup,p=o&&1===o.flavor?o.example:null,h=s?s.code:"",f=l?l.key:"",v=c.length>0,g=u.length>0,m=c.reduce(function(e,t){var n;return e.push((n={},n[t.code]=t.title,n)),e},[]),y=u.reduce(function(e,t){var n;return e.push((n={},n[t.key]=t.title,n)),e},[]);return{
platform:e.platform,setupErrorMessage:n,selectedLineupUUID:i,selectedLanguageCode:h,selectedRegionCode:f,languagesPopulated:v,regionsPopulated:g,languageOptions:m,regionOptions:y,isFetching:r,postalCodeExample:p,canContinue:!(!d.lineups.length&&!i||!h)}})}var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(6),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(35)),y=n(36),b=n(686),I=n(176),S=n(201),M=n(457),D=n(2992),C=n(2993),j=d()({dvrSetupNextStep:I.l,selectEPGLineup:I.B
},b),P=function(e){function t(){var n,i,a;r()(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=s()(this,e.call.apply(e,[this].concat(l))),i.onLanguageSelect=function(e){i.props.selectEPGLanguage({serverEntityID:i.props.serverEntityID,languageCode:e})},i.onRegionSelect=function(e){i.props.selectEPGRegion({serverEntityID:i.props.serverEntityID,regionKey:e})},i.onSubmit=function(){i.props.dvrSetupNextStep()},i.onXMLTVProgramGuideChange=function(e,t){
if(!e||!t)return void i.props.selectEPGLineup({lineupUUID:null});var n=Object(D.a)(e),a="lineup://tv.plex.providers.epg.xmltv/"+n+"#"+encodeURIComponent(t);i.props.selectEPGLineup({lineupUUID:a})},a=n,s()(i,a)}return c()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype._populate=function(e){Object(y.a)(function(){var t=e.serverEntityID;e.fetchEPGLanguages({serverEntityID:t}),e.selectEPGLineup({lineupUUID:null})})},t.prototype.render=function(){
return f.a.createElement(C.a,d()({onLanguageSelect:this.onLanguageSelect,onRegionSelect:this.onRegionSelect,onPostalCodeChange:this.onPostalCodeChange,onXMLTVProgramGuideChange:this.onXMLTVProgramGuideChange,onSubmit:this.onSubmit},this.props))},t}(h.Component);t.a=Object(v.connect)(i,j)(P)},function(e,t,n){"use strict";function i(e){return/^[a-z]\:\\|\\\\/i.test(e)&&(e=e.replace(/\\/g,"/")),/^(\/|[a-z]\:\/)/i.test(e)&&(e=e.replace(/\/(.+?)(?=\/|$)/g,function(e,t){return"/"+encodeURIComponent(t)
})),"/"===e.charAt(0)&&(e=e.substring(1)),/^[a-z]+?\:\/\//i.test(e)&&(e=encodeURIComponent(e)),e}t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(20),v=n(186),g=n(238),m=n(149),y=n(255),b=n(218),I=n(61),S=n(115),M=n(3),D=n(31),C=n(387),j=n(458),P=n(932),O=n(24),T=n(2994),E=n(2996),w=n.n(E),A=a()(P.a,{}),x=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onShowXMLTVEntryPress=function(){a.setState({showXMLTVEntry:!a.state.showXMLTVEntry})},a.onLanguageSelect=function(e){a.props.onLanguageSelect(e)},a.onRegionSelect=function(e){a.props.onRegionSelect(e)},a.onXMLTVPathChange=function(e){a.setState({xmlTVPath:e},function(){a.props.onXMLTVProgramGuideChange(e,a.state.programGuideTitle)})},a.onProgramGuideTitleChange=function(e){a.setState({programGuideTitle:e},function(){a.props.onXMLTVProgramGuideChange(a.state.xmlTVPath,e)})},a.state={
showXMLTVEntry:!1,xmlTVPath:"",programGuideTitle:Object(M.default)("My Guide")},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.platform,i=e.setupErrorMessage,r=e.isFetching,o=e.selectedLanguageCode,s=e.selectedRegionCode,l=e.languageOptions,c=e.regionOptions,u=e.languagesPopulated,d=e.regionsPopulated,p=e.canContinue,P=e.postalCodeExample,E=e.onSubmit,x=e.onModalClose,N=this.state,L=N.showXMLTVEntry,k=N.xmlTVPath,R=N.programGuideTitle,z=u,U=!(!u||!P),B=!(!u||!d),F=[{"":Object(M.default)("Select Language")}].concat(l),_=[{"":Object(M.default)("Select Region")
}].concat(c),V="Windows"===n?"C:\\path\\to\\your\\xmltv_file.xml":"/path/to/your/xmltv_file.xml";return a()(v.b,{className:w.a.form,onSubmit:E},void 0,a()(C.a,{errorMessage:i,onModalClose:x},void 0,a()(I.a,{},void 0,a()("div",{className:w.a.message},void 0,a()("div",{},void 0,Object(M.default)("To download an electronic guide we need to know your location.")),a()(f.a,{kind:O.b.PRIMARY,onPress:this.onShowXMLTVEntryPress
},void 0,L?Object(M.default)("Don't use XMLTV? Click here to select your location instead."):Object(M.default)("Have an XMLTV guide on your server? Click here to use that instead."))),L&&a()("div",{},void 0,u&&a()(g.a,{},void 0,a()(m.a,{},void 0,Object(M.default)("Language")),a()(y.a,{name:"languageSelect",values:F,value:o,onChange:this.onLanguageSelect})),a()(g.a,{},void 0,a()(m.a,{},void 0,Object(M.default)("XMLTV Guide")),a()(b.a,{name:"xmltvPath",placeholder:V,value:k,
onChange:this.onXMLTVPathChange})),a()(g.a,{},void 0,a()(m.a,{},void 0,Object(M.default)("Guide Title")),a()(b.a,{name:"programGuideTitle",value:R,onChange:this.onProgramGuideTitleChange}))),!L&&a()("div",{},void 0,z&&a()(g.a,{},void 0,a()(m.a,{},void 0,Object(M.default)("Language")),a()(y.a,{name:"languageSelect",values:F,value:o,onChange:this.onLanguageSelect})),U&&a()(g.a,{},void 0,a()(m.a,{},void 0,Object(M.default)("Postal Code")),a()(T.a,{serverEntityID:t,postalCodeExample:P}),r&&a()(D.a,{
className:w.a.fetchingSpinner})),B&&a()(g.a,{},void 0,a()(m.a,{},void 0,Object(M.default)("Region")),a()(y.a,{className:w.a.regionInput,name:"regionSelect",values:_,value:s,onChange:this.onRegionSelect}),r&&a()(D.a,{className:w.a.fetchingSpinner})))),a()(j.a,{},void 0,a()(S.a,{},void 0,a()(h.a,{kind:O.b.DEFAULT,size:O.e.MEDIUM,onPress:x},void 0,Object(M.default)("Cancel"))),a()(S.a,{},void 0,A,a()(h.a,{type:"submit",kind:O.b.PRIMARY,size:O.e.MEDIUM,isDisabled:!p||r
},void 0,Object(M.default)("Continue"))))))},t}(p.Component);t.a=x},function(e,t,n){"use strict";function i(e){return{postalCode:e.ui.dvrSettingsUI.dvrSetup.epgSettings.postalCode}}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(36),m=n(686),y=n(2995),b=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a._fetchEPGLineups=function(){a.props.fetchEPGLineups({serverEntityID:a.props.serverEntityID})},
a.onPostalCodeChange=function(e){a._postalCodeTimeoutID&&clearTimeout(a._postalCodeTimeoutID),Object(g.a)(function(){a.props.setEPGPostalCode({serverEntityID:a.props.serverEntityID,postalCode:e}),""!==e.trim()&&(a._postalCodeTimeoutID=setTimeout(a._fetchEPGLineups,200))})},a._postalCodeTimeoutID=null,a}return d()(t,e),t.prototype.componentWillUnmount=function(){this._postalCodeTimeoutID&&clearTimeout(this._postalCodeTimeoutID)},t.prototype.render=function(){return f.a.createElement(y.a,r()({
onPostalCodeChange:this.onPostalCodeChange},this.props))},t}(h.Component);t.a=Object(v.connect)(i,m)(b)},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(129),h=n.n(p),f=n(218),v=function(e){function t(n,i){a()(this,t);var r=o()(this,e.call(this,n,i));return r.onPostalCodeChange=function(e){r.setState({postalCode:e},function(){r.props.onPostalCodeChange(e)})},r.state={postalCode:""},r}return l()(t,e),
t.prototype.componentWillReceiveProps=function(e){this.state.postalCode!==e.postalCode&&this.setState({postalCode:e.postalCode})},t.prototype.focusInput=function(e){e&&h.a.findDOMNode(e).focus()},t.prototype.render=function(){var e=this.props.postalCodeExample,t=this.state.postalCode;return d.a.createElement(f.a,{name:"postalCodeInput",placeholder:"e.g. "+e,value:t,ref:this.focusInput,onChange:this.onPostalCodeChange})},t}(u.Component);t.a=v},function(e,t){e.exports={
form:"EPGSettings-form-ZJ79Y",message:"EPGSettings-message-159ME",regionInput:"EPGSettings-regionInput-1wXWR SelectInput-input-x1tNm input-input-1P2Vi",fetchingSpinner:"EPGSettings-fetchingSpinner-3HphG Spinner-spinner-Niere spin-spin-2kLwt"}},function(e,t,n){"use strict";function i(e,t){if(e){var n=I.a.parseXML(e.responseText);if(n.message)return n.message}else{if(!t)return;var i=I.a.parseXML(t.responseText);if(i.message)return i.message}
return Object(M.default)("Unable to load channel mappings")}function a(){return Object(m.createSelector)(j.a,P.a,O.a,Object(C.a)(),function(e,t,n,a){var r=e.selectedDevice,o=e.selectedLineupUUID,s=e.isChannelMappingsPending,l=e.isLineupChannelsPending,c=e.channelMappingsError,u=e.lineupChannelsError,d=e.isSavingDVR;return{setupErrorMessage:t,selectedDevice:r,selectedLineupUUID:o,availableLineups:b.a.reduce(e.epgSettings.lineupGroup.lineups,function(e,t){var n;return e.push((n={},
n[t.uuid]=t.title,n)),e},[]),lineupChannels:n,channelMappings:a,isChannelMappingsPending:s,isLineupChannelsPending:l,isSavingDVR:d,channelMappingsErrorMessage:i(c,u)}})}var r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(10)),b=n.n(y),I=n(74),S=n(36),M=n(3),D=n(176),C=n(1421),j=n(201),P=n(457),O=n(1422),T=n(2998),E={fetchLineupChannels:D.r,fetchChannelMap:D.n,selectEPGLineup:D.B,clearChannelMapError:D.d,saveDVR:D.v,
addDVRDevice:D.a},w=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onLineupSelect=function(e){var t=i.props,n=t.serverEntityID,a=t.selectedDevice;i.props.selectEPGLineup({serverEntityID:n,lineupUUID:e}),i.props.fetchLineupChannels({serverEntityID:n,lineupUUID:e}),i.props.fetchChannelMap({serverEntityID:n,deviceUUID:a.uuid,lineupUUID:e,forceEnabled:!0})},
i.onAddDeviceSubmit=function(e){var t=i.props,n=t.serverEntityID,a=t.dvrID,r=t.selectedDevice;i.props.addDVRDevice({serverEntityID:n,dvrID:a,deviceID:r.key,data:e})},i.onSaveDVRSubmit=function(e){var t=i.props,n=t.serverEntityID,a=t.selectedDevice;i.props.saveDVR({serverEntityID:n,deviceID:a.key,data:e})},a=n,u()(i,a)}return p()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype.componentWillUnmount=function(){this.props.clearChannelMapError()},
t.prototype._populate=function(e){var t=e.serverEntityID,n=e.selectedDevice.uuid,i=e.selectedLineupUUID;i&&Object(S.a)(function(){e.fetchLineupChannels({serverEntityID:t,lineupUUID:i}),e.fetchChannelMap({serverEntityID:t,deviceUUID:n,lineupUUID:i,forceEnabled:!0})})},t.prototype.render=function(){var e=this.props.dvrID;return v.a.createElement(T.a,o()({onLineupSelect:this.onLineupSelect,onSubmit:e?this.onAddDeviceSubmit:this.onSaveDVRSubmit},this.props))},t}(f.Component)
;t.a=Object(g.connect)(a,E)(w)},function(e,t,n){"use strict";function i(e){
for(var t=e.dvrID,n=e.setupErrorMessage,i=e.selectedLineupUUID,a=e.availableLineups,o=e.lineupChannels,s=e.channelMappings,D=e.isChannelMappingsPending,C=e.isLineupChannelsPending,P=e.isSavingDVR,O=e.channelMappingsErrorMessage,T=e.formState,E=e.allChannelMappingsEnabled,w=e.allChannelMappingsDisabled,A=e.onAllChannelMappingsEnabledChange,x=e.onFormStateChange,N=e.onLineupSelect,L=e.onModalClose,k=e.onSubmit,R=D||C,z=!!a.length,U=[{"":Object(f.default)("Select Guide")
}].concat(a),B=i?decodeURIComponent(i.match(/#(.+?)$/)[1]):void 0,F=!1,_=!1,V=0;V<s.length&&(!F||!_);V++){var H=s[V];null==H.signalQuality&&null==H.signalStrengh||(F=!0),(H.isDeviceChannelHD||H.isLineupChannelHD)&&(_=!0)}return r()(u.b,{className:j.a.form,formState:T,onChange:x,onSubmit:k},void 0,r()(m.a,{errorMessage:n,onModalClose:L},void 0,O&&r()(p.a,{className:j.a.channelMappingsBody,scrollDirection:I.d.NONE},void 0,r()("div",{className:j.a.centeredContainer},void 0,O)),!O&&r()(p.a,{
className:j.a.channelMappingsBody,scrollDirection:I.d.NONE},void 0,z&&r()("div",{},void 0,r()("div",{className:j.a.programGuideLabel},void 0,Object(f.default)("Guide")),r()("div",{className:j.a.programGuideSelectContainer},void 0,r()(d.a,{name:"programGuide",values:U,value:i,onChange:N}))),!z&&r()("div",{className:j.a.programGuideTitle},void 0,B),R&&r()("div",{className:j.a.centeredContainer},void 0,r()(v.a,{label:Object(f.default)("Loading channel mappings")})),!R&&i&&r()(l.a,{
className:j.a.scroller,autoScroll:!0},void 0,r()(M.a,{showSignalStrength:F,allChannelMappingsEnabled:E,allChannelMappingsDisabled:w,onAllChannelMappingsEnabledChange:A}),s.map(function(e){var t=e.key,n=e.deviceIdentifier,i=e.name,a=e.enabled,s=e.lineupIdentifier,l=e.drm,c=e.signalStrengh,u=e.signalQuality,d=e.isDeviceChannelHD,p=e.isLineupChannelHD,h=e.isChannelMissing;return r()(S.a,{name:t,initialValue:{enabled:a,lineupIdentifier:s},deviceIdentifier:n,channelName:i,drm:l,signalStrength:u||c,
isDeviceChannelHD:d,isLineupChannelHD:p,isChannelMissing:h,showResolution:_,lineupChannels:o},t)}))),r()(y.a,{},void 0,r()(h.a,{},void 0,r()(c.a,{kind:I.b.DEFAULT,size:I.e.MEDIUM,onPress:L},void 0,Object(f.default)("Cancel"))),r()(h.a,{},void 0,r()(b.a,{dvrID:t}),r()(g.a,{type:"submit",kind:I.b.PRIMARY,size:I.e.MEDIUM,isSpinning:P},void 0,Object(f.default)("Continue"))))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(80)),c=n(42),u=n(186),d=n(255),p=n(61),h=n(115),f=n(3),v=n(31),g=n(139),m=n(387),y=n(458),b=n(932),I=n(24),S=n(1423),M=n(1424),D=n(1425),C=n(3004),j=n.n(C);t.a=Object(D.a)(i)},function(e,t){e.exports={badge:"Badge-badge-21NQR",isHidden:"Badge-isHidden-2p8gj",default:"Badge-default-VTVet",primary:"Badge-primary-3suJx",success:"Badge-success-3m8_X",danger:"Badge-danger-2rQka"}},function(e,t,n){"use strict";function i(){return r()(s.a,{className:c.a.resolution},void 0,"HD")}
var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(390)),l=n(3001),c=n.n(l);t.a=i},function(e,t){e.exports={resolution:"EPGChannelResolution-resolution-rYFHt Badge-badge-21NQR"}},function(e,t){e.exports={channelMapping:"DeviceChannelMapping-channelMapping-2Z4xx",deviceInfo:"DeviceChannelMapping-deviceInfo-3HnWc",channelEnabled:"DeviceChannelMapping-channelEnabled-1FW8M",deviceIdentifier:"DeviceChannelMapping-deviceIdentifier-3-v5l",mappingDisabled:"DeviceChannelMapping-mappingDisabled-3uY5j",
channelName:"DeviceChannelMapping-channelName-2knCV",signalStrength:"DeviceChannelMapping-signalStrength-3YDOu SignalStrength-signalStrength-33wP3",epgChannel:"DeviceChannelMapping-epgChannel-tjRMx",drmChannel:"DeviceChannelMapping-drmChannel-2CJhX",drmChannelBadge:"DeviceChannelMapping-drmChannelBadge-1_tZU",resolutionContainer:"DeviceChannelMapping-resolutionContainer-1Au-K"}},function(e,t){e.exports={container:"DeviceChannelMappingsHeader-container-1VViT",
deviceChannelsContainer:"DeviceChannelMappingsHeader-deviceChannelsContainer-1TSeU",guideChannels:"DeviceChannelMappingsHeader-guideChannels-3D6cO",deviceChannels:"DeviceChannelMappingsHeader-deviceChannels-iZFrg",signalStrength:"DeviceChannelMappingsHeader-signalStrength-1vcKg",deviceChannelsPadding:"DeviceChannelMappingsHeader-deviceChannelsPadding-AkfFy"}},function(e,t){e.exports={form:"DeviceChannelMappings-form-BhAiS",
channelMappingsBody:"DeviceChannelMappings-channelMappingsBody-1KPox ModalBody-modalBody--5uHS",programGuideLabel:"DeviceChannelMappings-programGuideLabel-3tWK8",programGuideSelectContainer:"DeviceChannelMappings-programGuideSelectContainer-1cpiV",programGuideTitle:"DeviceChannelMappings-programGuideTitle-3xOjM",centeredContainer:"DeviceChannelMappings-centeredContainer-3NaUq",scroller:"DeviceChannelMappings-scroller-2_Aea Scroller-vertical-VScFL",
channelMappingsContainer:"DeviceChannelMappings-channelMappingsContainer-2gZaI"}},function(e,t){e.exports={modal:"DVRSetupModal-modal-3IeKF Modal-medium-1UIAd Modal-modal-3Z1JS"}},function(e,t,n){"use strict";function i(e){var t=e.ui.dvrSettingsUI;return{isDvrsPending:t.isDvrsPending,dvrsError:t.dvrsError,dvrs:t.dvrs}}var a=n(11),r=n(3007);t.a=Object(a.connect)(i)(r.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.isDvrsPending,i=e.dvrsError,a=e.dvrs
;return i?r()("div",{},void 0,Object(l.default)("Unable to load DVRs")):n?r()(c.a,{label:Object(l.default)("Loading DVRs")}):r()("div",{},void 0,a.map(function(e){return r()(u.a,{dvrID:e.key,serverEntityID:t,lineupTitle:e.lineupTitle,devices:e.devices},e.key)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(31),u=n(3008);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID,i=t.dvrID;return{onRemoveDVR:function(){e(Object(o.f)({serverEntityID:n,dvrID:i}))},
onReloadGuidePress:function(){e(Object(o.e)({serverEntityID:n,dvrID:i}))},onCancelReloadGuidePress:function(){e(Object(o.a)({serverEntityID:n,dvrID:i}))}}}var a=n(11),r=n(4),o=(n.n(r),n(682)),s=n(1420),l=n(3009),c=Object(r.createStructuredSelector)({epgDownloadActivity:Object(s.a)()});t.a=Object(a.connect)(c,i)(l.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(73)),f=n(20),v=n(28),g=n(138),m=n(30),y=n(3),b=n(26),I=n(177),S=n(24),M=n(3011),D=n(1408),C=n(3027),j=n(3031),P=n.n(j),O={context:g.k},T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRemoveDVRPress=function(){a.setState({isRemoveDVRModalOpen:!0})},a.onRemoveDVRConfirm=function(){a.setState({isRemoveDVRModalOpen:!1}),a.props.onRemoveDVR()},a.onRemoveDVRCancel=function(){a.setState({isRemoveDVRModalOpen:!1})},a.onDVRSettingsPress=function(){a.setState({
isDVRSettingsModalOpen:!0})},a.onDVRSettingsModalClose=function(){a.setState({isDVRSettingsModalOpen:!1})},a.onAddDevicePress=function(){a.setState({isAddDeviceModalOpen:!0})},a.onModalClose=function(){a.setState({isAddDeviceModalOpen:!1})},a.state={isRemoveDVRModalOpen:!1,isDVRSettingsModalOpen:!1,isAddDeviceModalOpen:!1},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.lineupTitle,r=e.devices,o=e.epgDownloadActivity,s=e.onReloadGuidePress,l=e.onCancelReloadGuidePress,c=this.state,u=c.isRemoveDVRModalOpen,d=c.isDVRSettingsModalOpen;return a()("div",{className:P.a.dvr},void 0,a()("div",{className:P.a.header},void 0,a()("div",{className:P.a.name},void 0,Object(y.default)("DVR"),a()(h.b,{className:P.a.separator}),i),a()(f.a,{className:P.a.deleteLink,kind:S.b.PRIMARY,onPress:this.onRemoveDVRPress
},void 0,Object(y.default)("Delete DVR"))),a()("div",{className:P.a.actions},void 0,a()("div",{},void 0,o?a()(f.a,{kind:S.b.DEFAULT,title:Object(y.default)("Cancel refresh"),onPress:l},void 0,a()(b.a,{className:P.a.actionIcon,name:"plex-icon-remove-560"}),o.title," (",o.progress,"%)",a()(h.b,{className:P.a.separator}),o.subtitle):a()(f.a,{kind:S.b.PRIMARY,onPress:s},void 0,a()(b.a,{className:P.a.actionIcon,name:"plex-icon-reload-560"
}),Object(y.default)("Refresh Guide"))),a()("div",{},void 0,a()(f.a,{kind:S.b.PRIMARY,onPress:this.onDVRSettingsPress},void 0,a()(b.a,{className:P.a.actionIcon,name:"plex-icon-settings-560","aria-label":Object(y.default)("DVR Settings")}),Object(y.default)("DVR Settings")))),a()("div",{className:P.a.devices},void 0,r.map(function(e){return a()(M.a,{serverEntityID:t,dvrID:n,deviceID:e.key,canRemoveDevice:r.length>1,model:e.model,uri:e.uri,unsupported:e.unsupported,
channelMappings:e.channelMappings,tunerCount:e.tuners,status:e.status,thumb:e.thumb},e.key)})),a()(f.a,{kind:S.b.PRIMARY,onPress:this.onAddDevicePress},void 0,a()(b.a,{className:P.a.addDeviceIcon,name:"plex-icon-add-560"}),Object(y.default)("Add Device")),a()(I.a,{isOpen:u,metricsPage:m.s,title:Object(y.default)("Delete DVR"),
message:Object(y.default)("Deleting your DVR will remove the Guide, and all scheduled recordings will be suspended. Programming you've previously recorded will remain in your library."),confirmLabel:Object(y.default)("Delete"),kind:S.b.DANGER,onConfirm:this.onRemoveDVRConfirm,onCancel:this.onRemoveDVRCancel}),a()(C.a,{isOpen:d,serverEntityID:t,dvrID:n,metricsProperties:O,onModalClose:this.onDVRSettingsModalClose}),a()(D.a,{isOpen:this.state.isAddDeviceModalOpen,serverEntityID:t,dvrID:n,
metricsProperties:O,onModalClose:this.onModalClose}))},t}(p.Component);t.a=T},function(e,t){e.exports={confirmBody:"ConfirmModal-confirmBody-10ifx ModalBody-modalScroller-1xOMq ModalBody-modalBody--5uHS",accordLabel:"ConfirmModal-accordLabel-2PQCS",accordInput:"ConfirmModal-accordInput-3RjnH",cancelButton:"ConfirmModal-cancelButton-3A26b",confirmButton:"ConfirmModal-confirmButton-1DVQ-"}},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(Object(S.a)(),Object(y.a)(),function(e,t){var n=t.reduce(function(t,n){var i=n.Context&&n.Context.transcode_session;return n.type!==m.a.GRABBER_GRAB||parseInt(n.Context.deviceID,10)!==e.key||i&&t.some(function(e){return e.Context.transcode_session===i})||t.push(n),t},[]);return{hasPrefs:!(!e.prefs||!e.prefs.length),channelCount:e.channels.length,activeTunerCount:n.length}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),
n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(188)),y=n(319),b=n(36),I=n(176),S=n(558),M=n(3012),D={fetchDeviceChannels:I.o,removeDVRDevice:I.t},C=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onRemoveDevicePress=function(){var e=i.props,t=e.serverEntityID,n=e.dvrID,a=e.deviceID;i.props.removeDVRDevice({serverEntityID:t,dvrID:n,deviceID:a})},a=n,c()(i,a)}return d()(t,e),
t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.serverEntityID,i=t.dvrID,a=t.deviceID;Object(b.a)(function(){e.props.fetchDeviceChannels({serverEntityID:n,dvrID:i,deviceID:a})})},t.prototype.render=function(){return f.a.createElement(M.a,r()({onRemoveDevicePress:this.onRemoveDevicePress},this.props))},t}(h.Component);t.a=Object(v.connect)(i,D)(C)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),
n(0)),h=(n.n(p),n(73)),f=n(20),v=n(138),g=n(3),m=n(26),y=n(386),b=n(1411),I=n(3013),S=n(24),M=n(687),D=n(3022),C=n(1412),j=n(3026),P=n.n(j),O={context:v.k},T=a()(b.a,{}),E=a()(m.a,{name:"plex-icon-alert-560"}),w=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onManageChannelsPress=function(){a.setState({isManageChannelsModalOpen:!0})},a.onManageChannelsModalClose=function(){a.setState({isManageChannelsModalOpen:!1})},a.onDeviceSettingsPress=function(){
a.setState({isDeviceSettingsModalOpen:!0})},a.onDeviceSettingsModalClose=function(){a.setState({isDeviceSettingsModalOpen:!1})},a.state={isManageChannelsModalOpen:!1,isDeviceSettingsModalOpen:!1},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.deviceID,r=e.model,o=e.uri,s=e.thumb,l=e.tunerCount,c=e.channelCount,u=e.unsupported,d=e.activeTunerCount,v=e.channelMappings,b=e.hasPrefs,j=e.status,w=e.canRemoveDevice,A=e.onRemoveDevicePress,x=j===y.b.DEAD,N=v.filter(function(e){return e.enabled}).length,L=void 0;return L=c?1===c?Object(g.default)("1 channel"):Object(g.default)("{channelCount} channels",{channelCount:c}):Object(g.default)("No channels"),a()("div",{className:P.a.device
},void 0,a()(M.a,{className:P.a.deviceImage,serverEntityID:t,model:r,thumb:s,width:100,height:100}),a()("div",{className:P.a.details},void 0,a()("div",{className:P.a.modelContainer},void 0,a()("div",{className:P.a.model},void 0,r),o?a()(p.Fragment,{},void 0,a()(h.b,{className:P.a.separator}),a()(C.a,{className:P.a.uri,uri:o})):null,u?T:null),x?a()("div",{className:P.a.deviceWarning},void 0,a()("div",{className:P.a.deviceWarningIconContainer
},void 0,E),Object(g.default)("Device not found. Ensure your device is powered on and connected to your network.")):a()("div",{className:P.a.info},void 0,a()("div",{},void 0,1===l?Object(g.default)("1 tuner"):Object(g.default)("{tunerCount} tuners",{tunerCount:l}),d?a()(p.Fragment,{},void 0,a()(h.b,{className:P.a.separator}),Object(g.default)("{activeTunerCount} in use now",{activeTunerCount:d})):null),a()("div",{},void 0,L,a()(h.b,{className:P.a.separator}),a()(f.a,{kind:S.b.PRIMARY,
onPress:this.onManageChannelsPress},void 0,Object(g.default)("{enabledChannelsCount} enabled",{enabledChannelsCount:N}))),b?a()(f.a,{className:P.a.deviceSettingsButton,kind:S.b.PRIMARY,onPress:this.onDeviceSettingsPress},void 0,a()(m.a,{className:P.a.deviceSettingsIcon,name:"plex-icon-settings-560","aria-label":Object(g.default)("Device Settings")}),Object(g.default)("Device Settings")):null)),w?a()("div",{className:P.a.removeDeviceContainer},void 0,a()(f.a,{className:P.a.removeDevice,onPress:A
},void 0,a()(m.a,{name:"plex-icon-remove-560","aria-label":Object(g.default)("Remove Device")}))):null,a()(I.a,{serverEntityID:t,dvrID:n,deviceID:i,metricsProperties:O,isOpen:this.state.isManageChannelsModalOpen,onModalClose:this.onManageChannelsModalClose}),a()(D.a,{serverEntityID:t,dvrID:n,deviceID:i,metricsProperties:O,isOpen:this.state.isDeviceSettingsModalOpen,onModalClose:this.onDeviceSettingsModalClose}))},t}(p.Component);t.a=w},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(Object(b.a)(),Object(y.a)(),function(e,t){return{dvrID:e.key,deviceID:t.key}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(176)),y=n(558),b=n(690),I=n(3014),S=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onModalClose=function(){i.props.clearDVRSetup({
serverEntityID:i.props.serverEntityID}),i.props.onModalClose()},a=n,c()(i,a)}return d()(t,e),t.prototype.render=function(){return f.a.createElement(I.a,r()({},this.props,{onModalClose:this.onModalClose}))},t}(h.Component);t.a=Object(v.connect)(i,{clearDVRSetup:m.g})(S)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.dvrID,i=e.deviceID,a=e.metricsProperties,o=e.isOpen,s=e.onModalClose;return r()(c.a,{metricsPage:l.A,metricsProperties:a,isOpen:o,
preventCloseOnBackdropPress:!0,onModalClose:s},void 0,r()(u.a,{serverEntityID:t,dvrID:n,deviceID:i,onModalClose:s}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(114),u=n(3015);t.a=i},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(Object(j.a)(),Object(C.a)(),Object(M.a)(),Object(D.a)(),P.a,O.a,function(e,t,n,i,a,r){
var o=e.country,s=e.lineup,l=a.isChannelMappingsPending,c=a.isLineupChannelsPending,u=a.channelMappingsError,d=a.lineupChannelsError,p=a.isChannelMappingsSaving,h=a.channelMappingsSaveError,f=a.scanPrefs,v=a.scanNetworks;return{country:o,lineupUUID:e.lineup,lineupTitle:s,channelMappings:n,lineupChannels:r,isChannelMappingsPending:l,isLineupChannelsPending:c,isDeviceChannelsPending:t.isChannelsPending,channelMappingsError:u,lineupChannelsError:d,isChannelMappingsSaving:p,
channelMappingsSaveError:h,deviceChannelsError:t.channelsError,scanPrefs:f,scanNetworks:v,channelScanActivity:i}})}function a(e,t){var n=t.serverEntityID,i=t.dvrID,a=t.deviceID;return{dispatchSelectDevice:function(){e(S.p({serverEntityID:n,dvrID:i,deviceID:a}))},dispatchFetchLineupChannels:function(t){e(S.r({serverEntityID:n,lineupUUID:t}))},dispatchFetchDeviceChannels:function(){e(S.o({serverEntityID:n,dvrID:i,deviceID:a}))},dispatchFetchChannelMap:function(){e(S.n({serverEntityID:n}))},
dispatchCancelScanDeviceChannels:function(){e(S.c({serverEntityID:n,deviceID:a}))},dispatchClearDeviceScanPrefs:function(){e(S.h({serverEntityID:n}))},onScanDeviceChannels:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(S.y(f()({serverEntityID:n,dvrID:i,deviceID:a,country:t},r)))},onSubmit:function(t){Object(I.a)(function(){e(S.u({serverEntityID:n,dvrID:i,deviceID:a,data:t}))})},onDismissSaveError:function(){Object(I.a)(function(){e(S.e())})}}}
var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(36)),S=n(176),M=n(1421),D=n(1409),C=n(558),j=n(690),P=n(201),O=n(1422),T=n(3016),E=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onCancelScanDeviceChannels=function(){a.setState({isCancellingChannelScan:!0}),a.props.dispatchCancelScanDeviceChannels(a.props.deviceID)},a.state={
isCancellingChannelScan:!!n.channelScanActivity},a}return p()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.lineupUUID,n=e.dispatchClearDeviceScanPrefs,i=e.dispatchSelectDevice,a=e.dispatchFetchLineupChannels,r=e.dispatchFetchDeviceChannels;Object(I.a)(function(){n(),i(),a(t),r()})},t.prototype.componentWillReceiveProps=function(e){!e.channelScanActivity&&this.props.channelScanActivity&&this.setState({isCancellingChannelScan:!1})},
t.prototype.componentDidUpdate=function(e,t){var n=this;e.isChannelMappingsSaving&&!this.props.isChannelMappingsSaving&&null==this.props.channelMappingsSaveError&&this.props.onModalClose(),this.props.channelScanActivity||!e.channelScanActivity||this.props.scanNetworks||Object(I.a)(function(){n.props.dispatchFetchDeviceChannels()})},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.deviceID
;e.channelScanActivity&&!this.state.isCancellingChannelScan&&this.props.dispatchCancelScanDeviceChannels({serverEntityID:t,dvrID:n,deviceID:i})},t.prototype.render=function(){var e=this.props,t=(e.dispatchSelectDevice,e.dispatchFetchLineupChannels,e.dispatchFetchDeviceChannels,e.dispatchFetchChannelMap,e.dispatchCancelScanDeviceChannels,e.dispatchClearDeviceScanPrefs,
o()(e,["dispatchSelectDevice","dispatchFetchLineupChannels","dispatchFetchDeviceChannels","dispatchFetchChannelMap","dispatchCancelScanDeviceChannels","dispatchClearDeviceScanPrefs"]));return m.a.createElement(T.a,f()({isCancellingChannelScan:this.state.isCancellingChannelScan,onCancelScanDeviceChannels:this.onCancelScanDeviceChannels},t))},t}(g.Component);t.a=Object(y.connect)(i,a)(E)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(186),v=n(61),g=n(88),m=n(115),y=n(84),b=n(250),I=n(3),S=n(31),M=n(139),D=n(217),C=n(98),j=n(935),P=n(1425),O=n(24),T=n(3019),E=n(3021),w=n.n(E),A=a()(S.a,{}),x=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onScanDeviceChannelsButtonPress=function(){
var e=i.props,t=e.scanPrefs,n=e.scanNetworks,a=e.channelScanActivity,r=e.onScanDeviceChannels,o=e.onCancelScanDeviceChannels;t.length||n.length||(a?o():r(i.props.country))},i.onSubmit=function(e){var t=i.props,n=t.scanPrefs,a=t.scanNetworks,r=t.onSubmit;if(n.length||a.length){var o=i.props.scanPrefs.length?{prefs:e}:e;i.props.onScanDeviceChannels(i.props.country,o)}else r(e)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.channelMappings,n=e.lineupChannels,i=e.isChannelMappingsPending,r=e.isLineupChannelsPending,o=e.isDeviceChannelsPending,s=e.channelMappingsError,l=e.lineupChannelsError,c=e.deviceChannelsError,u=e.isChannelMappingsSaving,d=e.channelMappingsSaveError,p=e.formState,S=e.allChannelMappingsEnabled,P=e.allChannelMappingsDisabled,E=e.isCancellingChannelScan,x=e.scanPrefs,N=e.scanNetworks,L=e.channelScanActivity,k=e.onAllChannelMappingsEnabledChange,R=e.onFormStateChange,z=e.onModalClose,U=L&&!E,B=i||r||o,F=s||l||c,_=!U&&B,V=L?parseInt(L.Response.channels,10):0,H=void 0
;H=1===V?Object(I.default)("Scanning channels. 1 channel found."):V>1?Object(I.default)("Scanning channels. {channelCount} channels found.",{channelCount:V}):Object(I.default)("Scanning channels. No channels found.");var Q=!(!x.length&&!N.length),Y=t.some(function(e){return null!=e.signalQuality||null!=e.signalStrengh
}),G=Y?Object(I.default)('Click "Scan Channels" to refresh this list, or create a new DVR to use a different lineup. Signal strength is stored at the time of scanning.'):Object(I.default)('Click "Scan Channels" to refresh this list, or create a new DVR to use a different lineup.');return F?a()(j.a,{message:Object(I.default)("Unable to load channel mappings"),onModalClose:z}):a()(f.b,{className:w.a.form,formState:p,onChange:R,onSubmit:this.onSubmit},void 0,a()(C.a,{onModalClose:z
},void 0,a()(y.a,{},void 0,Object(I.default)("Manage Channels")),_&&a()(v.a,{},void 0,a()("div",{className:w.a.centeredContainer},void 0,A)),!_&&!!d&&a()("div",{},void 0,a()(D.a,{errorMessage:Object(b.a)(d,Object(I.default)("There was a problem saving your changes. Please try again."))})),!_&&a()(v.a,{className:L?void 0:w.a.manageChannelsBody,scrollDirection:L?O.d.VERTICAL:O.d.NONE},void 0,a()("div",{className:w.a.scanChannelsContainer},void 0,a()("div",{className:w.a.scanChannelsMessage
},void 0,L?H:G),a()("div",{},void 0,a()(M.a,{type:Q?"submit":"button",size:O.e.MEDIUM,isSpinning:E,isDisabled:E,onPress:this.onScanDeviceChannelsButtonPress},void 0,U?Object(I.default)("Stop scanning"):Object(I.default)("Scan channels")))),a()(T.a,{channelMappings:t,lineupChannels:n,showSignalStrength:Y,channelScanActivity:L,scanPrefs:x,scanNetworks:N,allChannelMappingsEnabled:S,allChannelMappingsDisabled:P,onAllChannelMappingsEnabledChange:k})),a()(g.a,{},void 0,a()(m.a,{},void 0,a()(h.a,{
kind:O.b.DEFAULT,size:O.e.MEDIUM,onPress:z},void 0,Object(I.default)("Cancel")),a()(M.a,{type:"submit",kind:O.b.PRIMARY,size:O.e.MEDIUM,isDisabled:_||!!L,isSpinning:u},void 0,Object(I.default)("Save"))))))},t}(p.Component);x.defaultProps={scanPrefs:[],scanNetworks:[]},t.a=Object(P.a)(x)},function(e,t){e.exports={modalScroller:"ModalContentCenter-modalScroller-3cd-b ModalBody-modalScroller-1xOMq ModalBody-modalBody--5uHS",
innerModalBody:"ModalContentCenter-innerModalBody-3jQ5I ModalBody-innerModalBody-36gmb"}},function(e,t){e.exports={icon:"ModalContentError-icon-235FF",default:"ModalContentError-default-1xFU8",primary:"ModalContentError-primary-34blW",success:"ModalContentError-success-2Wv-f",danger:"ModalContentError-danger-22PUT",message:"ModalContentError-message-3J35m"}},function(e,t,n){"use strict";function i(e){
var t=e.channelMappings,n=e.lineupChannels,i=e.showSignalStrength,a=e.channelScanActivity,o=e.scanPrefs,s=e.scanNetworks,f=e.allChannelMappingsEnabled,g=e.allChannelMappingsDisabled,m=e.onAllChannelMappingsEnabledChange,y=t.some(function(e){return e.isDeviceChannelHD||e.isLineupChannelHD});return a?r()("div",{className:v.a.progressContainer},void 0,r()(c.a,{size:90,progress:a.progress})):o.length?r()(l.a,{className:v.a.scroller,autoScroll:!0},void 0,r()(d.a,{prefs:o})):s.length?r()(u.a,{
networks:s}):t.length?r()(l.a,{className:v.a.scroller,autoScroll:!0},void 0,r()(h.a,{showSignalStrength:i,allChannelMappingsEnabled:f,allChannelMappingsDisabled:g,onAllChannelMappingsEnabledChange:m}),t.map(function(e){var t=e.key,i=e.deviceIdentifier,a=e.name,o=e.enabled,s=e.lineupIdentifier,l=e.drm,c=e.signalStrength,u=e.signalQuality,d=e.isDeviceChannelHD,h=e.isLineupChannelHD,f=e.isChannelMissing;return r()(p.a,{name:t,initialValue:{enabled:o,lineupIdentifier:s},deviceIdentifier:i,
channelName:a,drm:l,signalStrength:u||c,isChannelMissing:f,showResolution:y,isDeviceChannelHD:d,isLineupChannelHD:h,lineupChannels:n},t)})):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(320),u=n(1415),d=n(1416),p=n(1423),h=n(1424),f=n(3020),v=n.n(f);t.a=i},function(e,t){e.exports={progressContainer:"DVRManageChannelsInfo-progressContainer-1JJ2z",scroller:"DVRManageChannelsInfo-scroller-1mBV9 Scroller-vertical-VScFL"}},function(e,t){e.exports={
form:"DVRManageChannelsModalContent-form-2ykdJ",manageChannelsBody:"DVRManageChannelsModalContent-manageChannelsBody-PHeFR ModalBody-modalBody--5uHS",scanChannelsContainer:"DVRManageChannelsModalContent-scanChannelsContainer-1k91y",scanChannelsMessage:"DVRManageChannelsModalContent-scanChannelsMessage-3d_Eu",scroller:"DVRManageChannelsModalContent-scroller-1MbzJ Scroller-vertical-VScFL",centeredContainer:"DVRManageChannelsModalContent-centeredContainer-6K7kA",
progressContainer:"DVRManageChannelsModalContent-progressContainer-1GUW1"}},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose,a=c()(e,["isOpen","metricsProperties","onModalClose"]);return s()(f.a,{isOpen:t,metricsPage:h.z,metricsProperties:n,onModalClose:i},void 0,p.a.createElement(v.a,r()({onModalClose:i},a)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(30),f=n(114),v=n(3023);t.a=i},function(e,t,n){
"use strict";function i(){return Object(g.createSelector)(function(e,t){return t.dvrID},Object(b.a)(),function(e,t){return{dvrID:e,deviceID:t.key,model:t.model,uri:t.uri,prefs:t.prefs,thumb:t.thumb,isSaving:t.isSaving,saveError:t.saveError}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(36)),y=n(176),b=n(558),I=n(3024),S=function(e){function t(){var n,i,a;s()(this,t)
;for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onSubmit=function(e){var t=i.props,n=t.serverEntityID,a=t.dvrID,r=t.deviceID;Object(m.a)(function(){i.props.saveDeviceSettings({serverEntityID:n,dvrID:a,deviceID:r,prefs:e})})},i.onModalClose=function(){var e=i.props,t=e.dvrID,n=e.deviceID;i.props.clearDeviceSettingsSaveError({dvrID:t,deviceID:n}),i.props.onModalClose()},a=n,c()(i,a)}return d()(t,e),
t.prototype.render=function(){return f.a.createElement(I.a,r()({},this.props,{onSubmit:this.onSubmit,onModalClose:this.onModalClose}))},t}(h.Component);t.a=Object(v.connect)(i,{saveDeviceSettings:y.x,clearDeviceSettingsSaveError:y.i})(S)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(42),m=n(186),y=n(61),b=n(88),I=n(115),S=n(84),M=n(250),D=n(3),C=n(139),j=n(217),P=n(557),O=n(98),T=n(24),E=n(687),w=n(3025),A=n.n(w),x=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidUpdate=function(e,t){e.isSaving&&!this.props.isSaving&&null==this.props.saveError&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.model,i=e.uri,r=e.thumb,s=e.prefs,l=e.isSaving,c=e.saveError,u=e.onSubmit,d=e.onModalClose;return o()(m.b,{className:A.a.form,onSubmit:u},void 0,o()(O.a,{onModalClose:d},void 0,o()(S.a,{},void 0,Object(D.default)("Device Settings")),c?o()(j.a,{errorMessage:Object(M.a)(c,Object(D.default)("There was a problem saving your changes. Please try again."))}):null,o()(y.a,{},void 0,o()("div",{className:A.a.container},void 0,o()(E.a,{className:A.a.deviceImage,
serverEntityID:t,model:n,thumb:r,width:150,height:150}),o()("div",{className:A.a.info},void 0,o()("div",{className:A.a.model},void 0,n),o()("div",{},void 0,i),o()("div",{className:A.a.settings},void 0,s.map(function(e){var t=e.id;return v.a.createElement(P.a,a()({key:t},e))}))))),o()(b.a,{},void 0,o()(I.a,{},void 0,o()(g.a,{kind:T.b.DEFAULT,size:T.e.MEDIUM,onPress:d},void 0,Object(D.default)("Cancel")),o()(C.a,{type:"submit",isSpinning:l,kind:T.b.PRIMARY,size:T.e.MEDIUM
},void 0,Object(D.default)("Save"))))))},t}(f.Component);t.a=x},function(e,t){e.exports={form:"DVRDeviceSettingsModalContent-form-1a8dR",container:"DVRDeviceSettingsModalContent-container-320C5",info:"DVRDeviceSettingsModalContent-info-3oNQ9",deviceImage:"DVRDeviceSettingsModalContent-deviceImage-3ud4c",model:"DVRDeviceSettingsModalContent-model-3qWA4",settings:"DVRDeviceSettingsModalContent-settings-3-Kyi"}},function(e,t){e.exports={device:"DVRDevice-device-3IwH6",
deviceImage:"DVRDevice-deviceImage-1efFa DVRDeviceImage-image-1q4Bg",details:"DVRDevice-details-F9a0M",modelContainer:"DVRDevice-modelContainer-3qwvJ",model:"DVRDevice-model-1unSm",deviceSettingsButton:"DVRDevice-deviceSettingsButton-2W-U0 Link-link-2n0yJ",deviceSettingsIcon:"DVRDevice-deviceSettingsIcon-wNdKg",uri:"DVRDevice-uri-2Vhv0",deviceWarning:"DVRDevice-deviceWarning-UAoFi",deviceWarningIconContainer:"DVRDevice-deviceWarningIconContainer-29K1l",
separator:"DVRDevice-separator-2sIVz DashSeparator-separator-4CyEF",info:"DVRDevice-info-kn53L",removeDeviceContainer:"DVRDevice-removeDeviceContainer-2W5hI",removeDevice:"DVRDevice-removeDevice-3N-rD"}},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose,a=c()(e,["isOpen","metricsProperties","onModalClose"]);return s()(f.a,{isOpen:t,metricsPage:h.B,metricsProperties:n,onModalClose:i},void 0,p.a.createElement(v.a,r()({onModalClose:i},a)))}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(30),f=n(114),v=n(3028);t.a=i},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(Object(b.a)(),function(e){return{prefs:e.prefs,isSaving:e.isSaving,saveError:e.saveError}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(36)),y=n(176),b=n(690),I=n(3029),S=function(e){function t(){var n,i,a;s()(this,t)
;for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onSubmit=function(e){var t=i.props,n=t.serverEntityID,a=t.dvrID;Object(m.a)(function(){i.props.saveDVRSettings({serverEntityID:n,dvrID:a,prefs:e})})},i.onModalClose=function(){i.props.clearDVRSettingsSaveError({dvrID:i.props.dvrID}),i.props.onModalClose()},a=n,c()(i,a)}return d()(t,e),t.prototype.render=function(){return f.a.createElement(I.a,r()({},this.props,{
onSubmit:this.onSubmit,onModalClose:this.onModalClose}))},t}(h.Component);t.a=Object(v.connect)(i,{saveDVRSettings:y.w,clearDVRSettingsSaveError:y.f})(S)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(42),m=n(186),y=n(61),b=n(88),I=n(115),S=n(84),M=n(250),D=n(3),C=n(139),j=n(217),P=n(557),O=n(98),T=n(24),E=n(3030),w=n.n(E),A=function(e){function t(){return l()(this,t),
u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidUpdate=function(e,t){e.isSaving&&!this.props.isSaving&&null==this.props.saveError&&this.props.onModalClose()},t.prototype.render=function(){var e=this.props,t=e.prefs,n=e.isSaving,i=e.saveError,r=e.onSubmit,s=e.onModalClose;return o()(m.b,{className:w.a.form,onSubmit:r},void 0,o()(O.a,{onModalClose:s},void 0,o()(S.a,{},void 0,Object(D.default)("DVR Settings")),i?o()(j.a,{
errorMessage:Object(M.a)(i,Object(D.default)("There was a problem saving your changes. Please try again."))}):null,o()(y.a,{},void 0,t.map(function(e){var t=e.id;return v.a.createElement(P.a,a()({key:t},e))})),o()(b.a,{},void 0,o()(I.a,{},void 0,o()(g.a,{kind:T.b.DEFAULT,size:T.e.MEDIUM,onPress:s},void 0,Object(D.default)("Cancel")),o()(C.a,{type:"submit",isSpinning:n,kind:T.b.PRIMARY,size:T.e.MEDIUM},void 0,Object(D.default)("Save"))))))},t}(f.Component);t.a=A},function(e,t){e.exports={
form:"DVRSettingsModalContent-form-2-MX9"}},function(e,t){e.exports={dvr:"DVRListItem-dvr-1CoTi",header:"DVRListItem-header-Lb8AE",separator:"DVRListItem-separator-2BuN4 DashSeparator-separator-4CyEF",name:"DVRListItem-name-rIFJz",deleteLink:"DVRListItem-deleteLink-1ATve",actions:"DVRListItem-actions-1mU6F",actionIcon:"DVRListItem-actionIcon-fPqPl",devices:"DVRListItem-devices-2eZl_",addDeviceIcon:"DVRListItem-addDeviceIcon-2n26f"}},function(e,t){e.exports={
container:"LiveTVSettingsPage-container-KCZxG",info:"LiveTVSettingsPage-info-nWAM3",moreInfo:"LiveTVSettingsPage-moreInfo-13wgk",upsell:"LiveTVSettingsPage-upsell-rUmZ4 PlexPassUpsell-upsell-3i2JL"}},function(e,t,n){"use strict";function i(){return Object(I.createSelector)(Object(M.a)(),function(e){return e.reduce(function(e,t){var n=Object(C.a)(t);return e[n]?e[n].push(t.entityID):e[n]=[t.entityID],e},{})})}function a(){
return Object(I.createSelector)(Object(D.a)(),Object(O.a)(),i(),function(e,t,n){return{sectionTypes:j.f.getAll(),librariesBySectionType:n,librariesCount:e.libraries.length,isLibrariesPopulated:e.isLibrariesPopulated,librariesError:e.librariesError,isLibraryRefreshing:t}})}function r(e,t){var n={serverEntityID:t.serverEntityID};return{dispatchFetchLibraries:function(){e(S.g(n))},onAddLibraryPress:function(){e(P.a(v()({},n,{redirect:!1})))},onUpdateLibrariesPress:function(){e(P.o(n))},
onCancelUpdatePress:function(){e(P.b(n))}}}var o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(6),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(11),I=n(4),S=(n.n(I),n(116)),M=n(691),D=n(917),C=n(936),j=n(145),P=n(202),O=n(464),T=n(3111),E=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchLibraries()},t.prototype.render=function(){
var e=this.props,t=(e.dispatchFetchLibraries,s()(e,["dispatchFetchLibraries"]));return y.a.createElement(T.a,t)},t}(m.Component);t.a=Object(b.connect)(a,r)(E)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(16),o=n(176),s=n(301),l=n(197),c=n(3035),u=n.n(c),d=s.a.extend({className:"alert-bar notify",template:u.a,events:a.a.extend({"click .setup-link":"onSetupClick"},s.a.prototype.events),serializeData:function(){return{model:this.model.get("model"),make:this.model.get("make"),
dvrSettingsRoute:Object(l.a)(this.options.machineIdentifier,"manage","dvr")}},disableDevice:function(){var e=Object(r.c)("appStore"),t=this.options.serverEntityID;t&&e.dispatch(Object(o.C)({serverEntityID:t,deviceID:this.model.id,enabled:!1}))},onSetupClick:function(){this.hide(),this.disableDevice()},onCloseClick:function(e){s.a.prototype.onCloseClick.apply(this,arguments),this.disableDevice()}});t.a=d},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message">'+c(i(n(5)).call(t,"A new TV tuner ({tunerMake} {tunerModel}) has been found! Plex DVR is the easiest way to record your favorite shows!",{hash:{tunerModel:t&&t.model,tunerMake:t&&t.make},data:o
}))+'</span> <a class="setup-link link" href="'+c((s=t&&t.dvrSettingsRoute,"function"==typeof s?s.apply(t):s))+'">'+c(i(n(5)).call(t,"Learn more",{hash:{},data:o}))+"</a> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(43),l=n(3037),c=n(461),u=n(3046),d=n(3048),p=n.n(d),h=c.a.extend({template:p.a,ui:o.a.extend({sectionAgent:"#edit-section-agent",sectionScanner:"#edit-section-scanner",thumbnailsCheckbox:'input[name="enableBIFGeneration"]',agentGroup:".agent-group",
scannerGroup:".scanner-group"},c.a.prototype.ui),events:{"change #edit-section-agent":"onEditSectionAgentChange","change #edit-section-scanner":"onEditSectionScannerChange","click .delete-thumbnails-btn":"onThumbnailsDeleteClick"},regions:{sectionSettingsRegion:".section-settings-region",agentSettingsRegion:".section-agent-settings-region"},onlyAfterRender:["renderSectionAgent","renderSectionScanner","renderSectionSettings","renderSectionAgentSettings"].concat(c.a.prototype.onlyAfterRender),
initialize:function(){this.populateCollections()},onRender:function(){this.model.agents.populate(),this.model.scanners.populate()},validate:function(e){var t=[];return e.get("agent")||t.push("agent"),e.get("scanner")||t.push("scanner"),t},renderSectionSettings:function(){var e=new u.a({model:this.model,collection:this.model.settings,hideSettings:["enableAutoPhotoTags"]});this.sectionSettingsRegion.show(e)},renderSectionAgentSettings:function(){var e=new l.a({model:this.model,
collection:this.model.agentSettings});this.agentSettingsRegion.show(e)},populateCollections:function(){var e=this.populateAgents(),t=this.populateScanners(),n=this.populateSectionSettings(),i=this.populateSectionAgentSettings();return this.populateAgentsProxy(),this.populateScannersProxy(),e.then(o.a.bind(this.onAgentsPopulate,this)),t.then(o.a.bind(this.onScannersPopulate,this)),n.then(o.a.bind(this.renderSectionSettings,this)),i.then(o.a.bind(this.renderSectionAgentSettings,this)),
a.a.when(e,t,n,i).then(o.a.bind(this.validate,this,this.model))},renderSectionAgent:function(){var e=this.model.agentsProxy,t=this.createMenuOptions(e.map(function(e){return{label:e.get("name"),value:e.get("identifier")}}),this.model.get("agent"));this.ui.sectionAgent.html(t),e.length>1&&this.ui.agentGroup.removeClass("hidden")},renderSectionScanner:function(){var e=this.model.scannersProxy,t=this.createMenuOptions(e.map(function(e){return{label:e.get("name"),value:e.get("name")}
}),this.model.get("scanner"));this.ui.sectionScanner.html(t),e.length>1&&this.ui.scannerGroup.removeClass("hidden")},onEditSectionAgentChange:function(e){var t=a()(e.currentTarget),n=t.val();this.model.set("agent",n),this.agentSettingsRegion.close();var i=this.model.agents.get(n);if(i){var r=i.get("languages"),s=this.model.get("language");r.get(s)||this.model.set("language",r.first().get("code")),this.model.agentSettings=null,
this.populateSectionAgentSettings().then(o.a.bind(this.renderSectionAgentSettings,this))}this.showValidationResult(this.validate(this.model))},onEditSectionScannerChange:function(e){var t=a()(e.currentTarget);this.model.set("scanner",t.val()),this.showValidationResult(this.validate(this.model))},onAgentsPopulate:function(e){this.renderSectionAgent()},onScannersPopulate:function(e){this.renderSectionScanner()},onThumbnailsDeleteClick:function(e){e.preventDefault(),
s.a.execute("deleteSectionThumbnails",{section:this.model}).done(this.whenRendered(function(){this.ui.thumbnailsCheckbox.prop("checked",!1)}))}});t.a=h},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(3038),s=n.n(o),l=r.a.ItemView.extend({template:s.a,events:{"change input[name]":"onInputChange","change select[name]":"onInputChange"},initialize:function(){this.changes={}},serializeData:function(){return{settings:this.collection.toJSON(),
agentName:this.model.agents.get(this.model.get("agent")).get("name")}},onInputChange:function(e){var t=a()(e.currentTarget),n=t.is(":checkbox")?t.prop("checked"):t.val();this.collection.findWhere({id:t.attr("name")}).set("value",n)}});t.a=l},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o=""
;return o+=' <div class="setup-agent-section"> <div class="setup-agent-title">'+d(i(n(5)).call(e,"{1} Settings",e&&e.agentName,{hash:{},data:t}))+'</div> <p class="setup-agent-disclaimer">'+d(i(n(5)).call(e,"Note: These settings will take effect for all libraries using the {1} agent.",e&&e.agentName,{hash:{},data:t}))+'</p> <div class="setup-agent-settings"> ',r=a.each.call(e,e&&e.settings,{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=" </div> </div> "}
function l(e,t){var a="";return a+=" "+d(i(n(29)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return c=a.if.call(t,t&&t.settings,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=" "})},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(3040),o=n(3041),s=i.a.extend({name:"AgentModel",context:["server"],idAttribute:"identifier",rootPropertyName:"Agent",
sessionAttrs:{isPrimary:a.a.boolean,selected:a.a.boolean},sessionRelations:{attribution:{relationClass:r.a}},syncedAttrs:{identifier:a.a.string,name:a.a.string,enabled:a.a.boolean,hasPrefs:a.a.boolean,order:a.a.string},syncedRelations:{languages:{relationClass:o.a,rootPropertyName:"Language"}}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(69),o=i.a.extend({name:"AgentAttributionModel",context:["server"],responseType:r.a.text,syncedAttrs:{content:a.a.string},url:function(){
return"/system/agents/attribution?identifier="+this.parent.id},augmentResponse:function(e){return{content:e}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(3042),r=i.a.extend({name:"LanguageCollection",context:["server"],model:a.a,comparator:"name"});t.a=r},function(e,t,n){"use strict";var i=n(1427),a=n(17),r=n(14),o=a.a.extend({name:"LanguageModel",context:["server"],idAttribute:"code",rootPropertyName:"Language",syncedAttrs:{code:r.a.string},derivedAttrs:{name:function(){
return Object(i.a)(this.get("code"))}}});t.a=o},function(e,t,n){"use strict";var i=n(694),a=n.n(i),r=n(10),o=n.n(r),s=a.a.extend({constructor:function(e,t,n,i){this.exclusiveScanners=t,this.scannerName=n,a.a.call(this,e,i),this.filterBy(o.a.bind(this.filterExclusiveScanner,this))},filterExclusiveScanner:function(e){var t=e.get("name"),n=this.exclusiveScanners;if(!n)return!0;var i=this.scannerName,a=-1!==n.indexOf(i),r=-1!==n.indexOf(t);return a?t===i:!r}});t.a=s},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(25),o=n(3045),s=r.a.extend({name:"ScannerCollection",context:["server","sectionTypeID"],model:o.a,url:function(){return"/system/scanners/"+this.sectionTypeID},hasExclusiveScanner:function(e){return!!a.a.intersection(this.pluck("name"),e).length}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ScannerModel",context:["server"],rootPropertyName:"Scanner",syncedAttrs:{name:a.a.string}});t.a=r},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(3047),c=n.n(l),u=r.a.ItemView.extend({template:c.a,events:{"change [name]":"onEditSectionSettingInputChange"},initialize:function(e){this.hideSettings=e.hideSettings},serializeData:function(){function e(e){return!s.a.contains(t,e.get("id"))}var t=this.hideSettings;return{settings:this.model.settings.filter(e).map(function(e){return e.toJSON()}),edit:!this.model.isNew()}},onEditSectionSettingInputChange:function(e){
var t=a()(e.currentTarget),n=t.attr("name");if("importFromiTunes"===n)return void this.model.set(n,!0);var i=t.is(":checkbox")?t.prop("checked"):t.val();this.collection.findWhere({id:n}).set("value",i)}});t.a=u},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t,r){var o,s="";return s+=" "+p(i(n(29)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" ",o=a.if.call(e,r&&r.edit,{hash:{},inverse:h.noop,
fn:h.program(2,l,t),data:t}),(o||0===o)&&(s+=o),s+=" "}function l(e,t){var a,r="";return r+=" ",a=i(n(34)).call(e,e&&e.id,"enableBIFGeneration",{hash:{},inverse:h.noop,fn:h.program(3,c,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function c(e,t){var a="";return a+=' <div class="form-group"> <button type="button" class="delete-thumbnails-btn btn btn-sm btn-danger">'+p(i(n(5)).call(e,"Delete Preview Thumbnails",{hash:{},data:t}))+"</button> </div> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var u,d="",p=this.escapeExpression,h=this;return u=a.each.call(t,t&&t.settings,{hash:{},inverse:h.noop,fn:h.programWithDepth(1,s,o,t),data:o}),(u||0===u)&&(d+=u),d+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<form class="edit-section-advanced-form settings-container"> <div class="language-group"> <input type="hidden" name="language" value="'+c((s=t&&t.section,s=null==s||!1===s?s:s.language,"function"==typeof s?s.apply(t):s))+'"> </div> <div class="row"> <div class="col-md-12 section-settings-region"></div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group scanner-group hidden"> <label for="edit-section-scanner" class="control-label"> '+c(i(n(5)).call(t,"Scanner",{
hash:{},data:o}))+' <span class="control-error">'+c(i(n(5)).call(t,"A scanner is required.",{hash:{},data:o}))+'</span> </label> <select id="edit-section-scanner" name="scanner"></select> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group agent-group hidden"> <label for="edit-section-agent" class="control-label"> '+c(i(n(5)).call(t,"Agent",{hash:{},data:o}))+' <span class="control-error">'+c(i(n(5)).call(t,"An agent is required.",{hash:{},data:o
}))+'</span> </label> <select id="edit-section-agent" name="agent"></select> </div> </div> </div> <div class="row"> <div class="col-md-12 section-agent-settings-region"></div> </div> </form> '})},function(e,t,n){"use strict";var i=n(461),a=n(3050),r=n.n(a),o=i.a.extend({template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var s="",l=this.escapeExpression;return s+='<form class="edit-section-type-form settings-container"> <p>'+l(i(n(5)).call(t,"There was an error adding this library.",{hash:{},data:o}))+"</p> <p>"+l(i(n(5)).call(t,"You need to {1}follow these instructions{2} to troubleshoot the Plex Media Server.",'<a href="https://support.plex.tv/hc/en-us/articles/201119258-Resetting-System-and-Framework-bundles" target="_blank">',"</a>",{hash:{},data:o}))+"</p> </form>"})},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(13),o=n.n(r),s=n(19),l=n(523),c=n(938),u=n(1429),d=n(461),p=n(3052),h=n(3055),f=n(3068),v=n.n(f),g=d.a.extend({template:v.a,fieldNames:["Location"],regions:{pathsRegion:".paths-region"},ui:a()({},d.a.prototype.ui,{addFolderBtn:".add-folder-btn",addFolderPopulating:".add-folder-populating",addFolderError:".add-folder-error"}),events:{"click .add-folder-btn":"onAddFolderClick","change input[name=path]":"onFolderChange"},
onlyAfterRender:["renderSectionLocation","updateAddFolderBtn"].concat(d.a.prototype.onlyAfterRender),initialize:function(){this.listenTo(this.model.get("locations"),{add:this.onCollectionChange,remove:this.onCollectionChange}),this.renderSectionLocation(),this.startCheckingPersonalCloudServerDriveCacheUpdateStatus(),this.updateAddFolderBtn(),this.showValidationResult(this.validate(this.model))},serializeData:function(){return{
isPersonalCloudServerDriveCachePending:this.isPersonalCloudServerDriveCachePending}},validate:function(e){var t=[];return e.get("locations").length||t.push("locations"),t},renderSectionLocation:function(){var e=new p.a({collection:this.model.get("locations")});this.pathsRegion.show(e)},updateAddFolderBtn:function(){var e=!this.isPersonalCloudServerDriveCachePending,t=!!this.personalCloudServerDriveCacheError;this.ui.addFolderBtn.toggleClass("hidden",!e),
this.ui.addFolderError.toggleClass("hidden",e||!t),this.ui.addFolderPopulating.toggleClass("hidden",e||t)},startCheckingPersonalCloudServerDriveCacheUpdateStatus:function(){var e=this;this.isPersonalCloudServerDriveCachePending=null,this.personalCloudServerDriveCacheError=null;var t=this.model.server;if(t.get("isPersonalCloudServer")){this.isPersonalCloudServerDriveCachePending=!0,this.cancelPersonalCloudServerDriveCacheRetryDeferred=i;var n=new u.a({},{server:t
}),i=o.a.Deferred(),a=Object(c.a)(function(){return n.fetchAndNotUpdating()},{times:100,delay:2e3,maxDuration:18e4,cancel:i.promise()});Object(l.a)(a,500).done(function(){e.isPersonalCloudServerDriveCachePending=!1}).fail(function(){e.personalCloudServerDriveCacheError=!0}).always(function(){e.cancelPersonalCloudServerDriveCacheRetryDeferred=null,e.updateAddFolderBtn()})}},onCollectionChange:function(){this.showValidationResult(this.validate(this.model))},onAddFolderClick:function(e){
e.preventDefault();var t=new h.a({server:this.model.server});this.listenToOnce(t,"add:folder",this.onAddFolder),s.a.trigger("show:modal",t)},onAddFolder:function(e){if(e){var t={path:e};this.model.get("locations").findWhere(t)||this.model.get("locations").add(t)}},onFolderChange:function(e){var t=o()(e.currentTarget),n=t.prop("defaultValue"),i=t.val();if(!i)return void t.val(n);this.model.get("locations").findWhere({path:n}).set("path",i),t.prop("defaultValue",i)},onClose:function(){
this.cancelPersonalCloudServerDriveCacheRetryDeferred&&this.cancelPersonalCloudServerDriveCacheRetryDeferred.resolve()}});t.a=g},function(e,t,n){"use strict";var i=n(22),a=n(3053),r=i.a.CollectionView.extend({itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(22),o=n(3054),s=n.n(o),l=r.a.ItemView.extend({template:s.a,className:"row",events:{"click .remove-path-btn":"onRemovePathClick"},serializeData:function(){
return a()({},r.a.ItemView.prototype.serializeData.apply(this,arguments),{canEditPath:!this.model.server.get("isPersonalCloudServer")})},onRemovePathClick:function(e){e.preventDefault(),this.model.trigger("destroy",this.model,this.model.collection)}});t.a=l},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){var i,a,r="";return r+=' <input type="text" name="path" class="form-control" value="',(a=n.path)?i=a.call(e,{hash:{},data:t}):(a=e&&e.path,
i=typeof a===c?a.call(e,{hash:{},data:t}):a),r+=u(i)+'"> '}function o(e,t){var i,a,r="";return r+=' <span class="form-static-value">',(a=n.path)?i=a.call(e,{hash:{},data:t}):(a=e&&e.path,i=typeof a===c?a.call(e,{hash:{},data:t}):a),r+=u(i)+'<input type="hidden" name="path" value="',(a=n.path)?i=a.call(e,{hash:{},data:t}):(a=e&&e.path,i=typeof a===c?a.call(e,{hash:{},data:t}):a),r+=u(i)+'" /></span> '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{}
;var s,l="",c="function",u=this.escapeExpression,d=this;return l+='<div class="col-md-12"> <div class="form-group path-group"> ',s=n.if.call(t,t&&t.canEditPath,{hash:{},inverse:d.program(3,o,a),fn:d.program(1,r,a),data:a}),(s||0===s)&&(l+=s),l+=' <div class="path-actions"> <a href="#" class="remove-path-btn btn-link btn-gray"><i class="glyphicon remove-2"></i></a> </div> </div> </div> '})},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(19),o=n(3),s=n(265),l=n(1430),c=n(3060),u=n(3064),d=n(96),p=n(3067),h=n.n(p),f=d.a.extend({name:"addFolderModal",className:"add-folder-modal modal fade",template:h.a,events:a.a.extend({"submit form":"onSubmitForm"},d.a.prototype.events),ui:{path:'input[name="path"]'},regions:{rootList:".home-directory-container",childrenList:".path-container",childrenFileList:".file-container"},initialize:function(e){d.a.prototype.initialize.apply(this,arguments),
this.rootPathList=new l.default({},{server:e.server,includeFiles:1}),this.childrenPathList=new l.default({},{server:e.server,includeFiles:1}),this.loadRootPaths()},loadRootPaths:function(){this.rootPathList.fetch().done(this.whenRendered(function(){var e=this.rootPathList.get("paths").where({home:!0}),t=a.a.first(e)||this.rootPathList.get("paths").first();this.rootList.currentView.startLoadingItem(t),this.loadChildrenPaths(t)}))},loadChildrenPaths:function(e){s.a.abortAll("addFolderModal")
;var t=e.get("children"),n=t.fetch({scope:"addFolderModal"});n.done(this.whenRendered(function(){this.ui.path.val(e.get("path")),this.childrenPathList.get("paths").reset(t.get("paths").models),this.childrenPathList.get("files").reset(t.get("files").models),this.childrenPathList.set("truncatedFilesCount",t.get("truncatedFilesCount"))})),n.fail(this.whenRendered(function(){this.childrenList.currentView.unselectItem(e),r.a.trigger("show:alert",{type:"error",
message:Object(o.default)("Unable to load contents of '{1}'",e.get("path"))})})),n.always(this.whenRendered(function(){this.rootList.currentView.stopLoadingItem(e)}))},onRender:function(){d.a.prototype.onRender.apply(this,arguments);var e=new u.a({isRoot:!0,collection:this.rootPathList.get("paths")}),t=new u.a({collection:this.childrenPathList.get("paths")}),n=new c.a({model:this.childrenPathList,collection:this.childrenPathList.get("files")})
;this.listenTo(e,"change:path",this.onRootPathChange),this.listenTo(t,"change:path",this.onChildrenPathChange),this.rootList.show(e),this.childrenList.show(t),this.childrenFileList.show(n)},onRootPathChange:function(e){this.childrenList.currentView.parentFilePath=null,this.rootList.currentView.startLoadingItem(e),this.loadChildrenPaths(e)},onChildrenPathChange:function(e){this.childrenList.currentView.startLoadingItem(e),this.loadChildrenPaths(e)},onSubmitForm:function(e){e.preventDefault(),
this.trigger("add:folder",this.ui.path.val()),this.hide()}});t.a=f},function(e,t,n){"use strict";var i=n(25),a=n(3057),r=i.a.extend({name:"FileCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"FileModel",idAttribute:"key",rootPropertyName:"File",syncedAttrs:{key:a.a.string,title:a.a.string,path:a.a.string,network:a.a.boolean}});t.a=r},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(3059),o=a.a.extend({name:"FilePathCollection",
context:["server","includeFiles"],model:r.a,url:function(){var e={};return this.includeFiles&&(e.includeFiles=1),i.join(["/services/browse"],e)}});t.a=o},function(e,t,n){"use strict";var i=n(18),a=n(17),r=n(14),o=a.a.extend({name:"FilePathModel",context:["server","includeFiles"],idAttribute:"key",rootPropertyName:"Path",sessionAttrs:{isBackShortcut:r.a.boolean},sessionRelations:{children:function(){var e={};return this.includeFiles&&(e.includeFiles=1),{relationClass:n(1430).default,options:{
url:i.join([this.id],e)}}}},syncedAttrs:{key:r.a.string,title:r.a.string,path:r.a.string,home:r.a.boolean,network:r.a.boolean}});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(3),r=n(3061),o=n(3063),s=n.n(o),l=i.a.CompositeView.extend({template:s.a,itemView:r.a,itemViewContainer:".js-file-list-items",bindings:{".js-file-list-truncated-message":{modelAttribute:"truncatedFilesCount",formatter:function(e){return e?Object(a.default)("\u2026and {truncatedFilesCount} more",{truncatedFilesCount:e
}):null}}}});t.a=l},function(e,t,n){"use strict";var i=n(22),a=n(3062),r=n.n(a),o=i.a.ItemView.extend({tagName:"li",className:"striped-list-item browse-directory-list-item disabled",template:r.a,serializeData:function(){return{filePath:this.model.toJSON()}}});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o="",s=this.escapeExpression
;return o+='<a class="striped-list-item" href="#" data-key="'+s((r=t&&t.filePath,r=null==r||!1===r?r:r.key,"function"==typeof r?r.apply(t):r))+'"> <i class="glyphicon file"></i> '+s((r=t&&t.filePath,r=null==r||!1===r?r:r.title,"function"==typeof r?r.apply(t):r))+" </a> "})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<ul class="js-file-list-items list browse-directory-list"></ul> <div class="js-file-list-truncated-message css-file-list-truncated-message"></div> '})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(3065),s=r.a.CollectionView.extend({tagName:"ul",className:"list browse-directory-list",itemView:o.a,selectedFilePath:null,events:{"click a":"onDirectoryClick"},collectionEvents:{reset:"onReset"},startLoadingItem:function(e){
this.selectedFilePath&&this.unselectItem(this.selectedFilePath),this.selectedFilePath=e;var t=this.children.findByModel(e);t&&t.select(!0)},stopLoadingItem:function(e){var t=this.children.findByModel(e);t&&t.select(!1)},unselectItem:function(e){this.selectedFilePath=null;var t=this.children.findByModel(e);t&&t.unselect()},onReset:function(){this.parentFilePath&&this.collection.add(this.parentFilePath,{at:0})},onDirectoryClick:function(e){e.preventDefault()
;var t=a()(e.currentTarget),n=t.data("key"),i=this.collection.get(n)||this.parentFilePath;this.trigger("change:path",i),this.options.isRoot||(i.parent.parent?(this.parentFilePath=i.parent.parent.clone(),this.parentFilePath.set({title:".. [Back]",isBackShortcut:!0})):this.parentFilePath=null)}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(3066),r=n.n(a),o=i.a.ItemView.extend({tagName:"li",className:"striped-list-item browse-directory-list-item",template:r.a,ui:{link:"a",spinner:".loading"
},serializeData:function(){return{filePath:this.model.toJSON(),isRoot:!this.model.parent}},select:function(e){this.ui.link.addClass("selected"),this.ui.spinner.toggleClass("hidden",!e)},unselect:function(){this.ui.link.removeClass("selected"),this.ui.spinner.addClass("hidden")}});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"left-arrow"}function o(e,t){var i;return i=n.if.call(e,(i=e&&e.filePath,null==i||!1===i?i:i.home),{hash:{},
inverse:v.program(6,l,t),fn:v.program(4,s,t),data:t}),i||0===i?i:""}function s(e,t){return"home"}function l(e,t){var i;return i=n.if.call(e,(i=e&&e.filePath,null==i||!1===i?i:i.network),{hash:{},inverse:v.program(9,u,t),fn:v.program(7,c,t),data:t}),i||0===i?i:""}function c(e,t){return"globe"}function u(e,t){var i;return i=n.if.call(e,e&&e.isRoot,{hash:{},inverse:v.program(12,p,t),fn:v.program(10,d,t),data:t}),i||0===i?i:""}function d(e,t){return"hdd"}function p(e,t){return"folder-open"}
this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var h,f="",v=this,g=this.escapeExpression;return f+='<a class="striped-list-item" href="#" data-key="'+g((h=t&&t.filePath,h=null==h||!1===h?h:h.key,"function"==typeof h?h.apply(t):h))+'"> <i class="folder-icon glyphicon ',h=n.if.call(t,(h=t&&t.filePath,null==h||!1===h?h:h.isBackShortcut),{hash:{},inverse:v.program(3,o,a),fn:v.program(1,r,a),data:a}),(h||0===h)&&(f+=h),f+='"></i> '+g((h=t&&t.filePath,h=null==h||!1===h?h:h.title,
"function"==typeof h?h.apply(t):h))+' <div class="loading loading-sm loading-inline hidden"></div> </a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<div class="modal-dialog"> <div class="modal-content"> <form name="add-folder-form"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon folder-plus"></i> '+l(i(n(5)).call(t,"Add Folder",{hash:{},data:o
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <div class="row"> <div class="col-md-12"> <input type="text" name="path" class="form-control" value=""> </div> </div> <div class="row directory-container-row"> <div class="home-directory-container col-md-5"></div> <div class="col-md-7"> <div class="path-container"></div> <div class="file-container"></div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+l(i(n(5)).call(t,"Cancel",{
hash:{},data:o}))+'</button> <button type="submit" class="add-btn btn btn-primary">'+l(i(n(5)).call(t,"Add",{hash:{},data:o}))+"</button> </div> </form> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this
;return c+='<form class="edit-section-folders-form settings-container"> <label> '+u(i(n(5)).call(t,"Add folders to your library",{hash:{},data:o}))+' </label> <div class="form-group Location-group"> <div class="paths-region"></div> <p class="add-folder-container"> <span class="add-folder-populating loading ',l=a.unless.call(t,t&&t.isPersonalCloudServerDriveCachePending,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='"></span> <span class="add-folder-populating ',
l=a.unless.call(t,t&&t.isPersonalCloudServerDriveCachePending,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='"> '+u(i(n(5)).call(t,"Plex Cloud is searching for folders",{hash:{},data:o}))+' </span> <span class="add-folder-error hidden"> '+u(i(n(5)).call(t,"Plex Cloud took too long finding folders. Please try again.",{hash:{},data:o}))+' </span> <button type="button" class="add-folder-btn btn btn-icon-label btn-default ',
l=a.if.call(t,t&&t.isPersonalCloudServerDriveCachePending,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='"> <i class="glyphicon folder-plus"></i> '+u(i(n(5)).call(t,"Browse for media folder",{hash:{},data:o}))+' </button> </p> <p class="control-error">'+u(i(n(5)).call(t,"At least one folder is required.",{hash:{},data:o
}))+'</p> </div> <p class="help-block">'+u(i(n(5)).call(t,"Help us out by following {1}our guide{2} to naming and organizing your media.",'<a href="http://support.plex.tv/hc/en-us/categories/200028098-Media-Preparation" target="_blank">',"</a>",{hash:{},data:o}))+"</p> </form> "})},function(e,t,n){"use strict";var i=n(461),a=n(3070),r=n(3072),o=n(3074),s=n.n(o),l=i.a.extend({template:s.a,regions:{options:".section-options"},onRender:function(){
"photos"===this.model.sectionType.key?this.options.show(new r.a({model:this.model})):this.options.show(new a.a({model:this.model}))}});t.a=l},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(19),o=n(16),s=n(461),l=n(818),c=n(3071),u=n.n(c),d=s.a.extend({template:u.a,ui:{chooseLibrary:".choose-library"},events:{"click .choose-library":"onChooseLibraryClick"},modelEvents:{"change:agent":"onSectionAgentChange","change:scanner":"onSectionScannerChange"},
onlyAfterRender:["updateSelectedOffering"],initialize:function(){this.hasPremiumMusic=this.model.server.hasOwnerFeature("premium_music_metadata"),this.updateSelectedOffering()},serializeData:function(){var e=o.c("appModel"),t=e.get("user");return{hasPremiumMusic:this.hasPremiumMusic,plexPassUrl:t.server.get("plexPassUrl"),hasLyrics:this.model.server.get("transcoderLyrics")}},updateSelectedOffering:function(){var e=this.model.get("agent"),t=this.model.get("scanner")
;this.ui.chooseLibrary.find("input").prop("checked",!1);var n=this.ui.chooseLibrary.filter('[data-agent="'+e+'"][data-scanner="'+t+'"]').find("input");n.length||(n=this.ui.chooseLibrary.not("[data-agent][data-scanner]").find("input")),n.prop("checked",!0)},onChooseLibraryClick:function(e){var t=a()(e.currentTarget),n=t.data("agent"),i=t.data("scanner");if((n||i)&&!this.hasPremiumMusic)return void r.a.trigger("show:modal",new l.a({model:this.model.server}));this.model.agentSettings=null,
this.model.set({agent:n||this.getSectionType().defaultAgent,scanner:i||this.getSectionType().defaultScanner})},onSectionAgentChange:function(){this.updateSelectedOffering()},onSectionScannerChange:function(){this.updateSelectedOffering()}});t.a=d},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <p class="help-block"> '+d(i(n(5)).call(e,"Note: An active Plex Pass is required for this service. Don't have a Plex Pass? {1}Subscribe here{2}",'<a href="{3}" target="_blank">',"</a>",e&&e.plexPassUrl,{hash:{},data:t}))+" </p> "}function l(e,t){return'<div class="vendor-logo vendor-logo-lyricfind"></div>'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this
;return u+='<div class="choose-library use-premium-library" data-agent="com.plexapp.agents.plexmusic" data-scanner="Plex Premium Music Scanner"> <div class="row"> <div class="col-xs-12"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio"> <span class="header-text"> '+d(i(n(5)).call(t,"Create a premium Plex music library!",{hash:{},data:o
}))+' </span> </div> </div> <div class="row use-premium-library-body"> <div class="col-xs-8"> <ul> <li>'+d(i(n(5)).call(t,"Access to the best artwork, artist bios, album reviews, and more",{hash:{},data:o}))+"</li> <li>"+d(i(n(5)).call(t,"Smart mixes based on track or mood",{hash:{},data:o}))+"</li> <li>"+d(i(n(5)).call(t,"Improved music recognition and matching",{hash:{},data:o}))+"</li> </ul> ",c=a.unless.call(t,t&&t.hasPremiumMusic,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),
(c||0===c)&&(u+=c),u+=' </div> <div class="col-xs-4 vendor-logos"> ',c=a.if.call(t,t&&t.hasLyrics,{hash:{},inverse:p.noop,fn:p.program(3,l,o),data:o}),(c||0===c)&&(u+=c),u+=' <div class="vendor-logo vendor-logo-gracenote"></div> <div class="vendor-logo vendor-logo-plex-pass"></div> </div> </div> </div> </div> </div> <div class="choose-library use-basic-library"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio"> '+d(i(n(5)).call(t,"Create a basic music library",{
hash:{},data:o}))+" </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(19),r=n(16),o=n(818),s=n(3073),l=n.n(s),c=i.a.Layout.extend({template:l.a,ui:{usePremium:".use-premium-library input",useBasic:".use-basic-library input"},events:{"click .use-premium-library":"onChoosePremiumClick","click .use-basic-library":"onChooseBasicClick"},onlyAfterRender:["updateSelectedOffering"],initialize:function(){this.hasPremiumPhotos=this.model.server.hasOwnerFeature("photo_autotags"),
this.updateSelectedOffering()},serializeData:function(){var e=r.c("appModel"),t=e.get("user");return{hasPremiumPhotos:this.hasPremiumPhotos,plexPassUrl:t.server.get("plexPassUrl")}},updateSelectedOffering:function(){var e=this.model.get("enableAutoPhotoTags");this.ui.usePremium.prop("disabled",!1),this.ui.useBasic.prop("disabled",!1),this.ui.usePremium.prop("checked",!!e),this.ui.useBasic.prop("checked",!e)},onChoosePremiumClick:function(e){
this.hasPremiumPhotos?this.model.set("enableAutoPhotoTags",!0):a.a.trigger("show:modal",new o.a({model:this.model.server})),this.updateSelectedOffering()},onChooseBasicClick:function(e){this.model.set("enableAutoPhotoTags",!1),this.updateSelectedOffering()}});t.a=c},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <p class="help-block"> '+u(i(n(5)).call(e,"Note: An active Plex Pass is required for this service. Don't have a Plex Pass? {1}Subscribe here{2}",'<a href="{3}" target="_blank">',"</a>",e&&e.plexPassUrl,{hash:{},data:t}))+" </p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this
;return c+='<div class="choose-library use-premium-library"> <div class="row"> <div class="col-xs-12"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio" disabled> <span class="header-text"> '+u(i(n(5)).call(t,"Automatically tag my photos!",{hash:{},data:o
}))+' </span> </div> </div> <div class="use-premium-library-body"> <div class="row"> <div class="col-xs-8"> <ul> <li>'+u(i(n(5)).call(t,"Wondering if your photos contain kittens? Our advanced neural net can help you figure it out!",{hash:{},data:o}))+"</li> <li>"+u(i(n(5)).call(t,"A fun new way to explore your collection!",{hash:{},data:o
}))+'</li> </ul> </div> <div class="col-xs-4 vendor-logos"> <div class="vendor-logo vendor-logo-plex-pass"></div> </div> </div> <div class="row"> <div class="col-xs-12"> <p class="help-block"> '+u(i(n(5)).call(t,"Note: photo thumbnails will be temporarily uploaded to a third party for analysis. {1}Learn more{2}",'<a href="https://help.plex.tv/photo-auto-tagging" target="_blank">',"</a>",{hash:{},data:o}))+" </p> ",l=a.unless.call(t,t&&t.hasPremiumPhotos,{hash:{},inverse:d.noop,
fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=' </div> </div> </div> </div> </div> </div> <div class="choose-library use-basic-library"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio" disabled> '+u(i(n(5)).call(t,"No thanks",{hash:{},data:o}))+" </div> </div> </div> "})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="section-options" />'
})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(385),l=n(145),c=n(461),u=n(3076),d=n.n(u),p=c.a.extend({template:d.a,ui:o.a.extend({sectionTypes:".wizard-block",sectionTitle:"#edit-section-title",sectionLanguage:"#edit-section-language"},c.a.prototype.ui),modelEvents:{"change:type":"onSectionTypeChange","change:title":"onSectionTitleChange","change:language":"onSectionLanguageChange"},events:{"click .section-type":"onSectionTypeClick",
"keyup #edit-section-title":"onEditSectionTitleChange","change #edit-section-title":"onEditSectionTitleChange","change #edit-section-language":"onEditSectionLanguageChange"},onlyAfterRender:["renderSectionLanguage","updateSectionTypesWizardBlocks","updateSectionLanguage","updateSectionTitle"].concat(c.a.prototype.onlyAfterRender),initialize:function(e){this.populateCollections(),this.isDefaultSection=e.isDefaultSection},serializeData:function(){
var e=c.a.prototype.serializeData.apply(this,arguments);e.sectionTypes=l.f.getAll();var t=this.getSectionType();t&&(e.currentSectionKey=t.key);var n=this.model.get("updatedAt");return n&&(e.updatedAt=Object(s.a)(n)),e.canChangeType=this.model.isNew()&&!this.isDefaultSection,e.hasType=!!this.model.get("type"),e},validate:function(e){var t=[];return e.get("type")||t.push("type"),e.get("title")||t.push("title"),e.get("language")||t.push("language"),t},populateCollections:function(){
var e=this.populateAgents(),t=this.populateScanners(),n=this.getSectionType(),i=a.a.when(n,e,t,this.model.server.get("myPlexSubscription")&&this.model.server.supports("premiumMusic"));return this.model.isNew()&&(i=i.then(o.a.bind(this.model.setAgentAndScanner,this.model))),i=i.then(e).then(o.a.bind(this.onAgentsPopulate,this)).then(o.a.bind(function(){this.showValidationResult(this.validate(this.model))},this))},renderSectionLanguage:function(){
var e=this.model.get("language"),t=this.model.agents.get(this.model.get("agent")),n=t.get("languages");if(!n.get(e)){var i=this.model.get("type"),a=l.f.get(i),r=a.defaultLanguage;this.model.set("language",r,{silent:!0}),e=r}var o=n.map(function(e){return{label:e.get("name"),value:e.id}});this.updateSectionLanguage(),this.ui.sectionLanguage.html(this.createMenuOptions(o,e))},updateSectionTypesWizardBlocks:function(){this.ui.sectionTypes.removeClass("selected"),
this.ui.sectionTypes.filter('[data-key="'+this.model.get("type")+'"]').addClass("selected"),this.$el.addClass("section-type-chosen")},updateSectionLanguage:function(){this.ui.sectionLanguage.val(this.model.get("language"))},updateSectionTitle:function(){var e=this.ui.sectionTitle.val(),t=this.model.get("title");e!==t&&this.ui.sectionTitle.val(t)},onSectionTypeClick:function(e){e.preventDefault();var t=a()(e.currentTarget);if(t.hasClass("selectable")){var n=t.data("key"),i={type:n},r=l.f.get(n)
;this.model.get("title")||(i.title=r.title),this.model.set(i)}},onEditSectionTitleChange:function(e){var t=a()(e.currentTarget);this.model.set("title",t.val()),this.showValidationResult(this.validate(this.model))},onEditSectionLanguageChange:function(e){var t=a()(e.currentTarget);this.model.set("language",t.val()),this.showValidationResult(this.validate(this.model))},onSectionTypeChange:function(e,t){this.updateSectionTypesWizardBlocks();var n=l.f.get(t);if(!this.model.get("language")){
var i=n.defaultLanguage;this.model.set("language",i)}var a=this.model.get("title"),r=this.model.previous("type"),o=l.f.get(r),s=o&&o.title;a&&a!==s||this.model.set("title",n.title),this.setSectionType(n),this.model.agents=null,this.model.scanners=null,this.model.settings=null,this.populateCollections()},onSectionTitleChange:function(e,t){this.updateSectionTitle(),this.showValidationResult(this.validate(this.model))},onSectionLanguageChange:function(e,t){this.updateSectionLanguage()},
onAgentsPopulate:function(e){this.renderSectionLanguage()}});t.a=p},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"section-type-chosen"}function l(e,t){var a="";return a+=' <p class="prompt">'+m(i(n(5)).call(e,"Select your library type",{hash:{},data:t}))+"</p> "}function c(e,t){var a="";return a+=" <label>"+m(i(n(5)).call(e,"Library type",{hash:{},data:t}))+"</label> "}function u(e,t,r){
var o,s="";return s+=' <a class="wizard-block section-type ',o=a.if.call(e,r&&r.canChangeType,{hash:{},inverse:y.noop,fn:y.program(8,d,t),data:t}),(o||0===o)&&(s+=o),s+=" ",o=i(n(34)).call(e,r&&r.currentSectionKey,e&&e.key,{hash:{},inverse:y.noop,fn:y.program(10,p,t),data:t}),(o||0===o)&&(s+=o),s+='" data-key="'+m((o=e&&e.key,typeof o===b?o.apply(e):o))+'" href="#"> <i class="wizard-block-icon '+m((o=e&&e.sectionTypeIcon,typeof o===b?o.apply(e):o))+'"></i> '+m((o=e&&e.title,
typeof o===b?o.apply(e):o))+" </a> "}function d(e,t){return"selectable"}function p(e,t){return"selected"}function h(e,t){var a="";return a+=' <div class="row"> <div class="col-xs-12"> <p class="prompt">'+m(i(n(5)).call(e,"Name your library and choose language.",{hash:{},data:t}))+"</p> </div> </div> "}function f(e,t){var a="";return a+=" "+m(i(n(5)).call(e,"Last updated {1}",e&&e.updatedAt,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var v,g="",m=this.escapeExpression,y=this,b="function";return g+='<form class="edit-section-type-form settings-container ',v=a.if.call(t,(v=t&&t.section,null==v||!1===v?v:v.type),{hash:{},inverse:y.noop,fn:y.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+='"> ',v=a.if.call(t,t&&t.add,{hash:{},inverse:y.program(5,c,o),fn:y.program(3,l,o),data:o}),(v||0===v)&&(g+=v),g+=' <div class="wizard-blocks-group form-group type-group"> ',v=a.each.call(t,t&&t.sectionTypes,{hash:{},inverse:y.noop,
fn:y.programWithDepth(7,u,o,t),data:o}),(v||0===v)&&(g+=v),g+=' <label class="control-label"> <span class="control-error">'+m(i(n(5)).call(t,"You must select a media type.",{hash:{},data:o}))+'</span> </label> </div> <div class="visible-once-section-type-chosen"> ',v=a.if.call(t,t&&t.hasType,{hash:{},inverse:y.noop,fn:y.program(12,h,o),data:o}),(v||0===v)&&(g+=v),
g+=' <div class="row"> <div class="col-md-7"> <div class="form-group title-group"> <div> <label for="edit-section-title" class="control-label"> '+m(i(n(5)).call(t,"Name",{hash:{},data:o}))+' <span class="control-error">'+m(i(n(5)).call(t,"A library name is required.",{hash:{},data:o}))+'</span> </label> </div> <input type="text" id="edit-section-title" name="title" class="form-control" value="'+m((v=t&&t.section,v=null==v||!1===v?v:v.title,
typeof v===b?v.apply(t):v))+'"> </div> </div> <div class="col-md-5"> <div class="form-group language-group"> <div> <label for="edit-section-language" class="control-label"> '+m(i(n(5)).call(t,"Language",{hash:{},data:o}))+' <span class="control-error">'+m(i(n(5)).call(t,"A language is required.",{hash:{},data:o}))+'</span> </label> </div> <select id="edit-section-language" name="language"></select> </div> </div> </div> <div class="row"> <div class="col-md-12"> <span class="text-muted"> ',
v=a.if.call(t,t&&t.updatedAt,{hash:{},inverse:y.noop,fn:y.program(14,f,o),data:o}),(v||0===v)&&(g+=v),g+=" </span> </div> </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <i class="modal-icon glyphicon plus"></i> '+I(i(n(5)).call(e,"Add {1} Library",'<span class="section-type-title"></span>',{hash:{},data:t}))+" "}function l(e,t){var a,r=""
;return r+=' <i class="modal-icon glyphicon pencil"></i> '+I(i(n(5)).call(e,"Edit {1}",(a=e&&e.section,null==a||!1===a?a:a.title),{hash:{},data:t}))+" "}function c(e,t){return' <div class="modal-body-pane pane-region dark-scrollbar"> <div class="loading loading-inline"></div> </div> '}function u(e,t){var r,o="";return o+=' <div class="modal-nav-pane dark-scrollbar"> <ul class="list modal-nav-list"> <li> <a class="btn-gray change-pane-btn type-btn',r=i(n(34)).call(e,e&&e.selectedPane,"type",{
hash:{},inverse:S.noop,fn:S.program(8,d,t),data:t}),(r||0===r)&&(o+=r),o+='" data-pane="type" href="#"> <i class="modal-nav-icon glyphicon align-center"></i> ',r=a.if.call(e,e&&e.add,{hash:{},inverse:S.program(12,h,t),fn:S.program(10,p,t),data:t}),(r||0===r)&&(o+=r),o+=' </a> </li> <li> <a class="btn-gray change-pane-btn folders-btn',r=i(n(34)).call(e,e&&e.selectedPane,"folders",{hash:{},inverse:S.noop,fn:S.program(8,d,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,e&&e.add,{hash:{},
inverse:S.noop,fn:S.program(14,f,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.unless.call(e,e&&e.showFolders,{hash:{},inverse:S.noop,fn:S.program(16,v,t),data:t}),(r||0===r)&&(o+=r),o+='" data-pane="folders" href="#"> <i class="modal-nav-icon glyphicon folder-open"></i> '+I(i(n(5)).call(e,"Add folders",{hash:{},data:t}))+' </a> </li> <li> <a class="btn-gray change-pane-btn options-btn',r=i(n(34)).call(e,e&&e.selectedPane,"options",{hash:{},inverse:S.noop,fn:S.program(8,d,t),data:t}),
(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,e&&e.add,{hash:{},inverse:S.noop,fn:S.program(14,f,t),data:t}),(r||0===r)&&(o+=r),o+=' hidden" data-pane="options" href="#"> <i class="modal-nav-icon glyphicon magic"></i> '+I(i(n(5)).call(e,"Options",{hash:{},data:t}))+' </a> </li> <li> <a class="btn-gray change-pane-btn advanced-btn',r=i(n(34)).call(e,e&&e.selectedPane,"advanced",{hash:{},inverse:S.noop,fn:S.program(8,d,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,e&&e.add,{hash:{},inverse:S.noop,
fn:S.program(14,f,t),data:t}),(r||0===r)&&(o+=r),o+='" data-pane="advanced" href="#"> <i class="modal-nav-icon glyphicon cogwheel"></i> '+I(i(n(5)).call(e,"Advanced",{hash:{},data:t}))+' </a> </li> </ul> </div> <div class="modal-body-pane pane-region dark-scrollbar"> </div> '}function d(e,t){return" selected"}function p(e,t){var a="";return a+=" "+I(i(n(5)).call(e,"Select type",{hash:{},data:t}))+" "}function h(e,t){var a="";return a+=" "+I(i(n(5)).call(e,"General",{hash:{},data:t}))+" "}
function f(e,t){return"disabled"}function v(e,t){return"hidden"}function g(e,t){var a="";return a+=" "+I(i(n(5)).call(e,"Add Library",{hash:{},data:t}))+" "}function m(e,t){var a="";return a+=" "+I(i(n(5)).call(e,"Save Changes",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var y,b="",I=this.escapeExpression,S=this
;return b+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> ',y=a.if.call(t,t&&t.add,{hash:{},inverse:S.program(3,l,o),fn:S.program(1,s,o),data:o}),(y||0===y)&&(b+=y),b+=' </h4> </div> <div class="modal-body modal-body-scroll modal-body-with-panes"> ',y=a.if.call(t,t&&t.isLoading,{hash:{},inverse:S.program(7,u,o),fn:S.program(5,c,o),
data:o}),(y||0===y)&&(b+=y),b+=' </div> <div class="modal-footer"> <span class="form-message"></span> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+I(i(n(5)).call(t,"Cancel",{hash:{},data:o}))+'</button> <button type="button" class="save-btn btn btn-primary btn-loading ',y=a.if.call(t,t&&t.add,{hash:{},inverse:S.noop,fn:S.program(14,f,o),data:o}),(y||0===y)&&(b+=y),
b+='"> <div class="loading loading-sm"></div> <span class="btn-label"> <span class="save-btn-label-next">'+I(i(n(5)).call(t,"Next",{hash:{},data:o}))+'</span> <span class="save-btn-label-save"> ',y=a.if.call(t,t&&t.add,{hash:{},inverse:S.program(20,m,o),fn:S.program(18,g,o),data:o}),(y||0===y)&&(b+=y),b+=" </span> </span> </button> </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(65),a=n(3079),r=n.n(a),o=i.a.extend({template:r.a,initialize:function(e){
i.a.prototype.initialize.apply(this,arguments),this.server=e.server},serializeData:function(){return this.server.toJSON()}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+d(i(n(5)).call(e,"Insecure connections will only be allowed when you're on the same network as the server.",{hash:{},data:t}))+" "}function l(e,t){var a=""
;return a+=" "+d(i(n(5)).call(e,"Insecure connections will be allowed to any server.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this
;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-exclamation-mark"></i> '+d(i(n(5)).call(t,"Server Unreachable",{hash:{},data:o}))+' </h4> </div> <div class="modal-body"> <p> ',c=a.if.call(t,t&&t.publicAddressMatches,{hash:{},inverse:p.program(3,l,o),fn:p.program(1,s,o),data:o}),
(c||0===c)&&(u+=c),u+=" </p> <p>"+d(i(n(5)).call(t,"The Allow Fallback to Insecure Connections setting can be changed in Web Settings. Would you like to allow insecure connections?",{hash:{},data:o}))+'</p> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+d(i(n(5)).call(t,"No",{hash:{},data:o}))+'</button> <button type="button" class="confirm-btn btn btn-lg btn-danger">'+d(i(n(5)).call(t,"Yes",{hash:{},data:o
}))+"</button> </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(3),c=n(96),u=n(3081),d=n.n(u),p=c.a.extend({name:"importPlaylistsModal",className:"import-playlists-modal modal fade",template:d.a,ui:{importBtn:".import-btn",sections:"#section-list",importAll:"#import-all"},events:o.a.extend({"click .import-btn":"onImportClick"},c.a.prototype.events),initialize:function(e){c.a.prototype.initialize.apply(this,arguments),this.server=e.server,
this.musicSections=e.libraries.where({type:"artist"})},serializeData:function(){var e=o.a.map(this.musicSections,function(e){return e.pick("key","title")});return{showSections:e.length>1,sections:e}},onImportClick:function(e){e.preventDefault(),this.ui.importBtn.addClass("active");var t=this.ui.sections.val(),n="/playlists/import/itunes?sectionID="+t;this.ui.importAll[0].checked&&(n+="&force=1");var i=o.a.extend(this.server.getXHROptions(n),{type:"PUT"}),r=a.a.ajax(i);r.done(o.a.bind(function(){
s.a.trigger("show:alert",{type:"success",message:Object(l.default)("Playlists have been imported.")}),this.server.get("playlists").get("items").fetch(),this.hide()},this)),r.fail(function(){s.a.trigger("show:alert",{type:"error",message:Object(l.default)("There was a problem importing.")})})}});t.a=p},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hidden"}function l(e,t){var n,i=""
;return i+=' <option value="'+p((n=e&&e.key,typeof n===d?n.apply(e):n))+'">'+p((n=e&&e.title,typeof n===d?n.apply(e):n))+"</option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d="function",p=this.escapeExpression,h=this
;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon file-import"></i> '+p(i(n(5)).call(t,"Import from iTunes",{hash:{},data:o
}))+' </h4> </div> <div class="modal-body"> <p class="help-block">'+p(i(n(5)).call(t,"Importing from iTunes will import your music playlists. It will also import your ratings, the date you added the music, as well as play and skip counts for tracks in your library. Depending on how many tracks you have, this process can take many minutes to complete.",{hash:{},data:o}))+'</p> <div class="form-group ',c=a.unless.call(t,t&&t.showSections,{hash:{},inverse:h.noop,fn:h.program(1,s,o),data:o}),
(c||0===c)&&(u+=c),u+='"> <label class="control-label"> '+p(i(n(5)).call(t,"Add to library: ",{hash:{},data:o}))+' <select id="section-list"> ',c=a.each.call(t,t&&t.sections,{hash:{},inverse:h.noop,fn:h.program(3,l,o),data:o}),(c||0===c)&&(u+=c),u+=' </select> </label> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="import-all"> '+p(i(n(5)).call(t,"Overwrite existing playlists",{hash:{},data:o
}))+' </label> </div> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+p(i(n(5)).call(t,"Cancel",{hash:{},data:o}))+'</button> <button type="button" class="import-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(5)).call(t,"Import",{hash:{},data:o}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(16),o=n(86),s=n(65),l=n(3083),c=n.n(l),u=s.a.extend({template:c.a,events:a.a.extend({"click .learn-more":"onLearnMoreClick"},s.a.prototype.events),onRender:function(){s.a.prototype.onRender.apply(this,arguments),Object(r.c)("metrics").trackView({page:"relayNotification",mode:"modal",action:o.n},{interaction:!1})},onHide:function(e){s.a.prototype.onHide.apply(this,arguments),Object(r.c)("metrics").trackClick({page:"relayNotification",mode:"modal",action:o.n})},
onLearnMoreClick:function(){Object(r.c)("metrics").trackClick({page:"relayNotification",mode:"modal",action:o.y})},serializeData:function(){return{serverName:this.options.serverName}}});t.a=u},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-exclamation-mark"></i> '+c(i(n(5)).call(t,"Limited Connection",{hash:{},data:o}))+" - "+c((s=t&&t.serverName,
"function"==typeof s?s.apply(t):s))+' </h4> </div> <div class="modal-body"> <p> '+c(i(n(5)).call(t,"You are not connected directly to {1} so streaming quality may be limited. You may be able to connect directly to this server by changing your home network settings. {2}Learn more{3}",t&&t.serverName,'<a href="https://help.plex.tv/relay" target="_blank" class="learn-more">',"</a>",{hash:{},data:o
}))+' </p> </div> <div class="modal-footer"> <button type="button" class="confirm-btn btn btn-lg btn-primary">'+c(i(n(5)).call(t,"OK",{hash:{},data:o}))+"</button> </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(246),o=n(3085),s=r.a.extend({model:o.a,filterByOwned:function(e){var t=this.filter(function(e){return e.get("owned")});return this.clone(t)},filterByShared:function(e){var t=this.filter(function(e){return!e.get("owned")&&!e.get("pending")})
;return this.clone(t)},getLibraryCount:function(e){var t=this.where(e);return a.a.reduce(t,function(e,t){return e+=t.get("numLibraries")},0)},getOwnedLibraryCount:function(){return this.getLibraryCount({owned:!0})},getSharedLibraryCount:function(){return this.getLibraryCount({owned:!1})},getActiveCount:function(){return this.reduce(function(e,t){return t.isActive()&&e++,e},0)}});t.a=s},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({
whitelistedAttrs:["id","serverId","machineIdentifier","name","owned","admin","pending","lastSeenAt","invitedAt","acceptedAt","allLibraries","numLibraries","allowSync","allowCameraUpload","allowChannels","Section"],urlRoot:function(){return"/api/servers/"+this.get("machineIdentifier")+"/shared_servers"},isActive:function(){return!(!this.get("numLibraries")&&!this.get("allLibraries"))},convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);t.SharedServer&&(t=t.SharedServer),
o.a.parseInteger(t,["id","serverId","lastSeenAt","invitedAt","acceptedAt","numLibraries"]),o.a.parseBoolean(t,["owned","admin","pending","allLibraries","allowSync","allowCameraUpload","allowChannels"]),o.a.parseArray(t,"Section");var n=t.Section;return a.a.each(n,function(e){o.a.parseInteger(e,"id"),o.a.parseBoolean(e,"shared")}),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs),!t.numLibraries&&t.Section.length&&(t.numLibraries=a.a.where(t.Section,{shared:!0
}).length),t}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(3087),r=i.a.extend({name:"ServerOverviewCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(3088),o=i.a.extend({name:"ServerOverviewModel",context:["server"],idAttribute:"machineIdentifier",rootPropertyName:"Server",urlRoot:"/api/servers",syncedAttrs:{machineIdentifier:a.a.string,name:a.a.string,address:a.a.string,port:a.a.string,version:a.a.string,createdAt:a.a.integer,
updatedAt:a.a.integer},syncedRelations:{sections:{relationClass:r.a,rootPropertyName:"Section"}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(3089),r=i.a.extend({name:"SectionOverviewCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"SectionOverviewModel",context:["server"],rootPropertyName:"Section",syncedAttrs:{id:a.a.integer,key:a.a.string,type:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict"
;var i=n(22),a=n(430),r=n(3091),o=n.n(r),s=i.a.ItemView.extend({template:o.a,ui:{poster:".media-poster"},events:{"change input":"onInputChange","click .remove-home-btn":"onRemoveHomeClick","click .remove-friend-btn":"onRemoveFriendClick","click .disable-guest-btn":"onGuestDisableClick"},initialize:function(e){this.paneID=e.paneID,this.homeUser=e.homeUser,this.type=e.type,this.isAdmin=e.isAdmin,this.changes={},this.image=new a.a({model:this.model,type:"friend",width:60})},
serializeData:function(){var e=!this.model.isNew(),t=this.homeUser&&!this.homeUser.isNew();return{friend:this.model.toJSON(),homeUser:this.homeUser&&this.homeUser.toJSON(),canRemoveFriend:e,canRemoveHomeUser:t&&this.isAdmin,showActions:e||t}},flushChanges:function(){this.homeUser&&this.homeUser.set(this.changes)},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onInputChange:function(e){var t=e.currentTarget,n=t.value
;"checkbox"===t.type&&(n=t.checked),this.changes[t.name]=n},onRemoveHomeClick:function(e){e.preventDefault(),this.trigger("destroy:homeUser")},onRemoveFriendClick:function(e){e.preventDefault(),this.trigger("destroy:friend")},onGuestDisableClick:function(e){e.preventDefault(),this.trigger("disable:guest")}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r=""
;return r+=' <div class="restricted-name-group form-group"> <input type="text" id="restricted-title" name="title" class="form-control" placeholder="'+M(i(n(5)).call(e,"Name",{hash:{},data:t}))+'" value="'+M((a=e&&e.homeUser,a=null==a||!1===a?a:a.title,typeof a===D?a.apply(e):a))+'"> </div> '}function l(e,t){var n,i="";return i+=' <h3 class="friend-title"> ',n=a.if.call(e,(n=e&&e.friend,null==n||!1===n?n:n.title),{hash:{},inverse:C.program(6,u,t),fn:C.program(4,c,t),data:t}),(n||0===n)&&(i+=n),
i+=' </h3> <p class="text-muted"> ',n=a.if.call(e,(n=e&&e.friend,null==n||!1===n?n:n.email),{hash:{},inverse:C.program(10,p,t),fn:C.program(8,d,t),data:t}),(n||0===n)&&(i+=n),i+=" </p> "}function c(e,t){var n,i="";return i+=" "+M((n=e&&e.friend,n=null==n||!1===n?n:n.title,typeof n===D?n.apply(e):n))+" "}function u(e,t){var n,i="";return i+=" "+M((n=e&&e.friend,n=null==n||!1===n?n:n.username,typeof n===D?n.apply(e):n))+" "}function d(e,t){var n,i="";return i+=" "+M((n=e&&e.friend,
n=null==n||!1===n?n:n.email,typeof n===D?n.apply(e):n))+" "}function p(e,t){var a="";return a+=" "+M(i(n(5)).call(e,"An invite will be sent to this user.",{hash:{},data:t}))+" "}function h(e,t){var n,i="";return i+=' <div class="edit-friend-footer"> ',n=a.if.call(e,(n=e&&e.homeUser,null==n||!1===n?n:n.restricted),{hash:{},inverse:C.program(18,m,t),fn:C.program(13,f,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> "}function f(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.homeUser,
null==n||!1===n?n:n.guest),{hash:{},inverse:C.program(16,g,t),fn:C.program(14,v,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function v(e,t){var a="";return a+=' <button type="button" class="disable-guest-btn btn btn-sm btn-danger">'+M(i(n(5)).call(e,"Disable guest",{hash:{},data:t}))+"</button> "}function g(e,t){var a="";return a+=' <button type="button" class="remove-home-btn btn btn-sm btn-danger">'+M(i(n(5)).call(e,"Delete user",{hash:{},data:t}))+"</button> "}function m(e,t){var n,i=""
;return i+=" ",n=a.if.call(e,e&&e.canRemoveFriend,{hash:{},inverse:C.noop,fn:C.program(19,y,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.canRemoveHomeUser,{hash:{},inverse:C.noop,fn:C.program(21,b,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function y(e,t){var a="";return a+=' <button type="button" class="remove-friend-btn btn btn-sm btn-danger">'+M(i(n(5)).call(e,"Remove this friend",{hash:{},data:t}))+"</button> "}function b(e,t){var a=""
;return a+=' <button type="button" class="remove-home-btn btn btn-sm btn-danger">'+M(i(n(5)).call(e,"Remove from home",{hash:{},data:t}))+"</button> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var I,S="",M=this.escapeExpression,D="function",C=this;return S+='<div class="edit-friend-header"> <div class="media-poster img-circle placeholder-friend"></div> ',I=a.if.call(t,(I=t&&t.homeUser,null==I||!1===I?I:I.restricted),{hash:{},inverse:C.program(3,l,o),fn:C.program(1,s,o),
data:o}),(I||0===I)&&(S+=I),S+=" </div> ",I=a.if.call(t,t&&t.showActions,{hash:{},inverse:C.noop,fn:C.program(12,h,o),data:o}),(I||0===I)&&(S+=I),S+=" "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(3093),s=n(3096),l=n.n(s),c=r.a.Layout.extend({tagName:"ul",className:"list modal-nav-list",template:l.a,ui:{sharedHeader:".shared-list-header"},regions:{ownedServerList:".owned-servers-container",sharedServerList:".shared-servers-container"},events:{
"click .change-pane-btn":"onChangePaneClick"},onlyAfterRender:["selectItem","toggleDisabled"],initialize:function(){this.serverOverviews=this.model.get("serverOverviews"),this.sharedServerShares=this.model.get("serverShares").filterByShared(),this.listenTo(this.sharedServerShares,"reset add remove",this.updateHeaders)},setModel:function(e){this.stopListening(),this.model=e,this.initialize(),this.render()},selectItem:function(e){this.$(".change-pane-btn").removeClass("selected"),
this.$('[data-pane-id="'+e+'"]').addClass("selected")},toggleDisabled:function(e){this.$(".change-pane-btn").toggleClass("disabled",e),this.$(".modal-nav-list-header").toggleClass("disabled",e)},updateHeaders:function(){this.ui.sharedHeader.toggleClass("hidden",!this.sharedServerShares.length)},onRender:function(){this.updateHeaders(),this.ownedServerList.show(new o.a({collection:this.serverOverviews,itemViewOptions:{paneType:"ownedServer"}})),this.sharedServerList.show(new o.a({
collection:this.sharedServerShares,itemViewOptions:{paneType:"sharedServer"}}))},onChangePaneClick:function(e){e.preventDefault();var t=a()(e.currentTarget);if(!t.isDisabled()){var n=t.data("pane"),i=t.data("pane-id"),r={};"ownedServer"===n?r.serverOverview=this.model.get("serverOverviews").get(i):"sharedServer"===n&&(r.serverShare=this.model.get("serverShares").get(i)),this.trigger("change:pane",n,i,r)}}});t.a=c},function(e,t,n){"use strict";var i=n(97),a=n(3094),r=i.a.extend({
className:"server-nav-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(16),r=n(3095),o=n.n(r),s=i.a.ItemView.extend({tagName:"a",className:"btn-gray change-pane-btn disabled",template:o.a,initialize:function(e){this.$el.attr({href:"#","data-pane":e.paneType,"data-pane-id":this.model.id});var t=a.c("appModel"),n=t.get("servers"),i=n.get(this.model.get("machineIdentifier"));i?this.attachServer(i):this.listenTo(n,"add",this.onServerAdd)},serializeData:function(){var e
;return e=this.server&&null!=this.server.get("connected")?this.server.get("connected")?"available":"unavailable":"unknown",{server:this.model.toJSON(),status:e}},attachServer:function(e){this.server=e,this.listenTo(e,"change:connected",this.render)},onServerAdd:function(e){e.id===this.model.get("machineIdentifier")&&(this.attachServer(e),this.render())}});t.a=s},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],
n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<span class="modal-nav-icon friend-server-status ',(o=n.status)?r=o.call(t,{hash:{},data:a}):(o=t&&t.status,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),
s+=l(r)+'"> <i class="friend-server-status-icon unknown glyphicon circle-question-mark"></i> <i class="friend-server-status-icon available glyphicon circle-ok"></i> <i class="friend-server-status-icon unavailable glyphicon circle-exclamation-mark"></i> </span> '+l((r=t&&t.server,r=null==r||!1===r?r:r.name,"function"==typeof r?r.apply(t):r))+" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<li> <a class="btn-gray change-pane-btn disabled" data-pane="general" data-pane-id="general" href="#"> <i class="modal-nav-icon glyphicon user"></i> '+l(i(n(5)).call(t,"General",{hash:{},data:o}))+' </a> </li> <li class="owned-list-header modal-nav-list-header">'+l(i(n(5)).call(t,"My Servers",{hash:{},data:o
}))+'</li> <li class="owned-servers-container"></li> <li> <a class="btn-gray change-pane-btn disabled" data-pane="restrictions" data-pane-id="restrictions" href="#"> <i class="modal-nav-icon glyphicon ban"></i> '+l(i(n(5)).call(t,"Restrictions",{hash:{},data:o}))+' </a> </li> <li class="shared-list-header modal-nav-list-header">'+l(i(n(5)).call(t,"Shared With Me",{hash:{},data:o}))+'</li> <li class="shared-servers-container"></li> '})},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(16),c=n(385),u=n(3098),d=n(3102),p=n.n(d),h=r.a.Layout.extend({template:p.a,ui:{details:".server-details",lastSeenRow:".server-detail-last-seen-row"},regions:{share:".share-details"},events:{"click .server-status-btn":"onServerStatusClick"},initialize:function(e){var t=l.c("appModel");this.paneID=e.paneID,this.serverOverview=e.serverOverview,this.server=t.get("servers").get(this.serverOverview.id);var n=this.model.get("serverShares")
;this.serverShare=n.findWhere({machineIdentifier:this.serverOverview.id}),this.changes={}},serializeData:function(){return{server:this.serverOverview.toJSON()}},flushChanges:function(){var e=this.model.get("serverShares"),t=e.findWhere({machineIdentifier:this.serverOverview.id}),n=this.getServerShareAttributes(this.serverOverview);t?t.set(n):e.add(n)},getServerShareAttributes:function(e){var t=e.get("sections"),n=this.$("#"+e.id+"-section-list"),i=n.find(":checked:visible"),a=[],r={
machineIdentifier:e.id,owned:!0,allLibraries:!1};return i.each(function(){if("all"===this.value)return r.allLibraries=!0,!1;a.push(parseInt(this.value,10))}),r.allLibraries?r.numLibraries=t.length:r.numLibraries=a.length,r.Section=t.map(function(e){var t=e.toJSON();return t.shared=r.allLibraries||s.a.contains(a,t.id),t}),r},bindings:{".server-title":{model:"serverOverview",modelAttribute:"name"},".server-status-btn":{model:"server",modelAttribute:"connected",manual:!0,formatter:function(e,t){
t.removeClass("unknown available unauthorized unavailable"),null==e?t.addClass("unknown"):e?t.addClass("available"):this.server.get("unauthorized")?t.addClass("unauthorized"):t.addClass("unavailable")}},".server-detail-version":{model:"server",modelAttribute:"shortVersion"},".server-detail-last-seen":{model:"serverShare",modelAttribute:"lastSeenAt",formatter:function(e){var t=Object(c.a)(e);return this.ui.lastSeenRow.toggleClass("hidden",!t),t}},".server-detail-address":{model:"serverOverview",
modelAttribute:"address",formatter:function(e){if(e)return e;var t=this.server.get("activeConnection");return t?t.address:void 0}},".server-detail-port":{model:"serverOverview",modelAttribute:"port",formatter:function(e){if(e)return e;var t=this.server.get("activeConnection");return t?t.port:void 0}}},onRender:function(){this.share.append(new u.a({model:this.model,serverOverview:this.serverOverview,itemViewOptions:this.itemViewOptions}))},onServerStatusClick:function(e){e.preventDefault()
;var t=a()(e.currentTarget);t.toggleClass("active"),this.ui.details.toggleClass("transition-out",!t.hasClass("active"))}});t.a=h},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(3099),c=n(3101),u=n.n(c),d=r.a.CompositeView.extend({className:"share-server-container",template:u.a,itemView:l.a,itemViewContainer:".share-section-list",ui:{list:".share-section-list"},events:{"change input[name=share-all-libraries-cb]":"onAllLibrariesChange"},initialize:function(e){
s.a.bindAll(this,"render"),this.serverOverview=e.serverOverview,this.collection=this.serverOverview.get("sections");var t=this.model.get("serverShares");this.serverShare=t.findWhere({machineIdentifier:this.serverOverview.id});var n=[];n.push(this.serverOverview.populate()),this.serverShare&&(this.itemViewOptions={serverShare:this.serverShare},this.serverShare.isNew()||n.push(this.serverShare.populate())),this.listPromise=a.a.when.apply(a.a,n),
"pending"===this.listPromise.state()&&this.listPromise.always(this.render)},serializeData:function(){var e=this.listPromise.state(),t=!this.serverShare&&this.model.isNew(),n=this.serverShare&&this.serverShare.get("allLibraries");return{server:this.serverOverview.toJSON(),isPending:"pending"===e,hasFailed:"rejected"===e,hasSections:!!this.serverOverview.get("sections").length,allLibraries:t||n}},onAllLibrariesChange:function(e){this.ui.list.toggleClass("show-libraries",!e.currentTarget.checked)}
});t.a=d},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(145),s=n(3100),l=n.n(s),c=i.a.ItemView.extend({tagName:"li",className:"share-section-list-item",template:l.a,initialize:function(e){this.serverShare=e.serverShare},serializeData:function(){var e={section:this.model.toJSON(),typeIcon:o.f.get(this.model.get("type")).sectionTypeIcon,isChecked:!1};if(this.serverShare&&!this.serverShare.get("allLibraries")){var t=this.serverShare.get("Section");e.isChecked=!!r.a.findWhere(t,{
id:this.model.id,shared:!0})}return e}});t.a=c},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"checked"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,s,l="",c=this.escapeExpression,u=this;return l+='<div class="checkbox"> <label for="share-section-'+c((o=t&&t.section,o=null==o||!1===o?o:o.id,"function"==typeof o?o.apply(t):o))+'-cb"> <input type="checkbox" id="share-section-'+c((o=t&&t.section,
o=null==o||!1===o?o:o.id,"function"==typeof o?o.apply(t):o))+'-cb" value="'+c((o=t&&t.section,o=null==o||!1===o?o:o.id,"function"==typeof o?o.apply(t):o))+'" ',o=n.if.call(t,t&&t.isChecked,{hash:{},inverse:u.noop,fn:u.program(1,r,a),data:a}),(o||0===o)&&(l+=o),l+='> <i class="section-type-icon glyphicon ',(s=n.typeIcon)?o=s.call(t,{hash:{},data:a}):(s=t&&t.typeIcon,o="function"==typeof s?s.call(t,{hash:{},data:a}):s),l+=c(o)+'"></i> '+c((o=t&&t.section,o=null==o||!1===o?o:o.title,
"function"==typeof o?o.apply(t):o))+" </label> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"show-libraries"}function l(e,t){var r,o="";return o+=' <li class="share-section-list-item"> <div class="checkbox"> <label for="share-all-libraries-'+y((r=e&&e.server,r=null==r||!1===r?r:r.machineIdentifier,
typeof r===m?r.apply(e):r))+'-cb"> <input type="checkbox" id="share-all-libraries-'+y((r=e&&e.server,r=null==r||!1===r?r:r.machineIdentifier,typeof r===m?r.apply(e):r))+'-cb" name="share-all-libraries-cb" value="all" ',r=a.if.call(e,e&&e.allLibraries,{hash:{},inverse:b.noop,fn:b.program(4,c,t),data:t}),(r||0===r)&&(o+=r),o+="> "+y(i(n(5)).call(e,"All Libraries",{hash:{},data:t}))+" </label> </div> </li> "}function c(e,t){return"checked"}function u(e,t){var a=""
;return a+=' <p class="text-muted">'+y(i(n(5)).call(e,"Loading...",{hash:{},data:t}))+"</p> "}function d(e,t){var n;return n=a.if.call(e,e&&e.hasFailed,{hash:{},inverse:b.program(11,h,t),fn:b.program(9,p,t),data:t}),n||0===n?n:""}function p(e,t){var a,r="";return r+=' <p class="text-muted">'+y(i(n(5)).call(e,"We were unable to retrieve libraries for {1}. Please ensure the server is signed in to your Plex account.",(a=e&&e.server,null==a||!1===a?a:a.name),{hash:{},data:t}))+"</p> "}
function h(e,t){var n;return n=a.unless.call(e,e&&e.hasSections,{hash:{},inverse:b.noop,fn:b.program(12,f,t),data:t}),n||0===n?n:""}function f(e,t){var a="";return a+=' <p class="text-muted">'+y(i(n(5)).call(e,"No libraries",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m="function",y=this.escapeExpression,b=this;return g+='<ul id="'+y((v=t&&t.server,v=null==v||!1===v?v:v.machineIdentifier,
typeof v===m?v.apply(t):v))+'-section-list" class="list share-section-list ',v=a.unless.call(t,t&&t.allLibraries,{hash:{},inverse:b.noop,fn:b.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+='"> ',v=a.if.call(t,t&&t.hasSections,{hash:{},inverse:b.noop,fn:b.program(3,l,o),data:o}),(v||0===v)&&(g+=v),g+=" </ul> ",v=a.if.call(t,t&&t.isPending,{hash:{},inverse:b.program(8,d,o),fn:b.program(6,u,o),data:o}),(v||0===v)&&(g+=v),g+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<div class="server-header"> <i class="plex-image server server-xs"></i> <h3 class="server-title"></h3> <a class="server-status-btn unknown" href="#"> <span class="server-status-label available">'+l(i(n(5)).call(t,"Available",{hash:{},data:o
}))+'</span> <span class="server-status-label unavailable">'+l(i(n(5)).call(t,"Unavailable",{hash:{},data:o}))+'</span> <span class="server-status-label unauthorized">'+l(i(n(5)).call(t,"Unauthorized",{hash:{},data:o}))+'</span> <span class="server-status-label unknown">'+l(i(n(5)).call(t,"Unknown",{hash:{},data:o
}))+'</span> <i class="server-details-open-icon glyphicon chevron-down"></i> <i class="server-details-close-icon glyphicon chevron-up"></i> </a> </div> <div class="server-details transition-out"> <h4>'+l(i(n(5)).call(t,"Info",{hash:{},data:o}))+'</h4> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Version",{hash:{},data:o
}))+'</div> <div class="server-detail-value server-detail-version"></div> </div> <div class="server-detail-row server-detail-last-seen-row hidden"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Last Seen",{hash:{},data:o}))+'</div> <div class="server-detail-value server-detail-last-seen"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Address",{hash:{},data:o
}))+'</div> <div class="server-detail-value server-detail-address"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Port",{hash:{},data:o}))+'</div> <div class="server-detail-value server-detail-port"></div> </div> </div> <div class="share-details"> <h4>'+l(i(n(5)).call(t,"Share",{hash:{},data:o}))+"</h4> </div> "})},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(13),o=n.n(r),s=n(22),l=n(1432),c=(n.n(l),
n(10)),u=n.n(c),d=n(16),p=n(807),h=n(79),f=n(145),v=n(3104),g=n.n(v),m=s.a.ItemView.extend({className:"form-horizontal",template:g.a,filters:{contentRating:{sectionTypes:["movie","show"],presets:{movie:["G","PG","PG-13","R","NC-17","None"],show:["TV-Y","TV-Y7","TV-G","TV-PG","TV-14","TV-MA","None"]}},label:{sectionTypes:["movie","show","artist","photo"]}},filterByType:{movie:"filterMovies",show:"filterTelevision",artist:"filterMusic",photo:"filterPhotos"},ui:{tagInputs:".tag-input-hidden",
onlyDeleteTagInputs:".only-delete-tag-input-hidden"},events:{"change input":"onInputChange"},initialize:function(e){this.paneID=e.paneID,this.type=e.type;var t=d.c("appModel"),n=t.get("user"),i=n.get("features").get(h.a),a=n.get("features").get(h.n);this.hasContentFilterFeature=n.get("features").get(h.c),this.canShareTuners=(!!e.homeUser||i)&&a,this.plexPassUrl=n.server.get("plexPassUrl"),this.changes={}},serializeData:function(){return{user:this.model.toJSON(),
hasContentFilterFeature:this.hasContentFilterFeature,canShareTuners:this.canShareTuners,plexPassUrl:this.plexPassUrl,moviesIcon:f.f.get("movies").sectionTypeIcon,showsIcon:f.f.get("tv").sectionTypeIcon,musicIcon:f.f.get("music").sectionTypeIcon,photosIcon:f.f.get("photo").sectionTypeIcon}},loadPresets:function(){u.a.each(this.filters,function(e,t){u.a.isEmpty(e.presets)||u.a.each(e.presets,function(e,n){var i=this.getSelectizeInputByFilterName(t,n),a=u.a.map(e,function(e){return{title:e,key:e}})
;i.addOption(a)},this)},this)},loadSections:function(){var e=d.c("appModel"),t=e.get("servers"),n=this.model.get("serverShares"),i=n.filter(function(e){return e.isActive()&&e.get("owned")}),a=u.a.compact(u.a.map(i,function(e){return t.get(e.get("machineIdentifier"))}));u.a.each(a,function(e){if(e.get("connected")){var t=e.get("sections");t.populate().done(u.a.bind(function(){this.loadFilters(t)},this))}},this)},loadFilters:function(e){e.each(function(e){var t=e.get("type")
;u.a.each(this.filters,function(n,i){u.a.contains(n.sectionTypes,t)&&this.loadFilterOptions(e,i)},this)},this)},loadFilterOptions:function(e,t){var n=new p.a({filter:t,filterType:"string"},{server:e.server,section:e}),i=n.get("options");i.populate().done(u.a.bind(function(){this.getSelectizeInputByFilterName(t,e.get("type")).addOption(i.toJSON())},this))},getSelectizeInputByFilterName:function(e,t){var n="#filter-"+t+"-"+e;return this.$(n)[0].selectize},resetAllPlaceholders:function(){var e=[]
;u.a.each(this.filters,function(t){e=u.a.union(e,t.sectionTypes)}),u.a.each(e,function(e){var t=this.model.get(this.filterByType[e]);this.resetPlaceholders(e,{restore:u.a.isEmpty(t)})},this)},resetPlaceholders:function(e,t){t||(t={}),this.$("input[data-section-type="+e+"]").each(function(){var e=t.restore?this.placeholder:"";e?(this.selectize.settings.placeholder=e,this.selectize.updatePlaceholder()):this.selectize.$control_input.attr("placeholder","")})},flushChanges:function(){
this.model.set(this.changes)},onRender:function(){if(!this.hasContentFilterFeature)return void this.$el.addClass("no-plex-pass");var e={plugins:["remove_button"],create:!0,labelField:"title",valueField:"title",sortField:"title",searchField:["title"]};this.ui.tagInputs.selectize(e),this.ui.onlyDeleteTagInputs.selectize(a()({onInitialize:function(){this.$control.off("click mousedown"),this.$control.addClass("no-input"),this.$control_input.prop("disabled",!0)},hideDropdown:!0},e)),
this.resetAllPlaceholders(),this.loadSections(),this.loadPresets()},onInputChange:function(e){var t=e.currentTarget,n=o()(t),i=t.value,a=n.data("filter"),r=n.data("sectionType");if(this.hasContentFilterFeature||"allowChannels"===t.name){if(a){var s=this.changes[t.name]||this.model.get(t.name)||{};i?s[a]=i:s.hasOwnProperty(a)&&delete s[a],this.resetPlaceholders(r,{restore:u.a.isEmpty(s)}),i=s}else"checkbox"===t.type&&(i=t.checked);this.changes[t.name]=i}}});t.a=m},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o="";return o+=' <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label for="allow-channels-cb"> <input type="checkbox" id="allow-channels-cb" name="allowChannels" ',r=a.if.call(e,(r=e&&e.user,null==r||!1===r?r:r.allowChannels),{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(r||0===r)&&(o+=r),
o+="> "+v(i(n(5)).call(e,"Allow Plugins",{hash:{},data:t}))+' </label> </div> </div> </div> <div class="row"> <h4 class="text-muted plex-pass-restrictions-header"> <span class="plex-pass-restrictions-title">'+v(i(n(5)).call(e,"Plex Pass restrictions",{hash:{},data:t}))+'</span> <a href="'+v((r=e&&e.plexPassUrl,typeof r===g?r.apply(e):r))+'" target="_blank">'+v(i(n(5)).call(e,"Learn More",{hash:{},data:t}))+'</a> </h4> <p class="text-center"> </p> </div> '}function l(e,t){return"checked"}
function c(e,t){var r,o="";return o+=' <div class="checkbox"> <label for="allow-channels-cb"> <input type="checkbox" id="allow-channels-cb" name="allowChannels" ',r=a.if.call(e,(r=e&&e.user,null==r||!1===r?r:r.allowChannels),{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+="> "+v(i(n(5)).call(e,"Allow Plugins",{hash:{},data:t}))+" </label> </div> "}function u(e,t){var r,o=""
;return o+=' <div class="checkbox"> <label for="allow-tuners-cb"> <input type="checkbox" id="allow-tuners-cb" name="allowTuners" ',r=a.if.call(e,(r=e&&e.user,null==r||!1===r?r:r.allowTuners),{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+="> "+v(i(n(5)).call(e,"Allow access to Live TV",{hash:{},data:t
}))+' </label> <p class="help-block"> '+v(i(n(5)).call(e,"Enabling this option will allow this user to access Live TV streams. It requires a library on the Plex Media Server that has DVR configured to be shared with the user.",{hash:{},data:t}))+" </p> </div> "}function d(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var p,h="",f=this,v=this.escapeExpression,g="function";return p=a.unless.call(t,t&&t.hasContentFilterFeature,{hash:{},inverse:f.noop,
fn:f.program(1,s,o),data:o}),(p||0===p)&&(h+=p),h+=' <div class="plex-pass-restrictions"> <div class="overlay"></div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label for="allow-sync-cb"> <input type="checkbox" id="allow-sync-cb" name="allowSync" ',p=a.if.call(t,(p=t&&t.user,null==p||!1===p?p:p.allowSync),{hash:{},inverse:f.noop,fn:f.program(2,l,o),data:o}),(p||0===p)&&(h+=p),h+="> "+v(i(n(5)).call(t,"Allow Sync",{hash:{},data:o
}))+' </label> </div> <div class="checkbox"> <label for="allow-camera-upload-images-cb"> <input type="checkbox" id="allow-camera-upload-images-cb" name="allowCameraUpload" ',p=a.if.call(t,(p=t&&t.user,null==p||!1===p?p:p.allowCameraUpload),{hash:{},inverse:f.noop,fn:f.program(2,l,o),data:o}),(p||0===p)&&(h+=p),h+="> "+v(i(n(5)).call(t,"Allow Camera Upload",{hash:{},data:o
}))+' </label> <p class="help-block">'+v(i(n(5)).call(t,"Enabling this option will allow this user to upload media to your server.",{hash:{},data:o}))+"</p> </div> ",p=a.if.call(t,t&&t.hasContentFilterFeature,{hash:{},inverse:f.noop,fn:f.program(4,c,o),data:o}),(p||0===p)&&(h+=p),h+=" ",p=a.if.call(t,t&&t.canShareTuners,{hash:{},inverse:f.noop,fn:f.program(6,u,o),data:o}),(p||0===p)&&(h+=p),
h+=' </div> </div> <div class="form-group"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+v((p=t&&t.moviesIcon,typeof p===g?p.apply(t):p))+'"></i> '+v(i(n(5)).call(t,"Movies",{hash:{},data:o}))+' </label> <div class="col-sm-9 help-block section-help-block"> '+v(i(n(5)).call(t,"Only allow movies matching the ratings or labels below.",{hash:{},data:o
}))+' </div> </div> <div class="form-group"> <label for="filter-movie-contentRating" class="col-sm-3 control-label"> '+v(i(n(5)).call(t,"Ratings",{hash:{},data:o}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-movie-contentRating" class="form-control tag-input-hidden" name="filterMovies" data-filter="contentRating" data-section-type="movie" placeholder="'+v(i(n(5)).call(t,"Allow all ratings",{hash:{},data:o}))+'" value="'+v((p=t&&t.user,p=null==p||!1===p?p:p.filterMovies,
p=null==p||!1===p?p:p.contentRating,typeof p===g?p.apply(t):p))+'"> </div> </div> <div class="form-group"> <label for="filter-movie-label" class="col-sm-3 control-label"> '+v(i(n(5)).call(t,"Labels",{hash:{},data:o}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-movie-label" class="form-control tag-input-hidden" name="filterMovies" data-filter="label" data-section-type="movie" placeholder="'+v(i(n(5)).call(t,"Allow all labels",{hash:{},data:o}))+'" value="'+v((p=t&&t.user,
p=null==p||!1===p?p:p.filterMovies,p=null==p||!1===p?p:p.label,typeof p===g?p.apply(t):p))+'"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+v((p=t&&t.showsIcon,typeof p===g?p.apply(t):p))+'"></i> '+v(i(n(5)).call(t,"TV Shows",{hash:{},data:o}))+' </label> <div class="col-sm-9 help-block section-help-block"> '+v(i(n(5)).call(t,"Only allow TV shows matching the ratings or labels below.",{hash:{},data:o
}))+' </div> </div> <div class="form-group"> <label for="filter-show-contentRating" class="col-sm-3 control-label"> '+v(i(n(5)).call(t,"Ratings",{hash:{},data:o}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-show-contentRating" class="form-control tag-input-hidden" name="filterTelevision" data-filter="contentRating" data-section-type="show" placeholder="'+v(i(n(5)).call(t,"Allow all ratings",{hash:{},data:o}))+'" value="'+v((p=t&&t.user,p=null==p||!1===p?p:p.filterTelevision,
p=null==p||!1===p?p:p.contentRating,typeof p===g?p.apply(t):p))+'"> </div> </div> <div class="form-group"> <label for="filter-show-label" class="col-sm-3 control-label"> '+v(i(n(5)).call(t,"Labels",{hash:{},data:o}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-show-label" class="form-control tag-input-hidden" name="filterTelevision" data-filter="label" data-section-type="show" placeholder="'+v(i(n(5)).call(t,"Allow all labels",{hash:{},data:o}))+'" value="'+v((p=t&&t.user,
p=null==p||!1===p?p:p.filterTelevision,p=null==p||!1===p?p:p.label,typeof p===g?p.apply(t):p))+'"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+v((p=t&&t.musicIcon,typeof p===g?p.apply(t):p))+'"></i> '+v(i(n(5)).call(t,"Albums",{hash:{},data:o}))+' </label> </div> <div class="form-group"> <label for="filter-artist-label" class="col-sm-3 control-label"> '+v(i(n(5)).call(t,"Labels",{hash:{},data:o
}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-artist-label" class="form-control tag-input-hidden" name="filterMusic" data-filter="label" data-section-type="artist" placeholder="'+v(i(n(5)).call(t,"Allow all labels",{hash:{},data:o}))+'" value="'+v((p=t&&t.user,p=null==p||!1===p?p:p.filterMusic,p=null==p||!1===p?p:p.label,typeof p===g?p.apply(t):p))+'"> </div> </div> <div class="form-group ',p=a.unless.call(t,(p=t&&t.user,p=null==p||!1===p?p:p.filterPhotos,
null==p||!1===p?p:p.label),{hash:{},inverse:f.noop,fn:f.program(8,d,o),data:o}),(p||0===p)&&(h+=p),h+='"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+v((p=t&&t.photosIcon,typeof p===g?p.apply(t):p))+'"></i> '+v(i(n(5)).call(t,"Photos",{hash:{},data:o}))+' </label> </div> <div class="form-group ',p=a.unless.call(t,(p=t&&t.user,p=null==p||!1===p?p:p.filterPhotos,null==p||!1===p?p:p.label),{hash:{},inverse:f.noop,fn:f.program(8,d,o),data:o}),
(p||0===p)&&(h+=p),h+='"> <label for="filter-photo-label" class="col-sm-3 control-label"> '+v(i(n(5)).call(t,"Labels",{hash:{},data:o}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-photo-label" class="form-control only-delete-tag-input-hidden" name="filterPhotos" data-filter="label" data-section-type="photo" data-only-delete="true" placeholder="'+v(i(n(5)).call(t,"Allow all labels",{hash:{},data:o}))+'" value="'+v((p=t&&t.user,p=null==p||!1===p?p:p.filterPhotos,
p=null==p||!1===p?p:p.label,typeof p===g?p.apply(t):p))+'"> </div> </div> </div> '})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(16),c=n(385),u=n(3),d=n(145),p=n(3106),h=n.n(p),f=n(3107),v=n.n(f),g=r.a.ItemView.extend({template:h.a,ui:{details:".server-details"},events:{"click .server-status-btn":"onServerStatusClick","click .leave-server-btn":"onLeaveServerClick"},initialize:function(e){this.paneID=e.paneID,this.serverShare=e.serverShare,
this.serverShare.populate();var t=l.c("appModel"),n=t.get("servers"),i=n.get(this.serverShare.get("machineIdentifier"));i?this.attachServer(i):this.listenTo(n,"add",this.onServerAdd)},flushChanges:function(){},attachServer:function(e){this.server=e,this.listenTo(e,"change:connected",this.render)},bindings:{".server-title":{model:"serverShare",modelAttribute:"name"},".server-status-btn":{model:"server",modelAttribute:"connected",manual:!0,formatter:function(e,t){
t.removeClass("unknown available unauthorized unavailable"),null==e?t.addClass("unknown"):e?t.addClass("available"):this.server.get("unauthorized")?t.addClass("unauthorized"):t.addClass("unavailable")}},".server-detail-version":{model:"server",modelAttribute:"shortVersion"},".server-detail-last-seen":{model:"serverShare",modelAttribute:"lastSeenAt",formatter:function(e){return Object(c.a)(e)}},".server-detail-address":{model:"server",modelAttribute:"activeConnection",formatter:function(e){
return e&&e.address}},".server-detail-port":{model:"server",modelAttribute:"activeConnection",formatter:function(e){return e&&e.port}},".server-restriction-allow-sync":{model:"serverShare",modelAttribute:"allowSync",manual:!0,autohide:!0},".share-section-list":{model:"serverShare",modelAttribute:"Section",isHtml:!0,formatter:function(e){var t;return e.length||"pending"!==this.serverShare.populatePromise.state()?(t="",s.a.each(s.a.where(e,{shared:!0}),function(e){var n={section:e,
typeIcon:d.f.get(e.type).sectionTypeIcon};t+=v()(n)})):t=v()({section:{title:Object(u.default)("Loading...")},typeIcon:"hidden"}),t}}},onServerAdd:function(e){e.id===this.serverShare.get("machineIdentifier")&&(this.attachServer(e),this.unbindFromModel(),this.bindToModel())},onServerStatusClick:function(e){e.preventDefault();var t=a()(e.currentTarget);t.toggleClass("active"),this.ui.details.toggleClass("transition-out",!t.hasClass("active"))},onLeaveServerClick:function(e){e.preventDefault(),
this.trigger("destroy:serverShare",this.serverShare)}});t.a=g},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<div class="server-header"> <i class="plex-image server server-xs"></i> <h3 class="server-title"></h3> <a class="server-status-btn unknown" href="#"> <span class="server-status-label available">'+l(i(n(5)).call(t,"Available",{hash:{},data:o}))+'</span> <span class="server-status-label unavailable">'+l(i(n(5)).call(t,"Unavailable",{hash:{},data:o}))+'</span> <span class="server-status-label unauthorized">'+l(i(n(5)).call(t,"Unauthorized",{hash:{},data:o
}))+'</span> <span class="server-status-label unknown">'+l(i(n(5)).call(t,"Unknown",{hash:{},data:o}))+'</span> <i class="server-details-open-icon glyphicon chevron-down"></i> <i class="server-details-close-icon glyphicon chevron-up"></i> </a> </div> <div class="server-details transition-out"> <h4>'+l(i(n(5)).call(t,"Info",{hash:{},data:o}))+'</h4> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Version",{hash:{},data:o
}))+'</div> <div class="server-detail-value server-detail-version"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Last Seen",{hash:{},data:o}))+'</div> <div class="server-detail-value server-detail-last-seen"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Address",{hash:{},data:o
}))+'</div> <div class="server-detail-value server-detail-address"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(5)).call(t,"Port",{hash:{},data:o}))+'</div> <div class="server-detail-value server-detail-port"></div> </div> </div> <div class="share-details"> <h4>'+l(i(n(5)).call(t,"Sharing",{hash:{},data:o
}))+'</h4> <div class="share-server-container"> <div class="server-restriction-allow-sync share-section-list-item no-checkbox"> <i class="section-type-icon glyphicon ok-2"></i> '+l(i(n(5)).call(t,"Sync Allowed",{hash:{},data:o}))+' </div> <ul class="list share-section-list show-libraries"></ul> </div> </div> <div class="share-details-footer"> <button type="button" class="leave-server-btn btn btn-sm btn-danger">'+l(i(n(5)).call(t,"Leave Server",{hash:{},data:o}))+"</button> </div> "})
},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<li class="share-section-list-item no-checkbox"> <i class="section-type-icon glyphicon ',(o=n.typeIcon)?r=o.call(t,{hash:{},data:a}):(o=t&&t.typeIcon,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+'"></i> '+l((r=t&&t.section,r=null==r||!1===r?r:r.title,
"function"==typeof r?r.apply(t):r))+" </li> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(43),c=n(3109),u=n.n(c),d=r.a.ItemView.extend({template:u.a,focusDelay:200,validationDelay:500,ui:{existingGroup:".existing-user-group",existingBtn:".add-existing-user-btn",restrictedGroup:".restricted-user-group",restrictedBtn:".add-restricted-user-btn"},events:{"keyup input":"onInputChange","change input":"onInputChange",
"click .add-existing-user-btn":"onAddExistingUserClick","click .add-restricted-user-btn":"onAddRestrictedUserClick"},initialize:function(e){this.paneID=e.paneID,this.type=e.type,this.homeUser=e.homeUser,this.changes={},this.validate=s.a.debounce(this.validate,500)},serializeData:function(){return{type:this.type}},flushChanges:function(){this.model.set(this.changes),this.homeUser&&this.homeUser.set(this.changes)},focusInput:function(){var e
;e=this.changes.restricted?this.$("[name=title]"):this.$("[name=username]"),e.removeClass("hidden"),e.focus()},validate:function(e){if(e){var t=l.a.execute("validateUsername",{username:e,server:this.model.server});t.done(s.a.bind(function(){this.$el.addClass("is-valid-username"),this.$el.removeClass("is-invalid-username")},this)),t.fail(s.a.bind(function(e,t){this.$el.removeClass("is-valid-username"),this.$el.addClass("is-invalid-username"),this.trigger("change:errorMessage",t)},this))}},
onRender:function(){"friend"===this.type&&setTimeout(s.a.bind(this.focusInput,this),this.focusDelay)},onInputChange:function(e){var t=e.currentTarget,n=t.name,i=t.value;i!==this.changes[n]&&(this.changes[n]=i,this.trigger("change:errorMessage",""),this.trigger("enable:submit",!!i),"username"===n&&this.validate(i))},onAddExistingUserClick:function(e){e.preventDefault();var t=a()(e.currentTarget);t.isDisabled()||(t.addClass("hidden"),this.ui.restrictedGroup.addClass("disabled"),
this.ui.restrictedBtn.addClass("disabled"),this.focusInput())},onAddRestrictedUserClick:function(e){e.preventDefault();var t=a()(e.currentTarget);t.isDisabled()||(this.changes.restricted=!0,t.addClass("hidden"),this.ui.existingGroup.addClass("disabled"),this.ui.existingBtn.addClass("disabled"),this.focusInput())}});t.a=d},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <div class="existing-user-group username-group"> <div class="media-poster img-circle placeholder-square"></div> <div class="username-group-input-container"> <i class="validation-success-icon glyphicon circle-ok"></i> <i class="validation-error-icon glyphicon circle-exclamation-mark"></i> <input type="text" class="form-control hidden" name="username" placeholder="'+d(i(n(5)).call(e,"Username or email",{hash:{},data:t
}))+'" autocorrect="off" autocapitalize="off"> <button type="button" class="add-existing-user-btn btn btn-primary">'+d(i(n(5)).call(e,"Add an Existing Plex User",{hash:{},data:t}))+'</button> <p class="help-block">'+d(i(n(5)).call(e,"Adding a Plex user to your home will allow you to quickly switch accounts. The invited user will be asked to confirm home membership.",{hash:{},data:t
}))+'</p> </div> </div> <div class="restricted-user-group username-group"> <div class="media-poster img-circle placeholder-friend"></div> <div class="username-group-input-container"> <input type="text" class="form-control hidden" name="title" placeholder="'+d(i(n(5)).call(e,"Name",{hash:{},data:t}))+'" autocorrect="off" autocapitalize="off"> <button type="button" class="add-restricted-user-btn btn btn-primary">'+d(i(n(5)).call(e,"Create a Managed User",{hash:{},data:t
}))+'</button> <p class="help-block">'+d(i(n(5)).call(e,"Managed users are only available when signed in with an account in your home. You can choose any name you like and you'll be able to set restrictions on accessible media.",{hash:{},data:t}))+"</p> </div> </div> "}function l(e,t){var a=""
;return a+=' <div class="friend-group username-group"> <div class="media-poster img-circle placeholder-friend"></div> <div class="username-group-input-container"> <i class="validation-success-icon glyphicon circle-ok"></i> <i class="validation-error-icon glyphicon circle-exclamation-mark"></i> <input type="text" class="form-control" name="username" placeholder="'+d(i(n(5)).call(e,"Username or email",{hash:{},data:t
}))+'" autocorrect="off" autocapitalize="off"> <p class="help-block">'+d(i(n(5)).call(e,"The invited user will be asked to confirm friendship. If libraries are shared with the user, you'll be able to set restrictions on accessible media.",{hash:{},data:t}))+"</p> </div> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return c=i(n(34)).call(t,t&&t.type,"home",{hash:{},inverse:p.program(3,l,o),fn:p.program(1,s,o),data:o}),
(c||0===c)&&(u+=c),u+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=" "+y((n=e&&e.title,typeof n===m?n.apply(e):n))+" "}function l(e,t){var a,r="";return r+=" ",a=i(n(34)).call(e,e&&e.type,"home",{hash:{},inverse:b.program(6,u,t),fn:b.program(4,c,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function c(e,t){var a="";return a+=" "+y(i(n(5)).call(e,"Add User",{hash:{},data:t
}))+" "}function u(e,t){var a="";return a+=" "+y(i(n(5)).call(e,"Invite Friend",{hash:{},data:t}))+" "}function d(e,t){var a="";return a+=" "+y(i(n(5)).call(e,"Save Changes",{hash:{},data:t}))+" "}function p(e,t){var a,r="";return r+=" ",a=i(n(34)).call(e,e&&e.type,"home",{hash:{},inverse:b.program(13,f,t),fn:b.program(11,h,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function h(e,t){var a="";return a+=" "+y(i(n(5)).call(e,"Add",{hash:{},data:t}))+" "}function f(e,t){var a=""
;return a+=" "+y(i(n(5)).call(e,"Invite",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m="function",y=this.escapeExpression,b=this;return g+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <div class="modal-poster media-poster img-circle placeholder-friend"></div> <h4 class="modal-title"> ',
v=a.if.call(t,t&&t.title,{hash:{},inverse:b.program(3,l,o),fn:b.program(1,s,o),data:o}),(v||0===v)&&(g+=v),
g+=' </h4> </div> <form id="share-server-form"> <div class="modal-body modal-body-scroll modal-body-with-panes"> <div class="modal-nav-pane dark-scrollbar"></div> <div class="modal-body-pane dark-scrollbar"></div> </div> <div class="modal-footer"> <span class="form-message"></span> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+y(i(n(5)).call(t,"Cancel",{hash:{},data:o
}))+'</button> <button type="submit" class="next-btn btn btn-lg btn-primary disabled">'+y(i(n(5)).call(t,"Next",{hash:{},data:o}))+'</button> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading hidden"> <div class="loading loading-sm"></div> <span class="btn-label"> ',v=a.if.call(t,t&&t.title,{hash:{},inverse:b.program(10,p,o),fn:b.program(8,d,o),data:o}),(v||0===v)&&(g+=v),g+=" </span> </button> </div> </form> </div> </div> "})},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.sectionTypes,i=e.librariesBySectionType,a=e.librariesCount,o=e.isLibrariesPopulated,d=e.librariesError,p=e.isLibraryRefreshing,v=e.onAddLibraryPress,y=e.onCancelUpdatePress,b=e.onUpdateLibrariesPress;return d&&!a?r()(h.a,{title:Object(u.default)("There was an unexpected error loading libraries.")}):o||d?r()(s.Fragment,{},void 0,r()("div",{className:g.a.header},void 0,r()("div",{className:g.a.headerTitle},void 0,Object(u.default)("{librariesCount} Libraries",{
librariesCount:a})),r()("div",{},void 0,r()(l.a,{className:g.a.button,size:c.SMALL,onPress:v},void 0,Object(u.default)("Add library")),p?r()(l.a,{className:g.a.button,size:c.SMALL,onPress:y},void 0,Object(u.default)("Cancel scan")):r()(l.a,{className:g.a.button,size:c.SMALL,onPress:b},void 0,Object(u.default)("Scan library files")))),n.map(function(e){var n=i[e.key];return n?r()(f.a,{serverEntityID:t,libraryEntityIDs:n,sectionTypeTitle:e.title},e.key):null})):m}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(52),u=n(3),d=n(31),p=n(85),h=n(127),f=n(3114),v=n(3120),g=n.n(v),m=r()(p.a,{},void 0,r()(d.a,{}));t.a=i},function(e,t){e.exports={emptyPage:"EmptyPage-emptyPage-2AM9u",content:"EmptyPage-content-10PgB",icon:"EmptyPage-icon-31D3Z",default:"EmptyPage-default-26GUD",primary:"EmptyPage-primary-1uNBT",success:"EmptyPage-success-zqYzQ",danger:"EmptyPage-danger-3-2M_",title:"EmptyPage-title-264Jp",description:"EmptyPage-description-oYWtW",
footer:"EmptyPage-footer-2lE0T"}},function(e,t){e.exports={icon:"ErrorPage-icon-ZJ38x EmptyPage-icon-31D3Z"}},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.libraryEntityIDs,i=e.sectionTypeTitle;return r()(s.Fragment,{},void 0,r()("div",{className:u.a.title},void 0,i),r()("div",{className:u.a.divider}),n.map(function(e,n){return r()(l.a,{serverEntityID:t,libraryEntityID:e,rowIndex:n},e)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3115)),c=n(3119),u=n.n(c)
;t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),Object(d.a)(),Object(s.b)(),function(e,t,n){return{title:e.title,route:t,type:Object(l.a)(e),refreshing:e.refreshing,isLibraryDeleteInProgress:!!n}})}function a(e,t){var n={serverEntityID:t.serverEntityID,libraryEntityID:t.libraryEntityID,metricsPage:t.metricsPage};return{onShareLibraryPress:function(){e(u.g(n))},onUpdateLibraryPress:function(){e(u.i(n))},onCancelUpdateLibraryPress:function(){
e(u.b(n))},onEditLibraryPress:function(){e(u.d(n))},onAnalyzeLibraryPress:function(){e(u.a(n))},onRefreshLibraryPress:function(){e(u.h(n))},onEmptyTrashLibraryPress:function(){e(u.e(n))},onDeleteLibraryPress:function(){e(u.c(n))}}}var r=n(4),o=(n.n(r),n(939)),s=n(695),l=n(936),c=n(58),u=n(940),d=n(1433),p=n(3116);t.a=Object(c.a)(i,a)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(20)),f=n(47),v=n(51),g=n(30),m=n(3),y=n(145),b=n(26),I=n(31),S=n(283),M=n(177),D=n(3117),C=n(3118),j=n.n(C),P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onActionsPress=function(){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen})},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1})},a.onAnalyzePress=function(){a.setState({isAnalyzeModalOpen:!0})},a.onAnalyzeConfirm=function(){a.setState({isAnalyzeModalOpen:!1}),
a.props.onAnalyzeLibraryPress()},a.onAnalyzeCancel=function(){a.setState({isAnalyzeModalOpen:!1})},a.onRefreshAllPress=function(){a.setState({isRefreshAllModalOpen:!0})},a.onRefreshAllConfirm=function(){a.setState({isRefreshAllModalOpen:!1}),a.props.onRefreshLibraryPress()},a.onRefreshAllCancel=function(){a.setState({isRefreshAllModalOpen:!1})},a.onEmptyTrashPress=function(){a.setState({isEmptyTrashModalOpen:!0})},a.onEmptyTrashConfirm=function(){a.setState({isEmptyTrashModalOpen:!1}),
a.props.onEmptyTrashLibraryPress()},a.onEmptyTrashCancel=function(){a.setState({isEmptyTrashModalOpen:!1})},a.onDeletePress=function(){a.setState({isDeleteModalOpen:!0})},a.onDeleteConfirm=function(){a.props.onDeleteLibraryPress()},a.onDeleteCancel=function(){a.setState({isDeleteModalOpen:!1})},a.state={isActionsMenuOpen:!1,isAnalyzeModalOpen:!1,isRefreshAllModalOpen:!1,isEmptyTrashModalOpen:!1,isDeleteModalOpen:!1},a._actionsMenuButtonID=Object(f.a)(),a}return u()(t,e),
t.getDerivedStateFromProps=function(e,t){return e.isLibraryDeleteInProgress!==t.isLibraryDeleteInProgress?!e.isLibraryDeleteInProgress&&t.isLibraryDeleteInProgress&&t.isDeleteModalOpen?{isDeleteModalOpen:!1,isLibraryDeleteInProgress:e.isLibraryDeleteInProgress}:{isLibraryDeleteInProgress:e.isLibraryDeleteInProgress}:null},t.prototype.render=function(){
var e=this.props,t=e.rowIndex,n=e.title,i=e.route,r=e.type,o=e.refreshing,s=e.isLibraryDeleteInProgress,l=e.onShareLibraryPress,c=e.onUpdateLibraryPress,u=e.onCancelUpdateLibraryPress,d=e.onEditLibraryPress,p=this.state.isActionsMenuOpen,f=Object(m.default)("Edit {library}",{library:n});return a()("div",{className:((t%2?j.a.alternateContainer:j.a.container)||"")+" "+(p&&j.a.isActionsMenuOpen||""||"")},void 0,a()(h.a,{className:j.a.underlay,title:f,onPress:d}),a()("div",{
className:j.a.titleContainer},void 0,a()("div",{className:j.a.iconContainer},void 0,o?a()(I.a,{className:j.a.spinner}):a()(b.a,{name:y.f.get(r).sectionTypeIcon})),a()(h.a,{className:j.a.title,title:n,to:i},void 0,n)),a()("div",{className:j.a.actions},void 0,a()(h.a,{className:j.a.action,title:f,onPress:d},void 0,Object(m.default)("Edit")),a()(S.a,{id:this._actionsMenuButtonID,className:j.a.action,icon:"plex-icon-more-560",title:Object(m.default)("More Actions"),onPress:this.onActionsPress
}),a()(D.a,{target:this._actionsMenuButtonID,isOpen:this.state.isActionsMenuOpen,isLibraryRefreshing:o,onMenuClose:this.onActionsMenuClose,onSharePress:l,onUpdatePress:c,onCancelUpdatePress:u,onAnalyzePress:this.onAnalyzePress,onRefreshAllPress:this.onRefreshAllPress,onEmptyTrashPress:this.onEmptyTrashPress,onDeletePress:this.onDeletePress}),a()(M.a,{isOpen:this.state.isAnalyzeModalOpen,metricsPage:g.d,title:Object(m.default)("Analyze Library"),
message:Object(m.default)("Analyzes all the media files in the library. The analysis captures information about the media which helps Plex decide how to optimally play back the media."),confirmLabel:Object(m.default)("Analyze"),onConfirm:this.onAnalyzeConfirm,onCancel:this.onAnalyzeCancel}),a()(M.a,{isOpen:this.state.isRefreshAllModalOpen,metricsPage:g.l,title:Object(m.default)("Refresh All Metadata"),
message:Object(m.default)("Forces a download of fresh media information from the internet. This can take a long time. Any locked fields are not modified."),confirmLabel:Object(m.default)("Refresh"),onConfirm:this.onRefreshAllConfirm,onCancel:this.onRefreshAllCancel}),a()(M.a,{isOpen:this.state.isEmptyTrashModalOpen,metricsPage:g.k,title:Object(m.default)("Empty Trash"),
message:Object(m.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:Object(m.default)("Empty"),onConfirm:this.onEmptyTrashConfirm,onCancel:this.onEmptyTrashCancel}),a()(M.a,{isOpen:this.state.isDeleteModalOpen,isConfirmButtonSpinning:s,isCancelButtonDisabled:s,metricsPage:g.h,kind:v.DANGER,
title:Object(m.default)("Delete Library"),message:Object(m.default)('The library "{libraryName}" will be removed from this server. Your media files will not be affected. This can\'t be undone. Continue?',{libraryName:n}),accordMessage:Object(m.default)('Yes, delete the library "{libraryName}"',{libraryName:n}),confirmLabel:Object(m.default)("Delete"),onConfirm:this.onDeleteConfirm,onCancel:this.onDeleteCancel})))},t}(p.Component);t.a=P},function(e,t,n){"use strict";function i(e){
var t=e.isLibraryRefreshing,n=e.onSharePress,i=e.onUpdatePress,a=e.onCancelUpdatePress,o=e.onAnalyzePress,l=e.onRefreshAllPress,c=e.onEmptyTrashPress,v=e.onDeletePress,g=s()(e,["isLibraryRefreshing","onSharePress","onUpdatePress","onCancelUpdatePress","onAnalyzePress","onRefreshAllPress","onEmptyTrashPress","onDeletePress"]);return u.a.createElement(d.a,g,r()(p.a,{onPress:n},void 0,Object(h.default)("Share...")),t?r()(p.a,{onPress:a},void 0,Object(h.default)("Cancel Scan")):r()(p.a,{onPress:i
},void 0,Object(h.default)("Scan Library Files")),r()(p.a,{onPress:o},void 0,Object(h.default)("Analyze")),r()(p.a,{onPress:l},void 0,Object(h.default)("Refresh All Metadata")),r()(p.a,{onPress:c},void 0,Object(h.default)("Empty Trash")),r()(p.a,{kind:f.b.DANGER,onPress:v},void 0,Object(h.default)("Delete")))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(112),h=n(3),f=n(24);t.a=i},function(e,t){e.exports={container:"ManageLibrarySummary-container-2i42A",
isActionsMenuOpen:"ManageLibrarySummary-isActionsMenuOpen-2S0oY",actions:"ManageLibrarySummary-actions-Xad3M",underlay:"ManageLibrarySummary-underlay-3yXf2",alternateContainer:"ManageLibrarySummary-alternateContainer-2wBQ- ManageLibrarySummary-container-2i42A",titleContainer:"ManageLibrarySummary-titleContainer-14le9",iconContainer:"ManageLibrarySummary-iconContainer-2GNNa",spinner:"ManageLibrarySummary-spinner-i5J6L",title:"ManageLibrarySummary-title-ah-Rn",
action:"ManageLibrarySummary-action-2Wct9"}},function(e,t){e.exports={title:"SectionTypeLibraries-title-3B6e9",divider:"SectionTypeLibraries-divider-2acpq"}},function(e,t){e.exports={header:"ManageLibrariesPane-header-1Q-gm",headerTitle:"ManageLibrariesPane-headerTitle-2WyRs",button:"ManageLibrariesPane-button-3nA1p"}},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(Object(I.a)(),function(e){return{title:e.friendlyName}})}
var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(16)),y=n(1145),b=n(791),I=n(35),S=n(465),M=n(3129),D=n(3131),C={dispatchClearLog:S.e,dispatchLoadLogFile:S.h},j=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));a.onDrop=function(){var e;a._stopServerEventManager(),(e=a.props).dispatchLoadLogFile.apply(e,arguments)};var r=Object(m.c)("appModel");return a._serverEventManager=new b.a({
name:"MediaServerLogEventManager",appModel:r,isValidServer:function(e){return e.entityID()===n.serverEntityID},supportsLongPolling:!1,ServerEventConnection:M.a,ServerRetryManager:y.a}),a}return d()(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.dispatchClearLog(),this._serverEventManager.start(),Object(m.c)("appModel").get("servers").forEach(function(t){var n=t.get("isResolved");n&&e._serverEventManager.onServerResolvedChange(t,n)})},
t.prototype.componentWillUnmount=function(){this._stopServerEventManager()},t.prototype._stopServerEventManager=function(){this._isServerEventManagerStopped||(this._serverEventManager.stop(),this.props.dispatchClearLog(),this._isServerEventManagerStopped=!0)},t.prototype.render=function(){return f.a.createElement(D.a,r()({onDrop:this.onDrop},this.props))},t}(h.Component);t.a=Object(v.connect)(i,C)(j)},function(e,t,n){"use strict";function i(e,t,n){if(!t)return null;var i=new Date(t)
;if(!Object(o.a)(i))return-1;for(var a=i.getTime(),r=0,s=e.length-1,l=void 0;r<=s;){l=Math.floor((r+s)/2);var c=e[l],u=e[l+1],d=new Date(c.time).getTime();if(!u)return a>d?l:l+1;if(a===d)return n<l?l:l+1;var p=new Date(u.time).getTime();if(a>d&&a<p)return l+1;a>d?r=l+1:a<d&&(s=l-1)}return Math.max(0,l)}function a(e,t){return i(e,t,-1/0)}function r(e,t){return i(e,t,1/0)}t.a=a,t.b=r;var o=n(613)},function(e,t,n){"use strict";function i(e){return Object(a.a)(e,r,new Date)}t.a=i
;var a=n(944),r="MMM dd, yyyy HH:mm:ss.SSS"},,,,,,function(e,t,n){"use strict";var i,a=n(16),r=n(352),o=n(1435),s=n(945),l=n(465),c=[s.f],u=o.a.extend((i={name:"MediaServerLogEventConnection",url:function(){var e=this.server.get("activeConnection"),t=e.id.replace(/^http/,"ws");return this.server.resolveUrl("/:/websockets/notifications",{params:{filters:"log"},connection:new r.a({uri:t}),appendToken:!0})},getMessageTypes:function(){return c}},i[s.f]=function(e){
Object(a.c)("appStore").dispatch(Object(l.a)({message:e,serverEntityID:this.server.entityID()}))},i));t.a=u},function(e,t,n){"use strict";function i(e){switch(e.type){case r.h:return e.Setting;case r.p:return e.TimelineEntry;case r.n:return e.StatusNotification;case r.i:return e.ProgressNotification;case r.g:return e.PlaySessionStateNotification;case r.o:return e.SyncStateNotification;case r.c:return e.BackgroundGeneratorStateNotification;case r.u:return e.VersionStateNotification;case r.d:
return e.BackgroundProcessingQueueEventNotification;case r.r:case r.s:case r.q:return e.TranscodeSession;case r.t:return e.AutoUpdateNotification;case r.m:return e.ReachabilityNotification;case r.a:return e.AccountUpdateNotification;case r.b:return e.ActivityNotification;case r.e:return e.MediaGrabberDeviceNotification;case r.k:return e.MediaProviderContentNotification;case r.f:return e.LogSentNotification;case r.l:return e.MediaProviderSubscriptionNotification}}function a(e,t){
return(-1===t.indexOf(e.type)?[]:i(e))||[]}var r=n(945);t.a=a},function(e,t,n){"use strict";function i(e){var t=e.dataTransfer.items,n=t[0];return""!==n.type||"file"!==n.kind?C:t.length>1?D:void 0}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(57)),v=n(3),g=n(26),m=n(31),y=n(92),b=n(3134),I=n(3150),S=n(3160),M=n.n(S),D=1,C=2,j=r()(I.a,{}),P=r()(m.a,{}),O=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a))
;return r.onDragOver=function(e){r.setState({isDraggingFile:!0,fileDragError:i(e)}),e.preventDefault()},r.onDragLeave=function(){r.setState({isDraggingFile:!1,fileDragError:null})},r.onDrop=function(e){if(e.preventDefault(),i(e))return void r.setState({isDraggingFile:!1,fileDragError:null});r.setState({isDroppingFile:!0});var t=e.dataTransfer.files[0],n=new window.FileReader;n.onload=function(){r.setState({title:t.name,isDraggingFile:!1,isDroppingFile:!1}),r.props.onDrop({result:n.result})},
n.readAsText(t)},r.state={title:n.title,isDraggingFile:!1,isDroppingFile:!1,fileDragError:null},r}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.metricsPage,n=e.metricsPane,i=this.state,a=i.title,o=i.isDraggingFile,s=i.isDroppingFile,l=i.fileDragError,c=o&&!s&&(l===D&&Object(v.default)("Only one file at a time")||l===C&&Object(v.default)("Only log files are allowed")||Object(v.default)("Load log file"));return r()(y.a,{metricsPage:t,metricsProperties:{pane:n},
scrollDirection:f.NONE,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop},void 0,r()(b.a,{title:a}),j,o?r()("div",{className:M.a.dropFileOverlay},void 0,l?r()(g.a,{className:M.a.icon,name:"plex-icon-circle-backslash-560"}):null,c,s?P:null):null)},t}(h.Component);t.a=O},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.metricsPage,i=e.metricsProperties,a=e.isMetricsDelegated,o=s()(e,["children","metricsPage","metricsProperties","isMetricsDelegated"])
;return u.a.createElement(d.a,r()({},i,{page:n,isDelegated:a}),u.a.createElement(p.a,r()({className:f.a.page},o),t))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(318),p=n(1436),h=n(3133),f=n.n(h);t.a=i},function(e,t){e.exports={page:"Page-page-aq7i_"}},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID;return{onTextFilterChange:function(t){Object(o.a)(function(){e(s.b({serverEntityID:n,filter:t}))})},onTimeFilterChange:function(t,i){
Object(o.a)(function(){e(s.c({serverEntityID:n,timeFilterStart:t,timeFilterEnd:i}))})},onToggleTimeFilter:function(){e(s.l({serverEntityID:n}))},onToggleRaw:function(){e(s.k())},onClearLog:function(){e(s.e({serverEntityID:n}))}}}var a=n(11),r=n(4),o=(n.n(r),n(36)),s=n(465),l=n(3135),c=Object(r.createSelector)(function(e){return e.ui.serverLogPage},function(e){return{filter:e.filter,timeFilterStart:e.timeFilterStart,timeFilterEnd:e.timeFilterEnd,isTimeFilterStartValid:e.isTimeFilterStartValid,
isTimeFilterEndValid:e.isTimeFilterEndValid,showTimeFilter:e.showTimeFilter,showRawText:e.showRawText,logLines:e.logLines,unfilteredLogLinesCount:e.unfilteredLogLinesCount}});t.a=Object(a.connect)(c,i)(l.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(73)),f=n(20),v=n(128),g=n(219),m=n(151),y=n(117),b=n(3),I=n(26),S=n(3140),M=n(3145),D=n(3147),C=n(3149),j=n.n(C),P=a()(h.b,{}),O=a()(h.b,{}),T=a()(S.a,{}),E=a()(I.a,{name:"plex-icon-timer-560"}),w=a()(I.a,{name:"plex-icon-circle-backslash-560"}),A=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.filter,n=e.timeFilterStart,i=e.timeFilterEnd,r=e.isTimeFilterStartValid,o=e.isTimeFilterEndValid,s=e.showTimeFilter,l=e.showRawText,c=e.title,u=e.unfilteredLogLinesCount,d=e.logLines,h=e.onTextFilterChange,I=e.onTimeFilterChange,S=e.onToggleTimeFilter,C=e.onToggleRaw,A=e.onClearLog,x=u-d.length;return a()(p.Fragment,{},void 0,a()(g.a,{},void 0,a()(m.a,{},void 0,c,P,Object(b.default)("Plex Media Server Logs"),x>0?a()("span",{className:j.a.controlsHiddenLinesCount
},void 0,O,Object(b.default)("{hiddenLinesCount} items hidden by filters",{hiddenLinesCount:x})):null),a()(y.a,{},void 0,T,a()(M.a,{filter:t,onTextFilterChange:h}),a()(v.a,{tooltip:Object(b.default)("Time Filter"),isSelected:s,onPress:S},void 0,E),a()(f.a,{className:j.a.rawButton,isSelected:l,onPress:C},void 0,Object(b.default)("Raw")),a()(v.a,{tooltip:Object(b.default)("Clear Logs"),onPress:A},void 0,w))),s?a()(D.a,{timeFilterStart:n,timeFilterEnd:i,isTimeFilterStartValid:r,
isTimeFilterEndValid:o,onTimeFilterChange:I}):null)},t}(p.Component);t.a=A},function(e,t){e.exports={toolbarButton:"ToolbarButton-toolbarButton-2i2nn",bottomLeft:"ToolbarButton-bottomLeft-3shLl Tooltip-bottomLeft-2fPtV Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipLeftAlignArrow-NweCL",
bottomCenter:"ToolbarButton-bottomCenter-1rHc9 Tooltip-bottomCenter-2yj43 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipCenterAlignArrow-35uHt",bottomRight:"ToolbarButton-bottomRight-3evr6 Tooltip-bottomRight-T6_Ik Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipRightAlignArrow-1ETgz"}},function(e,t){e.exports={pageHeader:"PageHeader-pageHeader-14-NY"}},function(e,t){e.exports={
pageHeaderLeft:"PageHeaderLeft-pageHeaderLeft-OxyzP"}},function(e,t){e.exports={pageHeaderRight:"PageHeaderRight-pageHeaderRight-2a8wu"}},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID;return{onResetLogLevels:function(){e(Object(o.i)({serverEntityID:n}))},onToggleLogLevel:function(t){e(Object(o.j)({serverEntityID:n,logLevel:t}))}}}var a=n(11),r=n(4),o=(n.n(r),n(465)),s=n(3141),l=Object(r.createSelector)(function(e){return e.ui.serverLogPage.logLevels},function(e){return{
logLevels:e}});t.a=Object(a.connect)(l,i)(s.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(131)),f=n(56),v=n(284),g=n(47),m=n(52),y=n(3),b=n(3144),I=n(946),S=n(103),M=a()(v.a,{}),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMenuPress=function(){a.setState(function(e){return{isMenuOpen:!e.isMenuOpen}})},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},
a.onAllPress=function(){a.props.onResetLogLevels()},a.onLogLevelSelect=function(e){a.props.onToggleLogLevel(e)},a._buttonID=Object(g.a)(),a.state={isMenuOpen:!1},a}return u()(t,e),t.prototype.render=function(){var e=this,t=this.props.logLevels,n=this.state.isMenuOpen,i=void 0;return i=t.length?1===t.length?Object(I.a)(t[0]):Object(y.default)("Custom"):Object(y.default)("All"),a()(p.Fragment,{},void 0,a()(h.a,{id:this._buttonID,title:i,hasMenu:!0,isMenuOpen:n,onPress:this.onMenuPress}),a()(f.a,{
target:this._buttonID,isOpen:n,size:m.LARGE,onMenuClose:this.onMenuClose},void 0,a()(S.a,{isSelected:!t.length,onPress:this.onAllPress},"all",Object(y.default)("All")),M,b.a.map(function(n,i){return a()(S.a,{value:n,isSelected:-1!==t.indexOf(n),onSelect:e.onLogLevelSelect},i,Object(I.a)(n))})))},t}(p.Component);t.a=D},function(e,t){e.exports={link:"PageHeaderBreadcrumbButton-link-30Jgz",
button:"PageHeaderBreadcrumbButton-button-ZRyx6 DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ"}},function(e,t){e.exports={separator:"MenuSeparator-separator-vr6OL"}},function(e,t,n){"use strict";var i=[4,3,2,1,0];t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(218)),f=n(52),v=n(3),g=n(3146),m=n.n(g),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onTextFilterChange=function(e){a._clearOnTextFilterChangeTimeout(),a.setState({filter:e},function(){a._timeoutID=setTimeout(function(){a._timeoutID=null,a.props.onTextFilterChange(a.state.filter)},200)})},a.state={filter:n.filter,filterFromStore:n.filter},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){return e.filter!==t.filterFromStore?{filter:e.filter,filterFromStore:e.filter}:null},t.prototype.componentWillUnmount=function(){this._clearOnTextFilterChangeTimeout()},
t.prototype._clearOnTextFilterChangeTimeout=function(){this._timeoutID&&clearTimeout(this._timeoutID)},t.prototype.render=function(){var e=this.state.filter;return a()(h.a,{className:m.a.input,size:f.LARGE,name:"filter",initialValue:e,value:e,placeholder:Object(v.default)("Filter logs"),onChange:this.onTextFilterChange})},t}(p.Component);t.a=y},function(e,t){e.exports={input:"ServerLogFilterInput-input-1ueuP TextInput-input-1VMum input-input-1P2Vi"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(218)),f=n(52),v=n(3),g=n(3148),m=n.n(g),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a._flushValues=function(){a._timeoutID=setTimeout(function(){a._timeoutID=null,a.props.onTimeFilterChange(a.state.timeFilterStart,a.state.timeFilterEnd)},200)},a.onFilterStartChange=function(e){a._clearOnTextFilterChangeTimeout(),a.setState({timeFilterStart:e
},a._flushValues)},a.onFilterEndChange=function(e){a._clearOnTextFilterChangeTimeout(),a.setState({timeFilterEnd:e},a._flushValues)},a.state={timeFilterStart:n.timeFilterStart,timeFilterStartFromStore:n.timeFilterStart,timeFilterEnd:n.timeFilterEnd,timeFilterEndFromStore:n.timeFilterEnd},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeFilterStart!==t.timeFilterStartFromStore||e.timeFilterEnd!==t.timeFilterEndFromStore?{timeFilterStart:e.timeFilterStart,
timeFilterStartFromStore:e.timeFilterStart,timeFilterEnd:e.timeFilterEnd,timeFilterEndFromStore:e.timeFilterEnd}:null},t.prototype.componentWillUnmount=function(){this._clearOnTextFilterChangeTimeout()},t.prototype._clearOnTextFilterChangeTimeout=function(){this._timeoutID&&clearTimeout(this._timeoutID)},t.prototype.render=function(){var e=this.props,t=e.isTimeFilterStartValid,n=e.isTimeFilterEndValid,i=this.state,r=i.timeFilterStart,o=i.timeFilterEnd;return a()("div",{className:m.a.container
},void 0,a()(h.a,{className:m.a.input,size:f.LARGE,name:"timeFilterStart",hasError:!t,initialValue:r,value:r,placeholder:"Jun 15, 2018 09:00:00",onChange:this.onFilterStartChange}),a()("span",{className:m.a.separator},void 0,Object(v.default)("to")),a()(h.a,{className:m.a.input,size:f.LARGE,name:"timeFilterEnd",hasError:!n,initialValue:o,value:o,placeholder:"Jun 15, 2018 09:01:00",onChange:this.onFilterEndChange}))},t}(p.Component);t.a=y},function(e,t){e.exports={
container:"ServerLogTimeFilterInputs-container-2cnIR",separator:"ServerLogTimeFilterInputs-separator-6uUbh",input:"ServerLogTimeFilterInputs-input-sLDSi TextInput-input-1VMum input-input-1P2Vi"}},function(e,t){e.exports={controlsHiddenLinesCount:"ServerLogPageHeader-controlsHiddenLinesCount-2RVYn",rawButton:"ServerLogPageHeader-rawButton-b0m7A"}},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID;return{onTextFilterChange:function(){e(o.b.apply(void 0,arguments))},
onTimeFilterChange:function(){e(o.c.apply(void 0,arguments))},onHighlightLine:function(t){e(Object(o.g)(t))},onClearFilter:function(){e(Object(o.d)({serverEntityID:n}))}}}var a=n(11),r=n(4),o=(n.n(r),n(465)),s=n(3151),l=Object(r.createSelector)(function(e){return e.ui.serverLogPage},function(e){return{filter:e.filter,timeFilterStart:e.timeFilterStart,timeFilterEnd:e.timeFilterEnd,logLevels:e.logLevels,showRawText:e.showRawText,logLines:e.logLines}}),c=Object(a.connect)(l,i)(s.a);t.a=c
},function(e,t,n){"use strict";function i(){return{isSticky:!0,scrollIndex:0,scrollIndexAfterFilterChange:null,selectedLogLine:null}}function a(e){return!!(e.filter||e.timeFilterStart||e.timeFilterEnd||e.logLevels.length)}var r=n(2),o=n.n(r),s=n(6),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(20),b=n(216),I=n(3),S=n(392),M=n(3152),D=n(3155),C=n(3158),j=n(3159),P=n.n(j),O=Object(S.a)(26,10,{outerPaddingTop:10,outerPaddingBottom:10}),T=function(e){
function t(n,r){u()(this,t);var o=p()(this,e.call(this,n,r));return o.onScroll=function(){var e=o._scrollerRef.current;e.scrollTop+e.clientHeight>=e.scrollHeight?o.setState({isSticky:!0,scrollIndex:null}):e.scrollTop<o._lastScrollTop&&o.setState({isSticky:!1}),o._lastScrollTop=e.scrollTop},o.onJumpToContext=function(e){a(o.props)?o.setState({isSticky:!1,scrollIndexAfterFilterChange:e,selectedLogLine:null},function(){o.props.onClearFilter()}):o.setState({isSticky:!1,scrollIndex:e,
selectedLogLine:null})},o.onTextFilterChange=function(){var e;o.setState({scrollIndex:0,selectedLogLine:null}),(e=o.props).onTextFilterChange.apply(e,arguments)},o.onTimeFilterChange=function(){var e;o.setState({scrollIndex:0,selectedLogLine:null}),(e=o.props).onTimeFilterChange.apply(e,arguments)},o.onLogLinePress=function(e){o.setState({selectedLogLine:e}),o.props.onHighlightLine(e)},o.onModalClose=function(e){o.setState({selectedLogLine:null})},o.onJumpToLatestPress=function(){o.setState({
isSticky:!0})},o.renderLogLine=function(e){return m.a.createElement(M.a,l()({},e,{onLogLinePress:o.onLogLinePress}))},o.state=i(),o._scrollerRef=m.a.createRef(),o}return f()(t,e),t.getDerivedStateFromProps=function(e,t){return null==t.scrollIndexAfterFilterChange||a(e)?e.showRawText&&(!t.isSticky||t.scrollIndex||t.selectedLogLine)?i():null:{isSticky:!1,scrollIndex:t.scrollIndexAfterFilterChange,scrollIndexAfterFilterChange:null}},t.prototype.render=function(){
var e=this.props,t=e.filter,n=e.timeFilterStart,i=e.timeFilterEnd,a=e.logLevels,r=e.showRawText,s=e.logLines,c=this.state,u=c.isSticky,d=c.scrollIndex,p=c.selectedLogLine,h=!!p,f=h||r;return o()(g.Fragment,{},void 0,r?o()(C.a,{className:P.a.rawTextScroller,filter:t,logLevels:a,lines:s}):null,m.a.createElement(b.a,{className:f?P.a.hiddenPageContent:P.a.pageContent,scrollerClassName:P.a.pageContentScroller,smoothScroll:!1,keyPropName:"index",items:s,size:s.length,layout:O,
cellRenderer:this.renderLogLine,scrollIndex:u?s.length-1:d,ref:this._scrollerRef,onScroll:this.onScroll}),o()(y.a,{className:u?P.a.jumpLinkHidden:P.a.jumpLinkVisible,onPress:this.onJumpToLatestPress},void 0,Object(I.default)("Jump to latest")),h?m.a.createElement(D.a,l()({},p,{filter:t,timeFilterStart:n,timeFilterEnd:i,onJumpToContext:this.onJumpToContext,onTextFilterChange:this.onTextFilterChange,onTimeFilterChange:this.onTimeFilterChange,onClose:this.onModalClose})):null)},t}(g.Component)
;t.a=T},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.serverLogPage.highlightedLineIndex},function(e,t){return t.index},function(e,t){return{isHighlighted:e===t}})}var a=n(11),r=n(4),o=(n.n(r),n(3153));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){"use strict";function i(e){return[m.a.levelError,m.a.levelWarning,m.a.levelInfo,m.a.levelDebug,m.a.levelVerbose][e]||m.a.levelUnknown}
var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(20)),v=n(91),g=n(3154),m=n.n(g),y=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){i.props.onLogLinePress({index:i.props.index,time:i.props.time,thread:i.props.thread,level:i.props.level,message:i.props.message})},a=n,c()(i,a)}return d()(t,e),
t.prototype.render=function(){var e=this.props,t=e.index,n=e.level,a=e.message,o=e.thread,s=e.time,l=e.isHighlighted,c=e.cellX,u=e.cellY,d=e.cellWidth,p=e.cellHeight,h=i(n);return r()(v.a,{cellX:c,cellY:u,cellWidth:d,cellHeight:p},void 0,r()(f.a,{className:(h||"")+" "+(l&&m.a.isHighlighted||""||""),tabIndex:t,onPress:this.onPress},void 0,r()("span",{className:m.a.fieldTime},void 0,s),r()("span",{className:m.a.fieldThread},void 0,"[",o,"]"),r()("span",{className:m.a.fieldMessage},void 0,a)))},t
}(h.Component);t.a=y},function(e,t){e.exports={line:"ServerLogLine-line-2WtKz",field:"ServerLogLine-field-madfJ",fieldTime:"ServerLogLine-fieldTime-17Mvx ServerLogLine-field-madfJ",fieldThread:"ServerLogLine-fieldThread-3Pag7 ServerLogLine-field-madfJ",fieldMessage:"ServerLogLine-fieldMessage-37X1l ServerLogLine-field-madfJ",levelError:"ServerLogLine-levelError-bOQc8 ServerLogLine-line-2WtKz",levelWarning:"ServerLogLine-levelWarning-1Fzth ServerLogLine-line-2WtKz",
levelInfo:"ServerLogLine-levelInfo-K81rV ServerLogLine-line-2WtKz",levelDebug:"ServerLogLine-levelDebug-mz-F9 ServerLogLine-line-2WtKz",levelVerbose:"ServerLogLine-levelVerbose-1mA-C ServerLogLine-line-2WtKz",levelUnknown:"ServerLogLine-levelUnknown-vHwX- ServerLogLine-line-2WtKz",isHighlighted:"ServerLogLine-isHighlighted-2uX6-"}},function(e,t,n){"use strict";function i(e){
return[A.a.containerError,A.a.containerWarning,A.a.containerInfo,A.a.containerDebug,A.a.containerVerbose][e]||A.a.containerUnknown}function a(e){return[A.a.levelError,A.a.levelWarning,A.a.levelInfo][e]}var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(438)),g=n(80),m=n(42),y=n(20),b=n(56),I=n(112),S=n(47),M=n(233),D=n(52),C=n(373),j=n(3),P=n(26),O=n(946),T=n(24),E=n(3156),w=n(3157),A=n.n(w),x=o()(P.a,{name:"plex-icon-remove-560"
}),N=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onClosePress=function(e){a.props.onClose()},a.onShowContextPress=function(e){a.props.onJumpToContext(Math.max(a.props.index-10,0))},a.onFilterFromPress=function(){a.props.onTimeFilterChange({timeFilterStart:a.props.time,timeFilterEnd:a.props.timeFilterEnd})},a.onFilterToPress=function(){a.props.onTimeFilterChange({timeFilterStart:a.props.timeFilterStart,timeFilterEnd:a.props.time})},a.onThreadPress=function(){
a.props.onTextFilterChange({filter:Object(E.a)(a.props.filter,a.props.thread)})},a.onTimeMenuPress=function(){a.setState({isTimeMenuOpen:!a.state.isTimeMenuOpen})},a.onTimeMenuClose=function(){a.setState({isTimeMenuOpen:!1})},a.onKeyDown=function(e){e.keyCode===C.e&&(e.preventDefault(),e.stopPropagation(),a.props.onClose())},a._timeMenuButtonID=Object(S.a)(),a.state={isTimeMenuOpen:!1},a}return p()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.onKeyDown)
},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.onKeyDown)},t.prototype.render=function(){var e=this.props,t=e.level,n=e.time,r=e.thread,s=e.message,l=this.state.isTimeMenuOpen;return o()(g.a,{className:i(t),autoScroll:!0},void 0,o()(y.a,{className:A.a.closeButton,"aria-label":Object(j.default)("Close"),onPress:this.onClosePress},void 0,x),o()("p",{},void 0,o()("span",{className:A.a.label},void 0,Object(j.default)("Time")),o()(y.a,{kind:T.b.PRIMARY,
id:this._timeMenuButtonID,onPress:this.onTimeMenuPress},void 0,n,o()(v.a,{kind:T.b.PRIMARY,direction:l?M.UP:M.DOWN})),o()(b.a,{size:D.LARGE,isOpen:l,target:this._timeMenuButtonID,onMenuClose:this.onTimeMenuClose},void 0,o()(I.a,{onPress:this.onFilterFromPress},void 0,Object(j.default)("Filter from this time")),o()(I.a,{onPress:this.onFilterToPress},void 0,Object(j.default)("Filter to this time")))),o()("p",{},void 0,o()("span",{className:A.a.label},void 0,Object(j.default)("Level")),o()("span",{
className:a(t)},void 0,Object(O.a)(t))),o()("p",{},void 0,o()("span",{className:A.a.label},void 0,Object(j.default)("Thread")),o()(y.a,{kind:T.b.PRIMARY,onPress:this.onThreadPress},void 0,r)),o()("p",{},void 0,o()("span",{className:A.a.label},void 0,Object(j.default)("Message")),s),o()("div",{className:A.a.action},void 0,o()(m.a,{onPress:this.onShowContextPress},void 0,Object(j.default)("Clear Filters and Jump to Context"))))},t}(f.Component);t.a=N},function(e,t,n){"use strict";function i(e,t){
var n=e.replace(new RegExp("\\s?"+Object(a.a)(t)),"").trim();return n.length?t+" "+n:t}var a=n(231);t.a=i},function(e,t){e.exports={container:"ServerLogLineModal-container-36025",containerWithTimeFilter:"ServerLogLineModal-containerWithTimeFilter-HpbS0",closeButton:"ServerLogLineModal-closeButton-33oO- Link-link-2n0yJ",action:"ServerLogLineModal-action-3YbmG",label:"ServerLogLineModal-label-11MSO",containerError:"ServerLogLineModal-containerError-BFsDK ServerLogLineModal-container-36025",
containerWarning:"ServerLogLineModal-containerWarning-1L6UQ ServerLogLineModal-container-36025",containerInfo:"ServerLogLineModal-containerInfo-1xSNj ServerLogLineModal-container-36025",containerDebug:"ServerLogLineModal-containerDebug-1_0AQ ServerLogLineModal-container-36025",containerVerbose:"ServerLogLineModal-containerVerbose-3MAAh ServerLogLineModal-container-36025",containerUnknown:"ServerLogLineModal-containerUnknown-3YTiL ServerLogLineModal-container-36025",
levelError:"ServerLogLineModal-levelError-ATM6v",levelWarning:"ServerLogLineModal-levelWarning-3o-hU",levelInfo:"ServerLogLineModal-levelInfo-GC9mt"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(80)),f=n(946),v=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e){
return e.filter!==this.props.filter||e.logLevels!==this.props.logLevels},t.prototype.render=function(){var e=this.props,t=e.className,n=e.lines;return a()(h.a,{className:t},void 0,a()("pre",{},void 0,n.reduce(function(e,t){return e+=t.time+" ["+t.thread+"] "+Object(f.a)(t.level)+" \u2014 "+t.message+"\n"},"")))},t}(p.Component);t.a=v},function(e,t){e.exports={pageContent:"ServerLog-pageContent-3VPW5 PageContent-pageContent-16mK6",hiddenPageContent:"ServerLog-hiddenPageContent-2lLY7",
pageContentScroller:"ServerLog-pageContentScroller-1gN08",rawTextScroller:"ServerLog-rawTextScroller-bQAXS",jumpLinkVisible:"ServerLog-jumpLinkVisible-3DIQ4 Link-link-2n0yJ",jumpLinkHidden:"ServerLog-jumpLinkHidden-1de4Q ServerLog-jumpLinkVisible-3DIQ4 Link-link-2n0yJ"}},function(e,t){e.exports={dropFileOverlay:"ServerLogPage-dropFileOverlay-30ow0",icon:"ServerLogPage-icon-3tZH8"}},function(e,t,n){"use strict";function i(){
return Object(y.createSelector)(Object(M.a)(D.h),Object(S.a)(),Object(I.a)("/diagnostics/databases"),Object(I.a)("/diagnostics/logs"),b.a(),b.c(),function(e,t,n,i,a,r){var o=t.diagnostics;return{machineIdentifier:t.machineIdentifier,downloadDatabasesUrl:n,downloadLogsUrl:i,cleanBundlesError:t.pmp.cleanBundlesError,optimizeDatabaseError:t.pmp.optimizeDatabaseError,isCleanBundlesInProgress:!!a,isOptimizeDatabaseInProgress:!!r,showDownloadDatabases:!(!n||!o||-1===o.indexOf("databases")),
showDownloadLogs:!(!i||!o||-1===o.indexOf("logs"))}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(695)),I=n(3162),S=n(35),M=n(256),D=n(79),C=n(202),j=n(3164),P={dispatchCleanBundles:C.d,dispatchOptimizeDatabase:C.j},O=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),
i.onCleanBundlesPress=function(){i.props.dispatchCleanBundles({serverEntityID:i.props.serverEntityID,hideAlerts:!0})},i.onOptimizeDatabasePress=function(){i.props.dispatchOptimizeDatabase({serverEntityID:i.props.serverEntityID,hideAlerts:!0})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchCleanBundles,e.dispatchOptimizeDatabase,s()(e,["dispatchCleanBundles","dispatchOptimizeDatabase"]));return g.a.createElement(j.a,r()({
onCleanBundlesPress:this.onCleanBundlesPress,onOptimizeDatabasePress:this.onOptimizeDatabasePress},t))},t}(v.Component);t.a=Object(m.connect)(i,P)(O)},function(e,t,n){"use strict";function i(e){return Object(a.createSelector)(Object(o.a)(),function(t){if(!t||!t.activeConnection)return null;var n=t.activeConnection.uri,i=t.accessToken?{"X-Plex-Token":t.accessToken}:{};return r.join([n,e],i)})}t.a=i;var a=n(4),r=(n.n(a),n(18)),o=n(35)},function(e,t,n){"use strict";function i(e,t,n){
return e.reduce(function(e,i){return e[t(i)]=n(i),e},{})}t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(20),v=n(930),g=n(51),m=n(3),y=n(26),b=n(187),I=n(197),S=n(3165),M=n.n(S),D=a()(y.a,{name:"plex-icon-selected-560"}),C=a()(y.a,{name:"plex-icon-remove-560"}),j=a()(y.a,{name:"plex-icon-selected-560"}),P=a()(y.a,{name:"plex-icon-remove-560"}),O=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.state={isCleanBundlesInProgress:!1,isOptimizeDatabaseInProgress:!1,isCleanBundlesComplete:!1,isOptimizeDatabaseComplete:!1},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.isCleanBundlesInProgress!==t.isCleanBundlesInProgress,i=e.isOptimizeDatabaseInProgress!==t.isOptimizeDatabaseInProgress;if(!n&&!i)return null;var a={};return n&&(a.isCleanBundlesInProgress=e.isCleanBundlesInProgress,
a.isCleanBundlesComplete=t.isCleanBundlesInProgress&&!e.isCleanBundlesInProgress),i&&(a.isOptimizeDatabaseInProgress=e.isOptimizeDatabaseInProgress,a.isOptimizeDatabaseComplete=t.isOptimizeDatabaseInProgress&&!e.isOptimizeDatabaseInProgress),a},t.prototype.render=function(){
var e=this.props,t=e.machineIdentifier,n=e.downloadDatabasesUrl,i=e.downloadLogsUrl,r=e.cleanBundlesError,o=e.optimizeDatabaseError,s=e.isCleanBundlesInProgress,l=e.isOptimizeDatabaseInProgress,c=e.showDownloadDatabases,u=e.showDownloadLogs,d=e.onCleanBundlesPress,p=e.onOptimizeDatabasePress,y=this.state,S=y.isCleanBundlesComplete,O=y.isOptimizeDatabaseComplete;return a()("div",{},void 0,a()("div",{className:M.a.troubleshootingSection},void 0,a()("div",{className:M.a.buttonContainer
},void 0,a()(v.a,{className:M.a.button,isSpinning:l,onPress:p},void 0,Object(m.default)("Optimize Database")),O&&!o&&a()("div",{className:M.a.buttonStatusSuccess},void 0,D,a()("div",{className:M.a.textStatus},void 0,Object(m.default)("Optimize database complete"))),O&&o&&a()("div",{className:M.a.buttonStatusError},void 0,C,a()("div",{className:M.a.textStatus},void 0,o))),a()("div",{className:M.a.description
},void 0,Object(m.default)("Cleans up the library database and ensures it is operating as quickly as possible. This is especially useful when you've added or removed a large amount of media from the library."))),a()("div",{className:M.a.troubleshootingSection},void 0,a()("div",{className:M.a.buttonContainer},void 0,a()(v.a,{className:M.a.button,isSpinning:s,onPress:d},void 0,Object(m.default)("Clean Bundles")),S&&!r&&a()("div",{className:M.a.buttonStatusSuccess
},void 0,j,a()("div",{},void 0,Object(m.default)("Bundles cleaned"))),S&&r&&a()("div",{className:M.a.buttonStatusError},void 0,P,a()("div",{},void 0,r))),a()("div",{className:M.a.description},void 0,a()(b.a,{className:M.a.description,
message:Object(m.default)('Poster images and other metadata for items in your library are kept in "bundle" packages. When you remove items from your library, these bundles aren\u2019t immediately removed. Removing them can reduce the size of your install. By default, your server will automatically clean up old bundles once a week as part of {openScheduledTass}Scheduled Tasks{closeScheduledTass}.'),tags:[{open:"openScheduledTass",close:"closeScheduledTass",component:f.a,kind:g.PRIMARY,
to:Object(I.a)(t,"settings","butler")}]}))),(u||c)&&a()("div",{className:M.a.troubleshootingSection},void 0,a()("div",{className:M.a.buttonContainer},void 0,u&&a()(h.a,{className:M.a.button,to:i,target:"_blank"},void 0,Object(m.default)("Download Logs")),c&&a()(h.a,{className:M.a.button,to:n,target:"_blank"},void 0,Object(m.default)("Download Database"))),a()("div",{className:M.a.description
},void 0,Object(m.default)("The Plex Media Server logs and database can be helpful to developers and forum community members in diagnosing server issues."))),a()("div",{className:M.a.description},void 0,a()(b.a,{className:M.a.description,message:Object(m.default)("You can find additional documentation, guides and FAQs as well as our friendly Community Forums among our {openSupportLink}support resources{closeSupportLink}."),tags:[{open:"openSupportLink",close:"closeSupportLink",component:f.a,
kind:g.PRIMARY,to:"https://support.plex.tv",target:"_blank"}]})))},t}(p.Component);t.a=O},function(e,t){e.exports={troubleshootingSection:"ServerTroubleshootingPane-troubleshootingSection-2sPDn",buttonContainer:"ServerTroubleshootingPane-buttonContainer-32mhY",buttonStatus:"ServerTroubleshootingPane-buttonStatus-_ZS1z",buttonStatusSuccess:"ServerTroubleshootingPane-buttonStatusSuccess-12Jbj ServerTroubleshootingPane-buttonStatus-_ZS1z",
buttonStatusError:"ServerTroubleshootingPane-buttonStatusError-1Kyp1 ServerTroubleshootingPane-buttonStatus-_ZS1z",button:"ServerTroubleshootingPane-button-Av642",description:"ServerTroubleshootingPane-description-2JlKL"}},function(e,t,n){"use strict";function i(e){return e.isActive?c:null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=r()(l.a,{name:"plex-icon-status-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.remoteAccessState,n=p[t]
;return n?s.a.createElement(c.a,n):null}var a,r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(620),c=n(26),u=n(3168),d=n.n(u),p=(a={},a[l.d]={className:d.a.unknown,name:"glyphicon circle-question-mark"},a[l.e]={className:d.a.unknown,name:"glyphicon circle-question-mark"},a[l.h]={className:d.a.error,name:"glyphicon circle-exclamation-mark"},a[l.f]={className:d.a.ok,name:"glyphicon circle-ok"},a);t.a=i},function(e,t){e.exports={unknown:"RemoteAccessStateIcon-unknown-2v9yM",
error:"RemoteAccessStateIcon-error-1HDvq",ok:"RemoteAccessStateIcon-ok-2eQXX"}},function(e,t,n){"use strict";function i(e){return e.isClaimed?null:r()(l.a,{className:u.a.icon,name:"plex-icon-alert-560"})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=n(3170),u=n.n(c);t.a=i},function(e,t){e.exports={icon:"ServerIsClaimedIcon-icon-dQsVa"}},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.viewDataErrorMessage,i=e.isViewDataPending,a=e.isInstallingServerUpdate,o=e.isUnavailable,l=e.isUnauthorized,u=e.isHostedHttps,d=e.hasHttpsConnections,m=e.isSettingAccessible,y=e.isSettingsPending,I=e.friendlyName,E=e.settingsSection,w=e.settingsGroup,A=e.pageComponent,x=e.paneComponent,N=e.contentView,L=c()(e,["serverEntityID","viewDataErrorMessage","isViewDataPending","isInstallingServerUpdate","isUnavailable","isUnauthorized","isHostedHttps","hasHttpsConnections","isSettingAccessible","isSettingsPending","friendlyName","settingsSection","settingsGroup","pageComponent","paneComponent","contentView"])
;return a?s()(D.a,{friendlyName:I}):i?P:o?u&&!d?s()(M.a,{serverEntityID:e.serverEntityID}):s()(b.a,{friendlyName:I}):l?O:n?s()(S.a,{title:n}):m?A?p.a.createElement(A,r()({serverEntityID:t},Object(h.a)(E,w))):p.a.createElement(j.a,Object(h.a)(E,w),s()(C.a,{serverEntityID:t,settingsSection:E,settingsGroup:w}),x?s()(x,{serverEntityID:t}):s()(g.a,{view:N||v.a,viewOptions:L})):y?T:s()(S.a,{title:Object(f.default)("There was an unexpected error loading the settings")})}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(3172),f=n(3),v=n(3173),g=n(697),m=n(31),y=n(953),b=n(954),I=n(85),S=n(127),M=n(955),D=n(956),C=n(3256),j=n(259),P=s()(I.a,{},void 0,s()(m.a,{})),O=s()(y.a,{}),T=s()(I.a,{},void 0,s()(m.a,{}));t.a=i},function(e,t,n){"use strict";function i(e,t){var n=r.a.findWhere(o.a,{key:e}),i=r.a.findWhere(n.groups,{key:t});return i.metricsPage?{metricsPage:i.metricsPage,metricsPane:i.metricsPane}:{
metricsPage:n.metricsPage,metricsPane:n.metricsPanePrefix+i.key}}t.a=i;var a=n(10),r=n.n(a),o=n(680)},function(e,t,n){"use strict";function i(e){if(!e.hasOwnProperty("isVisible"))return null;var t=e.isVisible;if(c.a.isFunction(t)){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t.apply(void 0,i)}return t}
var a=n(87),r=n(13),o=n.n(r),s=n(22),l=n(10),c=n.n(l),u=n(19),d=n(18),p=n(16),h=n(43),f=n(182),v=n(3174),g=n(3185),m=n(3187),y=n(3215),b=n(466),I=n(3216),S=n(3218),M=n(3253),D=n.n(M),C=s.a.Layout.extend({className:"server-settings-container",template:D.a,remoteAccessDecorators:{connecting:"unknown",disconnecting:"unknown",unreachable:"error",ok:"success"},regions:{serverDropdown:".filter-bar",nav:".nav-region",pane:".pane-region"},events:{"click .toggle-advanced-btn":"onToggleAdvancedClick"},
panes:{general:{constructor:m.a,group:"general",title:"General",isVisible:!0},remoteAccess:{constructor:I.a,group:"remoteAccess",title:"Remote Access",isVisible:function(e){return!e.get("isPersonalCloudServer")}},versions:{constructor:S.a,group:"versions",title:"Optimized Versions",isVisible:function(e){return!e.get("isPersonalCloudServer")}},agents:{constructor:v.a,group:"agents",title:"Agents",isVisible:!0},library:{constructor:b.a,group:"library",title:"Library"},channels:{constructor:g.a,
group:"channels",title:"Plugins",isVisible:!0},network:{constructor:b.a,group:"network",title:"Network"},transcoder:{constructor:b.a,group:"transcoder",title:"Transcoder"},languages:{constructor:y.a,group:"account.language",title:"Languages",isVisible:!0},dlna:{constructor:b.a,group:"dlna",title:"DLNA"},butler:{constructor:b.a,group:"butler",title:"Scheduled Tasks"},extras:{constructor:b.a,group:"extras",title:"Extras"}},initialize:function(e){this.defaultGroup=e.group||"general",
this.account=e.account,this.cloudAccount=e.cloudAccount,this.channelSettings=e.channelSettings,this.tempSettings=this.collection.cloneDeep(),this.tempAccount=this.account.clone(),this.tempChannelSettings=this.channelSettings.cloneDeep(),this.changes={};var t=Object(p.c)("appModel"),n=t.get("experienceSettings"),i=n.get("showAdvancedSettings");if(this.$el.toggleClass("show-advanced",i),this.initGroups(),this.model.supports("reachability")){
var a=c.a.extend(this.model.getXHROptions("/myplex/refreshReachability"),{type:"PUT"});o.a.ajax(a)}this.listenTo(u.a,"shortcut:save",this.saveChanges),this.listenTo(this.collection,"change:value",this.onSettingValueChange)},initGroups:function(){var e=this,t=c.a.keys(this.panes),n=c.a.unique(this.collection.filter(function(e){return e.get("group")&&!e.get("hidden")}).map(function(e){return e.get("group")}));this.groups=new a.c.Collection,t.forEach(function(t){
var a=e.panes[t],r=i(a,e.model,e.tempSettings);(!0===r||!1!==r&&c.a.contains(n,t))&&e.addGroup(t,a)}),c.a.each(n,function(e){if(!c.a.contains(t,e)){var n={constructor:b.a,group:e,title:e};this.panes[e]=n,this.addGroup(e,n)}},this)},addGroup:function(e,t){var n=c.a.omit(t,"constructor");n.id=e,this.groups.add(n)},showPane:function(e){if(this.currentPane){if(this.currentPane.isActive)return this.currentPane;this.stopListening(this.currentPane),this.flushChanges()}var t=this.panes[e]
;if(!t||!this.groups.get(e))return void Object(f.a)("serverSettings",{serverID:this.model.id,group:"general"});var n=t.constructor,i=new n({model:this.model,collection:this.tempSettings,account:this.tempAccount,cloudAccount:this.cloudAccount,channelSettings:this.tempChannelSettings,group:t.group,changes:this.changes});return this.currentPane=i,this.pane.show(i),this.listenTo(this.currentPane,"save",this.saveChanges),i},flushChanges:function(){
this.currentPane.changes&&c.a.extend(this.changes,this.currentPane.changes)},saveChanges:function(){if(this.flushChanges(),!this.currentPane.isDisabled&&!this.currentPane.isActive){this.currentPane.triggerMethod("before:save");var e=[],t=this.getPrefixedChanges("channel."),n=this.getPrefixedChanges("account.");if(!c.a.isEmpty(t)){var i=this.channelSettings.first().getSaveParams(t),a=c.a.result(this.channelSettings,"url"),r=d.join([a,"/set"],i);e.push(o.a.ajax(this.model.getXHROptions(r)))}
c.a.isEmpty(n)||e.push(this.account.save(n)),c.a.isEmpty(this.changes)||e.push(this.collection.first().save(this.changes));var s=o.a.when.apply(o.a,e);s.done(c.a.bind(function(){var e=c.a.keys(this.changes);c.a.each(e,function(e){var t=this.tempSettings.get(e);this.collection.get(e).set("value",t.get("value")),"ButlerUpdateChannel"===e&&this.onButlerUpdateChannelChange()},this),this.changes={},this.currentPane&&(this.currentPane.changes&&(this.currentPane.changes={}),
this.currentPane.triggerMethod("after:save",!0))},this)),s.fail(c.a.bind(function(){this.currentPane&&this.currentPane.triggerMethod("after:save",!1)},this))}},getPrefixedChanges:function(e){var t={};return c.a.each(this.changes,function(n,i){0===i.lastIndexOf(e,0)&&(t[i.substring(e.length)]=n,delete this.changes[i])},this),t},onRender:function(){this.showPane(this.defaultGroup)},onClose:function(){this.currentPane=null},onSettingValueChange:function(e,t){
this.tempSettings.get(e.id).set("value",t)},onServerConnectedChange:function(e,t){if(t){this.stopListening(e,"change:connected",this.onServerConnectedChange);Object(p.c)("appModel").set("primaryServer",e)}},onToggleAdvancedClick:function(e){e.preventDefault();var t=this.$el.hasClass("show-advanced"),n=Object(p.c)("appModel").get("experienceSettings");this.$el.toggleClass("show-advanced",!t),n.save("showAdvancedSettings",!t)},onButlerUpdateChannelChange:function(){
var e=this.collection.get("ButlerTaskCheckForUpdates");e&&e.get("value")&&h.a.execute("checkForServerUpdates",{server:this.model,download:!1})}});t.a=C},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(27),c=n(693),u=n(3175),d=n(3178),p=n(3184),h=n.n(p),f=r.a.Layout.extend({template:h.a,ui:{agentLabel:".agent-label",typeNavItems:".agent-types-nav li",agentNavItems:".agents-nav li"},regions:{agentsList:".agents-list-container",
contributorsList:".contributors-list-container"},events:{"click .agent-types-nav a":"onAgentTypeClick","click .agents-nav a":"onAgentClick"},initialize:function(){this.bindAllWhenRendered("onAgentsReset","onContributorsReset"),this.agentTypes=[],this.agentTypes.push(Object(l.r)(l.f)),this.agentTypes.push(Object(l.r)(l.k)),this.agentTypes.push(Object(l.r)(l.b)),this.agentTypes.push(Object(l.r)(l.a)),this.agentTypes.push(Object(l.r)(l.g)),this.currentType=s.a.first(this.agentTypes),
this.populateAgents()},serializeData:function(){return{currentType:this.currentType,agentTypes:this.agentTypes}},populateAgents:function(){this.agents=new c.a([],{server:this.model,mediaTypeID:this.currentType.id}),this.agents.populate({reset:!0,scope:"page"}).done(s.a.bind(this.onAgentsReset,this))},selectAgent:function(e){this.currentAgent&&this.currentAgent.set("selected",!1),this.currentAgent=e,e.set("selected",!0),this.ui.agentLabel.text(e.get("name")),this.additionalAgents=new c.a([],{
server:this.model,mediaTypeID:this.currentType.id,relatedAgentID:e.id}),this.contributors=new c.a([],{server:this.model,mediaTypeID:this.currentType.id,primaryAgentID:e.id}),this.contributorsList.show(new d.a({collection:this.contributors})),this.listenTo(this.contributorsList.currentView,"save",this.onContributorsSave),this.populateContributors()},populateContributors:function(){var e=[];e.push(this.additionalAgents.populate({reset:!0,scope:"page"})),e.push(this.contributors.populate({reset:!0,
scope:"page"})),a.a.when.apply(a.a,e).done(s.a.bind(this.onContributorsReset,this))},onAgentsReset:function(){if(this.agentsList.show(new u.a({collection:this.agents})),this.agents.length){var e=this.agents.findWhere({selected:!0})||this.agents.first();this.selectAgent(e)}},onContributorsReset:function(){var e=s.a.bind(function(e){return e.id===this.currentAgent.id?(e.set("isPrimary",!0),!0):!!this.contributors.get(e.id)},this);this.contributors.reset(this.additionalAgents.filter(e))},
onAgentTypeClick:function(e){e.preventDefault();var t=a()(e.currentTarget),n=t.data("type");this.currentType=Object(l.r)(n),this.populateAgents(),this.ui.typeNavItems.removeClass("active"),t.parent("li").addClass("active")},onAgentClick:function(e){e.preventDefault();var t=a()(e.target),n=t.data("identifier"),i=this.agents.get(n);i&&this.selectAgent(i)},onContributorsSave:function(e){this.currentAgent.url="system/agents/"+this.currentAgent.id+"/config/"+this.currentType.id,
this.currentAgent.save({order:e}).done(s.a.bind(function(){this.additionalAgents.fetch({silent:!0}),this.contributors.fetch({silent:!0})},this))}});t.a=f},function(e,t,n){"use strict";var i=n(97),a=n(3176),r=i.a.extend({tagName:"ul",className:"agents-nav nav nav-pills nav-pills-sm",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(3177),r=n.n(a),o=i.a.ItemView.extend({tagName:"li",template:r.a,bindings:{a:{modelAttribute:"selected",manual:!0,formatter:function(e){
this.$el.toggleClass("active",!!e)}}}});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<a class="btn-gray" data-identifier="',(o=n.identifier)?r=o.call(t,{hash:{},data:a}):(o=t&&t.identifier,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+'" href="#">',(o=n.name)?r=o.call(t,{hash:{},data:a}):(o=t&&t.name,
r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+"</a> "})},function(e,t,n){"use strict";var i=n(633),a=n.n(i),r=n(97),o=n(3179),s=r.a.extend({tagName:"ul",className:"list contributor-list",itemView:o.a,events:{"change input[type=checkbox]":"save",update:"save"},save:function(){var e=[];this.$(":checked").each(function(t){e.push(this.name)}),this.trigger("save",e.join(","))},onRender:function(){this.sortable=new a.a(this.$el[0],{draggable:".card-sortable",animation:200})},
onClose:function(){this.sortable.destroy()}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(19),s=n(362),l=n(3180),c=n(948),u=n(3183),d=n.n(u),p=i.a.ItemView.extend({tagName:"li",className:"card card-sortable",template:d.a,events:{"change input[type=checkbox]":"onEnabledChange","click .settings-btn":"onSettingsClick","click .info-btn":"onInfoClick"},initialize:function(){this.attribution=this.model.get("attribution"),this.attribution.fetch()},bindings:{".info-btn":{
model:"attribution",modelAttribute:"content",manual:!0,autohide:!0},".settings-btn":{modelAttribute:"hasPrefs",manual:!0,autohide:!0}},onEnabledChange:function(e){this.model.set("enabled",e.target.checked)},onSettingsClick:function(e){e.preventDefault();var t=new s.a([],{server:this.model.server,url:"/:/plugins/"+this.model.id+"/prefs"});t.fetch().done(r.a.bind(function(){o.a.trigger("show:modal",new c.a({model:this.model,collection:t}))},this))},onInfoClick:function(e){e.preventDefault(),
o.a.trigger("show:modal",new l.a({model:this.model}))}});t.a=p},function(e,t,n){"use strict";var i=n(431),a=n(96),r=n(3181),o=n.n(r),s=a.a.extend({name:"agentInfoModal",className:"agent-info-modal modal fade",template:o.a,regions:{icon:".agent-icon-container"},serializeData:function(){return{agent:this.model.toJSON(),attribution:this.model.get("attribution").get("content")}},onRender:function(){a.a.prototype.onRender.apply(this,arguments),this.icon.show(new i.a({model:this.model,
url:"/system/agents/attribution/image?identifier="+this.model.id,className:"agent-icon",width:100,height:100}))}});t.a=s},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s=""
;return s+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-info"></i> '+(0,this.escapeExpression)((r=t&&t.agent,r=null==r||!1===r?r:r.name,"function"==typeof r?r.apply(t):r))+' </h4> </div> <div class="modal-body"> <p class="agent-icon-container"></p> <p>',(o=n.attribution)?r=o.call(t,{hash:{},data:a
}):(o=t&&t.attribution,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),(r||0===r)&&(s+=r),s+="</p> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+p(i(n(5)).call(e,"Directory Settings",{hash:{},data:t}))+" "}function l(e,t){var a="";return a+=" "+p(i(n(5)).call(e,"{1} Settings",e&&e.title,{hash:{},data:t}))+" "}function c(e,t){var a=""
;return a+=" "+p(i(n(29)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p=this.escapeExpression,h=this;return d+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon cogwheel"></i> ',
u=i(n(34)).call(t,t&&t.title,"Preferences...",{hash:{},inverse:h.program(3,l,o),fn:h.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+=' </h4> </div> <form id="channel-settings-form"> <div class="modal-body settings-container"> ',u=a.each.call(t,t&&t.settings,{hash:{},inverse:h.noop,fn:h.program(5,c,o),data:o}),(u||0===u)&&(d+=u),d+=' </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+p(i(n(5)).call(t,"Cancel",{hash:{},data:o
}))+'</button> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(5)).call(t,"Save",{hash:{},data:o}))+"</span> </button> </div> </form> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"checked"}function l(e,t){return"disabled"}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return u+='<div class="card-actions"> <button class="info-btn card-action-btn"><i class="glyphicon circle-info"></i></button> <button class="settings-btn card-action-btn"><i class="glyphicon cogwheel"></i></button> </div> <div class="card-handle"><i class="glyphicon show-lines"></i></div> <label for="'+d((c=t&&t.identifier,"function"==typeof c?c.apply(t):c))+'"> <input id="'+d((c=t&&t.identifier,
"function"==typeof c?c.apply(t):c))+'" name="'+d((c=t&&t.identifier,"function"==typeof c?c.apply(t):c))+'" type="checkbox" ',c=a.if.call(t,t&&t.enabled,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=" ",c=a.if.call(t,t&&t.isPrimary,{hash:{},inverse:p.noop,fn:p.program(3,l,o),data:o}),(c||0===c)&&(u+=c),u+="> "+d(i(n(5)).call(t,t&&t.name,{hash:{},data:o}))+" </label> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t,a){var r,o="";return o+=' <li class="',r=i(n(34)).call(e,(r=a&&a.currentType,null==r||!1===r?r:r.id),e&&e.id,{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+='"> <a class="btn-gray" data-type="'+h((r=e&&e.typeString,typeof r===p?r.apply(e):r))+'" href="#">'+h(i(n(5)).call(e,e&&e.plural,{hash:{},data:t}))+"</a> </li> "}function l(e,t){return"active"}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this,p="function",h=this.escapeExpression;return u+='<ul class="agent-types-nav nav nav-pills"> ',c=a.each.call(t,t&&t.agentTypes,{hash:{},inverse:d.noop,fn:d.programWithDepth(1,s,o,t),data:o}),(c||0===c)&&(u+=c),
u+=' </ul> <div class="agents-list-container"></div> <p class="help-block sortable-help-block">'+h(i(n(5)).call(t,"Select which additional agents should contribute to metadata from {1}, and drag them to change the order of preference.",'<span class="agent-label"></span>',{hash:{},data:o}))+'</p> <div class="contributors-list-container"></div> '})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(466),o=r.a.extend({prefix:"channel.",serializeData:function(){
var e=r.a.prototype.serializeData.apply(this,arguments),t=this.options.channelSettings.toJSON();return a.a.each(t,function(e){e.id=this.prefix+e.id},this),e.unshift.apply(e,t),e},updateModel:function(e,t){var n=r.a.prototype.updateModel.apply(this,arguments);if(n)return n;var i=e.replace(this.prefix,""),a=this.options.channelSettings.get(i);return a?a.set("value",t):void 0}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+u(i(n(29)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this;return c+='<form id="server-settings-form"> ',l=a.each.call(t,t,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),
c+=' <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+u(i(n(5)).call(t,"Save Changes",{hash:{},data:o}))+'</span> </button> <span class="form-message"></span> </div> </form> '})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(3),o=n(3188),s=n(466),l=n(3210),c=n(3214),u=n.n(c),d=s.a.extend({template:u.a,regions:{signIn:".sign-in-region",update:".update-region"},
serializeData:function(){var e=s.a.prototype.serializeData.apply(this,arguments),t=a.a.findWhere(e,{id:"FriendlyName"});return t&&(t.placeholder=this.model.get("friendlyName")),e},bindings:{".version":{modelAttribute:"shortVersion",formatter:function(e){return Object(r.default)("Version {1}",e)}}},onRender:function(){s.a.prototype.onRender.apply(this,arguments),this.signIn.show(new o.a({model:this.model})),this.model.get("updater")&&this.update.show(new l.a({
model:this.model.get("pmp").get("update"),collection:this.collection}))}});t.a=d},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(129)),s=n.n(o),l=n(11),c=n(16),u=n(48),d=n(3189),p=u.a.extend({template:function(){return""},mountReact:function(){var e=Object(c.c)("appStore"),t=this.model.entityID();s.a.render(a()(l.Provider,{store:e},void 0,a()(d.a,{serverEntityID:t})),this.el)}});t.a=p},function(e,t,n){"use strict";function i(){
return Object(d.createSelector)(Object(p.a)(),function(e){return{isServerClaimed:e}})}function a(e){var t=e.isServerClaimed,n=o()(e,["isServerClaimed"]);return t?c.a.createElement(h.a,n):c.a.createElement(f.a,n)}var r=n(12),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),n(3190)),h=n(3191),f=n(3199);t.a=Object(u.connect)(i)(a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(r.a)(),function(e,t){
return!!(e&&e.isClaimed&&t&&t.signedIn)})}var a=n(4),r=(n.n(a),n(1437)),o=n(35);t.a=i},function(e,t,n){"use strict";function i(){return Object(I.createSelector)(Object(M.a)(),function(e){return!!e&&e.isPersonalCloudServer})}function a(){return Object(I.createSelector)(Object(S.a)(),function(e){return e&&e.username||null})}function r(){return Object(I.createSelector)(P,i(),a(),function(e,t,n){return{isSigningOut:e,isAbleToSignOut:!t,username:n}})}
var o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(11),I=n(4),S=(n.n(I),n(1437)),M=n(35),D=n(257),C=n(467),j=n(3195),P=Object(I.createSelector)(D.a,function(e){return e.isBusy}),O={dispatchSignOutServer:C.e},T=function(e){function t(){var n,i,a;d()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=h()(this,e.call.apply(e,[this].concat(o))),i.onSignOutPress=function(e){
i.props.dispatchSignOutServer({serverEntityID:i.props.serverEntityID})},a=n,h()(i,a)}return v()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchSignOutServer,c()(e,["dispatchSignOutServer"]));return y.a.createElement(j.a,s()({},t,{onSignOutPress:this.onSignOutPress}))},t}(m.Component);t.a=Object(b.connect)(r,O)(T)},function(e,t,n){"use strict";function i(e,t){var n=e.get("cloudServer"),i=n.get("resources"),a={clientIdentifier:t.get("machineIdentifier")}
;return Object(c.a)(function(){return i.fetch().then(function(){return i.findWhere(a)?s.a.Deferred().resolve().promise():s.a.Deferred().reject().promise()})},{times:30,delay:1e3})}function a(e,t,n){var i=s.a.Deferred();return e.get("primaryServer")===t?i.resolve():(e.once("change:primaryServer",i.resolve),n()),Object(l.a)(i.promise(),2e3)}function r(e,t,n,r){var o,l=e.get("user"),c=e.get("cloudServer");return s.a.ajax(c.getXHROptions("/api/claim/token",{headers:(o={},o["X-Plex-Token"]=n,o)
})).promise().then(function(e){return p.a.parseXML(e).token}).then(function(e){return s.a.ajax(t.getXHROptions(u.join("/myplex/claim",{token:e}),{type:"POST"}))}).then(function(){return i(e,t)}).then(function(){var e=Object(h.a)(t),n=void 0;return e&&(n=t.getXHROptions("/media/providers")),t.fetch(n)}).then(function(){return a(e,t,r)}).then(function(){var e=l.get("email"),n=t.get("pmp").get("cloudAccount");t.set({myPlexSigninState:d.b,myPlexUsername:e}),n.set({signedIn:!0,username:e})})}
var o=n(13),s=n.n(o),l=n(3193),c=n(938),u=n(18),d=n(122),p=n(74),h=n(1440);t.a=r},function(e,t,n){"use strict";function i(e,t){var n=r.a.Deferred(),i=setTimeout(function(){n.reject()},t);return e.then(n.resolve,n.reject).always(function(){clearTimeout(i)}),n.promise()}var a=n(13),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return e.destroy({timeout:0}).promise().done(function(){e.server.set({accessToken:void 0,myPlexSigninState:a.a,myPlexSubscription:!1}),e.restoreDefaults()})}
var a=n(122);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.isAbleToSignOut,n=e.isSigningOut,i=e.username,a=e.serverEntityID,o=e.onSignOutPress;return r()("div",{className:f.a.container},void 0,r()(p.a,{serverEntityID:a}),r()("div",{className:f.a.message},void 0,r()("div",{className:f.a.messageHeader},void 0,Object(u.default)("Server signed in as")),r()("div",{className:f.a.messageDetails},void 0,i)),t&&r()(d.a,{className:f.a.button,kind:l.DEFAULT,size:c.MEDIUM,isSpinning:n,onPress:o
},void 0,Object(u.default)("Sign Out")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(51)),c=n(52),u=n(3),d=n(139),p=n(3196),h=n(3198),f=n.n(h);t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(162)),o=n(1442),s=Object(a.createSelector)(r.a,function(e){return{avatarUrl:e.isSignedIn?e.thumb:null}});t.a=Object(i.connect)(s)(o.a)},function(e,t){e.exports={avatar:"ServerAvatar-avatar-2VGH0",icon:"ServerAvatar-icon-DrP34"}},function(e,t){e.exports={
container:"ClaimedServer-container-3O6-1",message:"ClaimedServer-message-1yZ-w",messageHeader:"ClaimedServer-messageHeader-3uzat",messageDetails:"ClaimedServer-messageDetails-3lEkV",button:"ClaimedServer-button-36k0Q SpinnerButton-button-1A8Ec Button-button-2kT68 Link-link-2n0yJ"}},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(I.a,Object(b.a)("isSignedIn"),Object(b.a)("restricted"),function(e,t,n){var i=void 0;return i=t?O:Object(M.a)()?T:E,f()({componentType:i,
isUserRestricted:!!n},e)})}var a,r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=(n.n(g),n(11)),y=n(4),b=(n.n(y),n(393)),I=n(257),S=n(467),M=n(560),D=n(3200),C=n(3202),j=n(3207),P=n(3208),O="SIGNED_IN_BUTTON",T="SIGNED_OUT_POLL_BUTTON",E="SIGNED_OUT_LAUNCH_BUTTON",w={dispatchClaimServer:S.a},A=(a={},a[O]=D.a,a[T]=j.a,a[E]=C.a,a),x=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.componentType,i=e.isBusy,a=e.isUserRestricted;return o()(P.a,{serverEntityID:t,isBusy:i,isUserRestricted:a,ClaimServerButtonConnectorComponent:A[n]})},t}(g.Component);t.a=Object(m.connect)(i,w)(x)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),
n(393)),g=n(467),m=n(950),y=Object(f.createSelector)(Object(v.a)("authToken"),function(e){return{authToken:e}}),b={dispatchClaimServer:g.a},I=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onClaimServerPress=function(){i.props.dispatchClaimServer({serverEntityID:i.props.serverEntityID,authToken:i.props.authToken})},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.isBusy,n=e.isDisabled;return a()(m.a,{isSpinning:t,isDisabled:n,onPress:this.onClaimServerPress})},t}(p.Component);t.a=Object(h.connect)(y,b)(I)},function(e,t){e.exports={button:"ClaimServerButton-button-2r6HK SpinnerButton-button-1A8Ec Button-button-2kT68 Link-link-2n0yJ"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(257),v=n(467),g=n(285),m=n(951),y=n(468),b=n(950),I={
dispatchReadStoredPIN:g.d,dispatchCreatePIN:v.c,dispatchSignInThenClaimServer:v.d},S=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onClaimServerPress=function(){i.props.dispatchCreatePIN()},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchReadStoredPIN({shouldCreatePIN:!1})},t.prototype.componentDidUpdate=function(e){
this.props.authToken!==e.authToken&&this.props.authToken&&this.props.dispatchSignInThenClaimServer({serverEntityID:this.props.serverEntityID,authToken:this.props.authToken})},t.prototype.render=function(){var e=this.props,t=e.isBusy,n=e.isDisabled,i=e.pinID,r=e.code;return i?a()(y.a,{component:m.a,code:r,pinID:i}):a()(b.a,{isSpinning:t,isDisabled:n,onPress:this.onClaimServerPress})},t}(p.Component);t.a=Object(h.connect)(f.a,I)(S)},function(e,t,n){"use strict";function i(){return function(e,t,n){
function i(){var t=c.get("pinID");l===t&&Object(o.a)(e,l).then(function(e){var t=e.authToken;t?c.set({authToken:t}):s()}).fail(function(e){c.set({code:null,pinID:null,isBusy:!1,fatalErrorMessage:e&&404===e.status?null:Object(a.default)("An error occurred")})})}function s(){setTimeout(i,2e3)}var l=t.pinID,c=Object(r.a)(e);s()}}var a=n(3),r=n(626),o=n(1443);t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.email},function(e,t){
return t.providerID},function(e,t){return t.userAuthToken},function(e,t){return t.code},function(e,t){return t.pinID},function(e,t){return t.errorMessage},function(e){return e.clientID},function(e){return e.isFirstRun},function(e){return e.isSigningOut},function(e,t,n,i,a,d,p,h,f){if(f)return"https://plex.tv/users/sign_out";var v=Object(o.c)("metrics"),g=v.toJSON(),m=Object(s.a)(g.context||{}),y={clientID:p,context:m};if(!Object(u.a)()){var b=a?Object(l.a)(window.location.href,{pinID:a
}):window.location.href;y.forwardUrl=b,h&&(y.skipSignInUrl=Object(c.a)(window.location.href,r.join(["#!/setup/skipSignIn"],{forwardUrl:b})))}return i&&(y.code=i),t&&(y.provider=t),e&&(y.email=e),n&&(y.authToken=n),d&&(y.error=d),r.join(["https://app.plex.tv/auth",r.join(["#!/"],y)])})}var a=n(4),r=(n.n(a),n(18)),o=n(16),s=n(3205),l=n(3206),c=n(952),u=n(560);t.a=i},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a.identity
;return s()(e).forEach(function(n){t(e[n])||delete e[n]}),e}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a.identity;return s()(e).forEach(function(n){e[n]=t(e[n])}),e}function r(e){return a(i(e),function(e){return c.a.isObject(e)?r(e):e})}var o=n(59),s=n.n(o),l=n(10),c=n.n(l);t.a=r},function(e,t,n){"use strict";function i(e,t){var n=Object(l.a)(e),i=n.base,a=n.searchParams,c=n.hashPath,u=n.hashParams,d=Object(o.a)(u);return""+i+a+"#"+c+"?"+Object(s.a)(r()({},d,t))
}var a=n(6),r=n.n(a),o=n(1139),s=n(1140),l=n(1194);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(20),v=n(257),g=n(3),m=n(187),y=n(467),b=n(285),I=n(24),S=n(950),M=n(468),D={dispatchPreloadPIN:b.c,dispatchBeginPolling:b.b,dispatchStopPolling:b.g,dispatchSignInThenClaimServer:y.d},C=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onClaimServerPress=function(){i.props.dispatchBeginPolling({pinID:i.props.pinID})},i.onStillTherePress=function(){i.props.dispatchPreloadPIN()},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchPreloadPIN()},t.prototype.componentDidUpdate=function(e){this.props.authToken!==e.authToken&&this.props.authToken&&this.props.dispatchSignInThenClaimServer({serverEntityID:this.props.serverEntityID,
authToken:this.props.authToken})},t.prototype.componentWillUnmount=function(){this.props.dispatchStopPolling()},t.prototype.render=function(){var e=this.props,t=e.code,n=e.pinID,i=e.isBusy,r=e.isDisabled;return i||this.props.code?a()(M.a,{component:S.a,code:t,pinID:n,isSpinning:i,isDisabled:r||!n,onPress:this.onClaimServerPress}):a()(m.a,{message:Object(g.default)("Server claiming timed out. {openLink}Try again?{closeLink}"),tags:[{open:"openLink",close:"closeLink",component:f.a,
kind:I.b.PRIMARY,onPress:this.onStillTherePress}]})},t}(p.Component);t.a=Object(h.connect)(v.a,D)(C)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.isBusy,i=e.isUserRestricted,a=e.ClaimServerButtonConnectorComponent;return r()("div",{className:d.a.container},void 0,r()(c.a,{serverEntityID:t}),i?r()("div",{className:d.a.message},void 0,r()("div",{className:d.a.messageHeader},void 0,Object(l.default)("This server is unclaimed and not secure")),r()("div",{
className:d.a.messageDetails},void 0,Object(l.default)("You are signed in as a managed user.")),r()("div",{className:d.a.messageDetails},void 0,Object(l.default)("Switch to a full user account to claim this server."))):r()("div",{className:d.a.message},void 0,r()("div",{className:d.a.messageHeader},void 0,Object(l.default)("This server is unclaimed and not secure")),r()("div",{className:d.a.messageDetails
},void 0,Object(l.default)("Claiming this server will associate it with your Plex account.")),r()("div",{className:d.a.messageDetails},void 0,Object(l.default)("This helps your devices find each other and helps keep your media safe."))),r()(a,{serverEntityID:t,isBusy:n,isDisabled:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1442),u=n(3209),d=n.n(u);t.a=i},function(e,t){e.exports={container:"UnclaimedServer-container-2zE1Q",message:"UnclaimedServer-message-16zts",
messageHeader:"UnclaimedServer-messageHeader-6cNqh",messageDetails:"UnclaimedServer-messageDetails-2ERBD"}},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=n(16),u=n(43),d=n(3),p=n(3211),h=n(3213),f=n.n(h),v=r.a.ItemView.extend({tagName:"span",className:"check-for-updates-container",template:f.a,ui:{checkForUpdatesBtn:".check-for-updates-btn",downloadUpdatesContainer:".downloading-updates-container",downloadProgressContainer:".downloading-progress-container",
downloadProgressLabel:".downloading-progress-label",updateProgressLabel:".downloading-updates-label",updateErrorMessage:".update-error-message",installManualLink:".install-manual-link"},modelEvents:{"change:state":"onStateChange","change:progress":"onProgressChange"},events:{"click .check-for-updates-btn":"onCheckForUpdatesClick","click .available-updates-btn":"onDownloadUpdatesClick","click .install-updates-btn":"onInstallUpdatesClick","click .release-notes-btn":"onInfoClick"},
initialize:function(){this.model.fetch().then(this.whenRendered(function(){var e=this.model.get("state");"downloaded"===e&&this.model.get("shouldInstall")?(this.model.set("shouldInstall",!1),this.installUpdates()):this.canCheckForUpdate(e)&&this.checkForUpdates({download:!1})}))},serializeData:function(){return{canCheckForUpdate:this.canCheckForUpdate(this.model.get("state"))}},checkForUpdates:function(e){u.a.execute("checkForServerUpdates",{server:this.model.server,download:e.download,
initialState:e.initialState})},installUpdates:function(){u.a.execute("installServerUpdates",{server:this.model.server})},waitForInstall:function(){this.onWaitingForInstallCheck(),this.listenTo(this.model.server,"change:isConnected",this.onServerConnectedChange)},showUpdateState:function(){var e=this.model.get("state"),t=this.model.previous("state");"installing"===t&&this.stopListening(this.model.server,"change:isConnected",this.onServerConnectedChange),this.$el.removeClass(t);var n=e
;this.model.get("canInstall")||"available"!==e||(n="notify"),this.$el.addClass(n);var i=!(!this.model.get("added")&&!this.model.get("fixed"));if(this.$el.toggleClass("has-release-notes",i),"installing"===n)this.waitForInstall();else if("error"===n||"notify"===n){var a;this.model.get("error")?(a=this.model.get("error"),this.ui.installManualLink.addClass("hidden")):this.model.get("canInstall")?(a=Object(d.default)("Something went wrong."),
this.ui.installManualLink.removeClass("hidden")):(a=Object(d.default)("An update is available."),this.ui.installManualLink.removeClass("hidden"));var r=c.c("appModel"),o=r.get("user").server,s=this.model.get("downloadURL")||o.get("appsUrl");this.ui.installManualLink.attr("href",s),this.ui.updateErrorMessage.text(a)}},canCheckForUpdate:function(e){return"done"===e||"error"===e||"none"===e},onRender:function(){this.showUpdateState()},onStateChange:function(e,t){
this.isRendered&&(this.showUpdateState(),this.ui.checkForUpdatesBtn.toggleClass("active",!this.canCheckForUpdate(t)))},onProgressChange:function(e,t){s.a.isNumber(t)?(this.ui.downloadUpdatesContainer.css({"background-size":t+"% 100%"}),this.ui.downloadProgressContainer.removeClass("hidden"),this.ui.downloadProgressLabel.text(t)):this.ui.downloadProgressContainer.addClass("hidden")},onServerConnectedChange:function(e,t){t?u.a.execute("checkForServerUpdates",{server:this.model.server
}):this._waitingTimeoutID&&(this._waitingTimeoutID=clearTimeout(this._waitingTimeoutID))},onWaitingForInstallCheck:function(){var e=this,t=this.model.server;if(t.get("isConnected")&&"installing"===this.model.get("state")){var n=t.getXHROptions("/updater/check",{type:"PUT"});a.a.ajax(n).promise().always(function(){e._waitingTimeoutID=setTimeout(e.onWaitingForInstallCheck.bind(e),2e3)})}},onCheckForUpdatesClick:function(e){e.preventDefault(),
this.ui.checkForUpdatesBtn.isDisabled()||(this.ui.checkForUpdatesBtn.addClass("active"),this.checkForUpdates({download:!0}))},onDownloadUpdatesClick:function(e){e.preventDefault(),this.checkForUpdates({download:!0,initialState:"downloading"})},onInstallUpdatesClick:function(e){e.preventDefault(),this.installUpdates()},onInfoClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new p.a({model:this.model}))}});t.a=v},function(e,t,n){"use strict";function i(e){return e?e.split("\n"):[]}
var a=n(96),r=n(3212),o=n.n(r),s=a.a.extend({name:"releaseNotesModal",template:o.a,serializeData:function(){var e=this.model.toJSON();return e.version=e.version.replace(/\-.*/gi,""),e.added=i(e.added),e.fixed=i(e.fixed),e}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t,r){var o,s="";return s+=' <h4 class="update-list-title">'+h(i(n(5)).call(e,"New",{hash:{},data:t}))+"</h4> <ul> ",
o=a.each.call(e,r&&r.added,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(o||0===o)&&(s+=o),s+=" </ul> "}function l(e,t){var n="";return n+=" <li>"+h(typeof e===p?e.apply(e):e)+"</li> "}function c(e,t,r){var o,s="";return s+=' <h4 class="update-list-title">'+h(i(n(5)).call(e,"Fixes",{hash:{},data:t}))+"</h4> <ul> ",o=a.each.call(e,r&&r.fixed,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(o||0===o)&&(s+=o),s+=" </ul> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),
o=o||{};var u,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-info"></i> '+h(i(n(5)).call(t,"Plex Media Server Release Notes",{hash:{},data:o
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <span class="text-muted">'+h(i(n(5)).call(t,"Version {1}",t&&t.version,{hash:{},data:o}))+"</span> ",u=a.if.call(t,t&&t.added,{hash:{},inverse:f.noop,fn:f.programWithDepth(1,s,o,t),data:o}),(u||0===u)&&(d+=u),d+=" ",u=a.if.call(t,t&&t.fixed,{hash:{},inverse:f.noop,fn:f.programWithDepth(4,c,o,t),data:o}),(u||0===u)&&(d+=u),d+=" </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"active"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this,d=this.escapeExpression;return c+='<a href="#" class="check-for-updates-btn label label-btn label-primary ',l=a.unless.call(t,t&&t.canCheckForUpdate,{hash:{},inverse:u.noop,fn:u.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='"> <i class="label-icon glyphicon upload"></i> '+d(i(n(5)).call(t,"Check for Updates",{
hash:{},data:o}))+' </a> <a href="#" class="checking-for-updates-btn label label-btn label-primary active"> <i class="label-icon glyphicon upload"></i> '+d(i(n(5)).call(t,"Checking for Updates",{hash:{},data:o}))+' </a> <a href="#" class="available-updates-btn label label-btn label-primary"> <i class="label-icon glyphicon download"></i> '+d(i(n(5)).call(t,"Download Updates",{hash:{},data:o
}))+' </a> <span class="downloading-updates-container label label-btn label-progress active"> <i class="label-icon glyphicon download"></i> '+d(i(n(5)).call(t,"Downloading Update",{hash:{},data:o}))+' <span class="downloading-progress-container hidden">(<span class="downloading-progress-label"></span>%)</span ></span> <a href="#" class="install-updates-btn label label-btn label-primary"> <i class="label-icon glyphicon download"></i> '+d(i(n(5)).call(t,"Install Update",{hash:{},data:o
}))+' </a> <a href="#" class="installing-updates-btn label label-btn label-primary active"> <i class="label-icon glyphicon upload"></i> '+d(i(n(5)).call(t,"Installing",{hash:{},data:o}))+' </a> <span class="install-info-label up-to-date-label"> <i class="success-icon glyphicon ok-2"></i> '+d(i(n(5)).call(t,"Up to date",{hash:{},data:o
}))+' </span> <span class="install-info-label install-error-label"> <i class="failure-icon glyphicon circle-exclamation-mark"></i> <span class="update-error-message"></span> <a class="install-manual-link" href="https://plex.tv/downloads" target="_blank">'+d(i(n(5)).call(t,"Please install manually.",{hash:{},data:o}))+'</a> </span> <a href="#" class="release-notes-btn label label-btn label-default"> <i class="label-icon glyphicon circle-info"></i> '+d(i(n(5)).call(t,"What's New",{hash:{},data:o
}))+" </a> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+u(i(n(29)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this
;return c+='<div class="sign-in-region"></div> <form id="server-settings-form"> <div class="form-group"> <h4 class="version-header"><span class="version"></span> <span class="update-region"></span></h4> </div> ',l=a.each.call(t,t,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),
c+=' <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+u(i(n(5)).call(t,"Save Changes",{hash:{},data:o}))+'</span> </button> <span class="form-message"></span> </div> </form> '})},function(e,t,n){"use strict";var i=n(462),a=n(3),r=n(466),o=r.a.extend({prefix:"account.",serializeData:function(){var e=this.options.account,t=[],n=i.d.map(function(e){return{value:e,
label:i.b[e]}});return t.push({id:this.prefix+"autoSelectAudio",label:Object(a.default)("Automatically select audio and subtitle tracks"),summary:Object(a.default)("Automatically select audio and subtitle tracks in your preferred language when possible."),default:!1,value:e.get("autoSelectAudio"),type:"bool",group:"account.language",advanced:!1,hidden:!1}),t.push({id:this.prefix+"defaultAudioLanguage",label:Object(a.default)("Prefer audio tracks in"),default:"en",
value:e.get("defaultAudioLanguage"),type:"text",group:"account.language",advanced:!1,hidden:!1,enumValues:n}),t.push({id:this.prefix+"subtitleMode",label:Object(a.default)("Subtitle mode"),default:1,value:parseInt(e.get("subtitleMode"),10),type:"int",group:"account.language",advanced:!1,hidden:!1,enumValues:[{value:0,label:Object(a.default)("Manually selected")},{value:1,label:Object(a.default)("Shown with foreign audio")},{value:2,label:Object(a.default)("Always enabled")}]}),t.push({
id:this.prefix+"defaultSubtitleLanguage",label:Object(a.default)("Prefer subtitles in"),default:"en",value:e.get("defaultSubtitleLanguage"),type:"text",group:"account.language",advanced:!1,hidden:!1,enumValues:n}),t},updateModel:function(e,t){var n=r.a.prototype.updateModel.apply(this,arguments);if(n)return n;var i=e.replace(this.prefix,""),a=this.options.account;return a.has(i)?a.set(i,t):void 0}});t.a=o},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(43),l=n(620),c=n(182),u=n(466),d=n(3217),p=n.n(d),h=u.a.extend({className:"remote-access-container",template:p.a,ui:{manualPortMappingMode:"#ManualPortMappingMode",manualPortMappingPort:"#ManualPortMappingPort",wanTotalMaxUploadRate:"#WanTotalMaxUploadRate",uploadContainer:".remote-access-upload-container",submitBtn:".submit-btn",message:".form-message"},events:{"change .remote-access-error-container input[id]":"onErrorInputChange",
"click .sign-in-link":"onSignInClick","click .remote-access-enable-btn":"onEnableClick","click .retry-btn":"onRetryClick","click .remote-access-disable-btn":"onDisableClick","change input[name=WanTotalMaxUploadRate]":"onTotalRateChange","keyup input[name=WanTotalMaxUploadRate]":"onTotalRateChange","change select[name=WanPerStreamMaxUploadRate]":"onPerStreamRateChange","submit #remote-access-upload-form":"onUploadFormSubmit"},initialize:function(e){this.cloudAccount=e.cloudAccount,
this.changes=e.changes,this.listenTo(this.cloudAccount,{"change:signInState":this.render,"change:remoteAccessState":this.render})},serializeData:function(){
var e=this.collection.get("PublishServerOnPlexOnlineKey"),t=this.collection.get("ManualPortMappingMode"),n=this.collection.get("ManualPortMappingPort"),i=this.collection.get("WanTotalMaxUploadRate"),a=this.collection.get("WanPerStreamMaxUploadRate"),r=this.cloudAccount.toJSON(),o=!e.get("value"),s=!r.signedIn,l=o||s,c=!(!r.privateAddress||null==r.privatePort),u=!(!r.publicAddress||null==r.publicPort),d={forceAdvanced:!o&&!!r.mappingError,isDisabled:o,isSignedOut:s,isUnavailable:l,
canEditPort:!l&&t&&t.get("value"),hasPrivateAddress:c,hasPublicAddress:u,cloudAccount:r,hasMappingSettings:!(!t||!n),hasUploadLimitSettings:!(!i||!a),mappingModeSetting:t?t.toJSON():null,mappingPortSetting:n?n.toJSON():null,uploadSettings:[]};return i&&(d.totalRateSettingID=i.id,d.totalRateSettingValue=i.get("value")/1e3),a&&d.uploadSettings.push(a.toJSON()),d},enable:function(){},enableUploadForm:function(){this.isDisabled=!1,this.ui.submitBtn.removeClass("disabled"),this.ui.message.text("")},
updateUploadSetting:function(e,t){if(e){this.updateModel(e,t)&&(this.changes[e]=t,this.enable())}},connect:function(){return s.a.execute("connectServer",{cloudAccount:this.cloudAccount,value:!0})},disconnect:function(){return s.a.execute("connectServer",{cloudAccount:this.cloudAccount,value:!1})},reconnect:function(){return s.a.execute("reconnectServer",{cloudAccount:this.cloudAccount})},saveChanges:function(){if(o.a.isEmpty(this.changes))return a.a.Deferred().resolve().promise()
;var e=this.collection.first().save(this.changes);return e.done(o.a.bind(function(){this.changes={}},this)),e},onErrorInputChange:function(e){u.a.prototype.onInputChange.apply(this,arguments),this.ui.manualPortMappingPort.prop("disabled",!this.ui.manualPortMappingMode.prop("checked"))},onSignInClick:function(e){e.preventDefault(),Object(c.a)("serverSettings",{serverID:this.model.id,group:"general"})},onEnableClick:function(e){e.preventDefault(),this.connect()},onDisableClick:function(e){
e.preventDefault(),this.disconnect()},onRetryClick:function(e){e.preventDefault(),this.cloudAccount.set("remoteAccessState",l.d),this.saveChanges().always(o.a.bind(this.reconnect,this))},onTotalRateChange:function(e){var t=e.currentTarget,n=parseFloat(t.value,10),i=o.a.isNaN(n)?0:Math.max(n,0);this.updateUploadSetting(t.name,1e3*i),this.enableUploadForm()},onPerStreamRateChange:function(e){var t=e.currentTarget;this.updateUploadSetting(t.name,t.value),this.enableUploadForm()},
onUploadFormSubmit:function(e){e.preventDefault(),this.trigger("save");var t=this.collection.get("WanTotalMaxUploadRate").get("value"),n=!t;this.ui.wanTotalMaxUploadRate.val(t/1e3),this.ui.uploadContainer.toggleClass("show-warning",n)}});t.a=h},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <h4 class="status-header status-header-single"> <span class="loading loading-sm"></span> '+_(i(n(5)).call(e,"Connecting server...",{hash:{},data:t}))+" </h4> "}function l(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.cloudAccount,null==a||!1===a?a:a.remoteAccessState),"disconnecting",{hash:{},inverse:V.program(6,u,t),fn:V.program(4,c,t),data:t}),a||0===a?a:""}function c(e,t){var a=""
;return a+=' <h4 class="status-header status-header-single"> <span class="loading loading-sm"></span> '+_(i(n(5)).call(e,"Disconnecting server...",{hash:{},data:t}))+" </h4> "}function u(e,t){var n;return n=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.program(12,f,t),fn:V.program(7,d,t),data:t}),n||0===n?n:""}function d(e,t){var r,o="";return o+=' <h4 class="status-header text-danger">'+_(i(n(5)).call(e,"Not available outside your network",{hash:{},data:t}))+"</h4> ",
r=a.if.call(e,e&&e.isSignedOut,{hash:{},inverse:V.program(10,h,t),fn:V.program(8,p,t),data:t}),(r||0===r)&&(o+=r),o+=" "}function p(e,t){var a="";return a+=' <span class="status-description help-block">'+_(i(n(5)).call(e,"First {1}sign in{2} to access your server from anywhere.",'<a class="sign-in-link" href="#">',"</a>",{hash:{},data:t}))+"</span> "}function h(e,t){var a="";return a+=' <span class="status-description help-block">'+_(i(n(5)).call(e,"Enable to access your server from anywhere.",{
hash:{},data:t}))+'</span> <button class="remote-access-enable-btn btn btn-sm btn-primary">'+_(i(n(5)).call(e,"Enable Remote Access",{hash:{},data:t}))+"</button> "}function f(e,t){var r,o="";return o+=" ",r=i(n(34)).call(e,(r=e&&e.cloudAccount,null==r||!1===r?r:r.remoteAccessState),"unreachable",{hash:{},inverse:V.program(19,b,t),fn:V.program(13,v,t),data:t}),(r||0===r)&&(o+=r),o+=' <button class="remote-access-disable-btn btn btn-sm btn-default">'+_(i(n(5)).call(e,"Disable Remote Access",{
hash:{},data:t}))+"</button> ",r=a.if.call(e,(r=e&&e.mappingModeSetting,null==r||!1===r?r:r.value),{hash:{},inverse:V.noop,fn:V.program(21,I,t),data:t}),(r||0===r)&&(o+=r),o+=" "}function v(e,t){var a,r="";return r+=' <h4 class="status-header text-danger">'+_(i(n(5)).call(e,"Not available outside your network",{hash:{},data:t
}))+'</h4> <span class="unreachable-description status-description help-block">'+_(i(n(5)).call(e,"Your server is signed in to Plex, but is not reachable from outside your network. {1}Learn more{2}",'<a href="https://support.plex.tv/articles/200289506/" target="_blank">',"</a>",{hash:{},data:t}))+"</span> ",a=i(n(34)).call(e,(a=e&&e.cloudAccount,null==a||!1===a?a:a.mappingError),"jumboframes",{hash:{},inverse:V.program(16,m,t),fn:V.program(14,g,t),data:t}),(a||0===a)&&(r+=a),r+=" "}
function g(e,t){var a="";return a+=' <span class="jumbo-frames-description status-details help-block"> <span class="help-tip">'+_(i(n(5)).call(e,"Tip:",{hash:{},data:t}))+"</span> "+_(i(n(5)).call(e,'It looks like the devices between your server and the internet have "jumbo frames" enabled which can cause issues with remote access. Disable jumbo frames on at least one device and try again.',{hash:{},data:t}))+" </span> "}function m(e,t){var a;return a=i(n(34)).call(e,(a=e&&e.cloudAccount,
null==a||!1===a?a:a.mappingError),"doublenat",{hash:{},inverse:V.noop,fn:V.program(17,y,t),data:t}),a||0===a?a:""}function y(e,t){var a="";return a+=' <span class="double-nat-description status-details help-block"> <span class="help-tip">'+_(i(n(5)).call(e,"Tip:",{hash:{},data:t
}))+"</span> "+_(i(n(5)).call(e,'It looks like your server may be connected to the internet through multiple routers or other network devices. Try connecting it directly to your primary device, or visit our support site for more information about troubleshooting this "Double-NAT" scenario. {1}Learn more{2}','<a href="https://support.plex.tv/articles/200931138/" target="_blank">',"</a>",{hash:{},data:t}))+" </span> "}function b(e,t){var a=""
;return a+=' <h4 class="status-header text-success">'+_(i(n(5)).call(e,"Fully accessible outside your network",{hash:{},data:t}))+'</h4> <span class="status-description help-block"> '+_(i(n(5)).call(e,"You can access this server from signed-in Plex apps or in a browser at {1}.",'<a href="https://plex.tv/web" target="_blank">https://plex.tv/web</a>',{hash:{},data:t}))+" </span> "}function I(e,t){var a=""
;return a+=' <p class="remote-access-disable-message help-block"> <i class="remote-access-disable-warning-icon glyphicon circle-exclamation-mark"></i> '+_(i(n(5)).call(e,"You currently have Remote Access enabled through a manually-specified port. If you wish to disable Remote Access, you will need to remove your manual port forwarding from your router.",{hash:{},data:t}))+" </p> "}function S(e,t){var a,r="";return r+=" ",a=i(n(286)).call(e,(a=e&&e.cloudAccount,
null==a||!1===a?a:a.remoteAccessState),"disconnecting",{hash:{},inverse:V.noop,fn:V.program(24,M,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function M(e,t){var r,o="";return o+=' <div class="remote-access-advanced"> <div class="remote-access-mapping-container ',r=a.unless.call(e,e&&e.forceAdvanced,{hash:{},inverse:V.noop,fn:V.program(25,D,t),data:t}),(r||0===r)&&(o+=r),
o+='"> <hr> <i class="plex-image server server-xs server-logo"></i> <div class="remote-access-mapping"> <span class="mapping-label text-muted">'+_(i(n(5)).call(e,"Private",{hash:{},data:t}))+'</span> <span class="mapping-address"> ',r=a.if.call(e,e&&e.hasPrivateAddress,{hash:{},inverse:V.program(29,j,t),fn:V.program(27,C,t),data:t}),(r||0===r)&&(o+=r),o+=" </span> ",r=a.if.call(e,e&&e.hasPublicAddress,{hash:{},inverse:V.program(33,O,t),fn:V.program(31,P,t),data:t}),(r||0===r)&&(o+=r),
o+=' <span class="mapping-label text-muted">'+_(i(n(5)).call(e,"Public",{hash:{},data:t}))+'</span> <span class="mapping-address"> ',r=a.if.call(e,e&&e.hasPublicAddress,{hash:{},inverse:V.program(29,j,t),fn:V.program(35,T,t),data:t}),(r||0===r)&&(o+=r),o+=" </span> ",r=i(n(34)).call(e,(r=e&&e.cloudAccount,null==r||!1===r?r:r.remoteAccessState),"ok",{hash:{},inverse:V.program(33,O,t),fn:V.program(31,P,t),data:t}),(r||0===r)&&(o+=r),o+=' <span class="mapping-internet ',
r=i(n(286)).call(e,(r=e&&e.cloudAccount,null==r||!1===r?r:r.remoteAccessState),"ok",{hash:{},inverse:V.noop,fn:V.program(37,E,t),data:t}),(r||0===r)&&(o+=r),o+='"> <i class="mapping-internet-icon glyphicon globe text-muted"></i> '+_(i(n(5)).call(e,"Internet",{hash:{},data:t}))+" </span> </div> </div> ",r=a.if.call(e,e&&e.hasMappingSettings,{hash:{},inverse:V.noop,fn:V.program(39,w,t),data:t}),(r||0===r)&&(o+=r),o+=" </div> "}function D(e,t){return"advanced-setting"}function C(e,t){var a,r=""
;return r+=' <span class="mapping-value">'+_((a=e&&e.cloudAccount,a=null==a||!1===a?a:a.privateAddress,typeof a===H?a.apply(e):a))+'</span> <span class="mapping-separator text-muted">'+_(i(n(5)).call(e,":",{hash:{},data:t}))+'</span> <span class="mapping-value">'+_((a=e&&e.cloudAccount,a=null==a||!1===a?a:a.privatePort,typeof a===H?a.apply(e):a))+"</span> "}function j(e,t){var a="";return a+=' <span class="mapping-empty-value">'+_(i(n(5)).call(e,"Unknown IP",{hash:{},data:t}))+"</span> "}
function P(e,t){return' <i class="mapping-icon glyphicon left-arrow text-success"></i> '}function O(e,t){return' <i class="mapping-icon glyphicon remove-2 text-danger"></i> '}function T(e,t){var a,r="";return r+=' <span class="mapping-value">'+_((a=e&&e.cloudAccount,a=null==a||!1===a?a:a.publicAddress,typeof a===H?a.apply(e):a))+'</span> <span class="mapping-separator text-muted">'+_(i(n(5)).call(e,":",{hash:{},data:t}))+'</span> <span class="mapping-value">'+_((a=e&&e.cloudAccount,
a=null==a||!1===a?a:a.publicPort,typeof a===H?a.apply(e):a))+"</span> "}function E(e,t){return"unreachable"}function w(e,t){var r,o="";return o+=' <div class="remote-access-error-container ',r=a.unless.call(e,e&&e.forceAdvanced,{hash:{},inverse:V.noop,fn:V.program(25,D,t),data:t}),(r||0===r)&&(o+=r),o+='"> <div class="form-inline"> <div class="checkbox"> <label class="',r=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.noop,fn:V.program(40,A,t),data:t}),(r||0===r)&&(o+=r),
o+='"> <input type="checkbox" id="'+_((r=e&&e.mappingModeSetting,r=null==r||!1===r?r:r.id,typeof r===H?r.apply(e):r))+'" name="'+_((r=e&&e.mappingModeSetting,r=null==r||!1===r?r:r.id,typeof r===H?r.apply(e):r))+'" value="1" ',r=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.noop,fn:V.program(40,A,t),data:t}),(r||0===r)&&(o+=r),o+=" ",r=a.if.call(e,(r=e&&e.mappingModeSetting,null==r||!1===r?r:r.value),{hash:{},inverse:V.noop,fn:V.program(42,x,t),data:t}),(r||0===r)&&(o+=r),
o+="> "+_(i(n(5)).call(e,"Manually specify public port",{hash:{},data:t}))+' </label> </div> <div class="form-group"> <input type="text" id="'+_((r=e&&e.mappingPortSetting,r=null==r||!1===r?r:r.id,typeof r===H?r.apply(e):r))+'" name="'+_((r=e&&e.mappingPortSetting,r=null==r||!1===r?r:r.id,typeof r===H?r.apply(e):r))+'" class="form-control" value="'+_((r=e&&e.mappingPortSetting,r=null==r||!1===r?r:r.value,typeof r===H?r.apply(e):r))+'" ',r=a.unless.call(e,e&&e.canEditPort,{hash:{},inverse:V.noop,
fn:V.program(40,A,t),data:t}),(r||0===r)&&(o+=r),o+='> </div> <button class="retry-btn btn btn-primary btn-loading" ',r=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.noop,fn:V.program(40,A,t),data:t}),(r||0===r)&&(o+=r),o+='> <div class="loading loading-sm"></div> <span class="btn-label">',r=i(n(34)).call(e,(r=e&&e.cloudAccount,null==r||!1===r?r:r.remoteAccessState),"unreachable",{hash:{},inverse:V.program(46,L,t),fn:V.program(44,N,t),data:t}),(r||0===r)&&(o+=r),
o+='</span> </button> </div> <p class="help-block">'+_(i(n(5)).call(e,"You may need to enable this to establish a direct connection from outside your network. You may also need to configure your router. Detailed instructions are available {1}here{2}.",'<a href="https://support.plex.tv/articles/200931138/" target="_blank">',"</a>",{hash:{},data:t}))+"</p> </div> "}function A(e,t){return"disabled"}function x(e,t){return"checked"}function N(e,t){return _(i(n(5)).call(e,"Retry",{hash:{},data:t}))}
function L(e,t){return _(i(n(5)).call(e,"Apply",{hash:{},data:t}))}function k(e,t){var r,o="";return o+=' <div class="remote-access-upload-container ',r=a.unless.call(e,e&&e.totalRateSettingValue,{hash:{},inverse:V.noop,fn:V.program(49,R,t),data:t}),(r||0===r)&&(o+=r),
o+='"> <hr> <div class="remote-access-upload-icon-container"> <i class="remote-access-upload-icon glyphicon circle-arrow-top"></i> <i class="remote-access-upload-warning-icon glyphicon circle-exclamation-mark"></i> </div> <form id="remote-access-upload-form" class="remote-access-upload-form"> <div class="remote-access-upload-speed-header">'+_(i(n(5)).call(e,"No upload speed set",{hash:{},data:t
}))+'</div> <div class="form-group"> <div class="form-inline"> <div class="form-group"> '+_(i(n(5)).call(e,"Internet upload speed",{hash:{},data:t}))+' <input type="text" id="'+_((r=e&&e.totalRateSettingID,typeof r===H?r.apply(e):r))+'" name="'+_((r=e&&e.totalRateSettingID,typeof r===H?r.apply(e):r))+'" class="remote-access-upload-speed-control form-control" value="',r=a.if.call(e,e&&e.totalRateSettingValue,{hash:{},inverse:V.noop,fn:V.program(51,z,t),data:t}),(r||0===r)&&(o+=r),
o+='" > '+_(i(n(5)).call(e,"Mbps",{hash:{},data:t}))+' </div> <p class="help-block"> '+_(i(n(5)).call(e,"You can use {1}speedtest.net{2} to determine your internet upload capacity.",'<a href="http://speedtest.net" target="_blank" rel="noopener noreferrer">',"</a>",{hash:{},data:t}))+" <br> "+_(i(n(5)).call(e,"Enter an upload speed here and Plex can ensure it operates within this boundary.",{hash:{},data:t}))+" </p> </div> </div> ",r=a.each.call(e,e&&e.uploadSettings,{hash:{},inverse:V.noop,
fn:V.program(53,U,t),data:t}),(r||0===r)&&(o+=r),o+=' <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+_(i(n(5)).call(e,"Save Changes",{hash:{},data:t}))+'</span> </button> <span class="form-message"></span> </div> </form> </div> '}function R(e,t){return"show-warning"}function z(e,t){var n;return _((n=e&&e.totalRateSettingValue,typeof n===H?n.apply(e):n))}
function U(e,t){var a="";return a+=" "+_(i(n(29)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var B,F="",_=this.escapeExpression,V=this,H="function";return F+='<i class="remote-access-status-icon glyphicon globe"></i> <div class="remote-access-status-message"> ',B=i(n(34)).call(t,(B=t&&t.cloudAccount,null==B||!1===B?B:B.remoteAccessState),"connecting",{hash:{},inverse:V.program(3,l,o),fn:V.program(1,s,o),data:o}),
(B||0===B)&&(F+=B),F+=" </div> ",B=i(n(286)).call(t,(B=t&&t.cloudAccount,null==B||!1===B?B:B.remoteAccessState),"connecting",{hash:{},inverse:V.noop,fn:V.program(23,S,o),data:o}),(B||0===B)&&(F+=B),F+=" ",B=a.if.call(t,t&&t.hasUploadLimitSettings,{hash:{},inverse:V.noop,fn:V.program(48,k,o),data:o}),(B||0===B)&&(F+=B),F+=" "})},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(43),l=n(429),c=n(835),u=n(182),d=n(1444),p=n(3220),h=n(466),f=n(3250),v=n(3252),g=n.n(v),m=h.a.extend({mixins:[l.a],className:"versions-container",template:g.a,ui:{message:".versions-status-message"},regions:{listRegion:".background-processing-list-region"},events:{"click .delete-all-btn":"onDeleteAllVersionsClick","click .status-conversion-btn":"onStatusConversionClick"},initialize:function(e){
this.pausedSetting=this.collection.get("BackgroundQueueIdlePaused"),this.playlists=new c.a([],{server:this.model,allowInCache:!0}),this.transcodeJobs=this.model.get("pmp").get("backgroundTranscodeJobs")},initialState:"loading",states:{loading:{nextState:"list",onEnter:function(){var e=this.model.supports("streamReady"),t=this.model.get("transcoderVideo");if(this.listRegion.show(new d.a({inline:!0})),!e||!t)return void this.enterState("error")
;var n=a.a.when(this.playlists.populate(),this.transcodeJobs.fetch());n=n.then(o.a.bind(function(){return this.playlist=this.playlists.first(),this.playlist?(this.generators=this.playlist.get("children"),this.generators.fetch()):a.a.Deferred().reject().promise()},this)),n.done(this.whenRendered(function(){this.enterNextState()})),n.fail(this.whenRendered(function(){this.enterState("error")}))}},list:{onEnter:function(){this.toggleMessage(),
this.listenTo(this.generators,"reset add remove",this.toggleMessage),this.listRegion.show(new p.a({collection:this.generators,itemViewOptions:{transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}}))},onExit:function(){this.stopListening(this.generators)}},error:{onEnter:function(){this.listRegion.show(new f.a({model:this.model}))}}},toggleMessage:function(){this.ui.message.toggleClass("hidden",!this.generators.length)},onRender:function(){this.enterNextState()},
onDeleteAllVersionsClick:function(e){e.preventDefault(),s.a.execute("deleteAllVersionGenerators",{server:this.model}).then(o.a.bind(function(){return this.generators.fetch()},this))},onStatusConversionClick:function(e){e.preventDefault(),Object(u.a)("conversion",{serverID:this.model.id})}});t.a=m},function(e,t){e.exports=function(){return""}},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(633),o=n.n(r),s=n(10),l=n.n(s),c=n(97),u=n(3221),d=n(3223),p=c.a.extend({tagName:"ol",
className:"list media-list playlist-items",itemView:d.a,emptyView:u.a,sorted:!0,onRender:function(){this.sortable&&this.sortable.destroy(),this.sortable=new o.a(this.el,{onUpdate:l.a.bind(this.onItemMove,this),handle:".sortable-handle",animation:200,scroll:!0,scrollSensitivity:100,scrollSpeed:2})},onClose:function(){this.sortable&&this.sortable.destroy()},onItemMove:function(e){var t=a()(e.item).data("generator-id"),n=a()(e.item).prev().data("generator-id");this.collection.parent.moveItem(t,n)}
});t.a=p},function(e,t,n){"use strict";var i=n(22),a=n(3222),r=n.n(a),o=i.a.ItemView.extend({template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<div class="row row-padded"> <h4 class="text-muted text-center"> <p>'+l(i(n(5)).call(t,'Choose "Optimize..." on items in your library and optimized versions will appear here.',{hash:{},data:o}))+"</p> <p>"+l(i(n(5)).call(t,"Monitor conversion progress in {1}Conversion Activity{2}.",'<a class="status-conversion-btn" href="#">',"</a>",{hash:{},data:o}))+"</p> </h4> </div> "})},function(e,t,n){"use strict"
;var i=n(22),a=n(19),r=n(43),o=n(822),s=n(3),l=n(3224),c=n(3225),u=n(696),d=n(3243),p=n(3249),h=n.n(p),f=i.a.ItemView.extend({className:"striped-list-item media-list-item playlist-item version-generator-item",tagName:"li",template:h.a,ui:{poster:".media-poster",status:".generator-status"},events:{"click .playlist-inner-item":"onClick","click .retry-btn":"onRetryClick","click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},attributes:function(){return{
"data-generator-id":this.model.id}},initialize:function(e){this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.status=this.model.get("status");this.compositeImage=new c.a({model:this.model,width:o.a.getPosterWidth("movie",60),height:60,rows:1,columns:1}),this.listenTo(this.transcodeJobs,"reset add remove",this.onTranscodeJobsChange)},resetState:function(){var e=["converting",l.a.PENDING,l.a.COMPLETE,l.a.FAILED];this.ui.status.removeClass(e.join(" "))},getState:function(e){
return this.transcodeJobs.findWhere({generatorID:this.model.id})?"converting":e.get("itemsFailedCount")>0?l.a.FAILED:e.get("state")},bindings:{".generator-title":{modelAttribute:"title"},".generator-target":{modelAttribute:"target"},".generator-status":{model:"status",modelAttribute:"state",modelListeners:["state","itemsFailedCount"],manual:!0,formatter:function(e,t){this.resetState(),t.addClass(this.getState(this.status))}},".generator-status-failed-message":{model:"status",
modelAttribute:"itemsFailedCount",formatter:function(e){return 1===e?Object(s.default)("1 failed item"):Object(s.default)("{1} failed items",e)}},".retry-btn":{model:"status",modelAttribute:"state",modelListeners:["state","itemsFailedCount"],manual:!0,autohide:function(e){return this.getState(this.status)===l.a.FAILED}}},onRender:function(){this.compositeImage.setElement(this.ui.poster)},onClose:function(){this.compositeImage.close()},onTranscodeJobsChange:function(){
var e=this.getState(this.status);this.resetState(),this.ui.status.addClass(e)},onClick:function(e){e.preventDefault(),a.a.trigger("show:modal",new d.a({model:this.model,listModel:this.model.get("children"),transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}))},onRetryClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),r.a.execute("reprocessVersionGenerator",{generator:this.model})},onEditClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),
a.a.trigger("show:modal",new u.a({model:this.model}))},onDeleteClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),r.a.execute("deleteVersionGenerator",{generator:this.model})}});t.a=f},function(e,t,n){"use strict";var i={PENDING:"pending",FAILED:"failed",COMPLETE:"complete",failureCodes:{INVALID_PATH:"invalidPath",DISK_FULL:"diskFull",DISK_UNWRITABLE:"diskUnwritable"}};t.a=i},function(e,t,n){"use strict";var i=n(367),a=n(18),r=n(623),o=n(431),s=o.a.extend({background:!0,
setup:function(e){this.model=e.model,e.noPlaceholder||(this.placeholderClass=r.a.playlist);var t=Object(i.a)(),n={width:Math.round((e.width||e.height||256)*t),height:Math.round((e.height||e.width||256)*t),rows:e.rows||2,cols:e.columns||2,border:e.border||0,media:e.media||"thumb",repeat:e.unique?0:1},o=this.model.get("composite");o&&(this.url=this.model.server.resolveUrl(a.join(o,n),{appendToken:!0}))}});t.a=s},function(e,t,n){"use strict";var i=n(246),a=n(365),r=n(3227),o=i.a.extend({model:r.a,
url:"/clients/profiles?type="+a.a.LOCAL,parse:function(e){return this.convert(e,"Profile")}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({idAttribute:"title",whitelistedAttrs:["title","selected"],convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);return o.a.parseBoolean(t,"selected"),t},parse:function(e,t){var n=this.convert(e);return n=a.a.pick(n,this.whitelistedAttrs)}});t.a=s},function(e,t,n){"use strict"
;var i=n(246),a=n(365),r=n(3229),o=i.a.extend({model:r.a,url:"/library/tags?type="+a.a.LOCAL,comparator:function(e){return e.get("MediaSettings").maxVideoBitrate},parse:function(e){return this.convert(e,"Tag")}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({name:"VersionTargetModel",whitelistedAttrs:["id","tag","tagType","MediaSettings","Device"],convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);return o.a.parseInteger(t,"id"),t},
parse:function(e,t){var n=this.convert(e);return n=a.a.pick(n,this.whitelistedAttrs)}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(3231),r=n.n(a),o=i.a.ItemView.extend({className:"modal-body",template:r.a,events:{"click .try-again-link":"onTryAgainClick"},serializeData:function(){return{status:this.options.status}},onTryAgainClick:function(e){e.preventDefault(),this.triggerMethod("request:state","loading")}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=" "+p((n=e&&e.status,typeof n===d?n.apply(e):n))+" "}function l(e,t){var a="";return a+=" "+p(i(n(5)).call(e,"There was a problem preparing for optimization.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d="function",p=this.escapeExpression,h=this
;return u+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-error-icon"><i class="glyphicon circle-exclamation-mark"></i></p> </div> <div class="col-sm-8"> <h4> ',c=a.if.call(t,t&&t.status,{hash:{},inverse:h.program(3,l,o),fn:h.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=' </h4> <h4><a class="try-again-link" href="#">'+p(i(n(5)).call(t,"Try again",{hash:{},data:o}))+"</a></h4> </div> </div> "})},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(514),s=n(268),l=n(513),c=n(102),u=n(3),d=n(518),p=n(3233),h=n(1180),f=n(3235),v=n(3237),g=n.n(v),m=i.a.Layout.extend({template:g.a,ui:{submitBtn:".submit-btn"},regions:{policyRegion:".policy-region",targetsRegion:".targets-region",locationRegion:".location-region"},events:{"change input[name=title]":"onTitleChange","submit #convert-form":"onSubmit"},initialize:function(e){if(this.playlist=e.playlist,this.targets=e.targets,this.profiles=e.profiles,this.model){
this.tempModel=this.model.clone();var t=this.model.get("Location").librarySectionID;if(t){var n=new o.a({key:t},{server:this.model.server,onlyIfCached:!0});r.a.isEmpty(n)||(this.tempModel.section=n)}}else{var i,a=e.item,c=e.items,u=a.has("childrenKey")?a.get("children"):a,p=a.server;if(a.get("isSection"))i=a;else{var h=Object(l.a)(a);r.a.isEmpty(h)||(i=h)}this.tempModel=new d.a({title:s.a.title(a,{items:c}),targetTagID:this.targets.first().id,Location:{uri:s.a.uri(u,{items:c})}},{server:p,
section:i})}},serializeData:function(){return{conversionItem:this.tempModel.toJSON(),isNew:this.tempModel.isNew(),showRemuxOnlyWarning:this.tempModel.server.get("transcoderVideoRemuxOnly")}},onRender:function(){this.policyRegion.show(new h.a({model:this.tempModel,isSync:!1,isCloudSync:!1})),this.targetsRegion.show(new f.a({model:this.tempModel,targets:this.targets,profiles:this.profiles})),this.locationRegion.show(new p.a({model:this.tempModel}))},onTitleChange:function(e){
this.tempModel.set("title",e.currentTarget.value)},onSubmit:function(e){e.preventDefault();var t=this.ui.submitBtn;if(!t.hasClass("active")){if(t.addClass("active"),!this.tempModel.get("targetTagID")&&!this.tempModel.get("target")){var n=this.tempModel.get("Device");this.tempModel.set("target",Object(u.default)("Custom: {1}",n.profile))}var i=this.playlist.addContent(this.tempModel);i.done(this.whenRendered(function(){if(this.model){var e=r.a.omit(this.tempModel.toJSON(),"children")
;this.model.set(this.model.parse(e))}this.trigger("request:nextState")})),i.fail(this.whenRendered(function(e){var t=e.responseText,n=c.a.parseXML(t),i=n&&n.status;this.trigger("request:state","error",i)}))}}});t.a=m},function(e,t,n){"use strict";var i=n(22),a=n(3234),r=n.n(a),o=i.a.ItemView.extend({className:"convert-location-container form-group",template:r.a,events:{"change select[name=storageLocation]":"onLocationChange"},serializeData:function(){return{disableLocation:!this.model.isNew(),
selectedLocationID:this.model.get("locationID"),locations:this.model.section&&this.model.section.get("locations").toJSON()}},onLocationChange:function(e){this.model.set("locationID",parseInt(e.currentTarget.value,10))}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"disabled"}function l(e,t){return"selected"}function c(e,t,a){var r,o="";return o+=' <option value="'+h((r=e&&e.id,
typeof r===p?r.apply(e):r))+'" ',r=i(n(34)).call(e,a&&a.selectedLocationID,e&&e.id,{hash:{},inverse:f.noop,fn:f.program(3,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+h(i(n(1445)).call(e,e&&e.path,50,20,{hash:{},data:t}))+"</option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p="function",h=this.escapeExpression,f=this;return d+='<label class="control-label" for="convert-storage-location">'+h(i(n(5)).call(t,"Version storage location",{hash:{},data:o
}))+'</label> <select id="convert-storage-location" class="storage-location-select" name="storageLocation" ',u=a.if.call(t,t&&t.disableLocation,{hash:{},inverse:f.noop,fn:f.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+='> <option value="-1" ',u=i(n(34)).call(t,t&&t.selectedLocationID,-1,{hash:{},inverse:f.noop,fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+=">"+h(i(n(5)).call(t,"In folders with original items",{hash:{},data:o}))+"</option> ",u=a.each.call(t,t&&t.locations,{hash:{},
inverse:f.noop,fn:f.programWithDepth(5,c,o,t),data:o}),(u||0===u)&&(d+=u),d+=' </select> <p class="help-block">'+h(i(n(5)).call(t,'A "Plex Versions" folder will be created in your chosen location.',{hash:{},data:o}))+"</p> "})},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(1181),s=n(146),l=n(3236),c=n.n(l),u=i.a.ItemView.extend({className:"convert-target-container form-group",template:c.a,ui:{targetTitleInput:".convert-target-title"},events:{
"change select[name=target]":"onTargetChange","keydown input[name=targetTitle]":"onTitleKeyDown","change input[name=targetTitle]":"onTitleChange","change select[name=targetProfile]":"onProfileChange","change select[name=targetQuality]":"onQualityChange"},initialize:function(e){this.targets=e.targets,this.profiles=e.profiles;var t=this.model.get("Device").profile;this.selectedProfile=t?this.profiles.get(t):this.profiles.findWhere({selected:!0}),
this.availableCustomQualities=s.a.getAvailableQualities({lowestQualityIndex:o.a}).reverse();var n=this.model.get("mediaSettings").get("maxVideoBitrate");if(n){var i=s.a.getNearestIndexToBitrate(n);this.selectedCustomQuality=s.a.getQualityByIndex(i)}else this.selectedCustomQuality=r.a.first(this.availableCustomQualities);this.model.isNew()||this.model.get("targetTagID")||this.$el.addClass("show-custom-target")},serializeData:function(){return{item:this.model.toJSON(),
targets:this.targets.toJSON(),disableTarget:!this.model.isNew(),profiles:this.profiles.toJSON(),selectedProfile:this.selectedProfile.toJSON(),availableCustomQualities:this.availableCustomQualities,selectedCustomQuality:this.selectedCustomQuality}},updateDeviceProfile:function(e){this.model.get("Device").profile=this.selectedProfile.get("title")},updateMediaSettings:function(e){this.model.get("mediaSettings").set({videoQuality:e.videoQuality,videoResolution:e.videoResolution,
maxVideoBitrate:e.bitrate})},onTargetChange:function(e){var t=parseInt(e.currentTarget.value,10);t>-1?(this.model.unset("target"),this.model.set({targetTagID:t,Device:{}}),this.model.get("mediaSettings").restoreDefaults()):(this.model.set("target",this.ui.targetTitleInput.val()),this.model.unset("targetTagID"),this.updateDeviceProfile(this.selectedProfile),this.updateMediaSettings(this.selectedCustomQuality)),this.$el.toggleClass("show-custom-target",-1===t)},onTitleKeyDown:function(e){
190===e.which&&0===e.currentTarget.selectionStart&&e.preventDefault()},onTitleChange:function(e){this.model.set("target",e.currentTarget.value)},onProfileChange:function(e){this.selectedProfile=this.profiles.findWhere({title:e.currentTarget.value}),this.updateDeviceProfile(this.selectedProfile)},onQualityChange:function(e){var t=parseInt(e.currentTarget.value,10);this.selectedCustomQuality=s.a.getQualityByIndex(t),this.updateMediaSettings(this.selectedCustomQuality)}});t.a=u},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"disabled"}function l(e,t,r){var o,s="";return s+=' <option value="'+v((o=e&&e.id,typeof o===g?o.apply(e):o))+'" ',o=i(n(34)).call(e,(o=r&&r.item,null==o||!1===o?o:o.targetTagID),e&&e.id,{hash:{},inverse:m.noop,fn:m.program(4,c,t),data:t}),(o||0===o)&&(s+=o),s+="> "+v((o=e&&e.tag,typeof o===g?o.apply(e):o)),o=a.if.call(e,(o=e&&e.mediaSettings,
null==o||!1===o?o:o.videoResolution),{hash:{},inverse:m.noop,fn:m.program(6,u,t),data:t}),(o||0===o)&&(s+=o),s+=" </option> "}function c(e,t){return"selected"}function u(e,t){var a="";return a+=" - "+v(i(n(519)).call(e,e&&e.mediaSettings,{hash:{},data:t}))}function d(e,t,a){var r,o="";return o+=' <option value="'+v((r=e&&e.title,typeof r===g?r.apply(e):r))+'" ',r=i(n(34)).call(e,(r=a&&a.selectedProfile,null==r||!1===r?r:r.title),e&&e.title,{hash:{},inverse:m.noop,fn:m.program(4,c,t),data:t}),
(r||0===r)&&(o+=r),o+="> "+v((r=e&&e.title,typeof r===g?r.apply(e):r))+" </option> "}function p(e,t,a){var r,o="";return o+=' <option value="'+v((r=e&&e.index,typeof r===g?r.apply(e):r))+'" ',r=i(n(34)).call(e,(r=a&&a.selectedCustomQuality,null==r||!1===r?r:r.index),e&&e.index,{hash:{},inverse:m.noop,fn:m.program(4,c,t),data:t}),(r||0===r)&&(o+=r),o+="> "+v(i(n(519)).call(e,e,{hash:{},data:t}))+" </option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var h,f="",v=this.escapeExpression,g="function",m=this;return f+='<select class="convert-target-select" name="target" ',h=a.if.call(t,t&&t.disableTarget,{hash:{},inverse:m.noop,fn:m.program(1,s,o),data:o}),(h||0===h)&&(f+=h),f+="> ",h=a.each.call(t,t&&t.targets,{hash:{},inverse:m.noop,fn:m.programWithDepth(3,l,o,t),data:o}),(h||0===h)&&(f+=h),f+=' <option value="-1" ',h=a.unless.call(t,(h=t&&t.item,null==h||!1===h?h:h.targetTagID),{hash:{},inverse:m.noop,fn:m.program(4,c,o),data:o}),
(h||0===h)&&(f+=h),f+=">"+v(i(n(5)).call(t,"Custom",{hash:{},data:o}))+'</option> </select> <div class="convert-custom-target-container"> <input type="text" class="convert-target-title form-control" name="targetTitle" class="form-control" value="'+v((h=t&&t.item,h=null==h||!1===h?h:h.target,typeof h===g?h.apply(t):h))+'" placeholder="'+v(i(n(5)).call(t,"Quality Name",{hash:{},data:o}))+'"> <select class="convert-target-profile-select" name="targetProfile"> ',h=a.each.call(t,t&&t.profiles,{
hash:{},inverse:m.noop,fn:m.programWithDepth(8,d,o,t),data:o}),(h||0===h)&&(f+=h),f+=' </select> <select class="convert-target-quality-select" name="targetQuality"> ',h=a.each.call(t,t&&t.availableCustomQualities,{hash:{},inverse:m.noop,fn:m.programWithDepth(10,p,o,t),data:o}),(h||0===h)&&(f+=h),f+=' </select> </div> <p class="help-block">'+v(i(n(5)).call(t,"Plex will convert your media to this quality. Each version will be stored in a separate file.",{hash:{},data:o}))+"</p> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hidden"}function l(e,t){return p(i(n(5)).call(e,"Optimize",{hash:{},data:t}))}function c(e,t){return p(i(n(5)).call(e,"Save",{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p=this.escapeExpression,h=this
;return d+='<form id="convert-form" class="settings-container"> <div class="modal-body"> <div class="form-group ',u=a.unless.call(t,t&&t.showRemuxOnlyWarning,{hash:{},inverse:h.noop,fn:h.program(1,s,o),data:o}),(u||0===u)&&(d+=u),
d+='"> <p class="convert-warning help-block"> <i class="convert-warning-icon glyphicon circle-exclamation-mark"></i> <span class="convert-warning-text"> '+p(i(n(5)).call(t,"Video optimization may take a long time to complete on this server. You'll be able to use Plex normally while you wait.",{hash:{},data:o}))+' </span> </p> </div> <div class="form-group"> <label class="control-label" for="convert-title">'+p(i(n(5)).call(t,"Title",{hash:{},data:o
}))+'</label> <input type="text" id="convert-title" name="title" class="form-control" value="'+p((u=t&&t.conversionItem,u=null==u||!1===u?u:u.title,"function"==typeof u?u.apply(t):u))+'" placeholder="'+p((u=t&&t.conversionItem,u=null==u||!1===u?u:u.title,
"function"==typeof u?u.apply(t):u))+'"> </div> <div class="policy-region"></div> <div class="targets-region"></div> <div class="location-region"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">'+p(i(n(5)).call(t,"Cancel",{hash:{},data:o}))+'</button> <button type="submit" class="submit-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">',u=a.if.call(t,t&&t.isNew,{hash:{},
inverse:h.program(5,c,o),fn:h.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+="</span> </button> </div> </form> "})},function(e,t,n){"use strict";var i=n(22),a=n(3239),r=n.n(a),o=i.a.ItemView.extend({className:"modal-body loading-container",template:r.a});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="loading loading-inline"></div> '})},function(e,t,n){"use strict"
;var i=n(22),a=n(182),r=n(3241),o=n.n(r),s=i.a.ItemView.extend({className:"modal-body",template:o.a,events:{"click .status-link":"onStatusClick"},onStatusClick:function(e){e.preventDefault(),this.triggerMethod("request:nextState"),Object(a.a)("conversion",{serverID:this.options.server.id})}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var s="",l=this.escapeExpression;return s+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-success-icon"><i class="glyphicon ok-2"></i></p> </div> <div class="col-sm-8"> <h4>'+l(i(n(5)).call(t,"This media is being converted.",{hash:{},data:o}))+"</h4> <h4>"+l(i(n(5)).call(t,"Watch the status of the conversion {1}here{2}.",'<a class="status-link" href="#">',"</a>",{hash:{},data:o}))+"</h4> </div> </div> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon restart"></i> '+(0,this.escapeExpression)(i(n(5)).call(t,"Optimize",{
hash:{},data:o}))+'</h4> </div> <div class="modal-body-region"></div> </div> </div> '})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(1446),o=n(3),s=n(429),l=n(3244),c=n(96),u=n(3248),d=n.n(u),p=c.a.extend({mixins:[s.a],name:"versionGeneratorMetadataModal",className:"version-generator-metadata-modal modal fade",template:d.a,pageSize:20,scrollThreshold:50,ui:{body:".modal-body",loading:".loading",errorMessage:".error-message"},regions:{listRegion:".list-region"},initialize:function(e){
this.status=this.model.get("status"),this.listModel=e.listModel,this.collection=this.listModel.get("metadataItems"),this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.handleScroll=a.a.throttle(this.whenRendered(this.onScroll),100)},states:{base:{},loading:{onEnter:function(){this.ui.loading.removeClass("hidden")},onExit:function(){this.ui.loading.addClass("hidden")}},error:{onEnter:function(){this.ui.errorMessage.removeClass("hidden")},onExit:function(){
this.ui.errorMessage.addClass("hidden")}}},bindings:{".generator-title":{modelAttribute:"title"},".generator-items-count":{model:"status",modelAttribute:"itemsCount",formatter:function(e){return 1===e?Object(o.default)("{1} item",e):Object(o.default)("{1} items",e)}},".generator-total-size":{model:"status",modelAttribute:"totalSize",formatter:function(e){return e?Object(r.a)(e):Object(o.default)("0 files")}},".generator-failure-container":{model:"status",modelAttribute:"failure",manual:!0,
autohide:function(e){return!!e}},".generator-failure-message":{model:"status",modelAttribute:"failure",formatter:function(e){return e}}},populatePage:function(){this.enterState("loading");var e=this.listModel.populateRange({start:0,end:this.listModel.get("populatedRange").end+this.pageSize});return e.done(this.whenRendered(function(){this.enterState("base")})),e.fail(this.whenRendered(function(){this.enterState("error")})),e},onRender:function(){c.a.prototype.onRender.apply(this,arguments),
this.ui.body.on("scroll",this.handleScroll),this.model.fetch(),this.populatePage(),this.listRegion.show(new l.a({collection:this.collection,itemViewOptions:{generator:this.model,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}}))},onClose:function(){this.ui.body.off("scroll",this.handleScroll),this.collection.reset()},onScroll:function(){if("error"!==this.currentState){
this.ui.body.prop("scrollHeight")-this.ui.body.innerHeight()-this.ui.body.scrollTop()<this.scrollThreshold&&this.listModel.get("populatedRange").end<this.listModel.get("totalSize")&&this.populatePage()}}});t.a=p},function(e,t,n){"use strict";var i=n(97),a=n(3245),r=i.a.extend({tagName:"ul",className:"list version-generator-metadata-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(43),r=n(360),o=n(3),s=n(248),l=n(3246),c=n(1221),u=n(3247),d=n.n(u),p=i.a.Layout.extend({
tagName:"li",className:"striped-list-item version-generator-metadata-list-item",template:d.a,ui:{poster:".media-poster"},regions:{statusRegion:".conversion-status-region"},events:{"click .enable-btn":"onEnableClick","click .retry-btn":"onRetryClick"},modelEvents:{"change:processingState":"onProcessingStateChange"},initialize:function(e){this.generator=e.generator,this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.type=this.model.get("type"),this.image=new s.a({
model:this.model,type:"movie",height:60,modelAttribute:"episode"===this.type?"grandparentThumb":"thumb"})},bindings:{".generator-metadata-title":{modelAttribute:"title",formatter:function(e){return this.model.get("grandparentTitle")||this.model.get("parentTitle")||e}},".generator-metadata-episode-index":{modelAttribute:"index",autohide:!0,formatter:function(e){if("episode"===this.type)return Object(r.a)({seasonIndex:this.model.get("parentIndex"),episodeIndex:e,
date:this.model.get("originallyAvailableAt"),noLeadingZero:!0,separator:" \xb7 "})}},".generator-metadata-year":{modelAttribute:"year",autohide:!0,formatter:function(e){if("movie"===this.type)return e}},".conversion-status-failed-message":{modelAttribute:"processingStateContext",formatter:function(e){return this.getErrorMessage(e)}}},getErrorMessage:function(e){var t=l.a.contexts;switch(e){case t.FILE_UNAVAILABLE:return Object(o.default)("File unavailable");case t.METADATA_ERROR:
return Object(o.default)("Invalid metadata");case t.PROFILE_ERROR:return Object(o.default)("Invalid profile");case t.ANALYSIS_ERROR:return Object(o.default)("Unable to analyze")}return Object(o.default)("Unable to convert")},onRender:function(){this.image.setElement(this.ui.poster),this.statusRegion.show(new c.a({model:this.model,generator:this.generator,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting,initialState:this.model.get("processingState"),
initialErrorMessage:this.getErrorMessage(this.model.get("processingStateContext"))}))},onClose:function(){this.image.close()},onProcessingStateChange:function(e,t){this.statusRegion.currentView&&this.statusRegion.currentView.enterState(t)},onEnableClick:function(e){e.preventDefault(),a.a.execute("enableVersionGenerator",{generator:this.model.generator,ratingKey:this.model.id})},onRetryClick:function(e){e.preventDefault(),a.a.execute("reprocessVersionGenerator",{generator:this.model.generator,
ratingKey:this.model.id})}});t.a=p},function(e,t,n){"use strict";var i={PENDING:"pending",ERROR:"error",PROCESSED:"processed",contexts:{OK:"ok",FILE_UNAVAILABLE:"sourceFileUnavailable",METADATA_ERROR:"sourceFileMetadataError",PROFILE_ERROR:"clientProfileError",IO_ERROR:"ioError",TRANSCODER_ERROR:"transcoderError",UNKNOWN_ERROR:"unknownError",ANALYSIS_ERROR:"mediaAnalysisError",DOWNLOAD_FAILED:"downloadFailed",CANNOT_TRANSCODE:"cannotTranscode"}};t.a=i},function(e,t,n){var i=n(15)
;e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<div class="striped-list-inner-item"> <div class="generator-poster-container"> <div class="media-poster"></div> </div> <div class="conversion-status-region"></div> <div class="generator-metadata-title">',(o=n.title)?r=o.call(t,{hash:{},data:a}):(o=t&&t.title,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),
s+=l(r)+'</div> <div class="generator-metadata-episode-index generator-metadata-subtitle"></div> <div class="generator-metadata-year generator-metadata-subtitle">',(o=n.year)?r=o.call(t,{hash:{},data:a}):(o=t&&t.year,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+"</div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var s=""
;return s+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon restart"></i> <span class="generator-title"></span></h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <h4> <span class="generator-failure-container pull-right"> <i class="generator-failure-icon glyphicon circle-exclamation-mark text-danger"></i> <span class="generator-failure-message text-muted"></span> </span> <span class="generator-items-count"></span> &middot; <span class="generator-total-size"></span> </h4> <div class="list-region"></div> <div class="list-feedback-container"> <span class="loading hidden"></span> <span class="error-message text-muted hidden"> '+(0,
this.escapeExpression)(i(n(5)).call(t,"There was a problem loading these items.",{hash:{},data:o}))+" </span> </div> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<a class="show-actions playlist-inner-item '+c((s=t&&t.type,
"function"==typeof s?s.apply(t):s))+'" href="#"> <div class="media-actions media-reorder"> <div class="sortable-handle btn-gray-link"><i class="glyphicon show-lines"></i></div> </div> <div class="generator-poster-container"> <div class="media-poster"></div> </div> <div class="media-actions generator-actions"> <button class="retry-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon repeat"></i></button> <button class="edit-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon pencil"></i></button> <button class="delete-btn media-action-btn btn-gray-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> <div class="media-item"> <div class="media-details"> <div class="generator-title col-lg"></div> <div class="generator-target col-md col-secondary"></div> <div class="generator-status col-md col-secondary"> <div class="generator-status-container generator-status-complete"> <i class="generator-status-icon glyphicon ok-2 text-success"></i> '+c(i(n(5)).call(t,"Complete",{
hash:{},data:o}))+' </div> <div class="generator-status-container generator-status-failed"> <i class="generator-status-icon glyphicon circle-exclamation-mark text-danger"></i> <span class="generator-status-failed-message">'+c(i(n(5)).call(t,"Failed",{hash:{},data:o}))+'</span> </div> <div class="generator-status-container generator-status-converting"> <i class="generator-status-icon glyphicon restart"></i> '+c(i(n(5)).call(t,"Converting",{hash:{},data:o
}))+' </div> <div class="generator-status-container generator-status-pending"> <i class="generator-status-icon glyphicon clock"></i> '+c(i(n(5)).call(t,"Waiting",{hash:{},data:o}))+" </div> </div> </div> </div> </a> "})},function(e,t,n){"use strict";var i=n(22),a=n(160),r=n(3251),o=n.n(r),s=i.a.ItemView.extend({template:o.a,serializeData:function(){return{isTranscoderRequired:!this.model.get("transcoderVideo"),isUpgradeRequired:!this.model.supports("streamReady"),minServerVersion:a.a.streamReady
}}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+h(i(n(5)).call(e,"Optimized Versions requires Plex Media Server {1} or later.",e&&e.minServerVersion,{hash:{},data:t}))+" "}function l(e,t){var n;return n=a.if.call(e,e&&e.isTranscoderRequired,{hash:{},inverse:f.program(6,u,t),fn:f.program(4,c,t),data:t}),n||0===n?n:""}function c(e,t){var a=""
;return a+=" "+h(i(n(5)).call(e,"This Plex Media Server platform is not capable of converting video.",{hash:{},data:t}))+" "}function u(e,t){var a="";return a+=" "+h(i(n(5)).call(e,"There was a problem requesting media versions from this server.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h=this.escapeExpression,f=this;return p+='<div class="row row-padded"> <h4 class="text-muted text-center"> ',d=a.if.call(t,t&&t.isUpgradeRequired,{
hash:{},inverse:f.program(3,l,o),fn:f.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=" </h4> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<p class="versions-status-message hidden"> <button class="delete-all-btn btn btn-sm btn-danger pull-right">'+l(i(n(5)).call(t,"Delete All Versions",{
hash:{},data:o}))+"</button> "+l(i(n(5)).call(t,"Monitor conversion progress in {1}Conversion Activity{2}.",'<a class="status-conversion-btn" href="#">',"</a>",{hash:{},data:o}))+' </p> <div class="background-processing-list-region"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=' <div class="filter-bar-right"> <button class="toggle-advanced-btn btn btn-sm btn-default basic-setting">'+u(i(n(5)).call(e,"Show Advanced",{hash:{},data:t}))+'</button> <button class="toggle-advanced-btn btn btn-sm btn-default advanced-setting">'+u(i(n(5)).call(e,"Hide Advanced",{hash:{},data:t}))+"</button> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this;return c+='<div class="filter-bar"> ',
l=a.unless.call(t,t&&t.shared,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=' </div> <div class="settings-row row"> <div class="pane-region col-sm-12 col-md-12"></div> </div> '})},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,n=e.onReloadHttpPress,i=e.onReloadHttpAlwaysPress;return r()(l.a,{className:y.a.emptyPage},void 0,r()("div",{className:y.a.content},void 0,r()("img",{className:y.a.pmsLogo,src:f.a}),r()("div",{className:y.a.title
},void 0,Object(v.default)('The server "{serverName}" does not allow secure connections',{serverName:t})),r()("div",{className:y.a.description},void 0,Object(v.default)('Its "Secure connections" setting may be set to disabled, or you may need to adjust some settings on your network.'),b,r()(g.a,{message:Object(v.default)("You can {openLink}learn more about secure connections here{closeLink}."),tags:[{open:"openLink",close:"closeLink",component:u.a,
to:"https://support.plex.tv/hc/en-us/articles/206225077-How-to-Use-Secure-Server-Connections",kind:d.PRIMARY,target:"_blank"}]}),I,Object(v.default)("You can also allow insecure connections now, which will reload the app insecurely.")),r()(c.a,{className:y.a.button,kind:d.PRIMARY,size:p.LARGE,onPress:n},void 0,Object(v.default)("Allow once")),r()(c.a,{className:y.a.button,kind:d.PRIMARY,size:p.LARGE,onPress:i},void 0,Object(v.default)("Allow always"))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(80)),c=n(42),u=n(20),d=n(51),p=n(52),h=n(469),f=n.n(h),v=n(3),g=n(187),m=n(3255),y=n.n(m),b=r()("br",{}),I=r()("br",{});t.a=i},function(e,t){e.exports={emptyPage:"InsecureFallbackChoicePage-emptyPage-3RqTd EmptyPage-emptyPage-2AM9u",content:"InsecureFallbackChoicePage-content-hP24c EmptyPage-content-10PgB",title:"InsecureFallbackChoicePage-title-fSQV1 EmptyPage-title-264Jp",description:"InsecureFallbackChoicePage-description-3qJXg EmptyPage-description-oYWtW",
pmsLogo:"InsecureFallbackChoicePage-pmsLogo-rf-KR",button:"InsecureFallbackChoicePage-button-Hd0hl"}},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(function(e,t){return t.settingsSection},function(e,t){return t.settingsGroup},function(e,t){var n=l.a.findWhere(u.a,{key:e});return l.a.findWhere(n.groups,{key:t}).title()})}function a(){return Object(o.createSelector)(Object(c.a)(),i(),function(e,t){return{friendlyName:e?e.friendlyName:"",sourceTitle:e?e.sourceTitle:"",
isShared:!(!e||!e.isShared),settingsTitle:t}})}var r=n(11),o=n(4),s=(n.n(o),n(10)),l=n.n(s),c=n(35),u=n(680),d=n(3257);t.a=Object(r.connect)(a)(d.a)},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,n=e.sourceTitle,i=e.settingsTitle,a=e.isShared,o=a&&n?t+" ("+n+")":t;return r()(c.a,{},void 0,o,u,i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(258),u=r()(l.b,{});t.a=i},function(e,t){e.exports={header:"SettingsPageHeader-header-1ugtI"}},function(e,t){e.exports={
content:"SettingsPage-content-1vKVE PageContent-pageContent-16mK6"}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(3261)),r=Object(i.createSelector)(a.a,function(e){return e.reduce(function(e,t){return t.isShared&&!t.allowSync||t.isCloudSyncServer||t.isOutOfDate||e.push(t.entityID),e},[])});t.a=r},function(e,t,n){"use strict";var i=n(323),a=n(394),r=Object(i.a)(a.a,function(e){return e.filter(function(e){return e.isPrimaryEligible})});t.a=r},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(1447),v=n(958),g=n(47),m=n(925),y=n(30),b=n(3),I=n(318),S=n(1448),M=n(837),D=n(3265),C=n(3272),j=n(3277),P=n(1454),O=n(1455),T=n(3308),E=n.n(T),w="SettingsSidebarScrollTop",A=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));x.call(a);var r=m.a.get(w);return a.state={isMeasured:!1,scrollTop:r||0,isMenuOpen:!1},a._serverMenuButtonID=Object(g.a)(),a}
return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.manageableServerEntityIDs,n=e.serverMenuServerEntityID,i=e.selectedKey,r=e.isPlexCloudVisible,o=e.isWebhooksVisible,s=e.isUserSignedIn,l=e.isUserUnrestricted,c=e.isServerMenuServerEntityIDSelected,u=e.showAdvancedSettings,d=e.userTitle,g=e.settingsSection,m=e.settingsGroup,T=this.state,w=T.scrollTop,A=T.isMenuOpen,x=Object(M.c)();return a()(I.a,{page:y.Z,isDelegated:!0},void 0,a()(h.a,{ignorePosition:!0,ignoreWidth:!0,
onMeasure:this.onMeasure},void 0,a()(f.a,{},void 0,this.state.isMeasured?a()(v.a,{smoothScroll:!1,scrollTop:w,onScrollPositionChange:this.onScrollPositionChange},void 0,a()("div",{className:E.a.sidebarContent},void 0,s?a()(P.a,{title:d},void 0,a()(O.a,{selectableKey:"account",selectedKey:i,to:"#!/settings/account",title:Object(b.default)("Account")}),r&&l?a()(O.a,{selectableKey:"plex-cloud",selectedKey:i,to:"#!/settings/plex-cloud",title:Object(b.default)("Plex Cloud")}):null,l?a()(O.a,{
selectableKey:"online-media-sources",selectedKey:i,to:"#!/settings/online-media-sources",title:Object(b.default)("Online Media Sources")}):null,l?a()(O.a,{selectableKey:"devices",selectedKey:i,to:"#!/settings/devices",title:Object(b.default)("Authorized Devices")}):null,o&&l?a()(O.a,{selectableKey:"webhooks",selectedKey:i,to:"#!/settings/webhooks",title:Object(b.default)("Webhooks")}):null):null,s?a()(P.a,{title:Object(b.default)("Family & Friends"),selectableKey:"users",selectedKey:i
},void 0,a()(O.a,{selectableKey:"users--home",selectedKey:i,to:"#!/settings/users/home",title:Object(b.default)("Home Users")}),l?a()(O.a,{selectableKey:"users--friends",selectedKey:i,to:"#!/settings/users/friends",title:Object(b.default)("Sharing")}):null):null,a()(P.a,{title:Object(S.a)(),selectableKey:x,selectedKey:i},void 0,a()(O.a,{selectableKey:Object(M.c)("general"),selectedKey:i,to:"#!/settings/web/general",title:Object(b.default)("General")}),a()(O.a,{
selectableKey:Object(M.c)("quality"),selectedKey:i,to:"#!/settings/web/quality",title:Object(b.default)("Quality")}),u?a()(O.a,{selectableKey:Object(M.c)("debug"),selectedKey:i,to:"#!/settings/web/debug",title:Object(b.default)("Debug")}):null,a()(O.a,{selectableKey:Object(M.c)("player"),selectedKey:i,to:"#!/settings/web/player",title:Object(b.default)("Player")})),n?a()(p.Fragment,{},void 0,a()(C.a,{id:this._serverMenuButtonID,serverEntityID:n,isMenuOpen:A,isSelected:c,
onPress:this.onMenuButtonPress}),a()(D.a,{target:this._serverMenuButtonID,serverEntityIDs:t,selectedServerEntityID:n,isOpen:A,settingsSection:g,settingsGroup:m,onMenuClose:this.onMenuClose}),a()(j.a,{serverEntityID:n,selectedKey:i})):null)):null)))},t}(p.Component),x=function(){var e=this;this.onMeasure=function(){e.setState({isMeasured:!0})},this.onScrollPositionChange=function(t){var n=t.scrollTop;e.setState({scrollTop:n},function(){m.a.set(w,n)})},this.onMenuButtonPress=function(){
e.setState({isMenuOpen:!e.state.isMenuOpen})},this.onMenuClose=function(){e.setState({isMenuOpen:!1})}};t.a=A},function(e,t){e.exports={sidebarContainer:"SidebarContainer-sidebarContainer-2RAYT"}},function(e,t){e.exports={scroller:"SidebarScroller-scroller-2wp83"}},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.serverEntityIDs,i=e.selectedServerEntityID,a=e.settingsSection,o=e.settingsGroup,s=e.isOpen,c=e.onMenuClose;return r()(l.a,{className:f.a.serverMenu,target:t,isOpen:s,
scrollerProps:m,maxHeight:g,onMenuClose:c},void 0,n.map(function(e){return r()(u.a,{serverEntityID:e,isSelected:e===i,settingsSection:a,settingsGroup:o},e)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=n(57),u=n(3266),d=n(46),p=n.n(d),h=n(3271),f=n.n(h),v=parseInt(p.a.serverMenuItemHeight,10),g=5*v,m={className:f.a.serverMenuScroller,scrollDirection:c.VERTICAL,autoScroll:!0};t.a=i},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(Object(m.a)(),function(e){return{machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName,sourceTitle:e.sourceTitle,activeConnection:e.activeConnection,isInstallingServerUpdate:e.isInstallingServerUpdate,isConnected:e.isConnected,isUnavailable:e.isUnavailable,isSecure:e.isSecure,isRelayed:e.isRelayed,isSettingsPending:e.pmp.isSettingsPending}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),
n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(35)),y=n(202),b=n(3267),I={dispatchPopulateSettings:y.k},S=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this._populate()},t.prototype.componentDidUpdate=function(e){(!e.isConnected&&this.props.isConnected||!e.isInstallingServerUpdate&&this.props.isInstallingServerUpdate||!e.isUnavailable&&this.props.isUnavailable)&&this._populate()},t.prototype._populate=function(){
var e=this.props,t=e.serverEntityID,n=e.isConnected,i=e.dispatchPopulateSettings;n&&i({serverEntityID:t})},t.prototype.render=function(){var e=this.props,t=(e.serverEntityID,e.dispatchPopulateSettings,r()(e,["serverEntityID","dispatchPopulateSettings"]));return f.a.createElement(b.a,t)},t}(h.Component);t.a=Object(v.connect)(i,I)(S)},function(e,t,n){"use strict";function i(e){
var t=e.isSelected,n=e.activeConnection,i=e.isConnected,a=e.isUnavailable,o=e.isSecure,s=e.isRelayed,p=e.machineIdentifier,f=e.friendlyName,v=e.sourceTitle,g=e.isInstallingServerUpdate,m=e.isSettingsPending,y=e.settingsSection,b=e.settingsGroup,I=Object(l.a)({activeConnection:n,isConnected:i,isRelayed:s,isUnavailable:a,sourceTitle:v}),S=I.isConnecting,M=I.statusWithSource,D=m||S||a;return r()(c.a,{className:D&&h.a.disabled||"",friendlyNameClassName:h.a.friendlyName,detailsClassName:h.a.details,
to:Object(d.a)(p,y||"settings",b||"general"),isDisabled:S,isSelected:t,identifier:p,title:f,details:M},void 0,r()(u.a,{className:h.a.icon,isInstallingServerUpdate:g,isSettingsPending:m,isUnavailable:a,isRelayed:s,isSecure:o,isConnected:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(959)),c=n(561),u=n(1450),d=n(197),p=n(3270),h=n.n(p);t.a=i},function(e,t){e.exports={secureIcon:"ServerStatusIcon-secureIcon-itZ54",alertIcon:"ServerStatusIcon-alertIcon-eSzhd",
warningIcon:"ServerStatusIcon-warningIcon-ZSAqi"}},function(e,t){e.exports={spinner:"ServerSettingsStatusIcon-spinner-zyA9u"}},function(e,t){e.exports={disabled:"ServerSettingsServerMenuItem-disabled-PIAsv",friendlyName:"ServerSettingsServerMenuItem-friendlyName-2eYIl ServerMenuItem-serverMenuFriendlyName-37Gt7",details:"ServerSettingsServerMenuItem-details-soe_s ServerMenuItem-serverMenuDetails-1-Rfq",icon:"ServerSettingsServerMenuItem-icon-3bTVt"}},function(e,t){e.exports={
serverMenu:"ServerSettingsServerMenu-serverMenu-3CI7i MenuContainer-menu-2OAQT",serverMenuScroller:"ServerSettingsServerMenu-serverMenuScroller-2WzFg Menu-menuScroller-1TF6o Scroller-vertical-VScFL"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName,isInstallingServerUpdate:e.isInstallingServerUpdate,isConnected:e.isConnected,isUnavailable:e.isUnavailable,
isSettingsPending:e.pmp.isSettingsPending,isSecure:e.isSecure,isRelayed:e.isRelayed,sourceTitle:e.sourceTitle}})}var a=n(11),r=n(4),o=(n.n(r),n(35)),s=n(3273);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.id,n=e.friendlyName,i=e.sourceTitle,a=e.isConnected,o=e.isInstallingServerUpdate,s=e.isSelected,d=e.isUnavailable,h=e.isSecure,f=e.isSettingsPending,v=e.isRelayed,g=e.isMenuOpen,m=e.onPress,y=void 0;return v&&i?y=Object(l.default)("Indirect ({serverName})",{
serverName:i}):v?y=Object(l.default)("Indirect"):i&&(y=i),r()(c.a,{className:p.a.button,secondaryTitleClassName:p.a.secondaryTitle,id:t,isMenuOpen:g,primaryTitle:n,secondaryTitle:y,isSelected:s,onPress:m},void 0,r()(u.a,{className:p.a.icon,isInstallingServerUpdate:o,isSettingsPending:f,isUnavailable:d,isRelayed:v,isSecure:h,isConnected:a}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(960),u=n(1450),d=n(3276),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.secondaryTitleClassName,i=e.id,a=e.isLoading,o=e.isMenuOpen,s=e.isDisabled,c=e.isSelected,h=e.primaryTitle,v=e.secondaryTitle,g=e.children,m=e.spinnerComponent,y=e.onPress;return r()(u.a,{id:i,className:(t||"")+" "+(s&&f.a.isDisabled||""||""),"aria-haspopup":!s,"data-qa-id":"serverMenuButton",isSelected:c,isDisabled:s,onPress:y},void 0,r()("div",{className:f.a.sidebarMenuButtonContainer},void 0,r()("span",{className:f.a.sidebarMenuTitle},void 0,r()("span",{
className:f.a.sidebarMenuPrimaryTitleContainer},void 0,r()("span",{className:f.a.sidebarMenuPrimaryTitle},void 0,h),!s&&r()(l.a,{direction:o?d.UP:d.DOWN,isSelected:c})),v&&r()("span",{className:n},void 0,v)),a?r()(m,{size:p.SMALL,className:f.a.sidebarMenuSpinner}):g))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(438)),c=n(375),u=n(20),d=n(233),p=n(52),h=n(3275),f=n.n(h);i.defaultProps={className:f.a.sidebarMenuButton,secondaryTitleClassName:f.a.sidebarMenuSecondaryTitle,isMenuOpen:!1,
isSelected:!0,isDisabled:!1,isLoading:!1,spinnerComponent:c.a},t.a=i},function(e,t){e.exports={sidebarMenuButton:"SidebarMenuButton-sidebarMenuButton-khx_P",sidebarMenuButtonContainer:"SidebarMenuButton-sidebarMenuButtonContainer-3c2yQ",sidebarMenuSpinner:"SidebarMenuButton-sidebarMenuSpinner-2cI_m",sidebarMenuTitle:"SidebarMenuButton-sidebarMenuTitle-2If4a",sidebarMenuPrimaryTitleContainer:"SidebarMenuButton-sidebarMenuPrimaryTitleContainer-3-vDD",
sidebarMenuPrimaryTitle:"SidebarMenuButton-sidebarMenuPrimaryTitle-2_fxH",sidebarMenuSecondaryTitle:"SidebarMenuButton-sidebarMenuSecondaryTitle-2jpJL",icon:"SidebarMenuButton-icon-3UrWW",isDisabled:"SidebarMenuButton-isDisabled-Iwcsx"}},function(e,t){e.exports={button:"ServerSettingsServerMenuButton-button-24D7l SidebarMenuButton-sidebarMenuButton-khx_P",secondaryTitle:"ServerSettingsServerMenuButton-secondaryTitle-2Flnd SidebarMenuButton-sidebarMenuSecondaryTitle-2jpJL",
icon:"ServerSettingsServerMenuButton-icon-2pk73"}},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(Object(m.a)(),Object(y.a)(),function(e,t){return{machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName,isShared:e.isShared,isInstallingServerUpdate:e.isInstallingServerUpdate,isConnected:e.isConnected,isUnavailable:e.isUnavailable,isSettingsPending:e.pmp.isSettingsPending,settingsSections:t}})}
var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(35)),y=n(1395),b=n(202),I=n(3278),S={dispatchPopulateSettings:b.k},M=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this._populate()},t.prototype.componentDidUpdate=function(){this._populate()},t.prototype._populate=function(){
var e=this.props,t=e.serverEntityID,n=e.isConnected,i=e.dispatchPopulateSettings;n&&i({serverEntityID:t})},t.prototype.render=function(){var e=this.props,t=(e.isConnected,e.dispatchPopulateSettings,r()(e,["isConnected","dispatchPopulateSettings"]));return f.a.createElement(I.a,t)},t}(h.Component);t.a=Object(v.connect)(i,S)(M)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.machineIdentifier,i=e.selectedKey,a=e.isShared,o=e.isInstallingServerUpdate,s=e.isUnavailable,p=e.isSettingsPending,h=e.settingsSections;return o||s?r()(c.a,{serverEntityID:t}):p?null:h.map(function(e,t){if(a&&1===e.groups.length){var o=e.groups[0];return r()(d.a,{selectableKey:Object(l.a)(n,e.key,o.key),selectedKey:i,title:o.title,to:o.route},t)}return r()(u.a,{title:e.title},t,e.groups.map(function(a,o){return r()(d.a,{selectableKey:Object(l.a)(n,e.key,a.key),
selectedKey:i,title:a.title,to:a.route},""+t+o,a.statusIndicator)}))})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(837)),c=n(1451),u=n(1454),d=n(1455);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.machineIdentifier,i=e.allowChannelAccess,a=e.isFullOwnedServer,o=e.isInstallingServerUpdate,s=e.isConnected,y=e.isClaimed,b=e.isLibrariesPopulated,M=e.librariesError,D=e.contentProviders,C=e.isProvidersPopulated,j=e.providersError,P=e.showRecordingSchedule,O=e.userHasServerDashboardFeature;if(!s||o)return l.a.createElement(m.a,e);var T=!C&&!j,E=!b&&!M;if(T||E)return S
;var w=O?"server-dashboard":"now-playing",A=Object(h.a)(n,"settings","general"),x=Object(h.a)(n,"status",w);return r()("div",{},void 0,a?r()(c.a,{title:Object(u.default)("Manage")},void 0,r()(p.a,{to:x,icon:"plex-icon-status-560",title:Object(u.default)("Status"),"data-qa-id":"sidebarStatus"},"status"),r()(p.a,{to:A,icon:"plex-icon-settings-560",title:Object(u.default)("Settings"),"data-qa-id":"sidebarSettings"},"settings",y?null:r()(d.a,{name:"plex-icon-alert-560",className:I.a.unclaimedIcon,
"aria-label":Object(u.default)("Unclaimed")}))):null,D.length?r()(c.a,{title:Object(u.default)("Live TV & DVR")},void 0,P?r()(p.a,{to:"#!/server/"+encodeURIComponent(n)+"/schedule",icon:"plex-icon-calendar-560",title:Object(u.default)("Recordings"),highlightActiveRoute:!0,"data-qa-id":"sidebarRecordingSchedule"},"schedule"):null,D.map(function(e){return r()(f.a,{serverEntityID:t,providerEntityID:e,machineIdentifier:n},e)})):null,l.a.createElement(v.a,e),r()(g.a,{machineIdentifier:n,
showChannels:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(962),u=n(3),d=n(26),p=n(220),h=n(197),f=n(3285),v=n(3287),g=n(3300),m=n(3302),y=n(1453),b=n(3305),I=n.n(b),S=r()(y.a,{});t.a=i},function(e,t){e.exports={sidebarListHeaderContainer:"SidebarList-sidebarListHeaderContainer-2D2g-",sidebarListHeader:"SidebarList-sidebarListHeader-1t0yz",sidebarListHeaderIcon:"SidebarList-sidebarListHeaderIcon-3Itr_"}},function(e,t){e.exports={
sidebarListItem:"SidebarListItem-sidebarListItem-GdcVs"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.iconClassName,a=e.titleClassName,o=e.iconSrc,l=e.icon,u=e.iconComponent,d=e.iconNode,m=e.title,b=e.showSpinner,I=c()(e,["className","children","iconClassName","titleClassName","iconSrc","icon","iconComponent","iconNode","title","showSpinner"]),S=void 0;return o?S=s()(v.a,{className:y.a.iconImg,src:o}):l?S=s()(u,{name:l}):d&&(S=d),p.a.createElement(f.a,r()({
className:t},I),s()("div",{className:y.a.container},void 0,s()("div",{className:i},void 0,b?s()(h.a,{className:y.a.spinner}):S),m?s()("div",{className:a},void 0,m):null,Object(g.a)(n).length?s()("div",{className:y.a.children},void 0,n):null))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(375),f=n(20),v=n(184),g=n(3283),m=n(3284),y=n.n(m);i.defaultProps={className:y.a.sidebarLink,iconClassName:y.a.icon,titleClassName:y.a.title},t.a=i},function(e,t,n){
"use strict";function i(e){var t=[];return r.a.Children.forEach(e,function(e){r.a.isValidElement(e)&&t.push(e)}),t}t.a=i;var a=n(0),r=n.n(a)},function(e,t){e.exports={sidebarLink:"SidebarLink-sidebarLink-L2OPd Link-default-2XA2b",iconImg:"SidebarLink-iconImg-1grLX",container:"SidebarLink-container-24bhW",icon:"SidebarLink-icon-34JWq",title:"SidebarLink-title-2vaAA",children:"SidebarLink-children-3Lh_R",spinner:"SidebarLink-spinner-3MZY0"}},function(e,t,n){"use strict";function i(e){
return o.a.createElement(h.a,e)}var a=n(1),r=(n.n(a),n(0)),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(10)),u=n.n(c),d=n(239),p=n(54),h=n(3286),f=function(){return Object(l.createSelector)(Object(p.a)(),Object(d.a)(),function(e,t){var n=u.a.pick(e,"identifier","title");return n.isRefreshing=!!t,n})};t.a=Object(s.connect)(f)(i)},function(e,t,n){"use strict";function i(e){return c.c.test(e)?"plex-icon-shows-broadcast-560":"plex-icon-channels-560"}function a(e){
var t=e.machineIdentifier,n=e.identifier,a=e.title,r=e.isRefreshing,s=encodeURIComponent(t),l=encodeURIComponent(n);return o()(u.a,{"data-qa-id":"sidebarProgramGuide",to:"#!/server/"+s+"/provider/"+l,icon:i(n),title:a,showSpinner:r,highlightActiveRoute:!0})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(41)),u=n(220);t.a=a},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(324),b=n(3),I=n(220),S=n(699),M=n(3288),D=n(3292),C=n(3296),j=n(3299),P=n.n(j),O=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.hoverableProps,n=e.serverEntityID,i=e.isFullServer,r=e.isFullOwnedServer,s=e.isHovered,c=e.isPlaylistRoute,u=e.libraries,d=e.librariesError,p=e.onAddLibraryPress,h=l()(e,["hoverableProps","serverEntityID","isFullServer","isFullOwnedServer","isHovered","isPlaylistRoute","libraries","librariesError","onAddLibraryPress"]),f=!!d&&!u.length,v=r&&!u.length;return m.a.createElement("div",a()({role:"navigation","data-qa-id":"sidebarLibrariesList"},t),o()("div",{
className:P.a.librariesListHeader,role:"header"},void 0,o()("div",{className:P.a.librariesTitle},void 0,Object(b.default)("Libraries")),r&&m.a.createElement(M.a,a()({isHovered:s,onAddLibraryPress:p},h))),i&&o()(C.a,{serverEntityID:n,isSelected:c}),v&&o()(I.a,{icon:"plex-icon-add-560",title:Object(b.default)("Add Library"),onPress:p},"addLibrary"),f?o()(y.a,{message:Object(b.default)("There was an unexpected error loading libraries.")}):u.map(function(e){return o()(D.a,{serverEntityID:n,
libraryEntityID:e},e)}))},t}(g.Component);t.a=Object(S.a)(O)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(47)),f=n(28),v=n(101),g=n(30),m=n(3),y=n(177),b=n(700),I=n(3290),S=n(3291),M=n.n(S),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onActionsPress=function(e){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen}),
a.props.onActionsMenuOpen&&a.props.onActionsMenuOpen()},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1}),a.props.onActionsMenuClose&&a.props.onActionsMenuClose()},a.onOptimizeDatabasePress=function(e){a.setState({isOptimizeModalOpen:!0})},a.onOptimizeConfirm=function(){a.setState({isOptimizeModalOpen:!1}),a.props.onOptimizeDatabaseConfirm()},a.onOptimizeCancel=function(){a.setState({isOptimizeModalOpen:!1})},a.onCleanBundlesPress=function(e){a.setState({
isCleanBundlesModalOpen:!0})},a.onCleanBundlesConfirm=function(){a.setState({isCleanBundlesModalOpen:!1}),a.props.onCleanBundlesConfirm()},a.onCleanBundlesCancel=function(){a.setState({isCleanBundlesModalOpen:!1})},a.onEmptyTrashPress=function(e){a.setState({isEmptyTrashModalOpen:!0})},a.onEmptyTrashConfirm=function(){a.setState({isEmptyTrashModalOpen:!1}),a.props.onEmptyTrashConfirm()},a.onEmptyTrashCancel=function(){a.setState({isEmptyTrashModalOpen:!1})},a.state={isActionsMenuOpen:!1,
isOptimizeModalOpen:!1,isCleanBundlesModalOpen:!1,isEmptyTrashModalOpen:!1},a._actionsMenuButtonID=Object(h.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.isHovered,i=e.isLibraryRefreshing,r=e.isOptimizeDatabaseInProgress,o=e.isCleanBundlesInProgress,s=v.a.hasTouchScreen||n||this.state.isActionsMenuOpen;return a()("div",{className:(t||"")+" "+(s&&M.a.isVisible||""||""),
role:"menu"},void 0,a()(b.a,{className:M.a.action,"data-qa-id":"sidebarLibrariesAddButton",icon:"plex-icon-add-560",title:Object(m.default)("Add Library"),onPress:this.props.onAddLibraryPress}),a()(b.a,{id:this._actionsMenuButtonID,className:M.a.action,"aria-haspopup":"true","data-qa-id":"sidebarLibrariesMoreButton",icon:"plex-icon-more-560",title:Object(m.default)("More Actions"),onPress:this.onActionsPress}),a()(I.a,{target:this._actionsMenuButtonID,isOpen:this.state.isActionsMenuOpen,
isLibraryRefreshing:i,onMenuClose:this.onActionsMenuClose,onSharePress:this.props.onSharePress,onUpdateLibrariesPress:this.props.onUpdateLibrariesPress,onCancelUpdatePress:this.props.onCancelUpdatePress,onOptimizeDatabasePress:this.onOptimizeDatabasePress,onCleanBundlesPress:this.onCleanBundlesPress,onEmptyTrashPress:this.onEmptyTrashPress}),a()(y.a,{isOpen:this.state.isOptimizeModalOpen,isConfirmButtonSpinning:r,isCancelButtonDisabled:r,metricsPage:g.p,
title:Object(m.default)("Optimize Database"),message:Object(m.default)("Cleans up the library database and ensures it is operating as quickly as possible. This is especially useful when you've added or removed a large amount of media from the library."),confirmLabel:Object(m.default)("Optimize"),onConfirm:this.onOptimizeConfirm,onCancel:this.onOptimizeCancel}),a()(y.a,{isOpen:this.state.isCleanBundlesModalOpen,isConfirmButtonSpinning:o,isCancelButtonDisabled:o,metricsPage:g.e,
title:Object(m.default)("Clean Bundles"),message:Object(m.default)("The media server stores information about your media to disk, as well as posters, artwork, and other media resources from the internet. Running this task deletes any bundles which are no longer in use."),confirmLabel:Object(m.default)("Clean"),onConfirm:this.onCleanBundlesConfirm,onCancel:this.onCleanBundlesCancel}),a()(y.a,{isOpen:this.state.isEmptyTrashModalOpen,metricsPage:g.j,title:Object(m.default)("Empty Trash"),
message:Object(m.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:Object(m.default)("Empty"),onConfirm:this.onEmptyTrashConfirm,onCancel:this.onEmptyTrashCancel}))},t}(p.Component);D.defaultProps={className:M.a.actions},t.a=D},function(e,t){e.exports={
sidebarIconButton:"SidebarIconButton-sidebarIconButton-3zxa5"}},function(e,t,n){"use strict";function i(e){var t=e.isLibraryRefreshing,n=e.onSharePress,i=e.onUpdateLibrariesPress,a=e.onCancelUpdatePress,o=e.onOptimizeDatabasePress,l=e.onCleanBundlesPress,c=e.onEmptyTrashPress,f=s()(e,["isLibraryRefreshing","onSharePress","onUpdateLibrariesPress","onCancelUpdatePress","onOptimizeDatabasePress","onCleanBundlesPress","onEmptyTrashPress"]);return u.a.createElement(d.a,f,r()(p.a,{onPress:n
},void 0,Object(h.default)("Share...")),t?r()(p.a,{onPress:a},void 0,Object(h.default)("Cancel Scan")):r()(p.a,{onPress:i},void 0,Object(h.default)("Scan Library Files")),r()(p.a,{onPress:o},void 0,Object(h.default)("Optimize Database")),r()(p.a,{onPress:l},void 0,Object(h.default)("Clean Bundles")),r()(p.a,{onPress:c},void 0,Object(h.default)("Empty Trash")))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(112),h=n(3);t.a=i},function(e,t){e.exports={
actions:"SidebarLibrariesActions-actions-2eVPc",action:"SidebarLibrariesActions-action-1NiFy SidebarIconButton-sidebarIconButton-3zxa5",isVisible:"SidebarLibrariesActions-isVisible-k1QA0"}},function(e,t,n){"use strict";function i(){return Object(m.createSelector)(function(e){return e.ui.quickSearch},function(e){return e.ui.background.isBackgroundPending},Object(b.a)(),function(e,t,n){var i=e.providerIdentifier,a=e.sectionID;t||(E=i,w=a);var r=t?E:i,o=t?w:a;return r===M.d&&o===n.key})}
function a(){return Object(m.createSelector)(Object(S.a)(),Object(b.a)(),Object(O.a)(),Object(I.b)(),i(),function(e,t,n,i,a){var r=t.key,o=t.title,s=void 0===o?"":o,l=t.refreshing;return{libraryKey:r,route:n,title:s.trim(),type:Object(D.a)(t),refreshing:l,isLibraryDeleteInProgress:!!i,isFullOwnedServer:e.isFullOwnedServer,isSelected:a}})}function r(e,t){var n={serverEntityID:t.serverEntityID,libraryEntityID:t.libraryEntityID,metricsPage:t.metricsPage};return{dispatchFetchLibraries:function(){
e(Object(y.g)({serverEntityID:t.serverEntityID}))},onShareLibraryPress:function(){e(P.g(n))},onUpdateLibraryPress:function(){e(P.i(n))},onCancelUpdateLibraryPress:function(){e(P.b(n))},onEditLibraryPress:function(){e(P.d(n))},onAnalyzeLibraryPress:function(){e(P.a(n))},onRefreshLibraryPress:function(){e(P.h(n))},onEmptyTrashLibraryPress:function(){e(P.e(n))},onDeleteLibraryPress:function(){e(P.c(n))},onDeleteLibraryComplete:function(){e(Object(j.h)({route:"dashboard"}))}}}
var o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(4),y=(n.n(m),n(116)),b=n(939),I=n(695),S=n(35),M=n(41),D=n(936),C=n(58),j=n(71),P=n(940),O=n(1433),T=n(3293),E=void 0,w=void 0,A=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidUpdate=function(e){e.isLibraryDeleteInProgress&&!this.props.isLibraryDeleteInProgress&&this.props.dispatchFetchLibraries()},
t.prototype.render=function(){var e=this.props,t=(e.metricsPage,e.dispatchFetchLibraries,s()(e,["metricsPage","dispatchFetchLibraries"]));return g.a.createElement(T.a,t)},t}(v.Component);t.a=Object(C.a)(a,r)(A)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(963)),f=n(47),v=n(51),g=n(30),m=n(3),y=n(145),b=n(177),I=n(964),S=n(700),M=n(3294),D=n(3295),C=n.n(D),j=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onActionsPress=function(){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen})},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1})},a.onAnalyzePress=function(){a.setState({isAnalyzeModalOpen:!0})},a.onAnalyzeConfirm=function(){a.setState({isAnalyzeModalOpen:!1}),a.props.onAnalyzeLibraryPress()},a.onAnalyzeCancel=function(){a.setState({isAnalyzeModalOpen:!1})},a.onRefreshAllPress=function(){a.setState({isRefreshAllModalOpen:!0})},
a.onRefreshAllConfirm=function(){a.setState({isRefreshAllModalOpen:!1}),a.props.onRefreshLibraryPress()},a.onRefreshAllCancel=function(){a.setState({isRefreshAllModalOpen:!1})},a.onEmptyTrashPress=function(){a.setState({isEmptyTrashModalOpen:!0})},a.onEmptyTrashConfirm=function(){a.setState({isEmptyTrashModalOpen:!1}),a.props.onEmptyTrashLibraryPress()},a.onEmptyTrashCancel=function(){a.setState({isEmptyTrashModalOpen:!1})},a.onDeletePress=function(){a.setState({isDeleteModalOpen:!0})},
a.onDeleteConfirm=function(){a.props.onDeleteLibraryPress()},a.onDeleteCancel=function(){a.setState({isDeleteModalOpen:!1})},a.state={isActionsMenuOpen:!1,isAnalyzeModalOpen:!1,isRefreshAllModalOpen:!1,isEmptyTrashModalOpen:!1,isDeleteModalOpen:!1},a._actionsMenuButtonID=Object(f.a)(),a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isLibraryDeleteInProgress&&!e.isLibraryDeleteInProgress&&(this.props.onDeleteLibraryComplete(),this.setState({isDeleteModalOpen:!1}))},
t.prototype.render=function(){var e=this.props,t=e.libraryKey,n=e.route,i=e.type,r=e.title,o=e.refreshing,s=e.isLibraryDeleteInProgress,l=e.isFullOwnedServer,c=e.isSelected,u=e.onShareLibraryPress,d=e.onUpdateLibraryPress,p=e.onCancelUpdateLibraryPress,f=e.onEditLibraryPress;return a()(h.a,{className:C.a.libraryListItem},void 0,a()(I.a,{"data-qa-id":"sidebarLibraryItem--"+t,to:n,icon:y.f.get(i).sectionTypeIcon,title:r,showSpinner:l&&o,isSelected:c}),l&&a()(S.a,{id:this._actionsMenuButtonID,
className:(C.a.action||"")+" "+(this.state.isActionsMenuOpen&&C.a.isVisible||""||""),"data-qa-id":"sidebarLibraryMoreButton",icon:"plex-icon-more-560",title:Object(m.default)("More Actions"),onPress:this.onActionsPress}),a()(M.a,{target:this._actionsMenuButtonID,isOpen:this.state.isActionsMenuOpen,isLibraryRefreshing:o,onMenuClose:this.onActionsMenuClose,onSharePress:u,onUpdatePress:d,onCancelUpdatePress:p,onEditPress:f,onAnalyzePress:this.onAnalyzePress,onRefreshAllPress:this.onRefreshAllPress,
onEmptyTrashPress:this.onEmptyTrashPress,onDeletePress:this.onDeletePress}),a()(b.a,{isOpen:this.state.isAnalyzeModalOpen,metricsPage:g.d,title:Object(m.default)("Analyze Library"),message:Object(m.default)("Analyzes all the media files in the library. The analysis captures information about the media which helps Plex decide how to optimally play back the media."),confirmLabel:Object(m.default)("Analyze"),onConfirm:this.onAnalyzeConfirm,onCancel:this.onAnalyzeCancel}),a()(b.a,{
isOpen:this.state.isRefreshAllModalOpen,metricsPage:g.l,title:Object(m.default)("Refresh All Metadata"),message:Object(m.default)("Forces a download of fresh media information from the internet. This can take a long time. Any locked fields are not modified."),confirmLabel:Object(m.default)("Refresh"),onConfirm:this.onRefreshAllConfirm,onCancel:this.onRefreshAllCancel}),a()(b.a,{isOpen:this.state.isEmptyTrashModalOpen,metricsPage:g.k,title:Object(m.default)("Empty Trash"),
message:Object(m.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:Object(m.default)("Empty"),onConfirm:this.onEmptyTrashConfirm,onCancel:this.onEmptyTrashCancel}),a()(b.a,{isOpen:this.state.isDeleteModalOpen,isConfirmButtonSpinning:s,isCancelButtonDisabled:s,metricsPage:g.h,kind:v.DANGER,
title:Object(m.default)("Delete Library"),message:Object(m.default)('The library "{libraryName}" will be removed from this server. Your media files will not be affected. This can\'t be undone. Continue?',{libraryName:r}),accordMessage:Object(m.default)('Yes, delete the library "{libraryName}"',{libraryName:r}),confirmLabel:Object(m.default)("Delete"),onConfirm:this.onDeleteConfirm,onCancel:this.onDeleteCancel}))},t}(p.Component);j.defaultProps={refreshing:!1},t.a=j},function(e,t,n){"use strict"
;function i(e){var t=e.isLibraryRefreshing,n=e.onSharePress,i=e.onUpdatePress,a=e.onCancelUpdatePress,o=e.onEditPress,l=e.onAnalyzePress,c=e.onRefreshAllPress,v=e.onEmptyTrashPress,g=e.onDeletePress,m=s()(e,["isLibraryRefreshing","onSharePress","onUpdatePress","onCancelUpdatePress","onEditPress","onAnalyzePress","onRefreshAllPress","onEmptyTrashPress","onDeletePress"]);return u.a.createElement(d.a,m,r()(p.a,{onPress:n},void 0,Object(h.default)("Share...")),t?r()(p.a,{onPress:a
},void 0,Object(h.default)("Cancel Scan")):r()(p.a,{onPress:i},void 0,Object(h.default)("Scan Library Files")),r()(p.a,{onPress:o},void 0,Object(h.default)("Edit")),r()(p.a,{onPress:l},void 0,Object(h.default)("Analyze")),r()(p.a,{onPress:c},void 0,Object(h.default)("Refresh All Metadata")),r()(p.a,{onPress:v},void 0,Object(h.default)("Empty Trash")),r()(p.a,{kind:f.b.DANGER,onPress:g},void 0,Object(h.default)("Delete")))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(56),p=n(112),h=n(3),f=n(24);t.a=i},function(e,t){e.exports={action:"SidebarLibraryItem-action-2AHiQ SidebarIconButton-sidebarIconButton-3zxa5",libraryListItem:"SidebarLibraryItem-libraryListItem-2cmmj SidebarListItem-sidebarListItem-GdcVs",isVisible:"SidebarLibraryItem-isVisible-ynsb8"}},function(e,t,n){"use strict";function i(){return Object(m.createSelector)(Object(y.a)(),I.a,function(e,t){var n=e.entityID+"!/playlists",i=t[n],a={isLibraryProvider:!0
},r=Object(S.a)(e,a,"/playlists");return{route:i||r,showActions:!(!e.isFullOwnedServer||!e.pmp.hasiTunes)}})}function a(e,t){var n={serverEntityID:t.serverEntityID};return{dispatchCheckiTunes:function(){e(b.c(n))},onImportPress:function(){e(b.i(n))}}}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(35)),b=n(202),I=n(941),S=n(965),M=n(3297),D=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))
}return p()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchCheckiTunes()},t.prototype.render=function(){var e=this.props,t=(e.dispatchCheckiTunes,o()(e,["dispatchCheckiTunes"]));return v.a.createElement(M.a,t)},t}(f.Component);t.a=Object(g.connect)(i,a)(D)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(56)),f=n(112),v=n(963),g=n(47),m=n(3),y=n(964),b=n(700),I=n(3298),S=n.n(I),M=function(e){
function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onActionsPress=function(){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen})},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1})},a.state={isActionsMenuOpen:!1},a._actionsMenuButtonID=Object(g.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.route,n=e.showActions,i=e.isSelected,r=e.onImportPress;return a()(v.a,{className:S.a.playlistsListItem},void 0,a()(y.a,{to:t,
icon:"plex-icon-playlists-560",title:Object(m.default)("Playlists"),isSelected:i},"playlists"),n&&a()(b.a,{id:this._actionsMenuButtonID,className:(S.a.action||"")+" "+(this.state.isActionsMenuOpen&&S.a.isVisible||""||""),"data-qa-id":"sidebarPlaylistsMoreButton",icon:"plex-icon-more-560",title:Object(m.default)("More Actions"),onPress:this.onActionsPress}),a()(h.a,{target:this._actionsMenuButtonID,isOpen:this.state.isActionsMenuOpen,onMenuClose:this.onActionsMenuClose},void 0,a()(f.a,{onPress:r
},void 0,Object(m.default)("Import from iTunes..."))))},t}(p.Component);t.a=M},function(e,t){e.exports={action:"SidebarPlaylistsItem-action-2LTK0 SidebarLibraryItem-action-2AHiQ SidebarIconButton-sidebarIconButton-3zxa5",playlistsListItem:"SidebarPlaylistsItem-playlistsListItem-3NFLP SidebarLibraryItem-libraryListItem-2cmmj SidebarListItem-sidebarListItem-GdcVs",isVisible:"SidebarPlaylistsItem-isVisible-30YBJ"}},function(e,t){e.exports={
librariesListHeader:"SidebarServerLibraries-librariesListHeader-33wsS SidebarList-sidebarListHeader-1t0yz",librariesTitle:"SidebarServerLibraries-librariesTitle-3iqmv"}},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(393)),o=n(395),s=n(701),l=Object(a.createStructuredSelector)({isSignedIn:Object(r.a)("isSignedIn"),cloudProviderEntityIDs:Object(o.a)("providers")});t.a=Object(i.connect)(function(e){return l(e)})(s.a)},function(e,t,n){"use strict";function i(){
return Object(u.createSelector)(Object(p.a)(),function(e){return{title:e.title,identifier:e.identifier,iconSrc:Object(f.a)(e.icon)?e.icon:d.join([e.baseURL,e.icon])}})}function a(e){var t=e.title,n=e.identifier,i=e.iconSrc;return n===h.a?null:o()(v.a,{title:t,to:"#!/provider/"+n,iconSrc:i})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(11)),u=n(4),d=(n.n(u),n(18)),p=n(54),h=n(41),f=n(516),v=n(220);t.a=Object(c.connect)(i)(a)},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(l.a,function(e){return e?{isFallbackPossible:!o.a.isHostedHttps||s.a.get("allowMixedContent"),isCloudServerConnected:e.isConnected,isCloudServerResourcesPending:e.isResourcesPending,isPersonalCloudServerRestarting:e.pmp.isPersonalCloudServerRestarting}:{isCloudServerConnected:!1}})}var a=n(11),r=n(4),o=(n.n(r),n(101)),s=n(62),l=n(470),c=n(3303);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(324)),f=n(1452),v=n.n(f),g=n(28),m=n(30),y=n(3),b=n(177),I=n(220),S=n(24),M=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRemoveServerPress=function(e){a.setState({isRemoveModalOpen:!0})},a.onRemoveConfirm=function(){a.setState({isRemoveModalOpen:!1}),a.props.onDeleteServerConfirm(a.props.machineIdentifier)},a.onRemoveCancel=function(){a.setState({
isRemoveModalOpen:!1})},a.state={isRemoveModalOpen:!1},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(g.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.friendlyName,n=e.presence,i=e.isPending,r=e.isBundled,o=e.isFallbackPossible,s=e.isCloudServerConnected,l=e.isCloudServerResourcesPending,c=e.isFullServer,u=e.isFullOwnedServer,d=e.isInstallingServerUpdate,p=e.isPersonalCloudServer,f=e.hasHttpsConnections,g=e.hasFallbackConnections,M=e.isPersonalCloudServerRestarting,D=e.onTryAgainPress,C=e.onReloadHttpPress,j=e.onReloadHttpAlwaysPress,P=e.onRestartPress,O=e.onAllowFallbackPress,T=c&&n,E=f&&!g,w=void 0,A=void 0,x=void 0,N=void 0,L=void 0,k=void 0,R=void 0
;d?(w=!1,A=!1,x=!1,N=!1,L=!1,k=!1,R=Object(y.default)('Once the server "{serverName}" has finished installing the update, Plex will automatically try to reconnect to this server.',{serverName:t})):p?(w=!1,A=!1,x=!1,N=!1,L=s,k=!1,R=Object(y.default)("Plex Cloud is unreachable. Make sure you're connected to the internet and try again. If you're still having trouble, you can restart your Plex Cloud server below.")):(w=!o&&T,A=o&&T&&E,x=w||A,N=!x,L=!1,k=u&&!r,
R=x?Object(y.default)('Unable to connect to "{serverName}" securely.',{serverName:t}):Object(y.default)('The server "{serverName}" is unreachable. Make sure it\'s running, double check your network, and try again.',{serverName:t}));var z=l||i,U=z?Object(y.default)("Connecting"):Object(y.default)("Try again");return a()(h.a,{message:R},void 0,a()(I.a,{icon:"plex-icon-reload-560",title:U,showSpinner:z,isDisabled:z,onPress:D}),w&&a()("p",{className:v.a.sidebarMessage
},void 0,Object(y.default)("Do you want to allow insecure connections?")),w&&a()(I.a,{icon:"plex-icon-unlock-560",title:Object(y.default)("Allow once"),onPress:C}),w&&a()(I.a,{icon:"plex-icon-unlock-560",title:Object(y.default)("Allow always"),onPress:j}),L&&a()(I.a,{icon:"plex-icon-personal-cloud-560",title:Object(y.default)("Restart Cloud Server"),showSpinner:M,isDisabled:M,onPress:P}),A&&a()(I.a,{icon:"plex-icon-unlock-560",title:Object(y.default)("Allow insecure connection"),onPress:O
}),x&&a()(I.a,{to:"https://support.plex.tv/hc/en-us/articles/206225077",target:"_blank",icon:"plex-icon-help-560",title:Object(y.default)("Learn more")}),N&&a()(I.a,{to:"https://help.plex.tv/noserver",target:"_blank",icon:"plex-icon-help-560",title:Object(y.default)("Where is my server?")}),k&&a()(I.a,{icon:"plex-icon-remove-560",title:Object(y.default)("Remove server"),onPress:this.onRemoveServerPress}),k&&a()(b.a,{isOpen:this.state.isRemoveModalOpen,metricsPage:m.i,kind:S.b.DANGER,
title:Object(y.default)("Remove {serverName}",{serverName:t}),message:Object(y.default)("If this server is restarted, it will automatically be added to your account again.",t),confirmLabel:Object(y.default)("Remove"),onConfirm:this.onRemoveConfirm,onCancel:this.onRemoveCancel}))},t}(p.Component);t.a=M},function(e,t){e.exports={spinnerContainer:"SidebarSpinner-spinnerContainer-2oi1o"}},function(e,t){e.exports={unclaimedIcon:"SidebarServerContent-unclaimedIcon-3-qUN"}},function(e,t){e.exports={
header:"SettingsSidebarList-header-1RCTo SidebarList-sidebarListHeader-1t0yz"}},function(e,t){e.exports={icon:"SettingsSidebarListLink-icon-eICe1 SidebarLink-icon-34JWq",selectedIcon:"SettingsSidebarListLink-selectedIcon-caIG1 SettingsSidebarListLink-icon-eICe1 SidebarLink-icon-34JWq"}},function(e,t){e.exports={sidebarContent:"SettingsSidebar-sidebarContent-3yMjj"}},function(e,t,n){"use strict";var i=n(306),a=n(3310),r=i.a.extend({controller:new a.a,appRoutes:{
"!/server/:serverID/channel/:channelID(/:key)":"channel","!/server/:serverID/channel/:channelID/details/:key":"channelDetails","!/server/:serverID/channels":"channels"}});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(3311),r=n(307),o=n(3),s=n(3313),l=n(3326),c=n(3331),u=n(967),d=r.a.extend({channel:function(e,t,n){this.populateView({serverID:e,channelID:t,channelKey:n}).done(function(e){var t=e.channelItem?e.channelItem:e.channel;i.a.trigger("show:view",new s.a({model:t,
listModel:t.get("metadataList")}))})},channelDetails:function(e,t,n){this.populateView({serverID:e,channelID:t,channelKey:n}).done(function(e){var t=e.channelItem.get("metadataList").getCollection(),n=t.first();i.a.trigger("show:view",new c.a({model:n}))})},channels:function(e){this.populateView({serverID:e}).done(function(e){var t=new a.a({subset:"all"},{server:e.server}),n=t.get("channels");n.comparator=n.sortByTitle;var r=t.fetch({scope:"page"});r.done(function(){
i.a.trigger("show:view",new l.a({collection:n}))}),r.fail(function(){i.a.trigger("show:view",new u.a({title:Object(o.default)("Your plugins are unavailable.")}))})})}});t.a=d},function(e,t,n){"use strict";var i=n(18),a=n(17),r=n(14),o=n(358),s=n(3312),l=a.a.extend({mixins:[o.a],name:"ChannelListModel",context:["server"],idAttribute:"key",collectionName:"channels",url:function(){var e=this.get("key"),t=e||i.join(["/channels",this.get("subset")]);return this.getPaginatedUrl(t)},sessionAttrs:{
key:r.a.string,subset:r.a.oneOf("all","recentlyViewed"),currentPageStart:r.a.integer,currentPageSize:r.a.integer,populatedRange:r.a.object},syncedAttrs:{totalSize:r.a.integer,viewGroup:r.a.string,title1:r.a.string,title2:r.a.string},syncedRelations:{channels:{relationClass:s.a,rootPropertyName:"Directory",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{subset:"all",populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()
}});t.a=l},function(e,t,n){"use strict";var i=n(19),a=n(25),r=n(1205),o=a.a.extend({name:"ChannelCollection",context:["server","channel"],model:r.a,url:function(){return this.containerKey},initialize:function(){this.listenTo(i.a,"clear:channels",this.reset)},sortByTitle:function(e){return e.get("title").toLowerCase()},sortByLastAccess:function(e){return-e.get("lastAccessedAt")},filterByType:function(e){var t=this.filter(function(t){return t.get("type")===e});return this.clone(t)}});t.a=o
},function(e,t,n){"use strict";var i=n(22),a=n(19),r=n(16),o=n(3314),s=n(391),l=n(93),c=n(3315),u=n(3317),d=n(3320),p=n(3321),h=n(3325),f=n.n(h),v=i.a.Layout.extend({className:"channel-container legacy-page",template:f.a,regions:{breadcrumbBar:".legacy-breadcrumb-bar",scroller:".legacy-content-scroller"},initialize:function(e){var t=Object(r.c)("appStore").dispatch;t(Object(s.a)({allowLightPreset:!1})),this.listModel=e.listModel,this.collection=this.listModel.get("metadataItems")
;var n=this.model.get("header"),i=this.model.get("message");(n||i)&&a.a.trigger("show:alert",{message:i||n}),this.searchKey=this.model.get("searchKey"),this.searchPlaceholder=this.model.get("title"),!this.searchKey&&this.model.channel&&(this.searchKey=this.model.channel.get("searchKey"),this.searchPlaceholder=this.model.channel.get("title"));var c=this.model.channel||this.model,u=c.id?c.id:c.get("identifier");this.searchKey&&t(l.changeQuickSearchSettings({
serverEntityID:this.model.server.entityID(),channelPlaceholder:this.searchPlaceholder,channelID:u,channelSearchKey:this.searchKey})),this.listType=o.a.getListType(this.model),a.a.trigger("show:background",{model:this.model,dim:!0})},getListConstructor:function(){switch(this.listType){case o.a.types.tileList:return p.a;case o.a.types.detailsList:return u.a;default:return d.a}},onRender:function(){var e=this.getListConstructor();this.scroller.show(new e({listModel:this.listModel,
collection:this.collection,paginated:!1}));var t=new c.a({model:this.model,currentListType:this.listType});this.listenTo(t,"change:listType",this.onListTypeChange),this.breadcrumbBar.show(t)},onClose:function(){(0,Object(r.c)("appStore").dispatch)(l.changeQuickSearchSettings({serverEntityID:this.model.server.entityID(),channelPlaceholder:null,channelID:null,channelSearchKey:null}))},onListTypeChange:function(e){this.listType=e,this.listModel.scrollPosition=0,
this.scroller.currentView.scrollPosition=0,this.render()}});t.a=v},function(e,t,n){"use strict";function i(e){var t=e.get("metadataList").getCollection(),n=t.length,i=e.get("viewGroup");if("Pictures"===i)return o.tileList;if("List"===i)return o.list;if(t.findWhere({type:"photo"}))return o.tileList;var a=r.a.compact(t.pluck("summary")),s=r.a.uniq(t.pluck("thumb")),l=t.reduce(function(e,t){var n=t.get("title");return n?e+n.length:e},0),c=l/n
;return s.length>n/2&&c<30?o.tileList:a.length>n/2?o.detailsList:o.list}var a=n(10),r=n.n(a),o={tileList:"media-tile-list",detailsList:"media-details-list",list:"media-list"},s={types:o,getListType:i};t.a=s},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=n(362),u=n(948),d=n(3316),p=n.n(d),h=r.a.Layout.extend({className:"breadcrumb-bar",template:p.a,ui:{listSelectedIcons:"#channel-list-dropdown .dropdown-selected-icon"},events:{
"click .settings-btn":"onSettingsClick","click .list-btn":"onListClick"},initialize:function(e){this.currentListType=e.currentListType,this.prefsKey=this.model.get("prefsKey"),!this.prefsKey&&this.model.channel&&(this.prefsKey=this.model.channel.get("prefsKey")),this.shared=this.model.server.get("shared")},serializeData:function(){var e=this.model.channel||this.model,t=e?e.get("title"):this.model.get("title"),n=e?e.id:e.get("identifier"),i="#!/server/"+encodeURIComponent(this.model.server.id)
;return i+="/channel/"+encodeURIComponent(n),{channelTitle:t,channelUrl:i,title:this.model.channel?this.model.get("title"):null,totalSize:this.model.get("metadataList").getCollection().length,showSettings:!!this.prefsKey&&!this.shared,listType:this.currentListType}},onSettingsClick:function(e){e.preventDefault();var t=new c.a([],{server:this.model.server,url:this.prefsKey});t.fetch().done(s.a.bind(function(){l.a.trigger("show:modal",new u.a({model:this.model.channel||this.model,collection:t}))
},this))},onListClick:function(e){e.preventDefault();var t=a()(e.currentTarget),n=t.data("type");this.trigger("change:listType",n)}});t.a=h},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return'<a class="settings-btn btn-gray" href="#"><i class="glyphicon cogwheel"></i></a>'}function l(e,t){return"hidden"}function c(e,t){var n,i=""
;return i+='<span class="breadcrumb-dropdown"><a href="'+h((n=e&&e.channelUrl,typeof n===p?n.apply(e):n))+'">'+h((n=e&&e.channelTitle,typeof n===p?n.apply(e):n))+"</a></span>"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="breadcrumb-actions pull-right"> ',u=a.if.call(t,t&&t.showSettings,{hash:{},inverse:f.noop,fn:f.program(1,s,o),data:o}),(u||0===u)&&(d+=u),
d+=' <span id="channel-list-dropdown" class="dropdown"> <a class="btn-gray dropdown-toggle" href="#channel-list-dropdown" data-toggle="dropdown"><i class="glyphicon show-thumbnails"></i> <i class="caret-icon caret-icon-sm"></i></a> <ul class="dropdown-menu pull-right"> <li><a class="list-btn" data-type="media-tile-list" href="#">'+h(i(n(5)).call(t,"Posters",{hash:{},data:o}))+'<i class="dropdown-selected-icon glyphicon ok-2 ',u=i(n(286)).call(t,t&&t.listType,"media-tile-list",{hash:{},
inverse:f.noop,fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+='"></i></a></li> <li><a class="list-btn" data-type="media-details-list" href="#">'+h(i(n(5)).call(t,"Details",{hash:{},data:o}))+'<i class="dropdown-selected-icon glyphicon ok-2 ',u=i(n(286)).call(t,t&&t.listType,"media-details-list",{hash:{},inverse:f.noop,fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+='"></i></a></li> <li><a class="list-btn" data-type="media-list" href="#">'+h(i(n(5)).call(t,"List",{hash:{},data:o
}))+'<i class="dropdown-selected-icon glyphicon ok-2 ',u=i(n(286)).call(t,t&&t.listType,"media-list",{hash:{},inverse:f.noop,fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+='"></i></a></li> </ul> </span> </div> ',u=a.if.call(t,t&&t.channelTitle,{hash:{},inverse:f.noop,fn:f.program(5,c,o),data:o}),(u||0===u)&&(d+=u),d+=' <span class="breadcrumb-subset-dropdown ',u=a.unless.call(t,t&&t.title,{hash:{},inverse:f.noop,fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),
d+='"><span class="dropdown-placeholder">'+h((u=t&&t.title,typeof u===p?u.apply(t):u))+'</span></span> <span class="list-badge badge badge-lg">'+h((u=t&&t.totalSize,typeof u===p?u.apply(t):u))+"</span> "})},function(e,t,n){"use strict";var i=n(97),a=n(3318),r=i.a.extend({tagName:"ul",className:"list media-list media-details-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(248),o=n(634),s=n(3319),l=n.n(s),c=o.a.extend({
className:"striped-list-item media-list-item media-details-list-item",template:l.a,ui:a.a.extend({poster:".media-poster"},o.a.prototype.ui),initialize:function(e){o.a.prototype.initialize.apply(this,arguments),this.model&&this.createImageView()},createImageView:function(){var e=this.type;"episode"===e&&(e="show"),this.image=new r.a({model:this.model,type:e,getUrl:this.getPosterUrl,height:150})},bindings:a.a.extend({},o.a.prototype.bindings,{".media-count-badge":{modelAttribute:"Media",
formatter:function(e){return e&&e.length||0},autohide:function(e){return!/^(clip|userPlaylistItem)$/.test(this.model.get("type"))&&e>1}},".unwatched-count-badge":{modelAttribute:"unviewedLeafCount",autohide:function(e){return!(this.shared&&!this.multiuser)&&(!/^(artist|album)$/.test(this.model.get("type"))&&!!e)}},".media-tagline":{modelAttribute:"tagline",autohide:!0},".media-summary":{modelAttribute:"summary",autohide:!0}})});t.a=c},function(e,t,n){var i=n(15)
;e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"show-actions"}function o(e,t){return"selected"}function s(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,c,u="",d=this,p=this.escapeExpression;return u+='<a class="media-list-inner-item ',l=n.if.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(l||0===l)&&(u+=l),u+=" ",l=n.if.call(t,t&&t.selected,{hash:{},inverse:d.noop,fn:d.program(3,o,a),data:a
}),(l||0===l)&&(u+=l),u+='" href="',(c=n.url)?l=c.call(t,{hash:{},data:a}):(c=t&&t.url,l="function"==typeof c?c.call(t,{hash:{},data:a}):c),u+=p(l)+'"> <div class="media-poster"></div> <div class="media-actions ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(5,s,a),data:a}),(l||0===l)&&(u+=l),
u+='"> <button class="play-btn media-action-btn" tabindex="-1"><i class="glyphicon play"></i></button> <button class="more-btn media-action-btn" tabindex="-1"><i class="glyphicon more"></i></button> </div> <span class="media-title media-heading"></span> <span class="media-subtitle-2 media-heading secondary"></span> <span class="media-subtitle-1 media-heading secondary"></span> <p class="media-tagline"></p> <p class="media-summary"></p> </a> <div class="media-actions-dropdown dropdown pull-right"> <div class="dropdown-toggle" data-toggle="dropdown"></div> </div> '
})},function(e,t,n){"use strict";var i=n(97),a=n(634),r=i.a.extend({tagName:"ul",className:"list media-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(97),a=n(3322),r=i.a.extend({tagName:"ul",className:"tile-list media-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(3323),o=n(248),s=n(634),l=n(3324),c=n.n(l),u=s.a.extend({className:"poster-item media-tile-list-item",template:c.a,ui:{container:".media-poster-container",
poster:".media-poster",actions:".media-poster-actions",dropdown:".media-actions-dropdown",subtitle1Fill:".media-subtitle-1-fill",subtitle2Fill:".media-subtitle-2-fill"},initialize:function(e){s.a.prototype.initialize.apply(this,arguments),this.model&&this.createImageView()},createImageView:function(){var e=Object(r.a)(this.model.section),t="photo"===e?e:this.type,n=150;"episode"===t?t="show":"clip"!==t&&"userPlaylistItem"!==t||(n=250),this.image=new o.a({model:this.model,type:t,
getUrl:this.getPosterUrl,width:n})},bindings:a.a.extend({},s.a.prototype.bindings,{".media-subtitle-1":{modelAttribute:"year",modelListeners:["title","year"],autohide:!0,formatter:function(e){var t=s.a.prototype.bindings[".media-subtitle-1"].formatter.apply(this,arguments);return"userPlaylistItem"!==this.model.get("type")&&this.ui.subtitle1Fill.toggleClass("hidden",!!t),t}},".media-subtitle-2":{modelAttribute:"index",modelListeners:["index","message"],autohide:!0,formatter:function(e){
var t=s.a.prototype.bindings[".media-subtitle-2"].formatter.apply(this,arguments);return"episode"===this.model.get("type")&&this.ui.subtitle2Fill.toggleClass("hidden",!!t),t}}})});t.a=u},function(e,t,n){"use strict";function i(e){return r.a.isEmpty(e)?void 0:e.get("type")}t.a=i;var a=n(10),r=n.n(a)},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"hide-actions"}function o(e,t){return"selected"}function s(e,t){return"hidden"}
this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,c,u="",d=this,p=this.escapeExpression;return u+='<a class="media-poster-container ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(l||0===l)&&(u+=l),u+=" ",l=n.if.call(t,t&&t.selected,{hash:{},inverse:d.noop,fn:d.program(3,o,a),data:a}),(l||0===l)&&(u+=l),u+='" href="',(c=n.url)?l=c.call(t,{hash:{},data:a}):(c=t&&t.url,l="function"==typeof c?c.call(t,{hash:{},data:a}):c),
u+=p(l)+'"> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-actions ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(5,s,a),data:a}),(l||0===l)&&(u+=l),
u+='"> <button class="play-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon play"></i></button> <button class="more-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon more"></i></button> </div> <div class="media-progress"></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> <div class="media-subtitle-2 media-heading secondary"></div> <div class="media-subtitle-1-fill media-heading hidden"></div> <div class="media-subtitle-2-fill media-heading hidden"></div> </a> <div class="media-actions-dropdown dropdown"> <div class="dropdown-toggle" data-toggle="dropdown"></div> </div> '
})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="legacy-content"> <div class="legacy-breadcrumb-bar"></div> <div class="legacy-content-scroller dark-scrollbar"></div> </div> '})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(16),s=n(391),l=n(3327),c=n(3330),u=n.n(c),d=r.a.Layout.extend({className:"container",template:u.a,ui:{navLinks:".nav a"},regions:{
list:".channels-container"},events:{"click .nav a":"onNavClick","click .all-btn":"onAllClick","click .video-btn":"onVideoClick","click .music-btn":"onMusicClick","click .photo-btn":"onPhotoClick"},initialize:function(){(0,Object(o.c)("appStore").dispatch)(Object(s.a)({allowLightPreset:!1})),this.videoCollection=this.collection.filterByType("video"),this.musicCollection=this.collection.filterByType("music"),this.photoCollection=this.collection.filterByType("photos")},serializeData:function(){
return{serverID:this.collection.server.id,allCount:this.collection.length,hasInstalledChannels:this.collection.length>0,videoCount:this.videoCollection.length,musicCount:this.musicCollection.length,photoCount:this.photoCollection.length}},onRender:function(){this.list.show(new l.a({collection:this.collection}))},onNavClick:function(e){this.ui.navLinks.removeClass("selected"),a()(e.currentTarget).addClass("selected")},onAllClick:function(e){e.preventDefault(),this.list.show(new l.a({
collection:this.collection}))},onVideoClick:function(e){e.preventDefault(),this.list.show(new l.a({collection:this.videoCollection}))},onMusicClick:function(e){e.preventDefault(),this.list.show(new l.a({collection:this.musicCollection}))},onPhotoClick:function(e){e.preventDefault(),this.list.show(new l.a({collection:this.photoCollection}))}});t.a=d},function(e,t,n){"use strict";var i=n(97),a=n(3328),r=i.a.extend({tagName:"ul",className:"tile-list media-tile-list channel-tile-list",itemView:a.a})
;t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(19),s=n(43),l=n(362),c=n(3),u=n(248),d=n(948),p=n(3329),h=n.n(p),f=i.a.ItemView.extend({tagName:"li",className:"poster-item media-tile-list-item channel",template:h.a,ui:{poster:".media-poster"},events:{"click .settings-btn":"onSettingsClick","click .uninstall-btn":"onUninstallClick"},initialize:function(e){this.image=new u.a({model:this.model,type:"channel",width:150}),this.shared=this.model.server.get("shared")},
serializeData:function(){return{item:this.model.toJSON(),serverID:this.model.server.id,shared:this.shared}},bindings:{".media-title":{modelAttribute:"title"},".media-subtitle-1":{modelAttribute:"type",autohide:!0,formatter:function(e){return"video"===e?Object(c.default)("Video"):"music"===e?Object(c.default)("Music"):"photos"===e?Object(c.default)("Photo"):Object(c.default)("Utility")}}},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},
onSettingsClick:function(e){if(e.preventDefault(),!this.$el.hasClass("active")){this.$el.addClass("active");var t=new l.a([],{server:this.model.server,url:this.model.id+"/:/prefs"}),n=t.fetch();n.done(r.a.bind(function(){o.a.trigger("show:modal",new d.a({model:this.model,collection:t}))},this)),n.always(r.a.bind(function(){this.$el.removeClass("active")},this))}},onUninstallClick:function(e){if(e.preventDefault(),!this.$el.hasClass("active")){this.$el.addClass("active")
;var t=s.a.execute("uninstallChannel",{channel:this.model});t.done(r.a.bind(function(){this.model.trigger("destroy",this.model,this.model.collection)},this)),t.always(r.a.bind(function(){this.$el.removeClass("active")},this))}}});t.a=f},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <div class="media-poster-overlay"></div> <div class="media-poster-actions"> ',
n=a.if.call(e,(n=e&&e.item,null==n||!1===n?n:n.hasPrefs),{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=' <button class="uninstall-btn media-poster-btn btn-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> '}function l(e,t){return' <button class="settings-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon cogwheel"></i></button> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var c,u="",d=this,p=this.escapeExpression;return u+='<a class="media-poster-container" href="#!/server/'+p(i(n(632)).call(t,t&&t.serverID,{hash:{},data:o}))+"/channel/"+p(i(n(632)).call(t,(c=t&&t.item,null==c||!1===c?c:c.key),{hash:{},data:o}))+'"> <div class="media-poster"> ',c=a.unless.call(t,t&&t.shared,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(c||0===c)&&(u+=c),
u+=' <div class="loading loading-inline"></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> </a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.allCount,typeof n===f?n.apply(e):n))+"</span>"}function l(e,t){var n,i=""
;return i+='<span class="badge">'+v((n=e&&e.videoCount,typeof n===f?n.apply(e):n))+"</span>"}function c(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.musicCount,typeof n===f?n.apply(e):n))+"</span>"}function u(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.photoCount,typeof n===f?n.apply(e):n))+"</span>"}function d(e,t){var a="";return a+=' <p style="padding:20px">'+v(i(n(5)).call(e,"No plugins installed.",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var p,h="",f="function",v=this.escapeExpression,g=this;return h+='<ul class="nav nav-header pull-right"> <li><a class="all-btn btn-gray selected" href="#">'+v(i(n(5)).call(t,"All",{hash:{},data:o})),p=a.if.call(t,t&&t.allCount,{hash:{},inverse:g.noop,fn:g.program(1,s,o),data:o}),(p||0===p)&&(h+=p),h+='</a></li> <li><a class="video-btn btn-gray" href="#">'+v(i(n(5)).call(t,"Video",{hash:{},data:o})),p=a.if.call(t,t&&t.videoCount,{hash:{},inverse:g.noop,
fn:g.program(3,l,o),data:o}),(p||0===p)&&(h+=p),h+='</a></li> <li><a class="music-btn btn-gray" href="#">'+v(i(n(5)).call(t,"Music",{hash:{},data:o})),p=a.if.call(t,t&&t.musicCount,{hash:{},inverse:g.noop,fn:g.program(5,c,o),data:o}),(p||0===p)&&(h+=p),h+='</a></li> <li><a class="photo-btn btn-gray" href="#">'+v(i(n(5)).call(t,"Photo",{hash:{},data:o})),p=a.if.call(t,t&&t.photoCount,{hash:{},inverse:g.noop,fn:g.program(7,u,o),data:o}),(p||0===p)&&(h+=p),
h+="</a></li> </ul> <h2>"+v(i(n(5)).call(t,"Plugins",{hash:{},data:o}))+"</h2> ",p=a.unless.call(t,t&&t.hasInstalledChannels,{hash:{},inverse:g.noop,fn:g.program(9,d,o),data:o}),(p||0===p)&&(h+=p),h+=' <div class="channels-container"></div> '})},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(846),s=n(3332),l=n(3334),c=n(3345),u=n(3347),d=n.n(u),p={movie:l.a,episode:l.a,clip:l.a,userPlaylistItem:l.a},h=i.a.Layout.extend({className:"details-container legacy-page",template:d.a,
regions:{actionBar:".legacy-action-bar",scroller:".legacy-content-scroller"},initialize:function(){var e=this.model.get("type");this.mediaActions=new o.a({},{item:this.model,type:e})},onRender:function(){var e,t=this.model.get("type");if(r()(p).has(t)){e=new(0,p[t])({model:this.model,mediaActions:this.mediaActions})}else e=new c.a({model:this.model});this.scroller.show(e),this.actionBar.show(new s.a({model:this.model,mediaActions:this.mediaActions}))}});t.a=h},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(19),s=n(16),l=n(77),c=n(848),u=n(3333),d=n.n(u),p={preventDefault:!0,stopPropagation:!1},h=i.a.ItemView.extend({className:"action-bar",template:d.a,ui:{primaryActions:".action-bar-nav",secondaryActions:".dropdown-menu",playBtn:".play-btn",infoBtn:".info-btn"},triggers:{"click .play-btn":"play","click .info-btn":r.a.extend({event:"info"},p)},onlyAfterRender:["onPlay","updateDropdown"],initialize:function(e){this.type=this.model.get("type"),
this.mediaActions=e.mediaActions,this.listenTo(this.mediaActions,"change",r.a.throttle(this.updateDropdown,50)),this.listenTo(this.mediaActions,"change:selectedItems",this.onSelectedItemsChange),this.listenTo(o.a,{"shortcut:play":this.onPlay,"shortcut:info":this.onInfo})},serializeData:function(){return{}},updateDropdown:function(){var e=this.ui.secondaryActions.find("a:not(.hidden)"),t=e.hasClass("secondary-only"),n=e.length>2||t;this.$el.toggleClass("show-secondary-actions-dropdown",n)},
bindingsModel:"mediaActions",bindings:{".play-btn":{modelAttribute:"showPlay",manual:!0,autohide:!0},".info-btn":{modelAttribute:"showInfo",manual:!0,autohide:!0}},onRender:function(){this.$el.tooltip({selector:".nav > li > a",container:"body",placement:"right"}),this.updateDropdown()},onPlay:function(){if(!this.ui.playBtn.isDisabled()||!this.ui.playAllBtn.isDisabled()){Object(s.c)("appStore").dispatch(Object(l.k)({serverModel:this.model.server,metadataItemModel:this.model}))}},
onInfo:function(){this.ui.infoBtn.isDisabled()||o.a.trigger("show:modal",new c.a({model:this.model}))}});t.a=h},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<ul class="nav action-bar-nav"> <li> <a class="play-btn btn-gray" href="#" title="'+l(i(n(5)).call(t,"Play",{hash:{},data:o
}))+'" data-toggle="tooltip"><i class="glyphicon play"></i></a> </li> <li> <a class="share-btn btn-gray secondary-action" href="#" title="'+l(i(n(5)).call(t,"Share",{hash:{},data:o}))+'" data-toggle="tooltip"><i class="glyphicon share"></i></a> </li> <li> <a class="info-btn btn-gray secondary-action" href="#" title="'+l(i(n(5)).call(t,"Info",{hash:{},data:o
}))+'" data-toggle="tooltip"><i class="glyphicon circle-info"></i></a> </li> <li class="secondary-actions-dropdown dropdown"> <a class="more-btn btn-gray dropdown-toggle" href="#" data-toggle="dropdown"><i class="glyphicon more"></i></a> <ul class="dropdown-menu"> <li><a class="info-btn" href="#">'+l(i(n(5)).call(t,"Get Info",{hash:{},data:o}))+"</a></li> </ul> </li> </ul> "})},function(e,t,n){"use strict"
;var i=n(16),a=n(3335),r=n(3337),o=n(248),s=n(847),l=n(3338),c=n(3339),u=n(3341),d=n(3344),p=n.n(d),h=l.a.extend({mixins:a.a,className:"clip-details-row details-row",template:p.a,initialize:function(){l.a.prototype.initialize.apply(this,arguments),this.starRatingView=new s.a({model:this.model,disabled:!0}),this.summaryView=new c.a({model:this.model}),this.audioDropdown=new u.a({type:"audio",model:this.model}),this.subtitlesDropdown=new u.a({type:"subtitles",model:this.model}),
this.posterImage=new o.a({model:this.model,type:this.model.get("type"),width:this.posterWidth});var e=this.model.server.get("isCloud"),t=i.c("appModel"),n=t.get("primaryServer");(!e||n&&!n.get("isCloudSyncServer"))&&(this.contentRatingFlag=new r.a({model:this.model,modelAttribute:"contentRating",className:"content-rating-flag",width:70,height:30}),this.videoResolutionFlag=new r.a({model:this.model,flag:"videoResolution",className:"media-flag",width:100,height:20}),this.audioCodecFlag=new r.a({
model:this.model,flag:"audioCodec",className:"media-flag",width:100,height:20}),this.audioChannelsFlag=new r.a({model:this.model,flag:"audioChannels",className:"media-flag",width:100,height:20}),this.studioFlag=new r.a({model:this.model,modelAttribute:"studio",className:"studio-flag",width:200,height:40}))}});t.a=h},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(1456),o={
bindings:a.a.pick(r.a.defaultBindings,[".item-title",".item-year",".item-duration",".item-tagline",".item-genre",".item-director",".item-writer",".item-cast",".item-content-rating",".content-rating-flag-container",".studio-flag-container"])};t.a=o},function(e,t,n){"use strict";function i(e){var t=r.a.reject(e.tags,function(e){return!e.tag}),n=e.model,i=n.section,a=i&&i.get("allowAdvancedFilters"),l=Object(s.r)(n.get("type")),c=e.separator||", ",u="";if(t&&t.length){var d=e.maxTags||t.length
;d>t.length&&(d=t.length);for(var p=0;p<d;p++)u+=function(t){var n=r.a.escape(Object(o.default)(t.tag,e.maxLen));return a&&t.id?'<a class="pivot-link" href="'+["#!/server/"+encodeURIComponent(i.server.id),"/section/"+encodeURIComponent(i.id),"/filter","/"+encodeURIComponent(l.id),"/"+encodeURIComponent(e.key),"/"+encodeURIComponent(t.id),"/"+encodeURIComponent(t.tag)].join("")+'">'+n+"</a>":n}(t[p]),p+1<d&&(u+=c)}return u}var a=n(10),r=n.n(a),o=n(1178),s=n(27);t.a=i},function(e,t,n){"use strict"
;var i=n(431),a=i.a.extend({setup:function(e){if(e.className&&this.$el.addClass(e.className),this.model=e.model,this.server=e.model.server,e.flag){var t=this.model.get("Media");this.flag=e.flag,t&&t.length&&(this.path=t[0][this.flag]),this.ignoreAttributeChanges||this.listenTo(this.model,"change:Media",this.onMediaChange)}else this.flag=e.modelAttribute,this.path=this.model.get(this.flag),this.ignoreAttributeChanges||this.listenTo(this.model,"change:"+this.flag,this.onChange)
;this.prefix=this.model.get("mediaTagPrefix"),this.version=this.model.get("mediaTagVersion"),this.path&&(this.url=this.getUrl(this.path)),this.setDimensions(e)},getUrl:function(e){return this.prefix+this.flag+"/"+encodeURIComponent(e)+"?t="+this.version},onMediaChange:function(e,t){this.onChange(e,t&&t.length?t[0][this.flag]:null)}});t.a=a},function(e,t,n){"use strict";var i=n(22),a=n(16),r=n(1456),o=n(77),s=i.a.Layout.extend({mixins:r.a,posterWidth:250,ui:{poster:".item-poster"},regions:{
rating:".rating-container",summary:".summary-container",audio:".item-audio",subtitles:".item-subtitles",studio:".studio-flag-container",contentRating:".content-rating-flag-container",videoResolution:".video-audio-flags-container",audioCodec:".video-audio-flags-container",audioChannels:".video-audio-flags-container",poster:".details-poster-container",list:".details-list-region"},events:{"click .details-poster-container > .play-btn":"onPlayClick"},initialize:function(e){
this.mediaActions=e.mediaActions},serializeData:function(){var e=this.model.get("grandparentKey"),t=this.model.get("parentKey");return{serverID:this.model.server.id,grandparentKey:t?encodeURIComponent(e):null,parentKey:t?encodeURIComponent(t):null}},onRender:function(){this.starRatingView&&this.rating.show(this.starRatingView),this.audioDropdown&&this.audio.append(this.audioDropdown),this.subtitlesDropdown&&this.subtitles.append(this.subtitlesDropdown),
this.posterImage&&this.posterImage.setElement(this.ui.poster),this.studioFlag&&this.studio.show(this.studioFlag),this.contentRatingFlag&&this.contentRating.show(this.contentRatingFlag),this.videoResolutionFlag&&this.videoResolution.append(this.videoResolutionFlag),this.audioCodecFlag&&this.audioCodec.append(this.audioCodecFlag),this.audioChannelsFlag&&this.audioChannels.append(this.audioChannelsFlag),this.summaryView&&this.summary.append(this.summaryView)},onClose:function(){
this.posterImage&&this.posterImage.close()},onPlayClick:function(e){e.preventDefault(),Object(a.c)("appStore").dispatch(Object(o.k)({serverModel:this.model.server,metadataItemModel:this.model}))}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(19),s=n(3),l=n(3340),c=n.n(l),u=i.a.ItemView.extend({className:"summary",template:c.a,ui:{summary:".metadata-summary",divider:".summary-divider",dividerBtn:".summary-divider-btn"},events:{
"click .summary-divider-btn":"onMoreSummaryClick"},onlyAfterRender:["onDeferredRender","updateDividerBtnVisibility"],bindings:{".item-summary":{modelAttribute:"summary",autohide:!0,isHtml:!0,formatter:function(e){if(this.$el.toggleClass("hidden",!e),this.updateDividerBtnVisibility(),e){var t=r.a.map(r.a.compact(e.split("\n")),function(e){return r.a.escape(e).trim()});if(t.length)return"<p>"+t.join("</p><p>")+"</p>"}}}},initialize:function(){this.listenTo(o.a,"resize",this.onResize),
this.listenTo(this.model,"change:summary",this.onSummaryChange)},updateDividerBtn:function(e){var t=e?Object(s.default)("More"):Object(s.default)("Less");this.ui.dividerBtn.html(t)},updateDividerBtnVisibility:function(){if(this.originalHeight){this.ui.summary.prop("scrollHeight")<=this.originalHeight?this.ui.divider.addClass("hidden"):(this.updateDividerBtn(!this.expanded),this.ui.divider.removeClass("hidden"))}},onRender:function(){r.a.defer(r.a.bind(this.onDeferredRender,this))},
onDeferredRender:function(){this.expanded=!1;var e=this.ui.summary.prop("scrollHeight"),t=this.ui.summary.prop("clientHeight");this.originalHeight=t,e>t&&(this.ui.summary.css("max-height",t+"px"),this.ui.divider.removeClass("hidden"))},onResize:function(){this.isClosed||this.updateDividerBtnVisibility()},onMoreSummaryClick:function(){var e=this.ui.summary.prop("scrollHeight")+100;this.expanded?(this.ui.summary.css("max-height",this.originalHeight+"px"),
this.expanded=!1):(this.ui.summary.css("max-height",e+"px"),this.expanded=!0),this.updateDividerBtn(!this.expanded)},onSummaryChange:function(){this.originalHeight&&(this.expanded&&this.ui.summary.css("max-height",this.originalHeight+"px"),this.onDeferredRender())}});t.a=u},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s=""
;return s+='<p class="item-summary metadata-summary"></p> <div class="summary-divider hidden"> <button type="button" class="summary-divider-btn">'+(0,this.escapeExpression)(i(n(5)).call(t,"More",{hash:{},data:o}))+"</button> </div> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(43),c=n(267),u=n(159),d=n(3342),p=n.n(d),h=r.a.ItemView.extend({tagName:"span",className:"dropdown",template:p.a,modelEvents:{"change:Media":"render","change:streams":"render"},
events:{"click .dropdown-menu a":"onStreamClick"},initialize:function(e){this.streamType=u.a.get(e.type),this.disabled=e.disabled,this.media=e.media},serializeData:function(){var e=this.model.server.get("multiuser"),t=this.model.server.get("shared"),n=Object(c.a)(this.media,{streamType:this.streamType.id}),i=Object(c.a)(this.media,{streamType:this.streamType.id,selected:!0}),a=s.a.first(i);return{showDropdown:!this.disabled&&n.length>1&&(!t||e),type:this.streamType.typeString,streams:n,
selectedStream:a}},onRender:function(){this.$el.attr("id",this.streamType.typeString+"-dropdown")},onStreamClick:function(e){e.preventDefault();var t=a()(e.currentTarget),n=t.data("id");l.a.execute("selectStream",{item:this.model,streamType:this.streamType,streamID:n})}});t.a=h},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o=""
;return o+=' <a class="dropdown-toggle" href="#'+f((r=e&&e.type,typeof r===h?r.apply(e):r))+'-dropdown" data-toggle="dropdown"> '+f(i(n(966)).call(e,e&&e.selectedStream,{hash:{},data:t}))+' <i class="caret-icon caret-icon-sm"></i> </a> <ul class="dropdown-menu"> ',r=a.each.call(e,e&&e.streams,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=" </ul> "}function l(e,t){var r,o="";return o+=' <li> <a data-id="'+f((r=e&&e.id,
typeof r===h?r.apply(e):r))+'" href="#"> '+f(i(n(966)).call(e,e,{hash:{},data:t}))+" ",r=a.if.call(e,e&&e.selected,{hash:{},inverse:v.noop,fn:v.program(3,c,t),data:t}),(r||0===r)&&(o+=r),o+=" </a> </li> "}function c(e,t){return' <i class="dropdown-selected-icon glyphicon ok-2"></i> '}function u(e,t){var a="";return a+=" "+f(i(n(966)).call(e,e&&e.selectedStream,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var d,p="",h="function",f=this.escapeExpression,v=this;return d=a.if.call(t,t&&t.showDropdown,{hash:{},inverse:v.program(5,u,o),fn:v.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){"use strict";function i(e){if(!e)return Object(a.default)("None");var t=e.language||Object(a.default)("Unknown"),n=r.a.get(e.streamType),i=n&&n.typeString,l=e.codec,c=[];return"subtitles"===i&&l?(c.push(l.toUpperCase()),e.key&&c.push(Object(a.default)("External")),
e.forced&&c.push(Object(a.default)("Forced"))):"audio"===i&&l&&(c.push(Object(s.a)(l)),e.channels&&c.push(Object(o.a)(e.channels))),c.length?t+" \u2014 "+c.join(" "):t}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),r=n(159),o=n(1387),s=n(1388);t.default=i},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var s="",l=this.escapeExpression
;return s+='<div class="details-title-container"> <h1 class="item-title"></h1> <h2 class="item-year"></h2> </div> <div class="details-metadata-container"> <div class="metadata-right pull-right"> <div class="item-genre metadata-tags"></div> <div class="rating-container"></div> <div class="content-rating-flag-container"></div> </div> <p class="metadata-labels"> <span class="item-duration metadata-duration"></span> </p> <p class="item-tagline metadata-tagline"></p> <div class="item-director metadata-tags"> <span class="metadata-label">'+l(i(n(5)).call(t,"Director",{
hash:{},data:o}))+'</span> <span class="metadata-tag-list"></span> </div> <div class="item-writer metadata-tags"> <span class="metadata-label">'+l(i(n(5)).call(t,"Writer",{hash:{},data:o}))+'</span> <span class="metadata-tag-list"></span> </div> <div class="item-cast metadata-tags"> <span class="metadata-label">'+l(i(n(5)).call(t,"Cast",{hash:{},data:o
}))+'</span> <span class="metadata-tag-list"></span> </div> <div class="item-audio metadata-tags metadata-tags-separator"> <span class="metadata-label">'+l(i(n(5)).call(t,"Audio",{hash:{},data:o}))+'</span> </div> <div class="item-subtitles metadata-tags"> <span class="metadata-label">'+l(i(n(5)).call(t,"Subtitles",{hash:{},data:o
}))+'</span> </div> <div class="summary-container"></div> <div class="studio-flag-container"></div> </div> <div class="details-poster-container"> <a class="media-poster-container play-btn" href="#"> <div class="clip-poster item-poster media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-overlay-icons"> <i class="media-poster-overlay-icon glyphicon play"></i> </div> </div> </a> <div class="video-audio-flags-container media-flags"></div> </div> '})},function(e,t,n){
"use strict";var i=n(22),a=n(3346),r=n.n(a),o=i.a.ItemView.extend({className:"container",template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> <h1>'+(0,this.escapeExpression)(i(n(5)).call(t,"This media type does not have a details page.",{
hash:{},data:o}))+"</h1> </div> </div> "})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="legacy-action-bar"></div> <div class="legacy-content"> <div class="legacy-breadcrumb-bar"></div> <div class="legacy-content-scroller dark-scrollbar"></div> </div> '})},function(e,t,n){"use strict";var i=n(471),a=i.a.extend({initialize:function(e){this.title=e.title,
this.subtitle=e.subtitle,this.message=e.message},serializeData:function(){return{title:this.title,subtitle:this.subtitle,message:this.message}}});t.a=a},function(e,t,n){"use strict";var i,a=n(6),r=n.n(a),o=n(87),s=n(19),l=n(3350),c=n(221),u=n(3351),d=c.k.reduce(function(e,t){return e["!/"+t+"(/:serverID)(/:providerID)"]="typeFirstLanding",e},{}),p=l.a.extend({controller:new u.a,appRoutes:r()({"!/dashboard":"dashboard","!(/server/:serverID)/dashboard":"dashboard",
"!/provider/:providerID/list":"providerList","!/provider/:providerID/settings":"providerSettings","!(/server/:serverID)(/provider/:providerID)/list":"list","!/home(/:serverID)(/:providerID)":"typeFirstHomeList","!(/server/:serverID)/needsUpdate":"needsUpdate","":"dashboard","!/login":"login","!/logout":"logout","!/unauthorized":"unauthorized","!/logs":"logs","!/info":"info"},d,(i={},i["!/"+c.f+"(/:serverID)/:providerID/timeline"]="typeFirstTimeline",
i["!/"+c.a+"(/:serverID)/:providerID/guide"]="typeFirstGuide",i["!/"+c.a+"(/:serverID)/:providerID/schedule"]="typeFirstRecordingSchedule",i["*404"]="error",i)),onNavigateRefreshDashboard:function(){var e=o.c.history.getFragment();""===e||"!/dashboard"===e?o.c.history.loadUrl(""):s.a.trigger("navigate","dashboard")}});t.a=p},function(e,t,n){"use strict";var i=n(87),a=n(10),r=n.n(a),o=n(19),s=n(16),l=n(306),c=l.a.extend({initialize:function(){l.a.prototype.initialize.apply(this,arguments),
this.listenTo(o.a,{"navigate:back":this.onNavigateBack,"navigate:forward":this.onNavigateForward,"navigate:refresh":this.onNavigateRefresh,"navigate:refresh:dashboard":this.onNavigateRefreshDashboard})},onNavigateBack:function(){var e=s.c("appModel"),t=e.get("history"),n=e.get("forwardHistory");if(t.length<2)return this.navigate("",{trigger:!0});n.unshift(t.pop()),this.navigate(r.a.last(t),{trigger:!0})},onNavigateForward:function(){var e=s.c("appModel"),t=e.get("forwardHistory")
;t.length&&this.navigate(t[0],{trigger:!0})},onNavigateRefresh:function(){i.c.history.loadUrl(i.c.history.getFragment())}});t.a=c},function(e,t,n){"use strict";var i=n(87),a=n(13),r=n.n(a),o=n(19),s=n(18),l=n(16),c=n(3352),u=n(90),d=n(515),p=n(3353),h=n(4065),f=n(4067),v=n(1624),g=n(4084),m=n(4088),y=n(4128),b=n(4197),I=n(4363),S=n(4364),M=n(967),D=n(4366),C=n(4368),j=n(4370),P=n(4372),O=n(4374),T=n(4389),E=n(4418),w=n(4488),A=n(4498),x=n(4537),N=n(4545),L=n(4598),k={signIn:v.a,error:M.a,
channelError:S.a,notFound:D.a,serverRequired:C.a,unauthorized:j.a,unavailable:P.a},R=c.a.extend({getViewByType:function(e){return k[e]},initialize:function(){c.a.prototype.initialize.apply(this,arguments),this.listenTo(o.a,"initialize:app",this.onAppInitialize)},typeFirst:function(e,t,n){var a=i.c.history.getFragment().slice(2).split("/"),s=a[0];return this.populateView().then(function(){return Object(d.a)()?(e&&!t&&(t=e,e=u.a),r.a.Deferred().resolve({navigationType:s,selectedServerID:e,
selectedProviderID:t,params:n}).promise()):(o.a.trigger("navigate","dashboard",{replace:!0}),r.a.Deferred().reject().promise())})},typeFirstHomeList:function(){this.typeFirst.apply(this,arguments).then(function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params;o.a.trigger("show:view",new T.a({selectedServerID:t,selectedProviderID:n,params:s.parseParams(i)}),{clearActiveNavigationType:!1})})},typeFirstLanding:function(){this.typeFirst.apply(this,arguments).then(function(e){
var t=e.navigationType,n=e.selectedServerID,i=e.selectedProviderID,a=e.params;o.a.trigger("show:view",new A.a({navigationType:t,selectedServerID:n,selectedProviderID:i,params:s.parseParams(a)}),{clearActiveNavigationType:!1})})},typeFirstTimeline:function(){this.typeFirst.apply(this,arguments).then(function(e){var t=e.navigationType,n=e.selectedServerID,i=e.selectedProviderID,a=e.params;o.a.trigger("show:view",new x.a({navigationType:t,selectedServerID:n,selectedProviderID:i,
params:s.parseParams(a)}),{clearActiveNavigationType:!1})})},typeFirstGuide:function(){this.typeFirst.apply(this,arguments).then(function(e){var t=e.navigationType,n=e.selectedServerID,i=e.selectedProviderID,a=e.params;o.a.trigger("show:view",new w.a({navigationType:t,selectedServerID:n,selectedProviderID:i,params:s.parseParams(a)}),{clearActiveNavigationType:!1})})},typeFirstRecordingSchedule:function(){this.typeFirst.apply(this,arguments).then(function(e){
var t=e.navigationType,n=e.selectedServerID,i=e.selectedProviderID,a=e.params;o.a.trigger("show:view",new N.a({navigationType:t,selectedServerID:n,selectedProviderID:i,params:s.parseParams(a)}),{clearActiveNavigationType:!1})})},dashboard:function(e,t){this.populateView().done(function(){var n=Object(d.a)()?E.a:b.a;o.a.trigger("show:view",new n({selectedServerID:e,params:s.parseParams(t)}),{clearActiveNavigationType:!1})})},list:function(e,t,n){var i=s.parseParams(n)
;this.populateView().done(function(){o.a.trigger("show:view",new y.a({selectedServerID:e,selectedProviderID:t,params:i}))})},providerList:function(e,t){var n=s.parseParams(t);this.populateView().done(function(){o.a.trigger("show:view",new I.a({selectedProviderID:e,params:n}))})},providerSettings:function(e){this.populateView().done(function(){var t=Object(d.a)()?L.a:O.a;o.a.trigger("show:view",new t({selectedProviderID:e}))})},needsUpdate:function(e){this.populateView().done(function(){
Object(l.c)("appModel").get("servers").findWhere({isOutOfDate:!0})?o.a.trigger("show:view",new m.a({selectedServerID:e})):o.a.trigger("navigate","dashboard",{replace:!0})})},logs:function(){o.a.trigger("show:view",new f.a({collection:Object(l.c)("logs")}))},info:function(){o.a.trigger("show:view",new h.a)},logout:function(){o.a.trigger("show:view",new g.a)},onAppInitialize:function(){this.appView=new p.a,this.appView.render()}});t.a=R},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(19),o=n(180),s=n(16),l=n(62),c=n(307),u=c.a.extend({initialize:function(){this.viewFor=this.viewFor.bind(this)},viewFor:function(e,t){var n=this.getViewByType(e);if(n)return new n(t);throw new Error("No view defined for "+e)},login:function(){var e=this,t=Object(s.c)("appModel"),n=t.get("cloudServer");r.a.trigger("show:loading"),n.populate().done(function(){r.a.trigger("navigate","dashboard")}).fail(function(){var i=n.get("available")
;if(!0!==i&&!1!==i)return void e.listenToOnce(n,"change:available",e.login);var a=t.get("user"),s=a.get("features");Object(o.a)(s.populate()).done(function(){var t=i?e.viewFor("signIn"):e.viewFor("unavailable",{model:n});r.a.trigger("show:view",t)})})},error:function(){r.a.trigger("show:view",this.viewFor("notFound",{type:"404"}))},unauthorized:function(e){var t=this;a.a.some(this.getUnauthorizedHandlers(),function(n){return n.call(t,e)})||r.a.trigger("show:view",this.viewFor("notFound",{
type:"media"}))},getUnauthorizedHandlers:function(){return[this.handleLockState,this.handleAuthorized,this.handlePrimaryServer,this.handleServer,this.handleChannelError]},handleLockState:function(e){return Object(s.c)("appModel").get("user").get("isLocked")},handleAuthorized:function(e){var t=Object(s.c)("appModel"),n=t.get("servers").findWhere({authorized:!0}),i=!n&&!t.get("skipSignIn");return i&&this.populateServersThenRecover(),i},handlePrimaryServer:function(e){var t=e.server,n=e.options
;return!(t||!n.primaryServer)&&(r.a.trigger("show:view",this.viewFor("serverRequired")),!0)},handleServer:function(e){var t=e.server,n=e.options,i=this.viewFor,a=Object(s.c)("appModel"),o=a.get("cloudServer"),l=void 0,c=void 0;return!(!n.serverID&&!n.primaryServer)&&(t?t.get("available")?t.get("authorized")||"resolved"!==o.populatePromise.state()?t.get("authorized")||(l=this.populateServersThenRecover()):c=i("unauthorized"):c=i("unavailable",{model:t}):c=i("notFound",{type:"server"}),
c&&r.a.trigger("show:view",c),!(!c&&!l))},handleChannelError:function(e){var t=e.options,n=!!t.channelID;return n&&r.a.trigger("show:view",this.viewFor("channelError")),n},populateServersThenRecover:function(){var e=Object(s.c)("appModel"),t=e.get("skipSignIn"),n=e.get("servers"),i=n.findWhere({cloud:!0}),a=this.viewFor;return n.populate().done(function(){var e=n.find(function(e){return e.get("hasManualConnection")})
;i.get("authorized")?r.a.trigger("navigate:refresh"):e?e.get("authorized")?r.a.trigger("navigate","dashboard"):r.a.trigger("show:view",a("unavailable",{model:e})):t?r.a.trigger("show:view",a("serverRequired")):r.a.trigger("navigate","login",{silent:!0})}).fail(function(){l.a.get("requiresSignIn")?r.a.trigger("show:view",a("unavailable",{model:i})):r.a.trigger("show:view",a("serverRequired"))})}});t.a=u},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=n(16),u=n(62),d=n(3354),p=n(3355),h=n(3356),f=n(1444),v=n(301),g=n(3365),m=n(3367),y=n(3369),b=n(3548),I=n(4026),S=n(4064),M=n.n(S),D=r.a.Layout.extend({el:"#plex",template:M.a,resizeDelay:200,ui:{content:"#content"},customRegions:{background:{prepend:!0,global:!0},content:{selector:"#content",global:!0,scrollable:!0,channelName:"content"},navbar:{prepend:!0,global:!0},staticAlertBar:{selector:"#staticAlertBar"},alertbar:{
selector:"#alertBar"},audioVideoPlayer:{append:!0,global:!0},photoPlayer:{append:!0,global:!0}},openAlerts:{},initialize:function(){s.a.bindAll(this,"triggerResizeEvent");var e=c.c("appModel");this.user=e.get("user"),this.modals=[],s.a.each(s.a.keys(this.customRegions),function(e){var t=this.customRegions[e],n=t.selector||s.a.uniqueId("r");t.scrollable?this.addRegion(e,new p.a({el:n,channelName:t.channelName})):this.addRegion(e,n)},this),this.listenTo(e,{
"change:authorized":this.onAuthorizedChange,"change:isFirstRun":this.onFirstRunChange}),this.listenTo(this.user,{"change:locked":this.onUserLockedChange}),this.listenTo(l.a,{"show:loading":this.showLoading,"show:view":this.showView,"show:alert":this.showAlert,"show:bar":this.showBar,"hide:bar":this.hideBar,"show:modal":this.showModal,"hide:modal":this.hideModal,"update:scrollPosition":this.onUpdateScrollPosition}),a()(window).on("resize",this.onResize)},showCustomRegion:function(e,t){
var n=this.customRegions[e],i=this[e];if(this.user.get("locked"))return i.lockedView=t,void t.close();n.append?i.append(t,this.$el):n.prepend?i.prepend(t,this.$el):i.show(t)},showLoading:function(){this.hideBar("alertbar"),this.user.get("locked")&&this.resetContentLockedRegions(),this.showCustomRegion("content",new f.a)},showView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clearActiveNavigationType;(void 0===n||n)&&c.c("appModel").unset("activeNavigationType")
;a()(".tooltip").remove(),this.hideBackground(this.currentView,e),l.a.trigger("cycle:cache"),this.currentView=e,this.showCustomRegion("content",e),this.ui.content.scrollTop(0)},showAlert:function(e){var t=e.message;if(!this.openAlerts[t]){var n=new g.a(e);this.openAlerts[t]=!0,this.listenToOnce(n,"close",function(){delete this.openAlerts[t]}),this.$el.append(n.render().el)}},showAlertBar:function(){var e=u.a.get("alerts");e&&e.length&&(u.a.set("alerts",null),this.showBar("alertbar",new v.a({
alert:s.a.first(e)})))},showBar:function(e,t){this.customRegions[e].modifier&&this.$el.addClass(this.customRegions[e].modifier),t&&this.showCustomRegion(e,t)},hideBar:function(e,t){t||(t={});var n=this.customRegions[e],i=n.modifier;i&&this.$el.removeClass(i),t.preserve||(this[e].lockedView=null,this[e].close())},showModal:function(e){this.modals.push(e);var t=a()("body");e.transparent&&t.addClass("show-modal-transparent"),t.append(e.render().el)},hideModal:function(e){
var t=s.a.indexOf(this.modals,e);t>-1&&this.modals.splice(t,1)[0].close(),e.transparent&&!s.a.findWhere(this.modals,{transparent:!0})&&a()("body").removeClass("show-modal-transparent")},hideBackground:function(e,t){var n=t.model?t.model.get("grandparentTheme")||t.model.get("parentTheme")||t.model.get("theme")||t.model.get("key"):null;l.a.trigger("audio:fadeOut",{exceptKey:n}),e&&e.model&&l.a.trigger("hide:background",this.currentView.model)},lockAll:function(){this._isLocked=!0
;var e=s.a.map(s.a.keys(this.customRegions),function(e){return this[e]},this);s.a.each(e,function(e){e.close()},this)},resetContentLockedRegions:function(){s.a.each(s.a.keys(this.customRegions),function(e){if(!this.customRegions[e].global){var t=this[e];t.lockedView&&(t.lockedView=null)}},this)},restoreAll:function(){this._isLocked=!1;var e=c.c("appModel");e.get("authorized")&&this.showBar("navbar",new y.a({model:e}),{prepend:!0}),this.showCustomRegion("background",this.backgroundView),
this.showCustomRegion("photoPlayer",new I.a),this.showCustomRegion("audioVideoPlayer",new b.a),Object(d.a)()&&this.showCustomRegion("staticAlertBar",new m.a({}))},triggerResizeEvent:function(){l.a.trigger("resize")},onRender:function(){this.backgroundView=new h.a,this.restoreAll()},onAuthorizedChange:function(e,t){if(t){var n=c.c("appModel");this.showBar("navbar",new y.a({model:n}),{prepend:!0});var i=this.user.get("locked");!1!==i&&null!==i||this.showAlertBar()}else this.hideBar("navbar"),
l.a.trigger("navigate:refresh")},onFirstRunChange:function(e,t){this.$el.toggleClass("show-first-run",t)},onUserLockedChange:function(e,t){t?this.lockAll():!this._isLocked||!1!==t&&null!==t||(null===t&&(this.backgroundView=new h.a),this.restoreAll())},onResize:function(){this.resizeTimeout=clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.triggerResizeEvent,this.resizeDelay)},onUpdateScrollPosition:function(e){this.ui.content[0].scrollTop=e}});t.a=D},function(e,t,n){
"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"ie"===e.id&&11===parseInt(e.version,10)}t.a=i;var a=n(50)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=r.a.Region.extend({resizeSubscribersCallbacks:[],scrollSubscribersCallbacks:[],sidebarDelay:200,scrollDelay:100,initialize:function(e){s.a.bindAll(this,"onResize","onScroll","onScrollEvent","onSidebarChange"),this.$el=a()(this.el),
this.channelName=e.channelName;var t={};t[this.channelName+".subscribe:resize"]=this.onResizeSubscribe,t[this.channelName+".unsubscribe:resize"]=this.onResizeUnsubscribe,t[this.channelName+".subscribe:scroll"]=this.onScrollSubscribe,t[this.channelName+".unsubscribe:scroll"]=this.onScrollUnsubscribe,this.listenTo(l.a,t)},updateSize:function(){this.size={width:this.$el.width(),height:this.$el.height(),innerWidth:this.$el.innerWidth(),innerHeight:this.$el.innerHeight(),
outerWidth:this.$el.outerWidth(),outerHeight:this.$el.outerHeight(),offset:this.$el.offset()}},updateScrollPosition:function(){this.scrollPosition={scrollHeight:this.$el[0].scrollHeight,scrollTop:this.$el[0].scrollTop}},onShow:function(){this.updateSize(),this.updateScrollPosition()},onResizeSubscribe:function(e){this.resizeSubscribersCallbacks.push(e),1===this.resizeSubscribersCallbacks.length&&(this.updateSize(),this.listenTo(l.a,{resize:this.onResize,"show:bar hide:bar":this.onSidebarChange
})),e(this.size)},onResizeUnsubscribe:function(e){this.resizeSubscribersCallbacks.splice(s.a.indexOf(this.resizeSubscribersCallbacks,e),1),0===this.resizeSubscribersCallbacks.length&&this.stopListening(l.a,"resize show:bar hide:bar")},onScrollSubscribe:function(e){this.scrollSubscribersCallbacks.push(e),1===this.scrollSubscribersCallbacks.length&&(this.updateScrollPosition(),this.$el.on("scroll",this.onScroll)),e(this.scrollPosition)},onScrollUnsubscribe:function(e){
this.scrollSubscribersCallbacks.splice(s.a.indexOf(this.scrollSubscribersCallbacks,e),1),0===this.scrollSubscribersCallbacks.length&&this.$el.off("scroll",this.onScroll)},onResize:function(){this.updateSize(),s.a.each(this.resizeSubscribersCallbacks,function(e){e(this.size)},this)},onScroll:function(){this.scrollTimeout=clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(this.onScrollEvent,this.scrollDelay)},onScrollEvent:function(){this.updateScrollPosition(),
s.a.each(this.scrollSubscribersCallbacks,function(e){e(this.scrollPosition)},this)},onSidebarChange:function(e){"sidebar"===e&&s.a.delay(this.onResize,this.sidebarDelay)}});t.a=c},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(3357),l=n(48),c=n(3359),u=a()(o.a,{},void 0,a()(c.a,{}),a()(s.a,{})),d=l.a.extend({className:"background-container",component:function(){return u}});t.a=d},function(e,t,n){"use strict"
;var i=n(12),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(4),g=(n.n(v),n(16)),m=n(77),y=n(1458),b=n(107),I=n(3358),S=Object(v.createSelector)(y.a,function(e){return e.ui.background},function(e){return e.ui.audioVideoPlayer.isOpen},function(e,t,n){return{volume:e,isBackgroundPending:t.isBackgroundPending,themeMusicUrl:t.themeMusicUrl,component:Object(g.c)("mediaComponent").getComponent({protocol:"http",isDirectPlay:!0}),isPlayerOpen:n}}),M={
dispatchEndPlayback:m.f},D=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.volume,i=t.isPlayerOpen;return e.volume!==n||e.isPlayerOpen!==i||!e.isBackgroundPending},t.prototype.render=function(){var e=this.props,t=(e.isBackgroundPending,e.isPlayerOpen),n=a()(e,["isBackgroundPending","isPlayerOpen"]);return t?null:h.a.createElement(I.a,n)},t}(p.Component);D.defaultProps={playerType:b.a
},t.a=Object(f.connect)(S,M)(D)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(62)),f=n(1459),v=2e3,g=100,m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.fadeOut=function(){a.state.currentThemeMusicUrl&&a.props.volume>0?(a.fadeOutStartMilliseconds||(a.fadeOutStartMilliseconds=Date.now()),a.setState(a.updateFrameState)):a.reset()},a.updateFrameState=function(e){
var t=e.relativeVolume,n=Date.now()-a.fadeOutStartMilliseconds,i=Object(f.a)(n,t,-t,v);return i=Math.max(0,i),i&&(a.fadeOutTimeoutID=setTimeout(a.fadeOut,g)),{volume:i}},a.onDurationMillisecondsChange=function(e){a._currentDurationMilliseconds=e},a.onPositionMillisecondsChange=function(e){var t=Math.floor(e/1e3),n=a.state.shouldStopOnEnd?0:v;a.state.positionSeconds!==t&&a.setState({positionSeconds:t}),a._currentDurationMilliseconds-e<=n&&!a.fadeOutTimeoutID&&a.endThemeMusic()},
a.onEnd=function(){a.reset()},a.state=a.getInitialStateFromProps(n),a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.volume,i=t.themeMusicUrl,a=e.volume,r=e.themeMusicUrl;if(n!==a){var o={relativeVolume:this.getRelativeVolume(a)};this.fadeOutTimeoutID||(o.volume=o.relativeVolume),this.setState(o)}i!==r&&(r?this.reset(r):this.fadeOutTimeoutID||this.endThemeMusic())},t.prototype.componentWillUnmount=function(){this.reset()},
t.prototype.getRelativeVolume=function(e){return.5*e},t.prototype.getInitialStateFromProps=function(e){var t=e.currentThemeMusicUrl,n=e.volume,i=this.getRelativeVolume(n);return{currentThemeMusicUrl:t,relativeVolume:i,volume:i,positionSeconds:0,shouldStopOnEnd:h.a.get("shouldStopThemeMusicOnNavigate")}},t.prototype.reset=function(e){this.fadeOutTimeoutID=clearTimeout(this.fadeOutTimeoutID),this.fadeOutStartMilliseconds=null,this.setState(this.getInitialStateFromProps({currentThemeMusicUrl:e,
volume:this.props.volume}))},t.prototype.endThemeMusic=function(){if(this.state.shouldStopOnEnd){var e=this.props;(0,e.dispatchEndPlayback)({playerType:e.playerType}),this.reset()}else this.fadeOut()},t.prototype.render=function(){var e=this.state,t=e.currentThemeMusicUrl,n=e.positionSeconds,i=e.volume;if(!t)return null;var r=this.props,o=r.component,s=r.playerType;return a()(o,{mediaType:"audio",isBackgroundMedia:!0,isThemeMusic:!0,src:t,playerType:s,positionSeconds:n,volume:i,
allowRecycleElement:!0,onDurationMillisecondsChange:this.onDurationMillisecondsChange,onPositionMillisecondsChange:this.onPositionMillisecondsChange,onEnd:this.onEnd},t)},t}(p.Component);t.a=m},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(396)),g=n(1460),m=Object(f.createSelector)(function(e){return e.ui.background},v.a,function(e,t){return{isTypeFirstEnabled:t,serverEntityID:e.server,
providerEntityID:e.provider,url:e.imageUrl,allowLightPreset:e.allowLightPreset,isBackgroundPending:e.isBackgroundPending}}),y=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e){return!e.isBackgroundPending},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.url,r=e.allowLightPreset,o=e.isTypeFirstEnabled;return a()(g.a,{serverEntityID:t,providerEntityID:n,url:i,
allowPreset:!0,allowLightPreset:r,isTypeFirstEnabled:o})},t}(p.Component);t.a=Object(h.connect)(function(e){return m})(y)},function(e,t,n){"use strict";function i(e){if(o[e])return o[e];var t=Object(a.createSelector)(r.a,function(t){return t[e]});return o[e]=t,t}t.a=i;var a=n(4),r=(n.n(a),n(72)),o={}},function(e,t,n){e.exports=n.p+"common/img/backgrounds/noise.8b05ce45d0df59343e206bc9ae78d85d.png"},function(e,t,n){
e.exports=n.p+"common/img/backgrounds/preset-dark.64cc1c942221cd2c153244bd8ecfb67a.png"},function(e,t,n){e.exports=n.p+"common/img/backgrounds/preset-light.770a0981b66e038d3ffffbcc4f5a26a4.png"},function(e,t,n){e.exports=n.p+"common/img/backgrounds/preset-light2.0f268b91ece99552363e05da5064bf33.png"},function(e,t,n){"use strict";var i=n(22),a=n(10),r=n.n(a),o=n(429),s=n(3366),l=n.n(s),c=i.a.ItemView.extend({mixins:[o.a],className:"alert transition-in",template:l.a,alertDuration:2e3,
transitionDuration:500,events:{mouseenter:"onMouseEnter",mouseleave:"onMouseLeave","click .close-btn":"onCloseClick"},initialState:"transitionIn",states:{transitionIn:{nextState:"visible",onEnter:function(){this.$el.triggerReflow(),this.$el.removeClass("transition-in"),this.startTransition()}},visible:{nextState:"transitionOut",onEnter:function(){this.transitionOutTimeout=setTimeout(this.enterNextState,this.alertDuration)}},transitionOut:{onEnter:function(){this.$el.addClass("transition-out"),
this.startTransition()}}},initialize:function(e){this.bindAllWhenRendered(["enterNextState"]),r.a.isString(e)&&(e={message:e}),this.type=e.type,this.message=e.message,this.type&&this.$el.addClass("has-"+this.type)},serializeData:function(){return{type:this.type,message:this.message}},startTransition:function(){setTimeout(this.enterNextState,this.transitionDuration)},onRender:function(){r.a.defer(this.enterNextState)},onStateMachineComplete:function(){this.close()},onMouseEnter:function(e){
clearTimeout(this.transitionOutTimeout)},onMouseLeave:function(e){"visible"===this.currentState&&(clearTimeout(this.transitionOutTimeout),this.transitionOutTimeout=setTimeout(this.enterNextState,this.alertDuration/2))},onCloseClick:function(e){e.preventDefault(),"visible"===this.currentState&&(clearTimeout(this.transitionOutTimeout),this.enterNextState())}});t.a=c},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"circle-ok"}function l(e,t){return"circle-exclamation-mark"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this;return u+='<button class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <i class="alert-icon glyphicon ',c=i(n(34)).call(t,t&&t.type,"success",{hash:{},inverse:d.program(3,l,o),fn:d.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+='"></i> <h4>',c=t&&t.message,
c="function"==typeof c?c.apply(t):c,(c||0===c)&&(u+=c),u+="</h4> "})},function(e,t,n){"use strict";var i=n(301),a=n(3368),r=n.n(a),o=i.a.extend({className:"alert-bar notify",template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<span class="message">'+(0,
this.escapeExpression)(i(n(5)).call(t,"Internet Explorer 11 will not be supported in a future update. Please upgrade to a modern browser.",{hash:{},data:o}))+"</span> "})},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(19)),s=n(48),l=n(3370),c=a()(l.a,{}),u=s.a.extend({className:"nav-bar",initialize:function(){this.listenTo(o.a,"change:language",this.render)},component:function(){return c}});t.a=u},function(e,t,n){"use strict";function i(){
return Object(o.createSelector)(function(e){return e.history},d.a,u.a,c.a,I,m.a,function(e,t,n,i,a,r){var o=Object(f.a)(v.m,p.a),s=window.location.hash,c=/#!\/logout/.test(s),u=Object(l.c)("fullscreenManager").hasFullscreen;return{serverEntityID:o,hasHistory:e.length>1,userThumb:t.thumb,badgeCount:n.length+i.length,isFullscreen:a,isOnLogout:c,canGoPremium:t.canGoPremium,canEnterFullscreen:Object(h.c)()&&u&&!a,canExitFullscreen:u&&a,canNavigateHistory:!r||b}})}function a(e,t){var n={
onBackPress:function(e){s.a.trigger("navigate:back")},onEnterFullscreen:function(e){Object(l.c)("fullscreenManager").enter()},onExitFullscreen:function(e){Object(l.c)("fullscreenManager").exit()}};return Object(h.c)()&&(n.onSwitchAppLayout=function(){e(Object(g.m)())}),n}var r=n(11),o=n(4),s=(n.n(o),n(19)),l=n(16),c=n(1461),u=n(1462),d=n(162),p=n(90),h=n(368),f=n(38),v=n(45),g=n(71),m=n(396),y=n(3372),b=Object(h.a)()||Object(h.c)()||Object(h.h)(),I=Object(o.createSelector)(function(e){
return e.isFullscreen},function(e){return e}),S=Object(r.connect)(i,a)(y.a);t.a=S},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(678)),r=Object(i.createSelector)(a.a,function(e){return e.announcements});t.a=r},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.hasHistory,i=e.userThumb,a=e.badgeCount,o=e.canEnterFullscreen,s=e.canExitFullscreen,u=e.canGoPremium,v=e.canNavigateHistory,y=e.isOnLogout,b=e.onBackPress,I=e.onSwitchAppLayout,S=e.onEnterFullscreen,M=e.onExitFullscreen;return y?null:r()("div",{className:g.a.container},void 0,r()("div",{className:g.a.left},void 0,r()(h.a,{className:g.a.button,to:"#",icon:"plex-icon-navbar-home-560",title:Object(l.default)("Home")}),v?r()(h.a,{className:g.a.button,
icon:"plex-icon-navbar-back-560",title:Object(l.default)("Back"),isDisabled:!n,onPress:b}):null,m),r()("div",{className:g.a.right},void 0,u?r()(f.a,{className:g.a.plexPassButton}):null,u?r()("div",{className:g.a.buttonSeparator}):null,I?r()(h.a,{className:g.a.button,icon:"plex-icon-navbar-TV-mode-560",title:Object(l.default)("Enter TV Layout"),onPress:I}):null,s?r()(h.a,{className:g.a.button,icon:"plex-icon-navbar-windowed-560",title:Object(l.default)("Exit Full Screen"),onPress:M
}):null,o?r()(h.a,{className:g.a.button,icon:"plex-icon-navbar-fullscreen-560",title:Object(l.default)("Enter Full Screen"),onPress:S}):null,o||s||I?r()("div",{className:g.a.buttonSeparator}):null,r()(p.a,{className:g.a.button}),r()(h.a,{className:g.a.button,to:"#!/settings/web/general",icon:"plex-icon-navbar-settings-560",title:Object(l.default)("Settings")}),r()(c.a,{className:g.a.button,iconComponent:h.a}),r()(d.a,{className:g.a.accountButton,serverEntityID:t,userThumb:i,badgeCount:a})))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1463),u=n(3382),d=n(3524),p=n(3533),h=n(1497),f=n(3545),v=n(3547),g=n.n(v),m=r()(u.a,{});t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(17),o=n(14),s=n(843),l=n(3374),c=r.a.extend({sessionAttrs:{protocol:o.a.string.isRequired},syncedAttrs:{friendlyName:o.a.string.isRequired,capabilities:o.a.array,volume:o.a.integer.isRequired},defaults:{protocol:s.a,volume:100},augmentResponse:function(e){return a()({},e,{
friendlyName:Object(l.a)(e.friendlyName)})}});t.a=c},function(e,t,n){"use strict";function i(e){var t=e;return r()(s).forEach(function(e){t=t.replace(new RegExp(Object(o.a)("&"+e+";"),"g"),s[e])}),t}t.a=i;var a=n(59),r=n.n(a),o=n(231),s={amp:"&",apos:"'","#x27":"'","#x2F":"/","#39":"'","#47":"/",lt:"<",gt:">",nbsp:" ",quot:'"'}},function(e,t,n){"use strict";function i(e){
var t=e.providerModel,n=e.currentPlayQueueModel,i=e.metadataKey,a=e.containerKey,l=e.playQueueOptions,c=Object(s.a)(a),u=c||a||i;return n&&n.get("playQueueID")===u?n:Object(o.a)(r()({providerModel:t,playQueueID:u},l))}t.a=i;var a=n(6),r=n.n(a),o=n(1231),s=n(968)},function(e,t,n){"use strict";function i(e){var t=e.serverModel,n=e.providerModel,i=e.playQueueModel,a=e.metadataKey,u=e.containerKey;if(!i.get("isLocal"))return Object(c.a)(i);var d={server:t,provider:n},p=void 0,h=void 0,f=void 0
;return u?(h=new o.default({containerKey:u},d),f=h.fetch()):(p=new s.a({key:a},d),f=p.fetch()),f.then(function(){return h&&!h.get("metadataItems").length?r.a.Deferred().reject().promise():Object(l.a)({providerModel:n,metadataItemModel:p,metadataListModel:h,playQueueModel:i})})}t.a=i;var a=n(13),r=n.n(a),o=n(121),s=n(94),l=n(1229),c=n(434)},function(e,t,n){"use strict";function i(e,t,n,i,a){var r=o()({},n);r.Stream=n.Stream.map(function(e){
return e.streamType!==i.id?e:e.id!==a||e.selected?e.id!==a&&e.selected?o()({},e,{selected:!1}):e:o()({},e,{selected:!0})});var s=o()({},t,{Part:Object(h.a)(t.Part,n,r)});return Object(h.a)(e,t,s)}function a(e,t){for(var n,a=t.mediaIndex,r=t.streamTypeString,s=t.streamID,c=t.allParts,h=t.allowMetrics,m=t.metricsProperties,y=void 0===m?{}:m,b=v.a.get(r),I=e.server,S=e.get("Media"),M=void 0,D=void 0,C=0,j=S.length;C<j;C++)if(!(a>=0&&a!==C)){for(var P=S[C],O=P.Part,T=0,E=O.length;T<E;T++){
for(var w=O[T],A=w.Stream,x=0,N=A.length;x<N;x++){var L=A[x];if(L.streamType===b.id&&L.id===s){M=P,D=w;break}}if(D)break}if(D)break}if(!D)return l.a.Deferred().reject().promise();var k=(n={},n[b.key]=s,n);c&&(k.allParts=1);var R=d.join(["/library/parts/",D.id],k),z=u.a.extend(I.getXHROptions(R),{type:"PUT",scope:"selectMetadataItemStream--"+D.id}),U=i(S,M,D,b,s);e.set({Media:U,isStreamChangeInProgress:!0}),g.a.abortAll(z.scope);var B=l.a.ajax(z).done(function(){
e.set("isStreamChangeInProgress",!1),e.fetch({usePopulatedParams:!0})}).fail(function(t){if(!t.aborting){var n={isStreamChangeInProgress:!1};e.get("Media")===U&&(n.Media=S),e.set(n)}});return h&&Object(p.c)("metrics").trackClick(o()({},y,{action:f.R,type:e.get("type"),streamType:r})),B.promise()}t.a=a;var r=n(6),o=n.n(r),s=n(13),l=n.n(s),c=n(10),u=n.n(c),d=(n(37),n(18)),p=n(16),h=n(1465),f=n(86),v=n(159),g=n(265)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(56)),f=n(47),v=n(3),g=n(283),m=n(3379),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onPress=function(){a.setState(function(e,t){return{isMenuOpen:!e.isMenuOpen}},function(){a.props.onMenuChange&&a.props.onMenuChange(a.state.isMenuOpen)})},a.onMenuClose=function(){a.setState({isMenuOpen:!1},function(){a.props.onMenuChange&&a.props.onMenuChange(!1)})},
a.state={isMenuOpen:!1},a._menuButtonID=Object(f.a)(),a}return u()(t,e),t.prototype.componentDidUpdate=function(e,t){this.state.isMenuOpen&&!t.isMenuOpen&&this.props.onDiscoverPlayers()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.iconClassName,i=e.iconComponent,r=e.isCastApiAvailable,o=e.isRemotePlayer,s=e.hasCompanionServer,l=e.remotePlayerName,c=e.remotePlayerProduct,u=e.players,d=e.onPlayerSelect,f=e.onCastPress,g=e.onDisconnectPress
;return a()(p.Fragment,{},void 0,a()(i,{className:t,iconClassName:n,id:this._menuButtonID,title:this.state.isMenuOpen?void 0:Object(v.default)("Select Player"),icon:o?"plex-icon-remote-player-on-560":"plex-icon-remote-player-off-560",isDisabled:!r&&!s,isSelected:o,onPress:this.onPress}),a()(h.a,{target:this._menuButtonID,isOpen:this.state.isMenuOpen,onMenuClose:this.onMenuClose},void 0,a()(m.a,{isCastApiAvailable:r,isRemotePlayer:o,remotePlayerName:l,remotePlayerProduct:c,players:u,
onPlayerSelect:d,onCastPress:f,onDisconnectPress:g})))},t}(p.Component);y.defaultProps={iconComponent:g.a},t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(112)),f=n(284),v=n(3),g=n(26),m=n(3380),y=n(3381),b=n.n(y),I=a()(f.a,{},"separator"),S=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onCastPress=function(e){i.props.onCastPress(e),i.props.onPress(e)},i.onDisconnectPress=function(e){i.props.onDisconnectPress(e),i.props.onPress(e)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.isCastApiAvailable,n=e.isRemotePlayer,i=e.remotePlayerName,r=e.remotePlayerProduct,o=e.players,s=e.onPress,l=e.onPlayerSelect,c=!n&&t,u=!n&&!!o.length,d=!n&&!c&&!u;return a()("div",{},void 0,n&&[a()("div",{
className:b.a.remotePlayerName},"name",i),a()("div",{className:b.a.remoteProduct},"product",r),a()(h.a,{onPress:this.onDisconnectPress},"disconnect",a()(g.a,{name:"plex-icon-ban-560",className:b.a.disconnectIcon,"aria-label":Object(v.default)("Disconnect")}),Object(v.default)("Disconnect"))],c&&a()(h.a,{onPress:this.onCastPress},"cast",Object(v.default)("Cast...")),c&&u&&I,u&&o.map(function(e){var t=e.machineIdentifier,n=e.friendlyName,i=e.product;return a()(m.a,{machineIdentifier:t,onPress:s,
onPlayerSelect:l},t,a()("div",{},void 0,n),a()("div",{className:b.a.remotePlayerProduct},void 0,i))}),d&&a()("div",{className:b.a.emptyMessage},void 0,Object(v.default)("No players found")))},t}(p.Component);t.a=S},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(112)),f=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){i.props.onPlayerSelect(i.props.machineIdentifier),i.props.onPress(e)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){return a()(h.a,{onPress:this.onPress},void 0,this.props.children)},t}(p.Component);t.a=f},function(e,t){e.exports={remotePlayerName:"RemotePlayerMenuItems-remotePlayerName-L2owq",remoteProduct:"RemotePlayerMenuItems-remoteProduct-3K34_",
remotePlayerProduct:"RemotePlayerMenuItems-remotePlayerProduct-3Xx8U",emptyMessage:"RemotePlayerMenuItems-emptyMessage-_vLf3",disconnectIcon:"RemotePlayerMenuItems-disconnectIcon-3DaqB"}},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e){return e.ui.quickSearch},O,E,function(e,t,n){return t?{serverEntityID:t.entityID,providerEntityID:e.providerEntityID,isConnected:t.isConnected,isCloud:t.isCloud,providerEntityIDs:n,query:e.query,
providerIdentifier:e.providerIdentifier,selectedResultEntityID:e.selectedResultEntityID}:{}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(116)),I=n(161),S=n(136),M=n(173),D=n(41),C=n(36),j=n(93),P=n(3383),O=Object(y.createSelector)(function(e){return e.servers},function(e){return e.ui.quickSearch.serverEntityID},M.a,function(e,t,n){return t&&e.indexOf(t)>-1?n[t]:void 0
}),T=Object(I.a)(Object(y.createSelector)(function(e){return e.user.pmp.providers},S.a,function(e,t){return e.filter(function(e){var n=t[e].providerIdentifier||t[e].identifier;return n===D.i||n===D.j||n===D.e||n===D.f})}),function(e){return e}),E=Object(I.a)(Object(y.createSelector)(O,function(e){return e.user.pmp.providers},T,function(e,t,n){return e?e.isCloud?t:[].concat(e.providers,n):[]}),function(e){return e}),w=h()({populateProviders:b.l},j),A=function(e){function t(){return s()(this,t),
c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){var t=e.isConnected!==this.props.isConnected,n=e.providerEntityIDs!==this.props.providerEntityIDs,i=e.providerIdentifier!==this.props.providerIdentifier;(t||n||i)&&this._populate(e)},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.serverEntityID,n=e.isConnected,i=e.isCloud,a=e.providerEntityIDs,r=e.providerIdentifier;t&&n&&!i&&e.populateProviders({serverEntityID:t}),a&&a.length&&Object(C.a)(function(){e.initQuickSearch({serverEntityID:t,providerEntityIDs:a,providerIdentifier:r})})},t.prototype.render=function(){var e=this.props,t=e.providerEntityIDs,n=r()(e,["providerEntityIDs"]);return t&&t.length?g.a.createElement(P.a,n):null},t}(v.Component)
;t.a=Object(m.connect)(i,w)(A)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(533),v=n(28),g=n(373),m=n(50),y=n(36),b=n(46),I=n.n(b),S=n(3384),M=n(3387),D=n(3523),C=n.n(D),j=parseInt(I.a.searchResultHeight,10),P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onScrollIntoView=function(e){
var t=e.scrollTop,n=a._resultsRef.current,i=n.clientHeight,r=i+a.state.scrollTop,o=t+j>r||t<a.state.scrollTop;a.setState({scrollTop:o?t:a.state.scrollTop})},a.onWindowPress=function(e){if(a.state.isOpen){var t=a._searchRef.current;t&&t.contains(e.target)||a.setState({isOpen:!1})}},a.onKeyDown=function(e){var t=a.props,n=t.serverEntityID,i=t.providerEntityID,r=a.state.isOpen;switch(e.keyCode){case g.c:case g.k:r&&(e.stopPropagation(),e.preventDefault(),
e.keyCode===g.k?a.props.selectQuickSearchResult({offset:-1}):a.props.selectQuickSearchResult({offset:1}),a.isTabScoped&&(f.c(),a.isTabScoped=!1));break;case g.d:if(r){var o=m.a.platformID,s="osx"===o?e.metaKey:e.ctrlKey,l=e.shiftKey;f.a(),a.isTabScoped=!1,s?l?a.props.playQuickSearchResult({serverEntityID:n,options:{shuffle:!0}}):a.props.playQuickSearchResult({serverEntityID:n,providerEntityID:i}):a.props.navigateQuickSearchResult({serverEntityID:n,providerEntityID:i})}break;case g.e:
e.nativeEvent.stopImmediatePropagation(),a.isTabScoped&&(f.c(),a.isTabScoped=!1),r?a.setState({isOpen:!1}):a.props.changeQuickSearchQuery("");break;case g.j:if(r){if(!a.isTabScoped){var c=a._resultsRef.current;f.f(c),a.isTabScoped=!0}f.e(e)}}},a.onInputClick=function(e){a.isTabScoped&&(f.c(),a.isTabScoped=!1),a.state.isOpen||""===a.props.query||a.setState({isOpen:!0})},a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.onSearch=function(){Object(y.a)(function(){
a.props.fetchQuickSearch()})},a.onInputChange=function(e){Object(y.a)(function(){a.props.changeQuickSearchQuery(e)})},a._searchRef=h.a.createRef(),a._resultsRef=h.a.createRef(),a.isTabScoped=!1,a.state={scrollTop:0,isOpen:!1},a}return u()(t,e),t.prototype.componentWillMount=function(){this._listenForPress()},t.prototype.componentWillReceiveProps=function(e,t){var n=e.selectedResultEntityID,i=e.query,a=this.props.query!==i,r=i.trim().length,o=this.state.isOpen;r&&!o&&a?this.setState({isOpen:!0
}):!r&&o&&(this.setState({isOpen:!1}),this.isTabScoped&&(f.b(),this.isTabScoped=!1)),null==n&&this.setState({scrollTop:0})},t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this._stopListeningForPress()},t.prototype._listenForPress=function(){window.addEventListener("mouseup",this.onWindowPress),window.addEventListener("touchend",this.onWindowPress)},t.prototype._stopListeningForPress=function(){
window.removeEventListener("mouseup",this.onWindowPress),window.removeEventListener("touchend",this.onWindowPress)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.query;return h.a.createElement("div",{className:C.a.container,ref:this._searchRef,onKeyDown:this.onKeyDown},a()(S.a,{query:i,onChange:this.onInputChange,onSearch:this.onSearch,onClick:this.onInputClick}),this.state.isOpen&&h.a.createElement(M.a,{serverEntityID:t,providerEntityID:n,
scrollTop:this.state.scrollTop,ref:this._resultsRef,onScrollIntoView:this.onScrollIntoView,onScrollPositionChange:this.onScrollPositionChange}))},t}(p.Component);t.a=P},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(3385),v=n(28),g=n(19),m=n(26),y=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.focusInput=function(){i._input.focus()},i.onRef=function(e){i._input=e},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){g.a.on("shortcut:search",this.focusInput)},t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.componentWillUnmount=function(){g.a.off("shortcut:search",this.focusInput)},t.prototype.render=function(){return h.a.createElement(f.a,a()({},this.props,{closeIcon:m.a,
searchIcon:m.a,onRef:this.onRef}))},t}(p.Component);t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=n.n(d),h=n(0),f=n.n(h),v=n(20),g=n(28),m=n(3386),y=n.n(m),b=function(e){function t(n){o()(this,t);var i=l()(this,e.call(this,n));return i.focusInput=function(){i._input.focus()},i.onClick=function(e){i.focusInput(),i.props.onClick()},i.onFocus=function(){i.setState({isFocused:!0})},i.onBlur=function(){i.setState({isFocused:!1})},
i.onChange=function(e){var t=e.target.value;i.searchTimeout&&clearTimeout(i.searchTimeout),i.setState({query:t},function(){i.props.onChange(t),""!==t.trim()&&(i.searchTimeout=setTimeout(i.props.onSearch,200))})},i.onClearPress=function(e){e.stopPropagation(),i.searchTimeout&&clearTimeout(i.searchTimeout),i.setState({query:""},function(){i.props.onChange(""),i.focusInput()})},i.onRef=function(e){var t=i.props.onRef;i._input=e,t&&t(e)},i.state={isFocused:!1,query:n.query},i.searchTimeout=null,i}
return u()(t,e),t.prototype.componentWillReceiveProps=function(e){this.state.query!==e.query&&this.setState({query:e.query})},t.prototype.shouldComponentUpdate=function(e,t){return Object(g.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this.searchTimeout&&clearTimeout(this.searchTimeout)},t.prototype.render=function(){var e=this.props,t=e.closeIcon,n=e.searchIcon,i=this.state,r=i.isFocused,o=i.query;return a()("div",{className:(y.a.container||"")+" "+(r&&y.a.focused||""||""),
onClick:this.onClick},void 0,a()(n,{className:y.a.searchIcon,name:"plex-icon-search-560"}),f.a.createElement("input",{"data-qa-id":"quickSearchInput",className:y.a.searchInput,value:o,type:"text",autoComplete:"off",spellCheck:"false",ref:this.onRef,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur}),o.length>0&&a()(v.a,{onPress:this.onClearPress},void 0,a()(t,{className:y.a.closeIcon,name:"plex-icon-close-560"})))},t}(h.Component);b.defaultProps={query:"",onClick:p.a.func},t.a=b
},function(e,t){e.exports={container:"QuickSearchInput-container-1HiCo",focused:"QuickSearchInput-focused-3rEqJ",searchIcon:"QuickSearchInput-searchIcon-38PAh",closeIcon:"QuickSearchInput-closeIcon-3ZiOR",searchInput:"QuickSearchInput-searchInput-3m6na"}},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(80),m=(n(531),n(28)),y=n(30),b=n(318),I=n(3388),S=n(3392),M=n(3522),D=n.n(M),C=function(e){
function t(n){l()(this,t);var i=u()(this,e.call(this,n));return i.onWindowResize=function(){i.setState({maxHeight:i.getMaxHeight()})},i.state={maxHeight:i.getMaxHeight()},i}return p()(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize)},t.prototype.shouldComponentUpdate=function(e,t){return Object(m.a)(this,e,t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize)},
t.prototype.getMaxHeight=function(){return window.innerHeight-150},t.prototype.render=function(){var e=this.props,t=e.forwardedRef,n=e.className,i=e.serverEntityID,a=e.providerEntityID,r=e.scrollTop,s=e.onScrollIntoView,l=e.onScrollPositionChange;return o()(b.a,{page:y.U},void 0,v.a.createElement(g.a,{className:(D.a.container||"")+" "+(n||""),style:this.state,scrollTop:r,ref:t,onScrollPositionChange:l},o()(I.a,{serverEntityID:i,providerEntityID:a}),o()(S.a,{serverEntityID:i,providerEntityID:a,
onScrollIntoView:s})))},t}(f.Component);t.a=v.a.forwardRef(function(e,t){return v.a.createElement(C,a()({},e,{forwardedRef:t}))})},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(4),g=(n.n(v),n(533)),m=n(39),y=n(53),b=n(72),I=n(93),S=n(3389),M={resetQuickSearch:I.resetQuickSearch,selectQuickSearchResult:I.selectQuickSearchResult},D=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onLinkPress=function(e){var t=i.props.serverEntityID;i.props.resetQuickSearch({serverEntityID:t}),g.a()},i.onLinkFocus=function(e){i.props.selectQuickSearchResult({searchResultEntityID:null})},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){return h.a.createElement(S.a,a()({onLinkPress:this.onLinkPress,onLinkFocus:this.onLinkFocus},this.props))},t}(p.Component)
;t.a=Object(f.connect)(function(){return Object(v.createSelector)(y.a,m.a,function(e){return e.ui.quickSearch},b.a,function(e,t,n,i){return{server:e,provider:t,query:n.query,channelPlaceholder:n.channelPlaceholder,channelID:n.channelID,channelSearchKey:n.channelSearchKey,isSelected:!n.selectedResultEntityID,searchAllServers:i.searchAllServers}})}(),M)(D)},function(e,t,n){"use strict";function i(e,t,n){return t?Object(d.default)("Search in {channelName}...",{channelName:t
}):n?Object(d.default)("Search all servers...",e):Object(d.default)("Show more results...",e)}function a(e){var t=e.server,n=e.provider,a=e.query,r=e.searchAllServers,s=e.channelPlaceholder,l=e.channelID,d=e.channelSearchKey,p=e.isSelected,h=e.onLinkPress,f=e.onLinkFocus,v=encodeURIComponent(t.machineIdentifier),g=encodeURIComponent(n.identifier),m=encodeURIComponent(a),y=void 0;if(null!=l&&null!=d){var b=encodeURIComponent(l),I=u.join(d,{query:a})
;y="#!/server/"+v+"/channel/"+b+"/"+encodeURIComponent(I)}else y=t.isCloud?"#!/provider/"+g+"/search/"+m:"#!/server/"+v+"/search/"+m;var S=i(a,s,r);return o()(c.a,{isSelected:p,text:S,url:y,onLinkPress:h,onLinkFocus:f})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(3390)),u=n(18),d=n(3);n(99),n(140);t.a=a},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.isSelected,i=e.text,a=e.url,o=e.onLinkPress,l=e.onLinkFocus,c=s()(e,["className","isSelected","text","url","onLinkPress","onLinkFocus"]);return u.a.createElement(d.a,r()({className:(t||"")+" "+(n&&h.a.isPlaceholderSelected||""||""),tabIndex:"1",title:i,to:a,onPress:o,onFocus:l},c),i)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(20),p=n(3391),h=n.n(p);i.defaultProps={className:h.a.placeholder},t.a=i},function(e,t){e.exports={
placeholder:"QuickSearchPlaceholderLink-placeholder-1Wxzp",isPlaceholderSelected:"QuickSearchPlaceholderLink-isPlaceholderSelected-rDCpK"}},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(72)),o=n(3393),s=Object(a.createSelector)(function(e){return e.ui.quickSearch},r.a,function(e,t){return{searches:e.searches}});t.a=Object(i.connect)(function(e){return s(e)})(o.a)},function(e,t,n){"use strict";function i(e){var t=e.searches,n=e.onScrollIntoView
;return s()("div",{},void 0,t.map(function(e){return u.a.createElement(d.a,r()({},e,{key:e.providerEntityID,isOnlyProvider:1===t.length,onScrollIntoView:n}))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3394);t.a=i},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(function(e){return e.ui.quickSearch},Object(c.a)(),function(e,t){return{title:t.title,selectedResultEntityID:e.selectedResultEntityID}})}function a(e){
return o.a.createElement(u.a,e)}var r=n(0),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(54)),u=n(3395);t.a=Object(s.connect)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.isLoading,n=e.hubs,i=u()(e,["isLoading","hubs"]);return t?l()("div",{className:y.a.spinnerContainer},void 0,l()(v.a,{className:y.a.spinner})):n.length?l()("div",{},void 0,n.map(function(e){return h.a.createElement(g.a,o()({key:e.hubIdentifier,title:e.title,metadataResults:e.metadataResults,tagResults:e.tagResults,
metricsContext:e.context},i))})):l()("div",{className:y.a.noResults},void 0,Object(f.default)("No Results"))}function a(e){var t=e.title,n=e.isOnlyProvider,a=e.isSearchPending,r=(e.isSearchPopulated,u()(e,["title","isOnlyProvider","isSearchPending","isSearchPopulated"]));return l()("div",{},void 0,!n&&l()("div",{className:y.a.title,"aria-label":"heading","aria-level":"4"},void 0,t),h.a.createElement(i,o()({isLoading:a&&!e.hubs.length},r)))}
var r=n(6),o=n.n(r),s=n(2),l=n.n(s),c=n(12),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(3),v=n(31),g=n(3396),m=n(3521),y=n.n(m);t.a=a},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(3397),b=n(28),I=n(3399),S=n(1493),M=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){
return Object(b.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.title,n=e.selectedResultEntityID,i=e.metadataResults,r=e.tagResults,s=l()(e,["title","selectedResultEntityID","metadataResults","tagResults"]);return o()(y.a,{title:t},void 0,i.concat(r).map(function(e,t){return m.a.createElement(S.a,a()({key:e,searchResultEntityID:e,component:I.a,isSelected:n===e},s))}))},t}(g.Component);t.a=M},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.title
;return r()("div",{},void 0,r()("h5",{className:c.a.hubTitle,"data-qa-id":"quickSearchHub"},void 0,n),t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3398)),c=n.n(l);t.a=i},function(e,t){e.exports={hubTitle:"QuickSearchHubContainer-hubTitle-2B0GD"}},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e,t){return t.metricsContext},I.a,b.a,Object(P.a)(),Object(y.a)(),function(e,t,n){
var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments[4],r={server:t,provider:n,reasonID:i.reasonID,reasonTitle:i.reasonTitle};if(a){var o=Object(T.c)(a.type,a.subtype)===T.b?N:L,s=Object(O.a)(o,null,a.type,a.subtype,a,D.j);r=d()({metadataKey:a.key,metadataTitle:a.title,metadataType:a.type,typeString:a.type,imageWidth:s.width,imageHeight:s.height,imageUrl:s.url,resultRoute:Object(A.a)(t,n,a,{context:e})},r)}else{
var l=i.tagItem||{},c=M.a.get(l.tagType),u=c&&c.typeString,p=Object(O.a)(L,null,u,null,l,D.j);r=d()({tag:l.tag,tagType:l.tagType,tagTypeString:u,librarySectionType:l.librarySectionType,imageWidth:p.width,imageHeight:p.height,imageUrl:p.url,resultRoute:Object(w.a)(t,n,n.isLibraryProvider?i.reasonID:l.librarySectionKey,{filters:l.filter?l.filter:u+"="+l.id,filterLabel:l.tag,context:e})},r)}return r})}var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(6),d=n.n(u),p=n(1),h=(n.n(p),
n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(533)),y=n(21),b=n(39),I=n(53),S=n(36),M=n(474),D=n(33),C=n(191),j=n(93),P=n(475),O=n(261),T=n(130),E=n(397),w=n(150),A=n(1478),x=n(3466),N=28,L=36,k=d()({resetQuickSearch:j.resetQuickSearch,selectQuickSearchResult:j.selectQuickSearchResult,playQuickSearchResult:j.playQuickSearchResult},C),R=function(e){function t(){var n,i,a;r()(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c]
;return n=i=s()(this,e.call.apply(e,[this].concat(l))),i.onLinkPress=function(){var e=i.props.serverEntityID;i.props.resetQuickSearch({serverEntityID:e}),m.a()},i.onResultFocus=function(e){Object(S.a)(function(){i.props.selectQuickSearchResult({searchResultEntityID:e})})},i.onPlayPress=function(e){var t=i.props,n=t.serverEntityID,a=t.providerEntityID;i.props.playQuickSearchResult({serverEntityID:n,providerEntityID:a,searchResultEntityID:e})},a=n,s()(i,a)}return c()(t,e),
t.prototype.render=function(){return f.a.createElement(x.a,d()({},this.props,{onLinkPress:this.onLinkPress,onResultFocus:this.onResultFocus,onPlayPress:this.onPlayPress}))},t}(h.Component);t.a=Object(v.connect)(i,k,E.a)(R)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="analyzing"},function(e,t,n){"use strict";function i(e,t,n){var i=t.get("key"),a=o.join([i,"prefs"],n),l=e.getXHROptions(a,{type:"PUT"});t.set({isSettingsUpdating:!0,settingsUpdateError:null})
;var c=r.a.ajax(l);return c.then(function(){t.set("isSettingsUpdating",!1)},function(e){t.set({isSettingsUpdating:!1,settingsUpdateError:Object(s.a)(e)})}),c}var a=n(13),r=n.n(a),o=n(18),s=n(171);t.a=i},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(816),s=n(3403),l=n.n(s),c=o.a.extend({name:"downloadVersionModal",template:l.a,serializeData:function(){var e=this.model;return{defaultLinkTarget:"_blank",mediaItems:a.a.map(this.model.get("Media"),function(t,n){var i=a.a.clone(t)
;i.downloadUrl=e.getDownloadUrl(n);var o=e.getFilepath(n);return o&&(i.downloadName=r.getLastSegment(o)),i})}},onClick:function(){}});t.a=c},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t,r){var o,s="";return s+=' <li class="striped-list-item select-list-item download-list-item"> <a class="media" data-value="'+g((o=null==t||!1===t?t:t.index,
typeof o===v?o.apply(e):o))+'" href="'+g((o=e&&e.downloadUrl,typeof o===v?o.apply(e):o))+'" target="'+g((o=r&&r.defaultLinkTarget,typeof o===v?o.apply(e):o))+'" ',o=i(n(286)).call(e,r&&r.defaultLinkTarget,"_blank",{hash:{},inverse:m.noop,fn:m.program(2,l,t),data:t}),(o||0===o)&&(s+=o),s+="> ",o=a.if.call(e,e&&e.title,{hash:{},inverse:m.noop,fn:m.program(4,c,t),data:t}),(o||0===o)&&(s+=o),s+=" ",o=a.if.call(e,e&&e.videoResolution,{hash:{},inverse:m.noop,fn:m.program(6,u,t),data:t}),
(o||0===o)&&(s+=o),s+=" ",o=a.if.call(e,e&&e.bitrate,{hash:{},inverse:m.noop,fn:m.program(9,p,t),data:t}),(o||0===o)&&(s+=o),s+=" </a> </li> "}function l(e,t){var n,i="";return i+='download="'+g((n=e&&e.downloadName,typeof n===v?n.apply(e):n))+'"'}function c(e,t){var n,i="";return i+=" "+g((n=e&&e.title,typeof n===v?n.apply(e):n))+' <span class="title-separator">\u2022</span> '}function u(e,t){var r,o="";return o+=" "+g(i(n(3404)).call(e,e&&e.videoResolution,{hash:{},data:t})),
r=a.if.call(e,e&&e.bitrate,{hash:{},inverse:m.noop,fn:m.program(7,d,t),data:t}),(r||0===r)&&(o+=r),o+=" "}function d(e,t){return","}function p(e,t){var a="";return a+=" "+g(i(n(3405)).call(e,e&&e.bitrate,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var h,f="",v="function",g=this.escapeExpression,m=this
;return f+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon download-alt"></i> '+g(i(n(5)).call(t,"Download a Version",{hash:{},data:o}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <ul class="list select-list download-list"> ',h=a.each.call(t,t&&t.mediaItems,{hash:{},
inverse:m.noop,fn:m.programWithDepth(1,s,o,t),data:o}),(h||0===h)&&(f+=h),f+=" </ul> </div> </div> </div> "})},function(e,t,n){var i=n(366).default,a=n(211);e.exports=a(i)},function(e,t,n){var i=n(520).default,a=n(211);e.exports=a(i)},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(18),o=n(17),s=n(14),l=n(3407),c=n(356),u=n(268),d=n(27),p=n(3408),h={album:{title:"title",parentRatingKey:"artist.id",parentTitle:"artist.title"},track:{parentRatingKey:"album.id",parentTitle:"album.title",
grandparentRatingKey:"artist.id",grandparentTitle:"artist.title"}},f=o.a.extend({name:"MultiMetadataModel",context:["server","section"],rootPropertyName:"Common",isNew:function(){return!1},url:function(){return r.join([this.sectionUrl(),"common"],this.getUrlParams())},saveUrl:function(){return r.join([this.sectionUrl(),"all"],this.getUrlParams())},sectionUrl:function(){return a.a.result(this.section,"url")},
tagRelations:["Collection","Director","Producer","Writer","Genre","Mood","Country","Label","Similar","Role","Tag","Autotag"],sessionAttrs:{metadataItems:s.a.array.isRequired,originalSaveParams:s.a.object,poster:s.a.string,banner:s.a.string,art:s.a.string},syncedAttrs:{mixedFields:s.a.list.isRequired,key:{type:s.a.string,save:!0},ratingKey:{type:s.a.string,save:!0},parentRatingKey:{type:s.a.string,save:!0},grandparentRatingKey:{type:s.a.string,save:!0},title:{type:s.a.string,save:!0},titleSort:{
type:s.a.string,save:!0},originalTitle:{type:s.a.string,save:!0},parentTitle:{type:s.a.string,save:!0},grandparentTitle:{type:s.a.string,save:!0},year:{type:s.a.string,save:!0},tagline:{type:s.a.string,save:!0},summary:{type:s.a.string,save:!0},studio:{type:s.a.string,save:!0},contentRating:{type:s.a.string,save:!0},originallyAvailableAt:{type:s.a.string,save:!0},rating:{type:s.a.float,save:!0},userRating:{type:s.a.float,save:!0},index:{type:s.a.integer,save:!0},parentIndex:{type:s.a.integer,
save:!0}},sessionRelations:{preferences:{relationClass:c.a}},syncedRelations:{collections:{relationClass:l.a,rootPropertyName:"Collection",save:!0},directors:{relationClass:l.a,rootPropertyName:"Director",save:!0},producers:{relationClass:l.a,rootPropertyName:"Producer",save:!0},writers:{relationClass:l.a,rootPropertyName:"Writer",save:!0},genres:{relationClass:l.a,rootPropertyName:"Genre",save:!0},moods:{relationClass:l.a,rootPropertyName:"Mood",save:!0},countries:{relationClass:l.a,
rootPropertyName:"Country",save:!0},labels:{relationClass:l.a,rootPropertyName:"Label",save:!0},similar:{relationClass:l.a,rootPropertyName:"Similar",save:!0},roles:{relationClass:l.a,rootPropertyName:"Role",save:!0},tags:{relationClass:l.a,rootPropertyName:"Tag",save:!0},autotags:{relationClass:l.a,rootPropertyName:"Autotag",save:!0},lockedFields:{relationClass:p.a,rootPropertyName:"Field",save:!0}},derivedAttrs:{type:function(){var e=this.getSingleMetadataItem();if(e)return e.get("type")},
aggregateTitle:function(){if(this.get("metadataItems").length)return u.a.title(null,{items:this.get("metadataItems")})},isSingleMetadataItem:function(){return 1===this.get("metadataItems").length}},defaults:function(){return{metadataItems:[],mixedFields:[]}},initialize:function(e,t){this.set("metadataItems",a.a.clone(t.metadataItems))},getSingleMetadataItem:function(){return a.a.first(this.get("metadataItems"))},getUrlParams:function(){
var e=Object(d.r)(this.get("type")),t=a.a.map(this.get("metadataItems"),function(e){return e.get("ratingKey")});return{type:e.id,id:t.join(",")}},getSaveParams:function(){var e=this,t=o.a.prototype.getSaveParams.apply(this,arguments),n=this.get("originalSaveParams");if(!n)return t;var i={};if(a.a.each(t,function(t,r){var o=n[r];a.a.isEqual(t,o)||a.a.extend(i,e.getSaveParam(r,t,o))}),i.isReparenting){delete i.isReparenting;var r=h[this.get("type")];a.a.each(r,function(t,n){
var r=t+".value",o=e.getQueryAttrSibling(t),s=o+".value",l=a.a.has(i,r),c=a.a.has(i,s);if(l&&c&&r!==s&&delete i[s],!l&&!c){var u=e.get(n);u&&(i[r]=u)}})}return i},getSaveParam:function(e,t,n){var i;if("Field"===e)return this.getFieldSaveParams(e,t,n);if(-1!==this.tagRelations.indexOf(e))return this.getTagSaveParams(e,t,n);var r=h[this.get("type")];{if(!r||!a.a.has(r,e))return i={},i[e+".value"]=t,i;var o=r[e];if(t){var s;return s={isReparenting:!0},s[o+".value"]=t,s}}},
getFieldSaveParams:function(e,t,n){return t.reduce(function(e,t){return e[t.name+".locked"]=t.locked,e},{})},getTagSaveParams:function(e,t,n){var i=a.a.map(t,function(e){return e.tag}),r=a.a.map(n,function(e){return e.tag}),o=a.a.without.apply(a.a,[r].concat(i)),s=e.toLowerCase(),l={};return i.forEach(function(e,t){l[s+"["+t+"].tag.tag"]=e}),o.length&&(l[s+"[].tag.tag-"]=a.a.map(o,encodeURIComponent).join(",")),l},getQueryAttr:function(e){var t=this.get("type"),n=h[t];return n?n[e]||e:e},
getQueryAttrSibling:function(e){var t=this.getQueryAttr(e).match(/(^.*\.)(.*$)/);return t?t[1]+("id"===t[2]?"title":"id"):e}});t.a=f},function(e,t,n){"use strict";var i=n(25),a=n(1472),r=i.a.extend({name:"TagCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(3409),r=i.a.extend({name:"LockedFieldCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"LockedFieldModel",
context:["server","section"],idAttribute:"name",syncedAttrs:{name:{type:a.a.string,save:!0},locked:{type:a.a.boolean,save:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(970),a=n(3411),r=n.n(a),o=i.a.extend({template:r.a,serializeData:function(){var e=this.model.get("preferences"),t=this.model.getSingleMetadataItem().get("preferences");return e.length?t.reduce(function(t,n){var i=e.get(n.id);return i?t.push(i.toJSON()):t.push(n.toJSON()),t},[]):t.toJSON()},flushChanges:function(){
var e=this.ui.form,t=e.serializeArray(),n=this.model.getSingleMetadataItem().get("preferences"),i=this.model.get("preferences");t.forEach(function(e){var t=i.get(e.name)||n.get(e.name),a=t.clone();a.parseAndSetValue(e.value),a.get("value")!==t.get("value")&&i.add(a,{merge:!0})})}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=" "+u(i(n(29)).call(e,"setting",{hash:{
idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this;return c+='<form class="edit-metadata-form"> ',l=a.each.call(t,t,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=" </form> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(101),c=n(94),u=n(3413),d=n(3415),p=n(3418),h=n.n(p),f=r.a.Layout.extend({template:h.a,dragStatus:0,ui:{
upload:".upload-artwork-container",urlInput:"input[name=url]"},regions:{list:".artwork-list-container"},events:{dragenter:"onDragEnter",dragleave:"onDragLeave",dragover:"onDragOver",drop:"onDrop",keydown:"onKeyDown","change .artwork-file-control":"onFileChange","click .upload-url-btn":"onUploadUrlClick","click .cancel-url-btn":"onCancelUrlClick","click .submit-url-btn":"onUrlSubmit","submit #upload-form":"onUrlSubmit","click .upload-back-btn":"onUploadBackClick",
"click .artwork-option":"onArtworkOptionClick"},initialize:function(e){this.type=e.type,this.metadataItem=this.model.getSingleMetadataItem(),this.changes={},this.collection=new u.a([],{server:this.model.server,section:this.model.section,parent:this.metadataItem,artworkType:this.type}),this.collection.fetch()},serializeData:function(){return{showUpload:this.model.server.supports("artworkUpload"),showFileUpload:l.a.hasFileUpload}},flushChanges:function(){this.model.set(this.changes)},
uploadFiles:function(e){if(e&&e.length){this.changes={},this.ui.upload.removeClass("show-success show-error");var t=this.collection.url(),n=s.a.extend(this.model.server.getXHROptions(t),{type:"POST",processData:!1}),i=[],r=s.a.bind(function(e){/image\//.test(e.type)&&(n.data=e,i.push(a.a.ajax(n)))},this);if(s.a.each(e,r),!i.length)return void this.ui.upload.addClass("show-error");this.ui.upload.addClass("show-progress"),this.monitorUpload(a.a.when.apply(a.a,i))}},uploadUrl:function(e){
this.changes={},this.ui.upload.removeClass("show-form"),this.ui.upload.addClass("show-progress"),this.ui.urlInput.val(""),e=this.collection.url()+"?url="+encodeURIComponent(e);var t=s.a.extend(this.model.server.getXHROptions(e),{type:"POST"});this.monitorUpload(a.a.ajax(t))},monitorUpload:function(e){e.done(s.a.bind(function(){this.isClosed||this.ui.upload.addClass("show-success");var e={server:this.model.server,onlyIfCached:!0},t=new c.a({key:this.metadataItem.get("key")},e)
;s.a.isEmpty(t)||t.fetch({usePopulatedParams:!0,data:{includePreferences:"1"}}),this.collection.fetch()},this)),e.fail(this.whenRendered(function(){this.ui.upload.addClass("show-error")})),e.always(this.whenRendered(function(){this.ui.upload.removeClass("show-progress")}))},onRender:function(){this.list.show(new d.a({collection:this.collection,itemViewOptions:{artworkType:this.type}}))},onDragEnter:function(e){this.dragStatus++,this.ui.upload.addClass("drag-hover")},onDragLeave:function(e){
0===--this.dragStatus&&this.ui.upload.removeClass("drag-hover")},onDragOver:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault(),e.stopPropagation(),this.dragStatus=0,this.ui.upload.removeClass("drag-hover"),this.uploadFiles(e.originalEvent.dataTransfer.files)},onKeyDown:function(e){27===e.which&&this.ui.upload.hasClass("show-form")&&(e.preventDefault(),this.ui.upload.removeClass("show-form"))},onFileChange:function(e){this.uploadFiles(e.target.files)},
onUploadUrlClick:function(e){e.preventDefault(),this.ui.upload.addClass("show-form"),this.ui.urlInput.focus()},onCancelUrlClick:function(e){e.preventDefault(),this.ui.upload.removeClass("show-form")},onUrlSubmit:function(e){e.preventDefault();var t=this.ui.urlInput.val();t?this.uploadUrl(t):this.ui.upload.removeClass("show-form")},onUploadBackClick:function(e){e.preventDefault(),this.ui.upload.removeClass("show-success show-error")},onArtworkOptionClick:function(e){e.preventDefault()
;var t=a()(e.currentTarget),n=t.data("ratingKey");this.$(".artwork-option.selected").removeClass("selected"),t.addClass("selected"),this.changes[this.type]=n}});t.a=f},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(25),o=n(3414),s=r.a.extend({name:"ArtworkCollection",context:["server","artworkType"],model:o.a,url:function(){return a.a.result(this.parent,"url")+"/"+this.artworkType+"s"}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r={POSTER:"poster",ART:"art",BANNER:"banner"
},o=i.a.extend({name:"ArtworkModel",context:["server","artworkType"],idAttribute:"ratingKey",rootPropertyName:"Photo",syncedAttrs:{key:a.a.string,ratingKey:a.a.string,thumb:a.a.string,selected:a.a.boolean}},{types:r});t.a=o},function(e,t,n){"use strict";var i=n(97),a=n(3416),r=i.a.extend({className:"artwork-options-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(623),r=n(822),o=n(431),s=n(3417),l=n.n(s),c=i.a.Layout.extend({tagName:"span",template:l.a,regions:{
poster:".media-poster"},initialize:function(e){var t=e.artworkType,n=150;"art"===t?n=240:"banner"===t&&(n=520),this.$el.addClass(t),this.image=new o.a({className:"media-poster-image",model:this.model,modelAttribute:"thumb",placeholderClass:a.a[t],width:n,height:r.a.getPosterHeight(t,n)})},bindings:{".artwork-option":{modelAttribute:"selected",manual:!0,formatter:function(e,t){t.toggleClass("selected",e)}}},onRender:function(){this.poster.show(this.image)}});t.a=c},function(e,t,n){var i=n(15)
;e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<a class="artwork-option media-poster-container" data-rating-key="',(o=n.ratingKey)?r=o.call(t,{hash:{},data:a}):(o=t&&t.ratingKey,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+'" href="#"> <div class="media-poster"></div> </a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o="";return o+=' <div class="upload-artwork-container"> <div class="upload-prompt"> ',r=a.if.call(e,e&&e.showFileUpload,{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=' <a class="upload-url-btn" href="#">'+d(i(n(5)).call(e,"enter a url",{hash:{},data:t}))+'</a> </div> <div class="upload-progress"> '+d(i(n(5)).call(e,"Uploading artwork...",{hash:{},data:t
}))+' </div> <div class="upload-success"> '+d(i(n(5)).call(e,"this artwork was uploaded successfully",{hash:{},data:t}))+' <span class="upload-prompt-divider">&middot;</span> '+d(i(n(5)).call(e,"{1}upload another{2}",'<a class="upload-back-btn" href="#">',"</a>",{hash:{},data:t}))+' </div> <div class="upload-error"> '+d(i(n(5)).call(e,"there was an error uploading this artwork",{hash:{},data:t
}))+' <span class="upload-prompt-divider">&middot;</span> '+d(i(n(5)).call(e,"{1}try again{2}",'<a class="upload-back-btn" href="#">',"</a>",{hash:{},data:t}))+' </div> <form id="upload-form" class="upload-form"> <input type="text" class="form-control" name="url" placeholder="'+d(i(n(5)).call(e,"Enter a url to upload an image from the web",{hash:{},data:t
}))+'"> <div class="upload-form-help"> <div class="pull-right">'+d(i(n(5)).call(e,"enter to {1}upload{2}",'<a class="submit-url-btn" href="#">',"</a>",{hash:{},data:t}))+'</div> <div class="pull-left">'+d(i(n(5)).call(e,"esc to {1}cancel{2}",'<a class="cancel-url-btn" href="#">',"</a>",{hash:{},data:t}))+"</div> </div> </form> </div> "}function l(e,t){var a=""
;return a+=' <span class="artwork-file-container"> <input type="file" class="artwork-file-control" multiple> <a href="#">'+d(i(n(5)).call(e,"choose an image",{hash:{},data:t}))+'</a> </span> <span class="upload-prompt-divider">&middot;</span> '+d(i(n(5)).call(e,"drag and drop",{hash:{},data:t}))+' <span class="upload-prompt-divider">&middot;</span> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return c=a.if.call(t,t&&t.showUpload,{
hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=' <div class="artwork-list-container"></div> '})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(3),l=n(1474),c=function(e,t){var n=a()(t),i=n.attr("name"),r=i.replace(/parentTitle$/,"parentRatingKey");r===i&&(r=null);var c,u=e.model.getQueryAttr(i),d=e.model.getQueryAttrSibling(i),p=u!==i,h=p?"title":i,f=p?"ratingKey":h,v=e.model.get("type");c=p?u.match(/(^.*)\./)[1]:"title"===h?v:null
;var g=n.data("scopeToAttr"),m=n.data("scopeToParam"),y=n.data("ratingKey"),b=!y;y&&(y=y.toString());var I=!p,S={};m&&e.listenTo(e,"reset_selectize:"+m,function(){w.loadedSearches={}});var M,D,C=e.model["original.updateValues."+i];C?(M=C.updateAttr,D=C.altUpdateAttr):(M=e.model.get(i),r&&(D=parseInt(e.model.get(r),10)),e.model["original.updateValues."+i]={updateAttr:M,altUpdateAttr:D});var j=e.model["original.general."+i];if(!j){j=[];var P={};P[h]=M,P.ratingKey=y,j=[P],
e.model["original.general."+i]=j}var O=[e.model.get(r)||e.model.get(i)],T=function(){var e=w.$dropdown_content.children();w.$dropdown.toggleClass("hidden",e.length<=1)},E=function(){o.a.defer(T)};n.data("autocompleteAttr",h),n.data("updateAttr",i),r&&n.data("altUpdateAttr",r);var w=n.selectize({options:j,items:O,plugins:["restore_on_focus"],delimiter:null,create:!0,maxItems:1,labelField:h,valueField:f,sortField:h,searchField:[h],selectOnTab:!0,hideSelected:!1,highlight:!1,openOnFocus:!0,
selectOnBlur:!0,createOnBlur:!0,persist:!0,addPrecedence:!0,allowEmptyOption:!0,allowCreateEmpty:I,manualInputWidth:!0,loadingClass:"",onFocus:function(){w.preloaded||(w.preloaded=!0,w.onSearchChange(w.$control_input.val()))},createFilter:function(e){return S[h]=e,!o()(this.options).findWhere(S)},load:function(t,n){if(!t.length)return void n();var i={};if(i[u]=t,g){var a=e.model.get(g);if(!a)return void n();i[m]=a}new l.a([],{server:e.model.server,multiMetadataItem:e.model,query:i
}).fetch().done(function(e){n(e.map(function(e){return e.toJSON()})),T()})},render:{option:function(e,t){var n,i=r?e.ratingKey===String(D):e[h]===M;return n=i?'<small class="autocomplete-annotate pull-right">('+(c&&!b?Object(s.default)("this {1}",c):Object(s.default)("original value"))+")</small>":"","<div>"+t(e[h])+n+"</div>"},option_create:function(e,t){return e.input?'<div class="create">'+t(e.input)+"</div>":'<div class="create hidden"></div>'}},onDropdownClose:function(){
w.$dropdown.addClass("hidden")},onDropdownOpen:function(){w.$dropdown.addClass("hidden"),E()},onType:o.a.bind(function(e){if(w.canCreate(e)){var t=a()(w.$dropdown_content[0].childNodes[0]);w.setActiveOption(t)}E(),this.onLockableFieldChange({currentTarget:w.$input,force:!0})},e),onOptionAdd:function(e,t){var n=o.a.pick(t,h,"ratingKey");o.a.findWhere(j,n)||j.splice(j.length,0,t)},onChange:function(t){var a=this.options[t];if(a){if(p){var r=a.ratingKey===a[h];n.data("isText",r)}e.flushChanges()
;var s=e.model.changedAttributes();o.a.has(s,u)||o.a.has(s,d)?e.trigger("focusSubmit"):o.a.defer(function(){w.onBlur()}),e.trigger("reset_selectize:"+i),T()}}})[0].selectize;w.$dropdown.addClass("hidden")};t.a=c},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"MetadataAutocompleteResultModel",context:["server","section","multiMetadataItem","query"],idAttribute:"ratingKey",rootPropertyName:"Metadata",syncedAttrs:{elementName:a.a.string,ratingKey:a.a.string,
parentRatingKey:a.a.string,grandparentRatingKey:a.a.string,type:a.a.string,title:a.a.string,parentTitle:a.a.string,grandparentTitle:a.a.string,tag:a.a.string,tagType:a.a.integer}});t.a=r},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=' <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(29)).call(e,"autocompleteTextInput",{hash:{label:"Artist",name:"parentTitle",
placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.parentTitle),ratingKey:(a=e&&e.item,null==a||!1===a?a:a.parentRatingKey),title:(a=e&&e.item,null==a||!1===a?a:a.parentTitle)},data:t}))+" </div> </div> "}function l(e,t){var a,r="";return r+=' <div class="col-md-4"> '+h(i(n(29)).call(e,"lockableTextInput",{hash:{label:"Year",name:"year",value:(a=e&&e.item,null==a||!1===a?a:a.year),placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.year),locked:(a=e&&e.locked,null==a||!1===a?a:a.year),
ratingKey:(a=e&&e.item,null==a||!1===a?a:a.ratingKey)},data:t}))+" </div> "}function c(e,t){return"9"}function u(e,t){return"5"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h=this.escapeExpression,f=this;return p+='<form class="edit-metadata-form"> ',d=a.if.call(t,t&&t.canReparent,{hash:{},inverse:f.noop,fn:f.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=' <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(29)).call(t,"lockableTextInput",{hash:{
label:"Album",name:"title",value:(d=t&&t.item,null==d||!1===d?d:d.title),placeholder:(d=t&&t.placeholders,null==d||!1===d?d:d.title),locked:(d=t&&t.locked,null==d||!1===d?d:d.title),ratingKey:(d=t&&t.item,null==d||!1===d?d:d.ratingKey),scopeToAttr:"parentRatingKey",scopeToParam:"artist.id"},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Album",name:"titleSort",value:(d=t&&t.item,
null==d||!1===d?d:d.titleSort),placeholder:(d=t&&t.placeholders,null==d||!1===d?d:d.titleSort),locked:(d=t&&t.locked,null==d||!1===d?d:d.titleSort),ratingKey:(d=t&&t.item,null==d||!1===d?d:d.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-3"> <label>'+h(i(n(5)).call(t,"Rating",{hash:{},data:o}))+'</label> <div class="rating-region"></div> </div> ',d=a.unless.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:f.noop,fn:f.program(3,l,o),data:o}),(d||0===d)&&(p+=d),
p+=' <div class="col-md-',d=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:f.program(7,u,o),fn:f.program(5,c,o),data:o}),(d||0===d)&&(p+=d),p+=' "> '+h(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(d=t&&t.item,null==d||!1===d?d:d.originallyAvailableAt),placeholder:(d=t&&t.placeholders,null==d||!1===d?d:d.originallyAvailableAt),locked:(d=t&&t.locked,null==d||!1===d?d:d.originallyAvailableAt)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Record Label",name:"studio",value:(d=t&&t.item,null==d||!1===d?d:d.studio),placeholder:(d=t&&t.placeholders,null==d||!1===d?d:d.studio),locked:(d=t&&t.locked,null==d||!1===d?d:d.studio),ratingKey:(d=t&&t.item,null==d||!1===d?d:d.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+h(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Review",
name:"summary",value:(d=t&&t.item,null==d||!1===d?d:d.summary),placeholder:(d=t&&t.placeholders,null==d||!1===d?d:d.summary),type:"textarea",rows:"5",locked:(d=t&&t.locked,null==d||!1===d?d:d.summary),ratingKey:(d=t&&t.item,null==d||!1===d?d:d.ratingKey)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var s,l="",c=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Artist",name:"title",value:(s=t&&t.item,null==s||!1===s?s:s.title),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.title),locked:(s=t&&t.locked,null==s||!1===s?s:s.title),ratingKey:(s=t&&t.item,null==s||!1===s?s:s.ratingKey)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Artist",name:"titleSort",value:(s=t&&t.item,null==s||!1===s?s:s.titleSort),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.titleSort),locked:(s=t&&t.locked,null==s||!1===s?s:s.titleSort),ratingKey:(s=t&&t.item,null==s||!1===s?s:s.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{
label:"Biography",name:"summary",value:(s=t&&t.item,null==s||!1===s?s:s.summary),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5",locked:(s=t&&t.locked,null==s||!1===s?s:s.summary)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(s=t&&t.item,null==s||!1===s?s:s.title),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.title),locked:(s=t&&t.locked,null==s||!1===s?s:s.title),ratingKey:(s=t&&t.item,null==s||!1===s?s:s.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-8 selectize"> '+c(i(n(29)).call(t,"lockableTextInput",{
hash:{label:"Sort Title",name:"titleSort",value:(s=t&&t.item,null==s||!1===s?s:s.titleSort),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.titleSort),locked:(s=t&&t.locked,null==s||!1===s?s:s.titleSort),ratingKey:(s=t&&t.item,null==s||!1===s?s:s.ratingKey)},data:o}))+' </div> <div class="col-md-4 selectize"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Content Rating",name:"contentRating",value:(s=t&&t.item,null==s||!1===s?s:s.contentRating),placeholder:(s=t&&t.placeholders,
null==s||!1===s?s:s.contentRating),locked:(s=t&&t.locked,null==s||!1===s?s:s.contentRating),ratingKey:(s=t&&t.item,null==s||!1===s?s:s.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"textInput",{hash:{label:"Summary",name:"summary",value:(s=t&&t.item,null==s||!1===s?s:s.summary),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5"},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(s=t&&t.item,null==s||!1===s?s:s.title),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.title),locked:(s=t&&t.locked,
null==s||!1===s?s:s.title)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(s=t&&t.item,null==s||!1===s?s:s.titleSort),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.titleSort),locked:(s=t&&t.locked,null==s||!1===s?s:s.titleSort)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-6"> '+c(i(n(29)).call(t,"lockableNumericInput",{hash:{label:"Rating",name:"rating",
value:(s=t&&t.item,null==s||!1===s?s:s.rating),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.rating),locked:(s=t&&t.locked,null==s||!1===s?s:s.rating)},data:o}))+' </div> <div class="col-md-6"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(s=t&&t.item,null==s||!1===s?s:s.originallyAvailableAt),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.originallyAvailableAt),locked:(s=t&&t.locked,
null==s||!1===s?s:s.originallyAvailableAt)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(s=t&&t.item,null==s||!1===s?s:s.summary),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5",locked:(s=t&&t.locked,null==s||!1===s?s:s.summary)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=" "+f(i(n(29)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,null==a||!1===a?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||!1===a?a:a.originallyAvailableAt)},data:t}))+" "}function l(e,t){var a,r="";return r+=" "+f(i(n(29)).call(e,"lockableTextInput",{
hash:{label:"Year",name:"year",value:(a=e&&e.item,null==a||!1===a?a:a.year),placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.year),locked:(a=e&&e.locked,null==a||!1===a?a:a.year)},data:t}))+" "}function c(e,t){return"12"}function u(e,t){return"6"}function d(e,t){var a,r="";return r+=' <div class="col-md-6"> '+f(i(n(29)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,null==a||!1===a?a:a.originallyAvailableAt),
placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||!1===a?a:a.originallyAvailableAt)},data:t}))+" </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var p,h="",f=this.escapeExpression,v=this;return h+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(p=t&&t.item,null==p||!1===p?p:p.title),
placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.title),locked:(p=t&&t.locked,null==p||!1===p?p:p.title),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(p=t&&t.item,null==p||!1===p?p:p.titleSort),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.titleSort),locked:(p=t&&t.locked,null==p||!1===p?p:p.titleSort),
ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Original Title",name:"originalTitle",value:(p=t&&t.item,null==p||!1===p?p:p.originalTitle),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.originalTitle),locked:(p=t&&t.locked,null==p||!1===p?p:p.originalTitle),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-4"> ',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.program(3,l,o),fn:v.program(1,s,o),data:o}),(p||0===p)&&(h+=p),h+=' </div> <div class="col-md-4"> '+f(i(n(29)).call(t,"lockableNumericInput",{hash:{label:"Rating",name:"rating",value:(p=t&&t.item,null==p||!1===p?p:p.rating),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.rating),locked:(p=t&&t.locked,null==p||!1===p?p:p.rating)},data:o
}))+' </div> <div class="col-md-4 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Content Rating",name:"contentRating",value:(p=t&&t.item,null==p||!1===p?p:p.contentRating),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.contentRating),locked:(p=t&&t.locked,null==p||!1===p?p:p.contentRating),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},
inverse:v.program(7,u,o),fn:v.program(5,c,o),data:o}),(p||0===p)&&(h+=p),h+=' selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Studio",name:"studio",value:(p=t&&t.item,null==p||!1===p?p:p.studio),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.studio),locked:(p=t&&t.locked,null==p||!1===p?p:p.studio),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+" </div> ",p=a.unless.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.noop,fn:v.program(9,d,o),data:o}),
(p||0===p)&&(h+=p),h+=' </div> <div class="row"> <div class="col-md-12"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Tagline",name:"tagline",value:(p=t&&t.item,null==p||!1===p?p:p.tagline),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.tagline),locked:(p=t&&t.locked,null==p||!1===p?p:p.tagline)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(p=t&&t.item,
null==p||!1===p?p:p.summary),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.summary),type:"textarea",rows:"5",locked:(p=t&&t.locked,null==p||!1===p?p:p.summary)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-6"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(s=t&&t.item,null==s||!1===s?s:s.title),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.title),locked:(s=t&&t.locked,null==s||!1===s?s:s.title)},data:o}))+' </div> <div class="col-md-6"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(s=t&&t.item,null==s||!1===s?s:s.titleSort),
placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.titleSort),locked:(s=t&&t.locked,null==s||!1===s?s:s.titleSort)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(s=t&&t.item,null==s||!1===s?s:s.summary),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5",locked:(s=t&&t.locked,null==s||!1===s?s:s.summary)},data:o}))+" </div> </div> </form> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(s=t&&t.item,null==s||!1===s?s:s.title),placeholder:(s=t&&t.placeholders,
null==s||!1===s?s:s.title),locked:(s=t&&t.locked,null==s||!1===s?s:s.title)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(s=t&&t.item,null==s||!1===s?s:s.titleSort),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.titleSort),locked:(s=t&&t.locked,null==s||!1===s?s:s.titleSort)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-9"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Captured Time",name:"originallyAvailableAt",value:(s=t&&t.item,null==s||!1===s?s:s.originallyAvailableAt),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.capturedTime),locked:(s=t&&t.locked,null==s||!1===s?s:s.originallyAvailableAt)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",
value:(s=t&&t.item,null==s||!1===s?s:s.summary),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5",locked:(s=t&&t.locked,null==s||!1===s?s:s.summary)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"textInput",{hash:{label:"Title",name:"title",value:(s=t&&t.item,null==s||!1===s?s:s.title)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"textInput",{hash:{label:"Summary",name:"summary",value:(s=t&&t.item,null==s||!1===s?s:s.summary),placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5"},data:o
}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="";return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+(0,this.escapeExpression)(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(s=t&&t.item,null==s||!1===s?s:s.summary),
placeholder:(s=t&&t.placeholders,null==s||!1===s?s:s.summary),type:"textarea",rows:"5",locked:(s=t&&t.locked,null==s||!1===s?s:s.summary)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=" "+f(i(n(29)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,
null==a||!1===a?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||!1===a?a:a.originallyAvailableAt)},data:t}))+" "}function l(e,t){var a,r="";return r+=" "+f(i(n(29)).call(e,"lockableTextInput",{hash:{label:"Year",name:"year",value:(a=e&&e.item,null==a||!1===a?a:a.year),placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.year),locked:(a=e&&e.locked,null==a||!1===a?a:a.year)},data:t}))+" "}function c(e,t){
return"12"}function u(e,t){return"6"}function d(e,t){var a,r="";return r+=' <div class="col-md-6"> '+f(i(n(29)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,null==a||!1===a?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||!1===a?a:a.originallyAvailableAt)},data:t}))+" </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var p,h="",f=this.escapeExpression,v=this;return h+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(p=t&&t.item,null==p||!1===p?p:p.title),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.title),locked:(p=t&&t.locked,null==p||!1===p?p:p.title),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(p=t&&t.item,null==p||!1===p?p:p.titleSort),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.titleSort),locked:(p=t&&t.locked,null==p||!1===p?p:p.titleSort),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-4"> ',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},
inverse:v.program(3,l,o),fn:v.program(1,s,o),data:o}),(p||0===p)&&(h+=p),h+=' </div> <div class="col-md-4"> '+f(i(n(29)).call(t,"lockableNumericInput",{hash:{label:"Rating",name:"rating",value:(p=t&&t.item,null==p||!1===p?p:p.rating),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.rating),locked:(p=t&&t.locked,null==p||!1===p?p:p.rating)},data:o}))+' </div> <div class="col-md-4 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Content Rating",name:"contentRating",
value:(p=t&&t.item,null==p||!1===p?p:p.contentRating),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.contentRating),locked:(p=t&&t.locked,null==p||!1===p?p:p.contentRating),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Original Title",name:"originalTitle",value:(p=t&&t.item,null==p||!1===p?p:p.originalTitle),placeholder:(p=t&&t.placeholders,
null==p||!1===p?p:p.originalTitle),locked:(p=t&&t.locked,null==p||!1===p?p:p.originalTitle),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.program(7,u,o),fn:v.program(5,c,o),data:o}),(p||0===p)&&(h+=p),h+=' selectize"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Studio",name:"studio",value:(p=t&&t.item,null==p||!1===p?p:p.studio),
placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.studio),locked:(p=t&&t.locked,null==p||!1===p?p:p.studio),ratingKey:(p=t&&t.item,null==p||!1===p?p:p.ratingKey)},data:o}))+" </div> ",p=a.unless.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.noop,fn:v.program(9,d,o),data:o}),(p||0===p)&&(h+=p),h+=' </div> <div class="row"> <div class="col-md-12"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Tagline",name:"tagline",value:(p=t&&t.item,null==p||!1===p?p:p.tagline),
placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.tagline),locked:(p=t&&t.locked,null==p||!1===p?p:p.tagline)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+f(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(p=t&&t.item,null==p||!1===p?p:p.summary),placeholder:(p=t&&t.placeholders,null==p||!1===p?p:p.summary),type:"textarea",rows:"5",locked:(p=t&&t.locked,null==p||!1===p?p:p.summary)},data:o}))+" </div> </div> </form> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=' <div class="row"> <div class="col-md-12 selectize"> '+u(i(n(29)).call(e,"autocompleteTextInput",{hash:{label:"Album Artist",name:"grandparentTitle",placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.grandparentTitle),ratingKey:(a=e&&e.item,null==a||!1===a?a:a.grandparentRatingKey),title:(a=e&&e.item,
null==a||!1===a?a:a.grandparentTitle)},data:t}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+u(i(n(29)).call(e,"autocompleteTextInput",{hash:{label:"Album",name:"parentTitle",placeholder:(a=e&&e.placeholders,null==a||!1===a?a:a.parentTitle),ratingKey:(a=e&&e.item,null==a||!1===a?a:a.parentRatingKey),title:(a=e&&e.item,null==a||!1===a?a:a.parentTitle),scopeToAttr:"grandparentRatingKey",scopeToParam:"artist.id"},data:t}))+" </div> </div> "}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this;return c+='<form class="edit-metadata-form"> ',l=a.if.call(t,t&&t.canReparent,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=' <div class="row"> <div class="col-md-12"> '+u(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(l=t&&t.item,null==l||!1===l?l:l.title),placeholder:(l=t&&t.placeholders,null==l||!1===l?l:l.title),
locked:(l=t&&t.locked,null==l||!1===l?l:l.title)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-4"> <label>'+u(i(n(5)).call(t,"Rating",{hash:{},data:o}))+'</label> <div class="rating-region"></div> </div> <div class="col-md-4"> '+u(i(n(29)).call(t,"lockableNumericInput",{hash:{label:"Track",name:"index",value:(l=t&&t.item,null==l||!1===l?l:l.index),placeholder:(l=t&&t.placeholders,null==l||!1===l?l:l.index),locked:(l=t&&t.locked,null==l||!1===l?l:l.index),
disabled:t&&t.disableIndices},data:o}))+' </div> <div class="col-md-4"> '+u(i(n(29)).call(t,"lockableNumericInput",{hash:{label:"Disc",name:"parentIndex",value:(l=t&&t.item,null==l||!1===l?l:l.parentIndex),placeholder:(l=t&&t.placeholders,null==l||!1===l?l:l.parentIndex),locked:(l=t&&t.locked,null==l||!1===l?l:l.parentIndex),disabled:t&&t.disableIndices},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+u(i(n(29)).call(t,"lockableTextInput",{hash:{label:"Artist",
name:"originalTitle",value:(l=t&&t.item,null==l||!1===l?l:l.originalTitle),placeholder:(l=t&&t.placeholders,null==l||!1===l?l:l.originalTitle),locked:(l=t&&t.locked,null==l||!1===l?l:l.originalTitle),ratingKey:(l=t&&t.item,null==l||!1===l?l:l.ratingKey)},data:o}))+" </div> </div> </form> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(246),c=n(3433),u=n(3435),d=n.n(u),p=r.a.CompositeView.extend({template:d.a,className:"files",itemView:c.a,
itemViewContainer:"ul",initialize:function(){this.collection=new l.a,this.populateParts().always(this.whenRendered(function(){this.$(".loading").addClass("hidden")}))},populateParts:function(){function e(e){var n=e.get("Media");if(n&&n.length)return s.a.each(n,t),n}function t(e){s.a.each(e.Part,n)}function n(e){i.push(e)}var i=this.collection,r=this.model.getSingleMetadataItem();return e(r)?a.a.Deferred().resolve():r.populate().then(function(){if(!e(r)&&r.has("childrenKey")){
var t=r.get("children"),n=t.get("metadataItems");if(!n.length)return t.populate().then(function(){n.each(e)});n.each(e)}})},flushChanges:function(){}});t.a=p},function(e,t,n){"use strict";var i=n(22),a=n(3434),r=n.n(a),o=i.a.ItemView.extend({template:r.a,tagName:"li",className:"well",serializeData:function(){return{file:this.model.get("file")}}});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),
a=a||{};var r,o,s="",l=this.escapeExpression;return(o=n.file)?r=o.call(t,{hash:{},data:a}):(o=t&&t.file,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+="<h4>"+(0,this.escapeExpression)(i(n(5)).call(t,"Files",{hash:{},data:o
}))+'</h4> <ul class="media-info-file-list"></ul> <div class="loading-container"><div class="loading"></div></div> '})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(16),o=n(160),s=n(79),l=n(1475),c=n(3445),u=n.n(c),d=l.a.extend({templatesByType:{movie:u.a,show:u.a,album:u.a,photo:u.a},serializeData:function(){var e=r.c("appModel"),t=e.get("user"),n=l.a.prototype.serializeData.apply(this,arguments),i=t.get("features").get(s.c);return a.a.extend(n,{
showLabels:this.model.server.supports("labels"),labelsMinVersion:o.a.labels,hasContentFilterFeature:i,plexPassUrl:t.server.get("plexPassUrl")}),n}});t.a=d},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(807),l=n(3),c=n(27),u=n(1474),d=function(e,t){var n=a()(t),i=n.data("name"),r=n.data("query")||n.data("name"),d=n.data("attr"),p=!!n.data("only-delete"),h=e.model.get(d).toJSON(),f=o.a.pluck(h,"tag"),v=e.model["original.tag."+i];v||(v=o.a.clone(h),
e.model["original.tag."+i]=v);var g=o.a.difference(f,o.a.pluck(v,"tag"));if(g.length){var m=o.a.map(g,function(e){return{tag:e}});m.unshift(v.length,0),v.splice.apply(v,m)}var y=function(t){e.model["original.allTagsRequested."+i]=!0,new s.a({filter:i,filterType:"string"},{server:e.model.server,section:e.section,type:Object(c.r)(e.model.get("type")).id}).get("options").populate().then(o.a.bind(function(n){e.model["original.allTagsAvailable."+i]=!0,t(n.map(function(e){return{tag:e.attributes.title
}}))},e))};n.data("original-value",n.val()),n.selectize({options:v,items:f,plugins:["remove_button"],create:!0,hideDropdown:p,labelField:"tag",valueField:"tag",sortField:"tag",searchField:["tag"],highlight:!1,createFilter:function(e){return!o()(this.options).findWhere({tag:e})},onInitialize:function(){p&&(this.$control.off("click mousedown"),this.$control.addClass("no-input"),this.$control_input.prop("disabled",!0))},onChange:function(){e.onLockableFieldChange(n)},onFocus:function(){
this.onSearchChange("")},loadingClass:"",load:function(t,n){if(!(r!==i||t.length&&e.canAutocomplete))return void(e.model["original.allTagsRequested."+i]?n():y.call(e,n));if(e.model["original.allTagsAvailable."+i]||0===t.length)return void n();var a={};a[r]=t;var o=r===i?function(e){return e.toJSON()}:function(e){return{tag:e.get(r)}};new u.a([],{server:e.model.server,multiMetadataItem:e.model,query:a}).fetch().done(function(e){var t=e.map(o);n(t)}).fail(function(){n()})},render:{
item:function(e,t){return'<div class="item">'+(e.tag?t(e.tag):'<span class="autocomplete-annotate">('+Object(l.default)("blank")+")</span>")+"</div>"},option:function(e,t){return'<div class="item">'+(e.tag?t(e.tag):'<small class="autocomplete-annotate">('+Object(l.default)("blank")+")</small>")+"</div>"}}})};t.a=d},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(s=t&&t.locked,null==s||!1===s?s:s.genre)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(s=t&&t.locked,
null==s||!1===s?s:s.collection)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a,r="";return r+=' <div class="row"> <div class="col-md-12"> '+u(i(n(29)).call(e,"lockableTagInput",{hash:{label:"Similar Artists",name:"similar",attribute:"similar",query:"title",locked:(a=e&&e.locked,null==a||!1===a?a:a.similar)},data:t}))+" </div> </div> "}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this;return c+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+u(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(l=t&&t.locked,null==l||!1===l?l:l.genre)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Country",name:"country",
attribute:"countries",locked:(l=t&&t.locked,null==l||!1===l?l:l.country)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(l=t&&t.locked,null==l||!1===l?l:l.collection)},data:o}))+" </div> </div> ",l=a.if.call(t,t&&t.canEditSimilarArtists,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+=" </form> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Writers",name:"writer",attribute:"writers",locked:(s=t&&t.locked,null==s||!1===s?s:s.writer)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Directors",name:"director",attribute:"directors",locked:(s=t&&t.locked,null==s||!1===s?s:s.director)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-6"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Directors",name:"director",attribute:"directors",locked:(s=t&&t.locked,null==s||!1===s?s:s.director)},data:o}))+' </div> <div class="col-md-6"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Country",name:"country",attribute:"countries",locked:(s=t&&t.locked,null==s||!1===s?s:s.country)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(s=t&&t.locked,null==s||!1===s?s:s.genre)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Writers",name:"writer",attribute:"writers",locked:(s=t&&t.locked,null==s||!1===s?s:s.writer)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(s=t&&t.locked,null==s||!1===s?s:s.collection)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Tags",name:"tag",attribute:"tags",locked:(s=t&&t.locked,null==s||!1===s?s:s.tag)},data:o}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{onlyDelete:!0,label:"Autotags",name:"autotag",attribute:"autotags",locked:(s=t&&t.locked,null==s||!1===s?s:s.autotag)},data:o}))+" </div> </div> </form> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(s=t&&t.locked,null==s||!1===s?s:s.genre)},data:o
}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(s=t&&t.locked,null==s||!1===s?s:s.collection)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l=""
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+(0,this.escapeExpression)(i(n(29)).call(t,"lockableTagInput",{hash:{label:"Moods",name:"mood",attribute:"moods",locked:(s=t&&t.locked,null==s||!1===s?s:s.mood)},data:o}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i=""
;return i+=' <form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> ',n=a.if.call(e,e&&e.showLabels,{hash:{},inverse:f.program(4,c,t),fn:f.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> </div> </form> "}function l(e,t){var a,r="";return r+=" "+h(i(n(29)).call(e,"lockableTagInput",{hash:{label:"Labels",name:"label",attribute:"labels",locked:(a=e&&e.locked,null==a||!1===a?a:a.label)},data:t}))+" "}function c(e,t){var a=""
;return a+=' <div class="form-group"> <label>'+h(i(n(5)).call(e,"Labels",{hash:{},data:t}))+"</label> <p>"+h(i(n(5)).call(e,"Labels require Plex Media Server {1} or later.",e&&e.labelsMinVersion,{hash:{},data:t}))+"</p> </div> "}function u(e,t){var a,r="";return r+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+h(i(n(5)).call(e,"You need a Plex Pass to use restrictions.",{hash:{},data:t
}))+'</h4> <p class="text-center"> <a class="btn btn-sm btn-primary" href="'+h((a=e&&e.plexPassUrl,typeof a===v?a.apply(e):a))+'" target="_blank">'+h(i(n(5)).call(e,"Learn More",{hash:{},data:t}))+"</a> </p> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h=this.escapeExpression,f=this,v="function";return d=a.if.call(t,t&&t.hasContentFilterFeature,{hash:{},inverse:f.program(6,u,o),fn:f.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){
"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(3),c=n(524),u=n(1473),d=n(96),p=n(1476),h=n.n(p),f={playlist:["general"]},v=d.a.extend({mixins:[c.a],name:"editPlaylistModal",className:"edit-metadata-modal modal modal-lg fade",template:h.a,panes:{general:{constructor:u.a}},panesModel:"tempModel",events:o.a.extend({"click .change-pane-btn":"onChangePaneClick","click .save-btn":"onFormSubmit","submit .edit-metadata-form":"onFormSubmit"},d.a.prototype.events),ui:{saveBtn:".save-btn",
message:".form-message",navPane:".modal-nav-pane",loadingIndicator:".modal-body-pane .loading-inline"},regions:{paneRegion:".pane-region"},onlyAfterRender:["saveChanges","showPane","showNav"],initialize:function(e){d.a.prototype.initialize.apply(this,arguments);var t,n=e.model,i=[n];if(this.model=n,this.tempModel=n.clone(),!t){var r=a.a.Deferred();r.resolve(),t=r.promise()}t=t.done(o.a.bind(function(){this.tempModel.set(n.attributes),1===i.length&&this.tempModel.set("key",i[0].get("key")),
this.showNav(),this.showPane(e.selectedPane||"general"),this.listenTo(s.a,"shortcut:save",this.saveChanges)},this)),t.fail(o.a.bind(function(){this.ui.message.text(Object(l.default)("There was an error editing this item")),this.ui.loadingIndicator.addClass("hidden")},this))},serializeData:function(){var e=f[this.model.get("type")]||f.movie,t=o.a.reduce(e,function(e,t){return e[t]=!0,e},{}),n=o.a.escape(Object(l.default)("Edit {1}",this.model.get("title")));return{item:this.model.toJSON(),
panes:t,selectedPane:this.selectedPane,paneTitle:n}},paneConstructorArg:function(){return{type:this.selectedPane}},showNav:function(){this.ui.navPane.removeClass("hidden")},saveChanges:function(){var e=this.ui.saveBtn,t=this.ui.message;if(!e.isDisabled()){t.text(""),this.paneRegion.currentView.flushChanges();var n=o.a.reduce(this.model.changedAttributes(this.tempModel.attributes),function(e,t,n){return e[n]=t,e},{});e.addClass("active");var i=[];o.a.isEmpty(n)||i.push(this.model.save(n))
;var r=a.a.when.apply(a.a,i);r.done(o.a.bind(function(){this.hide()},this)),r.fail(function(){t.text(Object(l.default)("Your changes could not be saved."))}),r.always(function(){e.removeClass("active")})}},onPaneShow:function(e,t){this.listenTo(t,"focusSubmit",function(){this.ui.saveBtn.focus()})},onPaneHide:function(e,t){t.flushChanges(),this.stopListening(t)},onFormSubmit:function(e){e.preventDefault(),this.saveChanges()}});t.a=v},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(3),l=n(524),c=n(3448),u=n(96),d=n(3450),p=n(3452),h=n(3464),f=n.n(h),v=u.a.extend({mixins:[l.a],name:"fixIncorrectMatch",className:"fix-incorrect-match-modal modal modal-lg fade",template:f.a,panes:{form:{constructor:d.a},results:{constructor:p.a}},ui:{searchBtn:".search-btn"},regions:{paneRegion:".pane-region",autoMatchDropdownRegion:".auto-match-dropdown-region"},events:o.a.extend({"click .auto-match-agent":"hide","click .match-result":"hide",
"click .search-options-btn":"onSearchOptionsClick","click .cancel-btn":"onCancelClick","click .search-btn":"onSearchClick","submit #fix-incorrect-match-form":"onSearchSubmit"},u.a.prototype.events),onlyAfterRender:["showPane","updateSearchBtn"],initialize:function(){u.a.prototype.initialize.apply(this,arguments),d.a.prototype.setupAgents.apply(this),p.a.prototype.setupResults.apply(this),this.showPane("results")},serializeData:function(){return{location:this.model.getLocation(),
showNavigation:!this.model.isPlexMusicItem()}},updateSearchBtn:function(e){this.ui.searchBtn.toggleClass("disabled","form"!==e)},fetchResults:function(e){var t=o.a.reduce(e.serializeArray(),function(e,t){return e[t.name]=t.value,e},{manual:1});this.model.results.fetch({reset:!0,data:t,processData:!0,timeout:0})},bindings:{".modal-title-text":{modelAttribute:"guid",formatter:function(e){return/com\.plexapp\.agents\.none\:\/\//.test(e)?Object(s.default)("Match"):Object(s.default)("Fix Match")}}},
onRender:function(){u.a.prototype.onRender.apply(this,arguments),this.autoMatchDropdownRegion.show(new c.a({model:this.model,collection:this.model.agentsProxy}))},onPaneShow:function(e){this.updateSearchBtn(e)},onSearchOptionsClick:function(e){e.preventDefault(),this.showPane("form")},onCancelClick:function(e){e.preventDefault(),"results"!==this.selectedPane?this.showPane("results"):this.hide()},onSearchClick:function(e){e.preventDefault();var t=a()(e.currentTarget);if(!t.isDisabled()){
var n=t.closest("form");this.fetchResults(n),this.showPane("results")}},onSearchSubmit:function(e){e.preventDefault();var t=a()(e.currentTarget);t.find("search-btn").isDisabled()||(this.fetchResults(t),this.showPane("results"))}});t.a=v},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(43),s=n(3449),l=n.n(s),c=r.a.ItemView.extend({id:"auto-match-dropdown",tagName:"span",className:"dropdown",template:l.a,collectionEvents:{reset:"render"},events:{"click .auto-match-agent":"onClick"},
serializeData:function(){return{agents:this.collection.toJSON()}},onClick:function(e){e.preventDefault();var t=a()(e.currentTarget).data("id"),n=this.model.agents.get(t);o.a.execute("autoMatch",{item:this.model,agent:n})}});t.a=c},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <li><a class="auto-match-agent" href="#" data-id="'+d((n=e&&e.identifier,
typeof n===u?n.apply(e):n))+'">'+d((n=e&&e.name,typeof n===u?n.apply(e):n))+"</a></li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u="function",d=this.escapeExpression,p=this;return c+='<a class="dropdown-toggle" href="#auto-match-dropdown" data-toggle="dropdown">'+d(i(n(5)).call(t,"Auto Match",{hash:{},data:o}))+' <i class="caret-icon caret-icon-sm"></i></a> <ul class="dropdown-menu"> ',l=a.each.call(t,t&&t.agents,{hash:{},inverse:p.noop,fn:p.program(1,s,o),
data:o}),(l||0===l)&&(c+=l),c+=" </ul> "})},function(e,t,n){"use strict";function i(e){return l.a.map(e,function(e){return'<option value="'+e.value+'"'+(e.selected?" selected":"")+">"+e.label+"</option>"}).join("\n")}function a(e,t){return e.map(function(e){return{label:e.get("name"),value:e.get("identifier"),selected:t===e.get("identifier")}})}function r(e,t){return e?e.get("languages").map(function(e){return{label:e.get("name"),value:e.id,selected:e.id===t}}):[]}
var o=n(22),s=n(10),l=n.n(s),c=n(513),u=n(693),d=n(1428),p=n(3451),h=n.n(p),f=o.a.ItemView.extend({template:h.a,ui:{agentSelect:"#match-search-agent",languageSelect:"#match-search-language"},events:{"change #match-search-agent":"onAgentSelectChange"},onlyAfterRender:["updateAgents","updateLanguages"],initialize:function(){var e=Object(c.a)(this.model),t=e.get("agent"),n=this.setupAgents(t);n.then(l.a.bind(this.updateAgents,this,t)),n.then(l.a.bind(this.updateLanguages,this,t))},
serializeData:function(){var e=Object(c.a)(this.model),t=e.get("agent"),n=this.model.agentsProxy.findWhere({identifier:t});return{item:this.model.toJSON(),agents:a(this.model.agentsProxy,t),languages:r(n)}},setupAgents:function(e){if(this.model.agentsPromise)return this.model.agentsPromise;var t=Object(c.a)(this.model),n=t.getSectionType(),i=new u.a([],{server:this.model.server,mediaTypeID:n.typeID}),a=n.exclusiveAgents,r=new d.a(i,a,e);return this.model.agents=i,this.model.agentsProxy=r,
this.model.agentsPromise=this.model.agents.populate({reset:!0,cancelable:!0}),this.model.agentsPromise},updateAgents:function(e){this.ui.agentSelect.html(i(a(this.model.agentsProxy,e)))},updateLanguages:function(e){var t=this.model.agentsProxy.findWhere({identifier:e});if(!e)return void this.ui.languageSelect.empty();var n=Object(c.a)(this.model),a=n.get("language");this.ui.languageSelect.html(i(r(t,a)))},onAgentSelectChange:function(e){this.updateLanguages(e.currentTarget.value)},
onModalClose:function(){this.model.agents=null,this.model.agentsProxy=null,this.model.agentsPromise=null}});t.a=f},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <option value="'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+'" ',n=a.if.call(e,e&&e.selected,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=">"+f((n=e&&e.label,
typeof n===h?n.apply(e):n))+"</option> "}function l(e,t){return"selected"}function c(e,t){var a="";return a+=' <option value="">'+f(i(n(5)).call(e,"Loading...",{hash:{},data:t}))+"</option> "}function u(e,t){var n,i="";return i+=' <option value="'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+'">'+f((n=e&&e.label,typeof n===h?n.apply(e):n))+"</option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h="function",f=this.escapeExpression,v=this
;return p+='<div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-title">'+f(i(n(5)).call(t,"Title",{hash:{},data:o}))+'</label> <input type="text" id="match-search-title" name="title" class="form-control" value="'+f((d=t&&t.item,d=null==d||!1===d?d:d.title,typeof d===h?d.apply(t):d))+'"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-agent">'+f(i(n(5)).call(t,"Agent",{
hash:{},data:o}))+'</label> <select id="match-search-agent" name="agent"> ',d=a.each.call(t,t&&t.agents,{hash:{},inverse:v.program(4,c,o),fn:v.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=' </select> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-year">'+f(i(n(5)).call(t,"Year",{hash:{},data:o}))+'</label> <input type="text" id="match-search-year" name="year" class="form-control" value="'+f((d=t&&t.item,
d=null==d||!1===d?d:d.year,typeof d===h?d.apply(t):d))+'"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-language">'+f(i(n(5)).call(t,"Language",{hash:{},data:o}))+'</label> <select id="match-search-language" name="language"> ',d=a.each.call(t,t&&t.languages,{hash:{},inverse:v.program(4,c,o),fn:v.program(6,u,o),data:o}),(d||0===d)&&(p+=d),p+=" </select> </div> </div> </div> "})},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(513),s=n(1477),l=n(3454),c=n(3463),u=n.n(c),d=i.a.Layout.extend({template:u.a,regions:{resultRegion:".result-region"},onlyAfterRender:["updateResults"],initialize:function(){this.setupResults();var e=Object(o.a)(this.model),t={manual:1},n={reset:!0,timeout:0,data:t};/com\.plexapp\.agents\.none\:\/\//.test(this.model.get("guid"))&&r.a.extend(n,{data:r.a.extend(t,{agent:e.get("agent"),language:e.get("language")}),processData:!0}),
this.model.results.populate(n).then(r.a.bind(this.updateResults,this))},setupResults:function(){if(!this.model.results){var e=this.model.results||new s.default([],{server:this.model.server,parent:this.model});this.model.results=e}},updateResults:function(){this.resultRegion.show(new l.a({collection:this.model.results,itemViewOptions:{item:this.model}}))},onModalClose:function(){this.model.results=null}});t.a=d},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({
name:"MatchResultModel",context:["server"],idAttribute:"guid",rootPropertyName:"SearchResult",syncedAttrs:{id:a.a.integer,guid:a.a.string,name:a.a.string,parentGUID:a.a.string,parentName:a.a.string,type:a.a.string,index:a.a.integer,score:a.a.integer,thumb:a.a.string,year:a.a.integer,matched:a.a.boolean},syncedRelations:{children:function(){return{relationClass:n(1477).default,rootPropertyName:"SearchResult"}}},derivedAttrs:{normalizedScore:function(){var e=this.get("score")
;if(null!=e)return Math.min(Math.max(e,0),100)}}});t.a=r},function(e,t,n){"use strict";var i=n(97),a=n(3455),r=n(3457),o=i.a.extend({tagName:"ul",className:"list match-result-list",itemView:r.a,emptyView:a.a});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(3456),r=n.n(a),o=i.a.ItemView.extend({template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="match-empty-message">'+(0,this.escapeExpression)(i(n(5)).call(t,"No matches found.",{hash:{},data:o}))+"</div> "})},function(e,t,n){"use strict";var i=n(22),a=n(43),r=n(3458),o=n(3462),s=n.n(o),l=i.a.Layout.extend({tagName:"li",className:"striped-list-item match-result-list-item row",template:s.a,ui:{matchExtendedInfo:".match-extended-info"},regions:{childrenRegion:".children-region"},events:{"click .match-result":"onClick"},
initialize:function(e){this.item=e.item},onRender:function(){var e=this.model.get("children");if(e){var t=e.first();t&&"track"===t.get("type")&&(this.ui.matchExtendedInfo.removeClass("hidden"),this.childrenRegion.show(new r.a({collection:e})))}},onClick:function(e){e.preventDefault(),a.a.execute("match",{item:this.item,guid:this.model.id,name:this.model.get("name"),children:this.model.get("children")})}});t.a=l},function(e,t,n){"use strict";var i=n(3459),a=n(97),r=n(3460),o=a.a.extend({
mixins:[i.a],tagName:"ul",itemView:r.a,className:"list"});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r={collectionEvents:{"update reset sort":"onTracksUpdate"},markDiscNumbers:function(){if(this.collection.server.supports("premiumMusic")){var e=this.collection.reduce(function(e,t,n){var i=t.get("parentIndex");return i!==e.lastDiscNumber&&(e.markers[n]=i,e.lastDiscNumber=i,e.count+=1),e},{markers:{},lastDiscNumber:null,count:0});return this.discMarkers=e.markers,e.count}},
onRender:function(){1!==this.markDiscNumbers()&&a.a.each(this.discMarkers,a.a.bind(function(e,t){this.$("li:eq("+t+") .disc-number").removeClass("hidden")},this))},onTracksUpdate:function(){this.render()}};t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(3461),r=n.n(a),o=i.a.ItemView.extend({tagName:"li",template:r.a,className:"striped-list-item",initialize:function(e){this.item=e.item}});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"missing"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this.escapeExpression,d=this;return c+='<div class="row disc-number hidden"> '+u(i(n(5)).call(t,"Disc {1}",t&&t.parentIndex,{hash:{},data:o}))+' </div> <div class="row striped-list-inner-item"> <span class="col-xs-1 match-index"> '+u((l=t&&t.index,
"function"==typeof l?l.apply(t):l))+'. </span> <span class="col-xs-11 match-track-name ',l=a.unless.call(t,t&&t.matched,{hash:{},inverse:d.noop,fn:d.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='"> '+u((l=t&&t.name,"function"==typeof l?l.apply(t):l))+" </span> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <span class="match-name">'+h((n=e&&e.parentName,
typeof n===p?n.apply(e):n))+'</span> &ndash; <span class="match-name">'+h((n=e&&e.name,typeof n===p?n.apply(e):n))+"</span> "}function l(e,t){var n,i="";return i+=' <span class="match-name">'+h((n=e&&e.name,typeof n===p?n.apply(e):n))+"</span> "}function c(e,t){var n,i="";return i+=' <span class="match-year">'+h((n=e&&e.year,typeof n===p?n.apply(e):n))+'</span> <span class="match-separator">&middot;</span> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{}
;var u,d="",p="function",h=this.escapeExpression,f=this;return d+='<a class="match-result col-xs-12" href="#"> <div class="row"> <div class="col-xs-9 match-title-info"> ',u=a.if.call(t,t&&t.parentName,{hash:{},inverse:f.program(3,l,o),fn:f.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+=' </div> <div class="col-xs-3 match-score-info" title="'+h(i(n(5)).call(t,"Score {1}",t&&t.normalizedScore,{hash:{},data:o}))+'"> ',u=a.if.call(t,t&&t.year,{hash:{},inverse:f.noop,fn:f.program(5,c,o),data:o}),
(u||0===u)&&(d+=u),d+=' <span class="match-score"><i class="match-score-icon glyphicon certificate"></i>'+h((u=t&&t.normalizedScore,typeof u===p?u.apply(t):u))+'</span> </div> </div> <div class="row match-extended-info hidden"> <div class="col-xs-4"> <img class="match-art" src="'+h((u=t&&t.thumb,typeof u===p?u.apply(t):u))+'"/> </div> <div class="col-xs-8 children-region"></div> </div> </a> '})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){
return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="result-region"> <div class="loading loading-inline"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <div class="match-location"> '+p(i(n(5)).call(e,"Location",{hash:{},data:t}))+": "+p(i(n(1445)).call(e,e&&e.location,60,12,{hash:{},data:t}))+" </div> "}function l(e,t){
var a="";return a+=' <ul class="list modal-list"> <li class="modal-list-item"><a class="search-options-btn" href="#">'+p(i(n(5)).call(e,"Search Options",{hash:{},data:t}))+'</a></li> <li class="auto-match-dropdown-region modal-list-item"></li> </ul> '}function c(e,t){var a="";return a+=' <button type="submit" class="search-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(5)).call(e,"Search",{hash:{},data:t}))+"</span> </button> "}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p=this.escapeExpression,h=this;return d+='<div class="modal-dialog"> <div class="modal-content"> <form id="fix-incorrect-match-form"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon nameplate"></i> <span class="modal-title-text"></span></h4> ',u=a.if.call(t,t&&t.location,{hash:{},
inverse:h.noop,fn:h.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+=' </div> <div class="modal-body modal-body-scroll dark-scrollbar"> ',u=a.if.call(t,t&&t.showNavigation,{hash:{},inverse:h.noop,fn:h.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+=' <div class="pane-region"></div> </div> <div class="modal-footer"> <div class="match-search-actions"> <button type="button" class="cancel-btn btn btn-default">'+p(i(n(5)).call(t,"Cancel",{hash:{},data:o}))+"</button> ",u=a.if.call(t,t&&t.showNavigation,{
hash:{},inverse:h.noop,fn:h.program(5,c,o),data:o}),(u||0===u)&&(d+=u),d+=" </div> </div> </form> </div> </div> "})},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.searchResults});t.a=r},function(e,t,n){"use strict";function i(e){switch(e){case"movie":return[j.a,w.a];case"show":return[j.a,T.a];case"episode":return[j.a,S.a];case"artist":return[j.a,D.a];case"album":return[j.a,M.a];case"track":return[j.a,E.a];case"photo":
case"photoalbum":case"clip":return[j.a,P.a];case"playlist":return[j.a,O.a];case"collection":return[j.a,C.a];default:return[j.a,k.a]}}function a(e){return[R.a,k.a]}function r(e,t){return t?i(e):a(e)}var o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),
n(129)),m=n.n(g),y=n(20),b=n(28),I=n(476),S=n(287),M=n(564),D=n(1487),C=n(1488),j=n(974),P=n(975),O=n(3499),T=n(976),E=n(977),w=n(400),A=n(137),x=n(3502),N=n(3509),L=n(3515),k=n(1492),R=n(3518),z=n(3520),U=n.n(z),B=function(e){function t(n){c()(this,t);var i=d()(this,e.call(this,n));return i.onItemPress=function(e){e.stopPropagation(),i.state.isActionsMenuOpen&&i.props.onLinkPress()},i.onItemFocus=function(e){i.props.onResultFocus(i.props.searchResultEntityID)},i.onPlayPress=function(e){
e.stopPropagation(),i.props.onPlayPress(i.props.searchResultEntityID)},i.onLinkPress=function(e){e.stopPropagation(),i.props.onLinkPress()},i.onActionsMenuOpenChange=function(e){i.setState({isActionsMenuOpen:e})},i.state={isActionsMenuOpen:!1},i}return h()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.componentWillUpdate=function(e,t){if(e.isSelected!==this.props.isSelected&&e.isSelected){var n=m.a.findDOMNode(this);this.props.onScrollIntoView({
scrollTop:n.offsetTop})}},t.prototype.render=function(){var e=this,t=this.props,n=t.serverEntityID,i=t.providerEntityID,a=t.searchResultEntityID,o=t.metadataItemEntityID,l=t.server,c=t.provider,u=t.isSelected,d=t.isMetadataItem,p=t.imageWidth,h=t.imageHeight,f=t.imageUrl,v=t.resultRoute,g=t.metadataKey,m=t.metadataTitle,b=t.metadataType,S=t.tag,M=t.tagTypeString,D=t.librarySectionType,C=t.reasonTitle,j=this.state.isActionsMenuOpen,P=d?b:M,O=c.protocols.livetv;return s()(y.a,{component:"div",
"data-qa-id":"quickSearchItemButton",className:(U.a.button||"")+" "+((u||j)&&U.a.selected||""||""),onPress:this.onItemPress,onFocus:this.onItemFocus},void 0,s()(y.a,{className:U.a.underlay,"data-qa-id":"quickSearchItemLink",tabIndex:"1",title:d?m:S,to:v,onPress:v?this.onLinkPress:this.onPlayPress}),s()("div",{className:U.a.overlay},void 0,s()("div",{className:U.a.imageContainer},void 0,d?s()(x.a,{serverEntityID:n,providerEntityID:i,imageWidth:p,imageHeight:h,imageUrl:f,title:m,type:b,
isLiveTVItem:O,recordLink:Object(A.a)(l,c,g,{record:1}),onRecordPress:this.onLinkPress,onPlayPress:this.onPlayPress}):s()(N.a,{serverEntityID:n,providerEntityID:i,imageWidth:p,imageHeight:h,imageUrl:f,title:S,tagType:M,librarySectionType:D})),s()("div",{className:U.a.titles,"data-qa-id":"quickSearchTitleContainer"},void 0,r(P,d).map(function(t,r){var l=r>0,c=l&&!!C;return s()(L.a,{className:l?null:U.a.title,serverEntityID:n,providerEntityID:i,searchResultEntityID:a,metadataItemEntityID:o,
component:c?k.a:t,isSecondary:l,onPress:e.onLinkPress},r)})),d&&!O&&s()(I.a,{"data-qa-id":"quickSearchMoreButton",className:U.a.moreButton,iconClassName:U.a.moreIcon,tabIndex:"-1",serverEntityID:n,providerEntityID:i,metadataItemEntityID:o,showPlayTrailer:!1,showPlayPlexMix:!1,showQueuePlexMix:!1,showPlayMusicVideo:!1,showEdit:!1,showRefresh:!1,showAnalyze:!1,showFixMatch:!1,showMatch:!1,showUnmatch:!1,showSplitApart:!1,showSync:!1,showOptimize:!1,showDownload:!1,showDelete:!1,
showDeleteVersion:!1,isMenuOpen:j,onMenuOpenChange:this.onActionsMenuOpenChange})))},t}(v.Component);B.defaultProps={isMetadataItem:!1},t.a=B},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(d.c,Object(u.a)(),Object(f.a)(),function(e,t,n){return o()({providerIdentifier:e.identifier,type:t.type,subtype:t.subtype,saved:t.saved,title:t.title,viewedLeafCount:t.viewedLeafCount,unviewedLeafCount:t.unviewedLeafCount,isRefreshing:!!t.metadataState,isAnalyzing:!!t.mediaState,
downloadUrl:t.downloadUrl,mediaItems:t.Media},n)})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,itemServerEntityID:t.itemServerEntityID,itemProviderEntityID:t.itemProviderEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage};return{onPlayPress:function(){e(c.m(o()({},n,{options:{containerKey:t.containerKey,listType:t.listType}}))),t.onPress()},onPlayVersionPress:function(i){e(c.m(o()({},n,{startMediaIndex:i,options:{
containerKey:t.containerKey,listType:t.listType}}))),t.onPress()},onPlayAllPress:function(){e(c.l(n)),t.onPress()},onShufflePress:function(){e(c.q(n)),t.onPress()},onPlayNextPress:function(){e(c.h(o()({},n,{options:{playAll:!0,next:!0}}))),t.onPress()},onAddToQueuePress:function(){e(c.h(o()({},n,{options:{playAll:!0,next:!1}}))),t.onPress()},onPlayPlexMixPress:function(){e(c.p(n)),t.onPress()},onQueuePlexMixPress:function(){e(c.i(n)),t.onPress()},onPlayPrimaryExtraPress:function(){e(c.n(n)),
t.onPress()},onPlayRadioPress:function(){e(c.o(n)),t.onPress()},onAddToSavedPress:function(){e(Object(l.f)(n)),t.onPress()},onMarkPlayedConfirm:function(){e(h.markMetadataItemPlayed(o()({},n,{skipConfirm:!0}))),t.onPress()},onMarkUnplayedConfirm:function(){e(h.markMetadataItemUnplayed(o()({},n,{skipConfirm:!0}))),t.onPress()},onEditPress:function(){e(h.editMetadataItem(n)),t.onPress()},onRefreshPress:function(){e(h.refreshMetadataItem(n)),t.onPress()},onAnalyzePress:function(){
e(h.analyzeMetadataItem(n)),t.onPress()},onFixMatchPress:function(){e(h.fixMetadataItemMatch(n)),t.onPress()},onUnmatchPress:function(){e(h.unmatchMetadataItem(n)),t.onPress()},onSplitApartPress:function(){e(h.splitMetadataItemApart(n)),t.onPress()},onSyncPress:function(){e(h.syncMetadataItem(n)),t.onPress()},onOptimizePress:function(){e(h.optimizeMetadataItem(n)),t.onPress()},onDownloadVersionPress:function(){e(h.downloadMetadataItemVersion(n)),t.onPress()},onDeletePress:function(){
e(h.deleteMetadataItem(o()({},n,{options:{skipRedirect:!t.allowRedirectOnDelete}}))),t.onPress()},onDeleteVersionPress:function(){e(h.deleteMetadataItemVersion(n)),t.onPress()},onGetInfoPress:function(){e(h.getMetadataItemInfo(n)),t.onPress()}}}var r=n(6),o=n.n(r),s=n(4),l=(n.n(s),n(260)),c=n(77),u=n(21),d=n(39),p=n(58),h=n(191),f=n(1479),v=n(397),g=n(3468);t.a=Object(p.a)(i,a,v.a)(g.a)},function(e,t,n){"use strict";function i(e,t){return!!g.a.find(e,function(e){return t[e]})}function a(e,t,n){
return n===M.b?e?Object(S.default)("Remove from My Podcasts"):Object(S.default)("Add to My Podcasts"):t===I.e||t===I.f?e?Object(S.default)("Remove from My TIDAL"):Object(S.default)("Add to My TIDAL"):e?Object(S.default)("Remove from My Shows"):Object(S.default)("Add to My Shows")}var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),
n(10)),g=n.n(v),m=n(112),y=n(284),b=n(86),I=n(41),S=n(3),M=n(106),D=n(681),C=n(1481),j=n(3469),P=n(1482),O=n(398),T=n(24),E=["showPlay","showPlayVersion","showPlayAll","showShuffle","showQueue","showPlayPlexMix","showQueuePlexMix","showPlayTrailer","showPlayMusicVideo","showAddToAlbum","showAddToPlaylist"],w=["showEdit","showMarkPlayed","showMarkUnplayed","showSettings","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDownload","showDelete","showDeleteVersion","showGetInfo"],A=o()(y.a,{}),x=function(e){
function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onMarkPlayedPress=function(e){a.setState({isConfirmMarkPlayedModalOpen:!0}),a.props.onMenuDisable()},a.onMarkUnplayedPress=function(e){a.setState({isConfirmMarkUnplayedModalOpen:!0}),a.props.onMenuDisable()},a.onMarkPlayedConfirm=function(){var e=a.state.isConfirmMarkPlayedModalOpen;a.setState({isConfirmMarkPlayedModalOpen:!1,isConfirmMarkUnplayedModalOpen:!1}),e?a.props.onMarkPlayedConfirm():a.props.onMarkUnplayedConfirm(),
a.props.onMenuEnable()},a.onMarkPlayedCancel=function(){a.setState({isConfirmMarkPlayedModalOpen:!1,isConfirmMarkUnplayedModalOpen:!1}),a.props.onMenuEnable()},a.onPlayVersionPress=function(e){a.setState({isPlayVersionModalOpen:!0}),a.props.onMenuDisable()},a.onPlayVersionSelect=function(e){a.setState({isPlayVersionModalOpen:!1}),a.props.onPlayVersionPress(e),a.props.onMenuEnable()},a.onPlayVersionCancel=function(){a.setState({isPlayVersionModalOpen:!1}),a.props.onMenuEnable()},
a.onSettingsPress=function(){a.setState({isSettingsModalOpen:!0}),a.props.onMenuDisable()},a.onSettingsClose=function(){a.setState({isSettingsModalOpen:!1}),a.props.onMenuEnable()},a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0}),a.props.onMenuDisable()},a.onAddToPlaylistClose=function(){a.setState({isAddToPlaylistModalOpen:!1}),a.props.onMenuEnable(),a.props.onPress()},a.state={isConfirmMarkPlayedModalOpen:!1,isConfirmMarkUnplayedModalOpen:!1,
isPlayVersionModalOpen:!1,isSettingsModalOpen:!1,isAddToPlaylistModalOpen:!1},a}return p()(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=t.isConfirmMarkPlayedModalOpen,r=t.isConfirmMarkUnplayedModalOpen,s=t.isPlayVersionModalOpen,l=t.isSettingsModalOpen,c=t.isAddToPlaylistModalOpen,u=i(E,e),d=i(w,e),p=u&&d;return o()("div",{},void 0,e.showPlay&&o()(m.a,{onPress:e.onPlayPress},void 0,e.playLabel||Object(S.default)("Play")),e.showPlayVersion&&o()(m.a,{
onPress:this.onPlayVersionPress},void 0,Object(S.default)("Play Version...")),e.showPlayAll&&o()(m.a,{onPress:e.onPlayAllPress},void 0,Object(S.default)("Play All")),e.showShuffle&&o()(m.a,{onPress:e.onShufflePress},void 0,Object(S.default)("Shuffle")),e.showPlayRadio&&o()(m.a,{onPress:e.onPlayRadioPress},void 0,Object(S.default)("Play Radio")),e.showQueue&&o()(m.a,{onPress:e.onPlayNextPress},void 0,Object(S.default)("Play Next")),e.showQueue&&o()(m.a,{onPress:e.onAddToQueuePress
},void 0,Object(S.default)("Add to Queue")),e.showPlayPlexMix&&o()(m.a,{onPress:e.onPlayPlexMixPress},void 0,Object(S.default)("Play Plex Mix")),e.showQueuePlexMix&&o()(m.a,{onPress:e.onQueuePlexMixPress},void 0,Object(S.default)("Queue Plex Mix")),e.showPlayTrailer&&o()(m.a,{onPress:e.onPlayPrimaryExtraPress},void 0,Object(S.default)("Play Trailer")),e.showPlayMusicVideo&&o()(m.a,{onPress:e.onPlayPrimaryExtraPress},void 0,Object(S.default)("Play Music Video")),e.showAddToAlbum&&o()(m.a,{
onPress:this.onAddToPlaylistPress},void 0,Object(S.default)("Add to Album...")),e.showAddToPlaylist&&o()(m.a,{onPress:this.onAddToPlaylistPress},void 0,Object(S.default)("Add to Playlist...")),e.showAddToSaved&&o()(m.a,{onPress:e.onAddToSavedPress},void 0,a(e.saved,e.providerIdentifier,e.subtype)),p&&A,e.showEdit&&o()(m.a,{onPress:e.onEditPress},void 0,Object(S.default)("Edit")),e.showSettings&&o()(m.a,{onPress:this.onSettingsPress
},void 0,Object(S.default)("Settings")),e.showMarkPlayed&&o()(m.a,{onPress:this.onMarkPlayedPress},void 0,Object(S.default)("Mark as Played")),e.showMarkUnplayed&&o()(m.a,{onPress:this.onMarkUnplayedPress},void 0,Object(S.default)("Mark as Unplayed")),e.showRefresh&&o()(m.a,{isDisabled:e.isRefreshing,onPress:e.onRefreshPress},void 0,Object(S.default)("Refresh Metadata")),e.showAnalyze&&o()(m.a,{isDisabled:e.isAnalyzing,onPress:e.onAnalyzePress
},void 0,Object(S.default)("Analyze")),e.showFixMatch&&o()(m.a,{onPress:e.onFixMatchPress},void 0,Object(S.default)("Fix Match...")),e.showMatch&&o()(m.a,{onPress:e.onFixMatchPress},void 0,Object(S.default)("Match...")),e.showUnmatch&&o()(m.a,{onPress:e.onUnmatchPress},void 0,Object(S.default)("Unmatch")),e.showSplitApart&&o()(m.a,{onPress:e.onSplitApartPress},void 0,Object(S.default)("Split Apart")),e.showSync&&o()(m.a,{onPress:e.onSyncPress
},void 0,Object(S.default)("Sync...")),e.showOptimize&&o()(m.a,{onPress:e.onOptimizePress},void 0,Object(S.default)("Optimize...")),e.showDownload&&o()(D.a,{action:b.o},void 0,o()(m.a,{to:e.downloadUrl&&e.downloadUrl(),target:e.downloadUrl&&"_blank",download:!1,onPress:e.downloadUrl?e.onPress:e.onDownloadVersionPress},void 0,Object(S.default)("Download"))),e.showDelete&&o()(m.a,{kind:T.b.DANGER,onPress:e.onDeletePress},void 0,Object(S.default)("Delete")),e.showDeleteVersion&&o()(m.a,{
kind:T.b.DANGER,onPress:e.onDeleteVersionPress},void 0,Object(S.default)("Delete Version")),e.showGetInfo&&o()(m.a,{onPress:e.onGetInfoPress},void 0,Object(S.default)("Get Info")),(e.showMarkPlayed||e.showMarkUnplayed)&&o()(C.a,{isOpen:n||r,type:e.type,subtype:e.subtype,title:e.title,leafCount:n?e.unviewedLeafCount:e.viewedLeafCount,markUnplayed:r,onConfirm:this.onMarkPlayedConfirm,onCancel:this.onMarkPlayedCancel}),(e.showAddToAlbum||e.showAddToPlaylist)&&o()(O.a,{isOpen:c,
serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:e.metadataItemEntityID,onModalClose:this.onAddToPlaylistClose}),o()(j.a,{isOpen:s,mediaItems:e.mediaItems,onCancel:this.onPlayVersionCancel,onItemSelect:this.onPlayVersionSelect}),o()(P.a,{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:e.metadataItemEntityID,isOpen:l,onModalClose:this.onSettingsClose}))},t}(f.Component);t.a=x},function(e,t,n){"use strict"
;function i(e){var t=e.mediaItems,n=c()(e,["mediaItems"]);return p.a.createElement(b.a,r()({title:Object(y.default)("Play Version"),metricsPage:f.P},n),t.map(function(e,t){var n=[];if(e.bitrate&&n.push(Object(m.default)(e.bitrate)),e.videoResolution){var i=Object(v.a)(e),a=i?i.scanType:null;n.push(Object(g.default)(e.videoResolution,a))}var r=!!e.title,o=n.length>0;return s()(I.a,{value:t},t,r?e.title:null,r&&o?S:null,o?n.join(", "):null,r||o?null:Object(y.default)("Unknown"))}))}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(73),f=n(30),v=n(357),g=n(366),m=n(520),y=n(3),b=n(972),I=n(973),S=s()(h.b,{});t.a=i},function(e,t){e.exports={listModalInnerBody:"ListModal-listModalInnerBody-1mBaL"}},function(e,t){e.exports={listModalItem:"ListModalItem-listModalItem-3SDr-"}},function(e,t,n){"use strict";function i(){return Object(v.createSelector)(Object(g.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
;return{settings:e.preferences,isSettingsUpdating:e.isSettingsUpdating,hasError:!!e.settingsUpdateError}})}function a(e,t){return{onSubmit:function(n){Object(m.a)(function(){e(Object(y.updateMetadataSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,data:n}))})},onClearError:function(){e(Object(y.clearMetadataSettingsError)({metadataItemEntityID:t.metadataItemEntityID}))}}}
var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(4),g=(n.n(v),n(21)),m=n(36),y=n(191),b=n(3473),I=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidUpdate=function(e,t){!e.isSettingsUpdating||this.props.isSettingsUpdating||this.props.hasError||this.props.onModalClose()},t.prototype.componentWillUnmount=function(){this.props.onClearError()},t.prototype.render=function(){
return h.a.createElement(b.a,this.props)},t}(p.Component);t.a=Object(f.connect)(i,a)(I)},function(e,t,n){"use strict";function i(e){var t=e.isSettingsUpdating,n=e.hasError,i=e.settings,a=e.onSubmit,o=e.onModalClose;return s()(h.b,{className:C.a.form,onSubmit:a},void 0,s()(S.a,{onModalClose:o},void 0,s()(m.a,{},void 0,Object(y.default)("Settings")),n&&s()(b.a,{errorMessage:Object(y.default)("There was an error saving the settings")}),s()(f.a,{},void 0,i.map(function(e){
return u.a.createElement(I.a,r()({key:e.id},e))})),s()(v.a,{},void 0,s()(g.a,{},void 0,s()(d.a,{onPress:o},void 0,Object(y.default)("Cancel")),s()(p.a,{kind:M.b.PRIMARY,type:"submit",isSpinning:t},void 0,Object(y.default)("Save"))))))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(42),p=n(930),h=n(186),f=n(61),v=n(88),g=n(115),m=n(84),y=n(3),b=n(217),I=n(557),S=n(98),M=n(24),D=n(3474),C=n.n(D);t.a=i},function(e,t){e.exports={form:"SettingsModalContent-form-3-N4q"}
},function(e,t,n){"use strict";function i(e,t){return{onTitleChange:function(t){e(b.e({title:t}))},onDestinationSelect:function(t){var n=t.serverEntityID,i=t.providerEntityID;e(b.g({serverEntityID:n,providerEntityID:i}))},dispatchInitAddToPlaylistModal:function(){e(b.f({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metadataListEntityID:t.metadataListEntityID,playQueueID:t.playQueueID,smart:t.smart}))},
dispatchClearAddToPlaylistModal:function(){e(b.c())},dispatchCreatePlaylist:function(){e(b.d())},dispatchAddToPlaylist:function(t){e(b.a({playlistID:t}))}}}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(1483)),I=n(3479),S=Object(y.createSelector)(function(e){return e.ui.addToPlaylistModal},function(e){return{serverEntityID:e.server,providerEntityID:e.provider,metadataListEntityID:e.playlists,
title:e.title,playlistType:e.type,isUpdating:e.isUpdating,hasError:!!e.error}}),M=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onCreate=function(){i.props.dispatchCreatePlaylist()},i.onAdd=function(e){i.props.dispatchAddToPlaylist(e)},a=n,d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchInitAddToPlaylistModal()},
t.prototype.componentWillUnmount=function(){this.props.dispatchClearAddToPlaylistModal()},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitAddToPlaylistModal,e.dispatchClearAddToPlaylistModal,e.dispatchCreatePlaylist,e.dispatchAddToPlaylist,s()(e,["dispatchInitAddToPlaylistModal","dispatchClearAddToPlaylistModal","dispatchCreatePlaylist","dispatchAddToPlaylist"]));return g.a.createElement(I.a,r()({onCreatePress:this.onCreate,onPlaylistSelect:this.onAdd},t))},t}(v.Component)
;t.a=Object(m.connect)(S,i)(M)},function(e,t,n){"use strict";function i(e){var t=e.providerModel,n=e.itemProviderModel,i=e.metadataItemModel,c=e.metadataListModel,u=e.multiSelectModel,d=e.playQueueModel,p=e.smart,h=e.readOnly,f=u&&u.get("activeSelectionItems").pluck("model"),v=d?d.get("type"):Object(s.a)({metadataItemModel:i,metadataListModel:c,metadataItemModels:f}),g=t&&t.get("features"),m=g&&g.get(r.b.PLAYLIST),y=m&&m.get("key"),b={type:Object(l.r)(l.i).id,playlistType:v,smart:p?1:0,
readOnly:h?1:0},I=y&&Object(a.join)(y,b),S={playlistType:v,containerKey:I};return d||(S.uri=Object(o.a)({providerFeatureType:r.b.PLAYLIST,providerModel:t,itemProviderModel:n,metadataItemModel:i,metadataListModel:c,metadataItemModels:f})),S}t.a=i;var a=n(18),r=n(64),o=n(3477),s=n(435),l=n(27)},function(e,t,n){"use strict";function i(e){if(e){if(e.some(function(e){return!!e.get("source")}))return void r.a.warn("[Playlists] failed to queue items multiple with sources")
;return"/library/metadata/"+e.map(function(e){return e.get("ratingKey")}).join(",")}}function a(e){var t=e.providerFeatureType,n=e.providerModel,a=e.itemProviderModel,r=e.metadataItemModel,u=e.metadataListModel,d=e.metadataItemModels,p=n.get("features"),h=p&&p.get(t);if(!!h&&h.get("flavor")===s.c.UNIVERSAL){var f=r&&r.get("source"),v=f?r.get("source"):Object(c.a)(a.server.get("machineIdentifier"),a.get("identifier")),g=r&&r.get("key")||u&&u.get("containerKey")||i(d);return o.join([v,g])}
return l.a.uri(r||u||d,{items:d})}t.a=a;var r=n(32),o=n(18),s=n(64),l=n(268),c=n(1230)},function(e,t,n){"use strict";function i(e){var t=e.providerModel,n=e.type,i=e.title,a=e.smart,l=void 0===a?0:a,c=e.playlistID,u=e.playQueueID,d=e.uri,p={uri:d,playQueueID:u};c||(p.title=i,p.smart=l?1:0,p.type=n);var h=t.get("features"),f=h&&h.get(s.b.PLAYLIST),v=f&&f.get("key"),g=o.join([v,c&&c+"/items"],p),m=c?"PUT":"POST",y=t.getXHROptions(g,{type:m});return r.a.ajax(y)}t.a=i
;var a=n(13),r=n.n(a),o=n(18),s=n(64)},function(e,t,n){"use strict";function i(e){var t=e.playlistType,n=e.smart;return"photo"===t?n?Object(I.default)("Create Album"):Object(I.default)("Add to Album"):n?Object(I.default)("Create Playlist"):Object(I.default)("Add to Playlist")}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),
n(186)),v=n(218),g=n(61),m=n(88),y=n(84),b=n(51),I=n(3),S=n(139),M=n(217),D=n(98),C=n(141),j=n(3481),P=n(3485),O=n(3491),T=n.n(O),E=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidUpdate=function(e){this.props.isUpdating||!e.isUpdating||this.props.hasError||this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,a=e.metadataItemEntityID,o=e.metadataListEntityID,s=e.title,l=e.smart,c=e.hasError,u=e.isUpdating,d=e.onModalClose,p=e.onDestinationSelect,h=e.onCreatePress,O=e.onPlaylistSelect,E=e.onTitleChange;return r()(D.a,{onModalClose:d},void 0,r()(y.a,{},void 0,i(this.props)),!l&&t&&n&&r()(j.a,{className:T.a.listModalSubheader,serverEntityID:t,providerEntityID:n,metadataItemEntityID:a,onDestinationSelect:p}),c&&r()(M.a,{
errorMessage:Object(I.default)("Something went wrong. Make sure the destination is available and try again.")}),!l&&r()(g.a,{innerClassName:T.a.listModalInnerBody},void 0,o&&r()(C.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:o,component:P.a,initialSize:20,onPlaylistSelect:O})),r()(m.a,{className:T.a.listModalFooter},void 0,r()(f.b,{className:T.a.createForm,onSubmit:h},void 0,r()(v.a,{focusOnMount:!0,"data-autofocus":!0,selectTextOnFocus:!0,name:"title",value:s,onChange:E
}),r()(S.a,{className:T.a.createButton,type:"submit",kind:b.PRIMARY,isDisabled:!s,isSpinning:u},void 0,Object(I.default)("Create")))))},t}(h.Component);t.a=E},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.metadataLists});t.a=r},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(l.a,s.a,h,function(e,t,n){var i=n.map(function(e){return{name:e.server.isCloud?Object(u.default)("TIDAL"):e.server.friendlyName,
serverEntityID:e.server.entityID,providerEntityID:e.provider.entityID}});return{destination:i.find(function(n){var i=n.serverEntityID,a=n.providerEntityID;return i===e.entityID&&a===t.entityID}),destinations:i}})}var a=n(11),r=n(4),o=(n.n(r),n(64)),s=n(39),l=n(53),c=n(41),u=n(3),d=n(563),p=n(3482),h=Object(r.createSelector)(d.a,l.c,s.c,function(e,t,n){return e.filter(function(e){var i=e.server,a=e.provider;if(!a||!a.features)return!1;var r=t&&i.entityID===t.entityID,s=n&&a.entityID===n.entityID
;return!(!r||!s)||(!i||!i.isShared&&!i.isCloud)&&((a.identifier===c.e||a.identifier===c.f||a.identifier===c.d)&&a.features.find(function(e){return e.type===o.b.PLAYLIST&&e.flavor===o.c.UNIVERSAL}))})}),f=Object(a.connect)(i)(p.a);t.a=f},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(275)),f=n(47),v=n(3483),g=n(24),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onMenuButtonPress=function(){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},a.state={isMenuOpen:!1},a._menuButtonID=Object(f.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.destination,i=e.destinations,r=e.onDestinationSelect,o=this.state.isMenuOpen;return!i||i.length<2?null:a()("div",{className:t},void 0,a()(h.a,{id:this._menuButtonID,direction:o?g.a.UP:g.a.DOWN,onPress:this.onMenuButtonPress
},void 0,n.name),a()(v.a,{target:this._menuButtonID,isOpen:o,destinations:i,onMenuClose:this.onMenuClose,onDestinationSelect:r}))},t}(p.Component);t.a=m},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.destination,a=e.destinations,o=e.onMenuClose,s=e.onDestinationSelect;return r()(l.a,{target:t,isOpen:n,size:u.e.LARGE,onMenuClose:o},void 0,a.map(function(e,t){return r()(c.a,{destination:e,isSelected:e===i,onMenuClose:o,onDestinationSelect:s},"playlist-destination-"+t)}))
}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=n(3484),u=n(24);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){i.props.onDestinationSelect(i.props.destination),i.props.onMenuClose()},a=n,
l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.destination,n=e.isSelected;return a()(h.a,{isSelected:n,onPress:this.onPress},void 0,t.name)},t}(p.Component);t.a=f},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(12),o=n.n(r),s=n(6),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(216),b=n(31),I=n(3486),S=n(392),M=n(3490),D=n.n(M),C=Object(S.a)(50),j=function(e){function t(){var n,i,a;u()(this,t)
;for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=p()(this,e.call.apply(e,[this].concat(o))),i.renderPlaylistItem=function(e){var t=i.props,n=t.serverEntityID,a=t.providerEntityID,r=t.onPlaylistSelect;return m.a.createElement(I.a,l()({},e,{className:D.a.cell,serverEntityID:n,providerEntityID:a,onSelect:r}))},a=n,p()(i,a)}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.metadataItemEntityIDs,n=e.isPopulated,i=e.totalSize,r=o()(e,["metadataItemEntityIDs","isPopulated","totalSize"]);return n?m.a.createElement(y.a,l()({className:D.a.content,scrollerClassName:D.a.contentScroller,keyPropName:"metadataItemEntityID",items:t,size:i,layout:C,cellRenderer:this.renderPlaylistItem},r)):a()(b.a,{className:D.a.spinner})},t}(g.Component);t.a=j},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return e?{
isLoading:!1,playlistID:e.ratingKey,title:e.title,thumb:e.composite||e.thumb||""}:{isLoading:!0}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3487),l=Object(a.connect)(i)(s.a);t.a=l},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(91),v=n(327),g=n(236),m=n(3489),y=n.n(m),b=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(){i.props.onSelect(i.props.playlistID)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.title,o=e.thumb,s=e.isLoading,l=e.cellIndex,c=e.cellX,u=e.cellY,d=e.cellWidth,p=e.cellHeight;return a()(f.a,{className:t,cellX:c,cellY:u,cellWidth:d,cellHeight:p},void 0,!s&&a()(h.a,{className:(y.a.container||"")+" "+(l%2&&y.a.alternate||""||""),
onPress:this.onPress},void 0,a()(v.a,{className:y.a.card,serverEntityID:n,providerEntityID:i,component:g.a,width:40,height:40,url:o}),a()("span",{className:y.a.title},void 0,r)))},t}(p.Component);t.a=b},function(e,t){e.exports={card:"PosterCard-card-1rN9g"}},function(e,t){e.exports={alternate:"PlaylistListItem-alternate-3LodV",container:"PlaylistListItem-container-1zf1-",card:"PlaylistListItem-card-1lyuE PosterCard-card-1rN9g",title:"PlaylistListItem-title-2aEtH"}},function(e,t){e.exports={
spinner:"PlaylistList-spinner-35vMZ",content:"PlaylistList-content-BhpSb",contentScroller:"PlaylistList-contentScroller-10slM",cell:"PlaylistList-cell-2Crv3"}},function(e,t){e.exports={listModalSubheader:"AddToPlaylistModalContent-listModalSubheader-2iqJk",listModalInnerBody:"AddToPlaylistModalContent-listModalInnerBody-3Lr83",listModalFooter:"AddToPlaylistModalContent-listModalFooter-1urVO",createForm:"AddToPlaylistModalContent-createForm-7H1yU",
createButton:"AddToPlaylistModalContent-createButton-19CeH"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.grandparentTitle,a=e.grandparentRoute;return r()(l.a,{className:t,tabIndex:n,title:i,route:a})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(477));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.parentTitle,a=e.parentRoute;return r()(l.a,{className:t,tabIndex:n,title:i,route:a})}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(477));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.skipChildren,i=e.childCount,a=e.leafCount;if(n)return r()(c.a,{className:t,leafCount:a});var o=void 0;return null!=i&&(o=1===i?Object(l.default)("{albumCount} album",{albumCount:i}):Object(l.default)("{albumCount} albums",{albumCount:i})),r()("span",{className:t},void 0,o)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(3495);t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.className,n=e.leafCount,i=void 0;return null!=n&&(i=1===n?Object(l.default)("{trackCount} track",{trackCount:n}):Object(l.default)("{trackCount} tracks",{trackCount:n})),r()("span",{className:t},void 0,i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.childCount,i=e.subtype,a=void 0;if(null!=n){var o=1===n,s={itemCount:n}
;a=i===c.f?o?Object(l.default)("{itemCount} movie",s):Object(l.default)("{itemCount} movies",s):i===c.k?o?Object(l.default)("{itemCount} show",s):Object(l.default)("{itemCount} shows",s):o?Object(l.default)("{itemCount} item",s):Object(l.default)("{itemCount} items",s)}return r()("span",{className:t},void 0,a)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(27);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.addedAt;return n?r()(l.a,{className:t,date:1e3*n
}):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3498));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.date;return n?r()("span",{className:t},void 0,Object(l.default)(n)):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(305));t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{leafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).leafCount}})}
var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1489);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.skipChildren,i=e.childCount,a=e.leafCount;if(n)return r()(c.a,{className:t,leafCount:a});var o=void 0;return null!=i&&(o=1===i?Object(l.default)("{seasonCount} season",{seasonCount:i}):Object(l.default)("{seasonCount} seasons",{seasonCount:i})),r()("span",{className:t},void 0,o)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(704);t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.skipParent,a=e.parentTitle,o=e.parentRoute,s=e.grandparentTitle,l=e.grandparentRoute;return r()("span",{className:t},void 0,r()(c.a,{tabIndex:n,title:s,route:l}),!!a&&!i&&u,!i&&r()(c.a,{tabIndex:n,title:a,route:o}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(477),u=r()(l.b,{});t.a=i},function(e,t,n){"use strict";function i(e){return r.a.createElement(o.a,e)}
var a=n(0),r=n.n(a),o=n(978),s=n(3508),l=n.n(s);i.defaultProps={className:l.a.card},t.a=i},function(e,t,n){"use strict";function i(e){return r()("svg",{className:e.className,viewBox:"0 0 560 560",xmlns:"http://www.w3.org/2000/svg"},void 0,l)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),r()("path",{d:"M216 170l190.5 110L216 390z"}));t.a=i},function(e,t){e.exports={playButton:"PlayButton-playButton-3WX8X",playCircle:"PlayButton-playCircle-3Evfd"}},function(e,t){e.exports={
recordIconContainer:"RecordIcon-recordIconContainer-1PXGA",recordCircle:"RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd",recordIcon:"RecordIcon-recordIcon-2ygXS"}},function(e,t){e.exports={recordButton:"RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA"}},function(e,t){e.exports={card:"MetadataPosterButtonCard-card-2T8TR",playButton:"MetadataPosterButtonCard-playButton-aOV1E PlayButton-playButton-3WX8X",
playCircle:"MetadataPosterButtonCard-playCircle-366hc PlayButton-playCircle-3Evfd",recordButton:"MetadataPosterButtonCard-recordButton-1m2tb RecordIcon-recordIconContainer-1PXGA",recordCircle:"MetadataPosterButtonCard-recordCircle-1UtXW RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd"}},function(e,t){e.exports={card:"QuickSearchMetadataPosterCard-card-3_XFi MetadataPosterButtonCard-card-2T8TR"}},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({
className:u.a.card},e))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(979),c=n(3514),u=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case"artist":return"track";default:return e}}function a(e){var t=e.serverEntityID,n=e.providerEntityID,a=e.isOffscreen,r=e.tagType,s=e.librarySectionType,l=e.title,f=e.url,v=e.width,g=e.height,m=e.transitionProps,y=e.onLoad,b=e.onError;if(a)return null;if(f)return o()(p.a,{serverEntityID:t,providerEntityID:n,url:f,width:v,height:g,transitionProps:m,
backgroundPosition:"center center",allowSizeBrackets:!0,onLoad:y,onError:b});var I=u.a.get(r);if(I&&I.isPerson)return o()(d.a,{name:l,width:v,height:g});var S=c.f.get(s),M=S&&S.typeString,D=i(M);return o()(h.a,{type:D,width:v,height:g})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(145)),u=n(474),d=n(3511),p=n(674),h=n(1386);t.a=a},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.name,i=e.width,a=e.height,o=s()(e,["className","name","width","height"]),l=n.toUpperCase().split(" "),c=l[0].charAt(0),d=l[l.length-1].charAt(0),h=l.length>1?""+c+d:n.charAt(0),f={fontSize:Math.max(14,Math.min(Math.round(i/4),42)),lineHeight:a+"px"};return u.a.createElement("div",r()({style:f,className:(t||"")+" "+(p.a.anagram||"")},o),h)}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3512),p=n.n(d);i.defaultProps={width:13,height:13},t.a=i
},function(e,t){e.exports={anagram:"Anagram-anagram-2KZ_Z"}},function(e,t){e.exports={card:"TagPosterCard-card-RVD0D MetadataPosterCardFace-poster-L2P6r",isPerson:"TagPosterCard-isPerson-1ez1h"}},function(e,t){e.exports={card:"QuickSearchTagPosterCard-card-3RJG3 TagPosterCard-card-RVD0D MetadataPosterCardFace-poster-L2P6r"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.component,i=e.isSecondary,a=c()(e,["className","component","isSecondary"]);return s()("div",{
className:(t||"")+" "+(f.a.title||"")+" "+(i&&f.a.isSecondary||""||"")},void 0,p.a.createElement(n,r()({tabIndex:"-1"},a)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(3516),f=n.n(h);t.a=i},function(e,t){e.exports={title:"QuickSearchTitle-title-2ApAO",isSecondary:"QuickSearchTitle-isSecondary-mxETF"}},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.server,i=e.provider,a=e.originalTitle,o=e.reason,s=e.reasonID,d=e.reasonTitle,p=e.filter,h=e.librarySectionID,f=e.librarySectionKey,v=e.onPress;if(!o)return null;if("originalTitle"===o)return r()("span",{className:t},void 0,a);if(!d)return null;var g={};("actor"===o||"director"===o)&&(g.filters=p||o+"="+s,g.filterLabel=d);var m=i.isLibraryProvider?h:f,y=Object(u.a)(n,i,m,g),b={director:Object(c.default)("by"),actor:Object(c.default)("with"),section:Object(c.default)("in"),
autotag:Object(c.default)("tagged"),place:Object(c.default)("in")};return y?r()("span",{className:t},void 0,b[o]," ",r()(l.a,{title:d,tabIndex:"-1",to:y,onPress:v},void 0,d)):r()("span",{className:t},void 0,b[o]+" "+d)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(3),u=(n(99),n(140),n(150));t.a=i},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(u.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{
tag:e.tagItem&&e.tagItem.tag}})}function a(e){return s.a.createElement(d.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(475)),d=n(3519);t.a=Object(l.connect)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tag;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t){e.exports={button:"QuickSearchResult-button-1ZHpO",title:"QuickSearchResult-title-1XJ-0",
selected:"QuickSearchResult-selected-3xPnw",underlay:"QuickSearchResult-underlay-QgyJt",overlay:"QuickSearchResult-overlay-38WrL",imageContainer:"QuickSearchResult-imageContainer-DvFlp",titles:"QuickSearchResult-titles-3kHPx",moreButton:"QuickSearchResult-moreButton-2Agbk",moreIcon:"QuickSearchResult-moreIcon-UsTkI"}},function(e,t){e.exports={title:"QuickSearchProvider-title-1DX5M",noResults:"QuickSearchProvider-noResults-2j7_9",spinnerContainer:"QuickSearchProvider-spinnerContainer-lhn2A",
spinner:"QuickSearchProvider-spinner-2_uC9"}},function(e,t){e.exports={container:"QuickSearchResults-container-3IlHh"}},function(e,t){e.exports={container:"QuickSearch-container-2PWkB"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(390)),f=n(275),v=n(215),g=n(47),m=n(233),y=n(51),b=n(3),I=n(384),S=n(3525),M=n(3532),D=n.n(M),C=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onButtonPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(e){a.setState({isMenuOpen:!1})},a.state={isMenuOpen:!1},a._buttonID=Object(g.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.tooltipClassName,i=e.serverEntityID,r=e.userThumb,o=e.badgeCount;return a()(p.Fragment,{},void 0,a()(v.a,{className:t,tooltipClassName:n,id:this._buttonID,component:f.a,isSelected:!1,
tooltip:this.state.isMenuOpen?null:Object(b.default)("Account"),direction:this.state.isMenuOpen?m.UP:m.DOWN,onPress:this.onButtonPress},void 0,a()("div",{className:D.a.avatarContainer},void 0,a()("div",{className:(D.a.overlay||"")+" "+(this.state.isMenuOpen&&D.a.isMenuOpen||""||"")}),a()(I.a,{serverEntityID:i,width:30,height:30,url:r})),a()(h.a,{className:D.a.badge,kind:y.PRIMARY},void 0,o>0?o:null)),a()(S.a,{isOpen:this.state.isMenuOpen,target:this._buttonID,onMenuClose:this.onMenuClose}))},t
}(p.Component);C.defaultProps={className:D.a.button,tooltipClassName:D.a.tooltip},t.a=C},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(h.a,u.a,p.a,d.a,function(e,t,n,i){return{username:e.title,isSignedIn:e.signedIn,isRestricted:e.isRestricted,hasHome:!!e.home,isFullUser:e.isFullUser,announcementsCount:n.length,friendInvitesCount:i.length,appsURL:t?t.appsUrl:"https://plex.tv/downloads",helpURL:t?t.helpUrl:"https://support.plex.tv/articles/"}})}function a(e,t){return{
onUsersPress:function(e){e.preventDefault(),s.a.trigger("navigate","users")},onSwitchUserPress:function(t){setTimeout(function(){e(Object(c.d)())})},onSignInPress:function(e){e.preventDefault(),s.a.trigger("navigate","login")},onSignOutPress:function(e){e.preventDefault(),s.a.trigger("navigate","logout")},onKeyboardShortcutPress:function(e){e.preventDefault();var t=Object(l.c)("keyboardShortcuts");s.a.trigger("show:modal",new f.a({shortcuts:t.shortcuts}))}}}var r=n(11),o=n(4),s=(n.n(o),
n(19)),l=n(16),c=n(272),u=n(470),d=n(1461),p=n(1462),h=n(162),f=n(1494),v=n(3527),g=Object(r.connect)(i,a)(v.a);t.a=g},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <h5 class="keyboard-shortcuts-header">'+g((n=e&&e.label,typeof n===v?n.apply(e):n))+'</h5> <ul class="list keyboard-shortcuts-list"> ',n=a.each.call(e,e&&e.shortcuts,{hash:{},inverse:m.noop,
fn:m.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" </ul> "}function l(e,t){var n,i="";return i+=' <li> <span class="keyboard-shortcuts-keys"> ',n=a.each.call(e,e&&e.keys,{hash:{},inverse:m.noop,fn:m.program(3,c,t),data:t}),(n||0===n)&&(i+=n),i+=' </span> <span class="keyboard-shortcuts-label text-muted">'+g((n=e&&e.label,typeof n===v?n.apply(e):n))+"</span> </li> "}function c(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.plain,{hash:{},inverse:m.noop,fn:m.program(4,u,t),data:t}),
(n||0===n)&&(i+=n),i+=" ",n=a.unless.call(e,e&&e.plain,{hash:{},inverse:m.noop,fn:m.program(6,d,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.split,{hash:{},inverse:m.noop,fn:m.program(8,p,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function u(e,t){var n,i="";return i+=' <span class="keyboard-shortcuts-keys-plain">'+g((n=e&&e.s,typeof n===v?n.apply(e):n))+"</span> "}function d(e,t){var n,i="";return i+=' <span class="keyboard-shortcuts-keys-key">'+g((n=e&&e.s,
typeof n===v?n.apply(e):n))+"</span> "}function p(e,t){return" <br> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var h,f="",v="function",g=this.escapeExpression,m=this
;return f+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon keyboard-wireless"></i> '+g(i(n(5)).call(t,"Keyboard Shortcuts",{hash:{},data:o}))+' </h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> ',h=a.each.call(t,t&&t.groups,{hash:{},inverse:m.noop,fn:m.program(1,s,o),data:o}),
(h||0===h)&&(f+=h),f+=" </div> </div> </div> "})},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.target,i=e.options,a=e.username,o=e.isSignedIn,s=e.hasHome,p=e.isFullUser,g=e.announcementsCount,m=e.friendInvitesCount,y=e.appsURL,b=e.helpURL,I=e.onUsersPress,S=e.onSwitchUserPress,M=e.onSignInPress,D=e.onSignOutPress,C=e.onKeyboardShortcutPress,j=e.onMenuClose;return r()(c.a,{isOpen:t,target:n,options:i,onMenuClose:j},void 0,a?r()(u.a,{},void 0,a):null,o?r()(d.a,{
to:"#!/settings/account"},void 0,Object(h.default)("Account")):null,o?r()(l.a,{badgeLabel:m>0?m:null,onPress:I},void 0,Object(h.default)("Users")):null,o?f:null,r()(l.a,{to:"#!/announcements",badgeLabel:g>0?g:null},void 0,Object(h.default)("Announcements")),r()(d.a,{to:y,target:"_blank"},void 0,Object(h.default)("Get Plex apps")),r()(d.a,{to:b,target:"_blank"},void 0,Object(h.default)("Help")),r()(d.a,{onPress:C},void 0,Object(h.default)("Keyboard Shortcuts")),v,s?r()(d.a,{onPress:S
},void 0,Object(h.default)("Switch User...")):null,o?null:r()(d.a,{onPress:M},void 0,Object(h.default)("Sign In")),o&&p?r()(d.a,{onPress:D},void 0,Object(h.default)("Sign Out")):null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3528)),c=n(56),u=n(3530),d=n(112),p=n(284),h=n(3),f=r()(p.a,{}),v=r()(p.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.badgeClassName,i=e.badgeLabel,a=e.badgeKind,o=s()(e,["children","badgeClassName","badgeLabel","badgeKind"])
;return u.a.createElement(h.a,o,t,r()(d.a,{className:n,kind:a},void 0,i))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(390),p=n(51),h=n(112),f=n(3529),v=n.n(f);i.defaultProps={className:v.a.badgeMenuItem,badgeClassName:v.a.badge,badgeKind:p.PRIMARY},t.a=i},function(e,t){e.exports={badgeMenuItem:"BadgeMenuItem-badgeMenuItem-3GW7S MenuItem-menuItem-1s02m",badge:"BadgeMenuItem-badge-3CgtT Badge-badge-21NQR"}},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3531)),c=n.n(l);i.defaultProps={className:c.a.menuHeader},t.a=i},function(e,t){e.exports={menuHeader:"MenuHeader-menuHeader-1zqco"}},function(e,t){e.exports={button:"NavBarAccountButton-button-1Y4ek DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ",badge:"NavBarAccountButton-badge-2D07a Badge-badge-21NQR",
tooltip:"NavBarAccountButton-tooltip-MBMW8 Tooltip-bottomCenter-2yj43 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipCenterAlignArrow-35uHt",avatarContainer:"NavBarAccountButton-avatarContainer-2fU5S",overlay:"NavBarAccountButton-overlay-2BHPA",isMenuOpen:"NavBarAccountButton-isMenuOpen-2kMP7"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(d,h,f,function(e,t,n){return{ownedServerEntityIDs:e,showActivityButton:!!e.length,
hasSessions:t.sessionsCount>0,hasConversions:t.backgroundTranscodeJobsCount>0,hasActivities:t.activitiesCount>0,hasLibraryRefreshing:n>0,activityButtonCount:t.sessionsCount+t.backgroundTranscodeJobsCount}})}var a=n(11),r=n(4),o=(n.n(r),n(161)),s=n(692),l=n(1495),c=n(1496),u=n(3534),d=Object(r.createSelector)(l.a,function(e){return e.map(function(e){return e.entityID})}),p=Object(o.a)(Object(r.createSelector)(l.a,function(e){return e.map(function(e){return e.pmp})}),function(e){return e
}),h=Object(r.createSelector)(p,function(e){return e.reduce(function(e,t){var n=t.sessions,i=void 0===n?[]:n,a=t.backgroundTranscodeJobs,r=void 0===a?[]:a,o=t.activities,s=void 0===o?[]:o;return e.sessionsCount+=i.length,e.backgroundTranscodeJobsCount+=r.length,e.activitiesCount+=s.filter(function(e){return!!c.a[e.type]}).length,e},{sessionsCount:0,backgroundTranscodeJobsCount:0,activitiesCount:0})}),f=Object(r.createSelector)(p,s.a,function(e,t){return e.reduce(function(e,n){
return e+=n.libraries.filter(function(e){var n=t[e];return!!n&&n.refreshing}).length},0)});t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(47)),f=n(3),v=n(3535),g=n(3541),m=n(1497),y=n(3544),b=n.n(y),I=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onActivityPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(){
a.setState({isMenuOpen:!1})},a.state={isMenuOpen:!1},a._buttonID=Object(h.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.iconClassName,i=e.labelClassName,r=e.showActivityButton,o=e.ownedServerEntityIDs,s=e.hasSessions,l=e.hasConversions,c=e.hasActivities,u=e.hasLibraryRefreshing,d=e.activityButtonCount;if(!r)return null;var h=s||l,y=c||u;return a()(p.Fragment,{},void 0,a()(m.a,{id:this._buttonID,className:(t||"")+" "+(h&&b.a.isHighlighted||""||""),
iconClassName:n,labelClassName:i,iconProps:{isActive:y},iconComponent:g.a,icon:"plex-icon-navbar-activity-560",title:Object(f.default)("Activity"),label:d?String(d):null,onPress:this.onActivityPress}),a()(v.a,{isOpen:this.state.isMenuOpen,target:this._buttonID,hasSessions:s,hasConversions:l,hasActivities:c,hasLibraryRefreshing:u,ownedServerEntityIDs:o,onMenuClose:this.onMenuClose}))},t}(p.Component);I.defaultProps={iconClassName:b.a.activityIcon,labelClassName:b.a.label},t.a=I},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(Object(o.a)(s.j),function(e){return{canShowDashboardLink:e}})}var a=n(11),r=n(4),o=(n.n(r),n(256)),s=n(79),l=n(3536);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){return o()("div",{className:h.a.emptyMessage},void 0,Object(u.default)("No server activity"))}function a(e){
var t=e.isOpen,n=e.target,i=e.ownedServerEntityIDs,a=e.hasSessions,r=e.hasConversions,s=e.hasActivities,l=e.hasLibraryRefreshing,u=e.canShowDashboardLink,p=e.onMenuClose,g=!(u||a||r||s||l);return o()(c.a,{className:(h.a.menu||"")+" "+((g?h.a.empty:h.a.wide)||""),isOpen:t,target:n,options:f,onMenuClose:p},void 0,g?v:i.map(function(e){return o()(d.a,{serverEntityID:e,canShowDashboardLink:u},e)}))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(56)),u=n(3),d=n(3537),p=n(3540),h=n.n(p),f={
placement:"bottom-end"},v=o()(i,{});t.a=a},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(d.a)(),function(e){return e.backgroundTranscodeJobs?e.backgroundTranscodeJobs:[]})}function a(){return Object(c.createSelector)(Object(d.a)(),function(e){return e.activities?e.activities:[]})}function r(){return Object(c.createSelector)(Object(d.a)(),function(e){return e.libraries?e.libraries:[]})}function o(){return Object(c.createSelector)(r(),u.a,function(e,t){
return e.reduce(function(e,n){var i=t[n];return i.refreshing&&e.push(i),e},[])})}function s(){return Object(c.createSelector)(Object(p.a)(),Object(h.a)(),i(),a(),o(),function(e,t,n,i,a){return{friendlyName:e.friendlyName,machineIdentifier:e.machineIdentifier,sessions:t,backgroundTranscodeJobs:n,activities:i,libraries:a}})}var l=n(11),c=n(4),u=(n.n(c),n(692)),d=n(917),p=n(35),h=n(1383),f=n(3538),v=Object(l.connect)(s)(f.a);t.a=v},function(e,t,n){"use strict";function i(e){
var t=e.to,n=e.label,i=e.indicator,a=e.onPress;return s()(u.a,{className:y.a.splitButton,to:t,onPress:a},void 0,s()("span",{},void 0,n),i?s()("span",{className:y.a.statusButtonIndicator},void 0,i):null)}function a(e){var t=e.title,n=e.subtitle,i=e.progress,a=e.isPostProcessing;return s()("div",{className:y.a.splitButton},void 0,s()("span",{className:y.a.activityTitleContainer},void 0,s()("span",{className:y.a.activityTitle,title:t},void 0,t,n?":":null),n?s()("span",{
className:y.a.activitySubtitle,title:n},void 0,n):null),s()("span",{},void 0,null==i||a?s()(g.a,{size:d.SMALL}):s()(f.a,{progress:i,size:18,lineWidth:2,showProgressText:!1})))}function r(e){var t=e.friendlyName,n=e.machineIdentifier,r=e.sessions,o=e.backgroundTranscodeJobs,l=e.activities,c=e.libraries,u=e.canShowDashboardLink,d=e.onPress,f=!(r.length||o.length||l.length||c.length);return!u&&f?null:s()("div",{className:y.a.statusContainer},void 0,s()("div",{className:y.a.statusTitle
},void 0,t),u?s()(i,{to:"#!/settings/server/"+n+"/status/server-dashboard",label:Object(h.default)("Dashboard"),indicator:r.length?""+r.length:null,onPress:d}):null,r.length&&!u?s()(i,{to:"#!/settings/server/"+n+"/status/now-playing",label:Object(h.default)("Now Playing"),indicator:""+r.length,onPress:d}):null,o.length?s()(i,{to:"#!/settings/server/"+n+"/status/conversion",label:Object(h.default)("Conversions"),indicator:""+o.length,onPress:d}):null,l.length?l.map(function(e){
var t=e.uuid,n=e.type,i=e.title,r=e.subtitle,o=e.progress,l=e.Context,c=void 0===l?{}:l;return v.a[n]?s()(a,{title:i,subtitle:r,progress:o,isPostProcessing:c.status===p.b.POST_PROCESSING},t):null}):null,c.length?c.map(function(e){var t=e.uuid,n=e.title;return s()(a,{title:Object(h.default)("Scanning library files"),subtitle:n},t)}):null)}var o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(112)),d=n(52),p=n(706),h=n(3),f=n(1413),v=n(1496),g=n(31),m=n(3539),y=n.n(m);t.a=r},function(e,t){
e.exports={statusContainer:"NavBarActivityMenuStatusItem-statusContainer-Ml8vj",splitButton:"NavBarActivityMenuStatusItem-splitButton-3DXXY MenuItem-menuItem-1s02m",statusButtonIndicator:"NavBarActivityMenuStatusItem-statusButtonIndicator-3D2d1",statusTitle:"NavBarActivityMenuStatusItem-statusTitle-2hIH6",activityTitleContainer:"NavBarActivityMenuStatusItem-activityTitleContainer-3mGhe",activityTitle:"NavBarActivityMenuStatusItem-activityTitle-2lqgR",
activitySubtitle:"NavBarActivityMenuStatusItem-activitySubtitle-3dSlx"}},function(e,t){e.exports={menu:"NavBarActivityMenu-menu-1AVWx MenuContainer-menu-2OAQT",emptyMessage:"NavBarActivityMenu-emptyMessage-cJRlg",wide:"NavBarActivityMenu-wide-JMy68",empty:"NavBarActivityMenu-empty-3wIz1 MenuContainer-medium-3u4Aw"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.name,i=e.isActive;return r()("span",{className:t},void 0,i?r()(c.a,{className:d.a.activityIndicator}):null,r()(l.a,{
className:d.a.icon,name:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=n(31),u=n(3542),d=n.n(u);i.defaultProps={className:d.a.iconContainer,iconClassName:d.a.icon,name:"plex-icon-navbar-activity-560"},t.a=i},function(e,t){e.exports={iconContainer:"NavBarActivityIcon-iconContainer-24xhX",icon:"NavBarActivityIcon-icon-VJ4m7",activityIndicator:"NavBarActivityIcon-activityIndicator-3asEG Spinner-spinner-Niere spin-spin-2kLwt"}},function(e,t){e.exports={
button:"NavBarIconButton-button-eR0v0 IconButton-button-9An-7",icon:"NavBarIconButton-icon-2gdVP",tooltip:"NavBarIconButton-tooltip-2RzDy Tooltip-bottomCenter-2yj43 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipCenterAlignArrow-35uHt"}},function(e,t){e.exports={activityIcon:"NavBarActivityButton-activityIcon-1Db2G NavBarActivityIcon-iconContainer-24xhX",label:"NavBarActivityButton-label-2ZN0g",
isHighlighted:"NavBarActivityButton-isHighlighted-27qlk"}},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(20),m=n(138),y=n(3),b=n(554),I=n(3546),S=n.n(I),M=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onButtonPress=function(e){a.setState({isPlexPassModalOpen:!0})},a.onModalClose=function(e){a.setState({isPlexPassModalOpen:!1})},a.state={isPlexPassModalOpen:!1
},a}return p()(t,e),t.prototype.render=function(){return o()(f.Fragment,{},void 0,v.a.createElement(g.a,a()({},this.props,{onPress:this.onButtonPress}),Object(y.default)("Go Premium")),o()(b.a,{metricsProperties:{context:m.f},isOpen:this.state.isPlexPassModalOpen,onModalClose:this.onModalClose}))},t}(f.Component);M.defaultProps={className:S.a.button},t.a=M},function(e,t){e.exports={button:"NavBarPlexPassButton-button-2zlgP Link-link-2n0yJ"}},function(e,t){e.exports={
container:"NavBar-container-1T0BJ",side:"NavBar-side-2kZrH",button:"NavBar-button-diriI NavBarIconButton-button-eR0v0 IconButton-button-9An-7",buttonSeparator:"NavBar-buttonSeparator-1ZbV4",accountButton:"NavBar-accountButton-3EEZi NavBarAccountButton-button-1Y4ek DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ",plexPassButton:"NavBar-plexPassButton-wVK4v NavBarPlexPassButton-button-2zlgP Link-link-2n0yJ",left:"NavBar-left-2SrTG NavBar-side-2kZrH",
right:"NavBar-right-2ZzDE NavBar-side-2kZrH"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(107)),s=n(48),l=n(3549),c=n(1621),u=n(4025),d=n.n(u),p=s.a.extend({className:d.a.container,component:function(){return a()(c.a,{component:l.a,playerType:o.a})}});t.a=p},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.isMiniPlayer},Object(h.a)(),Object(u.a)(),Object(d.a)(),Object(p.a)(),f.a,function(e,t,n,i,a,r){
var o=void 0,s=void 0,l=void 0;if(i){var c=Object(m.r)(i.type);o=c&&c.mediaType,s=i.subtype,l=i.vast}var u=o===g.a,d=o===g.d;return i&&d&&r&&(l=v.a),{isMusic:u,isVideo:d,isPlayQueueLoading:t.isPlayQueueLoading,isMediaLoading:t.isMediaLoading,isPostPlayLoading:t.isPostPlayLoading,isBuffering:t.isBuffering,isSettingsVisible:t.isSettingsVisible,isChaptersVisible:t.isChaptersVisible,isPlayQueueVisible:t.isPlayQueueVisible,isAlsoAiringVisible:t.isAlsoAiringVisible,isLyricsVisible:t.isLyricsVisible,
isPostPlayVisible:t.isPostPlayVisible,hasError:t.hasError,hasConflicts:t.hasConflicts,confirmLiveTVPlayback:t.confirmLiveTVPlayback,hasLiveTVProtocol:!!a&&a.protocols.includes("livetv"),showBackgroundVideoPlayer:!(!l&&!n||e),currentMediaType:o,currentSubType:s,confirmPlaybackPayload:t.confirmPlaybackPayload,confirmOffsetPayload:t.confirmOffsetPayload,confirmRemoteToLocal:t.confirmRemoteToLocal,confirmLocalToRemote:t.confirmLocalToRemote,vast:l}})}
var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(240)),d=n(142),p=n(262),h=n(89),f=n(1499),v=n(3552),g=n(63),m=n(27),y=n(3553),b=Object(l.connect)(i)(y.a);b.propTypes=r()({},b.propTypes,{isMiniPlayer:s.a.bool,playerType:s.a.string.isRequired}),t.a=b},function(e,t,n){"use strict";function i(e,t,n){return(e+t%n+n)%n}t.a=i},function(e,t,n){"use strict";function i(e){return e.deviceSettings}t.a=i},function(e,t,n){"use strict";var i={
url:"https://search.spotxchange.com/vast/2.0/85394?VPI=MP4&player_height=1080&player_width=1920&app%5Bname%5D=Plex&device%5Bdevicetype%5D=7&app%5Bbundle%5D=Chrome.Plex&device%5Bmake%5D=OSX&device%5Bmodel%5D=Plex%2520Web%2520(Chrome)",UrlTemplateFilter:[{template:"[referrer_url]",value:"http://www.watchup.com"},{template:"[description_url]",value:"Watchup"}]};t.a=i},function(e,t,n){"use strict";function i(e){return l.a.createElement(d.a,r()({},e,{playerType:c.a,mediaComponent:e.isMusic?u.a:p.b,
playerComponent:e.isMiniPlayer?f.a:h.a}))}var a=n(6),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(107),u=n(3554),d=n(1512),p=n(989),h=n(3614),f=n(4022);t.a=i},function(e,t,n){"use strict";function i(e){return s.a.createElement(u.a,r()({},e,{type:l.a,allowRecycleElement:!0}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(982),c=n(1500),u=n(1502);t.a=Object(c.a)(i)},function(e,t,n){"use strict";function i(){
return Object(b.createSelector)(Object(x.a)(),Object(T.a)(),Object(N.a)(),Object(w.a)(),Object(w.a)(1),Object(E.a)(),Object(A.a)(),Object(O.a)(),L.a,function(e,t,n,i,a,r,o,s,l){var c=e.playQueue,u=c.playQueueSelectedItemOffset,d=i.entityID,p=!a||u+1===c.length,h={providerEntityID:e.providerEntityID,playQueueItemEntityID:d,isDecisionPending:!t,isPaused:e.isPaused,isBuffering:e.isBuffering,hasError:e.hasError,repeatOne:e.repeatOne,repeatAll:e.repeatAll,totalCount:c.length,isLastPlayQueueItem:p,
playbackTime:e.playbackTime,positionSeconds:e.positionSeconds,durationSeconds:e.durationSeconds,lastSeekPositionSeconds:e.lastSeekPositionSeconds,videoStreams:o.videoStreams,videoStream:o.selectedVideoStream,audioStreams:o.audioStreams,audioStream:o.selectedAudioStream,subtitlesStreams:o.subtitlesStreams,subtitleStream:o.selectedSubtitlesStream,isStreamChangeInProgress:r.isStreamChangeInProgress,bufferingDetectionLimit:S.a.get("bufferingDetectionLimit")};if(s){var f=s.captureBuffer;if(f){
var v=f.startedAt,g=s.startedAt,m=v||g;h.liveTVPositionSeconds=s.currentPosition-m}}return t&&(h.decisionMediaIndex=t.mediaIndex,h.decisionPartIndex=t.partIndex,h.decisionPartCount=t.partCount,h.decisionUrl=t.url,h.decisionProtocol=t.protocol,h.decisionError=t.error,h.isDecisionDirectPlay=t.isDirectPlay,h.isDecisionDirectStreamVideo=t.canDirectStreamVideo,h.isDecisionDirectStreamAudio=t.canDirectStreamAudio,h.canTranscodeServerTranscode=!n.isCloud&&Object(z.a)(n.version,M.a.decisionEndpoint),
h.hasBurnedSubtitles=o.selectedSubtitlesStream&&0!==o.selectedSubtitlesStream.id&&!t.subtitlesUrl),h.isDecisionDirectPlay&&"dash"===h.decisionProtocol&&(h.bufferingGoal=10,h.defaultBandwidthEstimate=l),h})}function a(e,t,n){var i=t;return f()({},n,e,i)}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),
n(32)),S=n(62),M=n(160),D=n(172),C=n(566),j=n(77),P=n(143),O=n(205),T=n(240),E=n(707),w=n(142),A=n(1510),x=n(89),N=n(710),L=n(3570),k=n(107),R=n(709),z=n(271),U=n(63),B=n(3571),F={dispatchMakeDecision:C.a,dispatchMakeNextDecision:C.b,dispatchRemoveDecision:C.d,dispatchRetryDecision:C.e,dispatchUpdatePlayerDuration:P.z,dispatchUpdatePlayerPosition:P.B,dispatchUpdatePlayerSeekRange:P.C,dispatchUpdatePlayerBuffering:P.y,dispatchPause:P.j,dispatchPlay:P.k,dispatchUpdatePlayerError:P.A,
dispatchSendTimeline:P.n,dispatchTickPlayer:P.t,dispatchShowPostPlay:D.q,dispatchPlayNextItem:D.h,dispatchEndPlayback:j.f},_=!0,V=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onDurationMillisecondsChange=function(e){i.props.dispatchUpdatePlayerDuration({playerType:i.props.playerType,durationMilliseconds:e})},i.onPositionMillisecondsChange=function(e){
var t=i.props,n=t.playerType,a=t.dispatchUpdatePlayerPosition,r=t.onPositionMillisecondsChange,o=Math.floor(e/1e3);r&&r(e),o!==i.props.positionSeconds&&a({playerType:n,positionSeconds:o})},i.onTick=function(e){i.props.dispatchTickPlayer({playerType:i.props.playerType,secondsElapsed:e})},i.onBufferingChange=function(e){i.props.dispatchUpdatePlayerBuffering({playerType:i.props.playerType,isBuffering:e})},i.onPause=function(){i.props.dispatchPause({playerType:i.props.playerType,
isApplicationInitiated:!0})},i.onPlay=function(){i.props.dispatchPlay({playerType:i.props.playerType,isApplicationInitiated:!0})},i.onStreamChange=function(){var e=i.props,t=e.playerType,n=e.playQueueItemEntityID,a=e.positionSeconds,r=e.liveTVPositionSeconds,o=e.qualityIndex,s=e.decisionMediaIndex,l=e.decisionPartIndex,c=e.dispatchMakeDecision;(0,e.dispatchRemoveDecision)({playerType:t,playQueueItemEntityID:n}),c({playerType:t,playQueueItemEntityID:n,mediaIndex:s,partIndex:l,qualityIndex:o,
options:{offset:null!=r?1e3*r:1e3*a}})},i.onError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.code,n=e.category,a=e.message,r=i.props,o=r.playerType,s=r.isDecisionDirectPlay,l=r.isDecisionDirectStreamVideo,c=r.isDecisionDirectStreamAudio,u=r.canTranscodeServerTranscode,d=r.dispatchUpdatePlayerError;_&&s&&u?(I.a.warn("[Player] Direct Play failed, but server can transcode. Attempting to fallback to either Direct Stream or transcode..."),
i._itemRestarting(i.props,{allowDirectPlay:!1})):_&&l&&u?(I.a.warn("[Player] Direct Stream failed, but server can transcode. Attempting to fallback to video transcode..."),i._itemRestarting(i.props,{allowDirectPlay:!1,transcoderOptions:{directStream:0}})):_&&c&&u?(I.a.warn("[Player] Video transcode failed. Attempting to fallback to video and audio transcode..."),i._itemRestarting(i.props,{allowDirectPlay:!1,transcoderOptions:{directStream:0,directStreamAudio:0}})):d({playerType:o,errorCode:t,
errorCategory:n,errorMessage:a})},i.onEnd=function(){var e=i.props,t=e.playerType,n=e.playQueueItemEntityID,a=e.minSecondsForPostPlay,r=e.durationSeconds,o=e.qualityIndex,s=e.mediaType,l=e.repeatOne,c=e.repeatAll,u=e.isLastPlayQueueItem,d=e.totalCount,p=e.decisionMediaIndex,h=e.decisionPartIndex,f=e.decisionPartCount,v=e.dispatchMakeDecision,g=e.dispatchRemoveDecision,m=e.dispatchShowPostPlay,y=e.dispatchPlayNextItem,b=e.dispatchEndPlayback,I=l||c&&1===d;h+1<f?(g({playerType:t,
playQueueItemEntityID:n}),v({playerType:t,playQueueItemEntityID:n,qualityIndex:o,mediaIndex:p,partIndex:h+1,options:{offset:0}})):I?(g({playerType:t,playQueueItemEntityID:n}),v({playerType:t,playQueueItemEntityID:n,qualityIndex:o,mediaIndex:p,partIndex:0,options:{offset:0}})):!u||c?s===U.d&&t===k.a&&r>=a?m({playerType:t}):y({playerType:t,isApplicationInitiated:!0}):b({playerType:t})},a=n,u()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){this._itemStarting(this.props),
this.props.mediaType===U.c&&this._itemProgressing(this.props)},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.playQueueItemEntityID,i=t.playerType,a=t.mediaType,r=t.isDecisionPending,o=t.isPaused,s=t.isBuffering,l=t.hasError,c=t.positionSeconds,u=t.durationSeconds,d=t.preFetchSeconds,p=t.qualityIndex,h=t.dispatchMakeNextDecision,f=t.liveTVPositionSeconds,v=n!==e.playQueueItemEntityID,g=r!==e.isDecisionPending,m=p!==e.qualityIndex,y=o!==e.isPaused,b=s!==e.isBuffering,I=l!==e.hasError,S=u!==e.durationSeconds;if(m&&!v&&!g){var M=null!=f?1e3*f:1e3*c
;return void this._itemRestarting(this.props,{offset:M})}if(v)return this._hasRefreshedPlayQueue=!1,this._hasPreFetched=!1,this._itemStopping(e),this._itemStarting(this.props),void(a===U.c&&(this._itemProgressing(this.props,{shouldRefreshPlayQueue:!0}),this._hasRefreshedPlayQueue=!0));!this._hasPreFetched&&u>0&&u-c<d&&(this._hasPreFetched=!0,h({playerType:i})),!g&&(!this._hasRefreshedPlayQueue||y||b||I||S)&&(this._itemProgressing(this.props,{shouldRefreshPlayQueue:!this._hasRefreshedPlayQueue}),
this._hasRefreshedPlayQueue=!0)},t.prototype.componentWillUnmount=function(){this._itemStopping(this.props,{continuing:!1}),this.props.onPositionMillisecondsChange&&this.props.onPositionMillisecondsChange(0)},t.prototype._itemStarting=function(e){var t=e.mediaType,n=e.playerType,i=e.playQueueItemEntityID,a=e.qualityIndex;t!==U.c&&e.dispatchMakeDecision({playerType:n,playQueueItemEntityID:i,qualityIndex:a})},t.prototype._itemRestarting=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.mediaType,i=e.playerType;n!==U.c&&e.dispatchRetryDecision({playerType:i,decisionOptions:t})},t.prototype._itemProgressing=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.shouldRefreshPlayQueue,i=void 0!==n&&n,a=e.playerType,r=e.mediaType,o=e.providerEntityID,s=e.playQueueItemEntityID,l=e.playbackTime,c=e.positionSeconds,u=e.durationSeconds,d=e.isPaused,p=e.decisionMediaIndex,h=e.decisionPartIndex,f=e.decisionPartCount,v=e.dispatchSendTimeline,g=r===U.c,m=d&&!g?R.c:R.d;v({playerType:a,providerEntityID:o,playQueueItemEntityID:s,shouldRefreshPlayQueue:i,options:g?{state:m}:{playbackTime:l,
positionSeconds:c,durationSeconds:u,mediaIndex:p,partIndex:h,partCount:f}})},t.prototype._itemStopping=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.continuing,i=void 0===n||n;e.dispatchSendTimeline({playerType:e.playerType,providerEntityID:e.providerEntityID,playQueueItemEntityID:e.playQueueItemEntityID,options:{state:R.e,continuing:i,playbackTime:e.playbackTime,positionSeconds:e.positionSeconds,durationSeconds:e.durationSeconds,mediaIndex:e.decisionMediaIndex,
partIndex:e.decisionPartIndex,partCount:e.decisionPartCount}}),e.mediaType!==U.c&&e.dispatchRemoveDecision({playerType:e.playerType,playQueueItemEntityID:e.playQueueItemEntityID})},t.prototype.render=function(){var e=this.props,t=(e.preFetchSeconds,e.minSecondsForPostPlay,e.repeatOne,e.repeatAll,e.totalCount,e.isLastPlayQueueItem,e.canTranscodeServerTranscode,e.qualityIndex,e.decisionMediaIndex,e.decisionPartIndex,e.decisionPartCount,e.dispatchMakeDecision,e.dispatchRemoveDecision,
e.dispatchUpdatePlayerDuration,e.dispatchUpdatePlayerPosition,e.dispatchUpdatePlayerSeekRange,e.dispatchUpdatePlayerBuffering,e.dispatchPause,e.dispatchUpdatePlayerError,e.dispatchTickPlayer,e.dispatchShowPostPlay,e.dispatchPlayNextItem,e.dispatchEndPlayback,
o()(e,["preFetchSeconds","minSecondsForPostPlay","repeatOne","repeatAll","totalCount","isLastPlayQueueItem","canTranscodeServerTranscode","qualityIndex","decisionMediaIndex","decisionPartIndex","decisionPartCount","dispatchMakeDecision","dispatchRemoveDecision","dispatchUpdatePlayerDuration","dispatchUpdatePlayerPosition","dispatchUpdatePlayerSeekRange","dispatchUpdatePlayerBuffering","dispatchPause","dispatchUpdatePlayerError","dispatchTickPlayer","dispatchShowPostPlay","dispatchPlayNextItem","dispatchEndPlayback"]))
;return m.a.createElement(B.a,f()({},t,{onDurationMillisecondsChange:this.onDurationMillisecondsChange,onPositionMillisecondsChange:this.onPositionMillisecondsChange,onTick:this.onTick,onBufferingChange:this.onBufferingChange,onStreamChange:this.onStreamChange,onError:this.onError,onEnd:this.onEnd,onPause:this.onPause,onPlay:this.onPlay}))},t}(g.Component);V.defaultProps={preFetchSeconds:10,minSecondsForPostPlay:300},t.a=Object(y.connect)(i,F,a)(V)},function(e,t,n){"use strict";function i(e,t){
return null==e.get("startMetadataItemEntityID")&&null!=e.get("startMediaIndex")?e.get("startMediaIndex"):e.get("startMetadataItemEntityID")===t.entityID()?e.get("startMediaIndex"):null}t.a=i},function(e,t,n){"use strict";function i(e){return"dash"===e||"hls"===e}var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(32),d=n(18),p=n(160),h=n(41),f=n(3558),v=n(302),g=n(1224),m=n(1225),y=n(3559),b=n(1506),I=n(74),S=n(1505),M=n(309),D=n(505),C=n(3),j={getPlayerDecision:function(e){var t=this
;return this.resolvePlayerDecision(e).then(null,function(n){return n.canDirectPlay&&n.generalDecisionCode===f.a?(u.a.warn("[PDE] Forcing transcode;",n.mdeDecisionText),t.resolvePlayerDecision(r()({},e,{allowDirectPlay:!1}))):n})},resolvePlayerDecision:function(e){c.a.defaults(e,{offset:0,minVersionForDASH:p.a.dash,minVersionForStreamingMKV:p.a.streamingMKV,transcoderOptions:{}});var t={playbackSessionID:e.playbackSessionID||Object(D.a)(),transcodeSessionID:e.transcodeSessionID||Object(D.a)(),
offset:e.offset},n=this.populateMedia(t,e);return n=n.then(c.a.bind(function(){return this.resolveMedia(t,e)},this)),n=n.then(function(){return s.a.when(t.url)}),n=n.then(function(e){return t.url=e,t})},populateMedia:function(e,t){var n=s.a.Deferred(),i=c.a.bind(n.resolve,n,e);return t.requireAnalysis&&Object(y.a)(t.item)?t.item.fetch({scope:"player"}).always(i):c.a.defer(i),n.promise()},resolveMedia:function(e,t){var n=c.a.extend({transcodeServer:this.resolveTranscodeServer(t)
},t),i=b.a.getMediaDecision(n);if(n.originalQualityDecisionOptions){var a=b.a.getMediaDecision(r()({},n,n.originalQualityDecisionOptions));i.canPlayOriginalQuality=a.canDirectPlay||a.canDirectStreamVideo}else i.canPlayOriginalQuality=i.canDirectPlay||i.canDirectStreamVideo;var o=i.media,l=s.a.Deferred();return c.a.extend(e,i),o?e.canPlay?"webkit"===o.protocol?(u.a.warn("[PDE] Webkit videos are not supported"),e.redirect=!0,
l.reject(e).promise()):"embed"===o.protocol?(u.a.warn("[PDE] An embed is required"),e.embed=!0,e.part=c.a.first(o.Part),l.reject(e).promise()):this.resolvePart(e,t):(u.a.warn("[PDE] Unable to play item;",e.errorMessage),l.reject(e).promise()):this.resolveUrls(e,t)},resolveTranscodeServer:function(e){var t=e.item.server,n=e.fallbackServer,i=e.item.provider;if(t===n||!n||!n.get("isConnected"))return t;var a
;e.type===M.a.types.VIDEO?a="transcoderVideo":e.type===M.a.types.MUSIC&&(a="transcoderAudio");var r=!i||i.get("identifier")===h.d||i.get("identifier")===h.a;return a&&!t.get(a)&&n.get(a)&&r?n:t},resolvePart:function(e,t){return t.part?e.part=t.part:t.offset?1===e.media.Part.length?e.part=e.media.Part[0]:(e.part=Object(g.a)(e.media,t.offset),e.offset=Object(m.a)(e.media,e.part,t.offset)):e.part=c.a.first(e.media.Part),e.media.indirect?this.resolveIndirect(e,t):this.resolveUrls(e,t)},
resolveIndirect:function(e,t){Object(u.a)("[PDE] Resolving indirect item");var n=t.item.resolveIndirect(e.media,e.part),i=c.a.bind(function(){return this.resolveMedia(e,t)},this),a=c.a.bind(function(){return s.a.Deferred().reject(e).promise()},this);return n=n.then(i,a)},resolveUrls:function(e,t){var n=s.a.Deferred();return this.validatePlayerType(e,t)?(this.validateSoftSubtitles(e,t)?e.subtitlesUrl=this.resolveSubtitlesUrl(e,t):e.useSoftSubtitles&&(e.useSoftSubtitles=!1),
u.a.group("[PDE] Player decision"),u.a.info("Player:",e.playerType),u.a.info("Protocol:",e.protocol),u.a.info("Direct Play:",e.canDirectPlay),u.a.groupEnd(),e.canDirectPlay?e.url=this.resolveDirectPlayUrl(e,t):e.url=this.resolveTranscoderUrl(e,t),this.resolveDecision(e,t)):n.reject(e).promise()},validatePlayerType:function(e,t){return e.media&&t.type&&t.type!==M.a.types.PHOTO?e.canDirectPlay?("hls"===e.media.protocol?(e.protocol="hls",
e.playerType=t.hasNativeHLS?"html":"flash"):"dash"===e.media.protocol?(e.protocol="dash",e.playerType="html"):(e.protocol="http",e.playerType="flv"===e.media.container?"flash":"html"),!0):this.validatePlayerTranscodeProtocol(e,t):(e.protocol="http",e.playerType="html",!0)},validatePlayerTranscodeProtocol:function(e,t){var n,i=e.transcodeServer,a=t.transcodeProtocol,r=!0,o=!0,s=!0;if(a&&(r="dash"===a,o="http"===a,s="hls"===a),s&&t.hasNativeHLS)return e.protocol="hls",e.playerType="html",!0
;if(o&&t.hasStreamingMKV){if(i.isVersionOrNewer(t.minVersionForStreamingMKV))return e.protocol="http",e.playerType="html",!0;n=t.minVersionForStreamingMKV}if(r&&t.hasDASH){if(i.isVersionOrNewer(t.minVersionForDASH))return e.protocol="dash",e.playerType="html",!0;n=t.minVersionForDASH}return t.type===M.a.types.MUSIC?(e.protocol="http",e.playerType="html",!0):s&&t.hasFlash?(e.protocol="hls",e.playerType="flash",
!0):(e.errorMessage=n?Object(C.default)("Please update Plex Media Server. This feature requires {1} or later.",n):Object(C.default)("Streaming this media is unsupported."),!1)},validateSoftSubtitles:function(e,t){return e.useSoftSubtitles&&"html"!==e.playerType?(u.a.warn("[PDE] Only the HTML player supports soft subtitles"),!1):!e.useSoftSubtitles||e.canDirectPlay||t.allowDirectStreamVideoWithSoftSubtitles?e.useSoftSubtitles:(u.a.warn("[PDE] Unable to use soft subtitles without direct play"),!1)
},resolveDirectPlayUrl:function(e,t){var n=t.item,i=e.part,a={"X-Plex-Session-Identifier":e.playbackSessionID},r=i?i.key:n.get("key"),o={appendHeaders:!0,params:a};return(t.itemProvider||n.provider||n.server).resolveUrl(r,o)},resolveTranscoderUrl:function(e,t,n){var a=t.item,r=e.media,o=e.part,s=t.transcoderOptions;c.a.isFunction(s)&&(s=s(e)),s=c.a.extend({},e.transcoderQualityOptions,s,{"X-Plex-Session-Identifier":e.playbackSessionID,session:e.transcodeSessionID,protocol:e.protocol,
directPlay:e.canDirectPlay?1:0,offset:e.offset?e.offset/1e3:e.offset});var l=t.subtitlesBurnLevel;t.type===M.a.types.VIDEO&&(l===v.a.NEVER?s.subtitles=e.canDirectPlay?"none":"auto":e.useSoftSubtitles?(s.subtitles=e.canDirectPlay?"sidecar":"auto",l===v.a.AVOID&&(s.advancedSubtitles="text")):s.subtitles="burn");var d=t.profileExtra;c.a.isFunction(d)&&(d=d(e)),s["X-Plex-Client-Profile-Extra"]=d;var p=a.get("Media")[0],h=!!p&&"livetv"===p.origin
;("hls"===s.protocol&&!t.useOffsetHLS&&!h||"dash"===s.protocol&&!h)&&(Object(u.a)("[PDE] DASH and HLS should seek forward by default, offset=0"),delete s.offset),"hls"===s.protocol&&t.useOffsetHLS&&(e.useOffsetHLS=!0,s.offset&&(Object(u.a)("[PDE] HLS started with an offset, copyts=0"),s.copyts=0)),i(s.protocol)&&h&&(s.copyts=0),"http"===s.protocol&&(t.type===M.a.types.MUSIC?(e.useOffsetHTTP=!0,s.copyts=0):s.copyts=h?0:1),"http"!==s.protocol||e.canDirectPlay||(s["X-Plex-Chunked"]=1),
c.a.each(c.a.keys(s),function(e){null==s[e]&&delete s[e]});var f=t.type,g=t.transcoder,m=e.transcodeServer;if(f===M.a.types.VIDEO)return g.video(m,a,r,o,s,n);if(f===M.a.types.MUSIC)return g.music(m,a,s,n);if(f===M.a.types.PHOTO){s.fallbackServer=t.fallbackServer;var y="photo"===a.get("type")?a.getMediaKey():a.get("thumb");return g.image(m,y,s)}},resolveSubtitlesUrl:function(e,t){
var n=this.resolveTranscoderUrl(e,t),i=d.parseUrl(n).params,a=e.canDirectPlay?"/subtitles/:/transcode/universal/start":"/video/:/transcode/universal/subtitles";return e.transcodeServer.resolveUrl(a,{params:i})},resolveDecision:function(e,t){var n=e.transcodeServer,a=s.a.Deferred();if(t.type===M.a.types.PHOTO||n.get("isCloud")||!n.supports("decisionEndpoint"))return a.resolve(e).promise();var r=c.a.clone(e);this.validatePlayerTranscodeProtocol(r,t)
;var o=this.resolveTranscoderUrl(r,t,"decision"),l=s.a.ajax(n.getXHROptions(o,{timeout:2e3}));return null!=e.offset&&!e.canDirectPlay&&i(e.protocol)&&e.media&&"livetv"===e.media.origin&&(e.offset=0),l.done(function(t){var n=I.a.parseXML(t);n.generalDecisionCode&&(e.generalDecisionCode=I.a.parseInteger(n.generalDecisionCode),e.generalDecisionText=n.generalDecisionText),n.mdeDecisionCode&&(e.mdeDecisionCode=I.a.parseInteger(n.mdeDecisionCode),e.mdeDecisionText=n.mdeDecisionText),
n.transcodeDecisionCode&&(e.transcodeDecisionCode=I.a.parseInteger(n.transcodeDecisionCode),e.transcodeDecisionText=n.transcodeDecisionText),e.abr=I.a.parseBoolean(n.abr),Object(S.a)(e)?a.reject(e):a.resolve(e)}),l.fail(function(){u.a.warn("[PDE] Player decision failed; the transcode server may be a slow or outdated"),a.resolve(e)}),a.promise()}};t.a=j},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=1001},function(e,t,n){"use strict";function i(e){
var t=e?r.a.first(e.get("Media")):null;return!(!t||t.container)}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=Object(a.a)(e),n=e.get("currentDecision");if(t&&n)return n.playQueueItemID===t.get("playQueueItemID")?n:void 0}t.a=i;var a=n(983)},function(e,t,n){"use strict";function i(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e.at(n),a=Math.ceil(i.get("startTimeOffset")/1e3);if(a>t)return a}}t.a=i},function(e,t,n){"use strict";function i(e,t){
if(e&&e.length){for(var n=e.length-1;n>=0;n--){var i=e.at(n),r=Math.ceil(i.get("startTimeOffset")/1e3);if(r<t-a.a)return r}return 0}}t.a=i;var a=n(371)},function(e,t,n){"use strict";function i(e,t){var n=Object(a.parseUrl)(e),i=n.origin,r=n.pathname,o=n.params;return o.offset=t,Object(a.join)([i,r],o)}var a=n(18);t.a=i},function(e,t,n){"use strict";function i(e,t){Object(o.a)(t,"A transcoder ping requires a session identifier"),Object(s.a)("[Player] Transcoder Ping, %s",t)
;var n="/video/:/transcode/universal/ping?session="+t;return r.a.ajax(e.getXHROptions(n)).promise()}t.a=i;var a=n(13),r=n.n(a),o=n(37),s=n(32)},function(e,t,n){"use strict";function i(e){return{startedAt:Object(p.a)(e.timeStamp),seekStartSeconds:Object(p.a)(e.minOffsetAvailable),seekEndSeconds:Object(p.a)(e.maxOffsetAvailable)}}function a(e){e.set({viewOffset:0,viewCount:1})}function r(e,t,n){
var r=n.mediaIndex,o=n.partIndex,l=n.partCount,I=n.state,S=n.continuing,M=n.playbackTime,D=n.positionSeconds,C=n.durationSeconds,j=e.get("features").get(f.b.TIMELINE);if(!j)return s.a.Deferred().reject().promise();var P=t.get("metadataItem"),O={ratingKey:P.get("ratingKey"),key:P.get("key"),playbackTime:M,playQueueItemID:t.get("playQueueItemID"),state:I,hasMDE:1};if(I===g.e&&S&&(O.continuing=1),null!=C){var T=1e3*D,E=1e3*C;if(l>1){var w=P.get("Media"),A=w[r],x=A.Part[o];O.time=Object(y.a)(A,x,T),
O.duration=A.duration}else O.time=T,O.duration=E;O.duration=Math.max(O.time,O.duration)}Object(u.a)("[Player] Timeline, %s",O);var N=h.join(j.get("key"),O),L=t.provider.getXHROptions(N,{headers:{"X-Plex-Session-Identifier":n.playbackSessionID}});return s.a.ajax(L).promise().then(function(t){var n=Object(b.a)(t);return n.terminationCode&&(n.terminationCode=Object(p.a)(n.terminationCode)),n.generalDecisionCode&&(n.generalDecisionCode=Object(p.a)(n.generalDecisionCode)),
n.mdeDecisionCode&&(n.mdeDecisionCode=Object(p.a)(n.mdeDecisionCode)),n.transcodeDecisionCode&&(n.transcodeDecisionCode=Object(p.a)(n.transcodeDecisionCode)),n.Bandwidths&&n.TranscodeSession&&(n.bandwidthTimeline={bandwidths:Object(d.a)(n.Bandwidths.Bandwidth),transcodeSessionID:c.a.last(n.TranscodeSession.key.split("/"))}),n.CaptureBuffer&&n.CaptureBuffer.TranscodeSession&&(n.captureBuffer=i(n.CaptureBuffer.TranscodeSession)),n.TranscodeSession&&(n.transcodeSession=i(n.TranscodeSession)),
(O.time>6e4||e.id===m.a)&&(n.playbackState===v.b?P.set("viewOffset",O.time):n.playbackState===v.a&&a(P)),n})}t.a=r;var o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(32),d=n(792),p=n(353),h=n(18),f=n(64),v=n(3566),g=n(709),m=n(41),y=n(1508),b=n(605)},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i="progress",a="complete"},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=5},function(e,t,n){"use strict";function i(e){
var t=e.get("remotePlayer");return t?t.get("volume"):Object(a.a)(e)}t.a=i;var a=n(1509)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.liveTVSessions});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(146)),r=Object(i.createSelector)(function(e){return e.experienceSettings.remoteQuality},function(e){var t=a.a.getQualityByIndex(e),n=t.bitrate;return null==n&&(n=2e5),1e3*n});t.a=r},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(16),b=n(987),I=n(63),S=n(3572),M=n.n(S),D=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a._mediaComponent=Object(y.c)("mediaComponent"),a}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.isDecisionPending,n=e.isDecisionDirectPlay,i=e.isDecisionDirectStreamAudio,r=e.isDecisionDirectStreamVideo,s=e.isPaused,c=e.decisionUrl,u=e.decisionProtocol,d=(e.decisionError,
e.media),p=e.mediaType,h=e.placement,f=e.shouldCoverWhenDecisionPending,v=l()(e,["isDecisionPending","isDecisionDirectPlay","isDecisionDirectStreamAudio","isDecisionDirectStreamVideo","isPaused","decisionUrl","decisionProtocol","decisionError","media","mediaType","placement","shouldCoverWhenDecisionPending"]);if(t)return f?o()("div",{className:M.a.isDecisionPending}):null;var g=this._mediaComponent.getComponent({protocol:u,isDirectPlay:n,isDirectStreamAudio:i,isDirectStreamVideo:r,media:d
}),y=p===I.a?b.b:h;return m.a.createElement(g,a()({},v,{key:c,src:c,paused:s,placement:y,media:d,mediaType:p,isDecisionDirectPlay:n,isDecisionDirectStreamAudio:i,isDecisionDirectStreamVideo:r}))},t}(g.Component);t.a=D},function(e,t){e.exports={isDecisionPending:"PlayerMedia-isDecisionPending-3d0gX"}},function(e,t,n){"use strict";function i(){
return Object(m.createSelector)(Object(j.a)(["confirmRemoteToLocal","isPostPlayVisible","isMediaLoading","isBuffering","isPaused","hasError"]),Object(P.a)(),Object(M.a)(),function(e,t,n){return!(!t||t.type!==L.g)||!(!n||e.confirmRemoteToLocal||e.isPostPlayVisible||e.isMediaLoading||e.isBuffering||e.isPaused||e.hasError)})}function a(){return Object(m.createSelector)(Object(C.a)("positionSeconds"),Object(P.a)(),Object(M.a)(),function(e,t,n){if(t&&t.type===L.g)return!0;if(n){
var i=t.Media[n.mediaIndex],a=i&&i.Part[n.partIndex];if(i&&i.duration&&a){return Object(T.a)(i,a,1e3*e)>.9*i.duration}}return!1})}function r(){return Object(m.createSelector)(Object(O.a)(),Object(P.a)(),Object(M.a)(),Object(D.a)(),i(),a(),Object(C.a)("hasError"),Object(C.a)("errorCode"),Object(C.a)("metricsPage"),Object(C.a)("metricsContext"),Object(C.a)("metricsAutoPlay"),Object(C.a)("playbackStartTime"),function(e,t,n,i,a,r,o,s,l,c,u,d){var p={decision:n,isPlaying:a,hasEnded:r,hasError:o,
errorCode:s,metricsPage:l,metricsContext:c,metricsAutoPlay:u,playbackStartTime:d};if(e&&(p.metricsServerType=Object(A.a)(e),p.metricsConnectionType=Object(w.a)(e.activeConnection)),i&&(p.playQueueItemID=i.playQueueItemID),t&&(p.metricsType=t.type,p.metricsIdentifier=t.identifier,t.type===L.g&&t.Media.length&&(p.metricsContainer=t.Media[0].container)),n){var h=Object(E.a)(n),f=t.Media[n.mediaIndex],v=f&&f.Part[n.partIndex],g=k.a.get("video").id,m=v&&b.a.findWhere(v.Stream,{streamType:g
}),y=k.a.get("audio").id,I=v&&b.a.findWhere(v.Stream,{streamType:y,selected:!0}),S=k.a.get("subtitles").id,M=v&&b.a.findWhere(v.Stream,{streamType:S,selected:!0});p.metricsProtocol=n.protocol,p.metricsOffset=n.positionSeconds,f&&(p.metricsContainer=f.container,p.metricsDuration=Object(N.a)(f.duration),p.metricsBitrate=Object(x.a)(f.bitrate),p.metricsOrigin=f.origin),m&&(p.metricsVideoCodec=m.codec,p.metricsVideoDecision=h.videoDecision),I&&(p.metricsAudioCodec=I.codec,
p.metricsAudioDecision=h.audioDecision),M&&M.id&&(p.metricsSubtitleFormat=M.codec,p.metricsSubtitleDecision=h.subtitleDecision)}return p})}var o=n(6),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),n(11)),m=n(4),y=(n.n(m),n(10)),b=n.n(y),I=n(16),S=n(143),M=n(240),D=n(142),C=n(153),j=n(567),P=n(178),O=n(568),T=n(1508),E=n(3574),w=n(824),A=n(825),x=n(3575),N=n(1514),L=n(27),k=n(159),R={START:"playback:itemstart",RESTART:"playback:itemrestart",
END:"playback:itemend",SESSION_END:"playback:sessionend",FAILURE:"playback:failure"},z={CAST:"cast",FAILED:"failed",COMPLETED:"completed",STOPPED:"stopped",SKIPPED:"skipped"},U={QUALITY:"quality",STREAMS:"streams"},B={dispatchSetPlayerPlaybackTime:S.o},F=function(e){function t(n,i){c()(this,t);var a=d()(this,e.call(this,n,i));return a.onTickTimeout=function(){a.flushPlaybackTimes(),a.setTickTimeout(a.props)},a.itemID=null,a.itemDecision=null,a.itemMetricsProperties=null,
a.itemPlaybackTimestamp=null,a.itemPlaybackMilliseconds=0,a.sessionPlaybackMilliseconds=0,a.sessionPlaybackCount=0,a.hasError=!1,a.hasEnded=!1,a.hasStopped=!1,a._tickTimeout=null,a}return h()(t,e),t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(e){this.update(e)},t.prototype.componentWillUnmount=function(){this.hasStopped=!0,this.trackItemEnd(),this.trackSessionEnd(),this.clearTickTimeout()},t.prototype.clearTickTimeout=function(){
this._tickTimeout&&(this._tickTimeout=clearTimeout(this._tickTimeout))},t.prototype.setTickTimeout=function(e){e.isPlaying&&(this.clearTickTimeout(),this.itemPlaybackTimestamp=Date.now(),this._tickTimeout=setTimeout(this.onTickTimeout,1e3))},t.prototype.update=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.isRemotePlayer,i=t.playQueueItemID,a=t.decision,r=t.isPlaying,o=t.hasError,s=t.metricsType,l=e.isPlaying
;if(r&&!l?this.setTickTimeout(this.props):!r&&l&&this.clearTickTimeout(),n)return void(e.isRemotePlayer||(this.trackItemEnd(),this.trackSessionEnd()));!this.hasError&&o&&(this.hasError=!0,this.trackFailure()),this.itemID&&(this.itemID===i?this.updateCurrentItem():this.trackItemEnd()),!this.itemID&&!this.hasError&&r&&i&&(a||s===L.g)&&this.trackItemStart()},t.prototype.updateCurrentItem=function(){var e=this.props,t=e.decision,n=e.isPlaying,i=e.hasEnded
;if(n?(this.itemPlaybackTimestamp||(this.itemPlaybackTimestamp=Date.now()),this.hasEnded=i):this.flushPlaybackTimes(),this.itemDecision&&t&&this.itemDecision!==t){var a=void 0;if(this.itemDecision.qualityIndex!==t.qualityIndex?a=U.QUALITY:this.itemDecision.partIndex===t.partIndex&&(a=U.STREAMS),a){var r=this.itemMetricsProperties.offset;this.trackItemRestart(a),this.itemMetricsProperties.offset=r}}},t.prototype.getItemMetricsProperties=function(){return{serverType:this.props.metricsServerType,
connectionType:this.props.metricsConnectionType,type:this.props.metricsType,identifier:this.props.metricsIdentifier,page:this.props.metricsPage,context:this.props.metricsContext,auto:this.props.metricsAutoPlay,protocol:this.props.metricsProtocol,offset:this.props.metricsOffset,container:this.props.metricsContainer,duration:this.props.metricsDuration,bitrate:this.props.metricsBitrate,origin:this.props.metricsOrigin,audioCodec:this.props.metricsAudioCodec,
audioDecision:this.props.metricsAudioDecision,videoCodec:this.props.metricsVideoCodec,videoDecision:this.props.metricsVideoDecision,subtitleFormat:this.props.metricsSubtitleFormat,subtitleDecision:this.props.metricsSubtitleDecision}},t.prototype.flushPlaybackTimes=function(){if(this.itemPlaybackTimestamp){var e=Date.now()-this.itemPlaybackTimestamp;this.itemPlaybackTimestamp=null,this.itemPlaybackMilliseconds+=e,this.sessionPlaybackMilliseconds+=e,this.setPlayerPlaybackTime(),
Object(I.c)("metrics").addPlaybackTime(e)}},t.prototype.trackItemStart=function(){this.itemID=this.props.playQueueItemID,this.itemDecision=this.props.decision,this.itemMetricsProperties=this.getItemMetricsProperties(),this.itemPlaybackTimestamp=Date.now(),this.itemPlaybackMilliseconds=0,this.sessionPlaybackCount+=1,this.hasEnded=this.props.hasEnded,this.hasError=this.props.hasError;var e=this.props.playbackStartTime,t=s()({},this.itemMetricsProperties)
;1===this.sessionPlaybackCount&&(t.latency=Date.now()-e),Object(I.c)("metrics").trackEvent({event:R.START,interaction:!0,properties:t}),Object(I.c)("metrics").incrementPlaybackCount(),this.setTickTimeout(this.props)},t.prototype.trackItemRestart=function(e){this.itemDecision=this.props.decision,this.itemMetricsProperties=this.getItemMetricsProperties(),Object(I.c)("metrics").trackEvent({event:R.RESTART,interaction:!0,properties:s()({},this.itemMetricsProperties,{reason:e})})},
t.prototype.trackItemEnd=function(){if(this.itemID){this.flushPlaybackTimes(),this.clearTickTimeout();var e=void 0;e=this.props.isRemotePlayer?z.CAST:this.hasError?z.FAILED:this.hasEnded?z.COMPLETED:this.hasStopped?z.STOPPED:z.SKIPPED,Object(I.c)("metrics").trackEvent({event:R.END,interaction:!0,properties:s()({},this.itemMetricsProperties,{playbackTime:Object(N.a)(this.itemPlaybackMilliseconds),status:e})}),this.itemID=null,this.itemDecision=null,this.itemMetricsProperties=null,
this.itemPlaybackTimestamp=null,this.itemPlaybackMilliseconds=0,this.hasError=!1,this.hasEnded=!1}},t.prototype.trackSessionEnd=function(){this.sessionPlaybackCount&&(this.flushPlaybackTimes(),Object(I.c)("metrics").trackEvent({event:R.SESSION_END,interaction:!0,properties:{serverType:this.props.metricsServerType,connectionType:this.props.metricsConnectionType,type:this.props.metricsType,playbackCount:this.sessionPlaybackCount,playbackTime:Object(N.a)(this.sessionPlaybackMilliseconds)}}),
this.sessionPlaybackMilliseconds=0,this.sessionPlaybackCount=0)},t.prototype.trackFailure=function(){Object(I.c)("metrics").trackEvent({event:R.FAILURE,interaction:!0,properties:{serverType:this.props.metricsServerType,connectionType:this.props.metricsConnectionType,type:this.props.metricsType,error:this.props.errorCode}})},t.prototype.setPlayerPlaybackTime=function(){this.props.dispatchSetPlayerPlaybackTime({playbackTime:this.itemPlaybackMilliseconds,playerType:this.props.playerType})},
t.prototype.render=function(){return null},t}(v.Component);t.a=Object(g.connect)(r,B)(F)},function(e,t,n){"use strict";function i(e){var t={};return e.isDirectPlay?(t.videoDecision=a,t.audioDecision=a,t.subtitleDecision=a):(t.videoDecision=e.canDirectStreamVideo?r:o,t.audioDecision=e.canDirectStreamAudio?r:o,t.subtitleDecision=e.useSoftSubtitles?r:o),t}t.a=i;var a="direct",r="copy",o="transcode"},function(e,t,n){"use strict";function i(e){if(null!=e){var t=void 0
;return t=e>=10240?512:e>=1024?256:e>=512?128:e>=256?64:32,Object(a.a)(e,t)}}t.a=i;var a=n(1513)},function(e,t,n){"use strict";function i(){return Object(g.a)(["isOpen","isPaused","openState"])}function a(){return Object(f.createSelector)(i(),function(e){var t=e.isOpen,n=e.isPaused,i=e.openState,a=i===m.a;return{isEnabled:!t||!a||n}})}var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(16)),g=n(567),m=n(212),y=function(e){
function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a._screenSaverManager=Object(v.a)("screenSaverManager")?Object(v.c)("screenSaverManager"):null,a}return u()(t,e),t.prototype.componentDidMount=function(){this._toggleScreenSaver(this.props.isEnabled)},t.prototype.componentDidUpdate=function(e){e.isEnabled!==this.props.isEnabled&&this._toggleScreenSaver(this.props.isEnabled)},t.prototype.componentWillUnmount=function(){this._toggleScreenSaver(!0)},
t.prototype._toggleScreenSaver=function(e){this._screenSaverManager&&this._screenSaverManager.toggle(e)},t.prototype.render=function(){return null},t}(p.Component);t.a=Object(h.connect)(a)(y)},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(Object(I.a)(["isPaused","isBuffering"]),M.a,S.a,function(e,t,n){return{volume:t,isPaused:e.isPaused,isBuffering:e.isBuffering,canForceVideoAds:n}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(143)),I=n(567),S=n(1499),M=n(708),D=(n(63),n(3578)),C={dispatchUpdatePlayerBuffering:b.y},j=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onBufferingChange=function(e){i.props.dispatchUpdatePlayerBuffering({
playerType:i.props.playerType,isBuffering:e})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchUpdatePlayerBuffering,s()(e,["dispatchUpdatePlayerBuffering"]));return g.a.createElement(D.a,r()({},t,{onBufferingChange:this.onBufferingChange}))},t}(v.Component);t.a=Object(m.connect)(i,C)(j)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(16),m=n(3579),y=n.n(m),b=n(62),I=n(369),S=n(3580),M="405",D=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onPositionMillisecondsChange=function(e){var t=Math.floor(e/1e3);t!==a.props.positionSeconds&&a._vastTracker.setProgress(t),a.props.onPositionMillisecondsChange(e)},a.onCanPlay=function(){a._hasMediaStarted=!0,a._resetPlaybackTimeout(),a._vastTracker.load()},a.onEnd=function(){var e=a.state,t=e.isLoading,n=e.currentAdIndex,i=e.ads
;if(!t){a._vastTracker.complete();var r=n+1;if(r>=i.length)return a._hasMediaFinished=!0,void a.props.onEnd();var o=a._pickMedia(i,r);if(!o)return void a.props.onEnd();a._hasMediaFinished=!1,a.setState({currentAdIndex:r,currentMedia:o})}},a.onError=function(){a._vastTracker.errorWithCode(M),a.onEnd()},a.state={isLoading:!0,ads:null,currentAdIndex:null,currentCreativeIndex:null,currentMedia:null},a._hasMediaStarted=!1,a._hasMediaFinished=!1,a._mediaComponent=Object(g.c)("mediaComponent"),a}
return p()(t,e),t.prototype.componentWillMount=function(){this._loadTemplateFilters(this.props.urlTemplateFilters)},t.prototype.componentDidMount=function(){this._loadXML(this.props.url)},t.prototype.componentDidUpdate=function(e,t){if(this.props.url!==e.url&&(this._hasMediaStarted=!1,this._hasMediaFinished=!1,y.a.parser.clearUrlTemplateFilters(),this._loadTemplateFilters(this.props.urlTemplateFilters),this._loadXML(this.props.url)),this.state.currentAdIndex!==t.currentAdIndex){
var n=this.state.ads[this.state.currentAdIndex],i=n.creatives[this.state.currentCreativeIndex];this._vastTracker=new y.a.tracker(n,i),this.props.onSkipDelayChange(this.props.canForceVideoAds?3:i.skipDelay)}this.state.isLoading||(0===this.props.volume&&0!==e.volume&&this._vastTracker.setMuted(!0),0!==this.props.volume&&0===e.volume&&this._vastTracker.setMuted(!1),this.props.isPaused!==e.isPaused&&this._vastTracker.setPaused(this.props.isPaused),
this.props.isFullscreen!==e.isFullscreen&&this._vastTracker.setFullscreen(this.props.isFullscreen),this.props.isMiniPlayer!==e.isMiniPlayer&&this._vastTracker.setExpand(!this.props.isMiniPlayer),this.props.isSkipped&&!e.isSkipped&&(this._vastTracker.skip(),this.props.onEnd()))},t.prototype.componentWillUnmount=function(){this._resetPlaybackTimeout(),this._vastXHR&&this._vastXHR.abort(),!this._vastTracker||this._hasMediaFinished||this.props.isSkipped||this._vastTracker.close(),
y.a.parser.clearUrlTemplateFilters()},t.prototype._loadXML=function(e){var t=this;this._vastXHR&&this._vastXHR.abort(),this._resetPlaybackTimeout(),this.setState({isLoading:!0}),this._vastXHR=y.a.client.get(this.props.url,function(e,n){if(!e||n)return void t.props.onEnd();var i=e.ads,a=i[0].creatives.findIndex(function(e){return"linear"===e.type}),r=t._pickMedia(i,0,a);if(!r)return void t.props.onEnd();t._hasMediaStarted=!1,t._hasMediaFinished=!1,t._playbackTimeout=setTimeout(function(){
t._hasMediaStarted||(t._vastTracker.errorWithCode("402"),t.props.onEnd()),t._playbackTimeout=null},15e3),t.setState({isLoading:!1,ads:i,currentAdIndex:0,currentCreativeIndex:a,currentMedia:r}),t.props.onResponse(e),t._vastXHR=null})},t.prototype._loadTemplateFilters=function(e){e.map(function(e){var t=e.template,n=e.value;y.a.parser.addURLTemplateFilter(function(e){return e.replace(t,n)})})},t.prototype._pickMedia=function(e,t,n){var i=this,a=e[t];if(a&&a.creatives&&a.creatives.length){
if(a.creatives[n]){var r=a.creatives[n].mediaFiles;if(r.length){var o=r.filter(function(e){return i.props.canPlayType({mimeType:e.mimeType})}).reduce(function(e,t){return e.height<t.height?t:e});return o||this._vastTracker.errorWithCode("403"),o}}}},t.prototype._resetPlaybackTimeout=function(){this._playbackTimeout&&(clearTimeout(this._playbackTimeout),this._playbackTimeout=null)},t.prototype.render=function(){var e=this.props,t=(e.url,e.urlTemplateFilters,
e.isPaused),n=e.positionSeconds,i=(e.canForceVideoAds,o()(e,["url","urlTemplateFilters","isPaused","positionSeconds","canForceVideoAds"])),r=this.state,s=r.isLoading,l=r.currentMedia;if(s)return null;var c=this._mediaComponent.getComponent({protocol:"http",isDirectPlay:!0});return v.a.createElement(c,a()({},i,{bufferingDetectionLimit:b.a.get("bufferingDetectionLimit"),positionSeconds:n,paused:t,src:l.fileURL,mediaType:"video",onPositionMillisecondsChange:this.onPositionMillisecondsChange,
onCanPlay:this.onCanPlay,onEnd:this.onEnd,onError:this.onEnd}))},t}(f.Component);D.defaultProps={urlTemplateFilters:[],canPlayType:Object(I.a)()?function(){return!0}:S.a,onResponse:function(){},onSkipDelayChange:function(){},onPositionMillisecondsChange:function(){},onEnd:function(){}},t.a=D},function(e,t,n){var i,i;!function(t){e.exports=t()}(function(){return function e(t,n,a){function r(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof i&&i;if(!l&&c)return i(s,!0);if(o)return o(s,!0)
;var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return r(n||e)},d,d.exports,e,t,n,a)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<a.length;s++)r(a[s]);return r}({1:[function(e,t,n){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){
return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,i,r,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){
if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],s(n))return!1;if(a(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),n.apply(this,r)}else if(o(n))for(r=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,l=0;l<i;l++)c[l].apply(this,r);return!0
},i.prototype.addListener=function(e,t){var n;if(!a(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,a(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,
o(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function n(){
this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!a(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},i.prototype.removeListener=function(e,t){var n,i,r,s;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],r=n.length,i=-1,n===t||a(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){
for(s=r;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){
for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],a(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){
var t=this._events[e];if(a(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],2:[function(e,t,n){var i;i=function(){function e(){this.id=null,this.sequence=null,this.system=null,this.title=null,this.description=null,this.advertiser=null,this.pricing=null,this.survey=null,this.errorURLTemplates=[],this.impressionURLTemplates=[],this.creatives=[],this.extensions=[]}return e}(),t.exports=i},{}],3:[function(e,t,n){var i,a,r;a=e("./parser"),
r=e("./util"),i=function(){function e(){}return e.cappingFreeLunch=0,e.cappingMinimumTimeInterval=0,e.options={withCredentials:!1,timeout:0},e.get=function(e,t,i){var r,o,s,l;if(o=+new Date,r=n.extend=function(e,t){var n,i;for(n in t)i=t[n],e[n]=i;return e},i||("function"==typeof t&&(i=t),s={}),s=r(this.options,t),this.totalCallsTimeout<o?(this.totalCalls=1,this.totalCallsTimeout=o+36e5):this.totalCalls++,
this.cappingFreeLunch>=this.totalCalls)return void i(null,new Error("VAST call canceled \u2013 FreeLunch capping not reached yet "+this.totalCalls+"/"+this.cappingFreeLunch));if((l=o-this.lastSuccessfullAd)<0)this.lastSuccessfullAd=0;else if(l<this.cappingMinimumTimeInterval)return void i(null,new Error("VAST call canceled \u2013 ("+this.cappingMinimumTimeInterval+")ms minimum interval reached"));return a.parse(e,s,function(e){return function(e,t){return i(e,t)}}())},function(){var t,n
;n=r.storage,t=Object.defineProperty,["lastSuccessfullAd","totalCalls","totalCallsTimeout"].forEach(function(i){t(e,i,{get:function(){return n.getItem(i)},set:function(e){return n.setItem(i,e)},configurable:!1,enumerable:!0})}),null==e.lastSuccessfullAd&&(e.lastSuccessfullAd=0),null==e.totalCalls&&(e.totalCalls=0),null==e.totalCallsTimeout&&(e.totalCallsTimeout=0)}(),e}(),t.exports=i},{"./parser":12,"./util":18}],4:[function(e,t,n){var i;i=function(){function e(){this.id=null,this.width=0,
this.height=0,this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.altText=null,this.companionClickThroughURLTemplate=null,this.companionClickTrackingURLTemplates=[],this.trackingEvents={}}return e}(),t.exports=i},{}],5:[function(e,t,n){var i,a,r,o,s=function(e,t){function n(){this.constructor=e}for(var i in t)l.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;i=function(){function e(e){
null==e&&(e={}),this.id=e.id||null,this.adId=e.adId||null,this.sequence=e.sequence||null,this.apiFramework=e.apiFramework||null,this.trackingEvents={}}return e}(),r=function(e){function t(){t.__super__.constructor.apply(this,arguments),this.type="linear",this.duration=0,this.skipDelay=null,this.mediaFiles=[],this.videoClickThroughURLTemplate=null,this.videoClickTrackingURLTemplates=[],this.videoCustomClickURLTemplates=[],this.adParameters=null,this.icons=[]}return s(t,e),t}(i),o=function(e){
function t(){t.__super__.constructor.apply(this,arguments),this.type="nonlinear",this.variations=[]}return s(t,e),t}(i),a=function(e){function t(){t.__super__.constructor.apply(this,arguments),this.type="companion",this.variations=[]}return s(t,e),t}(i),t.exports={VASTCreativeLinear:r,VASTCreativeNonLinear:o,VASTCreativeCompanion:a}},{}],6:[function(e,t,n){var i;i=function(){function e(){this.attributes={},this.children=[]}return e}(),t.exports=i},{}],7:[function(e,t,n){var i;i=function(){
function e(){this.name=null,this.value=null,this.attributes={}}return e}(),t.exports=i},{}],8:[function(e,t,n){var i;i=function(){function e(){this.program=null,this.height=0,this.width=0,this.xPosition=0,this.yPosition=0,this.apiFramework=null,this.offset=null,this.duration=0,this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.iconClickThroughURLTemplate=null,this.iconClickTrackingURLTemplates=[],this.iconViewTrackingURLTemplate=null}return e}(),
t.exports=i},{}],9:[function(e,t,n){t.exports={client:e("./client"),tracker:e("./tracker"),parser:e("./parser"),util:e("./util")}},{"./client":3,"./parser":12,"./tracker":14,"./util":18}],10:[function(e,t,n){var i;i=function(){function e(){this.id=null,this.fileURL=null,this.deliveryType="progressive",this.mimeType=null,this.codec=null,this.bitrate=0,this.minBitrate=0,this.maxBitrate=0,this.width=0,this.height=0,this.apiFramework=null,this.scalable=null,this.maintainAspectRatio=null}return e}(),
t.exports=i},{}],11:[function(e,t,n){var i;i=function(){function e(){this.id=null,this.width=0,this.height=0,this.expandedWidth=0,this.expandedHeight=0,this.scalable=!0,this.maintainAspectRatio=!0,this.minSuggestedDuration=0,this.apiFramework="static",this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.nonlinearClickThroughURLTemplate=null,this.nonlinearClickTrackingURLTemplates=[],this.adParameters=null}return e}(),t.exports=i},{}],12:[function(e,t,n){
var i,a,r,o,s,l,c,u,d,p,h,f,v,g,m,y=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};a=e("./urlhandler"),g=e("./response"),r=e("./ad"),o=e("./extension"),s=e("./extensionchild"),m=e("./util"),u=e("./creative").VASTCreativeLinear,c=e("./creative").VASTCreativeCompanion,d=e("./creative").VASTCreativeNonLinear,h=e("./mediafile"),p=e("./icon"),l=e("./companionad"),f=e("./nonlinear"),i=e("events").EventEmitter,v=function(){function e(){}var t
;return t=[],e.addURLTemplateFilter=function(e){"function"==typeof e&&t.push(e)},e.removeURLTemplateFilter=function(){return t.pop()},e.countURLTemplateFilters=function(){return t.length},e.clearUrlTemplateFilters=function(){return t=[]},e.parse=function(e,t,n){return n||("function"==typeof t&&(n=t),t={}),this._parse(e,null,t,function(e,t){return n(t,e)})},e.load=function(e,t,n){return n||("function"==typeof t&&(n=t),t={}),this.parseXmlDocument(null,[],t,e,n)},e.vent=new i,e.track=function(e,t){
return this.vent.emit("VAST-error",t),m.track(e,t)},e.on=function(e,t){return this.vent.on(e,t)},e.once=function(e,t){return this.vent.once(e,t)},e.off=function(e,t){return this.vent.removeListener(e,t)},e._parse=function(e,n,i,r){var o,s,l;for(r||("function"==typeof i&&(r=i),i={}),s=0,l=t.length;s<l;s++)o=t[s],e=o(e);return null==n&&(n=[]),n.push(e),a.get(e,i,function(t){return function(a,o){return null!=a?r(a):t.parseXmlDocument(e,n,i,o,r)}}(this))},e.parseXmlDocument=function(t,n,i,a,r){
var o,s,l,c,u,d,p,h,f,v,m;if(m=new g,null==(null!=a?a.documentElement:void 0)||"VAST"!==a.documentElement.nodeName)return r(new Error("Invalid VAST XMLDocument"));for(f=a.documentElement.childNodes,l=0,u=f.length;l<u;l++)h=f[l],"Error"===h.nodeName&&m.errorURLTemplates.push(e.parseNodeText(h));for(v=a.documentElement.childNodes,c=0,d=v.length;c<d;c++)h=v[c],"Ad"===h.nodeName&&(o=e.parseAdElement(h),null!=o?m.ads.push(o):e.track(m.errorURLTemplates,{ERRORCODE:101}));for(s=function(t,n){
var i,a,s,l;if(null==t&&(t=null),null==n&&(n=!1),m){for(s=!0,l=m.ads,i=0,a=l.length;i<a;i++){if(o=l[i],null!=o.nextWrapperURL)return;o.creatives.length>0&&(s=!1)}return s&&(n||e.track(m.errorURLTemplates,{ERRORCODE:303})),0===m.ads.length&&(m=null),r(t,m)}},p=m.ads.length;p--;)o=m.ads[p],null!=o.nextWrapperURL&&function(a){var r;n.length>(null!==i.wrapperLimit?i.wrapperLimit:9)||(r=a.nextWrapperURL,y.call(n,r)>=0)?(e.track(a.errorURLTemplates,{ERRORCODE:302}),m.ads.splice(m.ads.indexOf(a),1),
s(new Error("Wrapper limit reached, as defined by the video player"))):(null!=t&&(a.nextWrapperURL=e.resolveVastAdTagURI(a.nextWrapperURL,t)),e._parse(a.nextWrapperURL,n,i,function(t,n){var i,r,o,l,c,u;if(i=!1,null!=t)e.track(a.errorURLTemplates,{ERRORCODE:301}),m.ads.splice(m.ads.indexOf(a),1),i=!0;else if(null==n)e.track(a.errorURLTemplates,{ERRORCODE:303}),m.ads.splice(m.ads.indexOf(a),1),i=!0;else for(m.errorURLTemplates=m.errorURLTemplates.concat(n.errorURLTemplates),r=m.ads.indexOf(a),
m.ads.splice(r,1),c=n.ads,o=0,l=c.length;o<l;o++)u=c[o],e.mergeWrapperAdData(u,a),m.ads.splice(++r,0,u);return delete a.nextWrapperURL,s(t,i)}))}(o);return s()},e.resolveVastAdTagURI=function(e,t){return 0===e.indexOf("//")?""+location.protocol+e:-1===e.indexOf("://")?t.slice(0,t.lastIndexOf("/"))+"/"+e:e},e.mergeWrapperAdData=function(e,t){var n,i,a,r,o,s,l,c,u,d,p,h,f,v,g,m,y,b,I,S,M;for(e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),
e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),h=e.creatives,r=0,c=h.length;r<c;r++)if(i=h[r],null!=(null!=(f=t.trackingEvents)?f[i.type]:void 0)){v=t.trackingEvents[i.type];for(a in v)M=v[a],(n=i.trackingEvents)[a]||(n[a]=[]),i.trackingEvents[a]=i.trackingEvents[a].concat(M)}if(null!=(g=t.videoClickTrackingURLTemplates)?g.length:void 0)for(m=e.creatives,o=0,u=m.length;o<u;o++)i=m[o],
"linear"===i.type&&(i.videoClickTrackingURLTemplates=i.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates));if(null!=(y=t.videoCustomClickURLTemplates)?y.length:void 0)for(b=e.creatives,s=0,d=b.length;s<d;s++)i=b[s],"linear"===i.type&&(i.videoCustomClickURLTemplates=i.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates));if(null!=t.videoClickThroughURLTemplate){for(I=e.creatives,S=[],l=0,p=I.length;l<p;l++)i=I[l],
"linear"===i.type&&null==i.videoClickThroughURLTemplate?S.push(i.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate):S.push(void 0);return S}},e.childByName=function(e,t){var n,i,a,r;for(r=e.childNodes,i=0,a=r.length;i<a;i++)if(n=r[i],n.nodeName===t)return n},e.childsByName=function(e,t){var n,i,a,r,o;for(i=[],o=e.childNodes,a=0,r=o.length;a<r;a++)n=o[a],n.nodeName===t&&i.push(n);return i},e.parseAdElement=function(e){var t,n,i,a,r;for(a=e.childNodes,n=0,i=a.length;n<i;n++)if(t=a[n],
"Wrapper"===(r=t.nodeName)||"InLine"===r){if(this.copyNodeAttribute("id",e,t),this.copyNodeAttribute("sequence",e,t),"Wrapper"===t.nodeName)return this.parseWrapperElement(t);if("InLine"===t.nodeName)return this.parseInLineElement(t)}},e.parseWrapperElement=function(e){var t,n,i,a,r,o,s,l,c,u,d,p,h,f,v,g,m,y,b,I,S,M,D;for(t=this.parseInLineElement(e),D=this.childByName(e,"VASTAdTagURI"),
null!=D?t.nextWrapperURL=this.parseNodeText(D):null!=(D=this.childByName(e,"VASTAdTagURL"))&&(t.nextWrapperURL=this.parseNodeText(this.childByName(D,"URL"))),v=t.creatives,r=0,u=v.length;r<u;r++)if(M=v[r],"linear"===(g=M.type)||"nonlinear"===g){if(null!=M.trackingEvents){t.trackingEvents||(t.trackingEvents={}),(n=t.trackingEvents)[f=M.type]||(n[f]={}),m=M.trackingEvents;for(a in m)for(S=m[a],(i=t.trackingEvents[M.type])[a]||(i[a]=[]),s=0,d=S.length;s<d;s++)I=S[s],
t.trackingEvents[M.type][a].push(I)}if(null!=M.videoClickTrackingURLTemplates)for(t.videoClickTrackingURLTemplates||(t.videoClickTrackingURLTemplates=[]),y=M.videoClickTrackingURLTemplates,l=0,p=y.length;l<p;l++)o=y[l],t.videoClickTrackingURLTemplates.push(o);if(null!=M.videoClickThroughURLTemplate&&(t.videoClickThroughURLTemplate=M.videoClickThroughURLTemplate),null!=M.videoCustomClickURLTemplates)for(t.videoCustomClickURLTemplates||(t.videoCustomClickURLTemplates=[]),
b=M.videoCustomClickURLTemplates,c=0,h=b.length;c<h;c++)o=b[c],t.videoCustomClickURLTemplates.push(o)}if(null!=t.nextWrapperURL)return t},e.parseInLineElement=function(e){var t,n,i,a,o,s,l,c,u,d,p,h,f,v,g;for(t=new r,t.id=e.getAttribute("id")||null,t.sequence=e.getAttribute("sequence")||null,f=e.childNodes,s=0,u=f.length;s<u;s++)switch(h=f[s],h.nodeName){case"Error":t.errorURLTemplates.push(this.parseNodeText(h));break;case"Impression":t.impressionURLTemplates.push(this.parseNodeText(h));break
;case"Creatives":for(v=this.childsByName(h,"Creative"),l=0,d=v.length;l<d;l++)for(a=v[l],i={id:a.getAttribute("id")||null,adId:this.parseCreativeAdIdAttribute(a),sequence:a.getAttribute("sequence")||null,apiFramework:a.getAttribute("apiFramework")||null},g=a.childNodes,c=0,p=g.length;c<p;c++)switch(o=g[c],o.nodeName){case"Linear":n=this.parseCreativeLinearElement(o,i),n&&t.creatives.push(n);break;case"NonLinearAds":n=this.parseNonLinear(o,i),n&&t.creatives.push(n);break;case"CompanionAds":
n=this.parseCompanionAd(o,i),n&&t.creatives.push(n)}break;case"Extensions":this.parseExtension(t.extensions,this.childsByName(h,"Extension"));break;case"AdSystem":t.system={value:this.parseNodeText(h),version:h.getAttribute("version")||null};break;case"AdTitle":t.title=this.parseNodeText(h);break;case"Description":t.description=this.parseNodeText(h);break;case"Advertiser":t.advertiser=this.parseNodeText(h);break;case"Pricing":t.pricing={value:this.parseNodeText(h),
model:h.getAttribute("model")||null,currency:h.getAttribute("currency")||null};break;case"Survey":t.survey=this.parseNodeText(h)}return t},e.parseExtension=function(e,t){var n,i,a,r,l,c,u,d,p,h,f,v,g,m,y,b,I,S,M;for(S=[],u=0,f=t.length;u<f;u++){if(l=t[u],i=new o,l.attributes)for(y=l.attributes,d=0,v=y.length;d<v;d++)c=y[d],i.attributes[c.nodeName]=c.nodeValue;for(b=l.childNodes,p=0,g=b.length;p<g;p++)if(n=b[p],M=this.parseNodeText(n),"#comment"!==n.nodeName&&""!==M){if(a=new s,a.name=n.nodeName,
a.value=M,n.attributes)for(I=n.attributes,h=0,m=I.length;h<m;h++)r=I[h],a.attributes[r.nodeName]=r.nodeValue;i.children.push(a)}S.push(e.push(i))}return S},e.parseCreativeLinearElement=function(e,t){var n,i,a,r,o,s,l,c,d,f,v,g,m,y,b,I,S,M,D,C,j,P,O,T,E,w,A,x,N,L,k,R,z,U,B,F,_,V,H,Q,Y,G,W,K,Z,q,J,X,$,ee,te,ne,ie,ae,re,oe,se,le,ce;if(r=new u(t),r.duration=this.parseDuration(this.parseNodeText(this.childByName(e,"Duration"))),
-1===r.duration&&"Wrapper"!==e.parentNode.parentNode.parentNode.nodeName)return null;if(ae=e.getAttribute("skipoffset"),null==ae?r.skipDelay=null:"%"===ae.charAt(ae.length-1)?(V=parseInt(ae,10),r.skipDelay=r.duration*(V/100)):r.skipDelay=this.parseDuration(ae),null!=(ce=this.childByName(e,"VideoClicks"))){for(r.videoClickThroughURLTemplate=this.parseNodeText(this.childByName(ce,"ClickThrough")),Y=this.childsByName(ce,"ClickTracking"),c=0,M=Y.length;c<M;c++)a=Y[c],
r.videoClickTrackingURLTemplates.push(this.parseNodeText(a));for(G=this.childsByName(ce,"CustomClick"),b=0,D=G.length;b<D;b++)o=G[b],r.videoCustomClickURLTemplates.push(this.parseNodeText(o))}for(n=this.childByName(e,"AdParameters"),null!=n&&(r.adParameters=this.parseNodeText(n)),K=this.childsByName(e,"TrackingEvents"),I=0,j=K.length;I<j;I++)for(se=K[I],Z=this.childsByName(se,"Tracking"),S=0,P=Z.length;S<P;S++)if(oe=Z[S],s=oe.getAttribute("event"),le=this.parseNodeText(oe),null!=s&&null!=le){
if("progress"===s){if(!(F=oe.getAttribute("offset")))continue;s="%"===F.charAt(F.length-1)?"progress-"+F:"progress-"+Math.round(this.parseDuration(F))}null==(i=r.trackingEvents)[s]&&(i[s]=[]),r.trackingEvents[s].push(le)}for(q=this.childsByName(e,"MediaFiles"),N=0,O=q.length;N<O;N++)for(z=q[N],J=this.childsByName(z,"MediaFile"),U=0,T=J.length;U<T;U++)R=J[U],k=new h,k.id=R.getAttribute("id"),k.fileURL=this.parseNodeText(R),k.deliveryType=R.getAttribute("delivery"),k.codec=R.getAttribute("codec"),
k.mimeType=R.getAttribute("type"),k.apiFramework=R.getAttribute("apiFramework"),k.bitrate=parseInt(R.getAttribute("bitrate")||0),k.minBitrate=parseInt(R.getAttribute("minBitrate")||0),k.maxBitrate=parseInt(R.getAttribute("maxBitrate")||0),k.width=parseInt(R.getAttribute("width")||0),k.height=parseInt(R.getAttribute("height")||0),ie=R.getAttribute("scalable"),ie&&"string"==typeof ie&&(ie=ie.toLowerCase(),"true"===ie?k.scalable=!0:"false"===ie&&(k.scalable=!1)),
L=R.getAttribute("maintainAspectRatio"),L&&"string"==typeof L&&(L=L.toLowerCase(),"true"===L?k.maintainAspectRatio=!0:"false"===L&&(k.maintainAspectRatio=!1)),r.mediaFiles.push(k);if(null!=(m=this.childByName(e,"Icons")))for(X=this.childsByName(m,"Icon"),B=0,E=X.length;B<E;B++){for(g=X[B],d=new p,d.program=g.getAttribute("program"),d.height=parseInt(g.getAttribute("height")||0),d.width=parseInt(g.getAttribute("width")||0),d.xPosition=this.parseXPosition(g.getAttribute("xPosition")),
d.yPosition=this.parseYPosition(g.getAttribute("yPosition")),d.apiFramework=g.getAttribute("apiFramework"),d.offset=this.parseDuration(g.getAttribute("offset")),d.duration=this.parseDuration(g.getAttribute("duration")),$=this.childsByName(g,"HTMLResource"),_=0,w=$.length;_<w;_++)l=$[_],d.type=l.getAttribute("creativeType")||"text/html",d.htmlResource=this.parseNodeText(l);for(ee=this.childsByName(g,"IFrameResource"),H=0,A=ee.length;H<A;H++)y=ee[H],d.type=y.getAttribute("creativeType")||0,
d.iframeResource=this.parseNodeText(y);for(te=this.childsByName(g,"StaticResource"),Q=0,x=te.length;Q<x;Q++)re=te[Q],d.type=re.getAttribute("creativeType")||0,d.staticResource=this.parseNodeText(re);if(null!=(v=this.childByName(g,"IconClicks")))for(d.iconClickThroughURLTemplate=this.parseNodeText(this.childByName(v,"IconClickThrough")),W=this.childsByName(v,"IconClickTracking"),ne=0,C=W.length;ne<C;ne++)f=W[ne],d.iconClickTrackingURLTemplates.push(this.parseNodeText(f))
;d.iconViewTrackingURLTemplate=this.parseNodeText(this.childByName(g,"IconViewTracking")),r.icons.push(d)}return r},e.parseNonLinear=function(e,t){var n,i,a,r,o,s,l,c,u,p,h,v,g,m,y,b,I,S,M,D,C,j,P,O,T,E,w,A,x,N,L,k,R,z;for(r=new d(t),O=this.childsByName(e,"TrackingEvents"),l=0,v=O.length;l<v;l++)for(R=O[l],T=this.childsByName(R,"Tracking"),u=0,g=T.length;u<g;u++)k=T[u],o=k.getAttribute("event"),z=this.parseNodeText(k),null!=o&&null!=z&&(null==(i=r.trackingEvents)[o]&&(i[o]=[]),
r.trackingEvents[o].push(z));for(E=this.childsByName(e,"NonLinear"),p=0,m=E.length;p<m;p++){for(j=E[p],C=new f,C.id=j.getAttribute("id")||null,C.width=j.getAttribute("width"),C.height=j.getAttribute("height"),C.expandedWidth=j.getAttribute("expandedWidth"),C.expandedHeight=j.getAttribute("expandedHeight"),C.scalable=this.parseBoolean(j.getAttribute("scalable")),C.maintainAspectRatio=this.parseBoolean(j.getAttribute("maintainAspectRatio")),
C.minSuggestedDuration=this.parseDuration(j.getAttribute("minSuggestedDuration")),C.apiFramework=j.getAttribute("apiFramework"),w=this.childsByName(j,"HTMLResource"),h=0,y=w.length;h<y;h++)s=w[h],C.type=s.getAttribute("creativeType")||"text/html",C.htmlResource=this.parseNodeText(s);for(A=this.childsByName(j,"IFrameResource"),M=0,b=A.length;M<b;M++)c=A[M],C.type=c.getAttribute("creativeType")||0,C.iframeResource=this.parseNodeText(c);for(x=this.childsByName(j,"StaticResource"),D=0,
I=x.length;D<I;D++)L=x[D],C.type=L.getAttribute("creativeType")||0,C.staticResource=this.parseNodeText(L);for(n=this.childByName(j,"AdParameters"),null!=n&&(C.adParameters=this.parseNodeText(n)),C.nonlinearClickThroughURLTemplate=this.parseNodeText(this.childByName(j,"NonLinearClickThrough")),N=this.childsByName(j,"NonLinearClickTracking"),P=0,S=N.length;P<S;P++)a=N[P],C.nonlinearClickTrackingURLTemplates.push(this.parseNodeText(a));r.variations.push(C)}return r},
e.parseCompanionAd=function(e,t){var n,i,a,r,o,s,u,d,p,h,f,v,g,m,y,b,I,S,M,D,C,j,P,O,T,E,w,A,x,N,L,k,R,z,U,B,F;for(s=new c(t),E=this.childsByName(e,"Companion"),p=0,m=E.length;p<m;p++){for(o=E[p],r=new l,r.id=o.getAttribute("id")||null,r.width=o.getAttribute("width"),r.height=o.getAttribute("height"),r.companionClickTrackingURLTemplates=[],w=this.childsByName(o,"HTMLResource"),f=0,y=w.length;f<y;f++)d=w[f],r.type=d.getAttribute("creativeType")||"text/html",r.htmlResource=this.parseNodeText(d)
;for(A=this.childsByName(o,"IFrameResource"),v=0,b=A.length;v<b;v++)h=A[v],r.type=h.getAttribute("creativeType")||0,r.iframeResource=this.parseNodeText(h);for(x=this.childsByName(o,"StaticResource"),g=0,I=x.length;g<I;g++){for(z=x[g],r.type=z.getAttribute("creativeType")||0,N=this.childsByName(o,"AltText"),j=0,S=N.length;j<S;j++)i=N[j],r.altText=this.parseNodeText(i);r.staticResource=this.parseNodeText(z)}for(L=this.childsByName(o,"TrackingEvents"),P=0,M=L.length;P<M;P++)for(B=L[P],
k=this.childsByName(B,"Tracking"),O=0,D=k.length;O<D;O++)U=k[O],u=U.getAttribute("event"),F=this.parseNodeText(U),null!=u&&null!=F&&(null==(n=r.trackingEvents)[u]&&(n[u]=[]),r.trackingEvents[u].push(F));for(R=this.childsByName(o,"CompanionClickTracking"),T=0,C=R.length;T<C;T++)a=R[T],r.companionClickTrackingURLTemplates.push(this.parseNodeText(a));r.companionClickThroughURLTemplate=this.parseNodeText(this.childByName(o,"CompanionClickThrough")),
r.companionClickTrackingURLTemplate=this.parseNodeText(this.childByName(o,"CompanionClickTracking")),s.variations.push(r)}return s},e.parseDuration=function(e){var t,n,i,a,r;return null==e?-1:m.isNumeric(e)?parseInt(e):(t=e.split(":"),3!==t.length?-1:(r=t[2].split("."),a=parseInt(r[0]),2===r.length&&(a+=parseFloat("0."+r[1])),i=parseInt(60*t[1]),n=parseInt(60*t[0]*60),isNaN(n)||isNaN(i)||isNaN(a)||i>3600||a>60?-1:n+i+a))},e.parseXPosition=function(e){
return"left"===e||"right"===e?e:parseInt(e||0)},e.parseYPosition=function(e){return"top"===e||"bottom"===e?e:parseInt(e||0)},e.parseBoolean=function(e){return"true"===e||"TRUE"===e||"1"===e},e.parseNodeText=function(e){return e&&(e.textContent||e.text||"").trim()},e.copyNodeAttribute=function(e,t,n){var i;if(i=t.getAttribute(e))return n.setAttribute(e,i)},e.parseCreativeAdIdAttribute=function(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null},e}(),t.exports=v
},{"./ad":2,"./companionad":4,"./creative":5,"./extension":6,"./extensionchild":7,"./icon":8,"./mediafile":10,"./nonlinear":11,"./response":13,"./urlhandler":15,"./util":18,events:1}],13:[function(e,t,n){var i;i=function(){function e(){this.ads=[],this.errorURLTemplates=[]}return e}(),t.exports=i},{}],14:[function(e,t,n){var i,a,r,o,s,l,c,u=function(e,t){function n(){this.constructor=e}for(var i in t)d.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,
e.__super__=t.prototype,e},d={}.hasOwnProperty;a=e("./client"),c=e("./util"),o=e("./creative").VASTCreativeLinear,s=e("./nonlinear"),r=e("./companionad"),i=e("events").EventEmitter,l=function(e){function t(e,t,n){var i,l,c;this.ad=e,this.creative=t,this.variation=null!=n?n:null,this.muted=!1,this.impressed=!1,this.skipable=!1,this.skipDelayDefault=-1,this.trackingEvents={},
this.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],c=this.creative.trackingEvents;for(i in c)l=c[i],this.trackingEvents[i]=l.slice(0);this.creative instanceof o?(this.setDuration(this.creative.duration),this.skipDelay=this.creative.skipDelay,this.linear=!0,this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,
this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates):(this.skipDelay=-1,this.linear=!1,this.variation&&(this.variation instanceof s?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates):this.variation instanceof r&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,
this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates))),this.on("start",function(){a.lastSuccessfullAd=+new Date})}return u(t,e),t.off=function(e,t){return this.removeListener(e,t)},t.prototype.setDuration=function(e){return this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100}},t.prototype.setProgress=function(e){var t,n,i,a,r,o,s,l,c
;if(l=null===this.skipDelay?this.skipDelayDefault:this.skipDelay,-1===l||this.skipable||(l>e?this.emit("skip-countdown",l-e):(this.skipable=!0,this.emit("skip-countdown",0))),this.linear&&this.assetDuration>0){if(n=[],e>0){n.push("start"),r=Math.round(e/this.assetDuration*100),n.push("progress-"+r+"%"),n.push("progress-"+Math.round(e)),s=this.quartiles;for(o in s)(c=s[o])<=e&&e<=c+1&&n.push(o)}for(i=0,a=n.length;i<a;i++)t=n[i],this.track(t,!0);e<this.progress&&this.track("rewind")}
return this.progress=e},t.prototype.setMuted=function(e){return this.muted!==e&&this.track(e?"mute":"unmute"),this.muted=e},t.prototype.setPaused=function(e){return this.paused!==e&&this.track(e?"pause":"resume"),this.paused=e},t.prototype.setFullscreen=function(e){return this.fullscreen!==e&&this.track(e?"fullscreen":"exitFullscreen"),this.fullscreen=e},t.prototype.setExpand=function(e){return this.expanded!==e&&this.track(e?"expand":"collapse"),this.expanded=e},
t.prototype.setSkipDelay=function(e){if("number"==typeof e)return this.skipDelay=e},t.prototype.load=function(){if(!this.impressed)return this.impressed=!0,this.trackURLs(this.ad.impressionURLTemplates),this.track("creativeView")},t.prototype.errorWithCode=function(e){return this.trackURLs(this.ad.errorURLTemplates,{ERRORCODE:e})},t.prototype.complete=function(){return this.track("complete")},t.prototype.close=function(){return this.track(this.linear?"closeLinear":"close")},
t.prototype.stop=function(){},t.prototype.skip=function(){return this.track("skip"),this.trackingEvents=[]},t.prototype.click=function(){var e,t,n;if((null!=(t=this.clickTrackingURLTemplates)?t.length:void 0)&&this.trackURLs(this.clickTrackingURLTemplates),null!=this.clickThroughURLTemplate)return this.linear&&(n={CONTENTPLAYHEAD:this.progressFormated()}),e=c.resolveURLTemplates([this.clickThroughURLTemplate],n)[0],this.emit("clickthrough",e)},t.prototype.track=function(e,t){var n,i
;null==t&&(t=!1),"closeLinear"===e&&null==this.trackingEvents[e]&&null!=this.trackingEvents.close&&(e="close"),i=this.trackingEvents[e],n=this.emitAlwaysEvents.indexOf(e),null!=i?(this.emit(e,""),this.trackURLs(i)):-1!==n&&this.emit(e,""),!0===t&&(delete this.trackingEvents[e],n>-1&&this.emitAlwaysEvents.splice(n,1))},t.prototype.trackURLs=function(e,t){var n;return null==t&&(t={}),
this.linear&&(null!=(null!=(n=this.creative.mediaFiles[0])?n.fileURL:void 0)&&(t.ASSETURI=this.creative.mediaFiles[0].fileURL),t.CONTENTPLAYHEAD=this.progressFormated()),c.track(e,t)},t.prototype.progressFormated=function(){var e,t,n,i,a;return a=parseInt(this.progress),e=a/3600,e.length<2&&(e="0"+e),t=a/60%60,t.length<2&&(t="0"+t),i=a%60,i.length<2&&(i="0"+t),n=parseInt(100*(this.progress-a)),e+":"+t+":"+i+"."+n},t}(i),t.exports=l},{"./client":3,"./companionad":4,"./creative":5,
"./nonlinear":11,"./util":18,events:1}],15:[function(e,t,n){var i,a,r;r=e("./urlhandlers/xmlhttprequest"),a=e("./urlhandlers/flash"),i=function(){function t(){}return t.get=function(t,n,i){var o,s;return i||("function"==typeof n&&(i=n),n={}),null!=n.response?(s=n.response,delete n.response,
i(null,s)):(null!=(o=n.urlhandler)?o.supported():void 0)?n.urlhandler.get(t,n,i):"undefined"==typeof window||null===window?e("./urlhandlers/node").get(t,n,i):r.supported()?r.get(t,n,i):a.supported()?a.get(t,n,i):i(new Error("Current context is not supported by any of the default URLHandlers. Please provide a custom URLHandler"))},t}(),t.exports=i},{"./urlhandlers/flash":16,"./urlhandlers/xmlhttprequest":17}],16:[function(e,t,n){var i;i=function(){function e(){}return e.xdr=function(){var e
;return window.XDomainRequest&&(e=new XDomainRequest),e},e.supported=function(){return!!this.xdr()},e.get=function(e,t,n){var i,a;return(a="function"==typeof window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLDOM"):void 0)?(a.async=!1,i=this.xdr(),i.open("GET",e),i.timeout=t.timeout||0,i.withCredentials=t.withCredentials||!1,i.send(),i.onprogress=function(){},i.onload=function(){return a.loadXML(i.responseText),n(null,a)
}):n(new Error("FlashURLHandler: Microsoft.XMLDOM format not supported"))},e}(),t.exports=i},{}],17:[function(e,t,n){var i;i=function(){function e(){}return e.xhr=function(){var e;if("withCredentials"in(e=new window.XMLHttpRequest))return e},e.supported=function(){return!!this.xhr()},e.get=function(e,t,n){var i;if("https:"===window.location.protocol&&0===e.indexOf("http://"))return n(new Error("XHRURLHandler: Cannot go from HTTPS to HTTP."));try{return i=this.xhr(),i.open("GET",e),
i.timeout=t.timeout||0,i.withCredentials=t.withCredentials||!1,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.onreadystatechange=function(){if(4===i.readyState)return 200===i.status?n(null,i.responseXML):n(new Error("XHRURLHandler: "+i.statusText))},i.send(),i}catch(e){return n(new Error("XHRURLHandler: Unexpected error"))}},e}(),t.exports=i},{}],18:[function(e,t,n){var i;i=function(){function e(){}return e.track=function(e,t){var n,i,a,r,o,s;for(i=this.resolveURLTemplates(e,t),s=[],r=0,
o=i.length;r<o;r++)n=i[r],"undefined"!=typeof window&&null!==window&&(a=new Image,s.push(a.src=n));return s},e.resolveURLTemplates=function(e,t){var n,i,a,r,o,s,l,c,u;for(null==t&&(t={}),i=[],null!=t.ASSETURI&&(t.ASSETURI=this.encodeURIComponentRFC3986(t.ASSETURI)),null!=t.CONTENTPLAYHEAD&&(t.CONTENTPLAYHEAD=this.encodeURIComponentRFC3986(t.CONTENTPLAYHEAD)),null==t.ERRORCODE||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=this.leftpad(Math.round(1e8*Math.random()).toString()),
t.TIMESTAMP=this.encodeURIComponentRFC3986((new Date).toISOString()),t.RANDOM=t.random=t.CACHEBUSTING,a=0,o=e.length;a<o;a++)if(n=e[a],c=n){for(r in t)u=t[r],s="["+r+"]",l="%%"+r+"%%",c=c.replace(s,u),c=c.replace(l,u);i.push(c)}return i},e.encodeURIComponentRFC3986=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})},e.leftpad=function(e){return e.length<8?function(){var t,n,i;for(i=[],t=0,
n=8-e.length;0<=n?t<n:t>n;0<=n?t++:t--)i.push("0");return i}().join("")+e:e},e.storage=function(){var e,t,n;try{n="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(e){e,n=null}return t=function(e){var t;try{if(t="__VASTUtil__",e.setItem(t,t),e.getItem(t)!==t)return!0}catch(e){return e,!0}return!1},(null==n||t(n))&&(e={},n={length:0,getItem:function(t){return e[t]},setItem:function(t,n){e[t]=n,this.length=Object.keys(e).length},removeItem:function(t){
delete e[t],this.length=Object.keys(e).length},clear:function(){e={},this.length=0}}),n}(),e.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},e}(),t.exports=i},{}]},{},[9])(9)})},function(e,t,n){"use strict";function i(e){var t=e.mimeType,n=e.codecs,i=o()(e,["mimeType","codecs"]);if(!t)return"";var a=[t];if(n&&a.push('codecs="'+n+'"'),i)for(var r in i)a.push(r+'="'+i[r]+'"');return a.join("; ")}function a(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(arguments[1],i(e)),n=Object(s.a)("video",!0),a=n.canPlayType(t);return Object(s.b)(n),e.codecs?"probably"===a:"probably"===a||"maybe"===a}t.a=a;var r=n(12),o=n.n(r),s=n(1203)},function(e,t,n){"use strict";var i=n(1),a=n.n(i);a.a.shape({url:a.a.string.isRequired,UrlTemplateFilter:a.a.array})},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=(n.n(u),function(e){function t(){
var n,i,r;a()(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=i=o()(this,e.call.apply(e,[this].concat(l))),i.onResize=function(e){i.timeoutID=clearTimeout(i.timeoutID),i.timeoutID=setTimeout(i.onResizeTimeout,i.props.resizeDelay)},i.onResizeTimeout=function(){i.props.onScreenSizeChange({width:window.innerWidth,height:window.innerHeight})},r=n,o()(i,r)}return l()(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onResize),
this.onResizeTimeout()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.timeoutID=clearTimeout(this.timeoutID)},t.prototype.render=function(){return null},t}(u.Component));d.defaultProps={resizeDelay:100},t.a=d},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(Object(p.a)(),Object(d.a)(),Object(u.a)(),function(e,t,n){var i=e.serverEntityID,a=e.providerEntityID,r={serverEntityID:i,providerEntityID:a}
;if(t&&t.captureBuffer){var o=t.captureBuffer.startedAt;r.captureBufferStartedAt=o}return n&&(r.mediaItemBeginsAt=n.beginsAt),r})}function a(e,t){var n=t.playerType;return{onConfirm:function(t){e(Object(c.d)(o()({},t,{playerType:n})))},onModalClose:function(){e(Object(c.a)({playerType:n}))}}}var r=n(6),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(206)),u=n(3586),d=n(205),p=n(89),h=n(3587);t.a=Object(s.connect)(i,a)(h.a)},function(e,t,n){"use strict";function i(e){var t=e.get("captureBuffer")
;return t&&t.startedAt}function a(e){return e.get("currentPosition")}function r(e){var t=e.get("liveTVSession");return e.get("liveTVSession")?a(t):0}function o(e){var t=e.get("liveTVSession"),n=t.get("captureBuffer");if(n){var i=n.startedAt;return{seekStartSeconds:i+n.seekStartSeconds,seekEndSeconds:i+n.seekEndSeconds}}var a=t.get("startedAt");return{seekStartSeconds:a+e.get("seekStartSeconds"),seekEndSeconds:a+e.get("seekEndSeconds")}}function s(e){var t=a(e)
;if(t)for(var n=e.get("timeline"),i=0;i<n.length;i++)for(var r=n.at(i),o=[].concat(r.get("Media")).sort(function(e,t){return e.endsAt-t.endsAt}),s=0;s<o.length;s++){var l=o[s],c=l.beginsAt,u=l.endsAt;if(c<=t&&u>t)return l}}function l(e){var t=a(e);if(t)for(var n=e.get("timeline"),i=n.length-1;i>=0;i--)for(var r=n.at(i),o=[].concat(r.get("Media")).sort(function(e,t){return e.endsAt-t.endsAt}),s=o.length-1;s>=0;s--){var l=o[s];if(l.endsAt<=t)return l}}function c(e,t){
var n=r(e),i=o(e).seekEndSeconds;return n?Math.min(i,n+t):void 0}function u(e,t){var n=r(e),i=o(e).seekStartSeconds;return n?Math.max(i,n-t):void 0}function d(e){return u(e,M.c)}function p(e){return c(e,M.d)}function h(e){return u(e,M.e)}function f(e){return c(e,M.f)}function v(e){var t=e.get("liveTVSession");if(e.get("liveTVSession")){var n=o(e).seekEndSeconds,i=s(t);if(i)return Math.min(n,i.endsAt)}}function g(e){var t=e.get("liveTVSession");if(e.get("liveTVSession")){
var n=o(e).seekStartSeconds,i=a(t),r=s(t);if(r){if(i-r.beginsAt>M.a)return Math.max(n,r.beginsAt);var c=l(t);if(c)return Math.max(n,c.beginsAt)}}}function m(e,t){var n=e.get("currentDecision");if(!n||n.isDirectPlay)return!1;var i=e.get("liveTVSession"),a=i.get("startedAt");if(!i.get("captureBuffer"))return!1;if(b.a.get("shouldCreateNewSessionWhenSeekingLiveTV"))return!0;var r=a+e.get("seekStartSeconds"),o=a+e.get("seekEndSeconds");return!(t>=r&&t<=o)}function y(e,t,n,a){if(null!=n){
var r=Object(I.a)(e),o=Object(D.c)(e,t),s=o.get("liveTVSession"),l=s.get("startedAt");Object(C.a)(function(){if(s.set({currentPosition:n,lastSeekPosition:n}),m(o,n)){var e=i(s),c=e||l,u=n-c;a(Object(S.e)({playerType:t,decisionOptions:{offset:1e3*u}}))}else{var d=n-l;r.seek(o,d)}})}}t.c=d,t.d=p,t.e=h,t.f=f,t.a=v,t.b=g,t.g=y;var b=n(62),I=n(436),S=n(566),M=n(371),D=n(198),C=n(36)},function(e,t,n){"use strict";function i(e,t,n,i){var a="/livetv/dvrs/"+t+"/channels/"+n+"/tune"
;return r.a.ajax(e.server.getXHROptions(a,{method:"POST",headers:{"X-Plex-Session-Identifier":i.playbackSessionID},timeout:o.a})).then(function(a,o,u){e.set(e.parse(a));var d=e.get("grabOperation");if(!d){var p=Object(s.a)(u,Object(l.default)("Could not tune channel"));return r.a.Deferred().reject({errorMessage:p}).promise()}
var h=d.get("metadataItem"),f=h.get("Media")[0],v=d.get("conflicts"),g=u.getResponseHeader("X-Plex-Activity"),m=d.get("beginsAt"),y=d.get("metadataItem"),b=y.get("transcodeSession"),I={dvrID:t,channelIdentifier:n,activityUUID:g,currentPosition:m,startedAt:m},S=!1;if(b&&i.currentMediaItem){var M=b.get("timeStamp"),D=b.get("minOffsetAvailable"),C=b.get("maxOffsetAvailable");if(M&&null!=D&&null!=C){I.captureBuffer={startedAt:M,seekStartSeconds:D,seekEndSeconds:C}
;var j=M+D,P=i.currentMediaItem.beginsAt,O=Math.max(j,P);Date.now()/1e3-O>c&&(S=!0)}}if(e.set(I),v&&v.length)return r.a.Deferred().reject({hasConflicts:!0,liveTVSession:e}).promise();if(!g)return r.a.Deferred().reject({errorMessage:Object(l.default)("Could not tune channel (No activity)")}).promise();var T=f&&f.Part;return T&&T.length?(h.set("isPreFetched",!0),S?r.a.Deferred().reject({confirmPlayback:S,liveTVSession:e}).promise():r.a.Deferred().resolve(e).promise()):r.a.Deferred().reject({
errorMessage:Object(l.default)("Could not tune channel (No parts)")}).promise()},function(e,t){return"abort"===t?r.a.Deferred().reject({errorMessage:Object(l.default)("Could not tune channel (Timed out)")}).promise():r.a.Deferred().reject({errorMessage:Object(l.default)("Could not tune channel")}).promise()})}t.a=i;var a=n(13),r=n.n(a),o=n(87),s=n(250),l=n(3),c=60},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){
for(var t=Math.floor(Date.now()/1e3),n=0;n<e.length;n++)for(var i=e[n],a=0;a<i.Media.length;a++){var r=i.Media[a],o=r.beginsAt,s=r.endsAt;if(o<=t&&s>t)return r}})}t.a=i;var a=n(4),r=(n.n(a),n(988))},function(e,t,n){"use strict";function i(e,t){var n=Math.max(e,t),i=Date.now()-1e3*n;return Object(v.a)(i)}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(30)),v=n(840),g=n(3),m=n(972),y=n(973),b=6e4,I=function(e){function t(n,a){s()(this,t)
;var r=c()(this,e.call(this,n,a));return r.updateTimeAgo=function(){var e=r.props,t=e.captureBufferStartedAt,n=e.mediaItemBeginsAt,a=b-1e3*(new Date).getSeconds(),o=i(t,n);o!==r.state.timeAgo&&r.setState({timeAgo:o}),r._updateTimeAgoTimeout=setTimeout(r.updateTimeAgo,a)},r.onConfirm=function(e){var t=r.props,n=t.serverEntityID,i=t.providerEntityID;(0,t.onConfirm)({serverEntityID:n,providerEntityID:i,offset:e})},r._updateTimeAgoTimeout=null,r.state={
timeAgo:i(n.captureBufferStartedAt,n.mediaItemBeginsAt)},r}return d()(t,e),t.prototype.componentDidMount=function(){this.props.mediaItemBeginsAt||this.onConfirm(),this.updateTimeAgo()},t.prototype.componentWillUnmount=function(){this._updateTimeAgoTimeout&&clearTimeout(this._updateTimeAgoTimeout)},t.prototype.render=function(){var e=this.props,t=e.isOpen,n=e.captureBufferStartedAt,i=e.mediaItemBeginsAt,a=e.onModalClose,o=this.state.timeAgo;return n?r()(m.a,{isOpen:t,metricsPage:f.G,
title:Object(g.default)("Join Session in Progress"),onItemSelect:this.onConfirm,onCancel:a},void 0,r()(y.a,{value:1e3*Math.max(i-n,0)},void 0,Object(g.default)("Watch from start (started {timeAgo} ago)",{timeAgo:o})),r()(y.a,{value:null},void 0,Object(g.default)("Watch Live"))):null},t}(h.Component);t.a=I},function(e,t,n){"use strict";function i(e,t){var n=t.playerType;return{onConfirm:function(){e(Object(s.c)({playerType:n}))},onCancel:function(){e(Object(o.f)({playerType:n}))}}}
var a=n(11),r=n(4),o=(n.n(r),n(77)),s=n(325),l=n(3589),c=Object(r.createSelector)(function(e){return e.remotePlayer},function(e){return{playerName:e&&e.friendlyName}});t.a=Object(a.connect)(c,i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.playerName,i=e.onConfirm,a=e.onCancel;return r()(u.a,{isOpen:t,metricsPage:l.m,title:Object(c.default)("Continue Playback"),message:Object(c.default)("Would you like to continue playback on {playerName}?",{playerName:n}),
confirmLabel:Object(c.default)("Yes"),cancelLabel:Object(c.default)("No"),onConfirm:i,onCancel:a})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(3),u=n(177);t.a=i},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(function(e,t){return t.confirmOffsetPayload},u.a,function(e,t){var n=void 0;if(e){n=t[e.metadataItemEntityID]}return n?{viewOffset:n.viewOffset,duration:n.duration}:{}})}function a(e,t){var n=t.playerType,i=t.confirmOffsetPayload;return{
onConfirm:function(t){e(c.m(o()({},i,{confirmPlayback:!0,confirmOffset:!0,startOffsetMilliseconds:t})))},onCancel:function(){e(c.d({playerType:n}))}}}var r=n(6),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),n(77)),u=n(108),d=n(3591);t.a=Object(s.connect)(i,a)(d.a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.viewOffset,i=e.duration,a=e.onConfirm,o=e.onCancel,s=(i-n)/1e3,l=s>0;return r()(h.a,{isOpen:t,metricsPage:c.V,title:Object(p.default)("Resume Playback"),onItemSelect:a,onCancel:o
},void 0,r()(f.a,{value:n},void 0,Object(p.default)("Resume from {time}",{time:Object(d.a)(n)}),l&&v,l&&Object(u.a)(s)),r()(f.a,{value:0},void 0,Object(p.default)("Start from the Beginning")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(30),u=n(370),d=n(310),p=n(3),h=n(972),f=n(973),v=r()(l.b,{});t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.playerType,i=t.confirmPlaybackPayload;return{onConfirm:function(){e(s.m(r()({},i,{confirmPlayback:!0})))},
onCancel:function(){e(s.e({playerType:n}))}}}var a=n(6),r=n.n(a),o=n(11),s=n(77),l=n(3593);t.a=Object(o.connect)(null,i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.onConfirm,i=e.onCancel;return r()(u.a,{isOpen:t,metricsPage:l.q,title:Object(c.default)("Play Now"),message:Object(c.default)("This will clear changes made to the queue and play the selection instead."),confirmLabel:Object(c.default)("Play"),onConfirm:n,onCancel:i})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(30)),c=n(3),u=n(177);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.playerType;return{onConfirm:function(){e(Object(o.d)({playerType:n}))},onCancel:function(){e(Object(r.f)({playerType:n}))}}}var a=n(11),r=n(77),o=n(325),s=n(3595);t.a=Object(a.connect)(null,i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.onConfirm,i=e.onCancel;return r()(u.a,{isOpen:t,metricsPage:l.r,title:Object(c.default)("Continue Playback"),
message:Object(c.default)("Would you like to continue playback here?"),confirmLabel:Object(c.default)("Yes"),cancelLabel:Object(c.default)("No"),onConfirm:n,onCancel:i})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(3),u=n(177);t.a=i},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(u.a)(),Object(c.a)(),Object(l.a)(),function(e,t,n){var i={serverEntityID:e.serverEntityID,hasSubscribeFeature:!!t.features.find(function(e){return"subscribe"===e.type
}),error:e.cancelConflictError,isConflictCancelling:e.isConflictCancelling};return n&&(i.conflicts=n.grabOperation.conflicts),i})}function a(e,t){var n=t.isPlayerOpen,i=t.playerType;return{onModalClose:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.showError,r=void 0!==a&&a;e(n?Object(s.e)({playerType:i,showError:r}):Object(s.c)({playerType:i}))}}}var r=n(11),o=n(4),s=(n.n(o),n(206)),l=n(205),c=n(262),u=n(89),d=n(3597);t.a=Object(r.connect)(i,a)(d.a)
},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.isPlayerOpen,i=e.playerType,a=e.serverEntityID,o=e.hasSubscribeFeature,s=e.conflicts,p=e.isConflictCancelling,h=e.onModalClose;return r()(c.a,{size:u.e.SMALL,isOpen:t,metricsPage:l.H,onModalClose:h},void 0,r()(d.a,{isPlayerOpen:n,playerType:i,serverEntityID:a,hasSubscribeFeature:o,conflicts:s,isConflictCancelling:p,onModalClose:h}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(114),u=n(24),d=n(3598);t.a=i
},function(e,t,n){"use strict";function i(e,t){
return e?t?Object(h.default)("A recording is scheduled to start in a few minutes and all tuners are currently in use. Please select from one of the actions below. Selecting OK or taking no action will end this live viewing session once the recording starts."):Object(h.default)("All tuners are in use. Please ask the server owner to free up a tuner to continue watching Live TV."):t?Object(h.default)("Please select from one of the actions below."):Object(h.default)("All tuners are in use. Please ask the server owner to free up a tuner to watch Live TV.")
}function a(e){var t=e.serverEntityID,n=e.hasSubscribeFeature,a=e.isPlayerOpen,r=e.playerType,s=e.isConflictCancelling,l=e.conflicts,I=e.error,M=e.onModalClose,D=i(a,n);return o()(g.a,{onModalClose:M},void 0,o()(p.a,{className:S.a.modalHeader},void 0,Object(h.default)("All Tuners are Currently in Use")),!!I&&o()(m.a,{kind:y.b.DANGER,message:Object(h.default)("There was an error trying to cancel the selected item, please try again")}),o()(c.a,{innerClassName:S.a.innerModalBody},void 0,o()("div",{
className:S.a.message},void 0,D),n&&o()("div",{className:S.a.conflicts},void 0,l.map(function(e){return o()(b.a,{serverEntityID:t,grabOperationKey:e.key,metadataItemEntityID:e.metadataItem,playerType:r,isRolling:e.rolling,isPlayerOpen:a},e.key)}))),o()(u.a,{},void 0,o()("div",{className:S.a.footerMessage},void 0,a&&o()(f.a,{conflicts:l,onModalClose:M})),o()(d.a,{},void 0,o()(v.a,{isSpinning:s,kind:y.b.PRIMARY,onPress:M},void 0,a||!n?Object(h.default)("OK"):Object(h.default)("Cancel")))))}
var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(61)),u=n(88),d=n(115),p=n(84),h=n(3),f=n(3599),v=n(139),g=n(98),m=n(935),y=n(24),b=n(3601),I=n(3604),S=n.n(I);t.a=a},function(e,t,n){"use strict";function i(e){var t=Math.floor(Date.now()/1e3);return e.reduce(function(e,n){var i=n.mediaItem,a=i.beginsAt,r=i.startOffsetSeconds,o=void 0===r?0:r,s=a-o;return s>t&&(!e||s<e)?s:e},0)}function a(e){return Math.max(0,e-Math.floor(Date.now()/1e3))}
var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(3600)),g=n(3),m=function(e){function t(n,r){l()(this,t);var o=u()(this,e.call(this,n,r));o._tick=function(){o.setState({endSeconds:a(o.state.endsAt)}),o._setTickTimeout()},o._tickTimeout=null;var s=i(n.conflicts);return o.state={endsAt:s,endSeconds:a(s)},o}return p()(t,e),t.prototype.componentDidMount=function(){this._setTickTimeout()},t.prototype.componentDidUpdate=function(e,t){
var n=this.props,i=n.conflicts,a=n.onModalClose;e.conflicts!==i&&this._updateEndSeconds(),t.endSeconds>0&&0===this.state.endSeconds&&a({showError:!0})},t.prototype.componentWillUnmount=function(){this._tickTimeout&&clearTimeout(this._tickTimeout)},t.prototype._setTickTimeout=function(){this.state.endSeconds&&(this._tickTimeout=setTimeout(this._tick,1e3))},t.prototype._updateEndSeconds=function(){var e=i(this.props.conflicts);this.setState({endsAt:e,endSeconds:a(e)})},
t.prototype.render=function(){var e=this.state.endSeconds,t=Object(v.a)(1e3*e);return o()("span",{},void 0,Object(g.default)("This live TV session will end in: {formattedMinutesSeconds}",{formattedMinutesSeconds:t}))},t}(f.Component);t.a=m},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=Object(a.c)(e),n=24*t.days*60,i=60*t.hours,o=t.minutes+i+n,s=t.seconds
;return o&&s?Object(r.default)("{1} min {2} sec",o,s):o?Object(r.default)("{1} min",o):s>0?Object(r.default)("{1} sec",s):""}var a=n(433),r=n(3);t.a=i},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(l.a)(),function(e){return{type:e.type,title:e.title,grandparentTitle:e.grandparentTitle,thumb:e.thumb,grandparentThumb:e.grandparentThumb}})}function a(e,t){var n=t.playerType,i=t.grabOperationKey;return{onCancelConflictPress:function(){e(Object(s.b)({playerType:n,
grabOperationKey:i}))}}}var r=n(11),o=n(4),s=(n.n(o),n(206)),l=n(21),c=n(3602);t.a=Object(r.connect)(i,a)(c.a)},function(e,t,n){"use strict";function i(e,t,n,i){var a=e===d.e?n:t;return i?Object(u.default)("Stop watching {openSpan}{title}{closeSpan} and continue",{title:a}):Object(u.default)("Stop recording {openSpan}{title}{closeSpan} and continue",{title:a})}function a(e){
var t=e.serverEntityID,n=e.type,a=e.title,r=e.grandparentTitle,s=e.thumb,l=e.grandparentThumb,u=e.isRolling,d=e.onCancelConflictPress;return o()(c.a,{className:v.a.conflict,onPress:d},void 0,o()(p.a,{className:v.a.thumbnail,serverEntityID:t,url:s||l,width:53,height:80}),o()("div",{className:v.a.title},void 0,o()(h.a,{message:i(n,a,r,u),tags:[{open:"openSpan",close:"closeSpan",component:"span",className:v.a.titleHighlight}]})))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),
n(20)),u=n(3),d=n(27),p=n(185),h=n(187),f=n(3603),v=n.n(f);t.a=a},function(e,t){e.exports={conflict:"PlayerConflictItemRow-conflict-P0q6Q",thumbnail:"PlayerConflictItemRow-thumbnail-3DnQM",title:"PlayerConflictItemRow-title-1hIqi",titleHighlight:"PlayerConflictItemRow-titleHighlight-EbgLG"}},function(e,t){e.exports={modalHeader:"PlayerConflictModalContent-modalHeader-esgnI ModalHeader-modalHeader-1Kf9R",
innerModalBody:"PlayerConflictModalContent-innerModalBody-2N2K5 ModalBody-innerModalBody-36gmb",message:"PlayerConflictModalContent-message-1A31c",conflicts:"PlayerConflictModalContent-conflicts-2yWT2",footerMessage:"PlayerConflictModalContent-footerMessage-1ptDW"}},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(h.a)(),Object(p.a)(),Object(d.a)(),function(e,t){return t.mediaType},function(e,t){return t.isRemotePlayer},function(e,t,n,i,a){
var r=e.playQueue,o=e.repeatAll,s=e.errorMessage,l=e.errorCode,c=e.errorCategory,u=n&&n.entityID,d=r&&r.currentIndex,p={playQueueItemEntityID:u,showSkipButton:!!r&&(d<r.playQueueItems.length-1||o),showRetryButton:!!r&&i!==f.c&&!a,errorMessage:s,errorCode:l,errorCategory:c};return t&&(p.title=t.title),p})}function a(e,t){var n={playerType:t.playerType};return{onModalClose:function(){e(Object(c.f)(n))},onSkipPress:function(t){e(Object(s.h)(n))},onRetryPress:function(t){e(Object(u.i)(n)),
e(Object(l.e)(n))}}}var r=n(11),o=n(4),s=(n.n(o),n(172)),l=n(566),c=n(77),u=n(143),d=n(1511),p=n(178),h=n(89),f=n(63),v=n(3606);t.a=Object(r.connect)(i,a)(v.a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.showSkipButton,i=e.showRetryButton,a=e.errorMessage,o=e.errorCode,s=e.errorCategory,y=e.title,I=e.onSkipPress,S=e.onRetryPress,M=e.onModalClose,D=a||(y?Object(f.default)('An error occurred trying to play "{title}".',{title:y
}):Object(f.default)("An error occurred trying to play this item."));return r()(v.a,{isOpen:t,metricsPage:h.N,size:m.e.SMALL,onModalClose:M},void 0,r()(g.a,{onModalClose:M},void 0,r()(p.a,{className:b.a.modalHeader},void 0,Object(f.default)("Playback Error")),r()(c.a,{},void 0,D,null!=o&&r()("p",{className:b.a.errorCode},void 0,Object(f.default)("Error code: {errorCode}",{errorCode:o}),s&&" ("+s+")")),(n||i)&&r()(u.a,{},void 0,r()(d.a,{},void 0,n&&r()(l.a,{onPress:I
},void 0,Object(f.default)("Skip")),i&&r()(l.a,{kind:m.b.PRIMARY,onPress:S},void 0,Object(f.default)("Retry"))))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(115),p=n(84),h=n(30),f=n(3),v=n(114),g=n(98),m=n(24),y=n(3607),b=n.n(y);t.a=i},function(e,t){e.exports={modalHeader:"PlayerErrorModal-modalHeader-167lt ModalHeader-modalHeader-1Kf9R",errorCode:"PlayerErrorModal-errorCode-2H7W7"}},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(function(e){return e.ui.audioVideoPlayer.openState},function(e){return e.ui.photoPlayer.openState},function(e,t){return t.playerType},function(e,t,n){return Object(C.a)({audioVideoOpenState:e,photoOpenState:t,playerType:n})})}function a(){return Object(g.createSelector)(i(),Object(S.a)(),M.a,function(e,t,n){return{allowShortcuts:e,isCurrentMediaTypeSeekable:t===P.a||t===P.d,volume:n}})}
var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(11)),g=n(4),m=(n.n(g),n(19)),y=n(172),b=n(77),I=n(143),S=n(3609),M=n(708),D=n(30),C=n(3610),j=n(3),P=n(63),O=n(177),T={dispatchPlayPreviousItem:y.i,dispatchStepBack:I.r,dispatchSkipBack:I.p,dispatchTogglePlayPause:I.u,dispatchPlay:I.k,dispatchPause:I.j,dispatchSkipForward:I.q,dispatchStepForward:I.s,dispatchPlayNextItem:y.h,dispatchChangeVolume:I.h,dispatchEndPlayback:b.f},E=function(e){
function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onPreviousShortcut=function(){a.props.dispatchPlayPreviousItem({playerType:a.props.playerType})},a.onStepBackShortcut=function(){(a.props.isCurrentMediaTypeSeekable?a.props.dispatchStepBack:a.props.dispatchPlayPreviousItem)({playerType:a.props.playerType})},a.onSkipBackShortcut=function(){(a.props.isCurrentMediaTypeSeekable?a.props.dispatchSkipBack:a.props.dispatchPlayPreviousItem)({playerType:a.props.playerType})},
a.onPlayPauseShortcut=function(){a.props.dispatchTogglePlayPause({playerType:a.props.playerType})},a.onPlayShortcut=function(){a.props.dispatchPlay({playerType:a.props.playerType})},a.onPauseShortcut=function(){a.props.dispatchPause({playerType:a.props.playerType})},a.onSkipForwardShortcut=function(){(a.props.isCurrentMediaTypeSeekable?a.props.dispatchSkipForward:a.props.dispatchPlayNextItem)({playerType:a.props.playerType})},a.onStepForwardShortcut=function(){
(a.props.isCurrentMediaTypeSeekable?a.props.dispatchStepForward:a.props.dispatchPlayNextItem)({playerType:a.props.playerType})},a.onNextShortcut=function(){a.props.dispatchPlayNextItem({playerType:a.props.playerType})},a.onVolumeChange=function(e){a.props.dispatchChangeVolume({volume:e,playerType:a.props.playerType})},a.onVolumeIncrease=function(){a.onVolumeChange(Math.min(a.props.volume+10,100))},a.onVolumeDecrease=function(){a.onVolumeChange(Math.max(a.props.volume-10,0))},
a.onCloseShortcut=function(){a.setState({isCloseConfirmModalOpen:!0})},a.onCloseConfirmPress=function(e){a.props.dispatchEndPlayback({playerType:a.props.playerType})},a.onCloseCancelPress=function(e){a.setState({isCloseConfirmModalOpen:!1})},a.state={isCloseConfirmModalOpen:!1},a}return p()(t,e),t.prototype.componentDidMount=function(){this.props.allowShortcuts&&this._startListening()},t.prototype.componentDidUpdate=function(e){var t=this.props.allowShortcuts
;t&&!e.allowShortcuts?this._startListening():!t&&e.allowShortcuts&&this._stopListening()},t.prototype.componentWillUnmount=function(){this.props.allowShortcuts&&this._stopListening()},t.prototype._startListening=function(){m.a.on({"shortcut:skipPrevious":this.onPreviousShortcut,"shortcut:stepBackward":this.onStepBackShortcut,"shortcut:seekBackward":this.onSkipBackShortcut,"shortcut:playPause":this.onPlayPauseShortcut,"shortcut:play":this.onPlayShortcut,"shortcut:pause":this.onPauseShortcut,
"shortcut:seekForward":this.onSkipForwardShortcut,"shortcut:stepForward":this.onStepForwardShortcut,"shortcut:skipNext":this.onNextShortcut,"shortcut:increaseVolume":this.onVolumeIncrease,"shortcut:decreaseVolume":this.onVolumeDecrease,"shortcut:toggleFullScreen":this.onToggleFullscreenShortcut,"shortcut:stop":this.onCloseShortcut})},t.prototype._stopListening=function(){m.a.off({"shortcut:skipPrevious":this.onPreviousShortcut,"shortcut:stepBackward":this.onStepBackShortcut,
"shortcut:seekBackward":this.onSkipBackShortcut,"shortcut:playPause":this.onPlayPauseShortcut,"shortcut:play":this.onPlayShortcut,"shortcut:pause":this.onPauseShortcut,"shortcut:seekForward":this.onSkipForwardShortcut,"shortcut:stepForward":this.onStepForwardShortcut,"shortcut:skipNext":this.onNextShortcut,"shortcut:increaseVolume":this.onVolumeIncrease,"shortcut:decreaseVolume":this.onVolumeDecrease,"shortcut:toggleFullScreen":this.onToggleFullscreenShortcut,"shortcut:stop":this.onCloseShortcut
})},t.prototype.render=function(){return o()(O.a,{isOpen:this.state.isCloseConfirmModalOpen,metricsPage:D.f,title:Object(j.default)("Stop Playback"),message:Object(j.default)("Closing the player will stop playback. Any changes to the queue will be lost."),onConfirm:this.onCloseConfirmPress,onCancel:this.onCloseCancelPress})},t}(f.Component);t.a=Object(v.connect)(a,T)(E)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),function(e){var t=void 0;if(e){
var n=Object(r.r)(e.type);t=n&&n.mediaType}return t})}t.a=i;var a=n(4),r=(n.n(a),n(27)),o=n(142)},function(e,t,n){"use strict";function i(e){var t=e.playerType,n=e.audioVideoOpenState,i=e.photoOpenState,o=t===r.a&&!!n,s=t===r.b&&!!i,l=0,c=0;return n===a.b?l+=1:n===a.a&&(l+=2),i===a.b?c+=1:i===a.a&&(c+=2),o&&l>=c||s&&c>l}t.a=i;var a=n(212),r=n(107)},function(e,t,n){"use strict";function i(){return Object(h.createSelector)(Object(v.a)(),Object(f.a)(),function(e,t){return t?{type:t.type,
title:t.title,originalTitle:t.originalTitle,grandparentTitle:t.grandparentTitle,index:t.index,parentIndex:t.parentIndex,originallyAvailableAt:t.originallyAvailableAt,isPaused:e.isPaused}:{}})}var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=(n.n(d),n(11)),h=n(4),f=(n.n(h),n(178)),v=n(89),g=n(360),m=n(27),y=function(e){function t(n,i){r()(this,t);var a=s()(this,e.call(this,n,i));return a.title=document.title,a}return c()(t,e),t.prototype.componentDidMount=function(){
this._updateWindowTitle()},t.prototype.componentDidUpdate=function(){this._updateWindowTitle()},t.prototype.componentWillUnmount=function(){document.title=this.title},t.prototype._updateWindowTitle=function(){var e=this.props,t=e.type,n=e.title,i=e.originalTitle,a=e.grandparentTitle,r=e.index,o=e.parentIndex,s=e.originallyAvailableAt,l=e.isPaused;if(n&&t){var c=void 0;if(t===m.e){c=a+" - "+Object(g.a)({seasonIndex:o,episodeIndex:r,date:s,noLeadingZero:!0,separator:" \xb7 "})}else if(t===m.l){
var u=i||a;c=u?u+" - "+n:n}else c=n;l||(c="\u25b6 "+c),document.title=c}},t.prototype.render=function(){return null},t}(d.Component);t.a=Object(p.connect)(i)(y)},function(e,t,n){"use strict";function i(e){var t=document.getElementById("plex").classList;e?t.add("show-video-player"):t.remove("show-video-player")}t.a=i},function(e,t){e.exports={fullPlayerContainer:"Player-fullPlayerContainer-1-HN7",fullPlayerContainerBackground:"Player-fullPlayerContainerBackground-1rsLD",
miniPlayerContainer:"Player-miniPlayerContainer-3S8L9"}},function(e,t,n){"use strict";function i(e,t){return e.isRemotePlayer||e.isMusic||e.isSettingsVisible||e.isChaptersVisible||e.isPlayQueueVisible||e.isPostPlayVisible||e.isAlsoAiringVisible||t.isControlsMenuOpen||t.isCastMenuOpen||t.followMuteMenuOpenCount>0||t.disableInteractionTimer}function a(e){var t=e.bottom,n=e.children;return p()("div",{className:k.a.content,style:{bottom:t}},void 0,n)}
var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(2),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(373)),g=(n(107),n(106)),m=n(3615),y=n(31),b=n(3618),I=n(1521),S=n(1522),M=n(24),D=n(46),C=n.n(D),j=n(3641),P=n(1524),O=n(3793),T=n(3796),E=n(3798),w=n(3807),A=n(3932),x=n(3997),N=n(4006),L=n(4021),k=n.n(L),R=2e3,z=parseInt(C.a.playerControlsHeight,10),U=parseInt(C.a.playerControlsNarrowHeight,10),B=parseInt(C.a.playerInfoBarHeight,10),F=function(e){function t(n,a){o()(this,t)
;var r=l()(this,e.call(this,n,a));return r.onInteraction=function(e){var t=e.keyCode;t!==v.k&&t!==v.c&&(i(r.props,r.state)||(r.state.hideControls&&r.setState({hideControls:!1}),r._interactionTimeoutID&&clearTimeout(r._interactionTimeoutID),r._interactionTimeoutID=setTimeout(r.onInteractionTimeout,R)))},r.onInteractionTimeout=function(){r.setState({hideControls:!0}),r._interactionTimeoutID=null},r.onMouseLeave=function(e){r.setState({disableInteractionTimer:!1},function(){
i(r.props,r.state)||(r.setState({hideControls:!0}),r._interactionTimeoutID&&(clearTimeout(r._interactionTimeoutID),r._interactionTimeoutID=null))})},r.onControlsMouseEnter=function(e){r.setState({disableInteractionTimer:!0})},r.onControlsMouseLeave=function(e){r.setState({disableInteractionTimer:!1})},r.onControlsMenuChange=function(e){r.setState({isControlsMenuOpen:e})},r.onCastMenuChange=function(e){r.setState({isCastMenuOpen:e})},r.onFollowMuteMenuChange=function(e){r.setState(function(t){
return{followMuteMenuOpenCount:e?t.followMuteMenuOpenCount+1:t.followMuteMenuOpenCount-1}})},r.onAudioSettingsDimensionsChange=function(e){var t=e.scrollHeight;r.setState({audioSettingsHeight:t})},r.state={hideControls:!1,isControlsMenuOpen:!1,isCastMenuOpen:!1,followMuteMenuOpenCount:0,disableInteractionTimer:!1},r}return u()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.onInteraction),document.addEventListener("keyup",this.onInteraction),
i(this.props,this.state)||this._startInteractionTimer()},t.prototype.componentWillReceiveProps=function(e){i(e,this.state)&&this.state.hideControls&&this.setState({hideControls:!1}),this.props.isFullscreen!==e.isFullscreen&&this.state.disableInteractionTimer&&this.setState({disableInteractionTimer:!1})},t.prototype.componentDidUpdate=function(e,t){i(e,t)&&!i(this.props,this.state)&&this._startInteractionTimer(),!i(e,t)&&i(this.props,this.state)&&this._stopInteractionTimer()},
t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.onInteraction),document.removeEventListener("keyup",this.onInteraction),this._interactionTimeoutID&&clearTimeout(this._interactionTimeoutID)},t.prototype._startInteractionTimer=function(){this._stopInteractionTimer(),this._interactionTimeoutID=setTimeout(this.onInteractionTimeout,R)},t.prototype._stopInteractionTimer=function(){this._interactionTimeoutID&&clearTimeout(this._interactionTimeoutID)},
t.prototype.render=function(){
var e=this.props,t=e.playerType,n=e.hasFullscreen,i=e.isRemotePlayer,r=e.isPlayQueueLoading,o=e.isMediaLoading,s=e.isPostPlayLoading,l=e.isBuffering,c=e.isFullscreen,u=e.isSettingsVisible,d=e.isChaptersVisible,h=e.isPlayQueueVisible,f=e.isAlsoAiringVisible,v=e.isLyricsVisible,D=e.isPostPlayVisible,C=e.isAdVisible,L=e.isVideo,R=e.isMusic,F=e.isNarrowLayout,_=e.currentSubType,V=e.hasLiveTVProtocol,H=e.seekStartMilliseconds,Q=e.seekEndMilliseconds,Y=e.bufferStartMilliseconds,G=e.bufferEndMilliseconds,W=e.adPositionMilliseconds,K=e.adDurationMilliseconds,Z=e.adSkipDelaySeconds,q=e.onEnterFullscreenPress,J=e.onExitFullscreenPress,X=e.onToggleFullscreen,$=e.onAdSkipPress,ee=this.state,te=ee.hideControls,ne=ee.audioSettingsHeight,ie=(r||s||L&&(!C&&o||l))&&!D&&!f,ae=!r&&u&&!d&&!h&&!f,re=ae&&R,oe=ae&&L,se=!r&&!u&&d&&!h&&!f,le=!r&&h&&!f&&!u&&!d,ce=!r&&!h&&f&&!u&&!d,ue=L&&!r&&!s&&!h&&!f&&!D,de=(!C||h)&&(i||R||o||h||f||s||D),pe=_===g.a,he=V||C||pe,fe=F?U:z,ve=he?fe+B:fe,ge=te?null:"translateY("+-ve+"px)"
;return p()("div",{className:(k.a.fullPlayer||"")+" "+(L&&k.a.isVideo||"")+" "+(h&&k.a.isPlayQueueVisible||"")+" "+(te&&k.a.hideControls||""||""),onMouseMove:this.onInteraction,onMouseDown:this.onInteraction,onTouchStart:this.onInteraction,onTouchEnd:this.onInteraction,onMouseLeave:this.onMouseLeave},void 0,de&&p()(T.a,{playerType:t,isVideo:L,isMusic:R,allowBlur:R||h||f||D}),!h&&!f&&ie&&p()(y.a,{size:M.e.LARGE}),ue&&p()(m.a,{playerType:t,heightOffset:te?0:ve}),ue&&p()(S.a,{playerType:t,
onToggleFullscreen:X}),!r&&p()("div",{className:k.a.topBar,onMouseEnter:this.onControlsMouseEnter,onMouseLeave:this.onControlsMouseLeave},void 0,p()(I.a,{playerType:t,isFullscreen:c,hasFullscreen:n,onCastMenuChange:this.onCastMenuChange,onEnterFullscreenPress:q,onExitFullscreenPress:J})),!r&&!h&&!v&&R&&p()(a,{bottom:ve},void 0,p()(O.a,{playerType:t,bottom:re?ne:null})),!r&&!h&&v&&R&&p()(a,{bottom:ve},void 0,p()(E.a,{playerType:t})),re&&p()(j.a,{playerType:t,
onDimensionsChange:this.onAudioSettingsDimensionsChange}),oe&&p()(N.a,{bottom:ve,playerType:t}),se&&p()(b.a,{bottom:ve,playerType:t}),le&&p()(a,{bottom:ve},void 0,p()(w.a,{playerType:t,isVideo:L,isMusic:R})),ce&&p()(a,{bottom:ve},void 0,p()(x.a,{playerType:t,isVideo:L,isMusic:R})),!r&&D&&!h&&!f&&p()(a,{bottom:ve},void 0,p()(A.a,{playerType:t})),!r&&p()("div",{className:k.a.bottomBar,style:{bottom:-ve,height:ve,WebkitTransform:ge,msTransform:ge,transform:ge},
onMouseEnter:this.onControlsMouseEnter,onMouseLeave:this.onControlsMouseLeave},void 0,p()(P.a,{playerType:t,isVideo:L,isMusic:R,isAdVisible:C,isPostPlayVisible:D,currentSubType:_,hasLiveTVProtocol:V,adSkipDelaySeconds:Z,seekStartMilliseconds:H,bufferStartMilliseconds:Y,bufferEndMilliseconds:G,seekEndMilliseconds:Q,adPositionMilliseconds:W,adDurationMilliseconds:K,onAdSkipPress:$,onFollowMuteMenuChange:this.onFollowMuteMenuChange,onControlsMenuChange:this.onControlsMenuChange})))},t}(f.Component)
;t.a=F},function(e,t,n){"use strict";function i(){return Object(D.a)(["isOpen","isMediaLoading","isBuffering","isPaused","hasError","qualityIndex","positionSeconds","lastSeekPositionSeconds"])}function a(){return Object(b.createSelector)(i(),Object(S.a)(),Object(M.a)(),C.a,function(e,t,n,i){var a=n.entityID,r=f()({},e,{playQueueItemEntityID:a});return t&&(r.decisionMediaIndex=t.mediaIndex,r.decisionPartIndex=t.partIndex,r.subtitlesUrl=t.subtitlesUrl,r.isDirectPlay=t.isDirectPlay),
i&&(r.size=i.subtitleSize),r})}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(566)),S=n(240),M=n(142),D=n(567),C=n(72),j=n(302),P=n(990),O=n(3616),T={dispatchMakeDecision:I.a,dispatchRemoveDecision:I.d},E=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),
i.onSubtitlesError=function(){var e=i.props,t=e.playQueueItemEntityID,n=e.playerType,a=e.positionMilliseconds,r=e.qualityIndex,o=e.decisionMediaIndex,s=e.decisionPartIndex,l=e.dispatchMakeDecision;(0,e.dispatchRemoveDecision)({playerType:n,playQueueItemEntityID:t}),l({playerType:n,playQueueItemEntityID:t,qualityIndex:r,mediaIndex:o,partIndex:s,options:{offset:a,subtitlesBurnLevel:j.a.ALWAYS}})},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.subtitlesUrl,n=(e.dispatchMakeDecision,e.dispatchRemoveDecision,o()(e,["subtitlesUrl","dispatchMakeDecision","dispatchRemoveDecision"]));return t?m.a.createElement(O.a,f()({subtitlesUrl:t},n,{onSubtitlesError:this.onSubtitlesError})):null},t}(g.Component),w=Object(P.a)(E);t.a=Object(y.connect)(a,T)(w)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1516),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),
n(67)),g=n(47),m=n(32),y=n(18),b=n(711),I=n(3617),S=n.n(I),M=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a._loadSubtitles=function(){a._loadTimeoutID&&clearTimeout(a._loadTimeoutID),a._connectionTimeoutID&&clearTimeout(a._connectionTimeoutID);var e=a.props,t=e.subtitlesUrl,n=e.positionMilliseconds;a._positionAtTimeOfRequest=n,Object(m.a)("[Subtitles] loading subtitles. position: %s url: %s",a._positionAtTimeOfRequest,t),a._abortStream(),
a._xhr=new window.XMLHttpRequest;var i=new p.a.parser.XhrStream(a._xhr),r=new p.a.parser.StreamParser(i);a._openSubtitlesConnection(),r.minimalASS.then(a.onSubtitlesLoad,a.onSubtitlesFail)},a._getPosition=function(){var e=a.props,t=e.positionMilliseconds,n=e.offset,i=e.delay,r=(t-n+i)/1e3;if(r%1e3){var o=a._clock.currentTime;if(Math.floor(o)===r)return o}return r},a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({width:t,height:n})},a.onSubtitlesLoad=function(e){
Object(m.a)("[Subtitles] Starting to render subtitles"),a._destroySubtitles(),a._clock=new p.a.renderers.AutoClock(a._getPosition,1e3),a._renderer=new p.a.renderers.WebRenderer(e,a._clock,document.getElementById(a._rendererID),a.props.rendererOptions),a._setSubtitleSize(),a._resizeSubtitles(),a._setClockState()},a.onSubtitlesConnectionTimeout=function(){Object(m.a)("[Subtitles] Connection inactivity timeout, reopening."),a._openSubtitlesConnection()},a.onSubtitlesFail=function(){
var e=a._xhr.readyState,t=a._xhr.status;a._errorCount++,m.a.warn("[Subtitles] Request failed. statusCode:%s state:%s errorCount:%s %s",t,e,a._errorCount,a._xhr.errorString||""),a._errorCount>a.props.consecutiveErrorsTolerance?a.props.onSubtitlesError():a._loadTimeoutID=setTimeout(a._loadSubtitles,a.props.retryTimeout)},p.a.debugMode=!1,a.state={width:0,height:0},a._rendererID=Object(g.a)(),a._loadTimeoutID=null,a._connectionTimeoutID=null,a._errorCount=0,a._positionAtTimeOfRequest=null,a}
return u()(t,e),t.prototype.componentDidUpdate=function(e,t){var n=this.props,i=n.isOpen,a=n.isBuffering,r=n.isPaused,o=n.hasError,s=n.heightOffset,l=n.rendererOptions,c=n.size,u=n.sizeMultiplier,d=n.subtitlesUrl,p=this.state,h=p.width,f=p.height;if(this._shouldResetStream(e)||l!==e.rendererOptions||d!==e.subtitlesUrl)return void this._loadSubtitles();var v=c!==e.size||u!==e.sizeMultiplier;v&&this._setSubtitleSize(),(v||h!==t.width||f!==t.height||s!==e.heightOffset)&&this._resizeSubtitles(),
i===e.isOpen&&a===e.isBuffering&&r===e.isPaused&&o===e.hasError||this._setClockState()},t.prototype.componentWillUnmount=function(){Object(m.a)("[Subtitles] Closing"),this._connectionTimeoutID&&clearTimeout(this._connectionTimeoutID),this._destroySubtitles(),this._abortStream()},t.prototype._openSubtitlesConnection=function(){var e=this,t=this.props,n=t.subtitlesUrl,i=t.isDirectPlay,a=t.positionSeconds,r=t.connectionTimeout;this._abortStream(),this._xhr.onreadystatechange=function(t){
4===t.currentTarget.readyState&&(t.currentTarget.status>=200&&t.currentTarget.status<300?e._errorCount=0:e.onSubtitlesFail())},r&&(this._xhr.onprogress=function(t){Object(m.a)("[Subtitles] Received data, restarting connection timer."),clearTimeout(e._connectionTimeoutID),e._connectionTimeoutID=setTimeout(e.onSubtitlesConnectionTimeout,r)});var o=n;if(i){var s=Object(y.parseUrl)(n);s.params.offset=a,o=Object(y.join)([s.origin,s.pathname],s.params)}this._xhr.open("GET",o,!0),this._xhr.send()},
t.prototype._destroySubtitles=function(){this._loadTimeoutID&&clearTimeout(this._loadTimeoutID),this._clock&&(this._clock.disable(),this._clock=null),this._renderer&&(this._renderer.disable(),this._renderer=null);for(var e=document.getElementById(this._rendererID);e.hasChildNodes();)e.removeChild(e.lastChild)},t.prototype._abortStream=function(){this._xhr&&(Object(m.a)("[Subtitles] Aborting existing xhr."),this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.abort())},
t.prototype._setSubtitleSize=function(){var e=this.props,t=e.size,n=e.sizeMultiplier,i=this._renderer.ass.properties,a=t*n/100,r=void 0,o=void 0;this.state.originalResolutionX&&this.state.originalResolutionY?(r=this.state.originalResolutionX,o=this.state.originalResolutionY):(r=i.resolutionX,o=i.resolutionY,this.setState({originalResolutionX:r,originalResolutionY:o})),i.resolutionX=r/a,i.resolutionY=o/a},t.prototype._resizeSubtitles=function(){if(this._renderer){
var e=this.state,t=e.width,n=e.height;Object(m.a)("[Subtitles] Resizing subtitles"),this._renderer.resize(t,n-this.props.heightOffset)}},t.prototype._setClockState=function(){var e=this._clock;if(e){var t=this.props,n=t.isOpen,i=t.isBuffering,a=t.isPaused,r=t.hasError;return i||a?(Object(m.a)("[Subtitles] Clock State: paused"),void e.pause()):!n||r?(Object(m.a)("[Subtitles] Clock State: disabled"),void e.disable()):a?void 0:(Object(m.a)("[Subtitles] Clock State: playing"),void e.play())}},
t.prototype._shouldResetStream=function(e){var t=this.props,n=t.isOpen,i=t.isMediaLoading,a=t.isBuffering,r=t.isPaused,o=t.hasError,s=t.positionMilliseconds,l=t.lastSeekPositionSeconds,c=this._positionAtTimeOfRequest,u=s-e.positionMilliseconds,d=u>0&&n&&!i&&!a&&!r&&!o;if(null!=l&&l!==e.lastSeekPositionSeconds)return this._resetAfterSeekStarted=!0,this._resetLater=!1,!1;if(this._resetAfterSeekStarted){var p=1e3*l<s;return!(!d||!p)&&(this._resetAfterSeekStarted=!1,!0)}
return d&&this._resetLater?(this._resetLater=!1,!0):(!this._xhr||u>1e4||s<c)&&(this._resetLater=!d,d)},t.prototype.render=function(){return a()(v.a,{className:S.a.measure,onMeasure:this.onMeasure},void 0,a()("div",{id:this._rendererID,className:S.a.renderer}))},t}(f.Component);M.defaultProps={offset:0,delay:0,size:b.a.NORMAL,sizeMultiplier:1,heightOffset:0,consecutiveErrorsTolerance:3,connectionTimeout:null,retryTimeout:3e3,rendererOptions:{enableSvg:!1,preciseOutlines:!1}},t.a=M},function(e,t){
e.exports={measure:"Subtitles-measure-3cYuW",renderer:"Subtitles-renderer-12VzS"}},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(u.a)(),Object(c.a)(),Object(l.a)(),function(e,t,n){return{serverEntityID:e.serverEntityID,chapters:t.chapters,activeChapterIndex:n}})}function a(e,t){var n=t.playerType;return{onSeekTo:function(t){e(s.m({playerType:n,positionSeconds:t}))}}}var r=n(11),o=n(4),s=(n.n(o),n(143)),l=n(3619),c=n(707),u=n(89),d=n(3620)
;t.a=Object(r.connect)(i,a)(d.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)("positionSeconds"),Object(o.a)(),function(e,t){return t&&t.chapters?t.chapters.findIndex(function(t){return Math.floor(t.startTimeOffset/1e3)<=e&&Math.floor(t.endTimeOffset/1e3)>e}):-1})}var a=n(4),r=(n.n(a),n(153)),o=n(178);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),
n(3)),g=n(569),m=n(1519),y=n(3630),b=n(1520),I=n(155),S=n(3634),M=n.n(S),D=b.b(),C=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onHubCellScrollIndexChange=function(e){a.setState({scrollIndex:e,scrollIndexIsActiveChapter:!1})},a.state={scrollIndex:a.props.activeChapterIndex,scrollIndexIsActiveChapter:!0,activeChapterIndex:a.props.activeChapterIndex},a}return p()(t,e),t.getDerivedStateFromProps=function(e,t){return t.activeChapterIndex!==e.activeChapterIndex?{
scrollIndex:e.activeChapterIndex,scrollIndexIsActiveChapter:!0,activeChapterIndex:e.activeChapterIndex}:null},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.bottom,i=e.activeChapterIndex,r=e.chapters,s=e.onSeekTo;return o()(m.a,{className:M.a.container,bottom:n},void 0,o()(g.a,{hubIdentifier:"chapters",title:Object(v.default)("Chapter selection"),size:r.length,keyPropName:"index",items:r.map(function(e,t){return a()({},e,{isActive:t===i})}),layout:D,
cellRenderer:Object(I.a)({serverEntityID:t,onSeekTo:s},y.a),scrollIndex:this.state.scrollIndex,shouldCenterScrollIndex:this.state.scrollIndexIsActiveChapter,onListScrollIndexChange:this.onHubCellScrollIndexChange}))},t}(f.Component);t.a=C},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3)),f=n(26),v=n(1517),g=n(177),m=n(3623),y=n.n(m),b=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.state={isEntered:!1,isFocused:!1,isRemoveConfirmModalOpen:!1},i.onPress=function(){var e=i.props,t=e.isHomeHub,n=e.shouldConfirmHomeHubRemoval,a=e.onToggleHomeHub;t&&n?i.setState({isRemoveConfirmModalOpen:!0}):a()},i.onRemoveHomeHubConfirm=function(){i.setState({isRemoveConfirmModalOpen:!1},i.props.onToggleHomeHub)},i.onRemoveHomeHubCancel=function(){i.setState({
isRemoveConfirmModalOpen:!1})},i.onFocus=function(e){i.setState({isFocused:!0})},i.onBlur=function(e){i.setState({isFocused:!1})},i.onMouseEnter=function(e){i.setState({isEntered:!0})},i.onMouseLeave=function(e){i.setState({isEntered:!1})},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.allowHomeHubIndicator,n=e.className,i=e.isHomeHub,r=e.isVisible,o=e.shouldConfirmHomeHubRemoval,s=this.state,l=s.isEntered,c=s.isFocused,u=s.isRemoveConfirmModalOpen,d=i&&t,p=l||c
;return a()("div",{className:(n||"")+" "+((r||p?y.a.isVisible:y.a.isHidden)||"")},void 0,d?a()(f.a,{className:(y.a.icon||"")+" "+((d&&!p?y.a.isVisible:y.a.isHidden)||""),name:"plex-icon-navbar-home-560"}):null,a()(v.a,{className:(y.a.button||"")+" "+((!d||p?y.a.isVisible:y.a.isHidden)||""),isMonochrome:!0,isRemovable:i,tooltip:i?Object(h.default)("Remove from Home"):Object(h.default)("Add to Home"),onPress:this.onPress,onFocus:this.onFocus,onBlur:this.onBlur,onMouseEnter:this.onMouseEnter,
onMouseLeave:this.onMouseLeave}),o?a()(g.a,{isOpen:u,metricsPage:"",title:Object(h.default)("Remove From Home"),message:Object(h.default)("Please confirm you'd like to remove this content from your home screen. You can add it back later if you change your mind."),onConfirm:this.onRemoveHomeHubConfirm,onCancel:this.onRemoveHomeHubCancel}):null)},t}(p.Component);b.defaultProps={className:y.a.container,shouldConfirmHomeHubRemoval:!1},t.a=b},function(e,t){e.exports={
button:"AddOrRemoveButton-button-3FgmE IconButton-button-9An-7",icon:"AddOrRemoveButton-icon-2m9zy",iconRemovable:"AddOrRemoveButton-iconRemovable-3pNZ1 AddOrRemoveButton-icon-2m9zy"}},function(e,t){e.exports={container:"HubTitleToggleHomeHubButton-container-2IqMs",icon:"HubTitleToggleHomeHubButton-icon-1jwJT AddOrRemoveButton-icon-2m9zy",button:"HubTitleToggleHomeHubButton-button-2V6cQ AddOrRemoveButton-button-3FgmE IconButton-button-9An-7",isHidden:"HubTitleToggleHomeHubButton-isHidden-2ozuy",
isVisible:"HubTitleToggleHomeHubButton-isVisible-WlFUS"}},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e,t){return t.directoryKey},function(e,t){return t.homeHubID},Object(I.a)(),Object(M.a)(),D.a,function(e,t,n,i,a){var r=!(!a||!n)&&n.type!==S.a;return t?{isHomeHub:!0,canAddHomeHub:!1,canRemoveHomeHub:!0}:{isHomeHub:i,canAddHomeHub:r&&!i&&!!e,canRemoveHomeHub:r&&i}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(272)),I=n(570),S=n(991),M=n(1518),D=n(396),C={dispatchAddHomeHubs:b.b,dispatchRemoveHomeHubs:b.e},j=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onAddHomeHub=function(){var e=i.props;(0,e.dispatchAddHomeHubs)({isUserInitiated:!0,
hubs:[{directoryKey:e.directoryKey,entityID:e.hubEntityID}]})},i.onRemoveHomeHub=function(){var e=i.props,t=e.dispatchRemoveHomeHubs,n=e.homeHubID,a=e.hubEntityID,r=[];n?r.push({homeHubID:n}):a&&r.push({entityID:a}),t({isUserInitiated:!0,hubs:r})},i.onToggleHomeHub=function(){var e=i.props,t=e.canAddHomeHub;e.canRemoveHomeHub?i.onRemoveHomeHub():t&&i.onAddHomeHub()},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){
var e=this.props,t=e.canAddHomeHub,n=e.canRemoveHomeHub,i=e.component,a=(e.directoryKey,e.dispatchAddHomeHubs,e.dispatchRemoveHomeHubs,e.hubEntityID,e.isHomeHub),o=s()(e,["canAddHomeHub","canRemoveHomeHub","component","directoryKey","dispatchAddHomeHubs","dispatchRemoveHomeHubs","hubEntityID","isHomeHub"]);return t||n?g.a.createElement(i,r()({},o,{isHomeHub:a,onAddHomeHub:this.onAddHomeHub,onRemoveHomeHub:this.onRemoveHomeHub,onToggleHomeHub:this.onToggleHomeHub})):null},t}(v.Component)
;t.a=Object(m.connect)(i,C)(j)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(l.a,s.a,o.a,Object(r.a)(),function(e,t,n,i){if(i&&n&&t&&e.hubs){var a=c.a(i,n,t);return e.hubs.find(function(e){return e.id===a})}})}t.a=i;var a=n(4),r=(n.n(a),n(570)),o=n(39),s=n(53),l=n(402),c=n(823)},function(e,t){e.exports={hubCellHeader:"HubCellHeader-hubCellHeader-2pvYN"}},function(e,t){e.exports={hubCellTitle:"HubCellTitle-hubCellTitle-2abIn"}},function(e,t){e.exports={
hubCell:"HubCell-hubCell-3Ys17",hubActions:"HubCell-hubActions-28w1-",hubScrollButton:"HubCell-hubScrollButton-2Y7ri",hubScroller:"HubCell-hubScroller-2qgkr VirtualListScroller-scroller-3aWqh",title:"HubCell-title-UFv40 HubCellTitle-hubCellTitle-2abIn",attribution:"HubCell-attribution-2Ukv_",titleSeparator:"HubCell-titleSeparator-_noi6 DashSeparator-separator-4CyEF",sourceTitle:"HubCell-sourceTitle-2X9oM",hubCellHeader:"HubCell-hubCellHeader-3s3KK HubCellHeader-hubCellHeader-2pvYN"}
},function(e,t){e.exports={container:"AudioVideoStripeContainer-container-MI02O"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(91),v=n(310),g=n(185),m=n(154),y=n(3632),b=n(1520),I=n(3633),S=n.n(I),M=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onChapterPress=function(){
var e=i.props,t=e.onSeekTo,n=e.startTimeOffset;t(Math.round(n/1e3))},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.index,i=e.thumb,r=e.tag,o=e.isActive,s=e.startTimeOffset,l=e.cellX,c=e.cellY,u=e.cellWidth,d=e.cellHeight,p=n;return a()(f.a,{cellX:l,cellY:c,cellWidth:u,cellHeight:d},void 0,a()(h.a,{className:(S.a.thumbWrapper||"")+" "+(o&&S.a.isActive||""||""),onPress:this.onChapterPress},void 0,a()(g.a,{serverEntityID:t,url:i,background:!0,
backgroundSize:"contain",width:u,height:b.a(d)},p)),a()("div",{className:S.a.titleContainer},void 0,a()("div",{className:S.a.title},void 0,Object(y.a)(n,r)),a()("div",{className:S.a.secondaryTitle},void 0,Object(v.a)(s))))},t}(p.Component);t.a=Object(m.a)(M)},function(e,t){e.exports={cell:"virtualized-cell-3KPHx",isMoving:"virtualized-isMoving-a-wk0"}},function(e,t,n){"use strict";function i(e,t){return t||Object(a.default)("Chapter {index}",{index:e})}t.a=i;var a=n(3)},function(e,t){e.exports={
thumbWrapper:"VideoChapterCell-thumbWrapper-1ofw_",isActive:"VideoChapterCell-isActive-VaLoS",titleContainer:"VideoChapterCell-titleContainer-2B15T",title:"VideoChapterCell-title-b2bbc",secondaryTitle:"VideoChapterCell-secondaryTitle-3vGCq"}},function(e,t){e.exports={container:"VideoChapters-container-1hROw AudioVideoStripeContainer-container-MI02O"}},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),o.a,function(e,t){
return Object(l.a)(Object(s.a)(e.identifier,e.providerIdentifier),t)})}var a=n(4),r=(n.n(a),n(262)),o=n(204),s=n(618),l=n(969);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(16)),f=n(3),v=n(1463),g=n(479),m=n(3638),y=n.n(m),b=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),
i.onRouteChange=function(){i.props.onCollapsePress()},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){Object(h.c)("appModel").on("change:history",this.onRouteChange)},t.prototype.componentWillUnmount=function(){Object(h.c)("appModel").off("change:history",this.onRouteChange)},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.showRemotePlayer,i=e.hasFullscreen,r=e.isFullscreen,o=e.remotePlayerName,s=e.remotePlayerProduct,l=e.onCollapsePress,c=e.onCastMenuChange,u=e.onEnterFullscreenPress,d=e.onExitFullscreenPress;return a()("div",{className:t},void 0,a()("div",{},void 0,a()(g.a,{className:y.a.topButton,"data-qa-id":"minimizePlayerButton",icon:"plex-icon-player-collapse-560",title:Object(f.default)("Minimize Player"),onPress:l}),o&&a()("span",{className:y.a.remotePlayerName
},void 0,Object(f.default)("Casting to {playerName}",{playerName:o})),o&&s&&a()("span",{className:y.a.remotePlayerProduct},void 0,"(",s,")")),a()("div",{},void 0,n&&a()(v.a,{className:y.a.castButton,onMenuChange:c}),i&&r&&a()(g.a,{className:y.a.topButton,"data-qa-id":"windowedButton",icon:"plex-icon-player-windowed-560",title:Object(f.default)("Exit Fullscreen"),onPress:d}),i&&!r&&a()(g.a,{className:y.a.topButton,"data-qa-id":"fullscreenButton",icon:"plex-icon-player-fullscreen-560",
title:Object(f.default)("Enter Fullscreen"),onPress:u})))},t}(p.Component);b.defaultProps={className:y.a.topControls},t.a=b},function(e,t){e.exports={playerButton:"PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7",isPrimary:"PlayerIconButton-isPrimary-cD9yV"}},function(e,t){e.exports={topControls:"FullPlayerTopControls-topControls-2gkcE",topButton:"FullPlayerTopControls-topButton-2iGrJ PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7",
castButton:"FullPlayerTopControls-castButton-1CwQ3 FullPlayerTopControls-topButton-2iGrJ PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7",remotePlayerName:"FullPlayerTopControls-remotePlayerName-32QaK",remotePlayerProduct:"FullPlayerTopControls-remotePlayerProduct-2k5kg"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3)),f=n(222),v=n(3640),g=n.n(v),m=175,y=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onPress=function(e){a._cancelPlayPause(),a.setState(function(e){return{isPaused:!e.isPaused}}),a._playPauseTimeoutID=setTimeout(function(){a._playPauseTimeoutID=null,a.props.isPaused!==a.state.isPaused&&a.props.onTogglePlayPress(e)},m)},a.onDoubleClick=function(e){a.props.onToggleFullscreen()},a.state={isPaused:n.isPaused},a._playPauseTimeoutID=null,a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){
e.isPaused===this.state.isPaused||this._playPauseTimeoutID||this.setState({isPaused:e.isPaused})},t.prototype.componentWillUnmount=function(){this._cancelPlayPause()},t.prototype._cancelPlayPause=function(){this._playPauseTimeoutID&&(clearTimeout(this._playPauseTimeoutID),this._playPauseTimeoutID=null)},t.prototype.render=function(){var e=this.props.className,t=this.state.isPaused;return a()(f.a,{className:(e||"")+" "+((t?g.a.playButton:g.a.pauseButton)||""),circleClassName:g.a.playCircle,
"aria-label":t?Object(h.default)("Play"):Object(h.default)("Pause"),onPress:this.onPress,onDoubleClick:this.onDoubleClick})},t}(p.Component);t.a=y},function(e,t){e.exports={playButton:"PlayPauseOverlay-playButton-25OfW PlayButton-playButton-3WX8X",pauseButton:"PlayPauseOverlay-pauseButton-hSFg5 PlayPauseOverlay-playButton-25OfW PlayButton-playButton-3WX8X",playCircle:"PlayPauseOverlay-playCircle-3ydPY PlayButton-playCircle-3Evfd"}},function(e,t,n){"use strict";function i(){
return Object(o.createSelector)(Object(h.a)(),function(e){if(e){var t=l.a.findWhere(e.features,{type:c.b.SETTINGS});if(t){var n=l.a.findWhere(t.settings,{id:u.b.PLAYBACK_SPEED});if(n)return n}}})}function a(){return Object(o.createSelector)(Object(p.a)("controllable"),Object(f.a)(),i(),function(e,t,n){return{canSetPlaybackSpeed:!e||!!e.playbackSpeed,playbackSpeed:t,playbackSpeedSetting:n}})}function r(e,t){var n=t.playerType;return{onPlaybackSpeedChange:function(t){e(d.d({playerType:n,
playbackSpeed:t}))}}}var o=n(4),s=(n.n(o),n(10)),l=n.n(s),c=n(64),u=n(363),d=n(143),p=n(153),h=n(262),f=n(1503),v=n(58),g=n(3642),m=Object(v.a)(a,r)(g.a);t.a=m},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3)),f=n(389),v=n(1523),g=n(994),m=n(933),y=n(3645),b=n.n(y),I=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onPlaybackSpeedChange=function(e){var t=e.positionValue
;a.setState({playbackSpeed:t},function(){a.props.onPlaybackSpeedChange(t)})},a.state={playbackSpeed:n.playbackSpeed},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){e.playbackSpeed!==this.props.playbackSpeed&&this.setState({playbackSpeed:e.playbackSpeed})},t.prototype.render=function(){var e=this.props,t=e.canSetPlaybackSpeed,n=e.playbackSpeed,i=e.playbackSpeedSetting,r=e.onDimensionsChange;return a()(v.a,{onDimensionsChange:r},void 0,t&&a()(g.a,{
label:Object(h.default)("Playback Speed")},void 0,a()(f.a,{className:b.a.slider,min:i.min,max:i.max,stepSize:i.step,value:this.state.playbackSpeed,onChange:this.onPlaybackSpeedChange}),Object(m.a)(n)))},t}(p.Component);I.defaultProps={playbackSpeedSetting:{min:.5,max:2,step:.1}},t.a=I},function(e,t){e.exports={container:"AudioVideoPlaybackSettings-container-2pTAj AudioVideoStripeContainer-container-MI02O",title:"AudioVideoPlaybackSettings-title-2MRYF",
menusContainer:"AudioVideoPlaybackSettings-menusContainer-2bvbj"}},function(e,t){e.exports={row:"AudioVideoSettingsRow-row-2CrSz",cell:"AudioVideoSettingsRow-cell-24KvK",label:"AudioVideoSettingsRow-label-2h0yy AudioVideoSettingsRow-cell-24KvK",isDisabled:"AudioVideoSettingsRow-isDisabled-3laLA"}},function(e,t){e.exports={slider:"AudioSettings-slider-2uCoX Slider-slider-2oLVT"}},function(e,t){e.exports={bottomBar:"BottomBar-bottomBar-gbDBa"}},function(e,t){e.exports={
controlsContainer:"ControlsContainer-controlsContainer-1Wn7v"}},function(e,t,n){"use strict";function i(e){var t=e.skipDelaySeconds,n=e.positionSeconds,i=e.onSkipPress;if(null==t)return null;var a=t<=n;return o()("div",{className:h.a.message},void 0,a?o()(c.a,{className:h.a.skipAdButton,onPress:i},void 0,Object(u.default)("Skip Ad")):Object(u.default)("You can skip this ad in {seconds} seconds",{seconds:t-n}))}function a(e){
var t=e.className,n=e.skipDelaySeconds,a=e.positionSeconds,r=e.onSkipPress;return o()(d.a,{className:t},void 0,o()("div",{className:h.a.message},void 0,Object(u.default)("Video will play after this advertisement")),o()(i,{skipDelaySeconds:n,positionSeconds:a,onSkipPress:r}))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(20)),u=n(3),d=n(995),p=n(3650),h=n.n(p);t.a=a},function(e,t){e.exports={container:"AudioVideoInfoBar-container-2ewFy"}},function(e,t){e.exports={
message:"AdInfoBar-message-oXwI7",skipAdButton:"AdInfoBar-skipAdButton-2CaCx"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.isVideo},function(e,t){return t.isMusic},function(e,t){return t.isAdVisible},function(e,t){return t.disableNextButton},function(e,t){return t.disablePreviousButton},Object(c.a)(),Object(s.a)(),Object(o.a)(),Object(l.a)(),function(e,t,n,i,a,r,o,s,l){
var c=r.isPostPlayVisible,h=r.positionSeconds,f=r.durationSeconds,v=r.controllable,g=f-h,m=o.subtype===p.a,y=o.subtype===p.b,b=s&&s.chapters&&s.chapters.length>0,I=e&&!m&&!c||y,S=!!v&&(!v.playbackSpeed&&t);return{positionSeconds:h,durationSeconds:f,hasLiveTVProtocol:l.protocols.includes("livetv"),disableLyricsButton:!(o.hasPremiumLyrics||o.lyricsStreams&&o.lyricsStreams.length),disableNextButton:n||i,disablePreviousButton:n||a,disableQueueButton:n,disableSettingsButton:S,
disableSkipForwardButton:g<=u.b,showChaptersButton:e&&!c&&b,showDuration:!c,showLyricsButton:t&&!y,showMenuButton:!c&&!m,showQueueButton:!0,showSettingsButton:(!Object(d.a)()&&t||e)&&!c&&!m,showShuffleButton:!m,showSkipBackButton:I,showSkipForwardButton:I}})}var a=n(11),r=n(4),o=(n.n(r),n(707)),s=n(142),l=n(262),c=n(89),u=n(371),d=n(369),p=n(106),h=n(996),f=Object(a.connect)(i)(h.a);t.a=f},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.playerType,i=e.serverEntityID,a=e.providerEntityID,o=e.metadataItemEntityID,s=e.type,f=e.subtype,g=e.positionSeconds,m=e.context,y=e.showStarRating,b=e.hasUserRating,I=e.isUnknownAiring,S=e.showDuration,M=e.durationSeconds;if(I)return r()("div",{className:t},void 0,Object(l.default)("Unknown Airing"));if(!o||!s)return null;var D=Object(h.b)(s,m,{subtype:f,providerEntityID:a});return r()("div",{className:(t||"")+" "+(y&&b&&v.a.hasUserRating||""||"")
},void 0,D.map(function(e,t){return r()(c.a,{playerType:n,serverEntityID:i,providerEntityID:a,metadataItemEntityID:o,positionSeconds:g,component:e,isSecondary:t>0},t)}),S&&M&&null!=g?r()(d.a,{className:v.a.durationContainer,durationSeconds:M,positionSeconds:g,"data-qa-id":"mediaDuration"}):null,r()(p.a,{className:v.a.mediaInfoContainer,playerType:n,metadataItemEntityID:o}),y?r()(u.a,{className:v.a.ratingContainer,serverEntityID:i,providerEntityID:a,metadataItemEntityID:o}):null)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=(n(33),n(288)),u=n(572),d=n(3657),p=n(3659),h=n(207),f=n(3698),v=n.n(f);i.defaultProps={className:v.a.container},t.a=i},function(e,t){e.exports={title:"MetadataPosterTitle-title-3tU5F",singleLineTitle:"MetadataPosterTitle-singleLineTitle-24_DN MetadataPosterTitle-title-3tU5F",doubleLineTitle:"MetadataPosterTitle-doubleLineTitle-37-cW MetadataPosterTitle-title-3tU5F",isSecondary:"MetadataPosterTitle-isSecondary-2VUxY",
isSplitLine:"MetadataPosterTitle-isSplitLine-oK3N1"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.value,i=e.onRatingChange;return r()("span",{className:t},void 0,r()(l.a,{value:n,onRatingChange:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3655));t.a=i},function(e,t,n){"use strict";function i(e,t){return e>0?Math.min(Math.floor(e)+1,t):0}function a(e){
var t=e.className,n=e.icon,i=e.isVisible,a=e.isPulsing,r=(t||"")+" "+(!i&&A.a.hidden||"")+" "+(a&&A.a.pulsing||""||"");return m()(P.a,{name:n,className:r})}function r(e){return I.a.createElement(a,v()({icon:"plex-icon-star-empty-560",className:A.a.emptyStar},e))}function o(e){return I.a.createElement(a,v()({icon:"plex-icon-star-full-560",className:A.a.fullStar},e))}function s(){return m()(P.a,{name:"plex-icon-star-dot-560",className:A.a.dot})}
var l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(6),v=n.n(f),g=n(2),m=n.n(g),y=n(1),b=(n.n(y),n(0)),I=n.n(b),S=n(10),M=n.n(S),D=n(312),C=n(28),j=n(3),P=n(26),O=n(389),T=n(997),E=n.n(T),w=n(3656),A=n.n(w),x=Object(D.a)(E.a.starPulseSpeed),N=function(e){function t(n,a){c()(this,t);var r=d()(this,e.call(this,n,a));return r.onSliderChange=function(e){var t=e.positionValue,n=r.props.starCount,a=i(t,n);r.setState({currentValue:a})},r.onSliderMove=function(e){
var t=e.positionValue,n=r.props.starCount,a=i(t,n);0!==a&&r.setState({currentValue:a})},r.onSlideComplete=function(e){var t=e.positionValue,n=r.props.starCount,a=i(t,n);r.state.currentRating!==a&&(r._setRating(a),r.props.onRatingChange(a))},r.onMouseLeave=function(e){e.pageX;r.setState({currentValue:r.state.currentRating})},r.state={currentValue:n.value,currentRating:n.value,isPulsing:!1},r}return h()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.value
;t=Math.max(0,Math.min(t,this.props.starCount)),this.state.currentRating!==t&&this._setRating(t)},t.prototype.shouldComponentUpdate=function(e,t){return Object(C.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){var n=this;this.state.currentRating!==t.currentRating&&(clearTimeout(this._pulseTimeoutID),this._pulseTimeoutID=setTimeout(function(){n.setState({isPulsing:!1})},x))},t.prototype.componentWillUnmount=function(){clearTimeout(this._pulseTimeoutID)},
t.prototype._setRating=function(e){this.setState({currentValue:e,currentRating:e,isPulsing:!0})},t.prototype.render=function(){var e=this.props,t=e.starCount,n=e.className,i=this.state,a=i.currentValue,l=i.currentRating,c=i.isPulsing,u=!this.state.currentValue,d=!this.props.onRatingChange,p=M.a.range(t);return m()("div",{className:(n||"")+" "+(A.a.starRating||"")+" "+(d&&A.a.isReadOnly||"")+" "+(u&&A.a.isUnrated||""||""),onMouseLeave:this.onMouseLeave
},void 0,m()("div",{},void 0,p.map(function(e){return m()(s,{},e)})),m()("div",{className:A.a.stars},void 0,p.map(function(e){var t=e>a-1;return m()(r,{isVisible:t},e)})),m()("div",{className:A.a.stars},void 0,p.map(function(e){var t=e<=a-1;return m()(o,{isVisible:t,isPulsing:c&&l>e},e)})),!d&&m()(O.a,{className:A.a.slider,trackClassName:A.a.track,label:Object(j.default)("User Rating"),value:this.state.currentValue,min:0,max:t,stepSize:1,autoHideThumb:!0,onChange:this.onSliderChange,
onMove:this.onSliderMove,onDragComplete:this.onSlideComplete}))},t}(b.Component);N.defaultProps={starCount:5,value:0},t.a=N},function(e,t){e.exports={starRating:"StarRating-starRating-1-SbN",stars:"StarRating-stars-2HyHd",dot:"StarRating-dot-3IqC-",star:"StarRating-star-31C9X",hidden:"StarRating-hidden-2n6-9",emptyStar:"StarRating-emptyStar-1XVvK StarRating-star-31C9X",fullStar:"StarRating-fullStar-3gYOk StarRating-star-31C9X",pulsing:"StarRating-pulsing-ZL72H",
isReadOnly:"StarRating-isReadOnly-2SumJ",isUnrated:"StarRating-isUnrated-2pl1W",slider:"StarRating-slider-2uo17",track:"StarRating-track-29690"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(310),v=n(3658),g=n.n(v),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTogglePress=function(){a.setState(function(e){return{isToggled:!e.isToggled}})},a.state={isToggled:!1},
a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.durationSeconds,i=e.positionSeconds,r=1e3*i,o=1e3*n,s=o-r;return a()(h.a,{className:t,"data-qa-id":"mediaDuration",onPress:this.onTogglePress},void 0,this.state.isToggled?"-"+Object(f.a)(s):Object(f.a)(r)," / ",Object(f.a)(o))},t}(p.Component);m.defaultProps={className:g.a.container},t.a=m},function(e,t){e.exports={container:"DurationRemaining-container-1F4w8"}},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(s.a)(),Object(o.a)(),function(e,t){if(!t)return{};var n=t.Media[e?e.mediaIndex:0],i=n&&"flac"===n.audioCodec;return{info:t.attribution===l.a&&i?"HI-FI":""}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(240),l=n(920),c=n(3660),u=Object(a.connect)(i)(c.a);t.a=u},function(e,t,n){"use strict";function i(e){return e.info?r()("div",{className:e.className},void 0,r()("span",{className:c.a.info},void 0,e.info)):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(3661)),c=n.n(l);i.defaultProps={className:c.a.infoContainer},t.a=i},function(e,t){e.exports={infoContainer:"MediaInfo-infoContainer-2LgYr",info:"MediaInfo-info-JF98B"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.server,a=e.provider,o=e.librarySectionKey,s=e.tag,u=e.filter;if(!s)return null;var d={filters:u,filterLabel:s},p=Object(c.a)(i,a,o,d);return p&&u?r()(l.a,{"data-qa-id":"castTitle",className:t,tabIndex:n,title:s,to:p},void 0,s):r()("span",{className:t,
title:s},void 0,s)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=(n(99),n(140),n(150));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.role;return r()("span",{className:t,title:n},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.addedAt;return r()(l.a,{className:t,timestamp:n})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1530));t.a=i},function(e,t,n){"use strict"
;function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.timeFormat,h=void 0===i?"h:mma":i;if(null==e)return"";var f=Object(a.a)(e);if(Object(p.a)(e))return Object(o.default)("Yesterday");0===Object(r.a)(f)&&(h=h.replace("h:mm","h"));var v=Object(s.default)(e,h),g=void 0
;return g=Object(c.a)(e)?Object(d.a)(e)?Object(o.default)("Tonight"):Object(o.default)("Today"):Object(u.a)(e)?Object(o.default)("Tomorrow"):Object(l.a)(e)?Object(s.default)(e,"EEEE"):Object(s.default)(e,"MMM d"),t?Object(o.default)("{1} at {2} on {3}",g,v,t):Object(o.default)("{1} at {2}",g,v)}t.a=i;var a=n(81),r=n(1002),o=n(3),s=n(573),l=n(1539),c=n(313),u=n(1540),d=n(1541),p=n(713)},function(e,t){e.exports={separator:"MetadataTitleAirDate-separator-2i3bJ DashSeparator-separator-4CyEF"}
},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.experienceSettings.timeFormat},Object(o.a)(),function(e,t){return{beginsAt:t&&t.beginsAt,endsAt:t&&t.endsAt,timeFormat:e}})}var a=n(11),r=n(4),o=(n.n(r),n(1003)),s=n(3668);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.beginsAt,i=e.endsAt,a=e.timeFormat,o=Object(l.a)(n,i,{includeMinuteZero:!1,timeFormat:a});return r()("span",{className:t},void 0,o)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(574));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.index,i=e.longName,a=e.originallyAvailableAt,o=Object(l.a)({useLongName:i,episodeIndex:n,date:a,noLeadingZero:!0});return r()("span",{className:t},void 0,o)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1545));i.defaultProps={longName:!0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.seasonIndex
;return null==t?"":t>1e3?t:(e.noLeadingZero||(t=Object(a.a)(t)),e.useLongName?Object(r.default)("Season {seasonNumber}",{seasonNumber:t}):Object(r.default)("S{seasonNumber}",{seasonNumber:t}))}var a=n(806),r=n(3);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{extraType:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).extraType}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3672);t.a=Object(a.connect)(i)(s.a)
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.extraType,i=l.a.get(n);return r()("span",{className:t},void 0,i?i.title:"")}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3673));t.a=i},function(e,t,n){"use strict";var i=n(3),a=n(230),r=["id","typeString"],o=Object(a.a)(r,[{id:1,typeString:"trailer",title:function(){return Object(i.default)("Trailer")}},{id:2,typeString:"deletedScene",title:function(){return Object(i.default)("Deleted Scene")}},{id:3,
typeString:"interview",title:function(){return Object(i.default)("Interview")}},{id:4,typeString:"musicVideo",title:function(){return Object(i.default)("Music Video")}},{id:5,typeString:"behindTheScenes",title:function(){return Object(i.default)("Behind the Scenes")}},{id:6,typeString:"scene",title:function(){return Object(i.default)("Scene")}},{id:7,typeString:"liveMusicVideo",title:function(){return Object(i.default)("Live Music Video")}},{id:8,typeString:"lyricMusicVideo",title:function(){
return Object(i.default)("Lyric Music Video")}},{id:9,typeString:"concert",title:function(){return Object(i.default)("Concert")}},{id:10,typeString:"featurette",title:function(){return Object(i.default)("Featurette")}},{id:11,typeString:"short",title:function(){return Object(i.default)("Short")}},{id:12,typeString:"other",title:function(){return Object(i.default)("Other")}}]);t.a=o},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.listType
},Object(r.a)(),function(e,t){if(t&&!t.skipDetails&&!t.isExtra&&!t.radio&&(e!==s.g||t.type===s.h))return t.type===s.l&&t.subtype!==o.b?t.skipParent?t.grandparentKey:t.parentKey:t.key})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(106),s=n(27)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),Object(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{title:e.title,route:t}})}var a=n(11),r=n(4),o=(n.n(r),
n(21)),s=n(481),l=n(477),c=Object(a.connect)(i)(l.a);c.isDoubleLine=!0,t.a=c},function(e,t,n){"use strict";function i(e,t){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.duration,n=e.Channel;return{duration:t,channel:n&&n[0]}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3677);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.duration,i=e.channel;return n||i?r()("span",{
className:t},void 0,r()(l.a,{duration:n}),!(!n||!i)&&" \u2014 ",!!i&&i.tag):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1007));t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{playlistType:e.playlistType,duration:e.duration,leafCount:e.leafCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3679);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.playlistType,i=e.duration,a=e.leafCount;return n===l.b?r()(u.a,{className:t,leafCount:a}):r()(c.a,{className:t,duration:i})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(303)),c=n(717),u=n(1489);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{topics:e&&e.Topic}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3681);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.topics;return n&&n.length?r()("span",{className:t},void 0,n[0].tag):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(s.a,o.a,s.c,o.c,function(e,t,n,i){return e&&n&&e.machineIdentifier!==n.machineIdentifier?{sourceTitle:n.sourceTitle||n.friendlyName}:{}})}var a=n(11),r=n(4),o=(n.n(r),n(39)),s=n(53),l=n(3683);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.sourceTitle;return n?r()("span",{className:t},void 0,Object(l.default)("from {sourceTitle}",{sourceTitle:n})):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.server,i=e.provider,a=e.reasonID,o=e.id,s=e.tag,d=e.filter,p=e.tagType,h=e.librarySectionKey,f=c.a.get(p),v=f.typeString,g=d||v+"="+o,m={filters:g,filterLabel:s},y=i.isLibraryProvider?a:h,b=Object(u.a)(n,i,y,m);return r()(l.a,{
"data-qa-id":"searchTagTitle",className:t,title:s,to:b},void 0,s)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(474),u=(n(99),n(140),n(150));t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName}})}var a=n(11),r=n(4),o=(n.n(r),n(35)),s=n(3686);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.machineIdentifier,i=e.friendlyName;if(!i)return null;var a=encodeURIComponent(n);return r()("span",{className:t},void 0,Object(c.default)("on")," ",r()(l.a,{title:i,to:"#!/server/"+a+"/dashboard"},void 0,i))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(3);t.a=i},function(e,t,n){"use strict";function i(e){switch(e.split(":")[0]){case"addedAt":return a.a;case"duration":return l.a;case"lastViewedAt":return c.a;case"originallyAvailableAt":return d.a
;case"rating":return s.a;case"userRating":return h.a;case"viewCount":return u.a;case"mediaBitrate":return r.a;case"contentRating":return o.a;case"mediaHeight":return p.a;case"year":return f.a}}t.a=i;var a=n(1529),r=n(1549),o=n(1550),s=n(1010),l=n(1551),c=n(1552),u=n(3694),d=n(1553),p=n(1554),h=n(572),f=n(400)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.type,i=e.bitrate,a=n===u.a?Object(l.a)(i):Object(c.default)(i);return r()("span",{className:t},void 0,a)}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1184)),c=n(520),u=n(63);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.contentRating;return r()("span",{className:t},void 0,Object(l.a)(n))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1009));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.rating,i=e.ratingImage,a=e.audienceRating,o=e.audienceRatingImage;return n?r()("span",{className:t},void 0,r()(l.a,{rating:n,ratingImage:i,
audienceRating:a,audienceRatingImage:o})):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3691));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.rating,n=e.ratingImage,i=e.audienceRating,a=e.audienceRatingImage;return t?g.test(n)?"imdb":m.test(n)||i&&m.test(a)?"rt":"other":"unrated"}function a(e){var t=e.rating;return c()("div",{className:v.a.rating,title:Object(h.default)("IMDb Rating")},void 0,c()("div",{className:v.a.imdb}),t.toFixed(1))}function r(e){
var t=e.rating,n=e.ratingImage,i=e.audienceRating,a=e.audienceRatingImage,r=n&&n.substr(n.lastIndexOf(".")+1),o=i&&a&&a.substr(a.lastIndexOf(".")+1),s={certified:Object(h.default)("Certified Fresh"),ripe:Object(h.default)("Fresh"),rotten:Object(h.default)("Rotten"),spilled:Object(h.default)("Audience Rating"),upright:Object(h.default)("Audience Rating")};return c()("div",{className:v.a.rt},void 0,r&&c()("div",{className:v.a.rating},void 0,c()("div",{className:v.a[r],title:s[r]
}),Math.round(10*t)+"%"),o&&c()("div",{className:v.a.rating},void 0,c()("div",{className:v.a[o],title:s[o]}),Math.round(10*i)+"%"))}function o(e){var t=e.rating;return c()("div",{className:v.a.rating},void 0,c()("div",{className:v.a.other,title:Object(h.default)("Rating")}),Math.round(10*t)+"%")}function s(e){var t=i(e),n=y[t];return n?c()("div",{className:v.a.container},void 0,p.a.createElement(n,e)):null}var l=n(2),c=n.n(l),u=n(1),d=(n.n(u),
n(0)),p=n.n(d),h=n(3),f=n(3692),v=n.n(f),g=/^imdb\:\/\//,m=/^rottentomatoes\:\/\//,y={imdb:a,rt:r,other:o};t.a=s},function(e,t){e.exports={container:"CriticRating-container-33b2h",rating:"CriticRating-rating-2Jrl1",rt:"CriticRating-rt-2J0Sb",ratingImage:"CriticRating-ratingImage-3-Lxo",imdb:"CriticRating-imdb-23PVn CriticRating-ratingImage-3-Lxo",certified:"CriticRating-certified-kPXY1 CriticRating-ratingImage-3-Lxo",ripe:"CriticRating-ripe-3KaJB CriticRating-ratingImage-3-Lxo",
rotten:"CriticRating-rotten-19B4i CriticRating-ratingImage-3-Lxo",spilled:"CriticRating-spilled-9kErJ CriticRating-ratingImage-3-Lxo",upright:"CriticRating-upright-3fxty CriticRating-ratingImage-3-Lxo",other:"CriticRating-other-1f4HX CriticRating-ratingImage-3-Lxo"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.lastViewedAt;return r()(l.a,{className:t,timestamp:n})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1530));t.a=i},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(o.a)(),function(){return{viewCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).viewCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3695);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.viewCount;return r()("span",{className:t},void 0,n>0&&(n>1?Object(l.default)("{viewCount} Plays",{viewCount:n}):Object(l.default)("{viewCount} Play",{viewCount:n})),!n&&Object(l.default)("Unplayed"))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.originallyAvailableAt;return r()("span",{className:t},void 0,Object(l.default)(n,"MMM d, yyyy"))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(305));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.videoResolution;return r()("span",{className:t},void 0,Object(l.default)(n))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(366))
;t.a=i},function(e,t){e.exports={container:"PlayerControlsMetadata-container-2wqMf",ratingContainer:"PlayerControlsMetadata-ratingContainer-1bg_5",hasUserRating:"PlayerControlsMetadata-hasUserRating-2bCRc",durationContainer:"PlayerControlsMetadata-durationContainer-3UDmW DurationRemaining-container-1F4w8",mediaInfoContainer:"PlayerControlsMetadata-mediaInfoContainer-3g4P-"}},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(u.a)(),function(e){return{
metadataItemEntityID:e&&e.entityID,isUnknownAiring:!e}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(714)),d=n(1528),p=Object(l.connect)(i)(d.a);p.propTypes=r()({},p.propTypes,{playerType:s.a.string.isRequired}),t.a=p},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{metadataItemEntityID:e.entityID,type:e.type}})}var a=n(11),r=n(4),o=(n.n(r),
n(714)),s=n(3701);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(289)),f=n(3728),v=n(3731),g=n.n(v),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:!1},a}return u()(t,e),
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.type;return i&&r?a()("div",{className:g.a.recordButtonContainer},void 0,a()(f.a,{serverEntityID:t,metadataItemEntityID:i,type:r,onPress:this.onRecordPress}),a()(h.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,isOpen:this.state.isSubscribeModalOpen,subscriptionType:r,onModalClose:this.onSubscribeModalClose})):null},t}(p.Component);t.a=m},function(e,t,n){"use strict"
;function i(){return Object(M.createSelector)(function(e,t){return t.subscriptionType},function(e){return"playlist"===e?"show":e})}function a(){return Object(M.createSelector)(Object(P.a)(),i(),function(e,t){var n=Object(L.t)(t);return e.filter(function(e){return Object(L.r)(e.type).id===n.id}).map(function(e){return{librarySectionID:e.key,locations:e.locations,title:e.title}})})}function r(){return Object(M.createSelector)(z.a,Object(T.a)(),Object(O.a)(),function(e){
return e.ui.mediaSubscriptionModal},E.a,w.a,i(),a(),function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments[5],o=arguments[6],s=arguments[7],l=C.a.omit(i,"templates","mediaSubscription"),c=a.key,u=a.grabOperations,d=void 0===u?[]:u,p=a.prefs,h=m()(a,["key","grabOperations","prefs"]),f=void 0,g=void 0,y=void 0;r.length>1?(g=C.a.findIndex(r,function(e){return e.selected}),f=r.map(function(e,t){var n,i=e.title;return n={},n[t]=i,n})):(g=0,f=h.title?[{0:h.title
}]:null),d.length&&(y=d.reduce(function(e,t){return t.conflicts&&t.conflicts.length?e.concat(t.conflicts):e},[]));var b=C.a.groupBy(p,function(e){return e.advanced?"advanced":"basic"});b.basic=C.a.indexBy(b.basic,"id");var I=Object(A.a)(n),S=I?I.directories[0]:null,M=S?S.hubKey||S.key:null;return v()({isTypeFirstEnabled:e,mediaSubscriptionKey:c,prefGroups:b,metadataType:o,libraries:s,initialMode:g,modes:f,conflicts:y,server:t,provider:n,source:M},l,h)})}
var o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(6),v=n.n(f),g=n(12),m=n.n(g),y=n(1),b=(n.n(y),n(0)),I=n.n(b),S=n(11),M=n(4),D=(n.n(M),n(10)),C=n.n(D),j=n(1555),P=n(691),O=n(54),T=n(35),E=n(3704),w=n(3705),A=n(473),x=n(36),N=n(3),L=n(27),k=n(145),R=n(202),z=n(396),U=n(935),B=n(3706),F=n(3707),_=n(3718),V=n(3726),H={dispatchAddLibrary:R.a,dispatchInitMediaSubscriptionModal:j.d,dispatchClearMediaSubscriptionModal:j.b,dispatchSaveMediaSubscription:j.g,
dispatchChangeMediaSubscriptionTemplateMode:j.a,dispatchMoveMediaSubscriptionModal:j.f,dispatchDeleteMediaSubscriptionModal:j.c},Q=function(e){function t(n,i){c()(this,t);var a=d()(this,e.call(this,n,i));return a.onSubmit=function(e){var t=a.props,n=t.serverEntityID,i=t.metadataItemEntityID,r=e.targetLibrarySectionID,o=e.targetSectionLocationID,s=(e.mode,m()(e,["targetLibrarySectionID","targetSectionLocationID","mode"]));a.props.dispatchSaveMediaSubscription({serverEntityID:n,
metadataItemEntityID:i,targetLibrarySectionID:r,targetSectionLocationID:o,prefs:s})},a.onDelete=function(){a.props.dispatchDeleteMediaSubscriptionModal({metadataItemEntityID:a.props.metadataItemEntityID})},a.onModeChange=function(e){Object(x.a)(function(){a.props.dispatchChangeMediaSubscriptionTemplateMode({modeIndex:e})})},a.onMediaMove=function(){a.props.dispatchMoveMediaSubscriptionModal()},a.onCreatePress=function(){
var e=a.props,t=e.metadataType,n=e.serverEntityID,i=Object(L.t)(t),r=i.typeString,o=k.f.get(r);a.props.onModalClose(),a.props.dispatchAddLibrary({serverEntityID:n,options:{redirect:!1,seedAttrs:{type:o.typeString,title:o.title,language:o.defaultLanguage}}})},a.state={showConflicts:n.showConflicts},a}return h()(t,e),t.prototype.componentDidMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){var t=this.state.showConflicts
;this.props.isMediaSubscriptionSaving&&!e.isMediaSubscriptionSaving&&e.conflicts&&e.conflicts.length&&(t=!0),t!==this.state.showConflicts&&this.setState({showConflicts:t});var n=this.props.metadataItemEntityID!==e.metadataItemEntityID,i=this.props.mediaSubscriptionEntityID!==e.mediaSubscriptionEntityID;(n||i)&&this._populate(e)},t.prototype.componentWillUnmount=function(){this.props.dispatchClearMediaSubscriptionModal()},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.serverEntityID,n=e.mediaSubscriptionEntityID,i=e.metadataItemEntityID,a=e.showConflicts;Object(x.a)(function(){e.dispatchInitMediaSubscriptionModal({serverEntityID:t,mediaSubscriptionEntityID:n,metadataItemEntityID:i,showConflicts:a})})},t.prototype.render=function(){return this.props.mediaSubscriptionError?s()(U.a,{message:Object(N.default)("There was an unexpected error"),onModalClose:this.props.onModalClose
}):this.props.isMediaSubscriptionPending||!this.props.isMediaSubscriptionPopulated?s()(B.a,{onModalClose:this.props.onModalClose}):this.props.libraries.length?this.state.showConflicts?I.a.createElement(F.a,v()({},this.props,{onDelete:this.onDelete,onMediaMove:this.onMediaMove})):I.a.createElement(_.a,v()({},this.props,{onModeChange:this.onModeChange,onSubmit:this.onSubmit,onDelete:this.onDelete})):I.a.createElement(V.a,v()({},this.props,{onCreatePress:this.onCreatePress,onDelete:this.onDelete}))
},t}(b.Component);Q.defaultProps={showConflicts:!1},t.a=Object(S.connect)(r,H)(Q)},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"MediaSubscriptionTargetModel",context:["server"],syncedAttrs:{guid:a.a.string,grandparentGuid:a.a.string,title:a.a.string,type:a.a.string,grandparentTitle:a.a.string,index:a.a.integer,parentIndex:a.a.integer,year:a.a.string,grandparentYear:a.a.integer,originallyAvailableAt:a.a.string,thumb:a.a.string,parentThumb:a.a.string,
grandparentThumb:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(1011)),r=Object(i.createSelector)(function(e){return e.ui.mediaSubscriptionModal.mediaSubscription},a.a,function(e,t){return t[e]});t.a=r},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(1011)),r=Object(i.createSelector)(function(e){return e.ui.mediaSubscriptionModal.templates},a.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return e.map(function(e){
return t[e]})});t.a=r},function(e,t,n){"use strict";function i(e){return s.a.createElement(c.a,e,u)}var a=n(2),r=n.n(a),o=n(0),s=n.n(o),l=n(31),c=n(1426),u=r()(l.a,{});t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(61),v=n(88),g=n(115),m=n(84),y=n(18),b=n(250),I=n(3),S=n(221),M=n(139),D=n(217),C=n(98),j=n(24),P=n(3708),O=n(719),T=n(3717),E=n.n(T),w=function(e){function t(){return o()(this,t),
l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidUpdate=function(e,t){(e.isMediaSubscriptionMoving&&!this.props.isMediaSubscriptionMoving&&null==this.props.mediaSubscriptionMoveError||e.isMediaSubscriptionDeleting&&!this.props.isMediaSubscriptionDeleting&&null==this.props.mediaSubscriptionDeleteError)&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.isRecordingSchedule,n=e.isMediaSubscriptionDeleting,i=e.mediaSubscriptionDeleteError,r=e.isMediaSubscriptionMoving,o=e.mediaSubscriptionMoveError,s=e.isTypeFirstEnabled,l=e.serverEntityID,c=e.providerEntityID,u=e.server,d=e.provider,p=e.source,T=e.target,w=e.conflicts,A=e.onDelete,x=e.onMediaMove,N=e.onModalClose,L=encodeURIComponent(u.machineIdentifier),k=encodeURIComponent(d.identifier);return a()(C.a,{onModalClose:N
},void 0,a()(m.a,{},void 0,Object(I.default)("Conflict Detected")),o?a()("div",{},void 0,a()(D.a,{errorMessage:Object(b.a)(o,Object(I.default)("There was a problem saving your changes..."))})):null,i?a()("div",{},void 0,a()(D.a,{errorMessage:Object(b.a)(i,Object(I.default)("There was a problem canceling..."))})):null,a()(f.a,{autoScroll:!0},void 0,a()(O.a,{serverEntityID:l,providerEntityID:c,target:T},void 0,a()("div",{className:E.a.message
},void 0,1===w.length?Object(I.default)("Conflicts with 1 recording"):Object(I.default)("Conflicts with {conflictCount} recordings",{conflictCount:w.length})),a()("div",{className:E.a.conflicts},void 0,w.map(function(e,t){var n=e.metadataItem;return a()(P.a,{metadataItemEntityID:n},t)})))),a()(v.a,{},void 0,a()(g.a,{},void 0,a()(M.a,{isSpinning:n,kind:j.b.DANGER,onPress:A},void 0,Object(I.default)("Cancel This")),a()(M.a,{isSpinning:r,kind:j.b.PRIMARY,onPress:x
},void 0,Object(I.default)("Prefer This")),t?a()(h.a,{kind:j.b.PRIMARY,onPress:N},void 0,Object(I.default)("Close")):a()(h.a,{kind:j.b.PRIMARY,to:s?y.join(["#!",S.a,L,k,"schedule"],{source:p}):"#!/server/"+L+"/schedule"},void 0,Object(I.default)("Manage")))))},t}(p.Component);w.defaultProps={conflicts:[]},t.a=w},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(u.a)(),function(){return{type:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type}})}
function a(e){return s.a.createElement(d.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(21)),d=n(3709);t.a=Object(l.connect)(i)(a)},function(e,t,n){"use strict";function i(e){switch(e){case"movie":case"show":return[v.a];case"episode":return[f.a,g.a];case"playlist":default:return[v.a]}}function a(e){var t=(e.className,e.type),n=u()(e,["className","type"]),a=i(t);return l()("div",{className:b.a.container},void 0,a.map(function(e,t){return h.a.createElement(m.a,o()({key:t,
component:e,isSecondary:t>0},n))}))}var r=n(6),o=n.n(r),s=n(2),l=n.n(s),c=n(12),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(3710),v=n(974),g=n(329),m=n(3711),y=n(3713),b=n.n(y);t.a=a},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{grandparentTitle:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).grandparentTitle}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1012);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict"
;function i(e){var t=e.component,n=e.isSecondary,i=s()(e,["component","isSecondary"]);return u.a.createElement(t,r()({className:n?p.a.secondaryTitle:p.a.title},i))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3712),p=n.n(d);t.a=i},function(e,t){e.exports={title:"ConflictTitle-title-1g7j7",secondaryTitle:"ConflictTitle-secondaryTitle-2kiOL"}},function(e,t){e.exports={container:"ConflictItemRow-container-x4THp"}},function(e,t,n){"use strict";function i(e){
var t=e.component,n=e.isSecondary,i=s()(e,["component","isSecondary"]);return u.a.createElement(t,r()({className:n?p.a.secondaryTitle:p.a.title},i))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3715),p=n.n(d);t.a=i},function(e,t){e.exports={title:"MediaSubscriptionTitle-title-1I857",secondaryTitle:"MediaSubscriptionTitle-secondaryTitle-1srwE"}},function(e,t){e.exports={container:"MediaSubscriptionTargetPosterTitle-container-2LmdB",
left:"MediaSubscriptionTargetPosterTitle-left-3Kcsf",right:"MediaSubscriptionTargetPosterTitle-right-18jQp",subscriptionBadge:"MediaSubscriptionTargetPosterTitle-subscriptionBadge-10p6v MetadataPosterCardOverlay-badge-1FU-p",subscriptionBadgeIcon:"MediaSubscriptionTargetPosterTitle-subscriptionBadgeIcon-3Aqfc",titleContainer:"MediaSubscriptionTargetPosterTitle-titleContainer-1Zl4x",
staticHeightTitleContainer:"MediaSubscriptionTargetPosterTitle-staticHeightTitleContainer-3Pp5d MediaSubscriptionTargetPosterTitle-titleContainer-1Zl4x"}},function(e,t){e.exports={message:"MediaSubscriptionConflict-message-1ZbxO",conflicts:"MediaSubscriptionConflict-conflicts-3hyQu"}},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(42),b=n(20),I=n(186),S=n(61),M=n(88),D=n(115),C=n(84),j=n(250),P=n(3),O=n(26),T=n(139),E=n(217),w=n(98),A=n(24),x=n(3719),N=n(3721),L=n(3722),k=n(3725),R=n.n(k),z=o()(x.a,{}),U=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onAdvancedPress=function(){a.setState({isAdvanced:!a.state.isAdvanced})},a.onCancelPress=function(){a.setState({showCancelConfirmation:!0})},a.onBackPress=function(){a.setState({showCancelConfirmation:!1})},
a.onFormChange=function(e){if(e.targetLibrarySectionID&&(e.targetLibrarySectionID.value!==a.state.selectedLibrarySectionID&&a.setState({selectedLibrarySectionID:e.targetLibrarySectionID.value}),e.mode&&e.mode.value!==a.state.selectedMode)){var t=e.mode.value;a.setState({selectedMode:t}),a.props.onModeChange(t)}},a.state={selectedLibrarySectionID:n.targetLibrarySectionID,selectedMode:n.initialMode,isAdvanced:!1,showCancelConfirmation:!1},a}return f()(t,e),
t.prototype.componentDidUpdate=function(e,t){(e.isMediaSubscriptionSaving&&!this.props.isMediaSubscriptionSaving&&null==this.props.mediaSubscriptionSaveError||e.isMediaSubscriptionDeleting&&!this.props.isMediaSubscriptionDeleting&&null==this.props.mediaSubscriptionDeleteError)&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.mediaSubscriptionKey,n=e.isMediaSubscriptionSaving,i=e.mediaSubscriptionSaveError,r=e.isMediaSubscriptionDeleting,s=e.mediaSubscriptionDeleteError,c=e.prefGroups,u=e.onModalClose,d=e.onSubmit,p=e.onDelete,h=l()(e,["mediaSubscriptionKey","isMediaSubscriptionSaving","mediaSubscriptionSaveError","isMediaSubscriptionDeleting","mediaSubscriptionDeleteError","prefGroups","onModalClose","onSubmit","onDelete"]),f=this.state,v=f.isAdvanced,g=f.showCancelConfirmation,x=g&&R.a.cancelConfirmation||v&&R.a.advancedForm||R.a.baseForm
;return o()(I.b,{className:x,onChange:this.onFormChange,onSubmit:d},void 0,o()(w.a,{onModalClose:u},void 0,o()(C.a,{},void 0,g?Object(P.default)("Cancel Recording"):Object(P.default)("Record Options")),i&&o()("div",{},void 0,o()(E.a,{errorMessage:Object(j.a)(i,Object(P.default)("There was a problem saving your changes. Please try again."))})),s&&o()("div",{},void 0,o()(E.a,{errorMessage:Object(j.a)(s,Object(P.default)("There was a problem with canceling this subscription. Please try again."))
})),o()(S.a,{},void 0,o()("div",{className:R.a.baseSettings},"base",m.a.createElement(L.a,a()({selectedLibrarySectionID:this.state.selectedLibrarySectionID,prefs:c.basic},h))),o()("div",{className:R.a.advancedSettings},"advanced",m.a.createElement(N.a,a()({prefs:c.advanced},h))),g?z:null),o()(M.a,{className:g?R.a.cancelConfirmationFooter:R.a.footer},void 0,g?null:o()(D.a,{},void 0,o()(b.a,{kind:A.b.PRIMARY,onPress:this.onAdvancedPress},void 0,o()(O.a,{className:R.a.advancedIcon,
name:"plex-icon-settings-560"}),v?Object(P.default)("Show Basic"):Object(P.default)("Show Advanced"))),g?o()(D.a,{},void 0,o()(y.a,{onPress:this.onBackPress},void 0,Object(P.default)("Back")),o()(T.a,{isSpinning:r,kind:A.b.DANGER,onPress:p},void 0,Object(P.default)("Yes"))):o()(D.a,{},void 0,t?o()(y.a,{kind:A.b.DANGER,onPress:this.onCancelPress},void 0,Object(P.default)("Cancel Recording")):o()(y.a,{kind:A.b.DEFAULT,onPress:u},void 0,Object(P.default)("Cancel")),o()(T.a,{type:"submit",
isSpinning:n,kind:A.b.PRIMARY},void 0,t?Object(P.default)("Save"):Object(P.default)("Record"))))))},t}(g.Component);t.a=U},function(e,t,n){"use strict";function i(){return r()("div",{className:c.a.cancelConfirmationMessage},void 0,r()("div",{},void 0,Object(s.default)("Are you sure you want to cancel this recording?")),r()("div",{},void 0,Object(s.default)("This will cancel any future scheduled recordings and stop any recordings already in progress.")))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),
n(3)),l=n(3720),c=n.n(l);t.a=i},function(e,t){e.exports={cancelConfirmationMessage:"CancelRecordingConfirmation-cancelConfirmationMessage-3l-kt"}},function(e,t,n){"use strict";function i(e){var t=e.prefs;return s()("div",{},void 0,t.map(function(e){var t=e.id;return u.a.createElement(d.a,r()({key:t},e))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(557);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.target,a=e.initialMode,o=e.modes,s=e.libraries,v=e.targetLibrarySectionID,g=e.targetSectionLocationID,m=e.selectedLibrarySectionID,y=e.prefs,b=y.onlyNewAirings,I=i.type===c.e||i.type===c.k||i.type===c.i;return r()(f.a,{serverEntityID:t,providerEntityID:n,target:i,useStaticHeight:I},void 0,r()(d.a,{flexWrap:"wrap"},void 0,r()(u.a,{flexBasis:230,maxWidth:230},void 0,o&&r()(h.a,{labelText:Object(l.default)("Record"),name:"mode",initialValue:a,
values:o,isDisabled:o.length<2})),r()(u.a,{flexBasis:230,maxWidth:230},void 0,b&&r()(h.a,{name:b.id,labelText:b.label,initialValue:b.value,values:b.enumValues.map(function(e){var t,n=e.label,i=e.value;return t={},t[i]=n,t})}))),r()(p.a,{libraries:s,targetLibrarySectionID:v,targetSectionLocationID:g,selectedLibrarySectionID:m}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(27),u=n(1558),d=n(1559),p=n(3724),h=n(1560),f=n(719);t.a=i},function(e,t){e.exports={
grid:"FlexGrid-grid-Ws_Yk"}},function(e,t,n){"use strict";function i(e,t){var n=d.a.find(e,function(e){return e.librarySectionID===t});return n?n.locations.map(function(e){var t,n=e.id,i=e.path;return t={},t[n]=i,t}):[]}function a(e){var t=e[0];if(t){return t[d.a.keys(t)[0]]}}function r(e){var t=e.libraries,n=e.targetLibrarySectionID,r=e.targetSectionLocationID,o=e.selectedLibrarySectionID,l=i(t,o);return s()(f.a,{flexWrap:"wrap"},void 0,s()(h.a,{flexBasis:230,maxWidth:230},void 0,s()(g.a,{
labelText:Object(p.default)("Add to Library"),name:"targetLibrarySectionID",initialValue:n,size:v.e.SMALL,values:t.map(function(e,t){var n,i=e.title,a=e.librarySectionID;return n={},n[a]=i,n})})),s()(h.a,{flexBasis:230,maxWidth:230},void 0,l.length>1&&s()(g.a,{labelText:Object(p.default)("Location"),name:"targetSectionLocationID",size:v.e.SMALL,initialValue:null==r?a(l):r,values:l})))}var o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),
n(10)),d=n.n(u),p=n(3),h=n(1558),f=n(1559),v=n(24),g=n(1560);t.a=r},function(e,t){e.exports={baseForm:"MediaSubscriptionForm-baseForm-2bT5U",advancedForm:"MediaSubscriptionForm-advancedForm-26WFw",cancelConfirmation:"MediaSubscriptionForm-cancelConfirmation-2aCvU",advancedSettings:"MediaSubscriptionForm-advancedSettings-3dyPl",baseSettings:"MediaSubscriptionForm-baseSettings-2ssnb",footer:"MediaSubscriptionForm-footer-2U6dh ModalFooter-modalFooter-30WIB",
cancelConfirmationFooter:"MediaSubscriptionForm-cancelConfirmationFooter-3JtIn ModalFooter-modalFooter-30WIB",advancedIcon:"MediaSubscriptionForm-advancedIcon-j3Yxg"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(20),v=n(61),g=n(88),m=n(115),y=n(84),b=n(250),I=n(3),S=n(27),M=n(145),D=n(26),C=n(139),j=n(217),P=n(98),O=n(24),T=n(719),E=n(3727),w=n.n(E),A=function(e){function t(){return o()(this,t),
l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidUpdate=function(e,t){e.isMediaSubscriptionDeleting&&!this.props.isMediaSubscriptionDeleting&&null==this.props.mediaSubscriptionDeleteError&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.mediaSubscriptionKey,r=e.target,o=e.metadataType,s=e.isMediaSubscriptionDeleting,l=e.mediaSubscriptionDeleteError,c=e.onCreatePress,u=e.onModalClose,d=e.onDelete,p=Object(S.t)(o),E=p.typeString,A=M.f.get(E),x=A.title;return a()(P.a,{onModalClose:u},void 0,a()(y.a,{},void 0,Object(I.default)("Record Options")),l&&a()(j.a,{
errorMessage:Object(b.a)(l,Object(I.default)("There was a problem with canceling this subscription. Please try again."))}),a()(v.a,{},void 0,a()(T.a,{serverEntityID:t,providerEntityID:n,target:r},void 0,a()("div",{className:w.a.errorMessage},void 0,Object(I.default)("{type} Library Required",{type:x})),a()("p",{},void 0,i?Object(I.default)("This recording cannot be scheduled because you don\u2019t yet have a library for {type}. Please create a library or cancel the recording.",{type:x
}):Object(I.default)("This recording cannot be scheduled because you don\u2019t yet have a library for {type}. Please try recording again after you have created your library.",{type:x})),a()(f.a,{kind:O.b.PRIMARY,onPress:c},void 0,a()(D.a,{name:"plex-icon-add-560",className:w.a.addIcon})," ",Object(I.default)("Create Library")))),a()(g.a,{},void 0,a()(m.a,{},void 0,i&&a()(C.a,{isSpinning:s,kind:O.b.DANGER,onPress:d},void 0,Object(I.default)("Cancel Recording")),a()(h.a,{onPress:u
},void 0,Object(I.default)("Cancel")))))},t}(p.Component);t.a=A},function(e,t){e.exports={errorMessage:"MediaSubscriptionNoLibrary-errorMessage-39UUf",addIcon:"MediaSubscriptionNoLibrary-addIcon-2B_Pq"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{isRecording:!!e,recordingProgress:e&&e.progress}})}var a=n(11),r=n(4),o=(n.n(r),n(1561)),s=n(3729);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.isRecording,n=e.recordingProgress,i=e.onPress;return r()("div",{className:f.a.recordButton},void 0,r()(u.a,{className:t?f.a.playerButtonRecording:f.a.playerButton,icon:"plex-icon-player-record-560","data-qa-id":"recordButton",title:Object(l.default)("Record"),onPress:i}),t?r()(c.a,{size:v,containerClassName:f.a.recordingProgressBarContainer,backgroundClassName:f.a.recordingProgressBackground,lineWidth:2,progress:n,showProgressText:!1}):null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(3)),c=n(320),u=n(479),d=n(46),p=n.n(d),h=n(3730),f=n.n(h),v=parseInt(p.a.playerIconButtonSize,10);t.a=i},function(e,t){e.exports={recordButton:"LiveTVRecordButton-recordButton-3o22m",recordingProgressBarContainer:"LiveTVRecordButton-recordingProgressBarContainer-2S-XB undefined",recordingProgressBackground:"LiveTVRecordButton-recordingProgressBackground-3vdcH CircularProgressBar-circularProgressBarBackground-1a1VU CircularProgressBar-circularProgressBarBackground-RvD8O",
playerButton:"LiveTVRecordButton-playerButton-3pFcS PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7",playerButtonRecording:"LiveTVRecordButton-playerButtonRecording-2gpjK LiveTVRecordButton-playerButton-3pFcS PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7"}},function(e,t){e.exports={recordButtonContainer:"LiveTVRecord-recordButtonContainer-vuoUX"}},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(l.a)(),function(e){
var t=c.f,n=Object(d.a)(null,f,e.type,e.subtype,e,t);return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:e.entityID,type:e.type,metadataKey:e.key,imageWidth:n.width,imageHeight:n.height,imageUrl:n.url}})}function a(e,t){var n=t.playerType,i={playerType:n};return{onExpandPress:function(t){e(s.b(i))}}}var r=n(11),o=n(4),s=(n.n(o),n(993)),l=n(178),c=n(33),u=n(3733),d=n(261),p=n(46),h=n.n(p),f=parseInt(h.a.playerControlsPosterHeight,10)
;t.a=Object(r.connect)(i,a)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.cardClassName,i=e.serverEntityID,a=e.providerEntityID,o=e.metadataItemEntityID,s=e.metadataKey,d=e.type,h=e.disableExpandButton,f=e.imageWidth,v=e.imageHeight,g=e.imageUrl,m=e.isMusic,y=e.onExpandPress,b=m?"music":s;return r()("div",{className:t,style:{width:f}},void 0,r()("div",{className:p.a.cardContainer},void 0,r()(u.a,{className:p.a.expandButton,"data-qa-id":"expandPlayerButton",
icon:"plex-icon-player-expand-560",isDisabled:h,title:Object(l.default)("Expand Player"),onPress:y}),r()(c.a,{cardClassName:n,serverEntityID:i,providerEntityID:a,metadataItemEntityID:o,metadataKey:b,type:d,imageWidth:f,imageHeight:v,imageUrl:g,showLinkOnly:!0,showOverlay:!1})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(404),u=n(479),d=n(3748),p=n.n(d);i.defaultProps={className:p.a.miniPlayerPoster,cardClassName:p.a.card},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,o=e.itemServerEntityID,l=e.itemProviderEntityID,u=e.type,d=e.subtype,v=e.selectionType,m=e.activeSelectionType,y=e.isSelected,b=e.isOffscreen,I=e.visibleFace,S=e.imageWidth,M=e.imageHeight,D=e.imageUrl,C=e.imageTransitionProps,j=e.icon,P=e.isFolder,O=e.showOverlay,T=e.onImageLoad,E=e.onImageError,w=e.onSelectItem,A=e.onDeselectItem,x=c()(e,["className","serverEntityID","providerEntityID","metadataItemEntityID","itemServerEntityID","itemProviderEntityID","type","subtype","selectionType","activeSelectionType","isSelected","isOffscreen","visibleFace","imageWidth","imageHeight","imageUrl","imageTransitionProps","icon","isFolder","showOverlay","onImageLoad","onImageError","onSelectItem","onDeselectItem"])
;return s()("div",{className:(t||"")+" "+(g.a[I]||"")+" "+(y&&g.a.isSelected||""||"")},void 0,s()(h.a,{serverEntityID:n,providerEntityID:i,itemServerEntityID:o,itemProviderEntityID:l,type:u,subtype:d,isOffscreen:b,url:D,width:S,height:M,transitionProps:C,icon:j,isFolder:P,onLoad:T,onError:E}),O?p.a.createElement(f.a,r()({serverEntityID:n,providerEntityID:i,itemServerEntityID:o,itemProviderEntityID:l,metadataItemEntityID:a,type:u,selectionID:a,selectionType:v,activeSelectionType:m,isSelected:y,
onSelectItem:w,onDeselectItem:A},x)):null)}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(236),f=n(3735),v=n(3746),g=n.n(v);i.defaultProps={className:g.a.face,showOverlay:!0},t.a=i},function(e,t,n){"use strict";function i(){return Object(h.createSelector)(function(e,t){return t.type},function(e,t){return t.listType},Object(g.a)(),I.c,b.c,S.a,Object(w.a)(),Object(m.a)(),Object(y.a)(),function(e,t,n){
var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments[5],o=arguments[6],s=arguments[7],l=arguments[8],c=n.subtype,u=n.title,d=n.viewCount,p=n.viewOffset,h=n.unviewedLeafCount,f=n.smart,v=n.icon,g=n.metadataState,m=n.mediaState,y=n.deletedAt,b=n.subscriptionID,I=n.subscriptionType,S=n.grandparentSubscriptionID,O=n.grandparentSubscriptionType,E=n.isFolder,w=n.isPlaylist,A=n.Media,N=Object(x.j)(i,a,r,n),L=!!a.features.subscribe,k=Object(x.e)(i,a,r,n),R=t===P.g&&Object(x.f)(i,a,r,n),z=t===P.g&&Object(x.o)(i,a,r,n),U=Object(x.m)(i,a,r,n),B=P.r(e),F=P.q(e),_=A.length,V=null!=b||null!=S,H=!!f&&w,Q=v===M.a,Y=g===D.b,G=g===D.c||g===D.a,W=!Y&&!G&&!!m,K=Y||G||W,Z=!K&&!!y
;return{server:i,provider:a,route:o,title:u,viewCount:d,viewOffset:p,viewPercent:s,unviewedLeafCount:h,mediaCount:_,subscriptionType:I||O,type:e,subtype:c,isSubscribed:V,isMultiVersion:Object(T.a)(n),isSmart:H,isFavorite:Q,isMatching:Y,isProcessing:G,isAnalyzing:W,isRefreshing:K,isTrash:Z,showLink:!!o,showUnplayedBadge:Object(C.a)(n,B),showUnplayedNumberBadge:Object(j.a)(n,F),showPlay:N,showRecord:L,showEdit:k,showFavorite:R,showUnfavorite:z,showSelect:U,showMore:!E,beginsAt:l&&l.beginsAt,
endsAt:l&&l.endsAt}})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,itemServerEntityID:t.itemServerEntityID||t.serverEntityID,itemProviderEntityID:t.itemProviderEntityID||t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage,metricsContext:t.metricsContext};return{onPlayPress:function(){e(Object(v.m)(c()({},n,{options:{containerKey:t.containerKey,listType:t.listType}})))},onPlayLiveTVPress:function(){
e(Object(f.l)(c()({},n,{options:{containerKey:t.containerKey,listType:t.listType}})))},onEditPress:function(){e(Object(E.editMetadataItem)(n))},onFavoritePress:function(){e(Object(E.favoriteMetadataItem)(n))},onUnfavoritePress:function(){e(Object(E.unfavoriteMetadataItem)(n))}}}function r(e){var t=(e.server,e.provider),n=s()(e,["server","provider"]),i=c()({},n,{itemServerEntityID:e.itemServerEntityID||e.serverEntityID,itemProviderEntityID:e.itemProviderEntityID||e.providerEntityID})
;return t.protocols.livetv?p.a.createElement(L.a,i):e.showSelect&&!e.showLinkOnly?p.a.createElement(R,i):p.a.createElement(k.a,i)}var o=n(12),s=n.n(o),l=n(6),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(4),f=(n.n(h),n(206)),v=n(77),g=n(21),m=n(3736),y=n(480),b=n(39),I=n(53),S=n(204),M=n(921),D=n(1469),C=n(3737),j=n(3739),P=n(27),O=n(58),T=n(1562),E=n(191),w=n(481),A=n(576),x=n(326),N=n(397),L=(n(99),n(3740)),k=n(1564),R=Object(A.a)(k.a);t.a=Object(O.a)(i,a,N.a)(r)},function(e,t,n){"use strict"
;function i(){return Object(a.createSelector)(Object(o.a)(),function(e){return e&&e.viewOffset?Object(r.a)(e.viewOffset,e.duration):0})}t.a=i;var a=n(4),r=(n.n(a),n(528)),o=n(21)},function(e,t,n){"use strict";function i(e,t){var n=e.type,i=e.subtype,s=e.viewCount,l=e.viewOffset,c=e.saved;if(null!=c&&!c)return!1;var u=n===r.l&&i===a.b,d=n===r.e&&i===a.c;return(u||d||Object(o.a)(e,t))&&!s&&!l}t.a=i;var a=n(106),r=n(27),o=n(3738)},function(e,t,n){"use strict";function i(e,t){
var n=e.isLibraryItem,i=e.isFolder,r=e.isExtra;return n&&!i&&!r&&t.mediaType===a.d}t.a=i;var a=n(63)},function(e,t,n){"use strict";function i(e,t){var n=e.type,i=e.subtype,s=e.saved,l=e.unviewedLeafCount,c=e.isLibraryItem,u=e.isExtra;if(null!=s&&!s)return!1;var d=c&&!u&&o.u(n)&&t.mediaType===a.d,p=n===o.k&&(i===r.b||i===r.c);return(d||p)&&!!l}t.a=i;var a=n(63),r=n(106),o=n(27)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),
n(0)),h=(n.n(p),n(20)),f=n(47),v=n(28),g=n(575),m=n(222),y=n(705),b=n(289),I=n(3741),S=n(3744),M=n.n(S),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:!1},a._moreButtonID=Object(f.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},
t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,o=e.route,s=e.type,l=e.title,c=e.subscriptionType,u=e.isSubscribed,d=e.showLink,p=e.beginsAt,f=e.endsAt,v=e.showPlay,S=e.showRecord,D=e.onPlayLiveTVPress,C=this.state.isSubscribeModalOpen;return a()("div",{className:(t||"")+" "+(M.a.overlay||"")},void 0,a()("div",{className:M.a.background}),u&&a()("div",{className:M.a.subscriptionBadge},void 0,a()(g.a,{type:c
})),d&&a()(h.a,{className:M.a.link,to:o}),a()(I.a,{className:M.a.progress,beginsAt:p,endsAt:f}),v&&a()(m.a,{className:d?M.a.playButton:M.a.playCoverButton,circleClassName:M.a.playCircle,tabIndex:"-1",title:l,"data-qa-id":"metadataPosterPlayButton",onPress:D}),!v&&S&&a()(y.a,{className:d?M.a.recordButton:M.a.recordCoverButton,"data-qa-id":"metadataPosterRecordButton",circleClassName:M.a.recordCircle,iconClassName:M.a.recordIcon,tabIndex:"-1",title:l,onPress:this.onRecordPress}),v&&S&&a()(y.a,{
className:M.a.recordButtonBottom,"data-qa-id":"metadataPosterRecordButton",circleClassName:M.a.recordCircleBottom,iconClassName:M.a.recordIconBottom,tabIndex:"-1",title:l,onPress:this.onRecordPress}),a()(b.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,isOpen:C,subscriptionType:s,onModalClose:this.onSubscribeModalClose}))},t}(p.Component);t.a=D},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(28)),f=n(3742),v=n(1563),g=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.tick=function(){a.setState(a.getState(a.props)),a.setTickTimeout()},a.state=a.getState(n),a}return u()(t,e),t.prototype.componentWillMount=function(){this.setTickTimeout()},t.prototype.componentWillReceiveProps=function(e,t){this.setState(this.getState(e))},t.prototype.shouldComponentUpdate=function(e,t){return Object(h.a)(this,e,t)},t.prototype.componentWillUnmount=function(){
this.tickTimeout&&clearTimeout(this.tickTimeout)},t.prototype.getState=function(e){var t=e.beginsAt,n=e.endsAt;return{progress:Object(f.a)(t,n,Date.now()/1e3)}},t.prototype.setTickTimeout=function(){this.tickTimeout=setTimeout(this.tick,6e4-Date.now()%6e4)},t.prototype.render=function(){var e=this.props.className,t=this.state.progress;return t?a()(v.a,{className:e,progress:t}):null},t}(p.Component);t.a=g},function(e,t,n){"use strict";function i(e,t,n){var i=t-e,r=n-e;return Object(a.a)(r,i)}
t.a=i;var a=n(528)},function(e,t){e.exports={progress:"PosterCardOverlayProgress-progress-16k0B",progressTrack:"PosterCardOverlayProgress-progressTrack-3luzP",progressBar:"PosterCardOverlayProgress-progressBar-3k291"}},function(e,t){e.exports={overlay:"EPGPosterCardOverlay-overlay-21AW0",background:"EPGPosterCardOverlay-background-nZkC7",link:"EPGPosterCardOverlay-link-hVinz",subscriptionBadge:"EPGPosterCardOverlay-subscriptionBadge-2DXam MetadataPosterCardOverlay-badge-1FU-p",
subscriptionBadgeIcon:"EPGPosterCardOverlay-subscriptionBadgeIcon-2CSvd",progress:"EPGPosterCardOverlay-progress-2KBp3 PosterCardOverlayProgress-progress-16k0B",button:"EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",playButton:"EPGPosterCardOverlay-playButton-2VFIk RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",
recordButton:"EPGPosterCardOverlay-recordButton-hPelU RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",playCoverButton:"EPGPosterCardOverlay-playCoverButton-virTg EPGPosterCardOverlay-playButton-2VFIk RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",
playCircle:"EPGPosterCardOverlay-playCircle-3e6vz MetadataPosterCardOverlay-playCircle-M67q6 PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",recordCoverButton:"EPGPosterCardOverlay-recordCoverButton-3QBBo EPGPosterCardOverlay-recordButton-hPelU RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",
recordCircle:"EPGPosterCardOverlay-recordCircle-fVDxD RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",recordIcon:"EPGPosterCardOverlay-recordIcon-1-ns1 RecordIcon-recordIcon-2ygXS",
recordButtonBottom:"EPGPosterCardOverlay-recordButtonBottom-18I3q EPGPosterCardOverlay-recordButton-hPelU RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",recordCircleBottom:"EPGPosterCardOverlay-recordCircleBottom-3rJ86 EPGPosterCardOverlay-recordCircle-fVDxD RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",
recordIconBottom:"EPGPosterCardOverlay-recordIconBottom-1cF9x RecordIcon-recordIcon-2ygXS",isActionsMenuOpen:"EPGPosterCardOverlay-isActionsMenuOpen-1O_P2"}},function(e,t){e.exports={overlay:"MetadataPosterCardOverlay-overlay-1uMpL",background:"MetadataPosterCardOverlay-background-2EwyB",link:"MetadataPosterCardOverlay-link-1Swhl",badge:"MetadataPosterCardOverlay-badge-1FU-p",topLeftBadge:"MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",
versionBadge:"MetadataPosterCardOverlay-versionBadge-1cDAu MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",versionBadgeIcon:"MetadataPosterCardOverlay-versionBadgeIcon-JkU8E",smartBadge:"MetadataPosterCardOverlay-smartBadge-2YOF_ MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",smartBadgeIcon:"MetadataPosterCardOverlay-smartBadgeIcon-378Sy",
favoriteBadge:"MetadataPosterCardOverlay-favoriteBadge-1jLkE MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",favoriteBadgeIcon:"MetadataPosterCardOverlay-favoriteBadgeIcon-2CJhP",unplayedBadge:"MetadataPosterCardOverlay-unplayedBadge-2hKHo MetadataPosterCardOverlay-badge-1FU-p",unplayedTagContainer:"MetadataPosterCardOverlay-unplayedTagContainer-1uFYq",
unplayedTag:"MetadataPosterCardOverlay-unplayedTag-3hwoi MetadataPosterCardOverlay-unplayedBadge-2hKHo MetadataPosterCardOverlay-badge-1FU-p",progress:"MetadataPosterCardOverlay-progress-2voxf PosterCardOverlayProgress-progress-16k0B",button:"MetadataPosterCardOverlay-button-M43H-",centerCircle:"MetadataPosterCardOverlay-centerCircle-1Mg-s",playButton:"MetadataPosterCardOverlay-playButton-1fjhk PlayButton-playButton-3WX8X MetadataPosterCardOverlay-button-M43H-",
playCoverButton:"MetadataPosterCardOverlay-playCoverButton-I7oU3 MetadataPosterCardOverlay-playButton-1fjhk PlayButton-playButton-3WX8X MetadataPosterCardOverlay-button-M43H-",playCircle:"MetadataPosterCardOverlay-playCircle-M67q6 PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",selectButton:"MetadataPosterCardOverlay-selectButton-3rwSV SelectButton-selectButton-3Kbjm MetadataPosterCardOverlay-button-M43H-",
selectCircle:"MetadataPosterCardOverlay-selectCircle-3ql8S SelectButton-selectCircle-3tdvG",coverButton:"MetadataPosterCardOverlay-coverButton-2Dm9P",selectCoverButton:"MetadataPosterCardOverlay-selectCoverButton-ukQUf MetadataPosterCardOverlay-coverButton-2Dm9P",deselectCoverButton:"MetadataPosterCardOverlay-deselectCoverButton-3mzek MetadataPosterCardOverlay-coverButton-2Dm9P",editButton:"MetadataPosterCardOverlay-editButton-7oR-Q MetadataPosterCardOverlay-button-M43H-",
favoriteButton:"MetadataPosterCardOverlay-favoriteButton-3SmN_ MetadataPosterCardOverlay-button-M43H-",moreButton:"MetadataPosterCardOverlay-moreButton-3FK-K MetadataPosterCardOverlay-button-M43H-",removeButton:"MetadataPosterCardOverlay-removeButton-3hIPx MetadataPosterCardOverlay-button-M43H-",isActionsMenuOpen:"MetadataPosterCardOverlay-isActionsMenuOpen-AvHIX",isDragging:"MetadataPosterCardOverlay-isDragging-1XK1P",hasActiveSelection:"MetadataPosterCardOverlay-hasActiveSelection-2pflV",
refreshingCircle:"MetadataPosterCardOverlay-refreshingCircle-3Ebpe MetadataPosterCardOverlay-centerCircle-1Mg-s",trashCircle:"MetadataPosterCardOverlay-trashCircle-XoEoZ MetadataPosterCardOverlay-centerCircle-1Mg-s",isSelected:"MetadataPosterCardOverlay-isSelected-2muun",isConflictingTypeSelected:"MetadataPosterCardOverlay-isConflictingTypeSelected-E8CIx",isModifierKeyPressed:"MetadataPosterCardOverlay-isModifierKeyPressed-2cmkd",isRefreshing:"MetadataPosterCardOverlay-isRefreshing-2cSpK",
isTrash:"MetadataPosterCardOverlay-isTrash-1RTBu",refreshingSpinnerContainer:"MetadataPosterCardOverlay-refreshingSpinnerContainer-1ERDt",refreshingSpinner:"MetadataPosterCardOverlay-refreshingSpinner-ipJiy",refreshingIcon:"MetadataPosterCardOverlay-refreshingIcon-3dF55"}},function(e,t){e.exports={poster:"MetadataPosterCardFace-poster-L2P6r",face:"MetadataPosterCardFace-face--dz_D MetadataPosterCardFace-poster-L2P6r",isSelected:"MetadataPosterCardFace-isSelected-1XUgk",
faceFront:"MetadataPosterCardFace-faceFront-1bxHG",faceBack:"MetadataPosterCardFace-faceBack-1ofDH"}},function(e,t){e.exports={cardContainer:"MetadataPosterCard-cardContainer-2gRcQ",card:"MetadataPosterCard-card-3bztR",isFlipped:"MetadataPosterCard-isFlipped-2lUII"}},function(e,t){e.exports={miniPlayerPoster:"MiniPlayerPoster-miniPlayerPoster-13Yue",cardContainer:"MiniPlayerPoster-cardContainer-1675a",
expandButton:"MiniPlayerPoster-expandButton-11onC PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7",card:"MiniPlayerPoster-card-1z_VB MetadataPosterCard-card-3bztR"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{metadataActionProps:e}})}var a=n(11),r=n(4),o=(n.n(r),n(1479)),s=n(3750);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(10),m=n.n(g),y=n(47),b=n(3),I=n(971),S=n(479),M={showDelete:!1,showDeleteVersion:!1,showEdit:!1,showFixMatch:!1,showMarkUnplayed:!1,showMarkPlayed:!1,showMatch:!1,showOptimize:!1,showPlay:!1,showPlayAll:!1,showPlayMusicVideo:!1,showPlayPlexMix:!1,showPlayTrailer:!1,showPlayVersion:!1,showQueue:!1,showRefresh:!1,showSelect:!1,showShuffle:!1,showSplitApart:!1,showUnmatch:!1
},D=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onPress=function(){a.setState(function(e,t){return{isMenuOpen:!e.isMenuOpen}},function(){a.props.onMenuChange&&a.props.onMenuChange(a.state.isMenuOpen)})},a.onMenuClose=function(){a.setState({isMenuOpen:!1},function(){a.props.onMenuChange&&a.props.onMenuChange(!1)})},a.state={isMenuOpen:!1},a._menuButtonID=Object(y.a)(),a}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataActionProps,s=e.isDisabled,l=o()({},r,M);return m.a.values(l).some(function(e){return e})?a()("span",{},void 0,a()(S.a,{id:this._menuButtonID,"data-qa-id":"moreButton",icon:"plex-icon-player-more-560",isDisabled:s,title:Object(b.default)("More Actions"),onPress:this.onPress}),v.a.createElement(I.a,o()({serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,target:this._menuButtonID,
isOpen:this.state.isMenuOpen},M,{onMenuClose:this.onMenuClose}))):null},t}(f.Component);t.a=D},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3)),f=n(1565),v=n(46),g=n.n(v),m=n(479),y=parseInt(g.a.playerVolumeSliderHeight,10),b=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onWheelDelta=function(e){a.props.onVolumeChange(e)},a.onWheel=Object(f.a)({callback:a.onWheelDelta,
maxAbsDelta:y/10}),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.volume,i=e.onPress,r="plex-icon-player-volume-mute-560";return n>60?r="plex-icon-player-volume-high-560":n>40?r="plex-icon-player-volume-mid-560":n>0&&(r="plex-icon-player-volume-low-560"),a()("span",{onWheel:this.onWheel},void 0,a()(m.a,{className:t,title:0===n?Object(h.default)("Unmute Volume"):Object(h.default)("Mute Volume"),"data-qa-id":"volumeButton",icon:r,onPress:i}))},t}(p.Component)
;t.a=b},function(e,t,n){e.exports={default:n(3753),__esModule:!0}},function(e,t,n){n(3754),e.exports=9007199254740991},function(e,t,n){var i=n(169);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(3756)),f=n(1565),v=n(46),g=n.n(v),m=n(3758),y=n.n(m),b=parseInt(g.a.playerVolumeSliderHeight,10),I=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onWheelDelta=function(e){a.onChange({positionDelta:e})},a.onChange=function(e){var t=e.positionDelta;a.props.onVolumeChange(t)},a.onWheel=Object(f.a)({callback:a.onWheelDelta,maxAbsDelta:b/10}),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.volume;return a()(h.a,{className:t,trackClassName:y.a.track,fillClassName:y.a.fill,showFill:!0,autoHideThumb:!0,stepSize:1,value:n,onChange:this.onChange,onWheel:this.onWheel})},t
}(p.Component);I.defaultProps={className:y.a.slider},t.a=I},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({},e,{isVertical:!0}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(389),c=n(3757),u=n.n(c);i.defaultProps={className:u.a.slider,fillClassName:u.a.fill,thumbClassName:u.a.thumb,thumbTrackClassName:u.a.thumbTrack,trackClassName:u.a.track},t.a=i},function(e,t){e.exports={slider:"VerticalSlider-slider-25iZh Slider-slider-2oLVT",
fill:"VerticalSlider-fill-2HISo Slider-fill-35GFq",thumb:"VerticalSlider-thumb-hm7PP Slider-thumb-2QGiU Link-link-2n0yJ",thumbTrack:"VerticalSlider-thumbTrack-36XvC Slider-thumbTrack-21hGV",track:"VerticalSlider-track-1RVQf Slider-track-28JOS"}},function(e,t){e.exports={slider:"VolumeSlider-slider-1QXdT VerticalSlider-slider-25iZh Slider-slider-2oLVT",track:"VolumeSlider-track-2WJDz VerticalSlider-track-1RVQf Slider-track-28JOS",
fill:"VolumeSlider-fill-3XkYy VerticalSlider-fill-2HISo Slider-fill-35GFq"}},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(d.a)(),Object(u.a)(),function(e,t){var n=t.title,i=t.summary,a=t.originallyAvailableAt,r=t.addedAt;return{title:n,summary:i,index:e.playQueueSelectedItemOffset,size:e.length,dateTaken:a||Object(p.default)(r,"yyyy-MM-dd")}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),
n(21)),d=n(1498),p=n(573),h=n(3760),f=Object(l.connect)(i)(h.a);f.propTypes=r()({},f.propTypes,{metadataItemEntityID:s.a.string.isRequired,playerType:s.a.string.isRequired}),t.a=f},function(e,t,n){"use strict";function i(e){var t=e.title,n=e.summary,i=e.dateTaken,a=e.index,o=e.size,s="";i&&(s+=Object(c.default)(i)),n&&(s+=s?" "+l.a+" "+n:" "+n);var h=!(!t||!t.length),v=!!s.length,g=!!o;return r()("div",{className:f.a.container},void 0,h?r()(d.a,{component:p.a,title:t}):null,v?r()(d.a,{
component:p.a,isSecondary:h,title:s}):null,g?r()(d.a,{component:p.a,isSecondary:h||v,title:Object(u.default)("{currentIndex} of {size}",{currentIndex:a+1,size:o})}):null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(305),u=n(3),d=n(288),p=n(565),h=n(3761),f=n.n(h);t.a=i},function(e,t){e.exports={container:"PhotoMetadataControls-container-1FKfK PlayerControlsMetadata-container-2wqMf"}},function(e,t){e.exports={controls:"PlayerControls-controls-e59ab",
buttonGroup:"PlayerControls-buttonGroup-4L6Pw",buttonGroupLeft:"PlayerControls-buttonGroupLeft-3vLk- PlayerControls-buttonGroup-4L6Pw",buttonGroupCenter:"PlayerControls-buttonGroupCenter-11q8i PlayerControls-buttonGroup-4L6Pw",buttonGroupRight:"PlayerControls-buttonGroupRight-18LS_ PlayerControls-buttonGroup-4L6Pw",volumeButton:"PlayerControls-volumeButton-hSQZX PlayerIconButton-playerButton-1DmNp IconButton-button-9An-7",balanceLeft:"PlayerControls-balanceLeft--vfZA",
volumeSlider:"PlayerControls-volumeSlider-9c0JE VolumeSlider-slider-1QXdT VerticalSlider-slider-25iZh Slider-slider-2oLVT",hasLandscapePoster:"PlayerControls-hasLandscapePoster-23Gat",hasSquarePoster:"PlayerControls-hasSquarePoster--hAg0"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{hasLiveTVProtocol:e.protocols.includes("livetv")}})}var a=n(11),r=n(4),o=(n.n(r),n(262)),s=n(3764);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){
"use strict";function i(e){var t=e.isAdVisible,n=e.hasLiveTVProtocol,i=e.adPositionMilliseconds,a=e.adDurationMilliseconds,o=s()(e,["isAdVisible","hasLiveTVProtocol","adPositionMilliseconds","adDurationMilliseconds"]);return t?u.a.createElement(p.a,r()({},o,{positionMilliseconds:i,durationMilliseconds:a,showBuffer:!0})):n?u.a.createElement(h.a,o):u.a.createElement(d.a,r()({},o,{showBuffer:!0}))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(1566),p=n(3770),h=n(3772)
;t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Media;return t&&t.length?{mediaItems:t}:{}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(3766);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=Object(y.a)(e);if(null==t||null==t.width||null==t.height)return w;var n=t.width,i=t.height,a=j,r=j;return n>i?a=Math.round(a*(n/i)):r=Math.round(r*(i/n)),
{containerWidth:a,containerHeight:r}}function a(e,t,n){var i=e.x-t/2;return i<0?i=0:i+t>window.innerWidth&&(i=window.innerWidth-t),{left:i,top:e.y-n-P,height:n}}function r(e,t,n){var i=n===I.e.LARGE?T:O,a=t/2-i/2,r=e.x-t/2;if(r<0){var o=E,s=e.x-i/2;a=Math.max(s,o)}else if(r+t>window.innerWidth){var l=t-i-E,c=t-(window.innerWidth-e.x)-i/2;a=Math.min(c,l)}return{left:a}}var o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),
n(310)),m=n(3767),y=n(357),b=n(185),I=n(24),S=n(46),M=n.n(S),D=n(3768),C=n.n(D),j=99,P=10,O=parseInt(M.a.seekBarTooltipSmallWidth,10),T=parseInt(M.a.seekBarTooltipLargeWidth,10),E=4,w={containerWidth:j,containerHeight:j},A=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.render=function(){
var e=this.props,t=e.tooltipClassName,n=e.serverEntityID,o=e.size,l=e.position,c=e.hoverValue,u=e.mediaItems,d=e.mediaIndex,p=e.partIndex,h=e.formatValue,f=e.isVisible;null!=c&&(this._formattedTime=h(c));var v=u&&u[d],g=v&&v.Part[p],y=Object(m.a)(g,c);y&&(this._imageUrl=y);var I=i(v),S=I.containerWidth,M=I.containerHeight,D=a(l,S,M),j=r(l,S,o);return s()("div",{className:f?C.a.visibleContainer:C.a.hiddenContainer,style:D},void 0,this._imageUrl&&s()(b.a,{className:C.a.thumbnail,serverEntityID:n,
url:this._imageUrl,width:S,height:M}),s()("div",{className:(t||"")+" "+(C.a[o]||""),style:j},void 0,this._formattedTime))},t}(v.Component);A.defaultProps={tooltipClassName:C.a.tooltip,size:I.e.SMALL,formatValue:g.a},t.a=A},function(e,t,n){"use strict";function i(e,t){if(e&&null!=t){var n=Object(a.a)(e);return null!=n?"/library/parts/"+e.id+"/indexes/"+n+"/"+Math.floor(t):void 0}}t.a=i;var a=n(1226)},function(e,t){e.exports={visibleContainer:"SeekBarThumbnail-visibleContainer-3eifZ",
hiddenContainer:"SeekBarThumbnail-hiddenContainer-15Ujj SeekBarThumbnail-visibleContainer-3eifZ",thumbnail:"SeekBarThumbnail-thumbnail-2rxzk",tooltip:"SeekBarThumbnail-tooltip-WCnO4",small:"SeekBarThumbnail-small-21D-m",large:"SeekBarThumbnail-large-1NQZT"}},function(e,t){e.exports={seekBar:"SeekBar-seekBar-2UK3i Slider-slider-2oLVT",seekBarTrack:"SeekBar-seekBarTrack-3Gu5R Slider-track-28JOS",seekBarFill:"SeekBar-seekBarFill-1Lcu0 Slider-fill-35GFq",
seekBarBuffer:"SeekBar-seekBarBuffer-3bUz9 Slider-secondaryFill-31_05 Slider-fill-35GFq",noFillTransition:"SeekBar-noFillTransition-2hHzC"}},function(e,t,n){"use strict";function i(e){return null!=e.durationMilliseconds?l.a.createElement(c.a,r()({fillClassName:d.a.seekBarFill,isDisabled:!0},e)):null}var a=n(6),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(1013),u=n(3771),d=n.n(u);t.a=i},function(e,t){e.exports={seekBarFill:"AdSeekBar-seekBarFill-1Qc6w SeekBar-seekBarFill-1Lcu0 Slider-fill-35GFq"}
},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(v,Object(u.a)(),Object(c.a)(),Object(p.a)(),Object(d.a)(),Object(h.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=arguments[4],o=arguments[5],s=n.beginsAt,l=n.endsAt,c=o.serverEntityID,u=o.controllable,d=l-s,p=r()({serverEntityID:c,metadataItemEntityID:t.entityID,canSeek:!!d,beginsAt:s,endsAt:l,
durationSeconds:d,timeFormat:e},a);return u&&!u.seekTo&&(p.canSeek=!1),i&&(p.streamStartedAt=i.startedAt,p.currentPosition=i.currentPosition,p.lastSeekPosition=i.lastSeekPosition),p})}var a=n(6),r=n.n(a),o=n(11),s=n(4),l=(n.n(s),n(206)),c=n(1003),u=n(714),d=n(1567),p=n(205),h=n(89),f=n(3773),v=Object(s.createSelector)(function(e){return e.experienceSettings.timeFormat},function(e){return e.replace(":mm",":mm:ss")}),g={onSeek:l.i};t.a=Object(o.connect)(i,g)(f.a)},function(e,t,n){"use strict"
;function i(e){var t=e.currentPosition,n=e.positionMilliseconds,i=e.streamStartedAt;return e.lastSeekPosition?1e3*t:1e3*i+n}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(573),y=n(990),b=n(1013),I=n(24),S=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.formatPlayerTime=function(e){
var t=i.props.timeFormat;return Object(m.default)(e/1e3,t)},i.onSeek=function(e){var t=e.positionSeconds,n=i.props,a=n.seekRangeStartedAtSeconds,r=n.seekStartSeconds,o=n.seekEndSeconds,s=a+r,l=a+o;t<s?t=s:t>l&&(t=l),i.props.onSeek({playerType:i.props.playerType,seekPosition:t})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.canSeek,n=e.currentPosition,a=(e.positionMilliseconds,e.beginsAt),o=e.endsAt,l=(e.durationSeconds,e.streamStartedAt,e.timeFormat,
e.seekRangeStartedAtSeconds),c=e.seekStartSeconds,u=e.seekEndSeconds,d=s()(e,["canSeek","currentPosition","positionMilliseconds","beginsAt","endsAt","durationSeconds","streamStartedAt","timeFormat","seekRangeStartedAtSeconds","seekStartSeconds","seekEndSeconds"]);if(!t)return g.a.createElement(b.a,r()({},d,{positionMilliseconds:1,offsetMilliseconds:0,durationMilliseconds:2,showBuffer:!1,canSeek:!0,isDisabled:!0,formatValue:this.formatCurrentTime,size:I.e.LARGE,onSeek:this.onSeek}))
;var p=1e3*(l?l+c:n),h=1e3*(l?l+u:n),f=1e3*a,v=1e3*(o-1),m=Math.max(f,p),y=Math.min(v,h),S=i(this.props);return g.a.createElement(b.a,r()({},d,{positionMilliseconds:S,offsetMilliseconds:f,durationMilliseconds:v,bufferStartMilliseconds:m,bufferEndMilliseconds:y,showBuffer:!0,canSeek:t,formatValue:this.formatPlayerTime,size:I.e.LARGE,onSeek:this.onSeek}))},t}(v.Component);S.defaultProps={beginsAt:0,endsAt:0,streamStartedAt:0,seekRangeStartedAtSeconds:0},t.a=Object(y.a)(S)},function(e,t,n){
"use strict";function i(){return Object(o.createSelector)(u.a,Object(l.a)(),Object(c.a)(),function(e,t,n){var i=Object(d.a)(t,n),a=i.disablePreviousButton,r=i.disableSkipForwardButton,o=i.disableNextButton;return{showRecordButton:!!e.features.subscribe,showRepeatButton:!1,showSettingsButton:!0,showSkipBackButton:!0,showSkipForwardButton:!0,disablePreviousButton:a,disableSkipForwardButton:r,disableNextButton:o}})}function a(e,t){var n=t.playerType,i={playerType:n};return{
onPreviousPress:function(t){e(s.h(i))},onSkipBackPress:function(t){e(s.j(i))},onSkipForwardPress:function(t){e(s.k(i))},onNextPress:function(t){e(s.g(i))}}}var r=n(11),o=n(4),s=(n.n(o),n(206)),l=n(715),c=n(1567),u=n(39),d=n(3775),p=n(996),h=Object(r.connect)(i,a)(p.a);t.a=h},function(e,t,n){"use strict";function i(e,t){var n=t.seekRangeStartedAtSeconds,i=t.seekStartSeconds,o=t.seekEndSeconds,s=e-n;return{disablePreviousButton:s<=a.a||s-i<=a.a,disableSkipForwardButton:o-s<=r,
disableNextButton:o-s<=r}}t.a=i;var a=n(371),r=15},function(e,t,n){"use strict";function i(e){var t=e.playerType;return r()(l.a,{},void 0,r()(c.a,{playerType:t}),r()(u.a,{playerType:t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(995)),c=n(3777),u=n(3780);t.a=i},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(u.a)(),Object(l.a)(),Object(c.a)(),function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=t.channelTitle||n.channelIdentifier||Object(d.default)("Unknown");return{isAlsoAiringVisible:e.isAlsoAiringVisible,positionSeconds:e.positionSeconds,channelTitle:i}})}function a(e,t){var n={playerType:t.playerType};return{onPress:function(t){e(Object(s.m)(n))}}}var r=n(11),o=n(4),s=(n.n(o),n(206)),l=n(1003),c=n(205),u=n(89),d=n(3),p=n(3778);t.a=Object(r.connect)(i,a)(p.a)},function(e,t,n){"use strict";function i(e){
var t=e.channelTitle,n=e.isAlsoAiringVisible,i=e.onPress;return r()(l.a,{className:n?d.a.isActive:void 0,onPress:i},void 0,r()(c.a,{className:d.a.icon,name:"plex-icon-player-guide-560"}),t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(26),u=n(3779),d=n.n(u);t.a=i},function(e,t){e.exports={isActive:"LiveTVCurrentChannel-isActive-2DTwm",icon:"LiveTVCurrentChannel-icon-17Slv"}},function(e,t,n){"use strict";function i(e){var t=e.playerType;return r()("div",{className:h.a.container
},void 0,r()(c.a,{className:h.a.icon,name:"plex-icon-player-queue-560"}),r()(u.a,{message:Object(l.default)("{openSpan}Up Next:{closeSpan} {openTitle}{closeTitle}"),tags:[{open:"openSpan",close:"closeSpan",component:"span",className:h.a.upNext},{open:"openTitle",close:"closeTitle",component:d.a,playerType:t}]}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(26),u=n(187),d=n(3781),p=n(3784),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(s.a)(),Object(o.a)(),function(e,t){return t?{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:t.entityID,positionSeconds:e.positionSeconds,type:t.type,isUnknownAiring:!1}:{isUnknownAiring:!0}})}var a=n(11),r=n(4),o=(n.n(r),n(3782)),s=n(89),l=n(3783);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(s.a)(),Object(r.a)(),Object(o.a)(),function(e,t,n){
if(e&&null!=t){for(var i=e.channelIdentifier,a=null,r=null,o=0;o<n.length;o++)for(var s=n[o],l=0;l<s.Media.length;l++){var c=s.Media[l],u=c.beginsAt,d=c.channelIdentifier;u>t&&d===i&&(!r||u<r.beginsAt)&&(a=s,r=c)}return a}})}t.a=i;var a=n(4),r=(n.n(a),n(715)),o=n(988),s=n(205)},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.isUnknownAiring,i=r()(e,["type","isUnknownAiring"]);return n?Object(c.default)("Unknown Airing"):t===u.e?l.a.createElement(d.a,i):l.a.createElement(p.a,i)}
var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(3),u=n(27),d=n(287),p=n(716);t.a=i},function(e,t){e.exports={container:"LiveTVUpNext-container-1kAJR",upNext:"LiveTVUpNext-upNext-pGRmz",icon:"LiveTVUpNext-icon-3DqMO"}},function(e,t,n){"use strict";function i(e){var t=e.playerType,n=e.onFollowMuteMenuChange;return r()(l.a,{},void 0,r()(c.a,{playerType:t,onFollowMuteMenuChange:n}),r()(u.a,{playerType:t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(995)),c=n(3786),u=n(3790)
;t.a=i},function(e,t,n){"use strict";function i(e){return function(t,n){return null==n.followed&&null==n.muted||t.push(s()({},n,{tagElement:e})),t}}function a(){return Object(u.createSelector)(Object(p.a)(),Object(h.a)(),function(e,t){var n=[];return g.forEach(function(t){var a=e[t];if(a&&a.length){var r=a.reduce(i(t),[]);n.push.apply(n,r)}}),{metadataItemEntityID:e.entityID,providerEntityID:t.entityID,tags:n}})}function r(e,t){var n=t.metricsPage;return{onUpdateFollowMute:function(t){
e(Object(d.g)(s()({metricsPage:n},t)))}}}var o=n(6),s=n.n(o),l=n(1),c=n.n(l),u=n(4),d=(n.n(u),n(260)),p=n(178),h=n(262),f=n(58),v=n(3787),g=["Channel","Topic"],m=Object(f.a)(a,r)(v.a);m.propTypes=s()({},m.propTypes,{playerType:c.a.string.isRequired}),t.a=m},function(e,t,n){"use strict";function i(e){var t=e.metadataItemEntityID,n=e.providerEntityID,i=e.tags,a=e.onUpdateFollowMute,o=e.onFollowMuteMenuChange;return s()("div",{},void 0,i.map(function(e){return u.a.createElement(d.a,r()({
key:e.ratingKey},e,{metadataItemEntityID:t,providerEntityID:n,onUpdateFollowMute:a,onMenuChange:o}))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3788);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(56),v=n(112),g=n(47),m=n(270),y=n(3),b=n(26),I=n(3789),S=n.n(I),M={placement:"top"},D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onFollowButtonPress=function(e){a._emitUpdateFollowMuteAction(m.b.FOLLOW,!a.props.followed)},a.onMuteButtonPress=function(e){a._emitUpdateFollowMuteAction(m.b.MUTE,!a.props.muted)},a.onMenuButtonPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen},function(){a.props.onMenuChange&&a.props.onMenuChange(a.state.isMenuOpen)})},a.onMenuClose=function(){a.setState({isMenuOpen:!1},function(){a.props.onMenuChange&&a.props.onMenuChange(!1)})},a.state={isMenuOpen:!1},
a._menuButtonID=Object(g.a)(),a}return u()(t,e),t.prototype._emitUpdateFollowMuteAction=function(e,t){var n=this.props,i=n.metadataItemEntityID,a=n.providerEntityID,r=n.tagElement,o=n.ratingKey;this.props.onUpdateFollowMute({metadataItemEntityID:i,providerEntityID:a,actionID:e,tagElement:r,ratingKey:o,value:t})},t.prototype.render=function(){var e=this.props,t=e.tag,n=e.followed,i=e.muted,r=this.state.isMenuOpen,o=void 0,s="plex-icon-unselected-560";return!0===n?(o=S.a.isFollowed,
s="plex-icon-selected-560"):!0===i&&(o=S.a.isMuted,s="plex-icon-remove-560"),a()(h.a,{id:this._menuButtonID,className:S.a.tag,onPress:this.onMenuButtonPress},void 0,a()(b.a,{name:s,className:(S.a.icon||"")+" "+(o||"")})," ",a()("span",{className:S.a.tagText},void 0,t),a()(f.a,{target:this._menuButtonID,isOpen:r,options:M,onMenuClose:this.onMenuClose},void 0,null!=n&&a()(v.a,{onPress:this.onFollowButtonPress},void 0,n?Object(y.default)("Unfollow {tag}",{tag:t}):Object(y.default)("Follow {tag}",{
tag:t})),null!=i&&a()(v.a,{onPress:this.onMuteButtonPress},void 0,i?Object(y.default)("Unblock {tag}",{tag:t}):Object(y.default)("Block {tag}",{tag:t}))))},t}(p.Component);t.a=D},function(e,t){e.exports={tag:"MetadataFollowMuteTag-tag-2CoGQ",tagText:"MetadataFollowMuteTag-tagText-2sa_R",icon:"MetadataFollowMuteTag-icon-sFuVh",isFollowed:"MetadataFollowMuteTag-isFollowed-1q9G0",isMuted:"MetadataFollowMuteTag-isMuted-2XZVI"}},function(e,t,n){"use strict";function i(){
return Object(c.createSelector)(Object(u.a)(1),function(e){return e?{title:e.title}:{}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(178)),d=n(3791),p=Object(l.connect)(i)(d.a);p.propTypes=r()({},p.propTypes,{playerType:s.a.string.isRequired}),t.a=p},function(e,t,n){"use strict";function i(e){var t=e.title;return t?r()("div",{},void 0,r()("span",{className:u.a.upNext},void 0,Object(l.default)("Up Next"))," \u2014 ",t):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(3)),c=n(3792),u=n.n(c);t.a=i},function(e,t){e.exports={container:"MetadataUpNext-container-3BvKX",upNext:"MetadataUpNext-upNext-3XxQS"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(s.a)(),Object(o.a)(),function(e,t){var n=l.f;return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:t.entityID,context:n,type:t.type,imageUrl:t.parentThumb||t.grandparentThumb}})}var a=n(11),r=n(4),o=(n.n(r),
n(178)),s=n(89),l=n(33),c=n(3794),u=Object(a.connect)(i)(c.a);t.a=u},function(e,t,n){"use strict";function i(e,t,n,i,a,r){var o=void 0,s=void 0;if(e<t){var l=e-S-n;o=Math.min(b,l),s=Object(h.d)(o,i,a,r)}else{var c=t-(S+y+n);s=Math.min(b,c),o=Object(h.e)(s,i,a,r)}return{width:o,height:s}}function a(e){var t=e.className,n=e.serverEntityID,a=e.providerEntityID,r=e.metadataItemEntityID,s=e.type,l=e.subtype,h=e.context,f=e.imageUrl,v=e.bottom,g=Object(p.b)(s,h,{providerEntityID:a,subtype:l})
;return o()(c.a,{className:m.a.measure},void 0,function(e){var c=e.isMeasured,p=e.width,y=e.height;if(!c)return null;var b=v?v+M:0,I=i(p,y,0,s,l,h),S=void 0;if(b){var C=i(p,y,b,s,l,h);S=C.height>0?C.height/I.height:1,S=Math.max(S,D)}else S=1;return o()("div",{className:t,style:{transform:"translate(-50%, -50%) scale("+S+")"}},void 0,o()(u.a,{cardClassName:m.a.card,serverEntityID:n,providerEntityID:a,metadataItemEntityID:r,metadataKey:"music",type:s,imageWidth:I.width,imageHeight:I.height,
imageUrl:f,showLinkOnly:!0}),o()("div",{className:m.a.titlesContainer},void 0,g.map(function(e,t){return o()(d.a,{className:t>0?m.a.secondaryTitle:m.a.primaryTitle,serverEntityID:n,providerEntityID:a,metadataItemEntityID:r,component:e},t)})))})}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(67)),u=(n(33),n(404)),d=n(288),p=n(207),h=n(130),f=n(46),v=n.n(f),g=n(3795),m=n.n(g),y=90,b=500,I=parseInt(v.a.pagePadding,10),S=2*I,M=I/2,D=.4;a.defaultProps={className:m.a.content},t.a=a
},function(e,t){e.exports={measure:"AudioVideoFullMusic-measure-3rspA",content:"AudioVideoFullMusic-content-7Qnq7",card:"AudioVideoFullMusic-card-3HHZD MetadataPosterCard-card-3bztR",titlesContainer:"AudioVideoFullMusic-titlesContainer-1f9NM",title:"AudioVideoFullMusic-title-2fZRL MetadataPosterTitle-title-3tU5F",primaryTitle:"AudioVideoFullMusic-primaryTitle-sT84w AudioVideoFullMusic-title-2fZRL MetadataPosterTitle-title-3tU5F",
secondaryTitle:"AudioVideoFullMusic-secondaryTitle-2tx_B AudioVideoFullMusic-title-2fZRL MetadataPosterTitle-title-3tU5F"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.isMusic},Object(l.a)(),Object(s.a)(),o.a,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=t.startMetadataItemEntityID||n.metadataItem,r=i[a],o=void 0;return r&&(o=e?r.parentThumb||r.grandparentThumb:r.grandparentArt||r.art),{
serverEntityID:t.serverEntityID,imageUrl:o}})}var a=n(11),r=n(4),o=(n.n(r),n(108)),s=n(142),l=n(89),c=n(1568);t.a=Object(a.connect)(i)(c.a)},function(e,t){e.exports={backgroundContainer:"FullPlayerBackground-backgroundContainer-2UnXo"}},function(e,t,n){"use strict";function i(e){return!(!e||!e.timed)}function a(){return Object(b.createSelector)(Object(D.a)(),Object(C.a)(),Object(M.a)(),Object(S.a)(),j.a,function(e,t,n,i,a){var r=P.f;return{serverEntityID:e.serverEntityID,
providerEntityID:e.providerEntityID,metadataItemEntityID:n.entityID,playQueueItemEntityID:i.entityID,positionSeconds:e.positionSeconds,context:r,type:n.type,imageUrl:n.parentThumb||n.grandparentThumb,lyricsStreams:i.lyricsStreams,columnAdjustment:a.columnAdjustment,hasLyricsFeature:!!i.lyricsStreams.length||t.ownerFeatures.indexOf("lyrics")>-1,hasPremiumLyrics:i.hasPremiumLyrics}})}var r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(172)),S=n(142),M=n(178),D=n(89),C=n(568),j=n(72),P=n(33),O=n(3799),T={dispatchFetchPlayQueue:I.c,dispatchFetchPlayQueueItemLyrics:I.d},E=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return w.call(a),a.state=a.getDefaultState(n),a}return f()(t,e),t.prototype.componentDidMount=function(){this._populate(),this.props.hasPremiumLyrics&&this.props.hasLyricsFeature&&this.props.dispatchFetchPlayQueue({playerType:this.props.playerType
})},t.prototype.componentWillReceiveProps=function(e){this.props.lyricsStreams!==e.lyricsStreams&&this.setState(this.getDefaultState(e,this.state.selectedLyricsStreamIndex))},t.prototype.componentWillUpdate=function(e,t){if(this.state.selectedLyricsStreamIndex!==t.selectedLyricsStreamIndex){var n=e.lyricsStreams[t.selectedLyricsStreamIndex];this.setState({isTimedLyricsActive:i(n)})}},t.prototype.componentDidUpdate=function(e,t){var n=this.props.lyricsStreams[this.state.selectedLyricsStreamIndex]
;this.props.hasLyricsFeature!==e.hasLyricsFeature&&this.props.dispatchFetchPlayQueue({playerType:this.props.playerType}),!n||n.lyricsError||this.state.selectedLyricsStreamIndex===t.selectedLyricsStreamIndex&&this.props.lyricsStreams===e.lyricsStreams||this._populate()},t.prototype.getDefaultState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.lyricsStreams.length>0?t:null;return{isTimedLyricsActive:i(e.lyricsStreams[n]),selectedLyricsStreamIndex:n}},
t.prototype._populate=function(){var e=this.props,t=e.playerType,n=e.playQueueItemEntityID,i=e.lyricsStreams,a=this.state.selectedLyricsStreamIndex;if(null!=a){var r=i[a];r&&!r.lines.length&&this.props.dispatchFetchPlayQueueItemLyrics({playerType:t,playQueueItemEntityID:n,streamID:r.id,streamKey:r.key})}},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchPlayQueue,e.dispatchFetchPlayQueueItemLyrics,
e.lyricsStreams),n=l()(e,["dispatchFetchPlayQueue","dispatchFetchPlayQueueItemLyrics","lyricsStreams"]),a=this.state,r=a.isTimedLyricsActive,s=a.selectedLyricsStreamIndex,c=t[s];return m.a.createElement(O.a,o()({lines:null!=c?c.lines:[],lyricsStreamsCount:t.length,selectedIndex:s,hasTimedLyrics:i(c),isTimedLyricsActive:r,isLyricFindProvider:!!c&&"com.plexapp.agents.lyricfind"===c.provider,hasLyricsError:!!c&&!!c.lyricsError,onPreviousPress:this.onPreviousPress,onNextPress:this.onNextPress,
onTimedLyricsPress:this.onTimedLyricsPress},n))},t}(g.Component),w=function(){var e=this;this.onPreviousPress=function(){e.setState(function(e){return{selectedLyricsStreamIndex:Math.max(0,e.selectedLyricsStreamIndex-1)}})},this.onNextPress=function(){e.setState(function(e,t){return{selectedLyricsStreamIndex:Math.min(t.lyricsStreams.length-1,e.selectedLyricsStreamIndex+1)}})},this.onTimedLyricsPress=function(){e.setState(function(e){return{isTimedLyricsActive:!e.isTimedLyricsActive}})}}
;t.a=Object(y.connect)(a,T)(E)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(67),v=n(80),g=n(3),m=n(26),y=(n(33),n(1396)),b=n(31),I=n(283),S=n(1397),M=n(404),D=n(716),C=n(977),j=n(720),P=n(118),O=n(156),T=n(482),E=n(241),w=n(224),A=n(1014),x=n(130),N=n(3806),L=n.n(N),k=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.setLineRef=function(e){a.lineRef=e,a.scrollToLine()},
a.onContentMeasure=function(e){var t=e.width;a.setState({isMeasured:!0,pageWidth:t})},a.onScrollerMeasure=function(e){var t=e.height;t&&a.setState({isScrollerMeasured:!0,scrollerHeight:t},function(){a.scrollToLine()})},a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.state={isMeasured:!1,isScrollerMeasured:!1,pageWidth:0,scrollerHeight:0,scrollTop:0},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.lines!==e.lines&&this.setState({
scrollTop:0})},t.prototype.scrollToLine=function(){if(this.lineRef){var e=this.state,t=e.scrollerHeight,n=e.scrollTop,i=this.lineRef.getBoundingClientRect(),a=i.height,r=this.lineRef.offsetTop,o=r+a>n+t,s=r<n;(o||s)&&this.setState({scrollTop:r})}},t.prototype.render=function(){
var e=this,t=this.props,n=t.serverEntityID,i=t.providerEntityID,r=t.metadataItemEntityID,o=t.type,s=t.subtype,l=t.context,c=t.columnAdjustment,u=t.imageUrl,d=t.positionSeconds,p=t.lines,N=t.selectedIndex,k=t.lyricsStreamsCount,R=t.hasTimedLyrics,z=t.isTimedLyricsActive,U=t.hasLyricsError,B=t.hasLyricsFeature,F=t.isLyricFindProvider,_=t.onPreviousPress,V=t.onNextPress,H=t.onTimedLyricsPress,Q=this.state,Y=Q.isMeasured,G=Q.isScrollerMeasured,W=Q.pageWidth,K=Q.scrollTop,Z=Object(A.a)(W,c),q=Object(x.d)(Z,o,s,l)
;return B?a()(f.a,{className:L.a.measure,onMeasure:this.onContentMeasure},void 0,Y&&a()("div",{className:L.a.container},void 0,a()("div",{},void 0,a()(M.a,{cardClassName:L.a.card,serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,metadataKey:"music",type:o,imageWidth:Z,imageHeight:q,imageUrl:u,showLinkOnly:!0})),a()("div",{className:L.a.content},void 0,a()("div",{className:L.a.titlesContainer},void 0,a()(O.a,{},void 0,a()(D.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r
})),a()(E.a,{},void 0,a()(P.a,{},void 0,a()(C.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r}))),a()(w.a,{},void 0,a()(P.a,{},void 0,F&&Object(g.default)("Powered by {provider}",{provider:"LyricFind"})),a()(T.a,{},void 0,a()("span",{className:L.a.rightInfo},void 0,a()(I.a,{className:(L.a.timedLyricsButton||"")+" "+(z&&L.a.isTimedLyricsActive||""||""),"data-qa-id":"toggleTimedLyrics",icon:"plex-icon-player-lyrics-timed-560",title:Object(g.default)("Timed Lyrics"),isDisabled:!R,
onPress:H})),a()("span",{className:L.a.rightInfo},void 0,Object(g.default)("{selectedIndex} of {lyricsStreamsCount}",{selectedIndex:N+1,lyricsStreamsCount:k})),a()("span",{className:L.a.rightInfo},void 0,a()(I.a,{icon:"plex-icon-page-prev-560","data-qa-id":"previousLyricsPage",title:Object(g.default)("Previous"),isDisabled:0===N,onPress:_})),a()("span",{className:L.a.rightInfo},void 0,a()(I.a,{icon:"plex-icon-page-next-560","data-qa-id":"nextLyricsPage",title:Object(g.default)("Next"),
isDisabled:N===k-1,onPress:V}))))),U&&a()("div",{className:L.a.innerContent},void 0,a()(j.a,{title:Object(g.default)("There was an error loading the lyrics")})),!U&&a()("div",{className:L.a.innerContent},void 0,a()(f.a,{className:L.a.measure,onMeasure:this.onScrollerMeasure},void 0,G&&a()(v.a,{className:L.a.scroller,scrollTop:K,onScrollPositionChange:this.onScrollPositionChange},void 0,p.length?p.map(function(t,n){
var i=t.spans,r=t.startOffset,o=t.endOffset,s=Math.round(r/1e3),l=Math.round(o/1e3),c=z&&d>=s&&-1!==r&&(d<l||-1===o);return h.a.createElement("div",{key:n,className:(L.a.line||"")+" "+(c&&L.a.isLineSelected||""||""),ref:c?e.setLineRef:null},i.map(function(e,t){var n=e.text;return a()("span",{},t,n)}),a()(m.a,{className:L.a.lineTimedIcon,name:"plex-icon-player-lyrics-timed-560"}))}):a()(b.a,{className:L.a.spinner}))))))):a()("div",{className:L.a.upsellContainer},void 0,a()(y.a,{
icon:"plex-icon-marketing-lyrics-560",title:Object(g.default)("Song Lyrics"),text:Object(g.default)("Still think Elton is saying \u201cHold me closer, Tony Danza\u201d? With a Plex Pass, enjoy timed lyrics (when available) to your favorite songs for the ultimate sing-along\u2026 with the right words!")}),a()(S.a,{serverEntityID:n,modalMetricsProperties:{context:"lyrics"}}))},t}(p.Component);t.a=k},function(e,t){e.exports={icon:"InnerErrorPage-icon-tWVPF ErrorPage-icon-ZJ38x EmptyPage-icon-31D3Z"
}},function(e,t){e.exports={leftTitle:"PrePlayLeftTitle-leftTitle-Ev1KG"}},function(e,t){e.exports={primaryTitle:"PrePlayPrimaryTitle-primaryTitle-1r9P9"}},function(e,t){e.exports={rightTitle:"PrePlayRightTitle-rightTitle-VxiwU"}},function(e,t){e.exports={secondaryTitle:"PrePlaySecondaryTitle-secondaryTitle-YJRGC PrePlayPrimaryTitle-primaryTitle-1r9P9"}},function(e,t){e.exports={tertiaryTitle:"PrePlayTertiaryTitle-tertiaryTitle-1Rc92"}},function(e,t){e.exports={
measure:"AudioVideoLyrics-measure-2SF_6",container:"AudioVideoLyrics-container-3d-0q",card:"AudioVideoLyrics-card-1ul6P MetadataPosterCard-card-3bztR",content:"AudioVideoLyrics-content-5An40",titlesContainer:"AudioVideoLyrics-titlesContainer-3I1RV",rightInfo:"AudioVideoLyrics-rightInfo-x_GGf",scroller:"AudioVideoLyrics-scroller-3hrpl Scroller-vertical-VScFL",spinner:"AudioVideoLyrics-spinner-1K46l Spinner-spinner-Niere spin-spin-2kLwt",upsellContainer:"AudioVideoLyrics-upsellContainer-2K0Q7",
innerContent:"AudioVideoLyrics-innerContent-19sRo",line:"AudioVideoLyrics-line-2CYDi",lineTimedIcon:"AudioVideoLyrics-lineTimedIcon-GOFkG",isLineSelected:"AudioVideoLyrics-isLineSelected-2kgwV",timedLyricsButton:"AudioVideoLyrics-timedLyricsButton-13NoS IconButton-button-9An-7",isTimedLyricsActive:"AudioVideoLyrics-isTimedLyricsActive-3bWfB"}},function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(172)),b=n(262),I=n(568),S=n(41),M=n(36),D=n(483),C=n(46),j=n.n(C),P=n(3913),O=parseInt(j.a.playQueueItemHeight,10),T=Object(m.createSelector)(function(e){return e.ui.audioVideoPlayer},Object(I.a)(),Object(b.a)(),function(e,t,n){var i=e.playQueue,a=n.identifier===S.d,r=!i.isLocal&&a;return{serverEntityID:t.entityID,providerEntityID:n.entityID,playQueueID:i.playQueueID,isQueueRepeated:i.repeat,isQueueShuffled:i.playQueueShuffled,isPlayerPaused:e.isPaused,
isUpdatePending:i.isUpdatePending,playQueueItemEntityIDs:i.playQueueItems,playQueueSelectedItemOffset:i.playQueueSelectedItemOffset,playQueueLength:i.length,currentIndex:i.currentIndex,showAddToPlaylist:r}}),E={dispatchMovePlayQueueItem:y.e},w=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onPlayQueueItemDragMove=function(e){e!==a.state.moveIndex&&a.setState({moveIndex:e})},a.onPlayQueueItemDragEnd=function(e,t){var n=a.props.playerType,i=a.state.moveIndex
;t&&null!=i&&Object(M.a)(function(){a.props.dispatchMovePlayQueueItem(o()({playerType:n},e,{moveIndex:i}))}),a.setState({moveIndex:null})},a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.shouldUpdateScrollTop=!1,a.state={moveIndex:null,scrollTop:O*n.currentIndex},a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isQueueRepeated===e.isQueueRepeated&&this.props.isQueueShuffled===e.isQueueShuffled||(this.shouldUpdateScrollTop=!0),
this.shouldUpdateScrollTop&&this.props.currentIndex!==e.currentIndex&&this.setState({scrollTop:O*e.currentIndex}),this.props.isUpdatePending&&!e.isUpdatePending&&(this.shouldUpdateScrollTop=!1)},t.prototype.render=function(){var e=this.props,t=(e.dispatchMovePlayQueueItem,a()(e,["dispatchMovePlayQueueItem"])),n=this.state,i=n.moveIndex,r=n.scrollTop;return v.a.createElement(P.a,o()({moveIndex:i,scrollTop:r,onPlayQueueItemDragMove:this.onPlayQueueItemDragMove,
onPlayQueueItemDragEnd:this.onPlayQueueItemDragEnd,onScrollPositionChange:this.onScrollPositionChange},t))},t}(f.Component);t.a=Object(D.a)(Object(g.connect)(T,E)(w))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(80)),f=n(20),v=n(215),g=n(3),m=n(26),y=n(398),b=n(3914),I=n(3915),S=n(3927),M=n(1594),D=n(1595),C=n(3931),j=n.n(C),P=a()(m.a,{name:"plex-icon-toolbar-add-to-playlist-560"}),O=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0})},a.onAddToPlaylistClose=function(){a.setState({isAddToPlaylistModalOpen:!1})},a.state={isAddToPlaylistModalOpen:!1},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.playQueueID,r=e.playQueueItemEntityIDs,o=e.playQueueSelectedItemOffset,s=e.playQueueLength,l=e.playerType,c=e.currentIndex,u=e.moveIndex,d=e.scrollTop,p=e.isPlayerPaused,m=e.showAddToPlaylist,C=e.onPlayQueueItemDragMove,O=e.onPlayQueueItemDragEnd,T=this.state.isAddToPlaylistModalOpen,E=o-c,w=E+r.length-1;return a()("div",{className:j.a.container},void 0,a()(D.a,{},void 0,a()(M.a,{title:Object(g.default)("Play Queue")}),a()("div",{
className:j.a.topContainer},void 0,a()("div",{className:j.a.topLeft},void 0,a()("span",{className:j.a.count},void 0,1===s?Object(g.default)("{itemCount} item",{itemCount:s}):Object(g.default)("{itemCount} items",{itemCount:s}))),a()("div",{className:j.a.topRight},void 0,m&&a()(v.a,{className:j.a.tooltipButton,"data-qa-id":"queueAddPlaylist","aria-label":Object(g.default)("Add to Playlist"),component:f.a,tooltip:Object(g.default)("Add to Playlist"),onPress:this.onAddToPlaylistPress
},void 0,P)))),a()(h.a,{className:j.a.content,scrollTop:d,smoothScroll:!1,autoScroll:!0},void 0,r.map(function(e,t){var n=null!=u,i=c===t,r=n&&u===t,o=n&&u===t+1;return a()(S.a,{sortIndex:t,opacity:Object(b.a)(t,E,w,s),playQueueItemEntityID:e,playerType:l,isDraggingBefore:r,isDraggingAfter:o,isCurrentItem:i,isPlayerPaused:p,onPlayQueueItemDragMove:C,onPlayQueueItemDragEnd:O},e)})),a()(I.a,{playerType:l}),m&&a()(y.a,{serverEntityID:t,providerEntityID:n,playQueueID:i,isOpen:T,
onModalClose:this.onAddToPlaylistClose}))},t}(p.Component);t.a=O},function(e,t,n){"use strict";function i(e,t,n,i){if(n+1<i){var r=n-t,o=r-e;if(o<a.length)return a[o]}return 1}t.a=i;var a=[.2,.4,.6,.8]},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getSourceClientOffset()}}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(225)),v=(n.n(f),
n(28)),g=n(579),m=n(290),y=n(46),b=n.n(y),I=n(1592),S=n(3926),M=n.n(S),D=parseInt(b.a.playQueueSidePadding,10),C=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.playerType,n=e.item,i=e.itemType,a=e.currentOffset;if(!a||i!==m.d)return null;var o=a.x,s=a.y,l=window.innerWidth-2*D,c="translate3d("+o+"px, "+s+"px, 0)",u={
position:"absolute",WebkitTransform:c,msTransform:c,transform:c,width:l+"px"};return r()(g.a,{},void 0,r()("div",{className:M.a.dragPreview,style:u},void 0,r()(I.a,{playQueueItemEntityID:n.playQueueItemEntityID,playerType:t,isItemDragging:!0})))},t}(h.Component);t.a=Object(f.DragLayer)(i)(C)},function(e,t){e.exports={dragLayer:"DragPreviewLayer-dragLayer-2uYZU"}},function(e,t,n){"use strict";function i(e){
var t=e.metadataItemEntityID,n=e.playerType,i=e.mediaType,a=e.sortIndex,o=e.opacity,s=e.isCurrentItem,c=e.isPlayerPaused,f=e.isItemDragging,y=e.connectDragSource,b=e.onRemovePress;return r()("div",{className:(v.a.container||"")+" "+(f&&v.a.isItemDragging||"")+" "+(s&&v.a.isCurrentItem||"")+" "+(null!=o&&g[o]||""||""),"data-qa-id":"playQueueItem"},void 0,r()("div",{className:v.a.leftContainer},void 0,s&&r()(d.a,{isPaused:c}),!s&&y(r()("div",{className:v.a.moveControls,
"data-qa-id":"playQueueReorder"},void 0,m))),r()(h.a,{className:v.a.metadataContainer,sourceTextClassName:v.a.sourceText,durationContainerClassName:v.a.metadataDurationContainer,metadataItemEntityID:t,playerType:n,mediaType:i,sortIndex:a}),!s&&r()("div",{className:v.a.removeControls},void 0,r()(u.a,{className:v.a.removeButton,"data-qa-id":"playQueueRemove",icon:"plex-icon-remove-560",title:Object(l.default)("Remove"),kind:p.b.DANGER,onPress:b})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(3)),c=n(26),u=n(283),d=n(729),p=n(24),h=n(3920),f=n(3925),v=n.n(f),g={.2:v.a.opacity20Precent,.4:v.a.opacity40Precent,.6:v.a.opacity60Precent,.8:v.a.opacity80Precent},m=r()(c.a,{name:"plex-icon-reorder-560"});i.defaultProps={opacity:1,isCurrentItem:!1,isPlayerPaused:!1,isItemDragging:!1,connectDragSource:function(e){return e}},t.a=i},function(e,t,n){"use strict";function i(e,t){return Math.random()*(t-e)+e}
var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(312)),v=n(3919),g=n.n(v),m=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a._setBarValues(n),a.state=a._getInitialState(!0),a}return d()(t,e),t.prototype.componentDidMount=function(){if(!this.props.isPaused)for(var e=0,t=this._bars.length;e<t;e++)this._setTransitionTimeout(e)},t.prototype.componentWillReceiveProps=function(e){
var t=e.isPaused!==this.props.isPaused,n=e.width!==this.props.width,i=e.barCount!==this.props.barCount,a=e.barGap!==this.props.barGap;(t||n||i||a)&&(this._clearAllTransitionTimeouts(),this._setBarValues(e),this.setState(this._getInitialState(e.isPaused)))},t.prototype.componentDidUpdate=function(e,t){if(!this.props.isPaused)for(var n=0,i=this._bars.length;n<i;n++){var a=this._bars[n];t[a]!==this.state[a]&&this._setTransitionTimeout(n)}},t.prototype.componentWillUnmount=function(){
this._clearAllTransitionTimeouts()},t.prototype._setBarValues=function(e){var t=e.width,n=e.barCount,i=e.barGap,a=i*(n-1);this._barGap=i,this._barWidth=Math.floor((t-a)/n),this._bars=[];for(var r=0,o=n;r<o;r++)this._bars.push("bar"+r)},t.prototype._getInitialState=function(e){var t=this;return this._bars.reduce(function(n,i,a){return n[i]=t._getRandomStyle(a,e),n},{})},t.prototype._getRandomStyle=function(e,t){
var n=this.props.unit,a=e*(this._barWidth+this._barGap),r=t?.2:i(.2,1),o="scaleY("+r+")",s=i(300,500);return{left:""+a+n,width:""+this._barWidth+n,backgroundColor:this.props.barColor,transitionDuration:s+"ms",WebkitTransform:o,msTransform:o,transform:o}},t.prototype._setTransitionTimeout=function(e){var t=this,n=this._bars[e],i=n+"TimeoutID",a=this.state[n],r=Object(f.a)(a.transitionDuration)-100;this[i]=setTimeout(function(){var i;t.setState((i={},i[n]=t._getRandomStyle(e),i))},r)},
t.prototype._clearAllTransitionTimeouts=function(){for(var e=0,t=this._bars.length;e<t;e++){var n=this._bars[e],i=n+"TimeoutID";clearTimeout(this[i])}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.width,a=t.height,o=t.unit;return r()("div",{className:n,style:{width:""+i+o,height:""+a+o}},void 0,this._bars.map(function(t){return r()("div",{className:g.a.bar,style:e.state[t]},t)}))},t}(h.Component);m.defaultProps={className:g.a.equalizer,width:14,height:14,
barColor:"#fff",barCount:3,barGap:2,isPaused:!0,unit:"px"},t.a=m},function(e,t){e.exports={equalizer:"EqualizerIcon-equalizer-2SoFA",bar:"EqualizerIcon-bar-1nPot"}},function(e,t,n){"use strict";function i(){return Object(f.createSelector)(Object(g.a)(),function(e){var t=y.h,n=Object(I.c)(e.type,e.subtype,t)===I.a?M:D,i=Object(b.a)(n,null,e.type,e.subtype,e,t);return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,type:e.type,subtype:e.subtype,metadataKey:e.key,
duration:e.duration,title:e.title,context:t,imageWidth:i.width,imageHeight:i.height,imageUrl:i.url}})}function a(e,t){var n={playerType:t.playerType};return{onPlayPress:function(){e(Object(v.f)(c()({},n,{index:t.sortIndex}))),t.mediaType===m.d&&e(Object(v.s)(n))}}}function r(e){var t=(e.mediaType,s()(e,["mediaType"]));return p.a.createElement(S.a,t)}var o=n(12),s=n.n(o),l=n(6),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(11),f=n(4),v=(n.n(f),
n(172)),g=n(21),m=n(63),y=n(33),b=n(261),I=n(130),S=n(3921),M=64,D=36;t.a=Object(h.connect)(i,a)(r)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.titlesContainerClassName,i=e.sourceTextClassName,a=e.durationContainerClassName,o=e.serverEntityID,s=e.providerEntityID,v=e.metadataItemEntityID,m=e.type,y=e.subtype,b=e.metadataKey,I=e.title,S=e.duration,M=e.context,D=e.imageWidth,C=e.imageHeight,j=e.imageUrl,P=e.onPlayPress,O=Object(f.b)(m,M,{providerEntityID:s,subtype:y
}),T="track"===m;return r()("div",{className:t},void 0,r()("div",{className:g.a.cardContainer},void 0,r()(p.a,{className:g.a.card,serverEntityID:o,providerEntityID:s,metadataItemEntityID:v,metadataKey:b,title:Object(u.default)("Play {title}",{title:I}),type:m,imageWidth:D,imageHeight:C,imageUrl:j,onPlayPress:P})),r()("div",{className:n,"data-qa-id":"playQueueTitleContainer"},void 0,O.map(function(e,t){return r()(h.a,{serverEntityID:o,providerEntityID:s,metadataItemEntityID:v,component:e,
isSecondary:t>0},t)})),r()(d.a,{textClassName:i,serverEntityID:o,metadataItemEntityID:v}),!!S&&r()("div",{className:a},void 0,T?Object(c.a)(S):Object(l.a)(S)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(308)),c=n(310),u=n(3),d=(n(33),n(1593)),p=n(978),h=n(288),f=n(207),v=n(3924),g=n.n(v);i.defaultProps={className:g.a.container,titlesContainerClassName:g.a.titlesContainer,sourceTextClassName:g.a.sourceText,durationContainerClassName:g.a.durationContainer},t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.className,n=e.textClassName,i=e.serverEntityID,a=e.attribution,o=e.avatar,s=e.name,c=e.hasOwner;return a?r()("div",{className:t},void 0,r()(u.a,{className:p.a.attribution,attribution:a})):c?r()("div",{className:t},void 0,r()("span",{className:n},void 0,s),r()(l.a,{serverEntityID:i,url:o,width:h,height:h})):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(384)),c=n(46),u=(n.n(c),n(919)),d=n(3923),p=n.n(d),h=parseInt(c.playlistBadgeSize,10)
;i.defaultProps={className:p.a.container},t.a=i},function(e,t){e.exports={container:"SourceBadge-container-3OfQB",text:"SourceBadge-text-Y8yYE",attribution:"SourceBadge-attribution-YBphY"}},function(e,t){e.exports={container:"AudioVideoPlayerPlayQueueMetadata-container-sM2h0",cardContainer:"AudioVideoPlayerPlayQueueMetadata-cardContainer-vcGvj",card:"AudioVideoPlayerPlayQueueMetadata-card-18P30 QuickSearchMetadataPosterCard-card-3_XFi MetadataPosterButtonCard-card-2T8TR",
titlesContainer:"AudioVideoPlayerPlayQueueMetadata-titlesContainer-2G9lR",sourceText:"AudioVideoPlayerPlayQueueMetadata-sourceText-2jMM6",durationContainer:"AudioVideoPlayerPlayQueueMetadata-durationContainer-2dgI9"}},function(e,t){e.exports={container:"AudioVideoPlayQueueItem-container-2_nsg",moveControls:"AudioVideoPlayQueueItem-moveControls-1M6Iy",removeControls:"AudioVideoPlayQueueItem-removeControls-1XM62",
metadataDurationContainer:"AudioVideoPlayQueueItem-metadataDurationContainer-184Jw AudioVideoPlayerPlayQueueMetadata-durationContainer-2dgI9",sourceText:"AudioVideoPlayQueueItem-sourceText-1oT-k SourceBadge-text-Y8yYE",metadataContainer:"AudioVideoPlayQueueItem-metadataContainer-w326I AudioVideoPlayerPlayQueueMetadata-container-sM2h0",leftContainer:"AudioVideoPlayQueueItem-leftContainer-2xVS6",removeButton:"AudioVideoPlayQueueItem-removeButton-4gx_S IconButton-button-9An-7",
opacity20Precent:"AudioVideoPlayQueueItem-opacity20Precent-36ydL",opacity40Precent:"AudioVideoPlayQueueItem-opacity40Precent-1FZXa",opacity60Precent:"AudioVideoPlayQueueItem-opacity60Precent-3KF0l",opacity80Precent:"AudioVideoPlayQueueItem-opacity80Precent-3wzZO",isCurrentItem:"AudioVideoPlayQueueItem-isCurrentItem-3g1KW",isItemDragging:"AudioVideoPlayQueueItem-isItemDragging-1lnod"}},function(e,t){e.exports={dragPreview:"AudioVideoPlayQueueDragPreview-dragPreview-21bXe"}},function(e,t,n){
"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function a(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}var r=n(6),o=n.n(r),s=n(2),l=n.n(s),c=n(12),u=n.n(c),d=n(7),p=n.n(d),h=n(8),f=n.n(h),v=n(9),g=n.n(v),m=n(1),y=(n.n(m),n(0)),b=n.n(y),I=n(225),S=(n.n(I),n(406)),M=(n.n(S),n(129)),D=(n.n(M),n(372)),C=n(28),j=n(290),P=n(1592),O=n(3928),T=n.n(O),E={beginDrag:function(e){return{
playQueueItemEntityID:e.playQueueItemEntityID}},endDrag:function(e,t,n){e.onPlayQueueItemDragEnd(t.getItem(),t.didDrop())}},w={hover:function(e,t,n){var i=Object(M.findDOMNode)(n).getBoundingClientRect(),a=(i.bottom-i.top)/2,r=t.getClientOffset(),o=r.y-i.top,s=e.sortIndex,l=o>a?s+1:s;e.onPlayQueueItemDragMove(l)}},A=function(e){function t(){return p()(this,t),f()(this,e.apply(this,arguments))}return g()(t,e),t.prototype.componentDidMount=function(){
this.props.connectDragPreview(Object(S.getEmptyImage)())},t.prototype.shouldComponentUpdate=function(e,t){return Object(C.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.isDragging,n=e.isDraggingBefore,i=e.isDraggingAfter,a=e.isOver,r=e.connectDropTarget,s=e.connectDragSource,c=u()(e,["isDragging","isDraggingBefore","isDraggingAfter","isOver","connectDropTarget","connectDragSource"]);return r(l()("div",{
className:(T.a.container||"")+" "+(t&&D.c||"")+" "+(n&&a&&D.e||"")+" "+(i&&a&&D.d||""||"")},void 0,b.a.createElement(P.a,o()({connectDragSource:s},c))))},t}(y.Component);t.a=Object(I.DropTarget)(j.d,w,a)(Object(I.DragSource)(j.d,E,i)(A))},function(e,t){e.exports={container:"AudioVideoPlayQueueItemDragSource-container-3ncn7"}},function(e,t){e.exports={heading:"AudioVideoFullPlayerContentHeading-heading-1XO9q"}},function(e,t){e.exports={
headingContainer:"AudioVideoFullPlayerContentHeadingContainer-headingContainer-2UyXv",divider:"AudioVideoFullPlayerContentHeadingContainer-divider-1A1d_"}},function(e,t){e.exports={container:"AudioVideoPlayQueue-container-mD38o",topContainer:"AudioVideoPlayQueue-topContainer-3udEG",topLeft:"AudioVideoPlayQueue-topLeft-_-AJU",topRight:"AudioVideoPlayQueue-topRight-2iuaO",count:"AudioVideoPlayQueue-count-1zBsg",content:"AudioVideoPlayQueue-content-28l4x Scroller-vertical-VScFL",
tooltipButton:"AudioVideoPlayQueue-tooltipButton-1wdD7"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(s.a)(),Object(o.a)(),Object(o.a)(1),function(e,t,n){return n?{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:n.metadataItem,hubEntityIDs:t.postPlay}:{}})}var a=n(11),r=n(4),o=(n.n(r),n(142)),s=n(89),l=n(3933),c=Object(a.connect)(i)(l.a);t.a=c},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.hubEntityIDs,o=e.playerType;return r()("div",{className:f.a.container},void 0,r()("div",{className:f.a.poster},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,playerType:o})),r()(l.a,{className:f.a.details,smoothScroll:!1,autoScroll:!0},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,showStreams:!1}),r()(u.a,{},void 0,a&&a.length>0&&r()(c.a,{serverEntityID:t,
providerEntityID:n,hubEntityIDs:a,columnAdjustment:1}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(730),u=n(109),d=n(3953),p=n(3993),h=n(3996),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(S.a,function(e){return{provider:e}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(304)),I=n(570),S=n(39),M=n(3935),D=n(33),C=n(1028),j=(n(99),{
dispatchPopulateProvider:b.d}),P=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this.props.provider.isPopulated||this._populateProvider()},t.prototype.componentDidUpdate=function(e){this.props.providerEntityID===e.providerEntityID||this.props.provider.isPopulated||this._populateProvider()},t.prototype._populateProvider=function(){this.props.dispatchPopulateProvider({
providerEntityID:this.props.providerEntityID,options:{merge:!0}})},t.prototype.render=function(){var e=this.props,t=(e.dispatchPopulateProvider,e.provider),n=s()(e,["dispatchPopulateProvider","provider"]);return t.isPopulated?g.a.createElement(C.a,r()({},n,{listContext:D.b})):null},t}(v.Component);t.a=Object(M.a)(Object(m.connect)(i,j)(P),I.a)},function(e,t,n){"use strict";function i(e,t){function n(){return Object(r.createSelector)(t(),function(e){var t=e.source;return Object(s.a)(t)||{}})}
var i=Object(a.connect)(n)(e);return i.displayName="OverrideEntityIDsWithSource("+Object(o.a)(e)+")",i}var a=n(11),r=n(4),o=(n.n(r),n(190)),s=(n(37),n(1596));t.a=i},function(e,t,n){"use strict";function i(){return Object(s.a)(Object(c.a)(),["identifier","title"])}function a(){return Object(s.a)(Object(u.a)(),["friendlyName","sourceTitle"])}function r(){return Object(o.createSelector)(i(),a(),Object(d.a)(),function(e,t,n){return Object(l.a)(e,t,n)})}t.a=r;var o=n(4),s=(n.n(o),
n(1598)),l=n(1599),c=n(54),u=n(35),d=n(580)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),function(e){var t=Object(r.a)(e);return t?t.directories:[]})}t.a=i;var a=n(4),r=(n.n(a),n(473)),o=n(54)},function(e,t,n){"use strict";function i(e){var t=e.metadataListEntityID,n=e.metadataItemEntityIDs,i=e.sourceDirectory,a=e.containerKey,o=e.listType,l=e.listSubtype,c=e.listContext,g=e.style,m=e.columnAdjustment,y=e.populatedRange,b=(e.route,
s()(e,["metadataListEntityID","metadataItemEntityIDs","sourceDirectory","containerKey","listType","listSubtype","listContext","style","columnAdjustment","populatedRange","route"])),I=b.serverEntityID,S=b.providerEntityID,M=void 0;return M=g===d.a?f.a:Object(h.a)(o,l,c,m,1),u.a.createElement(p.a,r()({},b,{containerKey:a,keyPropName:"metadataDirectoryEntityID",items:n,itemsOffset:y.start,layout:M,cellRenderer:Object(v.a)({serverEntityID:I,providerEntityID:S,metadataListEntityID:t,
sourceDirectory:i,containerKey:a,hubStyle:g})}))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(1601),p=(n(33),n(484),n(569)),h=n(582),f=n(3939),v=n(1604);n(105);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(456),o=n(712),s=n(46),l=n.n(s),c=parseInt(l.a.listButtonHeight,10),u=Object(r.c)({direction:r.a,rows:1,overscan:4,innerHorizontalPadding:30,innerVerticalPadding:30,outerPaddingTop:10,outerPaddingRight:5,outerPaddingBottom:5,outerPaddingLeft:5,
getCellWidth:function(e){return Object(o.a)(a()({},e,{preferredCellWidth:250,minCellWidth:200,minColumns:2,maxColumns:8,columnAdjustment:0}))},getCellHeight:function(e){return c}});t.a=u},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(c.a,Object(r.a)(),Object(s.a)(),Object(l.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=arguments[3];return{directoryKey:t.key,directoryType:t.type,title:t.title,route:e?i:n}})}
var a=n(4),r=(n.n(a),n(733)),o=n(58),s=n(1605),l=n(1606),c=n(396),u=n(3942);t.a=Object(o.a)(i)(u.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(174)),r=Object(i.createSelector)(a.a,function(e){return e.metadataDirectories});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.cellX,i=e.cellY,a=e.cellWidth,o=e.cellHeight,s=e.title,u=e.route;return r()(c.a,{className:t,cellX:n,cellY:i,cellWidth:a,cellHeight:o},void 0,r()(l.a,{className:h.a.button,kind:d.b.DARK,
size:d.e.LARGE,to:u},void 0,s))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(91),u=n(154),d=n(24),p=n(3943),h=n.n(p);t.a=Object(u.a)(i)},function(e,t){e.exports={button:"MetadataDirectoryButtonCell-button-29C3x Button-button-2kT68 Link-link-2n0yJ"}},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.listContext},function(e,t){return t.cellWidth},Object(r.a)(),Object(s.a)(),Object(l.a)(),c.a,u.a,function(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=arguments[4],r=arguments[5],o=arguments[6];return{directoryKey:n.key,directoryType:n.type,title:n.title,thumb:n.thumb,icon:n.icon,imageWidth:t,imageHeight:Object(d.d)(t,n.type,n.subtype,e),route:o?a:i,isOtherItemSelected:!!r.activeSelectionType}})}var a=n(4),r=(n.n(a),n(733)),o=n(58),s=n(1605),l=n(1606),c=n(76),u=n(396),d=n(130),p=n(3945);t.a=Object(o.a)(i)(p.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.cellX,o=e.cellY,s=e.cellWidth,d=e.cellHeight,h=e.imageWidth,v=e.imageHeight,g=e.showScrollPlaceholder,m=e.showOffscreenPlaceholder,y=e.directoryKey,b=e.title,I=e.thumb,S=e.icon,M=e.route,D=e.isOtherItemSelected,C=e.onMouseEnter,j=!y,P=j||g;return r()(c.a,{className:t,cellX:a,cellY:o,cellWidth:s,cellHeight:d},void 0,P?r()("div",{className:f.a.placeholder,style:{width:h,height:v}}):r()(p.a,{serverEntityID:n,providerEntityID:i,
directoryKey:y,route:M,imageWidth:h,imageHeight:v,imageUrl:I,icon:S,title:b,isOtherItemSelected:D,isOffscreen:m,onMouseEnter:C}),r()("div",{className:f.a.titleContainer},void 0,j&&Object(u.default)("Loading..."),!j&&(S||I)&&r()(l.a,{className:f.a.title,title:b,to:M},void 0,b)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(91),u=n(3),d=n(154),p=n(3946),h=n(3948),f=n.n(h);t.a=Object(d.a)(i)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.directoryKey,a=e.route,o=e.imageWidth,s=e.imageHeight,h=e.imageUrl,f=e.icon,v=e.title,y=e.isOffscreen,b=e.isOtherItemSelected,I=e.onMouseEnter;return r()("div",{className:g.a.cardContainer,"data-qa-id":"directoryPosterCard--"+i},i,r()("div",{className:g.a.card,style:{width:o,height:s}},void 0,r()("div",{className:g.a.face},void 0,!y&&h&&r()(d.a,{serverEntityID:t,providerEntityID:n,url:h,width:o,height:s}),!y&&f&&r()("div",{
className:g.a.iconContainer},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,url:f,width:o-m,height:s-m,backgroundSize:"contain"})),!y&&!h&&!f&&v&&r()("div",{className:g.a.titleContainer},void 0,r()("div",{className:g.a.titleItem},void 0,v)),r()("div",{className:g.a.overlay,onMouseEnter:I},void 0,r()("div",{className:g.a.overlayBackground}),r()(l.a,{className:g.a.overlayLink,to:a}),b&&r()(c.a,{className:g.a.overlaySelectCoverButton,component:l.a,
tooltip:Object(u.default)("A different type is selected"),tooltipAttachment:p.f.TOP_CENTER,showOnFocus:!1,hideOnPress:!1})))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(215),u=n(3),d=n(674),p=n(24),h=n(46),f=n.n(h),v=n(3947),g=n.n(v),m=2*parseInt(f.a.posterIconPadding,10);t.a=i},function(e,t){e.exports={cardContainer:"MetadataDirectoryPosterCard-cardContainer-ZkpfR MetadataPosterCard-cardContainer-2gRcQ",
card:"MetadataDirectoryPosterCard-card-3Hffo MetadataPosterCard-card-3bztR",face:"MetadataDirectoryPosterCard-face-1a7ld MetadataPosterCardFace-face--dz_D MetadataPosterCardFace-poster-L2P6r",overlay:"MetadataDirectoryPosterCard-overlay-1W6Fj MetadataPosterCardOverlay-overlay-1uMpL",overlayBackground:"MetadataDirectoryPosterCard-overlayBackground-23yvv MetadataPosterCardOverlay-background-2EwyB",overlayLink:"MetadataDirectoryPosterCard-overlayLink-3Lb0W MetadataPosterCardOverlay-link-1Swhl",
overlaySelectCoverButton:"MetadataDirectoryPosterCard-overlaySelectCoverButton-31KJl MetadataPosterCardOverlay-selectCoverButton-ukQUf MetadataPosterCardOverlay-coverButton-2Dm9P",iconContainer:"MetadataDirectoryPosterCard-iconContainer-2qCCQ",titleContainer:"MetadataDirectoryPosterCard-titleContainer-waqIG",titleItem:"MetadataDirectoryPosterCard-titleItem-3i-cu"}},function(e,t){e.exports={title:"MetadataDirectoryPosterCell-title-3smW- MetadataPosterTitle-title-3tU5F",
titleContainer:"MetadataDirectoryPosterCell-titleContainer-2B6MF MetadataPosterCell-titleContainer-24DI6",placeholder:"MetadataDirectoryPosterCell-placeholder-1qJ1M MetadataPosterCardFace-poster-L2P6r"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,o=e.searchResultEntityID,l=e.containerKey,u=(e.cellIndex,
e.cellX),d=e.cellY,v=e.cellWidth,I=e.cellHeight,M=e.showScrollPlaceholder,D=e.showOffscreenPlaceholder,C=e.listType,j=e.listContext,P=e.titleComponents,O=e.isFeaturedHub,T=e.metadataKey,E=e.type,w=e.subtype,A=e.selectionType,x=e.activeSelectionType,N=e.isSelected,L=e.isUnavailable,k=e.imageWidth,R=e.imageHeight,z=e.imageUrl,U=e.onSelectItem,B=e.onDeselectItem,F=c()(e,["className","serverEntityID","providerEntityID","metadataItemEntityID","searchResultEntityID","containerKey","cellIndex","cellX","cellY","cellWidth","cellHeight","showScrollPlaceholder","showOffscreenPlaceholder","listType","listContext","titleComponents","isFeaturedHub","metadataKey","type","subtype","selectionType","activeSelectionType","isSelected","isUnavailable","imageWidth","imageHeight","imageUrl","onSelectItem","onDeselectItem"]),_=!T,V=_||L||M,H=Object(b.a)(P,C,E,w,j),Q=O?H.slice(0,2):[],Y=O?H.slice(2):H
;return s()(h.a,{className:t,cellX:u,cellY:d,cellWidth:v,cellHeight:I},void 0,V?s()(m.a,{imageWidth:k,imageHeight:R,isSelected:N}):p.a.createElement(g.a,r()({serverEntityID:n,providerEntityID:i,metadataItemEntityID:a,containerKey:l,listType:C,listContext:j,metadataKey:T,type:E,imageWidth:k,imageHeight:R,imageUrl:z,selectionType:A,activeSelectionType:x,isSelected:N,isOffscreen:D,onSelectItem:U,onDeselectItem:B},F)),s()("div",{"data-qa-id":"metadataTitleContainer",
className:O?S.a.continueWatchingTitleContainer:S.a.titleContainer},void 0,_&&Object(f.default)("Loading..."),!_&&!!Q.length&&s()("div",{className:S.a.splitTitleContainer},void 0,Q.map(function(t,r){return s()(y.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:a,searchResultEntityID:o,containerKey:l,metricsContext:e.metricsContext,component:t,isSecondary:r>0,isDoubleLine:t.isDoubleLine,isSplitLine:!0},r)})),!_&&Y.map(function(t,r){return t?s()(y.a,{serverEntityID:n,providerEntityID:i,
metadataItemEntityID:a,searchResultEntityID:o,containerKey:l,metricsContext:e.metricsContext,component:t,isSecondary:Q.length+r>0,isDoubleLine:t.isDoubleLine},r):null})))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(91),f=n(3),v=n(154),g=(n(33),n(404)),m=n(740),y=n(288),b=n(207),I=n(3951),S=n.n(I);t.a=Object(v.a)(i)},function(e,t){e.exports={placeholder:"MetadataPosterCardPlaceholder-placeholder-pMf-q MetadataPosterCardFace-poster-L2P6r",
isSelected:"MetadataPosterCardPlaceholder-isSelected-34TSl MetadataPosterCardFace-isSelected-1XUgk"}},function(e,t){e.exports={titleContainer:"MetadataPosterCell-titleContainer-24DI6",continueWatchingTitleContainer:"MetadataPosterCell-continueWatchingTitleContainer-3yCAY",splitTitleContainer:"MetadataPosterCell-splitTitleContainer-RAVdF"}},function(e,t){e.exports={innerContent:"PrePlayMetadataInnerContent-innerContent-1BPzw"}},function(e,t,n){"use strict";function i(e,t){switch(t){case p.c:
switch(e){case h.e:return g.a}}switch(e){case h.e:return v.a;case h.f:return m.a;case h.c:return f.a}return f.a}function a(){return Object(u.createSelector)(Object(d.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type,subtype:e.subtype,title:e.title,year:e.year,summary:e.summary}})}function r(e){var t=i(e.type,e.subtype);return l.a.createElement(t,e)}var o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(11),u=n(4),d=(n.n(u),
n(21)),p=n(106),h=n(27),f=n(3954),v=n(1609),g=n(1035),m=n(1618);t.a=Object(c.connect)(a)(r)},function(e,t,n){"use strict";function i(e){var t=e.title,n=e.summary;return r()(s.Fragment,{},void 0,r()(c.a,{},void 0,r()(p.a,{},void 0,r()(d.a,{},void 0,t))),h,r()(c.a,{},void 0,r()(u.a,{},void 0,n)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(144)),c=n(109),u=n(163),d=n(118),p=n(156),h=r()(l.a,{});t.a=i},function(e,t){e.exports={divider:"PrePlayDivider-divider-1qvbj"}},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(67),v=n(275),g=n(28),m=n(3),y=n(24),b=n(3957),I=n.n(b),S=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onLineHeightRef=function(e){e&&a.setState({lineHeight:e.clientHeight})},a.onMeasure=function(e){var t=e.height;a.setState({expandedHeight:t})},a.onTogglePress=function(){a.setState({isCollapsed:!a.state.isCollapsed,allowTransition:!0})},
a.state={isCollapsed:!0,allowTransition:!1,lineHeight:0,expandedHeight:0},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(g.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.dangerouslySetInnerHTML,i=e.children,r=e.maxLines,o=this.state,s=o.isCollapsed,l=o.allowTransition,c=o.expandedHeight,u=o.lineHeight,d=u*r,p=c>d,g={overflow:"hidden",maxHeight:s?d:c};return a()("div",{className:t},void 0,!u&&h.a.createElement("div",{
className:I.a.lineHeightMeasure,ref:this.onLineHeightRef}),a()("div",{className:l?I.a.contentTransition:void 0,style:g},void 0,a()(f.a,{ignoreWidth:!0,ignorePosition:!0,onMeasure:this.onMeasure},void 0,n?a()("div",{dangerouslySetInnerHTML:n}):i)),p&&a()(v.a,{className:I.a.readMore,arrowClassName:I.a.readMoreArrow,direction:s?y.a.DOWN:y.a.UP,isSelected:!1,onPress:this.onTogglePress},void 0,s?Object(m.default)("Read More"):Object(m.default)("Read Less")))},t}(p.Component);S.defaultProps={
maxLines:3},t.a=S},function(e,t){e.exports={lineHeightMeasure:"CollapsibleText-lineHeightMeasure-1waS-",contentTransition:"CollapsibleText-contentTransition-15VYv",readMore:"CollapsibleText-readMore-1bRJm DisclosureArrowButton-disclosureArrowButton-11LSb Link-link-2n0yJ",readMoreArrow:"CollapsibleText-readMoreArrow-34BdB DisclosureArrowButton-disclosureArrow-1Gz1v DisclosureArrow-disclosureArrow-1KPaB"}},function(e,t){e.exports={summary:"PrePlaySummary-summary-1NL8g"}},function(e,t,n){
"use strict";function i(e){var t=e.children,n=e.server,i=e.provider,a=e.librarySectionKey,o=e.type,s=e.Director,p=e.Writer,h=e.studio;return t||s.length||p.length||h?r()(u.a,{},void 0,t,!!s.length&&r()(d.a,{label:Object(l.default)("Directed by")},void 0,r()(c.a,{server:n,provider:i,librarySectionKey:a,fallbackFilterKey:"director",type:o,tags:s})),!!p.length&&r()(d.a,{label:Object(l.default)("Written by")},void 0,r()(c.a,{server:n,provider:i,librarySectionKey:a,fallbackFilterKey:"writer",type:o,
tags:p})),!!h&&r()(d.a,{label:Object(l.default)("Studio")},void 0,r()(c.a,{server:n,provider:i,librarySectionKey:a,type:o,tags:[{filter:"studio="+encodeURIComponent(h),tag:h}]}))):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1030),u=n(1031),d=n(741);n(99),n(140);i.defaultProps={Director:[],Writer:[]},t.a=i},function(e,t){e.exports={tagsListLink:"PrePlayTagList-tagsListLink-Z6lfX Link-link-2n0yJ"}},function(e,t){e.exports={group:"PrePlayDetailsGroup-group-3i0Tj"}
},function(e,t){e.exports={groupItem:"PrePlayDetailsGroupItem-groupItem-3Tut9",label:"PrePlayDetailsGroupItem-label-2Ee43",content:"PrePlayDetailsGroupItem-content-1aRNU"}},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(r.a)(),Object(s.a)(l.m),function(e,t,n){return Object(c.a)(e,n,t)})}var a=n(4),r=(n.n(a),n(21)),o=n(35),s=n(256),l=n(79),c=n(1611);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(275)),f=n(47),v=n(676),g=n(922),m=n(267),y=n(3),b=n(159),I=n(3965),S=n(3966),M=n(551),D=n(24),C=n(1031),j=n(741),P=n(3977),O=n.n(P),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onAudioStreamMenuButtonPress=function(e){a.setState({isAudioStreamMenuOpen:!a.state.isAudioStreamMenuOpen})},a.onAudioStreamMenuClose=function(){a.setState({
isAudioStreamMenuOpen:!1})},a.onSubtitlesStreamMenuButtonPress=function(e){a.setState({isSubtitlesStreamMenuOpen:!a.state.isSubtitlesStreamMenuOpen})},a.onSubtitlesStreamMenuClose=function(){a.setState({isSubtitlesStreamMenuOpen:!1})},a.state={isAudioStreamMenuOpen:!1,isSubtitlesStreamMenuOpen:!1},a._audioStreamMenuButtonID=Object(f.a)(),a._subtitlesStreamMenuButtonID=Object(f.a)(),a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.metadataItemEntityID,i=e.mediaItem,r=e.canShowMoreSubtitlesAction,o=e.onAudioStreamSelect,s=e.onSubtitlesStreamSelect,l=this.state,c=l.isAudioStreamMenuOpen,u=l.isSubtitlesStreamMenuOpen;if(!i)return a()(C.a,{},void 0,a()(j.a,{label:Object(y.default)("Video")},void 0,a()("span",{className:O.a.loadingMessage},void 0,Object(y.default)("Loading..."))),a()(j.a,{label:Object(y.default)("Audio")},void 0,a()("span",{className:O.a.loadingMessage
},void 0,Object(y.default)("Loading..."))),a()(j.a,{label:Object(y.default)("Subtitles")},void 0,a()("span",{className:O.a.loadingMessage},void 0,Object(y.default)("Loading..."))));var d=b.a.get("audio").id,p=Object(m.a)(i,{streamType:d}),f=Object(v.a)(i),P=b.a.get("subtitles").id,T=Object(m.a)(i,{streamType:P}),E=Object(g.a)(i),w=r||T.length>1,A=a()(M.a,{serverEntityID:t,type:"audio",stream:f}),x=a()(M.a,{serverEntityID:t,type:"subtitles",stream:E});return a()(C.a,{},void 0,a()(j.a,{
label:Object(y.default)("Video")},void 0,a()(M.a,{serverEntityID:t,type:"video",mediaItem:i})),a()(j.a,{label:Object(y.default)("Audio")},void 0,p.length>1?a()(h.a,{id:this._audioStreamMenuButtonID,direction:c?D.a.UP:D.a.DOWN,onPress:this.onAudioStreamMenuButtonPress},void 0,A):A),a()(j.a,{label:Object(y.default)("Subtitles")},void 0,w?a()(h.a,{id:this._subtitlesStreamMenuButtonID,direction:u?D.a.UP:D.a.DOWN,onPress:this.onSubtitlesStreamMenuButtonPress},void 0,x):x),a()(I.a,{
target:this._audioStreamMenuButtonID,isOpen:c,serverEntityID:t,audioStreams:p,onMenuClose:this.onAudioStreamMenuClose,onStreamSelect:o}),a()(S.a,{target:this._subtitlesStreamMenuButtonID,isOpen:u,serverEntityID:t,metadataItemEntityID:n,subtitlesStreams:T,canShowMoreSubtitlesAction:r,onMenuClose:this.onSubtitlesStreamMenuClose,onStreamSelect:s}))},t}(p.Component);t.a=T},function(e,t,n){"use strict";function i(e){
var t=e.target,n=e.isOpen,i=e.serverEntityID,a=e.audioStreams,o=e.onMenuClose,s=e.onStreamSelect;return r()(l.a,{target:t,isOpen:n,size:u.e.LARGE,onMenuClose:o},void 0,a.map(function(e){return r()(d.a,{stream:e,onMenuClose:o,onStreamSelect:s},e.id,r()(c.a,{serverEntityID:i,type:"audio",stream:e}))}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=n(551),u=n(24),d=n(1612);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(56)),f=n(112),v=n(3),g=n(1613),m=n(551),y=n(24),b=n(1612),I=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMoreSubtitlesPress=function(){a.setState({isSubtitlesModalOpen:!0})},a.onSubtitlesModalClose=function(){a.setState({isSubtitlesModalOpen:!1})},a.state={isSubtitlesModalOpen:!1},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.target,n=e.isOpen,i=e.serverEntityID,r=e.metadataItemEntityID,o=e.subtitlesStreams,s=e.canShowMoreSubtitlesAction,l=e.onMenuClose,c=e.onStreamSelect;return a()(p.Fragment,{},void 0,a()(h.a,{target:t,isOpen:n,size:y.e.LARGE,onMenuClose:l},void 0,o.map(function(e){return a()(b.a,{stream:e,onMenuClose:l,onStreamSelect:c},e.id,a()(m.a,{serverEntityID:i,type:"subtitles",stream:e}))}),s&&a()(f.a,{onPress:this.onMoreSubtitlesPress},void 0,Object(v.default)("More..."))),a()(g.a,{
metadataItemEntityID:r,isOpen:this.state.isSubtitlesModalOpen,onModalClose:this.onSubtitlesModalClose}))},t}(p.Component);t.a=I},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"SubtitleModel",rootPropertyName:"Stream",syncedAttrs:{id:a.a.integer,key:a.a.string,streamType:a.a.integer,codec:a.a.string,index:a.a.integer,language:a.a.string,languageCode:a.a.string,score:a.a.float,providerTitle:a.a.string,title:a.a.string,displayTitle:a.a.string,reason:a.a.string,
hearingImpaired:a.a.boolean,perfectMatch:a.a.boolean,downloaded:a.a.boolean}});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.metadataItemEntityID,n=e.isOpen,i=e.onModalClose;return r()(c.a,{isOpen:n,metricsPage:l._7,onModalClose:i},void 0,r()(u.a,{metadataItemEntityID:t,onModalClose:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(114),u=n(3969);t.a=i},function(e,t,n){"use strict";function i(){
return Object(o.createSelector)(Object(u.a)("profile"),Object(l.a)(),c.a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=t.Media,a="";if(i&&i.length){var r=i[0],o=r.Part;o.length&&(a=Object(d.default)(o[0].file,55))}var s=n.subtitles,l=n.isSubtitlesPending,c=n.isSubtitlesPopulated,u=n.subtitlesError,p=n.subtitlesDownloadKey,h=n.isSubtitlesDownloaded,f=n.subtitlesDownloadError,v=l&&!u,g=c&&!u&&s.length>0,m=c&&!u&&0===s.length;return{mediaTitle:a,
defaultSubtitleLanguage:e.defaultSubtitleLanguage,subtitles:s,showSpinner:v,showSearchResults:g,showEmptyMessage:m,subtitlesDownloadKey:p,isSubtitlesDownloaded:h,hasSubtitlesError:!!u,subtitlesError:u,hasSubtitlesDownloadError:!!f,subtitlesDownloadError:f}})}function a(e,t){var n=t.metadataItemEntityID;return{onFetchSubtitles:function(t){var i=t.language,a=t.title;e(Object(s.b)({metadataItemEntityID:n,language:i,title:a}))},onDownloadSubtitle:function(t){
var i=t.key,a=t.codec,r=t.languageCode,o=t.providerTitle,l=t.hearingImpaired;e(Object(s.a)({metadataItemEntityID:n,key:i,codec:a,language:r,providerTitle:o,hearingImpaired:l}))}}}var r=n(11),o=n(4),s=(n.n(o),n(1032)),l=n(21),c=n(3970),u=n(393),d=n(1175),p=n(3971);t.a=Object(r.connect)(i,a)(p.a)},function(e,t,n){"use strict";function i(e){return e.ui.subtitlesModal}t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(59),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(255)),g=n(218),m=n(61),y=n(84),b=n(3972),I=n(3),S=n(31),M=n(217),D=n(98),C=n(24),j=n(3973),P=n(3976),O=n.n(P),T=a()(S.a,{}),E=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onSearch=function(){var e=a.state,t=e.language,n=e.title;a.props.onFetchSubtitles({language:t,title:n})},a.onLanguageChange=function(e){var t=o()(b.a).find(function(t){
return b.a[t]===e});a.setState({language:t},a.onSearch)},a.onTitleChange=function(e){a.searchTimeoutID&&clearTimeout(a.searchTimeoutID),a.setState({title:e},function(){a.searchTimeoutID=setTimeout(a.onSearch,500)})},a.state={language:Object(b.b)(n.defaultSubtitleLanguage),title:""},a.searchTimeoutID=null,a}return p()(t,e),t.prototype.componentDidMount=function(){this.onSearch()},t.prototype.componentDidUpdate=function(e,t){var n=this.props,i=n.isSubtitlesDownloaded,a=n.onModalClose
;!e.isSubtitlesDownloaded&&i&&a()},t.prototype.componentWillUnmount=function(){this.searchTimeoutID&&clearTimeout(this.searchTimeoutID)},t.prototype.render=function(){var e=this.props,t=e.mediaTitle,n=e.subtitles,i=e.showSpinner,r=e.showSearchResults,o=e.showEmptyMessage,s=e.hasSubtitlesError,l=e.subtitlesError,c=e.subtitlesDownloadKey,u=e.hasSubtitlesDownloadError,d=e.subtitlesDownloadError,p=e.onDownloadSubtitle,h=e.onModalClose,f=this.state.language;return a()("div",{
className:O.a.modalContainer},void 0,a()(D.a,{onModalClose:h},void 0,a()(y.a,{},void 0,Object(I.default)("Subtitles")),u?a()("div",{},void 0,a()(M.a,{errorMessage:d})):null,a()(m.a,{className:O.a.modalBody,scrollDirection:C.d.NONE},void 0,a()("div",{className:O.a.inputs},void 0,a()(v.a,{className:O.a.languageInput,name:"language",value:b.a[f],values:b.c,onChange:this.onLanguageChange}),a()(g.a,{className:O.a.titleInput,name:"title",placeholder:t,onChange:this.onTitleChange})),i&&a()("div",{
className:O.a.centeredContainer},void 0,T),s&&a()("div",{className:O.a.centeredContainer},void 0,l),r&&a()(j.a,{subtitles:n,subtitlesDownloadKey:c,onDownloadSubtitle:p}),o&&a()("div",{className:O.a.centeredContainer},void 0,Object(I.default)("No results")))))},t}(f.Component);t.a=E},function(e,t,n){"use strict";function i(){return[].concat(s).sort(o.c)}function a(e){if(l[e])return e;var t=Object(r.a)([e]);return l[t]?t:"en"}t.b=a,n.d(t,"c",function(){return c})
;var r=n(1615),o=n(462),s=["af","sq","ar","an","hy","az","eu","be","bn","bs","br","bg","my","ca","zh","zh-TW","cs","da","nl","en","eo","et","fi","fr","ka","de","gl","el","he","hi","hr","hu","is","id","it","ja","kn","kk","km","ko","ku","lv","lt","lb","mk","ml","ms","mn","no","oc","fa","pl","pt","pt-BR","ro","ru","sr","si","sk","sl","es","sw","sv","ta","te","tl","th","tr","uk","ur","vi"],l=s.reduce(function(e,t){return e[t]=o.b[t],e},{}),c=function(){return i().reduce(function(e,t){
return e.push(l[t]),e},[])}();t.a=l},function(e,t,n){"use strict";function i(e){var t=e.subtitles,n=e.subtitlesDownloadKey,i=e.onDownloadSubtitle;return r()(l.a,{},void 0,t.map(function(e){var t=e.key,a=e.title,o=e.displayTitle,s=e.providerTitle,l=e.score,u=e.codec,d=e.languageCode,p=e.hearingImpaired,h=e.perfectMatch,f=e.downloaded;return r()(c.a,{subtitleKey:t,title:a,displayTitle:o,providerTitle:s,score:l,codec:u,languageCode:d,hearingImpaired:p,perfectMatch:h,downloaded:f,
isDownloading:n===t,onDownloadSubtitle:i},t)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(3974);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(52),v=n(26),g=n(31),m=n(3975),y=n.n(m),b=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(){
var e=i.props,t=e.subtitleKey,n=e.codec,a=e.languageCode,r=e.providerTitle,o=e.hearingImpaired;(0,e.onDownloadSubtitle)({key:t,codec:n,languageCode:a,providerTitle:r,hearingImpaired:o})},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.displayTitle,i=e.score,r=e.perfectMatch,o=e.downloaded,s=e.isDownloading;return a()(h.a,{className:y.a.item,isDisabled:o||s,onPress:this.onPress},void 0,a()("div",{className:y.a.titles},void 0,a()("span",{
className:y.a.title},void 0,t),a()("span",{className:y.a.secondaryTitle},void 0,n)),a()("div",{className:y.a.score},void 0,r?a()(v.a,{className:y.a.perfectMatch,name:"plex-icon-star-full-560"}):null,i),s?a()("div",{className:y.a.centeredContainer},void 0,a()(g.a,{size:f.SMALL})):null,o?a()(v.a,{className:y.a.downloadedIcon,name:"plex-icon-selected-560"}):null,s||o?null:a()(v.a,{className:y.a.downloadIcon,name:"plex-icon-toolbar-sync-560"}))},t}(p.Component);t.a=b},function(e,t){e.exports={
item:"SubtitleRow-item-1suQR",downloadIcon:"SubtitleRow-downloadIcon-3pqWj SubtitleRow-icon-21El6 SubtitleRow-centeredContainer-2zmv_",titles:"SubtitleRow-titles-3FAr9",title:"SubtitleRow-title-1Jeyw",secondaryTitle:"SubtitleRow-secondaryTitle-17rEP SubtitleRow-title-1Jeyw",score:"SubtitleRow-score-1DVm2",perfectMatch:"SubtitleRow-perfectMatch-3N1Bn",centeredContainer:"SubtitleRow-centeredContainer-2zmv_",icon:"SubtitleRow-icon-21El6 SubtitleRow-centeredContainer-2zmv_",
downloadedIcon:"SubtitleRow-downloadedIcon-2F0Cd SubtitleRow-icon-21El6 SubtitleRow-centeredContainer-2zmv_"}},function(e,t){e.exports={modalContainer:"SubtitlesModalContent-modalContainer-3B7OA",modalBody:"SubtitlesModalContent-modalBody-3sIFe ModalBody-modalBody--5uHS",inputs:"SubtitlesModalContent-inputs-b332_",languageInput:"SubtitlesModalContent-languageInput-10IPx SelectInput-input-x1tNm input-input-1P2Vi",
titleInput:"SubtitlesModalContent-titleInput-sGHLR TextInput-input-1VMum input-input-1P2Vi",centeredContainer:"SubtitlesModalContent-centeredContainer-2fFRI"}},function(e,t){e.exports={loadingMessage:"PrePlayDetailsStreamsGroup-loadingMessage-27_nd"}},function(e,t){e.exports={ratingRightTitle:"PrePlayRatingRightTitle-ratingRightTitle-1d4Yy PrePlayRightTitle-rightTitle-VxiwU",starRating:"PrePlayRatingRightTitle-starRating-31XbA",criticRating:"PrePlayRatingRightTitle-criticRating-2J_tn"}
},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={isPartialMediaGrab:!1,mediaGrabError:null},n=e.Media;if(!n||!n.length)return t;for(var i=0;i<n.length;i++){var a=n[i],r=a.mediaGrabPartialRecording,o=a.mediaGrabError;r&&(t.isPartialMediaGrab=!0),o&&(t.mediaGrabError=a.mediaGrabError)}return t})}t.a=i;var a=n(4),r=(n.n(a),n(21))},function(e,t,n){"use strict";function i(){
return Object(a.createSelector)(function(e){return e.ui.prePlayPage},Object(r.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.isFileUnavailable)return!0;var n=t.Media;if(!n||!n.length)return!1;for(var i=0,a=n.length;i<a;i++){var r=n[i],o=r.Part;if(o&&o.length)for(var s=0,l=o.length;s<l;s++){var c=o[s];if(!1===c.exists||!1===c.accessible)return!0}}return!1})}t.a=i;var a=n(4),r=(n.n(a),n(21))},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.duration,o=e.saved,s=e.viewCount,d=e.viewOffset,y=e.isFileUnavailable,b=e.isPartialMediaGrab,I=e.mediaGrabError,S=e.onGetInfoPress,M=!s&&!d,D=!!d,C=!!a||M||D;return r()(h.a,{},void 0,C&&r()(v.a,{},void 0,r()(c.a,{duration:a}),!!a&&(M||D)&&m,(null==o&&M||null!=o&&o&&M)&&Object(l.default)("Unplayed"),D&&r()(u.a,{duration:a,viewOffset:d})),r()(p.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),y&&r()(g.a,{
onPress:S}),!y&&(b||!!I)&&r()(f.a,{mediaGrabError:I,onPress:S}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(717),u=n(1006),d=n(3982),p=n(742),h=n(118),f=n(3986),v=n(1616),g=n(3989),m=r()(d.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.separator;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3983)),c=n.n(l);i.defaultProps={className:c.a.separator,separator:"\xb7"},t.a=i},function(e,t){e.exports={
separator:"PrePlayDashSeparator-separator-1d01z"}},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.contentRating;if(!a)return null;var o={filters:"contentRating="+encodeURIComponent(a),filterLabel:a};return r()(u.a,{to:Object(c.a)(t,n,i,o)},void 0,Object(l.a)(a))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1009)),c=(n(99),n(140),n(150)),u=n(1034);t.a=i},function(e,t){e.exports={
statusButton:"PrePlayStatusButton-statusButton-28XJ7 Button-default--yDCH"}},function(e,t,n){"use strict";function i(e){var t=e.mediaGrabError,n=e.onPress;return t?r()(c.a,{className:d.a.failedButton,title:t,onPress:n},void 0,Object(l.default)("Failed Recording")):r()(c.a,{className:d.a.partialButton,onPress:n},void 0,Object(l.default)("Partial Recording"))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1034),u=n(3987),d=n.n(u);t.a=i},function(e,t){e.exports={
partialButton:"PrePlayRecordingStatusButton-partialButton-1aQ0t PrePlayStatusButton-statusButton-28XJ7 Button-default--yDCH",failedButton:"PrePlayRecordingStatusButton-failedButton-ap5JD PrePlayStatusButton-statusButton-28XJ7 Button-default--yDCH"}},function(e,t){e.exports={tertiaryTitleSpacer:"PrePlayTertiaryTitleSpacer-tertiaryTitleSpacer-14zhL"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.onPress;return r()(c.a,{className:t,onPress:n
},void 0,Object(l.default)("Unavailable"))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1034),u=n(3990),d=n.n(u);i.defaultProps={className:d.a.unavailableButton},t.a=i},function(e,t){e.exports={unavailableButton:"PrePlayUnavailableButton-unavailableButton-3dycr PrePlayStatusButton-statusButton-28XJ7 Button-default--yDCH"}},function(e,t,n){"use strict";function i(e){var t=e.originallyAvailableAt;return r()(h.a,{},void 0,!!t&&Object(p.default)("{monthName} {day}, {year}",{
monthName:Object(d.a)(Object(o.a)(Object(s.a)(t))),day:Object(u.default)(t,"d"),year:Object(u.default)(t,"yyyy")}))}var a=n(2),r=n.n(a),o=n(147),s=n(23),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(305)),d=n(1e3),p=n(3),h=n(482);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.Genre,o=!(!a||!a.length);return r()(c.a,{},void 0,o&&r()(l.a,{server:t,provider:n,librarySectionKey:i,Genre:a}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(1036)),c=(n(99),n(140),n(482));t.a=i},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(Object(c.a)(),Object(l.a)(),u.a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return{type:t.type,posterUrl:t.thumb,autoPlayEnabled:n.autoPlay}})}function a(e,t){var n=t.playerType;return{onToggleAutoPlay:function(){e(Object(d.b)({playerType:n}))},onPlay:function(){e(Object(s.k)({playerType:n}))}}}var r=n(11),o=n(4),s=(n.n(o),
n(143)),l=n(21),c=n(89),u=n(72),d=n(1619),p=n(3994);t.a=Object(r.connect)(i,a)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(388),v=n(3),g=n(33),m=n(320),y=n(222),b=n(236),I=n(1414),S=n(130),M=n(46),D=(n.n(M),n(3995)),C=n.n(D),j=parseInt(M.postPlayPosterWidth,10),P=parseInt(M.postPlayTitleHeight,10)+parseInt(M.postPlayAutoPlayHeight,10),O=10,T=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.height,n=Math.min(Object(S.d)(j,a.props.type,a.props.subtype,g.i),t-P),i=Object(S.e)(n,a.props.type,a.props.subtype,g.i);a.setState({isMeasured:!0,width:i,height:n})},a.onCountdown=function(){var e=a.state.secondsLeft-1;e<=0?a.props.onPlay():a.setState({secondsLeft:e})},a.state={isMeasured:!1,width:0,height:0,secondsLeft:O},a}return u()(t,e),t.prototype.componentDidMount=function(){
this.props.autoPlayEnabled&&(this._tickIntervalID=setInterval(this.onCountdown,1e3))},t.prototype.componentWillReceiveProps=function(e){this.props.autoPlayEnabled&&!e.autoPlayEnabled&&(clearInterval(this._tickIntervalID),this.setState({secondsLeft:O})),!this.props.autoPlayEnabled&&e.autoPlayEnabled&&(this._tickIntervalID=setInterval(this.onCountdown,1e3))},t.prototype.componentWillUnmount=function(){clearInterval(this._tickIntervalID)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.type,r=e.posterUrl,o=e.autoPlayEnabled,s=e.onToggleAutoPlay,l=e.onPlay,c=this.state,u=c.isMeasured,d=c.width,p=c.height,g=c.secondsLeft,S=O-g+1,M=S/O*100;return a()(h.a,{className:C.a.container,onMeasure:this.onContentMeasure},void 0,a()("div",{className:C.a.title},void 0,Object(v.default)("Playing Next")),u&&a()("div",{className:C.a.poster,style:{width:d,height:p}},void 0,a()(b.a,{serverEntityID:t,providerEntityID:n,type:i,width:d,
height:p,url:r}),o&&a()("div",{className:C.a.progress},void 0,a()(m.a,{size:d/4,lineWidth:3,progress:M,showProgressText:!1,easing:I.a}),a()("span",{className:C.a.timeLeft},void 0,g)),a()(y.a,{className:C.a.playButton,circleClassName:C.a.playCircle,"aria-label":Object(v.default)("Play Next"),onPress:l})),a()(f.a,{className:o?C.a.autoPlayOn:C.a.autoPlayOff,name:"autoPlayCheck",value:o,checkboxText:o?Object(v.default)("Auto Play On"):Object(v.default)("Auto Play Off"),onChange:s}))},t}(p.Component)
;t.a=T},function(e,t){e.exports={container:"AudioVideoUpNext-container-1Hyiy",title:"AudioVideoUpNext-title-2RflZ",poster:"AudioVideoUpNext-poster-362Qo",progress:"AudioVideoUpNext-progress-3dmBn",playButton:"AudioVideoUpNext-playButton-3X0Mb PlayButton-playButton-3WX8X",playCircle:"AudioVideoUpNext-playCircle-RTuur PlayButton-playCircle-3Evfd",timeLeft:"AudioVideoUpNext-timeLeft--rCIM",autoPlay:"AudioVideoUpNext-autoPlay-2s2lS",
autoPlayOn:"AudioVideoUpNext-autoPlayOn-2tSBY AudioVideoUpNext-autoPlay-2s2lS",autoPlayOff:"AudioVideoUpNext-autoPlayOff-3tmvp AudioVideoUpNext-autoPlay-2s2lS"}},function(e,t){e.exports={container:"AudioVideoPostPlay-container-1G36_",poster:"AudioVideoPostPlay-poster-1YcVF",details:"AudioVideoPostPlay-details-2CzQu"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.audioVideoPlayer},Object(o.a)(),function(e,t){return{
serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,itemEntityIDs:t.alsoAiring}})}var a=n(11),r=n(4),o=(n.n(r),n(205)),s=n(3998);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.itemEntityIDs,a=e.playerType;return r()("div",{className:f.a.container},void 0,r()(p.a,{},void 0,r()(d.a,{title:Object(c.default)("Airing Now")})),r()(l.a,{className:f.a.content,autoScroll:!0},void 0,i.map(function(e){
return r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:e,playerType:a},e)})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(3),u=n(3999),d=n(1594),p=n(1595),h=n(4005),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(e,t){var n={playerType:t.playerType,serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID};return{onPlayPress:function(){e(Object(r.l)(n))}}}var a=n(11),r=n(206),o=n(4e3)
;t.a=Object(a.connect)(null,i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.metadataItemEntityID,n=e.playerType,i=e.onPlayPress;return r()("div",{className:d.a.container},void 0,r()(l.a,{className:d.a.underlay,onPress:i}),r()(c.a,{className:d.a.metadataContainer,posterPlayButtonClassName:d.a.metadataPosterPlayButton,metadataItemEntityID:t,playerType:n,onPlayPress:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(4001),u=n(4004),d=n.n(u);t.a=i},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(function(e){return e.experienceSettings.timeFormat},Object(l.a)(),Object(o.a)(),Object(s.a)(),function(e,t,n,i){var a=c.c,r=Object(d.c)(n.type,n.subtype,a)===d.a?h:f,o=Object(u.a)(r,null,n.type,n.subtype,n,a);return{serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,type:n.type,title:n.title,context:a,imageWidth:o.width,imageHeight:o.height,imageUrl:o.url,beginsAt:i&&i.beginsAt,endsAt:i&&i.endsAt,
channelTitle:i&&i.channelTitle,timeFormat:e}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(480),l=n(89),c=n(33),u=n(261),d=n(130),p=n(4002),h=64,f=36;t.a=Object(a.connect)(i)(p.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.posterPlayButtonClassName,i=e.serverEntityID,a=e.providerEntityID,o=e.metadataItemEntityID,s=e.type,p=e.title,f=e.context,v=e.imageWidth,g=e.imageHeight,m=e.imageUrl,y=e.beginsAt,b=e.endsAt,I=e.channelTitle,S=e.timeFormat,M=e.onPlayPress,D=Object(d.b)(s,f,{
providerEntityID:a});return r()("div",{className:t},void 0,r()("div",{className:h.a.channelInfoContainer},void 0,r()("div",{className:h.a.channelTitle},void 0,I.substring(0,I.lastIndexOf(" ")))),r()("div",{className:h.a.cardContainer},void 0,r()(c.a,{playButtonClassName:n,playCircleClassName:h.a.posterPlayCircle,serverEntityID:i,providerEntityID:a,imageWidth:v,imageHeight:g,imageUrl:m,title:p,onPlayPress:M})),r()("div",{className:h.a.titlesContainer},void 0,r()("div",{className:h.a.titles
},void 0,D.map(function(e,t){return r()(u.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:o,component:e,isSecondary:t>0},t)}))),r()("div",{className:h.a.airTimeContainer},void 0,!!y&&!!b&&Object(l.a)(y,b,{timeFormat:S,separator:" \u2014 "})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(574)),c=(n(33),n(978)),u=n(288),d=n(207),p=n(4003),h=n.n(p);i.defaultProps={className:h.a.container},t.a=i},function(e,t){e.exports={container:"LiveTVAlsoAiringItemMetadata-container-mHohH",
channelInfoContainer:"LiveTVAlsoAiringItemMetadata-channelInfoContainer-17N5O",channelTitle:"LiveTVAlsoAiringItemMetadata-channelTitle-5p11m",cardContainer:"LiveTVAlsoAiringItemMetadata-cardContainer-1KCMc",titlesContainer:"LiveTVAlsoAiringItemMetadata-titlesContainer-1JomM",titles:"LiveTVAlsoAiringItemMetadata-titles-2BF9G",airTimeContainer:"LiveTVAlsoAiringItemMetadata-airTimeContainer-1-UHs",
posterPlayCircle:"LiveTVAlsoAiringItemMetadata-posterPlayCircle-1Kmt_ MetadataPosterButtonCard-playCircle-366hc PlayButton-playCircle-3Evfd"}},function(e,t){e.exports={container:"LiveTVAlsoAiringItem-container-1yHzB",metadataPosterPlayButton:"LiveTVAlsoAiringItem-metadataPosterPlayButton-1spkg MetadataPosterButtonCard-playButton-aOV1E PlayButton-playButton-3WX8X",underlay:"LiveTVAlsoAiringItem-underlay-2Zawk",
metadataContainer:"LiveTVAlsoAiringItem-metadataContainer-i4aJc LiveTVAlsoAiringItemMetadata-container-mHohH"}},function(e,t){e.exports={container:"LiveTVAlsoAiring-container-3XW6f",content:"LiveTVAlsoAiring-content-5i41J Scroller-vertical-VScFL",tooltipButton:"LiveTVAlsoAiring-tooltipButton-3Azay"}},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(Object(b.createStructuredSelector)({availableQualities:Object(O.a)("availableQualities"),transcodeServer:Object(w.a)(),
currentDecision:Object(C.a)(),currentBandwidth:Object(D.a)(),mediaItem:Object(j.a)(),canPlayAdaptiveBitrate:Object(M.a)()}),L.a)}function a(){return Object(b.createSelector)(Object(O.a)("controllable"),i(),Object(P.a)(),Object(w.a)(),Object(O.a)("qualityIndex"),Object(O.a)("serverEntityID"),Object(E.a)(),Object(T.a)(),Object(x.a)(),A.a,function(e,t,n,i,a,r,o,s,l,c){var u=o.protocols.includes(N.a);return{serverEntityID:r,metadataItemEntityID:s?s.entityID:null,availableQualities:t,
audioStreams:n.audioStreams,selectedAudioStream:n.selectedAudioStream,subtitlesStreams:n.subtitlesStreams,selectedSubtitlesStream:n.selectedSubtitlesStream,selectedSubtitlesSize:c.subtitleSize,autoPlay:c.autoPlay,canSetVideoQuality:e?!!e.quality:!!i.transcoderVideo&&!i.transcoderVideoRemuxOnly,canSetAudioStream:!e||!!e.audioStream,canSetSubtitleStream:!e||!!e.subtitleStream,canSetSubtitleSize:e?!!e.subtitleSize:!u,canSetAutoPlay:e?!!e.autoPlay:!u,canShowMoreSubtitlesAction:l,
canShowLiveTVSignalStrength:u,qualityIndex:a}})}var r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(172)),S=n(143),M=n(4007),D=n(4008),C=n(240),j=n(986),P=n(1510),O=n(153),T=n(178),E=n(262),w=n(710),A=n(72),x=n(4009),N=n(611),L=n(4010),k=n(4012),R={dispatchChangeQualityIndex:S.e,dispatchChangeStream:S.f,dispatchChangeSubtitleSize:S.g,dispatchSetAutoPlay:I.o},z=function(e){function t(){var n,i,a
;u()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=p()(this,e.call.apply(e,[this].concat(o))),i.onQualityChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchChangeQualityIndex)({playerType:n,qualityIndex:parseInt(e,10)})},i.onAudioStreamChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchChangeStream)({playerType:n,streamTypeString:"audio",streamID:parseInt(e,10)})},i.onSubtitleStreamChange=function(e){var t=i.props,n=t.playerType;(0,
t.dispatchChangeStream)({playerType:n,streamTypeString:"subtitles",streamID:parseInt(e,10)})},i.onSubtitleSizeChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchChangeSubtitleSize)({playerType:n,subtitleSize:parseInt(e,10)})},i.onAutoPlayChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchSetAutoPlay)({playerType:n,autoPlay:e})},a=n,p()(i,a)}return f()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeQualityIndex,e.dispatchChangeStream,
e.dispatchChangeSubtitleSize,e.dispatchSetAutoPlay,l()(e,["dispatchChangeQualityIndex","dispatchChangeStream","dispatchChangeSubtitleSize","dispatchSetAutoPlay"]));return m.a.createElement(k.a,o()({},t,{onQualityChange:this.onQualityChange,onAudioStreamChange:this.onAudioStreamChange,onSubtitleStreamChange:this.onSubtitleStreamChange,onSubtitleSizeChange:this.onSubtitleSizeChange,onAutoPlayChange:this.onAutoPlayChange}))},t}(g.Component);t.a=Object(y.connect)(a,R)(z)},function(e,t,n){
"use strict";function i(){return Object(a.createSelector)(function(e){return!!e.remotePlayer},Object(o.a)(),Object(r.a)(),function(e,t,n){return Object(s.a)()&&t.hasAdaptiveBitrate&&!e&&!n})}t.a=i;var a=n(4),r=(n.n(a),n(205)),o=n(710),s=n(1037)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(l.a)(["bandwidthTimeline","positionSeconds"]),Object(s.a)(),function(e,t){var n=e.bandwidthTimeline
;if(!(t&&n&&n.bandwidths&&n.transcodeSessionID&&n.transcodeSessionID===t.transcodeSessionID))return null;var i=1e3*e.positionSeconds,a=n.bandwidths.filter(function(e){return parseInt(e.time,10)<=i});return 0===a.length?null:o.a.max(a,function(e){return parseInt(e.time,10)})})}t.a=i;var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(240),l=n(567)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e){return e.remotePlayer
},Object(o.a)(),Object(r.a)(),Object(s.a)(l.m),function(e,t,n,i){return Object(c.a)(t,i,n,e)})}var a=n(4),r=(n.n(a),n(178)),o=n(568),s=n(256),l=n(79),c=n(1611);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.availableQualities,n=e.transcodeServer,i=e.currentDecision,l=e.currentBandwidth,c=e.mediaItem,u=e.canPlayAdaptiveBitrate;if(!c)return[];var d=[],p=n.maxUploadBitrate,h=c.bitrate,f=!p||h&&p>h,v=i&&i.canPlayOriginalQuality;return f&&v&&d.push(a(c)),u&&d.push(r(i,l)),
f&&!v&&d.push(o(c)),d.push.apply(d,t.map(s).reverse()),d}function a(e){var t=l(e.width,e.height,e.bitrate),n=c(t);return{index:v.a.ORIGINAL,explicitQuality:!1,conversionDescriptionSummary:p([Object(g.default)("Original"),d(n)]),conversionDescription:Object(g.default)("Play Original Quality"),conversionDescriptionExtra:n}}function r(e,t){var n={index:v.a.CONVERT_AUTOMATICALLY,explicitQuality:!1,conversionDescription:Object(g.default)("Convert Automatically")}
;if(e&&e.qualityIndex===v.a.CONVERT_AUTOMATICALLY&&t){var i=c({bitrate:Object(h.default)(t.bandwidth),resolution:t.resolution});n.conversionDescriptionSummary=Object(g.default)("Auto (Now: {bitrateWithResolution})",{bitrateWithResolution:i}),n.conversionDescriptionExtra=Object(g.default)("Now: {bitrateWithResolution}",{bitrateWithResolution:i})}else n.conversionDescriptionSummary=Object(g.default)("Convert Automatically");return n}function o(e){
var t=l(e.width,e.height,e.bitrate),n=u(t),i=n?Object(g.default)("Convert to"):Object(g.default)("Convert");return{index:v.a.ORIGINAL,explicitQuality:!1,conversionDescriptionSummary:Object(g.default)("Convert (Maximum)"),conversionDescription:p([i,n,d(Object(g.default)("Maximum"))]),conversionDescriptionExtra:t.bitrate}}function s(e){var t=e.videoResolution.split("x"),n=l(t[0],t[1],e.bitrate),i=c(n),a=u(n);return{index:e.index,explicitQuality:!0,
conversionDescriptionSummary:p([Object(g.default)("Convert"),d(i)]),conversionDescription:p([Object(g.default)("Convert to"),a]),conversionDescriptionExtra:n.bitrate}}function l(e,t,n){var i=Object(f.a)(e,t,n);return{bitrate:Object(h.default)(n),resolution:i.resolution,resolutionDescription:i.description,resolutionDescriptionExtra:d(i.descriptionExtra)}}function c(e){var t=p([e.resolution,e.resolutionDescription]);return e.bitrate?p([e.bitrate,t],", "):t}function u(e){
return p([e.resolution,e.resolutionDescription,e.resolutionDescriptionExtra])}function d(e){return e&&0!==e.length?"("+e+")":""}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.filter(function(e){return e}).join(t)}t.a=i;var h=n(520),f=n(4011),v=n(622),g=n(3)},function(e,t,n){"use strict";function i(e,t,n){if(!e&&!t)return{resolution:"",description:"",descriptionExtra:""};var i=Object(o.a)(e,t);return{resolution:i+"p",description:a(i),
descriptionExtra:r(i,n)}}function a(e){return e>2560?"8K":e>1100?"4K":e>576?"HD":""}function r(e,t){return e<=576||e>1100||!t?"":t<=2e3?"":t<=3e3?Object(s.default)("Medium"):t<=4e3?Object(s.default)("High"):t<=8e3?"":t<=1e4?"":t<=12e3?Object(s.default)("Medium"):Object(s.default)("High")}t.a=i;var o=n(1182),s=n(3)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(388)),f=n(711),v=n(1507),g=n(369),m=n(3),y=n(4013),b=n(1613),I=n(551),S=n(1523),M=n(4014),D=n(994),C=n(4018),j=n(24),P="more",O=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSubtitleStreamChange=function(e){e===P?a.onMoreSubtitlesPress():a.props.onSubtitleStreamChange(e)},a.onMoreSubtitlesPress=function(){a.setState({isSubtitlesModalOpen:!0})},a.onSubtitlesModalClose=function(){a.setState({isSubtitlesModalOpen:!1})},a.state={isSubtitlesModalOpen:!1},a}
return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.bottom,n=e.serverEntityID,i=e.metadataItemEntityID,r=e.playerType,o=e.availableQualities,s=e.audioStreams,l=e.selectedAudioStream,c=e.subtitlesStreams,u=e.selectedSubtitlesStream,d=e.selectedSubtitlesSize,O=e.autoPlay,T=e.qualityIndex,E=e.canSetVideoQuality,w=e.canSetAudioStream,A=e.canSetSubtitleStream,x=e.canSetSubtitleSize,N=e.canSetAutoPlay,L=e.canShowMoreSubtitlesAction,k=e.canShowLiveTVSignalStrength,R=e.onQualityChange,z=e.onAudioStreamChange,U=e.onSubtitleSizeChange,B=e.onAutoPlayChange,F=A&&(L||c.length>1),_=F&&x&&!Object(g.a)(),V=E&&!!o.length&&null!=T&&o.findIndex(function(e){
return e.index===T})>-1,H=_&&u&&0!==u.id&&!Object(v.a)(u.codec),Q=void 0;if(F&&(Q=c.map(function(e){var t,i=a()(I.a,{serverEntityID:n,type:"subtitles",stream:e});return t={},t[""+e.id]=i,t}),L)){var Y;Q.push((Y={},Y[P]=Object(m.default)("More..."),Y))}return a()(p.Fragment,{},void 0,a()(S.a,{bottom:t},void 0,V&&a()(D.a,{label:Object(m.default)("Quality")},void 0,a()(M.a,{qualityIndex:T,availableQualities:o,onQualityChange:R})),a()(D.a,{label:Object(m.default)("Audio Stream")
},void 0,w&&s.length>1?a()(y.a,{name:"audioStream",size:j.e.MEDIUM,value:""+l.id,values:s.map(function(e){var t,i=a()(I.a,{serverEntityID:n,type:"audio",stream:e});return t={},t[""+e.id]=i,t}),onChange:z}):a()(I.a,{serverEntityID:n,type:"audio",stream:l})),a()(D.a,{label:Object(m.default)("Subtitles")},void 0,F?a()(y.a,{name:"subtitleStream",size:j.e.MEDIUM,value:""+u.id,values:Q,onChange:this.onSubtitleStreamChange}):a()(I.a,{serverEntityID:n,type:"subtitles",stream:u})),_?a()(D.a,{
label:Object(m.default)("Subtitle Size"),isDisabled:!H},void 0,a()(y.a,{name:"subtitleSize",size:j.e.MEDIUM,value:d.toString(),values:f.a.settings.map(function(e){var t;return t={},t[e.value]=e.title,t}),onChange:U})):null,N?a()(D.a,{label:Object(m.default)("Auto Play")},void 0,a()(h.a,{name:"autoPlay",size:j.e.SMALL,value:O,onChange:B})):null,k?a()(C.a,{serverEntityID:n,playerType:r}):null),a()(b.a,{metadataItemEntityID:i,isOpen:this.state.isSubtitlesModalOpen,
onModalClose:this.onSubtitlesModalClose}))},t}(p.Component);t.a=O},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(10),b=n.n(y),I=n(275),S=n(56),M=n(47),D=n(103),C=n(24),j=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onToggleMenuPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(e){a.setState({isMenuOpen:!1
})},a.onSelectPress=function(e){return function(t){a.props.onChange(e)}},a.state={isMenuOpen:!1},a._menuInputButtonID=Object(M.a)(),a}return f()(t,e),t.prototype.getSelectedValue=function(e,t){var n=b.a.find(e,function(e){return b.a.isString(e)?e===t:b.a.keys(e)[0]===t});return b.a.isString(n)?n:n[b.a.keys(n)[0]]},t.prototype.render=function(){var e=this,t=this.props,n=(t.name,t.size),i=t.kind,r=t.value,s=t.values,c=l()(t,["name","size","kind","value","values"]);return o()(I.a,{
id:this._menuInputButtonID,size:n,kind:i,direction:this.state.isMenuOpen?C.a.UP:C.a.DOWN,onPress:this.onToggleMenuPress},void 0,this.getSelectedValue(s,r),m.a.createElement(S.a,a()({isOpen:this.state.isMenuOpen,target:this._menuInputButtonID,onMenuClose:this.onMenuClose},c),s.map(function(t){if(b.a.isString(t))return o()(D.a,{isSelected:t===r,onPress:e.onSelectPress(t)},t,t);var n=b.a.keys(t),i=n[0];return o()(D.a,{isSelected:i===r,onPress:e.onSelectPress(i)},i,t[i])})))},t}(g.Component);t.a=j
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(275),g=n(56),m=n(47),y=n(233),b=n(146),I=n(3),S=n(4015),M=n(24),D=n(4017),C=n.n(D),j="toggleShowAll",P={placement:"top-start"},O=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));a.onToggleMenuPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(e){a.setState({isMenuOpen:!1})},
a.onQualitySelect=function(e){if(e===j)return void a.setState({showAll:!0,qualities:a._getQualityMenuValues(a.props.availableQualities,a.props.qualityIndex,!0)});a.setState({isMenuOpen:!1}),a.props.onQualityChange(e)};var r=!a._canToggleShowAll(n.availableQualities);return a.state={isMenuOpen:!1,showAll:r,qualities:a._getQualityMenuValues(n.availableQualities,n.qualityIndex,r)},a._menuInputButtonID=Object(m.a)(),a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){
var t=e.qualityIndex!==this.props.qualityIndex,n=e.availableQualities!==this.props.availableQualities;if(t||n){var i=this.state.showAll;!n||i||this._canToggleShowAll(e.availableQualities)||(i=!0),this.setState({showAll:i,qualities:this._getQualityMenuValues(e.availableQualities,e.qualityIndex,i)})}},t.prototype._canToggleShowAll=function(e){var t=e.some(function(e){return!0===e.explicitQuality}),n=!!f.a.findWhere(e,{index:b.a.CONVERT_AUTOMATICALLY});return t&&n},
t.prototype._getQualityMenuValues=function(e,t,n){var i=e.filter(function(e){return n||!e.explicitQuality||e.index===t});return i.push({index:j,conversionDescription:Object(I.default)("Show all")}),i},t.prototype.render=function(){var e=this,t=this.props.qualityIndex,n=this.state.qualities,i=n.find(function(e){return e.index===t});return a()(v.a,{id:this._menuInputButtonID,"data-qa-id":"videoQuality",size:M.e.MEDIUM,direction:this.state.isMenuOpen?y.UP:y.DOWN,onPress:this.onToggleMenuPress
},void 0,i.conversionDescriptionSummary,a()(g.a,{className:C.a.menu,isOpen:this.state.isMenuOpen,target:this._menuInputButtonID,options:P,onMenuClose:this.onMenuClose},void 0,n.map(function(n){return a()(S.a,{conversionQualityIndex:n.index,conversionQuality:n,isSelected:n.index===t,isHidden:e.state.showAll&&n.index===j,onQualitySelect:e.onQualitySelect},n.index)})))},t}(p.Component);t.a=O},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=n(4016),v=n.n(f),g=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){i.props.onQualitySelect(i.props.conversionQualityIndex)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.conversionQualityIndex,n=e.conversionQuality,i=e.isSelected,r=e.isHidden;return a()(h.a,{isSelected:i,isHidden:r,onPress:this.onPress},t,n.conversionDescription,n.conversionDescriptionExtra&&a()("span",{className:v.a.itemExtraDetail,"data-qa-id":"playbackBitrateQuality"},void 0,n.conversionDescriptionExtra))},t}(p.Component);t.a=g},function(e,t){e.exports={itemExtraDetail:"AudioVideoQualityMenuItem-itemExtraDetail-202QW"}},function(e,t){e.exports={
menu:"AudioVideoQualityMenuInput-menu-2i8jz MenuContainer-menu-2OAQT"}},function(e,t,n){"use strict";function i(){return Object(r.createStructuredSelector)({signalStrength:Object(o.a)()})}var a=n(11),r=n(4),o=(n.n(r),n(4019)),s=n(4020);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(r.a)(),function(e,t){if(e){var n=t.find(function(t){return t.uuid===e.activityUUID});if(n)return n.Context&&n.Context.signalStrength}})}
var a=n(4),r=(n.n(a),n(319)),o=n(205);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.signalStrength;return null==t?null:r()(c.a,{label:Object(l.default)("Antenna Signal Strength")},void 0,t,"%")}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(994);t.a=i},function(e,t){e.exports={fullPlayer:"AudioVideoFullPlayer-fullPlayer-3bJyO",bar:"AudioVideoFullPlayer-bar-dDYeo",topBar:"AudioVideoFullPlayer-topBar-2XUGM AudioVideoFullPlayer-bar-dDYeo",
bottomBar:"AudioVideoFullPlayer-bottomBar-2yixi AudioVideoFullPlayer-bar-dDYeo",content:"AudioVideoFullPlayer-content-37T7O",isVideo:"AudioVideoFullPlayer-isVideo-1aASw",isPlayQueueVisible:"AudioVideoFullPlayer-isPlayQueueVisible-1caox",hideControls:"AudioVideoFullPlayer-hideControls-3B1pW"}},function(e,t,n){"use strict";function i(e){return r()(c.a,{isPlayQueueLoading:e.isPlayQueueLoading},void 0,l.a.createElement(u.a,e))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(1620),u=n(1524)
;t.a=i},function(e,t){e.exports={playQueueIsLoading:"MiniPlayerContainer-playQueueIsLoading-30Z4G"}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(136)),r=Object(i.createSelector)(function(e){return e.experienceSettings.restorePlayQueue},function(e){return e.user.id},a.a,function(e,t,n){var i=void 0;e&&e[t]&&(i=e[t]);var a=i&&n[i.providerEntityID];if(i&&i.playQueueID&&a&&a.isPopulated)return i});t.a=r},function(e,t){e.exports={container:"AudioVideoPlayerView-container-kWiFs"}
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(107)),s=n(48),l=n(1621),c=n(4027),u=s.a.extend({component:function(){return a()(l.a,{component:c.a,playerType:o.b})}});t.a=u},function(e,t,n){"use strict";function i(){return Object(u.createSelector)(function(e,t){return t.isMiniPlayer},Object(v.a)(),Object(h.a)(),Object(f.a)(),function(e,t,n,i){var a={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,confirmPlaybackPayload:t.confirmPlaybackPayload,
confirmOffsetPayload:t.confirmOffsetPayload,confirmRemoteToLocal:t.confirmRemoteToLocal,confirmLocalToRemote:t.confirmLocalToRemote,isPlayQueueLoading:t.isPlayQueueLoading,isMediaLoading:t.isMediaLoading,isPaused:t.isPaused,isBuffering:t.isBuffering,hasError:t.hasError,errorMessage:t.errorMessage,showBackgroundVideoPlayer:!!n&&!e},r=t.playQueue;if(r&&i){var o=r.currentIndex;a.playQueueItemEntityIDs=r.playQueueItems,a.playQueueItemEntityID=i.entityID,a.canSkipPrevious=o>0,
a.canSkipNext=o<r.playQueueItems.length-1,a.size=r.length,a.firstIndex=r.playQueueSelectedItemOffset-o,a.currentMediaType=Object(m.r)(i.type).mediaType}return a.isVideo=a.currentMediaType===g.d,a.isPhoto=a.currentMediaType===g.c,a})}function a(e,t){var n=t.playerType;return{onPlayPreviousItem:function(){e(d.i({playerType:n}))},onPlayNextItem:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(d.h({playerType:n,autoPlay:t.autoPlay}))},onPlayItem:function(t){e(d.f({
playerType:n,index:t}))},onTogglePlayPause:function(){e(p.u({playerType:n}))}}}var r=n(6),o=n.n(r),s=n(1),l=n.n(s),c=n(11),u=n(4),d=(n.n(u),n(172)),p=n(143),h=n(240),f=n(142),v=n(89),g=n(63),m=n(27),y=n(4028),b=Object(c.connect)(i,a)(y.a);b.propTypes=o()({},b.propTypes,{playerType:l.a.string.isRequired}),t.a=b},function(e,t,n){"use strict";function i(e){return!!e.playQueueItemEntityID&&!e.isPaused&&!e.isRemotePlayer&&e.isPhoto}
var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(107),g=n(1512),m=n(989),y=n(4029),b=n(4063),I=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onSlideShowAdvance=function(){a.props.onPlayNextItem({autoPlay:!0})},a.onPlaybackDimensionsChange=function(e){var t=e.width,n=e.height;a.setState({mediaWidth:t,mediaHeight:n})},a.state={mediaHeight:0,mediaWidth:0},a}return d()(t,e),
t.prototype.componentDidMount=function(){i(this.props)&&this._startSlideshow()},t.prototype.componentDidUpdate=function(e){var t=i(e),n=i(this.props),a=n!==t,r=this.props.playQueueItemEntityID!==e.playQueueItemEntityID;(a||r)&&(n?e.isPaused?this.props.onPlayNextItem({autoPlay:!0}):this._startSlideshow():this._stopSlideshow())},t.prototype.componentWillUnmount=function(){this._stopSlideshow(),this._playerTimer=clearTimeout(this._playerTimer)},t.prototype._startSlideshow=function(){
this._stopSlideshow(),this._slideshowTimer=setTimeout(this.onSlideShowAdvance,5e3)},t.prototype._stopSlideshow=function(){this._slideshowTimer&&(this._slideshowTimer=clearTimeout(this._slideshowTimer))},t.prototype.render=function(){var e=this.props,t=e.isMiniPlayer,n=e.isRemotePlayer,i=this.state,a=i.mediaWidth,o=i.mediaHeight;return f.a.createElement(g.a,r()({},this.props,{playerType:v.b,mediaWidth:a,mediaHeight:o,isRemotePlayer:n,isPostPlayVisible:!1,hasConflicts:!1,mediaComponent:m.b,
playerComponent:t?b.a:y.a,onPlaybackDimensionsChange:this.onPlaybackDimensionsChange}))},t}(h.Component);t.a=I},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=(n(107),n(31)),v=n(1622),g=n(4031),m=n(24),y=n(46),b=n.n(y),I=n(4032),S=n(4042),M=n(4044),D=n(4056),C=n(4062),j=n.n(C),P=parseInt(b.a.playerControlsHeight,10),O=parseInt(b.a.playerControlsNarrowHeight,10),T=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onPhotoStripTogglePress=function(e){a.setState({isPhotoStripOpen:!a.state.isPhotoStripOpen})},a.onPhotoInformationTogglePress=function(e){a.setState({isInformationOpen:!a.state.isInformationOpen})},a.onInteraction=function(e){a.setState({hadRecentInteraction:!0}),a._startInteractionTimer()},a.onInteractionTimeout=function(){a.setState({hadRecentInteraction:!1}),a._stopInteractionTimer()},a.onContentMeasure=function(e){
a.props.onPlaybackDimensionsChange(e)},a.onControlsMenuChange=function(e){a.setState({isControlsMenuOpen:e})},a.onCastMenuChange=function(e){a.setState({isCastMenuOpen:e})},a.onControlsMouseEnter=function(e){a.setState({disableInteractionTimer:!0})},a.onControlsMouseLeave=function(e){a.setState({disableInteractionTimer:!1})},a.state={disableInteractionTimer:!1,isPhotoStripOpen:!1,isInformationOpen:!1,isControlsMenuOpen:!1,isCastMenuOpen:!1,hadRecentInteraction:!1},a}return u()(t,e),
t.prototype.componentDidMount=function(){this._startInteractionTimer()},t.prototype.componentDidUpdate=function(e,t){var n=this.state.disableInteractionTimer,i=t.disableInteractionTimer,a=i&&!n,r=!i&&n;a?this._startInteractionTimer():r&&this._stopInteractionTimer()},t.prototype.componentWillUnmount=function(){this._stopInteractionTimer()},t.prototype._startInteractionTimer=function(){this.state.disableInteractionTimer||(this._stopInteractionTimer(),
this._interactionTimeoutID=setTimeout(this.onInteractionTimeout,2e3))},t.prototype._stopInteractionTimer=function(){this._interactionTimeoutID&&clearTimeout(this._interactionTimeoutID)},t.prototype.render=function(){
var e=this.state,t=e.isPhotoStripOpen,n=e.isInformationOpen,i=e.hadRecentInteraction,r=this.props,o=r.serverEntityID,s=r.providerEntityID,l=r.playQueueItemEntityIDs,c=r.playQueueItemEntityID,u=r.isPlayQueueLoading,d=r.isVideo,p=r.isPhoto,y=r.size,b=r.firstIndex,C=r.width,T=r.height,E=r.canSkipPrevious,w=r.canSkipNext,A=r.errorMessage,x=r.positionMilliseconds,N=r.bufferStartMilliseconds,L=r.bufferEndMilliseconds,k=r.hasFullscreen,R=r.isFullscreen,z=r.isMediaLoading,U=r.isBuffering,B=r.isNarrowLayout,F=r.playerType,_=r.onExitFullscreenPress,V=r.onEnterFullscreenPress,H=r.onToggleFullscreen,Q=r.onPlayNextItem,Y=r.onPlayPreviousItem,G=r.onPlayItem,W=this.state,K=W.isControlsMenuOpen,Z=W.isCastMenuOpen,q=t||n,J=!(q||i||K||Z),X=!i&&!Z,$=q,ee=!p&&(z||U),te=B?O:P,ne=J?null:"translateY("+-te+"px)"
;return a()("div",{"data-qa-id":"photoPlayerContainer",className:(j.a.fullPlayer||"")+" "+(J&&j.a.hideControls||"")+" "+($&&j.a.dockControls||""||""),onMouseMove:this.onInteraction,onMouseDown:this.onInteraction,onTouchStart:this.onInteraction,onTouchEnd:this.onInteraction},void 0,p&&a()(g.a,{playerType:F,playQueueItemEntityID:c}),a()("div",{className:j.a.player},void 0,a()("div",{className:j.a.main},void 0,a()(h.a,{className:j.a.content,onMeasure:this.onContentMeasure},void 0,ee&&a()("div",{
className:j.a.spinner},void 0,a()(f.a,{size:m.e.LARGE})),a()(I.a,{serverEntityID:o,providerEntityID:s,playQueueItemEntityIDs:l,playQueueItemEntityID:c,firstIndex:b,size:y,errorMessage:A,width:C,height:T}),!u&&a()(S.a,{hideOverlays:X,isPhoto:p,isFullscreen:R,hasFullscreen:k,canSkipNext:w,canSkipPrevious:E,onPlayNextItem:Q,onPlayPreviousItem:Y,onCastMenuChange:this.onCastMenuChange,onEnterFullscreenPress:V,onExitFullscreenPress:_,onToggleFullscreen:H})),t&&a()(D.a,{className:j.a.mainFooter,
serverEntityID:o,providerEntityID:s,playQueueItemEntityIDs:l,playQueueItemEntityID:c,firstIndex:b,size:y,onPhotoPress:G})),n&&a()(M.a,{className:j.a.aside,playerType:F})),!u&&a()("div",{className:j.a.bottomBar,style:{bottom:-te,height:te,WebkitTransform:ne,msTransform:ne,transform:ne},onMouseEnter:this.onControlsMouseEnter,onMouseLeave:this.onControlsMouseLeave},void 0,a()(v.a,{playerType:F,isVideo:d,isPhoto:p,positionMilliseconds:x,bufferStartMilliseconds:N,bufferEndMilliseconds:L,
activatePhotoInformationButton:n,activatePhotoStripButton:t,showPhotoInformationButton:!0,showPhotoStripButton:!0,onPhotoInformationPress:this.onPhotoInformationTogglePress,onPhotoStripPress:this.onPhotoStripTogglePress,onControlsMenuChange:this.onControlsMenuChange})))},t}(p.Component);t.a=T},function(e,t,n){"use strict";function i(e){return Object(h.createSelector)(Object(f.a)(),m.a,g.a,y.a,function(t,n,i,a){return e(n,i,a,t)})}function a(){return i(I.e)}function r(){return i(I.f)}
function o(){return i(I.o)}function s(){return Object(h.createSelector)(Object(v.a)(),a(),r(),o(),function(e,t){return t.isVideo},function(e,t,n,i,a){return e?{playQueueItemEntityID:e.entityID,showEditButton:t,showFavoriteButton:n,showMenuButton:!0,showShuffleButton:!0,showUnfavoriteButton:i,showVolume:a}:{}})}var l=n(6),c=n.n(l),u=n(1),d=n.n(u),p=n(11),h=n(4),f=(n.n(h),n(21)),v=n(142),g=n(39),m=n(53),y=n(204),b=n(996),I=n(326),S=Object(p.connect)(s)(b.a);S.propTypes=c()({},S.propTypes,{
providerEntityID:d.a.string.isRequired,metadataItemEntityID:d.a.string.isRequired,serverEntityID:d.a.string.isRequired,playerType:d.a.string.isRequired}),t.a=S},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(l.a)(),Object(s.a)(),o.a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=t.metadataItem,a=n[i],r=a.type,o=a.Media,s=o[0],l=r===c.c,u=s&&s.Part&&s.Part[0],d=u&&u.key;return{serverEntityID:e.serverEntityID,
imageUrl:l?null:d}})}var a=n(11),r=n(4),o=(n.n(r),n(108)),s=n(142),l=n(89),c=n(27),u=n(1568);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(4033)),f=n(4035),v=n(4041),g=n.n(v),m=function(e){function t(){var n,i,r;o()(this,t);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(c))),i.renderSlide=function(e){
var t=i.props,n=t.playQueueItemEntityID,r=t.serverEntityID,o=t.providerEntityID,s=t.width,l=t.height,c=n===e;return a()(f.a,{serverEntityID:r,providerEntityID:o,playQueueItemEntityID:e,isCurrent:c,maxWidth:s,maxHeight:l})},r=n,l()(i,r)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.playQueueItemEntityIDs,n=e.playQueueItemEntityID,i=e.size,r=e.firstIndex,o=e.errorMessage,s=e.width,l=e.height;return a()("div",{className:g.a.carousel},void 0,o&&a()("div",{className:g.a.message
},void 0,a()("span",{},void 0,o)),s&&l&&t&&!o?a()(h.a,{items:t,currentItem:n,size:i,firstIndex:r,width:s,height:l,renderSlide:this.renderSlide}):null)},t}(p.Component);t.a=m},function(e,t,n){"use strict";function i(e){var t=e.items,n=e.currentItem,i=e.size,a=e.firstIndex,o=e.renderSlide,s=e.width,l=e.height;if(!t||!t.length)return null;var d=t.indexOf(n),h=c.a.range(Math.max(0,d-1),Math.min(i,d+1+1));return r()("div",{className:p.a.magazine},void 0,h.map(function(e){var n=d===e,i=e+a,c=t[e]
;return r()(u.a,{className:n?p.a.currentSlide:p.a.slide,cellY:0,cellX:(e-d)*s,cellWidth:s,cellHeight:l},i,c&&o(c))}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(10)),c=n.n(l),u=n(91),d=n(4034),p=n.n(d);t.a=i},function(e,t){e.exports={magazine:"Carousel-magazine-3pULs",slide:"Carousel-slide-1-FUF",currentSlide:"Carousel-currentSlide-1fcfr Carousel-slide-1-FUF"}},function(e,t,n){"use strict";function i(){return Object(d.createSelector)(Object(p.a)(),function(e){return{playQueueItem:e}
})}function a(e){var t=e.playQueueItem;return t&&t.type===h.g?c.a.createElement(f.a,o()({metadataItemEntityID:t.metadataItem},e)):null}var r=n(6),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),n(1027)),h=n(27),f=n(4036);t.a=Object(u.connect)(i)(a)},function(e,t,n){"use strict";function i(){return Object(h.createSelector)(Object(f.a)(),function(e){return e&&l()(e).length?{isLoading:!1,url:e}:{isLoading:!0}})}function a(e){return e.isLoading?m:d.a.createElement(g.a,e)}
var r=n(2),o=n.n(r),s=n(59),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(11),h=n(4),f=(n.n(h),n(4037)),v=n(31),g=n(4038),m=o()(v.a,{});t.a=Object(p.connect)(i)(a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){if(!e||!e.Media)return{};var t=e.type,n=e.thumb,i=e.Media,a=i[0],r="clip"===t,o=a&&a.Part&&a.Part[0],s=o&&o.key;return r||!s?n:s})}t.a=i;var a=n(4),r=(n.n(a),n(21))},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(311)),g=n(4039),m=n(3),y=n(185),b=n(31),I=n(4040),S=n.n(I),M=o()(b.a,{}),D=function(e){function t(){l()(this,t);var n=u()(this,e.call(this));return n.onLoad=function(){n.setState({loading:!1})},n.onError=function(){n.setState({error:!0})},n.state={loading:!0,error:!1},n}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.url,r=e.maxWidth,s=e.maxHeight,l=Object(g.a)(r,s),c=l.width,u=l.height,d={width:"100%",height:"100%"},p=this.state,h=p.loading,f=p.error;return o()("div",{className:S.a.slideContainer},void 0,o()("div",{className:S.a.statusContainer},void 0,h&&!f&&M,f&&o()("div",{},void 0,Object(m.default)("Unable to load photo"))),o()(y.a,{serverEntityID:t,providerEntityID:n,url:i,width:c,height:u,style:d,minSize:!0,background:!0,
backgroundSize:"contain",transition:!0,transitionProps:a()({},v.a),onError:this.onError,onLoad:this.onLoad},i))},t}(f.Component);t.a=D},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,i=e*t,o=n/Math.pow(Object(a.a)(),2),s=Math.sqrt(Math.max(i/o,1));return{width:Math.round(e/s),height:Math.round(t/s)}}t.a=i;var a=n(367),r=2073600},function(e,t){e.exports={slideContainer:"SlideImg-slideContainer-2XcH9",
statusContainer:"SlideImg-statusContainer-2GP9q fadeIn-fadeIn-3S08e"}},function(e,t){e.exports={carousel:"PhotoCarousel-carousel-3ebQM",message:"PhotoCarousel-message-2qndu",contents:"PhotoCarousel-contents-1Ozti"}},function(e,t,n){"use strict";function i(e){
var t=e.hideOverlays,n=e.canSkipPrevious,i=e.canSkipNext,a=e.hasFullscreen,o=e.isFullscreen,s=e.isPhoto,h=e.onPlayNextItem,v=e.onPlayPreviousItem,g=e.onCastMenuChange,m=e.onEnterFullscreenPress,y=e.onExitFullscreenPress,b=e.onToggleFullscreen;return r()("div",{className:t?f.a.hideOverlays:void 0},void 0,!s&&r()(p.a,{className:f.a.playButton,playerType:l.b,isFullscreen:o,onEnterFullscreenPress:m,onExitFullscreenPress:y,onToggleFullscreen:b}),r()("div",{className:f.a.topBar},void 0,r()(d.a,{
playerType:l.b,isFullscreen:o,hasFullscreen:a,onCastMenuChange:g,onEnterFullscreenPress:m,onExitFullscreenPress:y})),r()(u.a,{className:f.a.leftButton,icon:"plex-icon-hub-prev-560",title:Object(c.default)("Previous Photo"),isDisabled:!n,onPress:v}),r()(u.a,{className:f.a.rightButton,icon:"plex-icon-hub-next-560",title:Object(c.default)("Next Photo"),isDisabled:!i,onPress:h}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(107)),c=n(3),u=n(283),d=n(1521),p=n(1522),h=n(4043),f=n.n(h)
;i.defaultProps={hideOverlays:!1},t.a=i},function(e,t){e.exports={button:"PhotoFullPlayerOverlays-button-1anMg",leftButton:"PhotoFullPlayerOverlays-leftButton-2bCve PhotoFullPlayerOverlays-button-1anMg",rightButton:"PhotoFullPlayerOverlays-rightButton-3cTEz PhotoFullPlayerOverlays-button-1anMg",topBar:"PhotoFullPlayerOverlays-topBar-45GYU",hideOverlays:"PhotoFullPlayerOverlays-hideOverlays-eccNe",playButton:"PhotoFullPlayerOverlays-playButton-35mXL"}},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(Object(b.a)(),Object(y.a)(),function(e,t){var n=t.Media,i=void 0===n?[]:n,a=t.Geolocation,r=void 0===a?{}:a,o=t.type,s=r.Coordinates,l={serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:t.entityID,hubEntityIDs:e.relatedHubs||[],type:o,hasGeolocation:!!s};if(s&&(l.latitude=parseFloat(s.latitude),l.longitude=parseFloat(s.longitude)),i.length){var c=i[0],u=c.Part;l.size=u&&u[0].size,l.aperture=c.aperture,l.exposure=c.exposure,
l.iso=c.iso,l.model=c.model,l.width=c.width,l.height=c.height,l.container=c.container}return l})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(1623)),y=n(178),b=n(89),I=n(4045),S={dispatchFetchRelatedPhotos:m.a},M=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchRelatedPhotos()},
t.prototype.componentDidUpdate=function(e){e.metadataItemEntityID!==this.props.metadataItemEntityID&&this.props.dispatchFetchRelatedPhotos()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchRelatedPhotos,r()(e,["dispatchFetchRelatedPhotos"]));return f.a.createElement(I.a,t)},t}(h.Component);t.a=Object(v.connect)(i,S)(M)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.hubEntityIDs,o=e.type,s=e.model,d=e.width,f=e.height,m=e.container,y=e.iso,b=e.aperture,I=e.exposure,S=e.size,M=e.hasGeolocation,D=e.latitude,C=e.longitude;return r()("div",{className:(t||"")+" "+(v.a.photoInformation||"")},void 0,r()(l.a,{className:v.a.scroller,autoScroll:!0},void 0,r()("div",{className:v.a.exif},void 0,r()("div",{className:v.a.line
},void 0,s?r()("div",{},void 0,s):r()("div",{},void 0,"clip"===o?Object(u.default)("Video"):Object(u.default)("Photo")),g),r()("div",{className:v.a.line},void 0,!(!d||!f)&&r()("div",{},void 0,d," \xd7 ",f),!!S&&r()("div",{},void 0,Object(c.a)(S)),m&&r()("div",{className:v.a.format},void 0,m)),!!y&&r()("div",{className:v.a.line},void 0,r()("div",{},void 0,Object(u.default)("ISO")," ",y),r()("div",{},void 0,b),r()("div",{},void 0,I))),r()(p.a,{serverEntityID:n,providerEntityID:i,hubEntityIDs:a
})),M&&r()(h.a,{className:v.a.map,latitude:D,longitude:C}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(849),u=n(3),d=n(26),p=n(4046),h=n(4052),f=n(4055),v=n.n(f),g=r()(d.a,{name:"plex-icon-camera-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.hubEntityIDs;return i&&i.length?r()("div",{className:d.a.container,"data-qa-id":"relatedPhotosContainer"},void 0,r()("div",{className:d.a.title
},void 0,Object(l.default)("Related Photos")),r()("div",{className:d.a.list},void 0,i.map(function(e){return r()(c.a,{serverEntityID:t,providerEntityID:n,hubEntityID:e},e)}))):p}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(4047),u=n(4051),d=n.n(u),p=r()("div",{});t.a=i},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(Object(I.a)(),Object(b.a)(),Object(y.a)(),function(e,t,n){return{hubLink:Object(M.a)(e,t,n),summary:n.summary,totalSize:n.totalSize,
url:n.thumb,icon:n.icon}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(77)),y=n(570),b=n(54),I=n(35),S=n(107),M=n(1029),D=n(4048),C=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(){window.location.href=i.props.hubLink,i.props.endPlayback({playerType:S.b})},a=n,c()(i,a)}
return d()(t,e),t.prototype.render=function(){return f.a.createElement(D.a,r()({onPress:this.onPress},this.props))},t}(h.Component);t.a=Object(v.connect)(i,{endPlayback:m.f})(C)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.summary,a=e.totalSize,o=e.url,s=e.icon,c=e.onPress;return r()("div",{className:h.a.hub,"data-qa-id":"relatedPhotoItem"},void 0,r()(l.a,{onPress:c},void 0,r()("div",{className:h.a.container},void 0,r()("div",{className:h.a.overlay
},void 0,r()("div",{className:h.a.title,"data-qa-id":"relatedPhotoName"},void 0,i),r()("div",{className:h.a.count,"data-qa-id":"relatedPhotoCount"},void 0,s?r()(u.a,{className:h.a.icon,serverEntityID:t,providerEntityID:n,url:s,width:f,height:f}):v,r()("span",{},void 0," ",a))),r()("div",{className:h.a.body},void 0,r()(d.a,{serverEntityID:t,url:o})))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(26),u=n(185),d=n(4049),p=n(4050),h=n.n(p),f=14,v=r()(c.a,{
name:"plex-icon-tag-auto-560"});t.a=i},function(e,t,n){"use strict";function i(e){return r()("div",{style:u},void 0,r()(l.a,{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,url:e.url,width:c,height:c,minSize:!0,background:!0,transition:!0}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(185)),c=110,u={width:c,height:c};t.a=i},function(e,t){e.exports={hub:"PhotoHub-hub-3ROVk",container:"PhotoHub-container-2-eNS",body:"PhotoHub-body-2A7LS",
overlay:"PhotoHub-overlay-1cF_S",title:"PhotoHub-title-1Js3E",count:"PhotoHub-count-30JDL",icon:"PhotoHub-icon-1yZ1e"}},function(e,t){e.exports={container:"PhotoHubList-container-1-l_q",title:"PhotoHubList-title-1lMNL",list:"PhotoHubList-list-3GW3U"}},function(e,t,n){"use strict";(function(e){var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(101)),f=n(18),v=n(3),g=n(31),m=n(4053),y=n(4054),b=n.n(y),I=f.join("https://tiles.unwiredlabs.com/v/o.json",{token:"59a999cb8f28fb0a54eb"}),S="https://www.google.com/maps/@",M=a()(g.a,{}),D=function(t){function n(i,a){o()(this,n);var r=l()(this,t.call(this,i,a));return r.onMapRender=function(){r._map.loaded()&&(r._map.addControl(new e.mapboxgl.AttributionControl({compact:!0})),r._map.off("render",r.onMapRender),r.setState({isTilesLoading:!1}))},r.onMarkerClick=function(){var e={api:1,
map_action:"map",center:r.props.latitude+","+r.props.longitude};window.open(f.join(S,e))},r.state={isTilesLoading:!0},r}return u()(n,t),n.prototype.componentDidMount=function(){this.props.isExternalsLoaded&&this._addMap()},n.prototype.componentWillReceiveProps=function(e){if(e.isExternalsLoaded){var t=this.props,n=t.isExternalsLoaded,i=t.latitude,a=t.longitude,r=!n,o=i!==e.latitude,s=a!==e.longitude,l=o||s;r&&!this._map?this._addMap(e):l&&this._moveMap(e)}},
n.prototype.componentWillUnmount=function(){this._markerElement&&this._markerElement.removeEventListener("click",this.onMarkerClick),this._map&&this._map.off("render",this.onMapRender)},n.prototype._addMap=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=[t.longitude,t.latitude];this._map=new e.mapboxgl.Map({container:"map",style:I,attributionControl:!1,interactive:!1,zoom:12,center:n}),this._map.on("render",this.onMapRender),
this._markerElement=document.createElement("div"),this._markerElement.className=b.a.pin,this._markerElement.addEventListener("click",this.onMarkerClick),this._marker=new e.mapboxgl.Marker(this._markerElement).setLngLat(n).addTo(this._map)},n.prototype._moveMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=[e.longitude,e.latitude];this._map.setCenter(t),this._marker.setLngLat(t)},n.prototype.render=function(){
var t=this.props,n=t.className,i=t.isExternalsLoading,r=t.isExternalsLoaded,o=t.isExternalsError;if(!t.isExternalsSupported)return null;var s=o||r&&!e.mapboxgl,l=i||this.state.isTilesLoading;return a()("div",{className:n},void 0,a()("div",{className:b.a.control},void 0,a()("div",{className:b.a.underlay},void 0,l&&M,s&&a()("span",{className:b.a.error},void 0,Object(v.default)("Unable to load map."))),a()("div",{className:(b.a.map||"")+" "+(l&&b.a.loading||""||""),id:"map"})))},n}(p.Component)
;t.a=Object(m.a)(D,{hasSupport:function(){return h.a.hasWebGL},styles:["https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css"],scripts:["https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"]})}).call(t,n(158))},function(e,t,n){"use strict";function i(e,t,n){if(P[t])return P[t];var i=y.a.Deferred(),a=document.createElement(e);return g()(a,n),a.onload=function(){return i.resolve()},a.onerror=function(){return i.reject()},document.head.appendChild(a),P[t]=i.promise(),P[t]}
function a(e){return i("link",e,{rel:"stylesheet",type:"text/css",href:e})}function r(e){return i("script",e,{type:"text/javascript",src:e})}function o(e,t){var n=function(n){function i(e,a){u()(this,i);var r=p()(this,n.call(this,e,a));return r.state={externals:t.hasSupport()?M:j},r}return f()(i,n),i.prototype.componentWillMount=function(){var e=this;if(this.state.externals===M){var n=t.styles.map(a);n.push(t.scripts.reduce(function(e,t){return e.then(function(){return r(t)})
},y.a.Deferred().resolve().promise())),y.a.when.apply(y.a,n).then(function(){return e.setState({externals:D})},function(){return e.setState({externals:C})})}},i.prototype.render=function(){var t=this.state.externals;return I.a.createElement(e,l()({isExternalsLoading:t===M,isExternalsLoaded:t===D,isExternalsError:t===C,isExternalsSupported:t!==j},this.props))},i}(b.Component);return n.displayName="WithExternals("+Object(S.a)(e)+")",n.WrappedComponent=e,n}
var s=n(6),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(420),g=n.n(v),m=n(13),y=n.n(m),b=n(0),I=n.n(b),S=n(190),M="waiting",D="loaded",C="error",j="unsupported",P={};t.a=o},function(e,t){e.exports={control:"PhotoMap-control-3PVoK",underlay:"PhotoMap-underlay-EsEVB",loading:"PhotoMap-loading-1TLcP",map:"PhotoMap-map-3J2kw",pin:"PhotoMap-pin-2X7Jv",error:"PhotoMap-error-1Fk9j"}},function(e,t){e.exports={photoInformation:"PhotoInformation-photoInformation-1vUJb",
scroller:"PhotoInformation-scroller-1kXik Scroller-vertical-VScFL",exif:"PhotoInformation-exif-3TGkh",line:"PhotoInformation-line-2tnkC",split:"PhotoInformation-split-3vWYS PhotoInformation-line-2tnkC",format:"PhotoInformation-format-IPiso",map:"PhotoInformation-map-26hTS"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(67),g=n(91),m=n(4057),y=n(4058),b=n(4061),I=n.n(b),S=function(e){
function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,width:t,height:n})},a.state={isMeasured:!1,width:null,height:null},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.playQueueItemEntityIDs,o=e.playQueueItemEntityID,s=e.firstIndex,l=e.size,c=e.onPhotoPress,u=this.state,d=u.isMeasured,p=u.width,h=u.height,b=r.indexOf(o)+s,S=[],M=[],D=0;if(d){D=Math.ceil(h);var C=Math.ceil(p/D),j=Object(m.a)({index:b,renderableWindow:C,length:l,cellPadding:2,cellWidth:D,width:p});M=f.a.range(j.renderStartIndex,j.renderEndIndex+1),S=j.positions}return a()("div",{className:(t||"")+" "+(I.a.strip||""),
"data-qa-id":"photoStripContainer"},void 0,a()(v.a,{className:I.a.thumbs,onMeasure:this.onMeasure},void 0,d&&M.map(function(e){var t=S[e],o=b===e,l=r[e-s];return a()(g.a,{className:I.a.cell,cellY:0,cellX:t,cellWidth:D,cellHeight:D},e,a()("div",{className:(I.a.thumbContainer||"")+" "+(o&&I.a.isSelected||""||""),"data-qa-id":"photoStripItem"},void 0,l&&a()(y.a,{className:I.a.thumb,serverEntityID:n,providerEntityID:i,playQueueItemEntityID:l,dimension:D-4,index:e-s,onPlayPress:c})))})))},t
}(p.Component);t.a=S},function(e,t,n){"use strict";function i(e){var t=e.index,n=e.length,i=e.renderableWindow,a=void 0===i?n:i,r=e.cellPadding,o=void 0===r?0:r,s=e.cellWidth,l=e.width,c=l/2,u=s/2,d=n*s+(n-1)*o,p=t*(s+o)-(c-u);d>l&&(p=Math.min(Math.max(p,0),d-l));for(var h=[],f=Math.max(0,t-a),v=Math.min(n-1,t+a),g=f;g<=v;g++)h[g]=g*(s+o)-p;return{renderStartIndex:f,renderEndIndex:v,positions:h}}t.a=i},function(e,t,n){"use strict";function i(){
return Object(o.createSelector)(Object(l.a)(),function(e){return{metadataItemEntityID:e.metadataItem}})}function a(){return Object(o.createSelector)(Object(s.a)(),function(e){return{url:e.url}})}var r=n(11),o=n(4),s=(n.n(o),n(4059)),l=n(1027),c=n(4060),u=Object(r.connect)(a)(c.a);t.a=Object(r.connect)(i)(u)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e){if(!e)return{};var t=e.entityID,n=e.type;return{entityID:t,url:e.thumb,isVideo:"clip"===n}
})}t.a=i;var a=n(4),r=(n.n(a),n(21))},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(20)),g=n(311),m=n(185),y={width:"100%",height:"100%",top:0,position:"absolute",zIndex:0},b=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onPlayPress=function(){
i.props.onPlayPress&&i.props.onPlayPress(i.props.index)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.url,s=e.dimension,l=e.onPlayPress;return r?o()(v.a,{className:t,isDisabled:!l,onPress:this.onPlayPress},void 0,o()(m.a,{serverEntityID:n,providerEntityID:i,url:r,width:s,height:s,minSize:!0,style:y,background:!0,transition:!0,transitionProps:a()({},g.a)})):null},t}(f.Component);t.a=b},function(e,t){
e.exports={strip:"PhotoStrip-strip-q6m2B",thumbs:"PhotoStrip-thumbs-2iLLA",cell:"PhotoStrip-cell-NRVDi",thumbContainer:"PhotoStrip-thumbContainer-1kU-f",isSelected:"PhotoStrip-isSelected-3exw8",thumb:"PhotoStrip-thumb-eGqcd",thumbOverlay:"PhotoStrip-thumbOverlay-gC5wm"}},function(e,t){e.exports={fullPlayer:"PhotoFullPlayer-fullPlayer-zjtdR",player:"PhotoFullPlayer-player-3kRDP",main:"PhotoFullPlayer-main-1eD7_",mainFooter:"PhotoFullPlayer-mainFooter-2n5Rr",
content:"PhotoFullPlayer-content-28yAo",spinner:"PhotoFullPlayer-spinner-2SO2v",bar:"PhotoFullPlayer-bar-2WMUP",bottomBar:"PhotoFullPlayer-bottomBar-2pmIf PhotoFullPlayer-bar-2WMUP",seekBar:"PhotoFullPlayer-seekBar-3H_Xh SeekBar-seekBar-2UK3i Slider-slider-2oLVT",aside:"PhotoFullPlayer-aside-WshsF",hideControls:"PhotoFullPlayer-hideControls-1nwRe",controls:"PhotoFullPlayer-controls-1-Z6K",dockControls:"PhotoFullPlayer-dockControls-e5lzC"}},function(e,t,n){"use strict";function i(e){
return r()(c.a,{isPlayQueueLoading:e.isPlayQueueLoading},void 0,l.a.createElement(u.a,e))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(1620),u=n(1622);t.a=i},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div id="staticAlertBar" class="alert-bar-container"></div> <div id="alertBar" class="alert-bar-container"></div> <div id="content" class="scroll-container dark-scrollbar"></div> '})},function(e,t,n){"use strict";var i=n(22),a=n(50),r=n(16),o=n(4066),s=n.n(o),l=i.a.ItemView.extend({template:s.a,initialize:function(){var e=r.c("appModel");this.listenTo(e,"change:primaryServer",this.render),this.listenTo(e.get("user"),"change:signedIn",this.render)},serializeData:function(){
var e=r.c("appModel"),t=e.get("user"),n=e.get("primaryServer"),i={host:window.location.host,userAgent:window.navigator.userAgent,browser:a.a,user:t.toJSON(),hasPlexSubscription:t.get("hasPlexSubscription"),cloudServer:t.server.toJSON(),cloudServerUrl:t.server.url()};return n&&(i.primaryServer=n.toJSON(),i.primaryServerUrl=n.url()),i}});t.a=l},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){
return"(Plex Pass)"}function l(e,t){var n,i="";return i+=' <p><span class="text-muted">Name:</span> '+h((n=e&&e.primaryServer,n=null==n||!1===n?n:n.friendlyName,typeof n===p?n.apply(e):n))+'</p> <p><span class="text-muted">URL:</span> '+h((n=e&&e.primaryServerUrl,typeof n===p?n.apply(e):n))+'</p> <p><span class="text-muted">Version:</span> '+h((n=e&&e.primaryServer,n=null==n||!1===n?n:n.version,typeof n===p?n.apply(e):n))+'</p> <p><span class="text-muted">Token:</span> '+h((n=e&&e.primaryServer,
n=null==n||!1===n?n:n.accessToken,typeof n===p?n.apply(e):n))+"</p> "}function c(e,t){return' <p><span class="text-muted">none</span></p> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p="function",h=this.escapeExpression,f=this;return d+='<h3>Browser</h3> <p><span class="text-muted">Host:</span> '+h((u=t&&t.host,typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">User Agent:</span> '+h((u=t&&t.userAgent,
typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">Name:</span> '+h((u=t&&t.browser,u=null==u||!1===u?u:u.name,typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">Version:</span> '+h((u=t&&t.browser,u=null==u||!1===u?u:u.version,typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">Platform:</span> '+h((u=t&&t.browser,u=null==u||!1===u?u:u.platform,typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">Mobile:</span> '+h(i(n(1038)).call(t,(u=t&&t.browser,
null==u||!1===u?u:u.mobile),{hash:{},data:o}))+'</p> <h3>User</h3> <p><span class="text-muted">Username:</span> '+h((u=t&&t.user,u=null==u||!1===u?u:u.username,typeof u===p?u.apply(t):u))+" ",u=a.if.call(t,t&&t.hasPlexPass,{hash:{},inverse:f.noop,fn:f.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+='</p> <p><span class="text-muted">Email:</span> '+h((u=t&&t.user,u=null==u||!1===u?u:u.email,typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">Token:</span> '+h((u=t&&t.user,
u=null==u||!1===u?u:u.accessToken,typeof u===p?u.apply(t):u))+'</p> <h3>plex.tv</h3> <p><span class="text-muted">URL:</span> '+h((u=t&&t.cloudServerUrl,typeof u===p?u.apply(t):u))+'</p> <p><span class="text-muted">Available:</span> '+h(i(n(1038)).call(t,(u=t&&t.cloudServer,null==u||!1===u?u:u.available),{hash:{},data:o}))+'</p> <p><span class="text-muted">Authorized:</span> '+h(i(n(1038)).call(t,(u=t&&t.cloudServer,null==u||!1===u?u:u.authorized),{hash:{},data:o
}))+"</p> <h3>Primary Server</h3> ",u=a.if.call(t,t&&t.primaryServer,{hash:{},inverse:f.program(5,c,o),fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),d+=" "})},function(e,t,n){"use strict";var i=n(22),a=n(4068),r=n.n(a),o=i.a.ItemView.extend({className:"logs-container",template:r.a,ui:{textarea:"textarea"},collectionEvents:{add:"onAdd"},onlyAfterRender:["onAdd"],serializeData:function(){return{logs:this.collection.toJSONString()}},onAdd:function(e,t){
this.ui.textarea.text(this.collection.toJSONString())}});t.a=o},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<textarea class="form-control">',(o=n.logs)?r=o.call(t,{hash:{},data:a}):(o=t&&t.logs,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+"</textarea> "})},function(e,t,n){"use strict";function i(){
return Object(I.createSelector)(S.a,function(e){return e.isFirstRun},function(e,t){return v()({isFirstRun:t,isPollClient:Object(P.a)(),showEnterFullScreen:Object(M.a)()},e)})}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(6),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(11),I=n(4),S=(n.n(I),n(257)),M=n(826),D=n(71),C=n(285),j=n(1625),P=n(560),O=n(1626),T=n(951),E=n(468),w=n(4070),A=n(4083),x={dispatchResetAuthCodeExchange:C.e,dispatchSwitchAppLayout:D.m,
dispatchSignInWithAuthToken:j.b},N=r()(O.a,{}),L=r()(A.a,{}),k=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onSwitchLayoutPress=function(){i.props.dispatchSwitchAppLayout()},a=n,d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchResetAuthCodeExchange()},t.prototype.componentDidUpdate=function(e){
this.props.authToken!==e.authToken&&this.props.authToken&&this.props.dispatchSignInWithAuthToken({authToken:this.props.authToken})},t.prototype.render=function(){var e=this.props,t=e.providerID,n=e.showEnterFullScreen,i=(e.errorMessage,e.fatalErrorMessage),a=e.isFirstRun,r=e.isPollClient,o=(e.dispatchResetAuthCodeExchange,e.dispatchSwitchAppLayout,e.dispatchSignInWithAuthToken,
s()(e,["providerID","showEnterFullScreen","errorMessage","fatalErrorMessage","isFirstRun","isPollClient","dispatchResetAuthCodeExchange","dispatchSwitchAppLayout","dispatchSignInWithAuthToken"]));return i?N:t?y.a.createElement(E.a,v()({component:T.a,providerID:t},o)):r?y.a.createElement(w.a,v()({isFirstRun:a,showEnterFullScreen:n,onSwitchLayoutPress:this.onSwitchLayoutPress},o)):L},t}(m.Component);t.a=Object(b.connect)(i,x)(k)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(257),y=n(285),b=n(468),I=n(4071),S={dispatchPreloadPIN:y.c,dispatchBeginPolling:y.b,dispatchStopPolling:y.g,dispatchSkipSignIn:y.f},M=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onSignInPress=function(){i.props.dispatchBeginPolling({
pinID:i.props.pinID})},i.onStillTherePress=function(){i.props.dispatchPreloadPIN()},i.onSkipSignInPress=function(){i.props.dispatchSkipSignIn()},a=n,u()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchPreloadPIN()},t.prototype.componentWillUnmount=function(){this.props.dispatchStopPolling()},t.prototype.render=function(){var e=this.props,t=(e.dispatchPreloadPIN,e.dispatchBeginPolling,e.dispatchStopPolling,e.dispatchSkipSignIn,
o()(e,["dispatchPreloadPIN","dispatchBeginPolling","dispatchStopPolling","dispatchSkipSignIn"]));return v.a.createElement(b.a,a()({component:I.a,onSignInPress:this.onSignInPress,onStillTherePress:this.onStillTherePress,onSkipSignInPress:this.onSkipSignInPress},t))},t}(f.Component);t.a=Object(g.connect)(m.a,S)(M)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(80)),f=n(20),v=n(51),g=n(3),m=n(4072),y=n(4074),b=n(4078),I=n(4080),S=n(4082),M=n.n(S),D=a()(m.a,{}),C=a()(y.a,{}),j=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSwitchToSkipSignInPress=function(){a.setState({isSkipSignInVisible:!0})},a.onStillTherePress=function(){a.setState({isSkipSignInVisible:!1}),a.props.onStillTherePress()},a.onSignInPress=function(){a.setState({isSkipSignInVisible:!1}),a.props.onSignInPress()},a.state={isSkipSignInVisible:!1},a}
return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.to,n=e.code,i=e.isBusy,r=e.isFirstRun,o=e.showEnterFullScreen,s=e.onSwitchLayoutPress,l=e.onSkipSignInPress,c=!(i||n),u=!c,d=this.state.isSkipSignInVisible;return a()(h.a,{className:M.a.page,autoScroll:!0},void 0,o&&a()(I.a,{onSwitchLayoutPress:s}),r&&!d&&a()(f.a,{className:M.a.switchToSkipSignInLink,kind:v.PRIMARY,onPress:this.onSwitchToSkipSignInPress},void 0,Object(g.default)("What's this?")),D,a()("div",{
className:M.a.container},void 0,d&&C,a()("div",{className:M.a.section},void 0,u&&a()(b.a,{to:t,target:"_blank",type:"submit",isSpinning:!n,onPress:this.onSignInPress},void 0,Object(g.default)("Sign in")),c&&a()(f.a,{kind:v.PRIMARY,onPress:this.onStillTherePress},void 0,Object(g.default)("Are you still there?")))),d&&a()(f.a,{className:M.a.addendumLink,kind:v.PRIMARY,onPress:l},void 0,Object(g.default)("Skip and accept limited functionality")))},t}(p.Component);t.a=j},function(e,t,n){"use strict"
;function i(){return r()("div",{className:l.a.plexImageContainer},void 0,r()("div",{className:l.a.plexImage}))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(4073)),l=n.n(s);t.a=i},function(e,t){e.exports={plexImage:"PlexHeaderImage-plexImage-2K4VH",plexImageContainer:"PlexHeaderImage-plexImageContainer-NE-7v"}},function(e,t,n){"use strict";function i(e){return r()(l.a,{},void 0,r()("div",{className:u.a.header
},void 0,Object(s.default)("You must be signed in for Plex to work properly. If you are not signed in\u2026")),r()("ul",{className:u.a.list},void 0,r()("li",{className:u.a.item},void 0,Object(s.default)("Any connections between your media server and players WILL NOT BE SECURE")),r()("li",{className:u.a.item},void 0,Object(s.default)("You may experience degraded streaming performance")),r()("li",{className:u.a.item
},void 0,Object(s.default)("It will be more difficult, and sometimes impossible, to find your server and discover players")),r()("li",{className:u.a.item},void 0,Object(s.default)("You will not be able to access your media server from outside your home")),r()("li",{className:u.a.item},void 0,Object(s.default)("You will not be able to access content and many features provided by Plex"))))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(3)),l=n(4075),c=n(4077),u=n.n(c);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.component,n=s()(e,["component"]);return u.a.createElement(t,r()({className:p.a.section},n))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(4076),p=n.n(d);i.defaultProps={component:"div"},t.a=i},function(e,t){e.exports={section:"SignInFormSection-section-ugrmB"}},function(e,t){e.exports={header:"SkipSignInMessage-header-1uOTk",list:"SkipSignInMessage-list-_2WY9",item:"SkipSignInMessage-item-3-fcL"}},function(e,t,n){"use strict";function i(e){
var t=e.className,n=s()(e,["className"]);return u.a.createElement(h.a,r()({className:t,kind:d.PRIMARY,size:p.LARGE},n))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(51),p=n(52),h=n(139),f=n(4079),v=n.n(f);i.defaultProps={className:v.a.button},t.a=i},function(e,t){e.exports={button:"SignInButton-button-1SYIV SignInPage-button-1I3Ol SpinnerButton-button-1A8Ec Button-button-2kT68 Link-link-2n0yJ Button-large-3S9Ud"}},function(e,t,n){"use strict";function i(e){
var t=e.onSwitchLayoutPress;return r()(l.a,{className:h.a.link,kind:c.DEFAULT,onPress:t},void 0,Object(u.default)("Enter TV Full Screen"),r()(d.a,{className:h.a.icon,name:"plex-icon-navbar-tv-mode-560"}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(51),u=n(3),d=n(26),p=n(4081),h=n.n(p);t.a=i},function(e,t){e.exports={link:"SwitchToTVLayoutLink-link-2Aq9X",icon:"SwitchToTVLayoutLink-icon-1RpyT"}},function(e,t){e.exports={page:"SignInLaunchPagePoll-page-1MNEQ",
container:"SignInLaunchPagePoll-container-10QkU",section:"SignInLaunchPagePoll-section-11ige",addendumLink:"SignInLaunchPagePoll-addendumLink-2n2Di",switchToSkipSignInLink:"SignInLaunchPagePoll-switchToSkipSignInLink-2eT_L"}},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(257),y=n(285),b=n(951),I=n(468),S={dispatchReadStoredPIN:y.d},M=function(e){function t(){return l()(this,t),
u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchReadStoredPIN({shouldCreatePIN:!0})},t.prototype.render=function(){var e=this.props,t=e.pinID,n=(e.dispatchReadStoredPIN,o()(e,["pinID","dispatchReadStoredPIN"]));return t?v.a.createElement(I.a,a()({component:b.a,pinID:t},n)):null},t}(f.Component);t.a=Object(g.connect)(m.a,S)(M)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),
n(75)),s=n(48),l=n(4085),c=a()(o.a,{},void 0,a()(l.a,{})),u=s.a.extend({component:function(e){return c}});t.a=u},function(e,t,n){"use strict";function i(e){return{onSignOut:function(){o.a.execute("signOut").then(function(){e(Object(l.h)({route:"login"}))})}}}var a=n(11),r=n(4),o=(n.n(r),n(43)),s=n(162),l=n(71),c=n(4086),u=Object(r.createSelector)(s.a,function(e){return{isSignedIn:e.isSignedIn}});t.a=Object(a.connect)(u,i)(c.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(30)),f=n(31),v=n(92),g=n(157),m=n(208),y=a()(v.a,{metricsPage:h._3},void 0,a()(g.a,{},void 0,a()(m.a,{},void 0,a()(f.a,{})))),b=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.state={isSigningOut:!1},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){return e.isSignedIn&&!t.isSigningOut?{isSigningOut:!0}:null},t.prototype.componentDidMount=function(){
this.state.isSigningOut&&this.props.onSignOut()},t.prototype.componentDidUpdate=function(e,t){this.state.isSigningOut&&!t.isSigningOut&&this.props.onSignOut()},t.prototype.render=function(){return y},t}(p.Component);t.a=b},function(e,t){e.exports={pageContent:"PageContent-pageContent-16mK6",innerPageContent:"PageContent-innerPageContent-3ktLT"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(38),l=n(45),c=n(48),u=n(1627),d=n(164),p=a()(d.a,{}),h=c.a.extend({
component:function(e){var t=e.selectedServerID,n=Object(s.a)(l.m,t);return a()(o.a,{},void 0,p,a()(u.a,{serverEntityID:n}))}});t.a=h},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(394)),r=Object(i.createSelector)(a.a,function(e){return e.filter(function(e){return e.isPersonalCloudServer})});t.a=r},function(e,t,n){"use strict";function i(e){
var t=e.server,n=e.outOfDateServers,i=e.isDownForMaintenance,a=e.hasFailedResources,o=e.hasPlexSubscription,s=e.isUserRestricted,c=e.canProvisionPersonalCloudServer,h=e.onDownloadServer,g=e.onLinkPersonalCloudServerPress;return n.length?r()(p.a,{selectedServer:t,outOfDateServers:n}):i?f:a?v:s?r()(u.a,{title:Object(l.default)("No shared libraries"),description:Object(l.default)("A user in your home needs to share a library with you")}):r()(d.a,{hasPlexSubscription:o,
canProvisionPersonalCloudServer:c,onDownloadServer:h,onLinkPersonalCloudServerPress:g})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(1626),u=n(127),d=n(4091),p=n(4093),h=n(203),f=r()(c.a,{}),v=r()(h.a,{});t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(80)),f=n(42),v=n(20),g=n(28),m=n(469),y=n.n(m),b=n(138),I=n(3),S=n(554),M=n(24),D=n(4092),C=n.n(D),j={context:b.j,firstRun:!0
},P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onDownloadPress=function(e){a.setState({isDownloadStep:!1}),a.props.onDownloadServer(e.currentTarget.dataset.type)},a.onPlexPassModalClose=function(){a.setState({isPlexPassModalOpen:!1})},a.state={isDownloadStep:!0,isPlexPassModalOpen:!n.hasPlexSubscription},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(g.a)(this,e,t)},t.prototype.render=function(){
var e=this.state,t=e.isDownloadStep,n=e.isPlexPassModalOpen,i=this.props,r=i.canProvisionPersonalCloudServer,o=i.onLinkPersonalCloudServerPress,s=void 0
;return s=t?r?Object(I.default)("To get started streaming your media everywhere, set up Plex Cloud or download and install Plex Media Server on the computer or device where you keep your media."):Object(I.default)("To get started streaming your media everywhere, download and install Plex Media Server on the computer or device where you keep your media."):Object(I.default)("Excellent. Check your download location for Plex Media Server and install it. Once it's running, check back here and we'll get you set up."),
a()(h.a,{className:C.a.emptyPage},void 0,a()("div",{className:C.a.content},void 0,a()("img",{className:C.a.pmsLogo,src:y.a}),a()("div",{className:C.a.title},void 0,t?Object(I.default)("Get your Plex Media Server"):Object(I.default)("Install your new server")),a()("div",{className:C.a.description},void 0,s),t&&r&&a()(f.a,{className:C.a.button,kind:M.b.PRIMARY,size:M.e.LARGE,onPress:o},void 0,Object(I.default)("Set up Plex Cloud")),t&&a()(f.a,{className:C.a.button,kind:M.b.PRIMARY,size:M.e.LARGE,
"data-type":"computer",onPress:this.onDownloadPress},void 0,Object(I.default)("Download Plex Media Server")),!t&&a()("div",{className:C.a.downloadMessage},void 0,Object(I.default)("Need to download different server?")),!t&&a()(v.a,{kind:M.b.PRIMARY,"data-type":"computer",onPress:this.onDownloadPress},void 0,Object(I.default)("Download for Computer Platforms")),a()(v.a,{kind:M.b.PRIMARY,"data-type":"nas",onPress:this.onDownloadPress
},void 0,Object(I.default)("Download for NAS Platforms"))),a()(S.a,{metricsProperties:j,isOpen:n,onModalClose:this.onPlexPassModalClose}))},t}(p.Component);t.a=P},function(e,t){e.exports={emptyPage:"ServerDownloadRequiredPage-emptyPage-2rkKB EmptyPage-emptyPage-2AM9u",content:"ServerDownloadRequiredPage-content-CK6sE EmptyPage-content-10PgB",title:"ServerDownloadRequiredPage-title-3HyW3 EmptyPage-title-264Jp",description:"ServerDownloadRequiredPage-description-3LRBR EmptyPage-description-oYWtW",
pmsLogo:"ServerDownloadRequiredPage-pmsLogo-RreDd",button:"ServerDownloadRequiredPage-button-1QeiU",downloadMessage:"ServerDownloadRequiredPage-downloadMessage-sP7Ud"}},function(e,t,n){"use strict";function i(e){
var t=e.selectedServer,n=e.outOfDateServers,i=t&&t.isOutOfDate?Object(d.default)('The server "{serverName}" is out of date and cannot be selected. This version of the web app requires Plex Media Server {version} or higher. Use one of the links below to open an available, out of date server directly.',{serverName:t.friendlyName,version:"1.3.0"
}):Object(d.default)("This version of the web app requires Plex Media Server {version} or higher. Use one of the links below to open an available, out of date server directly.",{version:"1.3.0"});return r()(h.a,{title:Object(d.default)("Update your Plex Media Server"),description:i},void 0,r()("div",{},void 0,n.map(function(e){var t=e.activeConnection,n=e.isShared;return t?r()(c.a,{className:v.a.updateLink,to:u.join([t.uri,n?"/web/index.html":"/web/index.html#!/settings/server"]),
target:"_blank",kind:p.b.PRIMARY,size:p.e.LARGE},e.machineIdentifier,e.friendlyName):r()("span",{className:v.a.updateDisabledLink},e.machineIdentifier,Object(d.default)("{serverName} (Unavailable)",{serverName:e.friendlyName}))})))}var a=n(2),r=n.n(a),o=n(1),s=n.n(o),l=n(0),c=(n.n(l),n(20)),u=n(18),d=n(3),p=n(24),h=n(127),f=n(4094),v=n.n(f);s.a.shape({friendlyName:s.a.string.isRequired,isShared:s.a.bool.isRequired,activeConnection:s.a.shape({uri:s.a.string.isRequired})});t.a=i},function(e,t){
e.exports={updateLink:"ServerUpdateRequiredPage-updateLink-2Enej",updateDisabledLink:"ServerUpdateRequiredPage-updateDisabledLink-2AETO ServerUpdateRequiredPage-updateLink-2Enej"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(1447)),f=n(958),v=n(312),g=n(47),m=n(318),y=n(4096),b=n(997),I=n.n(b),S=n(4103),M=n(4110),D=n(1631),C=n(4120),j=n(4123),P=n(1451),O=n(4127),T=n.n(O),E=Object(v.a)(I.a.menuSpeed),w=a()(S.a,{}),A=a()(y.a,{}),x=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMenuButtonPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(e){a.setState({isMenuOpen:!1})},a.state={isMenuOpen:!1},a._serverMenuButtonID=Object(g.a)(),a}
return u()(t,e),t.prototype.componentDidUpdate=function(e,t){var n=this;!t.isMenuOpen&&this.state.isMenuOpen&&(this._openTimeoutID=setTimeout(function(){return n.props.onServerMenuOpen()},E))},t.prototype.componentWillUnmount=function(){this._openTimeoutID&&clearTimeout(this._openTimeoutID)},t.prototype.render=function(){
var e=this.props,t=e.primaryServerEntityID,n=e.selectedProviderEntityID,i=e.serverEntityIDs,r=e.providerEntityIDs,o=e.isPlaylistRoute,s=e.canProvisionPersonalCloudServer,l=this.state.isMenuOpen;return a()(m.a,{page:"sidebar",isDelegated:!0},void 0,a()(h.a,{},void 0,n?a()(M.a,{id:this._serverMenuButtonID,providerEntityID:n,isMenuOpen:l,onPress:this.onMenuButtonPress}):a()(C.a,{id:this._serverMenuButtonID,hasPrimaryServer:!!t,serverEntityID:t,isMenuOpen:l,onPress:this.onMenuButtonPress
}),a()(f.a,{},void 0,a()("div",{className:T.a.sidebarContent},void 0,!n&&t&&a()(P.a,{serverEntityID:t,isPlaylistRoute:o}),!n&&!t&&w,n&&a()(j.a,{providerEntityID:n}))),a()(D.c,{target:this._serverMenuButtonID,isOpen:l,canProvisionPersonalCloudServer:s,selectedProviderEntityID:n,serverEntityIDs:i,providerEntityIDs:r,onMenuClose:this.onMenuClose}),A))},t}(p.Component);t.a=x},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(486)),b=n(485),I=n(4097),S=Object(m.createSelector)(function(e){return e.ui.provisionPersonalCloudServerPage.isPersonalCloudServerModalOpen},function(e){return{isOpen:e}}),M={dispatchFetchOauthProviders:y.a,dispatchShowProvisionPersonalCloudServerModal:b.f,dispatchIndicateInterestInPersonalCloudServer:b.c},D=function(e){function t(n,i){l()(this,t)
;var a=u()(this,e.call(this,n,i));return a.onClose=function(){a.setState({isChoosingProvider:!1}),a.props.dispatchShowProvisionPersonalCloudServerModal({open:!1})},a.onNotInterested=function(){a.props.dispatchIndicateInterestInPersonalCloudServer({interested:!1}),a.onClose()},a.onInterested=function(){a.setState({isChoosingProvider:!0})},a.state={isChoosingProvider:!1},a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){e.isOpen&&!this.props.isOpen&&(this.setState({
isChoosingProvider:!1}),this.props.dispatchFetchOauthProviders())},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchOauthProviders,e.dispatchShowProvisionPersonalCloudServerModal,e.dispatchIndicateInterestInPersonalCloudServer,o()(e,["dispatchFetchOauthProviders","dispatchShowProvisionPersonalCloudServerModal","dispatchIndicateInterestInPersonalCloudServer"]));return v.a.createElement(I.a,a()({},t,{isChoosingProvider:this.state.isChoosingProvider,onClose:this.onClose,
onInterested:this.onInterested,onNotInterested:this.onNotInterested}))},t}(f.Component);t.a=Object(g.connect)(S,M)(D)},function(e,t,n){"use strict";function i(e){var t=e.isChoosingProvider,n=e.isOpen,i=e.metricsProperties,a=e.onClose,o=e.onInterested,s=e.onNotInterested;return r()(y.a,{size:v.LARGE,isOpen:n,metricsPage:g.v,metricsProperties:i,onModalClose:a},void 0,r()(b.a,{onModalClose:a},void 0,r()(h.a,{className:C.a.header},void 0,r()("div",{className:C.a.personalCloudServerTitle
},void 0,Object(m.default)("Plex Cloud")),Object(m.default)("Your very own Plex Media Server in the cloud. No computer required.")),!t&&r()(u.a,{innerClassName:C.a.innerModalBody},void 0,r()("div",{className:C.a.upsell},void 0,r()("img",{className:C.a.upsellImage,src:M.a}),r()("div",{className:C.a.upsellText
},void 0,r()("p",{},void 0,Object(m.default)("Thanks for participating in the Plex Cloud beta! There are just a few quick steps between here and your very own Plex Media Server in the sky.")),r()("ul",{},void 0,r()("li",{className:C.a.upsellPoint},void 0,Object(m.default)("First, we\u2019ll link your cloud storage to your Plex account. Choose from popular providers like Dropbox and Google Drive.")),r()("li",{className:C.a.upsellPoint
},void 0,Object(m.default)("Next, we\u2019ll create your Plex Cloud. This may take a minute or two.")),r()("li",{className:C.a.upsellPoint},void 0,Object(m.default)("Finally, add your media to your cloud storage and scan it in! Plex Cloud works just like a regular Media Server. Choose it from the location menu in your favorite Plex app and stream away!"))))),r()(c.a,{component:"div",className:C.a.findOutMore,to:"#!/settings/plex-cloud",onPress:a
},void 0,Object(m.default)("Find more Plex Cloud settings or add additional storage providers"))),!t&&r()(d.a,{className:C.a.footer},void 0,r()(c.a,{kind:f.PRIMARY,onPress:s},void 0,Object(m.default)("No thanks, not interested")),r()(p.a,{},void 0,r()(l.a,{kind:f.PRIMARY,size:v.LARGE,onPress:o},void 0,Object(m.default)("Let's do this!")))),t&&j))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(42)),c=n(20),u=n(61),d=n(88),p=n(115),h=n(84),f=n(51),v=n(52),g=n(30),m=n(3),y=n(114),b=n(98),I=n(4098),S=n(4101),M=n.n(S),D=n(4102),C=n.n(D),j=r()(I.a,{});t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(1629),r=n(4099);t.a=Object(i.connect)(a.a)(r.a)},function(e,t,n){"use strict";function i(e){var t=e.oauthProviders,n=e.isOauthProvidersPending,i=e.isOauthProvidersPopulated,a=e.oauthProvidersError;return r()(u.a,{innerClassName:g.a.innerModalBody
},void 0,r()("p",{},void 0,Object(p.default)("Choose your cloud storage provider. You can use an existing account or create a new one."),m,Object(p.default)("You'll be able to link additional providers later in settings.")),n&&!i&&r()("div",{className:g.a.providersButtonsSpinner},void 0,y),i&&r()("div",{className:4===t.length?g.a.providerButtonsContainerNarrow:g.a.providerButtonsContainer},void 0,t.map(function(e){var t=e.image,n=e.label,i=e.url;return r()(l.a,{className:g.a.vendorLogoButton,
"aria-label":n,to:d.join([i],{origin:Object(h.a)(window.location.href,"#!/cpms")})},n,r()(c.a,{className:g.a.vendorLogo,src:t}))})),a&&Object(p.default)("An error occurred retrieving cloud storage providers. Please try again."))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(184),u=n(61),d=n(18),p=n(3),h=n(952),f=n(31),v=n(4100),g=n.n(v),m=r()("br",{}),y=r()(f.a,{});t.a=i},function(e,t){e.exports={
innerModalBody:"PersonalCloudServerChooseProviderModalBody-innerModalBody-2BJPU PersonalCloudServerModal-innerModalBody-wbNiQ ModalBody-innerModalBody-36gmb",providersButtonsSpinner:"PersonalCloudServerChooseProviderModalBody-providersButtonsSpinner-3yoJz",providerButtonsContainer:"PersonalCloudServerChooseProviderModalBody-providerButtonsContainer-3E_52",
providerButtonsContainerNarrow:"PersonalCloudServerChooseProviderModalBody-providerButtonsContainerNarrow-2BXio PersonalCloudServerChooseProviderModalBody-providerButtonsContainer-3E_52",vendorLogoButton:"PersonalCloudServerChooseProviderModalBody-vendorLogoButton-1rQcN Button-button-2kT68 Link-link-2n0yJ",vendorLogo:"PersonalCloudServerChooseProviderModalBody-vendorLogo-21lJX"}},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPgo8ZyBpZD0iaWNvbW9vbi1pZ25vcmUiPgo8L2c+CjxwYXRoIGZpbGw9IiNlZWUiIGQ9Ik00OTcuNCA5MTAuNmMtMTMzLTQuNC0yMzcuNy0xMTYuMi0yMzMuNC0yNDkuMiA0LjQtMTMzLjEgMTE2LjItMjM3LjcgMjQ5LjItMjMzLjRzMjM3LjcgMTE2LjIgMjMzLjQgMjQ5LjJjLTQuNCAxMzMuMS0xMTYuMiAyMzcuOC0yNDkuMiAyMzMuNHpNNTExLjggNDcxLjljLTEwOC45LTMuNi0yMDAuMyA4Mi4xLTIwMy45IDE5MXM4Mi4xIDIwMC4zIDE5MC45IDIwMy45YzEwOC45IDMuNiAyMDAuMy04Mi4xIDIwMy45LTE5MC45cy04Mi4xLTIwMC40LTE5MC45LTIwNHoiPjwvcGF0aD4KPHBhdGggZmlsbD0iI2VlZSIgZD0iTTE4OS41IDY3Ni4yYy05LjYtMC4zLTg4LjItNC41LTEzOS44LTU4LjgtMzAuNi0zMi4yLTQ1LjMtNzQuOC00My42LTEyNi43IDEuOC01NC4yIDI3LjYtMTA0LjEgNzAuOC0xMzYuOSAzNi43LTI3LjkgODEuNy00MC4yIDEyNy4yLTM1LjYgMjUuOC0xNTQuNCAxNjIuNi0yNjguMiAzMjEuNC0yNjMgMTE2LjQgMy44IDIyMi4yIDcyLjkgMjczLjIgMTc3LjMgNTguMSAzLjIgMTExLjkgMjcuNiAxNTIuNyA2OS42IDQ0LjMgNDUuNiA2Ny42IDEwNS43IDY1LjUgMTY5LjItNS43IDE3MS43LTE1NC44IDIxMy43LTIwMC40IDIyMi41LTEyIDIuMy0yMy40LTUuNS0yNS43LTE3LjRzNS41LTIzLjQgMTcuNC0yNS43YzQ4LTkuMyAxNjAuMy00NS40IDE2NC43LTE4MC44IDEuNy01MS41LTE3LjItMTAwLjItNTMuMS0xMzcuMi0zNS43LTM2LjctODQtNTctMTM1LjMtNTYuNy05LjEgMC0xNi44LTUuMi0yMC4yLTEzLjItNDEuNy05Ni0xMzYtMTYwLjMtMjQwLjMtMTYzLjgtMTQzLjUtNC43LTI2Ni4yIDEwMy42LTI3OS4zIDI0Ni42LTAuNiA2LjQtMy45IDEyLjEtOS4xIDE1LjhzLTExLjggNS0xOCAzLjVjLTM5LjgtOS42LTgxLjYtMS0xMTQuMiAyMy44cy01Mi4xIDYyLjUtNTMuNCAxMDMuNGMtMS4zIDM5LjYgOS4yIDcxLjUgMzEuMyA5NC45IDQwLjkgNDMuMiAxMDcuMyA0NS4xIDEwOS45IDQ1LjMgMCAwIDAuMSAwIDAuMSAwIDEyLjEgMC40IDIxLjYgMTAuNCAyMS4zIDIyLjQtMC4yIDEyLjEtMTAuMiAyMS43LTIyLjMgMjEuNS0wLjEgMC0wLjQgMC0wLjggMHoiPjwvcGF0aD4KPHBhdGggZmlsbD0iI2VlZSIgZD0iTTUxMi41IDU0My40aC03My45bDczLjkgMTI3LjQtNzMuOSAxMjcuNGg3My45bDczLjktMTI3LjQtNzMuOS0xMjcuNHoiPjwvcGF0aD4KPC9zdmc+Cg=="
},function(e,t){e.exports={personalCloudServerTitle:"PersonalCloudServerModal-personalCloudServerTitle-3B--X",header:"PersonalCloudServerModal-header-1gfrn ModalHeader-modalHeader-1Kf9R",innerModalBody:"PersonalCloudServerModal-innerModalBody-wbNiQ ModalBody-innerModalBody-36gmb",upsell:"PersonalCloudServerModal-upsell-1RaWE",upsellImage:"PersonalCloudServerModal-upsellImage-2OC3p",upsellText:"PersonalCloudServerModal-upsellText-3KIFG",upsellPoint:"PersonalCloudServerModal-upsellPoint-3wbUp",
findOutMore:"PersonalCloudServerModal-findOutMore-2wqwi",footer:"PersonalCloudServerModal-footer-12h4I ModalFooter-modalFooter-30WIB"}},function(e,t,n){"use strict";function i(){return Object(g.createStructuredSelector)({outOfDateServers:m.a,isWaitingForPrimaryServer:function(e){return e.isWaitingForPrimaryServer},isUserRestricted:function(e){return!!e.user.restricted},canProvisionPersonalCloudServer:b.a,cloudProviderEntityIDs:Object(y.a)("providers")})}
var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(1628)),y=n(395),b=n(743),I=n(485),S=n(4104),M={showProvisionPersonalCloudServerModal:I.f},D=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onLinkPersonalCloudServerPress=function(e){i.props.showProvisionPersonalCloudServerModal({open:!0})},a=n,
c()(i,a)}return d()(t,e),t.prototype.render=function(){return f.a.createElement(S.a,r()({},this.props,{onLinkPersonalCloudServerPress:this.onLinkPersonalCloudServerPress}))},t}(h.Component);t.a=Object(v.connect)(i,M)(D)},function(e,t,n){"use strict";function i(e){var t=e.outOfDateServers,n=e.isWaitingForPrimaryServer,i=e.isUserRestricted,a=e.canProvisionPersonalCloudServer,o=e.cloudProviderEntityIDs,s=e.onLinkPersonalCloudServerPress;return n?h:t.length?r()(d.a,{outOfDateServers:t}):i?r()(u.a,{
cloudProviderEntityIDs:o}):a?r()(c.a,{cloudProviderEntityIDs:o,onPress:s}):r()(l.a,{cloudProviderEntityIDs:o})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4105)),c=n(4106),u=n(4107),d=n(4108),p=n(4109),h=r()(p.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.cloudProviderEntityIDs;return r()(l.a,{message:Object(c.default)("A server could not be found. Download and install Plex Media Server, and it will appear here.")},void 0,r()(u.a,{to:"https://help.plex.tv/noserver",
target:"_blank",icon:"plex-icon-help-560",title:Object(c.default)("Where is my server?")}),r()(d.a,{showChannels:!1,cloudProviderEntityIDs:t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(324)),c=n(3),u=n(220),d=n(701);t.a=i},function(e,t,n){"use strict";function i(e){return r()("div",{},void 0,r()(l.a,{message:Object(c.default)("Don't have a computer to run Plex Media Server? You can get started with Plex Cloud right now!")},void 0,r()(u.a,{icon:"plex-icon-personal-cloud-560",
title:Object(c.default)("Set up Plex Cloud..."),onPress:e.onPress}),r()(d.a,{showChannels:!1,cloudProviderEntityIDs:e.cloudProviderEntityIDs})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(324)),c=n(3),u=n(220),d=n(701);t.a=i},function(e,t,n){"use strict";function i(e){return r()(l.a,{message:Object(c.default)("No one in your home has shared a library with you.")},void 0,r()(u.a,{to:"https://support.plex.tv/hc/en-us/articles/204234313-Example-Plex-Home-Setup",target:"_blank",
icon:"plex-icon-help-560",title:Object(c.default)("Learn more")}),r()(d.a,{showChannels:!1,cloudProviderEntityIDs:e.cloudProviderEntityIDs}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(324)),c=n(3),u=n(220),d=n(701);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.outOfDateServers,n=t.map(function(e){return'"'+e.friendlyName+'"'}),i=Object(c.a)(n),a=void 0;return a=1===t.length?Object(u.default)("The server {serverName} needs an update.",{serverName:i
}):Object(u.default)("The servers {serverNames} need updates.",{serverNames:i}),r()(l.a,{message:a})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(324)),c=n(1167),u=n(3);t.a=i},function(e,t,n){"use strict";function i(){return r()(s.a,{message:Object(l.default)("Please wait while servers are discovered.")})}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(324)),l=n(3);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return e?{
hasProvider:!0,title:e.title}:{hasProvider:!1}})}var a=n(11),r=n(4),o=(n.n(r),n(54)),s=n(4111),l=Object(a.connect)(i)(s.a);t.a=l},function(e,t,n){"use strict";function i(e){var t=e.hasProvider,n=c()(e,["hasProvider"]);return t?p.a.createElement(r,n):p.a.createElement(a,n)}function a(e){var t=e.id;return s()(f.a,{id:t,primaryTitle:Object(h.default)("Looking for sources..."),isDisabled:!0,isLoading:!0})}function r(e){var t=e.id,n=e.title,i=e.isMenuOpen,a=e.isDisabled,r=e.onPress;return s()(f.a,{
id:t,isMenuOpen:i,isDisabled:a,primaryTitle:n,secondaryTitle:Object(h.default)("Online"),onPress:r})}var o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(3),f=n(960);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=c()(e,["children"]);return p.a.createElement(h.a,r()({},n,{mode:"dropdown"}),s()("div",{},void 0,t))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(318);t.a=i},function(e,t,n){"use strict";function i(){
return Object(d.createSelector)(Object(p.a)(),function(e){return{title:e.title,identifier:e.identifier}})}function a(e){return e.identifier===h.a?null:c.a.createElement(v.a,o()({},e,{isSelected:e.providerEntityID===e.selectedProviderEntityID,to:"#!/provider/"+e.identifier,details:Object(f.default)("Online")}))}var r=n(6),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),n(54)),h=n(41),f=n(3),v=n(561);t.a=Object(u.connect)(i)(a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(743)),g=n(485),m=n(4115),y=Object(f.createStructuredSelector)({isNotInterested:function(e){return e.experienceSettings.isNotInterestedInPersonalCloud},canProvisionPersonalCloudServer:v.a}),b={showProvisionPersonalCloudServerModal:g.f},I=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),S.call(i),a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){return this.props.canProvisionPersonalCloudServer&&!this.props.isNotInterested?a()(m.a,{onPress:this.onPress}):null},t}(p.Component),S=function(){var e=this;this.onPress=function(){var t;(t=e.props).onPress.apply(t,arguments),e.props.showProvisionPersonalCloudServerModal({open:!0})}};t.a=Object(h.connect)(y,b)(I)},function(e,t,n){"use strict";function i(e){var t=e.onPress
;return r()(u.a,{identifier:"plexCloud",title:Object(l.default)("Plex Cloud"),details:Object(l.default)("Set up Plex Cloud\u2026"),onPress:t},void 0,r()(c.a,{className:p.a.personalCloudIcon,name:"plex-icon-personal-cloud-560","aria-label":Object(l.default)("Plex Cloud")}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(26),u=n(561),d=n(4116),p=n.n(d);t.a=i},function(e,t){e.exports={
personalCloudIcon:"ProvisionPersonalCloudServerMenuItem-personalCloudIcon-3BAU_ ServerMenuItem-serverMenuIcon-2zKCW"}},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(u.a)(),function(e){return e.primaryServer},function(e,t){return t.selectedProviderEntityID},function(e,t,n){return{machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName,sourceTitle:e.sourceTitle,isConnected:e.isConnected,isUnavailable:e.isUnavailable,isSecure:e.isSecure,
isCloudSyncServer:e.isCloudSyncServer,isPrimaryEligible:e.isPrimaryEligible,activeConnection:e.activeConnection,isOutOfDate:e.isOutOfDate,isRelayed:e.isRelayed,isSelected:e.entityID===t&&!n}})}function a(e){return s.a.createElement(d.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(35)),d=n(4118);t.a=Object(l.connect)(i)(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(28)),f=n(86),v=n(681),g=n(959),m=n(698),y=n(561),b=n(1449),I=n.n(b),S=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(h.a)(this,e,t)},t.prototype.render=function(){if(!this.props.isPrimaryEligible||!this.props.friendlyName)return null
;var e=this.props,t=e.className,n=e.isSelected,i=e.isConnected,r=e.isUnavailable,o=e.isSecure,s=e.isRelayed,l=e.machineIdentifier,c=e.friendlyName,u=e.onPress,d=Object(g.a)(this.props),p=d.isConnecting,h=d.statusWithSource;return a()(v.a,{action:f.Q},void 0,a()(y.a,{className:(t||"")+" "+((p||r)&&I.a.disabledServerMenuItem||""||""),to:"#!/server/"+l+"/dashboard",isDisabled:p,isSelected:n,identifier:l,title:c,details:h,onPress:u},void 0,a()(m.a,{className:I.a.serverMenuIcon,isConnected:i,
isUnavailable:r,isSecure:o,isRelayed:!n&&s})))},t}(p.Component);t.a=S},function(e,t){e.exports={serverMenu:"ServerMenu-serverMenu-6KNnX MenuContainer-menu-2OAQT",serverMenuScroller:"ServerMenu-serverMenuScroller-1nSX6 Menu-menuScroller-1TF6o Scroller-vertical-VScFL"}},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(p.a)(),function(e){return d.a.pick(e,"friendlyName","sourceTitle","isConnected","isUnavailable","isSecure","isRelayed")})}function a(e){
return s.a.createElement(h.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(10)),d=n.n(u),p=n(35),h=n(4121);t.a=Object(l.connect)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.hasPrimaryServer,n=c()(e,["hasPrimaryServer"]);return t?p.a.createElement(r,n):p.a.createElement(a,n)}function a(e){var t=e.id;return s()(v.a,{id:t,primaryTitle:Object(h.default)("Looking for servers..."),isDisabled:!0,isLoading:!0})}function r(e){
var t=e.id,n=e.friendlyName,i=e.sourceTitle,a=e.isConnected,r=e.isUnavailable,o=e.isSecure,l=e.isRelayed,c=e.isMenuOpen,u=e.onPress,d=void 0;return l&&i?d=Object(h.default)("Indirect ({serverName})",{serverName:i}):l?d=Object(h.default)("Indirect"):i&&(d=i),s()(v.a,{id:t,isMenuOpen:c,primaryTitle:n,secondaryTitle:d,onPress:u},void 0,s()(f.a,{className:m.a.icon,isConnected:a,isUnavailable:r,isSecure:o}))}var o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),
n(0)),p=n.n(d),h=n(3),f=n(698),v=n(960),g=n(4122),m=n.n(g);t.a=i},function(e,t){e.exports={icon:"ServerMenuButton-icon-2yrbL"}},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(Object(p.a)(),Object(u.a)(),Object(d.a)(c.b.SETTINGS),function(e,t,n){return e?{identifier:e.identifier,providerIcon:Object(h.a)(e.icon)?e.icon:l.join([e.baseURL,e.icon]),contentDirectories:t.map(function(t){var n=r()({},t)
;return t.icon&&(n.icon=Object(h.a)(t.icon)?t.icon:l.join([e.baseURL,t.icon])),n}),showProvidersSpinner:e.isPending&&!e.isPopulated,hasError:!!e.error,hasSettings:!!n}:{showProvidersSpinner:!0,hasError:!1}})}var a=n(6),r=n.n(a),o=n(11),s=n(4),l=(n.n(s),n(18)),c=n(64),u=n(409),d=n(584),p=n(54),h=n(516),f=n(4126),v=Object(o.connect)(i)(f.a);t.a=v},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(s.a)(),Object(r.a)(),function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?{isChannelGrid:!0,title:Object(o.default)("Channels"),key:"/"+t.identifier+"/grid"}:null})}t.a=i;var a=n(4),r=(n.n(a),n(54)),o=n(3),s=n(4125)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(o.a)(),Object(s.a)(),l.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2]
;return e.protocols&&e.protocols.includes(c.a)&&n[u.f]&&Object(d.a)(t.version,r.a.channelGrid)&&!0})}t.a=i;var a=n(4),r=(n.n(a),n(160)),o=n(54),s=n(35),l=n(204),c=n(611),u=n(79),d=n(271)},function(e,t,n){"use strict";function i(e){var t=e.identifier,n=e.providerIcon,i=e.contentDirectories,a=e.showProvidersSpinner,o=e.hasSettings,s=e.hasError;return a?f:s?r()("div",{},void 0,r()(l.a,{message:Object(u.default)("There was an unexpected error.")})):r()("div",{},void 0,i.map(function(e){
var i="news"===e.subtype?e.hubKey||e.key:e.key||e.hubKey,a=d.f.get(e.type),o=a&&a.sectionTypeIcon,s=c.join(["#!/provider",encodeURIComponent(t)],{key:i,context:e.context});return r()(p.a,{to:s,icon:o,iconSrc:e.icon||n,title:e.title,highlightActiveRoute:!0},i)}),o&&r()(p.a,{to:"#!/provider/"+encodeURIComponent(t)+"/settings",icon:"plex-icon-settings-560",title:Object(u.default)("Personalize"),highlightActiveRoute:!0},"settings"))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(324)),c=n(18),u=n(3),d=n(145),p=n(220),h=n(1453),f=r()(h.a,{});i.defaultProps={contentDirectories:[],hasError:!1},t.a=i},function(e,t){e.exports={sidebarContent:"ServerSidebar-sidebarContent-3hRNR"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(293),p=n(294),h=n(1633),f=n(164),v=a()(f.a,{}),g=u.a.extend({component:function(e){
var t=e.selectedServerID,n=e.selectedProviderID,i=e.params||{},r=Object(s.a)(l.m,t),u=Object(s.a)(l.k,n,r);return a()(c.a,{metricsContext:i.context},void 0,a()(o.a,{},void 0,v,a()(d.a,{machineIdentifier:t},void 0,a()(p.a,{providerEntityID:u},void 0,a()(h.a,{machineIdentifier:t,serverEntityID:r,providerEntityID:u,listKey:i.key,listTitle:i.title,listType:i.type})))))}});t.a=g},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.machineIdentifier,i=e.isWaitingForPrimaryServer,a=e.primaryServerEntityID,r=c()(e,["children","machineIdentifier","isWaitingForPrimaryServer","primaryServerEntityID"]),o=Object(h.a)(f.m,n),l=!o||o===a;return a&&l?p.a.createElement(g.a,s()({serverEntityID:a},r),t):i||!l?b:I}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(38),f=n(45),v=n(31),g=n(4130),m=n(85),y=n(1627),b=r()(m.a,{},void 0,r()(v.a,{})),I=r()(y.a,{});t.a=i
},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(s.a)(),function(e){var t=e.friendlyName,n=e.hasHttpsConnections,i=e.isConnected,a=e.isFullOwnedServer,r=e.isFullServer,s=e.isInstallingServerUpdate,l=e.isPending,c=e.isUnauthorized,u=e.isUnavailable;return{friendlyName:t,hasHttpsConnections:n,isConnected:i,isFullOwnedServer:a,isFullServer:r,isHostedHttps:o.a.isHostedHttps,isInstallingServerUpdate:s,isPending:l,isUnauthorized:c,isUnavailable:u}})}
var a=n(11),r=n(4),o=(n.n(r),n(101)),s=n(35),l=n(4131);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.friendlyName,i=e.isInstallingServerUpdate,a=e.isConnected,o=e.isUnavailable,l=e.isUnauthorized,c=e.isFullServer,p=e.isFullOwnedServer,h=e.isHostedHttps,v=e.hasHttpsConnections,S=e.requiresFullServer,M=e.requiresFullOwnedServer,D=s()(e,["children","friendlyName","isInstallingServerUpdate","isConnected","isUnavailable","isUnauthorized","isFullServer","isFullOwnedServer","isHostedHttps","hasHttpsConnections","requiresFullServer","requiresFullOwnedServer"]);if(i)return r()(y.a,{
friendlyName:n});if(a){if(S&&!c||M&&!p)return r()(g.a,{title:Object(d.default)("You're not supposed to be here"),description:n?Object(d.default)('This page is restricted from the server "{serverName}"',{serverName:n}):Object(d.default)("This page is restricted from this server")});var C=u.a.Children.only(t);return u.a.cloneElement(C,D)}return o?h&&!v?r()(m.a,{serverEntityID:e.serverEntityID}):r()(f.a,{friendlyName:n}):l?b:I}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(3),p=n(31),h=n(953),f=n(954),v=n(85),g=n(127),m=n(955),y=n(956),b=r()(h.a,{}),I=r()(v.a,{},void 0,r()(p.a,{}));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.listKey,o=e.listTitle,l=e.listType,c=e.listSubtype,y=e.activeSelectionType;return s()(f.a,{metricsPage:p.J,allowBackgroundLightPreset:!0,scrollDirection:d.NONE},void 0,y?s()(v.a,{serverEntityID:t,providerEntityID:n}):s()(m.a,{serverEntityID:t,
providerEntityID:n,metadataListEntityID:i,listTitle:o,listType:l,listSubtype:c}),u.a.createElement(h.a,r()({component:g.a,initialSize:50,shouldResetOnUnmount:!0,containerKey:a,containerTitle:o,listType:l,listSubtype:c},e)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(57),p=n(30),h=n(141),f=n(92),v=n(487),g=n(1636),m=n(4181);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.selectedItemsCount,n=e.toolbarComponent,i=e.onDeselectAllPress,a=c()(e,["selectedItemsCount","toolbarComponent","onDeselectAllPress"]);return s()(f.a,{className:S.a.multiSelectPageHeader},void 0,s()(v.a,{},void 0,s()("div",{className:S.a.selectedTitle},void 0,s()(y.a,{name:"plex-icon-selected-560",className:S.a.icon}),1===t?Object(m.default)("1 item selected"):Object(m.default)("{selectedItemsCount} items selected",{selectedItemsCount:t})),s()(h.a,{className:S.a.deselectLink,onPress:i
},void 0,s()(y.a,{name:"plex-icon-remove-560",className:S.a.icon}),Object(m.default)("Deselect All"))),s()(g.a,{},void 0,p.a.createElement(n,r()({selectedItemsCount:t},a))))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(219),v=n(151),g=n(117),m=n(3),y=n(26),b=n(1635),I=n(4144),S=n.n(I);i.defaultProps={toolbarComponent:b.a,allowRedirectOnDelete:!1},t.a=i},function(e,t,n){e.exports={default:n(4135),__esModule:!0}},function(e,t,n){n(1131),n(784),
e.exports=n(4136)},function(e,t,n){var i=n(346),a=n(1204);e.exports=n(120).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){"use strict";function i(e){return e.map(function(e){return e.model.type})}function a(e){return M.a.uniq(e.map(function(e){return e.provider.entityID})).length>1}function r(e,t){return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.j)(i,a,e,n)})}function o(e,t){
return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.k)(i,a,e,n)})}function s(e,t){return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.a)(i,a,e,n)})}function l(e,t){return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.b)(i,a,e,n)})}function c(e,t){return t.some(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.f)(i,a,e,n)})}function u(e,t){return t.every(function(t){
var n=t.model,i=t.server,a=t.provider;return Object(D.o)(i,a,e,n)})}function d(e,t){return t.some(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.g)(i,a,e,n)})}function p(e,t){return t.some(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.h)(i,a,e,n)})}function h(e,t){var n=i(t);return!(M.a.uniq(n).length>1)&&t.every(function(t){var n=t.server,i=t.provider,a=t.model;return Object(D.e)(n,i,e,a)})}function f(e,t){return t.every(function(t){
var n=t.model,i=t.server,a=t.provider;return Object(D.l)(i,a,e,n)})}function v(e,t){return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.c)(i,a,e,n)})}function g(e,t){if(!h(e,t))return!1;var n=i(t);return 1!==n.length&&(!(M.a.uniq(n).length>1)&&n.every(function(e){return-1!==P.indexOf(e)}))}function m(e,t){return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.n)(i,a,e,n)})}function y(e,t){return t.every(function(t){
var n=t.model,i=t.server,a=t.provider;return Object(D.i)(i,a,e,n)})}function b(e,t){return t.every(function(t){var n=t.model,i=t.server,a=t.provider;return Object(D.d)(i,a,e,n)})}function I(e,t,n){var i=j[n],r=a(t);return i.reduce(function(n,i){var a=C[i];return n[i]=!r&&a(e,t),n},{})}t.a=I;var S=n(10),M=n.n(S),D=(n(37),n(326)),C={showPlay:r,showShuffle:r,showQueue:o,showAddToAlbum:s,showAddToPlaylist:l,showMarkPlayed:d,showMarkUnplayed:p,showFavorite:c,showUnfavorite:u,showEdit:h,showRefresh:f,
showAnalyze:v,showMerge:g,showSync:m,showOptimize:y,showDelete:b},j={video:["showPlay","showShuffle","showQueue","showAddToPlaylist","showMarkPlayed","showMarkUnplayed","showEdit","showRefresh","showAnalyze","showMerge","showSync","showOptimize","showDelete"],audio:["showPlay","showShuffle","showQueue","showAddToPlaylist","showEdit","showRefresh","showAnalyze","showMerge","showSync","showDelete"],
photo:["showPlay","showShuffle","showAddToAlbum","showFavorite","showUnfavorite","showEdit","showAnalyze","showSync","showDelete"],playlist:["showDelete"],collection:["showDelete"]},P=["movie","show","season","artist","album"]},function(e,t,n){"use strict";function i(e){return 1===e?Object(C.default)("Are you sure you want to mark this item as played?"):Object(C.default)("Are you sure you want to mark these {selectedItemsCount} items as played?",{selectedItemsCount:e})}function a(e){
return 1===e?Object(C.default)("Are you sure you want to mark this item as unplayed?"):Object(C.default)("Are you sure you want to mark these {selectedItemsCount} items as unplayed?",{selectedItemsCount:e})}function r(e,t){var n=1===e;return t===j.i?n?Object(C.default)("Are you sure you want to delete this playlist?"):Object(C.default)("Are you sure you want to delete these {selectedItemsCount} playlists?",{selectedItemsCount:e
}):t===j.d?n?Object(C.default)("Are you sure you want to delete this collection?"):Object(C.default)("Are you sure you want to delete these {selectedItemsCount} collections?",{selectedItemsCount:e}):n?Object(C.default)("Are you sure you want to delete this item from your filesystem?"):Object(C.default)("Are you sure you want to delete these {selectedItemsCount} items from your filesystem?",{selectedItemsCount:e})}
var o=n(6),s=n.n(o),l=n(2),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),
n(0)),y=n.n(m),b=n(128),I=n(47),S=n(28),M=n(19),D=n(30),C=n(3),j=n(27),P=n(26),O=n(177),T=n(398),E=n(1040),w=n(1041),A=n(1042),x=n(744),N=n(1043),L=n(1044),k=n(1045),R=n(4139),z=n(1047),U=n(24),B=n(4142),F=["showPlay","showShuffle","showAddToAlbum","showAddToPlaylist","showFavorite","showUnfavorite","showTogglePlayed","showEdit","showSync"],_=["showRefresh","showAnalyze","showMerge","showOptimize","showDelete"],V=c()(P.a,{name:"plex-icon-favorite-empty-560"}),H=c()(P.a,{
name:"plex-icon-favorite-full-560"}),Q=function(e){function t(n,i){d()(this,t);var a=h()(this,e.call(this,n,i));return a.onPlaySelectedShortcut=function(){var e=a.props,t=e.showPlay,n=e.showPlayOverflow,i=e.onPlaySelectedPress;(t||n)&&i()},a.onToggleWatchedShortcut=function(){var e=a.props,t=e.showMarkPlayed,n=e.showMarkUnplayed;t?a.setState({isConfirmMarkPlayedModalOpen:!0}):n&&a.setState({isConfirmMarkUnplayedModalOpen:!0})},a.onEditShortcut=function(){
var e=a.props,t=e.showEdit,n=e.showEditOverflow,i=e.onEditPress;(t||n)&&i()},a.onActionsPress=function(e){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen})},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1})},a.onMarkPlayedPress=function(e){a.setState({isConfirmMarkPlayedModalOpen:!0})},a.onMarkUnplayedPress=function(e){a.setState({isConfirmMarkUnplayedModalOpen:!0})},a.onMarkPlayedConfirm=function(){a.setState({isConfirmMarkPlayedModalOpen:!1}),
a.props.onMarkPlayedConfirm()},a.onMarkPlayedCancel=function(){a.setState({isConfirmMarkPlayedModalOpen:!1})},a.onMarkUnplayedConfirm=function(){a.setState({isConfirmMarkUnplayedModalOpen:!1}),a.props.onMarkUnplayedConfirm()},a.onMarkUnplayedCancel=function(){a.setState({isConfirmMarkUnplayedModalOpen:!1})},a.onDeletePress=function(e){a.setState({isConfirmDeleteModalOpen:!0})},a.onDeleteConfirm=function(e){a.setState({isConfirmDeleteModalOpen:!1}),a.props.onDeleteConfirm()},
a.onDeleteCancel=function(){a.setState({isConfirmDeleteModalOpen:!1})},a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0})},a.onAddToPlaylistClose=function(){a.setState({isAddToPlaylistModalOpen:!1})},a.state={isActionsMenuOpen:!1,isConfirmMarkPlayedModalOpen:!1,isConfirmMarkUnplayedModalOpen:!1,isConfirmDeleteModalOpen:!1,isAddToPlaylistModalOpen:!1},a._moreButtonID=Object(I.a)(),a}return v()(t,e),t.prototype.componentDidMount=function(){
M.a.on("shortcut:playSelected",this.onPlaySelectedShortcut),M.a.on("shortcut:toggleWatched",this.onToggleWatchedShortcut),M.a.on("shortcut:edit",this.onEditShortcut)},t.prototype.shouldComponentUpdate=function(e,t){return Object(S.a)(this,e,t)},t.prototype.componentWillUnmount=function(){M.a.off("shortcut:playSelected",this.onPlaySelectedShortcut),M.a.off("shortcut:toggleWatched",this.onToggleWatchedShortcut),M.a.off("shortcut:edit",this.onEditShortcut)},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,o=e.providerEntityID,l=e.activeSelectionType,u=e.selectedItemsCount,d=e.showPlay,p=e.showPlayOverflow,h=e.showShuffle,f=e.showShuffleOverflow,v=e.showAddToAlbum,g=e.showAddToAlbumOverflow,m=e.showAddToPlaylist,I=e.showAddToPlaylistOverflow,S=e.showFavorite,M=e.showFavoriteOverflow,j=e.showUnfavorite,P=e.showUnfavoriteOverflow,z=e.showTogglePlayed,F=e.showTogglePlayedOverflow,_=e.showMarkPlayed,Q=e.showMarkUnplayed,Y=e.showEdit,G=e.showEditOverflow,W=e.showSync,K=e.showSyncOverflow,Z=e.showOverflow,q=e.onPlaySelectedPress,J=e.onShufflePress,X=e.onFavoritePress,$=e.onUnfavoritePress,ee=e.onEditPress,te=e.onSyncPress,ne=this.state,ie=ne.isActionsMenuOpen,ae=ne.isConfirmMarkPlayedModalOpen,re=ne.isConfirmMarkUnplayedModalOpen,oe=ne.isConfirmDeleteModalOpen,se=ne.isAddToPlaylistModalOpen
;return c()("div",{className:t},void 0,d&&c()(N.a,{playLabel:Object(C.default)("Play Selected"),onPress:q}),h&&c()(L.a,{onPress:J}),v&&c()(E.a,{onPress:this.onAddToPlaylistPress}),m&&c()(w.a,{onPress:this.onAddToPlaylistPress}),S&&c()(b.a,{"data-qa-id":"toolbarFavorite",tooltip:Object(C.default)("Add to Favorites"),onPress:X},void 0,V),j&&c()(b.a,{"data-qa-id":"toolbarUnfavorite",tooltip:Object(C.default)("Remove from Favorites"),onPress:$},void 0,H),z&&c()(R.a,{showMarkPlayed:_,
showMarkUnplayed:Q,onMarkPlayedPress:this.onMarkPlayedPress,onMarkUnplayedPress:this.onMarkUnplayedPress}),Y&&c()(A.a,{onPress:ee}),W&&c()(k.a,{onPress:te}),Z&&c()(x.a,{id:this._moreButtonID,icon:"plex-icon-toolbar-more-560",label:Object(C.default)("More..."),isMenuOpen:ie,onPress:this.onActionsPress}),y.a.createElement(B.a,s()({},this.props,{target:this._moreButtonID,isOpen:ie,showPlay:p,showShuffle:f,showAddToAlbum:g,showAddToPlaylist:I,showFavorite:M,showUnfavorite:P,showMarkPlayed:F&&_,
showMarkUnplayed:F&&Q,showEdit:G,showSync:K,onMenuClose:this.onActionsMenuClose,onMarkPlayedPress:this.onMarkPlayedPress,onMarkUnplayedPress:this.onMarkUnplayedPress,onDeletePress:this.onDeletePress})),c()(O.a,{isOpen:ae,metricsPage:D.o,title:Object(C.default)("Mark as Played"),message:i(u),onConfirm:this.onMarkPlayedConfirm,onCancel:this.onMarkPlayedCancel}),c()(O.a,{isOpen:re,metricsPage:D.n,title:Object(C.default)("Mark as Unplayed"),message:a(u),onConfirm:this.onMarkUnplayedConfirm,
onCancel:this.onMarkUnplayedCancel}),c()(O.a,{isOpen:oe,metricsPage:D.g,kind:U.b.DANGER,title:Object(C.default)("Delete"),message:r(u,l),onConfirm:this.onDeleteConfirm,onCancel:this.onDeleteCancel}),(v||m)&&c()(T.a,{serverEntityID:n,providerEntityID:o,isOpen:se,onModalClose:this.onAddToPlaylistClose}))},t}(m.Component);t.a=Object(z.a)(Q,F,_)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(112)),f=n(47),v=n(3),g=n(1046),m=n(744),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMenuButtonPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},a.state={isMenuOpen:!1},a._toolbarMenuButtonID=Object(f.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.showMarkPlayed,n=e.showMarkUnplayed,i=e.onMarkPlayedPress,r=e.onMarkUnplayedPress,o=this.state.isMenuOpen
;return a()(m.a,{id:this._toolbarMenuButtonID,icon:"plex-icon-toolbar-played-toggle-560",label:Object(v.default)("Toggle Played..."),isMenuOpen:o,onPress:this.onMenuButtonPress},void 0,a()(g.a,{target:this._toolbarMenuButtonID,isOpen:o,onMenuClose:this.onMenuClose},void 0,t&&a()(h.a,{onPress:i},void 0,Object(v.default)("Mark as Played")),n&&a()(h.a,{onPress:r},void 0,Object(v.default)("Mark as Unplayed"))))},t}(p.Component);t.a=y},function(e,t){e.exports={
toolbarMenu:"ToolbarMenu-toolbarMenu-18yic MenuContainer-menu-2OAQT"}},function(e,t){e.exports={toolbarContainer:"pageHeaderToolbar-toolbarContainer-2N-IJ Measure-container-3yONE",toolbar:"pageHeaderToolbar-toolbar-1lW-M"}},function(e,t,n){"use strict";function i(e){return d.a.createElement(h.a,e)}function a(e){var t=e.target,n=e.isOpen,a=e.onMenuClose,r=l()(e,["target","isOpen","onMenuClose"]);return o()(p.a,{target:t,isOpen:n,onMenuClose:a},void 0,d.a.createElement(i,r))}
var r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(1046),h=n(4143);t.a=a},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(112)),f=n(3),v=n(398),g=n(24),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0}),a.props.onMenuDisable()},a.onAddToPlaylistClose=function(){a.setState({
isAddToPlaylistModalOpen:!1}),a.props.onMenuEnable(),a.props.onPress()},a.state={isAddToPlaylistModalOpen:!1},a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=this.state.isAddToPlaylistModalOpen;return a()("div",{},void 0,e.showPlay&&a()(h.a,{onPress:e.onPlaySelectedPress},void 0,Object(f.default)("Play")),e.showShuffle&&a()(h.a,{onPress:e.onShufflePress},void 0,Object(f.default)("Shuffle")),e.showQueue&&a()(h.a,{onPress:e.onPlaySelectedNextPress
},void 0,Object(f.default)("Play Next")),e.showQueue&&a()(h.a,{onPress:e.onAddToQueuePress},void 0,Object(f.default)("Add to Queue")),e.showAddToAlbum&&a()(h.a,{onPress:this.onAddToPlaylistPress},void 0,Object(f.default)("Add to Album...")),e.showAddToPlaylist&&a()(h.a,{onPress:this.onAddToPlaylistPress},void 0,Object(f.default)("Add to Playlist...")),e.showFavorite&&a()(h.a,{onPress:e.onFavoritePress},void 0,Object(f.default)("Add to Favorites")),e.showUnfavorite&&a()(h.a,{
onPress:e.onUnfavoritePress},void 0,Object(f.default)("Remove from Favorites")),e.showMarkPlayed&&a()(h.a,{onPress:e.onMarkPlayedPress},void 0,Object(f.default)("Mark as Played")),e.showMarkUnplayed&&a()(h.a,{onPress:e.onMarkUnplayedPress},void 0,Object(f.default)("Mark as Unplayed")),e.showEdit&&a()(h.a,{onPress:e.onEditPress},void 0,Object(f.default)("Edit")),e.showRefresh&&a()(h.a,{onPress:e.onRefreshPress},void 0,Object(f.default)("Refresh Metadata")),e.showAnalyze&&a()(h.a,{
onPress:e.onAnalyzePress},void 0,Object(f.default)("Analyze")),e.showMerge&&a()(h.a,{onPress:e.onMergePress},void 0,Object(f.default)("Merge")),e.showSync&&a()(h.a,{onPress:e.onSyncPress},void 0,Object(f.default)("Sync...")),e.showOptimize&&a()(h.a,{onPress:e.onOptimizePress},void 0,Object(f.default)("Optimize...")),e.showDelete&&a()(h.a,{kind:g.b.DANGER,onPress:e.onDeletePress},void 0,Object(f.default)("Delete")),(e.showAddToAlbum||e.showAddToPlaylist)&&a()(v.a,{serverEntityID:e.serverEntityID,
providerEntityID:e.providerEntityID,isOpen:t,onModalClose:this.onAddToPlaylistClose}))},t}(p.Component);t.a=m},function(e,t){e.exports={multiSelectPageHeader:"MultiSelectPageHeader-multiSelectPageHeader-MIQA1 PageHeader-pageHeader-14-NY",selectedTitle:"MultiSelectPageHeader-selectedTitle-1kn-x",deselectLink:"MultiSelectPageHeader-deselectLink-3Muvc",icon:"MultiSelectPageHeader-icon-3_oXi"}},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(20),m=n(91),y=n(52),b=n(154),I=n(222),S=n(729),M=n(476),D=n(1544),C=n(1642),j=n(699),P=n(4148),O=n.n(P),T=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onActionsMenuOpenChange=function(e){a.setState({isActionsMenuOpen:e})},a.state={isActionsMenuOpen:!1},a}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.containerKey,s=e.listType,l=e.cellIndex,c=e.cellX,u=e.cellY,d=e.cellWidth,p=e.cellHeight,h=e.title,f=e.summary,b=e.tagline,j=e.route,P=e.showLink,T=e.showMore,E=e.hoverableProps,w=e.isPlaying,A=e.isPlayerPaused,x=e.onPlayPress,N=this.state.isActionsMenuOpen;return v.a.createElement(m.a,a()({className:((l%2?O.a.alternateItem:O.a.item)||"")+" "+(N&&O.a.isActionsMenuOpen||""||""),cellX:c,cellY:u,cellWidth:d,
cellHeight:p},E),P&&o()(g.a,{className:O.a.underlay,to:j,"aria-label":h}),o()("div",{className:O.a.overlay},void 0,o()("div",{className:O.a.simpleSummaryContainer},void 0,o()("div",{className:O.a.indexPlayContainer},void 0,w?null:o()(D.a,{className:O.a.titleEpisodeIndex,metadataItemEntityID:i,longName:!1}),w?o()(S.a,{isPaused:A}):o()("div",{className:O.a.playButtonContainer},void 0,o()(I.a,{className:O.a.playButton,title:h,onPress:x}))),o()("div",{className:O.a.miniProgressContainer
},void 0,o()(C.a,{metadataItemEntityID:i,size:y.SMALL})),o()("div",{className:O.a.titleAndSummaryContainer},void 0,o()("div",{className:O.a.titleContainer},void 0,o()("div",{className:O.a.title},void 0,h),o()("div",{className:O.a.actions},void 0,T&&o()(M.a,{"data-qa-id":"metadataSimpleSummaryMoreButton",className:O.a.moreButton,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,containerKey:r,listType:s,showPlay:!1,showAddToSaved:!1,isMenuOpen:N,
onMenuOpenChange:this.onActionsMenuOpenChange}))),o()("div",{className:O.a.summary},void 0,b||f)))))},t}(f.Component);t.a=Object(j.a)(Object(b.a)(T))},function(e,t,n){"use strict";function i(e){var t=e.size,n=e.saved,i=e.viewOffset,a=e.viewCount;return null==n||n||i?a||i?i?r()("div",{className:(u.a.unwatchedCircle||"")+" "+(u.a.isPartiallyWatched||"")+" "+(u.a[t]||"")}):null:r()("div",{className:(u.a.unwatchedCircle||"")+" "+(u.a[t]||"")}):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(52)),c=n(4147),u=n.n(c);i.defaultProps={size:l.MEDIUM},t.a=i},function(e,t){e.exports={unwatchedCircle:"MetadataTitleMiniProgress-unwatchedCircle-235-S MetadataTitleProgress-unwatchedCircle-25KKn",isPartiallyWatched:"MetadataTitleMiniProgress-isPartiallyWatched-19Hrx",small:"MetadataTitleMiniProgress-small-1fCco",medium:"MetadataTitleMiniProgress-medium-xU97R"}},function(e,t){e.exports={item:"MetadataSimpleSummaryCell-item-2wMSi",
isActionsMenuOpen:"MetadataSimpleSummaryCell-isActionsMenuOpen-3iGW8",button:"MetadataSimpleSummaryCell-button-T_Dfk",titleEpisodeIndex:"MetadataSimpleSummaryCell-titleEpisodeIndex-fssXI",alternateItem:"MetadataSimpleSummaryCell-alternateItem-2dz9a MetadataSimpleSummaryCell-item-2wMSi",underlay:"MetadataSimpleSummaryCell-underlay-3j5Eg",overlay:"MetadataSimpleSummaryCell-overlay-18Efa",simpleSummaryContainer:"MetadataSimpleSummaryCell-simpleSummaryContainer-2b-1R",
indexPlayContainer:"MetadataSimpleSummaryCell-indexPlayContainer-C8tSJ",playButtonContainer:"MetadataSimpleSummaryCell-playButtonContainer-CgWZX",playButton:"MetadataSimpleSummaryCell-playButton-3yyum PlayButton-playButton-3WX8X MetadataSimpleSummaryCell-button-T_Dfk",miniProgressContainer:"MetadataSimpleSummaryCell-miniProgressContainer-3piSD",titleAndSummaryContainer:"MetadataSimpleSummaryCell-titleAndSummaryContainer-YfihR",titleContainer:"MetadataSimpleSummaryCell-titleContainer-1kD2L",
title:"MetadataSimpleSummaryCell-title-2SoJl",summary:"MetadataSimpleSummaryCell-summary-1plSw",actions:"MetadataSimpleSummaryCell-actions-2_Byw",moreButton:"MetadataSimpleSummaryCell-moreButton-1mNpc MetadataSimpleSummaryCell-button-T_Dfk"}},function(e,t,n){"use strict";function i(e){var t=e.cellIndex,n=e.cellX,i=e.cellY,a=e.cellWidth,o=e.cellHeight;return r()(l.a,{className:t%2?p.a.alternateLoadingItem:p.a.loadingItem,cellX:n,cellY:i,cellWidth:a,cellHeight:o
},void 0,Object(c.default)("Loading..."))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(91)),c=n(3),u=n(154),d=n(4150),p=n.n(d);t.a=Object(u.a)(i)},function(e,t){e.exports={loadingItem:"MetadataSimpleSummaryCellLoading-loadingItem-35Sst",alternateLoadingItem:"MetadataSimpleSummaryCellLoading-alternateLoadingItem-2LPd5 MetadataSimpleSummaryCellLoading-loadingItem-35Sst"}},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(73),m=n(20),y=n(91),b=n(3),I=n(26),S=n(154),M=n(33),D=n(459),C=n(476),j=n(404),P=n(740),O=n(287),T=n(1050),E=n(572),w=n(699),A=n(4152),x=n.n(A),N=o()(I.a,{name:"plex-icon-edit-560"}),L=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onActionsMenuOpenChange=function(e){a.setState({isActionsMenuOpen:e})},a.state={isActionsMenuOpen:!1},a}
return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.containerKey,s=e.listType,l=e.listContext,c=e.cellIndex,u=e.cellX,d=e.cellY,p=e.cellWidth,h=e.cellHeight,f=e.showScrollPlaceholder,I=e.showOffscreenPlaceholder,S=e.metadataKey,w=e.type,A=e.index,L=e.title,k=e.grandparentKey,R=e.summary,z=e.isFolder,U=e.route,B=e.showLink,F=e.showEdit,_=e.showSelect,V=e.showMore,H=e.hasActiveSelection,Q=e.isSelected,Y=e.isOtherItemSelected,G=e.isModifierKeyPressed,W=e.imageWidth,K=e.imageHeight,Z=e.imageUrl,q=e.onEditPress,J=e.onSelectPress,X=e.onDeselectPress,$=e.hoverableProps,ee=e.isHovered,te=this.state.isActionsMenuOpen,ne=l===M.b,ie=_&&(G||Y),ae=H?"-1":"0",re=null!=A,oe=!ee
;return v.a.createElement(y.a,a()({className:((c%2?x.a.alternateItem:x.a.item)||"")+" "+(H&&x.a.hasActiveSelection||"")+" "+(ie&&x.a.isForcingSelection||"")+" "+(Q&&x.a.isSelected||"")+" "+(te&&x.a.isActionsMenuOpen||""||""),cellX:u,cellY:d,cellWidth:p,cellHeight:h},$),_&&o()(m.a,{className:x.a.selectCoverButton,"aria-label":Q?Object(b.default)("Deselect {title}",{title:L}):Object(b.default)("Select {title}",{title:L}),tabIndex:B&&!H?"-1":"0",onPress:Q?X:J}),B&&o()(m.a,{className:x.a.underlay,
tabIndex:ae,to:U,"aria-label":L}),o()("div",{className:x.a.overlay},void 0,o()("div",{className:x.a.posterContainer},void 0,f?o()(P.a,{imageWidth:W,imageHeight:K}):o()(j.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,containerKey:r,listType:s,listContext:l,metadataKey:S,type:w,imageWidth:W,imageHeight:K,imageUrl:Z,isOffscreen:I,isFolder:z,showLink:!1,showSelect:!1,showEdit:!1,showMore:!1})),o()("div",{className:ne?x.a.librarySummaryContainer:x.a.summaryContainer
},void 0,o()("div",{},void 0,o()("div",{className:x.a.titleContainer},void 0,o()("div",{className:x.a.title},void 0,!!k&&o()("span",{},void 0,ne?o()(O.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}):re&&o()(T.a,{index:A}),(ne||re)&&o()(g.b,{className:x.a.separator})),L),o()("div",{className:x.a.rating},void 0,o()(E.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,hideUnrated:oe})),o()("div",{className:x.a.actions},void 0,_&&o()(D.a,{className:x.a.selectButton,
tabIndex:ae,title:L,isSelected:Q,onPress:J}),F&&o()(m.a,{"data-qa-id":"metadataSummaryEditButton",className:x.a.editButton,tabIndex:ae,"aria-label":Object(b.default)("Edit {title}",{title:L}),onPress:q},void 0,N),V&&o()(C.a,{"data-qa-id":"metadataSummaryMoreButton",className:x.a.moreButton,tabIndex:ae,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,containerKey:r,listType:s,showPlay:!1,showQueuePlexMix:!1,showEdit:!1,isMenuOpen:te,onMenuOpenChange:this.onActionsMenuOpenChange
}))),o()("div",{className:x.a.summary},void 0,R)))))},t}(f.Component);t.a=Object(w.a)(Object(S.a)(L))},function(e,t){e.exports={item:"MetadataSummaryCell-item-3B6Cc",isActionsMenuOpen:"MetadataSummaryCell-isActionsMenuOpen-2SCBd",button:"MetadataSummaryCell-button-zZgSe",hasActiveSelection:"MetadataSummaryCell-hasActiveSelection-3nabO",underlay:"MetadataSummaryCell-underlay-3M2OQ",isForcingSelection:"MetadataSummaryCell-isForcingSelection-2Iov2",overlay:"MetadataSummaryCell-overlay-1lk0o",
editButton:"MetadataSummaryCell-editButton-2RfiY MetadataSummaryCell-button-zZgSe",moreButton:"MetadataSummaryCell-moreButton-1rf6A MetadataSummaryCell-button-zZgSe",isSelected:"MetadataSummaryCell-isSelected-fha5M",selectButton:"MetadataSummaryCell-selectButton-3KJeM SelectButton-selectButton-3Kbjm MetadataSummaryCell-button-zZgSe",alternateItem:"MetadataSummaryCell-alternateItem-3K1M6 MetadataSummaryCell-item-3B6Cc",posterContainer:"MetadataSummaryCell-posterContainer-1Vc-o",
summaryContainer:"MetadataSummaryCell-summaryContainer-6HJG5",librarySummaryContainer:"MetadataSummaryCell-librarySummaryContainer-HZdA_ MetadataSummaryCell-summaryContainer-6HJG5",titleContainer:"MetadataSummaryCell-titleContainer-p5H3c",title:"MetadataSummaryCell-title-3jmFb",rating:"MetadataSummaryCell-rating-2Qtpg",separator:"MetadataSummaryCell-separator-2zu7c DashSeparator-separator-4CyEF",summary:"MetadataSummaryCell-summary-2xqys",actions:"MetadataSummaryCell-actions-1C9Sh",
selectCoverButton:"MetadataSummaryCell-selectCoverButton-2nF-u"}},function(e,t,n){"use strict";function i(e){var t=e.cellIndex,n=e.cellX,i=e.cellY,a=e.cellWidth,o=e.cellHeight,s=e.imageWidth,u=e.imageHeight;return r()(l.a,{className:t%2?h.a.alternateLoadingItem:h.a.loadingItem,cellX:n,cellY:i,cellWidth:a,cellHeight:o},void 0,r()("div",{className:h.a.posterContainer},void 0,r()(d.a,{imageWidth:s,imageHeight:u})),Object(c.default)("Loading..."))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(91)),c=n(3),u=n(154),d=n(740),p=n(4154),h=n.n(p);t.a=Object(u.a)(i)},function(e,t){e.exports={loadingItem:"MetadataSummaryCellLoading-loadingItem-2TLko",alternateLoadingItem:"MetadataSummaryCellLoading-alternateLoadingItem-6d55P MetadataSummaryCellLoading-loadingItem-2TLko",posterContainer:"MetadataSummaryCellLoading-posterContainer-18W6x"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return e?{title:e.title,
isFolder:e.isFolder,isMultiVersion:Object(l.a)(e),hasMusicVideo:Object(s.a)(e)}:{}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1649),l=n(1562),c=n(4156);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.title,i=e.isFolder,a=e.isMultiVersion,o=e.hasMusicVideo;return r()("span",{className:t},void 0,r()("div",{className:u.a.titleContainer},void 0,i&&r()(l.a,{className:u.a.folderIconContainer,iconClassName:u.a.folderIcon,name:"plex-icon-folder-560"
}),r()("span",{className:u.a.title},void 0,n),r()("span",{},void 0,a&&r()(l.a,{iconClassName:u.a.multiVersionIcon,name:"plex-icon-files-560"}),o&&d)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1650)),c=n(4158),u=n.n(c),d=r()(l.a,{name:"plex-icon-shows-560"});t.a=i},function(e,t){e.exports={decoratorIconContainer:"MetadataTitleDecoratorIcon-decoratorIconContainer-3n0am",decoratorIcon:"MetadataTitleDecoratorIcon-decoratorIcon-sjuWW"}},function(e,t){e.exports={
titleContainer:"MetadataTableTitle-titleContainer-3sPQC",title:"MetadataTableTitle-title-2WmEM",folderIconContainer:"MetadataTableTitle-folderIconContainer-3Tcvn MetadataTitleDecoratorIcon-decoratorIconContainer-3n0am",folderIcon:"MetadataTableTitle-folderIcon-1bAao MetadataTitleDecoratorIcon-decoratorIcon-sjuWW",multiVersionIcon:"MetadataTableTitle-multiVersionIcon-1lcNL MetadataTitleDecoratorIcon-decoratorIcon-sjuWW"}},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(o.a)(),function(e){return e?{title:e.title,originalTitle:e.originalTitle,hasMusicVideo:Object(s.a)(e)}:{}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1649),l=n(4160);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.title,i=e.originalTitle,a=e.hasMusicVideo;return r()("span",{className:t},void 0,r()("span",{className:d.a.titleContainer},void 0,r()("span",{className:d.a.title,"data-qa-id":"trackName"
},void 0,n,!!i&&r()("span",{className:d.a.trackArtist},void 0,!!n&&p,i)),a&&h))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(1650),u=n(4161),d=n.n(u),p=r()(l.b,{}),h=r()(c.a,{name:"plex-icon-shows-560"});t.a=i},function(e,t){e.exports={titleContainer:"MetadataTitleCombinedTitleTrackArtist-titleContainer-4jblz",title:"MetadataTitleCombinedTitleTrackArtist-title-2YgMr",trackArtist:"MetadataTitleCombinedTitleTrackArtist-trackArtist-19qju"}},function(e,t,n){"use strict"
;function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{duration:e.duration,viewOffset:e.viewOffset,viewCount:e.viewCount,isFolder:e.isFolder}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4163);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.size,i=e.duration,a=e.viewOffset,o=e.viewCount;return e.isFolder?null:o||a?r()(c.a,{className:t,duration:i,viewOffset:a
}):r()("div",{className:(d.a.unwatchedCircle||"")+" "+(d.a[n]||"")})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(52)),c=n(1006),u=n(4164),d=n.n(u);i.defaultProps={size:l.MEDIUM},t.a=i},function(e,t){e.exports={unwatchedCircle:"MetadataTitleProgress-unwatchedCircle-25KKn",medium:"MetadataTitleProgress-medium-1tjFo"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{
originalTitle:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).originalTitle}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4166);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.originalTitle;return r()("span",{className:t,title:n},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{
unviewedLeafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).unviewedLeafCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4168);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.unviewedLeafCount,i=void 0;return n>0&&(i=Object(l.default)("{numEpisodes} unplayed",{numEpisodes:n})),r()("span",{className:t},void 0,i)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3));t.a=i},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(o.a)(),function(){return{viewCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).viewCount}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4170);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.viewCount;return r()("span",{className:t},void 0,n>0?n:null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.libraryTableColumns}
t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(20),m=n(91),y=n(3),b=n(26),I=n(4173),S=n(154),M=n(33),D=n(222),C=n(459),j=n(729),P=n(476),O=n(4174),T=n(1547),E=n(1651),w=n(699),A=n(4175),x=n(4177),N=n.n(x),L=o()(b.a,{name:"plex-icon-edit-560"}),k=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onActionsMenuOpenChange=function(e){a.setState({
isActionsMenuOpen:e})},a.state={isActionsMenuOpen:!1},a}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.containerKey,s=e.listType,l=e.listContext,c=e.activeSort,u=e.selectedSort,d=e.cellIndex,p=e.cellX,h=e.cellY,f=e.cellWidth,b=e.cellHeight,S=e.activeTableColumns,w=e.title,x=e.route,k=e.showLink,R=e.showPlay,z=e.showEdit,U=e.showSelect,B=e.showMore,F=e.showPlayIndex,_=e.showPlayCellIndex,V=e.showActionsDuration,H=e.showActionsMinutesLeft,Q=e.hasActiveSelection,Y=e.isSelected,G=e.isOtherItemSelected,W=e.isModifierKeyPressed,K=e.isPlaying,Z=e.isPlayerPaused,q=e.onPlayPress,J=e.onEditPress,X=e.onSelectPress,$=e.onDeselectPress,ee=e.hoverableProps,te=e.isHovered,ne=e.isVirtual,ie=this.state.isActionsMenuOpen,ae=l===M.b,re=U&&(W||G),oe=Q?"-1":"0",se=!te,le=ne?m.a:I.a
;return v.a.createElement(le,a()({className:((d%2?N.a.alternateItem:N.a.item)||"")+" "+(Q&&N.a.hasActiveSelection||"")+" "+(re&&N.a.isForcingSelection||"")+" "+(Y&&N.a.isSelected||"")+" "+(ie&&N.a.isActionsMenuOpen||""||""),cellX:p,cellY:h,cellWidth:f,cellHeight:b},ee),U&&o()(g.a,{className:N.a.selectCoverButton,"aria-label":Y?Object(y.default)("Deselect {title}",{title:w}):Object(y.default)("Select {title}",{title:w}),tabIndex:k&&!Q?"-1":"0",onPress:Y?$:X}),k&&o()(g.a,{className:N.a.underlay,
tabIndex:oe,to:x,"aria-label":w}),o()("div",{className:N.a.overlay},void 0,o()("div",{className:N.a.playCell},void 0,F&&!K&&o()(O.a,{className:N.a.transientTitleLeft,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),_&&!K&&o()("span",{className:N.a.transientTitleLeft},void 0,d+1),R&&!K&&o()(D.a,{className:N.a.playButton,"data-qa-id":"listItemPlayButton",tabIndex:oe,title:w,onPress:q}),K&&o()(j.a,{className:N.a.equalizer,isPaused:Z})),S.map(function(e,a){
var r=e.style,l=e.component,d=e.ascKey,p=e.descKey;return o()(A.a,{style:r,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,component:l,type:s,isActiveSort:c===d||c===p||!!u&&u.key===d,hideUnrated:se},a)}),o()("div",{className:ae?N.a.libraryActionsCell:N.a.actionsCell},void 0,V&&o()(E.a,{className:N.a.transientTitleRight,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),H&&o()(T.a,{className:N.a.transientTitleRight,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i
}),U&&o()(C.a,{className:N.a.selectButton,tabIndex:oe,title:w,isSelected:Y,onPress:X}),z&&o()(g.a,{"data-qa-id":"metadataRowEditButton",className:N.a.editButton,tabIndex:oe,"aria-label":Object(y.default)("Edit {title}",{title:w}),onPress:J},void 0,L),B&&o()(P.a,{"data-qa-id":"metadataRowMoreButton",className:N.a.moreButton,tabIndex:oe,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,containerKey:r,listType:s,showPlay:!1,showQueuePlexMix:!1,showEdit:!1,isMenuOpen:ie,
onMenuOpenChange:this.onActionsMenuOpenChange}))))},t}(f.Component);k.defaultProps={isVirtual:!0},t.a=Object(w.a)(Object(S.a)(k))},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.cellHeight,a=e.onMouseMove,o=e.onMouseLeave,s=e.onFocus,l=e.onBlur,c={position:"relative",width:"100%",height:i};return r()("div",{className:t,style:c,onMouseMove:a,onMouseLeave:o,onFocus:s,onBlur:l},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0));n.n(s);t.a=i},function(e,t,n){
"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{index:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).index}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(1050);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.style,n=e.component,i=e.isActiveSort,a=c()(e,["style","component","isActiveSort"]),o=n(e.type);return s()("div",{className:i?f.a.activeTableCell:f.a.tableCell,style:t},void 0,p.a.createElement(o,r()({},a,{
className:f.a.title})))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(4176),f=n.n(h);t.a=i},function(e,t){e.exports={tableCell:"MetadataTableCell-tableCell-35117",activeTableCell:"MetadataTableCell-activeTableCell-IpsrR MetadataTableCell-tableCell-35117",title:"MetadataTableCell-title-3KMG0"}},function(e,t){e.exports={item:"MetadataTableRow-item-11DH-",isActionsMenuOpen:"MetadataTableRow-isActionsMenuOpen-3yasO",
transientTitle:"MetadataTableRow-transientTitle-3nwho",button:"MetadataTableRow-button-1Y7ax",hasActiveSelection:"MetadataTableRow-hasActiveSelection-3A2BE",underlay:"MetadataTableRow-underlay-2ipZb",isForcingSelection:"MetadataTableRow-isForcingSelection-t_XFI",overlay:"MetadataTableRow-overlay-1RiId",transientTitleLeft:"MetadataTableRow-transientTitleLeft-19Y6P MetadataTableRow-transientTitle-3nwho",
transientTitleRight:"MetadataTableRow-transientTitleRight-3JGw3 MetadataTableRow-transientTitle-3nwho",playButton:"MetadataTableRow-playButton-3bNBC PlayButton-playButton-3WX8X MetadataTableRow-button-1Y7ax",editButton:"MetadataTableRow-editButton-1hH1w MetadataTableRow-button-1Y7ax",moreButton:"MetadataTableRow-moreButton-2YKSy MetadataTableRow-button-1Y7ax",isSelected:"MetadataTableRow-isSelected-bNqXl",
selectButton:"MetadataTableRow-selectButton-11Ia9 SelectButton-selectButton-3Kbjm MetadataTableRow-button-1Y7ax",alternateItem:"MetadataTableRow-alternateItem-1-jtp MetadataTableRow-item-11DH-",playCell:"MetadataTableRow-playCell-ziDSk",actionsCell:"MetadataTableRow-actionsCell-1ax6E",libraryActionsCell:"MetadataTableRow-libraryActionsCell-2OOmP MetadataTableRow-actionsCell-1ax6E",selectCoverButton:"MetadataTableRow-selectCoverButton-3SFDJ",
equalizer:"MetadataTableRow-equalizer-35cH_ EqualizerIcon-equalizer-2SoFA"}},function(e,t,n){"use strict";function i(e){var t=e.cellIndex,n=e.cellX,i=e.cellY,a=e.cellWidth,o=e.cellHeight;return r()(l.a,{className:t%2?p.a.alternateLoadingItem:p.a.loadingItem,cellX:n,cellY:i,cellWidth:a,cellHeight:o},void 0,Object(c.default)("Loading..."))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(91)),c=n(3),u=n(154),d=n(4179),p=n.n(d);t.a=Object(u.a)(i)},function(e,t){e.exports={
loadingItem:"MetadataTableRowLoading-loadingItem-2g4_Q",alternateLoadingItem:"MetadataTableRowLoading-alternateLoadingItem-3U7fu MetadataTableRowLoading-loadingItem-2g4_Q"}},function(e,t){e.exports={metadataListPageContent:"MetadataListPageContent-metadataListPageContent-s56y9 PageContent-pageContent-16mK6",metadataListScroller:"MetadataListPageContent-metadataListScroller-1uFgY",hasGutter:"MetadataListPageContent-hasGutter-1EfyE",attribution:"MetadataListPageContent-attribution-3zY50"}
},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(p.a,d.a,Object(c.a)(),Object(u.a)(),function(e,t,n,i){return{server:e,provider:t,directories:i,selectedDirectory:s.a.find(i,function(e){if(!e.key)return!1;var t=new RegExp("^"+Object(l.a)(e.key)+"\\b");return n.containerKey.match(t)}),totalSize:n.totalSize}})}var a=n(11),r=n(4),o=(n.n(r),n(10)),s=n.n(o),l=n(231),c=n(132),u=n(409),d=n(39),p=n(53),h=n(4182);t.a=Object(a.connect)(i)(h.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(219)),f=n(242),v=n(131),g=n(747),m=n(151),y=n(117),b=n(47),I=n(3),S=n(165),M=n(488),D=n(585),C=(n(99),n(140),n(4196)),j=n.n(C),P=a()(S.a,{}),O=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onDirectoriesMenuButtonPress=function(e){a.setState({isDirectoriesMenuOpen:!a.state.isDirectoriesMenuOpen})},a.onDirectoriesMenuClose=function(){a.setState({
isDirectoriesMenuOpen:!1})},a.state={isDirectoriesMenuOpen:!1},a._directoriesMenuButtonID=Object(b.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.listTitle,o=e.listType,s=e.listSubtype,l=e.totalSize,c=e.server,u=e.provider,d=e.directories,p=e.selectedDirectory,b=e.isLibraryList,S=this.state.isDirectoriesMenuOpen;return a()(h.a,{},void 0,a()(m.a,{},void 0,p&&a()(v.a,{id:this._directoriesMenuButtonID,
title:p.isHomeDirectory?Object(I.default)("All Libraries"):p.title,hasMenu:d.length>1,isMenuOpen:S,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),p&&a()(D.a,{target:this._directoriesMenuButtonID,isOpen:S,server:c,provider:u,directories:d,selectedDirectory:p,onMenuClose:this.onDirectoriesMenuClose}),a()(v.a,{title:r,hasMenu:!1,isSelected:!0}),a()(f.a,{},void 0,l)),a()(y.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:o,listSubtype:s,
isLibraryList:b}),a()(g.a,{className:j.a.divider}),P))},t}(p.Component);t.a=O},function(e,t){e.exports={badge:"PageHeaderBadge-badge-2oDBg"}},function(e,t){e.exports={pageHeaderDivider:"PageHeaderDivider-pageHeaderDivider-1BKT-"}},function(e,t,n){"use strict";function i(e){return e===M.f?"plex-icon-toolbar-column-560":e===M.e||e===M.d?"plex-icon-toolbar-detail-560":"plex-icon-toolbar-grid-560"}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),
n(438)),v=n(20),g=n(56),m=n(47),y=(n(37),n(3)),b=n(26),I=(n(33),n(389)),S=n(24),M=n(68),D=n(4186),C=n(4187),j=n.n(C),P=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onSliderChange=function(e){var t=e.steppedValue;a.setState({sliderValue:t}),a._clearTimeout(),a._columnAdjustmentTimeoutID=setTimeout(function(){a.props.onColumnAdjustmentChange(-1*t)},a.props.columnAdjustmentTimeout)},a.onStylesPress=function(e){a.setState({
isStylesMenuOpen:!a.state.isStylesMenuOpen})},a.onStylesMenuClose=function(){a.setState({isStylesMenuOpen:!1})},a.onListStylePress=function(e){a.props.onListStyleChange(e)},a.state={sliderValue:-1*n.columnAdjustment,isStylesMenuOpen:!1},a._stylesButtonID=Object(m.a)(),a}return d()(t,e),t.prototype.componentWillReceiveProps=function(e){e.columnAdjustment!==this.props.columnAdjustment&&this.setState({sliderValue:-1*e.columnAdjustment})},t.prototype.componentWillUnmount=function(){
this._clearTimeout()},t.prototype._clearTimeout=function(){this._columnAdjustmentTimeoutID&&clearTimeout(this._columnAdjustmentTimeoutID)},t.prototype.render=function(){var e=this,t=this.props,n=(t.listType,t.listContext,t.selectedListStyle),a=t.allListStyles,o=this.state,s=o.sliderValue,l=o.isStylesMenuOpen,c=M.c,u=M.b,d=M.f,p=M.e,h=M.d,m=[{listStyle:c,title:Object(y.default)("Grid View")},{listStyle:u,title:Object(y.default)("Mosaic View")},{listStyle:d,title:Object(y.default)("List View")},{
listStyle:p,title:Object(y.default)("Summary View")},{listStyle:h,title:Object(y.default)("Summary View")}],C=M.h(n),P=M.g(a);return C||P?r()("div",{className:j.a.stylesContainer},void 0,C&&r()(I.a,{className:j.a.slider,label:Object(y.default)("Poster Size"),value:s,min:-1,max:2,stepSize:1,onChange:this.onSliderChange}),r()(v.a,{id:this._stylesButtonID,"data-qa-id":"toolbarView",className:P?j.a.stylesButtonWithArrow:j.a.stylesButton,"aria-label":Object(y.default)("Show List Styles"),
isDisabled:!P,onPress:this.onStylesPress},void 0,r()(b.a,{className:j.a.stylesIcon,name:i(n)}),P&&r()(f.a,{direction:l?S.a.UP:S.a.DOWN})),r()(g.a,{target:this._stylesButtonID,isOpen:l,onMenuClose:this.onStylesMenuClose},void 0,P&&m.map(function(t){var i=t.listStyle,o=t.title;return a.indexOf(i)>-1&&r()(D.a,{isSelected:n===i,title:o,listStyle:i,onListStylePress:e.onListStylePress},i)}))):null},t}(h.Component);P.defaultProps={selectedListStyle:M.c,allListStyles:[M.c],allListStyleActions:[],
columnAdjustmentTimeout:500},t.a=P},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=(n(68),function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onListStylePress=function(e){i.props.onListStylePress(i.props.listStyle),i.props.onPress(e)},a=n,l()(i,a)}return u()(t,e),
t.prototype.render=function(){var e=this.props,t=e.isSelected,n=e.title;return a()(h.a,{isSelected:t,onPress:this.onListStylePress},void 0,n)},t}(p.Component));t.a=f},function(e,t){e.exports={stylesContainer:"MetadataListStylesMenu-stylesContainer-jYQkc",slider:"MetadataListStylesMenu-slider-o88eP Slider-slider-2oLVT",stylesButton:"MetadataListStylesMenu-stylesButton-21zDb",stylesButtonWithArrow:"MetadataListStylesMenu-stylesButtonWithArrow-23qAV MetadataListStylesMenu-stylesButton-21zDb",
stylesIcon:"MetadataListStylesMenu-stylesIcon-1r4qe"}},function(e,t,n){"use strict";function i(e,t,n,i){return Object(v.a)(e,t,n,i)}function a(e,t,n,a){return i(e,t,n,a)&&!!t.features.playqueue}function r(e,t,n,a){return i(e,t,n,a)}function o(e,t,n,i){return s(e,t,n,i)}function s(e,t,n,i){return!(!e.isFullServer||!i.isFirstItemLibraryItem)}function l(e,t,n,i){return!!t.features.actions.addToCatalog}function c(e,t,n,i){return!!(e.isFullServer&&e.allowSync&&i.isFirstItemLibraryItem&&i.allowSync)}
function u(e,t,n,i){return!(!e.isFullOwnedServer||!e.transcoderVideo||!i.isFirstItemLibraryItem)}function d(e,t,n,i,a){var r=a||i.firstItemType||"mixed",o=m[r];return o?o.reduce(function(a,o){var s=g[o];return Object(f.a)(h.a.isFunction(s),"getMetadataListActionProps: Invalid action, "+o+", for "+r),a[o]=s(e,t,n,i),a},{}):{}}t.a=d;var p=n(10),h=n.n(p),f=n(37),v=n(1480),g={showPlayAll:i,showShuffle:a,showQueue:r,showAddToAlbum:o,showAddToPlaylist:s,showAddToCatalog:l,showSync:c,showOptimize:u
},m={mixed:[],movie:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],show:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showAddToCatalog","showSync","showOptimize"],season:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],episode:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],artist:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync"],
album:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync"],track:["showPlayAll","showShuffle","showAddToCatalog","showQueue","showAddToPlaylist","showSync"],photoalbum:["showPlayAll","showShuffle","showAddToAlbum","showSync"],photo:["showPlayAll","showShuffle","showAddToAlbum","showSync"],clip:["showPlayAll","showShuffle","showAddToPlaylist","showSync","showOptimize"],genre:["showAddToCatalog"]}},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(47),m=n(19),y=n(3),b=n(4190),I=n(398),S=n(1047),M=n(1055),D=n(1040),C=n(1041),j=n(744),P=n(1043),O=n(1044),T=n(1045),E=["showPlayAll","showShuffle","showAddToAlbum","showAddToPlaylist","showAddToCatalog","showSync"],w=["showOptimize","showQueue"],A=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onPlayShortcut=function(){
a.props.showPlayAll&&a.props.onPlayAllPress()},a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0})},a.onAddToPlaylistClose=function(){a.setState({isAddToPlaylistModalOpen:!1})},a.onActionsPress=function(e){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen})},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1})},a.state={isActionsMenuOpen:!1,isAddToPlaylistModalOpen:!1},a._moreButtonID=Object(g.a)(),a}return p()(t,e),
t.prototype.componentDidMount=function(){m.a.on("shortcut:playSelected",this.onPlayShortcut)},t.prototype.componentWillUnmount=function(){m.a.off("shortcut:playSelected",this.onPlayShortcut)},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.showPlayAll,l=e.showPlayAllOverflow,c=e.showShuffle,u=e.showShuffleOverflow,d=e.showAddToAlbum,p=e.showAddToAlbumOverflow,h=e.showAddToPlaylist,f=e.showAddToPlaylistOverflow,g=e.showAddToCatalog,m=e.showAddToCatalogOverflow,S=e.showSync,E=e.showSyncOverflow,w=e.showOverflow,A=e.isLibraryList,x=e.onPlayAllPress,N=e.onShufflePress,L=e.onSyncPress,k=this.state,R=k.isActionsMenuOpen,z=k.isAddToPlaylistModalOpen
;return o()("div",{className:t},void 0,s&&o()(P.a,{playLabel:Object(y.default)("Play All"),onPress:x}),c&&o()(O.a,{onPress:N}),d&&o()(D.a,{onPress:this.onAddToPlaylistPress}),h&&o()(C.a,{onPress:this.onAddToPlaylistPress}),g&&o()(M.a,{providerEntityID:i}),S&&o()(T.a,{onPress:L}),w&&o()(j.a,{id:this._moreButtonID,icon:"plex-icon-toolbar-more-560",label:Object(y.default)("More..."),isMenuOpen:R,onPress:this.onActionsPress}),v.a.createElement(b.a,a()({},this.props,{target:this._moreButtonID,
isOpen:R,showPlayAll:l,showShuffle:u,showAddToAlbum:p,showAddToPlaylist:f,showAddToCatalog:m,showSync:E,onMenuClose:this.onActionsMenuClose})),(d||h)&&o()(I.a,{serverEntityID:n,providerEntityID:i,metadataListEntityID:r,smart:A,isOpen:z,onModalClose:this.onAddToPlaylistClose}))},t}(f.Component);t.a=Object(S.a)(A,E,w)},function(e,t,n){"use strict";function i(e){var t=(e.target,e.isOpen,e.onMenuClose,s()(e,["target","isOpen","onMenuClose"]));return r()(d.a,{target:e.target,isOpen:e.isOpen,
onMenuClose:e.onMenuClose},void 0,u.a.createElement(p.a,t))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(1046),p=n(4191);t.a=i},function(e,t,n){"use strict";function i(e,t){return t===g.b?Object(v.default)("Add Podcast by URL"):Object(v.default)("Add to Catalog by URL")}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(112)),v=n(3),g=n(106),m=n(1652),y=n(398),b=function(e){function t(n,i){s()(this,t)
;var a=c()(this,e.call(this,n,i));return a.onAddToCatalogPress=function(){a.setState({isAddToCatalogModalOpen:!0}),a.props.onMenuDisable()},a.onAddToCatalogClose=function(){a.setState({isAddToCatalogModalOpen:!1}),a.props.onMenuEnable()},a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0}),a.props.onMenuDisable()},a.onAddToPlaylistClose=function(){a.setState({isAddToPlaylistModalOpen:!1}),a.props.onMenuEnable(),a.props.onPress()},a.state={isAddToCatalogModalOpen:!1,
isAddToPlaylistModalOpen:!1},a}return d()(t,e),t.prototype.createOnPress=function(e){var t=this;return function(){e(),t.props.onPress()}},t.prototype.render=function(){var e=this.props,t=this.state,n=t.isAddToCatalogModalOpen,a=t.isAddToPlaylistModalOpen;return r()("div",{},void 0,e.showPlayAll&&r()(f.a,{onPress:this.createOnPress(e.onPlayAllPress)},void 0,Object(v.default)("Play All")),e.showShuffle&&r()(f.a,{onPress:this.createOnPress(e.onShufflePress)
},void 0,Object(v.default)("Shuffle")),e.showQueue&&r()(f.a,{onPress:this.createOnPress(e.onPlayNextPress)},void 0,Object(v.default)("Play Next")),e.showQueue&&r()(f.a,{onPress:this.createOnPress(e.onAddToQueuePress)},void 0,Object(v.default)("Add to Queue")),e.showAddToPlaylist&&r()(f.a,{onPress:this.createOnPress(this.onAddToPlaylistPress)},void 0,Object(v.default)("Add to Playlist...")),e.showAddToCatalog&&r()(f.a,{onPress:this.onAddToCatalogPress
},void 0,i(e.listType,e.listSubtype)),e.showSync&&r()(f.a,{onPress:this.createOnPress(e.onSyncPress)},void 0,Object(v.default)("Sync...")),e.showOptimize&&r()(f.a,{onPress:this.createOnPress(e.onOptimizePress)},void 0,Object(v.default)("Optimize...")),r()(m.a,{providerEntityID:e.providerEntityID,isOpen:n,onModalClose:this.onAddToCatalogClose}),e.showAddToPlaylist&&r()(y.a,{isOpen:a,serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:e.metadataItemEntityID,
onModalClose:this.onAddToPlaylistClose}))},t}(h.Component);t.a=b},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.addToCatalogModal},function(e){return{isUpdating:e.isUpdating,hasError:!!e.error}})}function a(e,t){return{onClearError:function(){e(Object(s.c)())},onSubmit:function(n){e(Object(s.a)({providerEntityID:t.providerEntityID,data:n}))}}}var r=n(4),o=(n.n(r),n(58)),s=n(1053),l=n(4193),c=Object(o.a)(i,a)(l.a);t.a=c},function(e,t,n){
"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h()({isFileImport:!1,channelURL:"",fileURL:null},e)}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),n(20)),m=n(689),y=n(61),b=n(88),I=n(115),S=n(84),M=n(3),D=n(139),C=n(1653),j=n(217),P=n(114),O=n(98),T=n(1054),E=n(24),w=n(4195),A=n.n(w),x=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a))
;return r.onModalClose=function(){r.props.onClearError(),r.props.onModalClose()},r.onFileImportTogglePress=function(){r.setState(i({isFileImport:!r.state.isFileImport}))},r.onFileChange=function(e){var t=void 0;if(e.target.files&&e.target.files.length&&(t=e.target.files[0]),t){var n=window.URL.createObjectURL(t);r.setState({fileURL:n})}},r.onURLChange=function(e){r.setState({channelURL:e})},r.onSubmit=function(e){e.preventDefault(),r.props.onSubmit({channelURL:r.state.channelURL,
fileURL:r.state.fileURL})},r.state=i(),r}return d()(t,e),t.getDerivedStateFromProps=function(e,t){return t.isOpen!==!e.isOpen?i({isOpen:e.isOpen}):null},t.prototype.componentDidUpdate=function(e,t){this.props.isUpdating||!e.isUpdating||this.props.hasError||this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.isOpen,n=e.title,i=e.message,a=e.hasError,o=e.hasFileImportFeature,s=e.textInputLabel,l=e.fileInputButtonLabel,c=e.fileImportLabel,u=e.urlImportLabel,d=e.confirmLabel,p=e.confirmKind,h=e.isUpdating,f=e.isDirty,v=e.metricsPage,T=e.metricsProperties,w=e.onFormChange;return r()(P.a,{isOpen:t,metricsPage:v,metricsProperties:T,onModalClose:this.onModalClose},void 0,r()("form",{className:A.a.form,onSubmit:this.onSubmit,onChange:w},void 0,r()(O.a,{onModalClose:this.onModalClose
},void 0,r()(S.a,{},void 0,n),a?r()(j.a,{errorMessage:Object(M.default)("Something went wrong. Make sure the URL is correct and try again.")}):null,r()(y.a,{},void 0,r()("p",{},void 0,i),o?r()("p",{},void 0,r()(g.a,{kind:E.b.PRIMARY,onPress:this.onFileImportTogglePress},void 0,this.state.isFileImport?u||Object(M.default)("Import from a URL instead"):c||Object(M.default)("Import from a file instead"))):null,r()("div",{className:A.a.inputContainer},void 0,this.state.isFileImport?r()(C.a,{
name:"file",accept:".xml, .opml",buttonText:l||Object(M.default)("Choose File"),showFilename:!0,onChange:this.onFileChange}):r()(m.a,{name:"channelURL",value:this.state.URLValue,labelText:s,"data-autofocus":!0,onChange:this.onURLChange})),this.state.fileURL?r()("p",{className:A.a.fileNote},void 0,Object(M.default)("NOTE: Podcasts will appear as they're processed. This may take some time to complete")):null),r()(b.a,{},void 0,r()(I.a,{},void 0,r()(D.a,{type:"submit",kind:p,isDisabled:!f,
isSpinning:h},void 0,d||Object(M.default)("Continue")))))))},t}(v.Component);x.defaultProps={confirmKind:E.b.PRIMARY,hasFileImportFeature:!1},t.a=Object(T.a)(x,{isUpdatingPropName:"isUpdating",errorPropName:"error",clearDirtyOnChangePropName:"isOpen"})},function(e,t){e.exports={fileInput:"FileInput-fileInput-2okdn",filename:"FileInput-filename-3PPxw",noFilename:"FileInput-noFilename-sUIsd"}},function(e,t){e.exports={form:"AddToCatalogModal-form-3c_Mq",
inputContainer:"AddToCatalogModal-inputContainer-3V2vN",fileNote:"AddToCatalogModal-fileNote-25qjc"}},function(e,t){e.exports={divider:"MetadataListPageHeader-divider-1LM5c PageHeaderDivider-pageHeaderDivider-1BKT-"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(38),l=n(119),c=n(232),u=n(48),d=n(293),p=n(586),h=n(294),f=n(164),v=a()(f.a,{}),g=u.a.extend({component:function(e){var t=e.selectedServerID,n=e.params||{},i=Object(s.a)(c.SERVER,t);return a()(l.a,{
metricsContext:n.context},void 0,a()(o.a,{},void 0,v,a()(d.a,{machineIdentifier:e.selectedServerID},void 0,a()(h.a,{},void 0,a()(p.a,{machineIdentifier:t,serverEntityID:i,directoryKey:n.key})))))}});t.a=g},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(r.a)(),function(e,t){return t.directoryKey},function(e,t){return Object(o.a)(e,t)})}var a=n(4),r=(n.n(a),n(409)),o=n(4199);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=!1,i=void 0
;if(e&&e.length)if(t)for(var a=0;!i&&a<e.length;){var r=e[a++];n=r.hubKey===t,(n||r.key===t)&&(i=r)}else i=e[0],n=!!i.hubKey;return null==i&&null!=t&&(i={key:t}),{isHubKey:n,directory:i}}t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.showSpinner,a=e.isHubKey,o=e.isTimeline,l=e.isChannelsGrid,u=e.selectedDirectory,d=e.activeType,h=e.activeFilters,g=e.activeFilterLabel,m=e.activeSort,M=e.activeLimit,D=e.customFilter,C=e.typeKey,j=e.folderKey,P=e.folderTitle,O=e.parentFolderKey,T=e.parentFolderTitle,E=e.component,w=c()(e,["serverEntityID","providerEntityID","showSpinner","isHubKey","isTimeline","isChannelsGrid","selectedDirectory","activeType","activeFilters","activeFilterLabel","activeSort","activeLimit","customFilter","typeKey","folderKey","folderTitle","parentFolderKey","parentFolderTitle","component"])
;return i?I:u&&E?p.a.createElement(E,s()({serverEntityID:t,providerEntityID:n,selectedDirectory:u,activeType:d,activeSort:m},w)):u&&a?r()(v.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:u}):u&&o?r()(b.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:u}):u&&l?r()(f.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:u,activeFilters:h,activeFilterLabel:g}):u?r()(y.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:u,activeType:d,activeFilters:h,activeFilterLabel:g,
activeSort:m,activeLimit:M,customFilter:D,typeKey:C,folderKey:j,folderTitle:P||u.title,parentFolderKey:O,parentFolderTitle:T}):S}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=(n(100),n(31)),f=n(4201),v=n(4262),g=n(85),m=n(330),y=n(4283),b=n(4346),I=r()(g.a,{},void 0,r()(h.a,{})),S=r()(m.a,{});i.defaultProps={isTimeline:!1},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.ui.channelGridPage;return{providerEntityID:t.providerEntityID,
serverEntityID:t.serverEntityID,metadataListEntityID:t.metadataList,directoryKey:t.directoryKey}}function a(e,t){e(Object(s.b)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,directoryKey:t.directoryKey})),e(Object(s.g)())}var r=n(11),o=n(4),s=(n.n(o),n(243)),l=n(226),c=n(133),u=n(4205),d=Object(o.createStructuredSelector)({metadataListEntityID:function(e){return e.ui.channelGridPage.metadataList},directoryKey:Object(l.a)()}),p=Object(c.a)(u.a,i,a),h=Object(r.connect)(d)(p)
;t.a=h},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(18),o=n(358),s=a()({},o.a,{getPaginatedUrl:function(e){var t=this.get("beginsAt"),n=this.get("endsAt");if(null!=t||null!=n){var i={"endsAt>":t,"beginsAt<":n};return r.join(e,i)}return e},fetchRange:function(e){var t=a()({},e,{remove:!1});return e.prepend&&(t.at=0),this.set({beginsAt:e.start,endsAt:e.end}),this.fetch(t).promise()},repopulateRange:function(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],
this.get("populatedRange")),t=e.start,n=e.end;return this.set({beginsAt:t,endsAt:n}),this.abortPendingPopulate(),this.fetch()},updatePopulatedRange:function(){var e=this.get("beginsAt"),t=this.get("endsAt"),n=this.get("populatedRange"),i=n.start,a=n.end,r=void 0,o=void 0;this.getCollection().length?i?(r=Math.min(i,null==e?1/0:e),o=Math.max(a,null==t?-1/0:t)):(r=e||i,o=t||a):(r=0,o=0),this.set("populatedRange",{start:r,end:o,size:o-r}),this.set("isPopulated",o-r>0)}});t.a=s},function(e,t,n){
"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ProviderTagModel",context:["server","provider"],idAttribute:"id",rootPropertyName:"Directory",syncedAttrs:{id:a.a.integer,filter:a.a.string,tag:a.a.string,tagType:a.a.integer,tagValue:a.a.integer,thumb:a.a.string,channelCallSign:a.a.string,channelIdentifier:a.a.string}});t.a=r},function(e,t,n){"use strict";var i={CHANNEL:310};t.a=i},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(Object(D.a)(),C.a,function(e,t){
return e&&e.metadataItems?e.metadataItems.map(function(e){return t[e]}):[]})}function a(){return Object(y.createSelector)(function(e){return e.ui.channelGridPage},function(e,t){return t.activeFilters},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.channelsList,i=e.isChannelsListPopulated,a=e.isChannelsListPending,r=e.channelsListError;return!i||a||r?[]:t.find(function(e){return e.key===w})?n.filter(function(e){return!!e.tagValue}):n})}function r(){
return Object(y.createSelector)(function(e){return e.ui.channelGridPage},i(),Object(S.a)(),Object(j.a)(),Object(M.a)(),a(),function(e,t,n,i,a,r){return{columnTimes:e.columnTimes,metadataListEntityID:e.metadataList,providerIdentifier:i.identifier,providerMetricsIdentifier:i.metricsIdentifier,isRefreshing:!!a,channels:Object(E.a)(e.columnTimes,t,r),containerKey:n}})}var o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),
n(251)),I=n(243),S=n(1656),M=n(239),D=n(132),C=n(108),j=n(54),P=n(152),O=n(93),T=n(4206),E=n(1671),w="hdonly",A={dispatchInitMetadataList:I.c,dispatchResetStartTime:I.h,dispatchResetMetadataList:P.i,dispatchPopulateChannelPrograms:I.f,dispatchChangeQuickSearchSettings:O.changeQuickSearchSettings},x=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this.props.containerKey&&this._populate(),
this.props.providerIdentifier&&this._setSearchProviderIdentifier(this.props.providerIdentifier)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.providerIdentifier,i=t.containerKey,a=t.columnTimes,r=t.isRefreshing;i&&i!==e.containerKey||r!==e.isRefreshing?this._populate():Object(b.a)(a,e.columnTimes)||this.props.dispatchPopulateChannelPrograms(),n&&n!==e.providerIdentifier&&this._setSearchProviderIdentifier(n)},t.prototype.componentWillUnmount=function(){
var e=this.props.metadataListEntityID;this.props.dispatchResetMetadataList({metadataListEntityID:e}),this._setSearchProviderIdentifier(null)},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.containerKey,a=e.dispatchInitMetadataList,r=e.dispatchResetStartTime,o=e.dispatchPopulateChannelPrograms;r(),a({containerKey:i,serverEntityID:t,providerEntityID:n}),o()},t.prototype._setSearchProviderIdentifier=function(e){var t=this.props;(0,
t.dispatchChangeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:e,sectionID:null})},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitMetadataList,s()(e,["dispatchInitMetadataList"]));return g.a.createElement(T.a,t)},t}(v.Component);t.a=Object(m.connect)(r,A)(x)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.providerMetricsIdentifier,o=e.selectedDirectory,s=e.activeFilters,h=e.activeFilterLabel,f=e.channels;return r()(u.a,{metricsPage:c.c,metricsProperties:{identifier:a},scrollDirection:l.NONE},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:o,activeFilters:s,activeFilterLabel:h,totalSize:f.length}),r()(d.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,channels:f}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=(n(100),n(92)),d=n(4207),p=n(4246);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(251)),g=n(243),m=n(4208),y=Object(f.createSelector)(function(e){return e.ui.channelGridPage},function(e){return{columnTimes:e.columnTimes}}),b={dispatchSetViewportSize:g.j,dispatchResetStartTime:g.h},I=function(e){function t(n,i){
o()(this,t);var a=l()(this,e.call(this,n,i));return a._updateGrid=function(){(0,a.props.dispatchResetStartTime)(),a._resetTimeout()},a.onMeasure=function(e){var t=a.state,n=t.isMeasured,i=t.measuredSize;n&&Object(v.a)(i,e)||a.setState({isMeasured:!0,measuredSize:e},function(){a.setViewportSize(e)})},a._updateTimeout=null,a.state={isMeasured:!1,measuredSize:null},a}return u()(t,e),t.prototype.componentDidMount=function(){this._resetTimeout()},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.metadataListEntityID,i=t.columnTimes;n===e.metadataListEntityID&&Object(v.a)(i,e.columnTimes)||this._resetTimeout()},t.prototype.componentWillUnmount=function(){this._updateTimeout&&clearTimeout(this._updateTimeout)},t.prototype._resetTimeout=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.columnTimes;if(t.length){this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null);var n=Math.floor(Date.now()/1e3),i=7200
;if(t[0]<=n&&t[1]>=n){i=t.find(function(e){return n<e})-n}this._updateTimeout=setTimeout(this._updateGrid,1e3*i)}},t.prototype.setViewportSize=function(e){(0,this.props.dispatchSetViewportSize)(e),this._resetTimeout()},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.channels;return a()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,channels:r,onMeasure:this.onMeasure})},t}(p.Component)
;t.a=Object(h.connect)(y,b)(I)},function(e,t,n){"use strict";function i(e){var t=e.metadataListEntityID,n=e.serverEntityID,i=e.providerEntityID,a=e.channels,o=e.onMeasure;return r()(l.a,{className:d.a.measureContainer,onMeasure:o},void 0,r()(c.a,{className:d.a.gridContent,metadataListEntityID:t,serverEntityID:n,providerEntityID:i,channels:a}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(67)),c=n(1659),u=n(4245),d=n.n(u);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(91),v=n(216),g=n(57),m=n(251),y=n(28),b=n(3),I=n(31),S=n(490),M=n(587),D=n(208),C=n(332),j=n(1057),P=n(46),O=(n.n(P),n(4213)),T=n(4226),E=n(4240),w=n(4244),A=n.n(w),x=parseInt(P.channelGridRowHeight,10)-1,N=140,L={selectedMetadataItemEntityID:null,selectedMediaIndex:null,selectedMediaItemRow:-1,selectedMediaItemHeight:0},k=function(e){function t(n,i){o()(this,t)
;var r=l()(this,e.call(this,n,i));return r.getCellHeights=function(){var e=r.state,t=e.selectedMediaItemRow,n=e.selectedMediaItemHeight;return r.props.channels.map(function(e,i){var a=x;return i===t&&(a+=n||N),a})},r._updateProgress=function(){r.props.dispatchUpdateAiredProgress(),r._resetUpdateTimeout()},r.onMetadataItemPress=function(e,t,n){r.state.selectedMetadataItemEntityID!==e||r.state.selectedMediaIndex!==t?r.setState({selectedMetadataItemEntityID:e,selectedMediaIndex:t,
selectedMediaItemRow:n,selectedMediaItemHeight:N}):r.setState(L)},r.onDetailRowMeasure=function(e){var t=e.height;r.setState({selectedMediaItemHeight:t})},r.renderCell=function(e){var t=e.cellIndex,n=e.cellX,i=e.cellY,o=e.cellWidth,s=e.cellHeight,l=r.props,c=l.serverEntityID,u=l.providerEntityID,d=l.columnTimes,p=l.columnWidth,v=l.channels,g=l.isPending,m=r.state,y=m.selectedMetadataItemEntityID,b=m.selectedMediaIndex,I=m.selectedMediaItemRow,S=v[t];return S?a()(f.a,{className:A.a.gridRowCell,
cellX:n,cellY:i,cellWidth:o,cellHeight:s},t,a()(T.a,{className:A.a.gridRow,channel:S,serverEntityID:c,providerEntityID:u,selectedMetadataItemEntityID:y,selectedMediaIndex:b,columnTimes:d,rowIndex:t,columnWidth:p,isFetching:g,onMetadataItemPress:r.onMetadataItemPress}),t===I&&a()(h.a,{onMeasure:r.onDetailRowMeasure},void 0,a()(O.a,{serverEntityID:c,providerEntityID:u,metadataItemEntityID:y,mediaIndex:b}))):null},r._updateTimeout=null,r.state=L,r}return u()(t,e),
t.getDerivedStateFromProps=function(e,t){var n=t.selectedMediaIndex,i=t.selectedMetadataItemEntityID,a=t.selectedMediaItemRow,r=e.channels[a];return r&&0!==r.programs.length?r.programs.find(function(e){return e.mediaIndex===n&&e.metadataItemEntityID===i})?null:L:null},t.prototype.componentDidMount=function(){this._updateProgress()},t.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){
Object(m.a)(this.props.columnTimes,e.columnTimes)||this._updateProgress()},t.prototype._resetUpdateTimeout=function(){this._updateTimeout&&clearTimeout(this._updateTimeout);var e=6e4-Date.now()%6e4;this._updateTimeout=setTimeout(this._updateProgress,e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.viewportWidth,o=e.viewportHeight,s=e.columnTimes,l=e.channels,c=e.isEmpty,u=e.showSpinner,d=e.showError;return a()("div",{className:t
},void 0,!u&&!d&&!c&&a()(E.a,{className:A.a.timeline,columnTimes:s}),d&&a()(C.a,{className:A.a.innerEmptyPage,title:Object(b.default)("There was an error loading channels")}),u&&a()(D.a,{className:A.a.innerEmptyPage},void 0,a()(I.a,{label:Object(b.default)("Loading channels")})),!u&&!d&&c&&a()(M.a,{serverEntityID:n,providerEntityID:i}),!u&&!d&&!c&&a()(v.a,{className:A.a.gridContent,scrollerClassName:A.a.gridInnerContent,keyPropName:"identifier",items:l,scrollDirection:g.VERTICAL,viewportWidth:r,
viewportHeight:o,size:l.length,layout:Object(j.a)({getCellHeights:this.getCellHeights}),cellRenderer:this.renderCell,onMeasure:this.onScrollerMeasure},void 0,a()(S.a,{className:A.a.attribution,providerEntityID:i})))},t}(p.Component);k.defaultProps={className:A.a.gridContainer,columnTimes:[]},t.a=k},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.style,i=e.provider;return r()("div",{className:t,style:n},void 0,Object(l.default)("Powered by {provider}",{provider:i}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(4211),u=n.n(c);i.defaultProps={className:u.a.attribution,provider:"Gracenote\xae"},t.a=i},function(e,t){e.exports={attribution:"ProgramGuideAttribution-attribution-3Ca_I"}},function(e,t,n){"use strict";function i(e){var t=e.machineIdentifier;if(e.isRefreshing)return r()(u.a,{icon:"plex-icon-shows-broadcast-560",title:Object(c.default)("We're now building your Guide"),
description:Object(c.default)("Hang tight while we download all the data for what's on")});var n=Object(p.a)(t,"manage","dvr");return r()(u.a,{icon:"plex-icon-shows-broadcast-560",title:Object(c.default)("The Guide is empty"),description:Object(c.default)("Please verify your channel mappings and refresh the Guide")},void 0,r()(l.a,{to:n,kind:d.b.PRIMARY},void 0,Object(c.default)("Go to DVR Settings")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(3),u=n(208),d=n(24),p=n(197)
;t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.mediaIndex},Object(s.a)(),Object(c.a)(),Object(l.a)(o.b.SUBSCRIBE),function(e,t,n,i){var a=t.type,r=t.summary,o=t.grandparentThumb,s=t.thumb,l=t.contentRating,c=t.Media[e],u=c.beginsAt,d=c.endsAt,p=c.channelTitle,h=c.channelIdentifier;return{type:a,summary:r,thumb:o||s,contentRating:l,beginsAt:u,endsAt:d,channelIdentifier:h,channelTitle:p,showPlay:n,showRecord:!!i}})}
var a=n(11),r=n(4),o=(n.n(r),n(64)),s=n(21),l=n(584),c=n(4214),u=n(4215);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.mediaIndex},Object(r.a)(),s.a,o.a,l.a,function(e,t,n,i,a){var r=Math.floor(Date.now()/1e3),o=t.Media[e];return!!o&&(Object(c.j)(n,i,a,t)&&o.beginsAt<=r&&o.endsAt>r)})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(204),c=n(326)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.metadataItemEntityID,i=e.serverEntityID,a=e.providerEntityID,o=e.mediaIndex,s=e.type,f=e.summary,m=e.thumb,y=e.contentRating,b=e.beginsAt,I=e.endsAt,S=e.channelIdentifier,M=e.channelTitle,D=e.showPlay,C=e.showRecord;return r()("div",{className:t},void 0,r()(l.a,{className:v.a.poster,serverEntityID:i,providerEntityID:a,component:c.a,type:s,width:g,height:Object(u.d)(g,s),url:m}),r()("div",{className:v.a.preplayContainer},void 0,r()(p.a,{type:s,serverEntityID:i,
providerEntityID:a,metadataItemEntityID:n}),r()(d.a,{beginsAt:b,endsAt:I,channelTitle:M,contentRating:y}),r()(h.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:n,channelIdentifier:S,mediaIndex:o,showPlay:D,showRecord:C}),r()("p",{},void 0,f)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(327)),c=n(236),u=n(130),d=n(4216),p=n(4218),h=n(1660),f=n(4225),v=n.n(f),g=80;i.defaultProps={className:v.a.container},t.a=i},function(e,t,n){"use strict";function i(e,t,n){
var i=Math.floor(Date.now()/1e3),a="",r="";if(i>=e&&i<=t)a=Object(f.default)("Now on {channel}",{channel:n}),r=Object(d.a)(t-i);else{var o=Object(p.a)(e,t,{separator:" - "});a=Object(f.default)("{timeRange} on {channel}",{timeRange:o,channel:n}),r=Object(u.a)(1e3*(t-e))}return{airTime:a,duration:r}}function a(e){var t=e.beginsAt,n=e.endsAt,a=e.channelTitle,r=e.contentRating,s=i(t,n,a),l=s.airTime,c=s.duration;return o()("div",{className:g.a.container},void 0,l,m,c,o()("div",{
className:g.a.contentRating},void 0,Object(h.a)(r)))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(73)),u=n(308),d=n(370),p=n(574),h=n(1009),f=n(3),v=n(4217),g=n.n(v),m=o()(c.b,{});t.a=a},function(e,t){e.exports={container:"ChannelsGridDetailRowAirTime-container-Xxl-I",contentRating:"ChannelsGridDetailRowAirTime-contentRating-3x_JJ"}},function(e,t,n){"use strict";function i(e){var t=void 0;switch(e){case c.f:t=[p.a,h.a];break;case c.k:t=[p.a,d.a];break;case c.e:t=[u.a,d.a];break
;default:t=[p.a]}return t}function a(e){var t=e.type,n=e.metadataItemEntityID,a=e.serverEntityID,r=e.providerEntityID,s=i(t);return o()("div",{className:v.a.titleContainer},void 0,s.map(function(e,t){var i=0===t?v.a.primaryTitle:v.a.secondaryTitle;return o()(e,{className:i,metadataItemEntityID:n,serverEntityID:a,providerEntityID:r},t)}))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(27)),u=n(287),d=n(329),p=n(716),h=n(400),f=n(4219),v=n.n(f);t.a=a},function(e,t){e.exports={
titleContainer:"ChannelsGridDetailRowTitle-titleContainer-2gAFR",primaryTitle:"ChannelsGridDetailRowTitle-primaryTitle-1SX7s",secondaryTitle:"ChannelsGridDetailRowTitle-secondaryTitle-2HfyQ"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(289)),f=n(4221),v=n(4223),g=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},
a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:!1},a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.type,i=e.title,r=e.subscriptionType,o=e.isCompact,s=e.isSubscribed,l=e.showPlay,c=e.showRecord,u=e.serverEntityID,d=e.providerEntityID,p=e.metadataItemEntityID,g=e.dispatchStartLiveTVPlayback,m=this.state.isSubscribeModalOpen,y=o?f.a:v.a;return a()("span",{className:t},void 0,a()(y,{title:i,
subscriptionType:r,isSubscribed:s,showPlay:l,showRecord:c,onPlayPress:g,onRecordPress:this.onRecordPress}),a()(h.a,{serverEntityID:u,providerEntityID:d,metadataItemEntityID:p,isOpen:m,subscriptionType:n,onModalClose:this.onSubscribeModalClose}))},t}(p.Component);t.a=g},function(e,t,n){"use strict";function i(e){var t=e.title,n=e.showPlay,i=e.showRecord,a=e.onPlayPress,o=e.onRecordPress;return r()("div",{className:d.a.actions},void 0,n&&r()(l.a,{className:d.a.playButton,title:t,tabIndex:"-1",
onPress:a}),i&&r()(c.a,{className:d.a.recordButton,title:t,tabIndex:"-1",onPress:o}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(222)),c=n(705),u=n(4222),d=n.n(u);t.a=i},function(e,t){e.exports={actions:"ChannelsGridMetadataCellButtons-actions-250Km",button:"ChannelsGridMetadataCellButtons-button-9hRMc",playButton:"ChannelsGridMetadataCellButtons-playButton-3vgI5 PlayButton-playButton-3WX8X ChannelsGridMetadataCellButtons-button-9hRMc",
recordButton:"ChannelsGridMetadataCellButtons-recordButton-1bSu6 RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA ChannelsGridMetadataCellButtons-button-9hRMc"}},function(e,t,n){"use strict";function i(e){var t=e.subscriptionType,n=e.isSubscribed,i=e.showPlay,a=e.showRecord,o=e.onPlayPress,s=e.onRecordPress,f=n?Object(d.default)("Recording Scheduled"):Object(d.default)("Record");return r()("span",{},void 0,i&&r()(l.a,{className:v.a.playButton,
kind:c.DARK,size:u.SMALL,onPress:o},void 0,r()(p.a,{className:v.a.icon,name:"plex-icon-play-560"}),Object(d.default)("Watch Now")),a&&r()(l.a,{className:v.a.recordButton,kind:c.DARK,size:u.SMALL,onPress:s},void 0,r()(h.a,{className:v.a.icon,type:t}),f))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(51),u=n(52),d=n(3),p=n(26),h=n(575),f=n(4224),v=n.n(f);t.a=i},function(e,t){e.exports={playButton:"ChannelsGridMetadataDetailButtons-playButton-2liy7",
recordButton:"ChannelsGridMetadataDetailButtons-recordButton-17JFU ChannelsGridMetadataDetailButtons-playButton-2liy7",recordingIcon:"ChannelsGridMetadataDetailButtons-recordingIcon-1R0yT",icon:"ChannelsGridMetadataDetailButtons-icon-1-luT"}},function(e,t){e.exports={container:"ChannelsGridDetailRow-container-3CcnP",preplayContainer:"ChannelsGridDetailRow-preplayContainer-2ECfQ",poster:"ChannelsGridDetailRow-poster-3A0Rg PosterCard-card-1rN9g"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(4227)),f=n(4233),v=n(4236),g=n(4239),m=n.n(g),y=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMouseEnter=function(){a.setState({isHovered:!0})},a.onMouseLeave=function(){a.setState({isHovered:!1})},a.state={isHovered:!1},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.selectedMetadataItemEntityID,o=e.selectedMediaIndex,s=e.channel,l=e.rowIndex,c=e.columnWidth,u=e.columnTimes,d=e.isFetching,p=e.onMetadataItemPress,g=this.state.isHovered,y=u[0],b=u[u.length-1],I=u[1]-u[0];return a()("div",{className:t,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},void 0,a()(v.a,{className:m.a.title,serverEntityID:n,providerEntityID:i,channel:s,showPlayButton:g}),a()("div",{
className:m.a.programsContainer},void 0,a()(f.a,{className:m.a.progress}),s.programs.map(function(e,t){var u=Math.max(e.beginsAt,y),f=Math.min(e.endsAt,b),v=f-u,g=v/I*c,S=r===e.metadataItemEntityID&&o===e.mediaIndex;return a()(h.a,{width:g,className:m.a.program,beginsAt:e.beginsAt,endsAt:e.endsAt,metadataItemEntityID:e.metadataItemEntityID,mediaIndex:e.mediaIndex,serverEntityID:n,providerEntityID:i,channelIdentifier:s.identifier,rowIndex:l,isSelected:S,showLoader:d&&!e.metadataItemEntityID,
onPress:p},t)})))},t}(p.Component);y.defaultProps={className:m.a.container},t.a=y},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.mediaIndex},Object(d.a)(),function(e,t){return t?t.Media[e]:null})}function a(){return Object(c.createSelector)(function(e,t){return t.beginsAt},function(e,t){return t.endsAt},function(e,t){var n=Math.floor(Date.now()/1e3);return{isOnAir:n>=e&&n<=t,isFinishedAiring:n>=t}})}function r(){
return Object(c.createSelector)(Object(d.a)(),i(),a(),Object(p.a)(u.b.SUBSCRIBE),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2],i=arguments[3],a=e.type,r=e.grandparentTitle,o=e.title,l=e.subscriptionID,c=e.subscriptionType,u=e.grandparentSubscriptionID,d=e.grandparentSubscriptionType,p=e.index,h=e.originallyAvailableAt,f=!!t&&t.premiere,v=null!=l||null!=u,g=null==p&&!!h,m=!0;if(g){var y=new Date,b=new Date(h)
;m=y.getDate()!==b.getUTCDate()||y.getMonth()!==b.getUTCMonth()||y.getFullYear()!==b.getUTCFullYear()}return s()({},n,{type:a,title:r||o,subscriptionType:c||d,showEpisodeTitle:m,isSubscribed:v,premiere:f,canRecord:!!i})})}var o=n(6),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(64)),d=n(21),p=n(584),h=n(4228);t.a=Object(l.connect)(r)(h.a)},function(e,t,n){"use strict";function i(e,t){var n=null;switch(e){case m.f:n=I.a;break;case m.k:case m.e:t&&(n=b.a)}return n}
var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(390)),v=n(20),g=n(3),m=n(27),y=n(575),b=n(1008),I=n(400),S=n(1058),M=n(4230),D=n(1660),C=n(4232),j=n.n(C),P=r()(M.a,{}),O=r()(M.a,{}),T=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onCellPress=function(){var e=i.props,t=e.metadataItemEntityID,n=e.mediaIndex,a=e.rowIndex
;(0,e.onPress)(t,n,a)},a=n,c()(i,a)}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.metadataItemEntityID,a=e.serverEntityID,o=e.providerEntityID,s=e.channelIdentifier,l=e.mediaIndex,c=e.width,u=e.type,d=e.subscriptionType,p=e.title,h=e.premiere,m=e.canRecord,b=e.showEpisodeTitle,I=e.showLoader,M=e.isOnAir,C=e.isFinishedAiring,T=e.isSelected,E=e.isSubscribed;if(!n)return r()("div",{className:(t||"")+" "+(M&&j.a.onAir||"")+" "+(C&&j.a.finishedAiring||""||""),
style:{width:c+"px"}},void 0,I&&r()("div",{className:j.a.placeholderContainer},void 0,P,O),!I&&r()("div",{className:j.a.content},void 0,Object(g.default)("Unknown Airing")));var w=i(u,b);return r()("div",{className:(t||"")+" "+(M&&j.a.onAir||"")+" "+(T&&j.a.selected||"")+" "+((M||m)&&j.a.hoverable||"")+" "+(C&&j.a.finishedAiring||""||""),style:{width:c+"px"}},void 0,r()("div",{className:j.a.content},void 0,r()(v.a,{className:j.a.underlay,onPress:this.onCellPress
}),r()("div",{},void 0,p),r()("div",{className:j.a.actionsContainer},void 0,r()("div",{className:j.a.subTitleContainer},void 0,w&&r()(w,{className:j.a.subTitle,serverEntityID:a,providerEntityID:o,metadataItemEntityID:n}),h&&r()(S.a,{className:j.a.premiereBadge}),E&&r()(f.a,{className:j.a.subscriptionBadge},void 0,r()(y.a,{type:d}))),r()(D.a,{className:j.a.actions,isCompact:!0,serverEntityID:a,providerEntityID:o,metadataItemEntityID:n,channelIdentifier:s,mediaIndex:l,showRecord:m,showPlay:M}))))
},t}(h.Component);T.defaultProps={className:j.a.container},t.a=T},function(e,t){e.exports={badge:"PremiereAiringBadge-badge-hAmdn"}},function(e,t,n){"use strict";function i(){return y+Math.random()*(m-y)}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(46)),v=(n.n(f),n(4231)),g=n.n(v),m=parseInt(f.channelGridChannelColumnWidth,10),y=.3*m,b=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a));return r.state={
placeholderWidth:i()},r}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=this.state.placeholderWidth;return r()("div",{className:t,style:{width:i+"px"}},void 0,r()("div",{className:g.a.bar},void 0,n))},t}(h.Component);b.defaultProps={className:g.a.container},t.a=b},function(e,t){e.exports={container:"ChannelsGridPlaceholder-container-t1lz5",bar:"ChannelsGridPlaceholder-bar-1g_DP",shimmer:"ChannelsGridPlaceholder-shimmer-18AjF"}},function(e,t){
e.exports={container:"ChannelsGridMetadataItemCell-container-2NM2z",selected:"ChannelsGridMetadataItemCell-selected-3K64H",hoverable:"ChannelsGridMetadataItemCell-hoverable-Tm-6m",subTitleContainer:"ChannelsGridMetadataItemCell-subTitleContainer-2Izpk",actions:"ChannelsGridMetadataItemCell-actions-3Owae",onAir:"ChannelsGridMetadataItemCell-onAir-1TBno",finishedAiring:"ChannelsGridMetadataItemCell-finishedAiring-1NTjL",underlay:"ChannelsGridMetadataItemCell-underlay-Qhcti",
content:"ChannelsGridMetadataItemCell-content-3-Y3Y",actionsContainer:"ChannelsGridMetadataItemCell-actionsContainer-_6ZyY",subTitle:"ChannelsGridMetadataItemCell-subTitle-iaQsk",premiereBadge:"ChannelsGridMetadataItemCell-premiereBadge-1Qqk6 PremiereAiringBadge-badge-hAmdn",subscriptionBadge:"ChannelsGridMetadataItemCell-subscriptionBadge-dFSz1",placeholderContainer:"ChannelsGridMetadataItemCell-placeholderContainer-2681u"}},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(function(e){return e.ui.channelGridPage},function(e,t){var n=e.airedProgress,i=e.columnWidth;return{width:n/100*e.visibleColumns*i}})}var a=n(11),r=n(4),o=(n.n(r),n(4234));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.width,i=e.isActive,a={width:n+"px"};return r()("div",{className:t},void 0,r()("div",{className:(c.a.fill||"")+" "+(n>0&&c.a.indicator||"")+" "+(i&&c.a.active||""||""),style:a}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4235)),c=n.n(l);t.a=i},function(e,t){e.exports={fill:"ChannelsGridProgress-fill-hY0DO",indicator:"ChannelsGridProgress-indicator-2xDxP",active:"ChannelsGridProgress-active-1lw2k"}},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID,i=t.providerEntityID,a=t.channel;return{dispatchStartLiveTVPlayback:function(){e(Object(r.l)({serverEntityID:n,providerEntityID:i,options:{type:o.d,identifier:a.identifier}}))}}}
var a=n(11),r=n(206),o=n(63),s=n(4237);t.a=Object(a.connect)(null,i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.channel,i=e.showPlayButton,a=e.dispatchStartLiveTVPlayback,o=n.thumb?r()(l.a,{src:n.thumb,className:h.a.thumbnail,backgroundSize:"contain",background:!0,width:f,height:v}):r()("div",{className:h.a.channelCallSignText,title:n.callSign},void 0,n.callSign),s=void 0;return s=i?r()("div",{className:h.a.playButtonContainer,
title:Object(c.default)("Play Channel {channel}",{channel:n.identifier})},void 0,r()(u.a,{className:h.a.playButton,title:Object(c.default)("Channel {channel}",{channel:n.identifier}),tabIndex:"-1",onPress:a})):r()("span",{className:h.a.number},void 0,n.identifier),r()("div",{className:t},void 0,r()("div",{className:h.a.numberContainer},void 0,s),r()("div",{className:h.a.thumbnailContainer},void 0,o))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(184)),c=n(3),u=n(222),d=n(46),p=(n.n(d),
n(4238)),h=n.n(p),f=parseInt(d.channelGridChannelIconWidth,10),v=parseInt(d.channelGridRowHeight,10);i.defaultProps={className:h.a.container},t.a=i},function(e,t){e.exports={container:"ChannelsGridRowTitle-container-2k8lv",numberContainer:"ChannelsGridRowTitle-numberContainer-1NXm9",thumbnailContainer:"ChannelsGridRowTitle-thumbnailContainer-3ThS3",thumbnail:"ChannelsGridRowTitle-thumbnail-1At_s",channelCallSignText:"ChannelsGridRowTitle-channelCallSignText-3ehTI",
number:"ChannelsGridRowTitle-number-2yURd",playButtonContainer:"ChannelsGridRowTitle-playButtonContainer-30FVK",playButton:"ChannelsGridRowTitle-playButton-1Dp3V PlayButton-playButton-3WX8X"}},function(e,t){e.exports={container:"ChannelsGridRow-container-2sCkC",title:"ChannelsGridRow-title-3AzG0 ChannelsGridRowTitle-container-2k8lv",programsContainer:"ChannelsGridRow-programsContainer-TF5JS",program:"ChannelsGridRow-program-1x1gR ChannelsGridMetadataItemCell-container-2NM2z",
progress:"ChannelsGridRow-progress-2ZqEd"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.channelGridPage},s.a,function(e,t){var n=t.timeFormat,i=e.startTime,a=e.columnWidth,r=new Date-u,o=new Date(1e3*i),s=o>r;return Object(l.a)(i)&&(o=null),{timeFormat:n,startDate:o,columnWidth:a,enablePrevious:s,enableNext:!0}})}var a=n(11),r=n(4),o=(n.n(r),n(243)),s=n(72),l=n(313),c=n(4241),u=108e5,d={dispatchNext:o.e,dispatchPrevious:o.d}
;t.a=Object(a.connect)(i,d)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.enablePrevious,i=e.enableNext,a=e.startDate,o=e.columnTimes,s=e.timeFormat,p=e.columnWidth,f=e.dispatchPrevious,v=e.dispatchNext;return r()("div",{className:t},void 0,r()("div",{className:h.a.dayContainer},void 0,a&&Object(l.default)(a,"EEEE, LLL dd")),r()("div",{className:h.a.labelContainer},void 0,o.map(function(e,t){return r()("div",{className:h.a.label,style:{width:p+"px"}
},t,Object(c.a)(1e3*e,s))})),r()("div",{className:h.a.navigationButtons},void 0,r()(d.a,{className:h.a.navigationButton,icon:"plex-icon-hub-prev-560",title:Object(u.default)("Previous"),isDisabled:!n,onPress:f}),r()(d.a,{className:h.a.navigationButton,icon:"plex-icon-hub-next-560",title:Object(u.default)("Next"),isDisabled:!i,onPress:v})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(305)),c=n(4242),u=n(3),d=n(283),p=n(4243),h=n.n(p);i.defaultProps={className:h.a.container},t.a=i
},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HH:mm:ss";return e?Object(a.a)(e,t):""}var a=n(170);t.a=i},function(e,t){e.exports={container:"ChannelsGridTimeline-container-3dKF2",dayContainer:"ChannelsGridTimeline-dayContainer-22Vll",labelContainer:"ChannelsGridTimeline-labelContainer-3JCH3",label:"ChannelsGridTimeline-label-368pi",navigationButtons:"ChannelsGridTimeline-navigationButtons-3GtRv",
navigationButton:"ChannelsGridTimeline-navigationButton-2oRTO"}},function(e,t){e.exports={gridContainer:"ChannelsGrid-gridContainer-u_bmj",gridRowCell:"ChannelsGrid-gridRowCell-3P8MT ChannelsGrid-gridContainer-u_bmj",gridRow:"ChannelsGrid-gridRow-2odI0 ChannelsGridRow-container-2sCkC",gridContent:"ChannelsGrid-gridContent-3Vhy_",gridInnerContent:"ChannelsGrid-gridInnerContent-27SAI VirtualListScroller-scroller-3aWqh",timeline:"ChannelsGrid-timeline-ctXXx ChannelsGridTimeline-container-3dKF2",
innerEmptyPage:"ChannelsGrid-innerEmptyPage-18fOT InnerEmptyPage-innerEmptyPage-1MHKZ EmptyPage-emptyPage-2AM9u",attribution:"ChannelsGrid-attribution-1KnJ7 ProgramGuideAttribution-attribution-3Ca_I"}},function(e,t){e.exports={measureContainer:"ChannelsGridPageContent-measureContainer-86FCP",gridContent:"ChannelsGridPageContent-gridContent-1qxiR ChannelsGrid-gridContainer-u_bmj"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.channelGridPage
},Object(u.a)(),c.a,Object(l.a)(),Object(s.a)(),Object(o.a)(),function(e,t,n,i,a,r){return{server:t,provider:n,directories:i,datePickerTitle:Object(p.a)(1e3*e.startTime),showEPGActivity:!!a,selectedFilterTitle:r}})}var a=n(11),r=n(4),o=(n.n(r),n(1661)),s=n(239),l=n(409),c=n(39),u=n(35),d=n(4247),p=n(1059);t.a=Object(a.connect)(i)(d.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(219)),f=n(242),v=n(131),g=n(491),m=n(151),y=n(117),b=n(47),I=n(28),S=(n(100),n(748)),M=(n(99),n(140),n(585)),D=n(1663),C=n(1666),j=a()(y.a,{}),P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onDirectoriesMenuButtonPress=function(e){a.setState({isDirectoriesMenuOpen:!a.state.isDirectoriesMenuOpen})},a.onDirectoriesMenuClose=function(){a.setState({isDirectoriesMenuOpen:!1})},a.onDatePickerMenuButtonPress=function(e){a.setState({
isDatePickerMenuOpen:!a.state.isDatePickerMenuOpen})},a.onDatePickerMenuClose=function(){a.setState({isDatePickerMenuOpen:!1})},a.onFilterMenuButtonPress=function(e){a.setState({isFilterMenuOpen:!a.state.isFilterMenuOpen})},a.onFilterMenuClose=function(){a.setState({isFilterMenuOpen:!1})},a.state={isDirectoriesMenuOpen:!1,isDatePickerMenuOpen:!1,isFilterMenuOpen:!1},a._directoriesMenuButtonID=Object(b.a)(),a._datePickerMenuButtonID=Object(b.a)(),a._filterMenuButtonID=Object(b.a)(),a}
return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.server,n=e.provider,i=e.serverEntityID,r=e.providerEntityID,o=e.directories,s=e.selectedDirectory,l=e.selectedFilterTitle,c=e.datePickerTitle,u=e.showEPGActivity,d=e.activeFilters,p=e.activeFilterLabel,y=e.totalSize,b=this.state,I=b.isDirectoriesMenuOpen,P=b.isDatePickerMenuOpen,O=b.isFilterMenuOpen;return a()(h.a,{},void 0,a()(m.a,{},void 0,a()(v.a,{
id:this._directoriesMenuButtonID,"data-qa-id":"directoriesMenuButton",title:s.title,hasMenu:o.length>1,isMenuOpen:I,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),a()(M.a,{target:this._directoriesMenuButtonID,isOpen:I,server:t,provider:n,directories:o,selectedDirectory:s,onMenuClose:this.onDirectoriesMenuClose}),a()(v.a,{id:this._datePickerMenuButtonID,title:c,hasMenu:!0,isMenuOpen:P,onPress:this.onDatePickerMenuButtonPress}),a()(D.a,{target:this._datePickerMenuButtonID,isOpen:P,
onMenuClose:this.onDatePickerMenuClose}),a()(v.a,{id:this._filterMenuButtonID,title:l,hasMenu:!0,isMenuOpen:O,onPress:this.onFilterMenuButtonPress}),a()(C.a,{target:this._filterMenuButtonID,isOpen:O,activeFilters:d,activeFilterLabel:p,onMenuClose:this.onFilterMenuClose}),a()(f.a,{},void 0,y)),u&&a()(g.a,{},void 0,a()(S.a,{serverEntityID:i,providerEntityID:r})),u&&j)},t}(p.Component);t.a=P},function(e,t){e.exports={pageHeaderCenter:"PageHeaderCenter-pageHeaderCenter-XZlGC"}},function(e,t,n){
"use strict";function i(e){var t=e.className,n=e.isEPGRefreshing,i=e.epgActivityProgress,a=e.epgActivityTitle;return n?r()("span",{className:t},void 0,a," (",i,"%)",r()(l.a,{className:d.a.refreshingSpinner,size:c.e.SMALL})):null}t.a=i;var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(31)),c=n(24),u=n(4250),d=n.n(u)},function(e,t){e.exports={refreshingSpinner:"ProgramGuideActivityStatus-refreshingSpinner-30DBl"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(56)),f=n(439),v=n(24),g=n(4252),m=n(4253),y=n(4256),b=n.n(y),I={scrollDirection:v.d.NONE,className:b.a.listContainer},S=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSelectDate=function(e){a.setState({showTimeOptions:!0,activeDateOption:e})},a.onSelectNow=function(){var e=Math.floor(Date.now()/1e3);a.onSelectTime({value:e})},a.onSelectTime=function(e){
a.setState({showTimeOptions:!1}),a.props.dispatchSetStartTime(e.value),a.props.onMenuClose()},a.onHideOptions=function(e){a.setState({showTimeOptions:!1})},a.state={showTimeOptions:!1,activeDateOption:n.dateOptions.find(function(e){return e.isSelected})},a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.target,n=e.isOpen,i=e.dateOptions,r=e.onMenuClose,o=this.state,s=o.showTimeOptions,l=o.activeDateOption,c=(b.a.list||"")+" "+(!!s&&b.a.showTimeOptions||""||"");return a()(h.a,{
target:t,isOpen:n,size:v.e.MEDIUM,scrollerProps:I,onMenuClose:Object(f.a)(this.onHideOptions,r)},void 0,a()(g.a,{className:c,dateOptions:i,onSelectDate:this.onSelectDate,onSelectNow:this.onSelectNow}),a()(m.a,{className:c,selectedDateOption:l,onDeselectDateOption:this.onHideOptions,onSelectTime:this.onSelectTime}))},t}(p.Component);t.a=S},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.dateOptions,i=e.onSelectDate,a=e.onSelectNow;return r()(l.a,{className:t,autoScroll:!0
},void 0,r()(d.a,{onPress:a},void 0,Object(u.default)("Now")),h,n.map(function(e,t){return r()(p.a,{option:e,isSelected:e.isSelected,onPress:i},t,e.title)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(284),u=n(3),d=n(103),p=n(1664),h=r()(c.a,{});t.a=i},function(e,t,n){"use strict";function i(e,t){return Object(u.a)(Object(c.a)(new Date(e),t))}function a(){var e=[{startHour:0,title:Object(h.default)("Midnight")},{startHour:4,title:Object(h.default)("Early Morning")},{
startHour:8,title:Object(h.default)("Morning")},{startHour:12,title:Object(h.default)("Afternoon")},{startHour:17,title:Object(h.default)("Primetime")},{startHour:22,title:Object(h.default)("Late Night")}];return Object(p.createSelector)(function(e){return e.ui.channelGridPage},function(e,t){return t.selectedDateOption},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n)return{timeOptions:[]};var a=Object(o.a)(t.startTime),c=Object(o.a)(n.value),u=new Date;return{
timeOptions:e.map(function(t,n){var o=e[n+1],d=i(c,t.startHour),p=i(c,o?o.startHour:24),f=Object(l.a)(u,p),v=Object(r.a)(a,d)>=0&&Object(r.a)(a,p)<0,g=Object(l.a)(d,u)?Object(s.a)(u):Object(s.a)(d);return{title:Object(r.a)(u,d)>=0&&Object(r.a)(u,p)<0?Object(h.default)("Now ({timeSlotTitle})",{timeSlotTitle:t.title}):t.title,value:g,isEnabled:f,isSelected:v}})}})}var r=n(588),o=n(81),s=n(147),l=n(943),c=n(1665),u=n(1060),d=n(11),p=n(4),h=(n.n(p),n(3)),f=n(4254);t.a=Object(d.connect)(a)(f.a)
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.timeOptions,i=e.selectedDateOption,a=e.onDeselectDateOption,o=e.onSelectTime;return r()("div",{className:t},void 0,r()("div",{className:f.a.header},void 0,r()(l.a,{onPress:a},void 0,r()(d.a,{className:f.a.backIcon,name:"plex-icon-hub-prev-560","aria-label":Object(u.default)("Back")})),r()("span",{className:f.a.headerText},void 0,i.title)),v,n.map(function(e,t){return r()(p.a,{option:e,isDisabled:!e.isEnabled,
isSelected:e.isSelected,onPress:o},t,e.title)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(284),u=n(3),d=n(26),p=n(1664),h=n(4255),f=n.n(h),v=r()(c.a,{});t.a=i},function(e,t){e.exports={header:"DatePickerTimeList-header-2g8yB",backIcon:"DatePickerTimeList-backIcon-1dZa8",headerText:"DatePickerTimeList-headerText-3xMhW"}},function(e,t){e.exports={listContainer:"DatePickerMenu-listContainer-2IYmJ",list:"DatePickerMenu-list-3YRaA",
showTimeOptions:"DatePickerMenu-showTimeOptions-2OWJ9"}},function(e,t,n){"use strict";function i(e){var t=e.filters,n=e.target,i=e.isOpen,a=e.activeFilters,o=e.activeFilterLabel,s=e.onMenuClose;return r()(l.a,{target:n,isOpen:i,size:c.e.LARGE,onMenuClose:s},void 0,r()(u.a,{activeFilters:a,activeFilterLabel:o,showSpinner:!1,showCustomFilter:!1,filters:t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=(n(100),n(24)),u=n(1667);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.typeKey,n=e.activeFilters,i=e.activeFilterLabel,a=e.activeSort,o=e.filter,s=e.title,f=n.filter(function(e){return e.key===o}),v=Object(u.a)(f,"1");return r()(h.a,{to:Object(p.a)({typeKey:t,filters:v?Object(d.a)(n,o):Object(l.a)(n,o,{value:"1",type:c.a}),filterLabel:i,sort:a}),isSelected:v},void 0,s)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1668)),c=n(333),u=n(1669),d=n(1670),p=(n(100),n(295)),h=n(103);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(112),g=n(28),m=n(3),y=n(26),b=(n(100),n(31)),I=n(24),S=n(4260),M=n.n(S),D=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){i.props.onFilterSelect(i.props.filterKey)},a=n,l()(i,a)}return u()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return Object(g.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.activeFilters,n=e.filter,i=e.title,r=e.showSpinner,o=!r&&!!f.a.find(t,function(e){return e.key===n});return a()(v.a,{className:o?M.a.isSelected:void 0,onPress:this.onPress},void 0,a()("div",{className:M.a.menuItemContainer},void 0,a()("div",{className:M.a.menuLabel},void 0,i),r&&a()(b.a,{className:M.a.spinner,size:I.e.SMALL}),!r&&o&&a()("div",{
className:M.a.selectedIcon},void 0,a()(y.a,{name:"plex-icon-selected-560","aria-label":Object(m.default)("Selected")}))))},t}(p.Component);t.a=D},function(e,t){e.exports={menuItemContainer:"DisclosureFilterMenuItem-menuItemContainer-umTpy SelectedMenuItem-menuItemContainer-2hXIr",menuLabel:"DisclosureFilterMenuItem-menuLabel-3sWTg SelectedMenuItem-menuLabel-2fp2l",spinner:"DisclosureFilterMenuItem-spinner-k12hY Spinner-spinner-Niere spin-spin-2kLwt",
selectedIcon:"DisclosureFilterMenuItem-selectedIcon-1HwbQ SelectedMenuItem-selectedIcon-20Yx1",isSelected:"DisclosureFilterMenuItem-isSelected-3uWkO"}},function(e,t){e.exports={filtersScroller:"LibraryFiltersList-filtersScroller-2-lmL Scroller-vertical-VScFL"}},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(D.a,Object(M.a)(),Object(S.a)(),function(e){return e.ui.discoverPage},function(e,t){return t.selectedDirectory.hubKey},function(e,t){
return t.selectedDirectory.isHomeDirectory},N,w.a,x,function(e,t,n,i,a,r,o,s,l){var c=i.hubs||[],u=!Object(C.a)(i.knownPromotedHubCloudProviderIDs,e.pmp.providers),d=!(u||t.isCloud||!r||!e.pmp.isProvidersPopulated||!t.isProvidersPopulated),p=d&&o&&!i.hubsError,h=i.isHubsPending||p&&i.isPromotedHubsPending;return{providerIdentifier:n.identifier,providerMetricsIdentifier:n.metricsIdentifier,isProgramGuide:j.c.test(n.identifier),hubKey:a,hubEntityIDs:c,promotedHubEntityIDs:l,hasProvidersChanged:u,
showPromotedHubs:d,isHubsPending:h,hubsError:i.hubsError,isEmpty:o,activeSelectionType:s.activeSelectionType}})}function a(e,t){return{dispatchFetchPromotedHubs:function(){e(Object(T.b)())},dispatchPopulatePromotedHubs:function(){e(Object(T.d)())},onProviderChange:function(n){e(Object(E.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:null}))}}}function r(e){var t=e.ui.discoverPage;return{
providerEntityID:t.providerEntityID,hubKey:t.hubKey}}function o(e,t){e(Object(T.c)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,hubKey:t.hubKey})),e(Object(T.a)({options:{onlyTransient:!0}}))}var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(571)),S=n(54),M=n(35),D=n(162),C=n(4263),j=n(41),P=n(991),O=n(133),T=n(1061),E=n(93),w=n(76),A=n(4264),x=Object(b.createSelector)(function(e){
return e.ui.discoverPage},function(e){return e.isHubsPending||e.hubsError?[]:e.promotedHubs}),N=Object(b.createSelector)(I.a,function(e){return e.ui.discoverPage.hubs},x,function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=t.concat(n),a=i.length;a-- >0;){var r=i[a],o=e[r];if(o.type!==P.a&&(o.size||o.totalSize))return!1}return!0}),L=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),
t.prototype.componentDidMount=function(){this.props.hasProvidersChanged?this.props.dispatchFetchPromotedHubs():this.props.showPromotedHubs&&this.props.dispatchPopulatePromotedHubs()},t.prototype.componentDidUpdate=function(e){this.props.hasProvidersChanged&&!e.hasProvidersChanged?this.props.dispatchFetchPromotedHubs():this.props.showPromotedHubs&&!e.showPromotedHubs&&this.props.dispatchPopulatePromotedHubs()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchPromotedHubs,
e.dispatchPopulatePromotedHubs,l()(e,["dispatchFetchPromotedHubs","dispatchPopulatePromotedHubs"]));return m.a.createElement(A.a,t)},t}(g.Component),k=Object(O.a)(L,r,o);t.a=Object(y.connect)(i,a)(k)},function(e,t,n){"use strict";function i(e,t){return e.length===t.length&&0===r.a.difference(e,t).length}t.a=i;var a=n(10),r=n.n(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(57)),f=n(30),v=n(490),g=n(749),m=n(730),y=n(92),b=n(157),I=n(487),S=n(1672),M=n(4272),D=n(4275),C=n(4282),j=n.n(C),P=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){this.props.onProviderChange(this.props.providerIdentifier)},t.prototype.componentDidUpdate=function(e){this.props.providerIdentifier!==e.providerIdentifier&&this.props.onProviderChange(this.props.providerIdentifier)},
t.prototype.componentWillUnmount=function(){this.props.onProviderChange(null)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,r=e.providerMetricsIdentifier,o=e.isProgramGuide,s=e.selectedDirectory,l=e.activeSelectionType,c=e.hubEntityIDs,u=e.promotedHubEntityIDs,d=e.isHubsPending,p=e.hubsError,C=e.isEmpty,P=e.showPromotedHubs,O=e.onRepopulate;return a()(y.a,{metricsPage:f.x,metricsProperties:{identifier:r,type:s.type},
allowBackgroundLightPreset:!0,scrollDirection:h.NONE},void 0,l?a()(I.a,{serverEntityID:t,providerEntityID:n}):a()(M.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:s}),a()(S.a,{serverEntityID:t,providerEntityID:n}),a()(b.a,{innerClassName:j.a.discoverPageContent},void 0,C&&a()(D.a,{serverEntityID:t,providerEntityID:n,providerIdentifier:i,selectedDirectory:s,isPending:d,error:p,onRepopulate:O}),!C&&a()(m.a,{serverEntityID:t,providerEntityID:n,hubEntityIDs:c}),!C&&P&&a()(m.a,{
serverEntityID:t,providerEntityID:n,hubEntityIDs:u,isPromoted:!0}),o&&!C&&a()(v.a,{className:j.a.attribution,providerEntityID:n})),o&&a()(g.a,{serverEntityID:t,providerEntityID:n}))},t}(p.Component);t.a=P},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.providerEntityID;return e.showDVRUpsell?r()(l.a,{className:t,serverEntityID:n,providerEntityID:i}):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4266));t.a=i},function(e,t,n){"use strict"
;function i(e){return{onDismissPress:function(){e(Object(r.k)({hasDismissedDVRUpsell:!0}))}}}var a=n(11),r=n(71),o=n(4267);t.a=Object(a.connect)(null,i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.onDismissPress;return r()(c.a,{className:t,serverEntityID:n},void 0,function(e){var t=e.noDVRs,n=e.onOpen;return t?r()(f.a,{imageUrl:d.a,headerImgUrl:h.a,header:Object(l.default)("Set up Live TV & DVR"),
text:Object(l.default)("Install your antenna and tuner before starting the Setup Wizard! This will allow you to configure Plex for your tuner, detect your local channels, and customize your TV guide."),actionText:Object(l.default)("Get Started"),infoUrl:"https://www.plex.tv/features/live-tv-dvr/",onActionPress:n,onDismissPress:i}):null})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(927),u=n(4268),d=n.n(u),p=n(4269),h=n.n(p),f=n(4270);t.a=i},function(e,t,n){
e.exports=n.p+"desktop/common/img/banners/banner-dvr.71d3d38ae0ab13037c0e189a61f80953.jpg"},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTE1NC45IDc5MS45Ij48c3R5bGU+LnN0MXtmaWxsOiNmZmZ9PC9zdHlsZT48cGF0aCBmaWxsPSIjZmZlZTM1IiBkPSJNODQwLjIgNTExLjloMTc0Ljd2MTQwSDg0MC4xbC00My41LTQxdi01Ny44eiIvPjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yOTYuOSAyNTAuNWwzLjQtMS4yYzIuMi0xIDQuOC0yLjggNy44LTUuM3M2LjEtNS40IDkuMS04LjdjMy0zLjMgNS43LTcuNyA3LjktMTMuMiAyLjItNS41IDMuMy0xMS4zIDMuMy0xNy4zIDAtMTUuOS03LjItMjkuNi0yMS42LTQxLjEtMTQuNC0xMS41LTM0LTE3LjMtNTguOS0xNy4zSDE0MHYyMjFoMTE0LjJjMjkuMyAwIDg5LjktNS41IDg5LjktNjMuMiAwLTQ0LjItNDYuMi01My4zLTQ3LjItNTMuN20tODUuNC01Mi40aDI2LjNjNS4zIDAgOS42IDEuNiAxMi45IDQuNyAzLjMgMy4xIDUgNi45IDUgMTEuNXMtMS43IDguNC01IDExLjVjLTMuMyAzLjEtNy42IDQuNy0xMi45IDQuN2gtMjYuM3YtMzIuNHptNDkuMSAxMTIuMmMtNC4xIDMuOS05LjMgNS44LTE1LjUgNS44aC0zMy43di0zOS43aDMzLjdjNi4yIDAgMTEuNCAxLjkgMTUuNSA1LjcgNC4xIDMuOCA2LjIgOC41IDYuMiAxNCAwIDUuNy0yIDEwLjQtNi4yIDE0LjJNMzUzLjcgNDk1LjFsMy40LTEuMmMyLjItMSA0LjgtMi44IDcuOC01LjNzNi4xLTUuNCA5LjEtOC43YzMtMy4zIDUuNy03LjcgNy45LTEzLjIgMi4yLTUuNSAzLjMtMTEuMyAzLjMtMTcuMyAwLTE1LjktNy4yLTI5LjYtMjEuNi00MS4xLTE0LjQtMTEuNS0zNC0xNy4zLTU4LjktMTcuM0gxOTd2MjIxaDExNGMyOS4zIDAgODkuOS01LjUgODkuOS02My4yIDAtNDQuMi00Ni4yLTUzLjMtNDcuMi01My43bS04NS4yLTUyLjRoMjYuMWM1LjMgMCA5LjYgMS42IDEyLjkgNC43IDMuMyAzLjEgNSA2LjkgNSAxMS41cy0xLjcgOC40LTUgMTEuNWMtMy4zIDMuMS03LjcgNC43LTEyLjkgNC43aC0yNi4xdi0zMi40ek0zMTcuNCA1NTVjLTQuMSAzLjktOS4zIDUuOC0xNS41IDUuOGgtMzMuNHYtMzkuN2gzMy40YzYuMiAwIDExLjQgMS45IDE1LjUgNS43IDQuMSAzLjggNi4yIDguNSA2LjIgMTQgMCA1LjYtMiAxMC4zLTYuMiAxNC4yTTUyNy4xIDMxMy43SDQyMC4zVjI3OWg4Ny4ydi01MC42aC04Ny4ydi0yOC4zaDEwN3YtNTMuOEgzNDguOHYyMjFoMTc4LjN6TTcwOS44IDE0Ni4zdjUzLjhoNTguNHYxNjcuMmg3MVYyMDAuMWg1OC41di01My44ek02MjkgMzEwLjFjLTMuOSAzLjQtOS4zIDUuMS0xNi4zIDUuMS02LjkgMC0xNC4yLTEuOS0yMS43LTUuNy03LjUtMy44LTEyLjUtNi45LTE1LTkuMi0xLjQtMS4zLTIuNy0yLjUtMy43LTMuNWwtNDIuMiA0MCAyLjcgMi43YzIuNiAyLjcgNi41IDUuOSAxMS45IDkuNiA1LjMgMy43IDExLjUgNy40IDE4LjYgMTEuMSA3IDMuNyAxNS44IDYuOSAyNi40IDkuNSAxMC41IDIuNiAyMS40IDMuOSAzMi42IDMuOSAyNy45IDAgNTAuMi03LjIgNjYuNy0yMS43czI0LjgtMzIgMjQuOC01Mi40YzAtMTEuOC0yLjQtMjIuMi03LjItMzEuMS00LjgtOC45LTEwLjctMTUuNy0xNy45LTIwLjItNy4xLTQuNS0xNC45LTguNi0yMy4yLTEyLjItNy42LTMuMy0xNC43LTUuOC0yMS4zLTcuNS0uNi0uMi0xLjMtLjMtMS45LS41LTcuMS0xLjctMTMuMS0zLjktMTcuOC02LjUtNC43LTIuNi03LjEtNS42LTcuMS05IDAtNC4xIDEuNi03LjUgNC45LTEwLjIgMy4zLTIuNyA4LTQgMTQtNCAxNC40IDAgMjMuMyA2LjUgMjcuOCAxMS4ybDQyLjMtNDAuMi0uOC0uOWMtMS44LTIuNC01LTUuMS05LjYtOC4xLTQuNS0zLTkuOC02LjEtMTUuOC05LjItNi0zLjEtMTMuOC01LjctMjMuNC03LjktOS42LTIuMi0xOS42LTMuMy0zMC4xLTMuMy0yNi41IDAtNDcuOCA3LTY0IDIxLTE2LjIgMTQtMjQuMyAzMC41LTI0LjMgNDkuNCAwIDEwLjEgMS44IDE5LjEgNS40IDI3LjEgMy42IDggOC4yIDE0LjQgMTMuNyAxOS4xIDUuNSA0LjcgMTEuNyA4LjkgMTguNiAxMi41IDUuNyAzIDExLjUgNS41IDE3LjMgNy42IDEuMS40IDIuMi44IDMuMyAxLjEgNi45IDIuMiAxMy4yIDQuMyAxOC44IDYuMiA1LjYgMS45IDEwLjIgMy45IDEzLjggNi4xIDMuNiAyLjIgNS40IDQuNyA1LjQgNy43LjIgNC45LTEuOCA5LTUuNyAxMi40TTUyNy4zIDUyMi4yYzAgMTQuNi0xMS44IDI2LjQtMjYuNCAyNi42LTE0LjcuMS0yNi43LTExLjgtMjYuNy0yNi42VjM5MWgtNzEuNXYxMjcuOWMwIDUyLjcgNDIuOCA5NS41IDk1LjUgOTUuNWg0LjVjNTIuNyAwIDk1LjUtNDIuOCA5NS41LTk1LjVWMzkxaC03MC45djEzMS4yek03MjAuNCA0NjYuMkw2NzMuNSAzOTFoLTcxLjZsODIuNyAxNDIuMVY2MTJoNzEuNXYtNzguOUw4MzguOCAzOTFoLTcxLjZ6Ii8+PHBhdGggZD0iTTgzMS40IDU4MS44YzAgNC44LTMuOSA4LjYtOC42IDguNi00LjggMC04LjYtMy45LTguNi04LjZzMy45LTguNiA4LjYtOC42YzQuNy0uMSA4LjYgMy44IDguNiA4LjYiIGZpbGw9IiMxYzI1MmMiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNODQwLjMgNDU0LjRoLTUuMnYtMS42aDEyLjR2MS42aC01LjJ2MTUuMWgtMi4xdi0xNS4xem0xMC40LTEuN2gyLjlsNS40IDEzLjIgNS4zLTEzLjJoMi45djE2LjdoLTJ2LTE0LjJsLTUuOSAxNC4yaC0uN2wtNS45LTE0LjJ2MTQuMmgtMS45di0xNi43eiIvPjwvc3ZnPgo="
},function(e,t,n){"use strict";function i(e){var t=e.imageUrl,n=e.headerImgUrl,i=e.header,a=e.text,o=e.actionText,s=e.infoText,h=e.infoUrl,f=e.onActionPress,I=e.onDismissPress;return r()("div",{className:v.a.container},void 0,t&&r()("div",{className:v.a.image,style:y},void 0,r()(u.a,{src:t,width:g,height:m,background:!0,backgroundSize:"cover",transition:!0})),r()("div",{className:v.a.call},void 0,r()("div",{className:v.a.header},void 0,n&&r()("img",{className:v.a.headerImage,src:n
}),i),r()("div",{className:v.a.text},void 0,a)),r()("div",{className:v.a.actions},void 0,r()("div",{className:v.a.actionButton},void 0,r()(l.a,{kind:d.PRIMARY,onPress:f},void 0,o)),r()("div",{className:v.a.infoButton},void 0,h&&r()(c.a,{kind:d.PRIMARY,to:h,target:"_blank"},void 0,s||Object(p.default)("Learn more")))),r()("div",{className:v.a.dismissButton},void 0,I&&r()(c.a,{onPress:I},void 0,b)))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(42)),c=n(20),u=n(184),d=n(51),p=n(3),h=n(26),f=n(4271),v=n.n(f),g=220,m=140,y={width:g,height:m},b=r()(h.a,{name:"plex-icon-remove-560"});t.a=i},function(e,t){e.exports={container:"DiscoverBanner-container-3vrIp",image:"DiscoverBanner-image-snLus",call:"DiscoverBanner-call-2nc7p",header:"DiscoverBanner-header-3_kXk",headerImage:"DiscoverBanner-headerImage-bqJ0W",text:"DiscoverBanner-text-1Zg5n",actions:"DiscoverBanner-actions-1dZad",dismissButton:"DiscoverBanner-dismissButton-1YKJR",
actionButton:"DiscoverBanner-actionButton-3zWaM",infoButton:"DiscoverBanner-infoButton-Yr4jB"}},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(d.a,c.a,Object(l.a)(),function(e,t,n){return e.isCloud||t.isLibraryProvider?n.filter(function(e){return!!e.hubKey}):n})}function a(){return Object(o.createSelector)(Object(u.a)(),c.a,i(),Object(s.a)(),function(e,t,n,i,a){return{server:e,provider:t,directories:n,showEPGActivity:!!i,isTypeFirstEnabled:a}})}
var r=n(11),o=n(4),s=(n.n(o),n(239)),l=n(409),c=n(39),u=n(35),d=n(53),p=n(4273);t.a=Object(r.connect)(a)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(219)),f=n(131),v=n(491),g=n(747),m=n(151),y=n(117),b=n(750),I=n(47),S=n(3),M=n(748),D=n(165),C=n(1055),j=(n(99),n(140),n(585)),P=a()(b.a,{}),O=a()(g.a,{}),T=a()(D.a,{}),E=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onDirectoriesMenuButtonPress=function(e){a.setState({isDirectoriesMenuOpen:!a.state.isDirectoriesMenuOpen})},a.onDirectoriesMenuClose=function(){a.setState({isDirectoriesMenuOpen:!1})},a.state={isDirectoriesMenuOpen:!1},a._directoriesMenuButtonID=Object(I.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.server,r=e.provider,o=e.directories,s=e.selectedDirectory,l=e.showEPGActivity,c=this.state.isDirectoriesMenuOpen
;return a()(h.a,{},void 0,a()(m.a,{},void 0,r.isLibraryProvider&&a()("span",{},void 0,Object(S.default)("Discover"),P),a()(f.a,{id:this._directoriesMenuButtonID,"data-qa-id":"directoriesMenuButton",title:s.isHomeDirectory?Object(S.default)("All Libraries"):s.title,hasMenu:o.length>1,isMenuOpen:c,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),a()(j.a,{target:this._directoriesMenuButtonID,isOpen:c,server:i,provider:r,directories:o,selectedDirectory:s,
onMenuClose:this.onDirectoriesMenuClose})),l&&a()(v.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:n})),a()(y.a,{},void 0,!!r.features.actions.addToCatalog&&a()(C.a,{providerEntityID:n}),!!r.features.actions.addToCatalog&&O,T))},t}(p.Component);t.a=E},function(e,t){e.exports={pageHeaderSeparator:"PageHeaderSeparator-pageHeaderSeparator-GZfDv DashSeparator-separator-4CyEF"}},function(e,t,n){"use strict";function i(e){
var t=e.providerIdentifier,n=e.selectedDirectory,i=r()(e,["providerIdentifier","selectedDirectory"]);return u.c.test(t)?l.a.createElement(h.a,i):n.id===c.a?l.a.createElement(d.a,i):l.a.createElement(p.a,i)}var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(1673),u=n(41),d=n(1674),p=n(4279),h=n(4281);t.a=i},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(162)),r=Object(i.createSelector)(a.a,function(e){return e.subscriptions||[]});t.a=r},function(e,t,n){"use strict";function i(e){
var t=e.isPending,n=e.hasTidal;return t?m:n?r()(h.a,{title:Object(u.default)("Account not linked"),description:Object(u.default)("Ensure your Plex account is linked to TIDAL.")},void 0,r()(l.a,{to:"https://plex.tv/users/other-services",kind:f.b.PRIMARY},void 0,Object(u.default)("Learn more"))):r()(p.a,{icon:"plex-icon-tidal-logo-560",iconClassName:g.a.logo,title:Object(u.default)("TIDAL + Plex = music to your ears!"),
description:Object(u.default)("Need some jams? Add TIDAL streaming music to Plex and get access to 59 million of the highest quality tracks, hundreds of thousands of music videos, awesome premium Plex music features, and seamless integration with your own collection. Get 30 days FREE when you sign up today!")},void 0,r()(l.a,{to:c.d,kind:f.b.PRIMARY},void 0,Object(u.default)("Learn more")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(20)),c=n(321),u=n(3),d=n(31),p=n(208),h=n(720),f=n(24),v=n(4278),g=n.n(v),m=r()(p.a,{},void 0,r()(d.a,{}));t.a=i},function(e,t){e.exports={logo:"DiscoverEmptyTidalPage-logo-3po-A EmptyPage-icon-31D3Z"}},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(Object(b.a)(),function(e){return{friendlyName:e.friendlyName,isFullOwnedServer:e.isFullOwnedServer,isCloudSyncServer:e.isCloudSyncServer,hasLibraries:!!e.isCloud||!!e.pmp.libraries.length}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(35)),I=n(202),S=n(4280),M=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onAddLibraryPress=function(e){i.props.addLibrary({serverEntityID:i.props.serverEntityID})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){
var e=this.props,t=e.onRepopulate,n=s()(e,["onRepopulate"]);return g.a.createElement(S.a,r()({},n,{onAddLibraryPress:this.onAddLibraryPress,onRetryPress:t}))},t}(v.Component);t.a=Object(m.connect)(i,{addLibrary:I.a})(M)},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,n=e.isFullOwnedServer,i=e.isCloudSyncServer,a=e.isPending,o=e.error,s=e.hasLibraries,h=e.onAddLibraryPress,m=e.onRetryPress;return a?g:o&&!i?r()(v.a,{
title:Object(p.default)("There was an unexpected error loading the dashboard")},void 0,r()(c.a,{kind:u.PRIMARY,onPress:m},void 0,Object(p.default)("Retry"))):o&&i?r()(f.a,{title:Object(p.default)('The server "{serverName}" does not support the dashboard',{serverName:t}),description:Object(p.default)("Browse libraries using the sidebar")}):s&&n?r()(f.a,{title:Object(p.default)("The dashboard is empty"),description:Object(p.default)("Browse and manage your libraries using the sidebar"),
footer:Object(p.default)('Tip: The "Include in dashboard" advanced setting for each library allows content to be displayed here')}):!s&&n?r()(f.a,{title:Object(p.default)("The dashboard is empty"),description:Object(p.default)("Add libraries with your media to make the most of Plex Media Server")},void 0,r()(l.a,{kind:u.PRIMARY,size:d.LARGE,onPress:h},void 0,Object(p.default)("Add Library"))):r()(f.a,{title:Object(p.default)("The dashboard is empty"),
description:Object(p.default)("Browse libraries using the sidebar")})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(20),u=n(51),d=n(52),p=n(3),h=n(31),f=n(208),v=n(332),g=r()(f.a,{},void 0,r()(h.a,{}));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.isPending,a=e.error;return i?h:a?r()(p.a,{title:Object(l.default)("There was an unexpected error loading the Guide")}):r()(u.a,{serverEntityID:t,providerEntityID:n})}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(31),u=n(587),d=n(208),p=n(332),h=r()(d.a,{},void 0,r()(c.a,{}));t.a=i},function(e,t){e.exports={discoverPageContent:"DiscoverPage-discoverPageContent-3mJ50 PageContent-innerPageContent-3ktLT",attribution:"DiscoverPage-attribution-3-PdL ProgramGuideAttribution-attribution-3Ca_I"}},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(function(e){return e.ui.libraryPage
},Object(d.a)(),Object(c.a)(),Object(u.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.details;return{libraryKey:n,librarySectionID:a&&a.librarySectionID,providerIdentifier:t.identifier,selectedType:i}})}function a(e,t){return{onLibraryChange:function(n,i){e(Object(f.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},dispatchInitLibraryPageMetadataList:function(t){
e(h.initLibraryPageMetadataList(t))},dispatchPopulateLibraryFirstCharacters:function(){e(h.populateLibraryFirstCharacters())}}}function r(e){var t=e.ui.libraryPage;return{providerEntityID:t.providerEntityID,libraryKey:t.libraryKey}}function o(e,t){e(h.initLibraryPage({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,libraryKey:t.libraryKey})),e(h.populateLibraryDetails())}var s=n(11),l=n(4),c=(n.n(l),
n(226)),u=n(263),d=n(54),p=n(133),h=n(296),f=n(93),v=n(4284),g=Object(p.a)(v.a,r,o),m=Object(s.connect)(i,a)(g);t.a=m},function(e,t,n){"use strict";function i(e,t){if(e){if(t){var n=Object(T.q)(e.type);return n?Object(T.q)(n.id).typeString:w.e}return Object(T.n)(e.type)?Object(T.r)(e.type).typeString:e.type}}function a(e){if(e)return e.subtype}function r(){return Object(b.createSelector)(function(e){return e.ui.libraryPage},function(e,t){return t.selectedDirectory},function(e,t){
return t.folderKey},Object(P.a)(),Object(I.a)(),Object(D.a)(),Object(S.a)(),Object(M.a)("query/parse"),Object(j.a)(),Object(C.a)(),k.a,L.a,Object(N.a)(),function(e,t,n,r,o,s,l,c){
var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},p=arguments[10],h=arguments[11],f=arguments[12],v=e.metadataList,g=e.directoryList,m=e.firstCharacters,y=e.details,b=e.isDetailsPending,I=e.isDetailsPopulated,S=e.detailsError,M=i(u,n),D=a(u),C=Object(R.a)(p,E.b,M,D,r);return{libraryKey:o,containerKey:s,librarySectionID:y&&y.librarySectionID,firstCharacterKey:l,queryParseKey:c,metadataListEntityID:v,directoryListEntityID:g,
providerIdentifier:r.identifier,providerMetricsIdentifier:r.metricsIdentifier,isProgramGuide:O.c.test(r.identifier),showLibrarySpinner:!(S||I&&(v||g)),showLibraryError:!b&&!!S,libraryErrorStatus:S&&S.status,libraryDirectories:y&&y.directories,listTitle:u.title,listType:M,listSubtype:D,listStyle:C,typeKey:u.key,selectedType:u,selectedSort:d,activeSelectionType:h.activeSelectionType,isDirectoryList:!Object(T.n)(M)&&M!==w.e,isLibraryRefreshing:f,firstCharacterCount:m?m.length:0}})}function o(e,t){
return{onLibraryChange:function(n,i){e(Object(x.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},dispatchInitLibraryPageMetadataList:function(t){e(A.initLibraryPageMetadataList(t))},dispatchInitLibraryPageDirectoryList:function(t){e(A.initLibraryPageDirectoryList(t))},dispatchPopulateLibraryFirstCharacters:function(){e(A.populateLibraryFirstCharacters())}}}
var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(226)),S=n(4285),M=n(751),D=n(4286),C=n(752),j=n(263),P=n(54),O=n(41),T=n(27),E=n(33),w=n(223),A=n(296),x=n(93),N=n(464),L=n(76),k=n(492),R=n(493),z=n(4287),U=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.typeKey,n=e.containerKey;t&&n&&this._populate()},
t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.typeKey,i=t.containerKey;(n&&n!==e.typeKey||i&&i!==e.containerKey)&&this._populate()},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.containerKey,a=e.typeKey,r=e.folderKey,o=e.firstCharacterKey,s=e.queryParseKey,l=e.isDirectoryList,c=e.dispatchInitLibraryPageMetadataList,u=e.dispatchInitLibraryPageDirectoryList,d=e.dispatchPopulateLibraryFirstCharacters;l?u({serverEntityID:t,
providerEntityID:n,containerKey:i,typeKey:a}):(c({serverEntityID:t,providerEntityID:n,containerKey:i,typeKey:a,folderKey:r,firstCharacterKey:o,queryParseKey:s}),d())},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitLibraryPageMetadataList,e.dispatchPopulateLibraryFirstCharacters,l()(e,["dispatchInitLibraryPageMetadataList","dispatchPopulateLibraryFirstCharacters"]));return m.a.createElement(z.a,t)},t}(g.Component);t.a=Object(y.connect)(r,o)(U)},function(e,t,n){"use strict"
;function i(){return Object(a.a)("firstCharacter")}t.a=i;var a=n(751)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.folderKey},Object(r.a)("all"),function(e,t){return e||t})}t.a=i;var a=n(4),r=(n.n(a),n(751))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(57)),f=n(1675),v=n(30),g=n(3),m=n(33),y=(n(100),
n(31)),b=n(490),I=n(749),S=n(141),M=n(1676),D=n(92),C=n(85),j=n(330),P=n(203),O=n(487),T=n(68),E=n(1677),w=n(4328),A=n(4330),x=n(4332),N=n(1689),L=n(4345),k=n.n(L),R=a()(C.a,{},void 0,a()(y.a,{})),z=a()(j.a,{}),U=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));B.call(a);var r=n.listHeight,s=n.scrollIndex,c=n.viewportHeight;return a.state={listHeight:r,scrollIndex:s,viewportHeight:c},a}return u()(t,e),t.prototype.componentDidMount=function(){
var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.directoryListEntityID,o=e.containerKey,s=e.providerIdentifier,l=e.providerMetricsIdentifier,c=e.isProgramGuide,u=e.selectedDirectory,d=e.showLibrarySpinner,p=e.showLibraryError,m=e.libraryErrorStatus,y=e.libraryDirectories,C=e.selectedSort,j=e.listTitle,L=e.listType,U=e.listSubtype,B=e.listContext,F=e.listStyle,_=e.activeSelectionType,V=e.typeKey,H=e.activeFilters,Q=e.activeFilterLabel,Y=e.activeSort,G=e.activeLimit,W=e.customFilter,K=e.folderKey,Z=e.folderTitle,q=e.parentFolderKey,J=e.parentFolderTitle,X=e.isDirectoryList,$=e.isLibraryRefreshing,ee=e.firstCharacterCount,te=this.state,ne=te.listHeight,ie=te.scrollIndex,ae=te.viewportHeight,re=/titleSort/i.test(C.key),oe=Math.max(ne,1),se=ee>=5,le=ae/oe<=.25,ce=!K&&re&&se&&le,ue=F===T.f,de=!_&&!!K,pe=!_&&!K
;return d?R:404===m?z:p?a()(P.a,{title:Object(g.default)("There was an unexpected error loading this library")}):a()(D.a,{metricsPage:v.F,metricsProperties:{identifier:l,mode:K?f.a:f.b,type:L,customFilter:W,style:F},allowBackgroundLightPreset:!0,scrollDirection:h.NONE},void 0,_&&a()(O.a,{serverEntityID:t,providerEntityID:n}),de&&a()(w.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,libraryDirectories:y,listType:L,listSubtype:U,listContext:B,listStyle:F,selectedDirectory:u,
folderKey:K,folderTitle:Z,parentFolderKey:q,parentFolderTitle:J}),pe&&a()(x.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i||r,libraryDirectories:y,listType:L,listSubtype:U,listContext:B,listStyle:F,selectedDirectory:u,typeKey:V,activeFilters:H,activeFilterLabel:Q,activeSort:Y,customFilter:W,showSortsMenu:!ue}),W&&a()(E.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,providerIdentifier:s,typeKey:V,activeSort:Y,activeLimit:G,selectedSort:C}),ue&&a()(M.a,{
providerEntityID:n,listType:L,listSubtype:U,listContext:B,typeKey:V,activeFilters:H,activeFilterLabel:Q,activeSort:Y,customFilter:W,selectedSort:C,isFolder:!!K,isDisabled:!!K}),a()(S.a,{component:A.a,serverEntityID:t,providerEntityID:n,metadataListEntityID:i||r,containerKey:o,containerTitle:Z,providerIdentifier:s,hasGutter:ce,scrollIndex:ie,listTitle:j,listType:L,listSubtype:U,listContext:B,listStyle:F,typeKey:V,activeFilters:H,activeSort:Y,selectedSort:C,initialSize:50,shouldResetOnUnmount:!0,
isDirectoryList:X,isLibraryRefreshing:$,isFolder:!!K,onListScrollIndexChange:this.onListScrollIndexChange,onListUpdate:this.onListUpdate,onMeasure:this.onMeasure},void 0,c&&a()(b.a,{className:k.a.attribution,providerEntityID:n})),ce&&a()(N.a,{activeSort:Y,viewportHeight:ae,onJumpBarItemPress:this.onJumpBarItemPress}),c&&a()(I.a,{serverEntityID:t,providerEntityID:n}))},t}(p.Component),B=function(){var e=this;this.onListScrollIndexChange=function(t){e.setState({scrollIndex:t})},
this.onListUpdate=function(t){var n=t.listStyle.height;e.setState({listHeight:n})},this.onMeasure=function(t){var n=t.height;e.setState({viewportHeight:n})},this.onJumpBarItemPress=function(t){e.setState({scrollIndex:t})}};U.defaultProps={listContext:m.b,scrollIndex:0,listHeight:0,viewportHeight:0},t.a=U},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(56),v=n(47),g=n(3),m=n(26),y=(n(100),
n(295)),b=n(4289),I=n(4290),S=n.n(I),M=a()(m.a,{name:"plex-icon-more-560"}),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onChangeColumnsPress=function(e){a.setState({isColumnsMenuOpen:!a.state.isColumnsMenuOpen})},a.onColumnsMenuClose=function(){a.setState({isColumnsMenuOpen:!1})},a.state={isColumnsMenuOpen:!1},a._columnsButtonID=Object(v.a)(),a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.activeTableColumnsByKey,n=e.allTableColumns,i=e.typeKey,r=e.listType,o=e.activeFilters,s=e.activeFilterLabel,l=e.activeSort,c=e.customFilter,u=e.selectedSort,d=e.isDisabled,p=e.onColumnSelect,v=e.onColumnDeselect,I=this.state.isColumnsMenuOpen;return a()("div",{className:S.a.tableHeader,"data-qa-id":"metadataTableHeader"},void 0,a()("div",{className:S.a.playCell}),n.map(function(e){var n=e.style,p=e.title,f=e.ascKey,v=e.descKey,b=e.key;if(!t[b])return null
;var I=l===f||l===v||u.key===f,M=l?l===f:u.key===f;return d?a()("div",{style:n,className:S.a.tableHeaderLink},b,a()("div",{className:S.a.tableHeaderCell},void 0,a()("div",{className:S.a.tableHeaderTitle},void 0,p(r)))):a()(h.a,{style:n,className:S.a.tableHeaderLink,to:Object(y.a)({typeKey:i,filters:o,filterLabel:s,sort:M?v:f,customFilter:c})},b,a()("div",{className:I?S.a.activeTableHeaderCell:S.a.tableHeaderCell},void 0,a()("div",{className:S.a.tableHeaderTitle},void 0,p(r)),I&&M&&a()(m.a,{
className:S.a.sortDirectionIcon,name:"plex-icon-sort-ascending-560","aria-label":Object(g.default)("Ascending")}),I&&!M&&a()(m.a,{className:S.a.sortDirectionIcon,name:"plex-icon-sort-descending-560","aria-label":Object(g.default)("Descending")})))}),a()("div",{className:S.a.actionsCell},void 0,a()(h.a,{id:this._columnsButtonID,className:S.a.columnsButton,"aria-label":Object(g.default)("Change Columns"),"aria-haspopup":!0,onPress:this.onChangeColumnsPress},void 0,M),a()(f.a,{
target:this._columnsButtonID,isOpen:I,onMenuClose:this.onColumnsMenuClose},void 0,n.map(function(e){return a()(b.a,{columnKey:e.key,isSelected:!!t[e.key],onColumnSelect:p,onColumnDeselect:v},e.key,e.title(r))}))))},t}(p.Component);t.a=D},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(103)),f=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c]
;return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){(i.props.isSelected?i.props.onColumnDeselect:i.props.onColumnSelect)(i.props.columnKey)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.isSelected;return a()(h.a,{isSelected:n,onPress:this.onPress},void 0,t)},t}(p.Component);t.a=f},function(e,t){e.exports={tableHeader:"MetadataTableHeader-tableHeader-2bHAm",tableHeaderLink:"MetadataTableHeader-tableHeaderLink-7Uy9q",
tableHeaderCell:"MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",activeTableHeaderCell:"MetadataTableHeader-activeTableHeaderCell-16E3M MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",tableHeaderTitle:"MetadataTableHeader-tableHeaderTitle-2CMNj",sortDirectionIcon:"MetadataTableHeader-sortDirectionIcon-3oFWZ",
playCell:"MetadataTableHeader-playCell-1oEdH MetadataTableRow-playCell-ziDSk MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",actionsCell:"MetadataTableHeader-actionsCell-1RppT MetadataTableRow-libraryActionsCell-2OOmP MetadataTableRow-actionsCell-1ax6E MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",columnsButton:"MetadataTableHeader-columnsButton-33h2b"}},function(e,t,n){"use strict";function i(e){
var t=e.defaultField,n=e.defaultFieldType,i=n.type,a=n.operators,r=[];return i===E.a&&r.push({value:1}),{key:t.key,value:r,operator:a[0].key,id:I.a.uniqueId()}}function a(e){return(e.activeFilters.length?e.activeFilters:[i(e)]).map(function(e){return f()({},e,{id:I.a.uniqueId(e.key)})})}var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(6),f=n.n(h),v=n(170),g=n(147),m=n(1),y=(n.n(m),n(0)),b=(n.n(y),
n(10)),I=n.n(b),S=n(42),M=n(388),D=n(186),C=n(4292),j=n(189),P=n(51),O=n(52),T=n(753),E=n(333),w=n(1680),A=n(3),x=(n(100),n(295)),N=n(31),L=n(4298),k=n(4327),R=n.n(k),z=Object(j.a)(M.a),U=o()(N.a,{}),B=function(e){function t(n,r){l()(this,t);var o=u()(this,e.call(this,n,r));return o.onFormSubmit=function(e){var t=o.state.activeFilters,n=o.props,i=n.allTypeFieldsByKey,a=n.typeKey,r=n.activeSort,s=t.map(function(t){var n=e[t.id],a=n.key,r=n.value,o=n.operator,s=r.map(function(e){
return I.a.isString(e)?e:e.value}),l=void 0;return l=i[a].type!==T.b||Object(w.a)(o)?s:[Object(g.a)(Object(v.a)(s[0],"yyyy-MM-dd"))],{key:a,operator:o,value:l}}).filter(function(e){return e.value.length}),l=void 0;e.enableLimit&&""!==e.limit&&(l=e.limit),window.location.hash=Object(x.a)({typeKey:a,filters:s,sort:r,limit:l,customFilter:!0})},o.onCancelPress=function(){var e=o.props,t=e.typeKey,n=e.activeSort;window.location.hash=Object(x.a)({typeKey:t,filters:[],sort:n})},
o.onAddPress=function(e){var t=[].concat(o.state.activeFilters);t.splice(e+1,0,i(o.props)),o.setState({activeFilters:t})},o.onRemovePress=function(e){var t=[].concat(o.state.activeFilters);t.splice(e,1),o.setState({activeFilters:t})},o.state={activeFilters:n.activeFilters?a(n):[]},o}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({activeFilters:a(e)})},t.prototype.render=function(){
var e=this,t=this.state.activeFilters,n=this.props,i=n.serverEntityID,a=n.activeLimit,r=n.isQueryParsePopulated,s=n.queryParseError;if(!r)return o()("div",{className:R.a.loadingContainer},void 0,s?Object(A.default)("There was an error trying to load the filters. Reload the page and try again"):U);var l=!!a;return o()(D.b,{className:R.a.container,onSubmit:this.onFormSubmit},void 0,t.map(function(n,a){return o()(L.a,{serverEntityID:i,name:n.id,index:a,initialValue:n,isRemoveDisabled:t.length<2,
onRemovePress:e.onRemovePress,onAddPress:e.onAddPress},n.id)}),o()("div",{className:R.a.footer},void 0,o()("div",{className:R.a.settings},void 0,o()(z,{className:R.a.checkInput,size:O.SMALL,name:"enableLimit",checkboxText:Object(A.default)("Limit to"),initialValue:l}),o()(C.a,{inputClassName:R.a.numberInput,size:O.SMALL,name:"limit",initialValue:l?a:"",leftLabel:!1,labelText:Object(A.default)("items")})),o()("div",{className:R.a.buttons},void 0,o()(S.a,{className:R.a.button,
onPress:this.onCancelPress},void 0,Object(A.default)("Cancel")),o()(S.a,{kind:P.PRIMARY,type:"submit"},void 0,Object(A.default)("Apply")))))},t}(y.Component);t.a=B},function(e,t,n){"use strict";function i(e){var t=e.inputClassName,n=e.name,i=e.labelText,a=e.showErrors,o=e.errors,l=e.leftLabel,u=c()(e,["inputClassName","name","labelText","showErrors","errors","leftLabel"]);return s()(h.a,{},void 0,l&&s()(f.a,{hasError:a,errors:o,name:n,labelText:i}),p.a.createElement(v.a,r()({className:t,name:n,
hasError:a},u)),!l&&s()(f.a,{hasError:a,errors:o,name:n,labelText:i}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(4293),f=n(4295),v=n(1417),g=n(189),m=n(4297),y=n.n(m);i.defaultProps={inputClassName:y.a.input,leftLabel:!0},t.a=Object(g.a)(i)},function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"]);return l.a.createElement("div",n,t)}var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(4294),u=n.n(c);i.defaultProps={
className:u.a.group},t.a=i},function(e,t){e.exports={group:"InlineFormGroup-group-2Wa86"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.name,i=e.labelText,a=e.showErrors,o=e.errors;return r()(l.a,{className:t,showErrors:a,errors:o,name:n,labelText:i})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(556)),c=n(4296),u=n.n(c);i.defaultProps={className:u.a.label},t.a=i},function(e,t){e.exports={label:"InlineInputGroupFormLabel-label-3jkhB FormLabel-label-2aLJ9"}
},function(e,t){e.exports={input:"InlineNumberInputGroup-input-uLbRb TextInput-input-1VMum input-input-1P2Vi"}},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e,t){return t.value.key},M.a,P.a,O.a,function(e){return e.ui.libraryPage.selectedFilterOptions},function(e,t,n,i,a){for(var r=void 0,o=void 0,s=[],l={},c=0;c<n.length;c++){var u=n[c],d=u.key,p=u.title,h=u.type,f=u.subType;if(u.key===e&&(r=u),l[d]={type:h,subType:f,defaultOperator:i[h][0].key},
!w.test(d)){var v;s.push((v={},v[d]=p,v))}}if(r){var g=r.key.split("."),h=g[0],m=g[1];m||(m=h,h=null);var y=void 0;if(h){var b=Object(C.r)(h),S=b.id;y=I.a.find(t,function(e){var t=Object(C.r)(e.type);return!!t&&t.id===S})}else y=t[0];y&&(o=I.a.find(y.filters,function(e){return e.filter===m}))}return{selectedField:r,fieldValues:s,selectedFilter:o,selectedFilterOptions:a,operatorValues:i[r.type].map(function(e){var t;return t={},t[e.key]=e.title,t}),fieldKeyTypes:l}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(10)),I=n.n(b),S=n(189),M=n(331),D=n(36),C=n(27),j=n(296),P=n(1678),O=n(4299),T=n(4300),E=["duration","mediaSize","mediaBitrate","mood","show.writer","show.producer","show.director"],w=new RegExp("("+E.join("|")+")$"),A={dispatchSelectLibraryFilter:j.selectLibraryFilter,dispatchPopulateLibraryFilterOptions:j.populateLibraryFilterOptions,
dispatchDeselectLibraryFilter:j.deselectLibraryFilter,dispatchSearchLibraryFilterOptions:j.searchLibraryFilterOptions},x=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onSuggestionsFetchRequested=function(){i.props.selectedFilter&&(i.props.dispatchSelectLibraryFilter({serverEntityID:i.props.serverEntityID,key:i.props.selectedFilter.key}),
i.props.dispatchPopulateLibraryFilterOptions())},i.onSuggestionsClearRequested=function(){i.props.selectedFilterOptions&&Object(D.a)(function(){i.props.dispatchDeselectLibraryFilter()})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchSelectLibraryFilter,e.dispatchPopulateLibraryFilterOptions,e.dispatchDeselectLibraryFilter,e.dispatchSearchLibraryFilterOptions,
s()(e,["dispatchSelectLibraryFilter","dispatchPopulateLibraryFilterOptions","dispatchDeselectLibraryFilter","dispatchSearchLibraryFilterOptions"]));return g.a.createElement(T.a,r()({},t,{onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested}))},t}(v.Component);t.a=Object(S.a)(Object(m.connect)(i,A)(x))},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(489)),r=n(753),o=n(3),s=n(1679),l=Object(i.createSelector)(s.a,function(e){
return e.reduce(function(e,t){if(t.type===r.b){var n=t.operators.filter(function(e){var t=e.key;return t!==a.b&&t!==a.h});n.push({key:a.d,title:Object(o.default)("in the last")},{key:a.f,title:Object(o.default)("in not the last")}),e[t.type]=n}else e[t.type]=t.operators;return e},{})});t.a=l},function(e,t,n){"use strict";function i(e){
var t=e.selectedField,n=e.filter,i=e.selectedFilterOptions,a=e.suggestionsFilter,r=e.renderSuggestion,o=e.shouldRenderSuggestions,s=e.getSuggestionValue,l=e.getTagValue,c=e.getTagDisplayValue,u=e.makeTag,d=e.makeTagFromSuggestion,p=e.onSuggestionSelected,f=e.onSuggestionsFetchRequested,v=e.onSuggestionsClearRequested,g=e.onValueChange,I=e.onTagValueChange;return t.type===S.a?null:t.subType===S.c?h()(y.a,{className:E.a.selectInput,name:"value",size:b.SMALL,values:[{"-1":Object(D.default)("Empty")
},{2:"\u2605"},{4:"\u2605\u2605"},{6:"\u2605\u2605\u2605"},{8:"\u2605\u2605\u2605\u2605"},{10:"\u2605\u2605\u2605\u2605\u2605"}],value:n.value[0]?n.value[0].value:"",onChange:g}):t.type===S.b&&Object(M.a)(n.operator)?h()(P.a,{textInputClassName:E.a.unitTextInput,selectInputClassName:E.a.selectInput,name:"value",size:b.SMALL,units:[{s:Object(D.default)("Seconds")},{m:Object(D.default)("Minutes")},{h:Object(D.default)("Hours")},{d:Object(D.default)("Days")},{w:Object(D.default)("Weeks")},{
mon:Object(D.default)("Months")},{y:Object(D.default)("Years")}],value:n.value[0]?n.value[0].value:"",onChange:g}):t.type===S.b?h()(j.a,{className:E.a.textInput,name:"value",size:b.SMALL,value:n.value[0]?n.value[0].value:"",onChange:g}):h()(m.a,{className:E.a.tagsInput,value:n.value,suggestions:i,suggestionsFilter:a,renderSuggestion:r,shouldRenderSuggestions:o,getSuggestionValue:s,getTagValue:l,getTagDisplayValue:c,makeTag:u,makeTagFromSuggestion:d,tagComponent:O.a,validationRegex:x[t.type],
onSuggestionSelected:p,onSuggestionsFetchRequested:f,onSuggestionsClearRequested:v,onChange:I})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(2),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),n(20)),m=n(4301),y=n(255),b=n(52),I=n(489),S=n(753),M=n(1680),D=n(3),C=n(26),j=n(4320),P=n(4322),O=n(4324),T=n(4326),E=n.n(T),w=[I.b,I.h],A=[I.a,I.g],x={integer:/^\d+$/},N=h()(C.a,{name:"plex-icon-toolbar-filter-remove-560"}),L=h()(C.a,{name:"plex-icon-toolbar-filter-add-560"
}),k=function(e){function t(){var n,i,a;s()(this,t);for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return n=i=c()(this,e.call.apply(e,[this].concat(l))),i.shouldRenderSuggestions=function(e){var t=i.props,n=t.selectedFilter,a=t.selectedField.type,r=t.value.operator;return!!n&&(a===S.d&&A.indexOf(r)>-1||a!==S.d&&w.indexOf(r)>-1)},i.onFieldChange=function(e){var t=i.props.fieldKeyTypes,n=t[e],a=n.defaultOperator,r=n.type,o=n.subType,s=[];r===S.a&&s.push({value:1}),
o===S.c&&s.push({value:"-1"}),e!==i.props.value.key&&i.props.onChange({key:e,operator:a,value:s})},i.onOperatorChange=function(e){var t=i.props.selectedField,n=void 0;n=t.type===S.b&&Object(M.a)(e)&&Object(M.a)(i.props.value.operator)||!Object(M.a)(e)&&!Object(M.a)(i.props.value.operator)?i.props.value.value:[],i.props.onChange(r()({},i.props.value,{value:n,operator:e}))},i.onTagValueChange=function(e){i.props.onChange(r()({},i.props.value,{value:Array.isArray(e)?e:[e]}))},
i.onValueChange=function(e){i.props.onChange(r()({},i.props.value,{value:[{value:e}]}))},i.onRemovePress=function(){i.props.onRemovePress(i.props.index)},i.onAddPress=function(){i.props.onAddPress(i.props.index)},a=n,c()(i,a)}return d()(t,e),t.prototype.getSuggestionValue=function(e){return e},t.prototype.getTagValue=function(e){return e.value},t.prototype.getTagDisplayValue=function(e){return e.valueTitle||e.value},t.prototype.makeTag=function(e){return{value:e}},
t.prototype.makeTagFromSuggestion=function(e){return{value:e.value,valueTitle:e.title}},t.prototype.suggestionsFilter=function(e,t){return e.title.toLowerCase().indexOf(t.toLowerCase())>-1},t.prototype.renderSuggestion=function(e){return e.title},t.prototype.render=function(){var e=this.props,t=e.isRemoveDisabled,n=e.value,a=e.operatorValues,r=e.fieldValues,o=e.selectedField,s=e.selectedFilterOptions,l=e.onSuggestionsFetchRequested,c=e.onSuggestionsClearRequested;return h()("div",{
className:E.a.container},void 0,h()("div",{className:E.a.rules},void 0,h()("div",{className:E.a.rule},void 0,h()(y.a,{className:E.a.selectInput,name:"filter",size:b.SMALL,values:r,value:n.key,onChange:this.onFieldChange})),h()("div",{className:E.a.rule},void 0,h()(y.a,{className:E.a.selectInput,name:"operator",size:b.SMALL,values:a,value:n.operator,onChange:this.onOperatorChange})),h()("div",{className:E.a.value},void 0,h()(i,{selectedField:o,filter:n,selectedFilterOptions:s,
suggestionsFilter:this.suggestionsFilter,renderSuggestion:this.renderSuggestion,shouldRenderSuggestions:this.shouldRenderSuggestions,getSuggestionValue:this.getSuggestionValue,getTagValue:this.getTagValue,getTagDisplayValue:this.getTagDisplayValue,makeTag:this.makeTag,makeTagFromSuggestion:this.makeTagFromSuggestion,tagComponent:O.a,onSuggestionSelected:this.onSuggestionSelected,onSuggestionsFetchRequested:l,onSuggestionsClearRequested:c,onTagValueChange:this.onTagValueChange,
onValueChange:this.onValueChange})),h()("div",{className:E.a.buttons},void 0,h()(g.a,{className:t?E.a.iconButtonDisabled:E.a.iconButton,"aria-label":Object(D.default)("Remove Filter"),isDisabled:t,onPress:this.onRemovePress},void 0,N),h()(g.a,{className:E.a.iconButton,"aria-label":Object(D.default)("Add Filter"),onPress:this.onAddPress},void 0,L))))},t}(v.Component);k.defaultProps={isRemoveDisabled:!1,isAddEnabled:!0,onRemovePress:function(){},onAddPress:function(){}},t.a=k},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=(n(1681),n(4302)),b=n(4315),I=n(4319),S=n.n(I),M=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.setTagsInputRef=function(e){a.tagsInputRef=e},a.onInputChange=function(e){a.setState({inputValue:e})},a.onSuggestionSelected=function(e,t){var n=t.suggestion;a.tagsInputRef.addTag(a.props.makeTagFromSuggestion(n))},
a.renderInputComponent=function(e){var t=e.ref,n=l()(e,["ref"]),i=a.props,r=i.className,s=i.shouldRenderSuggestions,c=i.tagComponent,u=i.validationRegex,d=i.value,p=i.makeTag,h=i.getTagDisplayValue,f=i.getTagValue,v=i.tagProps,g=i.onChange,y=a.state.inputValue;return m.a.createElement(b.a,{className:r,inputValue:y,inputProps:o()({},n,{inputRef:t}),tagProps:v,value:d,validationRegex:u,tagComponent:c,addOnBlur:!s(y),getTagValue:f,getTagDisplayValue:h,makeTag:p,ref:a.setTagsInputRef,
onInputChange:a.onInputChange,onChange:g})},a.state={inputValue:""},a}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.suggestions,n=e.getSuggestionValue,i=e.renderSuggestion,r=e.suggestionsFilter,s=e.shouldRenderSuggestions,l=e.theme,c=e.onSuggestionsClearRequested,u=e.onSuggestionsFetchRequested,d=this.state.inputValue;return a()(y.a,{suggestions:t.filter(function(e){return r(e,d)}),shouldRenderSuggestions:s,getSuggestionValue:n,renderSuggestion:i,
focusInputOnSuggestionClick:!1,highlightFirstSuggestion:!0,inputProps:{value:d,onChange:function(e,t){t.newValue;"enter"===t.method&&e.preventDefault()}},theme:o()({input:S.a.input},l),inputComponent:this.renderInputComponent,onSuggestionSelected:this.onSuggestionSelected,onSuggestionsClearRequested:c,onSuggestionsFetchRequested:u})},t}(g.Component);M.defaultProps={className:S.a.tagsInput,suggestions:[],value:[],shouldRenderSuggestions:function(){return!1}},t.a=M},function(e,t,n){"use strict"
;function i(e){return d.a.createElement("input",l()({type:"text"},e))}function a(e){var t=e.inputComponent,n=e.suggestionsComponent,i=e.theme,a=o()(e,["inputComponent","suggestionsComponent","theme"]);return d.a.createElement(h.a,l()({},a,{renderInputComponent:t,renderSuggestionsContainer:n,theme:l()({},v.a,i)}))}var r=n(12),o=n.n(r),s=n(6),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(1682),h=n.n(p),f=(n(1681),n(4314)),v=n.n(f);a.defaultProps={inputComponent:i},t.a=a},,,,,,,,,,,,function(e,t){
e.exports={container:"AutosuggestInput-container-20ylX",input:"AutosuggestInput-input-1--lB",suggestionsContainer:"AutosuggestInput-suggestionsContainer-3jInG Scroller-scroller-3GqQc Scroller-vertical-VScFL MenuContainer-menu-2OAQT",containerOpen:"AutosuggestInput-containerOpen-13PxW",suggestionsList:"AutosuggestInput-suggestionsList-2NO4y",suggestion:"AutosuggestInput-suggestion-1Q-8m MenuItem-menuItem-1s02m",suggestionHighlighted:"AutosuggestInput-suggestionHighlighted-3YxSr"}
},function(e,t,n){"use strict";function i(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function a(e){var t=e.inputRef,n=(e.addTag,v()(e,["inputRef","addTag"]));return y.a.createElement("input",h()({type:"text",ref:t},n))}function r(e){return e.split(" ").map(function(e){return e.trim()})}var o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(12),v=n.n(f),g=n(1),m=(n.n(g),
n(0)),y=n.n(m),b=n(10),I=n.n(b),S=n(373),M=n(4316),D=n(4318),C=n.n(D),j=function(e){function t(n,a){s()(this,t);var r=c()(this,e.call(this,n,a));return r.addTag=function(e){return r._addTags([e])},r.setInputRef=function(e){r.inputRef=e},r.setDivRef=function(e){r.divRef=e},r.onPaste=function(e){var t=r.props,n=t.addOnPaste,a=t.pasteSplit,o=t.makeTag;if(n){e.preventDefault();var s=i(e),l=a(s).map(function(e){return o(e)});r._addTags(l)}},r.onKeyDown=function(e){var t=r.props.inputProps.onKeyDown
;if(t&&t(e),!e.defaultPrevented){var n=r.props,i=n.value,a=n.removeKeys,o=n.addKeys,s=n.inputValue,l=s,c=""===l,u=e.keyCode,d=-1!==o.indexOf(u),p=-1!==a.indexOf(u);if(d){(r._accept()||u===S.d)&&e.preventDefault()}p&&i.length>0&&c&&(e.preventDefault(),r._removeTag(i.length-1))}},r.onClick=function(e){e.target===r.divRef&&(r.inputRef&&"function"==typeof r.inputRef.focus&&r.inputRef.focus(),r.onFocus())},r.onChange=function(e){
var t=r.props.onInputChange,n=r.props.inputProps.onChange,i=e.target.value;n&&n(e),t(i)},r.onFocus=function(e){var t=r.props.inputProps.onFocus;t&&t(e),r.setState({isFocused:!0})},r.onBlur=function(e){var t=r.props.inputProps.onBlur;if(r.setState({isFocused:!1}),null!=e&&(t&&t(e),r.props.addOnBlur)){var n=r.props.makeTag(e.target.value);r._addTags([n])}},r.onRemove=function(e){r._removeTag(e)},r.state={isFocused:!1},r}return d()(t,e),t.prototype._removeTag=function(e){
var t=this.props.value.slice(0);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}},t.prototype._clearInput=function(){this.props.onInputChange("")},t.prototype._addTags=function(e){var t=this.props,n=t.validationRegex,i=t.onlyUnique,a=t.maxTags,r=t.value,o=t.getTagValue,s=t.onChange,l=t.onValidationReject,c=void 0;if(i&&(e=I.a.uniq(e,function(e){return o(e)})),n&&(c=e.filter(function(e){return!n.test(o(e))}),e=e.filter(function(e){return n.test(o(e))})),
e=e.filter(function(e){var t=o(e);return t?t.trim().length>0:t}),a>=0){var u=Math.max(a-r.length,0);e=e.slice(0,u)}if(l&&c&&c.length>0&&l(c),e.length>0){for(var d=r.concat(e),p=[],h=0;h<e.length;h++)p.push(r.length+h);i&&(d=I.a.uniq(d,function(e){return o(e)}));var f=d.length!==r.length;return f&&s(d,e,p),this._clearInput(),f}return this._clearInput(),!1},t.prototype._accept=function(){var e=this.props.inputValue;return""!==e&&(e=this.props.makeTag(e),this._addTags([e]))},
t.prototype.inputProps=function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,v()(e,["onChange","onFocus","onBlur"])),n=h()({className:C.a.input,placeholder:""},t);return this.props.isDisabled&&(n.isDisabled=!0),n},t.prototype.render=function(){
var e=this,t=this.props,n=t.className,i=t.errorClassName,a=t.focusedClassName,r=t.hasError,o=t.value,s=t.inputValue,l=t.getTagValue,c=t.getTagDisplayValue,u=t.tagProps,d=t.tagComponent,p=t.inputComponent,f=t.isDisabled,v=this.state.isFocused;return y.a.createElement("div",{className:(n||"")+" "+(v&&a||"")+" "+(r&&i||""||""),ref:this.setDivRef,onClick:this.onClick},o.map(function(t,n){return y.a.createElement(d,h()({key:l(t)+"-"+n,index:n,tagCount:o.length,tag:t,isDisabled:f,getTagDisplayValue:c,
onRemove:e.onRemove},u))}),y.a.createElement(p,h()({key:"input",inputRef:this.setInputRef,value:s},this.inputProps(),{addTag:this.addTag,onPaste:this.onPaste,onKeyDown:this.onKeyDown,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur})))},t}(m.Component);j.defaultProps={className:C.a.tagsInput,errorClassName:C.a.hasError,addKeys:[S.j,S.d],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[S.a],inputComponent:a,tagComponent:M.a,pasteSplit:r,tagProps:{},onlyUnique:!0,maxTags:-1,
validationRegex:null,isDisabled:!1,getTagDisplayValue:function(e){return e},getTagValue:function(e){return e},makeTag:function(e){return e}},t.a=j},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(4317),v=n.n(f),g=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(){
var e=i.props;(0,e.onRemove)(e.index)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.removeClassName,i=e.tag,r=e.iconComponent,o=e.isDisabled,s=e.removeLabel,l=e.getTagDisplayValue;return a()("span",{className:t},void 0,!o&&a()(h.a,{className:n,"aria-label":s,onPress:this.onPress},void 0,a()(r,{name:"plex-icon-remove-560"})),a()("span",{},void 0,l(i)))},t}(p.Component);g.defaultProps={className:v.a.tag,removeClassName:v.a.remove},t.a=g
},function(e,t){e.exports={tag:"TagLabel-tag-2n9WO",remove:"TagLabel-remove-27nEk"}},function(e,t){e.exports={tagsInput:"TagsInput-tagsInput-2eRCn",input:"TagsInput-input-3KDPb",hasError:"TagsInput-hasError-22oXC input-hasError-1to6Q"}},function(e,t){e.exports={tagsInput:"AutosuggestTagsInput-tagsInput-6yLPX TagsInput-tagsInput-2eRCn",input:"AutosuggestTagsInput-input-ZG-hT TagsInput-input-3KDPb"}},function(e,t,n){"use strict";function i(e){return l.a.createElement(u.a,r()({mask:p,pipe:h,
keepCharPositions:!0,placeholder:d},e))}var a=n(6),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(1683),u=(n.n(c),n(1684)),d="yyyy-mm-dd",p=[/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/],h=Object(c.createAutoCorrectedDatePipe)("yyyy-mm-dd");i.defaultProps={placeholderChar:"\u2000",guide:!1},t.a=i},function(e,t){e.exports={input:"MaskedInput-input-17hU3 TextInput-input-1VMum input-input-1P2Vi",small:"MaskedInput-small-1owiY TextInput-small-2i2et input-small-3LyjJ",
large:"MaskedInput-large-1UpZY TextInput-large-2sz70 input-large-3wNGT",isDisabled:"MaskedInput-isDisabled-3_twg TextInput-isDisabled-3hj7I input-isDisabled-2FiSY",hasError:"MaskedInput-hasError-1kFAT TextInput-hasError-3FVrz input-hasError-1to6Q"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(59),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(255)),g=n(218),m=(n(52),n(4323)),y=n.n(m),b=/^([0-9]+)?([a-zA-Z]+)?$/,I=function(e){function t(n,i){
l()(this,t);var a=u()(this,e.call(this,n,i));return a.onValueChange=function(e){a.setState({inputValue:e},function(){a.props.onChange(""+e+a.state.selectedUnit)})},a.onUnitChange=function(e){a.setState({selectedUnit:e},function(){a.props.onChange(""+a.state.inputValue+e)})},a.state=a.getStateFromProps(n),a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.value!==e.value&&this.setState(this.getStateFromProps(e))},t.prototype.getStateFromProps=function(e){
var t=e.units,n=t[0],i=e.value.match(b)||[],a=i[1],r=void 0===a?"":a,s=i[2];return{inputValue:r,selectedUnit:void 0===s?o()(n)[0]:s}},t.prototype.render=function(){var e=this.props,t=e.textInputClassName,n=e.selectInputClassName,i=e.units,r=e.size;return a()("span",{className:y.a.inputs},void 0,a()(g.a,{name:"unitValue",className:t,type:"number",value:this.state.inputValue,size:r,onChange:this.onValueChange}),a()(v.a,{name:"unit",className:n,value:this.state.selectedUnit,values:i,size:r,
onChange:this.onUnitChange}))},t}(f.Component);t.a=I},function(e,t){e.exports={inputs:"UnitInput-inputs-1Fc89",textInput:"UnitInput-textInput-QSuLW TextInput-input-1VMum input-input-1P2Vi"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(3),v=n(26),g=n(4325),m=n.n(g),y=a()(v.a,{name:"plex-icon-remove-560"}),b=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onRemovePress=function(){i.props.onRemove(i.props.index)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.tag,n=e.index,i=e.tagCount,r=e.isDisabled,o=e.getTagDisplayValue;return a()("span",{className:m.a.container},void 0,a()("span",{className:m.a.tag},void 0,!r&&a()(h.a,{className:m.a.remove,"aria-label":Object(f.default)("Remove Tag"),
onPress:this.onRemovePress},void 0,y),a()("span",{},void 0,o(t))),a()("span",{className:m.a.or},void 0,n!==i-1&&Object(f.default)("or")))},t}(p.Component);t.a=b},function(e,t){e.exports={container:"LibraryFilterBuilderRowTag-container-2eCig",tag:"LibraryFilterBuilderRowTag-tag-3tEm1",remove:"LibraryFilterBuilderRowTag-remove-3WifL TagLabel-remove-27nEk",or:"LibraryFilterBuilderRowTag-or-2CPm8"}},function(e,t){e.exports={container:"LibraryFilterBuilderRow-container-2QVqa",
rules:"LibraryFilterBuilderRow-rules-3enme",rule:"LibraryFilterBuilderRow-rule-2bAya",tagsInput:"LibraryFilterBuilderRow-tagsInput-1zILx AutosuggestTagsInput-tagsInput-6yLPX TagsInput-tagsInput-2eRCn",textInput:"LibraryFilterBuilderRow-textInput-3yZ-z TextInput-input-1VMum input-input-1P2Vi",unitTextInput:"LibraryFilterBuilderRow-unitTextInput-38LP9 UnitInput-textInput-QSuLW TextInput-input-1VMum input-input-1P2Vi",
selectInput:"LibraryFilterBuilderRow-selectInput-gFMEG SelectInput-input-x1tNm input-input-1P2Vi",value:"LibraryFilterBuilderRow-value-3DsOS",buttons:"LibraryFilterBuilderRow-buttons-3m5pt",iconButton:"LibraryFilterBuilderRow-iconButton-1L9m0",iconButtonDisabled:"LibraryFilterBuilderRow-iconButtonDisabled-1LPOD LibraryFilterBuilderRow-iconButton-1L9m0"}},function(e,t){e.exports={container:"LibraryFilterBuilder-container-1ep_x",
loadingContainer:"LibraryFilterBuilder-loadingContainer-c77Me LibraryFilterBuilder-container-1ep_x",footer:"LibraryFilterBuilder-footer-3W2q0",settings:"LibraryFilterBuilder-settings-okmbX",checkInput:"LibraryFilterBuilder-checkInput-B0ck9 InlineInputGroupFormLabel-label-3jkhB FormLabel-label-2aLJ9",numberInput:"LibraryFilterBuilder-numberInput-1vwc6 InlineNumberInputGroup-input-uLbRb TextInput-input-1VMum input-input-1P2Vi",buttons:"LibraryFilterBuilder-buttons-3PEDF",
button:"LibraryFilterBuilder-button-36Leq Button-button-2kT68 Link-link-2n0yJ"}},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(function(e,t){return t.selectedDirectory},function(e,t){return t.folderKey},function(e,t){return t.folderTitle},function(e,t){return t.parentFolderKey},function(e,t){return t.parentFolderTitle},d.a,u.a,function(e,t,n,i,a,r,o){var s=e.key,l={folderKey:i,folderTitle:a};if(!i){var c=s+"/folder";if(c===t)return null;l.folderKey=c,
l.folderTitle=e.title}return Object(v.a)(r,o,s,l)})}function a(){return Object(o.createSelector)(function(e,t){return t.listType},function(e,t){return t.libraryDirectories},d.a,u.a,Object(s.a)(),l.a,Object(c.a)(),i(),function(e,t,n,i,a,r,o,s){var l=Object(h.a)(e,null,p.b,i),c={key:"folder"},u=Object(f.a)({type:e,server:n,provider:i,libraryKey:a,libraryDirectories:t});return{parentRoute:s,size:o.totalSize||o.metadataItems.length,metadataTypes:r,metadataPseudoTypes:u,selectedType:c,allListStyles:l
}})}var r=n(11),o=n(4),s=(n.n(o),n(226)),l=n(331),c=n(132),u=n(39),d=n(53),p=n(33),h=n(410),f=n(754),v=n(150),g=n(4329);t.a=Object(r.connect)(a)(g.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(219)),f=n(242),v=n(131),g=n(151),m=n(117),y=n(47),b=n(3),I=(n(33),n(165)),S=(n(68),n(494)),M=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTypesMenuButtonPress=function(e){
a.setState({isTypesMenuOpen:!a.state.isTypesMenuOpen})},a.onTypesMenuClose=function(){a.setState({isTypesMenuOpen:!1})},a.state={isTypesMenuOpen:!1},a._typesMenuButtonID=Object(y.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.selectedDirectory,n=e.folderTitle,i=e.parentFolderTitle,r=e.parentRoute,o=e.size,s=e.listType,l=e.listContext,c=e.listStyle,u=e.metadataTypes,d=e.metadataPseudoTypes,p=e.selectedType,y=e.allListStyles,M=this.state.isTypesMenuOpen
;return a()(h.a,{},void 0,a()(g.a,{},void 0,a()(v.a,{id:this._typesMenuButtonID,title:Object(b.default)("Folders"),hasMenu:!0,isMenuOpen:M,onPress:this.onTypesMenuButtonPress}),a()(S.a,{target:this._typesMenuButtonID,isOpen:M,types:u,pseudoTypes:d,selectedType:p,activeFilters:[],onMenuClose:this.onTypesMenuClose}),!!r&&a()(v.a,{title:i||t.title,hasMenu:!1,to:r}),a()(v.a,{title:n}),a()(f.a,{},void 0,o)),a()(m.a,{},void 0,a()(I.a,{listType:s,listContext:l,selectedListStyle:c,allListStyles:y})))},t
}(p.Component);t.a=M},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,a=e.metadataItemEntityIDs,o=e.totalSize,s=e.isPending,p=e.isPopulated,h=e.error,f=e.typeKey,v=e.activeFilters,g=e.activeSort,m=e.listType,y=e.isFolder,b=e.isLibraryRefreshing,I=o||a.length;return s||p&&I?l.a.createElement(u.a,e):r()(c.a,{},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,providerIdentifier:i,error:h,typeKey:f,activeFilters:v,activeSort:g,
listType:m,isFolder:y,isLibraryRefreshing:b}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=(n(100),n(157)),u=n(1636),d=n(4331);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,a=e.error,o=e.typeKey,s=e.activeFilters,l=e.activeSort,b=e.listType,I=e.isFolder,S=e.isLibraryRefreshing,M=p.a[b];return a?r()(m.a,{title:Object(h.default)("There was an unexpected error loading this library")
}):c.a.isEmpty(s)?d.c.test(i)?r()(v.a,{serverEntityID:t,providerEntityID:n}):S?r()(g.a,{icon:M,title:Object(h.default)("Libraries are currently being updated"),description:Object(h.default)("Hang tight while we look for your content")}):r()(g.a,{icon:M,title:I?Object(h.default)("There are no items in this folder"):Object(h.default)("There are no items in this library")}):r()(g.a,{icon:M,title:Object(h.default)("The active filter has no matches"),
description:Object(h.default)("Use the menu above to change the active filter")},void 0,r()(u.a,{to:Object(f.a)({typeKey:o,sort:l}),kind:y.b.PRIMARY},void 0,Object(h.default)("Clear filter")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(10)),c=n.n(l),u=n(20),d=n(41),p=n(550),h=n(3),f=(n(100),n(295)),v=n(587),g=n(208),m=n(332),y=n(24);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.listType},function(e,t){return t.listSubtype
},function(e,t){return t.listStyle},function(e,t){return t.libraryDirectories},Object(h.a)(),p.a,Object(o.a)(),Object(d.a)(),c.a,Object(u.a)(),Object(l.a)(),Object(v.a)(),Object(s.a)(),function(e,t,n,i,a,r,o,s,l,c,u,d,p){var h=Object(g.a)(e,t,f.b,r);return{server:a,provider:r,directories:s,metadataTypes:l,metadataPseudoTypes:Object(m.a)({type:e,server:a,provider:r,libraryKey:o,libraryDirectories:i}),selectedType:u,selectedFilterTitle:d,selectedSort:p,listType:e,listStyle:n,allListStyles:h,
totalSize:c.totalSize}})}var a=n(11),r=n(4),o=(n.n(r),n(226)),s=n(752),l=n(263),c=n(331),u=n(132),d=n(409),p=n(39),h=n(35),f=n(33),v=n(1686),g=n(410),m=n(754),y=n(4333);t.a=Object(a.connect)(i)(y.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(219)),f=n(242),v=n(131),g=n(151),m=n(117),y=n(47),b=n(28),I=n(3),S=(n(33),n(100),n(165)),M=n(1063),D=n(488),C=n(585),j=(n(68),n(99),n(140),
n(1687)),P=n(1688),O=n(494),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onDirectoriesMenuButtonPress=function(e){a.setState({isDirectoriesMenuOpen:!a.state.isDirectoriesMenuOpen})},a.onDirectoriesMenuClose=function(){a.setState({isDirectoriesMenuOpen:!1})},a.onFiltersMenuButtonPress=function(e){a.setState({isFiltersMenuOpen:!a.state.isFiltersMenuOpen})},a.onFiltersMenuClose=function(){a.setState({isFiltersMenuOpen:!1})},
a.onTypesMenuButtonPress=function(e){a.setState({isTypesMenuOpen:!a.state.isTypesMenuOpen})},a.onTypesMenuClose=function(){a.setState({isTypesMenuOpen:!1})},a.onSortsMenuButtonPress=function(e){a.setState({isSortsMenuOpen:!a.state.isSortsMenuOpen})},a.onSortsMenuClose=function(){a.setState({isSortsMenuOpen:!1})},a.state={isDirectoriesMenuOpen:!1,isFiltersMenuOpen:!1,isTypesMenuOpen:!1,isSortsMenuOpen:!1},a._directoriesMenuButtonID=Object(y.a)(),a._filtersMenuButtonID=Object(y.a)(),
a._sortsMenuButtonID=Object(y.a)(),a._typesMenuButtonID=Object(y.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.listType,o=e.listSubtype,s=e.listContext,l=e.listStyle,c=e.server,u=e.provider,d=e.directories,p=e.selectedDirectory,y=e.typeKey,b=e.activeFilters,T=e.activeFilterLabel,E=e.activeSort,w=e.activeLimit,A=e.metadataTypes,x=e.metadataPseudoTypes,N=e.selectedType,L=e.selectedFilterTitle,k=e.selectedSort,R=e.customFilter,z=e.totalSize,U=e.showSortsMenu,B=e.allListStyles,F=this.state,_=F.isDirectoriesMenuOpen,V=F.isFiltersMenuOpen,H=F.isTypesMenuOpen,Q=F.isSortsMenuOpen,Y=!c.isCloud&&!u.isLibraryProvider&&d.length>1,G=!!N&&N.filters.length>0,W=!!N&&A.length+x.length>0,K=!!(U&&k&&N.sorts.length>1)
;return a()(h.a,{},void 0,a()(g.a,{},void 0,Y&&a()(v.a,{id:this._directoriesMenuButtonID,title:p.title,hasMenu:!0,isMenuOpen:_,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),Y&&a()(C.a,{target:this._directoriesMenuButtonID,isOpen:_,server:c,provider:u,directories:d,selectedDirectory:p,onMenuClose:this.onDirectoriesMenuClose}),G&&a()(v.a,{id:this._filtersMenuButtonID,title:L,hasMenu:!0,isMenuOpen:V,onPress:this.onFiltersMenuButtonPress}),G&&a()(j.a,{serverEntityID:t,providerEntityID:n,
target:this._filtersMenuButtonID,isOpen:V,typeKey:y,activeFilters:b,activeFilterLabel:T,activeSort:E,selectedType:N,showCustomFilter:!!u.features.queryParser,onMenuClose:this.onFiltersMenuClose}),W&&a()(v.a,{id:this._typesMenuButtonID,title:N.title,hasMenu:A.length+x.length>1,isMenuOpen:H,onPress:this.onTypesMenuButtonPress}),W&&a()(O.a,{target:this._typesMenuButtonID,isOpen:H,types:A,pseudoTypes:x,activeFilters:b,activeSort:E,activeLimit:w,customFilter:R,selectedType:N,
onMenuClose:this.onTypesMenuClose}),K&&a()(v.a,{id:this._sortsMenuButtonID,title:Object(I.default)("By {sortTitle}",{sortTitle:k.title}),hasMenu:!0,isMenuOpen:Q,onPress:this.onSortsMenuButtonPress}),K&&a()(P.a,{target:this._sortsMenuButtonID,isOpen:Q,typeKey:y,activeFilters:b,activeFilterLabel:T,activeSort:E,activeLimit:w,customFilter:R,sorts:N.sorts,selectedSort:k,onMenuClose:this.onSortsMenuClose}),a()(f.a,{},void 0,z)),a()(m.a,{},void 0,a()(D.a,{serverEntityID:t,providerEntityID:n,
metadataListEntityID:i,listType:r,selectedType:N,isLibraryList:!0}),a()(M.a,{selectedListStyle:l,allListStyles:B}),a()(S.a,{listType:r,listSubtype:o,listContext:s,selectedListStyle:l,allListStyles:B})))},t}(p.Component);T.defaultProps={showSortsMenu:!0},t.a=T},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(function(e,t){return t.activeFilters},function(e,t){return t.selectedType},function(e){return e.ui.libraryPage.selectedFilterKey},function(e){
return e.ui.libraryPage.filterOptionQuery},function(e){return e.ui.libraryPage.selectedFilterOptions},function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=t&&t.filters,s=l.a.findWhere(o,{key:n}),u=a;if(i){var d=i.trim().toLowerCase();u=u.filter(function(e){return e.title.toLowerCase().indexOf(d)>-1})}if(s){var p=e.filter(function(e){return e.key===s.filter}),h=u.reduce(function(e,t){var n=Object(c.a)(p,t.value);return(n?e.selected:e.unselected).push(r()({},t,{
isSelected:n})),e},{selected:[],unselected:[]});u=h.selected.concat(h.unselected)}return u})}t.a=i;var a=n(6),r=n.n(a),o=n(4),s=(n.n(o),n(10)),l=n.n(s),c=n(1669)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(56),v=n(439),g=(n(100),n(24)),m=n(4336),y=n(1667),b=n(4338),I=n.n(b),S={scrollDirection:g.d.NONE},M=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onFiltersListMeasure=function(e){var t=e.height;a.setState({isMeasured:!0,filterOptionsHeight:Math.max(t,a.props.minHeight)})},a.state={isMeasured:!1,filterOptionsHeight:"auto"},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.target,n=e.isOpen,i=e.typeKey,r=e.activeFilters,o=e.activeFilterLabel,s=e.activeSort,l=e.filters,c=e.selectedFilter,u=e.filterOptions,d=e.filterOptionQuery,p=e.showSpinner,b=e.showError,M=e.showSearchInput,D=e.showCustomFilter,C=e.onFilterSelect,j=e.onFilterDeselect,P=e.onSearch,O=e.onMenuClose,T=this.state,E=T.isMeasured,w=T.filterOptionsHeight,A=!!c&&!p&&E;return a()(f.a,{target:t,isOpen:n,size:g.e.LARGE,scrollerProps:S,onMenuClose:Object(v.a)(j,O)},void 0,a()(h.a,{
className:(I.a.panesContainer||"")+" "+(A&&I.a.showFilterOptions||""||""),ignoreWidth:!0,ignorePosition:!0,ignoreTransforms:!0,onMeasure:this.onFiltersListMeasure},void 0,a()(y.a,{className:I.a.filtersPane,typeKey:i,activeFilters:r,activeFilterLabel:o,activeSort:s,filters:l,selectedFilter:c,showSpinner:p,showCustomFilter:D,onFilterSelect:C}),A&&a()(m.a,{className:I.a.filterOptionsPane,style:{height:w},typeKey:i,activeFilters:r,activeSort:s,selectedFilter:c,filterOptions:u,filterOptionQuery:d,
showError:b,showSearchInput:M,onFilterDeselect:j,onSearch:P})))},t}(p.Component);M.defaultProps={minHeight:385},t.a=M},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.style,i=e.typeKey,a=e.activeFilters,o=e.activeSort,s=e.selectedFilter,d=e.filterOptions,b=e.filterOptionQuery,M=e.showError,D=e.showSearchInput,C=e.onFilterDeselect,j=e.onSearch,P=s.filter;return r()("div",{className:t,style:n,"data-qa-id":"secondFiltersList"},void 0,r()("div",{className:I.a.header,
"data-qa-id":"filterHeader"},void 0,r()("div",{className:I.a.headerTitle},void 0,r()(c.a,{"data-qa-id":"previousFilters",onPress:C},void 0,r()(g.a,{className:I.a.backIcon,name:"plex-icon-hub-prev-560","aria-label":Object(v.default)("Back")})),r()("span",{className:I.a.filterText},void 0,s.title)),D&&r()(u.a,{className:I.a.searchInput,name:"filterOptionQuery",placeholder:Object(v.default)("Filter {filterTitle}",{filterTitle:s.title}),value:b,onChange:j})),S,r()(l.a,{
className:D?I.a.filterOptionsWithSearchScroller:I.a.filterOptionsScroller,autoScroll:!0},void 0,M&&r()("div",{className:I.a.emptyText},void 0,Object(v.default)("Unable to load options")),!M&&!d.length&&r()("div",{className:I.a.emptyText},void 0,Object(v.default)("No options")),d.map(function(e){var t=e.value,n=e.title,s=e.isSelected,l=decodeURIComponent(t);return r()(y.a,{className:I.a.filterOptionMenuItem,to:Object(m.a)({typeKey:i,filters:s?Object(f.a)(a,P,l):Object(p.a)(a,P,{value:l,type:h.b
}),filterLabel:s?void 0:n,sort:o}),isSelected:s},t,n)})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(20),u=n(218),d=n(284),p=n(1668),h=n(333),f=n(1670),v=n(3),g=n(26),m=(n(100),n(295)),y=n(103),b=n(4337),I=n.n(b),S=r()(d.a,{});t.a=i},function(e,t){e.exports={header:"LibraryFilterOptionsList-header-JO56l",headerTitle:"LibraryFilterOptionsList-headerTitle-21Ewq",backIcon:"LibraryFilterOptionsList-backIcon-15GqT",filterText:"LibraryFilterOptionsList-filterText-ys_NH",
searchInput:"LibraryFilterOptionsList-searchInput-3YaUS TextInput-input-1VMum input-input-1P2Vi",filterOptionsScroller:"LibraryFilterOptionsList-filterOptionsScroller-1TXk8 Scroller-vertical-VScFL",filterOptionsWithSearchScroller:"LibraryFilterOptionsList-filterOptionsWithSearchScroller-3ARHU LibraryFilterOptionsList-filterOptionsScroller-1TXk8 Scroller-vertical-VScFL",filterOptionMenuItem:"LibraryFilterOptionsList-filterOptionMenuItem-3bhER MenuItem-menuItem-1s02m",
emptyText:"LibraryFilterOptionsList-emptyText-1SzoY"}},function(e,t){e.exports={panesContainer:"LibraryFiltersMenu-panesContainer-2wE6-",pane:"LibraryFiltersMenu-pane-13lnR",filtersPane:"LibraryFiltersMenu-filtersPane-367id LibraryFiltersMenu-pane-13lnR",filterOptionsPane:"LibraryFiltersMenu-filterOptionsPane-sYfFI LibraryFiltersMenu-pane-13lnR",showFilterOptions:"LibraryFiltersMenu-showFilterOptions-PvLk-"}},function(e,t,n){"use strict";function i(e){
var t=e.firstCharacters,n=e.viewportHeight,i=e.onJumpBarItemPress,a={height:n+"px"},o=Math.floor(n/m),l=Object(d.a)(t,o);return s()("div",{className:g.a.jumpBar,style:a},void 0,l.map(function(e,t){return u.a.createElement(f.a,r()({key:t},e,{onPress:i}))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(4340),p=n(46),h=n.n(p),f=n(4342),v=n(4344),g=n.n(v),m=parseInt(h.a.jumpBarCharacterHeight,10);t.a=i},function(e,t,n){"use strict";function i(e,t){
return e&&e.length&&t>0?r.a.sortBy(Object(o.a)(e,t),"position"):[]}t.a=i;var a=n(10),r=n.n(a),o=n(4341)},function(e,t,n){"use strict";function i(e,t){var n=[r.a.first(e),r.a.last(e)],i=r.a.sortBy(e,"size").reverse();return r.a.union(n,i).slice(0,t)}t.a=i;var a=n(10),r=n.n(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(28),v=n(4343),g=n.n(v),m=function(e){function t(){var n,i,a;o()(this,t)
;for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){i.props.onPress(i.props.scrollIndex)},a=n,l()(i,a)}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){return a()(h.a,{className:g.a.character,"data-qa-id":"jumpBarCharacter",onPress:this.onPress},void 0,this.props.title)},t}(p.Component);t.a=m},function(e,t){e.exports={
character:"LibraryPageJumpBarCharacter-character-2Hr4E"}},function(e,t){e.exports={jumpBar:"LibraryPageJumpBar-jumpBar-22VKU"}},function(e,t){e.exports={attribution:"LibraryPage-attribution-f51hr ProgramGuideAttribution-attribution-3Ca_I"}},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(function(e){return e.ui.timelinePage},S,p.a,Object(d.a)(),Object(c.a)(),Object(u.a)(),y.a,Object(m.a)(),h.a,function(e,t,n,i,a,r,o,s,l){
var c=e.details,u=e.containerKey,d=e.isMomentListPending,p=e.isMomentListPopulated,h=e.momentListError,f=Object(b.a)(n,i,a,{save:1});return{libraryKey:a,metadataListEntityID:e.metadataList,providerIdentifier:i.identifier,providerMetricsIdentifier:i.metricsIdentifier,librarySectionID:c&&c.librarySectionID,libraryDirectories:c&&c.directories,libraryRoute:f,metadataTypes:c?c.types:[],moments:t,isMomentListPending:d,isMomentListPopulated:p,momentListError:h,containerKey:u,momentKey:r,
activeSelectionType:o.activeSelectionType,disableReloadThreshold:!!o.activeSelectionType,isLibraryRefreshing:s,columnAdjustment:l.columnAdjustment}})}function a(e,t){return{onLibraryChange:function(n,i){e(Object(v.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},onCloseTimelinePage:function(){e(g.a({}))}}}function r(e){var t=e.ui.timelinePage;return{serverEntityID:t.serverEntityID,
providerEntityID:t.providerEntityID,momentKey:t.momentKey}}function o(e,t){e(g.b({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,libraryKey:t.libraryKey,momentKey:t.momentKey})),e(g.c())}var s=n(11),l=n(4),c=(n.n(l),n(226)),u=n(4347),d=n(54),p=n(53),h=n(72),f=n(133),v=n(93),g=n(1690),m=n(464),y=n(76),b=n(150),I=n(4348),S=Object(l.createSelector)(function(e){return e.ui.timelinePage.momentList},function(e){if(!e)return[];var t=0;return e.moments.map(function(e){var n=t
;t+=e.size;var i=e.id,a=e.title,r=e.size,o=e.avgAR,s=e.startsAt,l=e.size*(e.avgAR||1);return{start:n,end:t,area:l,id:i,title:a,size:r,avgAR:o,startsAt:s}})}),M=Object(f.a)(I.a,r,o),D=Object(s.connect)(i,a)(M);t.a=D},function(e,t,n){"use strict";function i(){return Object(a.a)("cluster?clusterZoomLevel=1")}t.a=i;var a=n(751)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(67)),f=n(20),v=n(160),g=n(30),m=n(3),y=n(31),b=n(92),I=n(85),S=n(127),M=n(203),D=n(487),C=n(24),j=n(68),P=n(4349),O=n(4360),T=n(4362),E=n.n(T),w=a()(I.a,{},void 0,a()(y.a,{})),A=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,width:t,height:n})},a.onMomentScrollIndexChange=function(e){a.setState({currentMomentTitle:a.props.moments[e].title})},a.state={isMeasured:!1,currentMomentTitle:"",
width:0,height:0},a}return u()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null),this.props.onCloseTimelinePage()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.providerMetricsIdentifier,r=e.selectedDirectory,o=e.libraryDirectories,s=e.metadataTypes,l=e.metadataListEntityID,c=e.isMomentListPending,u=e.isMomentListPopulated,d=e.momentListError,p=e.moments,y=e.libraryRoute,I=e.activeSelectionType,T=e.columnAdjustment,A=this.state,x=A.isMeasured,N=A.width,L=A.height,k=A.currentMomentTitle,R=200-100*T,z=12+T,U=Math.min(Math.ceil(N/R),z);return u?a()(b.a,{metricsPage:g.F,metricsProperties:{
identifier:i,mode:"timeline",type:"photo",style:j.b},allowBackgroundLightPreset:!0,scrollDirection:C.d.NONE},void 0,I?a()(D.a,{serverEntityID:t,providerEntityID:n}):a()(O.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:l,metadataTypes:s,libraryRoute:y,libraryDirectories:o,title:k,selectedDirectory:r}),a()(h.a,{className:E.a.measured,ignorePosition:!0,onMeasure:this.onMeasure},void 0,x&&a()(P.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:l,moments:p,columns:U,height:L,
onMomentScrollIndexChange:this.onMomentScrollIndexChange}))):c?w:d?a()(M.a,{title:Object(m.default)("There was an unexpected error loading this library")}):a()(S.a,{title:Object(m.default)("There was an error loading the timeline for this library"),description:Object(m.default)("The photos timeline requires Plex Media Server {version} or higher",{version:v.a.itemClusters})},void 0,a()(f.a,{to:y,kind:C.b.PRIMARY},void 0,Object(m.default)("Browse by Type")))},t}(p.Component);t.a=A
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(550),g=n(3),m=n(1691),y=n(1693),b=n(1697),I=n(157),S=n(208),M=n(1698),D=n(46),C=n.n(D),j=n(4359),P=n.n(j),O=Math.max(0,parseInt(C.a.timelineGutter,10)-40),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onListUpdate=function(e){var t=e.landmarks,n=e.listStyle&&e.listStyle.height;if(t!==a._landmarks){
a._landmarks=t;var i=f.a.pluck(a.props.moments,"startsAt"),r=Object(M.a)(t,i);a.setState({ticks:r,listHeight:n})}},a.state={ticks:null,listHeight:null},a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.moments,o=e.columns,s=e.height,l=e.onMomentScrollIndexChange,c=this.state,u=c.ticks,d=c.listHeight,p=1/s,h=d&&d>s;return r.length?a()("div",{className:P.a.container},void 0,a()(b.a,{className:P.a.stack,
scrollerClassName:P.a.scroller,serverEntityID:t,providerEntityID:n,metadataListEntityID:i,scrollPositionStorageKey:"TimelinePageContent",keyPropName:"id",items:r,size:r.length,columns:o,footerHeight:59,listPadding:55,listGutter:O,hasNestedList:!0,cellComponent:y.a,onListScrollIndexChange:l,onListUpdate:this.onListUpdate}),a()("div",{className:P.a.adornment},void 0,u&&h&&a()(m.a,{pixelProportion:p,ticks:u}))):a()(I.a,{},void 0,a()(S.a,{icon:v.a.photo,
title:Object(g.default)("There are no events in this library")}))},t}(p.Component);t.a=T},function(e,t,n){"use strict";function i(e){var t=e.items,n=e.gap,i=void 0===n?0:n,a=e.existingItems,o=void 0===a?[]:a,s=r.a.sortBy(o,"position"),l=r.a.sortBy(t,"position"),c=-1/0;return l.forEach(function(e){var t=r.a.sortedIndex(o,e,"position"),n=o[t-1],a=o[t],l=e.position>c+i,u=!n||e.position>n.position+i,d=!a||e.position<a.position-i;l&&u&&d&&(s.push(e),c=e.position)}),r.a.sortBy(s,"position")}t.a=i
;var a=n(10),r=n.n(a)},function(e,t){e.exports={container:"TickMarks-container-Dsw5z",ticks:"TickMarks-ticks-3rrhG",tick:"TickMarks-tick-S3qkF",minor:"TickMarks-minor-1EIQq TickMarks-tick-S3qkF",major:"TickMarks-major-2GXoi TickMarks-tick-S3qkF",label:"TickMarks-label-2qQML"}},function(e,t,n){"use strict";function i(e){return e>=5&&e<9}t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(91)),f=n(237),v=n(154),g=n(459),m=n(1694),y=n(1695),b=n(1696),I=n(155),S=n(4356),M=n.n(S),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSelectPress=function(){var e=a.props,t=e.isSelected,n=e.items,i=e.onSelectItems,r=e.onDeselectItems;t?r(n):i(n)},a.state={layout:a._createLayout(n),cellRenderer:a._createCellRenderer(n)},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){
var t=e.aspectRatios!==this.props.aspectRatios,n=e.columns!==this.props.columns,i=e.viewportWidth!==this.props.viewportWidth,a=e.viewportHeight!==this.props.viewportHeight,r=e.serverEntityID!==this.props.serverEntityID,o=e.providerEntityID!==this.props.providerEntityID,s=e.metadataListEntityID!==this.props.metadataListEntityID,l=t||n||a||i,c=r||o||s;if(l||c){var u={};l&&(u.layout=this._createLayout(e)),c&&(u.cellRenderer=this._createCellRenderer(e)),this.setState(u)}},
t.prototype._createLayout=function(e){var t=Object(b.a)({aspectRatios:e.aspectRatios,columns:e.columns});return Object(y.a)({columns:e.columns,rows:t,maximumHeight:e.cellHeight-(e.footerHeight+e.headerHeight)})},t.prototype._createCellRenderer=function(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,r=e.listType;return Object(I.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,containerKey:a,listType:r},m.a)},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.cellX,i=e.cellY,r=e.cellWidth,o=e.cellHeight,s=e.title,l=e.items,c=e.size,u=e.viewportHeight,d=e.scrollTop,p=e.isSelected,v=e.hasSelection,m=this.state,y=m.layout,b=m.cellRenderer;return a()(h.a,{className:t,cellX:n,cellY:i,cellWidth:r,cellHeight:o},void 0,a()("div",{className:(v&&M.a.hasSelection||"")+" "+(M.a.header||"")},void 0,a()("div",{className:M.a.actions},void 0,a()(g.a,{className:M.a.selectButton,title:s,isSelected:p,onPress:this.onSelectPress
})),a()("div",{className:M.a.title},void 0,s)),a()(f.a,{items:l,keyPropName:"metadataItemEntityID",size:c,cellRenderer:b,viewportWidth:r,viewportHeight:u,scrollTop:d-i,layout:y}))},t}(p.Component);D.defaultProps={headerHeight:0,footerHeight:0},t.a=Object(v.a)(D)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(91)),f=n(28),v=n(26),g=n(154),m=n(404),y=n(740),b=n(46),I=n.n(b),S=n(4355),M=n.n(S),D=parseInt(I.a.mosaicCellPadding,10),C=a()(v.a,{name:"plex-icon-clips-560"}),j=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.containerKey,o=e.listType,s=e.metadataKey,l=e.type,c=e.title,u=e.thumb,d=e.cellX,p=e.cellY,f=e.cellWidth,v=e.cellHeight,g=e.showOffscreenPlaceholder,b=e.selectionType,I=e.activeSelectionType,S=e.isSelected,j=e.onSelectItem,P=e.onDeselectItem,O="clip"===l,T="photoalbum"===l,E=!s,w=f-2*D,A=v-2*D;return a()(h.a,{cellX:d,cellY:p,cellWidth:f,cellHeight:v},void 0,a()("div",{className:M.a.photoContainer
},void 0,a()("div",{className:M.a.photo},void 0,a()("div",{className:M.a.image},void 0,E&&a()(y.a,{imageWidth:w,imageHeight:A,isSelected:S}),!E&&a()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,containerKey:r,listType:o,metadataKey:s,type:l,imageUrl:u,imageWidth:w,imageHeight:A,selectionType:b,activeSelectionType:I,isSelected:S,isOffscreen:g,onSelectItem:j,onDeselectItem:P}),O&&a()("div",{className:M.a.badge},void 0,C),T&&a()("div",{className:M.a.title},void 0,c)))))},t
}(p.Component);t.a=Object(g.a)(j)},function(e,t){e.exports={photoContainer:"MetadataPhotoCell-photoContainer-1HkmQ",photo:"MetadataPhotoCell-photo-Po3Kx",image:"MetadataPhotoCell-image-3KqaF",badge:"MetadataPhotoCell-badge-2L0KJ",title:"MetadataPhotoCell-title-OzhEq"}},function(e,t){e.exports={actions:"MetadataMomentCell-actions--ESOo",selectButton:"MetadataMomentCell-selectButton-2JUti SelectButton-selectButton-3Kbjm",title:"MetadataMomentCell-title-RqYT0",
header:"MetadataMomentCell-header-3vgVa",hasSelection:"MetadataMomentCell-hasSelection-3g1dL"}},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(216),v=n(4358),g=n(155),m=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.state={layout:a._createLayout(n)},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){
var t=e.items!==this.props.items,n=e.columns!==this.props.columns;(t||n)&&this.setState({layout:this._createLayout(e)})},t.prototype._createLayout=function(e){return Object(v.a)({columns:e.columns,areas:e.items.map(function(e){return e.area}),innerPaddingTop:e.headerHeight,innerPaddingBottom:e.footerHeight,outerPaddingTop:e.listPadding,outerPaddingRight:e.listPadding-e.listGutter,outerPaddingBottom:e.listPadding,outerPaddingLeft:e.listPadding})},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.columns,o=e.headerHeight,s=e.footerHeight,l=e.cellComponent;return h.a.createElement(f.a,a()({layout:this.state.layout,cellRenderer:Object(g.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,columns:r,headerHeight:o,footerHeight:s},l)},this.props))},t}(p.Component);t.a=m},function(e,t,n){"use strict";function i(e){function t(e,t){return Math.max(1,Math.round(e/a))*t+(d+h)}function n(e){
return c.map(function(n){return t(n,e/a)})}var i=e.columns,a=void 0===i?1:i,o=e.areas,c=void 0===o?[]:o,u=e.innerPaddingTop,d=void 0===u?0:u,p=e.innerPaddingBottom,h=void 0===p?0:p,f=s()(e,["columns","areas","innerPaddingTop","innerPaddingBottom"]);return Object(l.a)(r()({getCellHeights:n},f))}t.a=i;var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1057)},function(e,t){e.exports={container:"TimelinePageContent-container-2lbp-",stack:"TimelinePageContent-stack-2iWVF PageContent-pageContent-16mK6",
adornment:"TimelinePageContent-adornment-1VLRt",scroller:"TimelinePageContent-scroller-3tS5J"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.libraryDirectories},Object(c.a)(),l.a,Object(o.a)(),Object(s.a)(),function(e,t,n,i,a){var r={key:"timeline"},o=Object(u.a)({type:"photo",server:t,provider:n,libraryKey:i,libraryDirectories:e});return{listType:"photo",listStyle:d.b,totalSize:a.totalSize,libraryKey:i,metadataPseudoTypes:o,selectedType:r,
allListStyles:[d.b]}})}var a=n(11),r=n(4),o=(n.n(r),n(226)),s=n(132),l=n(39),c=n(35),u=n(754),d=n(68),p=n(4361);t.a=Object(a.connect)(i)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(219)),f=n(242),v=n(131),g=n(151),m=n(117),y=n(47),b=n(3),I=n(165),S=n(1063),M=n(488),D=n(494),C=(n(68),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTypesMenuButtonPress=function(e){
a.setState({isTypesMenuOpen:!a.state.isTypesMenuOpen})},a.onTypesMenuClose=function(){a.setState({isTypesMenuOpen:!1})},a.state={isTypesMenuOpen:!1},a._typesMenuButtonID=Object(y.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.listType,o=e.listStyle,s=e.title,l=e.totalSize,c=e.libraryRoute,u=e.metadataTypes,d=e.metadataPseudoTypes,p=e.selectedType,y=e.allListStyles,C=this.state.isTypesMenuOpen
;return a()(h.a,{},void 0,a()(g.a,{},void 0,a()(v.a,{id:this._typesMenuButtonID,title:Object(b.default)("Timeline"),hasMenu:!0,isMenuOpen:C,onPress:this.onTypesMenuButtonPress}),a()(D.a,{target:this._typesMenuButtonID,isOpen:C,libraryRoute:c,types:u,pseudoTypes:d,selectedType:p,activeFilters:[],onMenuClose:this.onTypesMenuClose}),a()(v.a,{title:s}),a()(f.a,{},void 0,l)),a()(m.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:r,isLibraryList:!0}),a()(S.a,{
selectedListStyle:o,allListStyles:y}),a()(I.a,{selectedListStyle:o,allListStyles:y})))},t}(p.Component));t.a=C},function(e,t){e.exports={measured:"TimelinePage-measured-3JDcK"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(90),l=n(38),c=n(45),u=n(119),d=n(48),p=n(334),h=n(1633),f=n(164),v=d.a.extend({component:function(e){var t=e.selectedProviderID,n=e.params||{},i=s.a,r=Object(l.a)(c.m,i),d=Object(l.a)(c.k,t,r);return a()(u.a,{metricsContext:n.context
},void 0,a()(o.a,{},void 0,a()(f.a,{selectedProviderEntityID:d}),a()(p.a,{serverEntityID:r,providerEntityID:d},void 0,a()(h.a,{machineIdentifier:i,serverEntityID:r,providerEntityID:d,providerIdentifier:t,listKey:n.key,listTitle:n.title,listType:n.type,listSubtype:n.subtype}))))}});t.a=v},function(e,t,n){"use strict";var i=n(4365),a=n(472),r=n.n(a),o=i.a.extend({className:"container",template:r.a});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n(471),r=a.a.extend({serializeData:function(){
return{title:Object(i.default)("This plugin is not responding.")}}});t.a=r},function(e,t,n){"use strict";var i=n(4367),a=n(472),r=n.n(a),o=i.a.extend({className:"container",template:r.a});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n(471),r=a.a.extend({initialize:function(e){this.type=e.type||"404"},serializeData:function(){var e,t;return"404"===this.type?(e=Object(i.default)("You must be lost."),
t=Object(i.default)("This page doesn't exist.")):"server"===this.type?(e=Object(i.default)("Media server not found."),t=Object(i.default)("The server you're trying to access doesn't seem to exist.")):(e=Object(i.default)("Media not found."),t=Object(i.default)("The media you're trying to access doesn't seem to exist.")),{title:e,subtitle:t}}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n(4369),r=n(472),o=n.n(r),s=a.a.extend({className:"container",template:o.a,serializeData:function(){
return{title:Object(i.default)("You don't have any media servers yet."),subtitle:Object(i.default)("{1}Download and install{2} one and try again.",'<a href="https://plex.tv/downloads" target="_blank">',"</a>")}}});t.a=s},function(e,t,n){"use strict";var i=n(471),a=i.a.extend({});t.a=a},function(e,t,n){"use strict";var i=n(4371),a=n(472),r=n.n(a),o=i.a.extend({className:"container",template:r.a});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n(471),r=a.a.extend({serializeData:function(){
return{title:Object(i.default)("No soup for you!"),subtitle:Object(i.default)("The server you're trying to access doesn't want to let you in. Make sure you're signed in as a user with access to this server.")}}});t.a=r},function(e,t,n){"use strict";var i=n(4373),a=n(472),r=n.n(a),o=i.a.extend({className:"container",template:r.a});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(19),o=n(3),s=n(471),l=s.a.extend({modelEvents:{"change:isResolved":"onResolvedChange"},
serializeData:function(){var e,t,n=this.model,i=n.get("friendlyName");return n.get("cloud")?n.get("isDownForMaintenance")?(e=Object(o.default)("Plex is down for maintenance."),t=Object(o.default)("Don't worry, it'll be back soon.")):(e=Object(o.default)("Plex is not reachable."),t=Object(o.default)("Make sure your server has an internet connection and any firewalls or other programs are set to allow access.")):(e=Object(o.default)("Server unavailable."),
t=i?Object(o.default)("We couldn't reach \"{1}\". Make sure it's online and try again.",a.a.escape(i)):Object(o.default)("We couldn't reach this server. Make sure it's online and try again.")),{title:e,subtitle:t}},onResolvedChange:function(e,t){t&&r.a.trigger("navigate:refresh")}});t.a=l},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(90),l=n(38),c=n(45),u=n(48),d=n(334),p=n(4375),h=n(164),f=a()(p.a,{}),v=u.a.extend({component:function(e){
var t=e.selectedProviderID,n=s.a,i=Object(l.a)(c.m,n),r=Object(l.a)(c.k,t,i);return a()(o.a,{},void 0,a()(h.a,{selectedProviderEntityID:r}),a()(d.a,{serverEntityID:i,providerEntityID:r},void 0,f))}});t.a=v},function(e,t,n){"use strict";function i(){return Object(v.createSelector)(Object(I.a)(),Object(b.a)(g.b.SETTINGS),function(e){return e.ui.providerSettingsPage},function(e,t,n){return{providerEntityID:e.entityID,settings:t.settings,isSettingsPending:t.isSettingsPending,
isUpdatePending:n.isUpdatePending,updateError:n.updateError}})}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(11)),v=n(4),g=(n.n(v),n(64)),m=n(363),y=n(1064),b=n(584),I=n(54),S=n(4376),M={dispatchFetchProviderSettings:y.c,dispatchUpdateProviderSetting:y.f,dispatchClearProviderSettingUpdateError:y.b,dispatchClearProviderSettingFetchError:y.a,dispatchPopulateSettingsOptions:y.d},D=function(e){function t(){var n,i,a;s()(this,t)
;for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onUpdateErrorDismiss=function(){i.props.dispatchClearProviderSettingUpdateError({providerEntityID:i.props.providerEntityID})},i.onOptionsFetchErrorDismiss=function(e){i.props.dispatchClearProviderSettingFetchError({providerEntityID:i.props.providerEntityID,settingID:e})},i.onUpdateSetting=function(e,t){i.props.dispatchUpdateProviderSetting({
providerEntityID:i.props.providerEntityID,settingID:e,values:t})},i.onSettingViewDetail=function(e){i.props.dispatchPopulateSettingsOptions({providerEntityID:i.props.providerEntityID,settingID:e})},a=n,c()(i,a)}return d()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.providerEntityID,n=e.settings;this._dispatchOnboarded(t,n),this.props.dispatchFetchProviderSettings({providerEntityID:t})},t.prototype._dispatchOnboarded=function(e,t){var n=t.find(function(e){
return e.id===m.b.ONBOARDED});if(n&&!n.value){var i;this.props.dispatchUpdateProviderSetting({providerEntityID:e,settingID:n.id,values:(i={},i[n.id]=!0,i)})}},t.prototype.render=function(){return r()(S.a,{showSpinner:this.props.isSettingsPending,settings:this.props.settings,isUpdatePending:this.props.isUpdatePending,updateError:this.props.updateError,onSettingViewDetail:this.onSettingViewDetail,onUpdateErrorDismiss:this.onUpdateErrorDismiss,
onOptionsFetchErrorDismiss:this.onOptionsFetchErrorDismiss,onUpdateSetting:this.onUpdateSetting})},t}(h.Component);t.a=Object(f.connect)(i,M)(D)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(30),v=n(3),g=n(31),m=n(85),y=n(259),b=n(258),I=n(1699),S=n(1700),M=a()(m.a,{},void 0,a()(g.a,{})),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTogglePress=function(e){
a.props.updateError&&a.props.onUpdateErrorDismiss(),a.state.openSettingID===e?a.setState({openSettingID:null}):(a.props.onSettingViewDetail(e),a.setState({openSettingID:e}))},a.state={openSettingID:null,isUpdatePendingFromStore:n.isUpdatePending},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){var n={isUpdatePendingFromStore:e.isUpdatePending};return!t.isUpdatePendingFromStore||e.isUpdatePending||e.updateError||(n.openSettingID=null),n},t.prototype.render=function(){
var e=this,t=this.props,n=t.showSpinner,i=t.settings,r=t.isUpdatePending,o=t.updateError,s=t.onUpdateSetting,l=t.onOptionsFetchErrorDismiss,c=this.state.openSettingID;return n?M:a()(y.a,{metricsPage:f.T,metricsPane:"settings"},void 0,a()(b.a,{},void 0,Object(v.default)("Personalize")),i.map(function(t){return t.hidden?null:a()(S.a,{title:t.label,setting:t,isOpen:c===t.id,isUpdating:r,updateError:o,onTogglePress:e.onTogglePress,onUpdateSetting:s,onOptionsFetchErrorDismiss:l
},t.id,h.a.createElement(I.a,t))}))},t}(p.Component);t.a=D},function(e,t,n){"use strict";function i(e){var t=e.labelText,n=e.helpText,i=e.options;return r()(c.a,{},void 0,r()(d.a,{},void 0,t),n&&r()(u.a,{className:f.a.help},void 0,n),r()("div",{className:f.a.multiSelectContainer},void 0,i.map(function(e){return r()("div",{className:f.a.multiSelectItem},e.key,r()(v,{name:e.key,checkboxText:e.title,initialValue:e.selected}))})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(388)),c=n(238),u=n(460),d=n(149),p=n(189),h=n(4378),f=n.n(h),v=Object(p.a)(l.a);t.a=i},function(e,t){e.exports={multiSelectContainer:"MultiSelectInputGroup-multiSelectContainer-2ePye",multiSelectItem:"MultiSelectInputGroup-multiSelectItem-qpRtx",help:"MultiSelectInputGroup-help-FxDQr FormHelp-help-3VCuq"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=n.n(d),h=n(0),f=(n.n(h),
n(10)),v=n.n(f),g=n(238),m=n(460),y=n(149),b=n(255),I=n(189),S=n(3),M=n(1684),D=n(4380),C=n.n(D),j=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onCountryChange=function(e){var t=a._calculateLocationState(e,a.state.postalCode,a.props.countries);a.setState(t,function(){a.props.onChange({country:t.country,postalCode:t.postalCode})})},a.onPostalCodeChange=function(e){a.setState({postalCode:e},function(){a.props.onChange({country:a.state.country,postalCode:e})})},
a.state=a._calculateLocationState(n.initialValue.country,n.initialValue.postalCode,n.countries),a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.state.country!==e.value.country,n=this.state.postalCode!==e.value.postalCode;if(this.props.countries!==e.countries||t||n){var i=this._calculateLocationState(e.value.country,e.value.postalCode,e.countries);this.setState(i)}},t.prototype._getCountryOption=function(e,t){return t.find(function(t){return t.code===e})},
t.prototype._countryHasPostalCode=function(e,t){var n=this._getCountryOption(e,t);return n&&"postalcode"===n.flavor},t.prototype._calculateLocationState=function(e,t,n){return{country:e,postalCode:this._countryHasPostalCode(e,n)&&t?t:""}},t.prototype._getSelectInputValues=function(e){return e.map(function(e){var t;return t={},t[e.code]=e.title,t})},t.prototype._getPostalCodeMask=function(e,t){var n=this._getCountryOption(e,t).postalCodeFormat;return n?v.a.map(n,function(e){
return"N"===e?/\d/:/\./}):[]},t.prototype.render=function(){var e=this.props,t=e.labelText,n=e.helpText,i=e.countries,r=e.showErrors,o=e.errors,s=e.onBlur,l=this.state,c=l.country,u=l.postalCode,d=o[0],p=0===i.length,h=this._countryHasPostalCode(c,i);return a()(g.a,{},void 0,a()(y.a,{name:"country"},void 0,t),n&&a()(m.a,{className:C.a.help},void 0,n),a()(b.a,{name:"country",value:c,values:this._getSelectInputValues(i),isDisabled:p,onChange:this.onCountryChange}),h&&a()(y.a,{name:"postalCode",
hasError:r,className:C.a.secondaryLabel},void 0,Object(S.default)("Postal Code"),r&&d&&" \u2014 "+d),h&&a()(M.a,{mask:this._getPostalCodeMask(c,i),name:"postalCode",value:u,isDisabled:p,hasError:r,onBlur:s,onChange:this.onPostalCodeChange}))},t}(h.Component);p.a.shape({country:p.a.string.isRequired,postalCode:p.a.string});t.a=Object(I.a)(j)},function(e,t){e.exports={help:"LocationSettingInputGroup-help-3KxH7 FormHelp-help-3VCuq",
secondaryLabel:"LocationSettingInputGroup-secondaryLabel-1RrMc FormLabel-label-2aLJ9"}},function(e,t){e.exports={sectionWrapper:"SettingsFormSection-sectionWrapper-1-gPg",section:"SettingsFormSection-section-1zYMP"}},function(e,t){e.exports={actionLinks:"SettingsFormSectionActionLinks-actionLinks-2vGv7"}},function(e,t){e.exports={isPressable:"CloseableFormSection-isPressable-3BPTn",isClosed:"CloseableFormSection-isClosed-37Gj8 CloseableFormSection-isPressable-3BPTn",
isOpen:"CloseableFormSection-isOpen-vvIoP"}},function(e,t){e.exports={sectionDetails:"SettingsFormSectionDetails-sectionDetails-2rJ3j"}},function(e,t){e.exports={sectionDetails:"SubmittableFormSection-sectionDetails-12m6E CloseableFormSection-isPressable-3BPTn SettingsFormSectionDetails-sectionDetails-2rJ3j",label:"SubmittableFormSection-label-1uVA_ FormLabel-label-2aLJ9 CloseableFormSection-isPressable-3BPTn",submitButton:"SubmittableFormSection-submitButton-2Dd-P",
spinnerContainer:"SubmittableFormSection-spinnerContainer-3Jnpq"}},function(e,t,n){"use strict";function i(e){var t=e.setting,n=s()(e,["setting"]);return u.a.createElement(d.a,r()({closedNode:t.summary},n))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(335);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(335),m=function(e){function t(){var n,i,a;l()(this,t)
;for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onSubmit=function(e){var t=e.location;i.props.onSubmit(t)},a=n,u()(i,a)}return p()(t,e),t.prototype._getCountryPostalCodeLabel=function(e,t){var n=[];return e?(n.push(e),t&&n.push(t),n.join(", ")):""},t.prototype.render=function(){var e=this.props,t=e.setting,n=o()(e,["setting"]);return v.a.createElement(g.a,a()({
closedNode:this._getCountryPostalCodeLabel(t.countryLabel,t.postalCode),showSpinner:t.isLocationsPending},n,{onSubmit:this.onSubmit}))},t}(f.Component);t.a=m},function(e,t,n){"use strict";function i(e){var t=e.setting,n=s()(e,["setting"]);return u.a.createElement(p.a,r()({closedNode:Object(d.default)("{1} selected",t.selectedCount),showSpinner:t.isOptionsPending},n))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3),p=n(335);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(16)),s=n(90),l=n(38),c=n(119),u=n(232),d=n(48),p=n(757),h=n(336),f=n(192),v=n(1703),g=n(193),m=a()(g.a,{}),y=d.a.extend({initialize:function(e){o.c("appModel").set("activeNavigationType",e.navigationType)},component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params,r=void 0===i?{}:i,o=Object(l.a)(u.SERVER,t),d=Object(l.a)(u.PROVIDER,n,o),g=a()(v.a,{serverEntityID:o,providerEntityID:d,listKey:r.key,listTitle:r.title,listType:r.type,
listSubtype:r.subtype});return a()(c.a,{metricsContext:r.context},void 0,a()(f.a,{},void 0,m,t===s.a?a()(p.a,{providerEntityID:d},void 0,g):a()(h.a,{serverEntityID:o},void 0,g)))}});t.a=y},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.hasProvider,i=e.showSpinner,a=e.showError;return i?p:a?h:n?r()(s.Fragment,{},void 0,t):f}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(31)),c=n(85),u=n(330),d=n(203),p=r()(c.a,{},void 0,r()(l.a,{})),h=r()(d.a,{}),f=r()(u.a,{});t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.hasServer,i=e.showSpinner,a=e.machineIdentifier,o=e.friendlyName,s=e.isUnauthorized,l=e.isUnavailable,u=e.isInstallingServerUpdate,p=e.hasHttpsConnections,v=e.isHostedHttps;return i?g:n?u?r()(f.a,{friendlyName:o}):l?v&&!p?r()(h.a,{serverEntityID:e.serverEntityID}):r()(d.a,{friendlyName:o}):s?y:r()(c.a,{machineIdentifier:a},void 0,t):m}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(31)),c=n(1702),u=n(953),d=n(954),p=n(85),h=n(955),f=n(956),v=n(330),g=r()(p.a,{},void 0,r()(l.a,{})),m=r()(v.a,{}),y=r()(u.a,{});t.a=i},function(e,t){e.exports={container:"TypeFirstPage-container-3eSc0 FullPage-container-17Y0c"}},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.sourceDirectory,o=e.listKey,l=e.listTitle,c=e.listType,y=e.listSubtype,b=e.activeSelectionType;return s()(f.a,{metricsPage:p.J,
allowBackgroundLightPreset:!0,scrollDirection:d.NONE},void 0,b?s()(v.a,{serverEntityID:t,providerEntityID:n}):s()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,sourceDirectory:a,listTitle:l,listType:c,listSubtype:y}),u.a.createElement(h.a,r()({component:g.a,initialSize:50,shouldResetOnUnmount:!0,containerKey:o,containerTitle:l,listType:c,listSubtype:y},e)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(57),p=n(30),h=n(141),f=n(92),v=n(495),g=(n(105),
n(1704)),m=n(4398);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.selectedItemsCount,n=e.toolbarComponent,i=e.onDeselectAllPress,a=c()(e,["selectedItemsCount","toolbarComponent","onDeselectAllPress"]);return s()(y.a,{className:S.a.multiSelectPageHeader},void 0,s()(f.a,{},void 0,s()("div",{className:S.a.selectedTitle},void 0,s()(m.a,{name:"plex-icon-selected-560",className:S.a.icon}),1===t?Object(g.default)("1 item selected"):Object(g.default)("{selectedItemsCount} items selected",{
selectedItemsCount:t})),s()(h.a,{className:S.a.deselectLink,onPress:i},void 0,s()(m.a,{name:"plex-icon-remove-560",className:S.a.icon}),Object(g.default)("Deselect All"))),s()(v.a,{},void 0,p.a.createElement(n,r()({selectedItemsCount:t},a))))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(20),f=n(151),v=n(117),g=n(3),m=n(26),y=n(244),b=n(1635),I=n(4396),S=n.n(I);i.defaultProps={toolbarComponent:b.a,allowRedirectOnDelete:!1},t.a=i},function(e,t){
e.exports={pageHeader:"TypeFirstPageHeader-pageHeader-3yLq-"}},function(e,t){e.exports={multiSelectPageHeader:"MultiSelectPageHeader-multiSelectPageHeader-2x7d0 TypeFirstPageHeader-pageHeader-3yLq-",selectedTitle:"MultiSelectPageHeader-selectedTitle-fT_hg",deselectLink:"MultiSelectPageHeader-deselectLink-3Xa4S",icon:"MultiSelectPageHeader-icon-PxQ99"}},function(e,t){e.exports={metadataListPageContent:"MetadataListPageContent-metadataListPageContent-1cRCV PageContent-pageContent-16mK6",
metadataListScroller:"MetadataListPageContent-metadataListScroller-3LU9d",hasGutter:"MetadataListPageContent-hasGutter-DThBJ",attribution:"MetadataListPageContent-attribution-3PHIb"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{totalSize:e.totalSize}})}var a=n(11),r=n(4),o=(n.n(r),n(132)),s=n(4399);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.sourceDirectory,o=e.listTitle,s=e.listType,v=e.listSubtype,m=e.totalSize,I=e.isLibraryList,S=a?f.a:u.a;return r()(p.a,{},void 0,r()(S,{serverEntityID:t,providerEntityID:n,sourceDirectory:a},void 0,r()(c.a,{title:o,hasMenu:!1,isSelected:!0}),r()(l.a,{},void 0,m)),r()(d.a,{},void 0,r()(g.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:s,listSubtype:v,isLibraryList:I}),r()(h.a,{className:y.a.divider
}),b))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(242)),c=n(131),u=n(151),d=n(117),p=n(244),h=n(590),f=n(337),v=n(165),g=n(488),m=(n(105),n(4412)),y=n.n(m),b=r()(v.a,{});t.a=i},function(e,t){e.exports={pageHeaderDivider:"TypeFirstPageHeaderDivider-pageHeaderDivider-3oGvs"}},function(e,t,n){"use strict";function i(e){var t=e.sourceDirectory,n=e.onPress,i=e.onCancelScanLibraryPress,a=e.onScanLibraryPress,r=e.onSharePress,o=e.onEditLibraryPress
;return f()(g.Fragment,{},void 0,t.refreshing?f()(S.a,{onPress:Object(M.a)(n,i)},void 0,Object(C.default)("Cancel Scan")):f()(S.a,{onPress:Object(M.a)(n,a)},void 0,Object(C.default)("Scan Library Files")),f()(S.a,{onPress:Object(M.a)(n,r)},void 0,Object(C.default)("Share...")),f()(S.a,{onPress:Object(M.a)(n,o)},void 0,Object(C.default)("Edit Library...")))}function a(e){var t=e.machineIdentifier,n=e.isGuideRefreshing,i=e.onPress,a=e.onCancelRefreshGuidePress,r=e.onRefreshGuidePress
;return f()(g.Fragment,{},void 0,f()(S.a,{to:Object(O.a)(t,"manage","dvr"),onPress:i},void 0,Object(C.default)("Settings")),n?f()(S.a,{onPress:Object(M.a)(i,a)},void 0,Object(C.default)("Cancel Refresh")):f()(S.a,{onPress:Object(M.a)(i,r)},void 0,Object(C.default)("Refresh Guide")))}var r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(2),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(128),b=n(151),I=n(56),S=n(112),M=n(439),D=n(47),C=n(3),j=n(26),P=n(4402),O=(n(105),n(99),
n(197)),T=n(4411),E=n.n(T),w=f()(j.a,{name:"plex-icon-settings-560"}),A=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onSettingsMenuButtonPress=function(e){a.setState({isSettingsMenuOpen:!a.state.isSettingsMenuOpen})},a.onSettingsMenuClose=function(){a.setState({isSettingsMenuOpen:!1})},a.state={isSettingsMenuOpen:!1},a._settingsMenuButtonID=Object(D.a)(),a}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=(e.machineIdentifier,
e.provider),r=e.hasProviderSettings,s=e.hasLibraryActions,l=e.hasDVRActions,c=(e.isGuideRefreshing,e.onScanLibraryPress,e.onCancelScanLibraryPress,e.onSharePress,e.onEditLibraryPress,e.onRefreshGuidePress,e.onCancelRefreshGuidePress,
o()(e,["children","machineIdentifier","provider","hasProviderSettings","hasLibraryActions","hasDVRActions","isGuideRefreshing","onScanLibraryPress","onCancelScanLibraryPress","onSharePress","onEditLibraryPress","onRefreshGuidePress","onCancelRefreshGuidePress"])),u=c.sourceDirectory,d=this.state.isSettingsMenuOpen,p=s||l,h="#!/provider/"+encodeURIComponent(n.identifier)+"/settings";return f()(b.a,{},void 0,u?f()("div",{className:E.a.container},void 0,f()("div",{
className:E.a.sourceSelectContainer},void 0,m.a.createElement(P.a,c)),r||p?f()(y.a,{id:this._settingsMenuButtonID,className:E.a.settingsButton,tooltip:p?null:Object(C.default)("Personalize"),to:p?null:h,onPress:p?this.onSettingsMenuButtonPress:null},void 0,w):null,f()(I.a,{target:this._settingsMenuButtonID,isOpen:d,onMenuClose:this.onSettingsMenuClose},void 0,r?f()(S.a,{to:h
},void 0,Object(C.default)("Personalize")):null,s?m.a.createElement(i,this.props):null,l?m.a.createElement(a,this.props):null)):null,t)},t}(g.Component);t.a=A},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(S.a,Object(D.a)(),function(e,t){var n=[],i=[],a=null;return t.forEach(function(e){e.isSelected&&(a=e),e.isUnknownUnavailableServer?i.push(e):n.push(e)}),{sources:n,unknownServers:i,selectedSource:a,isCloudServerConnected:e.isConnected}})}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(304)),I=n(116),S=n(470),M=n(71),D=n(4403),C=(n(105),n(4404)),j={dispatchDiscoverServers:M.b,dispatchTestServers:I.r,dispatchFetchCloudProviders:b.a,dispatchSaveLastTypeSource:M.l},P=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),
i.onSourceMenuOpen=function(){i.props.isCloudServerConnected&&(i.props.dispatchDiscoverServers(),i.props.dispatchFetchCloudProviders()),i.props.dispatchTestServers()},i.onSourceSelect=function(e){i.props.dispatchSaveLastTypeSource({navigationType:e.navigationType,machineIdentifier:e.machineIdentifier,providerIdentifier:e.providerIdentifier,directoryKey:e.directoryHubKey||e.directoryKey})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=(e.isCloudServerConnected,
e.dispatchDiscoverServers,e.dispatchTestServers,e.dispatchFetchCloudProviders,e.dispatchSaveLastTypeSource,s()(e,["isCloudServerConnected","dispatchDiscoverServers","dispatchTestServers","dispatchFetchCloudProviders","dispatchSaveLastTypeSource"]));return g.a.createElement(C.a,r()({},t,{onSourceMenuOpen:this.onSourceMenuOpen,onSourceSelect:this.onSourceSelect}))},t}(v.Component);t.a=Object(m.connect)(i,j)(P)},function(e,t,n){"use strict";function i(){
for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.a.apply(void 0,["source"].concat(t))}function a(e,t,n,i){var a=Object(y.a)(e,t,n);return c.join(a,{source:i})}function r(e,t){return{key:i(e,t.machineIdentifier),serverEntityID:t.entityID,title:t.friendlyName,detail:t.sourceTitle,isUnknownUnavailableServer:!0,isUnavailable:!0,isSelected:!1}}function o(e){
var t=e.navigationType,n=e.sourceServer,r=e.sourceProvider,o=e.sourceDirectory,s=e.selectedServerEntityID,l=e.selectedProviderEntityID,c=e.selectedSourceDirectory,u=s===n.entityID&&l===r.entityID,d=!!(t===h.a||o.hubKey&&o.hubKey===c.hubKey||o.key&&o.key===c.key),f=o.hubKey||o.key,v={key:i(t,n.machineIdentifier,r.identifier,o.hubKey||o.key),navigationType:t,serverEntityID:n.entityID,machineIdentifier:n.machineIdentifier,providerEntityID:r.entityID,providerIdentifier:r.identifier,
directoryKey:o.key,directoryHubKey:o.hubKey,title:o.title,isLocal:n.isConnected&&n.activeConnection&&n.activeConnection.isPrivate,isUnavailable:n.isUnavailable,isOutOfDate:n.isOutOfDate,isSelected:u&&d};return n.isCloud?(v.isCloud=!0,v.route=a(t,n,r,f)):(t===h.a&&(v.title=Object(p.default)("Live TV & DVR")),v.detail=n.isFullOwnedServer?n.friendlyName:n.sourceTitle,v.route=a(t,n,r,f)),v}function s(){return Object(l.createSelector)(function(e,t){return t.serverEntityID},function(e,t){
return t.providerEntityID},function(e,t){return t.sourceDirectory},f.a,Object(u.a)(),function(e,t,n,i,a){var s=Object(v.a)(a,n);return s?i.reduce(function(i,a){var l=a.server,c=a.provider;if(!c)return!l.isCloud&&l.isUnavailable&&i.push(r(s.key,l)),i;var u=Object(d.a)(c);return u&&u.directories&&u.directories.forEach(function(a){if(Object(g.a)(s,c,a)){(s.key!==h.a||!(!a.hubKey||a.key))&&i.push(o({navigationType:s.key,sourceServer:l,sourceProvider:c,sourceDirectory:a,selectedServerEntityID:e,
selectedProviderEntityID:t,selectedSourceDirectory:n}))}}),i},[]):[]})}t.a=s;var l=n(4),c=(n.n(l),n(18)),u=n(54),d=n(473),p=n(3),h=n(221),f=n(563),v=n(732),g=n(702),m=n(1210),y=n(581)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(47)),f=n(4405),v=n(4409),g=(n(759),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSourceMenuButtonPress=function(){var e=a.state.isSourceMenuOpen
;a.setState({isSourceMenuOpen:!e},function(){e||a.props.onSourceMenuOpen()})},a.onSourceMenuClose=function(){a.setState({isSourceMenuOpen:!1})},a.state={isSourceMenuOpen:!1},a._sourceMenuButtonID=Object(h.a)(),a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.sources,n=e.unknownServers,i=e.selectedSource,r=e.onSourceSelect,o=this.state.isSourceMenuOpen,s=t.length>1||n.length>1;return a()(p.Fragment,{},void 0,i?a()(v.a,{id:this._sourceMenuButtonID,source:i,hasMenu:s,
isMenuOpen:o,onPress:this.onSourceMenuButtonPress}):null,s?a()(f.a,{target:this._sourceMenuButtonID,sources:t,unknownServers:n,isOpen:o,onMenuClose:this.onSourceMenuClose,onSourceSelect:r}):null)},t}(p.Component));t.a=g},function(e,t,n){"use strict";function i(e){var t=e.sources,n=e.onSourceSelect;return t.map(function(e){return s()(h.a,{source:e,isSelected:e.isSelected,onSourceSelect:n},e.key)})}function a(){return s()("div",{className:m.a.menuDivider
},void 0,Object(p.default)("Unavailable servers"))}function r(e){var t=e.target,n=e.sources,a=e.unknownServers,r=e.isOpen,o=e.onMenuClose,l=e.onSourceSelect;return s()(u.a,{className:m.a.menu,target:t,isOpen:r,scrollerProps:I,maxHeight:b,onMenuClose:o},void 0,s()(i,{sources:n,onSourceSelect:l}),a.length>0?S:null,s()(i,{sources:a}))}var o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(56)),d=n(57),p=n(3),h=n(4406),f=(n(759),
n(46)),v=n.n(f),g=n(4408),m=n.n(g),y=parseInt(v.a.sourceMenuItemHeight,10),b=8*y,I={scrollDirection:d.VERTICAL,autoScroll:!0},S=s()(a,{});t.a=r},function(e,t,n){"use strict";function i(e){return e.isUnavailable?Object(g.default)("Offline"):e.isOutOfDate?Object(g.default)("Needs Update"):null}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(73)),v=n(112),g=n(3),m=n(26),y=(n(759),n(4407)),b=n.n(y),I=r()(f.b,{}),S=function(e){function t(){
var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(){i.props.onSourceSelect&&i.props.onSourceSelect(i.props.source)},a=n,c()(i,a)}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.source,n=e.isSelected,a=void 0,o=void 0;t.detail?(a=t.detail,o=i(t)):a=i(t);var s=t.isUnavailable||t.isOutOfDate,l=!t.isLocal&&!t.isCloud&&!t.isUnavailable;return r()(v.a,{
className:(b.a.menuItem||"")+" "+(n&&b.a.isSelected||""||""),to:t.route,onPress:this.onPress},void 0,r()("div",{className:b.a.itemContainer},void 0,r()("div",{className:b.a.titleContainer},void 0,r()("div",{className:b.a.title},void 0,t.title,l?r()(m.a,{className:b.a.titleIcon,name:"plex-icon-source-remote-560","aria-label":Object(g.default)("Remote server")}):null),r()("div",{className:b.a.details},void 0,a,a&&o?I:null,o)),r()("div",{className:b.a.statusIconContainer},void 0,n?r()(m.a,{
name:"plex-icon-selected-560",className:(b.a.statusIcon||"")+" "+(b.a.selectedIcon||""),"aria-label":Object(g.default)("Selected")}):null,s?r()(m.a,{className:(b.a.statusIcon||"")+" "+(b.a.alertIcon||""),name:"plex-icon-alert-560"}):null)))},t}(h.Component);t.a=S},function(e,t){e.exports={menuItem:"SourceMenuItem-menuItem-P6XUA",isSelected:"SourceMenuItem-isSelected-3drRU",isDisabled:"SourceMenuItem-isDisabled-11uWR",itemContainer:"SourceMenuItem-itemContainer-255E9",
titleContainer:"SourceMenuItem-titleContainer-N05uh",title:"SourceMenuItem-title-tx5KZ",titleIcon:"SourceMenuItem-titleIcon-33P-u",details:"SourceMenuItem-details-12bMw",statusIconContainer:"SourceMenuItem-statusIconContainer-1MpFZ",statusIcon:"SourceMenuItem-statusIcon--B--Q",selectedIcon:"SourceMenuItem-selectedIcon-26-YT",alertIcon:"SourceMenuItem-alertIcon-CLd1S"}},function(e,t){e.exports={menu:"SourceMenu-menu-1Y5lo MenuContainer-menu-2OAQT",menuDivider:"SourceMenu-menuDivider-22AnD"}
},function(e,t,n){"use strict";function i(e){var t=e.id,n=e.source,i=e.hasMenu,a=e.isMenuOpen,o=e.onPress;return r()(c.a,{id:t,className:p.a.link,to:i?null:n.route,onPress:i?o:null},void 0,r()("div",{className:p.a.titleContainer},void 0,r()("div",{className:p.a.title},void 0,n.title),i?r()(l.a,{direction:a?u.UP:u.DOWN,isSelected:!0}):null),r()("div",{className:p.a.details},void 0,n.detail))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(438)),c=n(20),u=n(233),d=(n(759),n(4410)),p=n.n(d)
;t.a=i},function(e,t){e.exports={titleContainer:"SourceMenuButton-titleContainer-1r1az",title:"SourceMenuButton-title-2Xq0C",details:"SourceMenuButton-details-37DsR",link:"SourceMenuButton-link-1oZH2 Link-link-2n0yJ"}},function(e,t){e.exports={container:"SourceSelectPageHeaderLeft-container-3GqPL",sourceSelectContainer:"SourceSelectPageHeaderLeft-sourceSelectContainer-3BFM6",settingsButton:"SourceSelectPageHeaderLeft-settingsButton-27AX7 ToolbarButton-toolbarButton-2i2nn"}},function(e,t){
e.exports={divider:"MetadataListPageHeader-divider-3K7mX TypeFirstPageHeaderDivider-pageHeaderDivider-3oGvs"}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(395)),r=n(221),o=n(563),s=n(1707),l=Object(i.createSelector)(Object(a.a)("hasAttemptedPopulateAllProviders"),s.a,o.a,function(e,t,n){return e||t?r.l.reduce(function(e,t){var i=Object(r.n)(t);return i&&Object(r.o)(i,n)&&e.push({key:i.key,title:i.title,to:"#!/"+i.key}),e},[]):null});t.a=l},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(958)),f=n(215),v=n(3),g=n(31),m=n(283),y=n(24),b=n(4415),I=n(4417),S=n.n(I),M=a()(g.a,{}),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMouseEnter=function(){a.resetExpandTimeout()},a.onMouseLeave=function(){a.clearSetExpandedTimeout(),a.setState({isExpanded:!1})},a.onMouseMove=function(){a.resetExpandTimeout()},a.onShowShortcutsPress=function(){
a.props.isSidebarExpandable&&(a.clearSetExpandedTimeout(),a.setState({isExpanded:!0}))},a.onToggleExpandablePress=function(){a.clearSetExpandedTimeout(),a.setState({isExpanded:!a.props.isSidebarExpandable},a.props.onToggleExpandableSidebar)},a.state={isExpanded:!1},a}return u()(t,e),t.prototype.componentWillUnmount=function(){this.clearSetExpandedTimeout()},t.prototype.clearSetExpandedTimeout=function(){this._setExpandedTimeoutID&&(clearTimeout(this._setExpandedTimeoutID),
this._setExpandedTimeoutID=null)},t.prototype.resetExpandTimeout=function(){var e=this;this.clearSetExpandedTimeout(),this._setExpandedTimeoutID=setTimeout(function(){return e.setState({isExpanded:!0})},250)},t.prototype.render=function(){var e=this.props,t=e.types,n=e.shortcuts,i=e.isSidebarExpandable,r=this.state.isExpanded&&i;return t?a()(p.Fragment,{},void 0,a()("div",{className:S.a.sidebarUnderlay}),a()("div",{className:r?S.a.expandedSidebar:S.a.sidebar,
onMouseEnter:i?this.onMouseEnter:null,onMouseLeave:i?this.onMouseLeave:null,onMouseMove:i?this.onMouseMove:null},void 0,a()(h.a,{},void 0,a()(b.a,{types:t,shortcuts:n,isExpanded:r,isExpandable:i,onShowShortcutsPress:this.onShowShortcutsPress})),a()("div",{className:S.a.footer},void 0,a()(f.a,{component:m.a,className:S.a.toggleMenuButton,icon:i?"plex-icon-sidebar-mode-collapse-560":"plex-icon-sidebar-mode-auto-560",tooltip:Object(v.default)("Toggle Menu"),tooltipAttachment:y.f.MIDDLE_RIGHT,
ariaLabel:Object(v.default)("Toggle Menu"),onPress:this.onToggleExpandablePress})))):a()(p.Fragment,{},void 0,a()("div",{className:S.a.sidebarUnderlay}),a()("div",{className:S.a.sidebarLoading},void 0,M))},t}(p.Component);t.a=D},function(e,t,n){"use strict";function i(e){switch(e.key){case m.c:return"plex-icon-sidebar-movies-560";case m.h:return"plex-icon-sidebar-shows-560";case m.d:return"plex-icon-sidebar-music-560";case m.f:return"plex-icon-sidebar-photos-560";case m.i:
return"plex-icon-sidebar-videos-560";case m.a:return"plex-icon-sidebar-live-dvr-560";case m.e:return"plex-icon-sidebar-news-560";case m.g:return"plex-icon-sidebar-podcasts-560";case m.j:return"plex-icon-sidebar-webshows-560"}}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),n(215)),v=n(28),g=n(3),m=n(221),y=n(220),b=n(700),I=n(24),S=n(4416),M=n.n(S),D=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.types,n=e.shortcuts,a=e.isExpanded,o=e.isExpandable,s=e.onShowShortcutsPress,l=n.length>0;return r()("div",{className:a?M.a.expandedSidebarContent:M.a.sidebarContent},void 0,t.map(function(e){return r()(f.a,{component:y.a,className:M.a.navigationTypeLink,iconClassName:M.a.icon,titleClassName:M.a.navigationTypeTitle,icon:i(e),title:a?e.title:null,tooltip:o?null:e.title,
tooltipAttachment:I.f.MIDDLE_RIGHT,"aria-label":e.title,to:e.to},e.key)}),l?r()("div",{className:M.a.divider}):null,l&&!a?r()(b.a,{className:M.a.iconButton,icon:"plex-icon-sidebar-shortcuts-560","aria-label":Object(g.default)("Show Shortcuts"),onPress:s}):null,l&&a?n.map(function(e){return r()(y.a,{className:M.a.shortcut,iconClassName:M.a.emptyIcon,title:e.title,to:e.to},e.key)}):null)},t}(h.Component);t.a=D},function(e,t){e.exports={sidebarContent:"TypeSidebarContent-sidebarContent-15Pth",
expandedSidebarContent:"TypeSidebarContent-expandedSidebarContent-jYQYi TypeSidebarContent-sidebarContent-15Pth",navigationTypeLink:"TypeSidebarContent-navigationTypeLink-2AYNy SidebarLink-sidebarLink-L2OPd Link-default-2XA2b",navigationTypeTitle:"TypeSidebarContent-navigationTypeTitle-1zazS SidebarLink-title-2vaAA",icon:"TypeSidebarContent-icon-LvQ7J SidebarLink-icon-34JWq",emptyIcon:"TypeSidebarContent-emptyIcon-3lAlt SidebarLink-icon-34JWq",
iconButton:"TypeSidebarContent-iconButton-2LhQJ SidebarIconButton-sidebarIconButton-3zxa5",shortcut:"TypeSidebarContent-shortcut-2Nfob TypeSidebarContent-navigationTypeLink-2AYNy SidebarLink-sidebarLink-L2OPd Link-default-2XA2b",divider:"TypeSidebarContent-divider-anLdZ"}},function(e,t){e.exports={sidebarUnderlay:"TypeSidebar-sidebarUnderlay-36gPH",sidebar:"TypeSidebar-sidebar-1j2OQ",expandedSidebar:"TypeSidebar-expandedSidebar-1335I TypeSidebar-sidebar-1j2OQ",
sidebarLoading:"TypeSidebar-sidebarLoading-1YChl TypeSidebar-sidebar-1j2OQ",footer:"TypeSidebar-footer-OkKvR",toggleMenuButton:"TypeSidebar-toggleMenuButton-1ORq4"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(16)),s=n(221),l=n(119),c=n(48),u=n(4419),d=n(4474),p=n(192),h=n(193),f=a()(p.a,{},void 0,a()(h.a,{}),a()(d.a,{},void 0,a()(u.a,{}))),v=c.a.extend({initialize:function(){o.c("appModel").set("activeNavigationType",s.b)},component:function(e){var t=e.params||{}
;return a()(l.a,{metricsContext:t.context},void 0,f)}});t.a=v},function(e,t,n){"use strict";function i(e,t){e.shouldFetchPreferredServerContent&&!t.shouldFetchPreferredServerContent&&e.dispatchFetchPreferredServerContent(),e.shouldFetchProviderPromotedContent&&!t.shouldFetchProviderPromotedContent&&e.dispatchFetchProviderPromotedContent(),e.shouldFetchHomeContent&&!t.shouldFetchHomeContent&&e.dispatchFetchHomeContent()}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(1066)),I=n(272),S=n(4429),M=n(402),D=n(76),C=n(4430),j=function(e){return e.isPopulated||e.error},P=Object(y.createSelector)(function(e){return e.ui.homePage},function(e){var t=e.homeHubStatuses;return e.isContentPopulated||t.length>0&&t.every(j)}),O=Object(y.createSelector)(function(e){return e.ui.homePage},M.a,S.a,P,D.a,function(e,t,n,i,a){
var r=e.isProviderPromotedContentPopulated,o=e.preferredServerContentError,s=e.providerPromotedContentError,l=t.preferredServerID,c=t.hasSeededPreferredServerContent,u=t.hasSeededProviderPromotedContent,d=t.settingsKey,p=!!l,h=c||!!o,f=u||r||!!s,v=p&&!h,g=!f,m=(!p||h)&&f&&!i;return{hasOnlyEmptyHomeHubs:n,isPending:m||v||g,preferredServerID:l,settingsKey:d,shouldFetchHomeContent:m,shouldFetchPreferredServerContent:v,shouldFetchProviderPromotedContent:g,activeSelectionType:a.activeSelectionType}
}),T={dispatchFetchHomeContent:b.a,dispatchFetchPreferredServerContent:b.c,dispatchFetchProviderPromotedContent:b.d,dispatchInitHomePage:b.f,dispatchResetHomePage:b.g,dispatchResetHomeSettings:I.g},E=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchInitHomePage(),i(this.props,{})},t.prototype.componentDidUpdate=function(e){i(this.props,e)},t.prototype.componentWillUnmount=function(){
this.props.dispatchResetHomePage()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchHomeContent,e.dispatchFetchPreferredServerContent,e.dispatchFetchProviderPromotedContent,e.dispatchInitHomePage,e.dispatchResetHomePage,e.dispatchResetHomeSettings),n=(e.shouldFetchHomeContent,e.shouldFetchPreferredServerContent,e.shouldFetchProviderPromotedContent,
s()(e,["dispatchFetchHomeContent","dispatchFetchPreferredServerContent","dispatchFetchProviderPromotedContent","dispatchInitHomePage","dispatchResetHomePage","dispatchResetHomeSettings","shouldFetchHomeContent","shouldFetchPreferredServerContent","shouldFetchProviderPromotedContent"]));return g.a.createElement(C.a,r()({},n,{onResetHomeSettings:t}))},t}(v.Component);t.a=Object(m.connect)(O,T)(E)},function(e,t,n){"use strict";function i(e){
var t=Object(o.l)(e),n="hasAttemptedPopulateAllProviders",i=r.a.Deferred(),a=function(){var e=t.get("providers").filter(function(e){return e.get("isPopulated")});e.length?i.resolve(e):i.reject()};return t.get(n)?a():t.once("change:"+n,a),i.promise()}t.a=i;var a=n(13),r=n.n(a),o=n(70)},function(e,t,n){"use strict";function i(e){return e.get("isPopulated")?o.a.Deferred().resolve(e).promise():Object(l.a)({eventSource:e,events:["change:error","change:isPopulated"]})}function a(e,t){
return Object(s.a)(e,t).then(function(e){return i(e.findWhere(t))},function(){return o.a.Deferred().reject().promise()})}t.a=a;var r=n(13),o=n.n(r),s=n(4422),l=n(1067)},function(e,t,n){"use strict";function i(e,t){return e.findWhere(t)?r.a.Deferred().resolve(e).promise():Object(o.a)({eventSource:e,events:["add"],predicate:function(){return!!e.findWhere(t)}})}t.a=i;var a=n(13),r=n.n(a),o=n(1067)},function(e,t,n){"use strict";function i(e){
var t=e.directoryKey,n=e.server,i=e.provider,a=e.onlyPromoted,s=void 0!==a&&a,l={hubkey:t,server:n,provider:i,count:1,persistInCache:!1,skipCache:!0},c=r()({},e,{hubModels:[]});return Object(o.b)(l).fetch().then(function(e){return e.reduce(function(e,t){return(!s||s&&t.get("promoted"))&&e.hubModels.push(t),e},c)},function(){return c})}t.a=i;var a=n(6),r=n.n(a),o=n(1068)},function(e,t,n){"use strict";function i(e){var t=e.reduce(function(e,t,n){
var i=t.get("server").get("machineIdentifier"),a=t.get("provider").get("identifier"),r=t.get("directoryKey"),o=i+"--"+a+"--"+r;return e[o]||(e[o]={directoryKey:r,identifier:a,homeHubIDs:[],machineIdentifier:i}),e[o].homeHubIDs.push(t.get("id")),e},{});return r()(t)}t.a=i;var a=n(4425),r=n.n(a)},function(e,t,n){e.exports={default:n(4426),__esModule:!0}},function(e,t,n){n(4427),e.exports=n(120).Object.values},function(e,t,n){var i=n(169),a=n(4428)(!1);i(i.S,"Object",{values:function(e){return a(e)
}})},function(e,t,n){var i=n(423),a=n(350),r=n(502).f;e.exports=function(e){return function(t){for(var n,o=a(t),s=i(o),l=s.length,c=0,u=[];l>c;)r.call(o,n=s[c++])&&u.push(e?[n,o[n]]:o[n]);return u}}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(571)),r=n(402),o=Object(i.createSelector)(a.a,r.a,function(e){return e.ui.homePage.homeHubStatuses},function(e,t,n){return t.hubs.every(function(t){var i=n.find(function(e){return e.homeHubID===t.id}),a=i&&e[i.hub];return!!a&&0===a.size})});t.a=o
},function(e,t,n){"use strict";function i(e){var t=e.activeSelectionType,n=e.hasOnlyEmptyHomeHubs,i=e.isPending,a=e.preferredServerID,o=e.settingsKey,s=e.onResetHomeSettings;return i?S:r()(p.a,{machineIdentifier:a},void 0,r()(h.a,{isMetricsDelegated:!0,metricsPage:c.D,allowBackgroundLightPreset:!0,scrollDirection:l.NONE},void 0,t?M:D,n?r()(m.a,{onResetHomeSettings:s}):r()(f.a,{innerClassName:I.a.homePageContent,scrollPositionKey:o+"!scrollPosition"},void 0,C)))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(31),d=n(4431),p=n(1702),h=n(92),f=n(157),v=n(85),g=n(4451),m=n(4452),y=n(4458),b=n(4473),I=n.n(b),S=r()(v.a,{},void 0,r()(u.a,{})),M=r()(g.a,{}),D=r()(y.a,{}),C=r()(d.a,{});t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(4432)),o=n(4433),s=Object(a.createSelector)(r.a,function(e){return{homeHubIDs:e}});t.a=Object(i.connect)(s)(o.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(161)),r=n(402),o=Object(a.a)(Object(i.createSelector)(r.a,function(e){return e.hubs}),function(e){return e}),s=Object(i.createSelector)(o,function(e){return e.map(function(e){return e.id})});t.a=s},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(28)),f=n(16),v=n(30),g=n(4434),m={opacity:0,pointerEvents:"none"},y={opacity:1,pointerEvents:"auto"},b=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onListReady=function(){++a._readyCount===a._initialCount&&a.setState({isReady:!0})},a.state={isReady:!1},a._readyCount=0,a}return u()(t,e),t.prototype.componentWillMount=function(){this._initialCount=this.props.homeHubIDs.length},t.prototype.componentWillReceiveProps=function(e){var t=e.homeHubIDs.length,n=this.props.homeHubIDs.length;this.state.isReady||t===n||(this._initialCount=t,this._readyCount===t&&this.setState({isReady:!0}))},
t.prototype.shouldComponentUpdate=function(e,t){return Object(h.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){!t.isReady&&this.state.isReady&&Object(f.c)("metrics").trackView({page:v.D})},t.prototype.render=function(){var e=this,t=this.props.homeHubIDs,n=this.state.isReady;return a()("div",{style:n?y:m},void 0,t.map(function(t){return a()(g.a,{homeHubID:t,allowSourceTitle:!0,allowToggleHomeHub:!0,shouldConfirmHomeHubRemoval:!0,onListReady:e.onListReady},t)}))},t}(p.Component);t.a=b
},function(e,t,n){"use strict";function i(){return Object(b.createSelector)(Object(D.a)(),function(e){return!!e&&e.isConnected})}function a(){return Object(b.createSelector)(Object(D.a)(),function(e){return!!e})}var r=n(6),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(19)),S=n(1066),M=n(4435),D=n(760),C=n(1708),j=n(496),P=n(1710),O=n(1069),T=n(3),E=(n(1711),n(1712),n(1486)),w=n(4437),A=n(1028),x=function(){
return Object(b.createSelector)(Object(E.a)(),Object(O.a)(),Object(j.a)(),Object(P.a)(),Object(C.a)(),Object(M.a)(),a(),i(),function(e,t){return t.allowSourceTitle},function(e,t,n,i,a,r,o,s,l){return{columnAdjustment:e,errorTitle:r,hasServer:o,homeHub:t,homePageHomeHubStatus:n,isServerConnected:s,sourceTitle:l?a:null,title:i}})},N={dispatchFetchHomeHubs:S.b,dispatchUpdateHomeHubsStatus:S.h},L=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i))
;return a.onRetryHomeHub=function(){var e={homeHubIDs:[a.props.homeHubID],fetchDelayMS:350};a.setState({hasRetried:!0},a.props.dispatchFetchHomeHubs.bind(null,e))},a.state={hasRetried:!1},a}return f()(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.errorTitle,i=t.homeHubID,a=t.isServerConnected,r=t.dispatchFetchHomeHubs,o=t.dispatchUpdateHomeHubsStatus,s=!e.errorTitle&&n,l=a&&!e.isServerConnected,c=!a&&e.isServerConnected;s&&this.state.hasRetried&&I.a.trigger("show:alert",{
type:"error",message:Object(T.default)("There was an error retrieving content.")}),(l||c)&&this.setState({hasRetried:!1},function(){l?r({homeHubIDs:[i]}):c&&o({homeHubIDs:[i],status:{error:{},isPending:!1,isPopulated:!1}})})},t.prototype.render=function(){var e=this.props,t=e.allowSourceTitle,n=(e.dispatchFetchHomeHubs,e.dispatchUpdateHomeHubsStatus,e.homeHubID,e.homeHub),i=e.homePageHomeHubStatus,a=(e.isServerConnected,
e.sourceTitle),r=e.title,s=l()(e,["allowSourceTitle","dispatchFetchHomeHubs","dispatchUpdateHomeHubsStatus","homeHubID","homeHub","homePageHomeHubStatus","isServerConnected","sourceTitle","title"]);return i.isPopulated?m.a.createElement(A.a,o()({},s,{allowSourceTitle:t,sourceDirectoryKey:n.directoryKey,hubEntityID:i.hub,providerEntityID:i.provider,serverEntityID:i.server})):m.a.createElement(w.a,o()({},s,{hasRetried:this.state.hasRetried,homeHub:n,homePageHomeHubStatus:i,sourceTitle:a,title:r,
onRetryHomeHub:this.onRetryHomeHub}))},t}(g.Component);t.a=Object(y.connect)(x,N)(L)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(Object(s.a)(),Object(o.a)(),function(e,t){var n=e.error,i=void 0;return n&&(i=n.isContentUnavailable?Object(r.default)("Content Unavailable"):t?t.isInstallingServerUpdate?Object(r.default)("Installing Update"):t.isOutOfDate?Object(r.default)("Update Required"):Object(r.default)("Unreachable"):Object(r.default)("Unknown Server")),i})}t.a=i
;var a=n(4),r=(n.n(a),n(3)),o=n(760),s=n(496)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(o.a,Object(r.a)(),function(e,t){return e[t.provider]})}t.a=i;var a=n(4),r=(n.n(a),n(496)),o=n(136)},function(e,t,n){"use strict";function i(e){return function(t){return g.a.createElement(x.a,h()({},e,t))}}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(6),h=n.n(p),f=n(1),v=(n.n(f),
n(0)),g=n.n(v),m=n(73),y=n(375),b=n(553),I=n(216),S=n(57),M=n(52),D=n(401),C=n(3),j=n(26),P=n(1597),O=(n(1711),n(1712),n(478)),T=n(403),E=n(4438),w=n(582),A=n(207),x=n(4448),N=n(4450),L=n.n(N),k=String.fromCharCode(183),R=[{id:0},{id:1},{id:2},{id:3},{id:4},{id:5},{id:6},{id:7},{id:8},{id:9},{id:10},{id:11}],z=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onListUpdate=function(e){var t=e.listStyle,n=a.props.onListReady,i=a._isReady?void 0:n;a._isReady=!0,
a.setState({listHeight:t.height},i)},a.onHelpPress=function(){a.setState({isHelpModalOpen:!0})},a.onHelpModalClose=function(){a.setState({isHelpModalOpen:!1})},a.state={listHeight:"auto",isHelpModalOpen:!1},a._isReady=!1,a}return d()(t,e),t.prototype.render=function(){
var e=this.props,t=e.allowToggleHomeHub,n=e.className,a=e.columnAdjustment,o=e.errorTitle,s=e.hasRetried,l=e.hasServer,c=e.homeHub,u=e.homePageHomeHubStatus,d=e.shouldConfirmHomeHubRemoval,p=e.sourceTitle,h=e.title,f=e.onRetryHomeHub,v=this.state.listHeight,g=c.hubIdentifier,x=c.type,N=c.subType,z=u.isPending,U=Object(P.a)(g),B=Object(A.b)(x,U,{subType:N,isExternal:g.indexOf("external")>-1}),F=!!o,_=z&&s,V=null;if(h){var H=Object(D.a)(h),Q=o||(_?Object(C.default)("Retrying"):null)
;V=r()(T.a,{},void 0,H,p?r()(m.b,{className:L.a.titleSeparator}):null,p?r()("span",{className:L.a.sourceTitle},void 0,p):null,Q?r()(m.b,{className:L.a.errorSeparator,separator:k}):null,Q?r()("span",{className:L.a.errorTitle},void 0,Q):null)}var Y={visibility:"auto"===v?"hidden":"visible"},G={height:v,overflow:"hidden"};return r()("div",{className:n,style:Y,"data-qa-id":"hub--"+g},void 0,r()(O.a,{allowToggleHomeHub:t,className:L.a.hubCellHeader,homeHubID:u.homeHubID,isHomeHub:!0,
shouldConfirmHomeHubRemoval:d},void 0,V,z?r()(y.a,{size:M.SMALL}):null,F&&l?r()(b.a,{className:L.a.iconButton,icon:"plex-icon-reload-560",iconClassName:L.a.iconButtonIcon,iconComponent:j.a,label:Object(C.default)("Retry"),ariaLabel:Object(C.default)("Retry"),onPress:f}):null,F?r()(b.a,{className:L.a.iconButton,icon:"plex-icon-help-560",iconClassName:L.a.iconButtonIcon,iconComponent:j.a,label:Object(C.default)("What's this?"),ariaLabel:Object(C.default)("What's this?"),onPress:this.onHelpPress
}):null),r()("div",{style:G},void 0,r()(I.a,{scrollerClassName:L.a.hubScroller,ignoreHeight:!0,keyPropName:"id",items:R,scrollDirection:S.NONE,size:R.length,layout:Object(w.a)(x,N,U,a,B.length),cellRenderer:i({listType:x,listSubType:N,listContext:U}),onListUpdate:this.onListUpdate})),r()(E.a,{homeHubID:c.id,isOpen:this.state.isHelpModalOpen,onModalClose:this.onHelpModalClose}))},t}(v.Component);z.defaultProps={className:L.a.hubCell},t.a=z},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(Object(s.a)(),Object(o.a)(),function(e,t){var n=e.error,i=e.server,a={};if(n&&n.isContentUnavailable)a.shouldShowHubStatus=!0;else if(t){var r=t.isDownForMaintenance,o=t.isHostedHttps,s=t.isInstallingServerUpdate,l=t.isOutOfDate,c=t.isUnavailable,u=t.isUnauthorized,d=t.hasHttpsConnections;a.serverEntityID=i,r?a.shouldShowDownForMaintenance=!0:c&&o&&!d?a.shouldShowInsecureFallbackChoice=!0:(c||u||s||l)&&(a.shouldShowServerStatus=!0)}else a.shouldShowUnrecognized=!0
;return a.shouldShowHubStatus||a.shouldShowDownForMaintenance||a.shouldShowInsecureFallbackChoice||a.shouldShowServerStatus||a.shouldShowUnrecognized||(a.shouldShowUnexpectedError=!0),a})}var a=n(11),r=n(4),o=(n.n(r),n(760)),s=n(496),l=n(4439);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){
var t=e.isOpen,n=e.serverEntityID,i=e.shouldShowDownForMaintenance,a=e.shouldShowInsecureFallbackChoice,o=e.shouldShowHubStatus,s=e.shouldShowServerStatus,y=e.shouldShowUnexpectedError,b=e.shouldShowUnrecognized,I=e.onModalClose;return r()(u.a,{size:l.SMALL,isOpen:t,metricsPage:c.D,onModalClose:I},void 0,r()(d.a,{onModalClose:I},void 0,i?r()(p.a,{onModalClose:I}):null,o?r()(h.a,{onModalClose:I}):null,a?r()(f.a,{serverEntityID:n,onModalClose:I}):null,s?r()(v.a,{serverEntityID:n,onModalClose:I
}):null,y?r()(g.a,{onModalClose:I}):null,b?r()(m.a,{onModalClose:I}):null))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(52)),c=n(30),u=n(114),d=n(98),p=n(4440),h=n(4441),f=n(4442),v=n(4444),g=n(4446),m=n(4447);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.onModalClose
;return r()(s.Fragment,{},void 0,r()(d.a,{},void 0,Object(f.default)("Down for Maintenance")),r()(c.a,{},void 0,Object(f.default)("Plex is down for maintenance. Don't worry, it will be back soon.")),r()(u.a,{},void 0,r()(l.a,{to:h.c,"data-autofocus":!0,target:"_blank",kind:p.PRIMARY,onPress:t},void 0,"status.plex.tv")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(84),p=n(51),h=n(321),f=n(3);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.onModalClose
;return r()(s.Fragment,{},void 0,r()(d.a,{},void 0,Object(h.default)("Content is Unavailable")),r()(c.a,{},void 0,Object(h.default)("The content provider is working normally but did not return content. The content may no longer be available.")),r()(u.a,{},void 0,r()(l.a,{"data-autofocus":!0,kind:p.PRIMARY,onPress:t},void 0,Object(h.default)("Okay"))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(84),p=n(51),h=n(3);t.a=i},function(e,t,n){"use strict"
;function i(){return Object(o.createSelector)(Object(s.a)(),function(e){return{friendlyName:e.friendlyName,sourceTitle:e.sourceTitle}})}function a(e){return{onReloadHttpPress:function(t){e(Object(l.g)())},onReloadHttpAlwaysPress:function(t){e(Object(l.f)()),e(Object(l.g)())}}}var r=n(11),o=n(4),s=(n.n(o),n(35)),l=n(71),c=n(4443);t.a=Object(r.connect)(i,a)(c.a)},function(e,t,n){"use strict";function i(e){
var t=e.friendlyName,n=e.sourceTitle,i=e.onModalClose,a=e.onReloadHttpPress,o=e.onReloadHttpAlwaysPress,p=n?[Object(g.default)("{owner}'s server does not allow secure connections.",{owner:n})]:[Object(g.default)('The server "{serverName}" does not allow secure connections.',{serverName:t})];return p.push(Object(g.default)("To see content from this server, you can try allowing insecure connections to reload the web app insecurely.")),
r()(s.Fragment,{},void 0,r()(f.a,{},void 0,Object(g.default)("Server Unreachable")),r()(u.a,{},void 0,p.join(" "),m,r()(c.a,{to:"https://support.plex.tv/hc/en-us/articles/206225077-How-to-Use-Secure-Server-Connections",target:"_blank",kind:v.PRIMARY,onPress:i},void 0,Object(g.default)("Learn more"))),r()(d.a,{},void 0,r()(l.a,{className:h.a.button,onPress:o},void 0,Object(g.default)("Allow always")),r()(l.a,{className:h.a.button,"data-autofocus":!0,kind:v.PRIMARY,onPress:a
},void 0,Object(g.default)("Allow once"))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(20),u=n(61),d=n(88),p=n(552),h=n.n(p),f=n(84),v=n(51),g=n(3),m=r()("br",{});t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{friendlyName:e.friendlyName,isInstallingServerUpdate:e.isInstallingServerUpdate,isOutOfDate:e.isOutOfDate,isUnauthorized:e.isUnauthorized,isUnavailable:e.isUnavailable,sourceTitle:e.sourceTitle}})}
var a=n(11),r=n(4),o=(n.n(r),n(35)),s=n(4445);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,n=e.isInstallingServerUpdate,i=e.isOutOfDate,a=e.isUnauthorized,o=e.isUnavailable,d=e.onModalClose,g=[],m=Object(v.default)("Server is Unavailable");return n?g.push(Object(v.default)('The server "{serverName}" is installing an update.',{serverName:t
}),Object(v.default)("Grab a cup of tea. This may take a couple of minutes.")):i?(m=Object(v.default)("Update Required"),g.push(Object(v.default)('The server "{serverName}" is out of date.',{serverName:t}),Object(v.default)("This version of Plex requires Plex Media Server {version} or higher.",{version:"1.3.0"}))):a?g.push(Object(v.default)("No soup for you!"),Object(v.default)("You do not have access to this server.")):o&&g.push(Object(v.default)('The server "{serverName}" is unavailable.',{
serverName:t}),Object(v.default)("Plex will automatically try to reconnect to this server.")),r()(s.Fragment,{},void 0,r()(h.a,{},void 0,m),r()(c.a,{},void 0,g.join(" ")),r()(u.a,{},void 0,r()(l.a,{className:p.a.button,"data-autofocus":!0,kind:f.PRIMARY,onPress:d},void 0,Object(v.default)("Okay"))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(552),p=n.n(d),h=n(84),f=n(51),v=n(3);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.onModalClose,n=[Object(m.default)("There was an unexpected error."),Object(m.default)("Please visit our forums if you continue to experience problems.")];return r()(s.Fragment,{},void 0,r()(f.a,{},void 0,Object(m.default)("Content is Unavailable")),r()(u.a,{},void 0,n.join(" "),y,r()(c.a,{to:g.a,target:"_blank",kind:v.PRIMARY,onPress:t},void 0,Object(m.default)("Go to Forums"))),r()(d.a,{},void 0,r()(l.a,{className:h.a.button,"data-autofocus":!0,kind:v.PRIMARY,onPress:t
},void 0,Object(m.default)("Okay"))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(20),u=n(61),d=n(88),p=n(552),h=n.n(p),f=n(84),v=n(51),g=n(321),m=n(3),y=r()("br",{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.onModalClose,n=[Object(v.default)("The server associated with this content is no longer accessible."),Object(v.default)("You can safely remove this content.")]
;return r()(s.Fragment,{},void 0,r()(h.a,{},void 0,Object(v.default)("Unknown Server")),r()(c.a,{},void 0,n.join(" ")),r()(u.a,{},void 0,r()(l.a,{className:p.a.button,"data-autofocus":!0,kind:f.PRIMARY,onPress:t},void 0,Object(v.default)("Okay"))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(552),p=n.n(d),h=n(84),f=n(51),v=n(3);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.cellX,i=e.cellY,a=e.cellWidth,o=e.cellHeight,s=e.listContext,u=e.listSubtype,d=e.listType,p=Object(c.d)(a,d,u,s),h={position:"absolute",top:0,left:0,width:a+"px",height:p+"px"};return r()(l.a,{cellX:n,cellY:i,cellWidth:a,cellHeight:o},void 0,r()("div",{className:t,style:h}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(91)),c=(n(33),n(130)),u=n(4449),d=n.n(u);i.defaultProps={className:d.a.posterCell},t.a=i},function(e,t){e.exports={
posterCell:"HomeHubPosterPlaceholderCell-posterCell-1jeJq"}},function(e,t){e.exports={hubCell:"HomeHubCell-hubCell-3ioBj HubCell-hubCell-3Ys17",hubCellHeader:"HomeHubCell-hubCellHeader-1j-ZK HubCell-hubCellHeader-3s3KK HubCellHeader-hubCellHeader-2pvYN",titleSeparator:"HomeHubCell-titleSeparator-4VHhF HubCell-titleSeparator-_noi6 DashSeparator-separator-4CyEF",sourceTitle:"HomeHubCell-sourceTitle-2q-ZZ HubCell-sourceTitle-2X9oM",
hubScroller:"HomeHubCell-hubScroller-TifVn HubCell-hubScroller-2qgkr VirtualListScroller-scroller-3aWqh",errorSeparator:"HomeHubCell-errorSeparator-1u82z HomeHubCell-titleSeparator-4VHhF HubCell-titleSeparator-_noi6 DashSeparator-separator-4CyEF",errorTitle:"HomeHubCell-errorTitle-2f970 HomeHubCell-sourceTitle-2q-ZZ HubCell-sourceTitle-2X9oM",iconButton:"HomeHubCell-iconButton-1zgW6",iconButtonIcon:"HomeHubCell-iconButtonIcon-2eaaL"}},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),
n(108)),r=n(58),o=n(76),s=n(495),l=Object(i.createSelector)(o.a,function(e){return e.activeSelectionItems[0]}),c=Object(i.createSelector)(a.a,l,function(e,t){return t&&e[t.model]}),u=Object(i.createSelector)(c,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{providerEntityID:e.providerEntityID,serverEntityID:e.serverEntityID}});t.a=Object(r.a)(u)(s.a)},function(e,t,n){"use strict";function i(e){return r()(m.a,{
title:Object(f.default)("Your home screen is currently empty"),url:b.a},void 0,M,r()("p",{className:S.a.message},void 0,r()(v.a,{message:Object(f.default)("If this seems unexpected, see our {openLink}home screen customization tips{closeLink}."),tags:[{open:"openLink",close:"closeLink",component:l.a,kind:u.PRIMARY,to:h.b,target:"_blank"}]})),r()("p",{className:S.a.message},void 0,r()(v.a,{
message:Object(f.default)("You can also {openLink}restore your home screen{closeLink} if you removed everything and want it all back."),tags:[{open:"openLink",close:"closeLink",kind:u.PRIMARY,component:l.a,onPress:e.onResetHomeSettings}]})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(184),u=n(51),d=n(469),p=n.n(d),h=n(321),f=n(3),v=n(187),g=n(591),m=n(592),y=n(1713),b=n.n(y),I=n(4457),S=n.n(I),M=r()(g.a,{},void 0,r()(c.a,{src:p.a}));t.a=i},function(e,t){e.exports={
badge:"HeroPageBadge-badge-1bcIE"}},function(e,t,n){"use strict";function i(e){var t=e.url;return s()(u.a,{className:h.a.container,url:t,background:!0,backgroundPosition:"center center",backgroundSize:"cover",transition:!0,transitionProps:r()({className:h.a.transitionContainer},d.a)})}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(184)),d=n(311),p=n(4455),h=n.n(p);t.a=i},function(e,t){e.exports={container:"HeroImg-container-vFZw-",
transitionContainer:"HeroImg-transitionContainer-3-eob HeroImg-container-vFZw-"}},function(e,t){e.exports={innerPageContent:"HeroPageContent-innerPageContent-3E0Xm PageContent-innerPageContent-3ktLT",content:"HeroPageContent-content-1IqTf PageContent-innerPageContent-3ktLT",title:"HeroPageContent-title-ssww7",message:"HeroPageContent-message-3pAdf"}},function(e,t){e.exports={message:"HomeZeroStatePageContent-message-1IXp0 HeroPageContent-message-3pAdf"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(0),p=(n.n(d),n(151)),h=n(117),f=n(3),v=n(244),g=n(590),m=n(165),y=n(1042),b=n(4459),I={isEditModalOpen:!1},S=a()(g.a,{}),M=a()(m.a,{}),D=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.state=I,i.onEditButtonPress=function(){i.setState({isEditModalOpen:!i.state.isEditModalOpen})},
i.onModalClose=function(){i.setState(I)},a=n,l()(i,a)}return u()(t,e),t.prototype.render=function(){var e=this.state.isEditModalOpen;return a()(v.a,{},void 0,a()(p.a,{},void 0,Object(f.default)("Home")),a()(h.a,{},void 0,a()(y.a,{onPress:this.onEditButtonPress}),S,M,a()(b.a,{isOpen:e,onModalClose:this.onModalClose})))},t}(d.Component);t.a=D},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.onModalClose;return r()(c.a,{size:u.e.MEDIUM,isOpen:t,metricsPage:l.D,onModalClose:n
},void 0,r()(d.a,{onModalClose:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(30)),c=n(114),u=n(24),d=n(4460);t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(272)),o=n(402),s=n(4461),l=Object(a.createSelector)(o.a,function(e){return{homeHubs:e.hubs,settingsKey:e.settingsKey}}),c={onReorderHomeHubs:r.f,onResetHomeSettings:r.g};t.a=Object(i.connect)(l,c)(s.a)},function(e,t,n){"use strict";function i(e){return{mode:e,isEditing:e===x,isEmpty:e===N,isRestoring:e===L}}
function a(e){var t=e.homeHubs.length?x:N,n=i(t);return n.editableHomeHubs=e.homeHubs,n.homeHubs=e.homeHubs,n.removedHomeHubIDs={},n}var r=n(2),o=n.n(r),s=n(6),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=(n.n(g),n(73)),y=n(42),b=n(20),I=n(61),S=n(88),M=n(84),D=n(51),C=n(57),j=n(4462),P=n(3),O=n(26),T=n(98),E=n(4464),w=n(4472),A=n.n(w),x=1,N=2,L=3,k=function(e){function t(n,r){u()(this,t);var o=p()(this,e.call(this,n,r));return o.onSaveButtonPress=function(){
var e=o.state.removedHomeHubIDs,t=o.state.editableHomeHubs.reduce(function(t,n){return n.id in e||t.push(n.id),t},[]);o.props.onReorderHomeHubs({isUserInitiated:!0,homeHubIDs:t}),o.props.onModalClose()},o.onCancelButtonPress=function(){o.props.onModalClose()},o.onBackButtonPress=function(){var e=o.state.editableHomeHubs.length?x:N,t=i(e);o.setState(t)},o.onRestoreLinkPress=function(){var e=i(L);o.setState(e)},o.onToggleRemoveHomeHub=function(e){var t=o.state.removedHomeHubIDs,n=l()({},t)
;e in n?delete n[e]:n[e]=e,o.setState({removedHomeHubIDs:n})},o.onReorderHomeHub=function(e){var t=e.fromIndex,n=e.toIndex;if(t!==n){var i=o.state.editableHomeHubs;o.setState({editableHomeHubs:Object(j.a)(i,t,n)})}},o.state=a(n),o}return f()(t,e),t.getDerivedStateFromProps=function(e,t){return e.homeHubs!==t.homeHubs?a(e):null},t.prototype.render=function(){
var e=this.props,t=e.settingsKey,n=e.onResetHomeSettings,i=e.onModalClose,a=this.state,r=a.editableHomeHubs,s=a.isEditing,l=a.isEmpty,c=a.isRestoring,u=a.removedHomeHubIDs;return o()(T.a,{onModalClose:i},void 0,o()(M.a,{},void 0,s||l?Object(P.default)("Edit Home Screen"):null,c?Object(P.default)("Restore Defaults"):null),o()(I.a,{className:A.a.modalBody,innerClassName:A.a.innerModalBody,scrollDirection:C.NONE},void 0,o()("div",{className:(A.a.pane||"")+" "+((l?null:A.a.isHidden)||"")
},void 0,o()("p",{},void 0,Object(P.default)('Your home screen is currently empty. Click the "+" beside the title of any content row in a media source to add it to your home screen, or click "{buttonLabel}" below to repopulate your home screen with content based on your preferred source.',{buttonLabel:Object(P.default)("Restore Defaults")}))),o()("div",{className:(A.a.pane||"")+" "+(A.a.editPane||"")+" "+((s?null:A.a.isHidden)||"")
},void 0,o()("p",{},void 0,Object(P.default)("Drag to reorder the content hubs shown on your home screen, or remove them entirely. Only hubs with content in them will be visible on your home screen.")),o()(E.a,{className:A.a.sortableServers,homeHubs:r,removedHomeHubIDs:u,onReorderHomeHub:this.onReorderHomeHub,onToggleRemoveHomeHub:this.onToggleRemoveHomeHub})),o()("div",{className:(A.a.pane||"")+" "+((c?null:A.a.isHidden)||"")
},void 0,o()("p",{},void 0,Object(P.default)("Restoring your home screen will undo any customization you have done {dash} including content hubs you've added and the order in which they're presented {dash} returning it to its default configuration.",{dash:m.a})),o()("p",{},void 0,Object(P.default)("Restoring will give you the opportunity to choose a preferred server to build your home screen, if more than one server is available to you.")))),o()(S.a,{className:A.a.footer
},void 0,s?o()(g.Fragment,{},t,o()(b.a,{kind:D.PRIMARY,onPress:this.onRestoreLinkPress},void 0,o()(O.a,{className:A.a.reloadIcon,name:"plex-icon-reload-560"}),Object(P.default)("Restore Defaults")),o()(y.a,{className:A.a.splitButton,onPress:this.onCancelButtonPress},void 0,Object(P.default)("Cancel")),o()(y.a,{className:A.a.button,"data-autofocus":!0,kind:D.PRIMARY,onPress:this.onSaveButtonPress},void 0,Object(P.default)("Save"))):null,l?o()(g.Fragment,{},void 0,o()(b.a,{kind:D.PRIMARY,
onPress:this.onRestoreLinkPress},void 0,o()(O.a,{className:A.a.reloadIcon,name:"plex-icon-reload-560"}),Object(P.default)("Restore Defaults")),o()(y.a,{className:A.a.splitButton,"data-autofocus":!0,kind:D.PRIMARY,onPress:this.onCancelButtonPress},void 0,Object(P.default)("Close"))):null,c?o()(g.Fragment,{},void 0,o()(y.a,{onPress:this.onBackButtonPress},void 0,Object(P.default)("Back")),o()(y.a,{className:A.a.splitButton,onPress:this.onCancelButtonPress
},void 0,Object(P.default)("Cancel")),o()(y.a,{kind:D.DANGER,onPress:n},void 0,Object(P.default)("Restore"))):null))},t}(g.Component);t.a=k},function(e,t,n){"use strict";function i(e,t,n){var i=e.slice(0);if(n<0||n>i.length)return i;var r=i[t];return i=Object(a.a)(i,t),i.splice(n,0,r),i}t.a=i;var a=n(4463)},function(e,t,n){"use strict";function i(e,t){var n=e.slice(0);return t<0||t>=n.length?n:(n.splice(t,1),n)}t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(67),m=n(638),y=n(80),b=n(57),I=n(483),S=n(4465),M=n(4469),D=n(4471),C=n.n(D),j=-1,P={dragIndex:-1,dropIndex:j,hasValidDropTarget:!1},O=a()(m.a,{},void 0,a()(S.a,{})),T=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.state=o()({},P,{listHeight:0,
listWidth:0,listTop:0,listRight:0,listBottom:0,listLeft:0}),i.onItemDragMove=function(e){var t=e.dragIndex,n=e.dropIndex,a=i.state,r=a.dragIndex,o=a.dropIndex,s=n!==o?n:o,l=t!==r?t:r,c=s===l,u=s>l&&s-l==1;if((c||u)&&(s=j),l!==r||s!==o){var d={dragIndex:l,dropIndex:s,hasValidDropTarget:s!==j};i.setState(d)}},i.onItemDragEnd=function(e){var t=i.state,n=t.dragIndex,a=t.dropIndex,r=void 0;e.didDrop&&a!==j&&(r=function(){i.props.onReorderHomeHub({fromIndex:n,toIndex:a>n?a-1:a})}),i.setState(P,r)},
i.onMeasure=function(e){var t=e.height,n=e.width,a=e.x,r=e.y;i.setState({listHeight:t,listWidth:n,listTop:r,listRight:a+n,listBottom:r+t,listLeft:a})},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.homeHubs,r=t.removedHomeHubIDs,s=t.onToggleRemoveHomeHub,l=this.state,c=l.dropIndex,u=l.hasValidDropTarget;return a()(g.a,{className:n,ignoreTransforms:!0,onMeasure:this.onMeasure},void 0,a()(y.a,{className:C.a.scroller,scrollDirection:b.VERTICAL
},void 0,i.map(function(t,n){var i=t.id,a=n,l=u&&c===a,d=u&&c===a+1;return v.a.createElement(M.a,o()({},e.state,{key:i,homeHubID:i,listIndex:a,hasValidDropTarget:u,isRemoved:!!r[i],isDraggingAfter:d,isDraggingBefore:l,onItemDragMove:e.onItemDragMove,onItemDragEnd:e.onItemDragEnd,onToggleRemoveHomeHub:s}))}),O))},t}(f.Component);T.defaultProps={className:C.a.container},t.a=Object(I.a)(T)},function(e,t,n){"use strict";function i(e,t){var n=e.getItem(),i={item:n,style:null
},a=e.getInitialSourceClientOffset(),r=e.getSourceClientOffset();if(e.getItemType()===M.b&&a&&r){var o=r.y;o-n.listTop<=0?o=n.listTop:o+O>=n.listBottom&&(o=n.listBottom-O),i.style=Object(D.a)({x:a.x,y:o},n.listWidth)}return i}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(225),I=(n.n(b),n(579)),S=n(1714),M=n(290),D=n(1070),C=n(46),j=(n.n(C),
n(4468)),P=n.n(j),O=parseInt(C.homeServerListItemHeight,10),T=function(e){function t(){return d()(this,t),h()(this,e.apply(this,arguments))}return v()(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.style;if(!t||!n)return null;var i=(t.listHeight,t.listWidth,t.listTop,t.listRight,t.listBottom,t.listLeft,c()(t,["listHeight","listWidth","listTop","listRight","listBottom","listLeft"]));return s()(I.a,{},void 0,y.a.createElement(S.a,r()({},i,{style:n,className:P.a.listItem})))},t
}(m.Component);t.a=Object(b.DragLayer)(i)(T)},function(e,t,n){"use strict";function i(e,t){var n=e.className,i=e.sourceTitle,a=e.title,o=e.style,s=e.isRemoved,l=e.connectDragSource,p=e.onToggleRemoveHomeHub;return r()("div",{className:(n||"")+" "+(s&&h.a.isRemoved||""||""),style:o},void 0,l(r()("div",{},void 0,r()(u.a,{className:h.a.iconReorder,name:"plex-icon-reorder-560"}))),r()("span",{className:h.a.label},void 0,r()("span",{className:h.a.title},void 0,a),i?f:null,i||null),r()(d.a,{
className:h.a.toggleButton,isRemovable:!s,tooltip:s?Object(c.default)("Restore"):Object(c.default)("Remove"),onPress:p}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(73)),c=n(3),u=n(26),d=n(1517),p=n(4467),h=n.n(p),f=r()(l.b,{});i.defaultProps={className:h.a.listItem,isRemoved:!1,connectDragSource:function(e){return e}},t.a=i},function(e,t){e.exports={listItem:"HomeHubListItem-listItem-3aSc2",label:"HomeHubListItem-label-1g_Fb",title:"HomeHubListItem-title-3xEA8",
isRemoved:"HomeHubListItem-isRemoved-HpH7U",iconReorder:"HomeHubListItem-iconReorder-1GrJs",toggleButton:"HomeHubListItem-toggleButton-2C4qs AddOrRemoveButton-button-3FgmE IconButton-button-9An-7"}},function(e,t){e.exports={listItem:"HomeHubListItemDragPreview-listItem-iDQ3J HomeHubListItem-listItem-3aSc2"}},function(e,t,n){"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function a(e,t){return{
connectDropTarget:e.dropTarget(),isOver:t.isOver()}}var r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(225),b=(n.n(y),n(406)),I=(n.n(b),n(129)),S=(n.n(I),n(372)),M=n(290),D=n(1714),C=n(4470),j=n.n(C),P={beginDrag:function(e,t,n){var i=e.homeHubID;return{dragIndex:e.listIndex,homeHubID:i,isRemoved:e.isRemoved,listHeight:e.listHeight,listWidth:e.listWidth,listTop:e.listTop,listRight:e.listRight,listBottom:e.listBottom,
listLeft:e.listLeft}},endDrag:function(e,t,n){e.onItemDragEnd({didDrop:t.didDrop()})}},O={hover:function(e,t,n){var i=t.getClientOffset(),a=Object(I.findDOMNode)(n).getBoundingClientRect(),r=(a.bottom-a.top)/2,o=i.y-a.top,s=t.getItem().dragIndex,l=e.listIndex,c=void 0;c=l===s?l:o>r?l+1:l,e.onItemDragMove({dragIndex:s,dropIndex:c})}},T=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidMount=function(){
this.props.connectDragPreview(Object(b.getEmptyImage)())},t.prototype.render=function(){var e=this.props,t=e.isOver,n=e.isDragging,i=(e.listIndex,e.dropIndex,e.listHeight,e.listWidth,e.listTop,e.listRight,e.listBottom,e.listLeft,e.isDraggingBefore),a=e.isDraggingAfter,r=e.connectDropTarget,s=l()(e,["isOver","isDragging","listIndex","dropIndex","listHeight","listWidth","listTop","listRight","listBottom","listLeft","isDraggingBefore","isDraggingAfter","connectDropTarget"]);return r(o()("div",{
className:(j.a.container||"")+" "+(t&&j.a.isOver||"")+" "+(n&&S.c||"")+" "+(t&&i&&S.e||"")+" "+(t&&a&&S.d||""||"")},void 0,m.a.createElement(D.a,s)))},t}(g.Component);t.a=Object(y.DropTarget)(M.b,O,a)(Object(y.DragSource)(M.b,P,i)(T))},function(e,t){e.exports={container:"HomeHubListItemDragSource-container-1T0Du",isOver:"HomeHubListItemDragSource-isOver-1k9kx"}},function(e,t){e.exports={container:"SortableHomeHubs-container-2NqZ- Measure-container-3yONE",
scroller:"SortableHomeHubs-scroller-_fZlT Scroller-scroller-3GqQc"}},function(e,t){e.exports={modalBody:"EditHomeModalContent-modalBody-2rHN2 ModalBody-modalBody--5uHS",innerModalBody:"EditHomeModalContent-innerModalBody-4OMCU",pane:"EditHomeModalContent-pane-3Azgq ModalBody-innerModalBody-36gmb",isHidden:"EditHomeModalContent-isHidden-2gSrW",editPane:"EditHomeModalContent-editPane-1xAxS",
sortableServers:"EditHomeModalContent-sortableServers-1uFWu SortableHomeHubs-container-2NqZ- Measure-container-3yONE",reloadIcon:"EditHomeModalContent-reloadIcon-3wbMu",footer:"EditHomeModalContent-footer-10Ix6 ModalFooter-modalFooter-30WIB",button:"EditHomeModalContent-button-HgDyC ModalFooter-button-15VJa Button-button-2kT68 Link-link-2n0yJ",splitButton:"EditHomeModalContent-splitButton-gmcHm ModalFooter-splitButton-2NLiB ModalFooter-button-15VJa Button-button-2kT68 Link-link-2n0yJ"}
},function(e,t){e.exports={homePageContent:"HomePage-homePageContent-2Uzcw PageContent-innerPageContent-3ktLT"}},function(e,t,n){"use strict";function i(e,t){var n=e.preferredServerEntityID,i=e.dispatchChangeQuickSearchSettings;if(n!==t.preferredServerEntityID){var a=null,r=null,o=null;n&&(a=b.d,r=Object(I.a)(S.k,a,n),o=n),i({providerEntityID:r,providerIdentifier:a,serverEntityID:o})}}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),
n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(1715)),y=n(1716),b=n(41),I=n(38),S=n(45),M=n(93),D=n(4475),C=Object(g.createSelector)(m.a,function(e){return e.length>0}),j=Object(g.createSelector)(function(e){return e.isWaitingForServers},y.a,C,function(e,t,n){return{preferredServerEntityID:t&&t.entityID,shouldSelectPreferredServer:!t&&!e&&n,isPending:!t&&e}}),P={dispatchChangeQuickSearchSettings:M.changeQuickSearchSettings},O=function(e){function t(){return s()(this,t),
c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){i(this.props,{})},t.prototype.componentDidUpdate=function(e){i(this.props,e)},t.prototype.render=function(){var e=this.props,t=(e.preferredServerEntityID,e.dispatchChangeQuickSearchSettings,r()(e,["preferredServerEntityID","dispatchChangeQuickSearchSettings"]));return f.a.createElement(D.a,t)},t}(h.Component);t.a=Object(v.connect)(j,P)(O)},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.isPending,i=e.shouldSelectPreferredServer;return n?d:i?p:r()(s.Fragment,{},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(31)),c=n(85),u=n(4476),d=r()(c.a,{},void 0,r()(l.a,{})),p=r()(u.a,{});t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(272)),o=n(4477),s=n(1717),l=n(4478),c=Object(a.createSelector)(s.a,o.a,function(e,t){return{preferredServerIdentifiers:e?t.find(function(t){return t.machineIdentifier===e}):void 0,serverIdentifiers:t}
}),u={onSavePreferredServer:r.c};t.a=Object(i.connect)(c,u)(l.a)},function(e,t,n){"use strict";var i=n(4),a=(n.n(i),n(161)),r=n(1715),o=Object(a.a)(Object(i.createSelector)(r.a,function(e){return e.reduce(function(e,t){var n=t.entityID,i=t.machineIdentifier;return n&&i&&e.push({entityID:n,machineIdentifier:i}),e},[])}),function(e){return e});t.a=o},function(e,t,n){"use strict";function i(e){return e.allowImplicitSave&&1===e.serverIdentifiers.length}
var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=n.n(p),f=n(0),v=(n.n(f),n(184)),g=n(57),m=n(469),y=n.n(m),b=n(30),I=n(3),S=n(591),M=n(592),D=n(92),C=n(1718),j=n(1719),P=n.n(j),O=r()(S.a,{},void 0,r()(v.a,{src:y.a})),T=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onContinueButtonPress=function(e){i.props.onSavePreferredServer(e)},a=n,c()(i,a)}
return d()(t,e),t.prototype.componentDidMount=function(){if(i(this.props)){var e=this.props.preferredServerIdentifiers||this.props.serverIdentifiers[0];this.props.onSavePreferredServer({machineIdentifier:e.machineIdentifier})}},t.prototype.render=function(){
var e=this.props,t=e.serverIdentifiers,n=e.preferredServerIdentifiers,a=Object(I.default)("Choose your preferred server"),o=[Object(I.default)("We noticed you have more than one Plex Media Server available to you."),Object(I.default)("We'll construct a personalized home screen based on the preferred server below.")];return i(this.props)?null:r()(D.a,{metricsPage:b.x,allowBackgroundLightPreset:!0,scrollDirection:g.NONE},void 0,r()(M.a,{title:a,messages:o,url:P.a},void 0,O,r()(C.a,{
preferredServerIdentifiers:n,serverIdentifiers:t,actionDescription:Object(I.default)("Continue"),onActionPress:this.onContinueButtonPress})))},t}(f.Component);h.a.shape({machineIdentifier:h.a.string.isRequired,entityID:h.a.string.isRequired});T.defaultProps={allowImplicitSave:!0},t.a=T},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.serverIdentifiers,i=e.target,a=e.onMenuClose,o=e.onPress;return r()(l.a,{className:p.a.serverMenu,target:i,isOpen:t,scrollerProps:c.b,maxHeight:c.a,
onMenuClose:a},void 0,n.map(function(e){var t=e.entityID,n=e.machineIdentifier;return r()(u.a,{serverEntityID:t,machineIdentifier:n,onPress:o},t)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(56)),c=n(1631),u=n(4480),d=n(4483),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(){return Object(u.a)(Object(d.a)(),["activeConnection","friendlyName","isCloudSyncServer","isConnected","isOutOfDate","isRelayed","isSecure","isUnavailable","sourceTitle"])}function a(e,t){return{
onPress:function(){t.onPress({entityID:t.serverEntityID,machineIdentifier:t.machineIdentifier})}}}var r=n(6),o=n.n(r),s=n(1),l=n.n(s),c=n(11),u=n(1598),d=n(35),p=n(4481),h=Object(c.connect)(i,a)(p.a);h.propTypes=o()({},h.propTypes,{machineIdentifier:l.a.string.isRequired,serverEntityID:l.a.string.isRequired}),t.a=h},function(e,t,n){"use strict";function i(e){
var t=e.isConnected,n=e.isUnavailable,i=e.isSecure,a=e.isRelayed,o=e.machineIdentifier,s=e.friendlyName,d=e.onPress,h=Object(l.a)(e),f=h.statusWithSource;return r()(c.a,{identifier:o,title:s,details:f,onPress:d},void 0,r()(u.a,{className:p.a.serverMenuIcon,isConnected:t,isUnavailable:n,isSecure:i,isRelayed:a}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(959)),c=n(561),u=n(698),d=n(4482),p=n.n(d);t.a=i},function(e,t){e.exports={
serverMenuIcon:"EligibleServerMenuItem-serverMenuIcon-1t1OL ServerMenuItem-serverMenuIcon-2zKCW"}},function(e,t){e.exports={serverMenu:"EligibleServersMenu-serverMenu-31W19 ServerMenu-serverMenu-6KNnX MenuContainer-menu-2OAQT",serverMenuScroller:"EligibleServersMenu-serverMenuScroller-32wyv undefined"}},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(u.a)(),function(e){return{friendlyName:e.friendlyName}})}
var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(35)),d=n(4485),p=Object(l.connect)(i)(d.a);p.propTypes=r()({},p.propTypes,{serverEntityID:s.a.string}),t.a=p},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,n=e.id,i=e.isMenuOpen,a=e.onPress;return r()(c.a,{className:p.a.button,id:n,onPress:a},void 0,t,r()(l.a,{className:p.a.disclosureArrow,direction:i?u.UP:u.DOWN}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(438)),c=n(42),u=n(233),d=n(4486),p=n.n(d)
;t.a=i},function(e,t){e.exports={button:"SelectedServerButton-button-3BQG- Button-button-2kT68 Link-link-2n0yJ",disclosureArrow:"SelectedServerButton-disclosureArrow-24Lgq DisclosureArrow-disclosureArrow-1KPaB"}},function(e,t){e.exports={continueButton:"ServerSelect-continueButton-yqRJb Button-button-2kT68 Link-link-2n0yJ"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(761)),s=n(38),l=n(45),c=n(48),u=n(336),d=n(192),p=n(4490),h=n(193),f=a()(h.a,{}),v=c.a.extend({
component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params,r=void 0===i?{}:i,c=Object(s.a)(l.m,t),h=Object(s.a)(l.k,n,c);return a()(d.a,{},void 0,f,a()(u.a,{serverEntityID:c},void 0,a()(p.a,{serverEntityID:c,providerEntityID:h,sourceDirectoryKey:r.source,activeFilters:Object(o.a)(r.filters),activeFilterLabel:r.filterLabel})))}});t.a=v},function(e,t,n){"use strict";function i(e,t,n){var i=[].concat(e);if(n.type===l.a){var a=s.a.findIndex(i,function(e){return e.key===t
}),o=-1===a?0:a,c=r()({key:t},n);-1===a?i.push(c):i.splice(o,1,c)}else{s.a.findWhere(i,{key:t,value:n.value})||i.push(r()({key:t},n))}return i}t.a=i;var a=n(6),r=n.n(a),o=n(10),s=n.n(o),l=(n(37),n(333))},function(e,t,n){"use strict";function i(e){var t=e.ui.channelGridPage;return{providerEntityID:t.providerEntityID,serverEntityID:t.serverEntityID,metadataListEntityID:t.metadataList,directoryKey:t.directoryKey}}function a(e,t){e(Object(s.b)({serverEntityID:t.serverEntityID,
providerEntityID:t.providerEntityID,directoryKey:t.directoryKey})),e(Object(s.g)())}var r=n(11),o=n(4),s=(n.n(o),n(243)),l=n(226),c=n(133),u=n(4491),d=Object(o.createStructuredSelector)({metadataListEntityID:function(e){return e.ui.channelGridPage.metadataList},directoryKey:Object(l.a)()}),p=Object(c.a)(u.a,i,a),h=Object(r.connect)(d)(p);t.a=h},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(Object(D.a)(),C.a,function(e,t){
return e&&e.metadataItems?e.metadataItems.map(function(e){return t[e]}):[]})}function a(){return Object(y.createSelector)(function(e){return e.ui.channelGridPage},function(e,t){return t.activeFilters},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.channelsList,i=e.isChannelsListPopulated,a=e.isChannelsListPending,r=e.channelsListError;return!i||a||r?[]:t.find(function(e){return e.key===A})?n.filter(function(e){return!!e.tagValue}):n})}function r(){
return Object(y.createSelector)(function(e){return e.ui.channelGridPage},i(),Object(S.a)(),Object(j.a)(),Object(T.a)(),Object(M.a)(),a(),function(e,t,n,i,a,r,o){return{metadataListEntityID:e.metadataList,sourceDirectory:a,columnTimes:e.columnTimes,providerIdentifier:i.identifier,isRefreshing:!!r,channels:Object(E.a)(e.columnTimes,t,o),containerKey:n}})}var o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),
n(251)),I=n(243),S=n(1656),M=n(239),D=n(132),C=n(108),j=n(54),P=n(152),O=n(93),T=n(580),E=n(1671),w=n(4492),A="hdonly",x={dispatchInitMetadataList:I.c,dispatchResetStartTime:I.h,dispatchResetMetadataList:P.i,dispatchPopulateChannelPrograms:I.f,dispatchChangeQuickSearchSettings:O.changeQuickSearchSettings},N=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){this.props.containerKey&&this._populate(),
this.props.providerIdentifier&&this._setSearchProviderIdentifier(this.props.providerIdentifier)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.providerIdentifier,i=t.containerKey,a=t.columnTimes,r=t.isRefreshing;i&&i!==e.containerKey||r!==e.isRefreshing?this._populate():Object(b.a)(a,e.columnTimes)||this.props.dispatchPopulateChannelPrograms(),n&&n!==e.providerIdentifier&&this._setSearchProviderIdentifier(n)},t.prototype.componentWillUnmount=function(){
var e=this.props.metadataListEntityID;this.props.dispatchResetMetadataList({metadataListEntityID:e}),this._setSearchProviderIdentifier(null)},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.containerKey,a=e.dispatchInitMetadataList,r=e.dispatchResetStartTime,o=e.dispatchPopulateChannelPrograms;r(),a({containerKey:i,serverEntityID:t,providerEntityID:n}),o()},t.prototype._setSearchProviderIdentifier=function(e){var t=this.props;(0,
t.dispatchChangeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:e,sectionID:null})},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitMetadataList,s()(e,["dispatchInitMetadataList"]));return g.a.createElement(w.a,t)},t}(v.Component);t.a=Object(m.connect)(r,x)(N)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.sourceDirectory,o=e.activeFilters,s=e.activeFilterLabel,h=e.channels;return r()(u.a,{metricsPage:c.c,scrollDirection:l.NONE},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:a,activeFilters:o,activeFilterLabel:s,totalSize:h.length}),r()(d.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,channels:h}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=(n(100),
n(92)),d=(n(105),n(4493)),p=n(4496);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(251)),g=n(243),m=n(4494),y=Object(f.createSelector)(function(e){return e.ui.channelGridPage},function(e){return{columnTimes:e.columnTimes}}),b={dispatchSetViewportSize:g.j,dispatchResetStartTime:g.h},I=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a._updateGrid=function(){(0,a.props.dispatchResetStartTime)(),a._resetTimeout()},a.onMeasure=function(e){var t=a.state,n=t.isMeasured,i=t.measuredSize;n&&Object(v.a)(i,e)||a.setState({isMeasured:!0,measuredSize:e},function(){a.setViewportSize(e)})},a._updateTimeout=null,a.state={isMeasured:!1,measuredSize:null},a}return u()(t,e),t.prototype.componentDidMount=function(){this._resetTimeout()},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.metadataListEntityID,i=t.columnTimes;n===e.metadataListEntityID&&Object(v.a)(i,e.columnTimes)||this._resetTimeout()},t.prototype.componentWillUnmount=function(){this._updateTimeout&&clearTimeout(this._updateTimeout)},t.prototype._resetTimeout=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.columnTimes;if(t.length){this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null);var n=Math.floor(Date.now()/1e3),i=7200
;if(t[0]<=n&&t[1]>=n){i=t.find(function(e){return n<e})-n}this._updateTimeout=setTimeout(this._updateGrid,1e3*i)}},t.prototype.setViewportSize=function(e){(0,this.props.dispatchSetViewportSize)(e),this._resetTimeout()},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.channels;return a()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,channels:r,onMeasure:this.onMeasure})},t}(p.Component)
;t.a=Object(h.connect)(y,b)(I)},function(e,t,n){"use strict";function i(e){var t=e.metadataListEntityID,n=e.serverEntityID,i=e.providerEntityID,a=e.channels,o=e.onMeasure;return r()(l.a,{className:d.a.measureContainer,onMeasure:o},void 0,r()(c.a,{className:d.a.gridContent,metadataListEntityID:t,serverEntityID:n,providerEntityID:i,channels:a}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(67)),c=n(1659),u=n(4495),d=n.n(u);t.a=i},function(e,t){e.exports={
measureContainer:"ChannelsGridPageContent-measureContainer-AXLb8",gridContent:"ChannelsGridPageContent-gridContent-2STJV ChannelsGrid-gridContainer-u_bmj"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.channelGridPage},Object(s.a)(),Object(o.a)(),function(e,t,n){return{datePickerTitle:Object(l.a)(1e3*e.startTime),showEPGActivity:!!t,selectedFilterTitle:n}})}var a=n(11),r=n(4),o=(n.n(r),n(1661)),s=n(239),l=n(1059),c=n(4497)
;t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(242)),f=n(131),v=n(491),g=n(117),m=n(47),y=n(28),b=n(3),I=(n(100),n(244)),S=n(337),M=n(748),D=n(1663),C=n(1666),j=(n(105),a()(g.a,{})),P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onDatePickerMenuButtonPress=function(e){a.setState({isDatePickerMenuOpen:!a.state.isDatePickerMenuOpen})},
a.onDatePickerMenuClose=function(){a.setState({isDatePickerMenuOpen:!1})},a.onFilterMenuButtonPress=function(e){a.setState({isFilterMenuOpen:!a.state.isFilterMenuOpen})},a.onFilterMenuClose=function(){a.setState({isFilterMenuOpen:!1})},a.state={isDatePickerMenuOpen:!1,isFilterMenuOpen:!1},a._datePickerMenuButtonID=Object(m.a)(),a._filterMenuButtonID=Object(m.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.sourceDirectory,r=e.selectedFilterTitle,o=e.datePickerTitle,s=e.showEPGActivity,l=e.activeFilters,c=e.activeFilterLabel,u=e.totalSize,d=this.state,p=d.isDatePickerMenuOpen,g=d.isFilterMenuOpen;return a()(I.a,{},void 0,a()(S.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:i},void 0,a()(f.a,{title:Object(b.default)("Guide")}),a()(f.a,{id:this._datePickerMenuButtonID,title:o,hasMenu:!0,isMenuOpen:p,
onPress:this.onDatePickerMenuButtonPress}),a()(D.a,{target:this._datePickerMenuButtonID,isOpen:p,onMenuClose:this.onDatePickerMenuClose}),a()(f.a,{id:this._filterMenuButtonID,title:r,hasMenu:!0,isMenuOpen:g,onPress:this.onFilterMenuButtonPress}),a()(C.a,{target:this._filterMenuButtonID,isOpen:g,activeFilters:l,activeFilterLabel:c,onMenuClose:this.onFilterMenuClose}),a()(h.a,{},void 0,u)),s&&a()(v.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:n})),s&&j)},t}(p.Component);t.a=P
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(506)),s=n(353),l=n(16),c=n(761),u=n(38),d=n(119),p=n(232),h=n(48),f=n(4499),v=n(192),g=n(193),m=a()(g.a,{}),y=h.a.extend({initialize:function(e){l.c("appModel").set("activeNavigationType",e.navigationType)},component:function(e){
var t=e.navigationType,n=e.selectedServerID,i=e.selectedProviderID,r=e.params,l=void 0===r?{}:r,h=Object(u.a)(p.SERVER,n),g=Object(u.a)(p.PROVIDER,i,h),y=l.key||l.source,b=!l.key||Object(o.a)(l.content);return a()(d.a,{metricsContext:l.context},void 0,a()(v.a,{},void 0,m,a()(f.a,{navigationType:t,serverEntityID:h,providerEntityID:g,machineIdentifier:n,sourceDirectoryKey:l.source,directoryKey:y,isContentDirectory:b,title:l.title,activeType:l.type,activeSubype:l.subtype,
activeFilters:Object(c.a)(l.filters),activeFilterLabel:l.filterLabel,activeSort:l.sort,activeLimit:Object(s.a)(l.limit),customFilter:Object(o.a)(l.customFilter),typeKey:l.typeKey,folderKey:l.folderKey,folderTitle:l.folderTitle,parentFolderKey:l.parentFolderKey,parentFolderTitle:l.parentFolderTitle})))}});t.a=y},function(e,t,n){"use strict";function i(e){var t=e.navigationType,n=e.serverEntityID,i=e.providerEntityID,a=e.machineIdentifier,o=e.sourceDirectoryKey;return i&&(n||i)?o?a===c.a?r()(h.a,{
providerEntityID:i},void 0,l.a.createElement(d.a,e)):r()(f.a,{serverEntityID:n},void 0,l.a.createElement(d.a,e)):v:r()(p.a,{navigationType:t})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(90),u=n(330),d=n(4500),p=n(4524),h=n(757),f=n(336),v=r()(u.a,{});t.a=i},function(e,t,n){"use strict";function i(){return Object(c.createStructuredSelector)({sourceDirectory:Object(d.a)()})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(71)),d=n(580),p=n(4501),h=Object(l.connect)(i,{
saveExperienceSettings:u.k})(p.a);h.propTypes=r()({},h.propTypes,{sourceDirectoryKey:s.a.string.isRequired}),t.a=h},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.sourceDirectory,a=e.directoryKey,o=e.isContentDirectory,s=e.title,l=e.activeType,h=e.activeSubtype,f=e.activeFilters,v=e.activeFilterLabel,g=e.activeSort,m=e.activeLimit,y=e.customFilter,b=e.typeKey,I=e.folderKey,S=e.folderTitle,M=e.parentFolderKey,D=e.parentFolderTitle
;return i?i.hubKey===a?r()(c.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:i,hubKey:a}):o?r()(u.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:i,libraryKey:a,activeType:l,activeFilters:f,activeFilterLabel:v,activeSort:g,activeLimit:m,customFilter:y,typeKey:b,folderKey:I,folderTitle:S||i.title,parentFolderKey:M,parentFolderTitle:D}):r()(d.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:i,listKey:a,listTitle:s,listType:l,listSubtype:h}):p}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(100),n(330)),c=n(4502),u=n(4512),d=n(1703),p=(n(105),r()(l.a,{}));t.a=i},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(Object(d.a)(),Object(u.a)(),function(e){return e.ui.discoverPage},b,m.a,function(e,t,n,i,a){var r=n.hubs||[];return{providerIdentifier:t.identifier,providerMetricsIdentifier:t.metricsIdentifier,isProgramGuide:p.c.test(t.identifier),hubEntityIDs:r,isHubsPending:n.isHubsPending,
hubsError:n.hubsError,isEmpty:i,activeSelectionType:a.activeSelectionType}})}function a(e,t){return{onProviderChange:function(n){e(Object(g.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:null}))}}}function r(e){var t=e.ui.discoverPage;return{providerEntityID:t.providerEntityID,hubKey:t.hubKey}}function o(e,t){e(Object(v.c)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,hubKey:t.hubKey})),
e(Object(v.a)({options:{onlyTransient:!0}}))}var s=n(11),l=n(4),c=(n.n(l),n(571)),u=n(54),d=n(35),p=n(41),h=n(991),f=n(133),v=n(1061),g=n(93),m=n(76),y=n(4503),b=Object(l.createSelector)(c.a,function(e){return e.ui.discoverPage.hubs},function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;n-- >0;){var i=t[n],a=e[i];if(a.type!==h.a&&(a.size||a.totalSize))return!1}return!0}),I=Object(f.a)(y.a,r,o);t.a=Object(s.connect)(i,a)(I)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(57)),f=n(30),v=n(490),g=n(749),m=n(730),y=n(92),b=n(157),I=n(1672),S=n(495),M=(n(105),n(4504)),D=n(4506),C=n(4511),j=n.n(C),P=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){this.props.onProviderChange(this.props.providerIdentifier)},t.prototype.componentDidUpdate=function(e){
this.props.providerIdentifier!==e.providerIdentifier&&this.props.onProviderChange(this.props.providerIdentifier)},t.prototype.componentWillUnmount=function(){this.props.onProviderChange(null)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,r=e.providerMetricsIdentifier,o=e.isProgramGuide,s=e.sourceDirectory,l=e.activeSelectionType,c=e.hubEntityIDs,u=e.isHubsPending,d=e.hubsError,p=e.isEmpty,C=e.hubKey,P=e.onRepopulate
;return a()(y.a,{metricsPage:f.x,metricsProperties:{identifier:r,type:s.type},allowBackgroundLightPreset:!0,scrollDirection:h.NONE},void 0,l?a()(S.a,{serverEntityID:t,providerEntityID:n}):a()(M.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:s}),a()(I.a,{serverEntityID:t,providerEntityID:n}),a()(b.a,{innerClassName:j.a.discoverPageContent},void 0,p&&a()(D.a,{serverEntityID:t,providerEntityID:n,providerIdentifier:i,sourceDirectory:s,isPending:u,error:d,onRepopulate:P}),!p&&a()(m.a,{
directoryKey:C,serverEntityID:t,providerEntityID:n,hubEntityIDs:c,sourceDirectory:s,allowHomeHubIndicator:!0,allowPersistentHomeHubStatus:!0,allowToggleHomeHub:!0}),o&&!p&&a()(v.a,{className:j.a.attribution,providerEntityID:n})),o&&a()(g.a,{serverEntityID:t,providerEntityID:n}))},t}(p.Component);t.a=P},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(s.a,Object(o.a)(),function(e,t){return{provider:e,showEPGActivity:!!t}})}var a=n(11),r=n(4),o=(n.n(r),
n(239)),s=n(39),l=n(4505);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.provider,a=e.sourceDirectory,o=e.showEPGActivity,s=i.features.actions.addToCatalog;return r()(u.a,{},void 0,r()(p.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:a}),o&&r()(l.a,{},void 0,r()(h.a,{serverEntityID:t,providerEntityID:n})),r()(c.a,{},void 0,s?r()(v.a,{providerEntityID:n}):null,s?g:null,m))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=(n.n(s),n(491)),c=n(117),u=n(244),d=n(590),p=n(337),h=n(748),f=n(165),v=n(1055),g=(n(105),n(99),r()(d.a,{})),m=r()(f.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.providerIdentifier,n=e.sourceDirectory,i=r()(e,["providerIdentifier","sourceDirectory"]);return u.c.test(t)?l.a.createElement(h.a,i):n.id===c.a?l.a.createElement(d.a,i):l.a.createElement(p.a,i)}var a=n(12),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(1673),u=n(41),d=n(1674),p=n(4507),h=n(4510);t.a=i
},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{machineIdentifier:e.machineIdentifier,isCloud:e.isCloud,isFullOwnedServer:e.isFullOwnedServer}})}var a=n(11),r=n(4),o=(n.n(r),n(35)),s=n(4508);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.machineIdentifier,n=e.isCloud,i=e.isFullOwnedServer,a=e.isPending,o=e.error,s=e.onRepopulate;if(a)return y;if(o)return r()(f.a,{
title:n?Object(d.default)("There was an unexpected error loading this page"):Object(d.default)("There was an unexpected error loading this library")},void 0,r()(c.a,{kind:u.PRIMARY,onPress:s},void 0,Object(d.default)("Retry")));var p=i?Object(d.default)("Expecting more? Visit the Manage Libraries page to add folders and scan library files."):null;return r()(h.a,{title:n?Object(d.default)("This page is currently empty"):Object(d.default)("This library is currently empty"),description:p
},void 0,p?null:r()("div",{className:m.a.emptyDescription}),i?r()(l.a,{className:m.a.manageLibraries,kind:u.PRIMARY,to:Object(v.a)(t,"manage","libraries")},void 0,Object(d.default)("Manage libraries")):null,r()(c.a,{kind:u.PRIMARY,onPress:s},void 0,Object(d.default)("Retry")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(20),u=n(51),d=n(3),p=n(31),h=n(411),f=n(758),v=n(197),g=n(4509),m=n.n(g),y=r()(h.a,{},void 0,r()(p.a,{}));t.a=i},function(e,t){e.exports={
emptyDescription:"DiscoverEmptyLibraryPage-emptyDescription-3CX6G",manageLibraries:"DiscoverEmptyLibraryPage-manageLibraries-5VHLZ"}},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.isPending,a=e.error;return i?h:a?r()(p.a,{title:Object(l.default)("There was an unexpected error loading the Guide")}):r()(u.a,{serverEntityID:t,providerEntityID:n})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(3)),c=n(31),u=n(587),d=n(411),p=n(758),h=r()(d.a,{},void 0,r()(c.a,{}));t.a=i},function(e,t){e.exports={discoverPageContent:"DiscoverPage-discoverPageContent-3vBK2 PageContent-innerPageContent-3ktLT",attribution:"DiscoverPage-attribution-1_O8m ProgramGuideAttribution-attribution-3Ca_I"}},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(function(e){return e.ui.libraryPage},Object(u.a)(),Object(c.a)(),function(e,t,n){var i=e.details;return{
librarySectionID:i&&i.librarySectionID,providerIdentifier:t.identifier,selectedType:n}})}function a(e,t){return{onLibraryChange:function(n,i){e(Object(h.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},dispatchInitLibraryPageMetadataList:function(t){e(p.initLibraryPageMetadataList(t))},dispatchPopulateLibraryFirstCharacters:function(){e(p.populateLibraryFirstCharacters())}}}function r(e){var t=e.ui.libraryPage
;return{providerEntityID:t.providerEntityID,libraryKey:t.libraryKey}}function o(e,t){e(p.initLibraryPage({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,libraryKey:t.libraryKey})),e(p.populateLibraryDetails())}var s=n(11),l=n(4),c=(n.n(l),n(263)),u=n(54),d=n(133),p=n(296),h=n(93),f=n(4513),v=Object(d.a)(f.a,r,o),g=Object(s.connect)(i,a)(v);t.a=g},function(e,t,n){"use strict";function i(e,t){if(e){if(t){var n=Object(O.q)(e.type);return n?Object(O.q)(n.id).typeString:E.e}
return Object(O.n)(e.type)?Object(O.r)(e.type).typeString:e.type}}function a(e){if(e)return e.subtype}function r(){return Object(b.createSelector)(function(e,t){return t.folderKey},function(e){return e.ui.libraryPage},Object(j.a)(),Object(C.a)(),Object(M.a)(),Object(D.a)("query/parse"),Object(S.a)(),Object(I.a)(),L.a,N.a,Object(x.a)(),function(e,t,n,r,o,s){
var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments[8],d=arguments[9],p=arguments[10],h=t.metadataList,f=t.directoryList,v=t.firstCharacters,g=t.details,m=t.isDetailsPending,y=t.isDetailsPopulated,b=t.detailsError,I=i(l,e),S=a(l),M=Object(k.a)(u,T.b,I,S,n);return{librarySectionID:g&&g.librarySectionID,containerKey:r,firstCharacterKey:o,queryParseKey:s,metadataListEntityID:h,directoryListEntityID:f,
providerIdentifier:n.identifier,providerMetricsIdentifier:n.metricsIdentifier,isProgramGuide:P.c.test(n.identifier),showLibrarySpinner:!(b||y&&(h||f)),showLibraryError:!m&&!!b,libraryErrorStatus:b&&b.status,libraryDirectories:g&&g.directories,listTitle:l.title,listType:I,listSubtype:S,listStyle:M,typeKey:l.key,selectedType:l,selectedSort:c,activeSelectionType:d.activeSelectionType,isDirectoryList:!Object(O.n)(I)&&I!==E.e,isLibraryRefreshing:p,firstCharacterCount:v?v.length:0}})}function o(e,t){
return{onLibraryChange:function(n,i){e(Object(A.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},dispatchInitLibraryPageMetadataList:function(t){e(w.initLibraryPageMetadataList(t))},dispatchInitLibraryPageDirectoryList:function(t){e(w.initLibraryPageDirectoryList(t))},dispatchPopulateLibraryFirstCharacters:function(){e(w.populateLibraryFirstCharacters())}}}
var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(752)),S=n(263),M=n(4514),D=n(1071),C=n(4515),j=n(54),P=n(41),O=n(27),T=n(33),E=n(223),w=n(296),A=n(93),x=n(464),N=n(76),L=n(492),k=n(493),R=n(4516),z=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.typeKey,n=e.containerKey;t&&n&&this._populate()},
t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.typeKey,i=t.containerKey;(n&&n!==e.typeKey||i&&i!==e.containerKey)&&this._populate()},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.containerKey,a=e.typeKey,r=e.folderKey,o=e.firstCharacterKey,s=e.queryParseKey,l=e.isDirectoryList,c=e.dispatchInitLibraryPageMetadataList,u=e.dispatchInitLibraryPageDirectoryList,d=e.dispatchPopulateLibraryFirstCharacters;l?u({serverEntityID:t,
providerEntityID:n,containerKey:i,typeKey:a}):(c({serverEntityID:t,providerEntityID:n,containerKey:i,typeKey:a,folderKey:r,firstCharacterKey:o,queryParseKey:s}),d())},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitLibraryPageMetadataList,e.dispatchPopulateLibraryFirstCharacters,l()(e,["dispatchInitLibraryPageMetadataList","dispatchPopulateLibraryFirstCharacters"]));return m.a.createElement(R.a,t)},t}(g.Component);t.a=Object(y.connect)(r,o)(z)},function(e,t,n){"use strict"
;function i(){return Object(a.a)("firstCharacter")}t.a=i;var a=n(1071)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.folderKey},Object(r.a)("all"),function(e,t){return e||t})}t.a=i;var a=n(4),r=(n.n(a),n(1071))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(57)),f=n(1675),v=n(30),g=n(3),m=n(33),y=(n(100),
n(31)),b=n(490),I=n(749),S=n(141),M=n(1676),D=n(92),C=n(85),j=n(330),P=n(203),O=n(1677),T=n(1689),E=n(495),w=n(68),A=(n(105),n(4517)),x=n(4519),N=n(4521),L=n(4523),k=n.n(L),R=a()(C.a,{},void 0,a()(y.a,{})),z=a()(j.a,{}),U=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));B.call(a);var r=n.listHeight,s=n.scrollIndex,c=n.viewportHeight;return a.state={listHeight:r,scrollIndex:s,viewportHeight:c},a}return u()(t,e),t.prototype.componentDidMount=function(){
var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.directoryListEntityID,o=e.sourceDirectory,s=e.libraryDirectories,l=e.libraryKey,c=e.containerKey,u=e.providerIdentifier,d=e.providerMetricsIdentifier,p=e.isProgramGuide,m=e.showLibrarySpinner,y=e.showLibraryError,C=e.libraryErrorStatus,j=e.selectedSort,L=e.listTitle,U=e.listType,B=e.listSubtype,F=e.listContext,_=e.listStyle,V=e.activeSelectionType,H=e.typeKey,Q=e.activeFilters,Y=e.activeFilterLabel,G=e.activeSort,W=e.activeLimit,K=e.customFilter,Z=e.folderKey,q=e.folderTitle,J=e.parentFolderKey,X=e.parentFolderTitle,$=e.isDirectoryList,ee=e.isLibraryRefreshing,te=e.firstCharacterCount,ne=this.state,ie=ne.listHeight,ae=ne.scrollIndex,re=ne.viewportHeight,oe=/titleSort/i.test(j.key),se=Math.max(ie,1),le=te>=5,ce=re/se<=.25,ue=!Z&&oe&&le&&ce,de=_===w.f,pe=!V&&!!Z,he=!V&&!Z
;return m?R:404===C?z:y?a()(P.a,{title:Object(g.default)("There was an unexpected error loading this library")}):a()(D.a,{metricsPage:v.F,metricsProperties:{identifier:d,mode:Z?f.a:f.b,type:U,customFilter:K,style:_},allowBackgroundLightPreset:!0,scrollDirection:h.NONE},void 0,V&&a()(E.a,{serverEntityID:t,providerEntityID:n}),pe&&a()(A.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,sourceDirectory:o,libraryDirectories:s,libraryKey:l,listType:U,listSubtype:B,listContext:F,
listStyle:_,folderKey:Z,folderTitle:q,parentFolderKey:J,parentFolderTitle:X}),he&&a()(N.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i||r,sourceDirectory:o,libraryDirectories:s,libraryKey:l,listType:U,listSubtype:B,listContext:F,listStyle:_,typeKey:H,activeFilters:Q,activeFilterLabel:Y,activeSort:G,customFilter:K,showSortsMenu:!de}),K&&a()(O.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,providerIdentifier:u,typeKey:H,activeSort:G,activeLimit:W,selectedSort:j
}),de&&a()(M.a,{providerEntityID:n,listType:U,listSubtype:B,listContext:F,typeKey:H,activeFilters:Q,activeFilterLabel:Y,activeSort:G,customFilter:K,selectedSort:j,isFolder:!!Z,isDisabled:!!Z}),a()(S.a,{component:x.a,serverEntityID:t,providerEntityID:n,metadataListEntityID:i||r,sourceDirectory:o,containerKey:c,containerTitle:q,providerIdentifier:u,hasGutter:ue,scrollIndex:ae,listTitle:L,listType:U,listSubtype:B,listContext:F,listStyle:_,typeKey:H,activeFilters:Q,activeSort:G,selectedSort:j,
initialSize:50,shouldResetOnUnmount:!0,isDirectoryList:$,isLibraryRefreshing:ee,isFolder:!!Z,onListScrollIndexChange:this.onListScrollIndexChange,onListUpdate:this.onListUpdate,onMeasure:this.onMeasure},void 0,p&&a()(b.a,{className:k.a.attribution,providerEntityID:n})),ue&&a()(T.a,{activeSort:G,viewportHeight:re,onJumpBarItemPress:this.onJumpBarItemPress}),p&&a()(I.a,{serverEntityID:t,providerEntityID:n}))},t}(p.Component),B=function(){var e=this;this.onListScrollIndexChange=function(t){
e.setState({scrollIndex:t})},this.onListUpdate=function(t){var n=t.listStyle.height;e.setState({listHeight:n})},this.onMeasure=function(t){var n=t.height;e.setState({viewportHeight:n})},this.onJumpBarItemPress=function(t){e.setState({scrollIndex:t})}};U.defaultProps={listContext:m.b,scrollIndex:0,listHeight:0,viewportHeight:0},t.a=U},function(e,t,n){"use strict";function i(){return Object(o.createSelector)(function(e,t){return t.sourceDirectory},function(e,t){return t.folderKey},function(e,t){
return t.folderTitle},function(e,t){return t.parentFolderKey},function(e,t){return t.parentFolderTitle},Object(p.a)(),Object(d.a)(),function(e,t,n,i,a,r,o){var l=Object(f.a)(o,e);if(!l)return null;var c=e.key,u={source:e.key,folderKey:i,folderTitle:a};if(!i){var d=c+"/folder";if(d===t)return null;u.folderKey=d,u.folderTitle=e.title}return s.join(Object(m.a)(l.key,r,o),u)})}function a(){return Object(o.createSelector)(function(e,t){return t.sourceDirectory},function(e,t){return t.listType
},function(e,t){return t.libraryDirectories},Object(p.a)(),Object(d.a)(),Object(l.a)(),c.a,Object(u.a)(),i(),function(e,t,n,i,a,r,o,s,l){var c=Object(v.a)(t,null,h.b,a),u={key:"folder"},d=Object(g.a)({server:i,provider:a,sourceDirectory:e,libraryDirectories:n});return{parentRoute:l,size:s.totalSize||s.metadataItems.length,metadataTypes:o,metadataPseudoTypes:d,selectedType:u,allListStyles:c}})}var r=n(11),o=n(4),s=(n.n(o),
n(18)),l=n(226),c=n(331),u=n(132),d=n(54),p=n(35),h=n(33),f=n(732),v=n(410),g=n(1720),m=n(581),y=n(4518);t.a=Object(r.connect)(a)(y.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(242)),f=n(131),v=n(117),g=n(47),m=n(3),y=(n(33),n(244)),b=n(337),I=n(165),S=n(494),M=(n(68),n(105),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTypesMenuButtonPress=function(e){a.setState({
isTypesMenuOpen:!a.state.isTypesMenuOpen})},a.onTypesMenuClose=function(){a.setState({isTypesMenuOpen:!1})},a.state={isTypesMenuOpen:!1},a._typesMenuButtonID=Object(g.a)(),a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.sourceDirectory,r=e.folderTitle,o=e.parentFolderTitle,s=e.parentRoute,l=e.size,c=e.listType,u=e.listContext,d=e.listStyle,p=e.metadataTypes,g=e.metadataPseudoTypes,M=e.selectedType,D=e.allListStyles,C=this.state.isTypesMenuOpen;return a()(y.a,{},void 0,a()(b.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:i},void 0,a()(f.a,{id:this._typesMenuButtonID,title:Object(m.default)("Folders"),hasMenu:!0,isMenuOpen:C,
onPress:this.onTypesMenuButtonPress}),a()(S.a,{target:this._typesMenuButtonID,isOpen:C,types:p,pseudoTypes:g,selectedType:M,activeFilters:[],onMenuClose:this.onTypesMenuClose}),!!s&&a()(f.a,{title:o||i.title,hasMenu:!1,to:s}),a()(f.a,{title:r}),a()(h.a,{},void 0,l)),a()(v.a,{},void 0,a()(I.a,{listType:c,listContext:u,selectedListStyle:d,allListStyles:D})))},t}(p.Component));t.a=M},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,a=e.metadataItemEntityIDs,o=e.totalSize,s=e.isPending,p=e.isPopulated,h=e.error,f=e.typeKey,v=e.activeFilters,g=e.activeSort,m=e.listType,y=e.isFolder,b=e.isLibraryRefreshing,I=o||a.length;return s||p&&I?l.a.createElement(u.a,e):r()(c.a,{},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,providerIdentifier:i,error:h,typeKey:f,activeFilters:v,activeSort:g,listType:m,isFolder:y,isLibraryRefreshing:b}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=(n(100),n(157)),u=n(1704),d=n(4520);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,a=e.error,o=e.typeKey,s=e.activeFilters,l=e.activeSort,b=e.listType,I=e.isFolder,S=e.isLibraryRefreshing,M=p.a[b];return a?r()(m.a,{title:Object(h.default)("There was an unexpected error loading this library")}):c.a.isEmpty(s)?d.c.test(i)?r()(v.a,{serverEntityID:t,providerEntityID:n
}):S?r()(g.a,{icon:M,title:Object(h.default)("Libraries are currently being updated"),description:Object(h.default)("Hang tight while we look for your content")}):r()(g.a,{icon:M,title:I?Object(h.default)("There are no items in this folder"):Object(h.default)("There are no items in this library")}):r()(g.a,{icon:M,title:Object(h.default)("The active filter has no matches"),description:Object(h.default)("Use the menu above to change the active filter")},void 0,r()(u.a,{to:Object(f.a)({typeKey:o,
sort:l}),kind:y.b.PRIMARY},void 0,Object(h.default)("Clear filter")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(10)),c=n.n(l),u=n(20),d=n(41),p=n(550),h=n(3),f=(n(100),n(295)),v=n(587),g=n(411),m=n(758),y=n(24);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.sourceDirectory},function(e,t){return t.libraryKey},function(e,t){return t.listType},function(e,t){return t.listSubtype},function(e,t){return t.listStyle},function(e,t){
return t.libraryDirectories},Object(p.a)(),Object(u.a)(),d.a,l.a,Object(c.a)(),Object(s.a)(),Object(f.a)(),Object(o.a)(),function(e,t,n,i,a,r,o,s,l,c,u,d,p,f){var m=Object(v.a)(n,i,h.b,l);return{provider:l,metadataTypes:c,metadataPseudoTypes:Object(g.a)({server:o,provider:s,sourceDirectory:e,libraryKey:t,libraryDirectories:r}),selectedType:d,selectedFilterTitle:p,selectedSort:f,listType:n,listStyle:a,allListStyles:m,totalSize:u.totalSize}})}var a=n(11),r=n(4),o=(n.n(r),
n(752)),s=n(263),l=n(331),c=n(132),u=n(54),d=n(39),p=n(35),h=n(33),f=n(1686),v=n(410),g=n(1720),m=n(4522);t.a=Object(a.connect)(i)(m.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(242)),f=n(131),v=n(117),g=n(47),m=n(28),y=n(3),b=(n(33),n(100),n(244)),I=n(337),S=n(165),M=n(1072),D=n(488),C=n(1687),j=n(1688),P=n(494),O=(n(68),n(105),n(99),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onFiltersMenuButtonPress=function(e){a.setState({isFiltersMenuOpen:!a.state.isFiltersMenuOpen})},a.onFiltersMenuClose=function(){a.setState({isFiltersMenuOpen:!1})},a.onTypesMenuButtonPress=function(e){a.setState({isTypesMenuOpen:!a.state.isTypesMenuOpen})},a.onTypesMenuClose=function(){a.setState({isTypesMenuOpen:!1})},a.onSortsMenuButtonPress=function(e){a.setState({isSortsMenuOpen:!a.state.isSortsMenuOpen})},a.onSortsMenuClose=function(){a.setState({isSortsMenuOpen:!1})},a.state={
isFiltersMenuOpen:!1,isTypesMenuOpen:!1,isSortsMenuOpen:!1},a._filtersMenuButtonID=Object(g.a)(),a._sortsMenuButtonID=Object(g.a)(),a._typesMenuButtonID=Object(g.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(m.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.provider,o=e.sourceDirectory,s=e.listType,l=e.listSubtype,c=e.listContext,u=e.listStyle,d=e.typeKey,p=e.activeFilters,g=e.activeFilterLabel,m=e.activeSort,O=e.activeLimit,T=e.metadataTypes,E=e.metadataPseudoTypes,w=e.selectedType,A=e.selectedFilterTitle,x=e.selectedSort,N=e.customFilter,L=e.totalSize,k=e.showSortsMenu,R=e.allListStyles,z=this.state,U=z.isFiltersMenuOpen,B=z.isTypesMenuOpen,F=z.isSortsMenuOpen,_=!!w&&w.filters.length>0,V=!!w&&T.length+E.length>0,H=!!(k&&x&&w.sorts.length>1)
;return a()(b.a,{},void 0,a()(I.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:o},void 0,_&&a()(f.a,{id:this._filtersMenuButtonID,title:A,hasMenu:!0,isMenuOpen:U,onPress:this.onFiltersMenuButtonPress}),_&&a()(C.a,{serverEntityID:t,providerEntityID:n,target:this._filtersMenuButtonID,isOpen:U,typeKey:d,activeFilters:p,activeFilterLabel:g,activeSort:m,selectedType:w,showCustomFilter:!!r.features.queryParser,onMenuClose:this.onFiltersMenuClose}),V&&a()(f.a,{id:this._typesMenuButtonID,
title:w.title,hasMenu:T.length+E.length>1,isMenuOpen:B,onPress:this.onTypesMenuButtonPress}),V&&a()(P.a,{target:this._typesMenuButtonID,isOpen:B,types:T,pseudoTypes:E,activeFilters:p,activeSort:m,activeLimit:O,customFilter:N,selectedType:w,onMenuClose:this.onTypesMenuClose}),H&&a()(f.a,{id:this._sortsMenuButtonID,title:Object(y.default)("By {sortTitle}",{sortTitle:x.title}),hasMenu:!0,isMenuOpen:F,onPress:this.onSortsMenuButtonPress}),H&&a()(j.a,{target:this._sortsMenuButtonID,isOpen:F,
typeKey:d,activeFilters:p,activeFilterLabel:g,activeSort:m,activeLimit:O,customFilter:N,sorts:w.sorts,selectedSort:x,onMenuClose:this.onSortsMenuClose}),a()(h.a,{},void 0,L)),a()(v.a,{},void 0,a()(D.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:s,selectedType:w,isLibraryList:!0}),a()(M.a,{selectedListStyle:u,allListStyles:R}),a()(S.a,{listType:s,listSubtype:l,listContext:c,selectedListStyle:u,allListStyles:R})))},t}(p.Component));O.defaultProps={showSortsMenu:!0},t.a=O
},function(e,t){e.exports={attribution:"LibraryPage-attribution-1hvSU ProgramGuideAttribution-attribution-3Ca_I"}},function(e,t,n){"use strict";function i(e,t,n){var i=Object(j.a)(n);if(i&&t.isConnected){var a=t.machineIdentifier,r=n.identifier,o=i.directories.find(function(t){return Object(w.a)(e,n,t)});return o?{machineIdentifier:a,providerIdentifier:r,directoryKey:o.hubKey||o.key}:void 0}}function a(e,t,n){for(var a=0;a<n.length;a++){var r=n[a],o=r.server,s=r.provider
;if(o.machineIdentifier===t.machineIdentifier){var l=i(e,o,s);if(l)return l}}}function r(e,t){for(var n=0;n<t.length;n++){var a=t[n],r=a.server,o=a.provider,s=i(e,r,o);if(s)return s}}function o(){return Object(y.createSelector)(function(e,t){return t.navigationType},T.a,x,M.a,E.a,function(e,t,n,i,o){var s=P.n(e),l=n[e],c=!1,u=!0,d=void 0,p=void 0,h=void 0;if(l){var f=t.find(function(e){var t=e.server,n=e.provider
;return l.machineIdentifier===t.machineIdentifier&&l.providerIdentifier===(n&&n.identifier)})||{},v=f.server,g=f.provider;if(!v||v.isConnected||v.isPending){if(v&&!v.isConnected&&v.isPending)return Object(b.a)("[Source] Waiting for last selected source for %s (%s/%s%s)",e,l.machineIdentifier,l.providerIdentifier,l.directoryKey),{isPending:!0,isProvidersReady:o}}else u=!1,c=!0;var m=Object(j.a)(g);if(m){m.directories.find(function(e){return l.directoryKey===e.hubKey||l.directoryKey===e.key
})&&(u=!1,c=!0)}}if(c)return Object(b.a)("[Source] Using last selected source for %s (%s/%s%s)",e,l.machineIdentifier,l.providerIdentifier,l.directoryKey),{isPending:u,isProvidersReady:o,lastTypeSource:n,navigationType:e,machineIdentifier:l.machineIdentifier,providerIdentifier:l.providerIdentifier,directoryKey:l.directoryKey};if(l&&Object(b.a)("[Source] Last selected source for %s not found (%s/%s%s)",e,l.machineIdentifier,l.providerIdentifier,l.directoryKey),i){var y=a(s,i,t)
;y&&(d=y.machineIdentifier,p=y.providerIdentifier,h=y.directoryKey,u=!1,Object(b.a)("[Source] Selecting preferred source for %s (%s/%s%s)",e,d,p,h))}if(u&&(!i||!i.isPending)){var I=r(s,t);I&&(d=I.machineIdentifier,p=I.providerIdentifier,h=I.directoryKey,u=!1,Object(b.a)("[Source] Selecting best source for %s (%s/%s%s)",e,d,p,h))}return{isPending:u,isProvidersReady:o,navigationType:e,machineIdentifier:d,providerIdentifier:p,directoryKey:h}})}
var s=n(2),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=(n.n(g),n(11)),y=n(4),b=(n.n(y),n(32)),I=n(18),S=n(210),M=n(1716),D=n(72),C=n(90),j=n(473),P=n(221),O=n(71),T=n(563),E=n(1707),w=n(702),A=n(4525),x=Object(y.createSelector)(D.a,function(e){return e.lastTypeSource}),N={dispatchSaveLastTypeSource:O.l,dispatchNavigate:S.i},L=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),
t.prototype.componentDidMount=function(){this.props.isPending||this._redirect(this.props)},t.prototype.componentDidUpdate=function(e){!this.props.isPending&&e.isPending&&this._redirect(this.props)},t.prototype._redirect=function(e){if(!this._hasRedirected){var t=e.navigationType,n=e.machineIdentifier,i=e.providerIdentifier,a=e.directoryKey;this.props.dispatchSaveLastTypeSource({navigationType:t,machineIdentifier:n,providerIdentifier:i,directoryKey:a});var r=I.join(["/",t,n===C.a?null:n,i],{
source:a});this.props.dispatchNavigate({pathname:r,prependHashBang:!0,replace:!0}),this._hasRedirected=!0}},t.prototype.render=function(){var e=this.props,t=e.isPending,n=e.isProvidersReady,i=e.navigationType,a=e.component,r=!this._hasRedirected&&t&&n;return l()(a,{navigationType:i,noBestSourceFound:r})},t}(g.Component);L.defaultProps={component:A.a},t.a=Object(m.connect)(o,N)(L)},function(e,t,n){"use strict";function i(e){var t=e.navigationType;return e.noBestSourceFound?r()(d.a,{
metricsPage:c.x,allowBackgroundLightPreset:!0,scrollDirection:l.NONE},void 0,r()(h.a,{navigationType:t})):f}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(31),d=n(92),p=n(85),h=n(4526),f=r()(p.a,{},void 0,r()(u.a,{}));t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case u.c:return{zeroStateDetails:Object(c.default)("Add your movie collection to Plex and enjoy your favorite flicks anytime, anywhere."),zeroStateImage:h.a};case u.h:return{
zeroStateDetails:Object(c.default)("Got TV? Plex is the best way to watch. Add your library now and binge away!"),zeroStateImage:b.a};case u.d:return{zeroStateDetails:Object(c.default)("Your music collection rocks. Plex makes it rock even harder. Get on it, jam master!"),zeroStateImage:v.a};case u.f:return{zeroStateDetails:Object(c.default)("Plex organizes your photos automagically and lets you enjoy them anywhere, big screen or small. Add some now!"),zeroStateImage:m.a};case u.i:return{
zeroStateDetails:Object(c.default)("Add your personal video collection to Plex and enjoy your precious moments anytime, anywhere."),zeroStateImage:h.a};default:return{zeroStateDetails:null,zeroStateImage:null}}}function a(){return Object(l.createSelector)(function(e,t){return t.navigationType},function(e){var t=Object(u.n)(e);return{navigationType:o()({key:t.key,title:t.title,sectionTypeKey:t.sectionTypeKey},i(e))}})}var r=n(6),o=n.n(r),s=n(11),l=n(4),c=(n.n(l),
n(3)),u=n(221),d=n(4527),p=n(1713),h=n.n(p),f=n(4534),v=n.n(f),g=n(4535),m=n.n(g),y=n(4536),b=n.n(y);t.a=Object(s.connect)(a)(d.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(221)),f=n(4528),v=n(4529),g=n(4532),m=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props.navigationType;return e.sectionTypeKey?a()(g.a,{
type:e.title,details:e.zeroStateDetails,image:e.zeroStateImage,sectionTypeKey:e.sectionTypeKey}):e.key===h.a?a()(f.a,{image:e.zeroStateImage}):a()(v.a,{type:e.title})},t}(p.Component);t.a=m},function(e,t,n){"use strict";function i(){return r()(p.a,{title:Object(u.default)("Get Live TV & DVR in Plex"),messages:[Object(u.default)("Set up a tuner and Plex DVR to enjoy free, high definition TV anytime, anywhere!")],url:f.a},void 0,v)}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),
n(184)),l=n(469),c=n.n(l),u=n(3),d=n(591),p=n(592),h=n(1719),f=n.n(h),v=r()(d.a,{},void 0,r()(s.a,{src:c.a}));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.type;return r()(h.a,{title:Object(u.default)("Houston we have a problem..."),messages:[Object(u.default)("Plex can't seem to find media for {type}. Try refreshing, or if problems persist visit our forums",{type:t})],url:g.a},void 0,r()(p.a,{},void 0,r()(d.a,{className:y.a.icon,name:"plex-icon-alert-560"})),r()(l.a,{to:c.a,
target:"_blank",kind:f.b.PRIMARY},void 0,Object(u.default)("Go to Forums")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(321),u=n(3),d=n(26),p=n(591),h=n(592),f=n(24),v=n(4530),g=n.n(v),m=n(4531),y=n.n(m);t.a=i},function(e,t,n){e.exports=n.p+"desktop/common/img/banners/error.3a995c78fe4e07762e2ea8efa5726fe5.jpg"},function(e,t){e.exports={icon:"GenericZeroStatePageContent-icon-2xb4A"}},function(e,t,n){"use strict";function i(e,t){var n=u.f.get(t.sectionTypeKey),i={
metricsPage:t.metricsPage,options:{seedAttrs:{type:n.key,title:n.title,language:n.defaultLanguage}}};return{onAddLibraryPress:function(t){var n=t.entityID;e(p.a(r()({serverEntityID:n},i)))}}}var a=n(6),r=n.n(a),o=n(4),s=(n.n(o),n(161)),l=n(1495),c=n(1717),u=n(145),d=n(58),p=n(202),h=n(4533),f=Object(s.a)(Object(o.createSelector)(l.a,function(e){return e.map(function(e){return{entityID:e.entityID,machineIdentifier:e.machineIdentifier}})}),function(e){return e
}),v=Object(o.createSelector)(c.a,f,function(e,t){var n=t.find(function(t){return t.machineIdentifier===e});return!n&&t.length>0&&(n=t[0]),{preferredServerIdentifiers:n,serverIdentifiers:t}});t.a=Object(d.a)(v,i)(h.a)},function(e,t,n){"use strict";function i(e){var t=e.preferredServerIdentifiers,n=e.serverIdentifiers,i=e.type,a=e.details,o=e.image,s=e.onAddLibraryPress;return r()(f.a,{title:Object(p.default)("Add {type} to Plex",{type:i}),messages:a?[a]:[],url:o},void 0,g,r()(v.a,{
preferredServerIdentifiers:t,serverIdentifiers:n,actionDescription:Object(p.default)("Add Library"),onActionPress:s}))}var a=n(2),r=n.n(a),o=n(1),s=n.n(o),l=n(0),c=(n.n(l),n(184)),u=n(469),d=n.n(u),p=n(3),h=n(591),f=n(592),v=n(1718),g=r()(h.a,{},void 0,r()(c.a,{src:d.a}));s.a.shape({machineIdentifier:s.a.string.isRequired,entityID:s.a.string.isRequired});t.a=i},function(e,t,n){e.exports=n.p+"desktop/common/img/banners/zero-state-music.3d1d1dbc2cadf7b2fa25ce3edb0af711.jpg"},function(e,t,n){
e.exports=n.p+"desktop/common/img/banners/zero-state-photos.ed650e92ee0271a6a986be83cb09e1c5.jpg"},function(e,t,n){e.exports=n.p+"desktop/common/img/banners/zero-state-shows.a3fae7afcf3bfeef05071e671da79ab0.jpg"},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(38)),s=n(45),l=n(48),c=n(336),u=n(192),d=n(4538),p=n(193),h=a()(p.a,{}),f=l.a.extend({component:function(e){
var t=e.navigationType,n=e.selectedServerID,i=e.selectedProviderID,r=e.params,l=void 0===r?{}:r,p=Object(o.a)(s.m,n),f=Object(o.a)(s.k,i,p);return a()(u.a,{},void 0,h,a()(c.a,{serverEntityID:p},void 0,a()(d.a,{navigationType:t,serverEntityID:p,providerEntityID:f,sourceDirectoryKey:l.source,libraryKey:l.key})))}});t.a=f},function(e,t,n){"use strict";function i(){return Object(l.createSelector)(function(e,t){return t.libraryKey},function(e){return e.ui.timelinePage
},S,d.a,Object(u.a)(),Object(m.a)(),y.a,Object(g.a)(),p.a,function(e,t,n,i,a,r,o,s,l){var u=t.details,d=t.containerKey,p=t.isMomentListPending,h=t.isMomentListPopulated,f=t.momentListError,v=Object(b.a)(i,a,e,{save:1});return{metadataListEntityID:t.metadataList,providerIdentifier:a.identifier,providerMetricsIdentifier:a.metricsIdentifier,librarySectionID:u&&u.librarySectionID,sourceDirectory:r,libraryRoute:v,moments:n,isMomentListPending:p,isMomentListPopulated:h,momentListError:f,
containerKey:d,momentKey:c.join(e,"cluster?clusterZoomLevel=1"),activeSelectionType:o.activeSelectionType,disableReloadThreshold:!!o.activeSelectionType,isLibraryRefreshing:s,columnAdjustment:l.columnAdjustment}})}function a(e,t){return{onLibraryChange:function(n,i){e(Object(f.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},onCloseTimelinePage:function(){e(v.a({}))}}}function r(e){var t=e.ui.timelinePage;return{
serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,momentKey:t.momentKey}}function o(e,t){e(v.b({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,libraryKey:t.libraryKey,momentKey:t.momentKey})),e(v.c())}var s=n(11),l=n(4),c=(n.n(l),n(18)),u=n(54),d=n(53),p=n(72),h=n(133),f=n(93),v=n(1690),g=n(464),m=n(580),y=n(76),b=n(150),I=n(4539),S=Object(l.createSelector)(function(e){return e.ui.timelinePage.momentList},function(e){if(!e)return[];var t=0
;return e.moments.map(function(e){var n=t;t+=e.size;var i=e.id,a=e.title,r=e.size,o=e.avgAR,s=e.startsAt,l=e.size*(e.avgAR||1);return{start:n,end:t,area:l,id:i,title:a,size:r,avgAR:o,startsAt:s}})}),M=Object(h.a)(I.a,r,o),D=Object(s.connect)(i,a)(M);t.a=D},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(67)),f=n(20),v=n(160),g=n(30),m=n(3),y=n(31),b=n(92),I=n(85),S=n(127),M=n(203),D=n(495),C=n(24),j=n(68),P=(n(105),n(4540)),O=n(4542),T=n(4544),E=n.n(T),w=a()(I.a,{},void 0,a()(y.a,{})),A=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,width:t,height:n})},a.onMomentScrollIndexChange=function(e){a.setState({currentMomentTitle:a.props.moments[e].title})},a.state={isMeasured:!1,
currentMomentTitle:"",width:0,height:0},a}return u()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null),this.props.onCloseTimelinePage()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.providerMetricsIdentifier,r=e.metadataListEntityID,o=e.sourceDirectory,s=e.isMomentListPending,l=e.isMomentListPopulated,c=e.momentListError,u=e.moments,d=e.libraryRoute,p=e.activeSelectionType,y=e.columnAdjustment,I=this.state,T=I.isMeasured,A=I.width,x=I.height,N=I.currentMomentTitle,L=200-100*y,k=12+y,R=Math.min(Math.ceil(A/L),k);return l?a()(b.a,{metricsPage:g.F,metricsProperties:{identifier:i,mode:"timeline",type:"photo",style:j.b
},allowBackgroundLightPreset:!0,scrollDirection:C.d.NONE},void 0,p?a()(D.a,{serverEntityID:t,providerEntityID:n}):a()(O.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,sourceDirectory:o,title:N}),a()(h.a,{className:E.a.measured,ignorePosition:!0,onMeasure:this.onMeasure},void 0,T&&a()(P.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,moments:u,columns:R,height:x,onMomentScrollIndexChange:this.onMomentScrollIndexChange}))):s?w:c?a()(M.a,{
title:Object(m.default)("There was an unexpected error loading this library")}):a()(S.a,{title:Object(m.default)("There was an error loading the timeline for this library"),description:Object(m.default)("The photos timeline requires Plex Media Server {version} or higher",{version:v.a.itemClusters})},void 0,a()(f.a,{to:d,kind:C.b.PRIMARY},void 0,Object(m.default)("Browse by Type")))},t}(p.Component);t.a=A},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(550),g=n(3),m=n(1691),y=n(1693),b=n(1697),I=n(157),S=n(411),M=n(1698),D=n(46),C=n.n(D),j=n(4541),P=n.n(j),O=Math.max(0,parseInt(C.a.timelineGutter,10)-40),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onListUpdate=function(e){var t=e.landmarks,n=e.listStyle&&e.listStyle.height;if(t!==a._landmarks){a._landmarks=t
;var i=f.a.pluck(a.props.moments,"startsAt"),r=Object(M.a)(t,i);a.setState({ticks:r,listHeight:n})}},a.state={ticks:null,listHeight:null},a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.moments,o=e.columns,s=e.height,l=e.onMomentScrollIndexChange,c=this.state,u=c.ticks,d=c.listHeight,p=1/s,h=d&&d>s;return r.length?a()("div",{className:P.a.container},void 0,a()(b.a,{className:P.a.stack,
scrollerClassName:P.a.scroller,serverEntityID:t,providerEntityID:n,metadataListEntityID:i,scrollPositionStorageKey:"TimelinePageContent",keyPropName:"id",items:r,size:r.length,columns:o,footerHeight:59,listPadding:55,listGutter:O,hasNestedList:!0,cellComponent:y.a,onListScrollIndexChange:l,onListUpdate:this.onListUpdate}),a()("div",{className:P.a.adornment},void 0,u&&h&&a()(m.a,{pixelProportion:p,ticks:u}))):a()(I.a,{},void 0,a()(S.a,{icon:v.a.photo,
title:Object(g.default)("There are no events in this library")}))},t}(p.Component);t.a=T},function(e,t){e.exports={container:"TimelinePageContent-container-To7vp",stack:"TimelinePageContent-stack-U-1ux PageContent-pageContent-16mK6",adornment:"TimelinePageContent-adornment-3eAmr",scroller:"TimelinePageContent-scroller-3tUHZ"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{totalSize:e.totalSize,listType:s.g,listStyle:l.b,
allListStyles:[l.b]}})}var a=n(11),r=n(4),o=(n.n(r),n(132)),s=n(223),l=n(68),c=n(4543);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.sourceDirectory,o=e.title,s=e.totalSize,m=e.listType,y=e.listStyle,b=e.allListStyles;return r()(p.a,{},void 0,r()(h.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:a},void 0,r()(c.a,{title:Object(d.default)("Timeline")}),r()(c.a,{title:o
}),r()(l.a,{},void 0,s)),r()(u.a,{},void 0,r()(g.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listType:m,isLibraryList:!0}),r()(v.a,{selectedListStyle:y,allListStyles:b}),r()(f.a,{selectedListStyle:y,allListStyles:b})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(242)),c=n(131),u=n(117),d=n(3),p=n(244),h=n(337),f=n(165),v=n(1072),g=n(488);n(68),n(105);t.a=i},function(e,t){e.exports={measured:"TimelinePage-measured-1z6he"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(38)),s=n(45),l=n(48),c=n(336),u=n(192),d=n(4546),p=n(193),h=a()(p.a,{}),f=l.a.extend({component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params,r=void 0===i?{}:i,l=Object(o.a)(s.m,t),p=Object(o.a)(s.k,n,l);return a()(u.a,{},void 0,h,a()(c.a,{serverEntityID:l},void 0,a()(d.a,{serverEntityID:l,providerEntityID:p,sourceDirectoryKey:r.source,selectedViewType:r.view})))}});t.a=f},function(e,t,n){"use strict";function i(){
return Object(m.createSelector)(S.a,Object(I.a)(y.b.SUBSCRIBE),function(e,t){var n=t[0];if(n){var i=e[n];return i&&i.identifier}})}function a(){return Object(m.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e,t){return t.selectedViewType},Object(j.a)(),i(),M.a,function(e,t,n,i,a){var r=e.isPagePopulated,o=e.isCalendarPopulated,s=e.calendarError,l=e.isMediaSubscriptionsPopulated,c=e.mediaSubscriptionsError,u=e.calendar,d=!o&&!s,p=!l&&!c,h=d||p;return{sourceDirectory:n,
isPagePopulated:r,showSpinner:h,showEmptyState:!h&&l&&!e.mediaSubscriptions.length&&o&&!u.scheduled.length,programGuideIdentifier:i,time:u?u.time:void 0,selectedViewType:t||a.calendarViewType}})}var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(64)),b=n(412),I=n(961),S=n(136),M=n(72),D=n(36),C=n(71),j=n(580),P=n(4547),O=p()({saveExperienceSettings:C.k},b),T=function(e){function t(n,i){o()(this,t)
;var a=l()(this,e.call(this,n,i));return a._updateCalendar=function(){a.props.goToToday(),a.props.fetchCalendar(),a._resetUpdateTimeout()},a._updateTimeoutID=null,a}return u()(t,e),t.prototype.componentWillMount=function(){this._populate(),this._resetUpdateTimeout(),this._saveViewType()},t.prototype.componentWillReceiveProps=function(e){var t=e.serverEntityID,n=e.time,i=e.selectedViewType;t!==this.props.serverEntityID&&this._populate(e),
this._updateTimeoutID&&n!==this.props.time&&this._resetUpdateTimeout(),i!==this.props.selectedViewType&&this._saveViewType(e)},t.prototype.componentWillUnmount=function(){this._updateTimeoutID&&clearTimeout(this._updateTimeoutID),this.props.clearRecordingSchedulePage()},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;Object(D.a)(function(){e.initRecordingSchedulePage({serverEntityID:e.serverEntityID}),e.fetchCalendar(),
e.fetchMediaSubscriptions()})},t.prototype._resetUpdateTimeout=function(){this._updateTimeoutID&&clearTimeout(this._updateTimeoutID),this._updateTimeoutID=setTimeout(this._updateCalendar,36e5)},t.prototype._saveViewType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;e.saveExperienceSettings({calendarViewType:e.selectedViewType})},t.prototype.render=function(){return this.props.isPagePopulated?v.a.createElement(P.a,this.props):null},t}(f.Component)
;t.a=Object(g.connect)(a,O)(T)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(28),v=n(30),g=n(92),m=n(483),y=n(24),b=(n(105),n(4548)),I=n(4596),S=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.sourceDirectory,r=e.selectedViewType;return a()(g.a,{metricsPage:v._6,metricsProperties:{pane:r},scrollDirection:y.d.NONE},void 0,a()(I.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:i,selectedViewType:r}),h.a.createElement(b.a,this.props))},t}(p.Component);t.a=Object(m.a)(S)},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.sourceDirectory
},Object(s.a)(),Object(o.a)(),function(e,t,n){return{guideRoute:Object(l.a)(t,n,e,{key:"/"+n.identifier+"/watchnow"})}})}var a=n(11),r=n(4),o=(n.n(r),n(54)),s=n(35),l=n(731),c=n(4549);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.showSpinner,i=e.showEmptyState,a=e.programGuideIdentifier,o=e.selectedViewType,s=e.guideRoute;return n?I:i&&a?r()(p.a,{},void 0,r()(v.a,{icon:"plex-icon-calendar-560",
title:Object(c.default)("You have no recordings scheduled")},void 0,r()(u.a,{className:b.a.emptyDescription,message:Object(c.default)("Check out the {openLink}Guide{closeLink} to browse available programming"),tags:[{open:"openLink",close:"closeLink",component:l.a,kind:g.b.PRIMARY,to:s}]}))):i&&!a?r()(p.a,{},void 0,r()(v.a,{icon:"plex-icon-calendar-560",title:Object(c.default)("You have no recordings scheduled"),description:Object(c.default)("You need a DVR before you can schedule recordings")
})):r()("div",{className:b.a.schedulePageContent},void 0,r()(p.a,{innerClassName:b.a.schedulePageInnerContent},void 0,o===g.c.CALENDAR?r()(f.a,{serverEntityID:t}):null,o===g.c.AGENDA?r()(h.a,{serverEntityID:t}):null),r()(m.a,{serverEntityID:t,providerID:a,guideRoute:s}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(3),u=n(187),d=n(31),p=n(157),h=n(1723),f=n(1732),v=n(411),g=n(24),m=n(4582),y=n(4595),b=n.n(y),I=r()(p.a,{},void 0,r()(v.a,{},void 0,r()(d.a,{})));t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.showError,i=e.isEmpty,a=e.subscriptionCount;return n?r()(c.a,{title:Object(l.default)("There was an error loading the agenda")}):i?r()(u.a,{subscriptionCount:a}):r()("div",{},void 0,h,r()(d.a,{serverEntityID:t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(332),u=n(1724),d=n(4551),p=n(4559),h=r()(p.a,{});t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){
return e.ui.recordingSchedulePage.calendar},function(e){return{events:e.scheduled}})}var a=n(11),r=n(4),o=(n.n(r),n(4552));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.events;return r()("div",{},void 0,n.map(function(e,i){var a=Object(o.a)(e.beginsAt),l=0===i||!Object(s.a)(Object(o.a)(n[i-1].beginsAt),a),c=Object(u.a)(d.e,e.mediaSubscriptionID,t);return r()(p.a,{component:h.a,serverEntityID:t,providerID:e.identifier||e.provider,
metadataItemEntityID:e.metadataItem,mediaSubscriptionEntityID:c,mediaSubscriptionID:e.mediaSubscriptionID,eventID:e.metadataItem.key,status:e.status,error:e.error,linkedKey:e.linkedKey,mediaItem:e.mediaItem,hasConflicts:!(!e.conflicts||!e.conflicts.length),showDate:l},i)}))}var a=n(2),r=n.n(a),o=n(81),s=n(276),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(38)),d=n(45),p=n(1725),h=n(4553);t.a=i},function(e,t,n){"use strict";function i(e,t,n,i,a,r){return"episode"!==e?n:t+" - "+Object(D.a)({seasonIndex:i,
episodeIndex:a,date:r})+" - "+n}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(170),h=n(81),f=n(1),v=(n.n(f),n(0)),g=(n.n(v),n(375)),m=n(20),y=n(28),b=n(138),I=n(574),S=n(313),M=n(713),D=n(360),C=n(3),j=n(320),P=n(222),O=n(1726),T=n(289),E=n(329),w=n(400),A=n(1058),x=n(1729),N=n(4558),L=n.n(N),k={context:b.a},R=r()(A.a,{}),z=r()(g.a,{}),U=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onLinkPress=function(e){a.setState({
isAiringDetailsModalOpen:!0})},a.onConflictIconPress=function(e){a.setState({isConflictsModalOpen:!0})},a.onRecordingModify=function(){a.setState({isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!0})},a.onAiringDetailsModalClose=function(){a.setState({isAiringDetailsModalOpen:!1})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1,isConflictsModalOpen:!1})},a.state={isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!1,isConflictsModalOpen:!1},a}return d()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,a=e.mediaSubscriptionEntityID,o=e.metadataItemEntityID,s=e.prePlayRoute,l=e.type,c=e.title,u=e.grandparentTitle,d=e.index,f=e.parentIndex,v=e.originallyAvailableAt,g=e.error,y=e.mediaItem,b=e.isRecording,D=e.isPostProcessing,A=e.recordingProgress,N=e.isComplete,U=e.hasError,B=e.hasSubscription,F=e.hasConflicts,_=e.showPlay,V=e.showDate,H=e.timeFormat,Q=e.onPlayPress,Y=this.state,G=Y.isAiringDetailsModalOpen,W=Y.isSubscribeModalOpen,K=Y.isConflictsModalOpen,Z=y.beginsAt,q=y.endsAt,J=y.startOffsetSeconds,X=void 0===J?0:J,$=y.endOffsetSeconds,ee=void 0===$?0:$,te=y.premiere,ne=Object(h.a)(Z),ie=Object(I.a)(Z-X,q+ee,{
timeFormat:H}),ae=Object(S.a)(Z),re=Object(p.a)(ne,"E, MMM d");Object(M.a)(Z)?re=Object(C.default)("Yesterday"):ae&&(re=Object(C.default)("Today"));var oe=u||c,se=i(l,u,c,f,d,v);return r()("div",{className:(L.a.event||"")+" "+(N&&L.a.isComplete||"")+" "+(U&&L.a.hasError||""||"")},void 0,r()(m.a,{className:L.a.underlay,to:s,onPress:s?void 0:this.onLinkPress}),r()("div",{className:L.a.overlay},void 0,r()("div",{className:(L.a.date||"")+" "+(ae&&L.a.isToday||""||"")},void 0,V?re:null),r()("div",{
className:L.a.time},void 0,ie),r()("div",{className:L.a.title,title:se},void 0,te?R:null,oe,r()("div",{className:L.a.titleDetails},void 0,"movie"===l?r()(w.a,{metadataItemEntityID:o}):null,"episode"===l?r()(E.a,{metadataItemEntityID:o}):null)),r()("div",{className:L.a.status},void 0,!b||D||U?null:r()("div",{className:L.a.recording},void 0,r()(j.a,{size:24,backgroundClassName:L.a.recordingProgressBackground,lineWidth:2,progress:A,showProgressText:!1}),r()("span",{className:L.a.recordingIcon
})),b&&D&&!U?z:null,_?r()(P.a,{title:c,onPress:Q}):null,U?r()(x.a,{error:g,onPress:F?this.onConflictIconPress:this.onLinkPress}):null)),B?r()(O.a,{isOpen:G,metricsProperties:k,serverEntityID:t,providerEntityID:n,metadataItemEntityID:o,error:g,mediaItem:y,hasSubscription:B,isComplete:N,hasError:U,isRecording:b,recordingProgress:A,onRecordingModify:this.onRecordingModify,onModalClose:this.onAiringDetailsModalClose}):null,B?r()(T.a,{isOpen:W||K,metricsProperties:k,serverEntityID:t,
providerEntityID:n,mediaSubscriptionEntityID:a,metadataItemEntityID:o,subscriptionType:l,showConflicts:K,isRecordingSchedule:!0,onModalClose:this.onSubscribeModalClose}):null)},t}(v.Component);t.a=U},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e){return e.experienceSettings.timeFormat},Object(p.a)(),function(e,t){
var n=d.a.pick(t,"type","title","parentTitle","grandparentTitle","thumb","parentThumb","grandparentThumb","index","parentIndex","originallyAvailableAt","summary");return n.timeFormat=e,n})}function a(e){return s.a.createElement(h.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(10)),d=n.n(u),p=n(21),h=n(4555);t.a=Object(l.connect)(i)(a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.summary,a=e.error,o=e.mediaItem,l=e.isComplete,c=e.hasError,D=e.isRecording,j=e.recordingProgress,P=e.timeFormat,O=e.onRecordingModify,T=e.onModalClose,E=s()(e,["serverEntityID","providerEntityID","summary","error","mediaItem","isComplete","hasError","isRecording","recordingProgress","timeFormat","onRecordingModify","onModalClose"]),w=o.beginsAt,A=o.endsAt,x=o.startOffsetSeconds,N=o.endOffsetSeconds,L=o.channelTitle,k=!(!x&&!N),R=x&&Math.round(x/60),z=N&&Math.round(N/60)
;return r()(y.a,{onModalClose:T},void 0,r()(v.a,{},void 0,Object(g.default)("Airing Details")),r()(p.a,{},void 0,r()(M.a,{serverEntityID:t,providerEntityID:n,target:E},void 0,r()(b.a,{mediaItem:o},void 0,r()(I.a,{beginsAt:w,endsAt:A,channel:L,showFullTime:!0,showChannel:!0,timeFormat:P},void 0,r()("div",{},void 0,l&&r()("span",{},void 0,r()(m.a,{className:C.a.completeIcon,name:"plex-icon-selected-560"}),Object(g.default)("Recorded successfully")),D&&r()("span",{},void 0,r()(m.a,{
className:C.a.recordingIcon,name:"plex-icon-dvr-single-560"}),Object(g.default)("Recording"),r()(u.b,{className:C.a.separator}),Object(g.default)("{recordingProgress}% complete",{recordingProgress:j})),c&&r()("span",{},void 0,r()(m.a,{className:C.a.errorIcon,name:"plex-icon-alert-560"}),a),!l&&!D&&!c&&k&&r()("span",{},void 0,R?r()("span",{},void 0,Object(g.default)("Recording starts {minuteOffset} min early",{minuteOffset:R}),!!z&&r()("span",{},void 0,r()(u.b,{className:C.a.separator
}),Object(g.default)("Ends {minuteOffset} min late",{minuteOffset:z}))):r()("span",{},void 0,Object(g.default)("Recording ends {minuteOffset} min late",{minuteOffset:z})))))),r()("div",{className:C.a.summary},void 0,i))),r()(h.a,{},void 0,r()(f.a,{},void 0,r()(d.a,{kind:S.b.DEFAULT,size:S.e.MEDIUM,onPress:O},void 0,Object(g.default)("Modify Recording")),r()(d.a,{kind:S.b.PRIMARY,size:S.e.MEDIUM,onPress:T},void 0,Object(g.default)("Close")))))}
var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(73)),d=n(42),p=n(61),h=n(88),f=n(115),v=n(84),g=n(3),m=n(26),y=n(98),b=n(1727),I=n(1728),S=n(24),M=n(719),D=n(4556),C=n.n(D);t.a=i},function(e,t){e.exports={completeIcon:"AiringDetailsModalContent-completeIcon-38k0Q",recordingIcon:"AiringDetailsModalContent-recordingIcon-LbdQN",errorIcon:"AiringDetailsModalContent-errorIcon-3syeN",separator:"AiringDetailsModalContent-separator-3OQLc DashSeparator-separator-4CyEF",
summary:"AiringDetailsModalContent-summary-vVorL"}},function(e,t){e.exports={errorButton:"CalendarErrorButton-errorButton-1z8H1",errorTooltip:"CalendarErrorButton-errorTooltip-lo9O- Tooltip-bottomCenter-2yj43 Tooltip-tooltip-9TKmA Tooltip-tooltipArrow-3GUCr Tooltip-tooltipTopArrow-NjH0D Tooltip-tooltipCenterAlignArrow-35uHt"}},function(e,t){e.exports={event:"AgendaEvent-event-1CGOu",isComplete:"AgendaEvent-isComplete-1Qgi-",hasError:"AgendaEvent-hasError-3_JkX",
underlay:"AgendaEvent-underlay-3aB2_",overlay:"AgendaEvent-overlay-F0jvn",statusIcon:"AgendaEvent-statusIcon-2HvuT",date:"AgendaEvent-date-14otD",isToday:"AgendaEvent-isToday-WyLYs",time:"AgendaEvent-time-1gWgj",title:"AgendaEvent-title-2XPt5",titleDetails:"AgendaEvent-titleDetails-1_26S",status:"AgendaEvent-status-3bBTH",recording:"AgendaEvent-recording-R38Vn",
recordingProgressBackground:"AgendaEvent-recordingProgressBackground-3zpaH CircularProgressBar-circularProgressBarBackground-1a1VU CircularProgressBar-circularProgressBarBackground-RvD8O",recordingIcon:"AgendaEvent-recordingIcon-2abV-"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.calendar,n=t.firstEvent,i=t.lastEvent;return{startTime:n?n.beginsAt:void 0,endTime:i?i.beginsAt:void 0}})}
var a=n(11),r=n(4),o=(n.n(r),n(4560));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){"use strict";function i(e){return r()("div",{className:u.a.agendaHeader},void 0,s.a.createElement(l.a,e))}var a=n(2),r=n.n(a),o=n(0),s=n.n(o),l=n(1730),c=n(4562),u=n.n(c);t.a=i},function(e,t){e.exports={title:"CalendarHeaderTitle-title-15Pr3"}},function(e,t){e.exports={agendaHeader:"AgendaHeader-agendaHeader-66Y_9"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(3),v=n(332),g=n(1724),m=n(4564),y=n(4573),b=n(4578),I=n(4581),S=n.n(I),M=a()(y.a,{}),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=a.state.visibleDays,i=Math.min(Math.floor(t/120),7);i!==n&&a.props.onVisibleDaysChange(i),a.setState({width:t,visibleDays:i})},a.state={width:null,visibleDays:0},a}return u()(t,e),
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.showError,i=e.isEmpty,r=e.subscriptionCount,o=e.visibleDays,s=e.onGoToPreviousRangePress,l=e.onGoToNextRangePress;return n?a()(v.a,{title:Object(f.default)("There was an error loading the calendar")}):i?a()(g.a,{subscriptionCount:r}):a()(h.a,{className:S.a.calendar,ignoreHeight:!0,onMeasure:this.onMeasure},void 0,o===this.state.visibleDays&&a()("div",{},void 0,a()(b.a,{onGoToPreviousRangePress:s,onGoToNextRangePress:l
}),M,a()(m.a,{serverEntityID:t})))},t}(p.Component);t.a=D},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){return{days:e.calendar.days}})}var a=n(11),r=n(4),o=(n.n(r),n(4565));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.days,n=c()(e,["days"]);return s()("div",{className:v.a.calendarDays},void 0,t.map(function(e){return p.a.createElement(h.a,r()({key:e,date:e},n))}))}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(4566),f=n(4572),v=n.n(f);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.date;return r()("div",{className:u.a.day},void 0,r()(l.a,{serverEntityID:t,date:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4567)),c=n(4571),u=n.n(c);t.a=i},function(e,t,n){"use strict";function i(){return Object(d.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar
},function(e,t){return t.date},function(e,t){var n=Object(r.a)(t);return{events:h.a.filter(e.scheduled,function(e){return Object(o.a)(Object(r.a)(e.beginsAt),n)})}})}function a(e){return c.a.createElement(f.a,e)}var r=n(81),o=n(276),s=n(1),l=(n.n(s),n(0)),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),n(10)),h=n.n(p),f=n(4568);t.a=Object(u.connect)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.events;return r()("div",{},void 0,n.map(function(e,n){
var i=Object(l.a)(c.e,e.mediaSubscriptionID,t);return r()(u.a,{component:d.a,serverEntityID:t,providerID:e.identifier||e.provider,mediaSubscriptionEntityID:i,metadataItemEntityID:e.metadataItem,mediaSubscriptionID:e.mediaSubscriptionID,eventID:e.metadataItem.key,status:e.status,error:e.error,linkedKey:e.linkedKey,mediaItem:e.mediaItem,hasConflicts:!(!e.conflicts||!e.conflicts.length)},n)}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(38)),c=n(45),u=n(1725),d=n(4569);t.a=i
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(375)),f=n(20),v=n(28),g=n(138),m=n(574),y=n(320),b=n(222),I=n(1726),S=n(289),M=n(1058),D=n(1729),C=n(4570),j=n.n(C),P={context:g.b},O=a()("div",{},void 0,a()(M.a,{})),T=a()(h.a,{}),E=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onLinkPress=function(e){a.setState({isAiringDetailsModalOpen:!0})},a.onConflictIconPress=function(e){
a.setState({isConflictsModalOpen:!0})},a.onRecordingModify=function(){a.setState({isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!0})},a.onAiringDetailsModalClose=function(){a.setState({isAiringDetailsModalOpen:!1})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1,isConflictsModalOpen:!1})},a.state={isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!1,isConflictsModalOpen:!1},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(v.a)(this,e,t)},
t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.mediaSubscriptionEntityID,r=e.metadataItemEntityID,o=e.prePlayRoute,s=e.type,l=e.grandparentTitle,c=e.title,u=e.error,d=e.mediaItem,p=e.isRecording,h=e.isPostProcessing,v=e.recordingProgress,g=e.isComplete,M=e.hasError,C=e.hasSubscription,E=e.hasConflicts,w=e.showPlay,A=e.timeFormat,x=e.onPlayPress,N=this.state,L=N.isAiringDetailsModalOpen,k=N.isSubscribeModalOpen,R=N.isConflictsModalOpen,z=d.beginsAt,U=d.endsAt,B=d.startOffsetSeconds,F=void 0===B?0:B,_=d.endOffsetSeconds,V=void 0===_?0:_,H=d.premiere,Q=Object(m.a)(z-F,U+V,{
includeMinuteZero:!1,timeFormat:A}),Y=l||c;return a()("div",{className:(j.a.event||"")+" "+(g&&j.a.isComplete||"")+" "+(M&&j.a.hasError||""||"")},void 0,a()(f.a,{className:j.a.underlay,to:o,onPress:o?void 0:this.onLinkPress}),a()("div",{className:j.a.overlay},void 0,a()("div",{className:j.a.title,title:Y},void 0,Y),a()("div",{className:j.a.secondary},void 0,a()("div",{className:j.a.secondaryInfo},void 0,a()("div",{className:j.a.time},void 0,Q),H?O:null),a()("div",{className:j.a.status
},void 0,!p||h||M?null:a()("div",{className:j.a.recording},void 0,a()(y.a,{size:24,backgroundClassName:j.a.recordingProgressBackground,lineWidth:2,progress:v,showProgressText:!1}),a()("span",{className:j.a.recordingIcon})),p&&h&&!M?T:null,w?a()(b.a,{title:c,onPress:x}):null,M?a()(D.a,{error:u,onPress:E?this.onConflictIconPress:this.onLinkPress}):null))),C?a()(I.a,{isOpen:L,metricsProperties:P,serverEntityID:t,providerEntityID:n,metadataItemEntityID:r,error:u,mediaItem:d,isComplete:g,hasError:M,
isRecording:p,recordingProgress:v,onRecordingModify:this.onRecordingModify,onModalClose:this.onAiringDetailsModalClose}):null,C?a()(S.a,{isOpen:k||R,metricsProperties:P,serverEntityID:t,providerEntityID:n,mediaSubscriptionEntityID:i,metadataItemEntityID:r,subscriptionType:s,showConflicts:R,isRecordingSchedule:!0,onModalClose:this.onSubscribeModalClose}):null)},t}(p.Component);t.a=E},function(e,t){e.exports={event:"CalendarEvent-event-1N79n",isComplete:"CalendarEvent-isComplete-3BKnC",
hasError:"CalendarEvent-hasError-2mgqY",underlay:"CalendarEvent-underlay-2LGTN",overlay:"CalendarEvent-overlay-3RDXN",errorIcon:"CalendarEvent-errorIcon-3q6lK",title:"CalendarEvent-title-K5q2k",secondary:"CalendarEvent-secondary-2ufz9",secondaryInfo:"CalendarEvent-secondaryInfo-3pj4z",time:"CalendarEvent-time-sjVsB",status:"CalendarEvent-status-27k9Y",recording:"CalendarEvent-recording-1igLY",
recordingProgressBackground:"CalendarEvent-recordingProgressBackground-1vuJU CircularProgressBar-circularProgressBarBackground-1a1VU CircularProgressBar-circularProgressBarBackground-RvD8O",recordingIcon:"CalendarEvent-recordingIcon-3BTdu"}},function(e,t){e.exports={day:"CalendarDay-day-1O4pX"}},function(e,t){e.exports={calendarDays:"CalendarDays-calendarDays-2ORCe"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar
},function(e){return{daysOfWeek:e.daysOfWeek}})}var a=n(11),r=n(4),o=(n.n(r),n(4574));t.a=Object(a.connect)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.daysOfWeek,n=c()(e,["daysOfWeek"]);return s()("div",{className:v.a.container},void 0,t.map(function(e){return p.a.createElement(h.a,r()({key:e,date:e},n))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(4575),f=n(4577),v=n.n(f);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.date,n=Object(p.a)(t),i=void 0;if(Object(h.a)(t))i=Object(f.default)("Yesterday");else if(n)i=Object(f.default)("Today");else{var a=Object(o.a)(t);i=Object(f.default)("{dayOfWeek} {monthNumber}/{dayNumber}",{dayOfWeek:Object(d.a)(t,{abbreviate:!0}),monthNumber:Object(l.a)(a)+1,dayNumber:Object(s.a)(a)})}return r()("div",{className:(g.a.dayOfWeek||"")+" "+(n&&g.a.isToday||""||""),title:i},void 0,i)}var a=n(2),r=n.n(a),o=n(81),s=n(361),l=n(512),c=n(1),u=(n.n(c),n(0)),d=(n.n(u),
n(1538)),p=n(313),h=n(713),f=n(3),v=n(4576),g=n.n(v);t.a=i},function(e,t){e.exports={dayOfWeek:"CalendarDayOfWeek-dayOfWeek-3dQ59",isToday:"CalendarDayOfWeek-isToday-2rPYN"}},function(e,t){e.exports={container:"CalendarDaysOfWeek-container-1MoYj"}},function(e,t,n){"use strict";function i(){return Object(u.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=p.a.pick(e.calendar,"time","startTime","endTime","hasPastEvents","hasFutureEvents");return o()({},t)})}
function a(e){return l.a.createElement(h.a,e)}var r=n(6),o=n.n(r),s=n(0),l=n.n(s),c=n(11),u=n(4),d=(n.n(u),n(10)),p=n.n(d),h=n(4579);t.a=Object(c.connect)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.hasPastEvents,n=e.hasFutureEvents,i=e.onGoToPreviousRangePress,a=e.onGoToNextRangePress;return r()("div",{className:v.a.calendarHeader},void 0,r()("div",{className:v.a.calendarHeader},void 0,r()(c.a,{className:(v.a.calendarNav||"")+" "+(!t&&v.a.calendarNavDisabled||""||""),
kind:p.b.DEFAULT,size:p.e.MEDIUM,isDisabled:!t,onPress:i},void 0,r()(d.a,{name:"plex-icon-hub-prev-560","aria-label":Object(u.default)("Previous Page")})),l.a.createElement(h.a,e),r()(c.a,{className:(v.a.calendarNav||"")+" "+(!n&&v.a.calendarNavDisabled||""||""),kind:p.b.DEFAULT,size:p.e.MEDIUM,isDisabled:!n,onPress:a},void 0,r()(d.a,{name:"plex-icon-hub-next-560","aria-label":Object(u.default)("Next Page")}))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),
n(0)),l=n.n(s),c=n(20),u=n(3),d=n(26),p=n(24),h=n(1730),f=n(4580),v=n.n(f);t.a=i},function(e,t){e.exports={calendarHeaderContainer:"CalendarHeader-calendarHeaderContainer-2f7fS",calendarHeader:"CalendarHeader-calendarHeader-moR_H",calendarNav:"CalendarHeader-calendarNav-rIR1k Link-link-2n0yJ",calendarNavDisabled:"CalendarHeader-calendarNavDisabled-1bqai"}},function(e,t){e.exports={calendar:"Calendar-calendar-231Oo"}},function(e,t,n){"use strict";function i(){
return Object(g.createSelector)(function(e){return e.ui.recordingSchedulePage},Object(y.a)(),function(e,t){var n=e.mediaSubscriptions,i=e.isMediaSubscriptionsPopulated,a=e.mediaSubscriptionsError,r=i&&!a&&!n.length;return{providerEntityID:t,mediaSubscriptionEntityIDs:n,showError:!i&&!!a,showEmptyState:r}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(412)),y=n(1075),b=n(36),I=n(4583),S=function(e){function t(n,i){
s()(this,t);var a=c()(this,e.call(this,n,i));return a.onSubscriptionDragMove=function(e){a.setState({moveIndex:e})},a.onSubscriptionDragEnd=function(e,t){var n=a.state.moveIndex;t&&null!=n&&Object(b.a)(function(){a.props.moveMediaSubscription(r()({},e,{moveIndex:n}))}),a.setState({moveIndex:null})},a.state={moveIndex:null},a}return d()(t,e),t.prototype.render=function(){return f.a.createElement(I.a,r()({moveIndex:this.state.moveIndex,onSubscriptionDragMove:this.onSubscriptionDragMove,
onSubscriptionDragEnd:this.onSubscriptionDragEnd},this.props))},t}(h.Component);t.a=Object(v.connect)(i,{moveMediaSubscription:m.moveMediaSubscription})(S)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.mediaSubscriptionEntityIDs,a=e.guideRoute,o=e.showError,s=e.showEmptyState,v=e.moveIndex,m=e.onSubscriptionDragMove,y=e.onSubscriptionDragEnd;return r()("div",{className:g.a.pane},void 0,r()("div",{className:g.a.paneHeader
},void 0,Object(u.default)("Recording Priority")),r()(l.a,{className:g.a.paneScroller,autoScroll:!0},void 0,o?r()("div",{className:g.a.error},void 0,r()("div",{},void 0,Object(u.default)("There was an error loading recordings.")),r()("div",{},void 0,Object(u.default)("Please try again."))):null,s?r()("div",{className:g.a.empty},void 0,r()("div",{},void 0,Object(u.default)("You have no recordings scheduled.")),r()("div",{},void 0,r()(d.a,{
message:Object(u.default)("Check out the {openLink}Guide{closeLink} to browse available programming."),tags:[{open:"openLink",close:"closeLink",component:c.a,kind:f.b.PRIMARY,to:a}]}))):null,o||s?null:i.map(function(e,i){var a=null!=v,o=a&&v===i,s=a&&v===i+1;return r()(h.a,{serverEntityID:t,providerEntityID:n,mediaSubscriptionEntityID:e,isDraggingBefore:o,isDraggingAfter:s,sortIndex:i,onSubscriptionDragMove:m,onSubscriptionDragEnd:y},e)})),r()(p.a,{serverEntityID:t,providerEntityID:n}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(80)),c=n(20),u=n(3),d=n(187),p=n(1733),h=n(1735),f=n(24),v=n(4594),g=n.n(v);t.a=i},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.mediaSubscriptionEntityID},r.a,function(e,t){return t[e]})}t.a=i;var a=n(4),r=(n.n(a),n(1011))},function(e,t,n){"use strict";function i(e){var t=void 0;switch(e){case"movie":t=[P.a,T.a];break;case"show":t=[P.a,A.a];break;case"episode":t=[j.a,O.a];break
;case"playlist":t=[P.a,A.a];break;default:t=[P.a]}return t.push(w.a),t}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),n(0)),y=n.n(m),b=n(20),I=n(28),S=n(26),M=n(327),D=n(289),C=n(236),j=n(1012),P=n(565),O=n(1005),T=n(1490),E=n(130),w=n(4586),A=n(4587),x=n(4589),N=n(4591),L=n.n(N),k=function(e){function t(n,i){d()(this,t);var a=h()(this,e.call(this,n,i));return a.onLinkPress=function(e){a.setState({isSubscribeModalOpen:!0})},
a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:!1},a}return v()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,a=e.mediaSubscriptionEntityID,o=e.type,l=e.subtype,u=e.thumb,d=e.grandparentThumb,p=e.connectDragSource,h=c()(e,["serverEntityID","providerEntityID","mediaSubscriptionEntityID","type","subtype","thumb","grandparentThumb","connectDragSource"]),f=this.state.isSubscribeModalOpen,v="playlist"===o?"show":o;return s()("div",{className:L.a.subscription},void 0,s()(b.a,{className:L.a.link,onPress:this.onLinkPress},void 0,s()("div",{
className:L.a.linkContainer},void 0,s()(M.a,{className:L.a.posterContainer,serverEntityID:t,providerEntityID:n,component:C.a,type:v,width:48,height:Object(E.d)(48,v,l),url:d||u}),s()("div",{className:L.a.titleContainer},void 0,i(o).map(function(e,t){return y.a.createElement(x.a,r()({key:t,component:e,isSecondary:t>0,type:o},h))})))),p(s()("div",{className:L.a.dragHandle},void 0,s()(S.a,{className:L.a.dragIcon,name:"plex-icon-reorder-560"})),{dropEffect:"copy"}),s()(D.a,{isOpen:f,
serverEntityID:t,providerEntityID:n,mediaSubscriptionEntityID:a,subscriptionType:o,onModalClose:this.onSubscribeModalClose}))},t}(m.Component);k.defaultProps={connectDragSource:function(e){return e}},t.a=k},function(e,t,n){"use strict";function i(e,t,n){return e?Object(u.a)(e,t)?Object(d.default)("Airing now"):Object(c.a)(e,null,{timeFormat:n}):Object(d.default)("No upcoming airings")}function a(e){var t=e.className,n=e.beginsAt,a=e.endsAt,r=e.timeFormat,s=i(n,a,r);return o()("span",{className:t
},void 0,s)}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(1537)),u=n(1543),d=n(3);t.a=a},function(e,t,n){"use strict";function i(e){if("show"===e)return Object(c.default)("Series")}function a(e){var t=e.className,n=e.type;return o()("span",{className:t},void 0,o()(u.a,{className:p.a.seriesIcon,name:"plex-icon-dvr-series-560"}),i(n))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(3)),u=n(26),d=n(4588),p=n.n(d);t.a=a},function(e,t){e.exports={
seriesIcon:"RecordingPrioritySubscriptionSeriesTitle-seriesIcon-1yyj_"}},function(e,t,n){"use strict";function i(e){var t=e.component,n=e.isSecondary,i=s()(e,["component","isSecondary"]);return u.a.createElement(t,r()({className:n?p.a.secondaryTitle:p.a.title},i))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(4590),p=n.n(d);t.a=i},function(e,t){e.exports={title:"RecordingPrioritySubscriptionTitle-title-3QS81",
secondaryTitle:"RecordingPrioritySubscriptionTitle-secondaryTitle-2Wl5u"}},function(e,t){e.exports={subscription:"RecordingPrioritySubscription-subscription-sOfYq",link:"RecordingPrioritySubscription-link-2-ONe",linkContainer:"RecordingPrioritySubscription-linkContainer-35Li6",posterContainer:"RecordingPrioritySubscription-posterContainer-1ZjTK",titleContainer:"RecordingPrioritySubscription-titleContainer-2zfvG",dragHandle:"RecordingPrioritySubscription-dragHandle-1KbYq Link-link-2n0yJ",
dragIcon:"RecordingPrioritySubscription-dragIcon-2zAik"}},function(e,t){e.exports={dragPreview:"RecordingPrioritySubscriptionDragPreview-dragPreview-3q037"}},function(e,t){e.exports={dragSource:"RecordingPrioritySubscriptionDragSource-dragSource-2qcUl"}},function(e,t){e.exports={pane:"RecordingPriorityPane-pane-1TYhV",paneHeader:"RecordingPriorityPane-paneHeader-FyTve",paneScroller:"RecordingPriorityPane-paneScroller-2HMal Scroller-vertical-VScFL",error:"RecordingPriorityPane-error-2elsB",
empty:"RecordingPriorityPane-empty-7QU40"}},function(e,t){e.exports={schedulePageContent:"RecordingSchedulePageContent-schedulePageContent-zrwp0 PageContent-pageContent-16mK6",schedulePageInnerContent:"RecordingSchedulePageContent-schedulePageInnerContent-3967M PageContent-innerPageContent-3ktLT",emptyDescription:"RecordingSchedulePageContent-emptyDescription-3A30q EmptyPage-description-oYWtW"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){
return t.sourceDirectory},Object(s.a)(),Object(o.a)(),function(e,t,n){return{scheduleRoute:Object(l.a)(t,n,e,{key:l.b.RECORDING_SCHEDULE})}})}var a=n(11),r=n(4),o=(n.n(r),n(54)),s=n(35),l=n(731),c=n(4597);t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){return e===D.c.AGENDA?Object(b.default)("Agenda View"):Object(b.default)("Calendar View")}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),
n(131)),v=n(56),g=n(47),m=n(28),y=n(18),b=n(3),I=n(103),S=n(244),M=n(337),D=n(24),C=(n(105),function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onViewsMenuButtonPress=function(e){a.setState({isViewsMenuOpen:!a.state.isViewsMenuOpen})},a.onViewsMenuClose=function(){a.setState({isViewsMenuOpen:!1})},a.state={isViewsMenuOpen:!1},a._viewsMenuButtonID=Object(g.a)(),a}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(m.a)(this,e,t)},
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,a=e.sourceDirectory,o=e.scheduleRoute,s=e.selectedViewType,l=this.state.isViewsMenuOpen;return r()(S.a,{},void 0,r()(M.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:a},void 0,r()(f.a,{title:Object(b.default)("Recordings")}),r()(f.a,{id:this._viewsMenuButtonID,title:i(s),hasMenu:!0,isMenuOpen:l,onPress:this.onViewsMenuButtonPress}),r()(v.a,{target:this._viewsMenuButtonID,isOpen:l,
onMenuClose:this.onViewsMenuClose},void 0,D.c.all.map(function(e){return r()(I.a,{to:y.join([o],{view:e}),isSelected:s===e},e,i(e))}))))},t}(h.Component));t.a=C},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(90)),s=n(38),l=n(45),c=n(48),u=n(334),d=n(4599),p=n(192),h=n(193),f=a()(h.a,{}),v=a()(d.a,{}),g=c.a.extend({component:function(e){var t=e.selectedProviderID,n=o.a,i=Object(s.a)(l.m,n),r=Object(s.a)(l.k,t,i);return a()(p.a,{},void 0,f,a()(u.a,{serverEntityID:i,
providerEntityID:r},void 0,v))}});t.a=g},function(e,t,n){"use strict";function i(){return Object(v.createSelector)(Object(I.a)(),Object(b.a)(g.b.SETTINGS),function(e){return e.ui.providerSettingsPage},function(e,t,n){return{providerEntityID:e.entityID,providerTitle:e.title,settings:t.settings,isSettingsPending:t.isSettingsPending,isUpdatePending:n.isUpdatePending,updateError:n.updateError}})}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),
n(11)),v=n(4),g=(n.n(v),n(64)),m=n(363),y=n(1064),b=n(584),I=n(54),S=n(4600),M={dispatchFetchProviderSettings:y.c,dispatchUpdateProviderSetting:y.f,dispatchClearProviderSettingUpdateError:y.b,dispatchClearProviderSettingFetchError:y.a,dispatchPopulateSettingsOptions:y.d},D=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=i=c()(this,e.call.apply(e,[this].concat(o))),i.onUpdateErrorDismiss=function(){
i.props.dispatchClearProviderSettingUpdateError({providerEntityID:i.props.providerEntityID})},i.onOptionsFetchErrorDismiss=function(e){i.props.dispatchClearProviderSettingFetchError({providerEntityID:i.props.providerEntityID,settingID:e})},i.onUpdateSetting=function(e,t){i.props.dispatchUpdateProviderSetting({providerEntityID:i.props.providerEntityID,settingID:e,values:t})},i.onSettingViewDetail=function(e){i.props.dispatchPopulateSettingsOptions({providerEntityID:i.props.providerEntityID,
settingID:e})},a=n,c()(i,a)}return d()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.providerEntityID,n=e.settings;this._dispatchOnboarded(t,n),this.props.dispatchFetchProviderSettings({providerEntityID:t})},t.prototype._dispatchOnboarded=function(e,t){var n=t.find(function(e){return e.id===m.b.ONBOARDED});if(n&&!n.value){var i;this.props.dispatchUpdateProviderSetting({providerEntityID:e,settingID:n.id,values:(i={},i[n.id]=!0,i)})}},t.prototype.render=function(){
return r()(S.a,{providerTitle:this.props.providerTitle,showSpinner:this.props.isSettingsPending,settings:this.props.settings,isUpdatePending:this.props.isUpdatePending,updateError:this.props.updateError,onSettingViewDetail:this.onSettingViewDetail,onUpdateErrorDismiss:this.onUpdateErrorDismiss,onOptionsFetchErrorDismiss:this.onOptionsFetchErrorDismiss,onUpdateSetting:this.onUpdateSetting})},t}(h.Component);t.a=Object(f.connect)(i,M)(D)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(73),v=n(30),g=n(3),m=n(31),y=n(85),b=n(259),I=n(258),S=n(1699),M=n(1700),D=a()(y.a,{},void 0,a()(m.a,{})),C=a()(f.b,{}),j=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTogglePress=function(e){a.props.updateError&&a.props.onUpdateErrorDismiss(),a.state.openSettingID===e?a.setState({openSettingID:null}):(a.props.onSettingViewDetail(e),a.setState({
openSettingID:e}))},a.state={openSettingID:null,isUpdatePendingFromStore:n.isUpdatePending},a}return u()(t,e),t.getDerivedStateFromProps=function(e,t){var n={isUpdatePendingFromStore:e.isUpdatePending};return!t.isUpdatePendingFromStore||e.isUpdatePending||e.updateError||(n.openSettingID=null),n},t.prototype.render=function(){
var e=this,t=this.props,n=t.providerTitle,i=t.showSpinner,r=t.settings,o=t.isUpdatePending,s=t.updateError,l=t.onUpdateSetting,c=t.onOptionsFetchErrorDismiss,u=this.state.openSettingID;return i?D:a()(b.a,{metricsPage:v.T,metricsPane:"settings"},void 0,a()(I.a,{},void 0,n,n?C:null,Object(g.default)("Personalize")),r.map(function(t){return t.hidden?null:a()(M.a,{title:t.label,setting:t,isOpen:u===t.id,isUpdating:o,updateError:s,onTogglePress:e.onTogglePress,onUpdateSetting:l,
onOptionsFetchErrorDismiss:c},t.id,h.a.createElement(S.a,t))}))},t}(p.Component);t.a=j},function(e,t,n){"use strict";var i=n(306),a=n(4602),r=i.a.extend({controller:new a.a,appRoutes:{"!/server/:serverID/search/:query":"search","!/provider/:providerID/search/:query":"providerSearch","!/server/:serverID(/provider/:providerID)":"provider","!/provider/:providerID":"cloudProvider","!/provider/:providerID/details":"providerPrePlay","!/provider/:providerID/playlist":"providerPlaylist",
"!/server/:serverID(/provider/:providerID)/timeline":"timeline","!/server/:serverID(/provider/:providerID)/albums":"albums","!/server/:serverID(/provider/:providerID)/album?key=:key":"album","!/server/:serverID(/provider/:providerID)/playlists":"playlists","!/server/:serverID(/provider/:providerID)/playlist?key=:key":"playlist","!/server/:serverID(/provider/:providerID)/details":"prePlay","!/transient/provider/:providerID/details":"transientPrePlay","!/server/:serverID?key=:sectionID":"section",
"!/server/:serverID/details?key=:key":"details"}});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(18),r=n(307),o=n(515),s=n(4603),l=n(4616),c=n(4619),u=n(4735),d=n(4736),p=n(4737),h=n(4757),f=n(4758),v=n(4759),g=n(4760),m=n(4761),y=n(4764),b=n(4769),I=n(4772),S=n(4773),M=n(4774),D=n(4787),C=n(4788),j=r.a.extend({search:function(e,t,n){this.populateView().done(function(){var r=Object(o.a)()?b.a:l.a;i.a.trigger("show:view",new r({selectedServerID:e,query:t,params:a.parseParams(n)}),{
clearActiveNavigationType:!1})})},providerSearch:function(e,t,n){this.populateView().done(function(){var r=Object(o.a)()?y.a:s.a;i.a.trigger("show:view",new r({selectedProviderID:e,query:t,params:a.parseParams(n)}),{clearActiveNavigationType:!1})})},provider:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new v.a({selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}),{clearActiveNavigationType:!1})})},cloudProvider:function(e,t){
this.populateView().done(function(){i.a.trigger("show:view",new d.a({selectedProviderID:e,params:a.parseParams(t)}),{clearActiveNavigationType:!1})})},timeline:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new g.a({selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}),{clearActiveNavigationType:!1})})},albums:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new p.a({selectedServerID:e,selectedProviderID:t,isPlaylistRoute:!1,
params:a.parseParams(n)}),{clearActiveNavigationType:!1})})},album:function(e,t,n,r){this.populateView().done(function(){var s=Object(o.a)()?I.a:c.a;i.a.trigger("show:view",new s({selectedServerID:e,selectedProviderID:t,key:n,isPlaylistRoute:!1,params:a.parseParams(r)}),{clearActiveNavigationType:!1})})},playlists:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new p.a({selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}),{clearActiveNavigationType:!1})})
},playlist:function(e,t,n,r){this.populateView().done(function(){var s=Object(o.a)()?I.a:c.a;i.a.trigger("show:view",new s({selectedServerID:e,selectedProviderID:t,key:n,params:a.parseParams(r)}),{clearActiveNavigationType:!1})})},providerPlaylist:function(e,t){this.populateView().done(function(){var n=Object(o.a)()?S.a:u.a;i.a.trigger("show:view",new n({selectedProviderID:e,params:a.parseParams(t)}),{clearActiveNavigationType:!1})})},prePlay:function(e,t,n){this.populateView().done(function(){
var r=Object(o.a)()?M.a:h.a;i.a.trigger("show:view",new r({selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}),{clearActiveNavigationType:!1})})},transientPrePlay:function(e,t){this.populateView().done(function(){var n=Object(o.a)()?C.a:m.a;i.a.trigger("show:view",new n({selectedProviderID:e,params:a.parseParams(t)}),{clearActiveNavigationType:!1})})},providerPrePlay:function(e,t){this.populateView().done(function(){var n=Object(o.a)()?D.a:f.a;i.a.trigger("show:view",new n({
selectedProviderID:e,params:a.parseParams(t)}),{clearActiveNavigationType:!1})})},section:function(e,t){var n=encodeURIComponent("/library/sections/"+t);this.provider(e,void 0,"key="+n)},details:function(e,t){this.prePlay(e,void 0,"key="+encodeURIComponent(t))}});t.a=j},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(90),l=n(38),c=n(45),u=n(119),d=n(48),p=n(334),h=n(4604),f=n(164),v=d.a.extend({component:function(e){
var t=e.selectedProviderID,n=e.query,i=e.params,r=s.a,d=Object(l.a)(c.m,r),v=Object(l.a)(c.k,t,d);return a()(u.a,{metricsContext:i.context},void 0,a()(o.a,{},void 0,a()(f.a,{selectedProviderEntityID:v}),a()(p.a,{serverEntityID:d,providerEntityID:v},void 0,a()(h.a,{providerEntityID:v,serverEntityID:d,providerIdentifier:t,query:n}))))}});t.a=v},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e){return e.ui.searchPage},function(e){return{
isSearchPending:!!y.a.findWhere(e.searches,{isSearchPending:!0})}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(10)),y=n.n(m),b=n(93),I=n(414),S=n(4605),M={dispatchChangeQuickSearchSettings:b.changeQuickSearchSettings,dispatchClearSearchPage:I.a},D=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){
this.props.dispatchChangeQuickSearchSettings({serverEntityID:this.props.serverEntityID,providerEntityID:this.props.providerEntityID,providerIdentifier:this.props.providerIdentifier,sectionID:null})},t.prototype.componentDidUpdate=function(e){this.props.providerIdentifier!==e.providerIdentifier&&this.props.dispatchChangeQuickSearchSettings({serverEntityID:this.props.serverEntityID,providerEntityID:this.props.providerEntityID,providerIdentifier:this.props.providerIdentifier,sectionID:null})},
t.prototype.componentWillUnmount=function(){this.props.dispatchClearSearchPage()},t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeQuickSearchSettings,e.dispatchClearSearchPage,r()(e,["dispatchChangeQuickSearchSettings","dispatchClearSearchPage"]));return f.a.createElement(S.a,t)},t}(h.Component);t.a=Object(v.connect)(i,M)(D)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.query,a=e.isSearchPending;return r()(u.a,{metricsPage:c.W,
metricsProperties:{singleServer:!0},allowBackgroundLightPreset:!0,scrollDirection:l.NONE},void 0,r()(p.a,{isSearchPending:a,query:i,allowSearchAllServers:!1}),r()(d.a,{serverEntityID:t,providerEntityID:n,query:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(92),d=n(4606),p=n(1736);t.a=i},function(e,t,n){"use strict";function i(){return Object(D.createSelector)(function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},O.a,function(e,t,n){
var i,a=n[t];return i={},i[t]={serverEntityID:e,identifier:a.identifier,title:a.title},i})}function a(){return Object(P.a)(i(),function(e){return e})}function r(){return Object(D.createSelector)(function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},function(e){return e.ui.searchPage.searches},a(),function(e,t,n,i){var a=i[t],r=n[0];if(!n.length)return[];var o=j.a.values(r.hubs).map(function(e){var n=function(e){return{serverEntityID:a.serverEntityID,providerEntityID:t,
searchResultEntityID:e}},i=e.metadataResults.map(n),r=e.tagResults.map(n);return y()({},e,{results:[].concat(i,r)})});return[{serverEntityID:e,providerEntityID:t,title:a.title,isSearchPending:r.isSearchPending,isSearchPopulated:r.isSearchPopulated,hubs:o}]})}function o(){return Object(D.createSelector)(a(),r(),T.a,function(e,t,n){return{availableProviders:e,isSearchCapable:!!g()(e).length,columnAdjustment:n.columnAdjustment,providers:t}})}
var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(59),g=n.n(v),m=n(6),y=n.n(m),b=n(1),I=(n.n(b),n(0)),S=n.n(I),M=n(11),D=n(4),C=(n.n(D),n(10)),j=n.n(C),P=n(323),O=n(136),T=n(72),E=n(36),w=n(414),A=n(1076),x={dispatchFetchSearchPage:w.b,dispatchClearSearchPage:w.a},N=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidMount=function(){var e=this;Object(E.a)(function(){e._clear(),e._populate()})},
t.prototype.componentDidUpdate=function(e){var t=this,n=e.query!==this.props.query,i=e.availableProviders!==this.props.availableProviders;(n||i)&&Object(E.a)(function(){n&&t._clear(),t._populate()})},t.prototype._clear=function(){this.props.dispatchClearSearchPage()},t.prototype._populate=function(){this.props.dispatchFetchSearchPage({availableProviders:this.props.availableProviders,query:this.props.query,limit:30})},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchSearchPage,
e.dispatchClearSearchPage,l()(e,["dispatchFetchSearchPage","dispatchClearSearchPage"]));return S.a.createElement(A.a,t)},t}(I.Component);t.a=Object(M.connect)(o,x)(N)},function(e,t,n){"use strict";function i(e){return function(t){return d.a.createElement(b.a,l()({component:y.a},e,t))}}function a(e){var t=e.title,n=e.hubs,a=e.columnAdjustment,r=e.searchAllServers,s=e.isSearchPending,c=e.isSearchPopulated;return o()("div",{},void 0,o()("div",{role:"heading","aria-level":"2",
className:D.a.providerTitle},void 0,t,s&&o()(v.a,{className:D.a.spinner,size:p.SMALL})),!n.length&&c?o()(m.a,{title:Object(h.default)("No Results"),description:Object(h.default)("Try a different query")}):n.map(function(e){var t=e.type,n=e.subtype,o=f.l,s=Object(S.b)(t,o,{subtype:e.subtype,isSearch:!0,isSearchAll:r});return d.a.createElement(g.a,l()({},e,{key:e.hubIdentifier,listType:t,listContext:o,keyPropName:"searchResultEntityID",size:e.results.length,items:e.results,itemsOffset:0,
layout:Object(I.a)(t,n,o,a,s.length),cellRenderer:i({listType:t,listContext:o,titleComponents:s})}))}))}var r=n(2),o=n.n(r),s=n(6),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(52),h=n(3),f=n(33),v=n(31),g=n(569),m=n(85),y=n(4608),b=n(1493),I=n(582),S=n(207),M=n(4613),D=n.n(M);t.a=a},function(e,t,n){"use strict";function i(e){var t=e.isMetadataItem,n=s()(e,["isMetadataItem"]);return t?u.a.createElement(d.a,r()({},n,{showSelect:!1})):u.a.createElement(p.a,n)}
var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(4609),p=n(4610);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{containerKey:e.skipParent?e.grandparentKey:e.parentKey}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(734);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){
return t.listType},function(e,t){return t.listSubtype},function(e,t){return t.listContext},function(e,t){return t.cellWidth},Object(u.a)(),function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=a.tagItem,o=r.tag,s=r.tagType,l=r.librarySectionType,c=Object(d.a)(i,null,e,t,r,n);return{tag:o,tagType:s,librarySectionType:l,imageWidth:c.width,imageHeight:c.height,imageUrl:c.url}})}function a(e){return s.a.createElement(p.a,e)}var r=n(1),o=(n.n(r),
n(0)),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(475)),d=n(261),p=n(4611);t.a=Object(l.connect)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.searchResultEntityID,o=e.imageWidth,s=e.imageHeight,u=e.imageUrl,f=e.tag,g=e.tagType,m=e.librarySectionType,y=e.cellX,b=e.cellY,I=e.cellWidth,S=e.cellHeight,M=e.showOffscreenPlaceholder,D=e.titleComponents,C=c.a.get(g),j=!!C&&C.isPerson;return r()(l.a,{className:t,cellX:y,cellY:b,cellWidth:I,
cellHeight:S},void 0,r()("div",{className:v.a.imageContainer},void 0,r()(p.a,{serverEntityID:n,providerEntityID:i,imageWidth:o,imageHeight:s,imageUrl:u,title:f,tagType:g,librarySectionType:m,isOffscreen:M}),r()(h.a,{className:(v.a.imageLink||"")+" "+(j&&v.a.isPerson||""||""),serverEntityID:n,providerEntityID:i,searchResultEntityID:a})),r()("div",{className:v.a.titleContainer},void 0,D.map(function(e,t){return r()(d.a,{serverEntityID:n,providerEntityID:i,searchResultEntityID:a,component:e,
isSecondary:t>0},t)})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(91)),c=n(474),u=n(154),d=n(288),p=n(979),h=n(1548),f=n(4612),v=n.n(f);t.a=Object(u.a)(i)},function(e,t){e.exports={titleContainer:"SearchTagPosterCell-titleContainer-2WMiU",imageContainer:"SearchTagPosterCell-imageContainer-244-T",imageLink:"SearchTagPosterCell-imageLink-GYb2j",isPerson:"SearchTagPosterCell-isPerson-3JJoq"}},function(e,t){e.exports={providerTitle:"SearchProviderHubs-providerTitle-3nGwS",
spinner:"SearchProviderHubs-spinner-1-T9U"}},function(e,t){e.exports={searchPageContent:"SearchPageContent-searchPageContent-2qlNl DiscoverPage-discoverPageContent-3mJ50 PageContent-innerPageContent-3ktLT"}},function(e,t){e.exports={spinner:"SearchPageHeader-spinner-1_DoE",separator:"SearchPageHeader-separator-C3ELo"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(293),p=n(294),h=n(4617),f=n(164),v=u.a.extend({component:function(e){
var t=e.selectedServerID,n=e.query,i=e.params,r=Object(s.a)(l.m,e.serverID);return a()(c.a,{metricsContext:i.context},void 0,a()(o.a,{},void 0,a()(f.a,{serverEntityID:r}),a()(d.a,{machineIdentifier:e.selectedServerID},void 0,a()(p.a,{},void 0,a()(h.a,{machineIdentifier:t,serverEntityID:r,query:n})))))}});t.a=v},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e){return e.servers},function(e,t){return t.serverEntityID},M.a,D.a,function(e,t,n,i){
var a=i.searchAllServers;return e.reduce(function(e,i){if(i!==t&&!a)return e;var r=n[i];return I.a.isMatch(r,{isConnected:!0,isFullServer:!0})?e.concat(i):e},[])})}function a(){return Object(S.a)(i(),function(e){return e})}function r(){return Object(y.createSelector)(function(e){return e.ui.searchPage},a(),D.a,function(e,t,n){return{serverEntityIDs:t,searchAllServers:n.searchAllServers,isSearchPending:!!I.a.findWhere(e.searches,{isSearchPending:!0})}})}
var o=n(6),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(10)),I=n.n(b),S=n(161),M=n(173),D=n(72),C=n(36),j=n(71),P=n(414),O=n(4618),T={populateSearchProviders:P.c,clearSearchPage:P.a,saveExperienceSettings:j.k},E=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onSearchAllChange=function(e){
Object(C.a)(function(){i.props.saveExperienceSettings({searchAllServers:e})})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.serverEntityIDs!==this.props.serverEntityIDs&&this._populate(e)},t.prototype.componentWillUnmount=function(){this.props.clearSearchPage()},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;Object(C.a)(function(){
e.populateSearchProviders(e.serverEntityIDs)})},t.prototype.render=function(){return g.a.createElement(O.a,s()({},this.props,{onSearchAllChange:this.onSearchAllChange}))},t}(v.Component);t.a=Object(m.connect)(r,T)(E)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityIDs,n=e.query,i=e.isSearchPending,a=e.searchAllServers,o=e.onSearchAllChange;return r()(u.a,{metricsPage:c.W,metricsProperties:{singleServer:!a},allowBackgroundLightPreset:!0,scrollDirection:l.NONE},void 0,r()(p.a,{
isSearchPending:i,query:n,allowSearchAllServers:!0,searchAllServers:a,onSearchAllChange:o}),r()(d.a,{serverEntityIDs:t,query:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(92),d=n(1738),p=n(1736);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(293),p=n(294),h=n(1739),f=n(164),v=u.a.extend({component:function(e){
var t=e.selectedServerID,n=e.selectedProviderID,i=e.key,r=e.isPlaylistRoute,u=void 0===r||r,v=e.params,g=Object(s.a)(l.m,t),m=Object(s.a)(l.k,n,g);return a()(c.a,{metricsContext:v.context},void 0,a()(o.a,{},void 0,a()(f.a,{isPlaylistRoute:u}),a()(d.a,{machineIdentifier:t},void 0,a()(p.a,{providerEntityID:m},void 0,a()(h.a,{machineIdentifier:t,selectedProviderID:n,serverEntityID:g,providerEntityID:m,metadataKey:i})))))}});t.a=v},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(157),g=n(1014),m=n(46),y=n.n(m),b=n(4621),I=n(4716),S=n.n(I),M=parseInt(y.a.pagePadding,10),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.onContentMeasure=function(e){var t=e.width,n=e.height,i=e.y;(t||n)&&a.setState({isMeasured:!0,pageWidth:t,pageHeight:n,
pageY:i})},a.state={scrollTop:0,isMeasured:!1,pageWidth:0,pageHeight:0,pageY:0},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.columnAdjustment,s=e.record,l=e.allEpisodes,c=this.state,u=c.scrollTop,d=c.isMeasured,p=c.pageWidth,f=c.pageHeight,m=c.pageY;return a()(h.a,{className:S.a.prePlayPageContentContainer,
onMeasure:this.onContentMeasure},void 0,a()(v.a,{className:S.a.prePlayPageContent,scrollTop:u,onScrollPositionChange:this.onScrollPositionChange},void 0,d&&a()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:r,pageWidth:p,pageHeight:f,posterWidth:Object(g.a)(p,o),posterTop:m+M,scrollTop:u,record:s,allEpisodes:l})))},t}(p.Component);t.a=D},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(p.a)(),function(e){
return!(!e||!e.isPopulated)})}function a(){return Object(c.createSelector)(h.a,Object(d.a)(),Object(u.a)(),M.a,S.a,I.a,Object(D.a)(),i(),function(e){return!!e.remotePlayer},function(e,t,n,i,a,r,o,s,l){var c=t.type,u=t.subtype,d=Object(j.b)(c,u,t,v.i),p=d||t.thumb||t.parentThumb||t.grandparentThumb,h=t.grandparentArt||t.parentArt||t.art,f=t.grandparentTheme||t.parentTheme||t.theme,g=i?h||p:p||h,m=Object(C.a)(r,v.i,o,t.subtype,e);return{librarySectionID:t.librarySectionID,
providerIdentifier:e.identifier,providerMetricsIdentifier:e.metricsIdentifier,metadataKey:t.key,descendantKey:n,title:t.title,type:t.type,subtype:t.subtype,year:t.year,minYear:t.minYear,maxYear:t.maxYear,summary:t.summary,saved:t.saved,thumb:d,parentThumb:t.parentThumb,grandparentThumb:t.grandparentThumb,composite:t.composite,art:i?h:void 0,hero:t.hero,theme:a?f:void 0,backgroundImageUrl:g,playlistType:t.playlistType,isListReady:s,onDeckMetadataItemEntityID:t.onDeck,
extrasMetadataListEntityID:t.extras,popularLeavesMetadataListEntityID:t.popularLeaves,listType:o,listStyle:m,isRemotePlayer:l}})}function r(e,t){return{onLibraryChange:function(n,i){e(Object(b.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},onBackgroundChange:function(n){e(Object(g.a)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,imageUrl:n}))},onThemeMusicChange:function(n){
e(Object(g.b)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,theme:n}))},onMirrorDetails:function(){e(Object(m.g)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID}))}}}function o(e){return{descendantKey:e.ui.prePlayPage.descendantKey}}function s(e,t){e(Object(y.c)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,descendantKey:t.descendantKey}))}
var l=n(11),c=n(4),u=(n.n(c),n(1740)),d=n(21),p=n(132),h=n(39),f=n(133),v=n(33),g=n(391),m=n(325),y=n(291),b=n(93),I=n(492),S=n(1741),M=n(762),D=n(763),C=n(493),j=n(261),P=n(4622),O=Object(f.a)(P.a,o,s),T=Object(l.connect)(a,r)(O);t.a=T},function(e,t,n){"use strict";function i(e,t,n){if(!e)return S.a;var i=b.c.test(n),a=i?_:B,r=F[t],o=a[e];return(r?r[e]||o:o)||M.a}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),
n(0)),y=n.n(m),b=n(41),I=n(1742),S=n(4623),M=n(4624),D=n(1743),C=n(1747),j=n(1749),P=n(1750),O=n(1755),T=n(1756),E=n(1757),w=n(1758),A=n(1759),x=n(1760),N=n(1761),L=n(1764),k=n(1765),R=n(1766),z=n(1770),U=n(1771),B={movie:A.a,show:z.a,season:L.a,episode:O.a,artist:C.a,album:D.a,photoalbum:x.a,clip:A.a,playlist:N.a,collection:j.a},F={podcast:{show:R.a,track:T.a},webshow:{show:U.a,episode:E.a}},_={movie:w.a,show:k.a,episode:P.a},V=function(e){function t(){return d()(this,t),
h()(this,e.apply(this,arguments))}return v()(t,e),t.prototype.componentDidMount=function(){this.props.onLibraryChange(this.props.providerIdentifier,this.props.librarySectionID),this.props.onBackgroundChange(this.props.backgroundImageUrl),this.props.onThemeMusicChange(this.props.theme),this.props.isRemotePlayer&&this.props.onMirrorDetails()},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.backgroundImageUrl,r=t.theme,o=t.isRemotePlayer,s=t.onLibraryChange,l=t.onBackgroundChange,c=t.onThemeMusicChange,u=t.onMirrorDetails;n!==e.librarySectionID&&s(i,n),e.backgroundImageUrl!==a&&l(a),e.theme!==r&&c(r),!e.isRemotePlayer&&o&&u()},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.providerIdentifier,n=e.providerMetricsIdentifier,a=e.type,o=e.subtype,l=e.art,u=e.listStyle,d=(e.onBackgroundChange,c()(e,["providerIdentifier","providerMetricsIdentifier","type","subtype","art","listStyle","onBackgroundChange"])),p=i(a,o,t);return s()(I.a,{identifier:n,type:a,style:u,showArtwork:!!l},void 0,y.a.createElement(p,r()({type:a,subtype:o,art:l,listStyle:u},d)))},t}(m.Component);t.a=V},function(e,t,n){"use strict";function i(){return r()(c.a,{
title:Object(l.default)("Nothing is here"),description:Object(l.default)("This item may have been deleted recently")},void 0,r()(s.a,{to:"#",kind:u.b.PRIMARY},void 0,Object(l.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(20)),l=n(3),c=n(720),u=n(24);t.a=i},function(e,t,n){"use strict";function i(){return r()(c.a,{title:Object(l.default)("You must be lost"),description:Object(l.default)("This item does not have its own page")},void 0,r()(s.a,{to:"#",kind:u.b.PRIMARY
},void 0,Object(l.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(20)),l=n(3),c=n(720),u=n(24);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{discs:e}})}var a=n(11),r=n(4),o=(n.n(r),n(4626)),s=n(4627);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.metadataItemEntityIDs},s.a,function(e,t){return o.a.compact(e.reduce(function(e,n){
var i=t[n],a=i.entityID,r=i.parentIndex,o=void 0===r?1:r,s=e[o];return s?s.metadataItemEntityIDs.push(a):e[o]={index:o,metadataItemEntityIDs:[a]},e},[]))})}t.a=i;var a=n(4),r=(n.n(a),n(10)),o=n.n(r),s=n(108)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(237),b=n(30),I=n(1744),S=n(4628),M=n(1745),D=n(766),C=n(1057),j=n(155),P=n(46),O=n.n(P),T=parseInt(O.a.tableTitleHeight,10)+19,E=parseInt(O.a.tableRowHeight,10),w=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.state={layout:null,totalSize:0,title:""},a}return f()(t,e),t.prototype.componentDidMount=function(){this._updateLayout()},t.prototype.componentDidUpdate=function(e){e.discs!==this.props.discs&&this._updateLayout()},
t.prototype._updateLayout=function(){var e=this.props,t=e.discs,n=e.listType,i=t.reduce(function(e,t){return e+t.metadataItemEntityIDs.length},0),a=1===t.length?Object(I.a)(n,i):"",r=Object(C.a)({getCellHeights:function(){return t.map(function(e){return T+e.metadataItemEntityIDs.length*E})},overscan:1});this.setState({layout:r,totalSize:i,title:a})},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.containerKey,s=e.discs,c=e.listType,u=e.isPopulated,d=e.isPending,p=e.error,h=e.showArtwork,f=e.contentHeight,v=e.scrollTop,g=l()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","discs","listType","isPopulated","isPending","error","showArtwork","contentHeight","scrollTop"]),I=this.state,C=I.layout,P=I.totalSize,O=I.title,T={serverEntityID:t,providerEntityID:n,metadataListEntityID:i,
containerKey:r,title:O,listType:c};return o()(M.a,{listType:c,isPopulated:u,isPending:d,error:p,size:P},void 0,o()(D.a,{showArtwork:h,contentHeight:f,scrollTop:v},void 0,C&&m.a.createElement(y.a,a()({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,keyPropName:"index",items:s,size:s.length,listType:c,listContext:b.S,isPopulated:u,isPending:d,error:p,layout:C,cellRenderer:Object(j.a)(T,S.a)},g))))},t}(g.Component);t.a=w},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.title,s=e.index,d=e.className,g=e.cellX,m=e.cellY,y=e.cellWidth,b=e.cellHeight,I=e.metadataItemEntityIDs,j=e.listType;return r()(l.a,{className:d,cellX:g,cellY:m,cellWidth:y,cellHeight:b},void 0,r()(h.a,{className:S.a.header},void 0,r()(f.a,{},void 0,Object(c.a)(o||Object(u.default)("Disc {discNumber}",{discNumber:s})))),D,I.map(function(e,o){return r()(v.a,{serverEntityID:t,providerEntityID:n,
metadataListEntityID:i,containerKey:a,keyPropName:"metadataItemEntityID",metadataItemEntityID:e,cellHeight:M,cellIndex:o,listType:j,listContext:p.i,activeSort:"titleSort",showLink:!1,showPlayIndex:!0,showActionsDuration:!0,isVirtual:!1},e)}),C)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(91)),c=n(401),u=n(3),d=n(154),p=n(33),h=n(478),f=n(403),v=n(745),g=n(764),m=n(765),y=n(46),b=n.n(y),I=n(4631),S=n.n(I),M=parseInt(b.a.tableRowHeight,10),D=r()(m.a,{}),C=r()(g.a,{});t.a=Object(d.a)(i)
},function(e,t){e.exports={bottomDivider:"PrePlayListBottomDivider-bottomDivider-3XSnc PrePlayDivider-divider-1qvbj"}},function(e,t){e.exports={topDivider:"PrePlayListTopDivider-topDivider-3c8uz PrePlayDivider-divider-1qvbj"}},function(e,t){e.exports={header:"PrePlayDisc-header-1227p HubCellHeader-hubCellHeader-2pvYN"}},function(e,t,n){"use strict";function i(e){switch(e){case r.i:return Object(a.default)("No seasons");case r.c:return Object(a.default)("No episodes");case r.a:
return Object(a.default)("No albums");case r.j:return Object(a.default)("No tracks");case r.g:return Object(a.default)("No photos");default:return Object(a.default)("No items")}}t.a=i;var a=n(3),r=n(223)},function(e,t,n){"use strict";function i(e){switch(e){case r.i:return Object(a.default)("Unable to load seasons");case r.c:return Object(a.default)("Unable to load episodes");case r.a:return Object(a.default)("Unable to load albums");case r.j:return Object(a.default)("Unable to load tracks")
;case r.g:return Object(a.default)("Unable to load photos");default:return Object(a.default)("Unable to load items")}}t.a=i;var a=n(3),r=n(223)},function(e,t){e.exports={container:"PrePlayList-container-WZ86O HubCell-hubCell-3Ys17",emptyContainer:"PrePlayList-emptyContainer-1scC5",emptyMessage:"PrePlayList-emptyMessage-aeAV8 PrePlayList-emptyContainer-1scC5"}},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.width,a=e.height,o=e.url;return s()(d.a,{
serverEntityID:t,providerEntityID:n,background:!0,backgroundPosition:"top center",minSize:!0,transition:!0,transitionProps:r()({className:h.a.imageContainer,style:{width:i,height:a}},u.a),width:i,height:a,url:o})}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(311)),d=n(185),p=n(4636),h=n.n(p);t.a=i},function(e,t){e.exports={imageContainer:"PrePlayArtwork-imageContainer-3dXG6"}},function(e,t,n){"use strict";function i(e){var t=e.width,n=e.height,i=e.url;return s()(u.a,{
background:!0,backgroundPosition:"center center",minSize:!0,transition:!0,transitionProps:r()({className:h.a.imageContainer,style:{width:t,height:n}},d.a),width:t,height:n,src:i})}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(184)),d=n(311),p=n(4638),h=n.n(p);t.a=i},function(e,t){e.exports={imageContainer:"PrePlayHero-imageContainer-3tRKG"}},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.posterWidth;return r()("div",{className:t,style:{
paddingLeft:i+60}},void 0,n)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(4640)),c=n.n(l);i.defaultProps={className:c.a.content},t.a=i},function(e,t){e.exports={content:"PrePlayMetadataContent-content-2ww3j"}},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,o=e.type,s=e.subtype,d=e.posterType,p=e.pageHeight,h=e.posterWidth,v=e.posterTop,m=e.posterUrl,y=e.showLinkOnly,b=d||o,I=h,S=Object(u.d)(I,b,s,l.i)
;return S>p-g&&(S=p-g,I=Object(u.e)(S,b,s,l.i)),r()("div",{style:{position:"fixed",top:v}},void 0,r()(c.a,{cardFaceClassName:f.a.face,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:a,type:o,subtype:s,imageWidth:I,imageHeight:S,imageUrl:m,showLink:!1,showSelect:!1,showEdit:!1,showMore:!1,showLinkOnly:y}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(33)),c=n(404),u=n(130),d=n(46),p=n.n(d),h=n(4642),f=n.n(h),v=parseInt(p.a.pagePadding,10),g=2*v+40;t.a=i
},function(e,t){e.exports={face:"PrePlayPosterCard-face-3rQEj MetadataPosterCardFace-face--dz_D MetadataPosterCardFace-poster-L2P6r"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(c.a,l.a,Object(o.a)(),Object(s.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],type:n.type,Genre:n.Genre}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(583),l=n(39),c=n(53),u=n(1036)
;t.a=Object(a.connect)(i)(u.a)},function(e,t){e.exports={innerContent:"PrePlayMetadataListInnerContent-innerContent-2CsIz"}},function(e,t,n){"use strict";function i(e){return function(t){return d.a.createElement(m.a,l()({},e,t))}}function a(e){var t=e.listType,n=e.listSubtype,a=e.listContext,r=e.serverEntityID,s=e.providerEntityID,c=e.server,u=e.provider,d=e.librarySectionKey,h=e.roles;if(!h)return null;var m=Object(g.b)(t,a);return o()("div",{className:b.a.castList},void 0,o()(f.a,{
hubIdentifier:"cast",title:Object(p.default)("Cast"),size:h.length,listType:t,listContext:a,columnAdjustment:1,keyPropName:"uniqueID",items:h.map(function(e){return l()({},e,{uniqueID:e.id+"!"+e.role})}),layout:Object(v.a)(t,n,a,1,m.length),cellRenderer:i({listType:t,listContext:a,serverEntityID:r,providerEntityID:s,server:c,provider:u,librarySectionKey:d,titleComponents:m})}))}var r=n(2),o=n.n(r),s=n(6),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=n.n(u),p=n(3),h=n(33),f=n(569),v=n(582),g=n(207),m=(n(99),
n(140),n(4646)),y=n(4648),b=n.n(y);a.defaultProps={listType:"actor",listContext:h.i},t.a=a},function(e,t,n){"use strict";function i(e){var t=e.listType,n=e.serverEntityID,i=e.providerEntityID,a=e.server,o=e.provider,s=e.librarySectionKey,u=e.titleComponents,f=e.thumb,g=e.id,m=e.tag,y=e.role,b=e.filter,I=e.cellX,S=e.cellY,M=e.cellWidth,D=e.cellHeight,C=e.showOffscreenPlaceholder,j={filters:b||"actor="+g,filterLabel:m};return r()(c.a,{cellX:I,cellY:S,cellWidth:M,cellHeight:D},void 0,r()(l.a,{
className:v.a.cardLink,to:Object(h.a)(a,o,s,j)},void 0,r()(p.a,{serverEntityID:n,providerEntityID:i,imageWidth:M,imageHeight:M,imageUrl:f,title:m,tagType:t,isOffscreen:C},g||m)),r()("div",{className:v.a.titleContainer},void 0,u.map(function(e,t){return r()(d.a,{server:a,provider:o,librarySectionKey:s,tag:m,role:y,filter:b,component:e,isSecondary:t>0},t)})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(91),u=n(154),d=n(288),p=n(979),h=(n(99),n(140),n(150)),f=n(4647),v=n.n(f)
;t.a=Object(u.a)(i)},function(e,t){e.exports={cardLink:"PrePlayCastCell-cardLink-Tndv5",titleContainer:"PrePlayCastCell-titleContainer-PAy29"}},function(e,t){e.exports={castList:"PrePlayCastList-castList-3dQB5"}},function(e,t){e.exports={relatedList:"PrePlayHubList-relatedList-3rwpf",spinnerContainer:"PrePlayHubList-spinnerContainer-1kYSW"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e){return e.ui.prePlayPage},function(e){
var t=e.augmentedHubs,n=e.isAugmentedHubsPending;return t?{hubEntityIDs:t,showSpinner:!t.length&&n}:{hubEntityIDs:[],showSpinner:!1}})}var a=n(11),r=n(4),o=(n.n(r),n(1746)),s=Object(a.connect)(i)(o.a);t.a=s},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(237),v=n(392),g=n(4652),m=Object(v.a)(96),y=function(e){function t(){var n,i,r;o()(this,t);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u]
;return n=i=l()(this,e.call.apply(e,[this].concat(c))),i.renderCell=function(e){return h.a.createElement(g.a,a()({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,metadataListEntityID:i.props.metadataListEntityID},e))},r=n,l()(i,r)}return u()(t,e),t.prototype.render=function(){return h.a.createElement(f.a,a()({layout:m,cellRenderer:this.renderCell},this.props))},t}(p.Component);t.a=y},function(e,t,n){"use strict";function i(){
return Object(l.createSelector)(function(e,t){return t.metricsContext},d.a,u.a,Object(c.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};return e&&(a.context=e),{metadataKey:i.key,title:i.title,type:i.type,summary:i.summary,route:Object(h.a)(t,n,i.key),showRecord:!!n.features.subscribe,hasSingleSubscription:!!i.subscriptionID}})}function a(e){return s.a.createElement(f.a,e)}var r=n(1),o=(n.n(r),n(0)),s=n.n(o),l=n(4),c=(n.n(l),
n(21)),u=n(39),d=n(53),p=n(58),h=n(137),f=n(4653);t.a=Object(p.a)(i)(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(73)),f=n(20),v=n(91),g=n(28),m=n(3),y=n(26),b=n(154),I=n(705),S=n(289),M=n(1531),D=n(329),C=n(4654),j=n.n(C),P=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){
a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:!1},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(g.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.cellIndex,o=e.cellX,s=e.cellY,l=e.cellWidth,c=e.cellHeight,u=e.metadataKey,d=e.route,p=e.title,g=e.type,b=e.summary,C=e.showRecord,P=e.hasSingleSubscription,O=this.state.isSubscribeModalOpen;return u?a()(v.a,{
className:r%2?j.a.alternateItem:j.a.item,cellX:o,cellY:s,cellWidth:l,cellHeight:c},void 0,a()(f.a,{className:j.a.underlay,to:d}),a()("div",{className:j.a.overlay},void 0,a()("div",{className:j.a.primaryTitle},void 0,a()(D.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()("div",{className:j.a.secondaryTitle},void 0,P&&a()(y.a,{className:j.a.subscriptionIcon,name:"plex-icon-dvr-single-560","aria-label":Object(m.default)("Recording Scheduled")}),a()(M.a,{
className:j.a.nextAiringDate,metadataItemEntityID:i,showFullTime:!0}),!!b&&a()(h.b,{className:j.a.separator}),b)),C&&a()(I.a,{className:j.a.recordButton,tabIndex:"-1",title:p,onPress:this.onRecordPress}),a()(S.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,isOpen:O,subscriptionType:g,onModalClose:this.onSubscribeModalClose})):a()(v.a,{className:r%2?j.a.alternateLoadingItem:j.a.loadingItem,cellX:o,cellY:s,cellWidth:l,cellHeight:c},void 0,Object(m.default)("Loading..."))},t
}(p.Component);t.a=Object(b.a)(P)},function(e,t){e.exports={item:"EPGPrePlayEpisodeCell-item-31U2l",recordButton:"EPGPrePlayEpisodeCell-recordButton-x7LVG RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA",alternateItem:"EPGPrePlayEpisodeCell-alternateItem-3QMpy EPGPrePlayEpisodeCell-item-31U2l",underlay:"EPGPrePlayEpisodeCell-underlay-28hJx",overlay:"EPGPrePlayEpisodeCell-overlay-2sL4Q",primaryTitle:"EPGPrePlayEpisodeCell-primaryTitle-p-Naw",
secondaryTitle:"EPGPrePlayEpisodeCell-secondaryTitle-iTKpt",subscriptionIcon:"EPGPrePlayEpisodeCell-subscriptionIcon-14CJU",nextAiringDate:"EPGPrePlayEpisodeCell-nextAiringDate-10Bif",separator:"EPGPrePlayEpisodeCell-separator-2LvFs",loadingItem:"EPGPrePlayEpisodeCell-loadingItem-2VkI2",alternateLoadingItem:"EPGPrePlayEpisodeCell-alternateLoadingItem-2KPtT EPGPrePlayEpisodeCell-loadingItem-2VkI2"}},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.listType,l=e.listContext,c=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listContext"]);return u.a.createElement(d.a,r()({layout:h.a,cellRenderer:Object(f.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,containerKey:a,listType:o,listContext:l},p.a)},c))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(237),p=(n(33),
n(1640)),h=n(1639),f=n(155);t.a=i},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.items},function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},function(e,t){return t.metadataListEntityID},function(e,t){return t.containerKey},function(e,t){return t.listType},o.a,function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2],i=arguments[3],a=arguments[4],r=arguments[5],o=arguments[6];return{listType:r,cellRenderer:Object(c.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,containerKey:a,listType:r},l.a),aspectRatios:e.map(function(e){return Object(s.a)(o[e])})}})}var a=n(11),r=n(4),o=(n.n(r),n(108)),s=n(755),l=n(1694),c=n(155),u=n(1748);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.listType,l=e.listSubtype,c=e.listContext,g=e.columnAdjustment,m=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listSubtype","listContext","columnAdjustment"]),y=Object(v.b)(o,c,{providerEntityID:n});return u.a.createElement(d.a,r()({layout:Object(h.a)(o,l,c,g,y.length),cellRenderer:Object(f.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,
containerKey:a,listType:o,listContext:c,titleComponents:y},p.a)},m))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(237),p=(n(33),n(734)),h=n(1048),f=n(155),v=n(207);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.listType,l=e.listContext,c=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listContext"])
;return u.a.createElement(d.a,r()({layout:h.a,cellRenderer:Object(f.a)({serverEntityID:t,providerEntityID:n,metadataListEntityID:i,containerKey:a,listType:o,listContext:l},p.a)},c))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(237),p=(n(33),n(1645)),h=n(1644),f=n(155);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.containerKey,o=e.listType,l=e.listContext,c=s()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listContext"]),v={serverEntityID:t,providerEntityID:n,metadataListEntityID:i,containerKey:a,listType:o,listContext:l,activeSort:"titleSort"};return"episode"===o&&(v.showPlayIndex=!0,v.showActionsMinutesLeft=!0),"track"===o&&(v.showLink=!1,v.showPlayIndex=!0,v.showActionsDuration=!0),
u.a.createElement(d.a,r()({layout:h.a,cellRenderer:Object(f.a)(v,p.a)},c))}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(237),p=(n(33),n(745)),h=n(1051),f=n(155);t.a=i},function(e,t){e.exports={descendantHubCellHeader:"PrePlayDescendantList-descendantHubCellHeader-2qK3U HubCellHeader-hubCellHeader-2pvYN",titleButton:"PrePlayDescendantList-titleButton-P7EPn"}},function(e,t,n){"use strict";function i(e){return l.a.createElement(u.a,r()({className:p.a.extrasHubCell,
hubIdentifier:"extras"},e))}var a=n(6),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(33),u=n(1607),d=n(4662),p=n.n(d);i.defaultProps={listType:"extra",listContext:c.i,columnAdjustment:1},t.a=i},function(e,t){e.exports={extrasHubCell:"PrePlayExtrasList-extrasHubCell-2NcGK HubCell-hubCell-3Ys17"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(){return{concerts:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).concerts}})}
var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(4664);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.concerts;if(!t||!t.length)return null;var n=Object(d.a)(Object(p.default)("On Tour"));return s()("div",{className:b.a.concerts},void 0,s()(h.a,{},void 0,s()(f.a,{},void 0,n,s()("img",{className:b.a.concertsLogo,src:g.a}))),t.map(function(e){return u.a.createElement(m.a,r()({key:e.id},e))}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),
n(0)),u=n.n(c),d=n(401),p=n(3),h=n(478),f=n(403),v=n(4665),g=n.n(v),m=n(4666),y=n(4668),b=n.n(y);t.a=i},function(e,t,n){e.exports=n.p+"desktop/common/img/vendor-logos/songkick.19411461aa7bffd06675aaa8a3d0a056.svg"},function(e,t,n){"use strict";function i(e){var t=e.at,n=e.city,i=e.country,a=e.tag,l=e.url,c=e.venue,d=Object(s.a)(t),h=Object(o.a)(d,"dd"),f=Object(o.a)(d,"MMM");return r()(u.a,{className:p.a.concert,target:"_blank",to:l},void 0,r()("div",{className:p.a.concertCalendar
},void 0,r()("div",{className:p.a.concertMonth},void 0,f),r()("div",{className:p.a.concertDay},void 0,h)),r()("div",{className:p.a.concertDetails},void 0,r()("div",{className:p.a.concertTitle},void 0,a),r()("div",{className:p.a.concertLocation},void 0,c," (",n,", ",i,")")))}var a=n(2),r=n.n(a),o=n(170),s=n(81),l=n(1),c=(n.n(l),n(0)),u=(n.n(c),n(20)),d=n(4667),p=n.n(d);t.a=i},function(e,t){e.exports={concert:"PrePlayConcert-concert-2d4lO",concertCalendar:"PrePlayConcert-concertCalendar-1FILv",
concertMonth:"PrePlayConcert-concertMonth-2qln2",concertDay:"PrePlayConcert-concertDay-zNEEh",concertDetails:"PrePlayConcert-concertDetails-_iXFv",concertTitle:"PrePlayConcert-concertTitle-2O-pN",concertLocation:"PrePlayConcert-concertLocation-3ltdC"}},function(e,t){e.exports={concerts:"PrePlayConcerts-concerts-3r-qi",concertsLogo:"PrePlayConcerts-concertsLogo-oF29R"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(c.a,l.a,Object(o.a)(),Object(s.a)(),function(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],Country:n.Country,Genre:n.Genre}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(583),l=n(39),c=n(53),u=n(4670);t.a=Object(a.connect)(i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.Country,o=e.Genre,s=!(!a||!a.length),h=!(!o||!o.length);return s||h?r()(p.a,{},void 0,s&&r()(u.a,{},void 0,r()(c.a,{server:t,provider:n,
librarySectionKey:i,fallbackFilterKey:"country",tags:a,limit:1})),h&&r()(d.a,{},void 0,r()(l.a,{server:t,provider:n,librarySectionKey:i,Genre:o}))):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1036)),c=n(1030),u=n(118),d=n(482),p=n(224);n(99),n(140);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.metadataItemEntityIDs,o=e.containerKey,l=e.showArtwork,u=e.contentHeight,d=e.scrollTop,I=c()(e,["serverEntityID","providerEntityID","metadataListEntityID","metadataItemEntityIDs","containerKey","showArtwork","contentHeight","scrollTop"]);if(!a||!a.length)return null;var M=Object(f.a)(Object(v.default)("Popular Tracks")),j={serverEntityID:t,providerEntityID:n,metadataListEntityID:i,containerKey:o,listType:"track",
listContext:g.i,activeSort:"titleSort",showLink:!1,showPlayIndex:!1,showPlayCellIndex:!0,showActionsDuration:!0};return s()("div",{className:P.a.popularTracksHubCell,"data-qa-id":"hub--popularTracks"},void 0,s()(b.a,{},void 0,s()(m.a,{},void 0,M)),O,s()(S.a,{showArtwork:l,contentHeight:u,scrollTop:d},void 0,p.a.createElement(h.a,r()({layout:D.a,cellRenderer:Object(C.a)(j,y.a),items:a,size:Math.min(a.length,5),keyPropName:"metadataItemEntityID"},I))),T)}
var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(237),f=n(401),v=n(3),g=n(33),m=n(403),y=n(745),b=n(109),I=n(764),S=n(766),M=n(765),D=n(1051),C=n(155),j=n(4672),P=n.n(j),O=s()(M.a,{}),T=s()(I.a,{});t.a=i},function(e,t){e.exports={popularTracksHubCell:"PrePlayPopularTracks-popularTracksHubCell-Q0N9b HubCell-hubCell-3Ys17"}},function(e,t,n){var i=n(432),a=n(4674);e.exports=i({},a,{})},function(e,t){e.exports={
defaultFontFamily:'"Open Sans Semibold", "Helvetica Neue", Helvetica, Arial, sans-serif',boldFontFamily:'"Open Sans Bold", "Helvetica Neue", Helvetica, Arial, sans-serif',smallFontSize:"12px",smallIconFontSize:"12px",defaultFontSize:"13px",defaultIconFontSize:"14px",largeFontSize:"15px",headerFontSize:"24px",lineHeightComputed:"1.71428571"}},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.type,o=e.duration,s=e.isSubscribed,p=e.subscriptionType,f=e.grandparentSubscriptionType,v=e.showRecord,g=e.record;return r()(d.a,{},void 0,r()(l.a,{className:h.a.duration,duration:o}),r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),v&&r()(c.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,type:a,isSubscribed:s,subscriptionType:p,grandparentSubscriptionType:f,isSubscribeModalOpen:g}))}
var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(717)),c=n(1754),u=n(742),d=n(118),p=n(4677),h=n.n(p);t.a=i},function(e,t){e.exports={recordButton:"EPGPrePlayRecordButton-recordButton-1Y_Dw PrePlayStatusButton-statusButton-28XJ7 Button-default--yDCH",recordingIcon:"EPGPrePlayRecordButton-recordingIcon-15EDB",recordIcon:"EPGPrePlayRecordButton-recordIcon-3SHaD"}},function(e,t){e.exports={duration:"EPGPrePlayStatusLeftTitle-duration-1W91h"}},function(e,t,n){"use strict";function i(e,t){
return Object(y.createSelector)(function(e){return e.ui.playlistPage},Object(b.a)(),I.c,function(e,t,n){var i=e.serverEntityID,a=e.providerEntityID,r=e.metadataKey,o=e.playlistItemList,s=void 0===o?{}:o,l=e.isPlaylistItemListPending,c=e.isPlaylistItemListPopulated,u=e.playlistItemListError,d=t.ratingKey,p=t.playlistType,h=t.smart,f=t.readOnly,v=t.duration,g=s.metadataItems,m=void 0===g?[]:g,y=s.populatedRange,b=void 0===y?{}:y,I=s.totalSize;return{serverEntityID:i,providerEntityID:a,
metadataKey:r,ratingKey:d,providerIdentifier:n.identifier,listType:p,keyPropName:"playlistItemEntityID",isSmart:!!h,isReadOnly:!!f,populatedRange:b,items:m,size:I,itemsOffset:b.start,duration:v,isEmpty:c&&!I,showArtwork:!1,showSpinner:l&&!c,showError:u}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(21)),I=n(39),S=n(41),M=n(399),D=n(338),C=n(4679),j={dispatchInitPlaylistItemList:D.c,
dispatchPopulatePlaylistItemRange:D.f,dispatchDeselectAllPlaylistItems:M.d,dispatchMovePlaylistItem:D.e},P=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onPageRequest=function(e){var t=e.startIndex,n=e.endIndex,a=i.props.providerIdentifier===S.e||i.props.providerIdentifier===S.f;i.props.dispatchPopulatePlaylistItemRange({pages:a?1:void 0,startIndex:t,endIndex:n})},a=n,
d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){this._populate()},t.prototype.componentDidUpdate=function(e){this.props.metadataKey!==e.metadataKey&&this._populate()},t.prototype.componentWillUnmount=function(){this.props.dispatchDeselectAllPlaylistItems()},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataKey,a=e.providerIdentifier,r=e.dispatchInitPlaylistItemList,o=e.dispatchPopulatePlaylistItemRange;r({serverEntityID:t,
providerEntityID:n,metadataKey:i}),o({pages:a===S.e||a===S.f?1:void 0,startIndex:0,endIndex:39})},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitPlaylistItemList,e.dispatchPopulatePlaylistItemRange,e.dispatchDeselectAllPlaylistItems,s()(e,["dispatchInitPlaylistItemList","dispatchPopulatePlaylistItemRange","dispatchDeselectAllPlaylistItems"]));return g.a.createElement(C.a,r()({},t,{onPageRequest:this.onPageRequest}))},t}(v.Component);t.a=Object(m.connect)(i,j)(P)
},function(e,t,n){"use strict";function i(e){var t=e.contentHeight,n=e.scrollTop,i=e.showArtwork,a=e.showSpinner,o=e.showError,l=e.listType,c=e.isEmpty,h=s()(e,["contentHeight","scrollTop","showArtwork","showSpinner","showError","listType","isEmpty"]);return a?r()("div",{className:y.a.emptyContainer},void 0,b):o?r()("div",{className:y.a.emptyMessage},void 0,Object(d.default)("Unable to load items")):c?r()("div",{className:y.a.emptyMessage
},void 0,l===p.c?Object(d.default)("There are no items in this album"):Object(d.default)("There are no items in this playlist")):r()(f.a,{showArtwork:i,contentHeight:t,scrollTop:n},void 0,l===p.c?u.a.createElement(g.a,h):u.a.createElement(v.a,h))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(3),p=n(63),h=n(31),f=n(766),v=n(4680),g=n(4695),m=n(4709),y=n.n(m),b=r()(h.a,{});t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(12),o=n.n(r),s=n(6),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(237),b=n(308),I=n(36),S=n(401),M=n(3),D=n(63),C=n(478),j=n(403),P=n(764),O=n(765),T=n(483),E=n(4681),w=n(155),A=n(4682),x=n(4689),N=n(4694),L=n.n(N),k=a()(O.a,{}),R=a()(P.a,{}),z=function(e){function t(n,i){u()(this,t);var a=p()(this,e.call(this,n,i));return a.onItemDragMove=function(e){e!==a.state.moveIndex&&a.setState({moveIndex:e})},
a.onItemDragEnd=function(e,t){var n=a.state.moveIndex;t&&null!=n&&Object(I.a)(function(){a.props.dispatchMovePlaylistItem(l()({},e,{moveIndex:n}))}),a.setState({moveIndex:null})},a.state={moveIndex:null},a}return f()(t,e),t.prototype._getItemCountLabel=function(){var e=this.props.size;return this.props.playlistType===D.d?1===e?Object(M.default)("1 Video"):Object(M.default)("{count} Videos",{count:e}):1===e?Object(M.default)("1 Track"):Object(M.default)("{count} Tracks",{count:e})},
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataKey,s=e.playlistType,c=e.contentWidth,u=e.contentHeight,d=e.scrollTop,p=e.items,h=e.isSmart,f=e.isReadOnly,v=e.size,g=e.duration,I=o()(e,["serverEntityID","providerEntityID","metadataItemEntityID","metadataKey","playlistType","contentWidth","contentHeight","scrollTop","items","isSmart","isReadOnly","size","duration"]),P={serverEntityID:t,providerEntityID:n,
metadataListEntityID:i,metadataKey:r,listType:s,activeSort:"titleSort",isSmart:h,isReadOnly:f,showLink:!1,showPlayIndex:!1,showPlayCellIndex:!0,showActionsDuration:!0,onItemDragMove:this.onItemDragMove,onItemDragEnd:this.onItemDragEnd,moveIndex:this.state.moveIndex};return 0===v?a()("div",{},void 0,s===D.d?Object(M.default)("This playlist has no videos."):Object(M.default)("This playlist has no tracks.")):a()("div",{},void 0,a()(C.a,{className:L.a.header
},void 0,a()(j.a,{},void 0,Object(S.a)(this._getItemCountLabel())),!!g&&a()("span",{className:L.a.durationTitle},void 0,Object(b.a)(g))),k,m.a.createElement(y.a,l()({layout:E.a,containerKey:r,keyPropName:"playlistItemEntityID",cellRenderer:Object(w.a)(P,x.a),items:p,size:v,viewportWidth:c,viewportHeight:u,scrollTop:d,firstItemType:s,listType:s,moveIndex:this.state.moveIndex},I)),R,!h&&!f&&a()(A.a,{serverEntityID:t,providerEntityID:n}))},t}(g.Component);t.a=Object(T.a)(z)},function(e,t,n){
"use strict";var i=n(392),a=n(46),r=n.n(a),o=parseInt(r.a.playQueueItemHeight,10),s=Object(i.a)(o);t.a=s},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getSourceClientOffset()}}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(225),y=(n.n(m),n(28)),b=n(579),I=n(290),S=n(1070),M=n(1080),D=n(4688),C=n.n(D),j=function(e){function t(){return c()(this,t),
d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(y.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.item,n=e.itemType,i=e.currentOffset;if(!i||n!==I.c)return null;var a=Object(S.a)(i,t.viewportWidth);return s()(b.a,{},void 0,s()("div",{className:C.a.dragPreview,style:a},void 0,g.a.createElement(M.a,r()({isDragging:!0},t))))},t}(v.Component);t.a=Object(m.DragLayer)(i)(j)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(3),v=n(26),g=n(283),m=n(459),y=n(476),b=n(24),I=n(4684),S=n(4687),M=n.n(S),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onActionsMenuOpenChange=function(e){a.setState({isActionsMenuOpen:e})},a.state={isActionsMenuOpen:!1},a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.itemServerEntityID,i=e.providerEntityID,r=e.itemProviderEntityID,o=e.metadataItemEntityID,s=e.metadataListEntityID,l=e.metadataKey,c=e.listType,u=e.title,d=e.isSmart,p=e.isReadOnly,S=e.isSelected,D=e.hasActiveSelection,C=e.isOtherItemSelected,j=e.isModifierKeyPressed,P=e.cellIndex,O=e.isDragging,T=e.connectDragSource,E=e.onRemovePress,w=e.onSelectPress,A=e.onDeselectPress,x=!(d||p),N=x&&(j||C),L=D?"-1":"0";return a()("div",{
className:((P%2?M.a.alternateContainer:M.a.container)||"")+" "+(D&&M.a.hasActiveSelection||"")+" "+(N&&M.a.isForcingSelection||"")+" "+(S&&M.a.isSelected||"")+" "+((d||p)&&M.a.isSmart||"")+" "+(O&&M.a.isItemDragging||""||"")},void 0,x&&a()(h.a,{className:M.a.underlay,"aria-label":S?Object(f.default)("Deselect {title}",{title:u}):Object(f.default)("Select {title}",{title:u}),tabIndex:D?"0":"-1",onPress:S?A:w}),a()("div",{className:M.a.overlay,"data-qa-id":"playlistItem"},void 0,x&&T(a()("div",{
className:M.a.moveControl,"data-qa-id":"playlistReorderItem"},void 0,a()(v.a,{className:M.a.grabIcon,name:"plex-icon-reorder-560"}))),a()(I.a,{className:M.a.metadataContainer,sourceTextClassName:M.a.sourceText,durationContainerClassName:M.a.metadataDurationContainer,attributionContainerClassName:M.a.attributionContainer,serverEntityID:t,itemServerEntityID:n,providerEntityID:i,itemProviderEntityID:r,metadataItemEntityID:o,metadataListEntityID:s,metadataKey:l,listType:c,cellIndex:P}),a()("div",{
className:M.a.otherControls},void 0,x&&a()(m.a,{className:M.a.selectButton,title:u,isSelected:S,onPress:S?A:w}),a()(y.a,{"data-qa-id":"metadataRowMoreButton",className:M.a.moreButton,tabIndex:L,serverEntityID:t,itemServerEntityID:n,providerEntityID:i,itemProviderEntityID:r,metadataItemEntityID:o,containerKey:l,listType:c,showPlay:!1,showQueuePlexMix:!1,showEdit:!1,isMenuOpen:this.state.isActionsMenuOpen,onMenuOpenChange:this.onActionsMenuOpenChange}),x&&a()(g.a,{className:M.a.removeButton,
"data-qa-id":"playlistRemoveButton",icon:"plex-icon-remove-560",title:Object(f.default)("Remove"),kind:b.b.DANGER,onPress:E}))))},t}(p.Component);D.defaultProps={isDragging:!1,connectDragSource:function(e){return e}},t.a=D},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(s.a)(),Object(u.a)(),function(e){return e.ui.audioVideoPlayer.isPaused},function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2],i=c.g,a=Object(p.c)(e.type,e.subtype,i),r=a===p.a?f:v,o=Object(d.a)(r,null,e.type,e.subtype,e,i);return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,type:e.type,subtype:e.subtype,metadataKey:e.key,duration:e.duration,title:e.title,context:i,imageWidth:o.width,imageHeight:o.height,imageUrl:o.url,isPlaying:t,isPlayerPaused:n}})}function a(e,t){return{onPlayPress:function(){
e(Object(o.m)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,playlistMetadataItemEntityID:t.metadataListEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage}))}}}var r=n(4),o=(n.n(r),n(77)),s=n(21),l=n(58),c=n(33),u=n(1049),d=n(261),p=n(130),h=n(4685),f=64,v=36;t.a=Object(l.a)(i,a)(h.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.indexContainerClassName,i=e.titlesContainerClassName,a=e.sourceTextClassName,o=e.durationContainerClassName,s=e.attributionContainerClassName,m=e.serverEntityID,b=e.providerEntityID,I=e.metadataItemEntityID,S=e.cellIndex,M=e.type,D=e.subtype,C=e.title,j=e.duration,P=e.context,O=e.imageWidth,T=e.imageHeight,E=e.imageUrl,w=e.isPlaying,A=e.isPlayerPaused,x=e.onPlayPress,N=Object(g.b)(M,P,{providerEntityID:b,subtype:D});return r()("div",{className:t},void 0,r()("div",{
className:n},void 0,!w&&r()(f.a,{className:y.a.transientTitleLeft,index:S+1}),!w&&r()(c.a,{className:y.a.playButton,title:C,onPress:x}),w&&r()(u.a,{className:y.a.equalizer,isPaused:A})),r()("div",{className:y.a.cardContainer},void 0,r()(d.a,{className:y.a.card,serverEntityID:m,providerEntityID:b,component:p.a,width:O,height:T,url:E},I)),r()("div",{className:i,"data-qa-id":"playlistTitleContainer"},void 0,N.map(function(e,t){return r()(h.a,{serverEntityID:m,providerEntityID:b,
metadataItemEntityID:I,component:e,isSecondary:t>0},t)})),r()(l.a,{className:s,textClassName:a,serverEntityID:m,metadataItemEntityID:I}),!!j&&r()("div",{className:o},void 0,r()(v.a,{className:y.a.transientTitleRight,duration:j})))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(1593)),c=n(222),u=n(729),d=n(327),p=n(236),h=n(288),f=n(1050),v=n(1007),g=n(207),m=n(4686),y=n.n(m);i.defaultProps={className:y.a.container,indexContainerClassName:y.a.indexContainer,
titlesContainerClassName:y.a.titlesContainer,durationContainerClassName:y.a.durationContainer,attributionContainerClassName:y.a.attributionContainer},t.a=i},function(e,t){e.exports={container:"PlaylistItemMetadata-container-2NWQH",transientTitleLeft:"PlaylistItemMetadata-transientTitleLeft-3qVWp PlaylistItemMetadata-transientTitle-2Qo_V",button:"PlaylistItemMetadata-button-mjGjC",cardContainer:"PlaylistItemMetadata-cardContainer-7tc0m",
card:"PlaylistItemMetadata-card-2mWmP QuickSearchMetadataPosterCard-card-3_XFi MetadataPosterButtonCard-card-2T8TR",indexContainer:"PlaylistItemMetadata-indexContainer-fnl6e",titlesContainer:"PlaylistItemMetadata-titlesContainer-964Le",durationContainer:"PlaylistItemMetadata-durationContainer-yQA2V",transientTitle:"PlaylistItemMetadata-transientTitle-2Qo_V",transientTitleRight:"PlaylistItemMetadata-transientTitleRight-3KEzx PlaylistItemMetadata-transientTitle-2Qo_V",
playButton:"PlaylistItemMetadata-playButton-2Nx0M PlayButton-playButton-3WX8X PlaylistItemMetadata-button-mjGjC",equalizer:"PlaylistItemMetadata-equalizer-3_dxg EqualizerIcon-equalizer-2SoFA"}},function(e,t){e.exports={container:"PlaylistItemRow-container-PfUn9",isSelected:"PlaylistItemRow-isSelected-1Ajx9",button:"PlaylistItemRow-button-13eRZ",moveControl:"PlaylistItemRow-moveControl-2sc-e",otherControls:"PlaylistItemRow-otherControls-2m4rn",
metadataDurationContainer:"PlaylistItemRow-metadataDurationContainer-96Rvw PlaylistItemMetadata-durationContainer-yQA2V",attributionContainer:"PlaylistItemRow-attributionContainer-1ceTS undefined",isForcingSelection:"PlaylistItemRow-isForcingSelection-3N6Br",selectButton:"PlaylistItemRow-selectButton-1nLWB SelectButton-selectButton-3Kbjm PlaylistItemRow-button-13eRZ",hasActiveSelection:"PlaylistItemRow-hasActiveSelection-3MrNh",overlay:"PlaylistItemRow-overlay-2nVlq",
removeButton:"PlaylistItemRow-removeButton-1g21f IconButton-button-9An-7",moreButton:"PlaylistItemRow-moreButton-1zrwp IconButton-button-9An-7",alternateContainer:"PlaylistItemRow-alternateContainer-2SVf_ PlaylistItemRow-container-PfUn9",metadataContainer:"PlaylistItemRow-metadataContainer-1BWE5 PlaylistItemMetadata-container-2NWQH",underlay:"PlaylistItemRow-underlay-iZmQR",sourceText:"PlaylistItemRow-sourceText-3_tAt",grabIcon:"PlaylistItemRow-grabIcon--qMgM",
isItemDragging:"PlaylistItemRow-isItemDragging-2d2Wa"}},function(e,t){e.exports={dragPreview:"PlaylistItemDragPreview-dragPreview-pFud8"}},function(e,t,n){"use strict";function i(e){var t=e.cellIndex,n=e.cellX,i=e.cellY,a=e.cellWidth,o=e.cellHeight,l=e.playlistItemEntityID,u=e.isSmart,d=e.isReadOnly,m=c()(e,["cellIndex","cellX","cellY","cellWidth","cellHeight","playlistItemEntityID","isSmart","isReadOnly"]),y=u||d?g.a:f.a;return s()(h.a,{cellX:n,cellY:i,cellWidth:a,cellHeight:o
},void 0,l?p.a.createElement(y,r()({playlistItemEntityID:l,cellIndex:t,isSmart:u,isReadOnly:d},m)):s()(v.a,{cellIndex:t}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(91),f=n(4690),v=n(4692),g=n(1080);t.a=i},function(e,t,n){"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function a(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}
var r=n(2),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(225),m=(n.n(g),n(406)),y=(n.n(m),n(129)),b=(n.n(y),n(372)),I=n(28),S=n(290),M=n(1080),D=n(4691),C=n.n(D),j={beginDrag:function(e){return{providerEntityID:e.providerEntityID,serverEntityID:e.serverEntityID,metadataListEntityID:e.metadataListEntityID,playlistItemEntityID:e.playlistItemEntityID,cellIndex:e.cellIndex,isSmart:e.isSmart,isReadOnly:e.isReadOnly,listType:e.listType,
viewportWidth:e.viewportWidth}},endDrag:function(e,t,n){e.onItemDragEnd(t.getItem(),t.didDrop())}},P={hover:function(e,t,n){var i=Object(y.findDOMNode)(n).getBoundingClientRect(),a=(i.bottom-i.top)/2,r=t.getClientOffset(),o=r.y-i.top,s=e.cellIndex,l=o>a?s+1:s;e.onItemDragMove(l)}},O=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.connectDragPreview(Object(m.getEmptyImage)())},
t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.moveIndex,n=e.cellIndex,i=e.isOver,a=e.isDragging,r=e.connectDropTarget,s=i&&t===n,l=i&&t===n+1;return r(o()("div",{className:(C.a.container||"")+" "+(a&&b.c||"")+" "+(s&&i&&b.e||"")+" "+(l&&i&&b.d||""||"")},void 0,v.a.createElement(M.a,this.props)))},t}(f.Component);t.a=Object(g.DropTarget)(S.c,P,a)(Object(g.DragSource)(S.c,j,i)(O))},function(e,t){e.exports={
container:"PlaylistItemDragSource-container-ACeFE"}},function(e,t,n){"use strict";function i(e){return r()("div",{className:e.cellIndex%2?u.a.alternateContainer:u.a.container},void 0,Object(l.default)("Loading..."))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(3)),c=n(4693),u=n.n(c);t.a=i},function(e,t){e.exports={container:"PlaylistItemLoading-container-2kR7-",alternateContainer:"PlaylistItemLoading-alternateContainer-3UvX6 PlaylistItemLoading-container-2kR7-"}},function(e,t){
e.exports={header:"PlaylistItemTable-header-2fQb_ undefined",durationTitle:"PlaylistItemTable-durationTitle-2PGlc"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.items},function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},Object(o.a)(),l.a,s.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(arguments[1],arguments[2],arguments[3]),n=arguments[4],i=arguments[5],a=e.map(function(e){
var t=n[e];return Object(c.a)(i[t.metadataItem])});return{listType:t.playlistType,aspectRatios:a,playlistMetadataItemEntityID:t.entityID,playlistRatingKey:t.ratingKey,isSmart:!!t.smart,isReadOnly:!!t.readOnly}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(108),l=n(593),c=n(755),u=n(338),d=n(4696),p={onItemDropped:u.e};t.a=Object(a.connect)(i,p)(d.a)},function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(4697),m=n(4698),y=n(1748),b=n(155),I=n(4705),S=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.createCellRenderer=function(e){var t=i.props,n=t.serverEntityID,a=t.providerEntityID,r=t.playlistMetadataItemEntityID,s=t.playlistRatingKey,l=t.isSmart,c=t.listType;return Object(b.a)(o()({serverEntityID:n,providerEntityID:a,playlistMetadataItemEntityID:r,
ratingKey:s,listType:c,isSmart:l},e),m.a)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.isSmart,n=e.onItemDropped,i=a()(e,["isSmart","onItemDropped"]);return v.a.createElement(g.a,o()({showPreview:!t,listComponent:y.a,previewComponent:I.a,createCellRenderer:this.createCellRenderer,onItemDropped:n},i))},t}(f.Component);t.a=S},function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(483),m=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.onItemDragMove=function(e){e!==a.state.moveIndex&&a.setState({moveIndex:e})},a.onItemDragEnd=function(e,t){var n=a.state.moveIndex;t&&null!==n&&a.props.onItemDropped(o()({},e,{moveIndex:n})),a.setState({moveIndex:null})},a.state={moveIndex:null},a}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.showPreview,n=e.createCellRenderer,i=e.listComponent,r=e.previewComponent,s=a()(e,["showPreview","createCellRenderer","listComponent","previewComponent"]),l={onItemDragMove:this.onItemDragMove,onItemDragEnd:this.onItemDragEnd};return v.a.createElement(i,o()({moveIndex:this.state.moveIndex,cellRenderer:n(l)},s),t&&v.a.createElement(r,s))},t}(f.Component);t.a=Object(g.a)(m)},function(e,t,n){"use strict";function i(e){return{onSelectItem:function(t){e(Object(r.j)(t))},
onDeselectItem:function(t){e(Object(r.a)(t))},onRemoveItem:function(t){e(Object(r.g)(t))}}}var a=n(11),r=n(338),o=n(4699);t.a=Object(a.connect)(null,i)(o.a)},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e,t){return t.playlistItemEntityID},Object(u.a)(),Object(c.a)(),f.a,v.a,function(e,t){var n=t.playlistItemID,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],r=arguments[4],o=i.entityID,s=i.key,l=i.type,c=i.thumb,u=i.title;return{
listType:d.c,playlistItemID:n,metadataItemEntityID:o,metadataKey:s,type:l,thumb:c,title:u,selectionID:e,selectionType:d.c,activeSelectionType:r.activeSelectionType,isSelected:Object(m.a)(a,n)}})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metricsPage:t.metricsPage};return{onPlayPress:function(i){e(Object(l.m)(o()({},n,{playlistMetadataItemEntityID:t.playlistMetadataItemEntityID,metadataItemEntityID:i})))},onEditPress:function(t){
e(Object(h.editMetadataItem)(o()({},n,{metadataItemEntityID:t})))},onRemovePress:function(){t.onRemoveItem({playlistItemEntityID:t.playlistItemEntityID})}}}var r=n(6),o=n.n(r),s=n(4),l=(n.n(s),n(77)),c=n(1762),u=n(1081),d=n(63),p=n(58),h=n(191),f=n(736),v=n(76),g=n(576),m=n(737),y=n(4700);t.a=Object(p.a)(i,a)(Object(g.a)(y.a))},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),
n(0)),m=n.n(g),y=n(91),b=n(28),I=n(154),S=n(46),M=n.n(S),D=n(1763),C=n(4702),j=parseInt(M.a.mosaicCellPadding,10),P=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(b.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.cellX,n=e.cellY,i=e.cellWidth,r=e.cellHeight,s=e.isSmart,c=l()(e,["cellX","cellY","cellWidth","cellHeight","isSmart"]),u=s?D.a:C.a,d=i-2*j,p=r-2*j
;return o()(y.a,{cellX:t,cellY:n,cellWidth:i,cellHeight:r},void 0,m.a.createElement(u,a()({width:d,height:p,isSmart:s},c)))},t}(g.Component);t.a=Object(I.a)(P)},function(e,t){e.exports={photoContainer:"PlaylistPhotoItem-photoContainer-3t9rf MetadataPhotoCell-photoContainer-1HkmQ",image:"PlaylistPhotoItem-image-2oORk MetadataPhotoCell-image-3KqaF",photo:"PlaylistPhotoItem-photo-10hVk MetadataPhotoCell-photo-Po3Kx",badge:"PlaylistPhotoItem-badge-3F6lg MetadataPhotoCell-badge-2L0KJ",
isSelected:"PlaylistPhotoItem-isSelected-9usYF MetadataPosterCardFace-isSelected-1XUgk"}},function(e,t,n){"use strict";var i=n(290),a=n(1763),r=n(4703),o=n(4704),s=n.n(o);t.a=Object(r.b)({itemComponent:a.a,indexPropName:"cellIndex",direction:r.a,idAttribute:"playlistItemEntityID",dragType:i.a,dragClassName:s.a.draggable})},function(e,t,n){"use strict";function i(e){var t=e.idAttribute;return{beginDrag:function(e){var n;return n={},n[t]=e[t],n},endDrag:function(e,t,n){
e.onItemDragEnd(t.getItem(),t.didDrop())}}}function a(e){var t=e.direction,n=e.indexPropName;return{hover:function(e,i,a){var r=Object(P.findDOMNode)(a).getBoundingClientRect(),o=(r.right-r.left)/2,s=(r.bottom-r.top)/2,l=i.getClientOffset(),c=l.x-r.left,u=l.y-r.top,d=e[n],p=t===E?u>s:c>o,h=p?d+1:d;e.onItemDragMove(h)}}}function r(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function o(e,t){return{connectDropTarget:e.dropTarget(),
isOver:t.isOver()}}function s(e){return function(t){return D.a.createElement(A,u()({},e,t))}}function l(e){var t=e.itemComponent,n=e.dragClassName,l=e.dragType,c=e.direction,u=void 0===c?E:c,d=e.idAttribute,p=e.indexPropName;return Object(C.DropTarget)(l,a({direction:u,indexPropName:p}),o)(Object(C.DragSource)(l,i({idAttribute:d}),r)(s({itemComponent:t,indexPropName:p,dragClassName:n})))}n.d(t,"a",function(){return w}),t.b=l
;var c=n(6),u=n.n(c),d=n(2),p=n.n(d),h=n(12),f=n.n(h),v=n(7),g=n.n(v),m=n(8),y=n.n(m),b=n(9),I=n.n(b),S=n(1),M=(n.n(S),n(0)),D=n.n(M),C=n(225),j=(n.n(C),n(406)),P=(n.n(j),n(129)),O=(n.n(P),n(372)),T=n(28),E="VERTICAL",w="HORIZONTAL",A=function(e){function t(){return g()(this,t),y()(this,e.apply(this,arguments))}return I()(t,e),t.prototype.componentDidMount=function(){this.props.connectDragPreview(Object(j.getEmptyImage)())},t.prototype.shouldComponentUpdate=function(e,t){
return Object(T.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.dragClassName,n=e.indexPropName,i=e.moveIndex,a=e.isDragging,r=e.isOver,o=e.connectDropTarget,s=e.connectDragSource,l=(e.connectDragPreview,e.itemComponent),c=f()(e,["dragClassName","indexPropName","moveIndex","isDragging","isOver","connectDropTarget","connectDragSource","connectDragPreview","itemComponent"]),d=this.props[n],h=r&&i===d,v=r&&i===d+1;return o(p()("div",{
className:(t||"")+" "+(a&&O.c||"")+" "+(h&&r&&O.e||"")+" "+(v&&r&&O.d||""||"")},void 0,D.a.createElement(l,u()({connectDragSource:s,canDrag:!0,isDragging:a},c))))},t}(M.Component)},function(e,t){e.exports={draggable:"PlaylistPhotoSortableItem-draggable-2XyLA"}},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getClientOffset()}}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),
n(225)),v=(n.n(f),n(579)),g=n(1070),m=n(4706),y=n(4708),b=n.n(y),I=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.currentOffset,i=e.serverEntityID;if(!n||!t)return null;var a=Object(g.a)(n);return r()(v.a,{},void 0,r()("div",{className:b.a.dragPreview,style:a},void 0,r()(m.a,{serverEntityID:i,playlistItemEntityID:t.playlistItemEntityID})))},t}(h.Component);t.a=Object(f.DragLayer)(i)(I)
},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(function(e,t){return t.playlistItemEntityID},s.a,o.a,function(e,t,n){var i=t[e],a=n[i.metadataItem],r=Math.min(Math.max(Object(l.a)(a),.5),2),o=r>1;return{width:o?u*r:u,height:o?u:u/r,thumb:a.thumb}})}var a=n(11),r=n(4),o=(n.n(r),n(108)),s=n(593),l=n(755),c=n(4707),u=100;t.a=Object(a.connect)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.width,n=e.height,i={width:t,height:n};return r()(l.a,{
serverEntityID:e.serverEntityID,style:i,background:!0,transition:!0,url:e.thumb,width:t,height:n})}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(185));t.a=i},function(e,t){e.exports={dragPreview:"PlaylistPhotoDragPreview-dragPreview-1Grr5"}},function(e,t){e.exports={emptyContainer:"PlaylistItemList-emptyContainer-3nMxM",emptyMessage:"PlaylistItemList-emptyMessage-1ot0C PlaylistItemList-emptyContainer-3nMxM"}},function(e,t,n){"use strict";function i(){
return Object(r.createSelector)(s.a,Object(o.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:t.type,leafCount:t.leafCount,isSubscribed:null!=t.subscriptionID||null!=t.grandparentSubscriptionID,subscriptionType:t.subscriptionType,grandparentSubscriptionType:t.grandparentSubscriptionType,showRecord:!!e.features.subscribe}})}var a=n(11),r=n(4),o=(n.n(r),n(21)),s=n(39),l=n(4711);t.a=Object(a.connect)(i)(l.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.type,o=e.leafCount,s=e.isSubscribed,p=e.subscriptionType,f=e.grandparentSubscriptionType,v=e.showRecord,g=e.record;return r()(d.a,{},void 0,r()(l.a,{className:h.a.episodeCount,leafCount:o}),r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),v&&r()(c.a,{serverEntityID:t,metadataItemEntityID:i,providerEntityID:n,type:a,isSubscribed:s,subscriptionType:p,grandparentSubscriptionType:f,isSubscribeModalOpen:g}))
}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(704)),c=n(1754),u=n(742),d=n(118),p=n(4712),h=n.n(p);t.a=i},function(e,t){e.exports={episodeCount:"EPGPrePlayEpisodeCountLeftTitle-episodeCount-1Ae4n EPGPrePlayStatusLeftTitle-duration-1W91h"}},function(e,t,n){"use strict";function i(e,t,n){
return n===p.b?e?Object(d.default)("In My Podcasts"):Object(d.default)("Add to My Podcasts"):n===p.c?e?Object(d.default)("In My Shows"):Object(d.default)("Add to My Shows"):t===u.e||t===u.f?e?Object(d.default)("In My TIDAL"):Object(d.default)("Add to My TIDAL"):e?Object(d.default)("In My Shows"):Object(d.default)("Add to My Shows")}function a(e){var t=e.className,n=e.kind,a=e.size,r=e.saved,s=e.providerIdentifier,l=e.subtype,u=e.onPress;return o()(c.a,{className:t,kind:n,size:a,onPress:u
},void 0,r&&o()(h.a,{className:g.a.iconSaved,name:"plex-icon-selected-560"}),i(r,s,l))}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(42)),u=n(41),d=n(3),p=n(106),h=n(26),f=n(24),v=n(4714),g=n.n(v);a.defaultProps={kind:f.b.DARK,size:f.e.LARGE},t.a=a},function(e,t){e.exports={icon:"PrePlayToggleMetadataItemSavedButton-icon-2zORz",iconSaved:"PrePlayToggleMetadataItemSavedButton-iconSaved-17WmV PrePlayToggleMetadataItemSavedButton-icon-2zORz",
iconUnsaved:"PrePlayToggleMetadataItemSavedButton-iconUnsaved-3itVt PrePlayToggleMetadataItemSavedButton-icon-2zORz"}},function(e,t,n){"use strict";function i(e){var t=e.leafCount;return r()(c.a,{},void 0,r()(l.a,{leafCount:t}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(704)),c=n(118);t.a=i},function(e,t){e.exports={prePlayPageContentContainer:"PrePlayPageContent-prePlayPageContentContainer-1ckaM PageContent-pageContent-16mK6",
prePlayPageContent:"PrePlayPageContent-prePlayPageContent-1fFCH"}},function(e,t,n){"use strict";function i(){return Object(s.createSelector)(function(e,t){return t.metricsContext},function(e){return e.ui.prePlayPage},f.a,h.a,Object(p.a)(),Object(u.a)(),Object(d.a)(),S.a,I.a,Object(M.a)(),function(e,t,n,i,a,r,o,s,l,u){var d=r.librarySectionID,p=new RegExp("/"+d+"$"),h=c.a.find(a,function(e){return!!e.key&&p.test(e.key)
}),f=r.grandparentKey,v=r.parentKey,g=r.key,y=r.grandparentTitle,b=r.parentTitle,I=r.title,S=r.attribution,M=r.skipParent,P=r.subtype,O=Object(C.a)(l,m.i,u,P,i),T=Object(D.a)(u,P,m.i,i),E={};return e&&(E.context=e),{siblingsMetadataListEntityID:t.siblingList,server:n,provider:i,directories:a,selectedDirectory:h||c.a.first(a),metadataKey:g,siblingKey:o,grandparentTitle:y,parentTitle:b,title:I,attribution:S,skipParent:M,grandparentRoute:Object(j.a)(n,i,f,E),parentRoute:Object(j.a)(n,i,v,E),
showArtworkButton:!!r.art,isArtworkButtonSelected:s,listType:u,listSubtype:P,listStyle:O,allListStyles:T}})}function a(e,t){return{onArtworkToggle:function(t){e(Object(y.k)({showPrePlayArtwork:t}))}}}function r(e){return{siblingKey:e.ui.prePlayPage.siblingKey}}function o(e,t){e(Object(b.e)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,siblingKey:t.siblingKey}))}var s=n(4),l=(n.n(s),
n(10)),c=n.n(l),u=n(21),d=n(1772),p=n(409),h=n(39),f=n(53),v=n(58),g=n(133),m=n(33),y=n(71),b=n(291),I=n(492),S=n(762),M=n(763),D=n(410),C=n(493),j=n(137),P=n(4718),O=Object(g.a)(P.a,r,o),T=Object(v.a)(i,a)(O);t.a=T},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(128)),f=n(219),v=n(131),g=n(747),m=n(151),y=n(117),b=n(47),I=n(28),S=n(3),M=n(26),D=n(33),C=n(141),j=n(165),P=n(1063),O=n(4719),T=n(585),E=n(24),w=n(68),A=(n(99),n(140),n(1773)),x=n(1774),N=n(1775),L=n(4733),k=n.n(L),R=a()(M.a,{name:"plex-icon-toolbar-artwork-560"}),z=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onDirectoriesMenuButtonPress=function(e){a.setState({isDirectoriesMenuOpen:!a.state.isDirectoriesMenuOpen})},a.onDirectoriesMenuClose=function(){
a.setState({isDirectoriesMenuOpen:!1})},a.onSiblingsMenuButtonPress=function(e){a.setState({isSiblingsMenuOpen:!a.state.isSiblingsMenuOpen})},a.onSiblingsMenuClose=function(){a.setState({isSiblingsMenuOpen:!1})},a.onToggleArtworkPress=function(e){a.props.onArtworkToggle(!a.props.isArtworkButtonSelected)},a.state={isDirectoriesMenuOpen:!1,isSiblingsMenuOpen:!1},a._directoriesMenuButtonID=Object(b.a)(),a._siblingsMenuButtonID=Object(b.a)(),a}return u()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.siblingsMetadataListEntityID,o=e.server,s=e.provider,l=e.directories,c=e.selectedDirectory,u=e.metadataKey,d=e.grandparentTitle,p=e.parentTitle,b=e.title,I=e.attribution,M=e.skipParent,L=e.grandparentRoute,z=e.parentRoute,U=e.showArtworkButton,B=e.isArtworkButtonSelected,F=e.listType,_=e.listSubtype,V=e.listStyle,H=e.allListStyles,Q=this.state,Y=Q.isDirectoriesMenuOpen,G=Q.isSiblingsMenuOpen;if(!u)return null
;var W=!o.isCloud&&!s.isLibraryProvider&&l.length>1,K=!!r,Z=F&&w.g(H,V);return a()(f.a,{className:K||U&&!Z?k.a.altPageHeader:k.a.pageHeader},void 0,a()(m.a,{},void 0,!!I&&a()(O.a,{attribution:I}),W&&a()(v.a,{id:this._directoriesMenuButtonID,title:c.title,hasMenu:!0,isMenuOpen:Y,onPress:this.onDirectoriesMenuButtonPress}),W&&a()(T.a,{target:this._directoriesMenuButtonID,isOpen:Y,server:o,provider:s,directories:l,selectedDirectory:c,onMenuClose:this.onDirectoriesMenuClose}),!!d&&a()(v.a,{title:d,
to:L,hasMenu:!1,isDisabled:!L}),!M&&!!p&&a()(v.a,{title:p,to:z,hasMenu:!1,isDisabled:!z}),!!b&&a()(v.a,{id:this._siblingsMenuButtonID,title:b,hasMenu:K,isMenuOpen:G,isDisabled:!K,onPress:this.onSiblingsMenuButtonPress}),K&&a()(C.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,component:x.a,initialSize:1/0,target:this._siblingsMenuButtonID,isOpen:G,selectedKey:u,onMenuClose:this.onSiblingsMenuClose})),a()(y.a,{},void 0,a()(N.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i}),U&&a()(g.a,{className:k.a.divider}),U&&a()(h.a,{tooltip:B?Object(S.default)("Hide Artwork"):Object(S.default)("Show Artwork"),"data-qa-id":"toolbarToggleArtwork",isSelected:B,hideOnPress:!1,tooltipAttachment:Z||K?E.f.BOTTOM_CENTER:E.f.BOTTOM_RIGHT,onPress:this.onToggleArtworkPress},void 0,R),Z&&a()(P.a,{selectedListStyle:V,allListStyles:H}),Z&&a()(j.a,{listType:F,listSubtype:_,listContext:D.i,selectedListStyle:V,allListStyles:H}),K&&a()(g.a,{
className:Z?k.a.listStylesArrowsDivider:k.a.divider}),K&&a()(A.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:r})))},t}(p.Component);t.a=z},function(e,t,n){"use strict";function i(e){var t=p[e.attribution];return t?o()("span",{className:d.a.attribution},void 0,t):null}var a,r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(920)),u=n(4720),d=n.n(u),p=(a={},a[c.a]="TIDAL",a);t.a=i},function(e,t){e.exports={attribution:"PageHeaderAttribution-attribution-315k4"}
},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.previousMetadataItemEntityID,a=e.nextMetadataItemEntityID;return r()("div",{},void 0,r()(c.a,{serverEntityID:t,"data-qa-id":"toolbarPrevious",providerEntityID:n,metadataItemEntityID:i},void 0,u),r()(c.a,{serverEntityID:t,"data-qa-id":"toolbarNext",providerEntityID:n,metadataItemEntityID:a},void 0,d))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(26)),c=n(4722),u=r()(l.a,{
name:"plex-icon-page-prev-560"}),d=r()(l.a,{name:"plex-icon-page-next-560"});t.a=i},function(e,t,n){"use strict";function i(){return Object(v.createSelector)(function(e,t){return t.metricsContext},b.a,y.a,Object(m.a)(),function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};return e&&(a.context=e),{to:Object(M.a)(t,n,i.key,a),isDisabled:!i.key}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(4),g=(n.n(v),
n(128)),m=n(21),y=n(39),b=n(53),I=n(58),S=n(291),M=n(137),D={dispatchPreFetch:S.g},C=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this._preFetch()},t.prototype.componentDidUpdate=function(e){this.props.metadataItemEntityID!==e.metadataItemEntityID&&this._preFetch()},t.prototype._preFetch=function(){var e=this.props,t=e.metadataItemEntityID,n=e.isDisabled,i=e.dispatchPreFetch;n||i({metadataItemEntityID:t})},
t.prototype.render=function(){var e=this.props,t=(e.serverEntityID,e.providerEntityID,e.metadataItemEntityID,e.dispatchPreFetch,e.metricsPage,e.metricsContext,r()(e,["serverEntityID","providerEntityID","metadataItemEntityID","dispatchPreFetch","metricsPage","metricsContext"]));return f.a.createElement(g.a,t)},t}(h.Component);t.a=Object(I.a)(i,D)(C)},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.selectedKey},function(e,t){return t.metricsContext
},s.a,o.a,Object(r.a)(),function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r={};return t&&(r.context=t),{title:a.title,to:Object(c.a)(n,i,a.key,r),isSelected:e===a.key}})}var a=n(4),r=(n.n(a),n(21)),o=n(39),s=n(53),l=n(58),c=n(137),u=n(4724);t.a=Object(l.a)(i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.title,n=e.to,i=e.isSelected;return r()(l.a,{to:n,isSelected:i},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(103));t.a=i
},function(e,t){e.exports={emptyContainer:"PrePlayPageHeaderSiblingsMenu-emptyContainer-zMrx0"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(47)),f=n(19),v=n(3),g=n(27),m=n(971),y=n(1481),b=n(1482),I=n(398),S=n(289),M=n(1040),D=n(1041),C=n(1042),j=n(4727),P=n(744),O=n(1043),T=n(4728),E=n(4729),w=n(4730),A=n(4732),x=n(1044),N=n(1045),L=n(1047),k=["showPlay","showPlayTrailer","showPlayRadio","showShuffle","showAddToAlbum","showAddToPlaylist","showTogglePlayed","showEdit","showSettings","showSync"],R=["showPlayVersion","showPlayAll","showQueue","showPlayPlexMix","showPlayMusicVideo","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showOptimize","showDownload","showDelete","showDeleteVersion","showGetInfo"],z=function(e){
function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onPlayShortcut=function(){var e=a.props,t=e.showPlay,n=e.showPlayOverflow,i=e.onPlayPress;(t||n)&&i()},a.onTogglePlayedShortcut=function(){var e=a.props,t=e.showMarkPlayed,n=e.showMarkUnplayed;t?a.setState({isConfirmMarkPlayedModalOpen:!0}):n&&a.setState({isConfirmMarkUnplayedModalOpen:!0})},a.onEditShortcut=function(){var e=a.props,t=e.showEdit,n=e.showEditOverflow,i=e.onEditPress;(t||n)&&i()},a.onGetInfoShortcut=function(){
var e=a.props,t=e.showGetInfo,n=e.onGetInfoPress;t&&n()},a.onSettingsPress=function(e){a.setState({isSettingsModalOpen:!0})},a.onSettingsModalClose=function(){a.setState({isSettingsModalOpen:!1})},a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.onMarkPlayedPress=function(e){a.setState({isConfirmMarkPlayedModalOpen:!0})},a.onMarkPlayedConfirm=function(){a.setState({isConfirmMarkPlayedModalOpen:!1}),
a.props.onMarkPlayedConfirm()},a.onMarkPlayedCancel=function(){a.setState({isConfirmMarkPlayedModalOpen:!1})},a.onMarkUnplayedPress=function(e){a.setState({isConfirmMarkUnplayedModalOpen:!0})},a.onMarkUnplayedConfirm=function(){a.setState({isConfirmMarkUnplayedModalOpen:!1}),a.props.onMarkUnplayedConfirm()},a.onMarkUnplayedCancel=function(){a.setState({isConfirmMarkUnplayedModalOpen:!1})},a.onAddToPlaylistPress=function(){a.setState({isAddToPlaylistModalOpen:!0})},
a.onAddToPlaylistClose=function(){a.setState({isAddToPlaylistModalOpen:!1})},a.onActionsPress=function(e){a.setState({isActionsMenuOpen:!a.state.isActionsMenuOpen})},a.onActionsMenuClose=function(){a.setState({isActionsMenuOpen:!1})},a.state={isActionsMenuOpen:!1,isConfirmMarkPlayedModalOpen:!1,isConfirmMarkUnplayedModalOpen:!1,isSubscribeModalOpen:!1,isSettingsModalOpen:!1,isAddToPlaylistModalOpen:!1},a._moreButtonID=Object(h.a)(),a}return u()(t,e),t.prototype.componentDidMount=function(){
f.a.on("shortcut:playSelected",this.onPlayShortcut),f.a.on("shortcut:toggleWatched",this.onTogglePlayedShortcut),f.a.on("shortcut:edit",this.onEditShortcut),f.a.on("shortcut:info",this.onGetInfoShortcut)},t.prototype.componentWillUnmount=function(){f.a.off("shortcut:playSelected",this.onPlayShortcut),f.a.off("shortcut:toggleWatched",this.onTogglePlayedShortcut),f.a.off("shortcut:edit",this.onEditShortcut),f.a.off("shortcut:info",this.onGetInfoShortcut)},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,o=e.type,s=e.subtype,l=e.title,c=e.viewedLeafCount,u=e.unviewedLeafCount,d=e.isLiveTV,p=e.showRecord,h=e.showPlay,f=e.showPlayOverflow,L=e.showPlayTrailer,k=e.showPlayTrailerOverflow,R=e.showPlayRadio,z=e.showPlayRadioOverflow,U=e.showShuffle,B=e.showShuffleOverflow,F=e.showAddToAlbum,_=e.showAddToAlbumOverflow,V=e.showAddToPlaylist,H=e.showAddToPlaylistOverflow,Q=e.showAddToSaved,Y=e.showTogglePlayed,G=e.showTogglePlayedOverflow,W=e.showMarkPlayed,K=e.showMarkUnplayed,Z=e.showEdit,q=e.showEditOverflow,J=e.showSettings,X=e.showSettingsOverflow,$=e.showSync,ee=e.showSyncOverflow,te=e.showOverflow,ne=e.onPlayPress,ie=e.onPlayLiveTVPress,ae=e.onPlayTrailerPress,re=e.onPlayRadioPress,oe=e.onShufflePress,se=e.onEditPress,le=e.onSyncPress,ce=this.state,ue=ce.isActionsMenuOpen,de=ce.isConfirmMarkPlayedModalOpen,pe=ce.isConfirmMarkUnplayedModalOpen,he=ce.isSubscribeModalOpen,fe=ce.isSettingsModalOpen,ve=ce.isAddToPlaylistModalOpen
;return a()("div",{className:t},void 0,p&&a()(w.a,{title:l,onPress:this.onRecordPress}),h&&a()(O.a,{playLabel:Object(v.default)("Play"),onPress:d?ie:ne}),L&&a()(E.a,{onPress:ae}),U&&a()(x.a,{onPress:oe}),R&&a()(T.a,{onPress:re}),F&&a()(M.a,{onPress:this.onAddToPlaylistPress}),V&&a()(D.a,{onPress:this.onAddToPlaylistPress}),Y&&W&&a()(j.a,{type:o,subtype:s,onPress:this.onMarkPlayedPress}),Y&&K&&!W&&a()(j.a,{type:o,subtype:s,markUnplayed:!0,onPress:this.onMarkUnplayedPress}),Z&&a()(C.a,{onPress:se
}),J&&a()(A.a,{onPress:this.onSettingsPress}),$&&a()(N.a,{onPress:le}),te&&a()(P.a,{id:this._moreButtonID,icon:"plex-icon-toolbar-more-560",label:Object(v.default)("More..."),isMenuOpen:ue,onPress:this.onActionsPress}),a()(m.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,allowRedirectOnDelete:!0,showPlay:f,showPlayTrailer:k,showPlayRadio:z,showQueuePlexMix:!1,showShuffle:B,showAddToAlbum:_,showAddToPlaylist:H,showAddToSaved:Q&&o!==g.k,showEdit:q,showSettings:X,showMarkPlayed:G&&W,
showMarkUnplayed:G&&K,showSync:ee,target:this._moreButtonID,isOpen:ue,onMenuClose:this.onActionsMenuClose}),W&&a()(y.a,{isOpen:de,type:o,subtype:s,title:l,leafCount:u,onConfirm:this.onMarkPlayedConfirm,onCancel:this.onMarkPlayedCancel}),(F||V)&&a()(I.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,isOpen:ve,onModalClose:this.onAddToPlaylistClose}),K&&a()(y.a,{isOpen:pe,type:o,subtype:s,title:l,leafCount:c,markUnplayed:!0,onConfirm:this.onMarkUnplayedConfirm,
onCancel:this.onMarkUnplayedCancel}),a()(S.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,isOpen:he,subscriptionType:o,onModalClose:this.onSubscribeModalClose}),a()(b.a,{serverEntityID:n,providerEntityID:i,metadataItemEntityID:r,isOpen:fe,onModalClose:this.onSettingsModalClose}))},t}(p.Component);t.a=Object(L.a)(z,k,R)},function(e,t,n){"use strict";function i(e){var t=e.markUnplayed,n=e.onPress;return r()(l.a,{"data-qa-id":"toolbarToggleWatched",
tooltip:t?Object(c.default)("Mark as Unplayed"):Object(c.default)("Mark as Played"),onPress:n},void 0,d)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(128)),c=n(3),u=n(26),d=r()(u.a,{name:"plex-icon-toolbar-played-toggle-560"});i.defaultProps={markUnplayed:!1},t.a=i},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({tooltip:Object(d.default)("Play Radio")},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{
name:"plex-icon-toolbar-play-radio-560"});t.a=i},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({tooltip:Object(d.default)("Play Trailer")},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{name:"plex-icon-toolbar-play-trailer-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=(e.title,c()(e,["title"]));return p.a.createElement(h.a,s()({tooltip:Object(f.default)("Record"),className:m.a.toolbarRecordButton,
"data-qa-id":"toolbarRecord"},t),y)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(128),f=n(3),v=n(1491),g=n(4731),m=n.n(g),y=r()(v.a,{});t.a=i},function(e,t){e.exports={toolbarRecordButton:"ToolbarRecordButton-toolbarRecordButton-2R8pz ToolbarButton-toolbarButton-2i2nn PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA"}},function(e,t,n){"use strict";function i(e){return c.a.createElement(u.a,s()({tooltip:Object(d.default)("Settings"),
"data-qa-id":"toolbarSettings"},e),h)}var a=n(2),r=n.n(a),o=n(6),s=n.n(o),l=n(0),c=n.n(l),u=n(128),d=n(3),p=n(26),h=r()(p.a,{name:"plex-icon-settings-560"});t.a=i},function(e,t){e.exports={pageHeader:"PrePlayPageHeader-pageHeader-2o14F PageHeader-pageHeader-14-NY",altPageHeader:"PrePlayPageHeader-altPageHeader-3bZbS PrePlayPageHeader-pageHeader-2o14F PageHeader-pageHeader-14-NY",divider:"PrePlayPageHeader-divider-WQRk8 PageHeaderDivider-pageHeaderDivider-1BKT-",
listStylesArrowsDivider:"PrePlayPageHeader-listStylesArrowsDivider-1OrTC PageHeaderDivider-pageHeaderDivider-1BKT-"}},function(e,t,n){"use strict";function i(e){var t=e.isAlbum,n=e.onRemovePress;return r()(l.a,{tooltip:t?Object(c.default)("Remove from Album"):Object(c.default)("Remove from Playlist"),tooltipAttachment:d.f.BOTTOM_RIGHT,onPress:n},void 0,p)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(128)),c=n(3),u=n(26),d=n(24),p=r()(u.a,{
name:"plex-icon-toolbar-remove-from-playlist-560"});t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(90),l=n(38),c=n(45),u=n(119),d=n(48),p=n(334),h=n(1739),f=n(164),v=d.a.extend({component:function(e){var t=e.selectedProviderID,n=e.params,i=s.a,r=Object(l.a)(c.m,i),d=Object(l.a)(c.k,t,r);return a()(u.a,{metricsContext:n.context},void 0,a()(o.a,{},void 0,a()(f.a,{selectedProviderEntityID:d}),a()(p.a,{serverEntityID:r,providerEntityID:d},void 0,a()(h.a,{
machineIdentifier:i,selectedProviderID:t,serverEntityID:r,providerEntityID:d,metadataKey:n.key}))))}});t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(90),l=n(761),c=n(74),u=n(38),d=n(45),p=n(119),h=n(48),f=n(586),v=n(334),g=n(164),m=h.a.extend({component:function(e){
var t=e.selectedProviderID,n=e.params||{},i=n.key,r=n.typeKey,h=n.type,m=n.filters,y=n.filterLabel,b=n.sort,I=n.folderKey,S=n.folderTitle,M=n.parentFolderKey,D=n.parentFolderTitle,C=n.limit,j=n.save,P=n.customFilter,O=s.a,T=Object(u.a)(d.m,O),E=Object(u.a)(d.k,t,T);return a()(p.a,{metricsContext:n.context},void 0,a()(o.a,{},void 0,a()(g.a,{selectedProviderEntityID:E}),a()(v.a,{serverEntityID:T,providerEntityID:E},void 0,a()(f.a,{machineIdentifier:O,serverEntityID:T,providerEntityID:E,
directoryKey:i,typeKey:r,activeType:h,activeFilters:Object(l.a)(m),activeFilterLabel:y,activeSort:b,activeLimit:c.a.parseInteger(C),customFilter:c.a.parseBoolean(P),folderKey:I,folderTitle:S,parentFolderKey:M,parentFolderTitle:D,isTimeline:!1,shouldSaveRoute:c.a.parseBoolean(j)}))))}});t.a=m},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(74),l=n(38),c=n(45),u=n(119),d=n(48),p=n(293),h=n(586),f=n(294),v=n(4738),g=n(164),m=d.a.extend({component:function(e){
var t=e.selectedServerID,n=e.selectedProviderID,i=e.params||{},r=i.type,d=i.sort,m=i.save,y=!1!==e.isPlaylistRoute,b=i.key;b||(y=!0,b="/playlists");var I=Object(l.a)(c.m,t),S=Object(l.a)(c.k,n,I);return a()(u.a,{metricsContext:i.context},void 0,a()(o.a,{},void 0,a()(g.a,{isPlaylistRoute:y}),a()(p.a,{machineIdentifier:t},void 0,a()(f.a,{providerEntityID:S},void 0,a()(h.a,{machineIdentifier:t,serverEntityID:I,providerEntityID:S,directoryKey:b,activeType:r,activeSort:d,
shouldSaveRoute:s.a.parseBoolean(m),component:v.a})))))}});t.a=m},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e){return e.ui.playlistsPage.sorts},function(e,t){return t.activeSort},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.split(":"),i=n[0],a=n[1],r=d.a.findWhere(e,{isDefault:!0})||e[0],o=d.a.findWhere(e,{key:i})||r;return o&&a&&(o.direction=a),o})}function a(){
return Object(c.createSelector)(function(e){return e.ui.playlistsPage},f.a,Object(p.a)(),Object(h.a)(),i(),y.a,function(e,t,n,i,a,r){var o=e.playlists,s=e.libraryDetails;return{providerIdentifier:t.identifier,providerMetricsIdentifier:t.metricsIdentifier,metadataListEntityID:o,libraryKey:"/playlists"===n?null:n,librarySectionID:s&&s.librarySectionID,containerKey:i,selectedSort:a,activeSelectionType:r.activeSelectionType}})}function r(e,t){return{onLibraryChange:function(n,i){
e(Object(m.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))}}}function o(e){var t=e.ui.playlistsPage;return{serverEntityID:t.serverEntityID,libraryKey:t.libraryKey,containerKey:t.containerKey}}function s(e,t){e(g.b({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,libraryKey:t.libraryKey,containerKey:t.containerKey})),e(g.d()),t.libraryKey&&e(g.c())}var l=n(11),c=n(4),u=(n.n(c),
n(10)),d=n.n(u),p=n(226),h=n(4739),f=n(39),v=n(133),g=n(1777),m=n(93),y=n(76),b=n(4750),I=Object(v.a)(b.a,o,s),S=Object(l.connect)(a,r)(I);t.a=S},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(function(e,t){return t.directoryKey},function(e,t){return t.activeType},function(e,t){return t.activeSort},Object(s.a)(),function(e,t,n,i){var a=e.lastIndexOf("/")+1,s=parseInt(e.slice(a),10),u={type:Object(c.r)(c.i).id
},d=Object(l.a)(i.version,o.a.multiplePlaylistTypes),p=i.ownerFeatures&&-1!==i.ownerFeatures.indexOf("photos-v5");return t?u.playlistType=t:!s&&d&&p&&(u.playlistType="audio,video"),n&&(u.sort=n),s&&(u.sectionID=s,u.includeEmpty=0),Object(r.join)("/playlists",u)})}t.a=i;var a=n(4),r=(n.n(a),n(18)),o=n(160),s=n(35),l=n(271),c=n(27)},function(e,t,n){"use strict";var i=n(25),a=n(4741),r=i.a.extend({name:"LibraryDirectoryCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"LibraryDirectoryModel",context:["server"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{key:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(4743),r=i.a.extend({name:"MetadataTypeCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(4744),o=i.a.extend({name:"MetadataFieldTypeModel",context:["server"],idAttribute:"type",rootPropertyName:"FieldType",
syncedAttrs:{type:a.a.string.isRequired},syncedRelations:{operators:{relationClass:r.a,rootPropertyName:"Operator"}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(4745),r=i.a.extend({name:"OperatorCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"OperatorModel",context:["server"],idAttribute:"key",rootPropertyName:"Operator",syncedAttrs:{key:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict"
;var i=n(25),a=n(4747),r=i.a.extend({name:"MetadataTypeCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(4748),o=n(1163),s=n(509),l=i.a.extend({name:"MetadataTypeModel",context:["server"],idAttribute:"key",rootPropertyName:"Type",syncedAttrs:{type:a.a.string,subtype:a.a.string,key:a.a.string,title:a.a.string},syncedRelations:{filters:{relationClass:o.a,rootPropertyName:"Filter"},sorts:{relationClass:s.a,rootPropertyName:"Sort"},fields:{
relationClass:r.a,rootPropertyName:"Field"}}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(4749),r=i.a.extend({name:"FieldCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"FieldModel",context:["server"],idAttribute:"key",rootPropertyName:"Field",syncedAttrs:{key:a.a.string,title:a.a.string,type:a.a.string,subType:a.a.string}});t.a=r},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(57)),f=n(30),v=n(63),g=n(141),m=n(92),y=n(487),b=n(4751),I=n(4753),S=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.providerMetricsIdentifier,o=e.selectedDirectory,s=e.selectedSort,l=e.activeType,c=e.activeSelectionType;return a()(m.a,{metricsPage:f.O,metricsProperties:{identifier:r,type:l},
allowBackgroundLightPreset:!0,scrollDirection:h.NONE},void 0,c?a()(y.a,{serverEntityID:t,providerEntityID:n}):a()(I.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,selectedDirectory:o,selectedSort:s,activeType:l}),a()(g.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,initialSize:50,isPhotoAlbums:o.type===v.c,shouldResetOnUnmount:!0,component:b.a}))},t}(p.Component);t.a=S},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.metadataItemEntityIDs,o=e.containerKey,s=e.columnAdjustment,d=e.totalSize,g=e.populatedRange,b=e.isPopulated,I=e.isPending,S=e.error,M=e.isPhotoAlbums,D=e.onPageRequest;return b&&d?r()(p.a,{className:m.a.pageContent,scrollerClassName:m.a.pageContentScroller,serverEntityID:t,providerEntityID:n,metadataListEntityID:i,items:a,containerKey:o,listType:u.h,listContext:c.b,columnAdjustment:s,keyPropName:"metadataItemEntityID",
itemsOffset:g.start,size:d,onPageRequest:D}):I?y:S?r()(h.a,{},void 0,r()(v.a,{title:M?Object(l.default)("There was an unexpected error loading these albums"):Object(l.default)("There was an unexpected error loading these playlists")})):r()(h.a,{},void 0,r()(f.a,{title:Object(l.default)("Nothing to see here"),description:M?Object(l.default)("There are no photo albums in this library"):Object(l.default)("There are no playlists of this type")}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(3)),c=n(33),u=n(223),d=(n(484),n(31)),p=n(1052),h=n(157),f=n(208),v=n(332),g=n(4752),m=n.n(g),y=r()(h.a,{},void 0,r()(f.a,{},void 0,r()(d.a,{})));t.a=i},function(e,t){e.exports={pageContent:"PlaylistsPageContent-pageContent-1Gnbv PageContent-pageContent-16mK6",pageContentScroller:"PlaylistsPageContent-pageContentScroller-2RUW0"}},function(e,t,n){"use strict";function i(e,t){var n={};return t&&(n.type=t),e.activeSort&&(n.sort=e.activeSort.descKey),n.save=1,{type:t,title:a(t),
route:Object(S.a)(e.server,e.provider,e.libraryKey,t,n)}}function a(e){switch(e){case y.d:return Object(m.default)("Video");case y.a:return Object(m.default)("Music");case y.c:return Object(m.default)("Photo");default:return Object(m.default)("All")}}function r(){return Object(d.createSelector)(function(e,t){return t.selectedDirectory},function(e,t){return t.selectedSort},function(e,t){return t.activeType},function(e){return e.ui.playlistsPage.libraryDetails},function(e){
return e.ui.playlistsPage.sorts},Object(g.a)(),Object(v.a)(),Object(f.a)(),Object(h.a)(),function(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments[5],s=arguments[6],l=arguments[7],c=arguments[8],u=o.ownerFeatures&&-1!==o.ownerFeatures.indexOf("photos-v5"),d=r.map(function(i){var a=i.key,r=i.defaultDirection,l=i.title,u=t.key===a,d=t.direction||r,p=d===C?j:C,h=u?p:d;return{key:a,title:l,isSelected:u,linkDirection:h,route:Object(S.a)(o,s,c,e.type,{type:n,
sort:a+":"+h,save:1})}}),p={totalSize:l.totalSize,playlistSorts:d};if("/playlists"===c){var h={server:o,provider:s,libraryKey:c,selectedSort:t},f=i(h),v=i(h,y.a),g=i(h,y.c),m=i(h,y.d);p.playlistTypes=u?[f,v,m]:[f,v,g,m]}else p.libraryRoute=Object(I.a)(o,s,c,{save:1}),p.isPhotoAlbums=u&&e.type===y.c,p.metadataTypes=a?a.types:[],p.metadataPseudoTypes=Object(b.a)({type:e.type,server:o,provider:s,libraryKey:c,libraryDirectories:a&&a.directories});return p})}
var o=n(6),s=n.n(o),l=n(1),c=n.n(l),u=n(11),d=n(4),p=(n.n(d),n(427)),h=n(226),f=n(132),v=n(54),g=n(35),m=n(3),y=n(63),b=n(754),I=n(150),S=n(965),M=n(4754),D=p.a.directions,C=D.ASCENDING,j=D.DESCENDING,P=Object(u.connect)(r)(M.a);P.propTypes=s()({},P.propTypes,{selectedDirectory:c.a.shape({type:c.a.string.isRequired}).isRequired,selectedSort:c.a.shape({key:c.a.string.isRequired,direction:c.a.string.isRequired}),activeType:c.a.string}),t.a=P},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(219),g=n(242),m=n(131),y=n(151),b=n(117),I=n(47),S=n(3),M=n(165),D=n(494),C=n(4755),j=n(4756),P=a()(b.a,{},void 0,a()(M.a,{})),O=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onTypesMenuButtonPress=function(e){a.setState({isTypesMenuOpen:!a.state.isTypesMenuOpen})},a.onTypesMenuClose=function(){a.setState({isTypesMenuOpen:!1})},
a.onSortsMenuButtonPress=function(e){a.setState({isSortsMenuOpen:!a.state.isSortsMenuOpen})},a.onSortsMenuClose=function(){a.setState({isSortsMenuOpen:!1})},a.state={isTypesMenuOpen:!1,isSortsMenuOpen:!1},a._typesMenuButtonID=Object(I.a)(),a._sortsMenuButtonID=Object(I.a)(),a}return u()(t,e),t.prototype.render=function(){
var e=this.props,t=e.totalSize,n=e.libraryRoute,i=e.playlistTypes,r=e.metadataTypes,o=e.metadataPseudoTypes,s=e.activeType,l=e.playlistSorts,c=e.selectedSort,u=e.isPhotoAlbums,d=this.state,p=d.isTypesMenuOpen,h=d.isSortsMenuOpen,b=u?Object(S.default)("Albums"):Object(S.default)("Playlists"),I=f.a.find(i,function(e){return e.type===s}),M=n||!I?b:I.title;return a()(v.a,{},void 0,a()(y.a,{},void 0,a()(m.a,{id:this._typesMenuButtonID,title:M,hasMenu:!0,isMenuOpen:p,
onPress:this.onTypesMenuButtonPress}),n?a()(D.a,{target:this._typesMenuButtonID,isOpen:p,libraryRoute:n,types:r,pseudoTypes:o,selectedType:{key:"playlists"},activeFilters:[],onMenuClose:this.onTypesMenuClose}):a()(j.a,{target:this._typesMenuButtonID,isOpen:p,activeType:s,types:i,onMenuClose:this.onTypesMenuClose}),!n&&a()(m.a,{title:b}),c&&a()(m.a,{id:this._sortsMenuButtonID,title:c.title,hasMenu:!0,isMenuOpen:h,onPress:this.onSortsMenuButtonPress}),c&&a()(C.a,{target:this._sortsMenuButtonID,
isOpen:h,sorts:l,onMenuClose:this.onSortsMenuClose}),a()(g.a,{},void 0,t)),P)},t}(p.Component);t.a=O},function(e,t,n){"use strict";function i(e){var t=e.sorts,n=s()(e,["sorts"]);return u.a.createElement(d.a,n,t.map(function(e){var t=e.key,n=e.title,i=e.isSelected,a=e.linkDirection,o=e.route,s=a===v;return r()(f.a,{to:o,isSelected:i,selectedIconName:s?"plex-icon-sort-ascending-560":"plex-icon-sort-descending-560",
selectedIconAriaLabel:s?Object(h.default)("Ascending"):Object(h.default)("Descending")},t,n)}))}var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(427),h=n(3),f=n(103),v=p.a.directions.DESCENDING;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.activeType,n=e.types,i=s()(e,["activeType","types"]);return u.a.createElement(d.a,i,n.map(function(e){var n=e.type,i=e.title,a=e.route;return r()(p.a,{to:a,isSelected:t===n||!t&&!n},n||"all",i)}))}
var a=n(2),r=n.n(a),o=n(12),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(56),p=n(103);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(293),p=n(294),h=n(1082),f=n(164),v=a()(f.a,{}),g=u.a.extend({component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params||{},r=i.key,u=i.record,f=i.allEpisodes,g=Object(s.a)(l.m,t),m=Object(s.a)(l.k,n,g);return a()(c.a,{metricsContext:i.context
},void 0,a()(o.a,{},void 0,v,a()(d.a,{machineIdentifier:t},void 0,a()(p.a,{providerEntityID:m},void 0,a()(h.a,{machineIdentifier:t,serverEntityID:g,providerEntityID:m,metadataKey:r,record:1===parseInt(u,10),allEpisodes:1===parseInt(f,10)})))))}});t.a=g},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(90),l=n(38),c=n(45),u=n(119),d=n(48),p=n(334),h=n(1082),f=n(164),v=d.a.extend({component:function(e){
var t=e.selectedProviderID,n=e.params||{},i=n.key,r=n.record,d=n.allEpisodes,v=s.a,g=Object(l.a)(c.m,v),m=Object(l.a)(c.k,t,g);return a()(u.a,{metricsContext:n.context},void 0,a()(o.a,{},void 0,a()(f.a,{selectedProviderEntityID:m}),a()(p.a,{serverEntityID:g,providerEntityID:m},void 0,a()(h.a,{machineIdentifier:v,serverEntityID:g,providerEntityID:m,metadataKey:i,record:1===parseInt(r,10),allEpisodes:1===parseInt(d,10)}))))}});t.a=v},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(761),l=n(74),c=n(38),u=n(45),d=n(119),p=n(48),h=n(293),f=n(586),v=n(294),g=n(164),m=a()(g.a,{}),y=p.a.extend({component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params||{},r=i.key,p=i.typeKey,g=i.type,y=i.filters,b=i.filterLabel,I=i.sort,S=i.folderKey,M=i.folderTitle,D=i.parentFolderKey,C=i.parentFolderTitle,j=i.limit,P=i.save,O=i.customFilter,T=Object(c.a)(u.m,t),E=Object(c.a)(u.k,n,T);return a()(d.a,{
metricsContext:i.context},void 0,a()(o.a,{},void 0,m,a()(h.a,{machineIdentifier:t},void 0,a()(v.a,{providerEntityID:E},void 0,a()(f.a,{machineIdentifier:t,serverEntityID:T,providerEntityID:E,directoryKey:r,typeKey:p,activeType:g,activeFilters:Object(s.a)(y),activeFilterLabel:b,activeSort:I,activeLimit:l.a.parseInteger(j),customFilter:l.a.parseBoolean(O),folderKey:S,folderTitle:M,parentFolderKey:D,parentFolderTitle:C,isTimeline:!1,shouldSaveRoute:l.a.parseBoolean(P)})))))}});t.a=y
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(74),l=n(38),c=n(45),u=n(48),d=n(293),p=n(586),h=n(294),f=n(164),v=a()(f.a,{}),g=u.a.extend({component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params||{},r=i.key,u=i.save,f=Object(l.a)(c.m,t),g=Object(l.a)(c.k,n,f);return a()(o.a,{},void 0,v,a()(d.a,{machineIdentifier:t},void 0,a()(h.a,{providerEntityID:g},void 0,a()(p.a,{machineIdentifier:t,serverEntityID:f,providerEntityID:g,directoryKey:r,
isTimeline:!0,shouldSaveRoute:s.a.parseBoolean(u)}))))}});t.a=g},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(4762),c=s.a.extend({component:function(e){var t=e.selectedProviderID,n=e.params||{};return a()(o.a,{},void 0,a()(l.a,{providerIdentifier:t,metadataKey:n.key}))}});t.a=c},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.providerIdentifier},u.a,d.a,function(e,t,n){
if(n)for(var i=n.providers,a=0,r=i.length;a<r;a++){var o=t[i[a]];if(o.identifier===e)return{serverEntityID:n.entityID,providerEntityID:o.entityID}}return{}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(136)),d=n(1779),p=n(4763),h=Object(l.connect)(i)(p.a);h.propTypes=r()({},h.propTypes,{providerIdentifier:s.a.string.isRequired}),t.a=h},function(e,t,n){"use strict";function i(e){return e.serverEntityID&&e.providerEntityID?l.a.createElement(h.a,e):r()(d.a,{
title:Object(u.default)("No longer available"),description:Object(u.default)("Details can only be mirrored temporarily while casting")},void 0,r()(c.a,{to:"#",kind:p.b.PRIMARY},void 0,Object(u.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(20),u=n(3),d=n(127),p=n(24),h=n(1082);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(90)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(757),p=n(192),h=n(4765),f=n(193),v=a()(f.a,{}),g=u.a.extend({
component:function(e){var t=e.selectedProviderID,n=e.query,i=e.params,r=void 0===i?{}:i,u=Object(s.a)(l.m,o.a),f=Object(s.a)(l.k,t,u);return a()(c.a,{metricsContext:r.context},void 0,a()(p.a,{},void 0,v,a()(d.a,{providerEntityID:f},void 0,a()(h.a,{providerEntityID:f,serverEntityID:u,providerIdentifier:t,query:n}))))}});t.a=g},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e){return e.ui.searchPage},function(e){return{
isSearchPending:!!y.a.findWhere(e.searches,{isSearchPending:!0})}})}var a=n(12),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(10)),y=n.n(m),b=n(93),I=n(414),S=n(4766),M={dispatchChangeQuickSearchSettings:b.changeQuickSearchSettings,dispatchClearSearchPage:I.a},D=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){
this.props.dispatchChangeQuickSearchSettings({serverEntityID:this.props.serverEntityID,providerEntityID:this.props.providerEntityID,providerIdentifier:this.props.providerIdentifier,sectionID:null})},t.prototype.componentDidUpdate=function(e){this.props.providerIdentifier!==e.providerIdentifier&&this.props.dispatchChangeQuickSearchSettings({serverEntityID:this.props.serverEntityID,providerEntityID:this.props.providerEntityID,providerIdentifier:this.props.providerIdentifier,sectionID:null})},
t.prototype.componentWillUnmount=function(){this.props.dispatchClearSearchPage()},t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeQuickSearchSettings,e.dispatchClearSearchPage,r()(e,["dispatchChangeQuickSearchSettings","dispatchClearSearchPage"]));return f.a.createElement(S.a,t)},t}(h.Component);t.a=Object(v.connect)(i,M)(D)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.query,a=e.isSearchPending;return r()(u.a,{metricsPage:c.W,
metricsProperties:{singleServer:!0},allowBackgroundLightPreset:!0,scrollDirection:l.NONE},void 0,r()(p.a,{isSearchPending:a,query:i,allowSearchAllServers:!1}),r()(d.a,{serverEntityID:t,providerEntityID:n,query:i}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(92),d=n(4767),p=n(1780);t.a=i},function(e,t,n){"use strict";function i(){return Object(D.createSelector)(function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},O.a,function(e,t,n){
var i,a=n[t];return i={},i[t]={serverEntityID:e,identifier:a.identifier,title:a.title},i})}function a(){return Object(P.a)(i(),function(e){return e})}function r(){return Object(D.createSelector)(function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},function(e){return e.ui.searchPage.searches},a(),function(e,t,n,i){var a=i[t],r=n[0];if(!n.length)return[];var o=j.a.values(r.hubs).map(function(e){var n=function(e){return{serverEntityID:a.serverEntityID,providerEntityID:t,
searchResultEntityID:e}},i=e.metadataResults.map(n),r=e.tagResults.map(n);return y()({},e,{results:[].concat(i,r)})});return[{serverEntityID:e,providerEntityID:t,title:a.title,isSearchPending:r.isSearchPending,isSearchPopulated:r.isSearchPopulated,hubs:o}]})}function o(){return Object(D.createSelector)(a(),r(),T.a,function(e,t,n){return{availableProviders:e,isSearchCapable:!!g()(e).length,columnAdjustment:n.columnAdjustment,providers:t}})}
var s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(59),g=n.n(v),m=n(6),y=n.n(m),b=n(1),I=(n.n(b),n(0)),S=n.n(I),M=n(11),D=n(4),C=(n.n(D),n(10)),j=n.n(C),P=n(323),O=n(136),T=n(72),E=n(36),w=n(414),A=n(1076),x={dispatchFetchSearchPage:w.b,dispatchClearSearchPage:w.a},N=function(e){function t(){return u()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidMount=function(){var e=this;Object(E.a)(function(){e._clear(),e._populate()})},
t.prototype.componentDidUpdate=function(e){var t=this,n=e.query!==this.props.query,i=e.availableProviders!==this.props.availableProviders;(n||i)&&Object(E.a)(function(){n&&t._clear(),t._populate()})},t.prototype._clear=function(){this.props.dispatchClearSearchPage()},t.prototype._populate=function(){this.props.dispatchFetchSearchPage({availableProviders:this.props.availableProviders,query:this.props.query,limit:30})},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchSearchPage,
e.dispatchClearSearchPage,l()(e,["dispatchFetchSearchPage","dispatchClearSearchPage"]));return S.a.createElement(A.a,t)},t}(I.Component);t.a=Object(M.connect)(o,x)(N)},function(e,t){e.exports={spinner:"SearchPageHeader-spinner-TAE_u",separator:"SearchPageHeader-separator-1L3dS"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(38)),s=n(45),l=n(119),c=n(48),u=n(336),d=n(192),p=n(4770),h=n(193),f=a()(h.a,{}),v=c.a.extend({component:function(e){
var t=e.selectedServerID,n=e.query,i=e.params,r=void 0===i?{}:i,c=Object(o.a)(s.m,t);return a()(l.a,{metricsContext:r.context},void 0,a()(d.a,{},void 0,f,a()(u.a,{serverEntityID:c},void 0,a()(p.a,{serverEntityID:c,query:n}))))}});t.a=v},function(e,t,n){"use strict";function i(){return Object(y.createSelector)(function(e){return e.servers},function(e,t){return t.serverEntityID},M.a,D.a,function(e,t,n,i){var a=i.searchAllServers;return e.reduce(function(e,i){if(i!==t&&!a)return e;var r=n[i]
;return I.a.isMatch(r,{isConnected:!0,isFullServer:!0})?e.concat(i):e},[])})}function a(){return Object(S.a)(i(),function(e){return e})}function r(){return Object(y.createSelector)(function(e){return e.ui.searchPage},a(),D.a,function(e,t,n){return{serverEntityIDs:t,searchAllServers:n.searchAllServers,isSearchPending:!!I.a.findWhere(e.searches,{isSearchPending:!0})}})}var o=n(6),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),
n(10)),I=n.n(b),S=n(161),M=n(173),D=n(72),C=n(36),j=n(71),P=n(414),O=n(4771),T={populateSearchProviders:P.c,clearSearchPage:P.a,saveExperienceSettings:j.k},E=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onSearchAllChange=function(e){Object(C.a)(function(){i.props.saveExperienceSettings({searchAllServers:e})})},a=n,d()(i,a)}return h()(t,e),
t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.serverEntityIDs!==this.props.serverEntityIDs&&this._populate(e)},t.prototype.componentWillUnmount=function(){this.props.clearSearchPage()},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;Object(C.a)(function(){e.populateSearchProviders(e.serverEntityIDs)})},t.prototype.render=function(){
return g.a.createElement(O.a,s()({},this.props,{onSearchAllChange:this.onSearchAllChange}))},t}(v.Component);t.a=Object(m.connect)(r,T)(E)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityIDs,n=e.query,i=e.isSearchPending,a=e.searchAllServers,o=e.onSearchAllChange;return r()(u.a,{metricsPage:c.W,metricsProperties:{singleServer:!a},allowBackgroundLightPreset:!0,scrollDirection:l.NONE},void 0,r()(p.a,{isSearchPending:i,query:n,allowSearchAllServers:!0,searchAllServers:a,
onSearchAllChange:o}),r()(d.a,{serverEntityIDs:t,query:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(92),d=n(1738),p=n(1780);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(41)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(336),p=n(192),h=n(1781),f=n(193),v=a()(f.a,{}),g=u.a.extend({component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.key,r=e.params,u=Object(s.a)(l.m,t),f=Object(s.a)(l.k,n||o.d,u);return a()(c.a,{
metricsContext:r.context},void 0,a()(p.a,{},void 0,v,a()(d.a,{serverEntityID:u},void 0,a()(h.a,{machineIdentifier:t,serverEntityID:u,providerEntityID:f,metadataKey:i}))))}});t.a=g},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(38)),s=n(45),l=n(119),c=n(48),u=n(334),d=n(192),p=n(1781),h=n(193),f=a()(h.a,{}),v=c.a.extend({component:function(e){var t=e.selectedServerID,n=e.selectedProviderID,i=e.params,r=Object(o.a)(s.m,t),c=Object(o.a)(s.k,n,r);return a()(l.a,{
metricsContext:i.context},void 0,a()(d.a,{},void 0,f,a()(u.a,{serverEntityID:r,providerEntityID:c},void 0,a()(p.a,{machineIdentifier:t,selectedProviderID:n,serverEntityID:r,providerEntityID:c,metadataKey:i.key}))))}});t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(41)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(336),p=n(192),h=n(1083),f=n(193),v=a()(f.a,{}),g=u.a.extend({component:function(e){
var t=e.selectedServerID,n=e.selectedProviderID,i=e.params,r=void 0===i?{}:i,u=r.key,f=r.record,g=r.allEpisodes,m=Object(s.a)(l.m,t),y=Object(s.a)(l.k,n||o.d,m);return a()(c.a,{metricsContext:r.context},void 0,a()(p.a,{},void 0,v,a()(d.a,{serverEntityID:m},void 0,a()(h.a,{serverEntityID:m,providerEntityID:y,metadataKey:u,record:1===parseInt(f,10),allEpisodes:1===parseInt(g,10)}))))}});t.a=g},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataListEntityID,o=e.showSpinner,s=e.showError,d=e.activeSelectionType,h=e.columnAdjustment,b=e.record,I=e.allEpisodes,S=e.multiSelectToolbarComponent;return o?y:s?r()(f.a,{title:Object(u.default)("There was an unexpected error loading this item")}):r()(p.a,{metricsPage:c.S,isMetricsDelegated:!0,disableBackgroundPreset:!0,scrollDirection:l.NONE},void 0,d?r()(v.a,{serverEntityID:t,providerEntityID:n,toolbarComponent:S,
allowRedirectOnDelete:!0}):r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:a,columnAdjustment:h,record:b,allEpisodes:I}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(57)),c=n(30),u=n(3),d=n(31),p=n(92),h=n(85),f=n(203),v=n(495),g=n(4776),m=n(4783),y=r()(h.a,{},void 0,r()(d.a,{}));t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(67)),f=n(28),v=n(157),g=n(1014),m=n(46),y=n.n(m),b=n(4777),I=n(4782),S=n.n(I),M=parseInt(y.a.pagePadding,10),D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.onContentMeasure=function(e){var t=e.width,n=e.height,i=e.y;(t||n)&&a.setState({isMeasured:!0,pageWidth:t,pageHeight:n,
pageY:i})},a.state={scrollTop:0,isMeasured:!1,pageWidth:0,pageHeight:0,pageY:0},a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,o=e.columnAdjustment,s=e.record,l=e.allEpisodes,c=this.state,u=c.scrollTop,d=c.isMeasured,p=c.pageWidth,f=c.pageHeight,m=c.pageY;return a()(h.a,{className:S.a.prePlayPageContentContainer,
onMeasure:this.onContentMeasure},void 0,a()(v.a,{className:S.a.prePlayPageContent,scrollTop:u,onScrollPositionChange:this.onScrollPositionChange},void 0,d&&a()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:r,pageWidth:p,pageHeight:f,posterWidth:Object(g.a)(p,o),posterTop:m+M,scrollTop:u,record:s,allEpisodes:l})))},t}(p.Component);t.a=D},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(Object(p.a)(),function(e){
return!(!e||!e.isPopulated)})}function a(){return Object(c.createSelector)(h.a,Object(d.a)(),Object(u.a)(),M.a,S.a,I.a,Object(D.a)(),i(),function(e){return!!e.remotePlayer},function(e,t,n,i,a,r,o,s,l){var c=t.type,u=t.subtype,d=Object(j.b)(c,u,t,v.i),p=d||t.thumb||t.parentThumb||t.grandparentThumb,h=t.grandparentArt||t.parentArt||t.art,f=t.grandparentTheme||t.parentTheme||t.theme,g=i?h||p:p||h,m=Object(C.a)(r,v.i,o,t.subtype,e);return{librarySectionID:t.librarySectionID,
providerIdentifier:e.identifier,providerMetricsIdentifier:e.metricsIdentifier,metadataKey:t.key,descendantKey:n,title:t.title,type:t.type,subtype:t.subtype,year:t.year,minYear:t.minYear,maxYear:t.maxYear,summary:t.summary,saved:t.saved,thumb:d,parentThumb:t.parentThumb,grandparentThumb:t.grandparentThumb,composite:t.composite,art:i?h:void 0,hero:t.hero,theme:a?f:void 0,backgroundImageUrl:g,playlistType:t.playlistType,isListReady:s,onDeckMetadataItemEntityID:t.onDeck,
extrasMetadataListEntityID:t.extras,popularLeavesMetadataListEntityID:t.popularLeaves,listType:o,listStyle:m,isRemotePlayer:l}})}function r(e,t){return{onLibraryChange:function(n,i){e(Object(b.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,providerIdentifier:n,sectionID:i}))},onBackgroundChange:function(n){e(Object(g.a)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,imageUrl:n}))},onThemeMusicChange:function(n){
e(Object(g.b)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,theme:n}))},onMirrorDetails:function(){e(Object(m.g)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID}))}}}function o(e){return{descendantKey:e.ui.prePlayPage.descendantKey}}function s(e,t){e(Object(y.c)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,descendantKey:t.descendantKey}))}
var l=n(11),c=n(4),u=(n.n(c),n(1740)),d=n(21),p=n(132),h=n(39),f=n(133),v=n(33),g=n(391),m=n(325),y=n(291),b=n(93),I=n(492),S=n(1741),M=n(762),D=n(763),C=n(493),j=n(261),P=n(4778),O=Object(f.a)(P.a,o,s),T=Object(l.connect)(a,r)(O);t.a=T},function(e,t,n){"use strict";function i(e,t,n){if(!e)return z.a;var i=b.c.test(n),a=i?_:B,r=F[t],o=a[e];return(r?r[e]||o:o)||U.a}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(7),d=n.n(u),p=n(8),h=n.n(p),f=n(9),v=n.n(f),g=n(1),m=(n.n(g),
n(0)),y=n.n(m),b=n(41),I=n(1742),S=n(1743),M=n(1747),D=n(1749),C=n(1750),j=n(1755),P=n(1756),O=n(1757),T=n(1758),E=n(1759),w=n(1760),A=n(1761),x=n(1764),N=n(1765),L=n(1766),k=n(1770),R=n(1771),z=n(4779),U=n(4781),B={movie:E.a,show:k.a,season:x.a,episode:j.a,artist:M.a,album:S.a,photoalbum:w.a,clip:E.a,playlist:A.a,collection:D.a},F={podcast:{show:L.a,track:P.a},webshow:{show:R.a,episode:O.a}},_={movie:T.a,show:N.a,episode:C.a},V=function(e){function t(){return d()(this,t),
h()(this,e.apply(this,arguments))}return v()(t,e),t.prototype.componentDidMount=function(){this.props.onLibraryChange(this.props.providerIdentifier,this.props.librarySectionID),this.props.onBackgroundChange(this.props.backgroundImageUrl),this.props.onThemeMusicChange(this.props.theme),this.props.isRemotePlayer&&this.props.onMirrorDetails()},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.backgroundImageUrl,r=t.theme,o=t.isRemotePlayer,s=t.onLibraryChange,l=t.onBackgroundChange,c=t.onThemeMusicChange,u=t.onMirrorDetails;n!==e.librarySectionID&&s(i,n),e.backgroundImageUrl!==a&&l(a),e.theme!==r&&c(r),!e.isRemotePlayer&&o&&u()},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.providerIdentifier,n=e.providerMetricsIdentifier,a=e.type,o=e.subtype,l=e.art,u=e.listStyle,d=(e.onBackgroundChange,c()(e,["providerIdentifier","providerMetricsIdentifier","type","subtype","art","listStyle","onBackgroundChange"])),p=i(a,o,t);return s()(I.a,{identifier:n,type:a,style:u,showArtwork:!!l},void 0,y.a.createElement(p,r()({type:a,subtype:o,art:l,listStyle:u},d)))},t}(m.Component);t.a=V},function(e,t,n){"use strict";function i(){return r()(c.a,{
title:Object(l.default)("Nothing is here"),description:Object(l.default)("This item may have been deleted recently")},void 0,r()(s.a,{to:"#",kind:u.b.PRIMARY},void 0,Object(l.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(20)),l=n(3),c=n(1782),u=n(24);t.a=i},function(e,t){e.exports={icon:"InnerErrorPage-icon-3G9jv ErrorPage-icon-ZJ38x EmptyPage-icon-31D3Z"}},function(e,t,n){"use strict";function i(){return r()(c.a,{title:Object(l.default)("You must be lost"),
description:Object(l.default)("This item does not have its own page")},void 0,r()(s.a,{to:"#",kind:u.b.PRIMARY},void 0,Object(l.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(0),s=(n.n(o),n(20)),l=n(3),c=n(1782),u=n(24);t.a=i},function(e,t){e.exports={prePlayPageContentContainer:"PrePlayPageContent-prePlayPageContentContainer-3Xb-n PageContent-pageContent-16mK6",prePlayPageContent:"PrePlayPageContent-prePlayPageContent-2WcFU"}},function(e,t,n){"use strict";function i(){
return Object(s.createSelector)(function(e,t){return t.metricsContext},function(e){return e.ui.prePlayPage},d.a,u.a,Object(m.a)(),Object(l.a)(),Object(c.a)(),b.a,y.a,Object(I.a)(),function(e,t,n,i,a,r,o,s,l,c){var u=r.grandparentKey,d=r.parentKey,p=r.key,h=r.grandparentTitle,v=r.parentTitle,g=r.title,m=r.skipParent,y=r.subtype,b=Object(M.a)(l,f.i,c,y,i),I=Object(S.a)(c,y,f.i,i),C={};return e&&(C.context=e),{siblingsMetadataListEntityID:t.siblingList,sourceDirectory:a,metadataKey:p,siblingKey:o,
grandparentTitle:h,parentTitle:v,title:g,skipParent:m,grandparentRoute:Object(D.a)(n,i,u,C),parentRoute:Object(D.a)(n,i,d,C),showArtworkButton:!!r.art,isArtworkButtonSelected:s,listType:c,listSubtype:y,listStyle:b,allListStyles:I}})}function a(e,t){return{onArtworkToggle:function(t){e(Object(v.k)({showPrePlayArtwork:t}))}}}function r(e){return{siblingKey:e.ui.prePlayPage.siblingKey}}function o(e,t){e(Object(g.e)({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,
siblingKey:t.siblingKey}))}var s=n(4),l=(n.n(s),n(21)),c=n(1772),u=n(39),d=n(53),p=n(58),h=n(133),f=n(33),v=n(71),g=n(291),m=n(4784),y=n(492),b=n(762),I=n(763),S=n(410),M=n(493),D=n(137),C=n(4785),j=Object(h.a)(C.a,r,o),P=Object(p.a)(i,a)(j);t.a=P},function(e,t,n){"use strict";function i(){return Object(a.createSelector)(o.a,Object(r.a)(),function(e,t){var n=t.librarySectionKey,i=t.librarySectionID,a=e.features.content;if(a&&(n||i))return a.directories.find(function(e){
return e.id?e.id===i:!!e.key&&e.key===n})})}t.a=i;var a=n(4),r=(n.n(a),n(21)),o=n(39)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(128)),f=n(131),v=n(117),g=n(47),m=n(28),y=n(3),b=n(26),I=n(33),S=n(244),M=n(590),D=n(337),C=n(141),j=n(165),P=n(1072),O=n(1773),T=n(1774),E=n(1775),w=n(24),A=n(68),x=(n(105),n(4786)),N=n.n(x),L=a()(b.a,{name:"plex-icon-toolbar-artwork-560"}),k=function(e){function t(n,i){
o()(this,t);var a=l()(this,e.call(this,n,i));return a.onSiblingsMenuButtonPress=function(e){a.setState({isSiblingsMenuOpen:!a.state.isSiblingsMenuOpen})},a.onSiblingsMenuClose=function(){a.setState({isSiblingsMenuOpen:!1})},a.onToggleArtworkPress=function(e){a.props.onArtworkToggle(!a.props.isArtworkButtonSelected)},a.state={isSiblingsMenuOpen:!1},a._siblingsMenuButtonID=Object(g.a)(),a}return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(m.a)(this,e,t)},
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.siblingsMetadataListEntityID,o=e.sourceDirectory,s=e.metadataKey,l=e.grandparentTitle,c=e.parentTitle,u=e.title,d=e.skipParent,p=e.grandparentRoute,g=e.parentRoute,m=e.showArtworkButton,b=e.isArtworkButtonSelected,x=e.listType,k=e.listSubtype,R=e.listStyle,z=e.allListStyles,U=this.state.isSiblingsMenuOpen;if(!s)return null;var B=!!r,F=x&&A.g(z,R);return a()(S.a,{
className:B||m&&!F?N.a.altPageHeader:N.a.pageHeader},void 0,a()(D.a,{serverEntityID:t,providerEntityID:n,sourceDirectory:o},void 0,!!l&&a()(f.a,{title:l,to:p,hasMenu:!1,isDisabled:!p}),!d&&!!c&&a()(f.a,{title:c,to:g,hasMenu:!1,isDisabled:!g}),!!u&&a()(f.a,{id:this._siblingsMenuButtonID,title:u,hasMenu:B,isMenuOpen:U,isDisabled:!B,onPress:this.onSiblingsMenuButtonPress}),B&&a()(C.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,component:T.a,initialSize:1/0,
target:this._siblingsMenuButtonID,isOpen:U,selectedKey:s,onMenuClose:this.onSiblingsMenuClose})),a()(v.a,{},void 0,a()(E.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),m&&a()(M.a,{className:N.a.divider}),m&&a()(h.a,{tooltip:b?Object(y.default)("Hide Artwork"):Object(y.default)("Show Artwork"),"data-qa-id":"toolbarToggleArtwork",isSelected:b,hideOnPress:!1,tooltipAttachment:F||B?w.f.BOTTOM_CENTER:w.f.BOTTOM_RIGHT,onPress:this.onToggleArtworkPress},void 0,L),F&&a()(P.a,{
selectedListStyle:R,allListStyles:z}),F&&a()(j.a,{listType:x,listSubtype:k,listContext:I.i,selectedListStyle:R,allListStyles:z}),B&&a()(M.a,{className:F?N.a.listStylesArrowsDivider:N.a.divider}),B&&a()(O.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataListEntityID:r})))},t}(p.Component);t.a=k},function(e,t){e.exports={pageHeader:"PrePlayPageHeader-pageHeader-1sIu- TypeFirstPageHeader-pageHeader-3yLq-",
altPageHeader:"PrePlayPageHeader-altPageHeader-j0lNg PrePlayPageHeader-pageHeader-1sIu- TypeFirstPageHeader-pageHeader-3yLq-",divider:"PrePlayPageHeader-divider-3qHT9 TypeFirstPageHeaderDivider-pageHeaderDivider-3oGvs",listStylesArrowsDivider:"PrePlayPageHeader-listStylesArrowsDivider-2P7rO TypeFirstPageHeaderDivider-pageHeaderDivider-3oGvs"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),
n(90)),s=n(38),l=n(45),c=n(119),u=n(48),d=n(757),p=n(192),h=n(1083),f=n(193),v=a()(f.a,{}),g=u.a.extend({component:function(e){var t=e.selectedProviderID,n=e.params,i=void 0===n?{}:n,r=i.key,u=i.record,f=i.allEpisodes,g=Object(s.a)(l.m,o.a),m=Object(s.a)(l.k,t,g);return a()(c.a,{metricsContext:i.context},void 0,a()(p.a,{},void 0,v,a()(d.a,{providerEntityID:m},void 0,a()(h.a,{serverEntityID:g,providerEntityID:m,metadataKey:r,record:1===parseInt(u,10),allEpisodes:1===parseInt(f,10)}))))}});t.a=g
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(48)),s=n(192),l=n(4789),c=n(193),u=a()(c.a,{}),d=o.a.extend({component:function(e){var t=e.selectedProviderID,n=e.params,i=void 0===n?{}:n;return a()(s.a,{},void 0,u,a()(l.a,{providerIdentifier:t,metadataKey:i.key}))}});t.a=d},function(e,t,n){"use strict";function i(){return Object(c.createSelector)(function(e,t){return t.providerIdentifier},u.a,d.a,function(e,t,n){if(n)for(var i=n.providers,a=0,r=i.length;a<r;a++){
var o=t[i[a]];if(o.identifier===e)return{serverEntityID:n.entityID,providerEntityID:o.entityID}}return{}})}var a=n(6),r=n.n(a),o=n(1),s=n.n(o),l=n(11),c=n(4),u=(n.n(c),n(136)),d=n(1779),p=n(4790),h=Object(l.connect)(i)(p.a);h.propTypes=r()({},h.propTypes,{providerIdentifier:s.a.string.isRequired}),t.a=h},function(e,t,n){"use strict";function i(e){return e.serverEntityID&&e.providerEntityID?l.a.createElement(h.a,e):r()(d.a,{title:Object(u.default)("No longer available"),
description:Object(u.default)("Details can only be mirrored temporarily while casting")},void 0,r()(c.a,{to:"#",kind:p.b.PRIMARY},void 0,Object(u.default)("Go Home")))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=n.n(s),c=n(20),u=n(3),d=n(127),p=n(24),h=n(1083);t.a=i},function(e,t,n){"use strict";var i=n(306),a=n(4792),r=i.a.extend({controller:new a.a,appRoutes:{"!(/server/:serverID)/schedule":"schedule"}});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(18),r=n(307),o=n(4793),s=r.a.extend({
schedule:function(e,t){this.populateView().done(function(){i.a.trigger("show:view",new o.a({selectedServerID:e,params:a.parseParams(t)}),{clearActiveNavigationType:!1})})}});t.a=s},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(293),c=n(294),u=n(4794),d=n(164),p=a()(d.a,{}),h=s.a.extend({component:function(e){var t=e.selectedServerID,n=e.params||{};return a()(o.a,{},void 0,p,a()(l.a,{machineIdentifier:t},void 0,a()(c.a,{},void 0,a()(u.a,{machineIdentifier:t,
selectedViewType:n.view}))))}});t.a=h},function(e,t,n){"use strict";function i(){return Object(m.createSelector)(S.a,Object(I.a)(y.b.SUBSCRIBE),function(e,t){var n=t[0];if(n){var i=e[n];return i&&i.identifier}})}function a(){return Object(m.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e,t){return t.selectedViewType},Object(M.a)(),i(),D.a,function(e,t,n,i,a){
var r=e.isPagePopulated,o=e.isCalendarPopulated,s=e.calendarError,l=e.isMediaSubscriptionsPopulated,c=e.mediaSubscriptionsError,u=e.calendar,d=!o&&!s,p=!l&&!c,h=d||p,f=!h&&l&&!e.mediaSubscriptions.length&&o&&!u.scheduled.length;return{isPagePopulated:r,machineIdentifier:n.machineIdentifier,showSpinner:h,showEmptyState:f,programGuideIdentifier:i,time:u?u.time:void 0,selectedViewType:t||a.calendarViewType}})}var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(64)),b=n(412),I=n(961),S=n(136),M=n(35),D=n(72),C=n(36),j=n(71),P=n(4795),O=p()({saveExperienceSettings:j.k},b),T=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a._updateCalendar=function(){a.props.goToToday(),a.props.fetchCalendar(),a._resetUpdateTimeout()},a._updateTimeoutID=null,a}return u()(t,e),t.prototype.componentWillMount=function(){this._populate(),this._resetUpdateTimeout(),this._saveViewType()},
t.prototype.componentWillReceiveProps=function(e){var t=e.serverEntityID,n=e.time,i=e.selectedViewType;t!==this.props.serverEntityID&&this._populate(e),this._updateTimeoutID&&n!==this.props.time&&this._resetUpdateTimeout(),i!==this.props.selectedViewType&&this._saveViewType(e)},t.prototype.componentWillUnmount=function(){this._updateTimeoutID&&clearTimeout(this._updateTimeoutID),this.props.clearRecordingSchedulePage()},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;Object(C.a)(function(){e.initRecordingSchedulePage({serverEntityID:e.serverEntityID}),e.fetchCalendar(),e.fetchMediaSubscriptions()})},t.prototype._resetUpdateTimeout=function(){this._updateTimeoutID&&clearTimeout(this._updateTimeoutID),this._updateTimeoutID=setTimeout(this._updateCalendar,36e5)},t.prototype._saveViewType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props
;e.saveExperienceSettings({calendarViewType:e.selectedViewType})},t.prototype.render=function(){return this.props.isPagePopulated?v.a.createElement(P.a,this.props):null},t}(f.Component);t.a=Object(g.connect)(a,O)(T)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(28),v=n(30),g=n(92),m=n(483),y=n(24),b=n(4796),I=n(4801),S=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}
return u()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,n=e.selectedViewType;return a()(g.a,{metricsPage:v._6,metricsProperties:{pane:n},scrollDirection:y.d.NONE},void 0,a()(I.a,{machineIdentifier:t,selectedViewType:n}),h.a.createElement(b.a,this.props))},t}(p.Component);t.a=Object(m.a)(S)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.machineIdentifier,i=e.showSpinner,a=e.showEmptyState,o=e.programGuideIdentifier,s=e.selectedViewType;if(i)return I;if(a&&o){var d=encodeURIComponent(n),y=encodeURIComponent(o);return r()(p.a,{},void 0,r()(h.a,{icon:"plex-icon-calendar-560",title:Object(c.default)("You have no recordings scheduled")},void 0,r()(u.a,{className:b.a.emptyDescription,message:Object(c.default)("Check out the {openLink}Guide{closeLink} to browse available programming"),tags:[{open:"openLink",
close:"closeLink",component:l.a,kind:f.b.PRIMARY,to:"#!/server/"+d+"/provider/"+y}]})))}return a&&!o?r()(p.a,{},void 0,r()(h.a,{icon:"plex-icon-calendar-560",title:Object(c.default)("You have no recordings scheduled"),description:Object(c.default)("You need a DVR before you can schedule recordings")})):r()("div",{className:b.a.schedulePageContent},void 0,r()(p.a,{innerClassName:b.a.schedulePageInnerContent},void 0,s===f.c.CALENDAR?r()(g.a,{serverEntityID:t}):null,s===f.c.AGENDA?r()(v.a,{
serverEntityID:t}):null),o?r()(m.a,{serverEntityID:t,machineIdentifier:n,providerID:o}):null)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(20)),c=n(3),u=n(187),d=n(31),p=n(157),h=n(208),f=n(24),v=n(1723),g=n(1732),m=n(4797),y=n(4800),b=n.n(y),I=r()(p.a,{},void 0,r()(h.a,{},void 0,r()(d.a,{})));t.a=i},function(e,t,n){"use strict";function i(){return Object(g.createSelector)(function(e){return e.ui.recordingSchedulePage},Object(y.a)(),function(e,t){
var n=e.mediaSubscriptions,i=e.isMediaSubscriptionsPopulated,a=e.mediaSubscriptionsError,r=i&&!a&&!n.length;return{providerEntityID:t,mediaSubscriptionEntityIDs:n,showError:!i&&!!a,showEmptyState:r}})}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=n.n(h),v=n(11),g=n(4),m=(n.n(g),n(412)),y=n(1075),b=n(36),I=n(4798),S=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onSubscriptionDragMove=function(e){a.setState({
moveIndex:e})},a.onSubscriptionDragEnd=function(e,t){var n=a.state.moveIndex;t&&null!=n&&Object(b.a)(function(){a.props.moveMediaSubscription(r()({},e,{moveIndex:n}))}),a.setState({moveIndex:null})},a.state={moveIndex:null},a}return d()(t,e),t.prototype.render=function(){return f.a.createElement(I.a,r()({moveIndex:this.state.moveIndex,onSubscriptionDragMove:this.onSubscriptionDragMove,onSubscriptionDragEnd:this.onSubscriptionDragEnd},this.props))},t}(h.Component);t.a=Object(v.connect)(i,{
moveMediaSubscription:m.moveMediaSubscription})(S)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.mediaSubscriptionEntityIDs,a=e.showError,o=e.showEmptyState,s=e.moveIndex,v=e.machineIdentifier,m=e.providerID,y=e.onSubscriptionDragMove,b=e.onSubscriptionDragEnd,I=encodeURIComponent(v),S=encodeURIComponent(m);return r()("div",{className:g.a.pane},void 0,r()("div",{className:g.a.paneHeader},void 0,Object(u.default)("Recording Priority")),r()(l.a,{
className:g.a.paneScroller,autoScroll:!0},void 0,a?r()("div",{className:g.a.error},void 0,r()("div",{},void 0,Object(u.default)("There was an error loading recordings.")),r()("div",{},void 0,Object(u.default)("Please try again."))):null,o?r()("div",{className:g.a.empty},void 0,r()("div",{},void 0,Object(u.default)("You have no recordings scheduled.")),r()("div",{},void 0,r()(d.a,{message:Object(u.default)("Check out the {openLink}Guide{closeLink} to browse available programming."),tags:[{
open:"openLink",close:"closeLink",component:c.a,kind:p.b.PRIMARY,to:"#!/server/"+I+"/provider/"+S}]}))):null,a||o?null:i.map(function(e,i){var a=null!=s,o=a&&s===i,l=a&&s===i+1;return r()(f.a,{serverEntityID:t,providerEntityID:n,mediaSubscriptionEntityID:e,isDraggingBefore:o,isDraggingAfter:l,sortIndex:i,onSubscriptionDragMove:y,onSubscriptionDragEnd:b},e)})),r()(h.a,{serverEntityID:t,providerEntityID:n}))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(80)),c=n(20),u=n(3),d=n(187),p=n(24),h=n(1733),f=n(1735),v=n(4799),g=n.n(v);t.a=i},function(e,t){e.exports={pane:"RecordingPriorityPane-pane-7ENL7",paneHeader:"RecordingPriorityPane-paneHeader-2HEZ3",paneScroller:"RecordingPriorityPane-paneScroller-FXVrB Scroller-vertical-VScFL",error:"RecordingPriorityPane-error-2oNO_",empty:"RecordingPriorityPane-empty-23sH1"}},function(e,t){e.exports={schedulePageContent:"RecordingSchedulePageContent-schedulePageContent-2kZUq PageContent-pageContent-16mK6",
schedulePageInnerContent:"RecordingSchedulePageContent-schedulePageInnerContent-1wYEs PageContent-innerPageContent-3ktLT",emptyDescription:"RecordingSchedulePageContent-emptyDescription-2Oudl EmptyPage-description-oYWtW"}},function(e,t,n){"use strict";function i(e){return e===M.c.AGENDA?Object(S.default)("Agenda View"):Object(S.default)("Calendar View")}var a=n(2),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(1),h=(n.n(p),n(0)),f=(n.n(h),
n(219)),v=n(131),g=n(151),m=n(750),y=n(56),b=n(47),I=n(28),S=n(3),M=n(24),D=n(4802),C=r()(m.a,{}),j=function(e){function t(n,i){s()(this,t);var a=c()(this,e.call(this,n,i));return a.onViewsMenuButtonPress=function(e){a.setState({isViewsMenuOpen:!a.state.isViewsMenuOpen})},a.onViewsMenuClose=function(){a.setState({isViewsMenuOpen:!1})},a.state={isViewsMenuOpen:!1},a._viewsMenuButtonID=Object(b.a)(),a}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return Object(I.a)(this,e,t)},
t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,n=e.selectedViewType,a=this.state.isViewsMenuOpen;return r()(f.a,{},void 0,r()(g.a,{},void 0,r()("span",{},void 0,Object(S.default)("Recordings"),C),r()(v.a,{id:this._viewsMenuButtonID,title:i(n),hasMenu:!0,isMenuOpen:a,isSelected:!0,onPress:this.onViewsMenuButtonPress}),r()(y.a,{target:this._viewsMenuButtonID,isOpen:a,onMenuClose:this.onViewsMenuClose},void 0,M.c.all.map(function(e){return r()(D.a,{machineIdentifier:t,
selectedViewType:n,viewType:e},e,i(e))}))))},t}(h.Component);t.a=j},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.machineIdentifier,i=e.selectedViewType,a=e.viewType,o=encodeURIComponent(n);return r()(l.a,{to:"#!/server/"+o+"/schedule?view="+a,isSelected:i===a},void 0,t)}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(103));t.a=i},function(e,t,n){"use strict";var i=n(306),a=n(4804),r=i.a.extend({controller:new a.a,appRoutes:{
"!/settings/server/:serverID/settings/:group":"serverSettings","!/settings/server/:serverID/manage/:group":"manage","!/settings/users":"users","!/settings/users(/:usersSubset)":"users","!/settings/web/(:settingsSubset)":"webSettings","!/settings/devices(/:deviceTypeID)":"devices","!/settings":"settings","!/settings/web":"legacyWebSettings","!/settings/server(/:serverID)(/:group)":"legacyServerSettings"}});t.a=r},function(e,t,n){"use strict"
;var i=n(19),a=n(16),r=n(307),o=n(90),s=n(182),l=n(680),c=n(4805),u=n(4806),d=n(4814),p=n(4833),h=n(1206),f=r.a.extend({settings:function(){return this.webSettings("general")},webSettings:function(e){var t=Object(a.c)("appModel").get("experienceSettings"),n=t.get("showAdvancedSettings"),r=c.a(e);if(!r||r.isAdvanced&&!n)return void Object(s.a)("webSettings",{settingsSubset:"general"});this.showWebSettingsView(function(e){i.a.trigger("show:view",new p.a({model:e,subset:"web",webSettingsSubset:r}))
})},legacyWebSettings:function(){return this.webSettings("general")},showWebSettingsView:function(e){this.populateView().done(function(){function t(){e(i)}var n=Object(a.c)("appModel"),i=n.get("settings"),r=n.get("user"),o=r.get("homeUsers"),s=r.server.populate();s.done(function(){r.get("signedIn")?o.populate().always(t):t()}),s.fail(t)})},legacyServerSettings:function(e,t){var n=void 0;if(t){var i=l.a.find(function(e){return!!e.groups.find(function(e){return e.key===t})});i&&(n=i.key)
}else n="settings",t="general";this.showServerSettingsView(e,n,t)},serverSettings:function(e,t){this.showServerSettingsView(e,"settings",t)},manage:function(e,t){this.showServerSettingsView(e,"manage",t)},showServerSettingsView:function(e,t,n){var a=this.getPopulateOptions(e);this.populateView(a).done(function(){i.a.trigger("show:view",new h.a({settingsSection:t,group:n,serverID:e}))})},users:function(e){var t={serverID:o.a,showLoading:!this.isReload(o.a)};this.populateView(t).done(function(){
i.a.trigger("show:view",new d.a({usersSubset:e}))})},devices:function(e){var t={serverID:o.a,showLoading:!this.isReload(o.a)};this.populateView(t).done(function(){i.a.trigger("show:view",new u.a({deviceTypeID:e}))})},getPopulateOptions:function(e){return{showLoading:!this.isReload(e)}}});t.a=f},function(e,t,n){"use strict";function i(e){return r.find(function(t){return t.key===e})}t.a=i;var a=n(3),r=[{key:"general",title:function(){return Object(a.default)("General")}},{key:"quality",
title:function(){return Object(a.default)("Quality")}},{key:"debug",title:function(){return Object(a.default)("Debug")},isAdvanced:!0},{key:"player",title:function(){return Object(a.default)("Player")}}]},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(420),o=n.n(r),s=n(0),l=(n.n(s),n(75)),c=n(16),u=n(30),d=n(3),p=n(48),h=n(4807),f=n(697),v=n(31),g=n(85),m=n(127),y=n(259),b=n(258),I=n(322),S=a()(I.a,{selectedKey:"devices"}),M=a()(g.a,{},void 0,a()(v.a,{})),D=p.a.extend({
initialize:function(e){var t=this;this.options={isPopulated:!1};var n=Object(c.c)("appModel"),i=n.get("user"),a=i.get("pmp").get("devices"),r=a.fetch({scope:"page"});r.done(function(){o()(t.options,{model:i,collection:a,subset:"devices",deviceTypeID:e.deviceTypeID,isPopulated:!0}),t.render()}),r.fail(function(){o()(t.options,{hasError:!0,errorMessage:Object(d.default)("Your devices are unavailable."),isPopulated:!0}),t.render()})},component:function(e){
var t=e.isPopulated,n=e.hasError,i=e.errorMessage;return a()(l.a,{},void 0,S,t?null:M,t&&n?a()(m.a,{title:i}):null,t&&!n?a()(y.a,{metricsPage:u.w},void 0,a()(b.a,{},void 0,Object(d.default)("Authorized Devices")),a()(f.a,{view:h.a,viewOptions:e})):null)}});t.a=D},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(182),c=n(4808),u=n(4813),d=n.n(u),p=r.a.Layout.extend({className:"devices-container",template:d.a,regions:{list:".device-list-container"},events:{
"click .dropdown-menu a":"onDeviceTypeDropdownClick","click .nav a":"onDeviceTypeClick"},ui:{filters:".nav a"},deviceTypes:[{id:"all",title:"All",ids:["all"]},{id:"web",title:"Web",ids:["Web Client","Plex Web"]},{id:"pht",title:"Home Theater",ids:["Plex Home Theater","Plex for Home Theater","PlexHomeTheater","Plex Media Center"]},{id:"pmp",title:"Media Player",ids:["Plex Media Player"]},{id:"pms",title:"Server",ids:["Plex Media Server","Plex Cloud Server"]},{id:"android",title:"Android",
ids:["Plex for Android","Android"]},{id:"ios",title:"iOS",ids:["Plex/iOS","Plex for iOS"]},{id:"samsung",title:"Samsung",ids:["Plex for Samsung"]},{id:"google-tv",title:"Google TV",ids:["Google TV"]},{id:"windows",title:"Windows",ids:["Plex for Windows"]},{id:"apple-tv",title:"Apple TV",ids:["Plex-ATV","Plex for Apple TV"]},{id:"windows-phone",title:"Windows Phone",ids:["Plex for Windows Phone"]},{id:"plexbmc",title:"PleXBMC",ids:["PleXBMC"]},{id:"cloud-sync",title:"Cloud Sync",
ids:["Cloud Sync"]},{id:"roku",title:"Roku",ids:["Plex for Roku"]},{id:"popcorn-hour",title:"Popcorn Hour",ids:["Plex for Popcorn Hour"]},{id:"playstation",title:"PlayStation",ids:["Plex for PlayStation 4"],platforms:["Mystery 3"]},{id:"xbox",title:"Xbox",ids:["Plex for Xbox One","Plex for Xbox 360"]},{id:"other",title:"Other",ids:[]}],initialize:function(e){this.products=this.collection.products(),this.addOtherIds(),this.filteredDeviceTypes=this.getFilteredDeviceTypes(),
this.selectedDeviceType=this.getDeviceType(e.deviceTypeID),this.selectedDevices=this.getSelectedDevices(),Object(l.a)("devices",{deviceTypeID:this.selectedDeviceType.id,replace:!0,trigger:!1})},serializeData:function(){return{selectedDeviceType:this.selectedDeviceType,deviceTypes:this.filteredDeviceTypes}},sortDeviceTypes:function(e){return s.a.sortBy(e,function(e){return"all"===e.id?"":e.title.toLowerCase()})},getDeviceType:function(e){var t=this.deviceTypes[0]
;return e?this.filteredDeviceTypes.find(function(t){return t.id===e})||t:t},getSelectedDevices:function(){if("all"===this.selectedDeviceType.id)return this.collection;var e=this.collection.filterByProducts(this.selectedDeviceType.ids);if(this.selectedDeviceType.platforms){var t=this.collection.filterByPlatforms(this.selectedDeviceType.platforms);e.add(t.models)}return e},getFilteredDeviceTypes:function(){var e=this.deviceTypes.filter(function(e){
return"all"===e.id||s.a.intersection(this.products,e.ids).length>0},this);return this.sortDeviceTypes(e)},addOtherIds:function(){var e=s.a.flatten(s.a.map(this.deviceTypes,function(e){return e.ids})),t=s.a.difference(this.products,e),n=s.a.find(this.deviceTypes,function(e){return"other"===e.id});s.a.each(t,function(e){n.ids.push(e)})},onRender:function(){this.list.show(new c.a({collection:this.selectedDevices}))},onDeviceTypeDropdownClick:function(e){e.preventDefault()
;var t=a()(e.currentTarget).data("id");this.selectedDeviceType=this.getDeviceType(t),this.selectedDevices=this.getSelectedDevices(),Object(l.a)("devices",{deviceTypeID:this.selectedDeviceType.id,replace:!0,trigger:!1}),this.render()},onDeviceTypeClick:function(e){e.preventDefault();var t=a()(e.currentTarget),n=t.data("id"),i=this.collection;if(this.ui.filters.removeClass("selected"),t.addClass("selected"),"all"!==n){var r=s.a.findWhere(this.deviceTypes,{id:n})
;i=this.collection.filterByProducts(r.ids)}this.list.show(new c.a({collection:i}))}});t.a=p},function(e,t,n){"use strict";var i=n(97),a=n(4809),r=n(4811),o=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:r.a,emptyView:a.a});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(4810),r=n.n(a),o=i.a.ItemView.extend({template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="row-padded"> <h4 class="text-muted text-center">'+(0,this.escapeExpression)(i(n(5)).call(t,"No devices found",{hash:{},data:o}))+"</h4> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(43),r=n(385),o=n(1446),s=n(624),l=n(841),c=n(4812),u=n.n(c),d=i.a.ItemView.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:u.a,ui:{icon:".device-icon",syncInfo:".sync-info"},
events:{"click .remove-device-btn":"onRemoveClick"},isMediaServer:function(){if(null==this.isServer){var e=this.model.get("product").toLowerCase();this.isServer="plex media server"===e||"plex cloud server"===e}return this.isServer},bindings:{".device-icon":{modelAttribute:"product",modelListeners:["product","platform"],manual:!0,formatter:function(e,t){var n=Object(l.a)(e,this.model.get("platform"));t.attr("src",n)}},".name":{modelAttribute:"name",modelListeners:["name","product"],autohide:!1,
formatter:function(e){return e||this.model.get("product")}},".version":{modelAttribute:"productVersion",autohide:!1},".product":{modelAttribute:"product",autohide:!1},".platform":{modelAttribute:"platform",autohide:function(e){return e&&this.isMediaServer()}},".platform-version":{modelAttribute:"platformVersion",autohide:function(e){return e&&this.isMediaServer()}},".device":{modelAttribute:"device",autohide:!1},".last-seen":{modelAttribute:"lastSeenAt",autohide:!0,formatter:function(e,t){
return Object(r.a)(e)}},".sync-count":{modelAttribute:"syncList",autohide:!1,formatter:function(e){if(e){var t,n=e.get("itemsCompleteCount");return n&&n>0&&(t=[n,Object(s.a)("item",n)].join(" "),this.ui.syncInfo.removeClass("hidden")),t}}},".sync-size":{modelAttribute:"syncList",autohide:!1,formatter:function(e){if(e){var t,n=e.get("totalSize");return n&&n>0&&(t=["(",Object(o.a)(n),")"].join("")),t}}}},onRemoveClick:function(e){e.preventDefault(),this.isMediaServer()?a.a.execute("removeServer",{
device:this.model}):a.a.execute("removeDevice",{device:this.model})}});t.a=d},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div class="card card-device"> <img class="card-poster device-icon"> <div class="card-actions"> <button class="remove-device-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="name"></h4> <div class="card-details"> <div class="pull-right"> <div class="last-seen text-muted"></div> <span class="sync-info hidden"> <span class="glyphicon circle-arrow-down sync-icon"></span> <span class="sync-count"></span> <span class="sync-size"></span> </span> </div> <span class="version text-muted"></span> <div class="device-info-container"> <div class="product"></div> <div class="device text-muted"></div> <div class="platform-info text-muted"> <span class="platform"></span> <span class="platform-version"></span> </div> </div> </div> </div> '
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t,a){var r,o="";return o+=' <li><a data-id="'+p((r=e&&e.id,typeof r===d?r.apply(e):r))+'" href="#"><span class="dropdown-truncated-label">'+p((r=e&&e.title,typeof r===d?r.apply(e):r))+"</span>",r=i(n(34)).call(e,(r=a&&a.selectedDeviceType,null==r||!1===r?r:r.id),e&&e.id,{hash:{},inverse:h.noop,fn:h.program(2,l,t),data:t}),(r||0===r)&&(o+=r),
o+="</a></li> "}function l(e,t){return'<i class="dropdown-selected-icon glyphicon ok-2"></i>'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d="function",p=this.escapeExpression,h=this;return u+='<div class="filter-bar"> <span class="dropdown"> <a class="dropdown-toggle" href="#device-type-dropdown" data-toggle="dropdown"> <span class="dropdown-friendly-name">'+p((c=t&&t.selectedDeviceType,c=null==c||!1===c?c:c.title,
typeof c===d?c.apply(t):c))+'</span> <i class="caret-icon"></i> </a> <ul class="dropdown-menu"> ',c=a.each.call(t,t&&t.deviceTypes,{hash:{},inverse:h.noop,fn:h.programWithDepth(1,s,o,t),data:o}),(c||0===c)&&(u+=c),u+=' </ul> </span> </div> <div class="device-list-container col-sm-12 col-md-12"></div> '})},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(13),o=n.n(r),s=n(0),l=(n.n(s),
n(75)),c=n(16),u=n(4815),d=n(48),p=n(4816),h=n(697),f=n(31),v=n(85),g=n(127),m=n(259),y=n(258),b=n(322),I=a()(v.a,{},void 0,a()(f.a,{})),S=d.a.extend({initialize:function(e){var t=this,n="pin"===e.usersSubset,i=n?"home":e.usersSubset,a=i?u.a(i)||u.a("home"):null;this.options={usersSettingsSubset:a,promptPIN:n,isPopulated:!1}
;var r=Object(c.c)("appModel"),s=r.get("user"),l=s.get("homeUsers"),d=s.get("homeDetails"),p=s.get("pmp").get("friends"),h=s.get("pmp").get("invites"),f=s.get("pmp").get("sentInvites"),v=o.a.Deferred(),g=d.fetch();g.done(function(){v.resolve()}),g.fail(function(e,t){404===t.status?v.resolve():v.reject()});var m=o.a.when(s.fetch({scope:"page"}),l.fetch({scope:"page"}),p.fetch({scope:"page"}),h.fetch({scope:"page"}),f.fetch({scope:"page"}),v.promise());m.done(function(){
t.options.usersSettingsSubset||!h.length||h.findWhere({home:!0})?t.options.usersSettingsSubset||(t.options.usersSettingsSubset=u.a("home")):t.options.usersSettingsSubset=u.a("friends"),t.options.model=r.get("user"),t.options.isPopulated=!0,t.render()}),m.fail(function(){t.options.usersSettingsSubset||(t.options.usersSettingsSubset=u.a("home")),t.options.usersError=!0,t.options.isPopulated=!0,t.render()})},component:function(e){
var t=e.isPopulated,n=e.usersSettingsSubset,i=e.usersError,r=e.user,o=e.promptPIN,s=n?"users--"+n.key:null;return a()(l.a,{},void 0,a()(b.a,{selectedKey:s}),t?null:I,t&&i?a()(g.a,{title:n.errorTitle()}):null,t&&!i?a()(m.a,{metricsPage:n.metricsPage},void 0,a()(y.a,{},void 0,n.title()),a()(h.a,{view:p.a,viewOptions:{model:r,promptPIN:o,subset:"users",usersSubset:n.key}})):null)}});t.a=S},function(e,t,n){"use strict";function i(e){return o.find(function(t){return t.key===e})}t.a=i
;var a=n(30),r=n(3),o=[{key:"home",title:function(){return Object(r.default)("Home Users")},errorTitle:function(){return Object(r.default)("Home users are unavailable")},metricsPage:a.E},{key:"friends",title:function(){return Object(r.default)("Sharing")},errorTitle:function(){return Object(r.default)("Sharing users are unavailable")},metricsPage:a._1}]},function(e,t,n){"use strict"
;var i=n(13),a=n.n(i),r=n(22),o=n(10),s=n.n(o),l=n(19),c=n(32),u=n(16),d=n(43),p=n(79),h=n(3),f=n(463),v=n(521),g=n(1783),m=n(4826),y=n(4832),b=n.n(y),I={home:m.a,friends:g.a},S=r.a.Layout.extend({className:"users-container",template:b.a,ui:{navLinks:".nav-cards a",homeBadge:".home-card > .badge",friendsBadge:".friends-card > .badge",leaveHomeBtn:".leave-home-btn",enableGuestBtn:".enable-guest-btn",disableGuestBtn:".disable-guest-btn",userActions:".user-actions"},regions:{container:".users-row"
},events:{"click .nav-cards a":"onNavClick","click .add-user-btn":"onAddUserClick","click .leave-home-btn":"onLeaveHomeClick","click .invite-friend-btn":"onInviteFriendClick","click .enable-guest-btn":"onEnableGuestClick","click .disable-guest-btn":"onDisableGuestClick"},shouldShowUserActions:function(){var e=!!this.user.get("features").get(p.d);return this.signedInHomeUser.get("admin")&&e},shouldShowLeaveHome:function(){return this.home.length>1&&!this.signedInHomeUser.get("restricted")},
shouldShowFriends:function(){return!this.signedInHomeUser.get("restricted")},shouldShowEnableGuest:function(){return!(this.homeDetails&&this.homeDetails.get("guestEnabled"))},initialize:function(e){var t=u.c("appModel");this.subset=e.usersSubset,this.user=t.get("user"),this.home=this.user.get("homeUsers"),this.invites=this.user.get("pmp").get("invites"),this.signedInHomeUser=this.home.get(this.user.id),this.homeDetails=this.user.get("homeDetails"),this.proxies={home:this.invites.filterByHome(),
friends:this.invites.filterByFriends()},e.promptPIN&&l.a.trigger("show:modal",new v.a({model:this.signedInHomeUser,isEditing:!0,isEditWarning:!this.signedInHomeUser.get("protected")})),this.listenTo(this.signedInHomeUser,"change:admin",this.onAdminChange),this.listenTo(this.home,"reset add remove",this.onHomeChange),this.listenTo(this.invites,"reset add remove",this.onInvitesChange),this.listenTo(this.homeDetails,"change",this.onHomeDetailsChange)},serializeData:function(){return{
subset:this.subset,showUserActions:this.shouldShowUserActions(),showLeaveHome:this.shouldShowLeaveHome(),showFriends:this.shouldShowFriends(),showEnableGuest:this.shouldShowEnableGuest(),showDisableGuest:!this.shouldShowEnableGuest()}},showSubset:function(e){e&&(this.$el.removeClass("show-"+this.subset),this.subset=e),this.$el.addClass("show-"+this.subset);var t=I[this.subset];t?this.container.append(new t):c.a.warn("Invalid subset: "+this.subset)},updateBadges:function(){var e={
home:this.proxies.home.length,friends:this.proxies.friends.length};s.a.each(s.a.keys(e),function(t){var n=this.ui[t+"Badge"];n.text(e[t]),n.toggleClass("hidden",0===e[t])},this)},toggleGuestAccount:function(e,t){e.preventDefault(),d.a.execute("toggleGuest",{user:this.user,enable:t})},onRender:function(){this.showSubset(),this.updateBadges()},onClose:function(){s.a.each(this.proxies,function(e){e.destroy()})},onAdminChange:function(){
this.ui.userActions.toggleClass("hidden",!this.shouldShowUserActions())},onHomeChange:function(){this.ui.leaveHomeBtn.toggleClass("hidden",!this.shouldShowLeaveHome())},onInvitesChange:function(){this.updateBadges()},onHomeDetailsChange:function(){this.ui.enableGuestBtn.toggleClass("hidden",!this.shouldShowEnableGuest()),this.ui.disableGuestBtn.toggleClass("hidden",this.shouldShowEnableGuest())},onNavClick:function(e){e.preventDefault();var t=a()(e.currentTarget)
;t.hasClass("selected")||(this.ui.navLinks.removeClass("selected"),t.addClass("selected"),this.showSubset(s.a.last(e.currentTarget.href.split("/"))),l.a.trigger("navigate","users",{subset:this.subset,trigger:!1}))},onAddUserClick:function(e){e.preventDefault();var t=this.user.get("maxHomeSize");t&&this.home.length-1<t?l.a.trigger("show:modal",new f.a({type:"home"})):l.a.trigger("show:alert",{type:"error",message:Object(h.default)("You have reached the {1} person home limit.",t)})},
onLeaveHomeClick:function(e){e.preventDefault(),d.a.execute("removeHomeUser",{homeUser:this.signedInHomeUser,isSignedInUser:!0})},onInviteFriendClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new f.a({type:"friend"}))},onEnableGuestClick:function(e){this.toggleGuestAccount(e,!0)},onDisableGuestClick:function(e){this.toggleGuestAccount(e,!1)}});t.a=S},function(e,t,n){"use strict";var i=n(97),a=n(4818),r=n(4820),o=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:r.a,
emptyView:a.a,sorted:!0});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(4819),r=n.n(a),o=i.a.ItemView.extend({template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<h4 class="text-muted text-center">'+(0,
this.escapeExpression)(i(n(5)).call(t,"No friends yet. {1}Invite a friend{2} and share your libraries.",'<a class="invite-friend-btn" href="#">',"</a>",{hash:{},data:o}))+"</h4> "})},function(e,t,n){"use strict";var i=n(22),a=n(19),r=n(43),o=n(430),s=n(1784),l=n(463),c=n(4822),u=n.n(c),d=i.a.Layout.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:u.a,ui:{poster:".card-poster"},regions:{details:".card-details"},events:{"click .edit-btn":"onEditClick",
"click .delete-btn":"onDeleteClick"},initialize:function(e){this.serverShares=this.model.get("serverShares"),this.image=new o.a({model:this.model,type:"friend",width:80})},bindings:{".username":{modelAttribute:"title"}},onRender:function(){this.image.setElement(this.ui.poster),this.details.show(new s.a({model:this.model}))},onClose:function(){this.image.close()},onEditClick:function(e){e.preventDefault(),a.a.trigger("show:modal",new l.a({model:this.model}))},onDeleteClick:function(e){
e.preventDefault(),r.a.execute("removeFriend",{friend:this.model})}});t.a=d},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <p class="user-summary"> <i class="server-share-direction-icon glyphicon right-arrow"></i> <a class="server-share-edit-btn server-share-status shared '+m((n=e&&e.shared,n=null==n||!1===n?n:n.status,typeof n===y?n.apply(e):n))+" ",
n=a.unless.call(e,e&&e.canEdit,{hash:{},inverse:b.noop,fn:b.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+='" href="#"> <i class="server-share-status-icon available glyphicon circle-ok"></i> <i class="server-share-status-icon unavailable glyphicon circle-exclamation-mark"></i> <i class="server-share-status-icon unknown glyphicon circle-question-mark"></i> <i class="server-share-status-hover-icon glyphicon pencil"></i> </a> ',n=a.if.call(e,(n=e&&e.shared,null==n||!1===n?n:n.hasActiveShare),{
hash:{},inverse:b.program(6,u,t),fn:b.program(4,c,t),data:t}),(n||0===n)&&(i+=n),i+=" </p> "}function l(e,t){return"disabled"}function c(e,t){var a,r="";return r+=" "+m(i(n(5)).call(e,"shares {1} {2} with you",(a=e&&e.shared,null==a||!1===a?a:a.numLibraries),(a=e&&e.shared,null==a||!1===a?a:a.libraryLabel),{hash:{},data:t}))+" "}function u(e,t){var a,r="";return r+=" "+m(i(n(5)).call(e,"wants to share {1} {2} with you",(a=e&&e.shared,null==a||!1===a?a:a.numLibraries),(a=e&&e.shared,
null==a||!1===a?a:a.libraryLabel),{hash:{},data:t}))+" "}function d(e,t){var n,i="";return i+=' <p class="user-summary"> <i class="server-share-direction-icon glyphicon left-arrow"></i> <a class="server-share-edit-btn server-share-status owned '+m((n=e&&e.owned,n=null==n||!1===n?n:n.status,typeof n===y?n.apply(e):n))+" ",n=a.unless.call(e,e&&e.canEdit,{hash:{},inverse:b.noop,fn:b.program(2,l,t),data:t}),(n||0===n)&&(i+=n),
i+='" href="#"> <i class="server-share-status-icon available glyphicon circle-ok"></i> <i class="server-share-status-icon unavailable glyphicon circle-exclamation-mark"></i> <i class="server-share-status-icon unknown glyphicon circle-question-mark"></i> <i class="server-share-status-hover-icon glyphicon pencil"></i> </a> ',n=a.if.call(e,(n=e&&e.owned,null==n||!1===n?n:n.hasActiveShare),{hash:{},inverse:b.program(11,h,t),fn:b.program(9,p,t),data:t}),(n||0===n)&&(i+=n),i+=" </p> "}function p(e,t){
var a,r="";return r+=" "+m(i(n(5)).call(e,"sharing {1} {2} with this {3}",(a=e&&e.owned,null==a||!1===a?a:a.numLibraries),(a=e&&e.owned,null==a||!1===a?a:a.libraryLabel),(a=e&&e.owned,null==a||!1===a?a:a.friendLabel),{hash:{},data:t}))+" "}function h(e,t){var a,r="";return r+=" "+m(i(n(5)).call(e,"invited to share {1} {2}",(a=e&&e.owned,null==a||!1===a?a:a.numLibraries),(a=e&&e.owned,null==a||!1===a?a:a.libraryLabel),{hash:{},data:t}))+" "}function f(e,t){var a=""
;return a+=' <p class="user-summary server-share-empty-message">'+m(i(n(5)).call(e,"no shared libraries",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var v,g="",m=this.escapeExpression,y="function",b=this;return v=a.if.call(t,(v=t&&t.shared,null==v||!1===v?v:v.numLibraries),{hash:{},inverse:b.noop,fn:b.program(1,s,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,(v=t&&t.owned,null==v||!1===v?v:v.numLibraries),{hash:{},inverse:b.noop,
fn:b.program(8,d,o),data:o}),(v||0===v)&&(g+=v),g+=" ",v=a.if.call(t,t&&t.showEmptyMessage,{hash:{},inverse:b.noop,fn:b.program(13,f,o),data:o}),(v||0===v)&&(g+=v),g+=" "})},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div class="card card-user card-friend"> <div class="card-poster media-poster img-circle"></div> <div class="card-actions"> <button class="edit-btn card-action-btn"><i class="glyphicon pencil"></i></button> <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="username"></h4> <div class="card-details"></div> </div> '})},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(43),s=n(385),l=n(624),c=n(3),u=n(430),d=n(4824),p=n.n(d),h=i.a.ItemView.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:p.a,ui:{poster:".card-poster"},events:{"click .accept-btn":"onAcceptClick","click .delete-btn":"onDeleteClick"},initialize:function(e){this.subset=this.model.collection.subset,this.image=new u.a({model:this.model,type:"friend",width:80})},serializeData:function(){return{showAccept:"requests"===this.subset}},
bindings:{".username":{modelAttribute:"friendlyName"},".user-summary":{modelAttribute:"Server",autohide:!0,formatter:function(e){if("requested"===this.subset){var t=this.model.get("createdAt");return t?Object(c.default)("invite sent {1}",Object(s.a)(t)):Object(c.default)("invite sent to {1}",this.model.get("email"))}var n=this.model.get("friend"),i=this.model.get("server"),a=this.model.get("home");if(i){var o=r.a.reduce(e,function(e,t){return e+=t.numLibraries
},0),u=Object(l.a)(Object(c.default)("library"),o,Object(c.default)("libraries"));return a?Object(c.default)("wants you to join their home and share {1} {2} with you",o,u):n?Object(c.default)("wants to be friends and share {1} {2} with you",o,u):Object(c.default)("wants to share {1} {2} with you",o,u)}return a?Object(c.default)("wants you to join their home"):Object(c.default)("wants to be friends")}}},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){
this.image.close()},onAcceptClick:function(e){e.preventDefault(),o.a.execute("acceptInvite",{invite:this.model})},onDeleteClick:function(e){e.preventDefault(),o.a.execute("rejectInvite",{invite:this.model,subset:this.subset})}});t.a=h},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return'<button class="accept-btn card-action-btn btn-success"><i class="glyphicon ok-2"></i></button>'}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),
a=a||{};var o,s="",l=this;return s+='<div class="card card-user"> <div class="card-poster media-poster img-circle"></div> <div class="card-actions"> ',o=n.if.call(t,t&&t.showAccept,{hash:{},inverse:l.noop,fn:l.program(1,r,a),data:a}),(o||0===o)&&(s+=o),s+=' <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="username"></h4> <div class="card-details"> <p class="user-summary"></p> </div> </div> '})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<h3 class="invite-list-header top">'+l(i(n(5)).call(t,"Invites",{hash:{},data:o}))+'</h3> <div class="invite-list-container"></div> <h3 class="friend-list-header">'+l(i(n(5)).call(t,"Friends",{hash:{},data:o
}))+'</h3> <div class="friend-list-container"></div> <h3 class="pending-list-header">'+l(i(n(5)).call(t,"Pending",{hash:{},data:o}))+'</h3> <div class="pending-list-container"></div> </div> '})},function(e,t,n){"use strict";var i=n(16),a=n(4827),r=n(1785),o=n(1783),s=n(4831),l=n.n(s),c=o.a.extend({template:l.a,initialize:function(){var e=i.c("appModel"),t=e.get("user");this.collection=t.get("homeUsers"),this.invites=t.get("pmp").get("invites").filterByHome(),
this.sentInvites=t.get("pmp").get("sentInvites").filterByHome(),this.signedInHomeUser=this.collection.get(t.id),this.itemViewOptions={isAdmin:!(!this.signedInHomeUser||!this.signedInHomeUser.get("admin"))},this.addListeners()},addListeners:function(){o.a.prototype.addListeners.apply(this,arguments),this.signedInHomeUser&&this.listenTo(this.signedInHomeUser,"change:admin",this.onAdminChange)},onRender:function(){this.friendList.show(new a.a({collection:this.collection,
itemViewOptions:this.itemViewOptions})),this.inviteList.show(new r.a({collection:this.invites})),this.pendingList.show(new r.a({collection:this.sentInvites})),this.updateHeaders()},onAdminChange:function(e,t){this.friendList.currentView&&(this.itemViewOptions.isAdmin=t)}});t.a=c},function(e,t,n){"use strict";var i=n(97),a=n(4828),r=n(1786),o=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:r.a,emptyView:a.a,sorted:!0,isEmpty:function(e){
return!this.collection||this.collection.length<2},addChildView:function(e,t,n){this.isEmpty(this.collection)?this.showEmptyView():this._showingEmptyView?this.render():this.children.findByModel(e)||i.a.prototype.addChildView.apply(this,arguments)},showEmptyView:function(){this._showingEmptyView||this.children.each(function(e){this.removeChildView(e)},this),i.a.prototype.showEmptyView.apply(this,arguments)}});t.a=o},function(e,t,n){"use strict"
;var i=n(22),a=n(10),r=n.n(a),o=n(16),s=n(79),l=n(1786),c=n(4830),u=n.n(c),d=i.a.Layout.extend({template:u.a,regions:{card:".centered-home-user-container"},initialize:function(e){this.itemViewOptions=e},serializeData:function(){var e=o.c("appModel"),t=e.get("user");return{hasHomeFeature:!!t.get("features").get(s.d),plexPassUrl:t.server.get("plexPassUrl")}},onRender:function(){var e=o.c("appModel"),t=e.get("user"),n=t.get("homeUsers")
;n.length&&this.card.show(new l.a(r.a.extend({},this.itemViewOptions,{model:n.first()})))}});t.a=d},function(e,t,n){var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return'<div class="selected-user-icon"></div>'}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,s="",l=this;return s+='<div class="card card-user card-friend card-home-user"> ',o=n.if.call(t,t&&t.isSignedInUser,{hash:{},inverse:l.noop,fn:l.program(1,r,a),data:a}),
(o||0===o)&&(s+=o),
s+=' <div class="card-poster media-poster img-circle"></div> <div class="card-actions"> <button class="pin-btn pin-protected-btn card-action-btn btn-success"><i class="glyphicon lock"></i></button> <button class="pin-btn pin-unprotected-btn card-action-btn"><i class="glyphicon unlock"></i></button> <button class="edit-btn card-action-btn"><i class="glyphicon pencil"></i></button> <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4> <i class="admin-icon glyphicon crown"></i> <span class="username"></span> </h4> <div class="card-details"> <div class="user-type text-muted"></div> </div> </div> '
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <h4 class="text-muted text-center">'+d(i(n(5)).call(e,"No one else is in your home. {1}Add a user{2} to enable user switching.",'<a class="add-user-btn" href="#">',"</a>",{hash:{},data:t}))+"</h4> "}function l(e,t){var a,r=""
;return r+=' <h4 class="text-muted text-center">'+d(i(n(5)).call(e,"You need a Plex Pass to add users to your home.",{hash:{},data:t}))+'</h4> <p class="text-center"> <a class="btn btn-sm btn-primary" href="'+d((a=e&&e.plexPassUrl,typeof a===p?a.apply(e):a))+'" target="_blank">'+d(i(n(5)).call(e,"Learn More",{hash:{},data:t}))+"</a> </p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p="function",h=this
;return c=a.if.call(t,t&&t.hasHomeFeature,{hash:{},inverse:h.program(3,l,o),fn:h.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=' <ul class="list centered-home-user-container"></ul> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<h3 class="invite-list-header top">'+l(i(n(5)).call(t,"Invites",{
hash:{},data:o}))+'</h3> <div class="invite-list-container"></div> <h3 class="friend-list-header">'+l(i(n(5)).call(t,"My Home",{hash:{},data:o}))+'</h3> <div class="friend-list-container"></div> <h3 class="pending-list-header">'+l(i(n(5)).call(t,"Pending",{hash:{},data:o}))+'</h3> <div class="pending-list-container"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hidden"
}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var l,c="",u=this,d=this.escapeExpression;return c+='<div class="filter-bar"> <div class="filter-bar-right"> <span class="user-actions ',l=a.unless.call(t,t&&t.showUserActions,{hash:{},inverse:u.noop,fn:u.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='"> <button class="add-user-btn btn btn-sm btn-default">'+d(i(n(5)).call(t,"Add User",{hash:{},data:o}))+'</button> <button class="enable-guest-btn btn btn-sm btn-default ',
l=a.unless.call(t,t&&t.showEnableGuest,{hash:{},inverse:u.noop,fn:u.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='">'+d(i(n(5)).call(t,"Enable Guest",{hash:{},data:o}))+'</button> <button class="disable-guest-btn btn btn-sm btn-danger ',l=a.unless.call(t,t&&t.showDisableGuest,{hash:{},inverse:u.noop,fn:u.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='">'+d(i(n(5)).call(t,"Disable Guest",{hash:{},data:o}))+'</button> </span> <button class="leave-home-btn btn btn-sm btn-danger ',
l=a.unless.call(t,t&&t.showLeaveHome,{hash:{},inverse:u.noop,fn:u.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+='">'+d(i(n(5)).call(t,"Leave Home",{hash:{},data:o}))+'</button> <button class="invite-friend-btn btn btn-sm btn-default">'+d(i(n(5)).call(t,"Invite Friend",{hash:{},data:o}))+'</button> </div> </div> <div class="users-row row"></div> '})},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(0),u=(n.n(c),
n(73)),d=n(75),p=n(19),h=n(30),f=n(1448),v=n(48),g=n(4834),m=n(697),y=n(259),b=n(258),I=n(322),S=o()(u.b,{}),M=v.a.extend({initialize:function(){this.listenTo(p.a,"change:language",this.render)},component:function(e){var t=e.webSettingsSubset,n=t.key,i=t.title,r=l()(e,["webSettingsSubset"]);return o()(d.a,{},void 0,o()(I.a,{selectedKey:"web-client--settings--"+n}),o()(y.a,{metricsPage:h.Y,metricsPane:"web:"+n},void 0,o()(b.a,{},void 0,Object(f.a)(),S,i()),o()(m.a,{view:g.a,viewOptions:a()({},r,{
settingsGroup:n})})))}});t.a=M},function(e,t,n){"use strict";var i=n(59),a=n.n(i),r=n(1401),o=n.n(r),s=n(6),l=n.n(s),c=n(13),u=n.n(c),d=n(22),p=n(10),h=n.n(p),f=n(19),v=n(353),g=n(16),m=n(562),y=n(14),b=n(1787),I=n(517),S=n(711),M=n(302),D=(n(79),n(146)),C=n(368),j=n(1037),P=n(3),O=n(4835),T=n(71),E=n(4836),w=n(4837),A=n(4838),x=n(4839),N=n.n(x),L=[{value:0,title:"None"},{value:1,title:"1"},{value:2,title:"2"},{value:3,title:"3"},{value:4,title:"4"},{value:5,title:"5"}],k=d.a.ItemView.extend({
className:"web-settings-container",template:N.a,ui:{chromecastCustomGroup:"#chromecast-custom-group",customHomeStreamingSettings:".custom-home-streaming-settings",recommendedHomeStreamingSettings:".recommended-home-streaming-settings",submitBtn:".submit-btn",message:".form-message"},events:{"click .toggle-advanced-btn":"onToggleAdvancedClick","click .settings-nav a":"onSettingsGroupClick","change #chromecastAppID":"onChromecastAppIDChange",
"change #useHomeStreamingRecommendedSettings":"onUseHomeStreamingRecommendedSettingsChange","change input[id]":"onInputChange","input input[type=text]":"onInputChange","change select[id]":"onInputChange","submit #web-settings-form":"onSubmit"},onlyAfterRender:["saveChanges","displayHomeStreamingSettings"],initialize:function(e){this.changes={};var t=Object(g.c)("appModel"),n=Object(g.c)("appModel").get("experienceSettings"),i=t.get("user");this.settingsGroup=e.settingsGroup,
this.listenTo(i,"change:signedIn",this.onSignedInChange),this.listenTo(t,"change:primaryServer",this.render),this.listenTo(f.a,"shortcut:save",this.saveChanges);var a=n.get("showAdvancedSettings");this.$el.toggleClass("show-advanced",a),this.displayHomeStreamingSettings(n.get("useHomeStreamingRecommendedSettings"))},serializeData:function(){var e=[{value:"h:mma",title:Object(P.default)("12 Hour")},{value:"HH:mm",title:Object(P.default)("24 Hour")
}],t=this.model.toJSON(),n=Object(g.c)("appModel"),i=n.get("experienceSettings").toJSON(),a=n.get("deviceSettings").toJSON(),r=n.get("user"),o=(r.get("features"),r.hasHome()),s=r.isNinja(),c=r.get("restricted"),u=Object(j.a)(),d=m.a.prop("video"),p=Object(C.b)()||Object(C.h)();return l()({},this.serializePlatformData(),{settings:t,experienceSettings:i,deviceSettings:a,hasHome:o,canPlayAdaptiveBitrate:u,hasTypeFirst:!1,hasSubtitleBurnLevel:!p,hasSubtitleSize:!Object(C.b)(),canForceVideoAds:s,
canDebugAdaptiveBitrate:u&&s,isRestricted:c,isHybridPlatform:p,isNinja:s,isPMPDesktop:Object(C.b)(),isQtDesktop:Object(C.h)(),version:r.isNinja()?"3.83.2-ecd072f":"3.83.2",languages:Object(O.a)(),debugLevels:b.a.settings,subtitlesBurnLevels:M.a.settings,chromecastAppIDs:w.a.settings,availableQualities:D.a.getAvailableQualities({lowestQualityIndex:d.lowestQualityIndex}).reverse(),subtitleSizes:S.a.settings,audioBoostLevels:E.a.settings,httpFallbackOptions:I.a.settings,extrasPrefixCounts:L,
timeFormats:e})},serializePlatformData:function(){var e={};return Object(C.h)()&&(e={keepOnTopSettings:[{title:Object(P.default)("Never"),value:A.a.NEVER},{title:Object(P.default)("During playback"),value:A.a.PLAYBACK},{title:Object(P.default)("Always"),value:A.a.ALWAYS}]}),e},saveChanges:function(){var e=this.ui.submitBtn,t=this.ui.message;if(!e.isDisabled()){e.addClass("active");var n=!!this.changes.language,i=this.saveSettings();i.done(h.a.bind(function(){this.changes={},
n||(e.addClass("disabled"),t.text(Object(P.default)("Your changes have been saved.")))},this)),i.fail(h.a.bind(function(){t.text(Object(P.default)("Your changes could not be saved."))},this)),i.always(h.a.bind(function(){n||e.removeClass("active")},this))}},waitForAttribute:function(e,t,n){var i=u.a.Deferred(),a="change:"+t;return e.on(a,function t(r,o){o===n&&(e.off(a,t),i.resolve())}),i.promise()},saveSettings:function(){var e=this,t=[],n=Object(g.c)("appModel"),i=[{
model:n.get("deviceSettings"),actionCreator:T.j},{model:n.get("experienceSettings"),actionCreator:T.k}],r=i.reduce(function(n,i){var r=i.model,s=i.actionCreator,l={},c={};for(var u in n){var d,p=n[u];if(r.hasAttr(u)){var h=o()(r),f=h.syncedAttrs[u]||h.sessionAttrs[u];"string"==typeof p&&f===y.a.integer&&(p=Object(v.a)(p)),d=l}else d=c;d[u]=p}return a()(l).length&&t.push(e.saveSettingUsingActionCreator(l,r,s)),c},this.changes);return a()(r).length&&t.push(this.model.save(r)),
t.length?u.a.when.apply(u.a,t):u.a.Deferred().resolve().promise()},saveSettingUsingActionCreator:function(e,t,n){var i=this,a=t.get("isSaving"),r=this.waitForAttribute(t,"isSaving",!1);return r=r.then(function(){return a?i.saveSettingUsingActionCreator(e,t,n):t.get("saveError")?u.a.Deferred().reject().promise():u.a.Deferred().resolve().promise()}),a||setTimeout(function(){Object(g.c)("appStore").dispatch(n(e))},0),r},displayHomeStreamingSettings:function(e){
this.ui.customHomeStreamingSettings.toggleClass("hidden",e),this.ui.recommendedHomeStreamingSettings.toggleClass("hidden",!e)},onRender:function(){this.$("#"+this.settingsGroup+"-web-group").addClass("active")},onSignedInChange:function(e,t){null!=t&&this.render()},onToggleAdvancedClick:function(e){e.preventDefault();var t=this.$el.hasClass("show-advanced"),n=Object(g.c)("appModel").get("experienceSettings");this.$el.toggleClass("show-advanced",!t),n.save("showAdvancedSettings",!t),
t&&"debug"===this.settingsGroup&&(window.location.hash="#!/settings/web/general")},onSettingsGroupClick:function(e){e.preventDefault();var t=u()(e.currentTarget),n=t.attr("href");this.$(".settings-group").removeClass("active"),this.$(n).addClass("active"),this.$(".nav a").removeClass("selected"),t.addClass("selected")},onChromecastAppIDChange:function(e){var t=e.currentTarget.value===w.a.CUSTOM;this.ui.chromecastCustomGroup.toggleClass("hidden",!t)},
onUseHomeStreamingRecommendedSettingsChange:function(e){this.displayHomeStreamingSettings(!!e.currentTarget.checked)},onInputChange:function(e){var t=u()(e.currentTarget),n=e.currentTarget,i=n.value;"checkbox"===n.type&&(i=t.prop("checked")),"int"===t.data("type")&&(i=parseInt(i,10)),this.changes[n.id]=i,this.ui.submitBtn.removeClass("disabled"),this.ui.message.text("")},onSubmit:function(e){e.preventDefault(),this.saveChanges()}});t.a=k},function(e,t,n){"use strict";function i(){
var e=r()(s.a.getLanguages()).map(function(e){return{value:e,title:Object(o.a)(e)}});return e.sort(function(e,t){return e.title.localeCompare(t.title)}),e}t.a=i;var a=n(59),r=n.n(a),o=n(1427),s=n(609)},function(e,t,n){"use strict";var i={NONE:100,SMALL:150,LARGE:200,HUGE:250};i.settings=[{value:i.NONE,title:"None"},{value:i.SMALL,title:"Small"},{value:i.LARGE,title:"Large"},{value:i.HUGE,title:"Huge"}],t.a=i},function(e,t,n){"use strict";var i={PRODUCTION:"9AC194DC",QA:"4289C4E0",
NINJA:"EB90125F",CUSTOM:"custom"};i.settings=[{value:i.PRODUCTION,title:"Production"},{value:i.QA,title:"QA"},{value:i.NINJA,title:"Ninja"},{value:i.CUSTOM,title:"Custom"}],t.a=i},function(e,t,n){"use strict";var i={NEVER:0,PLAYBACK:1,ALWAYS:2};t.a=i},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',
r=i(n(34)).call(e,e&&e.value,(r=a&&a.settings,null==r||!1===r?r:r.language),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K((r=e&&e.title,typeof r===W?r.apply(e):r))+" </option> "}function l(e,t){return"selected"}function c(e,t){var n,i="";return i+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="typeFirstPreview" ',n=a.if.call(e,(n=e&&e.experienceSettings,null==n||!1===n?n:n.typeFirstPreview),{hash:{},inverse:Z.noop,
fn:Z.program(5,u,t),data:t}),(n||0===n)&&(i+=n),i+='> Preview the new Plex experience </label> <p class="help-block">Plex is creating a new experience for navigating your media. For now you can opt-in to preview the new Plex experience.</p> </div> '}function u(e,t){return"checked"}function d(e,t){var n,i="";return i+=" ",n=a.unless.call(e,e&&e.isRestricted,{hash:{},inverse:Z.noop,fn:Z.program(8,p,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function p(e,t){var r,o=""
;return o+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="autoLogin" ',r=a.if.call(e,(r=e&&e.settings,null==r||!1===r?r:r.autoLogin),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K(i(n(5)).call(e,"Automatically Sign In",{hash:{},data:t}))+' </label> <p class="help-block">'+K(i(n(5)).call(e,"Do not prompt to select a user or enter a PIN during startup on this device.",{hash:{},data:t}))+"</p> </div> "}function h(e,t,a){
var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.settings,null==r||!1===r?r:r.allowHttpFallback),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function f(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.experienceSettings,
null==r||!1===r?r:r.timeFormat),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function v(e,t){var r,o="";return o+=' <div class="form-group"> <label for="keepOnTop">'+K(i(n(5)).call(e,"Keep Plex on top of windows",{hash:{},data:t}))+'</label> <select id="keepOnTop"> ',r=a.each.call(e,e&&e.keepOnTopSettings,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(15,g,t,e),data:t}),(r||0===r)&&(o+=r),
o+=' </select> </div> \x3c!-- <div class="form-group"> <label class="control-label"> <input type="checkbox" id="settings.minimizeToSystemTrayEnabled" ',r=a.if.call(e,(r=e&&e.deviceSettings,null==r||!1===r?r:r["settings.minimizeToSystemTrayEnabled"]),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,"Minimized to system tray",{hash:{},data:t}))+" </label> </div> --\x3e "}function g(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,
typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.deviceSettings,null==r||!1===r?r:r.keepOnTop),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K((r=e&&e.title,typeof r===W?r.apply(e):r))+"</option> "}function m(e,t){var r,o="";return o+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="autoAdjustQuality" ',r=a.if.call(e,(r=e&&e.experienceSettings,null==r||!1===r?r:r.autoAdjustQuality),{hash:{},inverse:Z.noop,
fn:Z.program(5,u,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K(i(n(5)).call(e,"Automatically adjust quality (Beta)",{hash:{},data:t}))+' </label> <p class="help-block">'+K(i(n(5)).call(e,"Plex will increase or decrease quality based on connection speed. Requires latest Plex Media Server.",{hash:{},data:t}))+"</p> </div> "}function y(e,t){return"settings-header"}function b(e,t){return"settings-header-first"}function I(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.index,
typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.index,(r=a&&a.experienceSettings,null==r||!1===r?r:r.remoteQuality),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K(i(n(519)).call(e,e,{hash:{},data:t}))+" </option> "}function S(e,t){return K(i(n(5)).call(e,'"Automatically adjust quality" will be disabled for these videos.',{hash:{},data:t}))}function M(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.index,typeof r===W?r.apply(e):r))+'" ',
r=i(n(34)).call(e,e&&e.index,(r=a&&a.experienceSettings,null==r||!1===r?r:r.localQuality),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K(i(n(519)).call(e,e,{hash:{},data:t}))+" </option> "}function D(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.settings,null==r||!1===r?r:r.debugLevel),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),
o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function C(e,t){var n,i="";return i+=" ",n=a.unless.call(e,e&&e.isHybridPlatform,{hash:{},inverse:Z.noop,fn:Z.program(32,j,t),data:t}),(n||0===n)&&(i+=n),i+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="rejectDirectConnections" ',n=a.if.call(e,(n=e&&e.settings,null==n||!1===n?n:n.rejectDirectConnections),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(n||0===n)&&(i+=n),
i+='> Reject direct connections </label> <p class="help-block">Forces relayed connections if available. Refresh after saving this setting for it to take effect.</p> </div> ',n=a.if.call(e,e&&e.isQtDesktop,{hash:{},inverse:Z.noop,fn:Z.program(37,T,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function j(e,t){var r,o="";return o+=' <div class="form-group"> <label for="chromecastAppID">Chromecast Receiver</label> <select id="chromecastAppID"> ',r=a.each.call(e,e&&e.chromecastAppIDs,{hash:{},inverse:Z.noop,
fn:Z.programWithDepth(33,P,t,e),data:t}),(r||0===r)&&(o+=r),o+=' </select> <p class="help-block">Refresh after saving this setting for it to take effect.</p> </div> <div id="chromecast-custom-group" class="form-group ',r=i(n(286)).call(e,(r=e&&e.settings,null==r||!1===r?r:r.chromecastAppID),"custom",{hash:{},inverse:Z.noop,fn:Z.program(35,O,t),data:t}),(r||0===r)&&(o+=r),
o+='"> <label for="chromecastCustomAppID">Custom Chromecast Application ID</label> <input type="text" id="chromecastCustomAppID" class="form-control" placeholder="Application ID" value="'+K((r=e&&e.settings,r=null==r||!1===r?r:r.chromecastCustomAppID,typeof r===W?r.apply(e):r))+'"> <p class="help-block">Refresh after saving this setting for it to take effect.</p> </div> '}function P(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',
r=i(n(34)).call(e,e&&e.value,(r=a&&a.settings,null==r||!1===r?r:r.chromecastAppID),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function O(e,t){return"hidden"}function T(e,t){var n,i="";return i+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="settings.nerdToolsEnabled" ',n=a.if.call(e,(n=e&&e.deviceSettings,null==n||!1===n?n:n["settings.nerdToolsEnabled"]),{hash:{},
inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(n||0===n)&&(i+=n),i+='>Nerd Tools </label> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="settings.webInspectorEnabled" ',n=a.if.call(e,(n=e&&e.deviceSettings,null==n||!1===n?n:n["settings.webInspectorEnabled"]),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(n||0===n)&&(i+=n),
i+='> Remote Inspector </label> <p class="help-block">Restart the app after saving this setting for it to take effect.</p> </div> <div class="form-group"> <label for="">Report Inspector Port</label> <input type="text" id="settings.webInspectorPort" class="form-control" ',n=a.if.call(e,(n=e&&e.deviceSettings,null==n||!1===n?n:n["settings.webInspectorEnabled"]),{hash:{},inverse:Z.noop,fn:Z.program(38,E,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.unless.call(e,(n=e&&e.deviceSettings,
null==n||!1===n?n:n["settings.webInspectorEnabled"]),{hash:{},inverse:Z.noop,fn:Z.program(40,w,t),data:t}),(n||0===n)&&(i+=n),i+=' /> <p class="help-block">After enabling the Remote Inspector visit <a href="http://localhost:'+K((n=e&&e.deviceSettings,n=null==n||!1===n?n:n["settings.webInspectorPort"],typeof n===W?n.apply(e):n))+'" target="_blank">http://localhost:'+K((n=e&&e.deviceSettings,n=null==n||!1===n?n:n["settings.webInspectorPort"],typeof n===W?n.apply(e):n))+"</a>.</p> </div> "}
function E(e,t){var n,i="";return i+='value="'+K((n=e&&e.deviceSettings,n=null==n||!1===n?n:n["settings.webInspectorPort"],typeof n===W?n.apply(e):n))+'"'}function w(e,t){var n,i="";return i+='disabled placeholder="'+K((n=e&&e.deviceSettings,n=null==n||!1===n?n:n["settings.webInspectorPort"],typeof n===W?n.apply(e):n))+'"'}function A(e,t){var a="";return a+=" "+K(i(n(5)).call(e,"Allows the player to play compatible media without any conversion.",{hash:{},data:t}))+" "}function x(e,t){var a=""
;return a+=" "+K(i(n(5)).call(e,"Allows the player to play compatible media without any conversion. In most browsers, direct play supports MP4 videos with h264 video and AAC audio. Videos with subtitles cannot be played directly.",{hash:{},data:t}))+" "}function N(e,t){var n,i="";return i+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="debugVideoQualityOverlay" ',n=a.if.call(e,(n=e&&e.experienceSettings,null==n||!1===n?n:n.debugVideoQualityOverlay),{hash:{},
inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(n||0===n)&&(i+=n),i+='> Video quality overlay </label> <p class="help-block">Burns a quality information overlay on video when automatically adjusting quality.</p> </div> '}function L(e,t){var n,i="";return i+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="debugHasForcedVideoAds" ',n=a.if.call(e,(n=e&&e.deviceSettings,null==n||!1===n?n:n.debugHasForcedVideoAds),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),
(n||0===n)&&(i+=n),i+='> Force advertisements </label> <p class="help-block">Forces a test advertisement to play before each video during local playback. Remember to disable any ad blockers.</p> </div> '}function k(e,t){return"advanced-setting"}function R(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.settings,null==r||!1===r?r:r.audioBoost),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),
(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function z(e,t){var r,o="";return o+=' \x3c!-- <div class="form-group advanced-setting"> <label class="control-label"> <input type="checkbox" id="player.exclusiveFullscreenAudioEnabled" ',r=a.if.call(e,(r=e&&e.deviceSettings,null==r||!1===r?r:r["player.exclusiveFullscreenAudioEnabled"]),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(r||0===r)&&(o+=r),
o+="> "+K(i(n(5)).call(e,"Exclusive Fullscreen Audio",{hash:{},data:t}))+' </label> <p class="help-block">'+K(i(n(5)).call(e,"Mute sounds from other applications while Plex is playing music or video in a fullscreen window.",{hash:{},data:t}))+"</p> </div> --\x3e "}function U(e,t){var r,o="";return o+=' <div class="form-group"> <label for="subtitleSize">'+K(i(n(5)).call(e,"Subtitle Size",{hash:{},data:t}))+'</label> <select id="subtitleSize" data-type="int"> ',r=a.each.call(e,e&&e.subtitleSizes,{
hash:{},inverse:Z.noop,fn:Z.programWithDepth(57,B,t,e),data:t}),(r||0===r)&&(o+=r),o+=" </select> </div> "}function B(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||!1===r?r:r.subtitleSize),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function F(e,t){var r,o=""
;return o+=' <div class="form-group advanced-setting"> <label for="subtitlesBurnLevel">'+K(i(n(5)).call(e,"Burn Subtitles",{hash:{},data:t}))+'</label> <select id="subtitlesBurnLevel"> ',r=a.each.call(e,e&&e.subtitlesBurnLevels,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(60,_,t,e),data:t}),(r||0===r)&&(o+=r),
o+=' </select> <p class="help-block">'+K(i(n(5)).call(e,"Determines if the server should burn in subtitles when converting video depending on the subtitles format. Avoiding burn in improves server performance and is only supported by the HTML5 player.",{hash:{},data:t}))+"</p> </div> "}function _(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||!1===r?r:r.subtitlesBurnLevel),{hash:{},
inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function V(e,t){var r,o="";return o+=' \x3c!-- <h4 class="settings-header advanced-setting">'+K(i(n(5)).call(e,"Video",{hash:{},data:t}))+'</h4> <div class="form-group advanced-setting"> <label class="control-label"> <input type="checkbox" id="player.hardwareDecodingEnabled" ',r=a.if.call(e,(r=e&&e.deviceSettings,
null==r||!1===r?r:r["player.hardwareDecodingEnabled"]),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K(i(n(5)).call(e,"Use Hardware Decoding",{hash:{},data:t}))+' </label> <p class="help-block">'+K(i(n(5)).call(e,"Hardware decoding may improve video playback performance. Disable this setting if you encounter unexpected playback problems.",{hash:{},data:t}))+"</p> </div> --\x3e "}function H(e,t,a){var r,o="";return o+=' <option value="'+K((r=e&&e.value,
typeof r===W?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||!1===r?r:r.extrasPrefixCount),{hash:{},inverse:Z.noop,fn:Z.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+=">"+K(i(n(5)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function Q(e,t){var r,o="";return o+=' <h4 class="settings-header advanced-setting">'+K(i(n(5)).call(e,"Chromecast",{hash:{},data:t
}))+'</h4> <div class="form-group advanced-setting"> <label class="control-label"> <input type="checkbox" id="audioForceMultiChannel" ',r=a.if.call(e,(r=e&&e.experienceSettings,null==r||!1===r?r:r.audioForceMultiChannel),{hash:{},inverse:Z.noop,fn:Z.program(5,u,t),data:t}),(r||0===r)&&(o+=r),o+="> "+K(i(n(5)).call(e,"Force multi-channel audio support",{hash:{},data:t
}))+' </label> <p class="help-block">'+K(i(n(5)).call(e,"Forces Chromecast to allow six channel surround sound whether or not the device reports support.",{hash:{},data:t}))+"</p> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var Y,G="",W="function",K=this.escapeExpression,Z=this;return G+='<div class="filter-bar"> <button class="toggle-advanced-btn btn btn-sm btn-default pull-right basic-setting">'+K(i(n(5)).call(t,"Show Advanced",{hash:{},data:o
}))+'</button> <button class="toggle-advanced-btn btn btn-sm btn-default pull-right advanced-setting">'+K(i(n(5)).call(t,"Hide Advanced",{hash:{},data:o}))+'</button> </div> <div class="row"> <div class="col-sm-12 col-md-12"> <form id="web-settings-form"> <div id="general-web-group" class="settings-group"> <h4 class="version-title"> '+K(i(n(5)).call(t,"Version",{hash:{},data:o}))+" "+K((Y=t&&t.version,
typeof Y===W?Y.apply(t):Y))+' </h4> <div class="form-group"> <label for="language">'+K(i(n(5)).call(t,"Language",{hash:{},data:o}))+'</label> <select id="language"> ',Y=a.each.call(t,t&&t.languages,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(1,s,o,t),data:o}),(Y||0===Y)&&(G+=Y),G+=' </select> <p class="help-block">'+K(i(n(5)).call(t,"Help us translate this app into your language {1}here{2}.",'<a href="https://transifex.com/plex-1/plex-web" target="_blank">',"</a>",{hash:{},data:o
}))+"</p> </div> ",Y=a.if.call(t,t&&t.hasTypeFirst,{hash:{},inverse:Z.noop,fn:Z.program(4,c,o),data:o}),(Y||0===Y)&&(G+=Y),G+=" ",Y=a.if.call(t,t&&t.hasHome,{hash:{},inverse:Z.noop,fn:Z.program(7,d,o),data:o}),(Y||0===Y)&&(G+=Y),G+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="playThemeMusic" ',Y=a.if.call(t,(Y=t&&t.experienceSettings,null==Y||!1===Y?Y:Y.playThemeMusic),{hash:{},inverse:Z.noop,fn:Z.program(5,u,o),data:o}),(Y||0===Y)&&(G+=Y),
G+="> "+K(i(n(5)).call(t,"Play Theme Music",{hash:{},data:o}))+' </label> <p class="help-block">'+K(i(n(5)).call(t,"Automatically play theme music in the background when available.",{hash:{},data:o}))+'</p> </div> <div class="form-group advanced-setting"> <label class="control-label"> <input type="checkbox" id="companion" ',Y=a.if.call(t,(Y=t&&t.settings,null==Y||!1===Y?Y:Y.companion),{hash:{},inverse:Z.noop,fn:Z.program(5,u,o),data:o}),(Y||0===Y)&&(G+=Y),
G+="> "+K(i(n(5)).call(t,"Advertise as player",{hash:{},data:o}))+' </label> <p class="help-block">'+K(i(n(5)).call(t,"Allow other Plex apps to fling content to this device and control it remotely.",{hash:{},data:o}))+'</p> </div> <div class="form-group advanced-setting"> <label for="allowHttpFallback">'+K(i(n(5)).call(t,"Allow Fallback to Insecure Connections",{hash:{},data:o}))+'</label> <select id="allowHttpFallback"> ',Y=a.each.call(t,t&&t.httpFallbackOptions,{hash:{},inverse:Z.noop,
fn:Z.programWithDepth(10,h,o,t),data:o}),(Y||0===Y)&&(G+=Y),G+=' </select> <p class="help-block">'+K(i(n(5)).call(t,"Allow this browser to make insecure connections to Plex Media Server if secure connections fail.",{hash:{},data:o}))+'</p> </div> <div class="form-group"> <label for="timeFormat">'+K(i(n(5)).call(t,"Time Format",{hash:{},data:o}))+'</label> <select id="timeFormat"> ',Y=a.each.call(t,t&&t.timeFormats,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(12,f,o,t),data:o}),
(Y||0===Y)&&(G+=Y),G+=" </select> </div> ",Y=a.if.call(t,t&&t.isQtDesktop,{hash:{},inverse:Z.noop,fn:Z.program(14,v,o),data:o}),(Y||0===Y)&&(G+=Y),G+=' </div> <div id="quality-web-group" class="settings-group"> ',Y=a.if.call(t,t&&t.canPlayAdaptiveBitrate,{hash:{},inverse:Z.noop,fn:Z.program(17,m,o),data:o}),(Y||0===Y)&&(G+=Y),G+=' <h4 class="',Y=a.if.call(t,t&&t.canPlayAdaptiveBitrate,{hash:{},inverse:Z.program(21,b,o),fn:Z.program(19,y,o),data:o}),(Y||0===Y)&&(G+=Y),
G+='">'+K(i(n(5)).call(t,"Internet Streaming",{hash:{},data:o}))+'</h4> <div class="form-group"> <label for="remoteQuality">'+K(i(n(5)).call(t,"Video quality",{hash:{},data:o}))+'</label> <select id="remoteQuality" data-type="int"> <option value="-1">'+K(i(n(5)).call(t,"Maximum",{hash:{},data:o}))+"</option> ",Y=a.each.call(t,t&&t.availableQualities,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(23,I,o,t),data:o}),(Y||0===Y)&&(G+=Y),
G+=' </select> <p class="help-block">'+K(i(n(5)).call(t,"Set the default quality for streaming video over the internet. If quality is set too high, videos will start slowly and pause frequently.",{hash:{},data:o}))+'</p> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="remoteSmallVideoAtOriginalQuality" ',Y=a.if.call(t,(Y=t&&t.experienceSettings,null==Y||!1===Y?Y:Y.remoteSmallVideoAtOriginalQuality),{hash:{},inverse:Z.noop,fn:Z.program(5,u,o),data:o}),
(Y||0===Y)&&(G+=Y),G+="> "+K(i(n(5)).call(t,"Play smaller videos at original quality",{hash:{},data:o}))+' </label> <p class="help-block"> '+K(i(n(5)).call(t,"When a video file is smaller than the quality above, try playing the original video without converting. This preserves full quality, but playback may pause frequently.",{hash:{},data:o}))+" ",Y=a.if.call(t,t&&t.canPlayAdaptiveBitrate,{hash:{},inverse:Z.noop,fn:Z.program(25,S,o),data:o}),(Y||0===Y)&&(G+=Y),
G+=' </p> </div> <h4 class="settings-header">'+K(i(n(5)).call(t,"Home Streaming",{hash:{},data:o}))+'</h4> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="useHomeStreamingRecommendedSettings" ',Y=a.if.call(t,(Y=t&&t.experienceSettings,null==Y||!1===Y?Y:Y.useHomeStreamingRecommendedSettings),{hash:{},inverse:Z.noop,fn:Z.program(5,u,o),data:o}),(Y||0===Y)&&(G+=Y),G+="> "+K(i(n(5)).call(t,"Use recommended settings",{hash:{},data:o
}))+' </label> <p class="help-block recommended-home-streaming-settings">'+K(i(n(5)).call(t,"All compatible videos will play at original quality. Incompatible videos will be converted at maximum quality.",{hash:{},data:o}))+'</p> </div> <div class="form-group custom-home-streaming-settings"> <label for="localQuality">'+K(i(n(5)).call(t,"Video quality",{hash:{},data:o}))+'</label> <select id="localQuality" data-type="int"> <option value="-1">'+K(i(n(5)).call(t,"Maximum",{hash:{},data:o
}))+"</option> ",Y=a.each.call(t,t&&t.availableQualities,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(27,M,o,t),data:o}),(Y||0===Y)&&(G+=Y),G+=' </select> <p class="help-block">'+K(i(n(5)).call(t,"Choose the default video quality to use for local Wi-Fi streaming on home networks. If quality is set too high, videos will start slowly and pause frequently.",{hash:{},data:o
}))+'</p> </div> </div> <div id="debug-web-group" class="settings-group"> <div class="form-group"> <label for="debugLevel">'+K(i(n(5)).call(t,"Debug Level",{hash:{},data:o}))+'</label> <select id="debugLevel" data-type="int"> ',Y=a.each.call(t,t&&t.debugLevels,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(29,D,o,t),data:o}),(Y||0===Y)&&(G+=Y),G+=' </select> <p class="help-block">'+K(i(n(5)).call(t,"You can view the debug logs {1}here{2}.",'<a href="#!/logs">',"</a>",{hash:{},data:o
}))+"</p> </div> ",Y=a.if.call(t,t&&t.isNinja,{hash:{},inverse:Z.noop,fn:Z.program(31,C,o),data:o}),(Y||0===Y)&&(G+=Y),G+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="directPlay" ',Y=a.if.call(t,(Y=t&&t.settings,null==Y||!1===Y?Y:Y.directPlay),{hash:{},inverse:Z.noop,fn:Z.program(5,u,o),data:o}),(Y||0===Y)&&(G+=Y),G+="> "+K(i(n(5)).call(t,"Direct Play",{hash:{},data:o}))+' </label> <p class="help-block"> ',Y=a.if.call(t,t&&t.isHybridPlatform,{hash:{},
inverse:Z.program(44,x,o),fn:Z.program(42,A,o),data:o}),(Y||0===Y)&&(G+=Y),G+=' </p> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="directStream" ',Y=a.if.call(t,(Y=t&&t.settings,null==Y||!1===Y?Y:Y.directStream),{hash:{},inverse:Z.noop,fn:Z.program(5,u,o),data:o}),(Y||0===Y)&&(G+=Y),G+="> "+K(i(n(5)).call(t,"Direct Stream",{hash:{},data:o
}))+' </label> <p class="help-block">'+K(i(n(5)).call(t,"Allows the server to copy compatible audio and video streams without converting them.",{hash:{},data:o}))+"</p> </div> ",Y=a.if.call(t,t&&t.canDebugAdaptiveBitrate,{hash:{},inverse:Z.noop,fn:Z.program(46,N,o),data:o}),(Y||0===Y)&&(G+=Y),G+=" ",Y=a.if.call(t,t&&t.canForceVideoAds,{hash:{},inverse:Z.noop,fn:Z.program(48,L,o),data:o}),(Y||0===Y)&&(G+=Y),
G+=' </div> <div id="player-web-group" class="settings-group"> <h4 class="settings-header-first ',Y=a.if.call(t,t&&t.isPMPDesktop,{hash:{},inverse:Z.noop,fn:Z.program(50,k,o),data:o}),(Y||0===Y)&&(G+=Y),G+='">'+K(i(n(5)).call(t,"Audio & Subtitles",{hash:{},data:o}))+'</h4> <div class="form-group advanced-setting"> <label for="audioBoost">'+K(i(n(5)).call(t,"Multi-Channel Audio Boost",{hash:{},data:o}))+'</label> <select id="audioBoost" data-type="int"> ',Y=a.each.call(t,t&&t.audioBoostLevels,{
hash:{},inverse:Z.noop,fn:Z.programWithDepth(52,R,o,t),data:o}),(Y||0===Y)&&(G+=Y),G+=' </select> <p class="help-block">'+K(i(n(5)).call(t,"Boost volume when converting multi-channel audio to stereo.",{hash:{},data:o}))+"</p> </div> ",Y=a.if.call(t,t&&t.isQtDesktop,{hash:{},inverse:Z.noop,fn:Z.program(54,z,o),data:o}),(Y||0===Y)&&(G+=Y),G+=" ",Y=a.if.call(t,t&&t.hasSubtitleSize,{hash:{},inverse:Z.noop,fn:Z.program(56,U,o),data:o}),(Y||0===Y)&&(G+=Y),G+=" ",
Y=a.if.call(t,t&&t.hasSubtitleBurnLevel,{hash:{},inverse:Z.noop,fn:Z.program(59,F,o),data:o}),(Y||0===Y)&&(G+=Y),G+=" ",Y=a.if.call(t,t&&t.isQtDesktop,{hash:{},inverse:Z.noop,fn:Z.program(62,V,o),data:o}),(Y||0===Y)&&(G+=Y),G+=' <h4 class="settings-header">'+K(i(n(5)).call(t,"Extras",{hash:{},data:o}))+'</h4> <div class="form-group"> <label for="extrasPrefixCount">'+K(i(n(5)).call(t,"Cinema Trailers to Play Before Movies",{hash:{},data:o
}))+'</label> <select id="extrasPrefixCount" data-type="int"> ',Y=a.each.call(t,t&&t.extrasPrefixCounts,{hash:{},inverse:Z.noop,fn:Z.programWithDepth(64,H,o,t),data:o}),(Y||0===Y)&&(G+=Y),G+=" </select> </div> ",Y=a.unless.call(t,t&&t.isHybridPlatform,{hash:{},inverse:Z.noop,fn:Z.program(66,Q,o),data:o}),(Y||0===Y)&&(G+=Y),
G+=' </div> <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+K(i(n(5)).call(t,"Save Changes",{hash:{},data:o}))+'</span> </button> <span class="form-message"></span> </div> </form> </div> </div> '})},function(e,t,n){"use strict";var i=n(306),a=n(4841),r=i.a.extend({controller:new a.a,appRoutes:{"!/setup/skipSignIn?forwardUrl=:forwardUrl":"setupSkipSignIn",
"!/setup/library":"setupLibrary","!/setup/channels":"setupChannels","!/setup/complete":"setupComplete","!/setup(/:serverID)":"setupBasic"}});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(16),r=n(307),o=n(86),s=n(30),l=n(1788),c=n(4842),u=r.a.extend({setupBasic:function(e){var t;t=e?{serverID:e}:{primaryServer:!0},this.populateView(t).done(function(e){i.a.trigger("show:view",new c.a({model:e.server,subset:"setupBasic"}))})},setupLibrary:function(){this.populateView({primaryServer:!0
}).done(function(e){i.a.trigger("show:view",new c.a({model:e.server,subset:"setupLibrary"}))})},setupChannels:function(){this.populateView({primaryServer:!0}).done(function(e){i.a.trigger("show:view",new c.a({model:e.server,subset:"setupChannels"}))})},setupComplete:function(){this.populateView({primaryServer:!0}).done(function(e){i.a.trigger("show:view",new c.a({model:e.server,subset:"setupComplete"}))})},setupSkipSignIn:function(e){this.populateView({primaryServer:!0}).then(function(){
var e=Object(a.c)("appModel"),t=e.get("primaryServer");return Object(l.a)(t)}).then(function(){Object(a.c)("metrics").trackClick({page:s._2,action:o.U,firstRun:!0}),window.location.href=e})}});t.a=u},function(e,t,n){"use strict";function i(e){return{setupSignIn:b.a,setupIntro:D.a,setupLoading:j.a,setupError:M.a,setupBasic:I.a,setupLibrary:C.a,setupComplete:S.a}[e]}
var a=n(13),r=n.n(a),o=n(22),s=n(10),l=n.n(s),c=n(19),u=n(32),d=n(16),p=n(43),h=n(86),f=n(30),v=n(79),g=n(693),m=n(1788),y=n(391),b=n(1624),I=n(4843),S=n(4845),M=n(4852),D=n(4854),C=n(4859),j=n(4864),P=n(4866),O=n.n(P),T={setupIntro:"intro",setupError:"error",setupBasic:"name",setupLibrary:"library",setupComplete:"complete"},E=["com.plexapp.agents.imdb","com.plexapp.agents.thetvdb","com.plexapp.agents.lastfm"],w=o.a.Layout.extend({className:"container",template:O.a,maxAttempts:120,ui:{
header:".setup-header"},regions:{container:".setup-container"},events:{"click .segment-btn":"onNavClick","click .next-btn":"onNavClick","click .done-btn":"onDoneClick"},onlyAfterRender:["onAgentsSuccess","onAgentsFail","onUpdatesComplete"],initialize:function(e){l.a.bindAll(this,"start","onAgentsSuccess","onAgentsFail","onUpdatesComplete","onSkipSignInChange"),(0,Object(d.c)("appStore").dispatch)(Object(y.a)({allowLightPreset:!1})),this.subset=e.subset||"setupIntro",this.attempts=0,
this._visitedSubsets={},u.a.info("Starting the setup wizard");var t=Object(d.c)("appModel");this.listenTo(t,"change:skipSignIn",this.onSkipSignInChange)},serializeData:function(){return{subset:this.subset}},renderSubset:function(){var e=this;if(this.model.get("shared"))return void this.navigate("setupError");var t=Object(d.c)("appModel"),n=t.get("user"),i=n.server,a=i.populate();a.done(this.whenRendered(function(){n.get("features").get(v.b)?e.navigate("setupLoading"):e.navigate("setupIntro")})),
a.fail(function(){t.get("primaryServer").get("pmp").get("settings").fetch().then(function(e){return!0===e.get("AcceptedEULA").get("value")?r.a.Deferred().resolve():r.a.Deferred().reject()}).then(e.whenRendered(function(){e.navigate("setupIntro")})).fail(e.whenRendered(function(){var n=t.get("skipSignIn"),a=i.get("isUnavailable");e.navigate(n||a?"setupIntro":"setupSignIn")}))})},start:function(){
if(this.attempts>=this.maxAttempts)return u.a.error("Failed to start the setup wizard after "+this.attempts+" attempts"),void this.navigate("setupError");this.attempts++;var e=this.model.get("startState");if(e)Object(u.a)("Waiting for server to start ("+e+")"),this.model.fetch().done(l.a.delay(this.start,500));else{var t=new g.a([],{server:this.model}),n=t.fetch({scope:"page",timeout:0});n.done(this.onAgentsSuccess),n.fail(this.onAgentsFail)}},navigate:function(e){
var t="setupIntro"===e,n="setupSignIn"===e,a="setupLoading"===e,r=i(e),o=T[e];this.previousSubset=this.subset,this.subset=e,o&&Object(d.c)("metrics").trackView({page:f._0,pane:o,firstRun:!0});var s=!this._visitedSubsets[e];this._visitedSubsets[e]=!0;var l=new r({model:this.model,isFirstRun:!0,isFirstVisitToSubset:s});this.container.show(l),this.ui.header.toggleClass("hidden",t||n),this.$el.addClass(e),this.previousSubset!==e&&this.$el.removeClass(this.previousSubset),a&&this.start()},
onRender:function(){Object(d.c)("appModel").set("isFirstRun",!0),this.renderSubset()},onClose:function(){Object(d.c)("appModel").set("isFirstRun",!1)},onAgentsSuccess:function(e){Object(u.a)("Looking for a core agent");var t=E.find(function(t){return e.get(t)});t?(Object(u.a)(t+" found"),Object(m.a)(this.model),p.a.execute("updateChannel",{server:this.model,silent:!0}).always(this.onUpdatesComplete)):(u.a.error("No core agents found"),this.navigate("setupError"))},onAgentsFail:function(){
u.a.warn("Unable to request agents"),l.a.delay(this.start,500)},onUpdatesComplete:function(){this.navigate("setupBasic")},onNavClick:function(e){e.preventDefault();var t=r()(e.currentTarget),n=t.data("subset");t.hasClass("segment-btn")&&"setupBasic"===this.subset&&this.container.currentView?(e.preventDefault(),this.container.currentView.submit()):(this.navigate(n),c.a.trigger("navigate",n,{trigger:!1}))},onDoneClick:function(e){e.preventDefault(),Object(d.c)("metrics").trackClick({page:f._0,
action:h.i,firstRun:!0}),c.a.trigger("navigate","dashboard")},onSkipSignInChange:function(){this.renderSubset()}});t.a=w},function(e,t,n){"use strict";var i=n(2),a=(n.n(i),n(13)),r=n.n(a),o=n(22),s=n(0),l=(n.n(s),n(129)),c=(n.n(l),n(11),n(10)),u=n.n(c),d=n(19),p=n(180),h=n(16),f=n(43),v=n(86),g=(n(138),n(30)),m=n(3),y=(n(554),n(4844)),b=n.n(y),I=o.a.ItemView.extend({className:"setup-basic-container",template:b.a,ui:{modalContainer:".modal-container",connectCheckbox:"#connect",
publishServerCheckbox:"#PublishServerOnPlexOnlineKey",submitBtn:".submit-btn",nextBtn:".next-btn"},collectionEvents:{reset:"render"},events:{"change input[id]":"onInputChange","submit #setup-basic-form":"onSubmit","change #PublishServerOnPlexOnlineKey":"onPublishSettingChange"},initialize:function(){u.a.bindAll(this,"onPlexPassModalClose"),this.collection=this.model.get("pmp").get("settings"),this.collection.populate({reset:!0}),this.model.isVersionOrNewer("0.9.15.5")?this.changes={
PublishServerOnPlexOnlineKey:1}:this.changes={FirstRun:0,PublishServerOnPlexOnlineKey:1};var e=this.model.get("superToken");e&&(this.changes.PlexOnlineToken=e);var t=Object(h.c)("appModel"),n=t.get("user").get("hasPlexSubscription");this.isPlexPassModalOpen=!this.model.get("isDesktop")&&!n},serializeData:function(){var e=this.model.toJSON(),t=this.collection.get("FriendlyName"),n=this.collection.get("PublishServerOnPlexOnlineKey");return{server:e,friendlyNameSetting:t?t.toJSON():null,
publishSetting:n?n.toJSON():null}},mountReact:function(){},unmountReact:function(){},submit:function(){var e=this,t=this.ui.submitBtn;if(!t.hasClass("active")){t.addClass("active"),Object(h.c)("metrics").trackClick({action:v.O,page:g._0,pane:"name",firstRun:!0,value:this.ui.publishServerCheckbox.is(":checked")});var n=this.save();n=n.done(function(){e.ui.nextBtn.click()}),n.always(function(){t.removeClass("active")})}},save:function(){var e=this;return this.saveChanges().then(function(){
return e.claimServer()})},saveChanges:function(){return(u.a.isEmpty(this.changes)?r.a.Deferred().resolve().promise():this.collection.first().save(this.changes)).then(null,function(){d.a.trigger("show:alert",{type:"error",message:Object(m.default)("There was a problem saving these settings.")})})},claimServer:function(){var e=this;if(!this.model.supports("claimServer")||this.model.get("isClaimed")||this.model.get("superToken"))return r.a.Deferred().resolve().promise()
;var t=Object(h.c)("appModel"),n=t.get("cloudServer");return Object(p.a)(n.populate().then(function(){return f.a.execute("signInServer",{claim:!0,cloudAccount:e.model.get("pmp").get("cloudAccount")}).then(null,function(){d.a.trigger("show:alert",{type:"error",message:Object(m.default)("There was a problem claiming this server.")})})}))},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.unmountReact()},onInputChange:function(e){
var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked?1:0),this.changes[t.id]=n},onSubmit:function(e){e.preventDefault(),this.submit()},onPlexPassModalClose:function(){this.isPlexPassModalOpen=!1,this.mountReact()}});t.a=I},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o=""
;return o+=' <div class="setup-basic-form-group form-group"> <p class="text-muted"> '+f(i(n(5)).call(e,"Give it a friendly name to help identify it in Plex apps and on your network.",{hash:{},data:t}))+' </p> <input type="text" id="'+f((r=e&&e.friendlyNameSetting,r=null==r||!1===r?r:r.id,typeof r===h?r.apply(e):r))+'" class="form-control" value="',r=a.if.call(e,(r=e&&e.friendlyNameSetting,null==r||!1===r?r:r.value),{hash:{},inverse:v.program(4,c,t),fn:v.program(2,l,t),data:t}),
(r||0===r)&&(o+=r),o+='" placeholder="'+f((r=e&&e.server,r=null==r||!1===r?r:r.friendlyName,typeof r===h?r.apply(e):r))+'"> </div> '}function l(e,t){var n;return f((n=e&&e.friendlyNameSetting,n=null==n||!1===n?n:n.value,typeof n===h?n.apply(e):n))}function c(e,t){var n;return f((n=e&&e.server,n=null==n||!1===n?n:n.friendlyName,typeof n===h?n.apply(e):n))}function u(e,t){var a,r=""
;return r+=' <div class="setup-basic-form-group form-group"> <div class="publish-checkbox checkbox"> <label for="'+f((a=e&&e.publishSetting,a=null==a||!1===a?a:a.id,typeof a===h?a.apply(e):a))+'"> <input type="checkbox" id="'+f((a=e&&e.publishSetting,a=null==a||!1===a?a:a.id,typeof a===h?a.apply(e):a))+'" checked> '+f(i(n(5)).call(e,"Allow me to access my media outside my home",{hash:{},data:t
}))+' </label> </div> <p class="text-muted"> '+f(i(n(5)).call(e,"Plex will attempt to automatically configure your network to allow Plex apps outside your home to access Plex Media Server on this computer. Remember this computer will need to be turned on to access your media.",{hash:{},data:t}))+" </p> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h="function",f=this.escapeExpression,v=this
;return p+='<div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h4>'+f(i(n(5)).call(t,"Great, we found a server!",{hash:{},data:o}))+'</h4> <form id="setup-basic-form" class="settings-container"> ',d=a.if.call(t,t&&t.friendlyNameSetting,{hash:{},inverse:v.noop,fn:v.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=" ",d=a.if.call(t,t&&t.publishSetting,{hash:{},inverse:v.noop,fn:v.program(6,u,o),data:o}),(d||0===d)&&(p+=d),
p+=' <div class="setup-footer"> <button type="submit" class="submit-btn btn btn-primary btn-loading btn-lg"> <div class="loading loading-sm"></div> <span class="btn-label">'+f(i(n(5)).call(t,"Next",{hash:{},data:o}))+'</span> </button> <button class="next-btn hidden" data-subset="setupLibrary"></button> </div> </form> </div> </div> <div class="modal-container"></div> '})},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(13),o=n.n(r),s=n(22),l=n(0),c=(n.n(l),
n(129)),u=n.n(c),d=n(11),p=n(10),h=n.n(p),f=n(19),v=n(266),g=n(16),m=n(86),y=n(138),b=n(30),I=n(79),S=n(1148),M=n(3),D=n(928),C=n(386),j=n(927),P=n(4846),O=n(4850),T=n.n(O),E=n(4851),w=n.n(E),A=s.a.ItemView.extend({className:"setup-complete-container",template:w.a,ui:{modalContainer:".modal-container",submitBtn:".submit-btn",doneBtn:".done-btn"},collectionEvents:{reset:"render"},events:{"change input[id]":"onInputChange","submit #setup-complete-form":"onSubmit"},initialize:function(){
h.a.bindAll(this,"onPlexPassLiteModalClose","onDVRSetupModalClose"),this.collection=this.model.get("pmp").get("settings"),this.collection.populate({reset:!0}),this.changes={},this.isPlexPassLiteModalOpen=!1,this.isDVRSetupModalOpen=!1;var e=g.c("appModel"),t=e.get("user");t.get("isSignedIn")&&t.fetch().done(this.whenRendered(function(){var e=this;t.get("subscription").get("plan")===S.a?(this.isPlexPassLiteModalOpen=!0,
this.mountReact()):t.get("features").get(I.b)?this.fetchDVRs().then(function(){e.isDVRSetupModalOpen=!0,e.mountReact()},function(){e.ui.submitBtn.removeClass("active")}):this.ui.submitBtn.removeClass("active")}))},serializeData:function(){var e=this.collection.get("collectUsageData");return{devicesImg:T.a,collectUsageDataSetting:e?e.toJSON():null}},mountReact:function(){u.a.render(a()("div",{},void 0,a()(P.a,{metricsProperties:{context:y.l,firstRun:!0},isOpen:this.isPlexPassLiteModalOpen,
onModalClose:this.onPlexPassLiteModalClose}),this.isDVRSetupModalOpen&&a()(d.Provider,{store:g.c("appStore")},void 0,a()(j.a,{serverEntityID:this.model.entityID(),isModalOpen:this.isDVRSetupModalOpen,onModalClose:this.onDVRSetupModalClose}))),this.ui.modalContainer[0])},unmountReact:function(){this.isRendered&&u.a.unmountComponentAtNode(this.ui.modalContainer[0])},fetchDVRs:function(){var e=o.a.Deferred();return new D.a([],{server:this.model}).fetch().then(function(t){t.filter(function(e){
return!e.get("parentID")&&e.get("status")===C.b.ALIVE}).length?e.resolve():e.reject()},function(){e.reject()}),e.promise()},submit:function(){var e=this.ui.submitBtn;if(!e.hasClass("active")){e.addClass("active");this.save().always(this.whenRendered(function(){this.ui.doneBtn.click(),e.removeClass("active")}))}},save:function(){this.saved=!0,h.a.has(this.changes,"collectUsageData")&&!this.changes.collectUsageData&&g.c("metrics").trackClick({action:m.F,page:b._0,pane:"complete",firstRun:!0})
;var e=this.collection.first().save(this.changes),t=this.model.get("sections").filter(function(e){return e.isNew()}).map(function(e){return e.save()}),n=o.a.when(e,Object(v.a)(t));return n.fail(function(){f.a.trigger("show:alert",{type:"error",message:Object(M.default)("There was a problem saving these settings.")})}),n},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.saved||this.save(),this.unmountReact()},onInputChange:function(e){
var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked?1:0),this.changes[t.id]=n},onSubmit:function(e){e.preventDefault(),this.submit()},onPlexPassLiteModalClose:function(){this.isPlexPassLiteModalOpen=!1,this.ui.submitBtn.removeClass("active"),this.mountReact()},onDVRSetupModalClose:function(){this.isDVRSetupModalOpen=!1,this.ui.submitBtn.removeClass("active"),this.mountReact()}});t.a=A},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose
;return r()(f.a,{size:g.e.LARGE,isOpen:t,metricsPage:p.R,metricsProperties:n,onModalClose:i},void 0,r()(v.a,{onModalClose:i},void 0,r()(d.a,{className:O.a.header},void 0,r()("div",{className:O.a.plexPassTitle},void 0,Object(h.default)("Plex Pass Lite")),Object(h.default)("Congratulations! You qualify for a free year of Plex Pass Lite!")),r()(c.a,{innerClassName:O.a.body},void 0,r()(j.a,{img:M.a,title:Object(h.default)("Mobile Sync"),
description:Object(h.default)("Enjoy your media offline on Android, iOS, and Windows devices")}),r()(j.a,{img:y.a,title:Object(h.default)("Camera Upload"),description:Object(h.default)("Sync photos from your mobile devices to Plex Media Server")}),r()(j.a,{img:I.a,title:Object(h.default)("Cloud Sync"),description:Object(h.default)("Sync media to the cloud and enjoy it anywhere there\u2019s internet")}),r()(j.a,{img:C.a,title:Object(h.default)("Plex Home"),
description:Object(h.default)("Parental controls and fast user switching")})),r()(u.a,{className:O.a.footer},void 0,r()(l.a,{kind:g.b.PRIMARY,size:g.e.LARGE,onPress:i},void 0,Object(h.default)("Hooray, thanks!")))))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),n(42)),c=n(61),u=n(88),d=n(84),p=n(30),h=n(3),f=n(114),v=n(98),g=n(24),m=n(1398),y=n.n(m),b=n(4847),I=n.n(b),S=n(1399),M=n.n(S),D=n(4848),C=n.n(D),j=n(1400),P=n(4849),O=n.n(P);t.a=i},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1IDcpIj4KICAgIDxwYXRoIGQ9Ik0yOC44NDQsNy40MDcgQzI3LjU2NSw2LjE3MiAyNS45MDcsNS40ODQgMjQuMTM3LDUuNDQzIEMyMi40ODIsMi4zMjYgMTkuMjA0LDAuMzM0IDE1LjY2NiwwLjMzNCBDMTAuODQyLDAuMzM0IDYuODAyLDMuOTI3IDYuMTcsOC42MzkgQzQuODAyLDguNTM4IDMuNDMxLDguOTYyIDIuMzQ1LDkuODQ2IEMxLjA2NiwxMC44ODUgMC4zMzMsMTIuNDI2IDAuMzMzLDE0LjA3NCBDMC4zMzMsMTUuNjUxIDAuODIsMTYuOTMzIDEuNzgyLDE3Ljg3OSBDMy40MDEsMTkuNDc0IDUuNzkxLDE5LjUyMyA2LjA4NSwxOS41MjMgQzYuMDk4LDE5LjUyMyA2LjEwOCwxOS41MjMgNi4xMTMsMTkuNTIzIEM2LjQ4LDE5LjUxOCA2Ljc3NCwxOS4yMTUgNi43NjksMTguODQ3IEM2Ljc2NCwxOC40ODIgNi40NjUsMTguMTkgNi4xMDIsMTguMTkgQzYuMDk5LDE4LjE5IDYuMDk1LDE4LjE5IDYuMDkxLDE4LjE5IEM2LjA3NCwxOC4xODcgNC4wMiwxOC4yMTEgMi43MTgsMTYuOTI5IEMyLjAyMSwxNi4yNDIgMS42NjYsMTUuMjgxIDEuNjY2LDE0LjA3NCBDMS42NjYsMTIuODI5IDIuMjE5LDExLjY2NiAzLjE4NiwxMC44ODEgQzQuMTUzLDEwLjA5NiA1LjQwNiw5Ljc5MiA2LjYzLDEwLjA0NiBDNi44MjEsMTAuMDg1IDcuMDE3LDEwLjA0MiA3LjE3MSw5LjkyMyBDNy4zMjQsOS44MDYgNy40MTksOS42MjcgNy40MzEsOS40MzIgQzcuNjg4LDUuMDc5IDExLjMwNCwxLjY2NyAxNS42NjYsMS42NjcgQzE4LjgzNSwxLjY2NyAyMS43NjIsMy41MjQgMjMuMTIzLDYuMzk4IEMyMy4yMzYsNi42MzkgMjMuNDQ3LDYuNzk0IDIzLjc1MSw2Ljc3OSBDMjUuMjk5LDYuNzIyIDI2Ljc5OCw3LjI4NyAyNy45MTksOC4zNjcgQzI5LjA0NCw5LjQ1NCAyOS42NjYsMTAuOTE1IDI5LjY2NiwxMi40NzkgQzI5LjY2NiwxNy40NDIgMjQuNzE3LDE4LjE2NiAyNC41MDYsMTguMTk1IEMyNC4xNDIsMTguMjQ0IDIzLjg4NSwxOC41NzkgMjMuOTMzLDE4Ljk0MyBDMjMuOTgxLDE5LjMwNyAyNC4zMjYsMTkuNTcgMjQuNjgsMTkuNTE2IEMyNC43NDQsMTkuNTA4IDMxLDE4LjYyMyAzMSwxMi40NzkgQzMxLDEwLjU1IDMwLjIzNSw4Ljc0OCAyOC44NDQsNy40MDcgWiIvPgogICAgPHBhdGggZD0iTTE5Ljk1MSwxNS43NTYgQzE5LjYzNCwxNS45NDEgMTkuNTI0LDE2LjM0OCAxOS43MDgsMTYuNjY4IEMyMC4xMTcsMTcuMzczIDIwLjMzMywxOC4xOCAyMC4zMzMsMTkgQzIwLjMzMywyMS41NzMgMTguMjQsMjMuNjY3IDE1LjY2NiwyMy42NjcgQzEzLjA5MiwyMy42NjcgMTAuOTk5LDIxLjU3NCAxMC45OTksMTkgQzEwLjk5OSwxNi41MzIgMTIuOTMxLDE0LjUyNyAxNS4zNTksMTQuMzY0IEwxNC41MjgsMTUuMTk1IEMxNC4yNjgsMTUuNDU1IDE0LjI2OCwxNS44NzggMTQuNTI4LDE2LjEzOCBDMTQuNjU3LDE2LjI2OSAxNC44MjgsMTYuMzM0IDE0Ljk5OSwxNi4zMzQgQzE1LjE3LDE2LjMzNCAxNS4zNCwxNi4yNjkgMTUuNDcxLDE2LjEzOSBMMTcuNDcsMTQuMTM5IEMxNy41MzMsMTQuMDc4IDE3LjU4MiwxNC4wMDMgMTcuNjE1LDEzLjkyMiBDMTcuNjgyLDEzLjc1OSAxNy42ODIsMTMuNTc1IDE3LjYxNSwxMy40MTMgQzE3LjU4MiwxMy4zMyAxNy41MzIsMTMuMjU3IDE3LjQ3LDEzLjE5NiBMMTUuNDcxLDExLjE5NiBDMTUuMjExLDEwLjkzNiAxNC43ODgsMTAuOTM2IDE0LjUyOCwxMS4xOTYgQzE0LjI2OCwxMS40NTYgMTQuMjY4LDExLjg3OSAxNC41MjgsMTIuMTM5IEwxNS40MTUsMTMuMDI3IEMxMi4yMjQsMTMuMTYyIDkuNjY2LDE1Ljc3OSA5LjY2NiwxOS4wMDIgQzkuNjY2LDIyLjMxIDEyLjM1OCwyNS4wMDIgMTUuNjY2LDI1LjAwMiBDMTguOTc0LDI1LjAwMiAyMS42NjYsMjIuMzEgMjEuNjY2LDE5LjAwMiBDMjEuNjY2LDE3Ljk0NiAyMS4zODcsMTYuOTA5IDIwLjg2MSwxNi4wMDEgQzIwLjY3NiwxNS42ODEgMjAuMjY1LDE1LjU3NCAxOS45NSwxNS43NTggTDE5Ljk1MSwxNS43NTYgWiIvPgogIDwvZz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSIjQ0M3QjE5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0IDQpIj4KICAgIDxwYXRoIGQ9Ik0yNiAyNS4zMzNDMjUuMjY1IDI1LjMzMyAyNC42NjcgMjUuOTMyIDI0LjY2NyAyNi42NjYgMjQuNjY3IDI3LjE1MyAyNC45NDMgMjcuNTYyIDI1LjMzNCAyNy43OTRMMjUuMzM0IDI4LjY2NkMyNS4zMzQgMjkuMDM0IDI1LjYzMyAyOS4zMzMgMjYuMDAxIDI5LjMzMyAyNi4zNjkgMjkuMzMzIDI2LjY2OCAyOS4wMzQgMjYuNjY4IDI4LjY2NkwyNi42NjggMjcuNzk0QzI3LjA1OSAyNy41NjIgMjcuMzM1IDI3LjE1MyAyNy4zMzUgMjYuNjY2IDI3LjMzNSAyNS45MzEgMjYuNzM2IDI1LjMzMyAyNi4wMDIgMjUuMzMzTDI2IDI1LjMzM3pNMjAuNjUxIDguNjY3QzIwLjY1MSAzLjg4OCAxNy4zNjIgMCAxMy4zMTggMCA5LjI3NCAwIDUuOTg1IDMuODg4IDUuOTg1IDguNjY3IDUuOTg1IDExLjcxIDcuMzIxIDE0LjM4NiA5LjMzNCAxNS45MzJMOS4zMzQgMTguODYzIDMuMDk3IDIxLjA5MUMxLjI0NSAyMS43NTIuMDAxIDIzLjUxOS4wMDEgMjUuNDg2TC4wMDEgMjguNjY3Qy4wMDEgMjkuMDM1LjMgMjkuMzM0LjY2OCAyOS4zMzRMMTYuNjY4IDI5LjMzNCAxNi42NjggMjguMDAxIDEuMzM1IDI4LjAwMSAxLjMzNSAyNS40ODZDMS4zMzUgMjQuMDgxIDIuMjI0IDIyLjgxOSAzLjU0NiAyMi4zNDdMMTAuMjI2IDE5Ljk2MkMxMC40OTEgMTkuODY3IDEwLjY2OSAxOS42MTUgMTAuNjY5IDE5LjMzNEwxMC42NjkgMTYuNzM5QzExLjQ5MyAxNy4xMTggMTIuMzg1IDE3LjMzNCAxMy4zMiAxNy4zMzQgMTQuMjY3IDE3LjMzNCAxNS4xNzEgMTcuMTEzIDE2LjAwMyAxNi43MjVMMTYuMDAzIDE5LjMzNCAxNy4zMzYgMTkuMzM0IDE3LjMzNiAxNS45MTFDMTkuMzMyIDE0LjM2IDIwLjY1MyAxMS42OTUgMjAuNjUzIDguNjY3TDIwLjY1MSA4LjY2N3pNMTMuMzE3IDEuMzMzQzE2LjI1NiAxLjMzMyAxOC43MDIgMy45MyAxOS4yMTQgNy4zNDQgMTkuMjA2IDcuMzQ1IDE5LjE5OCA3LjM0NCAxOS4xOSA3LjM0NSAxNy4yNTMgNy43MiAxNi4wNTQgNy4wODggMTQuOTE1IDUuMDk2IDE0Ljc5NSA0Ljg4NSAxNC41OTYgNC43NDkgMTQuMzIzIDQuNzYgMTQuMDc5IDQuNzY0IDEzLjg1OCA0LjkwMSAxMy43NDQgNS4xMTkgMTMuMTMxIDYuMjk5IDExLjA2MSA3LjMzNCA5LjMxNiA3LjMzNCA4LjYzOSA3LjMzNCA4LjA1NiA3LjIyMSA3LjQ4MSA2Ljk4NSA4LjEwNiAzLjc1IDEwLjQ4MSAxLjMzNCAxMy4zMTYgMS4zMzRMMTMuMzE3IDEuMzMzek03LjMxNyA4LjY2N0M3LjMxNyA4LjU1OSA3LjMyNiA4LjQ1NCA3LjMzIDguMzQ2IDcuOTU3IDguNTU3IDguNjAzIDguNjY3IDkuMzE3IDguNjY3IDExLjE1IDguNjY3IDEzLjE1OCA3Ljc5NiAxNC4yOTcgNi42IDE1LjM2IDguMDc5IDE2LjYxMiA4Ljc4MSAxOC4yMDQgOC43ODEgMTguNTU2IDguNzgxIDE4LjkzMSA4LjczNiAxOS4zMTcgOC42NjggMTkuMzE3IDEyLjcxMSAxNi42MjUgMTYgMTMuMzE3IDE2IDEwLjAwOSAxNiA3LjMxNyAxMi43MTEgNy4zMTcgOC42Njd6Ii8+CiAgICA8cGF0aCBkPSJNMzEuMzMzLDIyLjY2NyBMMzAuNjY2LDIyLjY2NyBMMzAuNjY2LDIyIEMzMC42NjYsMTkuNDI3IDI4LjU3MywxNy4zMzMgMjUuOTk5LDE3LjMzMyBDMjMuNDI1LDE3LjMzMyAyMS4zMzIsMTkuNDI2IDIxLjMzMiwyMiBMMjEuMzMyLDIyLjY2NyBMMjAuNjY1LDIyLjY2NyBDMjAuMjk3LDIyLjY2NyAxOS45OTgsMjIuOTY2IDE5Ljk5OCwyMy4zMzQgTDE5Ljk5OCwzMS4zMzQgQzE5Ljk5OCwzMS43MDIgMjAuMjk3LDMyLjAwMSAyMC42NjUsMzIuMDAxIEwzMS4zMzIsMzIuMDAxIEMzMS43LDMyLjAwMSAzMS45OTksMzEuNzAyIDMxLjk5OSwzMS4zMzQgTDMxLjk5OSwyMy4zMzQgQzMxLjk5OSwyMi45NjYgMzEuNywyMi42NjcgMzEuMzMyLDIyLjY2NyBMMzEuMzMzLDIyLjY2NyBaIE0yMi42NjcsMjIgQzIyLjY2NywyMC4xNjMgMjQuMTYzLDE4LjY2NyAyNiwxOC42NjcgQzI3LjgzNywxOC42NjcgMjkuMzMzLDIwLjE2MyAyOS4zMzMsMjIgTDI5LjMzMywyMi42NjcgTDIyLjY2NiwyMi42NjcgTDIyLjY2NiwyMiBMMjIuNjY3LDIyIFogTTMwLjY2NywzMC42NjcgTDIxLjMzNCwzMC42NjcgTDIxLjMzNCwyNCBMMzAuNjY3LDI0IEwzMC42NjcsMzAuNjY3IFoiLz4KICA8L2c+Cjwvc3ZnPgo="
},function(e,t){e.exports={plexPassTitle:"PlexPassLiteModal-plexPassTitle-yydxI PlexPassModalContent-plexPassTitle-3B6zq",header:"PlexPassLiteModal-header-3v_OD PlexPassModalContent-header-2D-A9 ModalHeader-modalHeader-1Kf9R",body:"PlexPassLiteModal-body-X7IaQ PlexPassModalContent-body-3BSt2 ModalBody-innerModalBody-36gmb",footer:"PlexPassLiteModal-footer-iGi6c PlexPassModalContent-footer-15_IJ ModalFooter-modalFooter-30WIB"}},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTQ4IiBoZWlnaHQ9IjM2MCIgdmlld0JveD0iMCAwIDU0OCAzNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjx0aXRsZT5Hcm91cDwvdGl0bGU+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0xOTYgMTczdjEzSDgxdi0xNCIvPjxtYXNrIGlkPSJqIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTE1IiBoZWlnaHQ9IjE0IiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik02LjUyMiAxNzNDMi45MiAxNzMgMCAxNzAuNjMxIDAgMTY3LjcxVjUuMjlDMCAyLjM3IDIuOTIgMCA2LjUyMiAwaDI2Mi45NTZDMjczLjA4IDAgMjc2IDIuMzY5IDI3NiA1LjI5djE2Mi40MmMwIDIuOTIxLTIuOTIgNS4yOS02LjUyMiA1LjI5SDYuNTIyeiIgaWQ9ImIiLz48bWFzayBpZD0iayIgeD0iMCIgeT0iMCIgd2lkdGg9IjI3NiIgaGVpZ2h0PSIxNzMiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2IiLz48L21hc2s+PHBhdGggaWQ9ImMiIGQ9Ik0xMyAxNjAuMTg1aDI0OS45MVYxM0gxM3oiLz48bWFzayBpZD0ibCIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0OS45MTEiIGhlaWdodD0iMTQ3LjE4NSIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYyIvPjwvbWFzaz48cmVjdCBpZD0iZCIgd2lkdGg9IjE5MiIgaGVpZ2h0PSIxNDAiIHJ4PSI2Ii8+PG1hc2sgaWQ9Im0iIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTIiIGhlaWdodD0iMTQwIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNkIi8+PC9tYXNrPjxwYXRoIGlkPSJlIiBkPSJNMjAgMTFoMTUydjExOEgyMHoiLz48bWFzayBpZD0ibiIgeD0iMCIgeT0iMCIgd2lkdGg9IjE1MiIgaGVpZ2h0PSIxMTgiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2UiLz48L21hc2s+PGNpcmNsZSBpZD0iZiIgY3g9IjEyIiBjeT0iNzAiIHI9IjYiLz48bWFzayBpZD0ibyIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNmIi8+PC9tYXNrPjxwYXRoIGlkPSJnIiBkPSJNMCAxOGg3MnY4NEgweiIvPjxtYXNrIGlkPSJwIiB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iODQiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2ciLz48L21hc2s+PGNpcmNsZSBpZD0iaCIgY3g9IjM2IiBjeT0iMTA5IiByPSI1Ii8+PG1hc2sgaWQ9InEiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjaCIvPjwvbWFzaz48cmVjdCBpZD0iaSIgd2lkdGg9IjcyIiBoZWlnaHQ9IjEyMCIgcng9IjguNCIvPjxtYXNrIGlkPSJyIiB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iMTIwIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNpIi8+PC9tYXNrPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3MiA4NykiPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI2opIiBzdHJva2Utd2lkdGg9IjYiIHhsaW5rOmhyZWY9IiNhIi8+PHVzZSBzdHJva2U9IiNCQkIiIG1hc2s9InVybCgjaykiIHN0cm9rZS13aWR0aD0iNiIgeGxpbms6aHJlZj0iI2IiLz48dXNlIHN0cm9rZT0iI0JCQiIgbWFzaz0idXJsKCNsKSIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjYyIvPjxwYXRoIGZpbGw9IiNGOEFEMTgiIGQ9Ik0xMzcuMDQyIDEyMC43NUgxMTdsMjIuMTktMzQuMzc1TDExNyA1MmgyMC4wNDJsMjIuMTkgMzQuMzc1eiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDIyMCkiPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI20pIiBzdHJva2Utd2lkdGg9IjYiIHhsaW5rOmhyZWY9IiNkIi8+PHVzZSBzdHJva2U9IiNCQkIiIG1hc2s9InVybCgjbikiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2UiLz48dXNlIHN0cm9rZT0iI0JCQiIgbWFzaz0idXJsKCNvKSIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjZiIvPjxjaXJjbGUgZmlsbD0iI0JCQiIgY3g9IjE4MCIgY3k9IjcwIiByPSIyIi8+PHBhdGggZmlsbD0iI0Y4QUQxOCIgZD0iTTk0LjU4IDEwMkg3NmwyMC42NDUtMzAuOTY4TDc2IDM4aDE4LjU4bDIwLjY0NiAzMy4wMzJ6Ii8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYwKSI+PHJlY3Qgd2lkdGg9IjcyIiBoZWlnaHQ9IjEyMCIgcng9IjguNCIvPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI3ApIiBzdHJva2Utd2lkdGg9IjQiIHhsaW5rOmhyZWY9IiNnIi8+PHVzZSBzdHJva2U9IiNCQkIiIG1hc2s9InVybCgjcSkiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2giLz48cmVjdCBmaWxsPSIjQkJCIiB4PSIzMSIgeT0iMTAiIHdpZHRoPSIxMC44IiBoZWlnaHQ9IjIuNCIgcng9IjEuMiIvPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI3IpIiBzdHJva2Utd2lkdGg9IjYiIHhsaW5rOmhyZWY9IiNpIi8+PHBhdGggZD0iTTM1LjAzMiA3OUgyNGwxMi4yNTgtMTguMzg3TDI0IDQxaDExLjAzMkw0Ny4yOSA2MC42MTN6IiBmaWxsPSIjRjhBRDE4Ii8+PC9nPjwvZz48L3N2Zz4="
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var r,o="";return o+=' <div class="checkbox"> <label for="'+p((r=e&&e.collectUsageDataSetting,r=null==r||!1===r?r:r.id,typeof r===d?r.apply(e):r))+'"> <input type="checkbox" id="'+p((r=e&&e.collectUsageDataSetting,r=null==r||!1===r?r:r.id,typeof r===d?r.apply(e):r))+'" name="'+p((r=e&&e.collectUsageDataSetting,r=null==r||!1===r?r:r.id,
typeof r===d?r.apply(e):r))+'" value="1" ',r=a.if.call(e,(r=e&&e.collectUsageDataSetting,null==r||!1===r?r:r.value),{hash:{},inverse:h.noop,fn:h.program(2,l,t),data:t}),(r||0===r)&&(o+=r),o+="> "+p(i(n(5)).call(e,"Send anonymous usage data to Plex",{hash:{},data:t}))+' </label> </div> <p class="setup-complete-help text-muted"> '+p(i(n(5)).call(e,"Help us improve everyone's Plex experience by sending anonymous usage data.",{hash:{},data:t}))+" </p> "}function l(e,t){return"checked"}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d="function",p=this.escapeExpression,h=this;return u+='<div class="row"> <div class="col-sm-6 col-sm-offset-3"> <div class="setup-apps-container"> <img class="setup-apps-image" src="'+p((c=t&&t.devicesImg,typeof c===d?c.apply(t):c))+'"> <a href="https://plex.tv/downloads" target="_blank" class="btn btn-default btn-lg">'+p(i(n(5)).call(t,"Get Plex Apps",{hash:{},data:o
}))+'</a> </div> <p class="text-muted">'+p(i(n(5)).call(t,"All set! Your Plex Media Server is working hard to find your media and make it beautiful. Grab the Plex app for all your favorite devices to get the most out of Plex and start streaming everywhere!",{hash:{},data:o}))+'</p> <form id="setup-complete-form" class="settings-container"> ',c=a.if.call(t,t&&t.collectUsageDataSetting,{hash:{},inverse:h.noop,fn:h.program(1,s,o),data:o}),(c||0===c)&&(u+=c),
u+=' <div class="setup-footer setup-done-footer"> <button class="next-btn btn btn-default btn-lg" data-subset="setupLibrary">'+p(i(n(5)).call(t,"Back",{hash:{},data:o}))+'</button> <button type="submit" class="submit-btn btn btn-primary btn-loading btn-lg active"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(5)).call(t,"Done",{hash:{},data:o
}))+'</span> </button> <button class="done-btn btn btn-primary btn-lg hidden"></button> </div> </form> </div> </div> <div class="modal-container"></div> '})},function(e,t,n){"use strict";var i=n(22),a=n(4853),r=n.n(a),o=i.a.ItemView.extend({className:"setup-error-container",template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a=""
;return a+=" <h1>"+d(i(n(5)).call(e,"Setup is not allowed for shared servers.",{hash:{},data:t}))+"</h1> "}function l(e,t){var a="";return a+=" <h1>"+d(i(n(5)).call(e,"A problem has been detected with a core component of Plex Media Server.",{hash:{},data:t
}))+'</h1> <h2 class="text-muted">'+d(i(n(5)).call(e,"Please visit the {1}forums{2} and provide your logs, as described {3}here{4}.",'<a href="https://forums.plex.tv" target="_blank">',"</a>",'<a href="http://support.plex.tv/hc/en-us/articles/200250417-Log-File-Locations" target="_blank">',"</a>",{hash:{},data:t}))+"</h2> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this
;return u+='<div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> ',c=a.if.call(t,t&&t.shared,{hash:{},inverse:p.program(3,l,o),fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=" </div> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(4855),r=n.n(a),o=n(4856),s=n.n(o),l=n(4857),c=n.n(l),u=n(4858),d=n.n(u),p=i.a.ItemView.extend({className:"setup-intro-container",template:d.a,serializeData:function(){return{computerImg:r.a,mediaImg:s.a,playImg:c.a}}});t.a=p},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODEwIiBoZWlnaHQ9IjIzMCIgdmlld0JveD0iMCAwIDgxMCAyMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjx0aXRsZT5QTVMg4oaSIENvbXB1dGVyPC90aXRsZT48ZGVmcz48cGF0aCBkPSJNMTU5LjU5NSAyMDcuNDc3Yy0uNDk0LTIuNDctMi42NS05LjczMi0zLjM0Ny0yMS40NDRIOTkuMzZjLS42OTggMTEuNzEyLTIuODUzIDE4Ljk3NC0zLjM0NiAyMS40NDQtLjk3NiA0Ljg4LTQuNzkgOC44MjktMTIuMDQgMTEuMDU5LTUuOTEyIDEuODE5LTUuMTU4IDEwLjY5MyAxLjY3NCAxMC42OTNoODQuMzE0YzYuODMxIDAgNy41ODctOC44NzMgMS42NzMtMTAuNjkzLTcuMjUtMi4yMy0xMS4wNjQtNi4xNzgtMTIuMDQtMTEuMDU5eiIgaWQ9ImEiLz48bWFzayBpZD0iZCIgeD0iMCIgeT0iMCIgd2lkdGg9Ijk1LjYzMyIgaGVpZ2h0PSI0My4xOTYiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTI1NiAxNDcuNXYzMS41NjRjMCA1LjUyNy00LjQ3IDEwLjAwOC05Ljk5NiAxMC4wMDhIOS45OTZjLTUuNTIgMC05Ljk5Ni00LjQ3Ni05Ljk5Ni0xMC4wMDhWMTAuMDAzQzAgNC40OCA0LjQ3IDAgOS45OTYgMGgyMzYuMDA4QzI1MS41MjQgMCAyNTYgNC40ODUgMjU2IDEwLjAwM1YxNDcuNXoiIGlkPSJiIi8+PG1hc2sgaWQ9ImUiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNTYiIGhlaWdodD0iMTg5LjA3MiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYiIvPjwvbWFzaz48Y2lyY2xlIGlkPSJjIiBjeD0iMTEwIiBjeT0iMTEwIiByPSIxMTAiLz48bWFzayBpZD0iZiIgeD0iMCIgeT0iMCIgd2lkdGg9IjIyMCIgaGVpZ2h0PSIyMjAiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2MiLz48L21hc2s+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTUzKSIgc3Ryb2tlPSIjQkJCIj48dXNlIG1hc2s9InVybCgjZCkiIHN0cm9rZS13aWR0aD0iNiIgeGxpbms6aHJlZj0iI2EiLz48dXNlIG1hc2s9InVybCgjZSkiIHN0cm9rZS13aWR0aD0iNiIgeGxpbms6aHJlZj0iI2IiLz48cGF0aCBkPSJNMS41IDE0Ny41aDI1My4xOTgiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUpIj48dXNlIHN0cm9rZT0iI0Y4QUQxOCIgbWFzaz0idXJsKCNmKSIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSIjMUYxRjFGIiB4bGluazpocmVmPSIjYyIvPjxwYXRoIGZpbGw9IiNGOEFEMTgiIGQ9Ik0xMTIuMTM0IDE3OS42NjdINzIuMTFsNDQuMzEtNjkuMDU2LTQ0LjMxLTY5LjA1NWg0MC4wMjNsNDQuMzEgNjkuMDU1eiIvPjwvZz48ZyBmaWxsPSIjQkJCIj48cGF0aCBkPSJNNTA0LjUgMTE1bC0xNCAxMy41di0yN3pNNDc5IDExOGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnoiLz48L2c+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s,l="",c=this.escapeExpression;return l+='<h2 class="setup-intro-header">'+c(i(n(5)).call(t,"How Plex Works",{hash:{},data:o}))+"</h2> <h4>"+c(i(n(5)).call(t,"Plex Media Server runs on the computer where you keep your media",{hash:{},data:o
}))+'</h4> <img class="setup-intro-img setup-intro-computer-img" src='+c((s=t&&t.computerImg,"function"==typeof s?s.apply(t):s))+"> <h4>"+c(i(n(5)).call(t,"Plex scans your media, automatically organizes it, and makes it beautiful",{hash:{},data:o}))+'</h4> <img class="setup-intro-img setup-intro-media-img" src='+c((s=t&&t.mediaImg,"function"==typeof s?s.apply(t):s))+"> <h4>"+c(i(n(5)).call(t,"Play your media on any screen with your favorite Plex app",{hash:{},data:o
}))+'</h4> <img class="setup-intro-img setup-intro-play-img" src='+c((s=t&&t.playImg,"function"==typeof s?s.apply(t):s))+'> <p> <button class="next-btn btn btn-primary btn-lg" data-subset="setupLoading">'+c(i(n(5)).call(t,"Got it!",{hash:{},data:o}))+"</button> </p> "})},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(22),o=n(19),s=n(16),l=n(810),c=n(79),u=n(4860),d=n(559),p=n(4863),h=n.n(p),f=r.a.Layout.extend({className:"setup-library-container",template:h.a,regions:{
list:".setup-section-list-container"},events:{"click .add-section-btn":"onAddSectionClick"},metricsValue:function(){return this.collection.size()},initialize:function(e){var t=this.model,n=t.get("sections"),i=Object(s.c)("appModel"),r=i.get("user"),o="/services/defaultLibraries";r.get("features").get(c.b)&&(o+="?includeAllLibraries=1");var u=new l.a([],{server:t,url:o});this.collection=n,
this.model.supports("defaultSections")&&e.isFirstVisitToSubset&&a.a.when(u.populate(),n.populate()).done(function(){n.length||u.forEach(function(e){var i=t.hasOwnerFeature("photo_autotags");"photo"===e.get("type")&&i&&e.set("enableAutoPhotoTags",!0),e.collection=n,n.add(e)})})},onRender:function(){this.list.show(new u.a({collection:this.collection}))},onAddSectionClick:function(e){e.preventDefault(),o.a.trigger("show:modal",new d.a({server:this.model}))}});t.a=f},function(e,t,n){"use strict"
;var i=n(97),a=n(4861),r=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(19),r=n(43),o=n(559),s=n(4862),l=n.n(s),c={artist:"music",movie:"film",photo:"picture",show:"display"},u=i.a.ItemView.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:l.a,events:{"click .edit-section-btn":"onEditClick","click .delete-section-btn":"onDeleteClick"},serializeData:function(){
var e=this.model.server,t=this.model.toJSON();return{section:t,serverID:e.id,icon:c[t.type]}},bindings:{".section-title":{modelAttribute:"title"}},onEditClick:function(e){e.preventDefault();var t=this.model,n=new o.a({model:t,server:t.server,isDefaultSection:t.isNew()});t.isNew()&&n.promise.always(function(){t.trigger("destroy",t,t.collection)}),a.a.trigger("show:modal",n)},onDeleteClick:function(e){e.preventDefault(),r.a.execute("deleteSection",{section:this.model})}});t.a=u},function(e,t,n){
var i=n(15);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",l=this.escapeExpression;return s+='<div class="card card-section"> <div class="card-actions"> <button class="edit-section-btn card-action-btn"><i class="glyphicon pencil"></i></button> <button class="delete-section-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <i class="section-icon glyphicon ',
(o=n.icon)?r=o.call(t,{hash:{},data:a}):(o=t&&t.icon,r="function"==typeof o?o.call(t,{hash:{},data:a}):o),s+=l(r)+'"></i> <span class="section-title"></span> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h4>'+l(i(n(5)).call(t,"Organize Your Media",{hash:{},data:o}))+'</h4> <p class="text-muted">'+l(i(n(5)).call(t,"Plex organizes your media into libraries. You can add as many libraries as you want, and you can have multiple libraries with the same type.",{hash:{},data:o}))+'</p> <p class="setup-add-section-container"> <button class="add-section-btn btn btn-default">'+l(i(n(5)).call(t,"Add Library",{hash:{},data:o
}))+'</button> </p> <div class="setup-section-list-container"></div> <div class="setup-footer"> <button class="next-btn btn btn-default btn-lg" data-subset="setupBasic">'+l(i(n(5)).call(t,"Back",{hash:{},data:o}))+'</button> <button class="next-btn btn btn-primary btn-lg" data-subset="setupComplete">'+l(i(n(5)).call(t,"Next",{hash:{},data:o}))+"</button> </div> </div> </div> "})},function(e,t,n){"use strict";var i=n(22),a=n(4865),r=n.n(a),o=i.a.ItemView.extend({
className:"setup-loading-container",template:r.a});t.a=o},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+='<div class="loading loading-inline"></div> <p class="loading-title">'+(0,this.escapeExpression)(i(n(5)).call(t,"Please wait a moment while Plex starts.",{hash:{},data:o}))+"</p> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression;return s+='<div class="setup-header row hidden"> <div class="col-sm-6 col-sm-offset-3"> <div class="sign-in-logo text-center"> <i class="plex-image plex-logo"></i> </div> <h2>'+l(i(n(5)).call(t,"Server Setup",{hash:{},data:o
}))+'</h2> <div class="setup-progress"> <div class="basic-segment setup-progress-segment"> <a class="segment-btn btn-gray" data-subset="setupBasic" href="#">'+l(i(n(5)).call(t,"Name",{hash:{},data:o}))+'</a> </div> <div class="library-segment setup-progress-segment"> <a class="segment-btn btn-gray" data-subset="setupLibrary" href="#">'+l(i(n(5)).call(t,"Media Library",{hash:{},data:o
}))+'</a> </div> <div class="complete-segment setup-progress-segment"> <a class="segment-btn btn-gray" data-subset="setupComplete" href="#">'+l(i(n(5)).call(t,"Finish",{hash:{},data:o}))+'</a> </div> </div> </div> </div> <div class="setup-container"></div> '})},function(e,t,n){"use strict";var i=n(306),a=n(4868),r=i.a.extend({controller:new a.a,appRoutes:{"!/settings/account":"account","!/settings/plex-cloud":"personalCloud","!/settings/webhooks":"webhooks",
"!/settings/online-media-sources":"onlineMediaSources","!/cpms":"cpms","!/announcements":"announcements","!/account":"account","!/account/plex-cloud":"personalCloud","!/account/webhooks":"webhooks","!/account/online-media-sources":"onlineMediaSources","!/account/audio-subtitle":"account"}});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(16),r=n(307),o=n(90),s=n(36),l=n(3),c=n(4869),u=n(4893),d=n(4897),p=n(4905),h=n(4911),f=n(967),v=n(4914),g=r.a.extend({account:function(){
this.populateView({serverID:o.a}).done(function(){Object(s.a)(),i.a.trigger("show:view",new c.a)})},personalCloud:function(){var e=a.c("appModel"),t=e.get("user");this.populateView({serverID:o.a}).done(function(){Object(s.a)(),i.a.trigger("show:view",new d.a({model:t}))})},onlineMediaSources:function(){this.populateView({serverID:o.a}).done(function(){Object(s.a)(),i.a.trigger("show:view",new u.a)})},webhooks:function(){var e=a.c("appModel"),t=e.get("user");this.populateView({serverID:o.a
}).done(function(){Object(s.a)(),i.a.trigger("show:view",new p.a({model:t}))})},cpms:function(){this.populateView({serverID:o.a}).done(function(){i.a.trigger("show:view",new h.a)})},announcements:function(){this.populateView().done(function(){var e=a.c("appModel"),t=e.get("user"),n=t.get("pmp").get("announcements"),r=n.fetch({scope:"page"});r.done(function(){i.a.trigger("show:view",new v.a({collection:n}))}),r.fail(function(){i.a.trigger("show:view",new f.a({
title:Object(l.default)("Announcements are not available.")}))})})}});t.a=g},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(4870),c=n(322),u=a()(o.a,{},void 0,a()(c.a,{selectedKey:"account"}),a()(l.a,{})),d=s.a.extend({component:function(){return u}});t.a=d},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(59),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),
n(10)),S=n.n(I),M=n(470),D=n(162),C=n(428),j=n(1084),P=n(522),O=n(4871),T=Object(b.createSelector)(D.a,M.a,function(e){return e.ui.accountSettingsPage},function(e,t,n){var i=e.pmp,a=i.updateUserError?Object(C.a)(S.a.last(i.updateUserError[S.a.first(f()(i.updateUserError))])):n.updateUserProfileError,r=S.a.mapObject(i.updateUserError,function(e){return e.map(function(e){return Object(C.a)(e)})
}),o=S.a.pick(e,"username","email","emailOnlyAuth","subscriptionDescription","thumb","locked","locale","canGoPremium","hasPlexSubscription","hasPlexPass","hasPassword","isEmployee","isNinja","mailingListActive","restricted");return{serverEntityID:t.entityID,user:o,isUpdatingUser:i.isUpdatingUser||n.isUpdatingUserProfile,updateUserError:a,userSettingErrors:r,myPlexUrl:"https://plex.tv"}}),E={dispatchUpdateUser:P.i,dispatchClearUpdateUserError:P.b,dispatchClearUpdateUserProfileError:j.b
},w=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onErrorDismiss=function(){i.props.dispatchClearUpdateUserError(),i.props.dispatchClearUpdateUserProfileError()},i.onSubmit=function(e){i.props.dispatchUpdateUser(e)},a=n,u()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchUpdateUser,e.dispatchClearUpdateUserError,
e.dispatchClearUpdateUserProfileError,o()(e,["dispatchUpdateUser","dispatchClearUpdateUserError","dispatchClearUpdateUserProfileError"]));return m.a.createElement(O.a,a()({},t,{onErrorDismiss:this.onErrorDismiss,onSubmit:this.onSubmit,onUserProfileSubmit:this.onUserProfileSubmit}))},t}(g.Component);t.a=Object(y.connect)(T,E)(w)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(10),m=n.n(g),y=n(20),b=n(688),I=n(149),S=n(555),M=n(689),D=n(462),C=n(18),j=n(30),P=n(3),O=n(187),T=n(4872),E=n(384),w=n(4874),A=n(4877),x=n(589),N=n(259),L=n(258),k=n(335),R=n(1789),z=n(24),U=n(4882),B=n(4885),F=n(4892),_=n.n(F),V=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.createToggleHandler=function(e){return function(t){t.preventDefault();var n=a.state[e];a.props.updateUserError&&a.props.onErrorDismiss(),
a.setState(m.a.mapObject(a.state,function(t,i){return i===e&&!n}))}},a.getUserFormSectionProps=function(e,t){var n=a.state[t];return{title:e,onTogglePress:a.createToggleHandler(t),isOpen:n,onSubmit:a.props.onSubmit,isUpdating:a.props.isUpdatingUser,errorMessage:a.props.updateUserError}},a.onCreatePassword=function(e){a.createToggleHandler("isPasswordOpen")(e)},a.onToggleAudioSubtitlesFormSection=function(e){a.createToggleHandler("isSelectAudioOpen")(e)},a.onAccountEmailSubmit=function(e){
var t=a.props.user;t.username===t.email?a.props.onSubmit(o()({},e,{username:e.email})):a.props.onSubmit(e)},a.state={isUsernameOpen:!1,isEmailOpen:!1,isPasswordOpen:!1,isLinkedAccountsOpen:!1,isLocaleOpen:!1,isPhotoOpen:!1,isNewsletterOpen:!1,isSelectAudioOpen:!1},a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isUpdatingUser&&!e.isUpdatingUser&&!e.updateUserError&&this.setState(m.a.mapObject(this.state,function(){return!1}))},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.user,i=e.myPlexUrl,r=e.userSettingErrors,s=Object(P.default)("System Default"),l=!n.restricted,c=n.username===n.email,u=D.d.map(function(e){var t;return t={},t[e]=D.b[e],t});return a()(N.a,{metricsPage:j.a,metricsPane:"account"},void 0,a()(L.a,{},void 0,Object(P.default)("Account")),a()(w.a,{myPlexUrl:i,user:n}),v.a.createElement(k.a,o()({},this.getUserFormSectionProps(Object(P.default)("Photo"),"isPhotoOpen"),{closedNode:a()(E.a,{serverEntityID:t,
url:this.props.user.thumb,width:80,height:80})}),a()(I.a,{},void 0,Object(P.default)("Photo")),a()(U.a,{serverEntityID:t,name:"avatar",width:180,height:180,isDeletingAvatar:this.props.isDeletingAvatar,initialValue:this.props.user.thumb,url:this.props.user.thumb})),v.a.createElement(k.a,o()({},this.getUserFormSectionProps(Object(P.default)("Language"),"isLocaleOpen"),{closedNode:D.b[n.locale]||s}),a()(S.a,{labelText:Object(P.default)("Language"),
helpText:Object(P.default)("This sets the default language for Plex applications that do not provide their own language setting."),name:"locale",initialValue:n.locale,values:[{"":s}].concat(u)})),a()(A.a,{isOpen:this.state.isSelectAudioOpen,isUpdating:this.props.isUpdatingUser,errorMessage:this.props.updateUserError,onTogglePress:this.onToggleAudioSubtitlesFormSection}),l&&v.a.createElement(k.a,o()({},this.getUserFormSectionProps(Object(P.default)("Username"),"isUsernameOpen"),{
closedNode:c?Object(P.default)("Not set"):n.username}),a()(M.b,{labelText:Object(P.default)("Username"),helpText:Object(P.default)("Your username will be visible to friends with whom you have shared your server."),name:"username",initialValue:c?"":n.username,errors:r.username,validations:[R.g]}),a()(b.a,{name:"emailOnlyAuth",checkboxText:Object(P.default)("Allow username to be used when signing in"),
helpText:Object(P.default)("Your email address will be required to sign in when username sign-in is not allowed."),initialValue:n.emailOnlyAuth,checkedValue:!1,uncheckedValue:!0})),l&&v.a.createElement(k.a,o()({},this.getUserFormSectionProps(Object(P.default)("Email Address"),"isEmailOpen"),{closedNode:n.email,onSubmit:this.onAccountEmailSubmit}),a()(M.b,{labelText:Object(P.default)("Email Address"),name:"email",initialValue:n.email,errors:r.email,validations:[R.d]}),a()(M.b,{
labelText:Object(P.default)("Password"),type:"password",name:"currentPassword",initialValue:"",validations:[R.e]})),l&&v.a.createElement(k.a,o()({},this.getUserFormSectionProps(Object(P.default)("Password"),"isPasswordOpen"),{closedNode:n.hasPassword?"**********":Object(P.default)("Not set")}),a()(T.a,{labelText:n.hasPassword?Object(P.default)("New Password"):Object(P.default)("Choose Password"),name:"password",initialValue:"",errors:r.password,validations:[R.e,R.h]}),a()(M.b,{
labelText:n.hasPassword?Object(P.default)("Confirm New Password"):Object(P.default)("Confirm Password"),type:"password",name:"passwordConfirmation",initialValue:"",validations:[R.b,R.a]}),n.hasPassword&&a()(M.b,{labelText:Object(P.default)("Current Password"),type:"password",name:"currentPassword",initialValue:"",validations:[R.c]}),n.hasPassword&&a()(b.a,{checkboxText:Object(P.default)("Sign out connected devices after password change"),name:"resetDevices",initialValue:!1
})),l&&v.a.createElement(B.a,o()({},this.getUserFormSectionProps(Object(P.default)("Linked Accounts"),"isLinkedAccountsOpen"),{hasPassword:n.hasPassword,onCreatePassword:this.onCreatePassword})),l&&v.a.createElement(k.a,o()({},this.getUserFormSectionProps(Object(P.default)("Newsletter"),"isNewsletterOpen"),{closedNode:n.mailingListActive?Object(P.default)("You are currently subscribed"):Object(P.default)("You are not subscribed")}),a()(b.a,{name:"mailingListActive",
initialValue:n.mailingListActive,labelText:Object(P.default)("Newsletter"),checkboxText:Object(P.default)("Subscribe to our amazing, but infrequent email newsletter")})),l&&a()(x.a,{},void 0,a()(I.a,{},void 0,Object(P.default)("Privacy")),a()(O.a,{className:_.a.description,
message:Object(P.default)("Review our {openPolicyLink}Privacy Policy{closePolicyLink} for more information on the data that we collect, how it is used, and understand your {openAdChoicesLink}AdChoices{closeAdChoicesLink}. You can opt out of sending us certain data using your {openPreferencesLink}Privacy Preferences{closePreferencesLink} page."),tags:[{open:"openPolicyLink",close:"closePolicyLink",component:y.a,kind:z.b.PRIMARY,to:"https://www.plex.tv/about/privacy-legal/",target:"_blank"},{
open:"openAdChoicesLink",close:"closeAdChoicesLink",component:y.a,kind:z.b.PRIMARY,to:"https://www.plex.tv/about/privacy-legal/#adchoices",target:"_blank"},{open:"openPreferencesLink",close:"closePreferencesLink",component:y.a,kind:z.b.PRIMARY,to:"https://www.plex.tv/about/privacy-legal/privacy-preferences/#opd",target:"_blank"}]})),l&&a()(x.a,{},void 0,a()(y.a,{kind:z.b.DANGER,to:Object(C.join)([i,"/users/delete"]),target:"_blank"},void 0,Object(P.default)("Delete your account"))))},t
}(f.Component);t.a=V},function(e,t,n){"use strict";function i(e){var t=e.formGroupClassName,n=e.formLabelClassName,i=e.formInputClassName,a=e.name,o=e.value,l=e.labelText,u=e.showErrors,d=e.errors,h=e.zxcvbn,y=c()(e,["formGroupClassName","formLabelClassName","formInputClassName","name","value","labelText","showErrors","errors","zxcvbn"]),b=h&&""!==o,I=b?S[h(o).score]:null,M=f.a.last(d);return s()(v.a,{className:t},void 0,s()(g.a,{hasError:u,name:a,className:n
},void 0,l,I&&!u&&s()("span",{},void 0," \u2014 ",s()("span",{style:{color:I.color}},void 0,I.translateFn())),u&&" \u2014 "+M),p.a.createElement(m.a,r()({className:i,name:a,type:"password",value:o,hasError:u},y)))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(10),f=n.n(h),v=n(238),g=n(149),m=n(218),y=n(189),b=n(3),I=n(4873),S={0:{color:"#ff5533",translateFn:function(){return Object(b.default)("Too weak")}},1:{color:"#ee8833",translateFn:function(){
return Object(b.default)("Very weak")}},2:{color:"#eebb00",translateFn:function(){return Object(b.default)("Somewhat weak")}},3:{color:"#bbbb33",translateFn:function(){return Object(b.default)("Somewhat Strong")}},4:{color:"#66bb55",translateFn:function(){return Object(b.default)("Very Strong")}}},M=Object(I.a)(Object(y.a)(i),{zxcvbn:function(){return n.e(0).then(n.bind(null,5283))}});M.defaultProps={showErrors:!1},t.a=M},function(e,t,n){"use strict";function i(e,t){var n=h()(t),i=function(i){
function a(e,t){s()(this,a);var r=c()(this,i.call(this,e,t));return r.state=n.reduce(function(e,t){return e[t]=null,e},{}),r}return d()(a,i),a.prototype.componentDidMount=function(){var e=this;this._pairs=n.map(function(e){return[e,Object(m.a)(t[e]())]}),this._pairs.forEach(function(t){var n=t[0];t[1].promise.then(function(t){var i;e.setState((i={},i[n]=t,i))})})},a.prototype.componentWillUnmount=function(){this._pairs.forEach(function(e){e[0];e[1].cancel()})},a.prototype.render=function(){
return v.a.createElement(e,r()({},this.props,this.state))},a}(f.Component);return i.displayName="AsyncProps("+Object(g.a)(e)+":"+n.join(",")+")",i.WrappedComponent=e,i}var a=n(6),r=n.n(a),o=n(7),s=n.n(o),l=n(8),c=n.n(l),u=n(9),d=n.n(u),p=n(59),h=n.n(p),f=n(0),v=n.n(f),g=n(190),m=n(1244);t.a=i},function(e,t,n){"use strict";function i(e){return e.isEmployee?p()("span",{className:E.a.textBadge},void 0,"Employee"):e.isNinja&&!e.isEmployee?p()("span",{className:E.a.textBadge},void 0,"Ninja"):null}
function a(e){return e?[w,A,x]:[A,x]}var r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(2),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=(n.n(f),n(73)),g=n(42),m=n(20),y=n(18),b=n(30),I=n(3),S=n(949),M=n(589),D=n(756),C=n(554),j=n(24),P=n(4875),O=n.n(P),T=n(4876),E=n.n(T),w={path:"/subscription",title:function(){return Object(I.default)("Subscriptions")}},A={path:"/users/payments",title:function(){return Object(I.default)("Payments")}},x={path:"/users/other-services",title:function(){
return Object(I.default)("Other Services")}},N=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onPlexPassPress=function(){a.setState({isPlexPassModalOpen:!0})},a.onPlexPassModalClose=function(){a.setState({isPlexPassModalOpen:!1})},a.state={isPlexPassModalOpen:!1},a}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.myPlexUrl,n=e.user,r=this.state.isPlexPassModalOpen,o=(Object(S.a)(),"_blank"),s=i(n)
;return n.hasPlexSubscription||n.canGoPremium||!n.restricted?p()(M.a,{},void 0,p()("div",{className:E.a.container},void 0,p()("div",{},void 0,n.hasPlexSubscription?p()("div",{},void 0,p()("div",{className:E.a.badgeContainer},void 0,n.hasPlexPass?p()("img",{className:E.a.plexPassBadge,src:O.a}):null,s),p()("div",{},void 0,n.subscriptionDescription)):null,n.canGoPremium?p()("div",{},void 0,s&&p()("div",{className:E.a.badgeContainer},void 0,s),p()(g.a,{kind:j.b.PRIMARY,onPress:this.onPlexPassPress
},void 0,Object(I.default)("Go Premium")),p()(C.a,{metricsProperties:{context:b.a},isOpen:r,onModalClose:this.onPlexPassModalClose})):null),n.restricted?null:p()("div",{className:E.a.actionLinksContainer},void 0,p()(D.a,{className:E.a.actionLinks},void 0,a(n.hasPlexSubscription).map(function(e,n){var i=e.path,a=e.title;return p()(f.Fragment,{},n,p()(v.b,{className:E.a.linkSeparator,separator:"\xb7"}),p()(m.a,{kind:j.b.PRIMARY,to:Object(y.join)([t,i]),target:o},void 0,a()))}))))):null},t
}(f.Component);t.a=N},function(e,t,n){e.exports=n.p+"desktop/common/img/pp-ticket.de3ffb4d2327ee50e4290f8467a1796b.svg"},function(e,t){e.exports={container:"AccountSummary-container-2EbPg",actionLinksContainer:"AccountSummary-actionLinksContainer-2aUMQ",actionLinks:"AccountSummary-actionLinks-1tXSN SettingsFormSectionActionLinks-actionLinks-2vGv7",linkSeparator:"AccountSummary-linkSeparator-F6ygA",separator:"AccountSummary-separator-23I7s DashSeparator-separator-4CyEF",
badgeContainer:"AccountSummary-badgeContainer-2TYeD",plexPassBadge:"AccountSummary-plexPassBadge-27hFF",textBadge:"AccountSummary-textBadge-3M187"}},function(e,t,n){"use strict";var i=n(11),a=n(4),r=(n.n(a),n(393)),o=n(256),s=n(79),l=n(1084),c=n(4878),u=Object(a.createSelector)(Object(r.a)("profile"),Object(o.a)(s.m),function(e,t){return{userProfile:e,userHasSubtitlesOnDemandFeature:t}}),d={onSubmit:l.c};t.a=Object(i.connect)(u,d)(c.a)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),o=n.n(r),s=n(12),l=n.n(s),c=n(7),u=n.n(c),d=n(8),p=n.n(d),h=n(9),f=n.n(h),v=n(1),g=(n.n(v),n(0)),m=n.n(g),y=n(20),b=n(688),I=n(149),S=n(555),M=n(51),D=n(4879),C=n(3),j=n(4880),P=n(335),O=n(4881),T=n.n(O),E=0,w=1,A=2,x=0,N=1,L=2,k=3,R=function(e){function t(n,i){var a,r,o,s,l,c,d;u()(this,t);var h=p()(this,e.call(this,n,i));return h.onSubmit=function(e){e.autoSelectSubtitle&&(e.autoSelectSubtitle=parseInt(e.autoSelectSubtitle,10)),
e.defaultSubtitleAccessibility&&(e.defaultSubtitleAccessibility=parseInt(e.defaultSubtitleAccessibility,10)),h.props.onSubmit(e)},h.onFormChange=function(e){var t=e.autoSelectAudio;t.value!==h.state.isAutoSelectAudio&&h.setState({isAutoSelectAudio:t.value})},h.state={isAutoSelectAudio:n.userProfile.autoSelectAudio},h._autoSelectSubtitleOptions=[(a={},a[E]=Object(C.default)("Manually selected"),a),(r={},r[w]=Object(C.default)("Shown with foreign audio"),r),(o={},
o[A]=Object(C.default)("Always enabled"),o)],h._subtitleAccessibilityOptions=[(s={},s[x]=Object(C.default)("Prefer non-hearing-impaired subtitles"),s),(l={},l[N]=Object(C.default)("Prefer hearing-impaired subtitles"),l),(c={},c[L]=Object(C.default)("Only show hearing-impaired subtitles"),c),(d={},d[k]=Object(C.default)("Only show non-hearing-impaired subtitles"),d)],h._languageOptions=[{"":Object(C.default)("Select Language")}].concat(Object(D.a)()),h}return f()(t,e),
t.prototype.componentWillReceiveProps=function(e){e.isOpen!==this.props.isOpen&&this.setState({isAutoSelectAudio:e.userProfile.autoSelectAudio})},t.prototype.render=function(){var e=this.props,t=e.userProfile,n=e.userHasSubtitlesOnDemandFeature,i=l()(e,["userProfile","userHasSubtitlesOnDemandFeature"]),r=this.state.isAutoSelectAudio;return m.a.createElement(P.a,a()({},i,{title:Object(C.default)("Audio & Subtitle Settings"),closedNode:o()(j.a,{userProfile:t,languageOptions:this._languageOptions,
autoSelectSubtitleOptions:this._autoSelectSubtitleOptions,subtitleAccessibilityOptions:this._subtitleAccessibilityOptions,userHasSubtitlesOnDemandFeature:n}),onFormChange:this.onFormChange,onSubmit:this.onSubmit}),o()(I.a,{},void 0,Object(C.default)("Audio & Subtitle Settings")),o()("p",{className:T.a.description
},void 0,Object(C.default)("These settings determine how Plex will try to select audio and subtitle tracks when playing media in a Plex app while using your account.")),o()("p",{},void 0,o()(y.a,{kind:M.PRIMARY,to:"https://support.plex.tv/hc/en-us/articles/204985278",target:"_blank"},void 0,Object(C.default)("Learn more"))),o()(b.a,{name:"autoSelectAudio",checkboxText:Object(C.default)("Automatically select audio and subtitle tracks"),initialValue:t.autoSelectAudio}),r&&o()(S.a,{
labelText:Object(C.default)("Preferred audio language"),name:"defaultAudioLanguage",initialValue:t.defaultAudioLanguage,values:this._languageOptions}),r&&o()(S.a,{labelText:Object(C.default)("Preferred subtitle language"),name:"defaultSubtitleLanguage",initialValue:t.defaultSubtitleLanguage,values:this._languageOptions}),r&&o()(S.a,{labelText:Object(C.default)("Auto-select subtitle mode"),name:"autoSelectSubtitle",initialValue:t.autoSelectSubtitle,values:this._autoSelectSubtitleOptions
}),n?o()(S.a,{labelText:Object(C.default)("Hearing Impaired Subtitle (SDH) Searches"),name:"defaultSubtitleAccessibility",initialValue:t.defaultSubtitleAccessibility,values:this._subtitleAccessibilityOptions}):null)},t}(g.Component);t.a=R},function(e,t,n){"use strict";function i(){return a.d.filter(function(e){return 2===e.length&&-1===a.a.indexOf(e)}).map(function(e){var t;return t={},t[e]=a.b[e],t})}t.a=i;var a=n(462)},function(e,t,n){"use strict";function i(e,t){var n=e.find(function(e){
return e.hasOwnProperty(t)});return n?n[t]:""}function a(e){var t=e.userProfile,n=e.languageOptions,a=e.autoSelectSubtitleOptions,r=e.subtitleAccessibilityOptions,s=e.userHasSubtitlesOnDemandFeature,l=t.autoSelectAudio,c=t.defaultAudioLanguage,f=t.defaultSubtitleLanguage,v=t.autoSelectSubtitle,g=t.defaultSubtitleAccessibility,m=i(n,c),y="";""!==c&&m&&(y=Object(u.default)("{audioLanguage} audio",{audioLanguage:m}));var b=i(n,f),I="";""!==f&&b&&(I=Object(u.default)("{subtitleLanguage} subtitles",{
subtitleLanguage:b}));var S=i(a,v).toLowerCase(),M="";I&&S?M=I+" "+S:!I&&S?M=Object(u.default)("subtitles")+" "+S:I&&!S&&(M=I);var D=l?[y,M].join(", "):Object(u.default)("Manually Select"),C="";return s&&(C=i(r,g)),o()("span",{},void 0,D&&Object(u.default)("Track selection"),D&&d,D,C&&p,C&&Object(u.default)("Searches"),C&&h,C)}var r=n(2),o=n.n(r),s=n(1),l=(n.n(s),n(0)),c=(n.n(l),n(73)),u=n(3),d=o()(c.b,{}),p=o()("br",{}),h=o()(c.b,{});t.a=a},function(e,t){e.exports={
description:"AudioSubtitleSettingsFormSection-description-3K2f7"}},function(e,t,n){"use strict";function i(){return Object(r.createSelector)(Object(o.a)(),function(e){return{url:e}})}var a=n(11),r=n(4),o=(n.n(r),n(1385)),s=n(4883);t.a=Object(a.connect)(i)(s.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(189),m=n(28),y=n(367),b=n(18),I=n(3),S=n(26),M=n(389),D=n(1653),C=n(4884),j=n.n(C),P=a()(S.a,{name:"plex-icon-avatar-crop-min-560"}),O=a()(S.a,{name:"plex-icon-avatar-crop-max-560"}),T=function(e){function t(n,i){l()(this,t);var a=u()(this,e.call(this,n,i));return a.setCanvasRef=function(e){a.canvas=e},a.onMouseDown=function(e){e.preventDefault(),a.startAvatarDrag(e.clientX,e.clientY)},a.onTouchStart=function(e){e.preventDefault();var t=e.touches.item(0)
;t&&a.startAvatarDrag(t.clientX,t.clientY,!0)},a.onTouchMove=function(e){var t=e.touches.item(0);t&&a.dragAvatar(t.clientX,t.clientY)},a.onMouseMove=function(e){a.dragAvatar(e.clientX,e.clientY)},a.onMouseUp=function(){a.stopAvatarDrag()},a.onTouchEnd=function(){a.stopAvatarDrag()},a.onFileDrop=function(e){e.preventDefault(),a.setState({isOverDropTarget:!1}),a.dropTargetEnteredCounter=0;var t=void 0
;if(e.dataTransfer&&e.dataTransfer.files.length?t=e.dataTransfer.files[0]:e.target.files&&e.target.files.length&&(t=e.target.files[0]),t){var n=new window.FileReader;n.onload=function(e){return a.loadImage(e.target.result)},n.readAsDataURL(t)}},a.onDragEnter=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault(),a.dropTargetEnteredCounter++,a.setOverDropTargetState()},a.onDragLeave=function(){
(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault(),a.dropTargetEnteredCounter--,a.setOverDropTargetState()},a.onSliderChange=function(e){var t=e.steppedValue;a.setState(function(e){var n=e.offsetX,i=e.offsetY,r=a.initialWidth*t,s=a.initialHeight*t,l=(a.imageWidth-r)/2,c=(a.imageHeight-s)/2,u=a.props.width-r,d=a.props.height-s,p=Math.max(u,Math.min(n+l,0)),h=Math.max(d,Math.min(i+c,0));return o()({},e,{scale:t,offsetX:p,offsetY:h})},function(){
return a.props.onChange(a.getImageDataUrl())})},a.state={drag:!1,dragX:0,dragY:0,minScale:.1,maxScale:1,scale:.1,offsetX:0,offsetY:0,isOverDropTarget:!1},a.dropTargetEnteredCounter=0,a}return p()(t,e),t.prototype.componentDidMount=function(){window.addEventListener("dragover",this.onWindowDragOver),window.addEventListener("drop",this.onWindowDrop),this.paint(),this.loadImage(this.props.url,!0)},t.prototype.componentWillReceiveProps=function(e){this.props.url!==e.url&&this.loadImage(e.url)},
t.prototype.shouldComponentUpdate=function(e,t){return Object(m.a)(this,e,t)},t.prototype.componentDidUpdate=function(){this.paint()},t.prototype.componentWillUnmount=function(){window.removeEventListener("dragover",this.onWindowDragOver),window.removeEventListener("drop",this.onWindowDrop),this.stopListeningForDrag()},t.prototype.listenForDrag=function(e){e?(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchcancel",this.onTouchEnd),
document.addEventListener("touchend",this.onTouchEnd)):(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))},t.prototype.stopListeningForDrag=function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchcancel",this.onTouchEnd),document.removeEventListener("touchend",this.onTouchEnd)
},t.prototype.startAvatarDrag=function(e,t,n){this.listenForDrag(n),this.setState({drag:!0,dragX:e,dragY:t})},t.prototype.dragAvatar=function(e,t){var n=this;this.state.drag&&this.setState(function(i){var a=i.offsetX,r=i.offsetY,s=i.dragX,l=i.dragY,c=n.props.width-n.imageWidth,u=n.props.height-n.imageHeight,d=Math.max(c,Math.min(a+(e-s),0)),p=Math.max(u,Math.min(r+(t-l),0));return o()({},i,{dragX:e,dragY:t,offsetX:d,offsetY:p})})},t.prototype.stopAvatarDrag=function(){var e=this
;this.stopListeningForDrag(),this.setState({drag:!1},function(){return e.props.onChange(e.getImageDataUrl())})},t.prototype.loadImage=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props,a=new window.Image;a.onload=function(){return n.onImageLoad(a,t)},/^https?:\/\//.test(e)&&a.setAttribute("crossOrigin","anonymous");var r=e;if(0!==e.indexOf("data:")){var o=Object(y.a)(),s={width:Math.round(i.width*o),height:Math.round(i.height*o),minSize:1
},l=e.indexOf("?");l>-1?(r=b.join(e.substring(0,l),s),r+=-1===r.indexOf("?")?"?":"&",r+=e.substring(l+1)):r=b.join(r,s)}a.src=r},t.prototype.paint=function(){var e=this.props,t=e.width,n=e.height,i=this.canvas.getContext("2d");i.clearRect(0,0,t,n),this.image&&this.drawImage(i);var a=document.createElement("canvas"),r=a.getContext("2d");a.width=t,a.height=n,r.fillStyle="rgba(0,0,0,0.6)",r.fillRect(0,0,a.width,a.height),r.globalCompositeOperation="destination-out",r.arc(t/2,n/2,t/2,0,2*Math.PI),
r.fill(),i.drawImage(a,0,0)},t.prototype.drawImage=function(e){this.imageWidth=this.initialWidth*this.state.scale,this.imageHeight=this.initialHeight*this.state.scale,e.drawImage(this.image,this.state.offsetX,this.state.offsetY,this.imageWidth,this.imageHeight)},t.prototype.getImageDataUrl=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return e.height=this.props.height,e.width=this.props.width,this.drawImage(t),e.toDataURL()},t.prototype.setOverDropTargetState=function(){
this.state.isOverDropTarget||0===this.dropTargetEnteredCounter||this.setState({isOverDropTarget:!0}),this.state.isOverDropTarget&&0===this.dropTargetEnteredCounter&&this.setState({isOverDropTarget:!1})},t.prototype.onImageLoad=function(e,t){var n=this;this.image=e,this.initialWidth=Math.max(this.props.width,e.width),this.initialHeight=Math.max(this.props.height,e.height);var i=e.width>e.height?e.height:e.width,a=i>this.props.width?this.props.width/i:1,r=i<=this.props.width?2:1;this.setState({
drag:!1,dragX:0,dragY:0,minScale:a,maxScale:r,scale:a,offsetX:0,offsetY:0},t?null:function(){return n.props.onChange(n.getImageDataUrl())})},t.prototype.onWindowDrop=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault()},t.prototype.onWindowDragOver=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault()},t.prototype.onDragStart=function(){
(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).dataTransfer.effectAllowed="copyMove"},t.prototype.onDragOver=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).dataTransfer.dropEffect="copy"},t.prototype.render=function(){var e=this.state.isOverDropTarget;return a()("div",{className:j.a.avatarContainer,onDrop:this.onFileDrop,onDragOver:this.onDragOver,onDragStart:this.onDragStart,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter
},void 0,a()("div",{className:j.a.avatarPane},void 0,v.a.createElement("canvas",{className:e?j.a.isOverDropTarget:"",width:this.props.width,height:this.props.height,ref:this.setCanvasRef,onTouchStart:this.onTouchStart,onMouseDown:this.onMouseDown}),a()("div",{className:j.a.sliderContainer},void 0,a()("span",{className:j.a.sliderEnd},void 0,P),a()("span",{className:j.a.sliderWrapper},void 0,a()(M.a,{className:j.a.slider,min:this.state.minScale,max:this.state.maxScale,step:.1,
value:this.state.scale,onChange:this.onSliderChange})),a()("span",{className:j.a.sliderEnd},void 0,O))),a()("div",{className:j.a.avatarTextPane},void 0,a()("p",{},void 0,a()(D.a,{accept:"image/*",buttonText:Object(I.default)("Choose Photo"),onChange:this.onFileDrop})),a()("p",{className:j.a.help},void 0,Object(I.default)("You can scale your photo using the slider below, and adjust the crop by dragging it within the circle."))))},t}(f.Component);T.defaultProps={height:200,width:200,
onChange:function(){}},t.a=Object(g.a)(T)},function(e,t){e.exports={avatarContainer:"AvatarEditor-avatarContainer-3eqle",isOverDropTarget:"AvatarEditor-isOverDropTarget-xHyXA",avatarPane:"AvatarEditor-avatarPane-ZIMdI",sliderContainer:"AvatarEditor-sliderContainer-1XP4N",sliderEnd:"AvatarEditor-sliderEnd-LMe5u",sliderWrapper:"AvatarEditor-sliderWrapper-2-DX7",slider:"AvatarEditor-slider-1DyFR Slider-slider-2oLVT",help:"AvatarEditor-help-9JA7x",avatarTextPane:"AvatarEditor-avatarTextPane-3QTnN",
avatarActionButtons:"AvatarEditor-avatarActionButtons-29uxG",avatarFileInput:"AvatarEditor-avatarFileInput-2RZv1"}},function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(257)),b=n(486),I=n(285),S=n(1790),M=n(560),D=n(4886),C=Object(m.createSelector)(S.a,y.a,function(e,t){var n=e.oauthProviders,i=n.filter(function(e){return e.linked}),a=1===i.length?i[0].authName:null
;return p()({linkedOauthProviders:i.map(function(e){return e.label}).join(", "),lastLinkedAuthProviderID:a,returnUrl:window.location.href,isPollClient:Object(M.a)()},e,t)}),j={dispatchFetchOauthProviders:b.a,dispatchBeginPolling:I.b},P=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onLink=function(){i.props.isPollClient&&i.props.dispatchBeginPolling({pinID:i.props.pinID})},
a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchOauthProviders()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchOauthProviders,a()(e,["dispatchFetchOauthProviders"]));return v.a.createElement(D.a,p()({onLink:this.onLink},t))},t}(f.Component);t.a=Object(g.connect)(C,j)(P)},function(e,t,n){"use strict";function i(e){
var t=e.isPollClient,n=e.returnUrl,i=e.hasPassword,a=e.linkedOauthProviders,o=e.isOauthProvidersPending,l=e.isOauthProvidersPopulated,u=e.oauthProvidersError,d=e.lastLinkedAuthProviderID,m=e.onCreatePassword,y=e.onLink,S=c()(e,["isPollClient","returnUrl","hasPassword","linkedOauthProviders","isOauthProvidersPending","isOauthProvidersPopulated","oauthProvidersError","lastLinkedAuthProviderID","onCreatePassword","onLink"]),M=void 0;return M=o?s()("span",{className:b.a.dim
},void 0,Object(f.default)("Loading\u2026")):u?s()("span",{className:b.a.dim},void 0,Object(f.default)("Error")):a||s()("span",{className:b.a.dim},void 0,Object(f.default)("None")),p.a.createElement(v.a,r()({},S,{closedNode:M,showButton:!1}),s()(h.a,{},void 0,Object(f.default)("Linked Accounts")),s()("div",{className:b.a.description
},void 0,Object(f.default)("You can link your Google or Facebook account to simplify signing in to Plex."),t&&I),l&&e.oauthProviders&&e.oauthProviders.map(function(e){return s()(g.a,{isUnlinking:o,hasPassword:i,isLastLinkedAccount:d===e.authName,providerID:e.providerID,url:e.url,returnUrl:n,onCreatePassword:m,onLink:y},e.url)}))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(12),c=n.n(l),u=n(1),d=(n.n(u),n(0)),p=n.n(d),h=n(149),f=n(3),v=n(335),g=n(4887),m=n(4890),y=n(4891),b=n.n(y),I=s()(m.a,{});t.a=i
},function(e,t,n){"use strict";function i(){var e=Object(y.createSelector)(function(e,t){return t.url},C.a,function(e,t){return t.oauthProviders.find(function(t){return t.url===e})});return Object(y.createSelector)(function(e,t){return{url:t.url}},function(e,t){return t.returnUrl},Object(b.a)("email"),Object(b.a)("authToken"),e,I.a,function(e,t,n,i,a,r){var o=(r.authToken,h()(r,["authToken"])),s=!a.linked&&(a.isUnlinking||Object(j.a)()&&!r.code||r.isBusy);return d()({},a,{
isPollClient:Object(j.a)(),userAuthToken:i,email:n,providerID:a.authName,originalUrl:a.url,url:Object(S.a)(a.url,t),metricsProperties:e,isDisabled:s},o)})}var a=n(7),r=n.n(a),o=n(8),s=n.n(o),l=n(9),c=n.n(l),u=n(6),d=n.n(u),p=n(12),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(393)),I=n(257),S=n(1791),M=n(486),D=n(285),C=n(1790),j=n(560),P=n(468),O=n(4888),T={dispatchUnlinkOauthProvider:M.c,dispatchPreloadPIN:D.c},E=function(e){function t(){var n,i,a;r()(this,t)
;for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=s()(this,e.call.apply(e,[this].concat(l))),i.onUnlink=function(){i.props.dispatchUnlinkOauthProvider({url:i.props.originalUrl})},i.onStillTherePress=function(){i.props.dispatchPreloadPIN()},a=n,s()(i,a)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchUnlinkOauthProvider,h()(e,["dispatchUnlinkOauthProvider"]));return g.a.createElement(P.a,d()({component:O.a},t,{onUnlink:this.onUnlink,
onStillTherePress:this.onStillTherePress}))},t}(v.Component);t.a=Object(m.connect)(i,T)(E)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(42)),f=n(20),v=n(51),g=n(30),m=n(3),y=n(187),b=n(177),I=(n(1085),n(4889)),S=n.n(I),M={facebook:S.a.buttonFacebook,google:S.a.buttonGoogle},D=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onUnlinkPress=function(e){
!a.props.hasPassword&&a.props.isLastLinkedAccount?a.setState({isUnlinkOauthProviderModalOpen:!0}):a.props.onCreatePassword(e)},a.onUnlinkCancel=function(){a.setState({isUnlinkOauthProviderModalOpen:!1})},a.state={isUnlinkOauthProviderModalOpen:!1},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isUnlinking&&!e.isUnlinking&&this.setState({isUnlinkOauthProviderModalOpen:!1})},t.prototype.render=function(){
var e=this.props,t=e.to,n=e.isPollClient,i=e.isBusy,r=e.code,o=e.providerID,s=e.metricsProperties,l=e.isDisabled,c=e.isLastLinkedAccount,u=e.hasPassword,d=e.label,p=e.linked,I=e.onUnlink,D=e.onLink,C=e.onCreatePassword,j=e.onStillTherePress,P=this.state.isUnlinkOauthProviderModalOpen,O=p,T=!p&&!l,E=!(T||i||r||O),w=O||T||E,A=!u&&c,x=A?this.onUnlinkPress:I;return a()("div",{className:p?S.a.rowLinked:S.a.rowUnlinked},void 0,a()(h.a,{className:M[o],isDisabled:l,onPress:T?D:x
}),p?Object(m.default)("Your {oauthProvider} account is linked",{oauthProvider:d}):Object(m.default)("Your {oauthProvider} account is not linked",{oauthProvider:d}),w&&a()("span",{className:S.a.separator},void 0,"\u2014"),O&&a()(f.a,{kind:v.PRIMARY,isDisabled:l,onPress:x},void 0,Object(m.default)("Unlink")),A&&a()(b.a,{isConfirmButtonSpinning:l,isCancelButtonDisabled:l,isOpen:P,metricsPage:g.u,metricsProperties:s,title:Object(m.default)("Unlink {oauthProvider}",{oauthProvider:d}),
message:Object(m.default)("To unlink, first set a password to use when signing in"),confirmLabel:Object(m.default)("Set Password"),kind:v.DANGER,onConfirm:C,onCancel:this.onUnlinkCancel}),T&&a()(f.a,{kind:v.PRIMARY,to:t,target:n?"_blank":null,onPress:D},void 0,Object(m.default)("Link")),E&&a()(y.a,{message:Object(m.default)("Account linking timed out. {openLink}Try again?{closeLink}"),tags:[{open:"openLink",close:"closeLink",component:f.a,kind:v.PRIMARY,onPress:j}]}))},t}(p.Component);t.a=D
},function(e,t){e.exports={row:"LinkedAccount-row-B2dK4",rowLinked:"LinkedAccount-rowLinked-1oGBH LinkedAccount-row-B2dK4",rowUnlinked:"LinkedAccount-rowUnlinked-1CEr_ LinkedAccount-row-B2dK4",separator:"LinkedAccount-separator-2K5SK",button:"LinkedAccount-button-2xPPX",buttonGoogle:"LinkedAccount-buttonGoogle-3vahJ LinkedAccount-button-2xPPX",buttonFacebook:"LinkedAccount-buttonFacebook-1qn9Y LinkedAccount-button-2xPPX"}},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=(n.n(u),n(11)),p=n(257),h=n(285),f=n(1792),v={dispatchPreloadPIN:h.c,dispatchStopPolling:h.g,dispatchNavigateRefresh:f.b},g=function(e){function t(){return a()(this,t),o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchPreloadPIN()},t.prototype.componentDidUpdate=function(e){
this.props.authToken!==e.authToken&&this.props.authToken&&this.props.dispatchNavigateRefresh()},t.prototype.componentWillUnmount=function(){this.props.dispatchStopPolling()},t.prototype.render=function(){return null},t}(u.Component);t.a=Object(d.connect)(p.a,v)(g)},function(e,t){e.exports={description:"LinkedAccounts-description-JKP8i",dim:"LinkedAccounts-dim-2wlJA"}},function(e,t){e.exports={description:"AccountPage-description-2EgbI"}},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(4894),c=n(322),u=a()(o.a,{},void 0,a()(c.a,{selectedKey:"online-media-sources"}),a()(l.a,{})),d=s.a.extend({component:function(e){return u}});t.a=d},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(11)),f=n(4),v=(n.n(f),n(162)),g=n(36),m=n(1793),y=n(4896),b=Object(f.createSelector)(function(e){return e.ui.onlineMediaSourcesPage},v.a,function(e,t){return{
isUnauthorized:t.restricted,availableProviders:e.availableProviders,optOutStatuses:e.optOutStatuses,isAvailableProvidersPending:e.isAvailableProvidersPending,availableProvidersError:e.availableProvidersError,isOptOutStatusesPending:e.isOptOutStatusesPending,optOutStatusesError:e.optOutStatusesError,isUpdatePending:e.isUpdatePending,updateError:e.updateError}}),I={dispatchInitOnlineMediaSourcesPage:m.b,dispatchClearOnlineMediaSourcesUpdateError:m.a,dispatchUpdateOptOutStatuses:m.d},S=function(e){
function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onErrorDismiss=function(){i.props.dispatchClearOnlineMediaSourcesUpdateError()},i.onUpdateStatus=function(e){i.props.dispatchUpdateOptOutStatuses({optOutStatuses:e})},a=n,l()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){var e=this;Object(g.a)(function(){e.props.dispatchInitOnlineMediaSourcesPage()})},
t.prototype.render=function(){var e=this.props,t=e.isUnauthorized,n=e.isAvailableProvidersPending,i=e.availableProvidersError,r=e.isOptOutStatusesPending,o=e.optOutStatusesError,s=e.availableProviders,l=e.optOutStatuses,c=e.updateError,u=e.isUpdatePending;return a()(y.a,{isUnauthorized:t,loadSettingsError:!(!i&&!o),showSpinner:n||r,availableProviders:s,optOutStatuses:l,isUpdatePending:u,updateError:c,onErrorDismiss:this.onErrorDismiss,onUpdateStatus:this.onUpdateStatus})},t}(p.Component)
;t.a=Object(h.connect)(b,I)(S)},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"AvailableProviderModel",context:["server"],rootPropertyName:"MediaProvider",syncedAttrs:{identifier:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(10)),f=n.n(h),v=n(555),g=n(30),m=n(41),y=n(3),b=n(31),I=n(85),S=n(127),M=n(203),D=n(259),C=n(258),j=n(335),P=a()(I.a,{},void 0,a()(b.a,{})),O=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.createToggleHandler=function(e){return function(t){t.preventDefault();var n=a.state[e];a.props.updateError&&a.props.onErrorDismiss(),a.setState(f.a.mapObject(a.state,function(t,i){return i===e&&!n}))}},a.state=a._getDefaultOpenStates(a.props.availableProviders),a}
return u()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.showSpinner&&!e.showSpinner,n=this.props.isUpdatePending&&!e.isUpdatePending&&!e.updateError;(t||n)&&this.setState(this._getDefaultOpenStates(e.availableProviders))},t.prototype._getDefaultOpenStates=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){return e[t.identifier]=!1,e},{})},t.prototype._getOptOutStatus=function(e){
var t=this.props.optOutStatuses,n=e===m.e||e===m.f,i=n?"opt_in":"opt_out_managed";return t[e]?t[e]:i},t.prototype.render=function(){var e=this,t=this.props,n=t.isUnauthorized,i=t.loadSettingsError,r=t.showSpinner,o=t.availableProviders,s=t.isUpdatePending,l=t.updateError,c=t.onUpdateStatus;if(n)return a()(S.a,{title:Object(y.default)("You're not supposed to be here"),description:Object(y.default)("You don't have access to Online Media Sources")});if(i)return a()(M.a,{
title:Object(y.default)("There was an unexpected error loading Online Media Sources")});if(r)return P;var u=[{opt_in:Object(y.default)("Enabled")},{opt_out:Object(y.default)("Disabled")}],d=[].concat(u,[{opt_out_managed:Object(y.default)("Disabled for Managed Users")}]);return a()(D.a,{metricsPage:g.a,metricsPane:"onlineMediaSources"},void 0,a()(C.a,{},void 0,Object(y.default)("Online Media Sources")),o.map(function(t){
var n=t.identifier===m.e||t.identifier===m.f,i=n?u:d,r=e._getOptOutStatus(t.identifier),o=i.find(function(e){return e[r]})[r];return a()(j.a,{closedNode:o,title:t.title,isOpen:e.state[t.identifier],isUpdating:s,errorMessage:l&&Object(y.default)("Unable to save settings"),onTogglePress:e.createToggleHandler(t.identifier),onUpdateStatus:c,onSubmit:c},t.identifier,a()(v.a,{labelText:t.title,
helpText:Object(y.default)("Disabling {onlineMediaSource} will remove it from all Plex apps signed in with your account.",{onlineMediaSource:t.title}),name:t.identifier,initialValue:r,values:i}))}))},t}(p.Component);t.a=O},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(4898),c=n(322),u=a()(o.a,{},void 0,a()(c.a,{selectedKey:"plex-cloud"}),a()(l.a,{})),d=s.a.extend({component:function(){return u}});t.a=d},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(6),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(4),g=(n.n(v),n(1039)),m=n(957),y=n(486),b=n(1629),I=n(4899),S=Object(v.createSelector)(g.a,b.a,m.a,function(e,t,n){var i=t.isOauthProvidersPopulated,a=t.oauthProviders,r=i&&a.filter(function(e){return e.linked}),o=r&&1===r.length&&r[0];return u()({},t,{lastLinkedProviderUrl:o?o.url:null,hasOwnedPersonalCloudServer:!!e,isUnauthorized:!n.cpms})}),M={dispatchFetchOauthProviders:y.a
},D=function(e){function t(){return a()(this,t),o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchOauthProviders()},t.prototype.render=function(){return h.a.createElement(I.a,this.props)},t}(p.Component);t.a=Object(f.connect)(S,M)(D)},function(e,t,n){"use strict";function i(e){
var t=e.hasOwnedPersonalCloudServer,n=e.isUnauthorized,i=e.oauthProviders,a=e.isOauthProvidersPending,o=e.isOauthProvidersPopulated,l=e.oauthProvidersError,c=e.lastLinkedProviderUrl;return n?s()(h.a,{title:Object(p.default)("You're not supposed to be here"),description:Object(p.default)("You don't have access to Plex Cloud settings")}):s()(v.a,{metricsPage:d.a,metricsPane:"plexCloud"},void 0,s()(g.a,{},void 0,Object(p.default)("Plex Cloud")),t&&b,a&&!o&&I,o&&i.map(function(e){
return u.a.createElement(f.a,r()({key:e.url,unlinkConfirmMessage:c===e.url?Object(p.default)("If you unlink {personalCloudServerProvider}, all of your Plex Cloud libraries, shares, and metadata will be deleted! However, your media files will not be affected. This cannot be undone.",{personalCloudServerProvider:e.label}):Object(p.default)("Plex Cloud will no longer be able to access media stored on this provider and it will be removed from your library."),
unlinkAccordMessage:c===e.url?Object(p.default)("Yes, unlink {personalCloudServerProvider}",{personalCloudServerProvider:e.label}):null,returnUrl:t?"#!/settings/plex-cloud":"#!/cpms"},e))}),l&&Object(p.default)("An error occurred retrieving cloud storage providers. Please try again."))}var a=n(6),r=n.n(a),o=n(2),s=n.n(o),l=n(1),c=(n.n(l),n(0)),u=n.n(c),d=n(30),p=n(3),h=n(127),f=n(4900),v=n(259),g=n(258),m=n(1795),y=n(4903),b=s()(y.a,{}),I=s()(m.a,{});t.a=i},function(e,t,n){"use strict"
;function i(){return Object(b.createSelector)(function(e,t){return t.url},function(e,t){return t.returnUrl},function(e,t){return{url:t.url}},function(e,t,n){return{originalUrl:e,url:Object(I.a)(e,t),metricsProperties:n}})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=n.n(f),g=n(0),m=n.n(g),y=n(11),b=n(4),I=(n.n(b),n(1791)),S=n(486),M=(n(1085),n(4901)),D={dispatchUnlinkOauthProvider:S.c},C=function(e){function t(){var n,i,a;c()(this,t)
;for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=d()(this,e.call.apply(e,[this].concat(o))),i.onUnlink=function(){i.props.dispatchUnlinkOauthProvider({url:i.props.originalUrl})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.url,n=e.metricsProperties,i=(e.dispatchUnlinkOauthProvider,s()(e,["url","metricsProperties","dispatchUnlinkOauthProvider"]));return m.a.createElement(M.a,r()({},i,{url:t,metricsProperties:n,
onUnlink:this.onUnlink}))},t}(g.Component),j=Object(y.connect)(i,D)(C);j.propTypes={url:v.a.string.isRequired,returnUrl:v.a.string.isRequired},t.a=j},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(20)),f=n(149),v=n(51),g=n(30),m=n(3),y=n(177),b=n(589),I=n(756),S=n(1065),M=(n(1085),function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onUnlinkPress=function(){a.setState({
isUnlinkOauthProviderModalOpen:!0})},a.onUnlinkCancel=function(){a.setState({isUnlinkOauthProviderModalOpen:!1})},a.state={isUnlinkOauthProviderModalOpen:!1},a}return u()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isUnlinking&&!e.isUnlinking&&this.setState({isUnlinkOauthProviderModalOpen:!1})},t.prototype.render=function(){
var e=this.props,t=e.unlinkConfirmMessage,n=e.unlinkAccordMessage,i=e.isUnlinking,r=e.label,o=e.linked,s=e.nickname,l=e.url,c=e.metricsProperties,u=e.onUnlink,d=this.state.isUnlinkOauthProviderModalOpen;return a()(b.a,{},l,a()(I.a,{},void 0,o&&a()(h.a,{kind:v.PRIMARY,to:l},void 0,Object(m.default)("Reauthorize")),o&&a()(h.a,{isDisabled:i,kind:v.PRIMARY,onPress:this.onUnlinkPress},void 0,Object(m.default)("Unlink")),o&&a()(y.a,{isConfirmButtonSpinning:i,isCancelButtonDisabled:i,isOpen:d,
metricsPage:g.u,metricsProperties:c,title:Object(m.default)("Unlink {oauthProvider}",{oauthProvider:r}),message:t,accordMessage:n,confirmLabel:Object(m.default)("Unlink"),kind:v.DANGER,onConfirm:u,onCancel:this.onUnlinkCancel}),!o&&a()(h.a,{kind:v.PRIMARY,to:l},void 0,Object(m.default)("Link"))),a()(S.a,{},void 0,a()(f.a,{},void 0,r),s||Object(m.default)("No account linked")))},t}(p.Component));t.a=M},function(e,t){e.exports={spinnerContainer:"SettingsPageLoadingSpinner-spinnerContainer-oodfM"}
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(7),l=n.n(s),c=n(8),u=n.n(c),d=n(9),p=n.n(d),h=n(1),f=(n.n(h),n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(470)),b=n(36),I=n(202),S=n(485),M=n(4904),D=Object(m.createSelector)(y.a,function(e){if(!e)return{};var t=e.pmp,n=t.personalCloudServerStatus;return{isError:!!t.personalCloudServerStatusError,isPending:t.isPersonalCloudServerStatusPending,isRunning:!(!n||!n.running),isRestarting:t.isPersonalCloudServerRestarting}}),C={
dispatchFetchPersonalCloudServerStatus:S.b,dispatchRestartPersonalCloudServer:I.l},j=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=u()(this,e.call.apply(e,[this].concat(o))),i.onRestartPress=function(e){Object(b.a)(function(){i.props.dispatchRestartPersonalCloudServer()})},a=n,u()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){var e=this;Object(b.a)(function(){
e.props.dispatchFetchPersonalCloudServerStatus()})},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchPersonalCloudServerStatus,e.dispatchRestartPersonalCloudServer,o()(e,["dispatchFetchPersonalCloudServerStatus","dispatchRestartPersonalCloudServer"]));return v.a.createElement(M.a,a()({},t,{onRestartPress:this.onRestartPress}))},t}(f.Component);t.a=Object(g.connect)(D,C)(j)},function(e,t,n){"use strict";function i(e){
var t=e.isError,n=e.isPending,i=e.isRunning,a=e.isRestarting,o=e.onRestartPress,s=void 0;return s=i?Object(p.default)("Active"):t?Object(p.default)("Error checking server status"):Object(p.default)("Sleeping"),r()(f.a,{},void 0,r()(v.a,{},void 0,a?m:r()(l.a,{kind:u.PRIMARY,onPress:o},void 0,Object(p.default)("Restart Plex Cloud"))),r()(g.a,{},void 0,r()(c.a,{},void 0,Object(p.default)("Plex Cloud Server")),n?y:s))}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(20)),c=n(149),u=n(51),d=n(52),p=n(3),h=n(31),f=n(589),v=n(756),g=n(1065),m=r()(h.a,{size:d.SMALL}),y=r()(h.a,{size:d.SMALL});t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(4906),c=n(322),u=a()(o.a,{},void 0,a()(c.a,{selectedKey:"webhooks"}),a()(l.a,{})),d=s.a.extend({component:function(){return u}});t.a=d},function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(6),p=n.n(d),h=n(1),f=(n.n(h),
n(0)),v=n.n(f),g=n(11),m=n(4),y=(n.n(m),n(10)),b=n.n(y),I=n(256),S=n(162),M=n(79),D=n(522),C=n(4907),j=Object(m.createSelector)(S.a,Object(I.a)(M.p),function(e,t){var n=b.a.pick(e.pmp,["webhooks","isWebhooksPending","isWebhooksPopulated","webhooksError","isUpdatingWebhooks","isRemovingWebhooks","updateWebhooksError"]);return p()({},n,{isUnauthorized:!t})}),P={dispatchFetchWebhooks:D.e,onAddWebhookPress:function(){return Object(D.a)()},onErrorDismiss:D.c,onRemove:function(e){return Object(D.g)(e)
},onSubmit:function(e,t){return Object(D.h)({oldUrl:e,newUrl:t})},onToggle:function(){return Object(D.g)("")}},O=function(e){function t(){return o()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchWebhooks(),this.props.onErrorDismiss()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchWebhooks,a()(e,["dispatchFetchWebhooks"]));return v.a.createElement(C.a,t)},t}(f.Component);t.a=Object(g.connect)(j,P)(O)
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(10)),f=n.n(h),v=n(42),g=n(20),m=n(51),y=n(30),b=n(3),I=n(177),S=n(127),M=n(259),D=n(258),C=n(1795),j=n(4908),P=n(4910),O=n.n(P),T=a()(C.a,{}),E=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onToggle=function(e){var t=a.state.openFormSectionIndex===e;a.props.onErrorDismiss(),a.props.onToggle(),a.setState({
openFormSectionIndex:t?null:e})},a.onRemove=function(e){a.setState({removeWebhookModalURL:e,isRemoveWebhookModalOpen:!0})},a.onSubmit=function(e,t){e===t?(a.setState({openFormSectionIndex:null}),a.props.onToggle()):a.props.onSubmit(e,t)},a.onRemoveWebhookConfirmPress=function(e){var t=a.state.removeWebhookModalURL;a.props.onRemove(t)},a.onRemoveWebhookCancelPress=function(e){a.setState({isRemoveWebhookModalOpen:!1})},a.state={openFormSectionIndex:null,isRemoveWebhookModalOpen:!1},a}
return u()(t,e),t.prototype.componentWillReceiveProps=function(e){!e.isRemovingWebhooks&&this.props.isRemovingWebhooks&&this.setState({openFormSectionIndex:null,isRemoveWebhookModalOpen:!1});var t=e.webhooks===this.props.webhooks?-1:f.a.findIndex(e.webhooks,function(e){return""===e.url}),n=-1!==t,i=!e.isUpdatingWebhooks&&!e.updateWebhooksError&&this.props.isUpdatingWebhooks;n?this.setState({openFormSectionIndex:t}):i&&this.setState({openFormSectionIndex:null})},t.prototype.render=function(){
var e=this,t=this.props,n=t.isUnauthorized,i=t.isWebhooksPending,r=t.isWebhooksPopulated,o=t.webhooksError,s=t.isUpdatingWebhooks,l=t.isRemovingWebhooks,c=t.updateWebhooksError,u=t.webhooks,d=t.onAddWebhookPress,p=this.state,h=p.openFormSectionIndex,C=p.removeWebhookModalURL,P=p.isRemoveWebhookModalOpen;if(n)return a()(S.a,{title:Object(b.default)("You're not supposed to be here"),description:Object(b.default)("You don't have access to webhooks settings")})
;var E=u&&u.length,w=u&&f.a.find(u,function(e){return""===e.url}),A=r&&u&&E<5&&!w;return a()(M.a,{metricsPage:y.a,metricsPane:"webhooks"},void 0,a()(D.a,{},void 0,Object(b.default)("Webhooks")),a()("p",{},void 0,Object(b.default)("Plex Media Server will make requests to these webhooks on various media playback events.")),a()("p",{},void 0,a()(g.a,{kind:m.PRIMARY,to:"https://support.plex.tv/hc/en-us/articles/115002267687",target:"_blank"
},void 0,Object(b.default)("Learn more"))),i&&!r&&T,r&&!!E&&u.map(function(t,n){var i=h===n;return a()(j.a,{index:n,url:t.url,isOpen:i,isUpdating:i&&s,isRemoving:i&&l,error:i?c:null,onRemove:e.onRemove,onToggle:e.onToggle,onSubmit:e.onSubmit},n)}),A&&a()("div",{className:O.a.buttons},void 0,a()(v.a,{kind:m.PRIMARY,onPress:d},void 0,Object(b.default)("Add webhook"))),o&&Object(b.default)("An error occurred retrieving webhooks. Please try again."),a()(I.a,{isConfirmButtonSpinning:l,
isCancelButtonDisabled:l,isOpen:P,metricsPage:y.t,title:Object(b.default)("Remove Webhook"),message:Object(b.default)("Plex will no longer post updates to {url}.",{url:C}),confirmLabel:Object(b.default)("Remove"),kind:m.DANGER,onConfirm:this.onRemoveWebhookConfirmPress,onCancel:this.onRemoveWebhookCancelPress}))},t}(p.Component);t.a=E},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),
n(186)),f=n(149),v=n(689),g=n(51),m=n(428),y=n(3),b=n(139),I=n(1701),S=n(1054),M=n(1789),D=n(4909),C=n.n(D),j=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(s))),i.onTogglePress=function(e){i.props.onToggle(i.props.index)},i.onRemovePress=function(e){i.props.onRemove(i.props.url)},i.onSubmit=function(e){i.props.onSubmit(i.props.url,e.url)},a=n,l()(i,a)}return u()(t,e),
t.prototype.render=function(){var e=this.props,t=e.isDirty,n=e.isOpen,i=e.isUpdating,r=e.isRemoving,o=e.url,s=e.error,l=e.onFormChange,c=i||r;return a()(I.a,{isOpen:n,closedNode:a()("div",{},void 0,a()(f.a,{className:C.a.label},void 0,Object(y.default)("URL")),o),errorMessage:Object(m.a)(s),onTogglePress:this.onTogglePress},void 0,a()(h.b,{onSubmit:this.onSubmit,onChange:l},void 0,a()(v.b,{focusOnMount:!0,selectTextOnFocus:!0,labelText:Object(y.default)("URL"),isDisabled:c,name:"url",
initialValue:o,validations:o?[M.f]:[]}),a()("div",{className:C.a.buttons},void 0,o&&a()(b.a,{className:C.a.dangerButton,kind:g.DANGER,isSpinning:r,isDisabled:c,onPress:this.onRemovePress},void 0,Object(y.default)("Remove")),a()(b.a,{className:C.a.button,type:"submit",kind:g.PRIMARY,isSpinning:i,isDisabled:c||!t},void 0,Object(y.default)("Save Changes")))))},t}(p.Component);t.a=Object(S.a)(j,{isUpdatingPropName:"isUpdating",errorPropName:"error",clearDirtyOnChangePropName:"isOpen"})
},function(e,t){e.exports={buttons:"WebhookFormSection-buttons-1bW9A",button:"WebhookFormSection-button-2hUeX",dangerButton:"WebhookFormSection-dangerButton-1Hm32",label:"WebhookFormSection-label-1llL2 FormLabel-label-2aLJ9 CloseableFormSection-isPressable-3BPTn"}},function(e,t){e.exports={buttons:"WebhooksSettingsPage-buttons-2wdUh"}},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),o=(n.n(r),n(75)),s=n(48),l=n(4912),c=a()(o.a,{},void 0,a()(l.a,{})),u=s.a.extend({component:function(){
return c}});t.a=u},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(6),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=n.n(p),f=n(11),v=n(4),g=(n.n(v),n(18)),m=n(1039),y=n(36),b=n(485),I=n(4913),S=Object(v.createSelector)(m.a,function(e){return e?"#!/server/"+e.machineIdentifier+"/dashboard":null}),M=Object(v.createSelector)(function(e){return e.ui.provisionPersonalCloudServerPage},S,function(e,t){return u()({},e,{
provisionPersonalCloudServerUrl:g.join(["https://plex.tv","/api/v2/cloud_server/provision"]),ownedPersonalCloudServerUrl:t})}),D={provisionPersonalCloudServer:b.e,populatePersonalCloudServerCache:b.d,connectToOwnedPersonalCloudServer:b.a},C=function(e){function t(){return a()(this,t),o()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype.componentWillReceiveProps=function(e){
e.isConnectToPersonalCloudServerPopulated&&!this.props.isConnectToPersonalCloudServerPopulated&&this.props.populatePersonalCloudServerCache(),e.isProvisionPersonalCloudServerPopulated&&!this.props.isProvisionPersonalCloudServerPopulated&&this.props.connectToOwnedPersonalCloudServer()},t.prototype._populate=function(e){var t=this;Object(y.a)(function(){e.provisionPersonalCloudServer({url:t.props.provisionPersonalCloudServerUrl})})},t.prototype.render=function(){
return h.a.createElement(I.a,this.props)},t}(p.Component);t.a=Object(f.connect)(M,D)(C)},function(e,t,n){"use strict";function i(e){var t=e.isProvisionPersonalCloudServerPending,n=e.provisionPersonalCloudServerError,i=e.isConnectToPersonalCloudServerPending,a=e.connectToPersonalCloudServerError,o=e.isPersonalCloudServerDriveCachePending,s=e.isPersonalCloudServerDriveCachePopulated,u=e.personalCloudServerDriveCacheError,g=e.ownedPersonalCloudServerUrl,m=Object(c.default)("Plex Cloud Setup")
;return t?r()(d.a,{title:m,description:Object(c.default)("Creating a new Plex Cloud server just for you!")},void 0,h):n?r()(d.a,{title:m,description:Object(c.default)("An error occurred creating your Plex Cloud server.")},void 0,r()(l.a,{to:"#!/dashboard",kind:p.b.PRIMARY},void 0,Object(c.default)("Continue"))):i?r()(d.a,{title:m,description:Object(c.default)("Your Plex Cloud server is waking up.")},void 0,f):a?r()(d.a,{title:m,
description:Object(c.default)("Your Plex Cloud server is taking longer than expected to wake up. Check again later.")},void 0,r()(l.a,{to:"#!/dashboard",kind:p.b.PRIMARY},void 0,Object(c.default)("Continue"))):o?r()(d.a,{title:m,description:Object(c.default)("Scanning your cloud storage. If you have lots of data, this may take a while.")},void 0,v):u?r()(d.a,{title:m,description:Object(c.default)("Scanning your cloud storage is taking longer than expected. Check again later.")},void 0,r()(l.a,{
to:"#!/dashboard",kind:p.b.PRIMARY},void 0,Object(c.default)("Continue"))):s?r()(d.a,{title:m,description:Object(c.default)("Success! Plex Cloud is ready to go. This works just like a regular Plex Media Server. Pick it in the location menu of your favorite Plex app and stream away!")},void 0,r()(l.a,{to:g,kind:p.b.PRIMARY},void 0,Object(c.default)("Continue"))):null}var a=n(2),r=n.n(a),o=n(1),s=(n.n(o),n(0)),l=(n.n(s),
n(42)),c=n(3),u=n(31),d=n(85),p=n(24),h=r()(u.a,{}),f=r()(u.a,{}),v=r()(u.a,{});t.a=i},function(e,t,n){"use strict";var i=n(22),a=n(16),r=n(391),o=n(4915),s=n(4919),l=n.n(s),c=i.a.Layout.extend({className:"container",template:l.a,regions:{list:".announcements-container"},initialize:function(){(0,Object(a.c)("appStore").dispatch)(Object(r.a)({allowLightPreset:!1}))},onRender:function(){this.list.show(new o.a({collection:this.collection}))}});t.a=c},function(e,t,n){"use strict"
;var i=n(97),a=n(4916),r=i.a.extend({className:"list announcement-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(431),r=n(4917),o=n.n(r),s=i.a.ItemView.extend({className:"announcement-list-item",template:o.a,ui:{thumb:".thumb",unread:".unread"},initialize:function(){this.image=new a.a({url:this.model.get("imageUrl")})},onRender:function(){this.image.setElement(this.ui.thumb),this.model.markAsRead()},onClose:function(){this.image.close()}});t.a=s},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"hidden"}function l(e,t){var n,i="";return i+=' <h4><a href="'+h((n=e&&e.url,typeof n===p?n.apply(e):n))+'" target="_blank">'+h((n=e&&e.title,typeof n===p?n.apply(e):n))+'</a></h4> <a href="'+h((n=e&&e.url,typeof n===p?n.apply(e):n))+'" target="_blank"> <img class="thumb"/> </a> '}function c(e,t){var n,i="";return i+=" <h4>"+h((n=e&&e.title,
typeof n===p?n.apply(e):n))+'</h4> <img class="thumb"/> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var u,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="card card-announcement"> <div class="unread ',u=a.if.call(t,t&&t.read,{hash:{},inverse:f.noop,fn:f.program(1,s,o),data:o}),(u||0===u)&&(d+=u),d+='"></div> ',u=a.if.call(t,t&&t.url,{hash:{},inverse:f.program(5,c,o),fn:f.program(3,l,o),data:o}),(u||0===u)&&(d+=u),
d+=' <div class="date">'+h(i(n(4918)).call(t,t&&t.notifyAt,{hash:{},data:o}))+'</div> <div class="description">',u=t&&t.content,u=typeof u===p?u.apply(t):u,(u||0===u)&&(d+=u),d+="</div> </div> "})},function(e,t,n){var i=n(573).default,a=n(211);e.exports=a(i)},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="";return s+="<h2>"+(0,
this.escapeExpression)(i(n(5)).call(t,"Announcements",{hash:{},data:o}))+'</h2> <div class="announcements-container"></div> '})},function(e,t,n){"use strict";var i=n(15),a=n.n(i),r=n(4921),o=n.n(r),s=n(4922),l=n.n(s),c=n(4923),u=n.n(c),d=n(4924),p=n.n(d),h=n(4925),f=n.n(h),v=n(4926),g=n.n(v),m=n(4927),y=n.n(m);a.a.registerPartial("setting",g.a),a.a.registerPartial("lockableTagInput",p.a),a.a.registerPartial("lockableTextInput",f.a),a.a.registerPartial("lockableNumericInput",u.a),
a.a.registerPartial("textInput",y.a),a.a.registerPartial("autocompleteTextInput",o.a),a.a.registerPartial("connectError",l.a)},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+='data-scope-to-attr="'+d((n=e&&e.scopeToAttr,typeof n===u?n.apply(e):n))+'" data-scope-to-param="'+d((n=e&&e.scopeToParam,typeof n===u?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var l,c="",u="function",d=this.escapeExpression,p=this;return c+='<div class="form-group" data-attr="'+d((l=t&&t.name,typeof l===u?l.apply(t):l))+'"> <label for="text-'+d((l=t&&t.name,typeof l===u?l.apply(t):l))+'" class="control-label">'+d(i(n(5)).call(t,t&&t.label,{hash:{},data:o}))+'<span class="control-error"></span></label> <div class="input-group selectize-group"> <input type="text" id="text-'+d((l=t&&t.name,
typeof l===u?l.apply(t):l))+'" class="form-control text-field" name="'+d((l=t&&t.name,typeof l===u?l.apply(t):l))+'" placeholder="'+d((l=t&&t.placeholder,typeof l===u?l.apply(t):l))+'" data-rating-key="'+d((l=t&&t.ratingKey,typeof l===u?l.apply(t):l))+'" data-title="'+d((l=t&&t.title,typeof l===u?l.apply(t):l))+'" ',l=a.if.call(t,t&&t.scopeToAttr,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(l||0===l)&&(c+=l),c+="> </div> </div> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <h4 class="server-connect-error-header">'+f(i(n(5)).call(e,"Problem Connecting to Plex",{hash:{},data:t}))+'</h4> <p class="text-muted">'+f(i(n(5)).call(e,"Plex was unable to authenticate your server. Please sign your server out and try again.",{hash:{},data:t}))+"</p> "}function l(e,t){var a,r="";return a=i(n(34)).call(e,e&&e.mappingError,"myplexgone",{
hash:{},inverse:v.program(6,u,t),fn:v.program(4,c,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function c(e,t){var a="";return a+=' <h4 class="server-connect-error-header">'+f(i(n(5)).call(e,"Problem Connecting to Plex",{hash:{},data:t}))+'</h4> <p class="text-muted">'+f(i(n(5)).call(e,"Your server was unable to reach Plex. Please ensure that the computer or device running your server can access the internet.",{hash:{},data:t}))+"</p> "}function u(e,t){var a=""
;return a+=' <h4 class="server-connect-error-header">'+f(i(n(5)).call(e,"Signed in to Plex",{hash:{},data:t}))+'</h4> <p class="text-muted">'+f(i(n(5)).call(e,"You have successfully signed your server in to Plex, but we were unable to reach it from outside your network.",{hash:{},data:t}))+"</p> "}function d(e,t){var a=""
;return a+=' <p class="text-muted">'+f(i(n(5)).call(e,"If you skip this step you will not be able to share or stream media outside your home. If you change your mind later, you can adjust this in Settings.",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var p,h="",f=this.escapeExpression,v=this;return p=i(n(34)).call(t,t&&t.mappingError,"badauth",{hash:{},inverse:v.program(3,l,o),fn:v.program(1,s,o),data:o}),(p||0===p)&&(h+=p),h+=" ",
p=i(n(286)).call(t,t&&t.context,"settings",{hash:{},inverse:v.noop,fn:v.program(8,d,o),data:o}),(p||0===p)&&(h+=p),h+=' <p class="text-muted">'+f(i(n(5)).call(t,"If you would like to enable this now, you will need to configure your router or firewall to allow Plex to contact your server. Please refer to our {1}Connecting a Server{2} article for more information.",'<a href="http://support.plex.tv/hc/en-us/articles/200484543-Connecting-a-Server" target="_blank">',"</a>",{hash:{},data:o}))+"</p> "
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"locked"}function l(e,t){return"disabled"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d=this.escapeExpression,p=this;return u+='<div class="form-group"> <label for="lockable-'+d((c=t&&t.name,"function"==typeof c?c.apply(t):c))+'">'+d(i(n(5)).call(t,t&&t.label,{hash:{},data:o
}))+'</label> <div class="input-group"> <a href="#" data-field="'+d((c=t&&t.name,"function"==typeof c?c.apply(t):c))+'" class="input-group-addon edit-lock-addon ',c=a.if.call(t,t&&t.locked,{hash:{},inverse:p.noop,fn:p.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+=" ",c=a.if.call(t,t&&t.disabled,{hash:{},inverse:p.noop,fn:p.program(3,l,o),data:o}),(c||0===c)&&(u+=c),u+='" tabindex="-1"><i class="glyphicon lock"></i></a> <input type="number" id="lockable-'+d((c=t&&t.name,
"function"==typeof c?c.apply(t):c))+'" class="form-control lockable-field" name="'+d((c=t&&t.name,"function"==typeof c?c.apply(t):c))+'" value="'+d((c=t&&t.value,"function"==typeof c?c.apply(t):c))+'" placeholder="'+d((c=t&&t.placeholder,"function"==typeof c?c.apply(t):c))+'" ',c=a.if.call(t,t&&t.disabled,{hash:{},inverse:p.noop,fn:p.program(3,l,o),data:o}),(c||0===c)&&(u+=c),u+="> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15)
;e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return" locked"}function l(e,t){var n,i="";return i+='data-query="'+p((n=e&&e.query,typeof n===d?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var c,u="",d="function",p=this.escapeExpression,h=this;return u+='<div class="form-group"> <label for="lockable-'+p((c=t&&t.name,typeof c===d?c.apply(t):c))+'">'+p(i(n(5)).call(t,t&&t.label,{hash:{},data:o
}))+'</label> <div class="input-group selectize-group"> <a href="#" data-field="'+p((c=t&&t.name,typeof c===d?c.apply(t):c))+'" class="input-group-addon edit-lock-addon',c=a.if.call(t,t&&t.locked,{hash:{},inverse:h.noop,fn:h.program(1,s,o),data:o}),(c||0===c)&&(u+=c),u+='"><i class="glyphicon lock"></i></a> <input type="text" id="lockable-'+p((c=t&&t.name,typeof c===d?c.apply(t):c))+'" class="form-control lockable-field tag-input-hidden" data-name="'+p((c=t&&t.name,
typeof c===d?c.apply(t):c))+'" data-attr="'+p((c=t&&t.attribute,typeof c===d?c.apply(t):c))+'" data-only-delete="'+p((c=t&&t.onlyDelete,typeof c===d?c.apply(t):c))+'" ',c=a.if.call(t,t&&t.query,{hash:{},inverse:h.noop,fn:h.program(3,l,o),data:o}),(c||0===c)&&(u+=c),u+="> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return" locked"}function l(e,t){var n,i=""
;return i+=' <textarea class="form-control lockable-field" id="lockable-'+g((n=e&&e.name,typeof n===v?n.apply(e):n))+'" name="'+g((n=e&&e.name,typeof n===v?n.apply(e):n))+'"',n=a.if.call(e,e&&e.rows,{hash:{},inverse:m.noop,fn:m.program(4,c,t),data:t}),(n||0===n)&&(i+=n),i+=' placeholder="'+g((n=e&&e.placeholder,typeof n===v?n.apply(e):n))+'">'+g((n=e&&e.value,typeof n===v?n.apply(e):n))+"</textarea> "}function c(e,t){var n,i="";return i+=' rows="'+g((n=e&&e.rows,typeof n===v?n.apply(e):n))+'"'}
function u(e,t){var n,i="";return i+=' <input type="text" id="lockable-'+g((n=e&&e.name,typeof n===v?n.apply(e):n))+'" class="form-control lockable-field" name="'+g((n=e&&e.name,typeof n===v?n.apply(e):n))+'" value="'+g((n=e&&e.value,typeof n===v?n.apply(e):n))+'" placeholder="'+g((n=e&&e.placeholder,typeof n===v?n.apply(e):n))+'" ',n=a.if.call(e,e&&e.scopeToAttr,{hash:{},inverse:m.noop,fn:m.program(7,d,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.ratingKey,{hash:{},inverse:m.noop,
fn:m.program(9,p,t),data:t}),(n||0===n)&&(i+=n),i+="> "}function d(e,t){var n,i="";return i+='data-scope-to-attr="'+g((n=e&&e.scopeToAttr,typeof n===v?n.apply(e):n))+'" data-scope-to-param="'+g((n=e&&e.scopeToParam,typeof n===v?n.apply(e):n))+'"'}function p(e,t){var n,i="";return i+='data-rating-key="'+g((n=e&&e.ratingKey,typeof n===v?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var h,f="",v="function",g=this.escapeExpression,m=this
;return f+='<div class="form-group selectize-group" data-attr="'+g((h=t&&t.name,typeof h===v?h.apply(t):h))+'"> <label for="lockable-'+g((h=t&&t.name,typeof h===v?h.apply(t):h))+'">'+g(i(n(5)).call(t,t&&t.label,{hash:{},data:o}))+'</label> <div class="input-group"> <a href="#" data-field="'+g((h=t&&t.name,typeof h===v?h.apply(t):h))+'" class="input-group-addon edit-lock-addon',h=a.if.call(t,t&&t.locked,{hash:{},inverse:m.noop,fn:m.program(1,s,o),data:o}),(h||0===h)&&(f+=h),
f+='" tabindex="-1"><i class="glyphicon lock"></i></a> ',h=i(n(34)).call(t,t&&t.type,"textarea",{hash:{},inverse:m.program(6,u,o),fn:m.program(3,l,o),data:o}),(h||0===h)&&(f+=h),f+=" </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){return"advanced-setting"}function l(e,t){var n,i="";return i+=' <label class="control-label" for="input_'+M((n=e&&e.id,
typeof n===S?n.apply(e):n))+M((n=e&&e.idSuffix,typeof n===S?n.apply(e):n))+'"> <input type="checkbox" id="input_'+M((n=e&&e.id,typeof n===S?n.apply(e):n))+M((n=e&&e.idSuffix,typeof n===S?n.apply(e):n))+'" name="'+M((n=e&&e.id,typeof n===S?n.apply(e):n))+'" value="1" ',n=a.if.call(e,e&&e.value,{hash:{},inverse:D.noop,fn:D.program(4,c,t),data:t}),(n||0===n)&&(i+=n),i+="> "+M((n=e&&e.label,typeof n===S?n.apply(e):n))+" </label> ",n=a.if.call(e,e&&e.summary,{hash:{},inverse:D.noop,
fn:D.program(6,u,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function c(e,t){return"checked"}function u(e,t){var n,i="";return i+=' <p class="help-block">'+M((n=e&&e.summary,typeof n===S?n.apply(e):n))+"</p> "}function d(e,t){var n,i="";return i+=' <label class="control-label" for="input_'+M((n=e&&e.id,typeof n===S?n.apply(e):n))+M((n=e&&e.idSuffix,typeof n===S?n.apply(e):n))+'">'+M((n=e&&e.label,typeof n===S?n.apply(e):n))+"</label> ",n=a.if.call(e,e&&e.enumValues,{hash:{},inverse:D.program(13,v,t),
fn:D.program(9,p,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.summary,{hash:{},inverse:D.noop,fn:D.program(6,u,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function p(e,t){var n,i="";return i+=' <select id="input_'+M((n=e&&e.id,typeof n===S?n.apply(e):n))+M((n=e&&e.idSuffix,typeof n===S?n.apply(e):n))+'" name="'+M((n=e&&e.id,typeof n===S?n.apply(e):n))+'"> ',n=a.each.call(e,e&&e.enumValues,{hash:{},inverse:D.noop,fn:D.programWithDepth(10,h,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}
function h(e,t,a){var r,o="";return o+=' <option value="'+M((r=e&&e.value,typeof r===S?r.apply(e):r))+'" ',r=i(n(34)).call(e,e&&e.value,a&&a.value,{hash:{},inverse:D.noop,fn:D.program(11,f,t),data:t}),(r||0===r)&&(o+=r),o+=">"+M((r=e&&e.label,typeof r===S?r.apply(e):r))+"</option> "}function f(e,t){return'selected="selected"'}function v(e,t){var r,o="";return o+=' <input type="',r=i(n(34)).call(e,e&&e.option,"hidden",{hash:{},inverse:D.program(16,m,t),fn:D.program(14,g,t),data:t}),
(r||0===r)&&(o+=r),o+='" id="input_'+M((r=e&&e.id,typeof r===S?r.apply(e):r))+M((r=e&&e.idSuffix,typeof r===S?r.apply(e):r))+'" class="form-control" name="'+M((r=e&&e.id,typeof r===S?r.apply(e):r))+'" value="'+M((r=e&&e.value,typeof r===S?r.apply(e):r))+'" ',r=a.if.call(e,e&&e.placeholder,{hash:{},inverse:D.noop,fn:D.program(18,y,t),data:t}),(r||0===r)&&(o+=r),o+="> "}function g(e,t){return"password"}function m(e,t){return"text"}function y(e,t){var n,i=""
;return i+='placeholder="'+M((n=e&&e.placeholder,typeof n===S?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var b,I="",S="function",M=this.escapeExpression,D=this;return I+='<div class="form-group ',b=a.if.call(t,t&&t.advanced,{hash:{},inverse:D.noop,fn:D.program(1,s,o),data:o}),(b||0===b)&&(I+=b),I+='"> ',b=i(n(34)).call(t,t&&t.type,"bool",{hash:{},inverse:D.program(8,d,o),fn:D.program(3,l,o),data:o}),(b||0===b)&&(I+=b),I+=" </div> "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var n,i="";return i+=' <textarea class="form-control text-field" id="text-'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'" name="'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'"',n=a.if.call(e,e&&e.rows,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=' placeholder="'+f((n=e&&e.placeholder,typeof n===h?n.apply(e):n))+'">'+f((n=e&&e.value,
typeof n===h?n.apply(e):n))+"</textarea> "}function l(e,t){var n,i="";return i+=' rows="'+f((n=e&&e.rows,typeof n===h?n.apply(e):n))+'"'}function c(e,t){var n,i="";return i+=' <input type="text" id="text-'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'" class="form-control text-field" name="'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'" value="'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+'" placeholder="'+f((n=e&&e.placeholder,typeof n===h?n.apply(e):n))+'" ',n=a.if.call(e,e&&e.excludeParam,{
hash:{},inverse:v.noop,fn:v.program(5,u,t),data:t}),(n||0===n)&&(i+=n),i+="> "}function u(e,t){var n,i="";return i+='data-exclude-param="'+f((n=e&&e.excludeParam,typeof n===h?n.apply(e):n))+'" data-exclude-value="'+f((n=e&&e.excludeValue,typeof n===h?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var d,p="",h="function",f=this.escapeExpression,v=this;return p+='<div class="form-group"> <label for="text-'+f((d=t&&t.name,
typeof d===h?d.apply(t):d))+'">'+f(i(n(5)).call(t,t&&t.label,{hash:{},data:o}))+"</label> ",d=i(n(34)).call(t,t&&t.type,"textarea",{hash:{},inverse:v.program(4,c,o),fn:v.program(1,s,o),data:o}),(d||0===d)&&(p+=d),p+=" </div> "})},function(e,t,n){"use strict";function i(){Object(a.b)({CloudServerFlexModel:l.a,ServerFlexModel:c.a,UserFlexModel:u.a});var e=new s.a,t=Object(d.a)(e);return Object(a.b)({appModel:e,appStore:t}),Object(a.b)({companionPlayerProfile:b.a,companionProxy:m.a,experience:y.a,
getDecisionOptions:h.a,mediaComponent:p.a,playerCommands:I.a,playerSettings:S.a,screenSaverManager:v.a,uiSounds:new g.a}),Object(o.a)().then(f.a.registerAll).then(function(){Object(a.b)({fullscreenManager:Object(r.a)()})})}t.a=i;var a=n(16),r=n(4929),o=n(4930),s=n(4970),l=n(5030),c=n(5035),u=n(5050),d=n(5071),p=n(5087),h=n(5095),f=n(5104),v=n(5124),g=n(5125),m=n(5127),y=n(5128),b=n(5132),I=n(5133),S=n(5135)},function(e,t,n){"use strict";function i(){var e=!1;return{hasFullscreen:!0,
shouldExitOnPlayerClose:!1,initialize:function(t){function n(t){e!==t&&(e=t,e?i():a())}var i=t.dispatchEnterFullscreen,a=t.dispatchExitFullscreen,c=r.a.Deferred();return s.a.get("main").done(function(e){var t=void 0;try{t=JSON.parse(e),n(t.fullscreen),c.resolve()}catch(e){c.reject()}}),l.a.api.settings.sectionValueUpdate.connect(function(e,t){"main"===e&&t.hasOwnProperty("fullscreen")&&n("boolean"==typeof t.fullscreen?t.fullscreen:Object(o.a)(t.fullscreen))}),c.promise()},enter:function(){
s.a.set("main.fullscreen",!0)},exit:function(){s.a.set("main.fullscreen",!1)}}}t.a=i;var a=n(13),r=n.n(a),o=n(506),s=n(209),l=n(227)},function(e,t,n){"use strict";function i(){var e=Object(o.c)("appModel"),t=Object(o.c)("appStore");return Object(o.b)({sessionStats:new y.a,metricsReporter:[Object(s.a)(),c.a],logs:new b.a([],{parent:e}),testServerConnection:u.a}),Object(o.b)({companionServerManager:new d.a({appModel:e}),keyboardShortcuts:Object(M.a)(),
localCompanionTimelineManager:Object(m.a)(e,t,{companionPlayerProfile:D.a,getPlayerModels:function(e){var t=e.get("ui");return[t.get("audioVideoPlayer"),t.get("photoPlayer")]},getVolume:function(e){return e.get("experienceSettings").get("volume")}}),localCompanionCommandHandler:S.a,manualServerManager:new p.a({appModel:e}),mediaServerEventConnection:T.a,metrics:[new h.a({isPlaybackActive:I.a}),l.a],primaryServerManager:new C.a({appModel:e}),providerManager:new f.a({appModel:e}),
remotePlexPlayerManager:Object(O.a)(e,t),serverConnectionManager:new v.a({appModel:e}),serverConnectionTestManager:new g.a({appModel:e}),serverManager:new j.a({appModel:e}),serverUpdateManager:new P.b({appModel:e})}),r.a.Deferred().resolve().promise()}t.a=i
;var a=n(13),r=n.n(a),o=n(16),s=n(4931),l=n(4933),c=n(4934),u=n(4935),d=n(4936),p=n(4937),h=n(4939),f=n(4942),v=n(4943),g=n(4945),m=n(4946),y=n(4948),b=n(4949),I=n(4952),S=n(4953),M=n(4954),D=n(4955),C=n(4956),j=n(4960),P=n(1803),O=n(4964),T=n(4967)},function(e,t,n){"use strict";function i(){var e=new l.a,t=null;return{setBaseUrl:function(e){t=e},trackEvent:function(n){if(!t)return void Object(o.a)(!1,"Network metrics reporters requires a base URL to be set before tracking events")
;var i=s.join([t,"collect/event"]),a=r()(n);e.send({type:"POST",url:i,contentType:"text/plain",data:a})}}}t.a=i;var a=n(179),r=n.n(a),o=n(37),s=n(18),l=n(4932);n(321)},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(78),o=n(110),s=r.a.extend({mixins:[o.a],name:"AjaxQueue",queue:null,request:null,enabled:!1,destroyed:!1,initialize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queue=[],!1!==e.enabled&&this.enable()},enable:function(){
this.enabled||this.destroyed||(this.enabled=!0,this.onEnabled())},disable:function(){this.enabled&&(this.enabled=!1,this.request=null,this.onDisabled())},destroy:function(){this.destroyed||(this.disable(),this.queue.length=0,this.destroyed=!0,this.onDestroyed())},send:function(e){e&&(this.queue.push(e),this._next())},_next:function(){if(this._canNext()){var e=this.queue.shift(),t=e&&this._getAjaxOptions(e);if(t){var n=a.a.ajax(t);n.always(this.onAjaxAlways.bind(this,n)),this.request=n}}},
_canNext:function(){return this.enabled&&!this.request},_getAjaxOptions:function(e){return e},onAjaxAlways:function(e){this.enabled&&e===this.request&&(this.request=null,this._next())},onEnabled:function(){this._next()},onDisabled:function(){},onDestroyed:function(){}});t.a=s},function(e,t,n){"use strict";var i=["enable","disable","set","start","trackClick","trackEvent","trackView","incrementPlaybackCount","addPlaybackTime","toJSON"];t.a=i},function(e,t,n){"use strict"
;var i=["setBaseUrl","trackEvent"];t.a=i},function(e,t,n){"use strict";function i(e){return 401===e.status||403===e.status||406===e.status}function a(e){var t=e.server,n=e.connection;return!M.a.get("testPrivateConnectionsWhenPublicAddressDoesNotMatch")&&!t.get("isCloud")&&!t.get("isTransient")&&!t.get("publicAddressMatches")&&n.get("isPrivate")}function r(e,t){var n=t.server,i=n.get("debugName")
;return b.a.warn("[Connections] Aborting connection test for %s at %s because secure connections are disallowed",i,e),u(e,t)}function o(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s because insecure connections are preferred",i,e),u(e,t)}function s(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s because location does not match",i,e),u(e,t)}function l(e,t){
var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s due to mixed content prevention",i,e),u(e,t)}function c(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s due to reject direct connection debug setting",i,e),u(e,t)}function u(e,t){var n=t.connection,i=v.a.Deferred();return m.a.defer(function(){n.set({currentTest:null,testState:C.e}),i.reject(n)}),i.promise()}function d(e){
e.forEach(function(e){e.url="fail"+e.url})}function p(e,t){function n(t){Object(b.a)("[Connections] %s connected at %s",l,e),o.set({currentTest:null,testState:C.b}),s.resolve(o,t)}function a(t){var n={currentTest:null};if(t.some(function(e){return e.aborting}))Object(b.a)("[Connections] Aborted pending connection test for %s at %s",l,e),n.testState=C.a;else{var a=t.some(i),r=a?C.d:C.e;t.forEach(function(t){b.a.warn("[Connections] %s is %s at %s (Status %s)",l,r,e,t.status)}),n.testState=r}
o.set(n),s.reject(o,t)}var r=t.server,o=t.connection,s=v.a.Deferred(),l=r.get("debugName"),c=Object(j.a)(r);Object(b.a)("[Connections] Testing connection for %s at %s",l,e);var u=[],p={dataType:"text",headers:{Accept:c.accept},timeout:r.connectionTestTimeout};u.push(r.getXHROptions(e,p));var h=!Object(O.a)(r);if(null==t.url&&h){var f=r.resolveUrl("/",{connection:o});Object(b.a)("[Connections] Testing legacy connection for %s at %s",l,f),u.push(r.getXHROptions(f,p))}
var g=M.a.get("emulateBrokenHTTPS");if(g){var m=o.get("isHttps")&&!r.get("isCloudBased"),y="private"!==g||o.get("isPrivate");m&&y&&d(u)}var S=u.map(function(e){return v.a.ajax(e)}),D=I.a.apply(void 0,S);return o.set({currentTest:S,testState:C.c}),D.done(function(t,i){var o=S[0],s=S[1];if(200!==o.status&&404!==o.status||s&&200!==s.status)return void a(S);if(r.get("isCloud"))return void n()
;var u=c.parse(o.responseText),d=s?c.parse(s.responseText):void 0,p=r.parseResponse(v.a.extend(!0,{},u,d)),h=p.machineIdentifier,f=r.get("isTransient")?r.get("originalMachineIdentifier"):r.get("machineIdentifier");if(!h||f&&h!==f)b.a.warn("[Connections] %s has an unexpected machine identifier at %s",l,e),a(S);else{!0===p.mediaProviders?p.mediaProviders=1:!1===p.mediaProviders?p.mediaProviders=0:s||(p.mediaProviders=1);var g=r.parse(p)
;r.get("isTransient")&&(g.machineIdentifier=r.get("machineIdentifier")),g.isInstallingServerUpdate=!1,g.isProvidersPending=!1,g.isProvidersPopulated=!0,Object(P.a)(g.providers,r),n(g)}}),s.promise()}function h(e){var t=e.server,n=e.connection,i=t.resolveUrl(e.url||"/media/providers",{connection:n}),u=Object(S.c)("appModel"),d=u.get("settings");if(!M.a.get("allowHttpsMediaServerConnections")&&n.get("isHttps")&&!t.get("isCloudBased"))return r(i,e);var h=d.get("preferInsecureConnections")
;return t.get("httpsRequired")||t.get("isCloud")||!n.get("isHttps")||h!==D.a?!t.get("httpsRequired")&&n.get("isHttps")&&h===D.c&&n.get("isPrivate")&&t.get("publicAddressMatches")?o(i,e):M.a.get("allowMixedContent")||!y.a.isHostedHttps||n.get("isHttps")?a(e)?s(i,e):t.get("isCloud")||n.get("relay")||!d.get("rejectDirectConnections")&&!M.a.get("rejectDirectConnections")?p(i,e):c(i,e):l(i,e):r(i,e)}t.a=h
;var f=n(13),v=n.n(f),g=n(10),m=n.n(g),y=n(101),b=n(32),I=n(266),S=n(16),M=n(62),D=n(1796),C=n(1142),j=n(95),P=n(1169),O=n(1440)},function(e,t,n){"use strict";function i(e){return!(!e||e.get("isCloud")||"iOS"===e.get("platform")||!e.supports("companionProxy"))}function a(e){return!!(e&&e.get("isPrivate")&&e.get("isConnected"))}function r(e){return!(!i(e)||!a(e.get("activeConnection")))}function o(e){return!(!r(e)||e.get("isShared"))}
var s=n(10),l=n.n(s),c=n(78),u=n(32),d=n(110),p=n(16),h=n(210),f=c.a.extend({mixins:[d.a],name:"CompanionServerManager",initialize:function(e){this.appModel=e.appModel,this.servers=this.appModel.get("servers"),this._throttlePickCompanionServer=l.a.throttle(this._pickCompanionServer,2e3)},start:function(e){this.stop(),this.listenTo(this.servers,"change:connected change:activeConnection update",this._throttlePickCompanionServer),this.started=!0,this._pickCompanionServer()},stop:function(){
this.stopListening(),this.started=!1},_pickCompanionServer:function(){this.started&&(this.companionServer&&r(this.companionServer)&&this.servers.contains(this.companionServer)||(this.companionServer=this.servers.find(o)||this.servers.find(r),this.companionServer?(Object(p.c)("appStore").dispatch(Object(h.f)({serverEntityID:this.companionServer.entityID()})),u.a.info("[Companion] Found companion",this.companionServer.get("debugName"))):(Object(p.c)("appStore").dispatch(Object(h.k)()),
u.a.warn("[Companion] No companion found"))))}});t.a=f},function(e,t,n){"use strict";var i=n(59),a=n.n(i),r=n(78),o=n(19),s=n(110),l=n(122),c=n(4938),u=r.a.extend({mixins:[s.a],initialize:function(e){this.appModel=e.appModel,this.servers=this.appModel.get("servers")},start:function(){this.listenTo(c.a,"change",this.onManualConnectionChange),this.initManualServer()},stop:function(){this.stopListening()},initManualServer:function(){function e(e){var t=c.a.get("ip"+e),n=c.a.get("port"+e)
;t&&n&&this.addManualConnection(t,n,e)}e.call(this,1),e.call(this,2)},removeManualConnection:function(e,t,n){var i=this.appModel.get("primaryServer"),a="manualServer"+n,r=this.servers.find(function(e){return e.hasSource(a)});if(r){r.removeSource("internal"),r.removeSource(a);r.get("connections").findWhere({isConnected:!0})||r!==i||o.a.trigger("navigate","dashboard",{replace:!0})}},addManualConnection:function(e,t,n){var i="manualServer"+n,a={scheme:"http",address:e,port:t.toString(),sources:{
id:i}},r=new l.c({friendlyName:e});r.addConnection(a),this.servers.add(r)},onManualConnectionChange:function(e){var t=a()(e.changed)[0],n=t.slice(-1),i="ip"+n,r="port"+n,o=e.previous(i),s=e.previous(r),l=e.get(i),c=e.get(r);o&&s&&this.removeManualConnection(o,s,n),l&&c&&this.addManualConnection(l,c,n)}});t.a=u},function(e,t,n){"use strict";var i=n(767),a=i.a.extend({storageKey:"manualServers",defaults:{port1:"32400",port2:"32400"}});t.a=new a},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(78),u=(n(37),n(32),n(110)),d=n(180),p=n(16),h=n(62),f=n(4940),v=n(606),g=n(1514),m=n(1233),y=n(4941),b=n(221),I=c.a.extend({mixins:u.a,initialize:function(e){this.privacySettings=null,this.defaults={},this._pendingPrivacyRequest=null,this._pendingEvents=[],this.debouncedFetchPrivacySettings=l.a.debounce(this.fetchPrivacySettings,250),this.isPlaybackActive=e.isPlaybackActive,this.enable()},enable:function(){this.enabled=!0},
disable:function(){this.enabled=!1},set:function(e){this.defaults=a()({},this.defaults,e)},fetchPrivacySettings:function(){var e=this;this.privacySettings=null,this._pendingPrivacyRequest&&(this._pendingPrivacyRequest.abort(),this._pendingPrivacyRequest=null);var t=Object(p.c)("appModel").get("user");if(!t.server.get("isConnected"))return o.a.Deferred().reject().promise();var n=t.server.getXHROptions("/api/v2/user/privacy",{dataType:"json"});return this._pendingPrivacyRequest=o.a.ajax(n),
this._pendingPrivacyRequest.promise().done(function(n){e.set({userId:t.id}),e.setPrivacySettings(n),e.trackPendingEvents()}).always(function(){e._pendingPrivacyRequest=null})},setPrivacySettings:function(e){if(e&&e.metrics){this.privacySettings=a()({},e,{metrics:e.metrics.reduce(function(e,t){return e[t.event]=t.status,e},{})});Object(p.c)("metricsReporter").setBaseUrl(e.baseUrl)}},incrementPlaybackCount:function(){var e="playbackCount",t=Object(p.c)("sessionStats");t.save(e,t.get(e)+1)},
addPlaybackTime:function(e){var t="playbackTime",n=Object(p.c)("sessionStats");n.save(t,n.get(t)+e)},trackView:function(e,t){var n="client:view",i=a()({event:n,interaction:!0,properties:e},t),r=v.a.measure(Object(f.a)(n,e),n+":"+e.page+"-start");r&&(i.properties=a()({},i.properties,{latency:Math.round(r.duration)})),this.trackEvent(i)},trackClick:function(e,t){this.trackEvent(a()({event:"client:click",interaction:!0,properties:e},t))},trackEvent:function(e){var t=this;if(this.enabled){
var n=Object(p.c)("sessionStats"),i=n.get("sessionId"),r=n.get("anonymousSessionId"),s={},l=Object(p.c)("appModel"),c=Object(b.n)(l.get("activeNavigationType"));if(c&&!e.mode&&(s.mode=c.metricsMode),!this.privacySettings)return void this._pendingEvents.push(a()({eventDefaults:s},e,{sessionIdentifier:i,anonymousSessionIdentifier:r}));var u=o.a.extend(!0,s,this.defaults,e);u.sessionIdentifier||(u.sessionIdentifier=i),u.anonymousSessionIdentifier||(u.anonymousSessionIdentifier=r);var d=Date.now()
;if(!("client:shutdown"===e.event||"client:start"===e.event)){var h=n.get("lastInteractionTime"),f=n.get("lastPlayingHeartbeatTime");if(d-Math.max(h,f)>18e5)return void this.flushSession().then(function(){t.trackEvent(e)})}var v=this.privacySettings.metrics,g=v[u.event];if(g)if("off"===g);else{u.interaction&&Object(m.a)(),"anonymous"===g&&(delete u.userId,u.deviceIdentifier=Object(p.c)("appModel").get("anonymousClientID"),u.sessionIdentifier=u.anonymousSessionIdentifier),
delete u.anonymousSessionIdentifier;var y=Object(p.c)("metricsReporter");y.trackEvent(u)}}},trackPendingEvents:function(){for(var e=this._pendingEvents,t=0;t<e.length;)this.trackEvent(e[t]),t++;this._pendingEvents=[]},start:function(){var e=this,t=Object(p.c)("appModel").get("user");return this.flushSession().then(function(){return Object(d.a)(t.server.populate())}).then(function(){return e.fetchPrivacySettings()}).always(function(){
e.listenTo(t.server,"change:isConnected",e.onCloudServerChange),e.listenTo(t,"change:id",e.onUserIDChange)}),o.a.Deferred().resolve().promise()},flushSession:function(){var e=this,t=Object(p.c)("sessionStats"),n=t.populate().then(function(){e.stopSession(),e.startSession()},function(){e.startSession()});return Object(d.a)(n)},startSession:function(){var e=this,t=Date.now(),n=Object(p.c)("sessionStats");if(!this.interval){var i=h.a.get("heartbeatInterval");this.interval=setInterval(function(){
var t=Date.now(),i={heartbeatTime:t};e.isPlaybackActive()&&(i.lastPlayingHeartbeatTime=t),n.set(i)},i)}n.save({sessionId:Object(y.a)(),anonymousSessionId:Object(y.a)(),startTime:t,lastInteractionTime:t,heartbeatTime:t,lastPlayingHeartbeatTime:null,playbackCount:0,playbackTime:0});var a=v.a.endPeriod("client:start"),r={event:"client:start",interaction:!0};a&&(r.properties={latency:Math.round(a.duration)}),this.trackEvent(r)},stopSession:function(){
var e=Object(p.c)("sessionStats"),t=e.get("heartbeatTime"),n=e.get("playbackCount"),i=e.get("playbackTime"),a=e.get("startTime");this.trackEvent({event:"client:shutdown",interaction:!1,properties:{sessionLength:Math.floor((t-a)/1e3),playbackCount:n,playbackTime:Object(g.a)(i)}})},toJSON:function(){return a()({},this.defaults)},onCloudServerChange:function(e,t){t?this.fetchPrivacySettings():this.privacySettings=null},onUserIDChange:function(){this.privacySettings=null,
this.debouncedFetchPrivacySettings()}});t.a=I},function(e,t,n){"use strict";function i(e,t){for(var n=e,i=0;i<a.length;i++){var r=t[a[i]];null!=r&&(n=n+":"+r)}return n}t.a=i;var a=["page","type","style","mode"]},function(e,t,n){"use strict";function i(){return a.replace(r,o)}var a="00000000-0000-4000-8000-000000000000",r=/0/g,o=function(){return(0|16*Math.random()).toString(16)};t.a=i},function(e,t,n){"use strict";var i=n(78),a=n(110),r=n(16),o=n(304),s=n(272),l=i.a.extend({mixins:[a.a],
initialize:function(e){this.appModel=e.appModel},start:function(){var e;this.stop();var t=this.appModel.get("cloudServer"),n=this.appModel.get("user").get("pmp");this.populateCloudProviders(n.get("providers")),t.get("isPending")?this.wait():this.stopWaiting(t),this.listenTo(this.appModel,(e={"change:cloudServer.change:isResolved":this.onCloudServerStatusChange,"change:cloudServer.change:isRejected":this.onCloudServerStatusChange},
e["change:user.change:pmp.change:providers.add"]=this.onProviderAdd,e))},stop:function(){this._attemptPopulateAllProvidersTimer&&clearTimeout(this._attemptPopulateAllProvidersTimer),this.stopListening()},populateCloudProviders:function(e){var t=this;e.each(function(e){t.populateCloudProvider(e)})},populateCloudProvider:function(e){e.get("isPopulated")||Object(r.c)("appStore").dispatch(Object(o.d)({providerEntityID:e.entityID(),options:{merge:!0}}))},wait:function(){
Object(r.c)("appStore").dispatch(Object(s.l)())},stopWaiting:function(e){var t=Object(r.c)("appStore");this._attemptPopulateAllProvidersTimer&&clearTimeout(this._attemptPopulateAllProvidersTimer),e.get("isConnected")?this._attemptPopulateAllProvidersTimer=setTimeout(function(){t.dispatch(Object(s.j)())},3e3):t.dispatch(Object(s.j)())},onCloudServerStatusChange:function(e){var t=this;this._stopWaitingTimeout&&clearTimeout(this._stopWaitingTimeout),this._stopWaitingTimeout=setTimeout(function(){
return t.stopWaiting(e)},0)},onProviderAdd:function(e){this.populateCloudProvider(e)}});t.a=l},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(78),u=n(19),d=n(32),p=n(110),h=n(1138),f=n(4944),v=n(122),g=n(196),m=c.a.extend({mixins:[p.a],browserConnectionChangeDelay:2e3,initialize:function(e){l.a.bindAll(this,"onBrowserConnectionChange"),this.appModel=e.appModel,this.servers=this.appModel.get("servers"),this.settings=this.appModel.get("settings");var t={
callback:this.retryServerConnections.bind(this),logFormat:"[Connections] Retrying connection tests for %s in %s seconds"};this._cloudServerRetryManager=new h.a(t),this._primaryServerRetryManager=new f.a(a()({},t,{appModel:this.appModel}))},start:function(){this.stop();var e=o()(window);e.on("online",this.onBrowserConnectionChange),e.on("offline",this.onBrowserConnectionChange),this.listenTo(u.a,{"test:servers":this.onTestAllServers,"test:server":this.onTestServer}),this.listenTo(this.servers,{
add:this.onServerAdd,remove:this.onServerRemove,reset:this.onServersReset,"error:connection":this.onServerConnectionError,"change:connections.add":this.onServerConnectionAdd,"change:connections.remove":this.onServerConnectionRemove,"change:connections.reset":this.onServerConnectionsReset,"change:connections.change:isConnected":this.onServerConnectionConnectedChange,"change:connections.change:sources.change":this.onServerConnectionSourcesChange,"change:accessToken":this.onServerAccessTokenChange,
"change:isConnected":this.onServerConnectedChange,"change:isUnavailable":this.onServerUnavailableChange,"change:publicAddressMatches":this.onServerPublicAddressMatchesChange}),this.listenTo(this.settings,"sync",this.onSettingsSave),this.servers.invoke("testOnlyUntestedConnections")},stop:function(){this.stopListening(),this._cloudServerRetryManager.stopAll(),this._primaryServerRetryManager.stopAll();var e=o()(window);e.off("online",this.onBrowserConnectionChange),
e.off("offline",this.onBrowserConnectionChange)},retryServerConnections:function(e){e.testAllConnections()},_startFailedServerRetries:function(e){e.get("isCloud")?this._cloudServerRetryManager.start(e):this._primaryServerRetryManager.start(e)},_stopFailedServerRetries:function(e){e.get("isCloud")?this._cloudServerRetryManager.stop(e):this._primaryServerRetryManager.stop(e)},_removeConnection:function(e){var t=e.server,n=g.a.getActiveServers()
;if(Object(d.a)("[Connections] Removed connection %s from %s",e.id,t.get("debugName")),t.abortConnectionTest(e),n){var i=n.get(t.id),a=i&&i.get("connections");a&&a.get(e.id)&&(a.remove(e.id),a.length||n.remove(t.id),g.a.debouncedSave())}},onBrowserConnectionChange:function(e){var t=this;Object(d.a)("[Connections] Browser online status changed to",window.navigator.onLine),clearTimeout(this.browserConnectionChangeTimeout),this.browserConnectionChangeTimeout=setTimeout(function(){
t.servers.invoke("testAllConnections")},this.browserConnectionChangeDelay)},onTestAllServers:function(){this.servers.invoke("testAllConnections")},onTestServer:function(e){e.testAllConnections()},onServerAdd:function(e){e.testOnlyUntestedConnections()},onServerRemove:function(e){var t=g.a.getActiveServers(),n=void 0;if(e.abortAllConnectionTests(),this._stopFailedServerRetries(e),t)if(e.get("isMerged")){var i=e.previous("machineIdentifier");i&&(n=t.get(i))&&(n.set("machineIdentifier",e.id),
g.a.debouncedSave())}else(n=t.get(e.id))&&(t.remove(e.id),g.a.debouncedSave())},onServersReset:function(e,t){var n=this,i=t.previousModels;l.a.each(i,function(t){e.contains(t)||(t.abortAllConnectionTests(),n._stopFailedServerRetries(t))})},onServerConnectionError:function(e){if(d.a.warn("[Connections] Possible connection error for %s, retrying connection tests",e.get("debugName")),e.get("isCloud")){this.appModel.get("user").signInUnsupervised()}else e.testAllConnections()},
onServerConnectionAdd:function(e){var t=e.server;Object(d.a)("[Connections] Added connection %s for %s",e.id,t.get("debugName")),e.get("relay")?t.get("connections").hasFailedEveryDirectConnection()&&t.testAllConnections():t.testConnection(e)},onServerConnectionRemove:function(e){this._removeConnection(e)},onServerConnectionsReset:function(e,t){var n=this,i=t.previousModels;l.a.each(i,function(t){e.contains(t)||n._removeConnection(t)})},onServerConnectionConnectedChange:function(e,t){
var n=e.server,i=e.get("isBundled"),a=e.get("isFallback"),r=t&&!i&&!a,o=g.a.getActiveServers();if(n.id&&!n.get("isCloud")&&r&&o){var s=o.get(n.id);if(s)s.copyFromServer(n);else{var c=l.a.omit(n.toJSON(),"connections");s=o.add(c,{merge:!0,parse:!0})}s.get("connections").add(e.toJSON(),{merge:!0,parse:!0}),g.a.debouncedSave()}},onServerConnectionSourcesChange:function(e,t){var n=e.server,i=g.a.getActiveServers(),a=i&&i.get(n.id);if(a){var r=a.get("connections"),o=r.get(e.id);if(o){
o.get("sources").set(t.toJSON()),g.a.debouncedSave()}}},onServerAccessTokenChange:function(e,t){if(!e.get("isCloud")){Object(d.a)("[Connections] Access token for %s changed to %s",e.get("debugName"),t);var n=g.a.getActiveServers(),i=n&&n.get(e.id);i&&(i.set("accessToken",t),g.a.debouncedSave()),e.get("isUnauthorized")&&e.set("connectionTestResult",v.c.connectionTestResults.PENDING),e.testAllConnections()}},onServerConnectedChange:function(e,t){t&&this._stopFailedServerRetries(e)},
onServerUnavailableChange:function(e,t){t&&this._startFailedServerRetries(e)},onServerPublicAddressMatchesChange:function(e,t){void 0!==t&&e.testAllConnections()},onSettingsSave:function(e){e.changed.hasOwnProperty("preferInsecureConnections")&&this.servers.invoke("testAllConnections")}});t.a=m},function(e,t,n){"use strict";var i=n(110),a=n(790),r=a.a.extend({mixins:[i.a],initialize:function(e){var t=e.appModel;a.a.prototype.initialize.apply(this,arguments),this.appModel=t,
this.listenTo(this.appModel,"change:primaryServer",this.onPrimaryServerChange)},supportsRetry:function(e){var t=this.appModel.get("primaryServer");return!!t&&t.id===e.id},onPrimaryServerChange:function(e,t){var n=e.previous("primaryServer");n&&this.stop(n),t&&t.get("isUnavailable")&&this.start(t)}});t.a=r},function(e,t,n){"use strict";function i(e,t,n){return function(i){return i.server===e&&i.connection.id===t.id&&i.url===n}}
var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(78),c=n(32),u=n(16),d=n(62),p=n(265),h=l.a.extend({initialize:function(e){this.appModel=e.appModel,this.queued=[],this.executing=[],this.maximumConcurrent=d.a.get("maximumConcurrentConnectionTests"),this.throttledStartProcessing=s.a.throttle(this._startProcessing.bind(this),50,{leading:!1})},queueConnectionTest:function(e){var t=e.server,n=e.connection,i=e.url,a=this._queuedOrExecuting(t,n,i);if(a)return a.deferred.promise();var o=r.a.Deferred()
;return this.queued.push({server:t,connection:n,url:i,deferred:o}),this._sortQueue(),this.throttledStartProcessing(),o.promise()},abortConnectionTest:function(e){var t=e.server,n=e.connection,i=e.url;return this._abortCurrentTest(t,n,i),this._removeQueuedOrExecuting(t,n,i),r.a.Deferred().resolve().promise()},reset:function(){this.queued.length=0,this.executing.length=0},_sortQueue:function(){var e=this,t=this.appModel.get("user").get("lastPrimaryServerID");this.queued.sort(function(n,i){
var a=n.server,r=i.server,o=n.connection,s=i.connection,l=e._isManualConnection(o),c=e._isManualConnection(s),u=e._isMatchingLocation(a,o),d=e._isMatchingLocation(r,s)
;return a.id===t&&r.id!==t?-1:r.id===t&&a.id!==t?1:a.get("isCloud")&&!r.get("isCloud")?-1:r.get("isCloud")&&!a.get("isCloud")?1:!o.get("relay")&&s.get("relay")?-1:!s.get("relay")&&o.get("relay")?1:!o.get("isConnected")&&s.get("isConnected")?-1:!s.get("isConnected")&&o.get("isConnected")?1:!a.get("isShared")&&r.get("isShared")?-1:!r.get("isShared")&&a.get("isShared")?1:a.get("isFullServer")&&!r.get("isFullServer")?-1:r.get("isFullServer")&&!a.get("isFullServer")?1:!a.get("isCloudSyncServer")&&r.get("isCloudSyncServer")?-1:!r.get("isCloudSyncServer")&&a.get("isCloudSyncServer")?1:l&&!c?-1:c&&!l?1:o.get("isBundled")&&!s.get("isBundled")?-1:s.get("isBundled")&&!o.get("isBundled")?1:u&&!d?-1:d&&!u?1:0
})},_startProcessing:function(){s.a.times(this.maximumConcurrent-this.executing.length,this._process.bind(this))},_process:function(){var e=this;if(!(this.executing.length>=this.maximumConcurrent)&&this.queued.length){var t=this.queued.shift(),n=t.server,i=t.connection,a=t.url;this._abortCurrentTest(n,i,a);var r=Object(u.c)("testServerConnection"),o=r({server:n,connection:i,url:a});this.executing.push(t),o.done(function(e,n){t.deferred.resolve(e,n)}),o.fail(function(e,n){t.deferred.reject(e,n)
}),o.always(function(){var n=e.executing.indexOf(t);e.executing.splice(n,1),e._process()})}},_abortCurrentTest:function(e,t,n){if(t.get("currentTest")){t.get("currentTest").forEach(function(i){var a=e.resolveUrl(n||i.url,{connection:t});i&&"pending"===i.state()&&(Object(c.a)("[Connections] Aborting pending connection test for %s at %s",e.get("debugName"),a),p.a.abort(i.rid),i.abort())})}},_isManualConnection:function(e){return e.get("sources").some(function(e){
return 0===e.id.indexOf("manualServer")})},_isMatchingLocation:function(e,t){var n=e.get("publicAddressMatches"),i=t.get("isPrivate");return n&&i||!n&&!i},_queuedOrExecuting:function(e,t,n){var a=i(e,t,n);return s.a.find(this.executing,a)||s.a.find(this.queued,a)},_removeQueuedOrExecuting:function(e,t,n){var a=i(e,t,n),r=s.a.findIndex(this.executing,a),o=s.a.findIndex(this.queued,a);r>=0&&this.executing.splice(r,1),o>=0&&this.queued.splice(o,1)}});t.a=h},function(e,t,n){"use strict"
;function i(e,t,n){function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x)return void(A=!0);if(A=!1,!M()){var t=a(f.c),n=a(f.a),i=a(f.b),r=t._location||i._location||n._location||p.a,o={MediaContainer:{_location:r,Timeline:[t,n,i]}};e.requestDisconnect&&(o.MediaContainer._disconnected=1),Object(l.a)(o);Object(c.c)("companionProxy").publish(o),x=setTimeout(C,S)}}function a(t){var n={_type:t,_state:h.d,_volume:E(e),_controllable:O[t]},i=o(t);if(!i)return n
;var a=i.get("serverEntityID"),l=i.get("providerEntityID"),c=Object(m.k)(e,{serverEntityID:a}),y=Object(m.i)(e,{providerEntityID:l}),b=Object(I.a)(c,y),S=i.get("decisions"),M=i.get("playQueue"),C=M.get("playQueueItems"),j=M.get("playQueueSelectedItemID"),P=C.get(j),T=P.get("metadataItem"),w=Object(u.a)({metadataItemModel:T}),A=f.d(w),x=1e3*i.get("positionSeconds"),N=1e3*i.get("durationSeconds"),L=v.b;return i.get("repeatOne")?L=v.c:i.get("repeatAll")&&(L=v.a),
b?(n._machineIdentifier=b.machineIdentifier,n._protocol=b.protocol,n._address=b.address,n._port=b.port):n._machineIdentifier=c.get("originalMachineIdentifier")||c.get("machineIdentifier"),n._providerIdentifier=y.get("identifier"),n._itemType=A,n._key=T.get("key"),n._ratingKey=T.get("ratingKey"),n._containerKey=s.a.result(M,"url"),M.get("isLocal")||(n._playQueueID=M.get("playQueueID"),n._playQueueItemID=j,n._playQueueVersion=M.get("playQueueVersion")),n._state=Object(d.a)(i),n._time=x,
n._duration=N,n._seekRange="0-"+N,n._shuffle=M.get("playQueueShuffled")?1:0,n._repeat=L,i.get("openState")===g.a&&(n._location=p.b(t)),r()({},n,D(P,S))}function o(t){var n=f.e(t);return T(e).find(function(e){var t=e.get("playQueue");if(t&&t.get("type")===n)return e})}function M(){return T(e).some(function(e){return e.get("isPlayQueueLoading")})}function D(e,t){var n=e.get("metadataItem"),i=t[e.entityID()];if(!i)return{};var a={_mediaIndex:i.mediaIndex,_partIndex:i.partIndex,
_partCount:i.partCount},r=n.get("Media"),o=r[i.mediaIndex],s=o&&o.Part,l=s&&s[i.partIndex];return(l?l.Stream:[]).reduce(function(e,t){var n=t.id,i=t.streamType,a=t.selected;return n?(i===y.a.get("video").id?e._videoStreamID=n:a&&(i===y.a.get("audio").id?e._audioStreamID=n:i===y.a.get("subtitles").id&&(e._subtitleStreamID=n)),e):e},a)}function C(){x=null,A&&i()}function j(){if(!w){w=!0,(Object(c.a)("remoteCastPlayerManager")||Object(c.a)("remotePlexPlayerManager"))&&t.dispatch(Object(b.i)())
;T(e).forEach(function(e){e.on("change",i)})}}function P(t){w=!1,x&&(clearTimeout(x),x=null),T(e).forEach(function(e){e.off("change",i)}),t&&i({requestDisconnect:t})}var O=n.companionPlayerProfile,T=n.getPlayerModels,E=n.getVolume,w=!1,A=!1,x=void 0;return{start:j,stop:P}}t.a=i;var a=n(6),r=n.n(a),o=n(10),s=n.n(o),l=n(32),c=n(16),u=n(435),d=n(985),p=n(4947),h=n(1797),f=n(437),v=n(527),g=n(212),m=n(70),y=n(159),b=n(325),I=n(1798),S=1e3},function(e,t,n){"use strict";function i(e){return s[e]}
n.d(t,"a",function(){return o}),t.b=i;var a,r=n(437),o="navigation",s=(a={},a[r.c]="fullScreenVideo",a[r.a]="fullScreenMusic",a[r.b]="fullScreenPhoto",a)},function(e,t,n){"use strict";var i=n(607),a=n(14),r=i.a.extend({name:"SessionStatsModel",storageKey:"sessionstats",syncedAttrs:{heartbeatTime:a.a.integer,lastPlayingHeartbeatTime:a.a.integer,playbackCount:a.a.integer,playbackTime:a.a.integer,sessionId:a.a.string,anonymousSessionId:a.a.string,startTime:a.a.integer,
lastInteractionTime:a.a.integer},defaults:{playbackCount:0,playbackTime:0}});t.a=r},function(e,t,n){"use strict";var i=n(179),a=n.n(i),r=n(87),o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(19),d=n(16),p=n(4950),h=n(4951),f=/(auth_token=|accessToken=|X-Plex-Token=|authToken=)(\"?\w+\"?)/g,v=/(email=)(\"?[^&]+\"?)/g,g=/(password=)([^&]+)/,m=/(address=|host=|uri=)(\"?[^&]+\"?)/g,y=function(e){return e=e.replace(f,"$1TOKEN"),e.replace(g,"$1PASSWORD")},b=function(e){
return e&&e.hasOwnProperty("X-Plex-Token")&&(e["X-Plex-Token"]="TOKEN"),e&&e.hasOwnProperty("Authorization")&&(e.Authorization="BASIC AUTHORIZATION"),e},I=function(e){if(e)return e=e.replace(f,'$1"TOKEN"'),e=e.replace(v,'$1"EMAIL"'),e=e.replace(m,'$1"IP ADRRESS"')},S=r.c.Collection.extend({model:p.a,initialize:function(e,t){c.a.bindAll(this,"onAjaxComplete","onAppModelRegistered"),this.parent=t.parent,h.a.parent=t.parent,Object(d.d)("appModel").done(this.onAppModelRegistered)},
reconfigure:function(){Object(d.c)("appModel").get("settings").get("debugLevel")?this.start():this.stop()},start:function(){this.enabled||(this.enabled=!0,this.reset(),this.listenTo(u.a,"log:message",this.onLogMessage),r.c.history.on("route",this.onRoute,this),s()(document).on("ajaxComplete",this.onAjaxComplete))},stop:function(){this.enabled&&(this.enabled=!1,this.reset(),this.stopListening(u.a),r.c.history.off("route",this.onRoute,this),s()(document).off("ajaxComplete",this.onAjaxComplete))},
destroy:function(){this.stop(),this.stopListening()},add:function(){this.length>200&&this.shift(),r.c.Collection.prototype.add.apply(this,arguments)},toJSON:function(){var e=r.c.Collection.prototype.toJSON.apply(this,arguments);return e.unshift(c.a.extend({type:"info"},h.a.toJSON())),e},toJSONString:function(){return a()(this.toJSON(),null,2)},onAppModelRegistered:function(e){var t=e.get("settings");this.listenTo(t,"change:debugLevel",this.reconfigure),this.reconfigure()},
onLogMessage:function(e){this.add(e)},onRoute:function(e,t,n){var i={type:"navigation",route:t,args:n,fragment:window.location.hash};this.add(i)},onAjaxComplete:function(e,t,n){var i=Object(d.c)("appModel").get("settings"),a={type:"ajax",url:y(n.url),status:t.status};c.a.isEmpty(n.headers)||(a.headers=b(n.headers)),c.a.isEmpty(n.data)||(a.params=y(n.data)),
200===t.status?2===i.get("debugLevel")?a.response=I(t.responseText):a.responseLength=t.responseText?t.responseText.length:0:(a.statusText=t.statusText,a.response=I(t.responseText)),this.add(a)}});t.a=S},function(e,t,n){"use strict";var i=n(87),a=i.c.Model.extend({initialize:function(e,t){this.set("time",new Date)}});t.a=a},function(e,t,n){"use strict";var i=n(87),a=n(50),r=i.c.Model.extend({initialize:function(e,t){this.set("host",window.location.host),
this.set("userAgent",window.navigator.userAgent),this.set("browser",a.a)},toJSON:function(){var e=this.parent,t=e.get("primaryServer"),n=e.get("user");return this.set("version","3.83.2"),t&&(t.get("activeConnection")&&this.set("primaryServerUrl",t.url()),this.set("primaryServerAuthToken",!!t.get("accessToken")),this.set("primaryServerVersion",t.get("versionFull"))),this.set("username",n.get("username")),this.set("cloudUrl",n.server.get("connections")),
i.c.Model.prototype.toJSON.apply(this,arguments)}});t.a=new r},function(e,t,n){"use strict";function i(){var e=Object(a.c)("appModel"),t=e.get("ui"),n=t.get("audioVideoPlayer"),i=t.get("photoPlayer"),s=Object(r.a)(n),l=Object(r.a)(i);return s===o.d||l===o.d}var a=n(16),r=n(985),o=n(709);t.a=i},function(e,t,n){"use strict";function i(e,t,n){return{commandID:e,body:Y.a.writeXml({Response:{_code:t,_status:n}}),responseCode:t}}function a(e){Object(T.c)("appStore").dispatch(e)}function r(e,t){
var n=e.type&&e.type[0];n?(t.type===z.a&&d(),a(k.d({type:n,action:t}))):O.a.warn("[Companion] Ignored playback action due to missing type")}function o(){var e=Object(T.c)("appModel"),t=e.get("inputActivity");t&&t.notice()}function s(e){var t=e.machineIdentifier[0],n=t===H.b,i=Object(T.c)("appModel"),r=i.get("servers"),o=r.get(n?H.a:t),s=i.get("transientServer");W=t;var l=void 0;if(o&&o.get("isCloud"))l=o;else{var c={machineIdentifier:"transient-"+t,originalMachineIdentifier:t,
accessToken:e.token&&e.token[0]};o&&(c.serverClass=o.get("serverClass"),c.publicAddressMatches=o.get("publicAddressMatches"),c.version=o.get("version")),s&&s.get("originalMachineIdentifier")===t?(l=s,l.set(c)):l=new x.a(c,{parent:i})}var u=o&&o.get("isConnected")&&o.get("activeConnection"),d=void 0;if(u)d={scheme:u.get("scheme"),address:u.get("address"),port:u.get("port"),uri:u.get("uri")};else{var p=e.port&&e.port[0],h=e.protocol&&e.protocol[0],f=e.address&&e.address[0],v=f,g=void 0
;if(!h&&!f)return O.a.warn("[Companion] Unable to create a transient server without a protocol or address"),j.a.Deferred().reject().promise();"https"===h&&(f=Object(Q.a)(f),w.a.get("allowHttpsMediaServerConnections")||(h="http",v=f)),g=h+"://"+v,p&&(g+=":"+p),d={scheme:h,address:f,port:p,uri:g}}return l.addConnection(d),l.testOnlyUntestedConnections().then(function(){return W!==t?j.a.Deferred().reject().promise():(l.get("isTransient")&&a(k.e(l)),l)})}function l(e,t){
var n=Object(T.c)("appModel"),i=n.get("user");return(e.get("isCloud")?i.get("pmp").get("providers"):e.get("providers")).populate()}function c(e,t,n){var i=n.key&&n.key[0],a=i.replace("/children",""),r=new A.a({key:a},{server:e,provider:t});return K=a,r.populate().then(function(){return K!==a?j.a.Deferred().reject().promise():{metadataItemModel:r}})}function u(){var e=j.a.Deferred();return Object(T.c)("appModel").get("user").get("isLocked")?e.reject():e.resolve(),e.promise()}function d(){
Object(T.c)("appModel").get("user").get("isRemote")&&a(Object(B.d)())}function p(){Object(T.c)("localCompanionTimelineManager").start()}function h(){d(),Object(T.c)("localCompanionTimelineManager").stop()}function f(e){var t=e.providerIdentifier&&e.providerIdentifier[0],n=e.type&&e.type[0],i=e.offset&&e.offset[0],r=e.mediaIndex&&e.mediaIndex[0],o=e.containerKey&&e.containerKey[0],u=void 0,d=void 0;return E.a.execute("remotePlaybackUnlock").then(function(){return s(e)}).then(function(t){
return u=t,l(u,e)}).then(function(n){var i=Object(L.a)(o);if(i){if(d=n.get(t||V.d))return j.a.Deferred().resolve({playQueueID:i}).promise()}else if(d=n.get(t||V.a))return c(u,d,e);return j.a.Deferred().reject().promise()}).then(function(e){var t=e.metadataItemModel,s=e.playQueueID,l=u.entityID(),c=d.entityID(),p=F.e(n),h=null==i?null:parseInt(i,10),f=null==r?null:parseInt(r,10);if(t){var v=t.entityID();a(z.m({serverEntityID:l,providerEntityID:c,metadataItemEntityID:v,startMetadataItemEntityID:v,
startOffsetMilliseconds:h,startMediaIndex:f,confirmPlayback:!0,confirmOffset:!0,options:{type:p,containerKey:o}}))}else a(z.j({serverEntityID:l,providerEntityID:c,playQueueType:p,playQueueID:s,startOffsetMilliseconds:h,startMediaIndex:f}))})}function v(e){var t=e.providerIdentifier&&e.providerIdentifier[0],n=void 0,i=void 0;return u().then(function(){return s(e)}).then(function(t){return n=t,l(n,e)}).then(function(a){return i=a.get(t||V.d),i?c(n,i,e):j.a.Deferred().reject().promise()
}).then(function(e){var t=e.metadataItemModel;a(k.c({serverEntityID:n.entityID(),providerEntityID:i.entityID(),key:t.get("key"),parentKey:t.get("parentKey"),type:t.get("type")}))})}function g(e){var t=decodeURIComponent(e.key[0]);r(e,R.g({key:t}))}function m(e){var t=parseInt(e.offset[0],10);r(e,U.m({positionSeconds:Math.floor(t/1e3)}))}function y(e){r(e,R.c())}function b(e){var t=e.volume&&e.volume[0],n=e.repeat&&e.repeat[0],i=e.shuffle&&e.shuffle[0];if(null!=t){var a=parseInt(t,10);r(e,U.h({
volume:a}))}if(null!=n){var o=parseInt(n,10);r(e,R.p({repeatAll:o===_.a,repeatOne:o===_.c}))}null!=i&&r(e,R.u())}function I(e){var t=e.audioStreamID&&e.audioStreamID[0],n=e.subtitleStreamID&&e.subtitleStreamID[0];null!=t&&r(e,U.f({streamTypeString:"audio",streamID:parseInt(t,10)})),null!=n&&r(e,U.f({streamTypeString:"subtitles",streamID:parseInt(n,10)}))}function S(e){P.a.trigger("companion:"+e),P.a.trigger("companion:key",e)}function M(){u().then(function(){a(Object(N.j)())})}function D(e){
var t=e.path,n=e.query,a=e.commandID,r=e.supportsTimeline,s=j.a.Deferred(),l=G[t];if(o(),!1!==r&&Object(T.c)("localCompanionTimelineManager").start(),l){(l(n)||j.a.Deferred().resolve().promise()).done(function(){Object(O.a)('[Companion] Successfully processed command from path "'+t+'"');var e=i(a,200,"OK");s.resolve({controllerResponse:e})}).fail(function(){O.a.warn('[Companion] Failed to process command from path "'+t+'"');var e=i(a,400,"Bad Request");s.resolve({controllerResponse:e})})}else{
O.a.warn('[Companion] Unable to handle command from unknown path "'+t+'"');var c=i(a,400,"Bad Request");s.resolve({controllerResponse:c})}return s.promise()}t.a=D;var C=n(13),j=n.n(C),P=n(19),O=n(32),T=n(16),E=n(43),w=n(62),A=n(94),x=n(1799),N=n(210),L=n(968),k=n(1800),R=n(172),z=n(77),U=n(143),B=n(272),F=n(437),_=n(527),V=n(41),H=n(90),Q=n(1143),Y=n(1801),G={"/player/timeline/subscribe":p,"/player/timeline/unsubscribe":h,"/player/mirror/details":v,"/player/playback/playMedia":f,
"/player/playback/pause":function(e){return r(e,U.j())},"/player/playback/play":function(e){return r(e,U.k())},"/player/playback/stop":function(e){return r(e,z.f())},"/player/playback/skipNext":function(e){return r(e,R.h())},"/player/playback/skipPrevious":function(e){return r(e,R.i())},"/player/playback/stepForward":function(e){return r(e,U.q())},"/player/playback/stepBack":function(e){return r(e,U.p())},"/player/playback/skipTo":g,"/player/playback/seekTo":m,
"/player/playback/refreshPlayQueue":y,"/player/playback/setParameters":b,"/player/playback/setStreams":I,"/player/navigation/moveLeft":function(){return S("moveLeft")},"/player/navigation/moveRight":function(){return S("moveRight")},"/player/navigation/moveUp":function(){return S("moveUp")},"/player/navigation/moveDown":function(){return S("moveDown")},"/player/navigation/select":function(){return S("select")},"/player/navigation/back":function(){return S("back")},"/player/navigation/home":M
},W=void 0,K=void 0},function(e,t,n){"use strict";function i(){return{shortcuts:[{keys:["?"],fn:"help",group:"navigation",label:function(){return Object(s.default)("Open Keyboard Shortcuts")}},{keys:["esc"],fn:"escape",group:"navigation",label:function(){return Object(s.default)("Close Modal or Menu")}},{keys:["g d"],fn:"dashboard",group:"navigation",label:function(){return Object(s.default)("Navigate to Dashboard")},isSupported:function(){return!Object(o.a)()}},{keys:["g h"],fn:"home",
group:"navigation",label:function(){return Object(s.default)("Navigate to Home")},isSupported:o.a},{keys:["g s"],fn:"settings",group:"navigation",label:function(){return Object(s.default)("Navigate to Settings")}},{keys:["g a"],fn:"activity",group:"navigation",label:function(){return Object(s.default)("Navigate to Activity")}},{keys:["g u"],fn:"users",group:"navigation",label:function(){return Object(s.default)("Navigate to Users")}},{keys:["/"],fn:"search",group:"actions",label:function(){
return Object(s.default)("Focus Search")}},{keys:["p"],fn:"playSelected",group:"actions",label:function(){return Object(s.default)("Open Player")}},{keys:["w"],fn:"toggleWatched",group:"actions",label:function(){return Object(s.default)("Toggle as Watched/Unwatched")}},{keys:["e"],fn:"edit",group:"actions",label:function(){return Object(s.default)("Edit Metadata")}},{keys:["i"],fn:"info",group:"actions",label:function(){return Object(s.default)("Get Info")}},{keys:["shift+s"],fn:"save",
group:"actions",label:function(){return Object(s.default)("Save Changes")}},{keys:["space","play_pause"],fn:"playPause",group:"player",label:function(){return Object(s.default)("Play or Pause")}},{keys:["play"],fn:"play",group:"player",label:function(){return Object(s.default)("Play")}},{keys:["pause"],fn:"pause",group:"player",label:function(){return Object(s.default)("Pause")}},{keys:["\\"],fn:"toggleFullScreen",group:"player",label:function(){return Object(s.default)("Toggle FullScreen")}},{
keys:["down"],fn:"decreaseVolume",group:"player",label:function(){return Object(s.default)("Decrease Volume")}},{keys:["up"],fn:"increaseVolume",group:"player",label:function(){return Object(s.default)("Increase Volume")}},{keys:[",","left"],fn:"seekBackward",group:"player",label:function(){return Object(s.default)("Seek Backward (10 seconds)")}},{keys:[".","right"],fn:"seekForward",group:"player",label:function(){return Object(s.default)("Seek Forward (30 seconds)")}},{keys:["[","alt+left"],
fn:"stepBackward",group:"player",label:function(){return Object(s.default)("Step Backward (10 minutes)")}},{keys:["]","alt+right"],fn:"stepForward",group:"player",label:function(){return Object(s.default)("Step Forward (10 minutes)")}},{keys:["shift+left","step_backward"],fn:"skipPrevious",group:"player",label:function(){return Object(s.default)("Skip to Previous Item")}},{keys:["shift+right","step_forward"],fn:"skipNext",group:"player",label:function(){
return Object(s.default)("Skip to Next Item")}},{keys:["x"],fn:"stop",group:"player",label:function(){return Object(s.default)("Close Player")}}],triggerShortcut:function(e){var t="shortcut:"+e;if(a.a.hasListener(t))return a.a.trigger(t),!1},help:function(e){a.a.trigger("show:modal",new c.a({shortcuts:this.shortcuts}))},escape:function(e){a.a.trigger("shortcut:escape")},dashboard:function(e){a.a.trigger("navigate","dashboard")},home:function(e){a.a.trigger("navigate","dashboard")},
settings:function(e){Object(l.a)("webSettings",{settingsSubset:"general"})},activity:function(e){var t=r.c("appModel"),n=t.get("primaryServer");n&&!n.get("isShared")&&Object(l.a)("nowPlaying",{serverID:n.id})},users:function(e){a.a.trigger("navigate","users")},search:function(e){return this.triggerShortcut("search")},playSelected:function(e){return this.triggerShortcut("playSelected")},toggleWatched:function(e){return this.triggerShortcut("toggleWatched")},edit:function(e){
return this.triggerShortcut("edit")},info:function(e){return this.triggerShortcut("info")},save:function(e){return this.triggerShortcut("save")},playPause:function(e){return this.triggerShortcut("playPause")},play:function(e){return this.triggerShortcut("play")},pause:function(e){return this.triggerShortcut("pause")},toggleFullScreen:function(e){return this.triggerShortcut("toggleFullScreen")},decreaseVolume:function(e){return this.triggerShortcut("decreaseVolume")},increaseVolume:function(e){
return this.triggerShortcut("increaseVolume")},seekBackward:function(e){return this.triggerShortcut("seekBackward")},seekForward:function(e){return this.triggerShortcut("seekForward")},stepBackward:function(e){return this.triggerShortcut("stepBackward")},stepForward:function(e){return this.triggerShortcut("stepForward")},skipPrevious:function(e){return this.triggerShortcut("skipPrevious")},skipNext:function(e){return this.triggerShortcut("skipNext")},stop:function(e){
return this.triggerShortcut("stop")}}}t.a=i;var a=n(19),r=n(16),o=n(515),s=n(3),l=n(182),c=n(1494)},function(e,t,n){"use strict";var i=n(1802),a={video:i.c,music:i.a,photo:i.b};t.a=a},function(e,t,n){"use strict";var i=n(19),a=n(4957),r=n(4958),o=a.a.extend({fetchPrimaryRelations:function(e){var t=this,n=e.get("isFullOwnedServer"),i=e.get("isShared")&&e.supports("sharedSettings"),a=e.get("pmp").get("settings");if(n||i){var r=a.populate();n&&r.done(function(){var n=t.appModel.get("primaryServer")
;n&&n.id===e.id&&t.handlePrimarySettings(e,a)})}if(n){e.get("pmp").get("sessions").fetch({reset:!0})}},handlePrimarySettings:function(e,t){var n=t.get("AcceptedEULA");n&&!1===n.get("value")&&i.a.trigger("navigate","setupBasic",{serverID:e.id})},onPrimaryServerChange:function(e,t){if(a.a.prototype.onPrimaryServerChange.call(this,e,t),t&&t.get("isPersonalCloudServer")){e.get("experienceSettings").get("hasDismissedPersonalCloudScanAlert")||i.a.trigger("show:bar","alertbar",new r.a({}))}}});t.a=o
},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(78),o=n(32),s=n(110),l=n(16),c=n(196),u=n(210),d=n(116),p=n(138),h=r.a.extend({mixins:[s.a],initialize:function(e){this.appModel=e.appModel,this.servers=this.appModel.get("servers")},start:function(e){this.stop(),this.listenTo(this.appModel,{"change:primaryServer":this.onPrimaryServerChange,"change:primaryServer.change:isPrimaryEligible":this.onPrimaryServerEligibleChange,
"change:primaryServer.change:isOutOfDate":this.onPrimaryServerOutOfDateChange,"change:isWaitingForServers":this.onWaitingForServersChange,"change:primaryServer.change:isRelayed":this.onPrimaryServerIsRelayedChange}),this.listenTo(this.servers,{"update reset":this.onServersUpdate}),this._setPrimaryServer(p.m)},stop:function(){this.stopListening(),this._primaryServerPromise=null},fetchPrimaryRelations:function(e){},_setPrimaryServer:function(e){var t=this
;if(this._primaryServerPromise)return this._primaryServerPromise;var n=Object(l.c)("appStore");n.dispatch(Object(u.l)());var i=this._waitForPrimaryServer();return this._primaryServerPromise=i,i.done(function(a){if(i===t._primaryServerPromise){if(t._primaryServerPromise=null,t.appModel.get("primaryServer"))return;var r=!a.get("version")&&!a.get("isRejected");a.get("isOutOfDate")||r?(Object(o.a)("[Primary Server] The server, %s, is waiting for a version",a.get("debugName")),
t._setPrimaryServer(e)):n.dispatch(Object(u.g)({machineIdentifier:a.id,metricsProperties:{context:e}}))}}).fail(function(){i===t._primaryServerPromise&&(t._primaryServerPromise=null,t.appModel.set("isWaitingForPrimaryServer",!1))}),i},_waitForPrimaryServer:function(){var e=this,t=this.appModel.get("user"),n=t.get("lastPrimaryServerID"),i=void 0;return n?(Object(o.a)("[Primary Server] Waiting for the last primary server, %s, to connect",n),i=this.servers.populateServer({machineIdentifier:n,
isPrimaryEligible:!0,isOutOfDate:!1})):i=a.a.Deferred().reject().promise(),i=i.then(null,function(){return Object(o.a)("[Primary Server] Waiting for any owned server to connect"),e.servers.populateServer({isFullOwnedServer:!0,isPersonalCloudServer:!1,isPrimaryEligible:!0,isOutOfDate:!1})}),i=i.then(null,function(){return Object(o.a)("[Primary Server] Waiting for any eligible server to connect"),e.servers.populateServer({isPrimaryEligible:!0,isOutOfDate:!1})}),i=i.then(null,function(){
return Object(o.a)("[Primary Server] Waiting for any eligible server"),e.servers.findServer({isPrimaryEligible:!0,isOutOfDate:!1})})},onPrimaryServerChange:function(e,t){c.a.flushDebouncedSave();var n=e.previous("primaryServer");if(n&&this.stopListening(n),t){o.a.info("[Primary Server] %s is now the primary server",t.get("debugName"));if(e.get("user").set("lastPrimaryServerID",t.id),
t.get("isConnected")?this.fetchPrimaryRelations(t):this.listenTo(t,"change:isConnected",this.onPrimaryServerConnectedChange),t.get("isRelayed")){Object(l.c)("appStore").dispatch(Object(d.d)({machineIdentifier:t.id,serverName:t.get("friendlyName")}))}}else e.get("isWaitingForPrimaryServer")?Object(o.a)("[Primary Server] Waiting to set the primary server"):o.a.warn("[Primary Server] No primary server found")},onPrimaryServerEligibleChange:function(e,t){var n=this.appModel.get("user")
;t||(Object(o.a)("[Primary Server] The previous primary server, %s, is unauthorized",e.get("debugName")),n.unset("lastPrimaryServerID"),this._setPrimaryServer(p.c))},onPrimaryServerOutOfDateChange:function(e,t){var n=this.appModel.get("user");t&&(Object(o.a)("[Primary Server] The previous primary server, %s, is out of date",e.get("debugName")),n.unset("lastPrimaryServerID"),this._setPrimaryServer(p.c))},onPrimaryServerConnectedChange:function(e,t){t&&this.fetchPrimaryRelations(e)},
onWaitingForServersChange:function(e,t){if(t){var n=e.get("primaryServer"),i=!n||!this.servers.get(n.id),a=e.get("isWaitingForPrimaryServer");i&&!a&&this._setPrimaryServer(p.c)}},onPrimaryServerIsRelayedChange:function(e,t){if(t){Object(l.c)("appStore").dispatch(Object(d.d)({machineIdentifier:e.id,serverName:e.get("friendlyName")}))}},onServersUpdate:function(){var e=this.appModel.get("user"),t=this.appModel.get("primaryServer");if(t){
t&&!this.servers.get(t.id)&&(Object(o.a)("[Primary Server] The previous primary server, %s, was removed",t.get("debugName")),e.unset("lastPrimaryServerID"),this._setPrimaryServer(p.c))}else this._setPrimaryServer(p.m)}});t.a=h},function(e,t,n){"use strict";var i=n(16),a=n(301),r=n(4959),o=n.n(r),s=a.a.extend({className:"alert-bar notify",template:o.a,onCloseClick:function(e){a.a.prototype.onCloseClick.apply(this,arguments),
Object(i.c)("appModel").get("experienceSettings").save("hasDismissedPersonalCloudScanAlert",!0)}});t.a=s},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),o=o||{};var s="",l=this.escapeExpression
;return s+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message" title="'+l(i(n(5)).call(t,"Plex Cloud no longer scans new files automatically. Please select {1}Scan Library Files{2} after uploading new media to a Plex Cloud library to see it.","","",{hash:{},data:o
}))+'"> '+l(i(n(5)).call(t,"Plex Cloud no longer scans new files automatically. Please select {1}Scan Library Files{2} after uploading new media to a Plex Cloud library to see it.",'<a class="link" href="https://support.plex.tv/articles/200289306-scanning-vs-refreshing-a-library/" target="_blank" style="display: inline; margin-left: 0">',"</a>",{hash:{},data:o}))+" </span> "})},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(101),o=n(19),s=n(43),l=n(4961),c=n(122),u=l.a.extend({
start:function(){l.a.prototype.start.call(this),this.listenTo(this.servers,"change:isClaimed",this.onClaimedChange),this.listenTo(o.a,"cloudServer:addUnclaimedServer",this.onAddClaimedServer)},onAddClaimedServer:function(e){var t=this.appModel,n=t.get("cloudServer"),i=new c.c({},{parent:t}),o=Array.isArray(e.Device.Connection)?e.Device.Connection:[e.Device.Connection];a.a.each(o,function(e){var t=e.uri,a=e.port,r=e.address,o=e.protocol;i.addConnection({uri:t,port:a,address:r,scheme:o,sources:[{
id:n.id}]})},this),r.a.isHostedHttps&&!i.get("isSecure")?s.a.execute("showClaimServerAlertBar",i):t.get("servers").add(i)},onClaimedChange:function(e,t){var n=e.get("isFullOwnedServer")&&e.get("isConnected"),i=!1===t&&!e.previous("isClaimed");n&&i&&s.a.execute("showClaimServerAlertBar",e)}});t.a=u},function(e,t,n){"use strict";var i=n(59),a=n.n(i),r=n(13),o=n.n(r),s=n(10),l=n.n(s),c=n(78),u=n(19),d=n(32),p=n(110),h=n(122),f=n(1149),v=n(196),g=n(36),m=a()(f.a.prototype.syncedAttrs),y=c.a.extend({
mixins:[p.a],initialize:function(e){this.appModel=e.appModel,this.servers=this.appModel.get("servers")},start:function(){var e=this;this.stop(),this.listenTo(this.servers,{"change:promiseState":this.onServerPromiseStateChange,remove:this.onServerRemove,"update reset":this.onServersUpdateReset,"change:resources.add":this.onResourceAdd,"change:resources.remove":this.onResourceRemove,"change:resources.update":this.onResourcesUpdate,"change:resources.reset":this.onResourcesReset,
"change:resources.change:presence":this.onResourcesPresenceChange,"change:resources.change:connections.update":this.onResourceConnectionsUpdate}),m.forEach(function(t){e.listenTo(e.servers,"change:"+t,e.onStoredServerAttributeChange.bind(e,t))}),this.listenTo(u.a,"discover:servers",this.onDiscoverServers),this._setAuthorized(),this._checkFoundAllServers()},stop:function(){this.stopListening()},_checkFoundAllServers:function(){
this.servers.shouldWaitForInitialServers()?this._waitForServers():this.servers.shouldWaitForResources()?this._waitForServers():this.servers.shouldWaitForPendingServers()?this._waitForServers():this._foundAllServers()},_waitForServers:function(){var e=this;this.servers.waitForServers(),Object(g.a)(function(){e.appModel.set("isWaitingForServers",!0)})},_foundAllServers:function(){var e=this;this.servers.foundAllServers(),Object(g.a)(function(){e.appModel.set("isWaitingForServers",!1)})},
_fetchResources:function(e){var t=this;if(e.get("isRejected"))return o.a.Deferred().reject().promise();if(!e.get("isResolved"))return Object(d.a)("[Servers] Finding resources through unresolved cloud server %o, resolving",e.get("debugName")),e.populate().then(function(){return t._fetchResources(e)});Object(d.a)("[Servers] Finding resources through %s",e.get("debugName")),this._waitForServers(),e.set("isResourcesPending",!0);var n=e.get("resources");return n.fetch().done(function(){
Object(d.a)("[Servers] Found %s resources through %s",n.length,e.get("debugName")),e.set({isResourcesPending:!1,hasFailedResources:!1,isDownForMaintenance:!1})}).fail(function(t,n){d.a.warn("[Servers] Failed to request resources through %s",e.get("debugName")),e.set({isResourcesPending:!1,hasFailedResources:!0,isDownForMaintenance:503===n.status})}).always(function(){t._checkFoundAllServers()})},_convertResourceToServer:function(e){
Object(d.a)("[Servers] %s was found through %s",e.get("name"),e.server.get("debugName"));var t="Plex Media Server"===e.get("product"),n="Plex Cloud Server"===e.get("product"),i=new h.c({machineIdentifier:e.id,friendlyName:e.get("name"),version:t?e.get("productVersion"):void 0,isShared:!e.get("owned"),accessToken:e.get("accessToken"),sourceTitle:e.get("sourceTitle"),publicAddressMatches:e.get("publicAddressMatches"),httpsRequired:e.get("httpsRequired"),platform:e.get("platform"),
platformVersion:e.get("platformVersion"),presence:e.get("presence"),home:e.get("home"),synced:e.get("synced"),serverClass:t||n?void 0:h.c.serverClasses.SECONDARY,createdAt:e.get("createdAt"),lastSeenAt:e.get("lastSeenAt"),ownerId:e.get("ownerId")},{parent:this.appModel});return this._addResourceConnectionsToServer(e,i),i},_addResourceConnectionsToServer:function(e,t){e.get("connections").each(function(n){var i=[{id:e.server.id}],a=l.a.extend(n.toJSON(),{sources:i});t.addConnection(a)})},
_removeResource:function(e){Object(d.a)("[Servers] %s was removed as a resource from %s",e.get("name"),e.server.id);var t=this.servers.get(e.id);t&&t.removeSource(e.server.id)},_pruneStaleSources:function(e){for(var t=e.get("resources"),n=this.servers.length-1;n>=0;){var i=this.servers.at(n),a=t.get(i.id);if(a)for(var r=i.get("connections"),o=r.length-1;o>=0;){var s=r.at(o),l=s.get("sources");if(l.get(e.id)){var c=a.get("connections");c.get(s.id)||s.get("sources").remove(e.id)}o--
}else i.removeSource(e.id);n--}},_setAuthorized:function(){var e=!!this.servers.findWhere({isConnected:!0,isCloud:!1}),t=!!this.servers.findWhere({isResolved:!0,isCloud:!0});this.appModel.set("authorized",e||t)},onServerPromiseStateChange:function(e,t){if(t===h.c.promiseStates.RESOLVED){e.get("resources")&&this._fetchResources(e)}this._setAuthorized(),this._checkFoundAllServers()},onStoredServerAttributeChange:function(e,t,n){var i=v.a.getActiveServers(),a=i&&i.get(t.id)
;a&&null!=n&&a.get(e)!==n&&(a.set(e,n),v.a.debouncedSave())},onServerRemove:function(e){d.a.warn("[Servers] %s was removed",e.get("debugName")),e.cache.remove(e),u.a.trigger("clearWhere:cache",{server:e})},onServersUpdateReset:function(){this._setAuthorized(),this._checkFoundAllServers()},onDiscoverServers:function(){var e=this.appModel.get("cloudServer");this._fetchResources(e)},onResourceAdd:function(e){if(l.a.contains(e.get("provides"),"server")){var t=this._convertResourceToServer(e)
;this.servers.add(t)}},onResourceRemove:function(e){this._removeResource(e)},onResourcesUpdate:function(e){this._pruneStaleSources(e.server),this._checkFoundAllServers()},onResourcesReset:function(e,t){var n=this,i=t.previousModels;l.a.each(i,function(t){e.contains(t)||n._removeResource(t)}),this._checkFoundAllServers()},onResourcesPresenceChange:function(e){var t=this.servers.get(e.id);t&&t.set("presence",e.get("presence"))},onResourceConnectionsUpdate:function(e){
var t=e.parent,n=this.servers.get(t.id);n&&(this._addResourceConnectionsToServer(t,n),this._pruneStaleSources(e.server),this._checkFoundAllServers())}});t.a=y},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(16),o=n(43),s=n(812),l=n(3),c=n(1803),u=n(182),d=n(301),p=n(4963),h=n.n(p),f=d.a.extend({className:"alert-bar server-update-alert-bar notify",template:h.a,events:a.a.extend({"click .download-link":"onDownloadClick","click .install-link":"onInstallClick",
"click .skip-version-link":"onSkipThisVersionClick"},d.a.prototype.events),initialize:function(){this.server=this.model.server},serializeData:function(){var e=Object(r.c)("appModel"),t=e.get("user").server;return{state:this.model.get("state"),downloadURL:this.model.get("downloadURL")||t.get("appsUrl"),version:Object(s.a)(this.model.get("version")),serverUpdateAvailableMessage:Object(l.default)("A Plex Media Server update is available for the server {serverName}!",{
serverName:this.model.server.get("friendlyName")})}},onDownloadClick:function(e){e.preventDefault(),o.a.execute("checkForServerUpdates",{server:this.server,download:!0,initialState:"downloading"}),Object(u.a)("serverSettings",{serverID:this.server.id,group:"general"})},onInstallClick:function(e){e.preventDefault(),this.model.set("shouldInstall",!0),Object(u.a)("serverSettings",{serverID:this.server.id,group:"general"})},onSkipThisVersionClick:function(e){
d.a.prototype.onCloseClick.apply(this,arguments);var t=Object(s.a)(this.model.get("version"))||c.a;Object(r.c)("appModel").get("settings").save("serverUpdateDismissedVersion",t)}});t.a=f},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(15);e.exports=(a.default||a).template(function(e,t,a,r,o){function s(e,t){var a="";return a+=' <a class="download-link link" href="#">'+h(i(n(5)).call(e,"Download now",{hash:{},data:t}))+"</a> "}function l(e,t){var a
;return a=i(n(34)).call(e,e&&e.state,"downloaded",{hash:{},inverse:v.program(6,u,t),fn:v.program(4,c,t),data:t}),a||0===a?a:""}function c(e,t){var a="";return a+=' <a class="install-link link" href="#">'+h(i(n(5)).call(e,"Install now",{hash:{},data:t}))+"</a> "}function u(e,t){var a,r="";return r+=' <a class="link" href="'+h((a=e&&e.downloadURL,typeof a===f?a.apply(e):a))+'" target="_blank">'+h(i(n(5)).call(e,"Download now",{hash:{},data:t}))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),o=o||{};var d,p="",h=this.escapeExpression,f="function",v=this;return p+='<span class="message"> '+h((d=t&&t.serverUpdateAvailableMessage,typeof d===f?d.apply(t):d))+' <span class="server-update-message-version">'+h((d=t&&t.version,typeof d===f?d.apply(t):d))+"</span> </span> ",d=i(n(34)).call(t,t&&t.state,"available",{hash:{},inverse:v.program(3,l,o),fn:v.program(1,s,o),data:o}),(d||0===d)&&(p+=d),
p+=' <a class="link skip-version-link" href="#">'+h(i(n(5)).call(t,"Skip this version",{hash:{},data:o}))+'</a> <button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> '})},function(e,t,n){"use strict";function i(e,t){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=f.join(e,r()({},t,{commandID:U})),a=z.server,o=a.getXHROptions(i,r()({},n,{scope:T,headers:{
"X-Plex-Target-Client-Identifier":z.get("machineIdentifier")}}));return s.a.ajax(o)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};z&&n("/player/timeline/poll",e,{timeout:j}).done(function(t,n,r){B=0;var o=Object(b.a)(t);if(Object(p.a)(o.disconnected)&&e.wait)return void R(M.i());var s=z.get("machineIdentifier"),l=r.getResponseHeader("X-Plex-Client-Identifier"),u=Object(h.a)(o.commandID);if(s===l&&u>=U){var f=Object(d.a)(o.Timeline),v=c.a.findWhere(f,{type:"video"
}),m=c.a.findWhere(f,{type:"music"}),y=c.a.findWhere(f,{type:"photo"});!v||m&&m.state&&m.state!==g.d?m&&a(m):a(v),y&&a(y),U=u}i({wait:1})}).fail(function(t,n){t.aborting||("error"===n?(B++,e.wait&&B<=C?(u.a.warn("[Companion] Poll request failed; retrying..."),i({wait:1})):(u.a.warn("[Companion] Poll request failed 3 times in a row; giving up"),R(M.i()))):i({wait:1}))})}function a(e){
var t=e.type,n=e.state,i=e.providerIdentifier,a=e.machineIdentifier,r=e.containerKey,o=e.key,s=e.playQueueItemID,l=m.e(t),c=Object(p.a)(e.continuing);if(n===g.d&&!c)return Q[t]=null,Y[t]=null,void R(M.f({playQueueType:l}))
;var u=Object(h.a)(e.playQueueVersion),d=Object(h.a)(e.time),f=Object(h.a)(e.duration),v=Object(h.a)(e.mediaIndex),b=Object(h.a)(e.partIndex),I=e.audioStreamID?Object(h.a)(e.audioStreamID):null,S=e.subtitleStreamID?Object(h.a)(e.subtitleStreamID):null,D=Object(h.a)(e.volume),C=Object(h.a)(e.repeat),j=(e.controllable||"").split(","),P={positionSeconds:Math.floor(d/1e3),durationSeconds:Math.floor(f/1e3),mediaIndex:v,partIndex:b,isPaused:n===g.c,isBuffering:n===g.a,hasError:n===g.b,
controllable:j.reduce(function(e,t){return e[t]=!0,e},{})},O=Q[t],T=Y[t],E=s!==O||u!==T;Q[t]=s,Y[t]=u,R(M.l({playQueueType:l,options:{providerIdentifier:i,machineIdentifier:a,containerKey:r,key:o,playQueueItemID:s,shouldPlayQueueRefresh:E,initialState:P}})),R(M.m({playQueueType:l,playerState:P})),R(M.k({playQueueType:l,playQueueVersion:u,repeatAll:C===y.a||C===y.c,repeatOne:C===y.c})),R(M.n({playQueueType:l,key:o,mediaIndex:v,partIndex:b,audioStreamID:I,subtitleStreamID:S})),
null!=e.volume&&R(M.b(D))}function o(){F=null,null!=_&&(L(_),_=null)}function l(){V=null,null!=H&&(k(H),H=null)}function E(t){z=e.get("companionServer").get("pmp").get("players").get(t),z?(R(M.a(t)),U=0,B=0,i()):u.a.warn('[Companion] Request session ignored; no player with identifier "'+t+'"')}function w(){if(!z)return void u.a.warn("[Companion] End session ignored; no current player");F&&(clearTimeout(F),F=null),V&&(clearTimeout(V),V=null),S.a.abortAll(T),n("/player/timeline/unsubscribe"),
z=null,_=null,H=null,Q={},Y={}}function A(e){if(!z)return void u.a.warn("[Companion] Start playback ignored; no current player");var t=e.get("playQueue"),n=t.get("type"),i=t.get("playQueueItems"),a=i.get(t.get("playQueueSelectedItemID")),r=a.get("metadataItem"),o=t.server,s=t.provider,l=1e3*e.get("positionSeconds")||Math.floor(Object(v.a)(e,r));Object(D.a)(o,s).done(function(e){var i={type:m.d(t.get("type")),providerIdentifier:s.get("identifier"),containerKey:f.join([c.a.result(t,"url")],{own:1
}),key:r.get("key"),offset:l,machineIdentifier:e.machineIdentifier,protocol:e.protocol,address:e.address,port:e.port,token:e.accessToken};Object(u.a)("[Companion] Sending play media request"),N("/player/playback/playMedia",i).done(function(){Object(u.a)("[Companion] Play media success"),R(M.m({playQueueType:n,playerState:{isMediaLoading:!1}}))}).fail(function(e){u.a.warn('[Companion] Failed to play media with error "'+e.status+'"'),R(M.j({playQueueType:n}))})}).fail(function(){R(M.j({
playQueueType:n,errorMessage:Object(I.default)('The server "{serverName}" does not have a valid connection for casting. Check that the server is claimed in server settings.',{serverName:o.get("friendlyName")})}))})}function x(e){if(!z)return void u.a.warn("[Companion] Mirror details ignored; no current player");var t=z.get("protocolCapabilities")
;if(!t||-1===t.indexOf("mirror"))return void u.a.warn("[Companion] Mirror details ignored; player does not advertise support for the `mirror` capability");var i=e.server,a=e.provider;Object(D.a)(i,a).done(function(t){n("/player/mirror/details",{key:e.get("key"),machineIdentifier:t.machineIdentifier,protocol:t.protocol,address:t.address,port:t.port,token:t.accessToken})})}function N(e,t){return z?(U++,n(e,t)):(u.a.warn("[Companion] Command for "+e+" ignored; no current player"),
s.a.Deferred().reject().promise())}function L(e){F?(clearTimeout(F),_=e):N("/player/playback/seekTo",e),F=setTimeout(o,P)}function k(e){V?(clearTimeout(V),H=e):N("/player/playback/setParameters",e),V=setTimeout(l,O)}var R=t.dispatch,z=void 0,U=0,B=0,F=void 0,_=void 0,V=void 0,H=void 0,Q={},Y={};return{requestSession:E,endSession:w,startPlayback:A,mirrorDetails:x,sendCommand:N,seek:L,changeVolume:k}}t.a=i
;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(10),c=n.n(l),u=n(32),d=n(792),p=n(506),h=n(353),f=n(18),v=n(842),g=n(1797),m=n(437),y=n(527),b=n(605),I=n(3),S=n(265),M=n(325),D=n(4965),C=3,j=2e4,P=200,O=200,T="remoteCastPlayerManager"},function(e,t,n){"use strict";function i(e,t){var n=Object(d.a)(e,t);return n?n.machineIdentifier===l.b?s.a.Deferred().resolve(r()({},n,{transcoderVideo:!1,transcoderVideoRemuxOnly:!1,transcoderAudio:!1})).promise():(n.transcoderVideo=e.get("transcoderVideo")||!1,
n.transcoderVideoRemuxOnly=e.get("transcoderVideoRemuxOnly")||!1,n.transcoderAudio=e.get("transcoderAudio")||!1,n.version=e.get("shortVersion"),n.myPlexSubscription=e.get("myPlexSubscription"),n.isVerifiedHostname="https"===n.protocol&&!u.a.isValidAddress(n.address),Object(c.a)(e).then(function(e){return n.accessToken=e,n})):s.a.Deferred().reject().promise()}t.a=i;var a=n(6),r=n.n(a),o=n(13),s=n.n(o),l=n(90),c=n(4966),u=n(794),d=n(1798)},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.get("accessToken");return!e.supports("transientToken")||/^transient-/.test(n)?r.a.Deferred().resolve(n).promise():r.a.ajax(e.getXHROptions("/security/token",{data:{type:t.type||"delegation",scope:t.scope||"all"}})).promise().then(function(e){return Object(o.a)(e).token||r.a.Deferred().reject().promise()})}t.a=i;var a=n(13),r=n.n(a),o=n(605)},function(e,t,n){"use strict";function i(e){var t=h.c("appStore");t.dispatch(g.n({
serverEntityID:e,playerType:y.a})),b.c.test(window.location.hash)&&t.dispatch(Object(m.c)({serverEntityID:e}))}var a,r=n(6),o=n.n(r),s=n(13),l=n.n(s),c=n(10),u=n.n(c),d=n(19),p=n(231),h=n(16),f=n(260),v=n(116),g=n(206),m=n(123),y=n(107),b=n(41),I=n(4968),S=n(4969),M=n(309),D=n(1435),C=n(945),j=n(38),P=n(45),O=n(359),T=n(3),E=n(27),w=n(1208),A=n(518),x=n(1394),N=n(191),L=n(202),k={started:v.o,updated:v.s,ended:v.i
},R=[C.a,C.b,C.c,C.d,C.e,C.g,C.h,C.i,C.j,C.k,C.l,C.m,C.n,C.o,C.p,C.q,C.r,C.s,C.t,C.u],z=0,U=void 0,B=void 0,F=D.a.extend((a={getMessageTypes:function(){return R}},a[C.h]=function(e){e.key=e.id,e.server=this.server,this.server.trigger("socket:setting",e),(0,h.c("appStore").dispatch)(Object(L.p)({serverEntityID:this.server.entityID(),setting:e}))},a[C.p]=function(e){function t(){z=Date.now(),U=i,B=null,u(Object(m.c)({serverEntityID:v,
containerKeyPattern:new RegExp("^"+Object(p.a)("/library/sections/"+i)+"\\b")}))}if(!b.c.test(e.identifier)){var n=e.state,i=e.sectionID,a=e.rootItemID,r=e.parentItemID,o=e.itemID,s=e.metadataState,l=e.mediaState,c=e.type,u=h.c("appStore").dispatch,v=this.server.entityID(),g="/library/metadata/"+o,y=Object(j.a)(P.g,g,v);if(u(Object(N.updateMetadataItemRefreshingState)({serverEntityID:v,metadataItemEntityID:y,metadataState:s,mediaState:l})),n===I.a.PROCESSED&&u(Object(f.d)({serverEntityID:v,
metadataItemEntityID:y})),n===I.a.DELETED&&u(Object(f.c)({serverEntityID:v,metadataItemEntityID:y})),n===I.a.CREATED||n===I.a.DELETED){if(i>0){var S=Date.now()-z;i===U&&S<5e3?B||(B=setTimeout(t,5e3-S)):t()}if(a>0){var M="/library/metadata/"+a,D=Object(j.a)(P.g,M,v);u(Object(m.c)({serverEntityID:v,metadataItemEntityID:D,rootMetadataKey:M}))}if(r>0){var C="/library/metadata/"+r,O=Object(j.a)(P.g,C,v);u(Object(m.c)({serverEntityID:v,metadataItemEntityID:O,parentMetadataKey:C}))}var T=Object(E.r)(c)
;T&&T.typeString===E.i&&u(Object(m.c)({serverEntityID:v,containerKeyPattern:new RegExp("^/playlists")}))}e.server=this.server,this.server.trigger("socket:timeline",e),d.a.trigger("timeline",e)}},a[C.n]=function(e){if(this.server.trigger("socket:status",e),"LIBRARY_UPDATE"===e.notificationName){var t=h.c("appStore").dispatch,n=this.server.entityID();n&&(t(Object(v.q)({serverEntityID:n})),t(Object(v.g)({serverEntityID:n})),t(Object(m.c)({serverEntityID:n})))}},a[C.i]=function(e){
this.server.trigger("socket:status",e)},a[C.g]=function(e){var t=this;if(e.sessionKey&&!this.server.get("shared")){var n=this.server.get("pmp").get("sessions"),i=n.get(e.sessionKey);if(!i||i.get("metadataItem")&&i.get("metadataItem").get("key")!==e.key){if(n.isPopulating())return;n.fetch().done(function(){if(i=n.get(e.sessionKey)){var a=i.get("Player").title,r=i.get("User").title,o=i.get("metadataItem"),s=o.get("grandparentTitle"),l=o.get("title");s&&(l=s+" - "+l),
t.server.trigger("socket:playing",u.a.extend(e,{username:r||Object(T.default)("Unknown"),title:l,player:a}))}})}else if(e.state===M.a.states.STOPPED){i.trigger("destroy",i,i.collection),i.cache.remove(i);var a=h.c("appStore").dispatch,r=this.server.entityID();r&&a(Object(m.c)({serverEntityID:r}))}else{var s=i.get("Player");s&&i.set("Player",o()({},s,{state:e.state})),i.get("metadataItem").set("viewOffset",e.viewOffset)}}},a[C.o]=function(e){var t=new x.a({key:e.key},{server:this.server,
syncItemId:e.syncItemId,onlyIfCached:!0});if(!u.a.isEmpty(t)){t.get("Media").forEach(function(n){n.Part.forEach(function(n){n.transcodeState=e.syncFileState,n.transcodeStateContext=e.syncFileStateContext,n.syncState=e.syncState,n.syncStateContext=e.syncStateContext;var i=O.a.getSyncStateFromPart(n);O.a.waitingRegex.test(i)&&(n.key="placeholder"),t.trigger("change:Media",t,t.get("Media"))})})}},a[C.c]=function(e){var t={server:this.server,onlyIfCached:!0},n=new A.a({id:e.generatorID},t)
;u.a.isEmpty(n)||n.fetch()},a[C.u]=function(e){var t={server:this.server,onlyIfCached:!0},n=new A.a({id:e.generatorID},t);if(!u.a.isEmpty(n)){var i=n.get("children").getCollection(),a=i.get(e.metadataItemID);a&&a.set({processingState:e.state,processingStateContext:e.stateContext})}},a[C.d]=function(e){var t=new w.a([],{server:this.server,allowInCache:!0,onlyIfCached:!0});if(!u.a.isEmpty(t)){var n=t.first();n&&n.fetch()}},a[C.r]=function(e){if("static"===e.context){
this.server.get("pmp").get("backgroundTranscodeJobs").fetch()}else{this.server.get("pmp").get("sessions").fetch()}},a[C.s]=function(e){if("static"===e.context){var t=this.server.get("pmp").get("backgroundTranscodeJobs"),n=t.get(e.key);n?n.set(n.parse(e)):t.fetch()}},a[C.q]=function(e){this["transcodeSession.start"].apply(this,arguments)},a[C.t]=function(e){var t=this.server.get("pmp").get("update"),n=u.a.pick(e,t.whitelistedAttrs);u.a.defaults(n,u.a.result(t,"defaults")),
"downloading"===t.get("state")&&"available"===n.state&&(n.state="downloading"),t.set(n)},a[C.m]=function(e){this.server.get("pmp").get("cloudAccount").fetch()},a[C.a]=function(e){if(this.server.set("myPlexSubscription",e.hasPlexPass),this.server.supports("reachability")){var t=u.a.extend(this.server.getXHROptions("/myplex/refreshReachability"),{type:"PUT"});l.a.ajax(t)}h.c("appModel").get("user").get("isSignedIn")&&d.a.trigger("discover:servers")},a[C.b]=function(e){
var t=Object(S.a)(e),n=h.c("appStore"),i=this.server.entityID(),a=t.Activity||t;if(a.Context=a.Context||{},a.Response=a.Response||{},i){var r=k[t.event];r&&n.dispatch(r({serverEntityID:i,activity:a}))}},a[C.e]=function(e){var t=h.c("appStore"),n=this.server.entityID();n&&"appeared"===e.event&&t.dispatch(Object(L.f)({serverEntityID:n,device:e.Device}))},a[C.k]=function(){i(this.server.entityID())},a[C.l]=function(){i(this.server.entityID())},a[C.j]=function(){
h.c("appStore").dispatch(Object(v.h)({serverEntityID:this.server.entityID()}))},a));t.a=F},function(e,t,n){"use strict";var i={CREATED:0,PROGRESS:1,MATCHING:2,DOWNLOADING_METADATA:3,LOADING_METADATA:4,PROCESSED:5,DELETED:9};t.a=i},function(e,t,n){"use strict";function i(e){if(!e||!e._children)return e;var t=r.a.clone(e),n=t._children;return Array.isArray(n)&&(n.forEach(function(e){var n=e._elementType;if(e._elementType=null,e.elementName=n,n){var a=s[n]||n,r=t[a],o=i(e)
;r?Array.isArray(r)?r.push(o):t[a]=[r,o]:t[a]=o}}),t._children=null),t}var a=n(10),r=n.n(a),o=n(111),s=r.a.reduce(o.a,function(e,t){return e[t]="Metadata",e},{});t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(17),o=n(4971),s=n(14),l=n(94),c=n(811),u=n(4978),d=n(4981),p=n(4986),h=n(4987),f=n(4990),v=n(232),g=o.a.extend({name:"DesktopAppModel",sessionAttrs:a()({},o.a.prototype.sessionAttrs,{isFirstRun:s.a.boolean.isRequired,isSigningOut:s.a.boolean.isRequired,
isCastApiAvailable:s.a.boolean.isRequired,isFullscreen:s.a.boolean.isRequired,settings:s.a.instanceOf(d.a)}),sessionRelations:a()({},o.a.prototype.sessionRelations,{entities:{relationClass:Object(u.a)(v)},remotePlayer:{relationClass:r.a,deferred:!0},legacyChannelProvider:{relationClass:c.a,deferred:!0},legacyChannelMetadataItem:{relationClass:l.a,deferred:!0},deviceSettings:{relationClass:p.a},experienceSettings:{relationClass:h.a},ui:{relationClass:f.a}}),defaults:function(){
var e=o.a.prototype.defaults.apply(this,arguments);return a()({},e,{isFirstRun:!1,isSigningOut:!1,isCastApiAvailable:!1,isFullscreen:!1,settings:new d.a})}});t.a=g},function(e,t,n){"use strict";var i=n(4972),a=n(14),r=n(4973),o=n(4977),s=n(122),l=n(1799),c=n(355),u=n(90),d=i.a.extend({name:"AppModel",sessionAttrs:{clientID:a.a.string,anonymousClientID:a.a.string,authorized:a.a.boolean.isRequired,skipSignIn:a.a.boolean.isRequired,isWaitingForServers:a.a.boolean.isRequired,
isWaitingForPrimaryServer:a.a.boolean.isRequired,history:a.a.array.isRequired,forwardHistory:a.a.array.isRequired,activeNavigationType:a.a.string},sessionRelations:{servers:{relationClass:o.a},cloudServer:{relationClass:r.a,deferred:!0},primaryServer:{relationClass:s.c,deferred:!0},companionServer:{relationClass:s.c,deferred:!0},transientServer:{relationClass:l.a,deferred:!0},user:{relationClass:c.a,deferred:!0}},defaults:function(){var e=new r.a({machineIdentifier:u.a},{parent:this});return{
authorized:!1,skipSignIn:!1,isWaitingForServers:!1,isWaitingForPrimaryServer:!1,history:[],forwardHistory:[],cloudServer:e,user:new c.a({},{server:e,parent:this})}}});t.a=d},function(e,t,n){"use strict";var i=n(19),a=n(37),r=n(17),o=r.a.extend({name:"BaseAppModel",isStateTreeRoot:!0,constructor:function(){this._pendingEntities=[],this.listenTo(i.a,"change:entity",this.onEntityChange),r.a.prototype.constructor.apply(this,arguments)},initialize:function(){
this._pendingEntities.forEach(this._addEntity.bind(this))},_addEntity:function(e){var t=e.type,n=e.id,i=e.model,r=this.get("entities");Object(a.a)(r,"Use `createEntitiesModelClass` to create an `entities` session relation in a platform's app model"),r.get(t).add({id:n,model:i},{merge:!0})},onEntityChange:function(e){this.has("entities")?this._addEntity(e):this._pendingEntities.push(e)}});t.a=o},function(e,t,n){"use strict"
;var i=n(32),a=n(4974),r=n(18),o=n(16),s=n(43),l=n(796),c=n(14),u=n(122),d=n(619),p=n(352),h=n(4975),f=u.c.connectionTestResults,v=u.c.promiseStates,g=u.c.extend({name:"CloudServerModel",connectionTestUrl:"https://plex.tv/monitoring/health",sessionAttrs:{connectionTestResult:c.a.oneOf(f.PENDING,f.CONNECTED,f.UNAVAILABLE,f.UNAUTHORIZED).isRequired,promiseState:c.a.oneOf(v.PENDING,v.RESOLVED,v.REJECTED).isRequired,isShared:c.a.boolean.isRequired,isBundled:c.a.boolean.isRequired,
isCloud:c.a.boolean.isRequired,isMerged:c.a.boolean.isRequired,isDownForMaintenance:c.a.boolean.isRequired,isResourcesPending:c.a.boolean.isRequired,hasFailedResources:c.a.boolean.isRequired,accessToken:c.a.string,baseUrl:c.a.string.isRequired,plexPassUrl:c.a.string.isRequired,cloudSyncUrl:c.a.string.isRequired,appsUrl:c.a.string.isRequired,helpUrl:c.a.string.isRequired,hasEventConnection:c.a.boolean},sessionRelations:{activeConnection:{relationClass:p.a,deferred:!0},connections:{
relationClass:d.b,options:function(){return{server:this}}},resources:{relationClass:h.a,options:function(){return{server:this}}}},defaults:function(){var e="https://plex.tv";return{connectionTestResult:f.PENDING,promiseState:v.PENDING,isShared:!1,isBundled:!1,isCloud:!0,isMerged:!1,isDownForMaintenance:!1,isResourcesPending:!1,hasFailedResources:!1,friendlyName:"plex.tv",baseUrl:e,plexPassUrl:r.join([e,"/subscription/about"]),cloudSyncUrl:r.join([e,"/cloudsync/providers"]),
appsUrl:r.join([e,"/downloads"]),helpUrl:"http://support.plex.tv/hc/en-us",hasEventConnection:!1}},swizzleNodeUrl:function(e){var t=this.parent.get("primaryServer");return t&&t.get("isConnected")&&t.get("isFullServer")&&t.get("allowChannelAccess")?t.swizzleUrl(e):this.swizzleUrl(e,{connection:new p.a({scheme:"https",address:"node.plexapp.com",port:"32443"})})},testAllConnections:function(){var e=this,t=this.get("connections")
;Object(i.a)("[Connections] Testing all %s connection(s) for %s",t.length,this.get("debugName"));var n=t.map(function(t){return e.testConnection(t)});return Object(a.a)(n)},testConnection:function(e){var t={server:this,connection:e,url:this.connectionTestUrl};return s.a.execute("testServerConnection",t).done(this.onConnectionTestSuccess.bind(this)).fail(this.onConnectionTestError.bind(this))},abortConnectionTest:function(e){var t={server:this,connection:e,url:this.connectionTestUrl}
;s.a.execute("abortServerConnectionTest",t)},deauthenticate:function(){this.get("resources").clear(),this._reject({connectionTestResult:this.get("connectionTestResult"),accessToken:null})},onConnectionTestSuccess:function(e){var t=this.get("connections").getBestConnection();i.a.info("[Connections] Active connection to %s is %s",this.get("debugName"),t.id),this.startCapturingChangeEvents(),this.set({isDownForMaintenance:!1,connectionTestResult:f.CONNECTED,activeConnection:t}),
this.releaseCapturedChangeEvents()},onConnectionTestError:function(e,t){e.get("isAborted")||this.get("connections").hasOnlyFailedConnections()&&this._reject({isDownForMaintenance:503===t.status})}});Object(l.a)(g,function(){return{relationClass:Object(o.c)("CloudServerFlexModel"),options:{server:this}}}),t.a=g},function(e,t,n){"use strict";function i(e){if(!e.length)return r.a.Deferred().reject().promise();var t=r.a.Deferred(),n=e.length;return s.a.each(e,function(e){e.done(function(){n--,
t.resolveWith(this,arguments)}).fail(function(){0===--n&&t.reject()})}),t.promise()}var a=n(13),r=n.n(a),o=n(10),s=n.n(o);t.a=i},function(e,t,n){"use strict";var i=n(18),a=n(25),r=n(62),o=n(4976),s=a.a.extend({name:"ResourceCollection",model:o.a,context:["server"],url:function(){var e={};return r.a.get("allowHttpsMediaServerConnections")&&(e.includeHttps=1),r.a.get("allowMediaServerRelayConnections")&&(e.includeRelay=1),i.join("/api/resources",e)}});t.a=s},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=n(619),o=i.a.extend({name:"ResourceModel",context:["server"],idAttribute:"clientIdentifier",rootPropertyName:"Device",urlRoot:"/api/resources",syncedAttrs:{clientIdentifier:a.a.string,name:a.a.string,sourceTitle:a.a.string,accessToken:a.a.string,product:a.a.string,productVersion:a.a.string,platform:a.a.string,platformVersion:a.a.string,device:a.a.string,provides:a.a.list,owned:a.a.boolean,home:a.a.boolean,synced:a.a.boolean,presence:a.a.boolean,
publicAddressMatches:a.a.boolean,httpsRequired:a.a.boolean,createdAt:a.a.integer,lastSeenAt:a.a.integer,ownerId:a.a.integer},syncedRelations:{connections:{relationClass:r.b,rootPropertyName:"Connection"}}});t.a=o},function(e,t,n){"use strict";function i(e){return e.length?s.a.map(e,function(e){return e.get("debugName")}).join(", "):"(none)"}var a=n(13),r=n.n(a),o=n(10),s=n.n(o),l=n(32),c=n(25),u=n(797),d=n(122),p=c.a.extend({mixins:[u.a],name:"ServerCollection",model:d.c,initialize:function(){
this._resetPopulate()},comparator:function(e){var t=e.get("isFullOwnedServer"),n=e.get("isShared"),i=e.get("friendlyName")||"",a=t?"0":"1";return a+=n?"1":"0",a+=i.toLowerCase()},shouldWaitForInitialServers:function(){var e=this.filter(function(e){return(!e.id||!!e.get("resources"))&&e.isPopulating()});return!!e.length&&(Object(l.a)("[Servers] Waiting for initial servers =",i(e)),!0)},shouldWaitForResources:function(){var e=this.reduce(function(e,t){
var n=t.get("isResolved"),i=t.get("resources"),a=i&&i.isPopulating();return n&&a&&e.push(t),e},[]);return!!e.length&&(Object(l.a)("[Servers] Waiting for additional resources from",i(e)),!0)},shouldWaitForPendingServers:function(){if(this.findWhere({isConnected:!0}))return!1;var e=this.filter(function(e){return e.isPopulating()});return!!e.length&&(Object(l.a)("[Servers] Waiting for pending servers =",i(e)),!0)},waitForServers:function(){this._resetPopulate()},foundAllServers:function(){
var e=this.where({isConnected:!0}),t=i(e);Object(l.a)("[Servers] Found all servers =",t),e.length?this._resolvePopulate():this._rejectPopulate()},populateAnyServer:function(){function e(e){var t=u.indexOf(e);t>-1&&(u.splice(t,1),this.hasOnlyRejectedServers(u)&&c.reject())}function t(e,t){s.a.contains(u,e)&&t&&c.resolve(e)}function n(e,t){s.a.contains(u,e)&&t&&this.hasOnlyRejectedServers(u)&&c.reject()}
var a=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.models,c=r.a.Deferred(),u=o.slice(0),d=s.a.find(u,function(e){return e.get("isCloud")?e.get("isResolved"):e.get("isConnected")});return d?(Object(l.a)("[Servers] Populate any server chose %s where servers = %s",d.get("debugName"),i(u)),c.resolve(d).promise()):this.hasOnlyRejectedServers(u)?c.reject().promise():(this.on({remove:e,"change:isResolved":t,"change:isRejected":n},this),c.always(function(){
a.off("change:isResolved",t,a),a.off("change:isRejected",n,a)}),c.promise())},populateServer:function(e){return this.findServer(e,!0).then(function(e){return e.get("isConnected")&&!e.get("isCloud")?r.a.Deferred().resolve(e):e.populate()})},findServer:function(e,t){function n(){var e=this,i=this.filterServers(o,t);i?(h=i,i.done(function(e){h===i&&l.resolve(e)}),i.fail(function(){h===i&&(u||!e.isPopulating()?l.reject():e.populate().always(n.bind(e)))})):this.isPopulating()||l.reject()}
var i=this,a=s.a.isString(e),o=a?{machineIdentifier:e}:e,l=r.a.Deferred();if(a){var c=this.get(o.machineIdentifier);if(c&&c.get("isResolved"))return setTimeout(l.resolve.bind(l,c),0),l.promise()}var u=s.a.has(o,"machineIdentifier"),d=s.a.map(s.a.keys(o),function(e){return"change:"+e}),p="add "+d.join(" "),h=void 0;return n.call(this),this.on(p,n,this),this.populate().always(function(){h||l.reject()}),l.always(function(){i.off(p,n,i)}),l.promise()},filterServers:function(e,t){var n=this.where(e)
;if(n.length)return t?this.populateAnyServer(n):r.a.Deferred().resolve(n[0]).promise()},hasOnlyRejectedServers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.models;return s.a.every(e,function(e){return e.get("isRejected")})},hasLoopbackServer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.models;return!!s.a.find(e,function(e){var t=e.get("activeConnection");return!!t&&t.get("isLoopback")})}});t.a=p},function(e,t,n){"use strict"
;function i(e){var t={};for(var n in e){t[e[n]]={relationClass:r.a}}return a.a.extend({name:"EntitiesModel",sessionRelations:t})}t.a=i;var a=n(17),r=n(4979)},function(e,t,n){"use strict";var i=n(25),a=n(4980),r=i.a.extend({name:"EntityCollection",model:a.a,toState:function(){return this.reduce(this.reduceState,{})},reduceState:function(e,t){return e[t.id]=t.getState(),e}});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(17),o=n(14),s=r.a.extend({name:"EntityModel",sessionAttrs:{
id:o.a.string.isRequired},sessionRelations:{model:{relationClass:r.a,deferred:!0}},toState:function(){var e=this.get("model");return a()({entityID:this.id},e.state)},shouldUpdateRelationState:function(){return!0}});t.a=s},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(4982),o=n(517),s=r.a.extend({name:"DesktopSettingsModel",storageKey:"settingsv2",defaults:a()({},r.a.prototype.defaults,{allowHttpFallback:o.a.NEVER,companion:!0,directPlay:!0,directStream:!0,audioBoost:100,
"syncQuality!video":8,"syncQuality!music":2,"syncQuality!photo":2,announcementsLastReadTimestamp:0,serverUpdateDismissedVersion:"",hasDismissedPremiumMusicAlert:!1,hasSkippedInstallServer:!1,viewedUnclaimedServers:[],dismissedUnclaimedServers:[],relayConfirmed:!1,suppressLimitedPlaybackMessage:!1})});t.a=s},function(e,t,n){"use strict";var i=n(767),a=n(4983),r=i.a.extend({defaults:a.a});t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return h})
;var i=n(10),a=n.n(i),r=n(4984),o=n(14),s=n(62),l=n(1787),c=n(517),u=n(1796),d=Object(r.a)(window.PLEXWEB_INLINE&&window.PLEXWEB_INLINE.acceptLanguage),p={allowHttpFallback:{type:o.a.string,defaultValue:s.a.get("shouldPreferInsecureLocalConnections")?c.a.SAME_NETWORK:c.a.NEVER},preferInsecureConnections:{type:o.a.string,defaultValue:s.a.get("shouldPreferInsecureLocalConnections")?u.c:u.b},companion:{type:o.a.boolean,defaultValue:!0},language:{type:o.a.string,defaultValue:d},autoLogin:{
type:o.a.boolean,defaultValue:!1},extrasPrefixCount:{type:o.a.integer,defaultValue:0},debugLevel:{type:o.a.integer,defaultValue:l.a.DISABLED}},h=(a.a.mapObject(p,function(e){return e.type}),a.a.mapObject(p,function(e){return e.defaultValue}))},function(e,t,n){"use strict";function i(e){var t=window.navigator,n=void 0;return e?n=Object(r.a)(e):t.languages?n=t.languages:t.language?n=[t.language]:t.userLanguage&&(n=[t.userLanguage]),Object(a.a)(n)||"en"}t.a=i;var a=n(1615),r=n(4985)
},function(e,t,n){"use strict";function i(e){return e&&e.match(/[a-zA-Z\-]{2,10}/g)||[]}t.a=i},function(e,t,n){"use strict";var i=n(607),a=n(14),r=i.a.extend({name:"DeviceSettingsModel",storageKey:"deviceSettings",sessionAttrs:{isSaving:a.a.boolean,saveError:a.a.object},syncedAttrs:{debugHasForcedVideoAds:a.a.boolean},defaults:function(){return{debugHasForcedVideoAds:!1,isSaving:!1,saveError:null}}});t.a=r},function(e,t,n){"use strict"
;var i=n(607),a=n(14),r=n(4988),o=n(302),s=n(146),l=n(33),c=n(24),u=n(68),d=s.a.ORIGINAL,p=i.a.extend({name:"ExperienceSettingsModel",storageKey:"experience",sessionAttrs:{isSaving:a.a.boolean,saveError:a.a.object},syncedAttrs:{audioForceMultiChannel:a.a.boolean,autoAdjustQuality:a.a.boolean,autoPlay:a.a.boolean,calendarViewType:a.a.string,columnAdjustment:a.a.integer,dashboardNowPlayingShowDetails:a.a.boolean,debugVideoQualityOverlay:a.a.boolean,extrasPrefixCount:a.a.integer,
hasDismissedDVRUpsell:a.a.boolean,hasDismissedPersonalCloudScanAlert:a.a.boolean,hasDismissedServerDashboardUpsell:a.a.boolean,isNotInterestedInPersonalCloud:a.a.boolean,isSidebarExpandable:a.a.boolean,libraryRoutes:a.a.object,libraryTableColumns:a.a.object,listStyles:a.a.object,lastTypeSource:a.a.object,localQuality:a.a.integer,playThemeMusic:a.a.boolean,relayReminders:a.a.object,remoteQuality:a.a.integer,remoteSmallVideoAtOriginalQuality:a.a.boolean,restorePlayQueue:a.a.object,
searchAllServers:a.a.boolean,showAdvancedSettings:a.a.boolean,showPrePlayArtwork:a.a.boolean,subtitlesBurnLevel:a.a.string,subtitleSize:a.a.integer,timeFormat:a.a.string,typeFirstPreview:a.a.boolean,useHomeStreamingRecommendedSettings:a.a.boolean,volume:a.a.integer},syncedRelations:{homeSettings:{relationClass:r.a}},defaults:function(){var e;return{audioForceMultiChannel:!1,autoAdjustQuality:!1,autoPlay:!0,calendarViewType:c.c.CALENDAR,columnAdjustment:0,dashboardNowPlayingShowDetails:!1,
debugVideoQualityOverlay:!1,extrasPrefixCount:0,hasDismissedDVRUpsell:!1,hasDismissedPersonalCloudScanAlert:!1,hasDismissedServerDashboardUpsell:!1,isNotInterestedInPersonalCloud:!1,isSidebarExpandable:!0,isSaving:!1,libraryRoutes:{},libraryTableColumns:{},listStyles:(e={},e[l.b]={episode:u.f,track:u.f},e[l.i]={track:u.f},e),lastTypeSource:{},localQuality:d,playThemeMusic:!1,relayReminders:{},remoteQuality:6,remoteSmallVideoAtOriginalQuality:!0,restorePlayQueue:null,saveError:null,
searchAllServers:!1,showAdvancedSettings:!1,showPrePlayArtwork:!1,subtitlesBurnLevel:o.a.AUTO,subtitleSize:100,timeFormat:"h:mma",typeFirstPreview:!1,useHomeStreamingRecommendedSettings:!0,volume:90}}});t.a=p},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(4989),o=n(505),s=i.a.extend({name:"HomeSettingsModel",syncedAttrs:{hasCustomizations:a.a.boolean.isRequired,hasSeededPreferredServerContent:a.a.boolean.isRequired,hasSeededProviderPromotedContent:a.a.boolean.isRequired,
preferredServerID:a.a.string,settingsKey:a.a.string.isRequired,version:a.a.integer.isRequired},syncedRelations:{hubs:{relationClass:r.a}},defaults:function(){return{hasCustomizations:!1,hasSeededPreferredServerContent:!1,hasSeededProviderPromotedContent:!1,settingsKey:Object(o.a)(),version:1}}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(1192),r=i.a.extend({name:"HomeHubCollection",model:a.d});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(4991),r=n(4992),o=n(4993),s=n(4996),l=n(4997),c=n(4998),u=n(4999),d=n(1804),p=n(5002),h=n(5003),f=n(5004),v=n(5005),g=n(5006),m=n(5007),y=n(5008),b=n(5009),I=n(5010),S=n(5014),M=n(5015),D=n(5016),C=n(5017),j=n(5018),P=n(5019),O=n(5020),T=n(5025),E=n(5026),w=n(5027),A=i.a.extend({name:"DesktopUIModel",sessionRelations:{background:{relationClass:m.a},authCodeExchange:{relationClass:g.a},discoverPage:{relationClass:b.a},metadataListPage:{relationClass:S.a},libraryPage:{
relationClass:I.a},prePlayPage:{relationClass:j.a},timelinePage:{relationClass:w.a},playlistsPage:{relationClass:C.a},dvrSettingsUI:{relationClass:y.a},recordingSchedulePage:{relationClass:u.a},channelGridPage:{relationClass:r.a},mediaSubscriptionModal:{relationClass:s.a},provisionPersonalCloudServerPage:{relationClass:P.a},searchPage:{relationClass:T.a},quickSearch:{relationClass:O.a},photoPlayer:{relationClass:l.a},audioVideoPlayer:{relationClass:l.a},onlineMediaSourcesPage:{relationClass:M.a
},accountSettingsPage:{relationClass:f.a},playlistPage:{relationClass:D.a},providerSettingsPage:{relationClass:c.a},addToCatalogModal:{relationClass:v.a},multiSelect:{relationClass:d.a},serverLogPage:{relationClass:h.a},subtitlesModal:{relationClass:a.a},homePage:{relationClass:o.a},addToPlaylistModal:{relationClass:p.a},serverDashboardPage:{relationClass:E.a}}});t.a=A},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1614),o=i.a.extend({name:"SubtitlesModalModel",sessionAttrs:{
metadataItemEntityID:a.a.string,isSubtitlesPending:a.a.boolean,isSubtitlesPopulated:a.a.boolean,subtitlesError:a.a.string,subtitlesDownloadActivityID:a.a.string,subtitlesDownloadKey:a.a.string,isSubtitlesDownloaded:a.a.boolean,subtitlesDownloadError:a.a.string},sessionRelations:{subtitles:{relationClass:r.a,deferred:!0}},defaults:{metadataItemEntityID:null,isSubtitlesPending:!1,isSubtitlesPopulated:!1,subtitlesError:null,subtitlesDownloadActivityID:null,subtitlesDownloadKey:null,
isSubtitlesDownloaded:!1,subtitlesDownloadError:null}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1654),o=n(1655),s=i.a.extend({name:"ChannelGridPageModel",sessionAttrs:{serverEntityID:a.a.string,providerEntityID:a.a.string,containerKey:a.a.string,directoryKey:a.a.string,startTime:a.a.integer,visibleColumns:a.a.integer,columnTimes:a.a.array,columnWidth:a.a.float,viewportWidth:a.a.integer,viewportHeight:a.a.integer,airedProgress:a.a.float,isChannelsListPending:a.a.boolean,
isChannelsListPopulated:a.a.boolean,channelsListError:a.a.object},sessionRelations:{metadataList:{relationClass:r.a,deferred:!0},channelsList:{relationClass:o.a,deferred:!0}},defaults:function(){return{startTime:0,visibleColumns:1,columnTimes:[],columnWidth:0,viewportWidth:0,viewportHeight:0,airedProgress:0,isChannelsListPending:!0,isChannelsListPopulated:!1,channelsListError:null}}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(4994),o=i.a.extend({name:"HomePageModel",
sessionAttrs:{isContentPending:a.a.boolean.isRequired,isContentPopulated:a.a.boolean.isRequired,contentError:a.a.object,isPreferredServerContentPending:a.a.boolean.isRequired,isPreferredServerContentPopulated:a.a.boolean.isRequired,preferredServerContentError:a.a.object,isProviderPromotedContentPending:a.a.boolean.isRequired,isProviderPromotedContentPopulated:a.a.boolean.isRequired,providerPromotedContentError:a.a.object},sessionRelations:{homeHubStatuses:{relationClass:r.a}},
defaults:function(){return{isContentPending:!0,isContentPopulated:!1,contentError:null,isPreferredServerContentPending:!0,isPreferredServerContentPopulated:!1,preferredServerContentError:null,isProviderPromotedContentPending:!0,isProviderPromotedContentPopulated:!1,providerPromotedContentError:null}}});t.a=o},function(e,t,n){"use strict";var i=n(25),a=n(4995),r=i.a.extend({name:"HomeHubStatusCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(612),o=i.a.extend({
name:"HomeHubStatusModel",idAttribute:"homeHubID",sessionAttrs:{error:a.a.object,homeHubID:a.a.string.isRequired,isPending:a.a.boolean.isRequired,isPopulated:a.a.boolean.isRequired,provider:a.a.string,server:a.a.string},sessionRelations:{hub:{relationClass:r.a,deferred:!0}},defaults:function(){return{error:null,isPending:!0,isPopulated:!1}}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(718),o=n(1556),s=i.a.extend({name:"MediaSubscriptionModalModel",sessionAttrs:{
isMediaSubscriptionPending:a.a.boolean,isMediaSubscriptionPopulated:a.a.boolean,mediaSubscriptionError:a.a.object,isMediaSubscriptionSaving:a.a.boolean,mediaSubscriptionSaveError:a.a.object,isMediaSubscriptionMoving:a.a.boolean,mediaSubscriptionMoveError:a.a.object,isMediaSubscriptionDeleting:a.a.boolean,mediaSubscriptionDeleteError:a.a.object},sessionRelations:{templates:{relationClass:o.a,deferred:!0},mediaSubscription:{relationClass:r.a,deferred:!0}},defaults:{isMediaSubscriptionPending:!0,
isMediaSubscriptionPopulated:!1,mediaSubscriptionError:null,isMediaSubscriptionSaving:!1,mediaSubscriptionSaveError:null,isMediaSubscriptionMoving:!1,mediaSubscriptionMoveError:null,isMediaSubscriptionDeleting:!1,mediaSubscriptionDeleteError:null}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(247),o=n(1515),s=n(212),l=i.a.extend({name:"PlayerModel",sessionAttrs:{serverEntityID:a.a.string,providerEntityID:a.a.string,isOpen:a.a.boolean,previousOpenState:a.a.oneOf(s.a,s.b),
openState:a.a.oneOf(s.a,s.b),isPlayQueueVisible:a.a.boolean,isAlsoAiringVisible:a.a.boolean,isLyricsVisible:a.a.boolean,isPostPlayVisible:a.a.boolean,isSettingsVisible:a.a.boolean,isChaptersVisible:a.a.boolean,confirmPlaybackPayload:a.a.object,confirmOffsetPayload:a.a.object,confirmRemoteToLocal:a.a.boolean,confirmLocalToRemote:a.a.boolean,decisions:a.a.object.isRequired,currentDecision:a.a.object,startMetadataItemEntityID:a.a.string,startOffsetMilliseconds:a.a.integer,
startMediaIndex:a.a.integer,positionSeconds:a.a.integer,lastSeekPositionSeconds:a.a.integer,durationSeconds:a.a.integer,seekStartSeconds:a.a.integer,seekEndSeconds:a.a.integer,bandwidthTimeline:a.a.object,lastInteractedAt:a.a.integer,playbackTime:a.a.integer,playbackSpeed:a.a.float,isPlayQueueLoading:a.a.boolean.isRequired,isMediaLoading:a.a.boolean.isRequired,isPostPlayLoading:a.a.boolean.isRequired,isPaused:a.a.boolean.isRequired,isBuffering:a.a.boolean.isRequired,
repeatAll:a.a.boolean.isRequired,repeatOne:a.a.boolean.isRequired,mediaIndex:a.a.integer,partIndex:a.a.integer,qualityIndex:a.a.integer,availableQualities:a.a.array.isRequired,controllable:a.a.object,metricsPage:a.a.string,metricsContext:a.a.string,metricsAutoPlay:a.a.boolean,hasError:a.a.boolean.isRequired,errorMessage:a.a.string,errorCode:a.a.string,errorCategory:a.a.string,playbackStartTime:a.a.integer,hasConflicts:a.a.boolean.isRequired,isConflictCancelling:a.a.boolean,
cancelConflictError:a.a.object,confirmLiveTVPlayback:a.a.boolean.isRequired},sessionRelations:{playQueue:{relationClass:i.a,deferred:!0},relatedHubs:{relationClass:r.default,deferred:!0},liveTVSession:{relationClass:o.a,deferred:!0}},defaults:function(){return{isOpen:!1,isPlayQueueVisible:!1,isAlsoAiringVisible:!1,isLyricsVisible:!1,isPostPlayVisible:!1,isSettingsVisible:!1,isChaptersVisible:!1,confirmPlaybackPayload:null,confirmOffsetPayload:null,confirmRemoteToLocal:!1,confirmLocalToRemote:!1,
decisions:{},startMetadataItemEntityID:null,startOffsetMilliseconds:null,startMediaIndex:null,positionSeconds:0,lastSeekPositionSeconds:null,durationSeconds:0,seekStartSeconds:0,seekEndSeconds:0,playbackTime:0,isPlayQueueLoading:!1,isMediaLoading:!1,isPostPlayLoading:!1,isPaused:!1,isBuffering:!1,repeatAll:!1,repeatOne:!1,availableQualities:[],metricsAutoPlay:!1,hasError:!1,errorMessage:null,errorCode:null,errorCategory:null,playbackStartTime:null,hasConflicts:!1,isConflictCancelling:!1,
cancelConflictError:null,confirmLiveTVPlayback:!1}}});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ProviderSettingsPageModel",context:["server","provider"],sessionAttrs:{isUpdatePending:a.a.boolean,updateError:a.a.object},defaults:{isUpdatePending:!1,updateError:null}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1721),o=n(1722),s=i.a.extend({name:"RecordingSchedulePageModel",sessionAttrs:{isPagePopulated:a.a.boolean,
isMediaSubscriptionsPending:a.a.boolean,isMediaSubscriptionsPopulated:a.a.boolean,mediaSubscriptionsError:a.a.object,isCalendarPending:a.a.boolean,isCalendarPopulated:a.a.boolean,calendarError:a.a.object},sessionRelations:{mediaSubscriptions:{relationClass:o.a,deferred:!0},calendar:{relationClass:r.a,deferred:!0}},defaults:{isPagePopulated:!1,isMediaSubscriptionsPending:!1,isMediaSubscriptionsPopulated:!1,mediaSubscriptionsError:null,isCalendarPending:!1,isCalendarPopulated:!1,calendarError:null
}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(5001),r=i.a.extend({name:"MultiSelectItemCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"MultiSelectItemModel",sessionAttrs:{id:a.a.any.isRequired,type:a.a.string.isRequired},sessionRelations:{model:{relationClass:i.a,deferred:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1232),o=n(121),s=n(94),l=n(364),c=n(122),u=n(1804),d=i.a.extend({name:"AddToPlaylistModalModel",
sessionAttrs:{providerEntityID:a.a.string,containerKey:a.a.string,type:a.a.string,title:a.a.string,uri:a.a.string,smart:a.a.boolean,readOnly:a.a.boolean,isUpdating:a.a.boolean,error:a.a.object},sessionRelations:{server:{relationClass:c.c,deferred:!0},provider:{relationClass:l.a,deferred:!0},metadataItem:{relationClass:s.a,deferred:!0},metadataList:{relationClass:o.default,deferred:!0},multiSelect:{relationClass:u.a,deferred:!0},playQueue:{relationClass:r.a,deferred:!0},playlists:{
relationClass:o.default,deferred:!0}},defaults:{title:"",smart:!1,readOnly:!1,isUpdating:!1}});t.a=d},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ServerLogPageModel",sessionAttrs:{logLines:a.a.array.isRequired,unfilteredLogLinesCount:a.a.integer.isRequired,filter:a.a.string.isRequired,logLevels:a.a.array.isRequired,highlightedLineIndex:a.a.integer,timeFilterStart:a.a.string.isRequired,timeFilterEnd:a.a.string.isRequired,isTimeFilterStartValid:a.a.boolean.isRequired,
isTimeFilterEndValid:a.a.boolean.isRequired,showTimeFilter:a.a.boolean.isRequired,showRawText:a.a.boolean.isRequired},defaults:function(){return{logLines:[],unfilteredLogLinesCount:0,filter:"",logLevels:[],timeFilterStart:"",timeFilterEnd:"",isTimeFilterStartValid:!0,isTimeFilterEndValid:!0,showRawText:!1,showTimeFilter:!1}}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"AccountSettingsPageModel",sessionAttrs:{isUpdatingUserProfile:a.a.boolean.isRequired,
updateUserProfileError:a.a.string},defaults:{isUpdatingUserProfile:!1,updateUserProfileError:null}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"AddToCatalogModalModel",sessionAttrs:{isUpdating:a.a.boolean.isRequired,error:a.a.object},defaults:{isUpdating:!1,error:null}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"AuthCodeExchangeModel",sessionAttrs:{code:a.a.string,pinID:a.a.integer,pinIDInitial:a.a.integer,pinTimeout:a.a.integer,
authToken:a.a.string,isBusy:a.a.boolean.isRequired,errorMessage:a.a.string,fatalErrorMessage:a.a.string},defaults:{code:null,pinID:null,pinIDInitial:null,pinTimeout:null,authToken:null,isBusy:!1,errorMessage:null,fatalErrorMessage:null}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(364),o=n(122),s=i.a.extend({name:"BackgroundModel",sessionAttrs:{imageUrl:a.a.string,themeMusicUrl:a.a.string,allowLightPreset:a.a.boolean,isBackgroundPending:a.a.boolean},sessionRelations:{server:{
relationClass:o.c,deferred:!0},provider:{relationClass:r.a,deferred:!0}},defaults:{allowLightPreset:!1,isBackgroundPending:!1}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1402),o=n(685),s=i.a.extend({name:"DVRSettingsUIModel",sessionAttrs:{isDvrsPending:a.a.boolean,isDvrsPopulated:a.a.boolean,dvrsError:a.a.object,isUIPopulated:a.a.boolean},sessionRelations:{dvrs:{relationClass:r.a,deferred:!0},dvrSetup:{relationClass:o.a,deferred:!0}},defaults:{isDvrsPending:!1,
isDvrsPopulated:!1,dvrsError:null,isUIPopulated:!1}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(247),o=i.a.extend({name:"DiscoverPageModel",sessionAttrs:{providerEntityID:a.a.string,hubKey:a.a.string,isHubsPending:a.a.boolean.isRequired,isHubsPopulated:a.a.boolean.isRequired,hubsError:a.a.object,isPromotedHubsPending:a.a.boolean.isRequired,isPromotedHubsPopulated:a.a.boolean.isRequired,promotedHubsError:a.a.object,knownPromotedHubCloudProviderIDs:a.a.array.isRequired},
sessionRelations:{hubs:{relationClass:r.default,deferred:!0},promotedHubs:{relationClass:r.default,deferred:!0}},defaults:function(){return{isHubsPending:!0,isHubsPopulated:!1,hubsError:null,isPromotedHubsPending:!0,isPromotedHubsPopulated:!1,promotedHubsError:null,knownPromotedHubCloudProviderIDs:[]}}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(617),o=n(808),s=n(498),l=n(121),c=n(804),u=n(1805),d=i.a.extend({name:"LibraryPageModel",sessionAttrs:{providerEntityID:a.a.string,
libraryKey:a.a.string,containerKey:a.a.string,isDetailsPending:a.a.boolean.isRequired,isDetailsPopulated:a.a.boolean.isRequired,detailsError:a.a.object,isFirstCharactersPending:a.a.boolean.isRequired,isFirstCharactersPopulated:a.a.boolean.isRequired,firstCharactersError:a.a.object,selectedFilterKey:a.a.string,filterOptionQuery:a.a.string,isSelectedFilterOptionsPending:a.a.boolean.isRequired,isSelectedFilterOptionsPopulated:a.a.boolean.isRequired,selectedFilterOptionsError:a.a.object,
isQueryParsePending:a.a.boolean.isRequired,isQueryParsePopulated:a.a.boolean.isRequired,queryParseError:a.a.object,typeKey:a.a.string},sessionRelations:{metadataList:{relationClass:l.default,deferred:!0},directoryList:{relationClass:c.a,deferred:!0},details:{relationClass:s.a,deferred:!0},firstCharacters:{relationClass:o.a,deferred:!0},selectedFilterOptions:{relationClass:r.a,deferred:!0},queryParse:{relationClass:u.a,deferred:!0}},defaults:{isDetailsPending:!0,isDetailsPopulated:!1,
detailsError:null,isFirstCharactersPending:!0,isFirstCharactersPopulated:!1,firstCharactersError:null,selectedFilterKey:null,filterOptionQuery:"",isSelectedFilterOptionsPending:!0,isSelectedFilterOptionsPopulated:!1,selectedFilterOptionsError:null,isQueryParsePending:!0,isQueryParsePopulated:!1,queryParseError:null}});t.a=d},function(e,t,n){"use strict";var i=n(25),a=n(5012),r=i.a.extend({name:"QueryLimitCollection",model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"QueryLimitModel",rootPropertyName:"Limit",syncedAttrs:{limit:a.a.integer,unit:a.a.string}});t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),a=n(1806),r=i.a.extend({name:"QueryRuleCollection",model:a.a});t.default=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(121),o=i.a.extend({name:"MetadataListPageModel",sessionAttrs:{providerEntityID:a.a.string,listKey:a.a.string},sessionRelations:{
metadataList:{relationClass:r.default,deferred:!0}}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1794),o=i.a.extend({name:"OnlineMediaSourcesPageModel",sessionAttrs:{optOutStatuses:a.a.object,isOptOutStatusesPending:a.a.boolean,optOutStatusesError:a.a.object,isAvailableProvidersPending:a.a.boolean,isAvailableProvidersPopulated:a.a.boolean,availableProvidersError:a.a.object,isUpdatePending:a.a.boolean,updateError:a.a.object},sessionRelations:{availableProviders:{
relationClass:r.a,deferred:!0}},defaults:{isOptOutStatusesPending:!0,optOutStatusesError:null,isAvailableProvidersPending:!0,isAvailableProvidersPopulated:!1,availableProvidersError:null,isUpdatePending:!1,updateError:null}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(94),o=n(809),s=i.a.extend({name:"PlaylistPageModel",sessionAttrs:{serverEntityID:a.a.string,providerEntityID:a.a.string,metadataKey:a.a.string,isPlaylistPending:a.a.boolean.isRequired,
isPlaylistPopulated:a.a.boolean.isRequired,playlistError:a.a.object,isPlaylistItemListPending:a.a.boolean.isRequired,isPlaylistItemListPopulated:a.a.boolean.isRequired,playlistItemListError:a.a.object},sessionRelations:{playlist:{relationClass:r.a,deferred:!0},playlistItemList:{relationClass:o.a,deferred:!0}},defaults:{isPlaylistPending:!0,isPlaylistPopulated:!1,playlistError:null,isPlaylistItemListPending:!0,isPlaylistItemListPopulated:!1,playlistItemListError:null}});t.a=s},function(e,t,n){
"use strict";var i=n(17),a=n(14),r=n(498),o=n(509),s=n(121),l=i.a.extend({name:"PlaylistsPageModel",sessionAttrs:{serverEntityID:a.a.string,libraryKey:a.a.string,containerKey:a.a.string,isLibraryDetailsPending:a.a.boolean.isRequired,isLibraryDetailsPopulated:a.a.boolean.isRequired,libraryDetailsError:a.a.object,isSortsPending:a.a.boolean.isRequired,isSortsPopulated:a.a.boolean.isRequired,sortsError:a.a.object},sessionRelations:{libraryDetails:{relationClass:r.a,deferred:!0},playlists:{
relationClass:s.default,deferred:!0},sorts:{relationClass:o.a,deferred:!0}},defaults:{isLibraryDetailsPending:!0,isLibraryDetailsPopulated:!1,libraryDetailsError:null,isSortsPending:!0,isSortsPopulated:!1,sortsError:null}});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(247),o=n(121),s=n(94),l=i.a.extend({name:"PrePlayPageModel",sessionAttrs:{providerEntityID:a.a.string,metadataKey:a.a.string,descendantKey:a.a.string,siblingKey:a.a.string,
isMetadataItemPending:a.a.boolean.isRequired,isMetadataItemPopulated:a.a.boolean.isRequired,metadataItemError:a.a.object,isRelatedHubsPending:a.a.boolean.isRequired,isRelatedHubsPopulated:a.a.boolean.isRequired,relatedHubsError:a.a.object,isAugmentedHubsPending:a.a.boolean.isRequired,isAugmentedHubsPopulated:a.a.boolean.isRequired,augmentedHubsError:a.a.object,isFileUnavailable:a.a.boolean,decisionMediaItem:a.a.object},sessionRelations:{metadataItem:{relationClass:s.a,deferred:!0},
descendantList:{relationClass:o.default,deferred:!0},siblingList:{relationClass:o.default,deferred:!0},relatedHubs:{relationClass:r.default,deferred:!0},augmentedHubs:{relationClass:r.default,deferred:!0}},defaults:{isMetadataItemPending:!0,isMetadataItemPopulated:!1,metadataItemError:null,isRelatedHubsPending:!0,isRelatedHubsPopulated:!1,relatedHubsError:null,isAugmentedHubsPending:!0,isAugmentedHubsPopulated:!1,augmentedHubsError:null,isFileUnavailable:!1}});t.a=l},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"ProvisionPersonalCloudServerModel",sessionAttrs:{isPersonalCloudServerModalOpen:a.a.boolean,isProvisionPersonalCloudServerPending:a.a.boolean,isProvisionPersonalCloudServerPopulated:a.a.boolean,provisionPersonalCloudServerError:a.a.object,isConnectToPersonalCloudServerPending:a.a.boolean,isConnectToPersonalCloudServerPopulated:a.a.boolean,connectToPersonalCloudServerError:a.a.object,isPersonalCloudServerDriveCachePending:a.a.boolean,
isPersonalCloudServerDriveCachePopulated:a.a.boolean,personalCloudServerDriveCacheError:a.a.object},defaults:{isPersonalCloudServerModalOpen:!1,isProvisionPersonalCloudServerPending:!1,isProvisionPersonalCloudServerPopulated:!1,provisionPersonalCloudServerError:null,isConnectToPersonalCloudServerPending:!1,isConnectToPersonalCloudServerPopulated:!1,connectToPersonalCloudServerError:null,isPersonalCloudServerDriveCachePending:!1,isPersonalCloudServerDriveCachePopulated:!1,
personalCloudServerDriveCacheError:null}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1807),o=i.a.extend({name:"QuickSearchModel",sessionAttrs:{query:a.a.string,serverEntityID:a.a.string,providerEntityID:a.a.string,providerIdentifier:a.a.string,sectionID:a.a.string,selectedResultEntityID:a.a.string,channelPlaceholder:a.a.string,channelID:a.a.string,channelSearchKey:a.a.string},sessionRelations:{searches:{relationClass:r.a}},defaults:{query:"",selectedResultEntityID:null}});t.a=o
},function(e,t,n){"use strict";var i=n(25),a=n(95),r=n(5022),o=i.a.extend({name:"SearchHubCollection",context:["server","provider"],model:r.a,responseType:function(){return Object(a.a)(this.server)}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(95),o=n(5023),s=i.a.extend({name:"SearchHubModel",context:["server","provider"],responseType:function(){return Object(r.a)(this.server)},idAttribute:"hubIdentifier",syncedAttrs:{hubIdentifier:a.a.string,size:a.a.integer,type:a.a.string,
subtype:a.a.string,title:a.a.string,context:a.a.string},syncedRelations:{metadataResults:{relationClass:o.a,rootPropertyName:"Metadata",options:function(e){return{metricsContext:e.context}}},tagResults:{relationClass:o.a,rootPropertyName:"Directory",options:function(e){return{metricsContext:e.context}}}}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(95),r=n(5024),o=i.a.extend({name:"SearchResultCollection",context:["server","provider","metricsContext"],model:r.a,responseType:function(){
return Object(a.a)(this.server)}});t.a=o},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(12),o=n.n(r),s=n(17),l=n(14),c=n(94),u=n(1472),d=n(95),p=n(38),h=n(232),f=s.a.extend({name:"SearchResultModel",context:["server","provider","metricsContext"],entityType:h.SEARCH_RESULT,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(p.a)(this.entityType,e.key,this.provider&&this.provider.entityID(),this.server.entityID())},
responseType:function(){return Object(d.a)(this.server)},idAttribute:"key",syncedAttrs:{key:l.a.string,reasonID:l.a.integer,reason:l.a.string,reasonTitle:l.a.string},syncedRelations:{metadataItem:{relationClass:c.a,deferred:!0},tagItem:{relationClass:u.a,deferred:!0}},augmentResponse:function(e){var t,n=e.key,i=e.reason,r=e.reasonTitle,s=e.reasonID,l=o()(e,["key","reason","reasonTitle","reasonID"]),c=l.tag?"tagItem":"metadataItem";return t={key:n,reason:i,reasonTitle:r,reasonID:s},t[c]=a()({
key:n},l),t}});t.a=f},function(e,t,n){"use strict";var i=n(17),a=n(1807),r=i.a.extend({name:"SearchPageModel",sessionRelations:{searches:{relationClass:a.a}}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1236),o=n(1237),s=n(1238),l=i.a.extend({name:"ServerDashboardPageModel",sessionAttrs:{isBandwidthStatisticsPending:a.a.boolean,isBandwidthStatisticsPopulated:a.a.boolean,bandwidthStatisticsError:a.a.string,bandwidthStatisticsRequestTimestamp:a.a.integer,
isTopUsersPending:a.a.boolean,isTopUsersPopulated:a.a.boolean,topUsersError:a.a.string,isPlayHistoryPending:a.a.boolean,isPlayHistoryPopulated:a.a.boolean,playHistoryError:a.a.string,isTopPlayedPending:a.a.boolean,isTopPlayedPopulated:a.a.boolean,topPlayedError:a.a.string,stopSessionErrorMessage:a.a.string},sessionRelations:{bandwidthStatistics:{relationClass:r.a,deferred:!0},topUsers:{relationClass:o.a,deferred:!0},playHistory:{relationClass:o.a,deferred:!0},topPlayedMovies:{relationClass:s.a,
deferred:!0},topPlayedTV:{relationClass:s.a,deferred:!0},topPlayedMusic:{relationClass:s.a,deferred:!0}},defaults:{isBandwidthStatisticsPending:!1,isBandwidthStatisticsPopulated:!1,bandwidthStatisticsError:null,bandwidthStatisticsRequestTimestamp:null,isTopUsersPending:!1,isTopUsersPopulated:!1,topUsersError:null,isPlayHistoryPending:!1,isPlayHistoryPopulated:!1,playHistoryError:null,isTopPlayedPending:!1,isTopPlayedPopulated:!1,topPlayedError:null,stopSessionErrorMessage:null}});t.a=l
},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(498),o=n(1808),s=n(121),l=i.a.extend({name:"TimelinePageModel",sessionAttrs:{serverEntityID:a.a.string,providerEntityID:a.a.string,momentKey:a.a.string,isDetailsPending:a.a.boolean.isRequired,isDetailsPopulated:a.a.boolean.isRequired,detailsError:a.a.object,isMomentListPending:a.a.boolean.isRequired,isMomentListPopulated:a.a.boolean.isRequired,momentListError:a.a.object},sessionRelations:{metadataList:{relationClass:s.default,deferred:!0},
details:{relationClass:r.a,deferred:!0},momentList:{relationClass:o.a,deferred:!0}},defaults:{isDetailsPending:!0,isDetailsPopulated:!1,detailsError:null,isMomentListPending:!0,isMomentListPopulated:!1,momentListError:null}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(5029),r=i.a.extend({name:"MomentCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"MomentModel",context:["server","provider"],idAttribute:"id",
rootPropertyName:"Directory",syncedAttrs:{id:a.a.string,title:a.a.string,size:a.a.integer,avgAR:a.a.float,startsAt:a.a.integer,endsAt:a.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(5031),o=n(5034),s=i.a.extend({name:"CloudServerFlexModel",context:["server"],sessionAttrs:{isPersonalCloudServerRestarting:a.a.boolean,personalCloudServerRestartError:a.a.object,isOauthProvidersPending:a.a.boolean,isOauthProvidersPopulated:a.a.boolean,oauthProvidersError:a.a.object,
isPersonalCloudServerStatusPending:a.a.boolean,isPersonalCloudServerStatusPopulated:a.a.boolean,personalCloudServerStatusError:a.a.object},sessionRelations:{oauthProviders:{relationClass:r.a},personalCloudServerStatus:{relationClass:o.a}},defaults:{isPersonalCloudServerRestarting:!1,personalCloudServerRestartError:null,isOauthProvidersPending:!1,isOauthProvidersPopulated:!1,oauthProvidersError:null,isPersonalCloudServerStatusPending:!1,isPersonalCloudServerStatusPopulated:!1,
personalCloudServerStatusError:null}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(69),r=n(5032),o=i.a.extend({name:"OauthProviderCollection",model:r.a,context:["server"],url:"/api/v2/authentications/providers",responseType:a.a.json});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(5033),o=i.a.extend({name:"OauthProviderModel",rootPropertyName:"provider",sessionAttrs:{isUnlinking:a.a.boolean.isRequired,unlinkError:a.a.object},syncedAttrs:{authName:a.a.string,image:a.a.string,
label:a.a.string.isRequired,linked:a.a.boolean.isRequired,nickname:a.a.string,url:a.a.string.isRequired},syncedRelations:{usage:{relationClass:r.a}},defaults:{isUnlinking:!1}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"OauthProviderUsageModel",syncedAttrs:{plexCloud:a.a.boolean,cloudSync:a.a.boolean,federatedAuth:a.a.boolean,other:a.a.boolean}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"PersonalCloudServerStatusModel",
context:["server"],url:"/api/v2/cloud_server",syncedAttrs:{running:a.a.boolean,startedAt:a.a.integer,finishedAt:a.a.integer,exitCode:a.a.integer,error:a.a.string},defaults:{running:!1}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(62),o=n(810),s=n(5036),l=n(5038),c=n(5039),u=n(620),d=n(362),p=n(5042),h=n(5043),f=n(5045),v=n(5047),g=i.a.extend({name:"ServerFlexModel",context:["server"],sessionAttrs:{update:a.a.instanceOf(p.a),alerts:a.a.instanceOf(c.a).isRequired,
hasiTunes:a.a.boolean,isSettingsPending:a.a.boolean,isSettingsPopulated:a.a.boolean,settingsError:a.a.object,isLibrariesPending:a.a.boolean.isRequired,isLibrariesPopulated:a.a.boolean.isRequired,librariesError:a.a.object,cleanBundlesError:a.a.string,optimizeDatabaseError:a.a.string},sessionRelations:{settings:{relationClass:d.a,rootPropertyName:"Setting"},cloudAccount:{relationClass:u.i},libraries:{relationClass:o.a},sessions:{relationClass:v.a},activities:{relationClass:l.a},transcodeJobs:{
relationClass:h.a},backgroundTranscodeJobs:{relationClass:f.a},players:{relationClass:s.a}},defaults:function(){return{update:r.a.get("allowServerUpdates")?new p.a({},{server:this.server}):null,alerts:new c.a([],{server:this.server}),hasiTunes:!1,isSettingsPending:!0,isSettingsPopulated:!1,settingsError:null,isLibrariesPending:!0,isLibrariesPopulated:!1,librariesError:null,cleanBundlesError:null,optimizeDatabaseError:null}}});t.a=g},function(e,t,n){"use strict"
;var i=n(16),a=n(25),r=n(5037),o=a.a.extend({name:"PlexPlayerCollection",context:["server"],model:r.a,url:"/clients",augmentResponse:function(e){var t=Object(i.c)("appModel"),n=t.get("clientID"),a=parseInt(e.size,10);return 1===a&&e.Server.machineIdentifier===n?(delete e.Server,e.size="0"):a>1&&(e.Server=e.Server.filter(function(e){return e.machineIdentifier!==n}),e.size=e.Server.length.toString()),e}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"PlexPlayerModel",
context:["server"],idAttribute:"machineIdentifier",rootPropertyName:"Server",sessionAttrs:{volume:a.a.integer},syncedAttrs:{machineIdentifier:a.a.string,name:a.a.string,address:a.a.string,port:a.a.string,deviceClass:a.a.string,version:a.a.string,product:a.a.string,protocol:a.a.string,protocolVersion:a.a.string,protocolCapabilities:a.a.list},derivedAttrs:{friendlyName:function(){return this.get("name")||this.get("product")}},defaults:{volume:100}});t.a=r},function(e,t,n){"use strict"
;var i=n(25),a=n(95),r=n(188),o=i.a.extend({name:"ActivityCollection",context:["server"],model:r.b,url:"/activities",responseType:function(){return Object(a.a)(this.server)}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(5040),o=n(5041),s=r.a.extend({model:o.a,url:"/servers",pageSize:20,limit:1e3,initialize:function(){this.startTime=new Date,this.listenTo(this.server,"socket:setting",this.onSettingChange),this.listenTo(this.server,"socket:timeline",this.onTimeline),
this.listenTo(this.server,"socket:status",this.onStatus),this.listenTo(this.server,"socket:playing",this.onPlaying),this.listenTo(this.server,"socket:websocket",this.onWebSocket)},add:function(e){this.length+1>this.limit&&this.remove(this.at(0)),r.a.prototype.add.apply(this,arguments)},onSettingChange:function(e){e.label&&this.add(a.a.extend({_type:"setting"},e),{parse:!0})},onTimeline:function(e){1===e.state||e.sectionID<0||this.add(a.a.extend({_type:"timeline"},e),{parse:!0})},
onStatus:function(e){"ProgressNotification"!==e._elementType&&this.add(a.a.extend({_type:"status"},e),{parse:!0})},onPlaying:function(e){this.add(a.a.extend({_type:"playing"},e),{parse:!0})},onWebSocket:function(e){this.add(a.a.extend({_type:"websocket"},e),{parse:!0})}});t.a=s},function(e,t,n){"use strict";var i=n(246),a=i.a.extend({pageSize:10,pages:function(){return Math.max(Math.ceil(this.length/this.pageSize),1)},page:function(e,t){t||(t={});var n,i=0
;return n=t.reverse?this.length-e*this.pageSize:e*this.pageSize-this.pageSize,n<0&&(i=n,n=0),this.models.slice(n,n+this.pageSize+i)}});t.a=a},function(e,t,n){"use strict";var i=n(181),a=0,r=i.a.extend({idAttribute:"id",parse:function(e){var t=e;return t.time=new Date,t.id="evt"+a++,"preference"===t._type&&(t.value=String(t.value)),t}});t.a=r},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(181),l=n(102),c=s.a.extend({url:"/updater/status",
whitelistedAttrs:["status","canInstall","downloadURL","state","progress","version","error","added","fixed"],defaults:{state:"none",progress:0,version:"",error:"",added:"",fixed:"",shouldInstall:!1},fetch:function(){return this.server.supports("updater")?s.a.prototype.fetch.apply(this,arguments):a.a.Deferred().reject().promise()},convert:function(e){var t=o.a.isObject(e)?e:l.a.parseXML(e);return l.a.parseBoolean(t,"canInstall"),l.a.parseInteger(t,"status"),
t.Release&&l.a.parseInteger(t.Release,"progress"),t},parse:function(e,t){var n=this.convert(e);return n=o.a.extend(n,n.Release),n=o.a.pick(n,this.whitelistedAttrs),0!==n.status&&(n.state="error"),n}});t.a=c},function(e,t,n){"use strict";var i=n(25),a=n(5044),r=n(608),o=i.a.extend({name:"TranscodeJobCollection",context:["server"],model:a.a,cache:new r.a,url:"/sync/transcodeQueue"});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(95),o=n(38),s=n(232),l=i.a.extend({
name:"TranscodeJobModel",context:["server"],entityType:s.TRANSCODE_JOBS,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(o.a)(this.entityType,e.syncItemId,this.server.entityID())},idAttribute:"syncItemId",rootPropertyName:"TranscodeJob",syncedAttrs:{syncItemId:a.a.integer,syncItemTitle:a.a.string,key:a.a.string,type:a.a.string,progress:a.a.float,speed:a.a.float,remaining:a.a.string,size:a.a.string,title:a.a.string,thumb:a.a.string},
responseType:function(){return Object(r.a)(this.server)}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(5046),r=i.a.extend({name:"BackgroundTranscodeJobCollection",model:a.a,context:["server"],url:"/status/sessions/background"});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(38),o=n(232),s=i.a.extend({name:"BackgroundTranscodeJobModel",context:["server"],entityType:o.BACKGROUND_TRANSCODE_JOBS,entityID:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(r.a)(this.entityType,e.key,this.server.entityID())},idAttribute:"key",rootPropertyName:"TranscodeJob",syncedAttrs:{queueItemID:a.a.integer,generatorID:a.a.integer,targetTagID:a.a.integer,syncItemId:a.a.integer,syncItemTitle:a.a.string,key:a.a.string,type:a.a.string,progress:a.a.float,speed:a.a.float,remaining:a.a.integer,size:a.a.integer,ratingKey:a.a.string,title:a.a.string,thumb:a.a.string}});t.a=s
},function(e,t,n){"use strict";var i=n(25),a=n(69),r=n(111),o=n(5048),s=i.a.extend({name:"SessionCollection",context:["server"],model:o.a,url:"/status/sessions",augmentResponseText:function(e,t){return t===a.a.xml?Object(r.b)(e):e}});t.a=s},function(e,t,n){"use strict";var i=n(12),a=n.n(i),r=n(17),o=n(14),s=n(69),l=n(300),c=n(111),u=n(38),d=n(45),p=n(5049),h=r.a.extend({name:"SessionModel",context:["server"],entityType:d.n,entityID:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(u.a)(this.entityType,e.sessionKey,this.server.entityID())},idAttribute:"sessionKey",cache:new l.a,cacheKey:function(e){return this.server&&this.server.getScopedKey(e.sessionKey)},responseType:function(){return s.a.xml},rootPropertyName:"Metadata",syncedAttrs:{sessionKey:o.a.string,Player:o.a.object,Session:o.a.object,TranscodeSession:o.a.object,User:o.a.object,delegated:o.a.boolean},syncedRelations:{
metadataItem:{relationClass:p.a,deferred:!0}},defaults:{delegated:!1},augmentResponseText:function(e,t){return t===s.a.xml?Object(c.b)(e):e},augmentResponse:function(e){var t=e[this.rootPropertyName],n=t||e,i=n.sessionKey,r=n.Player,o=n.Session,s=n.TranscodeSession,l=n.User,c=n.delegated,u=a()(n,["sessionKey","Player","Session","TranscodeSession","User","delegated"]);return u.sessionKey=i,{sessionKey:i,Player:r,Session:o,TranscodeSession:s,User:l,delegated:c,metadataItem:u}}});t.a=h
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),o=n(94),s=n(38),l=o.a.extend({name:"SessionMetadataModel",entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(s.a)(this.entityType,e.sessionKey,this.server.entityID())},cacheKey:function(e){return this.server&&this.server.getScopedKey(e.sessionKey)},mergeStrategy:null,syncedAttrs:a()({},o.a.prototype.syncedAttrs,{sessionKey:r.a.string})});t.a=l},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),o=n(5051),s=n(5053),l=n(5054),c=n(5058),u=n(5060),d=n(5062),p=n(5063),h=n(5067),f=n(5069),v=d.a.prototype,g=d.a.extend({sessionAttrs:a()({},v.sessionAttrs,{friends:r.a.instanceOf(s.a).isRequired,socialNetworks:r.a.instanceOf(u.a).isRequired,isPlansPending:r.a.boolean.isRequired,isPlansPopulated:r.a.boolean.isRequired,plansError:r.a.object,isAllFriendsPending:r.a.boolean.isRequired,isAllFriendsPopulated:r.a.boolean.isRequired,allFriendsError:r.a.object,
isDeletingAvatar:r.a.boolean.isRequired,isUpdatingUser:r.a.boolean.isRequired,updateUserError:r.a.object,isWebhooksPending:r.a.boolean,isWebhooksPopulated:r.a.boolean,webhooksError:r.a.object,isUpdatingWebhooks:r.a.boolean,isRemovingWebhooks:r.a.boolean,updateWebhooksError:r.a.object}),sessionRelations:a()({},v.sessionRelations,{devices:{relationClass:p.a},announcements:{relationClass:o.a},allFriends:{relationClass:l.a},invites:{relationClass:c.a},sentInvites:{relationClass:c.a,options:{
subset:"requested"}},plans:{relationClass:h.a},webhooks:{relationClass:f.a}}),defaults:function(){var e={server:this.server,parent:this};return a()({},v.defaults,{friends:new s.a([],e),socialNetworks:new u.a([],e),isPlansPending:!0,isPlansPopulated:!1,plansError:null,isAllFriendsPending:!0,isAllFriendsPopulated:!1,allFriendsError:null,isDeletingAvatar:!1,isUpdatingUser:!1,updateUserError:null,isWebhooksPending:!1,isWebhooksPopulated:!1,webhooksError:null,isUpdatingWebhooks:!1,
isRemovingWebhooks:!1,updateWebhooksError:null})}});t.a=g},function(e,t,n){"use strict";var i=n(25),a=n(5052),r=i.a.extend({name:"AnnouncementCollection",model:a.a,context:["server"],url:"api/announcements"});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"AnnouncementModel",context:["server"],rootPropertyName:"Announcement",syncedAttrs:{id:a.a.integer,title:a.a.string,content:a.a.string,imageUrl:a.a.string,style:a.a.string,url:a.a.string,expireAt:a.a.string,
notifyAt:a.a.string,read:{type:a.a.boolean,save:!0}},markAsRead:function(){this.get("read")||this.save("read",!0)}});t.a=r},function(e,t,n){"use strict";var i=n(694),a=n.n(i),r=n(246),o=n(1431),s=r.a.extend({model:o.a,url:"/api/users",parse:function(e){return this.convert(e,"User")},filterByHome:function(){var e=new a.a(this);return e.filterBy(function(e){return e.get("home")}),e},filterByUnrestricted:function(){var e=new a.a(this);return e.filterBy(function(e){return!e.get("restricted")}),e},
filterByServerShares:function(e){var t=new a.a(this);return t.filterBy(function(t){return!!t.get("serverShares").findWhere({machineIdentifier:e})}),t}});t.a=s},function(e,t,n){"use strict";var i=n(25),a=n(5055),r=i.a.extend({name:"FriendCollection2",context:["server"],model:a.a,url:"/api/users"});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(38),o=n(45),s=n(5056),l=i.a.extend({name:"FriendModel2",context:["server"],rootPropertyName:"User",entityType:o.a,entityID:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return Object(r.a)(this.entityType,e.id)},url:function(){return this.get("home")?"/api/users":"/api/friends"},syncedAttrs:{id:a.a.integer,home:a.a.boolean,protected:a.a.boolean,restricted:a.a.boolean,title:a.a.string,username:a.a.string,email:a.a.string,thumb:a.a.string,recommendationsPlaylistId:a.a.string,allowSync:{type:a.a.boolean,save:!0},allowCameraUpload:{type:a.a.boolean,save:!0},allowChannels:{type:a.a.boolean,
save:!0},allowTuners:{type:a.a.boolean,save:!0},filterMovies:{type:a.a.queryString,separator:"|",save:!0},filterTelevision:{type:a.a.queryString,separator:"|",save:!0},filterMusic:{type:a.a.queryString,separator:"|",save:!0},filterPhotos:{type:a.a.queryString,separator:"|",save:!0}},syncedRelations:{serverShares:{relationClass:s.a,rootPropertyName:"Server"}}});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(5057),r=i.a.extend({name:"ServerShareCollection2",context:["server"],model:a.a})
;t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"ServerShareModel2",context:["server"],syncedAttrs:{id:a.a.integer,serverId:a.a.integer,machineIdentifier:a.a.string,name:a.a.string,owned:a.a.boolean,admin:a.a.boolean,pending:a.a.boolean,lastSeenAt:a.a.integer,invitedAt:a.a.integer,acceptedAt:a.a.integer,allLibraries:a.a.boolean,numLibraries:a.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(694),a=n.n(i),r=n(25),o=n(5059),s=r.a.extend({name:"InviteCollection",
context:["server","subset"],model:o.a,url:function(){return"/api/invites/"+this.subset},initialize:function(e,t){t||(t={}),this.subset=t.subset||"requests"},filterByHome:function(){var e=new a.a(this);return e.filterBy(function(e){return e.get("home")}),e},filterByFriends:function(){var e=new a.a(this);return e.filterBy(function(e){return!e.get("home")}),e}});t.a=s},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(353),o=n(18),s=n(17),l=n(14),c=s.a.extend({name:"InviteModel",
context:["server"],rootPropertyName:"Invite",syncedAttrs:{id:{type:l.a.string,save:!0},friend:l.a.boolean,home:l.a.boolean,server:l.a.boolean,friendlyName:l.a.string,username:l.a.string,email:l.a.string,thumb:l.a.string,createdAt:l.a.integer,Server:l.a.array},urlRoot:"/api/invites/requests",url:function(){var e=void 0;if(this.isNew())e=a.a.result(this,"urlRoot");else{var t=this.pick("friend","server","home");a.a.each(a.a.keys(t),function(e){t[e]=t[e]?"1":"0"}),
e=this.collection?a.a.result(this.collection,"url"):a.a.result(this,"urlRoot"),e=e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.get("id")),e=o.join(e,t)}return e},augmentResponse:function(e){return e.Server?((Array.isArray(e.Server)?e.Server:[e.Server]).forEach(function(e){e.numLibraries=Object(r.a)(e.numLibraries)}),e):e}});t.a=c},function(e,t,n){"use strict";var i=n(246),a=n(5061),r=i.a.extend({model:a.a,url:"/pms/social/networks",parse:function(e){return this.convert(e,"Directory")}})
;t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(181),o=n(102),s=r.a.extend({idAttribute:"key",whitelistedAttrs:["key","title","linked","maxLength"],convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);return o.a.parseBoolean(t,["linked","maxLength"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(1168),o=i.a.extend({name:"UserFlexModel",context:["server"],sessionAttrs:{
isProvidersPending:a.a.boolean.isRequired,isProvidersPopulated:a.a.boolean.isRequired,providersError:a.a.object,hasAttemptedPopulateAllProviders:a.a.boolean.isRequired},sessionRelations:{providers:{relationClass:r.a}},defaults:{isProvidersPending:!0,isProvidersPopulated:!1,providersError:null,hasAttemptedPopulateAllProviders:!1}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(25),o=n(5064),s=r.a.extend({name:"DeviceCollection",context:["server"],model:o.a,url:"/devices.xml",
filterSyncDevices:function(e){var t=!(!e||!e.channel),n=!!e&&e.server.get("isShared"),i=!!e&&e.get("isPlaylist"),r=this.filter(function(e){var a=e.get("syncList"),r=a&&a.get("version")>=2,o=(t||n)&&e.get("isCloudSync"),s=i&&!r;return e.supports("sync-target")&&!o&&!s}),o=a.a.sortBy(r,function(e){return!e.get("isCloudSync")});return this.clone(o)},filterByProducts:function(e){var t=this.filter(function(t){return a.a.contains(e,t.get("product"))});return this.clone(t)},
filterByPlatforms:function(e){var t=this.filter(function(t){return a.a.contains(e,t.get("platform"))});return this.clone(t)},products:function(){var e=this.map(function(e){return e.get("product")});return a.a.uniq(e)}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(5065),o=i.a.extend({name:"DeviceModel",context:["server"],rootPropertyName:"Device",url:function(){return"/devices/"+this.id+".xml"},syncedAttrs:{id:a.a.string,clientIdentifier:a.a.string,name:a.a.string,
product:a.a.string,productVersion:a.a.string,platform:a.a.string,platformVersion:a.a.string,device:a.a.string,model:a.a.string,provides:a.a.list,screenResolution:a.a.string,screenDensity:a.a.string,lastSeenAt:a.a.integer},syncedRelations:{syncList:{relationClass:r.a,rootPropertyName:"SyncList",deferred:!0,options:function(){return{device:this}}}},derivedAttrs:{isCloudSync:function(){return"cloudsync"===this.get("platform")},isPersonalCloudServer:function(){return"Cloud"===this.get("platform")}},
supports:function(e){return-1!==this.get("provides").indexOf(e)}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=n(359),o=n(5066),s={ACTIVE:"active",SNOOZED:"snoozed",DEAD:"dead"},l=i.a.extend({name:"SyncListModel",context:["server","device"],url:function(){return this.device?"/devices/"+this.device.get("clientIdentifier")+"/sync_items":"/servers/"+this.server.id+"/sync_lists"},syncedAttrs:{status:a.a.oneOf("active","snoozed","dead"),clientIdentifier:a.a.string,version:a.a.integer,
itemsCompleteCount:a.a.integer,totalSize:a.a.integer},syncedRelations:{syncItems:{relationClass:o.a,rootPropertyName:"SyncItems"}},derivedAttrs:{isActive:function(){return"active"===this.get("status")}},augmentResponse:function(e){return e.SyncItems&&(e.SyncItems=e.SyncItems.SyncItem),e},sync:function(e,t,n){var a=r.a.addVersionHeaderForDevice(this.get("device"),n);return i.a.prototype.sync.call(this,e,t,a)},getCollection:function(){return this.get("syncItems")},resetToServer:function(e){
var t=this.getCollection(),n=t.filter(function(t){var n=t.get("Server");return n&&n.machineIdentifier===e});t.reset(t.clone(n).models)}},{statuses:s});t.a=l},function(e,t,n){"use strict";var i=n(25),a=n(819),r=i.a.extend({name:"SyncItemCollection",context:["server","device"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(5068),r=i.a.extend({name:"SubscriptionPlanCollection",context:["server"],model:a.a,url:"/api/subscriptions/plans"});t.a=r},function(e,t,n){"use strict"
;var i=n(17),a=n(14),r=i.a.extend({name:"SubscriptionPlanModel",context:["server"],rootPropertyName:"plan",syncedAttrs:{id:a.a.string,name:a.a.string,price:a.a.float,formattedPrice:a.a.string,currency:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(25),a=n(69),r=n(5070),o=i.a.extend({name:"WebhookCollection",context:["server"],model:r.a,url:"/api/v2/user/webhooks",responseType:a.a.json});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(14),r=i.a.extend({name:"WebhookModel",
syncedAttrs:{url:a.a.string},defaults:{url:""}});t.a=r},function(e,t,n){"use strict";function i(e){var t=Object(a.a)(r.a,e);return t}t.a=i;var a=n(5072),r=n(5073)},function(e,t,n){"use strict";function i(e,t){function n(){u===c&&(u=c.slice())}function i(){return t.getState()}function a(e){var t=!0;return n(),u.push(e),function(){if(t){t=!1,n();var i=u.indexOf(e);u.splice(i,1)}}}function r(e){var n=e.payload,i=e.type,a=i&&d[i]
;if(Array.isArray(a))for(var o=0,s=a.length;o<s;o++)a[o](t,n,r);else a&&a(t,n,r);return e}function o(e){d=s(e)}function s(e){for(var t={},n=0,i=e.length;n<i;n++){var a=e[n];for(var r in a){var o=t[r],s=a[r];o?Array.isArray(o)?o.push(s):t[r]=[o,s]:t[r]=s}}return t}function l(){for(var e=c=u,t=0,n=e.length;t<n;t++)e[t]()}var c=[],u=c,d=void 0;return o(e),t.on("statechange",l),{dispatch:r,subscribe:a,getState:i,replaceActionHandlers:o}}t.a=i;n(37),n(683),n(17)},function(e,t,n){"use strict"
;var i=n(1064),a=n(243),r=n(1483),o=n(1555),s=n(206),l=n(1623),c=n(993),u=n(566),d=n(143),p=n(412),h=n(1032),f=n(1793),v=n(465),g=n(71),m=n(5074),y=n(940),b=n(191),I=n(152),S=n(399),M=n(486),D=n(1053),C=n(467),j=n(202),P=n(1084),O=n(5075),T=n(5076),E=n(682),w=n(176),A=n(5077),x=n(5078),N=n(5079),L=n(5080),k=n(1619),R=n(5081),z=n(1464),U=n(325),B=n(5082),F=n(1777),_=n(291),V=n(5083),H=n(5084),Q=n(5085),Y=n(274),G=n(5086),W=n(1706),K=n(285),Z=n(1792),q=n(1625),J=n(522),X=[q.a,C.b,Z.a,K.a,g.a,J.j,j.m,y.f,b.metadataActionHandlers,I.d,S.l,M.b,D.e,i.e,f.c,W.b,O.a,T.a,N.a,x.a,_.h,G.a,F.a,P.a,B.a,V.a,a.a,v.f,h.d,A.a,r.b,Y.i,H.a,Q.a,E.c,w.k,m.a,p.recordingSchedulePageActionHandlers,o.e,c.c,u.c,d.l,s.f,R.a,k.a,l.b,U.h,z.a,L.a]
;t.a=X},function(e,t,n){"use strict";function i(e,t){var n=t.serverEntityID;return Object(h.a)(e,p.m,n)}function a(e){return e.get("ui").get("dvrSettingsUI").get("dvrSetup")}function r(e,t){return a(e,t).get("epgSettings")}function o(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a(e,t),s=r(e,t),l=s.get(n);return l.abortPendingPopulate(),o.get("setupErrorMessages").remove("programGuideSettings"),s.set("isFetching",!0),l.fetch(i).done(function(){s.set({isFetching:!1,
isPopulated:!0})}).fail(function(){s.set({isFetching:!1,isPopulated:!1}),o.get("setupErrorMessages").add({id:"programGuideSettings",message:Object(f.default)("Unable to fetch Guide settings")})})}var s,l=n(6),c=n.n(l),u=n(18),d=n(125),p=n(45),h=n(795),f=n(3),v=n(126),g=n(686),m=Object(d.a)((s={},s[v.Z]=function(e,t){r(e,t).restoreDefaults()},s[v.k]=function(e,t,n){var a=i(e,t);o(e,t,"countries").done(function(){var e=a.get("countryCode");e&&n(Object(g.selectEPGCountry)(c()({},t,{countryCode:e
})))})},s[v.l]=function(e,t,n){var i=r(e,t);o(e,t,"languages").done(function(){var e=i.get("selectedCountry");e&&n(Object(g.selectEPGLanguage)(c()({},t,{languageCode:e.get("language")})))})},s[v._2]=function(e,t,n){var i=r(e,t),a=i.get("countries").get(t.countryCode);if(i.set({selectedCountry:a,postalCode:""}),i.get("regions").reset(),i.get("lineupGroup").get("lineups").reset(),a){var s=a.get("flavor"),l=u.join([i.get("baseUrl"),a.get("key")]);n(Object(g.fetchEPGLanguages)(c()({},t,{
languageCode:a.get("language")}))),0===s?o(e,t,"regions",{url:l}):2===s&&(i.set("postalCode",a.get("example")),n(Object(g.fetchEPGLineups)(t)))}},s[v._3]=function(e,t,n){var i=r(e,t),a=i.get("languages").get(t.languageCode);i.set("selectedLanguage",a)},s[v._4]=function(e,t,n){var i=r(e,t),a=i.get("regions").get(t.regionKey);i.set("selectedRegion",a),i.get("lineupGroup").get("lineups").reset(),a&&n(Object(g.fetchEPGLineups)(t))},s[v._9]=function(e,t,n){var i=r(e,t),a=t.postalCode
;i.set("postalCode",a),i.get("lineupGroup").get("lineups").reset()},s[v.m]=function(e,t,n){var i=r(e,t),a=i.get("selectedCountry"),s=[i.get("baseUrl"),a.get("key")],l={};0===a.get("flavor")?s.push(i.get("selectedRegion").get("key")):l.postalCode=i.get("postalCode"),o(e,t,"lineupGroup",{url:u.join(s,l)})},s));t.a=m},function(e,t,n){"use strict";function i(e){return e.get("ui").get("background")}var a,r=n(125),o=n(134),s=n(126),l=Object(r.a)((a={},a[s.a]=function(e,t){
var n=t.serverEntityID,a=t.providerEntityID,r=t.imageUrl,s=t.allowLightPreset,l=void 0!==s&&s,c=i(e),u=n?Object(o.h)(e,t):void 0,d=a?Object(o.e)(e,t):void 0;c.set({server:u,provider:d,imageUrl:r,allowLightPreset:l,isBackgroundPending:!1})},a[s.d]=function(e,t){var n=t.serverEntityID,a=t.theme,r=i(e),s=n?Object(o.h)(e,t):void 0,l=s&&a?s.resolveUrl(a,{appendHeaders:!0}):void 0;r.set("themeMusicUrl",l)},a[s.Y]=function(e){i(e).restoreDefaults({isBackgroundPending:!0})},a));t.a=l},function(e,t,n){
"use strict";function i(e){return e.get("ui").get("discoverPage")}var a,r=n(13),o=n.n(r),s=n(32),l=n(247),c=n(612),u=n(125),d=n(124),p=n(123),h=n(515),f=n(1596),v=n(70),g=n(171),m=n(152),y=n(1061),b=n(134),I=n(126),S=Object(u.a)((a={},a[I.z]=function(e,t){var n=i(e),a=Object(b.h)(e,t),r=Object(b.e)(e,t),o=t.providerEntityID,s=t.hubKey;if(o!==n.get("providerEntityID")||s!==n.get("hubKey")){var c=new l.default([],{server:a,provider:r,hubKey:s,count:16,includeEmpty:!0,
includeTypeFirst:Object(h.a)(),includeFeaturedTags:!0,includeStations:!0,includeExternalMetadata:!0,excludes:["playlists"]}),u=new l.default([],{server:e.get("cloudServer"),url:"https://services.provider.plex.tv/home/hubs",deferred:!0});n.restoreDefaults({providerEntityID:o,hubKey:s,hubs:c,promotedHubs:u})}},a[I.n]=Object(d.a)({key:"hubs",getModel:i}),a[I.t]=function(e,t){var n=i(e),a=n.get("promotedHubs");n.set("isPromotedHubsPending",!0);var r=a.server.getXHROptions(a.url,{dataType:"json"})
;o.a.ajax(r).then(function(t){var i=t.MediaContainer;i=void 0===i?{}:i;var r=i.Hub;(void 0===r?[]:r).forEach(function(t,i){var r=t.source,o=Object(f.a)(r);if(!o)return void s.a.error('Hub source "'+r+'" not in correct format.');var l=Object(b.l)(e,o);if(!l)return void s.a.error('Server with entity id "'+l.serverEntityID+'" not found.');var u=Object(b.k)(e,o);if(!u)return void s.a.error('Provider with entity id "'+o.providerEntityID+'" not found.');var d=new c.a(t,{server:l,provider:u,parse:!0})
;a.add(d);var p=Object(v.l)(e);n.set({isPromotedHubsPending:!1,isPromotedHubsPopulated:!0,promotedHubsError:null,knownPromotedHubCloudProviderIDs:p.get("providers").map(function(e){return e.entityID()})})})},function(e,t){n.set({isPromotedHubsPending:!1,promotedHubsError:Object(g.a)(t)})})},a[I.Q]=function(e,t,n){i(e).get("isPromotedHubsPopulated")||n(Object(y.b)(t))},a[p.a]=function(e,t,n){if(!t.metadataItemEntityID&&!t.containerKeyPattern){var a=Object(b.h)(e,t),r=i(e),o=r.get("hubs")
;o&&o.server===a&&o.each(function(e){var t=e.get("metadataList")||e.get("directoryList");!e.get("random")&&t.get("containerKey")&&n(Object(m.h)({metadataListEntityID:t.entityID(),count:o.count}))})}},a));t.a=S},function(e,t,n){"use strict";function i(e){return e.get("ui").get("homePage")}n.d(t,"a",function(){return d});var a,r=n(6),o=n.n(r),s=n(1068),l=n(123),c=n(1066),u=n(152),d=o()({},c.e,(a={},a[l.a]=function(e,t,n){i(e).get("homeHubStatuses").each(function(e){var t=e.get("hub");if(t){
var i=t.get("metadataList")||t.get("directoryList");!t.get("random")&&i.get("containerKey")&&n(Object(u.h)({metadataListEntityID:i.entityID(),count:s.a}))}})},a))},function(e,t,n){"use strict";function i(e){return e.get("ui").get("libraryPage")}var a,r=n(6),o=n.n(r),s=n(10),l=n.n(s),c=n(18),u=n(617),d=n(808),p=n(498),h=n(121),f=n(804),v=n(125),g=n(124),m=n(249),y=n(123),b=n(27),I=n(1805),S=n(152),M=n(134),D=n(746),C=n(126),j=n(296),P=Object(v.a)((a={},a[C.A]=function(e,t){
var n=i(e),a=n.get("details"),r=Object(M.h)(e,t),o=Object(M.e)(e,t),s=t.providerEntityID,l=t.libraryKey;if(s!==n.get("providerEntityID")||l!==n.get("libraryKey")){var c={providerEntityID:s,libraryKey:l};a&&a.get("libraryKey")===l?(c.details=a,c.isDetailsPending=n.get("isDetailsPending"),c.isDetailsPopulated=n.get("isDetailsPopulated"),c.detailsError=n.get("detailsError")):c.details=new p.a({key:l},{server:r,provider:o,includeAdvanced:!0,includeCollections:o.get("isLibraryProvider")}),
n.restoreDefaults(c)}},a[C.C]=function(e,t){var n=i(e),a=n.get("queryParse"),r=Object(M.h)(e,t),o=Object(M.e)(e,t),s=t.containerKey,l=t.typeKey,u=t.firstCharacterKey,p=t.queryParseKey;if(s!==n.get("containerKey")||l!==n.get("typeKey")){var f=n.get("details").get("types"),v=f.get(l),g=v&&b.r(v.get("type")),m=g&&g.typeString===b.l,y=new h.default({containerKey:s},{server:r,provider:o,includeCollections:o.get("isLibraryProvider")?1:0,includeRelated:m?1:0}),S=new d.a([],{server:r,provider:o,
url:c.join(u,{includeCollections:1})}),D={containerKey:s,typeKey:l,firstCharacters:S,metadataList:y,isFirstCharactersPending:!0,isFirstCharactersPopulated:!1,firstCharactersError:null};a&&a.get("key")===p||(D.queryParse=new I.a({key:p},{server:r}),D.isQueryParsePending=!0,D.isQueryParsePopulated=!1,D.queryParseError=null),n.set(D)}},a[C.B]=function(e,t){var n=i(e),a=Object(M.h)(e,t),r=Object(M.e)(e,t),o=t.containerKey,s=t.typeKey;o===n.get("containerKey")&&s===n.get("typeKey")||n.set({
containerKey:o,typeKey:s,directoryList:new f.a({containerKey:o},{server:a,provider:r})})},a[C.o]=Object(g.a)({key:"details",getModel:i}),a[C.L]=Object(m.a)({key:"details",actionSuffix:"libraryDetails",getModel:i}),a[C.q]=Object(g.a)({key:"firstCharacters",getModel:i}),a[C.N]=Object(m.a)({key:"firstCharacters",actionSuffix:"libraryFirstCharacters",getModel:i}),a[C.u]=Object(g.a)({key:"queryParse",getModel:i}),a[C.R]=Object(m.a)({key:"queryParse",getModel:i}),a[y.a]=function(e,t,n){
var a=t.metadataItemEntityID,r=t.containerKeyPattern;if(!a){var o=Object(M.h)(e,t),s=i(e),l=s.get("metadataList");l&&l.server===o&&(r&&!l.get("containerKey").match(r)||(n(Object(S.h)({metadataListEntityID:l.entityID()})),n(Object(j.fetchLibraryFirstCharacters)())))}},a[C._5]=function(e,t){var n=i(e),a=n.get("selectedFilterOptions"),r=Object(M.h)(e,t),o=Object(M.e)(e,t),s=t.key,l={selectedFilterKey:s};a&&a.url===s||(l.selectedFilterOptions=new u.a([],{server:r,provider:o,url:s}),
l.isSelectedFilterOptionsPending=!0,l.isSelectedFilterOptionsPopulated=!1,l.selectedFilterOptionsError=null),n.set(l)},a[C.h]=function(e){i(e).set({selectedFilterKey:void 0,selectedFilterOptions:void 0,filterOptionQuery:""})},a[C.p]=Object(g.a)({key:"selectedFilterOptions",getModel:i}),a[C.M]=Object(m.a)({key:"selectedFilterOptions",actionSuffix:"libraryFilterOptions",getModel:i}),a[C._1]=function(e,t){i(e).set("filterOptionQuery",t)},a[C._6]=function(e,t){
var n,i=t.type,a=t.subtype,r=t.activeTableColumns,s=t.key;if(-1===l.a.findIndex(r,function(e){return e.key===s})){var c=Object(D.a)(i,a),u=e.get("experienceSettings"),d=u.get("libraryTableColumns"),p=r.map(function(e){return e.key}).concat(s);u.save("libraryTableColumns",o()({},d,(n={},n[c]=p,n)))}},a[C.i]=function(e,t){var n,i=t.type,a=t.subtype,r=t.activeTableColumns,s=t.key;if(!(r.length<=1)){var c=l.a.findIndex(r,function(e){return e.key===s});if(-1!==c){
var u=Object(D.a)(i,a),d=e.get("experienceSettings"),p=d.get("libraryTableColumns"),h=r.slice(0,c).concat(r.slice(c+1)).map(function(e){return e.key});d.save("libraryTableColumns",o()({},p,(n={},n[u]=h,n)))}}},a));t.a=P},function(e,t,n){"use strict";function i(e){return e.get("ui").get("metadataListPage")}var a,r=n(121),o=n(125),s=n(123),l=n(152),c=n(134),u=n(126),d=Object(o.a)((a={},a[u.D]=function(e,t){
var n=i(e),a=Object(c.h)(e,t),o=Object(c.e)(e,t),s=t.providerEntityID,l=t.listKey,u=t.listTitle;if(s!==n.get("providerEntityID")||l!==n.get("listKey")){var d=new r.default({containerKey:l,containerTitle:u},{server:a,provider:o});n.restoreDefaults({providerEntityID:s,listKey:l,metadataList:d})}},a[s.a]=function(e,t,n){var a=t.metadataItemEntityID,r=t.containerKeyPattern;if(!a){var o=Object(c.h)(e,t),s=i(e),u=s.get("metadataList")
;u&&u.server===o&&(r&&!u.get("containerKey").match(r)||n(Object(l.h)({metadataListEntityID:u.entityID()})))}},a));t.a=d},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,a=n(6),r=n.n(a),o=n(1800),s=n(70),l=n(137),c=r()({},o.b,(i={},i[o.a]=function(e,t){var n=Object(s.k)(e,t),i=Object(s.i)(e,t),a=void 0;if(n.get("isTransient")){a="#!/transient/provider/"+encodeURIComponent(i.get("identifier"))+"/details?key="+encodeURIComponent(t.key)}else{var r={
machineIdentifier:n.get("machineIdentifier")},o={identifier:i.get("identifier"),isLibraryProvider:i.get("isLibraryProvider")};a=Object(l.a)(r,o,t.key)}/\/transient\//.test(window.location.hash)?window.location.replace(a):window.location.hash=a},i))},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var i,a=n(6),r=n.n(a),o=n(435),s=n(844),l=n(77),c=n(303),u=n(212),d=n(107),p=n(618),h=n(969),f=n(70),v=n(198),g=n(36),m=n(3),y=n(27),b=n(947),I=r()({},l.g,(i={},i[l.c]=function(e,t,n){
var i=Object(s.a)(e,t),a=Object(o.a)(i),I=t.playerType||d.c(a),S=Object(v.c)(e,I),M=Object(f.i)(e,t),D=Object(f.e)(e,t),C=e.get("experienceSettings");if(e.get("remotePlayer")&&!Object(h.a)(Object(p.a)(M.get("identifier"),M.get("providerIdentifier")),Object(b.a)(e.get("user").get("features").getState())))return void Object(g.a)(function(){S.set({hasError:!0,errorMessage:Object(m.default)("This content is not currently supported when connected to a remote player.")})});var j=void 0
;j=S.get("isOpen")?S.get("openState"):a===c.a?u.b:u.a;var P=!1;a===c.b&&t.metadataItemEntityID&&(P=D.get("type")===y.g),l.g[l.c](e,r()({extrasPrefixCount:C.get("extrasPrefixCount"),openState:j,isPaused:P},t),n)},i[l.b]=function(e,t,n){l.g[l.b](e,r()({openState:u.b},t),n)},i))},function(e,t,n){"use strict";function i(e){return e.get("ui").get("playlistPage")}
var a,r=n(13),o=n.n(r),s=n(18),l=n(94),c=n(809),u=n(125),d=n(124),p=n(1484),h=n(1485),f=n(123),v=n(703),g=n(70),m=n(36),y=n(3),b=n(27),I=n(191),S=n(338),M=n(134),D=n(126),C=n(399),j=Object(u.a)((a={},a[D.F]=function(e,t){var n=i(e),a=Object(M.h)(e,t),r=Object(g.i)(e,t),o=t.serverEntityID,s=t.providerEntityID,c=t.metadataKey;if(o!==n.get("serverEntityID")||s!==n.get("providerEntityID")||c!==n.get("metadataKey")){var u=new l.a({key:c,type:b.i},{server:a,provider:r});n.restoreDefaults({
serverEntityID:o,providerEntityID:s,metadataKey:c,playlist:u})}},a[D.E]=function(e,t){var n=i(e),a=Object(M.h)(e,t),r=Object(g.i)(e,t),o=n.get("playlist"),s=t.serverEntityID,l=t.metadataKey;if(s!==n.get("serverEntityID")||l!==n.get("metadataKey")||!n.get("playlistItemList")){var u=o.get("childrenKey"),d=new c.a({containerKey:u},{server:a,provider:r});n.set({playlistItemList:d})}},a[D.s]=Object(d.a)({key:"playlist",getModel:i}),a[D.P]=Object(p.a)({key:"playlistItemList",getModel:i}),
a[D.X]=Object(h.a)({key:"playlistItemList",getModel:i}),a[D._7]=function(e,t,n){var a=t.id,r=t.type,o=t.isRangeSelect,s=void 0!==o&&o,l=Object(M.d)(e,{playlistItemEntityID:a}),c=i(e),u=c.get("playlistItemList"),d=u.getCollection();l&&n(Object(C.q)({type:r,model:l,collection:d,isRangeSelect:s}))},a[D.j]=function(e,t,n){var i=Object(M.d)(e,{playlistItemEntityID:t.id});i&&n(Object(C.f)([i.id]))},a[D.I]=function(e,t){
var n=Object(M.d)(e,t),a=i(e),r=a.get("playlistItemList"),l=r.getCollection(),c=l.indexOf(n),u=t.moveIndex,d=u-1;if(c!==u&&c!==d){var p=u>c?u-1:u,h=s.join([r.get("containerKey"),n.get("playlistItemID"),"move"],d>=0&&"after="+l.at(d).id),f=n.provider,v=f.getXHROptions(h,{type:"PUT"});Object(m.a)(function(){l.remove(n),l.add(n,{at:p}),o.a.ajax(v).fail(function(){l.indexOf(n)===p&&(l.remove(n),l.add(n,{at:c}))})})}},a[D.V]=function(e,t,n){
var a=Object(M.d)(e,t),r=i(e),o=r.get("playlistItemList"),l=s.join([o.get("containerKey"),a.get("playlistItemID")]);a.destroy({url:l}).fail(function(){n(Object(f.d)(Object(y.default)("There was an unexpected error removing this item.")))})},a[D.W]=function(e,t,n){var a=i(e),r=a.get("playlistItemList"),l=r.get("containerKey"),c=r.getCollection(),u=e.get("ui").get("multiSelect"),d=u.get("activeSelectionItems").pluck("id"),p=o.a.Deferred().resolve().promise();d.forEach(function(e){
var t=c.get(e),n=s.join([l,e]);p=p.then(function(){return t.destroy({url:n,wait:!0})})}),p.fail(function(){n(Object(f.d)(Object(y.default)("There was an unexpected error removing an item.")))})},a[I.RATE_METADATA_ITEM]=function(e,t,n){var a=t.providerEntityID,r=t.rating,o=i(e),s=o.get("playlist");if(s){var l=o.get("playlistItemList");"favorites"===s.get("specialPlaylistType")&&a===o.get("providerEntityID")&&(r!==v.a&&r!==v.b||n(Object(S.i)({count:l.get("currentPageSize")})))}},a));t.a=j
},function(e,t,n){"use strict";var i,a=n(13),r=n.n(a),o=n(523),s=n(938),l=n(1429),c=n(125),u=n(124),d=n(116),p=n(71),h=n(126),f={isFullOwnedServer:!0,isPersonalCloudServer:!0},v=Object(c.a)((i={},i[h._10]=function(e,t,n){e.get("ui").get("provisionPersonalCloudServerPage").set("isPersonalCloudServerModalOpen",!!t.open)},i[h.U]=function(e,t,n){function i(){return l.populate().then(function(){return r.a.ajax(l.getXHROptions(c,{type:"POST"}))})}
var a=e.get("ui").get("provisionPersonalCloudServerPage");a.set("isProvisionPersonalCloudServerPending",!0);var l=e.get("cloudServer"),c=t.url,u=Object(s.a)(i,{times:10,delay:2e3,maxDuration:3e4});Object(o.a)(u,2e3).done(function(){a.set("isProvisionPersonalCloudServerPopulated",!0)}).fail(function(e){a.set("provisionPersonalCloudServerError",e)}).always(function(){a.set("isProvisionPersonalCloudServerPending",!1)})},i[h.g]=function(e,t,n){function i(){var t=e.get("servers").findWhere(f)
;return t?t.get("isResolved")||n(Object(d.q)({serverEntityID:t.entityID()})):n(Object(p.b)()),e.get("servers").populateServer(f)}var a=e.get("ui").get("provisionPersonalCloudServerPage");a.set("isConnectToPersonalCloudServerPending",!0);var r=Object(s.a)(i,{times:10,delay:2e3,maxDuration:3e4});Object(o.a)(r,2e3).done(function(){a.set("isConnectToPersonalCloudServerPopulated",!0)}).fail(function(){a.set("connectToPersonalCloudServerError",{})}).always(function(){
a.set("isConnectToPersonalCloudServerPending",!1)})},i[h.O]=function(e){var t=e.get("ui").get("provisionPersonalCloudServerPage");t.set("isPersonalCloudServerDriveCachePending",!0);var n=e.get("servers").findWhere(f),i=new l.a({},{server:n}),a=Object(s.a)(function(){return i.fetchAndNotUpdating()},{times:30,delay:2e3,maxDuration:6e4});Object(o.a)(a,2e3).done(function(){t.set("isPersonalCloudServerDriveCachePopulated",!0)}).fail(function(e){t.set("personalCloudServerDriveCacheError",e)
}).always(function(){t.set("isPersonalCloudServerDriveCachePending",!1)})},i[h.r]=Object(u.a)({key:"personalCloudServerStatus",getModel:function(e){return e.get("cloudServer").get("pmp")}}),i[h.y]=function(e,t){e.get("experienceSettings").save("isNotInterestedInPersonalCloud",!t.interested)},i));t.a=v},function(e,t,n){"use strict";function i(e){return e.get("ui").get("quickSearch")}function a(e){return e.map(function(e){return e.entityID()})}function r(e){return e.reduce(function(e,t){
var n=t.get("hubs").reduce(function(e,t){return e.concat(a(t.get("metadataResults")),a(t.get("tagResults")))},[]);return e.concat(n)},[])}var o,s=n(6),l=n.n(s),c=n(19),u=n(18),d=n(64),p=n(125),h=n(77),f=n(30),v=n(41),g=n(474),m=n(171),y=n(1086),b=n(134),I=n(150),S=n(1478),M=n(126),D=n(93),C=Object(p.a)((o={},o[M.G]=function(e,t,n){var a=i(e),r=a.get("searches"),o=t.providerEntityIDs,s=t.providerIdentifier;r.reset(o.reduce(function(t,n){var i=Object(b.e)(e,{providerEntityID:n
}),a=i.get("identifier"),r=i.get("isLibraryProvider"),o=i.get("features").get(d.b.SEARCH);(a===v.i||a===v.j||a===v.e||a===v.f||o&&(r||a===s))&&t[s===a?"unshift":"push"](new y.a({providerEntityID:n,serverEntityID:i.server.entityID(),key:o?o.get("key"):"/hubs/search"},{server:i.server,provider:i,includeCollections:!0}));return t},[])),a.get("query")&&n(D.fetchQuickSearch())},o[M._0]=function(e){var t=i(e),n=t.get("searches");t.set({query:"",selectedResultEntityID:null}),n.each(function(e){
e.restoreDefaults({providerEntityID:e.get("providerEntityID"),serverEntityID:e.get("serverEntityID"),key:e.get("key")})})},o[M.v]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a=n.get("searches"),r=t.query,o=void 0===r?n.get("query"):r,s=t.limit;a.each(function(t){var i=t.server;if(i.supports("quickSearch")&&i.get("isConnected")){t.abortPendingPopulate(),t.set("isSearchPending",!0);var a=t.get("providerEntityID");Object(b.e)(e,{providerEntityID:a}).populate({
merge:!0}).then(function(){return t.fetch({data:{sectionId:n.get("sectionID"),query:o,limit:s}})}).done(function(){t.set({isSearchPending:!1,isSearchPopulated:!0,searchError:null})}).fail(function(e){t.set({isSearchPending:!1,searchError:Object(m.a)(e)})})}})},o[M.b]=function(e,t,n){var a=i(e);""===t.trim()?n(D.resetQuickSearch()):(a.get("query").length>1&&t.length<2&&n(D.resetQuickSearch()),a.set("query",t))},o[M.c]=function(e,t){
var n=i(e),a=t.serverEntityID,r=void 0===a?n.get("serverEntityID"):a,o=t.providerEntityID,s=void 0===o?n.get("providerEntityID"):o,l=t.providerIdentifier,c=void 0===l?n.get("providerIdentifier"):l,u=t.sectionID,d=void 0===u?n.get("sectionID"):u,p=t.channelPlaceholder,h=void 0===p?n.get("channelPlaceholder"):p,f=t.channelID,v=void 0===f?n.get("channelID"):f,g=t.channelSearchKey,m=void 0===g?n.get("channelSearchKey"):g;n.set({serverEntityID:r,providerEntityID:s,providerIdentifier:c,sectionID:d,
channelPlaceholder:h,channelID:v,channelSearchKey:m})},o[M._8]=function(e,t){var n=i(e),a=t.searchResultEntityID,o=t.offset;if(a)return void n.set("selectedResultEntityID",a);var s=r(n.get("searches")),l=s.indexOf(n.get("selectedResultEntityID")),c=s.length-1,u=o>0?-1:c,d=l+o,p=d<-1||d>c,h=p?u:d,f=-1===h?null:s[h];n.set("selectedResultEntityID",f)},o[M.J]=function(e,t,n){
var a=i(e),r=t.serverEntityID,o=null!=t.searchResultEntityID?t.searchResultEntityID:a.get("selectedResultEntityID"),s=Object(b.f)(e,{searchResultEntityID:o});if(!s){var l=Object(b.h)(e,t),d=Object(b.e)(e,t),p=l.id,h=d.id,f=a.pick("query","channelID","channelSearchKey"),v=f.query,m=f.channelID,y=f.channelSearchKey;return null!=m&&null!=y?c.a.trigger("navigate","channel",{serverID:p,channelID:m,key:u.join(y,{query:v})}):l.get("isCloud")?c.a.trigger("navigate","providerSearch",{providerID:h,query:v
}):c.a.trigger("navigate","search",{serverID:p,query:v}),void n(D.resetQuickSearch({serverEntityID:r}))}var M=s.pick("tagItem","metadataItem"),C=M.tagItem,j=M.metadataItem;if(C){var P=g.a.get(C.get("tagType")),O=P.typeString,T=s.provider.get("isLibraryProvider")?s.get("reasonID"):C.get("librarySectionKey"),E=Object(I.a)(s.server.attributes,s.provider.attributes,T,{filters:C.has("filter")?C.get("filter"):O+"="+C.get("id"),filterLabel:C.get("tag"),context:s.metricsContext})
;return window.location.hash=E,void n(D.resetQuickSearch({serverEntityID:r}))}var w=Object(S.a)(s.server.attributes,s.provider.attributes,j.attributes,{context:s.metricsContext});if(!w)return void n(D.playQuickSearchResult({serverEntityID:r,searchResultEntityID:o}));window.location.hash=w,n(D.resetQuickSearch())},o[M.K]=function(e,t,n){var a=t.serverEntityID,r=t.options,o=i(e),s=null!=t.searchResultEntityID?t.searchResultEntityID:o.get("selectedResultEntityID"),c=Object(b.f)(e,{
searchResultEntityID:s});if(!c)return void n(D.navigateQuickSearchResult(t));var u=c.get("metadataItem");u&&(n(Object(h.m)({serverEntityID:c.server.entityID(),providerEntityID:c.provider.entityID(),metadataItemEntityID:u.entityID(),metricsPage:f.U,metricsContext:c.metricsContext,options:l()({containerKey:u.get("skipParent")?u.get("grandparentKey"):u.get("parentKey")},r)})),n(D.resetQuickSearch({serverEntityID:a})))},o));t.a=C},function(e,t,n){"use strict";function i(e){
return e.get("ui").get("searchPage")}var a,r=n(59),o=n.n(r),s=n(64),l=n(125),c=n(116),u=n(171),d=n(1086),p=n(134),h=n(126),f=Object(l.a)((a={},a[h.S]=function(e,t,n){t.forEach(function(e){n(Object(c.l)({serverEntityID:e}))})},a[h.w]=function(e,t,n){var a=i(e),r=a.get("searches"),l=t.availableProviders,c=t.query,h=t.limit;o()(l).forEach(function(t){var n=l[t],i=Object(p.h)(e,{serverEntityID:n.serverEntityID}),a=Object(p.e)(e,{providerEntityID:t}),o=a.get("features").get(s.b.SEARCH)
;o&&!r.get(t)&&r.add(new d.a({providerEntityID:t,key:o.get("key")},{server:i,provider:a,includeCollections:!0}))}),r.each(function(e){e.populatePromise||(e.set("isSearchPending",!0),e.fetch({data:{query:c,limit:h}}).done(function(){e.set({isSearchPending:!1,isSearchPopulated:!0,searchError:null})}).fail(function(t){e.set({isSearchPending:!1,searchError:Object(u.a)(t)})}))})},a[h.e]=function(e,t,n){var a=i(e);a.get("searches").each(function(e){e.abortPendingPopulate()}),a.restoreDefaults()},a))
;t.a=f},function(e,t,n){"use strict";function i(e){return e.get("ui").get("timelinePage")}function a(e,t){var n=i(e),a=Object(h.h)(e,t),r=Object(h.e)(e,t),o=n.get("momentList");o.fetch().done(function(){var e=o.get("key")||"empty",t=n.get("metadataList"),i=void 0;i=t&&t.server===a&&t.get("containerKey")===e?t:new l.default({containerKey:e},{server:a,provider:r}),n.set({isMomentListPending:!1,isMomentListPopulated:!0,momentListError:null,metadataList:i})}).fail(function(e,t){n.set({
isMomentListPending:!1,momentListError:t})})}var r,o=n(498),s=n(1808),l=n(121),c=n(125),u=n(124),d=n(249),p=n(123),h=n(134),f=n(126),v=Object(c.a)((r={},r[f.H]=function(e,t){var n=i(e),r=Object(h.h)(e,t),l=Object(h.e)(e,t),c=t.serverEntityID,u=t.providerEntityID,d=t.libraryKey,p=t.momentKey;if(c!==n.get("serverEntityID")||u!==n.get("providerEntityID")||p!==n.get("momentKey")){var f=new o.a({key:d},{server:r,provider:l}),v=new s.a({momentKey:p},{server:r,provider:l});n.restoreDefaults({
serverEntityID:c,providerEntityID:u,details:f,momentKey:p,momentList:v}),a(e,t)}},r[f.f]=function(e){i(e).set({momentKey:""})},r[f.x]=Object(u.a)({key:"details",getModel:i}),r[f.T]=Object(d.a)({key:"details",actionSuffix:"timelineDetails",getModel:i}),r[p.a]=function(e,t){var n=t.metadataItemEntityID,r=t.containerKeyPattern,o=Object(h.h)(e,t),s=Object(h.e)(e,t),l=i(e),c=l.get("metadataList"),u=l.get("momentKey");if(!n&&u&&c&&c.server===o&&c.provider===s){var d=c.get("containerKey")
;d&&(r&&!d.match(r)||a(e,t))}},r));t.a=v},function(e,t,n){"use strict";var i=n(1809),a=n(5091),r={getComponent:function(e){return e.isDirectPlay?i.a:a.a}};t.a=r},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),o=n.n(r),s=n(8),l=n.n(s),c=n(9),u=n.n(c),d=n(1),p=(n.n(d),n(0)),h=(n.n(p),n(367)),f=n(32),v=n(5089),g=n(982),m=n(987),y=n(5090),b=n(227),I=function(e){function t(n,i){o()(this,t);var a=l()(this,e.call(this,n,i));return a.onLoad=function(e){e&&a.setState({isStarted:!0})},
a.onEnd=function(){a.props.onEnd&&a.props.onEnd()},a.onBuffering=function(){Object(f.a)("[Player] Buffering detected by PMP"),!a.props.isMediaLoading&&a.props.onBufferingChange&&a.props.onBufferingChange(!0)},a.onPlaying=function(){a.props.onBufferingChange&&a.props.onBufferingChange(!1)},a.onError=function(e){f.a.warn("[Player] A critical PMP media error occurred: "+e+"; the player cannot recover"),a.props.onError&&a.props.onError()},a.onPositionChange=function(e){a._positionMilliseconds=e},
a.onPositionUpdate=function(){a.props.onPositionMillisecondsChange(a._positionMilliseconds)},a.onDurationUpdate=function(e){a.props.onDurationMillisecondsChange&&a.props.onDurationMillisecondsChange(e)},a._player=b.a.api.player,a._width=null,a._height=null,a._positionMilliseconds=0,a.state={isStarted:!1},a}return u()(t,e),t.prototype.componentDidMount=function(){this._player.finished.connect(this.onEnd),this._player.buffering.connect(this.onBuffering),
this._player.playing.connect(this.onPlaying),this._player.error.connect(this.onError),this._player.positionUpdate.connect(this.onPositionChange),this._player.updateDuration.connect(this.onDurationUpdate),this._positionMilliseconds=1e3*this.props.positionSeconds,this._setVolume(),this._setVideoRectangle(),this._player.load(this.props.src,{startMilliseconds:this._positionMilliseconds,autoplay:!this.props.paused},{frameRate:this.props.frameRate,type:this.props.mediaType===g.a?"music":"video",
headers:this.props.headers,media:this.props.isDecisionDirectPlay?this.props.mediaItem:null},this.props.audioStream?this.props.audioStream.index:"",this.props.subtitleStreamPath?this.props.subtitleStreamPath:"",this.onLoad)},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.isDecisionDirectPlay,i=t.width,a=t.height,r=t.lastSeekPositionSeconds,o=t.paused,s=t.volume,l=t.audioStream,c=t.subtitleStream,u=t.subtitleStreamPath,d=t.isStreamChangeInProgress,p=t.onStreamChange,h=t.onSeek,f=null!=r&&r!==e.lastSeekPositionSeconds,v=(!!e.audioStream&&e.audioStream.id)!==(!!l&&l.id),g=(!!e.subtitleStream&&e.subtitleStream.id)!==(!!c&&c.id),m=e.isStreamChangeInProgress&&!d;f&&(h?h(r):this._player.seekTo(1e3*r)),
e.paused!==o&&(o?this._player.pause():this._player.play()),e.width===i&&e.height===a||this._setVideoRectangle(),e.volume!==s&&this._setVolume(),n?(v&&this._player.setAudioStream(l?l.index:""),g&&this._player.setSubtitleStream(u||"")):p&&(v&&!d||g&&!d||m)&&p()},t.prototype.componentWillUnmount=function(){this._player.stop(),this._player.finished.disconnect(this.onEnd),this._player.buffering.disconnect(this.onBuffering),this._player.playing.disconnect(this.onPlaying),
this._player.error.disconnect(this.onError),this._player.positionUpdate.disconnect(this.onPositionChange),this._player.updateDuration.disconnect(this.onDurationUpdate)},t.prototype._setVolume=function(){var e=this.props.volume;if(e>=0){var t=Math.min(100,Math.max(0,e));this._player.setVolume(t)}},t.prototype._setVideoRectangle=function(){var e=this.props,t=e.height,n=e.width;if(e.placement===m.c){var i=Object(h.a)(),a=t===v.a?0:t,r=n===v.b?0:n;this._height=a*i,this._width=r*i,
this._player.setVideoRectangle(0,0,this._width,this._height)}},t.prototype.render=function(){return this.state.isStarted?a()(y.a,{onPositionUpdate:this.onPositionUpdate,onTick:this.props.onTick}):null},t}(p.Component);I.defaultProps={positionSeconds:0,placement:m.c,width:v.b,height:v.a},t.a=I},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i=-1,a=-1},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(1),u=(n.n(c),n(0)),d=(n.n(u),function(e){function t(){var n,i,r;a()(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=i=o()(this,e.call.apply(e,[this].concat(l))),i.onTick=function(){var e=Date.now()-i._initialMilliseconds;i.props.onTick&&i.props.onTick(Math.floor(e/1e3))},r=n,o()(i,r)}return l()(t,e),t.prototype.componentDidMount=function(){this._initialMilliseconds=Date.now(),
this._positionTimer=setInterval(this.props.onPositionUpdate,40),this._tickTimer=setInterval(this.onTick,1e3)},t.prototype.componentWillUnmount=function(){clearInterval(this._positionTimer),clearInterval(this._tickTimer)},t.prototype.render=function(){return null},t}(u.Component));t.a=d},function(e,t,n){"use strict";function i(e){return s.a.createElement(l.a,r()({},e,{mediaComponent:c.a}))}var a=n(6),r=n.n(a),o=n(0),s=n.n(o),l=n(5092),c=n(1809);t.a=i},function(e,t,n){"use strict";function i(){
return Object(y.createStructuredSelector)({currentDecision:Object(I.a)(),lastSeekPositionSeconds:Object(S.a)("lastSeekPositionSeconds")})}var a=n(6),r=n.n(a),o=n(12),s=n.n(o),l=n(7),c=n.n(l),u=n(8),d=n.n(u),p=n(9),h=n.n(p),f=n(1),v=(n.n(f),n(0)),g=n.n(v),m=n(11),y=n(4),b=(n.n(y),n(143)),I=n(240),S=n(153),M=n(5093),D=(n(5094),{dispatchTranscodeSeek:b.x}),C=function(e){function t(n,i){c()(this,t);var a=d()(this,e.call(this,n,i));return a.onSeek=function(e){a.props.dispatchTranscodeSeek({
playerType:a.props.playerType,positionSeconds:e})},a._memoizingCounter=Object(M.a)(),a}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.mediaComponent,n=(e.dispatchTranscodeSeek,e.currentDecision),i=s()(e,["mediaComponent","dispatchTranscodeSeek","currentDecision"]);return g.a.createElement(t,r()({},i,{key:this._memoizingCounter(n),onSeek:this.onSeek}))},t}(v.Component);t.a=Object(m.connect)(i,D)(C)},function(e,t,n){"use strict";function i(){var e=void 0,t=0;return function(n){
return n!==e&&(e=n,t+=1),t}}t.a=i},function(e,t,n){"use strict";var i=n(1),a=n.n(i),r=n(107);a.a.oneOf([r.a,r.b]).isRequired},function(e,t,n){"use strict";function i(){var e=o.a.prop("music"),t=e.protocols;return{type:l.a.types.MUSIC,profile:e,allowDirectPlay:!0,hasNativeHLS:!!t.hls,hasDASH:!!t.dash,hasStreamingMKV:!!t.http,transcoder:h.a,transcodeProtocol:e.transcodeProtocol,transcoderOptions:{directStreamAudio:1},profileExtra:null}}function a(e,t,n){var i=o.a.prop("video"),a=i.protocols,r={
subtitlesBurnLevel:s.a.NEVER,hasNativeHLS:!!a.hls,hasDASH:!!a.dash,hasStreamingMKV:!!a.http,transcoder:h.a,transcodeProtocol:i.transcodeProtocol,profileExtra:"append-transcode-target-codec(type=videoProfile&context=streaming&protocol=http&videoCodec=*&audioCodec=*)"},l=n||e.get("Media")[0];l&&"livetv"===l.origin&&(r.allowDirectPlay=!1);var c={subtitleSize:p.a.get("subtitleSize")};return Object(d.a)(e,t,r,c,n)}function r(e,t,n){var r=u.r(e.get("type"));return r&&r.mediaType===c.a?i():a(e,t,n)}
var o=n(562),s=n(302),l=n(309),c=n(63),u=n(27),d=n(5096),p=n(5099),h=n(5102);t.a=r},function(e,t,n){"use strict";function i(e,t){var n=e.server.get("isPrivateConnection");if(Object(p.a)(e,n)&&t.get("useHomeStreamingRecommendedSettings")){var i=t.defaults().localQuality;return h.a.getQualityByIndex(i)}var a=Object(u.a)(e,n),r=t.get(a);return h.a.getQualityByIndex(r)}function a(e,t,n){
var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments[4],p=Object(l.c)("appModel"),v=p.get("experienceSettings"),g=p.get("settings"),m=c.a.prop("video"),y=r(p,e),b=Object(d.a)({profile:m,metadataItem:e,qualityIndex:t,mediaItem:u,canPlayAdaptiveBitrate:y,settings:v
}),I=b.qualityIndex,S=I===h.a.CONVERT_AUTOMATICALLY&&y,M=g.get("directPlay")&&!S,D=g.get("directStream")&&!S?1:0,C=y&&p.get("experienceSettings").get("autoAdjustQuality")&&e.server.supports("adaptiveBitrateFallback")&&!h.a.isExplicitQuality(I),j=b.quality;S&&(j=i(e,v));var P=void 0;return I!==h.a.ORIGINAL&&(P=a(e,h.a.ORIGINAL,n,o,u)),s()({type:f.a.types.VIDEO,profile:m,allowDirectPlay:M,allowDirectStreamVideoWithSoftSubtitles:!0,subtitlesBurnLevel:v.get("subtitlesBurnLevel"),
availableQualities:b.availableQualities,qualityIndex:I,quality:j,transcoderOptions:s()({addDebugOverlay:v.get("debugVideoQualityOverlay")?1:0,autoAdjustQuality:C||S?1:0,directStream:D,directStreamAudio:D,audioBoost:g.get("audioBoost")},o),originalQualityDecisionOptions:P},n)}function r(e,t){return!(!Object(v.a)()||!t.server.get("hasAdaptiveBitrate")||e.get("remotePlayer"))}var o=n(6),s=n.n(o),l=n(16),c=n(562),u=n(820),d=n(5097),p=n(821),h=n(146),f=n(309),v=n(1037);t.a=a},function(e,t,n){
"use strict";function i(e){var t=e.profile,n=e.metadataItem,i=e.mediaItem,o=e.canPlayAdaptiveBitrate,s=e.settings,l=e.qualityIndex,c=i?[i]:n.get("Media"),u=a.a.getAvailableQualitiesFor(c,n.server,{lowestQualityIndex:t.lowestQualityIndex,highestQualityIndex:t.highestQualityIndex});return null==l?l=Object(r.a)({mediaItems:c,transcodeServer:n.server,metadataItem:n,canPlayAdaptiveBitrate:o,settings:s,availableQualities:u}):a.a.isExplicitQuality(l)&&!u.find(function(e){return e.index===l
})&&(l=a.a.ORIGINAL),{availableQualities:u,quality:a.a.getQualityByIndex(l),qualityIndex:l}}t.a=i;var a=n(146),r=n(5098)},function(e,t,n){"use strict";function i(e){var t=e.mediaItems,n=e.transcodeServer,i=e.metadataItem,s=e.canPlayAdaptiveBitrate,l=e.settings,p=e.availableQualities,h=o(t),f=n.get("maxUploadBitrate"),v=n.get("isPrivateConnection"),g=s&&l.get("autoAdjustQuality"),m=l.localQualityDefault;void 0===m&&(m=d.a.ORIGINAL)
;var y=Object(u.a)(i,v),b=Object(c.a)(i,v),I=d.a.getQualityByIndex(l.get(b));if(y){var S=l.get("useHomeStreamingRecommendedSettings")?m:I.index,M=d.a.getQualityByIndex(S),D=d.a.isExplicitQuality(M.index)&&r(M.bitrate,h);return M.index===d.a.ORIGINAL||D?d.a.ORIGINAL:g?d.a.CONVERT_AUTOMATICALLY:a(M,p)}var C=r(f,h),j=I.index===d.a.ORIGINAL,P=r(I.bitrate,h);return l.get("remoteSmallVideoAtOriginalQuality")&&C&&(j||P)?d.a.ORIGINAL:g?d.a.CONVERT_AUTOMATICALLY:j&&C?d.a.ORIGINAL:a(I,p)}function a(e,t){
return 0===t.length?d.a.ORIGINAL:t.find(function(t){return t.index===e.index})?e.index:l.a.last(t).index}function r(e,t){return!e||!!t&&e>=t}function o(e){return Math.max.apply(Math,e.map(function(e){return e.bitrate}))}t.a=i;var s=n(10),l=n.n(s),c=n(820),u=n(821),d=n(146)},function(e,t,n){"use strict";var i=n(767),a=n(711),r=n(302),o=n(146),s=n(368),l=n(5100),c=Object(s.j)()&&l.a.isUHDModel(),u=i.a.extend({storageKey:"video",defaults:{directPlay:!0,directStream:!0,subtitleSize:a.a.NORMAL,
subtitlesBurnLevel:r.a.ALWAYS,h264Level:40,localQuality:o.a.ORIGINAL,channelQuality:o.a.ORIGINAL,remoteQuality:8,allowHDR:c,allowDisplayModeSwitching:Object(s.j)()}});t.a=new u},function(e,t,n){"use strict";var i=n(5101),a={XBOX_ONE_DU:"Xbox One",XBOX_ONE_ED:"Xbox One S",XBOX_ONE_SC:"Xbox One X"},r=void 0;try{r=Windows.Security.ExchangeActiveSyncProvisioning}catch(e){Object(i.a)("winvergoPlatformInfo",e)}var o={getPackageVersion:function(){try{
var e=window.Windows.ApplicationModel.Package.current,t=e.id.version;return t.major+"."+t.minor+"."+t.build+"."+t.revision}catch(e){return Object(i.a)("winvergoPlatformInfo#getPackageVersion",e),"Unknown"}},getDeviceModel:function(){if(!r)return"Xbox One";try{var e=new r.EasClientDeviceInformation;return a[e.systemSku]||"Xbox One"}catch(e){return Object(i.a)("winvergoPlatformInfo#getDeviceModel",e),"Xbox One"}},getDeviceName:function(){if(!r)return"Xbox One";try{
return(new r.EasClientDeviceInformation).friendlyName||"Xbox One"}catch(e){return Object(i.a)("winvergoPlatformInfo#getDeviceName",e),"Xbox One"}},isUHDModel:function(){return"Xbox One"!==this.getDeviceModel()}};t.a=o},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.a.warn('[Winvergo] Cannot %s(), name="%s" code="%s" message="%s"',e,t.name,t.code,t.message)}var a=n(32);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(1188),o=n(5103),s=a()({},r.a,{serializeParams:function(e,t){var n=t.isVersionOrNewer(o.a.minVersion),i=n&&o.a.params?a()({},e,o.a.params):e;return r.a.serializeParams.call(this,i,t)}});t.a=s},function(e,t,n){"use strict";var i=n(368),a=Object(i.e)()?"Opera TV App":"HTML TV App",r=void 0;Object(i.g)()?a="PlayStation 4 App":Object(i.i)()?(a="Samsung Tizen",r="1.3.2.0"):Object(i.b)()?a="Konvergo":Object(i.j)()&&(a="Xbox One");var o={params:{"X-Plex-Client-Profile-Name":a}}
;r&&(o.minVersion=r),t.a=o},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(354),o=n(562),s=n(1189),l=n(209),c=n(621),u=n(5105),d=n(1811),p=n(5115),h=n(5116),f=n(5117),v=n(5122),g={registerAll:function(){var e=a.a.when(Object(v.a)(),Object(f.a)()).done(function(e,t){r.a.register(e),o.a.register(t)});return l.a.register(new p.a),c.a.register(new s.a),d.a.register(h.a),u.a.registerAll(),e}};t.a=g},function(e,t,n){"use strict";var i=n(5106),a=n(1144),r=n(609),o=n(5111),s={
registerAll:function(){r.a.register(new o.a),a.a.register(i.a)}};t.a=s},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(1087),o=n.n(r),s=n(231),l=n(5110),c=a()({},l.a,{init:function(e){var t=new RegExp(Object(s.a)("-plex-3.83.2-ecd072f"));o.a.config(e,{shouldSendCallback:function(e){return t.test(e.culprit)&&!1===/songId/.test(e.message)}})}});t.a=c},,,,function(e,t,n){"use strict";var i=n(1087),a=n.n(i);a.a.debug=!1;var r={},o={},s={userTitle:"username",userID:"id"},l=!1,c={
init:function(e){a.a.config(e)},enable:function(){l||(l=!0,a.a.install())},disable:function(){l&&(l=!1,a.a.uninstall())},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e){var n=e[t];"release"===t?a.a.setRelease(n):s[t]?(o[s[t]]=n,a.a.setUserContext(o)):(r[t]=n,a.a.setTagsContext(r))}},capture:function(e,t){a.a.captureException(e,t)}};t.a=c},function(e,t,n){"use strict";var i=n(78),a=n(18),r=n(16),o=n(5112),s=i.a.extend({mixins:o.a,
constructor:function(){this.basePath=Object(a.join)(["","translations"]),this.translations={},Object(r.d)("appModel").done(this.onAppModelRegistered.bind(this))},onAppModelRegistered:function(e){var t=this,n=e.get("settings");n&&n.on("change:language",function(e,n){t.load(n)})}});t.a=s},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(19),l=n(18),c=n(5113),u=n(5114),d={languages:u.a,loadingPromise:null,loadingLanguage:null,getLanguages:function(){return this.languages},
getTranslation:function(e){if(this.translations[this.language])return this.translations[this.language][e]},t:Object(c.a)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.getTranslation.apply(this,[e].concat(n))}),load:function(e){if(this.loadingLanguage&&this.loadingLanguage===e)return this.loadingPromise;var t,n=this.getLanguages();return t=o.a.has(n,e)?o.a.has(this.translations,e)?a.a.Deferred().resolve().promise():a.a.ajax({dataType:"json",
url:Object(l.join)([this.basePath,n[e]])}):a.a.Deferred().reject().promise(),this.loadingLanguage=e,this.loadingPromise=t,t.done(o.a.bind(this.onLoadSuccess,this,t)),t.fail(o.a.bind(this.onLoadError,this,t)),t},onLoadSuccess:function(e,t){var n=this.loadingLanguage;e===this.loadingPromise&&(this.loadingPromise=null,this.loadingLanguage=null,this.language=n,t&&(this.translations[n]=t),s.a.trigger("change:language",n))},onLoadError:function(e){e===this.loadingPromise&&(this.loadingPromise=null,
this.loadingLanguage=null)}};t.a=d},function(e,t,n){"use strict";function i(e,t){return e.replace(/\{([a-z0-9]+?)\}/gi,function(e,n){return t.hasOwnProperty(n)?t[n]:e})}function a(e){for(var t=void 0,n=1,i=arguments.length<=1?0:arguments.length-1;n<=i;)t=d[n],t||(t=new RegExp(Object(u.a)("{"+n+"}"),"g"),d[n]=t),e=e.replace(t,arguments.length<=n-1+1?void 0:arguments[n-1+1]),n++;return e}function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
;return c.a.isObject(n[0])?i(e,n[0]):c.a.isObject(n[n.length-1])?(n.pop(),a.apply(void 0,[e].concat(n))):a.apply(void 0,[e].concat(n))}function o(e){var t;if(!e)return"";var n=(t=(arguments.length<=1?0:arguments.length-1)-1+1,arguments.length<=t?void 0:arguments[t]);return c.a.isObject(n)&&n&&n.escape?c.a.escape(e):e}function s(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=o.apply(void 0,[e.call(this,t)||t,t].concat(i))
;return r.apply(void 0,[s].concat(i))}}var l=n(10),c=n.n(l),u=n(231),d={};t.a=s},function(e,t,n){"use strict";var i={en:"en.json","en-GB":"en-GB.json",af:"af.json",my:"my.json",ca:"ca.json",cs:"cs.json",sr:"sr.json",da:"da.json",de:"de.json",et:"et.json",es:"es.json","es-419":"es-419.json",el:"el.json",fr:"fr.json","fr-CA":"fr-CA.json",hr:"hr.json",is:"is.json",it:"it.json",lt:"lt.json",hu:"hu.json",nl:"nl.json",no:"no.json",pl:"pl.json",pt:"pt.json","pt-BR":"pt-BR.json",ru:"ru.json",
ro:"ro.json",sk:"sk.json",sl:"sl.json",fi:"fi.json",sv:"sv.json",vi:"vi.json",tr:"tr.json",uk:"uk.json",bg:"bg.json",zh:"zh.json","zh-TW":"zh-TW.json",ja:"ja.json",ko:"ko.json",th:"th.json",fa:"fa.json",ar:"ar.json",he:"he.json"};t.a=i},function(e,t,n){"use strict";function i(e){var t=e?e.split("."):[];return{sectionID:t[0],property:t[1]}}function a(e){var t=void 0;if(u.a.isPlainObject(e))t=e;else try{t=JSON.parse(e)}catch(e){}finally{t=u.a.isPlainObject(t)?t:null}return t}
var r=n(179),o=n.n(r),s=n(7),l=n.n(s),c=n(13),u=n.n(c),d=n(32),p=n(227),h=function(){function e(t){l()(this,e),this.name="PMPStorage",this.excludeDefaults=!1,this._channel=p.a}return e.prototype.get=function(e){var t=u.a.Deferred();return this._channel.api.settings.allValues(e,function(e){null==e?t.reject():"string"==typeof e?t.resolve(e):t.resolve(o()(e))}),t.promise()},e.prototype.set=function(e,t){var n=this._channel.api.settings,r=a(t),o=i(e),s=o.sectionID,l=o.property,c=u.a.Deferred()
;return s?null==t?(d.a.warn("Unable to set null or undefined value for "+e+" in "+this.name+". Use the remove function."),c.reject()):l?n.setValue(s,l,r||t,c.resolve):n.setValues({key:s,value:r||String(t)},c.resolve):(d.a.warn("Unable to set value in "+this.name+" without a key"),c.reject()),c.promise()},e.prototype.remove=function(e){var t=u.a.Deferred();return this._channel.api.settings.removeValue(e,t.resolve),t.promise()},e.prototype.clear=function(){var e=u.a.Deferred()
;return this._channel.api.settings.resetToDefaultAll(e.resolve),e.promise()},e}();t.a=h},function(e,t,n){"use strict";function i(e){a.a.api.input.hostInput.connect(function(t){var n=e(t),i=!0;if(n)for(var r=0,o=void 0;i&&(o=n[r++]);)(o.keys&&o.isPropagationStopped()||(o.key||o.keyIdentifier)&&o.defaultPrevented)&&(i=!1);i&&a.a.api.input.executeActions(t)})}t.a=i;var a=n(227)},function(e,t,n){"use strict";function i(){var e=Object(r.a)()?Object(l.a)():Object(c.a)()
;return Object(a.a)(e,Object(s.a)(),Object(o.a)()).then(function(e,t,n){return{capabilities:{embed:!1,redirect:!1},video:e,music:t,photo:n}})}t.a=i;var a=n(266),r=n(1197),o=n(5118),s=n(5119),l=n(5120),c=n(1813)},function(e,t,n){"use strict";function i(){var e=r.a.Deferred();return e.resolve({name:"tvPhotoPlayerProfile",directPlay:{generic:{maxWidth:1920,maxHeight:1920,photo:{maxSize:3e6}},bmp:{},gif:{},jpeg:{},png:{}}}),e.promise()}t.a=i;var a=n(13),r=n.n(a)},function(e,t,n){"use strict"
;function i(){var e=r.a.Deferred();return e.resolve({transcodeProtocol:"http",directPlay:{mp4:{},mp3:{},ogg:{},wav:{},flac:{},dts:{},ac3:{},aac:{},aiff:{},asf:{}},protocols:{http:{},hls:{}}}),e.promise()}t.a=i;var a=n(13),r=n.n(a)},function(e,t,n){"use strict";function i(e){var t=o.a.Deferred();return l.a.api.player.checkCodecSupport?(l.a.api.player.checkCodecSupport(e,function(n){n?t.resolve(e):t.reject()}),t.promise()):t.reject().promise()}function a(){
return Object(s.a)(Object(u.a)(),i("vc1"),i("mpeg2video")).then(function(e,t,n){var i={maxBitrate:4e4,maxBitDepth:8,maxWidth:1920,maxHeight:1080,maxFrameRate:60,codecs:{h264:{},mpeg4:{}}};return t&&(i.codecs.vc1={}),n&&(i.codecs.mpeg2video={}),o.a.extend(!0,{},e,{recommendedLevel:c.a.LEVEL_42,directPlay:{generic:{video:i}},directStream:{video:i}})})}t.a=a;var r=n(13),o=n.n(r),s=(n(32),n(266)),l=n(227),c=n(1812),u=n(1813)},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.ORIGINAL;return{indices:{highestQualityIndex:e,lowestQualityIndex:3},maxBitrate:a.a.getQualityByIndex(e).bitrate}}t.a=i;var a=n(146)},function(e,t,n){"use strict";function i(e,t){function n(e){var n="X-Plex-Client-Capabilities";e?t[n]=e:delete t[n]}e.system.getCapabilitiesString(n),e.system.capabilitiesChanged.connect(n)}function a(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a;return o.a.when(Object(c.a)(),t.connect()).then(function(t,n){var a=o.a.Deferred(),r=window.innerWidth+"x"+window.innerHeight,s=window.screen.width+"x"+window.screen.height;return i(n,t),n.remote.resourceInfo(function(n){t["X-Plex-Product"]=n.product,t["X-Plex-Platform"]="Konvergo",t["X-Plex-Platform-Version"]=n.version,t["X-Plex-Device"]=e.platform,
t["X-Plex-Device-Name"]=n.title,t["X-Plex-Model"]=e.platformVersion,t["X-Plex-Device-Screen-Resolution"]=r+","+s,a.resolve(t)}),a.promise()})}t.a=a;var r=n(13),o=n.n(r),s=n(50),l=n(227),c=n(5123)},function(e,t,n){"use strict";function i(){var e=Object(o.c)("appModel"),t={"X-Plex-Client-Identifier":e.get("clientID"),"X-Plex-Device-Screen-Resolution":window.screen.width+"x"+window.screen.height,"X-Plex-Version":"3.83.2"};return e.on("change:clientID",function(e,n){t["X-Plex-Client-Identifier"]=n
}),r.a.Deferred().resolve(t).promise()}t.a=i;var a=n(13),r=n.n(a),o=n(16)},function(e,t,n){"use strict";var i=n(227),a={toggle:function(e){i.a.api.power.setScreensaverEnabled(e)}};t.a=a},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(8),o=n.n(r),s=n(9),l=n.n(s),c=n(16),u=n(1459),d=n(5126),p=function(e){function t(){a()(this,t);var n=o()(this,e.call(this));n.onEnded=function(e){n.playOnEnded&&(n.playOnEnded=!1,e.target.currentTime=0,e.target.play())},n.fileNamesBySound={enter:"Click",
back:"Back","move:left":"Cursor","move:right":"Cursor","move:up":"Cursor","move:down":"Cursor"};var i=Object(c.c)("appModel").get("settings");return i.get("webserverport")?n._setSounds():i.once("change:webserverport",n._setSounds.bind(n)),n}return l()(t,e),t.prototype._play=function(e){var t=this.sounds[e];if(t&&this._volume){var n=t.currentTime;if(this.playOnEnded=n&&n<t.duration,!this.playOnEnded){t.ended||t.pause(),n>0&&(t.currentTime=0);var i=t.play();i&&i.then&&i.then(null,function(){})}}},
t.prototype.applyVolume=function(e,t){var n=this;if(this._volumeInterval&&(this._volumeInterval=clearInterval(this._volumeInterval)),e!==this._volume)if(e=Math.min(Math.max(0,e),100),t>0){var i=Date.now(),a=this._volume,r=e?e-a:-a,o=a+r,s=i+t;this._volumeInterval=setInterval(function(){var e=Date.now(),l=void 0;e>=s?(n._volumeInterval=clearInterval(n._volumeInterval),l=o):l=Object(u.a)(e-i,a,r,t),n._setVolume(l)},t/100)}else this._setVolume(e)},t.prototype._setVolume=function(e){
var t=this.sounds;for(var n in t)t[n].volume=e/100;this._volume=e},t.prototype._setSounds=function(){var e=this;this.sounds||function(){var t=Object(c.c)("appModel").get("settings"),n=t.get("webserverport"),i=e.fileNamesBySound,a={};for(var r in i)!function(e){var t=i[e],r=new window.Audio("http://127.0.0.1:"+n+"/sounds/"+t+".wav");r.addEventListener("canplaythrough",function t(n){r.removeEventListener(n.type,t),r.addEventListener("ended",this.onEnded),a[e]=r})}(r);e.sounds=a}()},
t.prototype._hasSound=function(e){return!(!this.sounds||!this.sounds[e])},t}(d.a);t.a=p},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(16),o=n(1509),s={enter:"enter",back:"back",left:"move:left",right:"move:right",up:"move:up",down:"move:down"},l=function(){function e(t){var n=this;a()(this,e),this.isVolumeReduced=!1,this.reducedVolume=0,this.dwellTime=750,this.hammerTime=200,this.intervals=[],this.intervalsToCollect=15,this.onChangeSounds=function(){n.reconfigure()},
Object(r.c)("appModel").get("settings").on("change:sounds",this.onChangeSounds),this.reconfigure()}return e.prototype.reconfigure=function(){this.disable(),Object(r.c)("appModel").get("settings").get("sounds")&&this.enable()},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.playSoundForKey=function(e){var t=s[e];t&&this.playSound(t)},e.prototype.playSound=function(e){if(this.enabled&&this._hasSound(e)){
var t=Date.now(),n=this.lastSound===e,i=!!n&&t-this.lastPlayAt>=this.dwellTime;if(!n||i)this._startTracking(e,t);else if(!this.isVolumeReduced){var a=this.intervals;if(a.push(t-this.lastPlayAt),a.length>this.intervalsToCollect){a.shift();var r=a.reduce(function(e,t){return e+t},0);r/a.length<this.hammerTime&&(this.isVolumeReduced=!0,this.applyVolume(this.reducedVolume,1e3))}}this.lastPlayAt=t,this._play(e)}},e.prototype._startTracking=function(e,t){var n=Object(o.a)(Object(r.c)("appModel"))
;this.intervals.length=0,this.lastSound=e,this.firstPlayAt=t,this.lastPlayAt=t,this.isVolumeReduced=!1,this.applyVolume(Math.round(.9*n))},e.prototype.applyVolume=function(e){},e.prototype._play=function(e){},e.prototype._hasSound=function(e){},e}();t.a=l},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(10),o=n.n(r),s=n(32),l=n(18),c=n(354),u=n(62),d=n(1801),p=n(227),h={commandID:0,publish:function(e){var t=d.a.writeXml(e);p.a.api.remote.timelineUpdate(this.commandID,t)},
subscribe:function(e){var t=o.a.bind(function(e){var t=e.controllerResponse,n=parseInt(t.commandID,10);this.commandID<n&&(this.commandID=n),e=o.a.extend(t,{headers:o.a.clone(c.a.getInstance())}),p.a.api.remote.commandResponse(e)},this);p.a.api.remote.commandReceived.connect(function(n){e(n).always(t)})},unsubscribe:function(){},registerPlayer:function(e,t){function n(e){var t=a.a.Deferred();return p.a.api.system[e](function(){t.resolve(arguments[0])}),t.promise()}var i=a.a.Deferred()
;return p.a.connect().done(function(){var r=n("networkAddresses"),s=n("networkPort");a.a.when(r,s).done(function(n,r){var s=n.map(function(e){return"http://"+e+":"+r}),c=l.join([o.a.result(e,"url"),"devices/",t],{"Connection[][uri]":s,_method:"PUT"}),d=e.getXHROptions(c,{headers:{"X-Plex-Provides":u.a.get("allowCloudPubSub")?"client,player,pubsub-player":"client,player"}});d.method="POST";var p=a.a.ajax(d);p.done(i.resolve),p.fail(i.reject)})}),i.promise()},unregisterPlayer:function(){
return s.a.warn("[Companion] Unregistering is not supported on this device."),a.a.Deferred().resolve().promise()},debugStatus:function(){return"Connected to host"},getDeepLink:function(){return a.a.Deferred().resolve().promise()}};t.a=h},function(e,t,n){"use strict";var i=n(368),a=n(5129),r=n(5131),o=Object(i.d)()?r.a:a.a;t.a=o},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(1814),o=a.a.extend(!0,{},r.a,{background:{imageWidth:1920,imageHeight:1080,useLargePresets:!0},scroller:{
isScrollingTimeout:0},itemFocusAndDependantUpdateDelay:250,allowImagesInModals:!0,allowProgressBarTransition:!0,allowEnterOrLeaveTransition:!0,allowImageBackgroundCrossfadeTransition:!0,allowImageBackgroundStyleDimInPlayer:!0,allowOnFocusTransitions:!0,allowScaleOnFocus:!0,allowBoxShadow:!0,allowPostersDuringScroll:!0});t.a=o},function(e,t,n){"use strict";var i={taskThrottle:{wait:100,batchSize:1},rendering:{delayBeforeFilling:250,pagesAhead:.25,pagesAheadLandscape:.25,pagesBehind:.25,
pagesBehindLandscape:.25},background:{imageWidth:1280,imageHeight:720,useLargePresets:!1},scroller:{isScrollingTimeout:250},itemFocusAndDependantUpdateDelay:500,hubLimit:4,newsHubLimit:3,hubItemLimit:7,imageLoaderBudget:5,seekThumbnailCount:3,allowPostersDuringScroll:!1,allowHubPostersOffscreen:!1,allowBoxShadow:!1,allowScaleOnFocus:!1,allowOnFocusTransitions:!1,allowImageBackground:!1,allowImageBackgroundBehindPhotoPlayer:!1,allowImageBackgroundCrossfadeTransition:!1,
allowEnterOrLeaveTransition:!1,allowGravatarImageBackground:!1,allowLoadingTransition:!1,allowNavigationTransition:!1,allowScreenSaverTransition:!1,allowThemeMusic:!0,allowProgressBarTransition:!1,allowImagesInModals:!1,allowSpringLoadedButtons:!0};t.a=i},function(e,t,n){"use strict";var i=n(13),a=n.n(i),r=n(1814),o=a.a.extend(!0,{},r.a);t.a=o},function(e,t,n){"use strict";var i=n(1802),a={video:i.c,music:i.a,photo:i.b};t.a=a},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(227),o=n(5134),s=a()({},o.a,{setStreamDelay:function(e,t){var n="audio"===e?"setAudioDelay":"setSubtitleDelay";r.a.api.player[n](t)}});t.a=s},function(e,t,n){"use strict";var i={setStreamDelay:function(e,t){},restoreDisplayState:function(){}};t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(5136),o=n(5137),s={get:function(){return r.a.populate().then(function(){var e=r.a.prop("groups"),t=e.find(function(e){return"subtitles"===e.key})
;return t.settings.map(function(e){return a()({},e,{sectionKey:t.key,title:t.title+": "+e.title,value:o.a.get(e.key)})})})},set:function(e,t){o.a.save(e,t)}};t.a=s},function(e,t,n){"use strict";var i=n(299),a=new i.a({interface:["populate"],props:["groups","models"]});t.a=a},function(e,t,n){"use strict";var i=n(767),a=i.a.extend({storageKey:"subtitles"});t.a=new a},function(e,t,n){"use strict";function i(){return new l.a,
c.a.api.system.hello?c.a.api.system.hello(s.a.prop("X-Plex-Version")):o.a.warn("[Channel] api.system.hello is unavailable"),r.a.Deferred().resolve().promise()}t.a=i;var a=n(13),r=n.n(a),o=n(32),s=n(354),l=n(5139),c=n(227)},function(e,t,n){"use strict";var i=n(78),a=n(16),r=n(227),o=i.a.extend({initialize:function(){Object(a.c)("appModel").get("user").on({"change:signedIn":this.onSignedInChange})},onSignedInChange:function(e,t){
t&&r.a.api.system.userInformation&&r.a.api.system.userInformation(e.toJSON())}});t.a=o},function(e,t,n){"use strict";function i(){function e(e){for(var t=0,n=e.length;t<n;t++){var a=e[t],r=i[a];r&&r()}}var t=Object(a.c)("keyboardShortcuts"),n=r.a.getInstance(),i={};t.shortcuts.forEach(function(e){for(var n=e.keys,a=0,r=n.length;a<r;a++)i[n[a]]=t[e.fn].bind(t)}),n(e)}t.a=i;var a=n(16),r=n(1811)},function(e,t,n){"use strict";function i(){return a.a.connect()}t.a=i;var a=n(227)
},function(e,t){}],[1864]);