!function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){var d,e;d=[c(2),c(3),c(5),c(4),c(6)],e=function(a,b,c,d){var e=function(a,e,f){function g(){setTimeout(function(){y("setup",{})},0),"hide"!==e.oncomplete&&e.oncomplete!==!1&&a.getConfig().repeat!==!0&&a.on("playlistComplete",k),"autoplay"===e.oncomplete&&(e.onclick="play",N=new c(e),N.on("autoplayTrigger",w),N.on("countdownUpdate",u)),K=B.isString(e.heading)?e.heading:W,h(),z.addClass(f,"jw-plugin-related"),P.resize(a.getWidth(),a.getHeight())}function h(){D=z.createElement(''),f.appendChild(D);var a=z.createElement(Y);F=a.getElementsByClassName("jw-related-grid")[0];for(var c=0;12>c;c++){var d=new b(e);d.on("activate",w),Q.push(d),F.appendChild(d.el)}D.appendChild(a);var g=z.createElement(X),h=g.getElementsByClassName("jw-related-close-icon")[0];E=g.getElementsByClassName("jw-related-heading-text")[0],new A(h).on("click tap",l),D.appendChild(g)}function i(b){l(b);var c=a.getPlaylistItem();C=j(e.file,c.mediaid),q(),I=K}function j(a,b){return a&&a.indexOf("MEDIAID")>0&&b?a.replace("MEDIAID",b):a&&-1===a.indexOf("MEDIAID")?a:null}function k(b){T||U||!R.length||(O=a.getState(),"playing"===O&&a.pause(),U=!0,J=b?"click"===b.type||"tap"===b.type?"interaction":"complete":"api",u(K),p(),N&&"complete"===J&&N.startAutoplay(Q[0],R[0]),v(J))}function l(b){if(U){var c="play";b?"click"!==b.type&&"tap"!==b.type||(c="interaction"):c="api","paused"===a.getState()&&"playing"===O&&a.play({reason:"related-interaction"}),N&&N.clearAutoplay(),U=!1,v(c)}}function m(b){b===C?z.log("RELATED: Failed to load "+b):z.log("RELATED: "+b),x(null),a.removeButton("related"),u("No related videos found")}function n(){C?(u(""),z.ajax(C,o,m)):m("No related videos file found")}function o(b){var c;if(b.responseText!==G){if("["===b.responseText.trim().substring(0,1))try{c=JSON.parse(b.responseText)}catch(d){}else try{c=z.rssparser.parse(b.responseXML.firstChild)}catch(d){}if(!B.isArray(c))return void m("This feed is not valid XML, JSON, and/or RSS feed.");G=b.responseText,R=B.filter(c,function(a){var b=B.isArray(a.sources)&&a.sources[0]?a.sources[0]:{};return a.image&&a.title&&("play"===e.onclick&&(b.file||a.file)||"play"!==e.onclick&&a.link)?!0:void 0}),R.length||m("Related feed entries do not contain the necessary data.")}R.length&&(a.addButton(void 0,I,k,"related",V),x(c),p(),u(K),N&&"complete"===J&&N.startAutoplay(Q[0],R[0])),P.resize(a.getWidth(),a.getHeight())}function p(a,b){var c=L,d=M;if(L=B.isUndefined(a)?L:a,M=B.isUndefined(b)?M:b,L&&M){z.removeClass(F,"jw-related-row-"+c),z.removeClass(F,"jw-related-col-"+d),z.addClass(F,"jw-related-row-"+L),z.addClass(F,"jw-related-col-"+M);for(var e=0;ee)}}function q(){if(e.recommendations){H&&(H.onload=null,H.onreadystatechange=null,H.onerror=null,H.abort&&H.abort()),S={};var b=j(e.recommendations,a.getPlaylistItem().mediaid)||e.recommendations;H=z.ajax(b,r,s,{responseType:"json"})}else n()}function r(a){H=null;var b=a.response;C=b.file||C,S=b.params||S,n()}function s(a){H=null,z.log("RELATED: Error loading recommended feed: "+a),n()}function t(b){b.active?(T=!0,a.removeButton("related")):(T=!1,R&&R.length&&a.addButton(void 0,I,k,"related",V))}function u(a){E.textContent=a}function v(b){var c={visible:U,method:b,relatedCount:Math.min(R.length,L*M)};c.visible&&(c.feed=C,c.items=R.slice(0,L*M),c.autoplay="autoplay"===e.oncomplete),J=void 0,z.toggleClass(f,"jw-show",U),z.toggleClass(a.getContainer(),"jw-flag-overlay-open-related",U),y(U?"open":"close",c)}function w(b,c){var d="play"===e.onclick;if("auto"!==c&&(c=d?"manual":"link"),y("play",{position:R.indexOf(b),relatedCount:Math.min(R.length,L*M),method:c,item:b,autoplaytimer:this.autoplayTime||-1}),d||"auto"===c){var f="auto"===c?"related-auto":"related-interaction";a.load(b),a.play({reason:f})}else l({event:"link"}),window.top.location=b.link;"auto"===c&&R.push(R.shift())}function x(a){y("playlist",{playlist:a})}function y(a,b){C&&(b.relatedFile=z.getAbsolutePath(C)),B.extend(b,S),b.onclick="play"===e.onclick?"play":"link",P.trigger(a,b)}var z=a.utils,A=z.UI,B=a._;B.extend(this,a.Events),d._||(d._=B,d.utils=z,d.UI=A,d.Events=a.Events);var C,D,E,F,G,H,I,J,K,L,M,N,O,P=this,Q=[],R=[],S={},T=!1,U=!1,V="jw-related-dock-btn",W="Related Videos",X='',Y='',Z=30,$=3,_=4,aa=180,ba=100,ca=16;this.resize=function(a,b){var c=Math.min(.8*b,b-2*Z),d=b-c,e=Math.min($,parseInt(c/ba)),f=Math.min(_,parseInt(a/aa));L===e&&M===f||p(e,f);var g=c/e/ba,h=a/f/aa,i=Math.min(g,h);z.style(F,{width:i*f*aa,height:i*e*ba}),z.style(F.parentElement,{height:c}),z.toggleClass(F,"jw-align-left",M<=R.length),z.style(E.parentElement,{"font-size":Math.max(Math.min(d/8,a/16),ca)}),z.css(".jw-related-thumb-title",{"font-size":i*ba/8+"px"})},a.on("ready",g),a.on("cast",t),a.on("playlistItem",i),this.open=function(a){k(a)},this.close=function(a){l(a)}};e.version=a.version,jwplayer().registerPlugin("related",a.minPlayerVersion,e)}.apply(b,d),!(void 0!==e&&(a.exports=e))},,function(a,b){a.exports={version:"2.0.0",minPlayerVersion:"7.0.0"}},function(a,b,c){var d,e;d=[c(4)],e=function(a){function b(){var b=a.utils,d=a.UI,e=a._;e.extend(c.prototype,a.Events,{setup:function(a){this.isActive=!1,this.action=a&&"play"===a.onclick?"play":"link",this.container=b.createElement(''),this.item=void 0,this.title=this.container.getElementsByClassName("jw-related-thumb-title")[0],this.ui=new d(this.container).on("click tap",this.activated,this),this.el=this.container},updateThumb:function(a,c){this.isActive=c,this.item=a,b.toggleClass(this.container,"jw-related-thumb-inactive",!this.item||!this.isActive),this.isActive&&this.item&&(this.title.innerHTML=a.title,this.container.style.backgroundImage='url("'+a.image+'")')},activated:function(){this.trigger("activate",this.item)}})}var c=function(a){c.prototype.trigger||b(),this.setup(a)};return c}.apply(b,d),!(void 0!==e&&(a.exports=e))},function(a,b){var c={};a.exports=c},function(a,b,c){var d,e;d=[c(4)],e=function(a){function b(){var b=a.utils,d=a._,e='',f="__TITLE__ will play in XX seconds",g=10;d.extend(c.prototype,a.Events,{setup:function(a){this.options=a,this.autoplayMessage=a.autoplaymessage?a.autoplaymessage:f,this.autoplayTime=d.isNumber(a.autoplaytimer)?a.autoplaytimer:g},clearAutoplay:function(){this.autoplayTextInterval&&(window.clearInterval(this.autoplayTextInterval),window.clearTimeout(this.autoplayTimeout),this.autoplayThumb.el.removeChild(this.autoplayFrame),b.removeClass(this.autoplayThumb.el,"jw-related-autoplay-target"),this.autoplayTimeout=this.autoplayTextInterval=void 0)},startAutoplay:function(a,c){if(a){if(this.autoplayItem=c,this.autoplayThumb=a,b.addClass(this.autoplayThumb.el,"jw-related-autoplay-target"),this.autoplayFrame)this.autoplayThumb.el.appendChild(this.autoplayFrame);else{this.autoplayFrame=b.createElement(e),this.autoplayThumb.el.appendChild(this.autoplayFrame);var d=this.autoplayThumb.el.getElementsByClassName("jw-related-autoplay-frame-progress")[0];d.style.animationDuration=d.style.webkitAnimationDuration=this.autoplayTime+"s"}this.autoplayTimeout=window.setTimeout(this.triggerAutoplay.bind(this),1e3*this.autoplayTime),this.autoplayStartTime=Date.now(),this.updateAutostartText(),this.autoplayTextInterval=window.setInterval(this.updateAutostartText.bind(this),500)}},triggerAutoplay:function(){this.trigger("autoplayTrigger",this.autoplayItem,"auto")},updateAutostartText:function(){var a=Math.max(0,Math.ceil(this.autoplayTime-(Date.now()-this.autoplayStartTime)/1e3)),b=this.autoplayMessage;b=b.replace(/xx/gi,a),b=b.replace(/__TITLE__/gi,this.autoplayItem.title),this.trigger("countdownUpdate",b)}})}var c=function(a){c.prototype.trigger||b(),this.setup(a)};return c}.apply(b,d),!(void 0!==e&&(a.exports=e))},function(a,b,c){var d=c(7);"string"==typeof d&&(d=[[a.id,d,""]]),c(9)(d,{}),d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(8)(),b.push([a.id,".jw-related-dock-btn .jw-dock-image,.jw-related-icon-related{background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2212%22%20viewBox%3D%22-390%20295%2018%2012%22%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M-378%20295c-1.1%200-2.1.3-3%20.8-.9-.5-1.9-.8-3-.8-3.3%200-6%202.7-6%206s2.7%206%206%206c1.1%200%202.1-.3%203-.8.9.5%201.9.8%203%20.8%203.3%200%206-2.7%206-6s-2.7-6-6-6zm-6%2011c-2.8%200-5-2.2-5-5s2.2-5%205-5c.7%200%201.4.2%202.1.5-1.3%201.1-2.1%202.7-2.1%204.5s.8%203.4%202.1%204.5c-.7.3-1.4.5-2.1.5zm6%200c-.7%200-1.4-.2-2.1-.5%201.3-1.1%202.1-2.7%202.1-4.5s-.8-3.4-2.1-4.5c.7-.3%201.4-.5%202.1-.5%202.8%200%205%202.2%205%205s-2.2%205-5%205z%22%2F%3E%3C%2Fsvg%3E');background-repeat:no-repeat}.jw-plugin-related{width:100%;height:100%;visibility:hidden;opacity:0;bottom:0}.jw-plugin-related.jw-show{visibility:visible;opacity:1}.jw-plugin-related .jw-related-container{position:absolute;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.75)}.jw-plugin-related .jw-related-container .jw-text{color:#fff}.jw-plugin-related .jw-related-grid-container{position:absolute;width:100%;height:80%;bottom:8%;line-height:0;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;flex-wrap:wrap;align-content:center;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;text-align:center}.jw-plugin-related .jw-related-header{text-align:left;padding:.7em 1.25em 0;height:10%}.jw-plugin-related .jw-related-header .jw-related-close-icon{width:15%;text-align:right;display:inline-block;font-size:1.1em;color:#fff;vertical-align:middle;cursor:pointer}.jw-plugin-related .jw-related-header .jw-related-heading-text{width:85%;display:inline-block;font-size:1em;letter-spacing:.05em;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle}.jw-plugin-related .jw-related-thumb{cursor:pointer;background-color:#000;display:inline-block;position:relative;background-size:cover;background-position:50% 50%}.jw-plugin-related .jw-related-thumb .jw-related-thumb-cover,.jw-plugin-related .jw-related-thumb .jw-related-thumb-title{display:none;position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.jw-plugin-related .jw-related-thumb .jw-related-thumb-title{height:5em;text-align:left;padding:.5em 1em 0;line-height:1.5em;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}.jw-plugin-related .jw-related-thumb.jw-related-autoplay-target .jw-related-thumb-cover{display:block;background-color:rgba(0,0,0,.25)}.jw-flag-touch .jw-plugin-related .jw-related-thumb .jw-related-thumb-title,.jw-plugin-related .jw-related-thumb:hover .jw-related-thumb-title{display:block;display:-webkit-box}.jw-flag-touch .jw-plugin-related .jw-related-thumb .jw-related-thumb-cover,.jw-plugin-related .jw-related-thumb:hover .jw-related-thumb-cover{display:block;background-color:rgba(0,0,0,.5)}.jw-plugin-related .jw-related-thumb.jw-related-thumb-inactive{display:none}.jw-plugin-related .jw-related-grid.jw-align-left{text-align:left}.jw-plugin-related .jw-related-row-1 .jw-related-thumb{height:100%}.jw-plugin-related .jw-related-row-2 .jw-related-thumb{height:50%}.jw-plugin-related .jw-related-row-3 .jw-related-thumb{height:33.3%}.jw-plugin-related .jw-related-col-1 .jw-related-thumb{width:100%}.jw-plugin-related .jw-related-col-2 .jw-related-thumb{width:50%}.jw-plugin-related .jw-related-col-3 .jw-related-thumb{width:33.3%}.jw-plugin-related .jw-related-col-4 .jw-related-thumb{width:25%}.jw-plugin-related .jw-related-autoplay-svg{position:absolute;width:100%;height:100%}.jw-plugin-related .jw-related-autoplay-frame{fill:none;stroke:#666f82;stroke-width:4%}.jw-plugin-related .jw-related-autoplay-frame-progress{fill:none;stroke:#fff;stroke-width:4%;stroke-dasharray:385%;stroke-dashoffset:385%;-webkit-animation:dash 10s linear forwards;animation:dash 10s linear forwards}@keyframes dash{to{stroke-dashoffset:-.1%}}",""])},function(a,b){a.exports=function(){var a=[];return a.toString=function(){for(var a=[],b=0;b