You are on page 1of 117

/* VimeoPlayer - v2.59.8 - 2017-06-06 - https://player.vimeo.com/NOTICE.

txt */
var VimeoPlayer=function(){"use strict";function e(e,t){return t={exports:
{}},e(t,t.exports),t.exports}function t(e,t){var n=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:document.styleSheets[0];try{n.insertRule?
n.insertRule(e+"{"+t+"}",(n.cssRules||n.rules).length):n.addRule(e,t)}catch(e)
{}}function n(e){if(e&&e.detail>0)try{document.activeElement.blur()}catch(e)
{}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:document.activeElement,t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:null;try{e.blur()}catch(e){t&&t(e)}}function r(){var
e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:document.activeElement,t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:null;try{e.focus()}catch(e){t&&t(e)}}function o(e){var
t=e.getBoundingClientRect();return document.msFullscreenElement&&window.parent!
==window&&e.offsetWidth<e.clientWidth&&(t={bottom:100*t.bottom,left:100*t.left,top:
100*t.top,right:100*t.right,width:100*t.width,height:100*t.height}),t}function a(e)
{try{return new URL(e).origin}catch(e){}var t=document.createElement("a");return
t.href=e,t.origin?t.origin:t.protocol.replace(":","")+"://"+t.host}function s(e)
{var t=e.width,n=e.height,i=e.elementWidth,r=e.elementHeight,o=e.threshold,a=void
0===o?10:o,s=1,u=t/n,c=i-r*u,l=r-i/u;if(c>0&&c<a||l>0&&l<a){var d=i/(i-c),f=r/(r-
l);s=Math.max(d,f)}return{extraWidth:c,extraHeight:l,scaleFactor:s}}function
u(e,t,n){return e>n?n:t>e?t:e}function c(e){if(e===!0)return _t.resolve(null);var
t=!1;return new _t(function(n,i){var r=function(){t||!function(){t=!0;var i=(new
Date).getTime()-e.startTime;setTimeout(function(){return n(i)},100)}
()};e.link.addEventListener("load",r,!1)})}function l(e,t,n){var
i=n.width,r=n.height,o=n.scrollbars,a=void 0===o?"yes":o,s=n.resizable,u=void
0===s?"yes":s,c=n.toolbar,l=void 0===c?"no":c,d=(window.screenY||window.screenTop||
0)+window.outerHeight/2-r/2,f=(window.screenX||window.screenLeft||
0)+window.outerWidth/2-
i/2;window.chrome&&window.navigator.userAgent.toLowerCase().indexOf("mac os x")!==-
1&&(r+=27),window.safari&&(r+=47);var
h="scrollbars="+a+",resizable="+u+",toolbar="+l;return
window.open(e,t,"width="+i+",height="+r+",left="+f+",top="+d+","+h)}function d(e)
{if(!
e)return{};if(Number.isInteger(parseInt(e,10)))return{id:parseInt(e,10),params:
{}};if("string"==typeof e)return 0!==e.indexOf("https://")?{}:{url:e,params:{}};var
t=["portrait","title","byline","color","autoplay","loop"],n=Object.keys(e).filter(f
unction(e){return t.indexOf(e)!==-1}).reduce(function(t,n){return t[n]=e[n],t},
{});return"url"in e?0!==e.url.indexOf("https://")?{}:{url:e.url,params:n}:"id"in
e&&Number.isInteger(parseInt(e.id,10))?{id:parseInt(e.id,10),params:n}:{}}function
f(e){var t=e.match(/\ba?t=([0-9hms:]+)/);null!==t&&(e=t[1]);var n=!
1,i=0,r=0,o=0;if(t=e.match(/^([0-9]+)$/),t&&t.length&&(n=!0,o=t[1]),n===!
1&&(t=e.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s)?/),null!==t&&""!==t[0]))
{n=!0;var a=t,s=Ot(a,4),u=s[1];i=void 0===u?0:u;var c=s[2];r=void 0===c?0:c;var
l=s[3];o=void 0===l?0:l}if(n===!1&&(t=e.match(/^([0-9:]+)/),null!==t)){n=!0;var
d=e.split(":").reverse(),f=Ot(d,3);o=f[0];var h=f[1];r=void 0===h?0:h;var
v=f[2];i=void 0===v?0:v}return n?
60*parseInt(i,10)*60+60*parseInt(r,10)+parseInt(o,10):null}function h(e){var
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.method,i=void
0===n?"GET":n,r=t.withCredentials,o=void 0===r||r,a=t.allowErrorStatuses,s=void 0!
==a&&a;return new _t(function(t,n){var r=new XMLHttpRequest;r.open(i,e,!
0),o&&(r.withCredentials=!0),r.onload=function(){if(r.status>=400&&!s){var
e={403:"Forbidden",404:"Not Found",500:"Internal Server Error"};return e[r.status]?
void n(new Error(e[r.status])):void n(new Error("Request returned non-200 status
code: "+r.status))}t(r.responseText)},r.onerror=function(){return n(new Error("The
request failed."))},r.send()})}function v(e){for(var t,n,i=(e||
document).querySelectorAll("[tabindex]"),r=[],o=0,a=0,s=i.length;a<s;a+
+)t=i[a],n=window.getComputedStyle(t,""),t.tabIndex>0&&"none"!
==n.display&&n.opacity>0&&"hidden"!==n.visibility&&(r[o++]=t);var
u=r.shift();u&&(u.focus(),u.blur())}function p(e,t)
{if(e=parseFloat(e),isNaN(e))return 0;var n=Math.pow(10,t||3);return
Math.round(e*n)/n}function m(e,t){var n,i,r,o,a=0,s=function(){a=new
Date,r=null,o=e.apply(n,i)};return function(){var u=new Date,c=t-(u-a);return
n=this,i=arguments,c<=0?(clearTimeout(r),r=null,a=u,o=e.apply(n,i)):r||
(r=setTimeout(s,c)),o}}function g(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/
[018]/g,function(e){return(e^16*Math.random()>>e/4).toString(16)})}function y(e)
{var
t="",n=window.getComputedStyle(e,":after");if(n)try{t=n.getPropertyValue("content")
,t=t.replace(/^['"]+|\\|['"]$/g,"")}catch(e){}return t}function _(e,t){var
n=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:2;t=Object.keys(t).map(function(e){return t[e]});var
i=e.cloneNode();i.style.visibility="hidden",i.style.padding=0,e.parentElement.appen
dChild(i);var r=t.map(function(e){return
i.innerText=e,i.clientWidth}),o=Math.max.apply(Math,r),a=window.getComputedStyle(e)
,s=parseFloat(a.fontSize);return e.parentElement.removeChild(i),
(o+n)/s+"em"}function b(e){for(var t={},n=Object.keys(e),i=0,r=n.length;i<r;i+
+)t[e[n[i]]]=n[i];return t}function w(e,t,n,i){var r=i[t];return r?
(r=x(e,r),r=k(r,n,i.prices),i.expires_in_duration_str&&(r=r.replace("{TIME}",i.expi
res_in_duration_str)),i.available_on_formatted&&(r=r.replace("{DATE}",i.available_o
n_formatted)),r):null}function k(e,t,n){var i=n.USD;return t in
n&&(i=n[t]),e.indexOf("${price}")!==-1?e.replace("$
{price}",i):e.indexOf("{PRICE}")!==-1?e.replace("{PRICE}",i):e}function S(e,t)
{return!e||0===e.length||e.indexOf(t)!==-1}function x(e,t){return"undefined"!
=typeof e&&"undefined"!=typeof e[t]?e[t]:t}function T(e,t,n,i){return!
i.relatedTarget||(!n||e===t)&&(t!==i.relatedTarget&&!
t.contains(i.relatedTarget))}function E(e,t,n,i){var r=!1;i="function"==typeof t?
n:i,n="function"==typeof t?t:n,t="function"==typeof t?null:t;var o=function(e){var
t=!0;if(e.changedTouches){var o=e.changedTouches[0].pageX-
window.pageXOffset,a=e.changedTouches[0].pageY-
window.pageYOffset,s=document.elementFromPoint(o,a);null!
==s&&this.contains(s)&&(t=n.call(this,e))}return"function"==typeof
i&&i.call(this,e),r=!0,t},a=function(e){return r?void(r=!1):n.call(this,e)};return
t?void Dt(e).on("click",t,a).on("touchend",t,o):void
Dt(e).on("click",a).on("touchend",o)}function L(e){return new
RegExp(e.toLowerCase()).test($t)}function P(e){var
t=document.createElement("div"),n=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+
["Webkit","Moz","O","ms"].join(n+" ")+n).split(" ");for(var r in i){var
o=i[r];if(void 0!==t.style[o])return o}return e}function C(){var e=navigator,t=!
1,n=[0,0,0],i=null,r="Shockwave Flash",o="application/x-shockwave-
flash",a="ShockwaveFlash.ShockwaveFlash";if("undefined"!=typeof
e.plugins&&"object"===Lt(e.plugins[r]))i=e.plugins[r].description,!i||"undefined"!
=typeof e.mimeTypes&&e.mimeTypes[o]&&!e.mimeTypes[o].enabledPlugin||(t=!
0,i=i.replace(/^.*\s+(\S+\s+\S+
$)/,"$1"),n[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10),n[1]=parseInt(i.replace(/^
.*\.(.*)\s.*$/,"$1"),10),n[2]=/[a-zA-Z]/.test(i)?parseInt(i.replace(/^.*[a-zA-Z]+
(.*)$/,"$1"),10):0);else if("undefined"!=typeof window.ActiveXObject)try{var s=new
ActiveXObject(a);s&&(i=s.GetVariable("$version"),i&&(t=!0,i=i.split(" ")
[1].split(","),n=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]))}catch(e)
{}return{installed:t,version:n.join("."),major:n[0],minor:n[1],revision:n[2]}}funct
ion A(e,t){var n=e,i=t;return n%320!
==0&&(n=100*Math.ceil(e/100),i=Math.round(n/e*t)),{width:n,height:i}}function O(e)
{var t=e.width,n=e.height,i=e.baseUrl,r=e.webpSupport,o=void 0!
==r&&r,a=e.crop,s=void 0!==a&&a,u=i+(o?".webp":".jpg");return u+="?"+(s?"":"m")
+"w="+t,0!==n&&(u+="&"+(s?"":"m")
+"h="+n),tn.devicePixelRatio>1&&(u+="&q=70"),u}function M(e){return new
_t(function(t,n){var i=new Image;i.src=e,i.onload=function(){return
t(i)},i.onerror=function(){return n(new Error("Failed to load image."))}})}function
F(e){return tn.iOS&&"onpagehide"in window?void
window.addEventListener("pagehide",e,!1):void
window.addEventListener("beforeunload",e,!1)}function I(e){return"object"==typeof
e&&null!==e}function q(e){switch({}.toString.call(e)){case"[object Error]":return!
0;case"[object Exception]":return!0;case"[object DOMException]":return!
0;default:return e instanceof Error}}function R(){return"undefined"==typeof
document||"undefined"==typeof document.location?"":document.location.href}function
B(e){this.name="RavenConfigError",this.message=e}function D(){return+new
Date}function j(){this._hasJSON=!("object"!=typeof JSON||!
JSON.stringify),this._hasDocument=!N(Ln),this._hasNavigator=!
N(Pn),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,t
his._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalCo
ntext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:
[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!
0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!
0,sampleRate:1},this._ignoreOnError=0,this._isRavenInstalled=!
1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=En
.console||
{},this._originalConsoleMethods={},this._plugins=[],this._startTime=D(),this._wrapp
edBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeo
ut,this._location=En.location,this._lastHref=this._location&&this._location.href,th
is._resetBackoff();for(var e in
this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}func
tion N(e){return void 0===e}function V(e){return"function"==typeof e}function H(e)
{return"[object String]"===Cn.toString.call(e)}function U(e){for(var t in e)return!
1;return!0}function z(e,t){var n,i;if(N(e.length))for(n in
e)X(e,n)&&t.call(null,n,e[n]);else if(i=e.length)for(n=0;n<i;n+
+)t.call(null,n,e[n])}function
W(e,t){return t?(z(t,function(t,n){e[t]=n}),e):e}function K(e,t){return!t||
e.length<=t?e:e.substr(0,t)+""}function X(e,t){return
Cn.hasOwnProperty.call(e,t)}function $(e){for(var t,n=[],i=0,r=e.length;i<r;i+
+)t=e[i],H(t)?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\
$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function
Y(e){var t=[];return z(e,function(e,n){t.push(encodeURIComponent(e)
+"="+encodeURIComponent(n))}),t.join("&")}function G(e){var t=e.match(/^(([^:\/?#]
+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var
n=t[6]||"",i=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+i}}f
unction Q(){var e=En.crypto||En.msCrypto;if(!N(e)&&e.getRandomValues){var t=new
Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var
n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])
+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])
+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var
t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)})}function J(e)
{for(var t,n=5,i=80,r=[],o=0,a=0,s=" > ",u=s.length;e&&o++<n&&(t=Z(e),!
("html"===t||
o>1&&a+r.length*u+t.length>=i));)r.push(t),a+=t.length,e=e.parentNode;return
r.reverse().join(s)}function Z(e){var t,n,i,r,o,a=[];if(!e||!
e.tagName)return"";if(a.push(e.tagName.toLowerCase()),e.id&&a.push("#"+e.id),t=e.cl
assName,t&&H(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)a.push("."+n[o]);var
s=["type","name","title","alt"];for(o=0;o<s.length;o+
+)i=s[o],r=e.getAttribute(i),r&&a.push("["+i+'="'+r+'"]');return
a.join("")}function ee(e,t){return!!(!!e^!!t)}function te(e,t){return!
ee(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&ne(e.stac
ktrace,t.stacktrace))}function ne(e,t){if(ee(e,t))return!1;var
n=e.frames,i=t.frames;if(n.length!==i.length)return!1;for(var r,o,a=0;a<n.length;a+
+)if(r=n[a],o=i[a],r.filename!==o.filename||r.lineno!==o.lineno||r.colno!
==o.colno||r.function!==o.function)return!1;return!0}function ie(e,t,n,i){var
r=e[t];e[t]=n(r),i&&i.push([e,t,r])}function re(e){e=e||{};var t={};return
e.on=function(n,i){n=[].concat(n);for(var r=0,o=n.length;r<o;r++){var a=n[r];if(!
a)throw new Error("Tried to listen for an undefined event.");t[a]||
(t[a]=[]),t[a].push(i)}return e},e.once=function(t,n){function i()
{n.apply(e.off(t,i),arguments)}return i.handler=n,e.on(t,i)},e.off=function(n,i)
{n=[].concat(n);for(var r=0,o=n.length;r<o;r++){var a=n[r];if(!a)throw new
Error("Tried to remove an undefined event.");if(a in t){var
s=t[a].indexOf(i);if(s===-1){for(var u=0,c=t[a].length;u<c;u++)if(t[a]
[u].handler===i){s=r;break}if(s===-1)return e}t[a].splice(s,1)}}return
e},e.fire=function(n){if(!n)throw new Error("Tried to fire an undefined
event.");if(n in t)for(var i=t[n].slice(0),r=0,o=i.length;r<o;r+
+)i[r].apply(e,i.slice.call(arguments,1));return e},e}function oe(e){function t()
{var t=e.telecine&&e.telecine.currentScanner;switch(t)
{case"HTMLScanner":return"HTML5";case"SWFScanner":return"Flideo";case"moogaloop":re
turn"Moogaloop";default:return"Player"}}function n(t,n)
{window._gaq&&window._gaq.push(["player._trackSocial",t,n,e.config.video.share_url]
)}function i(e,n,i){var r=(new Date).getTime()-
n;window._gaq&&window._gaq.push(["player._trackTiming",t(),e,r,i])}function r()
{e.doNotTrackEnabled||(e.events.on(Et.facebookButtonPressed,function()
{n("Facebook","share")}),e.events.on(Et.twitterButtonPressed,function()
{n("Twitter","tweet")}),e.events.on(Et.tumblrButtonPressed,function()
{n("Tumblr","share")}),e.events.on(Et.emailButtonPressed,function()
{n("Email","email")}))}function o(){var
t;e.events.on([Et.bufferStarted,Et.scrubbingStarted],function(e){t||(t=e||(new
Date).getTime())}),e.events.on(Et.bufferEnded,function(){if(t>0){var
n=e.telecine.currentFile.metadata.quality,r="Buffer Time";l&&(l=!1,r="Start
Time"),i(r,t,n),t=null}})}function a(){function t()
{o=document.createElement("script"),o.id="player-comscore",o.async=!
0,o.src=e.config.request.urls.comscore_js;var
t=document.getElementsByTagName("script")
[0];t.parentNode.insertBefore(o,t)}function n(){try{r=new
ns_.StreamingTag({customerC2:e.config.request.comscore_id}),a&&(i(),a=!1)}catch(e)
{}}function i(){try{r.playContentPart({ns_st_ci:e.config.video.id})}catch(e){}}if(!
e.doNotTrackEnabled&&e.playLoggingEnabled){var r,o=document.getElementById("player-
comscore"),a=!1;e.events.on(Et.played,function(){if(!r){if("undefined"==typeof
ns_)return o||t(),o.addEventListener("load",n,!1),void(a=!
0);n()}i()}),e.events.on(Et.paused,function(){try{r&&r.stop()}catch(e)
{}})}}function s(){"tracking_pixel"in e.config.video&&(e.doNotTrackEnabled||
e.playLoggingEnabled&&e.events.on(Et.playInitiated,function(){try{(new
Image).src=e.config.video.tracking_pixel}catch(e){}}))}function u()
{e.events.on(Et.configChanged,function(){c!
==e.config.request.session&&(window._gaq&&window._gaq.push(["player._trackPageview"
,"/video/"+e.config.video.id]),l=!0)})}var c=e.config.request.session,l=!0;return
r(),o(),a(),s(),u(),e.events.fire(Et.analyticsModuleReady),{}}function ae(e){return
e=e.replace("#",""),"string"==typeof e&&(3===e.length||6===e.length)&&!
isNaN(parseInt(e,16))}function se(e){var t=/rgba?\
((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*([\d\.]+))?\)/.exec(e);if(!t)throw new
Error("Invalid rgb
value");return{red:parseInt(t[1],10),green:parseInt(t[2],10),blue:parseInt(t[3],10)
,alpha:parseFloat(t[5])||1}}function ue(){for(var
e=arguments.length,t=Array(e),n=0;n<e;n+
+)t[n]=arguments[n];if(1===t.length&&t[0]instanceof ue){var i=t[0];return
this.red=i.red,this.green=i.green,this.blue=i.blue,this.alpha=i.alpha,this.hue=i.hu
e,this.saturation=i.saturation,this.lightness=i.lightness,this}if(1===t.length)
{if("string"==typeof t[0]&&t[0].indexOf("rgb")>=0)return
this.rgba=se(t[0]),this;if(!ae(""+t[0]))throw new Error("Invalid hex value");return
this.hex=t[0],this}if(3===t.length||4===t.length){for(var r=0;r<3;r+
+)if(isNaN(parseInt(t[r],10))||parseInt(t[r],10)<0||parseInt(t[r],10)>255)throw new
Error("Invalid rgb value");if(t[3]&&parseFloat(t[3])<0||parseFloat(t[3])>1)throw
new Error("Invalid alpha value");return
this.rgba={red:t[0],green:t[1],blue:t[2],alpha:parseFloat(t[3])||1},this}throw new
Error("Invalid color")}function ce(e){var t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:[];if(!e||"null"===e||
0===t.length)return{track:null};var
n=e.split("."),i=Ot(n,2),r=i[0],o=i[1],a=r.split(/[-_]/),s=Ot(a,1),u=s[0],c=r!
==u,l=t.filter(function(e){return c?e.language===r||
e.language===u:e.language===u}).sort(function(e,t){var
n=2*(e.language===u&&e.kind===o)+2*(e.language===r)
+1*(e.kind===o),i=2*(t.language===u&&t.kind===o)+2*(t.language===r)
+1*(t.kind===o);return i-n});return l.length>0?
{track:l[0],exactMatch:l[0].language===r&&l[0].kind===o}:{track:null}}function
le(e){function t(e,t,n){this.message=e,this.name=t,this.source=n}function n(n)
{switch(e.config.view){case bt.privateLocked:throw new t("The video is
private.","PrivacyError",n);case bt.privatePassword:throw new t("The video is
password-protected. The viewer must enter the password
first.","PasswordError",n);case bt.error:throw new
t(e.config.message,"NotFoundError",n)}}function i(){var e=[];for(var t in
D)if(D.hasOwnProperty(t)&&0!==t.indexOf("_")){if("function"==typeof D[t])
{e.push(t);continue}"function"==typeof
D[t].get&&e.push("get"+t.charAt(0).toUpperCase()+t.slice(1)),"function"==typeof
D[t].set&&e.push("set"+t.charAt(0).toUpperCase()+t.slice(1))}return
e.sort()}function r(){M||(l({event:"loaded",data:{id:e.config.video.id}}),M=!
0)}function o(e){if(!e||""===e)return{};if("object"===("undefined"==typeof
e?"undefined":Lt(e)))return e;try{return L=2,JSON.parse(e)}catch(n){var t={};return
e.split("&").forEach(function(e){try{var
n=e.split("="),i=decodeURIComponent(n[0]),r=decodeURIComponent(n[1]);if("id"===i)re
turn;"params"===i&&(i="value"),r=r.split(",")[0],t[i]=r}catch(e)
{}}),L=1,t}}function a(e){if(!e||"_"===e.substr(0,1))return
null;switch(1===L&&(e=e.replace("api_","")),e){case"changeColor":return
D.color.set;case"paused":return D.paused.get;case"seekTo":return
D.currentTime.set}if("function"==typeof D[e])return D[e];var
t=e.substr(0,3),n=e.substr(3,1).toLowerCase()+e.substr(4);return D[n]&&D[n][t]?D[n]
[t]:null}function s(n){if(n.source===window.parent){var
r=o(n.data),s=r.method,u=r.value;if(void 0!==s)try{var c=a(s);if(!c)throw new
t(""+s+" is not a valid method. Valid methods are: "+i().join(", ")
+".","TypeError",s);e.addBreadcrumb("API message received",r,"api");var
d=[u];c===D.addCuePoint&&"object"===("undefined"==typeof u?"undefined":Lt(u))?
d=[u.time,u.data]:c===D.enableTextTrack&&"object"===("undefined"==typeof
u?"undefined":Lt(u))&&(d=[u.language,u.kind]);var h=c.apply(n,d),v=0!
==s.indexOf("get")&&"paused"!==s;if(h===w||v&&L<3)return;l({method:s,value:void 0!
==h&&""!==h?h:u})}catch(e){f(e)}}}function u(e){var t=e.event;if(1===L)for(var n in
R)if(R[n]===e.event){t=n;break}switch(t){case"onSeek":case"onProgress":delete
e.data.percent,delete e.data.duration;break;case"onLoading":delete
e.data.seconds,delete e.data.duration}var i="method="+encodeURIComponent(t||
e.method);i+="&params=";var r=[];if(void 0!
==e.value)r.push(encodeURIComponent(e.value));else if("object"===Lt(e.data))for(var
o in e.data)r.push(encodeURIComponent(e.data[o]));else void 0!
==e.data&&r.push(encodeURIComponent(e.data));return
e.player_id&&r.push(e.player_id),i+=r.join(",")}function c(e){if(e.event){for(var t
in B)if(B[t]===e.event)
{e.event=t;break}"cuechange"===e.event&&(e.data.text=e.data.cues[0].text,e.data.htm
l=e.data.cues[0].html,delete e.data.cues)}return JSON.stringify(e)}function l(t)
{if((!t.event||(S.fire(t.event,t.data),k[t.event]))&&x)
{e.config.embed&&e.config.embed.player_id&&(t.player_id=e.config.embed.player_id);t
ry{1===L?t=u(t):2===L&&(t=c(t)),"object"!==("undefined"==typeof
t?"undefined":Lt(t))||"ready"!==t.event&&T||(t=JSON.stringify(t))}catch(e)
{}if(window.parent!=window)try{window.parent.postMessage(t,_&&"null"!==_?
_:"*")}catch(e){}}}funct
ion f(e){var n={event:"error",data:{message:"An error
occurred.",name:"Error",method:e.source}};e instanceof t&&(n={event:"error",data:
{message:e.message,name:e.name,method:e.source}}),l(n)}function h(){if(P&&A)
{try{switch(A){case"not-supported":throw new t("This video is not supported in this
browser.","NotSupportedError");case"no-files":throw new t("There was an error
loading the files for this video.","FileError");default:throw new t("An error
occurred during playback.","PlaybackError")}}catch(e){f(e)}A=null}}function v()
{"embed"in e.config&&e.config.embed.on_site||(window.addEventListener?
window.addEventListener("message",s,!1):window.attachEvent("onmessage",s))}function
m(){e.events.on(Et.played,function(t){C||(C=!0,l({event:"play",data:
{seconds:p(t),percent:p(t/e.config.video.duration),duration:p(e.config.video.durati
on)}}))}),e.events.on(Et.paused,function(t){C=!1,l({event:"pause",data:
{seconds:p(t),percent:p(t/e.config.video.duration),duration:p(e.config.video.durati
on)}})}),e.events.on(Et.ended,function(){C=!1,l({event:"ended",data:
{seconds:p(e.config.video.duration),percent:1,duration:p(e.config.video.duration)}}
)}),e.events.on(Et.playProgress,function(e,t,n){l({event:"timeupdate",data:
{seconds:p(e),percent:p(n),duration:p(t)}})}),e.events.on(Et.loadProgress,function(
e,t,n){var i={event:"progress",data:
{percent:p(n),duration:p(t),seconds:p(e)}};L<3&&(i.data.bytesLoaded=-
1,i.data.bytesTotal=-1),l(i)}),e.events.on(Et.seeked,function(e,t,n)
{l({event:"seeked",data:
{seconds:p(e),percent:p(n),duration:p(t)}})}),e.events.on(Et.volumeChanged,function
(e){l({event:"volumechange",data:{volume:p(e)}})}),e.events.on(Et.error,function(e)
{A=e,h()}),e.events.on(Et.apiError,function(e){f(new
t(e.message,e.name,e.method))}),e.events.on(Et.cueChanged,function(e){var
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e||
{},i=n.language,r=void 0===i?null:i,o=n.label,a=void 0===o?null:o,s=n.kind,u=void
0===s?null:s;l({event:"cuechange",data:
{label:a,language:r,kind:u,cues:t}})}),e.events.on(Et.captionsChanged,function(e)
{F=e;var t=e||{},n=t.language,i=void 0===n?null:n,r=t.label,o=void 0===r?
null:r,a=t.kind,s=void 0===a?null:a;l({event:"texttrackchange",data:
{label:o,language:i,kind:s}})}),e.doNotTrackEnabled||
e.events.on(Et.emailCaptureSuccess,function()
{l({event:"emailcapture"})}),e.events.on(Et.cuepoint,function(e)
{l({event:"cuepoint",data:
{time:e.time,data:e.data,id:e.id}})}),e.events.on(Et.spatialMotionStart,function()
{l({event:"motionstart",data:{}})}),e.events.on(Et.spatialMotionEnd,function()
{l({event:"motionend",data:{}})}),e.events.on(Et.spaceChanged,function(){var
e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k.spacechange=!
0,l({event:"spacechange",data:e})})}function g(){e.events.on(Tt.reset,function()
{A=null,O=!1,M=!1})}function y(){e.events.on(Et.configChanged,function(t)
{E&&setTimeout(function(){var t=!
0;e.events.fire(Tt.changeVolume,E,t)},0),t&&r()})}var _=document.referrer||
e.config.request.referrer;try{_=decodeURIComponent(_)}catch(e){_=Rt(_)}var
b,w="_ASYNC_",k={ready:!0},S=re(),x=!(!window.postMessage||!
window.parent.postMessage),T=!
(tn.browser.ie>=8&&tn.browser.ie<10),E=null,L=e.config.embed.api,P=!1,C=!
1,A=null,O=!1,M=!
1,F=null,I=["play","pause","ended","timeupdate","progress","seeked","error","texttr
ackchange","cuechange","volumechange","loaded","emailcapture","cuepoint","motionsta
rt","motionend"],q=I.filter(function(e){return"emailcapture"!
==e}),R={onFinish:"ended",onLoading:"progress",onLoad:"ready",onProgress:"timeupdat
e",onPlay:"play",onPause:"pause",onSeek:"seeked"},B={playProgress:"timeupdate",load
Progress:"progress",finish:"ended",seek:"seeked"};t.prototype=new Error;var
D={_setEmbedEditor:function(t){e.config.embed.editor=!!
t},_setEmbedSetting:function(t,n)
{e.config.embed.on_site&&(n="object"===("undefined"==typeof n?"undefined":Lt(n))?
n:Number(n),"badge"===t&&(n?
n=b:b=e.config.embed.settings.badge),e.config.embed.settings[t]=n,e.events.fire(Et.
embedSettingChanged,t,n),e.events.fire(Tt.reset),e.events.fire(Et.configChanged,!
1))},_showOverlay:function(t,n)
{e.events.fire(Tt.showOverlay,t,n)},_toggleDebugHud:function()
{e.events.fire(Et.debugButtonPressed)},_fieldOfView:{get:function(){var
n=e.telecine.getEffectByName("ThreeSixtyEffect");if(e.telecine&&!n)throw new
t("Field of view is not available in the current
player.","UnsupportedError","getFieldOfView");return n.fieldOfView},set:function(n)
{var i=e.telecine.getEffectByName("ThreeSixtyEffect");if(e.telecine&&!i)throw new
t("Field of view is not available in the current
player.","UnsupportedError","setFieldOfView");e.telecine.getEffectByName("ThreeSixt
yEffect").fieldOfView=n}},_coordinates:{get:function(){var
n=e.telecine.getEffectByName("ThreeSixtyEffect");if(e.telecine&&!n)throw new
t("Coordinates are not available in the current
player.","UnsupportedError","getCoordinates");return
n.currentCoordinates},set:function(n){var
i=e.telecine.getEffectByName("ThreeSixtyEffect");if(e.telecine&&!i)throw new
t("Coordinates are not available in the current
player.","UnsupportedError","setCoordinates");try{e.telecine.getEffectByName("Three
SixtyEffect").currentCoordinates=n}catch(e){throw new
t(e.message,"RangeError","setCoordinates")}}},addEventListener:function(n,i){if(n
in R&&(n=R[n]),n in B&&(n=B[n]),I.indexOf(n)<0)throw new t(""+n+" is not a valid
event. Valid events are: "+q.join(", ")+".","TypeError","addEventListener");i?
S.on(n,i):k[n]=!0,("loaded"===n&&e.config.view===bt.main||
e.config.view===bt.privateUnlocked)&&r()},removeEventListener:function(e,t){t?
S.off(e,t):k[e]=!1},play:function(){n("play");var i="[object
MessageEvent]"===Object.prototype.toString.call(this),r="undefined"!=typeof
tn&&tn.iOS&&tn.iOS<10;if(i&&r&&!O)throw new t("The viewer must initiate playback
first.","Error","play");e.events.fire(Et.playButtonPressed)},pause:function()
{n("pause"),e.events.fire(Et.pauseButtonPressed)},loadVideo:function(i){var
r=d(i),o=r.id,a=r.url,s=r.params;if(!o&&!a)throw new t("The video id must be an
integer.","TypeError","loadVideo");if(a&&a.match(null===new
RegExp("^https?://"+e.config.player_url+"/video/([0-9]+)/config")))throw new t("The
config url must be a valid Vimeo url.","TypeError","loadVideo");return
e.loadVideo(a||o,s).then(function(){return
L>2&&l({method:"loadVideo",value:i}),i}).catch(function()
{try{n("loadVideo")}catch(e){if(e instanceof t)return void f(e);f(new t("An error
occurred loading the video.","Error","loadVideo"))}}),w},unload:function()
{e.config.view!==bt.main&&e.config.view!==bt.privateUnlocked||
e.events.fire(Tt.reset)},enableTextTrack:function(n){var i=arguments.length>1&&void
0!==arguments[1]?arguments[1]:null,r=("text_tracks"in e.config.request?
e.config.request.text_tracks:[]).map(function(e){return
e.language=e.lang,e}),o=r.some(function(e){return
e.language.toLowerCase()===n.toLowerCase()});if(!o)throw new t("There are no tracks
for "+n.toUpperCase()+".","InvalidTrackLanguageError","enableTextTrack");var a=i?
n+"."+i:n,s=ce(a,r),u=s.track;if(!u||i&&u.kind!==i)throw new t("There are no "+i+"
tracks for "+n.toUpperCase()+".","InvalidTrackError","enableTextTrack");return
e.events.fire(Tt.turnCaptionsOn,u.id,!
0),L>2&&e.events.once(Et.captionsChanged,function(e,t)
{l({method:"enableTextTrack",value:
{label:e.label,language:e.language,kind:e.kind}})}),w},disableTextTrack:function()
{e.events.fire(Tt.turnCaptionsOff)},ping:function(){return
e.config.video.id},addCuePoint:function(n,i)
{if(e.telecine&&"moogaloop"===e.telecine.currentScanner)throw new t("Cue points are
not supported in the current
player.","UnsupportedError","addCuePoint");if(n=parseFloat(n),isNaN(n)||n<0||
n>e.config.video.duration)throw new t("Cue point time must be positive number less
than the duration of the video ("+p(e.config.video.duration)
+").","RangeError","addCuePoint");try{var r=function(){var
t=e.telecine.addCuePoint(n,i);return setTimeout(function()
{e.events.fire(Et.cuePointAdded,t)},0),{v:t.id}}
();if("object"===("undefined"==typeof r?"undefined":Lt(r)))return r.v}catch(e)
{if("CuePointsNotSupported"===e.name)throw new t("Cue points are not supported in
the current player.","UnsupportedError","addCuePoint");throw new t("Unable to add
cue point","InvalidCuePoint","addCuePoint")}},removeCuePoint:function(n)
{if(e.telecine&&"moogaloop"===e.telecine.currentScanner)throw new t("Cue points are
not supported in the current player.","UnsupportedError","removeCuePoint");var
i=e.telecine.cuePoints.filter(function(e){return e.id===n})[0];if(!i)throw new
t("Cue point "+n+" was not
found.","InvalidCuePoint","removeCuePoint");e.telecine.removeCuePoint(i),setTimeout
(function(){e.events.fire(Et.cuePointRemoved,i)},0)},_addCard:function(t)
{e.events.fire(Tt.addCard,t)},_removeCard:function(t)
{e.events.fire(Tt.removeCard,t)},autopause:{get:function()
{if(e.telecine&&"moogaloop"===e.telecine.currentScanner)throw new t("Autopause is
not supported in the current player.","UnsupportedError","getAutopause");return!!
e.config.embed.autopause},set:function(n)
{if(e.telecine&&"moogaloop"===e.telecine.currentScanner)throw new t("Autopause is
not supported in the current
player.","UnsupportedError","setAutopause");e.config.embed.autopause=!!n}},color:
{get:function(){return e.config.embed.color.replace("#","")},set:function(n)
{if("moogaloop"===e.telecine.currentScanner)return void
e.events.fire(Tt.changeColor,n);if(e.config.embed.settings.color&&!
e.config.embed.on_site)throw new t("The creator of the video has chosen to always
use "+new ue(e.config.embed.color).hex+".","EmbedSettingsError","setColor");try{var
i=new ue(n);e.events.fire(Tt.changeColor,i.hex)}catch(e){throw new t("The color
should be 3- or 6-digit hex value.","TypeError","setColor")}var r=new
ue(23,35,34,.75),o=r.contrast(i).ratio;if(o<3){var a=i.clone().lighten(5,3,r);throw
new t(i.hex+" does not meet minimum contrast ratio. We recommend using brighter
colors. (You could try "+a.hex+" instead.)
See WCAG 2.0 guidelines: http://www.w3.org/TR/WCAG/#visual-audio-
contrast","ContrastError","setColor")}}},cuePoints:{get:function()
{if(e.telecine&&"moogaloop"===e.telecine.currentScanner)throw new t("Cue points are
not supported in the current player.","UnsupportedError","getCuePoints");return
e.telecine.cuePoints.map(function(e)
{return{time:e.time,data:e.data,id:e.id}})}},currentTime:{get:function(){return
e.telecine&&e.telecine.currentTime>.1?p(e.telecine.currentTime):0},set:function(n)
{if(n=parseFloat(n),isNaN(n)||n<0||n>e.config.video.duration)throw new t("Seconds
must be a positive number less than the duration of the video
("+p(e.config.video.duration)+").","RangeError","setCurrentTime");var i="[object
MessageEvent]"===Object.prototype.toString.call(this);if(i&&"undefined"!=typeof
tn&&(tn.iPhone||tn.iPad||tn.iPod)&&!O)throw new t("The viewer must initiate
playback first.","Error","setCurrentTime");return
e.events.fire(Tt.seek,null,n),e.events.fire(Et.mousedOver),L>2&&e.events.once(Et.se
eked,function(e,t,n){l({method:"setCurrentTime",value:e})}),w}},duration:
{get:function(){return p(e.config.video.duration)}},ended:{get:function(){return!!
e.telecine.ended}},loop:{get:function(){return!!
e.config.embed.loop},set:function(t){e.events.fire(Tt.changeLoop,t)}},paused:
{get:function(){return!(e.telecine&&"paused"in e.telecine)||!!
e.telecine.paused}},textTracks:{get:function(){var t=e.telecine?
e.telecine.video.textTracks:[];return t.map(function(e)
{return{label:e.label,language:e.language,kind:e.kind,mode:e===F?"showing":"disable
d"}})}},videoEmbedCode:{get:function(){return
Rt(e.config.video.embed_code)}},videoHeight:{get:function(){return
e.telecine.videoHeight||e.config.video.height}},videoId:{get:function(){return
e.config.video.id}},videoTitle:{get:function(){return
e.config.video.title}},videoWidth:{get:function(){return e.telecine.videoWidth||
e.config.video.width}},videoUrl:{get:function(){if(!e.config.video.url)throw new
t("The URL is not available because of the videos privacy
settings.","PrivacyError","getVideoUrl");return e.config.video.url}},volume:
{get:function(){var t=p(e.config.request.cookie.volume);
return 1===L?Math.round(100*t):t},set:function(n)
{if(n=parseFloat(n),1===L&&(n/=100),isNaN(n)||n<0||n>1)throw new t("Volume should
be a number between 0 and 1.","RangeError","setVolume");E=n;var i=!
0;e.events.fire(Tt.changeVolume,n,i)}},_like:{get:function(){return!!
e.config.user.liked},set:function(t){if(e.config.embed.on_site)
{if(e.config.user.liked===t)return;e.events.fire(Et.likeButtonPressed,t)}}},_watchL
ater:{get:function(){return!!e.config.user.watch_later},set:function(t)
{if(e.config.embed.on_site)
{if(e.config.user.watch_later===t)return;e.events.fire(Et.watchLaterButtonPressed,t
)}}},_setOutro:function(t,n){return e.config.embed.outro===t?void
e.events.fire(Tt.showOutro,t,n):(e.events.fire(Tt.hideOutro),void
setTimeout(function()
{e.config.embed.outro=t,e.events.fire(Tt.showOutro,t,n)},400))},_setEmailCapture:fu
nction(t){return t?(e.config.embed.email=e.config.embed.email||
{},e.config.embed.email.position=t.position.toLowerCase(),"after"===t.position.toLo
werCase()?(e.config.embed.outro="email",void e.events.fire(Tt.showOutro,"email",
{version:2,data:t})):(e.config.embed.email.timecode=t.timecode,t.nohide=!
0,t.noblur=!0,void D._showOverlay("email-capture",t))):void
D._unsetEmailCapture()},_unsetEmailCapture:function()
{e.config.embed.outro&&(e.events.fire(Tt.hideOutro),delete
e.config.embed.outro),e.config.embed.email&&(e.events.fire(Tt.hideOverlay,
{unmakeModal:!0}),delete e.config.embed.email)}};return
e.events.on(Et.playInitiated,function(){O=!
0}),m(),g(),y(),e.events.fire(Et.apiModuleReady),e.events.once(Et.ready,function()
{P=!0,v(),l({event:"ready"}),h()}),D}function de(e,t){function n(){return
Math.max(10,Math.round(.045*e.element.clientHeight))+"px"}function i()
{t.style.fontSize=n()}function r()
{t.classList.add("hidden"),t.setAttribute("hidden","")}function o(){"picture-in-
picture"!
==e.telecine.presentationMode&&(t.classList.remove("hidden"),t.removeAttribute("hid
den"))}function a(e){var t=e.text.replace("\n","<br>").split(/<br ?\/?
>/),n=t.reduce(function(e,t){return
Math.max(e,t.replace(/<\/?\w>/g,"").length)},0),i="+"+Array(n+3).join("-")
+"+";return t=t.map(function(e){var t=n-
e.replace(/<\/?\w>/g,"").length,i=Math.floor(t/2),r=Math.ceil(t/2);return'<span
class="bar">|</span>&nbsp;'+Array(i+1).join("&nbsp;")+e+Array(r+1).join("&nbsp;")
+'&nbsp;<span class="bar">|</span>'}),i+"<br>"+t.join("<br>")+"<br>"+i}function s()
{for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
[];t.firstChild;)t.removeChild(t.firstChild);if(e.length){var
n=document.createDocumentFragment();e.forEach(function(e){var
t=document.createElement("span"),i=e.html;p&&(i=a(e)),t.innerHTML=i,n.appendChild(t
)}),t.appendChild(n)}}function u(){e.events.on(Et.cueChanged,function(e){var
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return
m=t,s(t),t.length?h?void o():void(v=!0):void
r()}).on(Et.captionsChanged,function(e){return e?
(t.setAttribute("lang",e.language),void t.setAttribute("dir",e.rtl?"rtl":"ltr")):
(t.removeAttribute("dir"),void
t.removeAttribute("lang"))}).on(Et.playInitiated,function(){h=!0,v&&(v=!
1,o())}).on(Et.pictureInPictureActivated,function()
{r()}).on(Et.pictureInPictureDeactivated,function(){o()}).on(Tt.reset,function()
{h=!1,r()}).on(Tt.setEffect,function(e){p="ascii"===e,s(m)})}function c()
{i(),window.addEventListener("resize",i,!
1),e.events.on([Et.enteredTinyMode,Et.enteredMiniMode,Et.enteredNormalMode],i)}func
tion l(){e.events.on(Et.controlBarVisibilityChanged,function(e){return e?void
t.classList.add("with-controls"):void t.classList.remove("with-
controls")})}function d(){e.events.on(Et.overlayOpened,function()
{t.classList.add("invisible")}).on(Et.overlayClosed,function()
{t.classList.remove("invisible")})}function f(){e.events.on(Et.ended,function()
{"nothing"!
==e.config.embed.outro&&t.classList.add("invisible")}).on([Et.played,Et.scrubbingSt
arted],function(){t.classList.remove("invisible")})}var h=!1,v=!1,p=!1,m=[];return
u(),c(),l(),d(),f(),{}}function fe(e){function t(){return s&&s-Rn<=(new
Date).getTime()}function n(e){var t=(new Date).getTime()+1e3*e,n=1e3*e-Rn-
5e3;return l=setTimeout(function(){"onLine"in navigator&&!navigator.onLine||
(c=r(a.video.id))},n),t}function i(e){var t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};clearTimeout(l);var i=a;if(isNaN(e)&&"string"!
=typeof e)return a=e,s=n(a.request.expires),_t.resolve({old:i,loaded:a});var r=(new
Date).getTime(),o=a&&a.video&&a.video.id,u=a&&a.request&&a.request.session,c=a&&a.r
equest&&a.request.referrer,d=a&&a.embed&&a.embed.player_id,f=a&&a.embed&&a.embed.on
_site,v=a&&a.embed&&a.embed.context,p=e;return isNaN(e)||!function(){var
n=a&&a.player_url?"https://"+a.player_url:"",i=window.location.search.replace("?","
").split("&").reduce(function(e,t){if(t.length>0){var
n=t.split("="),i=Ot(n,2),r=i[0],o=i[1];e[r]=decodeURIComponent(o)}return e},
{}),r=Object.keys(t).reduce(function(e,n){return
e[n]=t[n],e},i),o=Object.keys(r).map(function(e){return
e+"="+encodeURIComponent(r[e])}).join("&");p=n+"/video/"+e+"/config"+
(o.length>0?"?":"")+o}(),c&&(p+=(p.indexOf("?")===-1?"?":"&")
+"referrer="+encodeURIComponent(c)),h(p,{allowErrorStatuses:!0}).then(function(e)
{a=JSON.parse(e),a.view!
==bt.error&&(s=n(a.request.expires),u&&a.video.id===o&&(a.request.session=u),c&&(a.
request.referrer=c),d&&(a.embed.player_id=d),f&&(a.embed.on_site=1,a.embed.context=
v));(new Date).getTime()-r;return{old:i,loaded:a}})}function r()
{clearTimeout(l);var e=(new
Date).getTime(),t=a&&a.request.referrer,i=a.request,r=i.signature,u=i.session,d=i.t
imestamp,f=i.expires,v="https://"+a.player_url+"/video/"+a.video.id+"/config/reques
t?session="+u+"&signature="+r+"&time="+d+"&expires="+f;return h(v).then(function(i)
{a.request=JSON.parse(i),t&&(a.request.referrer=t),s=n(a.request.expires);(new
Date).getTime()-e;return c=null,o.fire(Et.requestConfigReloaded),a.request})}var
o=e.events,a=null,s=null,u=null,c=null,l=null;return
window.addEventListener("online",function(){t()&&(c=r(a.video.id))}),{get
isExpired(){return t()},load:function(e,t){return i(e,t)},reload:function(){return
a&&a.video.id?i(a.video.id):_t.reject(new Error("No config
loaded."))},toJSON:function(){return a},get config(){return a},set config(e)
{a=e},verify:function(){return t()?(c||(c=r()),c):_t.resolve(a.request)},get
_video(){return u},set _video(e){u=e}}}function he(e){return function(t){return
kt[t.mime]===e}}function ve(e){var t=e.fps;return"metadata"in
e&&(t=e.metadata.fps),t>30}function pe(e){return e.quality||
e.metadata.quality}function me(e){return"string"!=typeof
e&&(e=pe(e)),parseInt(e,10)}function ge(e){return me(e)>=720}function ye(e){var
t=Un(e).filter(ve).map(pe);return function(e){return!(t.indexOf(pe(e))!==-1&&!
ve(e))}}function _e(e){return"fps"in e?e.fps:"metadata"in e&&"fps"in e.metadata?
e.metadata.fps:0}function be(){var e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:"desc";return function(t,n){var
i=me(t),r=_e(t),o=me(n),a=_e(n);return"asc"===e?i-o||r-a:o-i||a-r}}function we(e,t)
{var n=pe(e);return
n=n.replace("1440p","2K").replace("2160p","4K"),ge(e)&&t&&(n+=t),n}function ke(e)
{var t=e.files,n=void 0===t?[]:t,i=e.preference,r=void
0===i?"360p":i,o=e.priorityOffset,a=void 0===o?0:o;n=Un(n),n.sort(be());var
s=n.map(pe);if(r){s.indexOf(r)===-1&&(s.push(r),s.sort(function(e,t){return me(t)-
me(e)}));var u=s.indexOf(r),c=s.splice(0,u);c.reverse(),s.push.apply(s,c)}return
n.map(function(e)
{return{id:e.id,src:e.url,mime:e.mime,priority:s.indexOf(e.quality)+1+a,metadata:
{profile:e.profile,cdn:e.cdn,origin:e.origin,quality:e.quality,fps:e.fps}}})}functi
on Se(e){function t(){A=!1,O=!1,I=!1,q=!1,R=!1,B=!1,U=null,z=null,D=null,W=null,K=!
1,X=0,$=0,Y=e.config.embed.autoplay,H=c(),E=n(),L=e.config.request.urls.blurr,N="au
to",G=null,Q=null,J=!1}function n(){return parseInt(Date.now()/1e3,10)}function i()
{return Date.now?Date.now():(new Date).getTime()}function r(e){return i()-
e}function o(e){return n()-e}function a(){var t=document.createElement("a");return
t.href=e.config.request.referrer,t.origin||t.protocol.replace(":","")
+"://"+t.host}function s(){C=!0,setTimeout(u,P)}function u(t){var n=!0;if(t){if(n=!
1,_&&O&&d("video-buffered",{time:r(w)/1e3,video_time:S}),b&&(O&&!B&&d("video-
stopped-during-playback",{time:r(k)/1e3,video_time:x}),M+=r(k)/1e3),A&&!O){var
i=r(y);i>=1e3&&!e.telecine.paused&&d("video-exit-before-start",{time:i/1e3})}O&&!
e.config.embed.loop&&d("video-playback-session",p(H))}var
o=T;if(T=[],0===o.length)return void s();var
a=JSON.stringify(o);if(navigator.sendBeacon&&navigator.sendBeacon(L,a))return void
s();var u=new XMLHttpRequest;u.open("POST",L,n),u.setRequestHeader("Content-
Type","text/plain"),u.onload=function(){},u.send(a),s()}function c()
{return{account_type:e.config.video.owner?
e.config.video.owner.account_type:null,referrer:e.config.request.referrer,video_dur
ation:e.config.video.duration,device_pixel_ratio:window.devicePixelRatio||
1,startup_time:0,video_start_position:0,video_end_position:0,ended:0,starting_profi
le:0,abandoned_during_buffer:0,forced_embed_quality:"none",dropped_frame_percent:0,
_fullscreen:
[],number_of_down_switches:0,number_of_up_switches:0,number_of_buffers:0,stayed_on_
auto:1,alert_displayed:0,telecine_file_switched:0,telecine_scanner_switched:0,manif
est_timeouts:0,alert_dismissed:"none",_speeds:[],_playedProfiles:
{},_targetProfiles:{},_embed_size:{},_target_profile_id:{},_profiles:
{},session_playback_duration:0}}function l(){var t=e.telecine.video.currentFile||
{},n=t.id,i=void 0===n?0:n,r=t.mime,o=void 0===r?St.h264:r,a=t.metadata;a=void
0===a?{}:a;var s=a.profile,u=void 0===s?-1:s,c=!1,l=!1;switch(o){case
St.dash:0===t.restrictedStreamIndexes.length&&(c=!
0),e.config.request.files.dash.separate_av&&(l=!0);var d=V,f=d.id;i=void 0===f?
0:f;var h=d.profile;u=void 0===h?-1:h;break;case St.hls:c=!0}var
v={session_id:e.config.request.session,clip_id:e.config.video.id,video_file_id:Numb
er.isInteger(Number(i))?
parseInt(i,10):0,delivery:kt[o],profile_id:u,auto:Number(c),player_type:"html",vers
ion:e.config.request.build.js,autoplay:Y,cdn:t.meta
data.cdn||"akamai",origin:t.metadata.origin,secure:t.src&&0===t.src.indexOf("https"
),vod:e.config.video.vod?1:0,embed:!
e.config.embed.on_site,context:e.config.embed.context,separate_av:l?
1:0,is_mod:e.config.user.mod?1:0,is_beta:e.config.build.player.indexOf("beta")>=0?
1:0,is_spatial:tn.spatialPlayback&&e.config.video.spatial?
1:0,is_stereo:tn.spatialPlayback&&e.config.video.stereo_mode&&"mono"!
==e.config.video.stereo_mode?1:0,drm:e.config.request.drm?
1:0,email_overlay:J};if(e.config.request.ab_tests)for(var p in
e.config.request.ab_tests)v[p+"_test"]=1,v[p+"_group"]=e.config.request.ab_tests[p]
.group;return v}function d(t,n){var i=l();for(var r in
n)n.hasOwnProperty(r)&&(i[r]=n[r]);i.name=t,i.event_time=e.config.request.timestamp
+o(E),T.push(i),C||s()}function f(){var
t=e.config.video.duration;if(e.config.request.flags.blurr&&L)
{e.events.on(Et.playInitiated,function(){A||
e.performDelegateAction(wt.playLog,function(n){var r=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};Y=r.continuous?2:e.config.embed.autoplay,d("video-
start-attempt"),A=!0,y=i();var o=e.config.user.progress,a=e.config.video.duration;!
o||e.config.embed.autoplay||e.config.embed.time||setTimeout(function(){var
e=o/a*100,n=t<o?"seeked_back":"resume";n=0===t?"beginning":n,d("video-start-
attempt-from-resume",
{state:n,duration:a,percent:e,playback_time:t,resume_time:o})},1e4)})}),e.events.on
(Et.playProgress,function(e){if(t=Math.min(e,t),!O){O=!0;var
n=r(y)/1e3,i={time:n};G&&(i.akamai_edge_ip=G),Q&&(i.quic_version=Q),d("video-start-
time",i),H.startup_time=n,H.video_start_position=e}}),e.events.on(Et.bufferStarted,
function(){w||(S=e.telecine.currentTime,w=i()),_=!
0}),e.events.on(Et.bufferEnded,function(){return _=!1,O?(d("video-buffered",
{time:r(w)/1e3,video_time:S}),void(w=null)):void(w=null)}),e.events.on(Et.ranIntoBu
ffer,function(t){k||(x=e.telecine.currentTime,k=i()),b=!0,t&&(j=!
0)}),e.events.on(Et.playbackResumed,function(){return!O||B?void(k=null):
(M+=r(k)/1e3,B=!0,d("video-stopped-during-playback",
{time:r(k)/1e3,video_time:x}),k=null,void(b=!1))}),e.events.on(Et.error,function(e)
{arguments.length>1&&void 0!==arguments[1]?arguments[1]:{final:!0};return"scanner-
error"===e?void(H.telecine_scanner_switched=1):"telecine-file-error"===e?
void(H.telecine_file_switched=1):void 0}),e.events.on(Et.error,function(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{final:!0};if(n.final!==!
1){var i=["not-supported","decode","network","unknown","drm-failure","telecine-
download-error"],r=i.indexOf(t)!==-1;return O?void(r&&d("video-playback-error",
{type:t,video_time:e.telecine.currentTime})):A?void(r&&d("video-start-failure",
{type:t})):void(r&&d("video-load-failure",
{type:t}))}}),e.events.on(Et.didEnterFullscreen,function(e,t){I||(d("video-enter-
fullscreen",{fullPlayer:e,requested:t,referrer:a()}),I=!
0)}),e.events.on(Et.droppedFrames,function(e)
{H.dropped_frame_percent=e.dropped/e.total*100}),e.events.on(Et.segmentDownloaded,f
unction(e){var t=(e.identifier,e.data.headers);"akamai-edge-ip"in t&&(G=t["akamai-
edge-ip"]),"quic-version"in t&&(Q=t["quic-version"]),"x-vim-cachebc"in
t&&(H.akamai_cache_debug=t["x-vim-cachebc"])});var n=new _t(function(t,n)
{e.telecine&&t(),e.events.on(Et.telecineReady,function(){t()})});n.then(function()
{e.telecine.on("manifesttimeout",function()
{H.manifest_timeouts+=1})}).catch(function(){}),F(u)}}function h()
{e.events.on(Tt.changeQuality,function(t)
{e.telecine.video.currentFile.mime===St.dash&&("auto"===t||q?"auto"===t&&q&&!
R&&(d("video-switch-back-to-auto",{quality:N,auto:1}),R=!0):(d("video-switch-from-
auto",{quality:t,auto:0}),q=!0),N=t)}),e.events.on(Et.streamChanged,function(e)
{V=e})}function v(){function t(e,t){return e+":"+t}function n(e)
{H._embed_size[e]=H._embed_size[e]||0,W=e}e.events.on(Et.playInitiated,function()
{W=t(e.config.video.video_width,e.config.video.video_height),n(W)}),e.events.on(Et.
playProgress,function(e){H._embed_size[W]+=1,K||(K=!0,X=e),
$=e,H.video_end_position=e}),e.events.on(Tt.seek,function(){K=!
1,H.session_playback_duration+=$-X}),e.events.on(Et.seeked,function(e)
{X=e}),e.events.on(Et.ended,function(t){K&&(K=!
1),H.session_playback_duration+=e.config.video.duration-
X,H.video_end_position=e.config.video.duration,H.ended=1,t&&t.simulated&&(H.ended=2
)}),e.events.on(Et.didEnterFullscreen,function(e,t)
{H._fullscreen.push({start:i()})}),e.events.on(Et.didExitFullscreen,function(e,t)
{var n=H._fullscreen.length-
1;H._fullscreen[n].end=i()}),e.events.on(Et.adaptiveBandwidth,function(e){var
t=e.speed;H._speeds.push(t)}),e.events.on(Et.streamChanged,function(e,t,n){var
r=e.profile,o=i(),a=n[t].bitrate;if(H._profiles[r]=H._profiles[r]||
[],H.starting_profile||(H.starting_profile=r),U){var s=H._profiles[U].length-
1;H._profiles[U][s]&&(H._profiles[U][s].end=o)}D&&(a>D?
H.number_of_up_switches+=1:H.number_of_down_switches+=1),H._profiles[r].push({start
:o}),H._playedProfiles[r]={bitrate:a,width:n[t].width,height:n[t].height},U=r,D=a})
,e.events.on(Et.ranIntoBuffer,function(e)
{H.number_of_buffers+=1,H.abandoned_during_buffer=1}),e.events.on(Tt.changeQuality,
function(e){"auto"!
==e&&(H.stayed_on_auto=0)}),e.events.on(Et.playbackResumed,function()
{H.abandoned_during_buffer=0}),e.events.on(Et.resize,function(e){var
i=e.width,r=e.height;if(i&&r){var
o=t(i,r);n(o)}}),e.events.on(Et.streamTargetChange,function(e,t,n){var
r=e.profile,o=n[t].bitrate,a=i();if(H._target_profile_id[r]=H._target_profile_id[r]
||[],z){var s=H._target_profile_id[z].length-1;H._target_profile_id[z]
[s]&&(H._target_profile_id[z]
[s].end=a)}H._target_profile_id[r].push({start:a}),H._targetProfiles[r]={bitrate:o,
width:n[t].width,height:n[t].height},z=r}),e.events.on(Et.forcedQuality,function(e)
{H.forced_embed_quality=e}),e.events.on(Et.alertVisibilityChanged,function(e,t)
{return e?void(H.alert_displayed=1):void(H.alert_dismissed=t)})}function p(t){var
n={},r=i(),o=be("asc"),a="MediaSourceScanner"===e.telecine.currentScanner,s="HTMLSc
anner"===e.telecine.currentScanner,u=[];s&&(u=e.config.request.files.progressive),a
&&(u=e.config.request.files.dash.streams);var c=Un(u).sort(o).map(function(e)
{return e.profile});for(var l in
t)t.hasOwnProperty(l)&&(n[l]=t[l]);n.seconds_in_fullscreen=n._fullscreen.reduce(fun
ction(e,t){var n=t.end||r;return(n-
t.start)/1e3+e},0),n.session_playback_duration+=$-X;var
d=null;if(Object.keys(n._embed_size).forEach(function(e){var
t=n._embed_size[e];t>d&&(d=e)}),d){var
f=d.split(":"),h=Ot(f,2),v=h[0],p=h[1];n.embed_width=parseInt(v,10),n.embed_height=
parseInt(p,10)}var m=-1,g=0,y=null;if(Object.keys(n._profiles).forEach(function(e)
{var t=c.indexOf(parseInt(e,10));t>m&&(m=t);var
i=n._profiles[e].reduce(function(e,t){var n=t.end||r;return(n-
t.start)/1e3+e},0);i>g&&(g=i,y=e)}),n.highest_profile=c[m],n.highest_available_prof
ile=c[c.length-
1],n.most_used_profile=parseInt(y,10),n.percent_watched=n.session_playback_duration
/e.config.video.duration,a&&!function()
{n.max_speed=Math.round(Math.max.apply(Math,n._speeds))/1e3,n.min_speed=Math.round(
Math.min.apply(Math,n._speeds))/1e3;var e=n._speeds.reduce(function(e,t){return
e+t},0);n.average_speed=Math.round(e/n._speeds.length)/1e3;var
t=0,i=null;Object.keys(n._target_profile_id).forEach(function(e){var
o=n._target_profile_id[e].reduce(function(e,t){var n=t.end||r;return(n-
t.start)/1e3+e},0);o>t&&(t=o,i=e)}),n.target_profile=parseInt(i,10);var
o=[];Object.keys(n._playedProfiles).forEach(function(e){var
t=n._playedProfiles[e],i=t.width,r=t.height,a=parseInt(i,10)*parseInt(r,10);o.push(
a)});var a=o.reduce(function(e,t){return
e+t},0)/o.length,s=[];Object.keys(n._targetProfiles).forEach(function(e)
{s.push(n._targetProfiles[e].bitrate)});var u=s.reduce(function(e,t){return
e/1e3+t/1e3},0)/s.length,c=[];Object.keys(n._targetProfiles).forEach(function(e)
{var t=n._targetProfiles[e],i=t.width*t.height;c.push(i)});var
l=c.reduce(function(e,t){return
e+t},0)/c.length,d=n._playedProfiles[n.most_used_profile],f=d.width,h=d.height,v=f*
h,p=Math.min(v,l),m=a*u/
(p*Math.min(n.average_speed,u));n.appdex=m,n.rPlayed=a,n.bMax=u,n.rMax=p,n.buffered
WithLowerProfileAvailable=j,n.number_of_switches=n.number_of_up_switches+n.number_o
f_down_switches}(),"undefined"!=typeof window.performance&&"function"==typeof
window.performance.getEntriesByType){var
_=window.performance.getEntriesByType("resource");if(_){var b=_.filter(function(e)
{return".m4s"===e.name.split("?")[0].substr(-4)});n.ttfb=b.map(function(e){return
e.responseStart-e.connectStart}).reduce(function(e,t){return e+t},0)/(b.length||
1)}}return n.buffer_duration=M,n.buffer_ratio=M/
(M+n.session_playback_duration)*100,Object.keys(n).forEach(function(e)
{"_"===e.charAt(0)&&delete n[e]}),n}function m()
{e.events.on(Et.configChanged,function(){t()})}function g()
{e.events.on(Tt.showOverlay,function(e){"email-capture"===e&&(J=!
0)}),e.events.on(Et.overlayClosed,function(e){"email-capture"===e&&(J=!1)})}var
y,_,b,w,k,S,x,T=[],E=n(),L=e.config.request.urls.blurr,P=3e4,C=!1,A=!1,O=!1,M=0,I=!
1,q=!1,R=!1,B=!1,D=null,j=!1,N="auto",V={},H=c(),U=null,z=null,W=null,K=!
1,X=0,$=0,Y=e.config.embed.autoplay,G=null,Q=null,J=!1;return f(),h(),v(),m(),g(),
{}}function xe(e){function t(){return Date.now?Date.now():(new
Date).getTime()}function n(){return e.config.video.spatial?"mono"!
==e.config.video.spatial.stereo_mode?2:1:0}function i(){var
t=e.telecine.getEffectByName("ThreeSixtyEffect");return tn.spatialPlayback&&t?
t.isStereo()?2:1:0}function r(){h=!1,v=e.telecine?
e.telecine.currentTime:0,m=0,g=0,y=0,_=!1}function o(t,n,i,r)
{e.verifyConfig().then(function(){var
a=n;a.signature=e.config.request.signature,a.session=e.config.request.session,a.tim
e=e.config.request.timestamp,a.expires=e.config.request.expires;var
s=JSON.stringify(a),u="https://"+e.config.player_url+t;if(navigator.sendBeacon&&nav
igator.sendBeacon(u,s))return!0;var c=new XMLHttpRequest;return c.open("POST",u,!
i),c.setRequestHeader("Content-Type","text/plain;charset=UTF-
8"),c.withCredentials=!0,c.onload=function(){200!
==c.status&&r<2&&setTimeout(function()
{o(t,n,i,r+1)},1e3)},c.send(s),c}).catch(function(e){})}f
unction a(t,r,a){var s=e.telecine.currentFile||{},u=s.id,c=void 0===u?
0:u,l=s.mime,d=void 0===l?St.h264:l,f=s.metadata;f=void 0===f?{}:f;var
h=f.profile,v=void 0===h?-1:h;if(d===St.dash){var g=S,y=g.id;c=void 0===y?0:y;var
_=g.profile;v=void 0===_?-1:_}e.performDelegateAction(wt.playLog,function(u){var
l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(t,
{referrer:e.config.request.referrer,embed:!
e.config.embed.on_site,context:e.config.embed.context,autoplay:l.continuous?
2:e.config.embed.autoplay,loop:e.config.embed.loop?
1:0,id:e.config.video.id,vodId:e.config.video.vod&&e.config.video.vod.id?
e.config.video.vod.id:null,vodSaleId:e.config.video.vod&&e.config.video.vod.sale_id
?
e.config.video.vod.sale_id:null,sessionTime:p(m),videoShape:n(),spatialPlayback:i()
,userId:e.config.user.id,userAccountType:e.config.user.account_type,userIsMod:e.con
fig.user.mod?
1:0,ownerId:e.config.video.owner.id,ownerAccountType:e.config.video.owner.account_t
ype,privacy:e.config.video.privacy,rating:e.config.video.rating?
e.config.video.rating.id:null,type:xt[e.telecine.currentScanner],videoFileId:Number
.isInteger(Number(c))?
c:0,delivery:kt[d],profileId:v,quality:s.metadata.quality,duration:p(e.config.video
.duration),seconds:p(r)},a)})}function s(){!_&&e.playLoggingEnabled&&(_=!
0,a("/log/play",0))}function u(){var n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!
(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e.playLoggingEnabled)
{var o=t();r&&g+k>o||(g=o,r&&!e.config.request.flags.partials||h||
a("/log/partial",n,i))}}function c(t,n){if(!e.doNotTrackEnabled){n=n||{};var
i={referrer:e.config.request.referrer,embed:!
e.config.embed.on_site,context:e.config.embed.context,id:e.config.video.id,vodId:e.
config.video.vod&&e.config.video.vod.id?
e.config.video.vod.id:null,vodSaleId:e.config.video.vod&&e.config.video.vod.sale_id
?
e.config.video.vod.sale_id:null,userId:e.config.user.id,userAccountType:e.config.us
er.account_type,ownerId:e.config.video.owner?
e.config.video.owner.id:0,duration:p(e.config.video.duration),seconds:p(e.telecine.
currentTime)};for(var r in
n)n.hasOwnProperty(r)&&(i[r]=n[r]);o("/log/"+t,i)}}function l(){function n(){var
t=e.telecine.getEffectByName("ThreeSixtyEffect").currentCoordinates,i=100,o=Math.ro
und(t.lat*i)/i,s=Math.round(t.long*i)/i,u={sessionTime:m,videoTime:e.telecine.curre
ntTime,coordinates:{lat:o,lon:s}};r.push(u),setTimeout(function()
{a&&n()},c)}function i(){r.length&&e.performDelegateAction(wt.playLog,function(t)
{arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o("/log/spatial",
{embed:!
e.config.embed.on_site,id:e.config.video.id,context:e.config.embed.context,ownerId:
e.config.video.owner?
e.config.video.owner.id:0,referrer:e.config.request.referrer,vodId:e.config.video.v
od&&e.config.video.vod.id?
e.config.video.vod.id:null,vodSaleId:e.config.video.vod&&e.config.video.vod.sale_id
?e.config.video.vod.sale_id:null,motionLog:JSON.stringify(r)},!
1)})}e.events.on(Et.playProgress,function(e,n,i){var r=Math.floor(e);!
h&&y+k<t()&&(e>v&&(m+=e-v),v=e),r
%b===0&&u(e)}),e.events.on(Et.playInitiated,function()
{s()}),e.events.on(Et.paused,function(t){e.telecine.ended||
u(t)}),e.events.on(Et.seeked,function(e,t,n){w=e,h||
u(w)}),e.events.on(Et.scrubbingStarted,function(){y=t(),h=!
0}),e.events.on(Et.scrubbingEnded,function(){v=e.telecine.currentTime,h=!
1,u(w)}),e.events.on(Et.hdButtonPressed,function()
{u(e.telecine.currentTime)}),e.events.on(Et.ended,function()
{m+=e.config.video.duration-v;var t=!1,n=!
1;u(e.config.video.duration,t,n)}),e.events.on(Et.streamChanged,function(e)
{S=e});var r=[],a=!1,c=1e3;e.events.on(Et.spatialMotionStart,function(){a=!
0,n()}),e.events.on(Et.spatialMotionEnd,function(){a=!
1,i()}),e.events.on(Et.loadVideo,function(){i(),r=[]}),F(function()
{if(e.telecine&&e.telecine.currentTime>0){var t=!0,n=!
1;u(e.telecine.currentTime,t,n),i()}})}function d(){function t(e){return function()
{c(e)}}if(!e.doNotTrackEnabled){var
n=[{type:"share_press",event:Et.shareButtonPressed},
{type:"facebook_press",event:Et.facebookButtonPressed},
{type:"twitter_press",event:Et.twitterButtonPressed},
{type:"tumblr_press",event:Et.tumblrButtonPressed},
{type:"email_press",event:Et.emailButtonPressed},
{type:"embed_press",event:Et.embedButtonPressed},
{type:"login_success",event:Et.userLoggedIn},
{type:"airplay",event:Et.airPlayActivated},
{type:"vod_press",event:Et.vodButtonPressed},
{type:"collection_press",event:Et.collectionsButtonPressed},
{type:"email_capture_submitted",event:Et.emailCaptureSubmitted}];n.forEach(function
(n){e.events.on(n.event,t(n.type))}),e.events.on(Et.outroDisplayed,function(t,n)
{var
i={outroType:e.config.embed.outro,ownerAccountType:e.config.video.owner.account_typ
e,playerWidth:e.element.clientWidth,playerHeight:e.element.clientHeight,outroVersio
n:n};t&&t.length&&(i.outroVideos=t.join(",")),c("outro_displayed",i)}).on(Et.outroV
ideoPressed,function(t,n){c("outro_video_press",
{ownerAccountType:e.config.video.owner.account_type,videoId:t,outroVersion:n})}).on
(Et.followButtonPressed,function(){c("outro_follow_press",{add:!
e.config.user.following})}).on(Et.outroCtaPressed,function(t,n)
{c("outro_cta_press",
{ownerAccountType:e.config.video.owner.account_type,link:t,outroVersion:n})}).on(Et
.outroLinkPressed,function(t,n){c("outro_link_press",
{ownerAccountType:e.config.video.owner.account_type,link:t,outroVersion:n})}).on(Et
.outroImagePressed,function(t,n){c("outro_image_press",
{ownerAccountType:e.config.video.owner.account_type,link:t,outroVersion:n})}).on(Et
.likeButtonPressed,function(){c("like_press",{add:!
e.config.user.liked})}).on(Et.watchLaterButtonPressed,function()
{c("watch_later_press",{add:!
e.config.user.watch_later})}).on(Et.popupOpened,function(e)
{0===e.indexOf("login-")&&c("login_attempt")}).on(Et.captionsChanged,function(e,t)
{if(!t)return e?void c("text_track_change",
{textTrackLanguage:e.language,textTrackKind:e.kind}):void
c("text_track_change")}).on(Et.badgePressed,function(e){1!==e&&12!==e||
c("badge_press",{badgeId:e})}).on(Et.overlayOpened,function(e){"email-
capture"===e&&c("email_capture_displayed")}).on(Et.overlayClosed,function(e)
{"email-capture"===e&&c("email_capture_dismissed")}).on(Et.cardPressed,function(t)
{c("card_press",
{ownerAccountType:e.config.video.owner.account_type,cardId:t,cardType:"link"})}).on
(Et.cardDisplayed,function(t,n){e.config.embed.editor||c("card_displayed",
{ownerAccountType:e.config.video.owner.account_type,cardId:t,cardType:n.url?"link":
"text"})})}}function f(){e.events.on(Et.configChanged,function(e){e&&r()})}var
h,v,m,g,y,_,b=30,w=0,k=1e3,S={};return
r(),l(),d(),f(),e.events.fire(Et.statsModuleReady),{}}function Te(e){return e===!
0||e===!1?Number(e):"null"===e?null:e}function Ee(e){var t=arguments.length>1&&void
0!==arguments[1]?arguments[1]:document.cookie;try{if(t&&""!==t)return
t.split(";").reduce(function(t,n){return n=n.trim(),0===n.indexOf(e+"=")?
decodeURIComponent(n.substr(e.length+1)):t},null)}catch(e){}return null}function
Le(e,t,n){var i=new Date;i.setFullYear(i.getFullYear()
+1),i=i.toGMTString(),t=Te(t);var
r=e+"="+t+";";r+="expires="+i+";",r+="path=/;",r+="domain="+n+";";try{return
document.cookie=r,!0}catch(e){return!1}}function Pe(e){function t(t){return new
_t(function(n,i){var
r=document.createElement("a");r.href=e.config.request.urls.proxy;var
o=document.createElement("iframe");o.src=t,o.setAttribute("title","Vimeo
LocalStorage Proxy"),o.setAttribute("aria-
hidden","true"),o.setAttribute("hidden",""),o.onload=function(t){var
n=a(e.config.request.urls.proxy);o.contentWindow.postMessage({method:"ping"},n)},o.
onerror=function(e){i(e)};var s=setTimeout(function(){i()},1e4),u=function e(i){0!
==t.indexOf(i.origin)||"ready"!==i.data&&"ping"!==i.data||
(window.removeEventListener("message",e,!
1),clearTimeout(s),n(o))};window.addEventListener("message",u,!
1),document.body.appendChild(o)})}function n(){_&&!
Wn&&(Wn=t(e.config.request.urls.proxy))}function i(t){return Wn.then(function(n)
{var i=a(e.config.request.urls.proxy);return
n.contentWindow.postMessage(t,i),n}).catch(function(t){e.reportError(t,{extra:
{proxyUrl:e.config.request.urls.proxy}})})}function r(t)
{e.config.embed.on_site&&window.postMessage(t,window.location.origin)}function
o(t,n){if(Wn){var
o={method:"set",key:"sync_"+t,val:n,session:e.config.request.session};return
i(o),void
r(o)}try{window.localStorage.setItem("sync_"+t,JSON.stringify(n))}catch(e)
{}}function s(t,n){zn.indexOf(t)>=0&&(e.config.request.cookie[t]=n);var
i=[];zn.indexOf(t)>=0&&null!==n&&i.push(t+"="+n);var r=u(zn);for(var o in r)o in
r&&null!==r[o]&&o!==t&&i.push(o+"="+r[o]);Le("player",'"'+i.join("&")
+'"',e.config.request.cookie_domain)}function u(e){var
t=null;try{t=Ee("player")}catch(e){}if(!t)return null;t=t.substring(1,t.length-
1);var n={};t.split("&").forEach(function(e)
{e=e.split("="),n[e[0]]=Te(decodeURIComponent(e[1]||""))});var
i=[].concat(e),r=i.reduce(function(e,t){if(t in n){var i=parseFloat(n[t]);return
e[t]=isNaN(i)||"quality"===t?n[t]:i,e}return e[t]=null,e},{});return 1===i.length?
r[e]:r}function c(e,t){t=Te(t),o(e,t),s(e,t)}function l(t,n){var i=!0;switch(t)
{case"sync_quality":e.events.fire(Tt.changeQuality,n,i);break;case"sync_volume":e.e
vents.fire(Tt.changeVolume,n,i);break;case"sync_captions":if(null===n)
{e.events.fire(Tt.turnCaptionsOff,i);break}e.events.fire(Tt.turnCaptionsOn,n,i);bre
ak;case"sync_login":d(n);break;case"sync_active":null!==n&&n!
==e.config.request.session&&e.config.embed.autopause&&e.events.fire(Et.becameInacti
ve)}}function d(t){b>4||(b++,t&&!e.config.user.logged_in?
e.events.fire(Et.userLogIn):!
t&&e.config.user.logged_in&&e.events.fire(Et.userLoggedOut))}function f()
{c("login",!!e.config.user.logged_in)}function h()
{e.events.on(Et.qualityChanged,function(e,t){t||c("quality",e)})}function v()
{e.events.on(Et.volumeChanged,function(t,n)
{e.config.request.cookie.volume=Te(t),n||c("volume",t)})}function p()
{e.events.on(Et.captionsChanged,function(t,n){if(t){var
i=t.language+"."+t.kind;return e.config.request.cookie.captions=Te(i),void(n||
c("captions",i))}e.config.request.cookie.captions=null,n||
c("captions",null)})}function m(){e.events.on(Et.playButtonPressed,function()
{e.config.embed.settings.background||
(c("active",e.config.request.session),e.events.fire(Et.becameActive))}),e.events.on
([Et.pauseButtonPressed,Et.ended],function()
{u("active")===e.config.request.session&&c("active",null)})}function g()
{e.events.on(Et.userLoggedIn,function(){c("login",!0)})}function y(){return _?void
window.addEventListener("message",function(t){var
n=a(e.config.request.urls.proxy);t.origin===n&&"object"===Lt(t.data)&&"key"in
t.data&&"newValue"in t.data?
l(t.data.key,t.data.newValue):t.origin===window.location.origin&&t.data.session!
==e.config.request.session&&l(t.data.key,t.data.val)},!1):void
window.addEventListener("storage",function(t)
{if(0===t.key.indexOf("sync_")&&t.oldValue!
==t.newValue&&window.localStorage.getItem(t.key)===t.newValue)try{l(t.key,JSON.pars
e(t.newValue))}catch(n){e.reportError(n,{extra:
{key:t.key,oldValue:t.oldValue,newValue:t.newValue}})}},!1)}var _=0!
==e.config.request.urls.proxy.indexOf(window.location.origin),b=0;return
h(),v(),p(),m(),g(),n(),y(),{reset:f}}function Ce(e){var t=arguments.length>1&&void
0!==arguments[1]?arguments[1]:null,n={feature:t,$deeplink_path:Xn+e,
$always_deeplink:!0,ref:"player",context:"player"},i="",r=[];for(var o in
n)r.push(encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return
i=r.join("&"),"https://bnc.lt/a/"+$n+"?"+i}function Ae(e,t){return
Ce("videos/"+e,t)}function Oe(e){e=e||{};var t={};return e.on=function(n,i)
{n=[].concat(n);for(var r=0,o=n.length;r<o;r++){var a=n[r];if(!a)throw new
Error("Tried to listen for an undefined event.");t[a]||
(t[a]=[]),t[a].push(i)}return e},e.once=function(t,n){function i()
{n.apply(e.off(t,i),arguments)}return i.handler=n,e.on(t,i)},e.off=function(n,i)
{n=[].concat(n);for(var r=0,o=n.length;r<o;r++){var a=n[r];if(!a)throw new
Error("Tried to remove an undefined event.");if(a in t){var
s=t[a].indexOf(i);if(s===-1){
for(var u=0,c=t[a].length;u<c;u++)if(t[a][u].handler===i){s=r;break}if(s===-
1)return e}t[a].splice(s,1)}}return e},e.fire=function(n){if(!n)throw new
Error("Tried to fire an undefined event.");if(n in t)for(var
i=t[n].slice(0),r=0,o=i.length;r<o;r+
+)i[r].apply(e,i.slice.call(arguments,1));return e},e}function Me(e,t,n){var i=void
0;try{document.removeChild({})}catch(r){i=Object.create(Object.getPrototypeOf(r),
{name:{value:t,configurable:!0,writable:!0},code:{value:e,configurable:!
0,writable:!0},message:{value:n,configurable:!0,writable:!0},toString:
{value:function(){return t+": DOM Exception "+e},configurable:!0,writable:!
0}})}return Object.freeze(i)}function Fe(e,t){var n,i=0;return
n={},Ri(n,Oi.iterator,function(){return this}),Ri(n,"next",function()
{if(i<e.length){var n=t?[e[i],t[i++]]:e[i++];return{done:!1,value:n}}return{done:!
0}}),n}function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
[];return e.getFileById=Yi,e}function qe(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:[];return e.item=function(e){return
this[e]},e.getTrackById=Yi,e}function Re(e,t){for(var
n=e,i=Array.isArray(n),r=0,n=i?n:n[Oi.iterator]();;){var o;if(i)
{if(r>=n.length)break;o=n[r++]}else{if(r=n.next(),r.done)break;o=r.value}var
a=o,s=Vi(a,2),u=s[0],c=s[1];if(u<=t&&c>=t)return[u,c]}return[]}function Be()
{return"undefined"!=typeof window.performance&&"function"==typeof
window.performance.now?window.performance.now():Date.now()}function De()
{return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e)
{return(e^(16*Math.random()>>e)/4).toString(16)})}function je(e){for(var
t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r+
+)i[r]=t.charCodeAt(r);return i}function Ne(e){return je(e).buffer}function Ve(e)
{for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),i=0,r=e.length;i<r;i+
+)n[i]=e.charCodeAt(i);return n}function He(e){return setTimeout(e,0)}function
Ue(e,t,n,i){var r=0,o=0,a=0,s=0,u=e,c=t,l=n/i,d=u/c;return d>=l?
(o=c,r=(l*c).toFixed(2)):(r=u,o=(u/l).toFixed(2)),a=Math.max((u-
r)/2,0),s=Math.max((c-o)/2,0),{width:r,height:o,left:a,top:s}}function ze(){var
e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return
Object.freeze(Ri({get length(){return e.length},start:function(t){return
Gi(e,t)},end:function(e){return Gi(t,e)}},Oi.iterator,function(){return
Fe(e,t)}))}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:[];if(0===e.length)return 0;for(var n=0,i=0,r=0;r<e.length;r++){var
o=t[r]||1;i+=o,n+=e[r]*o}return n/i}function Ke(e,t)
{if(e.sort(),0===e.length)return 0;if(t<=0)return e[0];if(t>=1)return e[e.length-
1];var n=e.length*t,i=Math.floor(n),r=i+1,o=n%1;return r>=e.length?e[i]:e[i]*(1-o)
+e[r]*o}function Xe(e){e.sort(function(e,t){return e-t});var
t=Math.floor(e.length/2);return e.length%2?e[t]:(e[t-1]+e[t])/2}function $e(e)
{return e?e.split("\n").reduce(function(e,t){var
n=t.indexOf(":"),i=t.substring(0,n),r=t.substring(n+1);return"undefined"!=typeof
i&&"undefined"!=typeof r&&(e[i.trim().toLowerCase()]=r.trim()),e},{}):{}}function
Ye(e){e=e||{};var t={};return e.on=function(n,i){n=[].concat(n);for(var
r=0,o=n.length;r<o;r++){var a=n[r];if(!a)throw new Error("Tried to listen for an
undefined event.");t[a]||(t[a]=[]),t[a].push(i)}return e},e.once=function(t,n)
{function i(){n.apply(e.off(t,i),arguments)}return
i.handler=n,e.on(t,i)},e.off=function(n,i){n=[].concat(n);for(var
r=0,o=n.length;r<o;r++){var a=n[r];if(!a)throw new Error("Tried to remove an
undefined event.");if(a in t){var s=t[a].indexOf(i);if(s===-1){for(var
u=0,c=t[a].length;u<c;u++)if(t[a][u].handler===i){s=r;break}if(s===-1)return
e}t[a].splice(s,1)}}return e},e.fire=function(n){if(!n)throw new Error("Tried to
fire an undefined event.");if(n in t)for(var i=t[n].slice(0),r=0,o=i.length;r<o;r+
+)i[r].apply(e,i.slice.call(arguments,1));return e},e}function Ge(e,t){function n()
{e.events.fire(Et.bufferStarted,{initial:!0}),le=!0,ue=!0}function i()
{ue&&(e.events.fire(Et.bufferEnded),le=!1,ue=!1)}function r(t)
{$.classList.remove("invisible"),X.style.backgroundImage="none",e.events.fire(Et.pl
ayInitiated),n()}function a(){var t="disable"!
==e.config.video.privacy&&e.config.video.spatial&&tn.iOS&&!Me;if(t||
$.classList.remove("invisible"),we)return e.events.fire(Et.error,we),void
d();if(te=!0,ne=!0,Se)return void d();if(Y.off("play",r),!re)
{if(e.config.video.spatial&&tn.iOS&&!Me)return Me=!
0,e.events.fire(Tt.showOverlay,"app-redirect",
{redirectUrl:e.doNotTrackEnabled?"https://itunes.apple.com/us/app/apple-
store/id425194759?mt=8":Ae(e.config.video.id,"player-spatial-
redirect"),title:null,buttonText:"Watch in the Vimeo
app",ignoreText:null,bottomText:"360 not supported in this browser",newWindow:!
e.config.embed.on_site}),void
Y.once("play",r);e.events.fire(Et.playInitiated),n(),re=!0,Y.play(),!
e.config.user.progress||J||!e.config.embed.settings.playbar||
e.config.embed.autoplay||e.config.embed.time||
(Y.currentTime=e.config.user.progress,e.config.user.progress=0)}"android_inline"in
e.config.request.flags&&tn.mobileAndroid&&(Z=!
e.config.request.flags.android_inline),e.config.embed.cards&&e.config.embed.cards.l
ength&&(tn.mobileAndroid||tn.iOS>=10)&&(Z=!1),Z&&(Te=!
0,e.events.fire(Tt.forceFullscreen)),me&&s()}function s(){he||Se||(le=!1,ve=!
1,ne&&Y.paused&&(K&&(Y.currentTime=K,K=null),Y.play()))}function c(e,t){var
n=e.length-1;if(e.length>1)for(var i=0,r=e.length;i<r;i+
+)if(e.start(i)<=t&&e.end(i)>=t){n=i;break}return n}function l(t){if(!
_e&&Y.buffered&&Y.buffered.length>0){t=t||Y.currentTime;var
n=c(Y.buffered,t),i=Y.buffered.end(n),r=i/Y.duration;if(e.events.fire(Et.loadProgre
ss,i,Y.duration,r),ue&&ne&&i===Y.duration)return void s()}}function d()
{X.style.backgroundImage="url("+X.getAttribute("data-thumb")+")"}function f(t)
{for(var n=t.target,i=n.activeCues,r=[],o=void 0,a=0,s=i.length;a<s;a++)""!
==i[a].text.replace(/^\s+|\s+
$/gm,"")&&(o=document.createElement("span"),o.appendChild(i[a].getCueAsHTML()),r.pu
sh({html:o.innerHTML.replace("\n","<br>"),text:i[a].text}));e.events.fire(Et.cueCha
nged,n,r)}function h(){var t=void 0,n=void
0;e.config.request.ab_tests&&e.config.request.ab_tests.bba&&(n=e.config.request.ab_
tests.bba.group);var i=50;tn.spatialPlayback&&e.config.video.spatial&&(i=35);var
r=[Ur,gr,Kr];Y=new no($,r,{externalDisplays:[AirPlayExternalDisplay],swfScanner:
{swfUrl:e.config.request.urls.flideo},mediaSourceScanner:
{maxPreloadStreamIndex:t,shouldUseBBA:n,droppedFrameSwitchPercent:i},tests:e.config
.request.ab_tests}),Zi.forEach(function(t){"timeupdate"!==t&&"progress"!
==t&&"suspend"!==t&&"error"!==t&&Y.on(t,function(){var n=arguments.length>0&&void
0!==arguments[0]?arguments[0]:{};e.addBreadcrumb(t,n,"video
event")})}),Y.on("scannerchange",function(){v(),setTimeout(function()
{e.events.fire(Y.supportsSettingVolume?
Tt.enableVolume:Tt.disableVolume),e.events.fire(Y.supportsTextTracks?
Tt.enableCaptions:Tt.disableCaptions)},0),e.addBreadcrumb("Scanner changed to
"+Y.currentScanner,{},"video")}),Y.on("currentfilechange",function(t)
{e.addBreadcrumb("Current file changed",
{id:t.id,mime:t.mime,src:t.src,metadata:t.metadata},"video"),t.mime===St.hls&&e.eve
nts.fire(Tt.disableHd);var n=t.metadata.quality;if(t.mime===St.dash){var
i=e.config.request.files.dash.streams.map(function(e){return
e.quality});n=C(e.config.embed.quality,i)||"auto",A(n)}e.events.fire(Et.qualityChan
ged,n,!0)}),Y.on("streamchange",function(t){var
n=t.index,i=t.streams,r=e.config.request.files.dash.streams[n];e.addBreadcrumb("Str
eam
changed",r,"video"),e.events.fire(Et.streamChanged,r,n,i)}),Y.on("streambufferstart
",function(t){var n=t.hasLowerStreamIndex;e.addBreadcrumb("Started buffering",
{hasLowerStreamIndex:n},"video"),e.events.fire(Et.ranIntoBuffer,n)}),Y.on("streambu
fferend",function(){e.addBreadcrumb("Stopped buffering",
{},"video"),e.events.fire(Et.playbackResumed)}),Y.on("bandwidth",function(t)
{e.events.fire(Et.adaptiveBandwidth,t)}),Y.on("alert",function(t){var n=void
0;switch(t)
{case"streamstudder":if(Ce)return;n=Kt.render("stream_studder")}Q.message=n,Q.show(
),e.addBreadcrumb("Alert shown",{message:n},"video")}),Y.on("cuepoint",function(t)
{e.events.fire(Et.cuepoint,t)}),Y.on("motionstart",function()
{e.events.fire(Et.spatialMotionStart)}),Y.on("motionend",function()
{e.events.fire(Et.spatialMotionEnd)}),Y.on("droppedframes",function(t)
{e.events.fire(Et.droppedFrames,t)}),Y.on("downloadend",function(t)
{e.events.fire(Et.segmentDownloaded,t)}),Y.on("streamtargetchange",function(t){var
n,i=e.config.request.files.dash.streams[t.index],r=[i,t.index,t.streams];
(n=e.events).fire.apply(n,
[Et.streamTargetChange].concat(r))}),e.events.fire(Et.telecineReady)}function v()
{var t="none";("metadata"===e.config.request.flags.preload_video||Z||
tn.iOS>=8)&&(t="metadata"),"auto"===e.config.request.flags.preload_video&&(t="metad
ata","MediaSourceScanner"===Y.currentScanner&&(t="auto")),Y.preload=t,e.events.on(E
t.mousedOver,function(){"metadata_on_hover"!
==e.config.request.flags.preload_video||re||e.verifyConfig().then(function(){return
Y.preload="metadata",!0}).catch(function(e){})})}function p()
{Y.on("loadedmetadata",function(t){me=!0;var
n=Y.duration;isFinite(n)&&n>0&&(e.config.video.duration=n),e.config.video.video_wid
th=Y.videoWidth,e.config.video.video_height=Y.videoHeight}),Y.on("loadeddata",funct
ion(){0===Y.currentTime&&Y.paused&&i()}),Y.on("durationchange",function(t){var
n=Y.duration;isFinite(n)&&(e.config.video.duration>0&&(n<e.config.video.duration-
1||n>e.config.video.duration+1)||
(e.config.video.duration=n))}),Y.on("waiting",function(){fe||
n()}),Y.on("canplay",function(){ae=!0,i(),(e.config.embed.autoplay||ne||te&&!
re&&oe)&&s()}),Y.on("canplaythrough",function(){se=!0,i(),!te||re||oe||s(),(le||
ne&&Y.paused)&&s()}),Y.on("progress",function(e){l()})}function m()
{e.events.on(Et.playInitiated,function()
{t.classList.remove("invisible")}).on(Et.playButtonPressed,a).on(Et.pauseButtonPres
sed,function(){ne=!1,Y.pause()}).on(Et.becameInactive,function()
{window.location.search.indexOf(
"autopause=0")<0&&!Y.paused&&!e.config.embed.settings.background&&(ne=!
1,e.events.fire(Et.pauseButtonPressed))}),Y.on("play",function(t){return _e=!1,re||
(!oe||ae)&&(oe||se)?($.classList.remove("invisible"),void
e.events.fire(Et.played,Y.currentTime)):(e.events.fire(Et.playInitiated),re=!0,te=!
0,void(ne=!0))}),Y.on("pause",function(t){!re||le||he||ve||
e.events.fire(Et.paused,Y.currentTime,Y.ended)}),Y.on("playing",function(t){re||
(e.events.fire(Et.playInitiated),re=!0),l(),de=!0}),Y.on("timeupdate",function(t)
{var r=Y.currentTime;if(de&&ue&&r>0&&(de=!1,i()),Y.buffered.length>0&&!ue){var
o=c(Y.buffered,r),a=Y.buffered.end(o);if(!Te&&r>0&&r<Y.duration&&a===r)return void
n()}if(!_e){var
s=Y.duration,u=r/s;e.events.fire(Et.playProgress,r,s,u),K&&r>K&&(K=null)}G&&(G.clas
sList.add("hidden"),G=null)}),Y.on("ended",function(t){if(!
he)if(e.config.embed.loop)Y.play();else{if(Te&&e.events.fire(Et.fullscreenButtonPre
ssed),ne=!1,te=!
1,xe)return;e.events.fire(Et.ended,t)}}),Y.on("drmauthsuccess",function(e){ie=!
0}),e.events.on(Et.playInitiated,function(){Y.once("timeupdate",function(){return
e.events.fire(Et.firstTimeUpdate)})}),e.events.on(Et.hudDisplayed,function(){xe=!
0}),e.events.on(Et.hudHidden,function(){xe=!
1,Y.ended&&e.events.fire(Et.ended)})}function g(){Q=new
Kn(t.parentElement),Q.on("show",function(t)
{e.events.fire(Et.alertVisibilityChanged,!0,t)}),Q.on("hide",function(t){var
n=t.target,i=n&&"function"==typeof n.getAttribute;if(i)switch(n.getAttribute("data-
context"))
{case"suggestion":e.events.fire(Tt.changeQuality,"auto"),t="suggestion";break;defau
lt:t="close"}(i||"qualitymenuauto"===t)&&(Ce=!
0),e.events.fire(Et.alertVisibilityChanged,!1,t)})}function y(){var t=!
1;F(function(){t=!0}),Y.on("error",function(n){if(!t)switch(e.addBreadcrumb(n.name,
{message:n.message},"telecine error","error"),n.name)
{case"BrowserNotSupported":e.events.fire(Et.error,"not-supported"),we="not-
supported";break;case"DRMFailure":e.events.fire(Et.error,"drm-failure",function(t)
{var n="Unable to play video.",i="Please try
again.",r=e.config.request.dynamic_drm_translation_map,o=t.message.code;return
r&&o&&r[o]&&(n=r[o].title,i=r[o].msg),e.addBreadcrumb("DRM failure",t,"video"),
{title:n,message:i}}(n));break;case"FilesNotPlayable":e.events.fire(Et.error,"not-
supported"),we="not-
supported";break;case"TextTracksNotSupported":e.events.fire(Tt.disableCaptions);bre
ak;case"MediaSrcNotSupportedError":e.events.fire(Et.error,"not-supported",{final:!
1});break;case"MediaDecodeError":e.events.fire(Et.error,"decode",{final:!
1});break;case"MediaNetworkError":e.events.fire(Et.error,"network");break;case"Medi
aUnknownError":e.events.fire(Et.error,"unknown");break;case"FileError":e.events.fir
e(Et.error,"telecine-file-error",{final:!
1});break;case"DownloadError":e.events.fire(Et.error,"telecine-download-error",
{final:!1});break;case"ScannerError":e.events.fire(Et.error,"scanner-error",
{final:!1})}})}function _(){e.events.on(Tt.changeLoop,function(t)
{e.config.embed.loop=!!t,Y.loop=!!
t}),e.events.fire(Tt.changeLoop,e.config.embed.loop)}function b()
{e.events.on(Et.scrubbingStarted,function(){Se||(n(),ne=!Y.paused,he=!
0,Y.pause())}),e.events.on(Et.scrubbingEnded,function(e){Se||(he=!1,e||
s())}),e.events.on(Tt.seek,function(t,n){Se||(n||(n=(Y.duration||
e.config.video.duration)*u(t,0,1)),n=u(n,0,Y.duration||
e.config.video.duration),re||(e.events.fire(Et.playButtonPressed),re=!0,te=!0,ne=!
0),Y.currentTime=n)}),Y.on("seeking",function(){fe=!0},!1),Y.on("seeked",function()
{l();var t=Y.currentTime,n=Y.duration;e.events.fire(Et.seeked,t,n,t/n),fe=!1},!
1),e.events.on(Tt.setTime,function(t,n){t=u(t,0,Y.duration||
e.config.video.duration),Y.currentTime=t})}function w()
{e.events.on(Tt.changeVolume,function(t,n,i)
{i&&(t+=Y.volume),Y.volume=u(t,0,1),e.events.fire(Et.volumeChanged,u(t,0,1),n)});va
r
t=e.config.request.cookie.volume;e.config.embed.mute&&(t=0),e.events.fire(Tt.change
Volume,t,!0)}function k(){e.events.on(Tt.changeQuality,function(t,n)
{if(Y.video.currentFile.mime===St.dash)n=!0,A(t);else{var
i=Un(e.telecine.video.files).filter(function(e){return
parseInt(e.metadata.quality,10)<=parseInt(t,10)});i.sort(be()),i.length>0&&(_e=!
0,Y.video.currentFile=i[0])}"auto"===t&&Q.hide("qualitymenuauto"),e.events.fire(Et.
qualityChanged,t,n)})}function S(){e.events.on(Et.overlayOpened,function(){Se=!
0,re&&!Le&&(ne=!
Y.paused,Y.pause(),e.events.fire(Et.paused,Y.currentTime))}),e.events.on(Et.overlay
Closed,function(){Se=!1,ne&&!Le&&(Te||Ee||!Z||
e.events.fire(Tt.forceFullscreen),s())})}function x()
{e.events.on(Et.popupOpened,function(e){re&&!Le&&(ne=!
Y.paused,Y.pause())}),e.events.on(Et.popupClosed,function(e){Le||s()})}function T()
{e.events.on(Et.didEnterFullscreen,function(t,n){$.classList.remove("hide-webkit-
controls"),t&&(Ee=!0),t||(re||tn.browser.safari||(Y.poster=X.getAttribute("data-
thumb")),Te=!0,setTimeout(function(){Y.video.textTracks.forEach(function(e)
{"hidden"===e.mode&&(e.mode="showing")})},500)),n||!tn.windowsPhone||
tn.browser.edge||e.events.fire(Tt.toggleNativeControls,!
0)}),e.events.on(Et.didExitFullscreen,function(e){Y.poster="",e||Y.pause(),re||
$.classList.add("invisible"),Te=!1,Ee=!1,ee&&$.classList.add("hide-webkit-
controls"),Y.video.textTracks.forEach(function(e)
{"showing"===e.mode&&(e.mode="hidden")})}),e.events.on(Et.playInitiated,function()
{Y.poster=""})}function E(){e.events.on(Tt.toggleNativeControls,function(e){return
e?(Y.controls=!0,void t.classList.add("native-controls")):(Y.controls=!1,void
t.classList.remove("native-controls"))})}function L()
{e.events.on(Et.signatureExpired,function()
{K=Y.currentTime}),e.events.on(Et.requestConfigReloaded,function(e)
{q()}),e.events.on(Et.configChanged,function(e){q(),V()})}function P()
{Dt($).on("transitionend",function(e)
{"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&$.clas
sList.remove("transition")},!1),e.events.on(Tt.reset,function(t){_e=!0,Y.paused||
(Y.pause(),e.events.fire(Et.paused,Y.currentTime)),d(),
$.classList.add("transition"),$.classList.add("invisible"),t&&(me=!1),re=!1,ne=!
1,we=null,setTimeout(function(){Y.currentTime=0},300)})}function C(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return
e.config.embed.on_site||tn.android||tn.iOS||tn.windowsPhone||e.config.video.vod||!
t?null:n.length&&n.indexOf(t)===-1?null:
(e.events.fire(Et.forcedQuality,t),t)}function A(t){if("auto"===t)return
Y.video.currentFile.restrictedStreamIndexes=[],void(Oe=!1);var
n=e.config.request.files.dash.streams.map(function(e){return
e.quality}).indexOf(t);n!==-1&&(e.addBreadcrumb("Switched to "+t,
{},"video"),Y.video.currentFile.restrictedStreamIndexes=[n],Oe=n)}function O(){var
t=e.config.request.files,n=Un(t.progressive).filter(ye(t.progressive)),i=n.some(ge)
;tn.mobileAndroid&&(i=!1);var r="720p";if(i){var
o=Un(n).map(pe);o.indexOf("1080p")!==-1&&o.indexOf("720p")===-1&&(r="1080p")}var
a=e.config.request.cookie.hd||e.config.video.default_to_hd?
r:"360p",s=n.map(function(e){return
e.quality}),u=C(e.config.embed.quality,s),c=e.config.request.cookie.quality||u||
a,l=ke({files:t.progressive,preference:c,priorityOffset:2}),d=e.config.request.drm&
&tn.browser.safari;if(t.hls&&(tn.iPhone||tn.iPad)||d){var
f=t.hls.default_cdn,h=t.hls.cdns[f].url;l.push({id:"hls-"+f+"-"+e.config.video.id,s
rc:h,mime:St.hls,priority:2,metadata:
{cdn:f,origin:t.hls.cdns[f].origin,quality:"sd"}})}var v=!1;if(t.dash&&!d){for(var
p in
t.dash.cdns)l.push({id:"dash-"+p+"-"+e.config.video.id,src:t.dash.cdns[p].url,mime:
St.dash,priority:p===t.dash.default_cdn?1:2,metadata:
{cdn:p,origin:t.dash.cdns[p].origin,quality:"sd"}});v=t.dash.streams.some(ge)}retur
n i||v||e.events.fire(Tt.disableHd),l}function M(){return"text_tracks"in
e.config.request?e.config.request.text_tracks.map(function(e)
{return{id:e.id,src:e.url,kind:e.kind,label:e.label,language:e.lang}}):[]}function
I(){var t=e.config.request.files,n=t.hls.default_cdn;if(t.hls){var
i=t.hls.cdns[n].url;return t.hls.cdns[n].captions&&(i=t.hls.cdns[n].captions),
{src:i,mime:St.hls,metadata:
{cdn:e.config.request.files.hls.cdn,origin:e.config.request.files.hls.origin,qualit
y:"sd"}}}return null}function q(){Me=!1;var
t=O(),n=M();if(Y.video&&Y.video.id===""+e.config.video.id)return
t.forEach(function(e){var t=Y.video.files.getFileById(e.id);t&&(t.src=e.src)}),void
n.forEach(function(e){var
t=Y.video.textTracks.getTrackById(e.id);t&&(t.src=e.src)});var
i=o(X);Y.video={id:e.config.video.id,title:e.config.video.title,subtitle:"from
"+e.config.video.owner.name,files:t,textTracks:n,externalDisplayFiles:
{AirPlay:I()},metadata:
{thumbnail:e.config.video.thumbs[640],useHls:e.config.request.drm&&tn.browser.safar
i,drm:e.config.request.drm,percentShown:co.frustumSurfaceArea(e.config.video.spatia
l.fov,i.width,i.height)}};var
r=e.config.embed.cards&&e.config.embed.cards.length&&tn.iOS>=10;if(r&&Y.supportsPre
sentationMode("inline")&&(Y.presentationMode="inline"),0===n.length){var a=!
0;return void
e.events.fire(Tt.turnCaptionsOff,a)}if(Y.video.textTracks.forEach(function(t)
{t.on("cuechange",f),t.on("modechange",function(n)
{Te&&"showing"===t.mode&&e.events.fire(Et.captionsChanged,t)})}),null!
==e.config.request.cookie.captions&&"null"!==e.config.request.cookie.captions){var
s=!0;return void
e.events.fire(Tt.turnCaptionsOn,e.config.request.cookie.captions,s)}if(e.config.vid
eo.lang){var u=e.config.request.lang.split(/[-
_]/),c=Ot(u,1),l=c[0],d=e.config.video.lang.split(/[-_]/),h=Ot(d,1),v=h[0];if(l!
==v){var
p=e.config.request.lang+".subtitles",m=ce(p,Y.video.textTracks),g=m.track;if(g){var
y=!0;return void
e.events.fire(Tt.turnCaptionsOn,p,y)}}}e.events.fire(Tt.turnCaptionsOff)}function
R(e,t,n,i){if(ie){var r=new XMLHttpRequest;r.open("DELETE",e+"/plays/"+t+"/"+n+"?
token="+i,!1),r.send(),ie=!1}}function B()
{e.config.embed.time>0&&(Y.currentTime=e.config.embed.time,e.config.embed.time=0)}f
unction D(){e.events.on(Tt.turnCaptionsOn,function(t,n){if(!Pe||Pe.id!==t){var
i=Y.video.textTracks.getTrackById(t),r=!0;if(!i){var
o=ce(t,Y.video.textTracks);i=o.track,r=o.exactMatch}i!==Pe&&setTimeout(function()
{Y.video.textTracks.forEach(function(e)
{e.mode=e===i?"hidden":"disabled"}),e.events.fire(Et.captionsChanged,i,n||!
r),Pe=i},0)}}).on(Tt.turnCaptionsOff,function(){var t=arguments.length>0&&void 0!
==arguments[0]&&arguments[0];setTimeout(function()
{Y.video.textTracks.forEach(function(e)
{e.mode="disabled"}),e.events.fire(Et.cueChanged),Pe&&(Pe=null,e.events.fire(Et.cap
tionsChanged,null,t))},0)})}function j()
{Y.on("externaldisplayavailable",function(t){var n=t.type;if(!
e.config.request.drm)switch(n)
{case"AirPlay":e.events.fire(Et.airPlayAvailable)}}),Y.on("externaldisplayunavailab
le",function(t){var n=t.type;if(!e.config.request.drm)switch(n)
{case"AirPlay":e.events.fire(Et.airPlayNotAvailable)}}),Y.on("externaldisplayactiva
ted",function(t){var n=t.type;switch(Le=!0,n)
{case"AirPlay":e.events.fire(Et.airPlayActivated)}}),Y.on("externaldisplaydeactivat
ed",function(t){var n=t.type;switch(Le=!1,n)
{case"AirPlay":e.events.fire(Et.airPlayDeactivated)}}),e.events.on(Et.airPlayButton
Pressed,function(){Y.showExternalDisplayPicker("AirPlay")})}function N(){function
t(){return Y.supportsPresentationMode("picture-in-picture")?void
e.events.fire(Et.pictureInPictureAvailable):void
e.events.fire(Et.pictureInPictureNotAvailable)}var
n=Y.presentationMode;Y.on("play",function(){return me?void t():void
Y.once("loadedmetadata",t)}),Y.on("presentationmodechange",function(t)
{"inline"===n&&"picture-in-
picture"===t&&e.events.fire(Et.pictureInPictureActivated),"picture-in-
picture"===n&&"inline"===t&&e.events.fire(Et.pictureInPictureDeactivated),n=t,Y.vid
eo.textTracks.forEach(function(e){"picture-in-
picture"===t&&"hidden"===e.mode&&(e.mode="showing"),"inline"===t&&"showing"===e.mod
e&&(e.mode="hidden")})}),e.events.on(Tt.activatePictureInPicture,function()
{Y.supportsPresentationMode("picture-in-picture")&&(Y.presentationMode="picture-in-
picture")}),e.events.on(Tt.deactivatePictureInPicture,function()
{Y.supportsPresentationMode("picture-in-
picture")&&(Y.presentationMode="inline")})}function V()
{e.config.embed.autoplay&&(te=!0,e.events.fire(Et.playButtonPressed))}function H()
{e.events.on(Et.enteredTinyMode,function(){J=!
0}).on([Et.enteredMiniMode,Et.enteredNormalMode],function(){J=!1})}function U(){var
t=0,n=null,i=function(){n||
(n=e.config.embed.color),e.events.fire(Tt.changeColor,"#46d439")},r=function()
{n&&(e.events.fire(Tt.changeColor,n),n=null)};e.events.on(Tt.setEffect,function(n)
{if(Y.deactivateEffects(),"ascii"===n||"ascii-color"===n){if(Y.supportsEffect(zr))
{Y.activateEffect(zr,{color:"ascii-color"===n,fps:t||
Y.video.currentFile.metadata.fps});try{var
o=e.config.request.files.dash.streams;o.sort(be("asc"));var
a=e.config.request.files.dash.streams.indexOf(o[0]);Y.video.currentFile.restrictedS
treamIndexes=[a]}catch(e){}return e.element.setAttribute("data-
filter",n),"ascii"===n?void i():void r()}return void
e.events.fire(Tt.setEffect,"none")}if("ascii"!==n&&"ascii-color"!==n){var s=[];Oe!
==!
1&&s.push(Oe),Y.video.currentFile.restrictedStreamIndexes=s}r(),e.element.setAttrib
ute("data-filter",n)}).on(Et.streamChanged,function(e,n,i){t=e.fps})}function z()
{F(function(){var
t=e.config.request.drm;t&&R(t.hoover_url,t.user,t.asset,t.hoover_token)}),e.events.
on(Et.loadVideo,function(){var
t=e.config.request.drm;t&&R(t.hoover_url,t.user,t.asset,t.hoover_token)})}function
W(){var t=function(){Se||(Q.message=Kt.render("warning_alert",{strings:{text:'See a
<a href="https://help.vimeo.com/hc/en-us/articles/115001878167#browsers"
target="_blank">list of browsers</a> that support 360
viewing.'}}),Q.show())},n=function(){Se||(Q.message=Kt.render("warning_alert",
{strings:{text:'Looking to watch a 360 video? See <a
href="https://help.vimeo.com/hc/en-us/articles/115001878167#browsers"
target="_blank">supported browsers and settings</a>.'}}),Q.show())};if(!
tn.spatialPlayback)return void e.events.once(Et.firstTimeUpdate,function()
{e.config.video.spatial&&t()});var i=null,r=function()
{i&&(Y.deactivateEffect(co),i=null,e.events.fire(Tt.toggleSpatialPlayback,i)),e.con
fig.video.spatial&&(e.config.request.drm||
Y.supportsEffect(co)&&(i=Y.activateEffect(co,
{threeUrl:e.config.request.urls.three_js,fps:e.config.video.fps,fieldOfView:e.confi
g.video.spatial.fov,directorTimeline:e.config.video.spatial.director_timeline,proje
ction:e.config.video.spatial.projection,stereoMode:e.config.video.spatial.stereo_mo
de,initialView:e.config.video.spatial.initial_view,isMobile:tn.android,dimensions:e
.config.embed.on_site?{width:1080,height:540}:
{width:640,height:360}}),e.events.fire(Tt.toggleSpatialPlayback,i)))};e.events.fire
(Tt.attachSpatialPlaybackEvents),r(),e.events.on(Et.configChanged,r),Y.on("seeked",
function(){return e.events.fire(Tt.revealSpatialControls)}),Y.on("play",function()
{return e.events.fire(Tt.revealSpatialControls)}),Y.on("cameraupdate",function(t)
{return e.events.fire(Et.cameraUpdate,t)}),Y.on("spatialunsupported",function()
{return
i&&(Y.deactivateEffect(co),i=null,e.events.fire(Tt.toggleSpatialPlayback,i)),re?
void n():void e.events.once(Et.firstTimeUpdate,function(){n()})})}var
K,X=t.querySelector(".video"),
$=t.querySelector(".telecine"),Y=null,G=null,Q=null,J=!1,Z=tn.android&&!
tn.browser.chrome&&!tn.browser.firefox&&!tn.browser.opera||tn.windowsPhone||
tn.iOS>=8&&!tn.iPad,ee=tn.iOS>=8&&!tn.iPad,te=!1,ne=!1,ie=!1,re=!1,oe=!0,ae=!1,se=!
1,ue=!1,le=!1,de=!1,fe=!1,he=!1,ve=!1,me=!1,_e=!0,we=null,Se=!1,xe=!1,Te=!1,Ee=!
1,Le=!1,Pe=null,Ce=!1,Oe=!1,Me=!1;return
$.classList.add("invisible"),ee&&$.classList.add("hide-webkit-
controls"),h(),v(),p(),m(),g(),y(),_(),b(),w(),k(),S(),x(),T(),E(),L(),P(),D(),B(),
j(),N(),H(),U(),q(),W(),z(),e.ready().then(function(){return setTimeout(function()
{return V()},0),null}).catch(function(e){}),e.events.fire(Et.videoModuleReady),
{telecine:Y}}function Qe(e){function t(){var
e=A(m.clientWidth*tn.devicePixelRatio,m.clientHeight*tn.devicePixelRatio),t=e.width
,n=e.height,i=T.getAttribute("data-thumb-width");if(t<=parseInt(i,10)||0===t)return
_t.resolve();var
r=O({width:t,height:n,baseUrl:S.config.video.thumbs.base,webpSupport:S.config.reque
st.flags.webp});if(T.setAttribute("data-thumb",r),T.setAttribute("data-thumb-
width",t),S.config.embed.autoplay&&"beginning"!==S.config.embed.outro)return
_t.resolve();var o=M(r).then(function(e){"none"!
==T.style.backgroundImage&&(T.style.backgroundImage="url("+e.src+")");var
t=S.config.video.width/S.config.video.height,n=e.width/e.height;return(n<=.95*t||
n>=1.05*t)&&T.classList.remove("cover"),e}).catch(function(e)
{qn.captureException(e,{extra:{thumbnailUrl:r}})});return _t.race([o,new
_t(function(e){return setTimeout(e,2e3)})])}function n(){var
e=s({width:S.config.video.width,height:S.config.video.height,elementWidth:m.clientW
idth,elementHeight:m.clientHeight}),t=(e.extraWidth,e.extraHeight,e.scaleFactor);t>
1?
(T.classList.add("cover"),E.style.webkitTransform="scale("+t+")",E.style.transform=
"scale("+t+")"):
(T.classList.remove("cover"),E.style.webkitTransform="",E.style.transform="")}funct
ion i(e){var t=e.old,n=e.loaded;if(!t);if(window.parent!==window){var i="Private
Video on Vimeo";n.view!==bt.main&&n.view!==bt.privateUnlocked||(i=n.video.title+"
from "+n.video.owner.name+" on
Vimeo"),document.title=i,history&&history.replaceState&&n.video&&t&&history.replace
State({id:n.video.id},"","/video/"+n.video.id)}if(n.view!==bt.main&&n.view!
==bt.privateUnlocked)throw new Error("Config not authorized:
"+n.view);t&&t.embed&&t.embed.color!
==n.embed.color&&k.fire(Tt.changeColor,n.embed.color),j&&j.reset(),
(tn.mobileAndroid||tn.iPhone||tn.windowsPhone||tn.browser.bb10||tn.iPad||
tn.android)&&(n.embed.autoplay=0);var r=!t||!t.video||t.video.id!
==n.video.id;return r&&T.removeAttribute("data-thumb-
width"),C=null,k.fire(Tt.reset),k.fire(Et.configChanged,r),e}function r()
{window.requestAnimationFrame(function()
{m.classList.remove("loading")}),N()}function o(e){return w.then(function()
{if(v(e),T.setAttribute("data-thumb",""),T.setAttribute("data-thumb-
width",""),T.style.backgroundImage="","function"!=typeof
B.authorizationHandler)throw new Error("Config was not authorized.");return
B.authorizationHandler(r)}).then(function(e){S.config=e;var t=!0;return
C=null,k.fire(Tt.reset),k.fire(Et.configChanged,t),e})}function a(){var
e=document.location.hash,t=f(e);null!
==t&&(S.config.embed.time=u(t,0,S.config.video.duration),tn.touch||
(S.config.embed.autoplay=1),e.indexOf("at=")!==-
1&&history&&history.replaceState&&history.replaceState("","",window.location.pathna
me+window.location.search))}function c(){k.on(Et.userLogIn,function(e)
{S.reload().then(function(t){if(!S.config.user.logged_in)return
k.fire(Et.loginFailure),t;switch(k.fire(Et.userLoggedIn,e),e)
{case"like":S.config.user.liked&&k.fire(Et.liked);break;case"watch-
later":S.config.user.watch_later&&k.fire(Et.addedToWatchLater);break;case"private":
k.fire(Et.privateUnlocked)}return t}).catch(function(e)
{qn.captureException(e)})}),k.on(Et.userLoggedOut,function()
{S.reload().catch(function(e){qn.captureException(e)})})}function l()
{q=t(),k.on([Et.playInitiated,Et.playButtonPressed],function()
{tn.iOS&&S.config.video.spatial||
(T.style.backgroundImage="none")}),k.on(Et.didEnterFullscreen,function()
{"none"===T.style.backgroundImage&&"beginning"!==S.config.embed.outro||
(q=t())});var e=null;window.addEventListener("resize",function()
{clearTimeout(e),e=setTimeout(function(){q=q.then(function(){return
t()}).catch(function(e){})},250),n()},!1)}function d()
{if(S.config.request.sentry)try{!function(){var
e="dev"===S.config.request.build.js?"dev":"production",t={session:S.config.request.
session,locale:S.config.request.lang,git_commit:S.config.request.build.player,debug
_intent:S.config.request.sentry.debug_intent?1:0};S.config.request.ab_tests&&!
function(){var e=S.config.request.ab_tests;Object.keys(e).forEach(function(n){var
i=e[n].data;Object.keys(i).forEach(function(e){t[e]=i[e]})})}
(),qn.config(S.config.request.sentry.url,{logger:"player-
raven",release:S.config.request.build.js,environment:e,tags:t,autoBreadcrum
bs:{console:!1},includePaths:[/https?:\/\/.*vimeo\.com/],ignoreErrors:["Permission
denied to access property 'toString'",'Permission denied to access property
"toString"',"The play() request was interrupted by a call to pause().","Permission
denied to access property 'href'",'Permission denied to access property
"href"',"docs-homescreen-gb-container","Failed to load image.",'
"endsWith"'],shouldSendCallback:function(e)
{return!!S.config.request.sentry.enabled||!!
(S.config.request.sentry.debug_enabled&&e.extra&&e.extra.debugLink)}}).install(),wi
ndow.addEventListener("unhandledrejection",function(e)
{e.reason&&qn.captureException(e.reason)}),S.config.request.sentry.debug_intent&&F(
function(){qn.captureMessage("Session debug",{level:"info"})})}()}catch(e)
{}}function h(e){n(),a(),c(),l(),p(e)}function v(e){D||(D=new
le(e),Object.keys(D).forEach(function(e){if("function"==typeof D[e])return void
Object.defineProperty(H,e,{enumerable:!0,value:D[e]});var t={enumerable:!
0,get:D[e].get};D[e].set&&(t.set=D[e].set),Object.defineProperty(H,e,t)}))}function
p(e){var t=S.config.embed.settings.background&&(tn.iOS||tn.android);if(!t){var
n=new Ge(e,m.querySelector(".video-wrapper"));P=n.telecine}void new oe(e),void new
de(e,m.querySelector(".captions")),void new Se(e),void new xe(e),j=new
Pe(e),v(e)}var m=e.element,y=e.delegate,_=void 0===y?
{}:y,b=e.cssLoadedPromise,w=void 0===b?_t.resolve(null):b,k=(e.name,re()),S=new
fe({events:k}),x=g();m.classList.add("player-"+x),m.classList.add("loading"),m.id||
(m.id="player"+x),m.innerHTML=Kt.render("outer",{strings:{back:"Back",close:"Close
overlay"}});var
T=m.querySelector(".video"),E=m.querySelector(".telecine");if(tn.iOS){var
L=document.createElement("video");E.appendChild(L);try{L.play(),L.pause()}catch(e)
{qn.captureException(e)}}var
P=null,C=null,I=null,q=null,R=null,B={},D=null,j=null,N=void 0,V=new
_t(function(e,t){N=e}).then(function(){return k.fire(Et.ready),null}),H={get
config(){return S.config},set config(e){S.config=e},get delegate(){return _},set
delegate(e){_=e},ready:function(e){
return e?void V.then(function(){return e()}).catch(function(e)
{qn.captureException(e)}):V},get sessionId(){return
S.config.request.session}},U={get config(){return S.config},get element(){return
m},get events(){return k},get uuid(){return x},get externalApi(){return H},get
telecine(){return P},get doNotTrackEnabled(){return S.config.embed.dnt||
S.config.request.flags.dnt},get playLoggingEnabled(){return
S.config.embed.log_plays&&S.config.request.flags.plays},init:function(e,t){return
I?I:(B=t,I=S.load(e).then(i).catch(function(e){return o(U)}).then(function(){return
d(),null}).then(function(){return"function"==typeof B.initializationHandler?
_t.resolve(t.initializationHandler()):null}).then(function(){return
h(U),"function"==typeof B.postInitializationHandler?
_t.resolve(t.postInitializationHandler()):null}).then(function(){return
_t.all([q,w])}).then(r).catch(function(e)
{qn.captureException(e)}))},loadVideo:function(e,n){return R===e&&C?C:
(k.fire(Et.loadVideo),R=e,m.classList.add("loading"),C=S.load(e).then(i).catch(func
tion(e){return qn.captureException(e),o(U)}).then(function(e){return
q=t(),_t.resolve(q)}).then(r))},performDelegateAction:function(e){var
t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function()
{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=void
0;if(_&&_[e.will]){var r;if(i=(r=_)[e.will].apply(r,
[S.config.video.id].concat(n)),i===!1)return}t.apply(void 0,
[S.config.video.id].concat(n,[i])),_&&_[e.did]&&_[e.did]()},ready:function(){return
V},verifyConfig:function(){return S.verify()},reportError:function(e,t){return
qn.captureException(e,t),qn.lastEventId()},reportMessage:function(e,t){return
qn.captureMessage(e,t),qn.lastEventId()},addBreadcrumb:function(e,t){var
n=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:"player",i=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:"info";qn.captureBreadcrumb({message:e,data:t,category:n,level:i})}};r
eturn U}function Je(e,n,i,r){function a(){k.style.left="-999999px";var
e=o(n),r=o(i),a=o(k),s=e.left+e.width/2-a.width/2-
r.left,u=r.height,c=r.left+s+a.width,l=i.classList.contains("play-bar")?
r.right:r.width-parseInt(window.getComputedStyle(i).paddingRight,10);if(c>l){var
d=c-l;s-=d;var f=e.left-(r.left+s)+e.width/2;f!==b&&(t(".player
.menu::after","left:"+f+"px",document.styleSheets[document.styleSheets.length-
1]),b=f)}k.style.left=s+"px",k.style.bottom=u+"px"}function s()
{k.style.height="auto";var e=o(r.element),t=o(k),n=e.bottom-
t.bottom,i=0,a=r.element.querySelector(".title");if(a){var
s=o(a);i=Math.max(10,s.height)}var u=e.height-n-
i,c=e.height/2,l=Math.max(u,c),d=k.querySelector(".scrollable-
items"),f=d.children,h=0;if(f&&f.length){var
v=f[0],p=getComputedStyle(v),m=v.clientHeight+parseInt(p.marginTop,10)+parseInt(p.m
arginBottom,10);h=m/2}t.height>l&&(k.style.height=Math.min(l-h,t.height)
+"px")}function u(e){var
t=document.createElement("ul");t.classList.add("menu"),t.classList.add("rounded-
box"),t.classList.add("hidden"),t.classList.add("invisible"),t.setAttribute("hidden
",""),t.setAttribute("id",T),t.setAttribute("role","menu"),A=document.createElement
("div"),A.classList.add("item-container");var
n=document.createDocumentFragment();e.forEach(function(e){var
t=document.createElement("li");t.setAttribute("tabindex","0"),t.setAttribute("role"
,"menuitemradio"),t.setAttribute("aria-checked","false"),t.setAttribute("data-
id",e.id),t.innerHTML="<span>"+e.label+"</span>",e.active&&(t.classList.add("active
"),t.setAttribute("aria-
checked","true"),S=t),n.appendChild(t)}),C=document.createElement("div"),C.classLis
t.add("scrollable-items");var
i=document.createElement("div");i.classList.add("sticky-
items"),i.appendChild(n.lastChild),C.appendChild(n);var
o=document.createElement("div");return o.classList.add("top-
shadow"),A.appendChild(C),A.appendChild(i),A.appendChild(o),t.appendChild(A),O=C.fi
rstChild,M=C.lastChild,C.addEventListener("mousewheel",c),C.addEventListener("scrol
l",c),C.addEventListener("focusin",l),r.events.on(Et.menuVisibilityChanged,function
(e)
{setTimeout(c,10)}),r.events.on([Et.enteredTinyMode,Et.enteredMiniMode,Et.enteredNo
rmalMode],function(e)
{c(),a(),x&&r.events.fire(Et.menuVisibilityChanged,x,_)}),t}function c(e){var
t=C,n=t.scrollHeight,i=t.scrollTop,r=t.clientHeight,o=n-r,a=e||{},s=a.deltaY,u=void
0===s?0:s;return A.classList.remove("scroll-off"),n-r<=1?void
A.classList.add("scroll-off"):(i>=o?(L=!0,A.classList.add("scroll-end")):L&&(L=!
1,A.classList.remove("scroll-end")),i<=0?(P=!0,A.classList.add("scroll-
start")):P&&(P=!1,A.classList.remove("scroll-start")),void((L&&u>0||
P&&u<0)&&e.preventDefault()))}function l(e){var
t=e.target,n=O.contains(t),i=M.contains(t);n?
C.scrollTop=0:i&&(C.scrollTop=C.scrollHeight)}function d(e){x||(e=e||
n.contains(document.activeElement),k.classList.remove("hidden"),k.removeAttribute("
hidden"),a(),a(),s(),n.setAttribute("aria-expanded","true"),x=!
0,r.events.fire(Et.menuVisibilityChanged,x,_),window.requestAnimationFrame(function
(){k.classList.remove("invisible"),k.classList.add("open"),c(),e&&(S||m()
[0]).focus()}))}function f(){x&&(n.setAttribute("aria-expanded","false"),x=!
1,r.events.fire(Et.menuVisibilityChanged,x,_),k.classList.add("invisible"))}functio
n h(e){return x?(f(),!1):(d(e),!0)}function v(e)
{S&&(S.classList.remove("active"),S.setAttribute("aria-checked","false"));var
t=k.querySelector('[data-
id="'+e+'"]');t&&(S=t,S.classList.add("active"),S.setAttribute("aria-
checked","true"))}function p(){k.parentElement.removeChild(k)}function m(){var
e=Un(k.querySelectorAll('[tabindex="0"]'));return e}function g()
{k=u(e),n.setAttribute("aria-controls",T),n.setAttribute("aria-
expanded","false"),n.setAttribute("aria-haspopup","true"),E(k,
["li","span"],function(){var e="SPAN"===this.tagName?
this.parentElement:this;w.fire("selected",e.getAttribute("data-
id"))}),E(n,function(){h()}),Dt(window).on("focus",function(e){var
t=document.activeElement,i=k.contains(t),r=n.contains(t);i||r||f()});var
t=function(e)
{if(("keypress"===e.type&&13===e.which||"keydown"===e.type&&32===e.which)&&k.contai
ns(document.activeElement))return
w.fire("selected",document.activeElement.getAttribute("data-id")),f(),!
1};Dt(k).on("keydown",t),Dt(k).on("keypress",t),window.addEventListener("resize",a)
,i.insertBefore(k,n.nextSibling)}function y(){Dt(document).on("click",function(e)
{x&&!n.contains(e.target)&&f()}),Dt(k).on("transitionend",function(e)
{this===k&&"opacity"===e.propertyName&&k.classList.contains("invisible")&&(k.classL
ist.add("hidden"),k.setAttribute("hidden",""),k.classList.remove("open"))}),window.
addEventListener("blur",f,!
1),r.events.on(Et.didExitFullscreen,f).on(Et.controlBarVisibilityChanged,function(e
){e||f()})}var _,b,w=re(),k=null,S=null,x=!1,T="menu-"+Math.round(1e3*Math.random()
+(new Date).getTime()),L=!1,P=!1,C=void 0,A=void 0,O=void 0,M=void 0;return
g(),y(),_={show:d,hide:f,toggle:h,setActiveItem:v,on:w.on,off:w.off,destroy:p,butto
n:n,element:k,get focusableItems(){return m()}}}function Ze(e,t,n){return
e=String(e),new Array(t-e.length+1).join(n||"0")+e}function et(e,t){var
n=Math.floor(e/3600%60),i=Math.floor(e/60%60);if(e=Math.floor(e%60),t){var r=e+"
second"+(1===e?"":"s");return i>0&&(r=i+" minute"+(1===i?"":"s")+",
"+r),n>0&&(r=n+" hour"+(1===n?"":"s")+", "+r),r}return(n>0?n+":":"")
+Ze(i,2)+":"+Ze(e,2)}function tt(e,t){function n(){Ne=null,Ve=null}function i()
{if(!Ve){var
e=o(te).left,t=parseInt(window.getComputedStyle(te,"").borderLeftWidth,10);Ve=e+t}r
eturn Ve}function r(){if(!Ne){var
e=o(te).right,t=parseInt(window.getComputedStyle(te,"").borderRightWidth,10);Ne=e-
t}return Ne}function a(t){var n=i(),o=r(),a=o-n,s=t-
n;if(e.config.user.progress&&s<=10&&!Le)return 0;var c=s/a;return u(c,0,1)}function
s(t){for(var n=He,i=Array.isArray(n),r=0,n=i?n:n[Symbol.iterator]();;){var s;if(i)
{if(r>=n.length)break;s=n[r++]}else{if(r=n.next(),r.done)break;s=r.value}var
u=s,c=o(u),l=c.left,d=c.right;if(t>=l&&t<=d){var f=parseFloat(u.getAttribute("data-
time"));return f/e.config.video.duration}}return a(t)}function c(t,n){Le&&!
Re&&(n=n||e.config.video.duration*t||0,window.requestAnimationFrame(function()
{l(t,n),d(t,n)}))}function l(e,t)
{ae.style.left=Math.min(p(100*e),100)+"%",se.innerHTML=et(t)}function d(e,t){var
n=Math.min(p(100*e),100);re.style.width=n+"%",re.setAttribute("aria-
valuenow",p(t)),re.setAttribute("aria-valuetext",et(Math.round(t),!0)+"
played"),Z.setAttribute("width",n+"%")}function f(e,t){var
n=Math.min(p(100*e),100);ie.style.width=n+"%",ie.setAttribute("aria-
valuenow",p(t)),ie.setAttribute("aria-valuetext",et(t,!0)+"
loaded"),J.setAttribute("width",n+"%")}function h(){return Le=!0,je&&(Be=!
1,t.classList.add("invisible"),x(),y()),G.classList.contains("state-playing")?
(e.events.fire(Et.pauseButtonPressed),v()):
(e.events.fire(Et.playButtonPressed),m()),!tn.android}function v(){De=!
1,G.classList.remove("state-playing"),G.classList.add("state-paused");var
e=G.getAttribute("data-title-play");G.setAttribute("title",e),G.setAttribute("aria-
label",e)}function m(){De=!0,je&&x(),G.classList.remove("state-
paused"),G.classList.add("state-playing");var e=G.getAttribute("data-title-
pause");G.setAttribute("title",e),G.setAttribute("aria-label",e)}function g()
{Be&&(Ee||(Le&&qe||Ce||Ye)&&(Pe||(!Xe&&!$e||
Ce)&&(Ce&&e.config.view===bt.privateUnlocked||Me||Ae||(Be=!
1,e.events.fire(Et.controlBarVisibilityChanged,Be),t.classList.add("invisible")))))
}function y(){Be||Ce||
(t.classList.remove("hidden"),t.removeAttribute("hidden"),setTimeout(function()
{Be=!
0,e.events.fire(Et.controlBarVisibilityChanged,Be),t.classList.remove("invisible")}
,0))}function _(t,n){var i=[];"text_tracks"in
e.config.request&&(e.config.request.text_tracks.forEach(function(e){var
t="CC"===e.label.substring(e.label.length-2),n="captions"!==e.kind||t?"":"
CC";i.push({label:e.label+n,id:e.id,active:We===""+e.id})}),i.push({label:"None",id
:"off",active:null===We}));var r=new Je(i,t,n,e);return r.on("selected",function(t)
{return"off"===t?void
e.events.fire(Tt.turnCaptionsOff):void
e.events.fire(Tt.turnCaptionsOn,t)}),r}function b()
{window.requestAnimationFrame(function()
{l(0,e.config.video.duration),d(0,0),f(0,0)})}function w(){Le=!1,Pe=!1,Ae=!1,Fe=!
1,Re=!1,Ee=!1,qe=!1,ze=!
0,_e&&(_e.destroy(),_e=null),Ue&&(Ue.destroy(),Ue=null)}function k(){if(!
e.config.embed.settings.custom_logo)return null;var
t=e.config.embed.settings.custom_logo,n=t.img;return
tn.devicePixelRatio>=2&&(n=n.replace(/(mw|mh)=(\d+)/g,function(e,t,n){return
t+"="+2*parseInt(n,10)})),{showLink:null!
==t.url,url:t.url,img:n,sticky:t.sticky,width:t.width,height:t.height}}function S()
{var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(fe){var
t,n=1/ve.length,i=e/n,r=Math.ceil(i),o=i
%1;o<=.33&&(t="fill1"),o>.33&&o<=.66&&(t="fill2"),ve.forEach(function(e,n){return
e.classList.remove("fill0"),e.classList.remove("fill1"),e.classList.remove("fill2")
,n===r-1&&o&&o<=.66?void e.classList.add(t):void(n>r-
1&&e.classList.add("fill0"))}),fe.setAttribute("aria-
valuenow",e.toFixed(3)),fe.setAttribute("aria-valuetext",Math.round(100*e)
+"%")}}function x(){if(e.config.view===bt.main||e.config.view===bt.privateUnlocked)
{var n=e.config.embed.settings,i={show:n.logo,showLink:!!
e.config.video.url,url:e.config.video.url},r=k();if(e.config.embed.settings.watch_t
railer&&!Le&&!De&&!e.config.embed.autoplay&&e.config.embed.on_site)return void
T(i,r);var o=!e.telecine||e.telecine.supportsSettingVolume,a=!e.telecine||
e.telecine.supportsTextTracks,s="text_tracks"in
e.config.request&&e.config.request.text_tracks.length,u={targetBlank:0===e.config.e
mbed.on_site,playState:De?"playing":"paused",volume:o&&n.volume,ccButton:a&&s,ccOn:
null!
==We,hdButton:ze&&e.config.video.hd,airplayButton:tn.airPlay,stereoscopicButton:"di
sable"!
==e.config.video.privacy&&tn.stereoscopic&&e.config.video.spatial,fullscreenButton:
n.fullscreen,vimeoLogo:i,duration:et(e.config.video.duration),rawDuration:e.config.
video.duration,strings:
{play:"Play",pause:"Pause",loadedBar:"loaded",playedBar:"played",volume:"Volume
(use arrow keys to change)",captions:"Choose captions",hd:"Select video
quality",effect:"Choose an effect to apply to the video",airPlay:"Choose an AirPlay
device",airPlayOff:"Turn off AirPlay",pipEnter:"Enter Picture-in-
Picture",pipReturn:"Exit Picture-in-
Picture",fullscreen:"Fullscreen",enterFullscreen:"Enter full
screen",exitFullscreen:"Exit full screen",watchOnVimeo:"Watch on
vimeo.com",stereoscopic:"Enable stereoscopic playback",stereoscopicOff:"Disable
stereoscopic playback"}};r&&(u.customLogo=r),t.classList.remove("trailer"),je=!
1,t.innerHTML=Kt.render("controlbar",u),G=t.querySelector(".play"),Q=G.querySelecto
r(".buffer"),J=G.querySelector(".loaded"),Z=G.querySelector(".played"),ee=t.querySe
lector(".play-
bar"),te=t.querySelector(".progress"),ne=ee.querySelector(".buffer"),ie=ee.querySel
ector(".loaded"),re=ee.querySelector(".played"),oe=ee.querySelector(".cuepoints"),a
e=t.querySelector(".timecode"),se=ae.querySelector(".box"),ue=t.querySelector(".gho
st-timecode"),ce=ue.querySelector(".box"),le=t.querySelector(".thumb-
preview"),de=t.querySelector(".thumb"),fe=t.querySelector(".volume"),fe&&(ve=Un(fe.
querySelectorAll("div")),S(e.config.request.cookie.volume)),me=t.querySelector(".hd
"),ge=t.querySelector(".play-bar
.cc"),Ke=t.querySelector(".effect"),ke=t.querySelector(".pip"),tn.airPlay&&(Se=t.qu
erySelector(".airplay")),tn.stereoscopic&&e.config.video.spatial&&(xe=t.querySelect
or(".stereoscopic")),Te=t.querySelector(".fullscreen"),Pe=!1,Le||
K(),Be&&e.events.fire(Et.controlBarVisibilityChanged,Be),Ye&&g()}}function T(n,i)
{t.classList.add("trailer");var
r={vimeoLogo:n,text:e.config.video.vod.button_text||"Watch Trailer",strings:
{playTrailer:"Play Trailer",watchOnVimeo:"Watch on
vimeo.com"}};i&&(r.customLogo=i),t.innerHTML=Kt.render("controlbar_trailer",r),G=t.
querySelector(".play"),je=!0}function L(){E(t,".play,
.replay",h),e.events.on([Et.playInitiated,Et.playButtonPressed],m),e.events.on([Et.
pauseButtonPressed,Et.paused,Et.error],v),e.events.on(Et.played,function()
{m()}),e.events.on(Et.ended,function(){Re=!
1,v(),c(1)}),e.events.on(Et.overlayOpened,function(e)
{"notsupported"===e&&v()})}function P(){e.events.on(Et.loadProgress,function(e,t,n)
{Ee||window.requestAnimationFrame(function(){f(n,e)})})}function C()
{e.events.on(Et.bufferStarted,function(e)
{e.initial;ne.classList.remove("hidden"),ie.classList.add("hidden"),Q.setAttribute(
"class",Q.getAttribute("class").replace(/\s+hidden/,"")),Me=!0,Ye||
y()}),e.events.on(Et.bufferEnded,function()
{ne.classList.add("hidden"),ie.classList.remove("hidden"),Q.setAttribute("class",Q.
getAttribute("class")+" hidden"),Me=!1})}function A(){function n(n){if(!n.button||
2!==n.button)
{e.element.classList.add("scrubbing"),e.events.fire(Et.scrubbingStarted);var
a=n.type;if("pointerdown"===a||"MSPointerDown"===a)
{o=n.pointerId;try{n.target.msSetPointerCapture?
n.target.msSetPointerCapture(o):n.target.setPointerCapture(o)}catch(e)
{}Dt(t).on("pointermove",".progress",i).on("pointerup",".progress",r)}else"touchsta
rt"===a?
Dt(t).on("touchmove",i).on("touchend",r):Dt(document).on("mousemove",i).on("mouseup
",r);var
u=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(u=n.targetTouches[0].client
X,n.preventDefault());var f=s(u),h=null;if(Le)c(f);else{var
v=e.config.video.duration*f;l(f,v),d(f,v),Re=!0}return e.events.fire(Tt.seek,f,h),!
1}}function i(t){if(Re=!1,o===t.pointerId&&t.isPrimary!==!1){var
n=t.clientX;t.targetTouches&&t.targetTouches.length>0&&(n=t.targetTouches[0].client
X,t.preventDefault());var i=s(n);c(i),e.events.fire(Tt.seek,i)}}function r(n){var
o=n.type;"pointerup"===o||"MSPointerUp"===o?
Dt(t).off("pointermove",".progress",i).off("pointerup",".progress",r):"touchend"===
n.type?
Dt(t).off("touchmove",i).off("touchend",r):Dt(document).off("mousemove",i).off("mou
seup",r),e.events.fire(Et.scrubbingEnded),e.element.classList.remove("scrubbing")}e
.events.on(Et.playProgress,function(t,n,i){Re&&(0===e.config.embed.time||
e.config.embed.time>0&&t>=e.config.embed.time)&&(Re=!1),Ae||
c(i,t)}),e.events.on(Et.scrubbingStarted,function(e){Ae=!
0,Oe=e}),e.events.on(Et.scrubbingEnded,function(){Ae=!1,Oe=!1});var
o;e.events.on(Et.seeked,function(e,t,n)
{Oe&&c(n)}),Dt(t).on(tn.pointerEvents?"pointerdown":
["touchstart","mousedown"],".progress",n),e.events.on(Tt.setTime,function(t,n)
{t=u(t,0,e.config.video.duration),n||
(n=t/e.config.video.duration),window.requestAnimationFrame(function()
{l(n,t),d(n,t)})})}function O(){function n(){return g||
(g=e.verifyConfig().then(function(e){return
M(e.thumb_preview.url)})),g.then(function(t){var
n=e.config.request.thumb_preview;return de.style.backgroundImage||
(de.style.width=n.frame_width/2+"px",de.style.height=n.frame_height/2+"px",de.style
.backgroundImage="url("+n.url+")",de.style.backgroundSize=n.width/2+"px
"+n.height/2+"px"),t})}function s(t){if(t.target===ee){var
n=a(t.clientX);c(n),e.events.fire(Tt.seek,n)}}function u(e){return
ue.classList.contains("hidden")?e:
(le.classList.remove("hidden"),window.requestAnimationFrame(function()
{window.requestAnimationFrame(function()
{le.classList.remove("invisible")})}),e)}function l(t){Ie||Fe||
(ue.classList.remove("hidden"),Ie=!0,h(t),window.requestAnimationFrame(function()
{window.requestAnimationFrame(function()
{ue.classList.remove("invisible")})}),e.config.request.thumb_preview&&y&&n().then(u
).catch(function(){}),Dt(ee).on("click",s))}function d(t){var
n=e.config.video.duration/e.config.request.thumb_preview.frames,i=Math.min(e.config
.request.thumb_preview.frames-1,Math.ceil(t/n)),r=i
%e.config.request.thumb_preview.columns,o=Math.floor(i/e.config.request.thumb_previ
ew.columns),a=-(r*e.config.request.thumb_preview.frame_width/2),s=-
(o*e.config.request.thumb_preview.frame_height/2);return[a,s]}function f(e){for(var
t=He,n=Array.isArray(t),i=0,t=n?t:t[Symbol.iterator]();;){var r;if(n)
{if(i>=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var
a=r,s=o(a),u=s.left,c=s.right,l=s.width;if(e>=u&&e<=c)return{clientX:u+l/2,snappedT
o:a}}return{clientX:e,snappedTo:null}}function h(t)
{if(e.config.request.thumb_preview&&null===y){var
i=o(te).width,s=document.querySelector(".player").clientHeight,c=215,l=185;if(y=s>=
c&&i>=l,!y)return void le.classList.add("hidden");n().then(u).catch(function()
{})}Ie&&!function(){var
i=f(t.clientX,He),o=i.clientX,s=i.snappedTo,u=a(o),c=e.config.video.duration*u;He.f
orEach(function(e){return
e.classList.toggle("active",e===s)}),e.config.request.thumb_preview&&y&&n().then(fu
nction(e){var t=d(c),n=Ot(t,2),i=n[0],r=n[1];return
window.requestAnimationFrame(function(){de.style.backgroundPosition=i+"px
"+r+"px"}),e}).catch(function(){}),window.requestAnimationFrame(function()
{ce.innerHTML=et(c);var e=(100*u).toFixed(3);ue.style.left=e+"%",p(u),t.clientX>r()
+10&&!le.contains(document.elementFromPoint(t.clientX,t.clientY))&&m()})}
()}function v(){var e=o(G).left,t=o(ee).right,n=o(le).width,a=e+Math.ceil(n/2),s=t-
Math.ceil(n/2),u=i(),c=r(),l=c-u,d=(a-u)/l,f=(s-u)/l;return[d,f]}function p(e){var
t=v(),n=Ot(t,2),i=n[0],r=n[1],o=Math.max(i,Math.min(r,e)),a=(100*o).toFixed(3);le.s
tyle.left=a+"%"}function m()
{ue&&(ue.classList.add("invisible"),le.classList.add("invisible")),Ie=!
1,Dt(ee).off("click",s)}var g=void 0,y=null;e.events.on(Et.resize,function()
{y=null}),Dt(t).on("mouseenter",".progress",l).on("mousemove",".play-
bar",h).on("mouseleave",".play-bar",m),Dt(t).on("transitionend",".ghost-
timecode",function(e)
{"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(ue.cl
assList.add("hidden"),le.classList.add("hidden"))},!
1),e.events.on(Et.mousedOut,m),e.events.on(Et.configChanged,function()
{g=null})}function F(){function n(e)
{We=e,_e&&(_e.setActiveItem(e),setTimeout(function()
{_e.hide()},100)),ge&&(ge.classList.add("on"),ge.classList.remove("off"))}function
i(){We=null,_e&&(_e.setActiveItem("off"),setTimeout(function()
{_e.hide()},100)),ge&&(ge.classList.add("off"),ge.classList.remove("on"))}E(t,".cc"
,function(){e.events.fire(Et.ccButtonPressed)}),e.events.on(Et.ccButtonPressed,func
tion(e){_e?e&&_e.toggle(e):
(_e=_(ge,ee),_e.show(e))}),e.events.on(Et.captionsChanged,function(e){return e?void
n(e.id):void i()}).on(Et.controlBarVisibilityChanged,function(e){e||
_e&&_e.hide()}).on([Tt.enableCaptions,Tt.disableCaptions],function(){x()})}function
I(){function n(){var
t=Kt.render("icon_hd");if(e.telecine.video.currentFile.mime===St.dash){var
n=e.config.request.files.dash.streams,i=Un(n).sort(be()).filter(ye(n)).map(function
(e){var n=pe(e);return{id:n,label:we(e,t),active:r===n}});return
i.push({id:"auto",label:"Auto",active:!r||"auto"===r}),i}var
o=e.telecine.video.files;return
Un(o).filter(he("progressive")).filter(ye(o)).sort(be()).map(function(e)
{return{label:we(e,t),id:pe(e),active:r===e.metadata.quality}})}function i(){var
t=n(),i=new Je(t,me,ee,e);return i.on("selected",function(t)
{e.events.fire(Tt.changeQuality,t)}),i}var r=null;E(t,".hd",function()
{e.events.fire(Et.hdButtonPressed)}),e.events.on(Et.hdButtonPressed,function(e)
{return Ue?void(e&&Ue.toggle(e)):(Ue=i(),void
Ue.show(e))}),e.events.on(Et.qualityChanged,function(e)
{r=e,Ue&&Ue.setActiveItem(e)}),e.events.on(Tt.disableHd,function(){ze=!
1,x()})}function q(){var n=document.createElement("a");if(n.style.cssText="-moz-
filter:blur(2px);-webkit-filter:blur(2px);filter:blur(2px);",!(n.style.length<1))
{var i=null,r=function(){var t=[{label:"Soporific",id:"aden"},
{label:"Escutcheon",id:"earlybird"},{label:"Pluvious",id:"hudson"},
{label:"Moribund",id:"inkwell"},{label:"Fecundity",id:"mayfair"},
{label:"Jejune",id:"toaster"},{label:"None",id:"none",active:!
0}],n=tn.browser.safari,i=e.telecine.supportsEffect(zr),r=kt[e.telecine.video.curre
ntFile.mime],o="dash"===r;return!
n&&o&&i&&t.unshift({label:"ASCII",id:"ascii"}),t};E(t,".effect",function(){return
e.events.fire(Et.effectButtonPressed)}),e.events.on(Et.effectButtonPressed,function
(t){return Ke.classList.remove("hidden"),i?void(t&&i.toggle(t)):(i=new
Je(r(),Ke,ee,e),i.on("selected",function(t){return
e.events.fire(Tt.setEffect,t)}),void
i.show(t))}),e.events.on(Tt.setEffect,function(e){return
i.setActiveItem(e),"none"===e?(Ke.classList.add("off"),void
Ke.classList.remove("on")):(Ke.classList.add("on"),void
Ke.classList.remove("off"))}),e.events.on(Et.ready,function()
{e.telecine.on("scannerchange",function(){i&&(i.destroy(),i=null)})})}}function R()
{E(t,".pip",function(){return"picture-in-picture"===e.telecine.presentationMode?
void e.events.fire(Tt.deactivatePictureInPicture):void
e.events.fire(Tt.activatePictureInPicture)}),e.events.on(Et.pictureInPictureAvailab
le,function(){ke&&(ke.classList.remove("hidden"),ke.hidden=!
1,n())}).on(Et.pictureInPictureNotAvailable,function()
{ke&&(ke.classList.add("hidden"),ke.hidden=!
0,n())}).on(Et.pictureInPictureActivated,function(){$e=!
0,ke&&(ke.classList.add("return"),ke.classList.remove("enter"),ke.setAttribute("tit
le",ke.getAttribute("data-title-
return")))}).on(Et.pictureInPictureDeactivated,function(){$e=!
1,ke&&(ke.classList.add("enter"),ke.classList.remove("return"),ke.setAttribute("tit
le",ke.getAttribute("data-title-enter")))})}function B()
{tn.airPlay&&(E(t,".airplay",function()
{e.events.fire(Et.airPlayButtonPressed)}),e.events.on(Et.airPlayAvailable,function(
){Se&&(Se.classList.remove("hidden"),Se.hidden=!
1,n())}).on(Et.airPlayNotAvailable,function()
{Se&&(Se.classList.add("hidden"),Se.hidden=!
0,n())}).on(Et.airPlayActivated,function(){Xe=!
0,Se&&(Se.classList.remove("off"),Se.classList.add("on"),Se.setAttribute("title",Se
.getAttribute("data-title-on"))),y()}).on(Et.airPlayDeactivated,function(){Xe=!
1,Se&&(Se.classList.remove("on"),Se.classList.add("off"),Se.setAttribute("title",Se
.getAttribute("data-title-off")))}))}function D(){E(t,".fullscreen",function()
{e.events.fire(Et.fullscreenButtonPressed)}),e.events.on(Et.didEnterFullscreen,func
tion()
{t.classList.remove("tiny"),Te&&Te.setAttribute("title",Te.getAttribute("data-
title-unfullscreen"))}),e.events.on(Et.didExitFullscreen,function(e){if(Te){var
n=Te.cloneNode(!
0);Te.parentNode.replaceChild(n,Te),Te=n,Te.setAttribute("title",Te.getAttribute("d
ata-title-fullscreen"))}e||(Ee=!0),Y&&t.classList.add("tiny")})}function j()
{e.events.on([Et.mousedOver,Et.scrubbingStarted,Tt.changeVolume],y).on([Et.mousedOu
t,Et.mouseTimeout],g).on(Et.willEnterFullscreen,function(){Pe=!
1,g()}).on(Et.willExitFullscreen,function(){Pe=!
1}).on(Et.targetTimeReached,function(){qe=!0,g()}).on(Tt.changeVolume,function(e,t)
{t||y()});var n=[".play",".play-bar",".custom-
logo",".menu"];Dt(t).on(["pointerenter","pointerleave","mouseenter","mouseleave"],n
,function(e){return"pointerType"in e?void("mouse"!==e.pointerType&&e.pointerType!
==e.MSPOINTER_TYPE_MOUSE||
(Pe="pointerenter"===e.type||"MSPointerEnter"===e.type)):void(tn.touch||
(Pe="mouseover"===e.type))}),Dt(t).on("transitionend",function(e)
{this===t&&"opacity"===e.propertyName&&t.classList.contains("invisible")&&(t.classL
ist.add("hidden"),t.setAttribute("hidden",""))})}function N(){function n(n)
{if(1===n.which){fe.setAttribute("data-
tabindex",fe.getAttribute("tabindex")),fe.removeAttribute("tabindex"),Fe=!
0,e.element.classList.add("scrubbing"),e.events.fire(Et.volumeScrubbingStarted);var
o=n.type;if("pointerdown"===o||"MSPointerDown"===o)
{s=n.pointerId;try{n.target.msSetPointerCapture?
n.target.msSetPointerCapture(s):n.target.setPointerCapture(s)}catch(e)
{}Dt(t).on("pointermove",".volume",i).on("pointerup",".volume",r)}else"touchstart"=
==o?
Dt(document).on("touchmove",i).on("touchend",r):Dt(document).on("mousemove",i).on("
mouseup",r);var u=n.clientX;n.targetTouches&&(u=n.targetTouches[0].clientX);var
c=a(u);e.events.fire(Tt.changeVolume,c),S(c)}}function i(t){var
n=t.clientX;t.targetTouches&&(n=t.targetTouches[0].clientX,t.preventDefault());var
i=a(n);e.events.fire(Tt.changeVolume,i),S(i)}function r(n){Fe=!
1,e.events.fire(Et.volumeScrubbingEnded),e.element.classList.remove("scrubbing");va
r o=n.type;"pointerup"===o||"MSPointerUp"===o?
Dt(t).off("pointermove",".volume",i).off("pointerup",".volume",r):"touchend"===n.ty
pe?
Dt(document).off("touchmove",i).off("touchend",r):Dt(document).off("mousemove",i).o
ff("mouseup",r),fe.setAttribute("tabindex",fe.getAttribute("data-
tabindex")),fe.removeAttribute("data-tabindex")}function a(e){var
t=o(fe).left,n=o(fe).right,i=n-t,r=e-t,a=r/i;return
u(a,0,1)}Dt(t).on("mousemove",".volume",function(e){var
t=e.srcElement;if(ve.indexOf(t)===-1){var n=o(fe),i=e.clientX,r=n.bottom-
2;if(t=document.elementFromPoint(i,r),ve.indexOf(t)===-
1)return}t.classList.add("hover"),window.requestAnimationFrame(function()
{window.requestAnimationFrame(function()
{t.classList.remove("hover"),t.classList.add("animate")})})}),Dt(t).on("transitione
nd",".volume div",function(e)
{"height"===e.propertyName&&this.classList.remove("animate")}),Dt(document).on("con
textmenu",".volume",function(){this.blur()});var
s;Dt(t).on(tn.pointerEvents?"pointerdown":
["touchstart","mousedown"],".volume",n),e.events.on(Et.volumeChanged,function(e){!
Fe&&ve&&S(e)}).on([Tt.enableVolume,Tt.disableVolume],function(){x()})}function V()
{e.events.on(Et.overlayOpened,function(e){if("notsupported"!==e&&"private-
unlocked"!==e&&"help"!==e)Ce=!0,g();else for(var n=t.querySelectorAll("a, button,
input, [tabindex]"),i=0,r=n.length;i<r;i++){var
o=n[i].getAttribute("tabindex");o&&n[i].setAttribute("data-
tabindex",o),n[i].setAttribute("tabindex","-1")}}).on(Et.overlayClosed,function()
{Ce=!1,y();for(var e=t.querySelectorAll("[tabindex]"),n=0,i=e.length;n<i;n++){var
r=e[n].getAttribute("data-tabindex");r&&"null"!==r?
e[n].setAttribute("tabindex",r):e[n].removeAttribute("tabindex"),e[n].removeAttribu
te("data-tabindex")}})}function H(){e.events.on(Et.outroDisplayed,function()
{e.element.classList.add("player-outroVisible"),t.classList.add("controls-
outro")}).on(Et.outroHidden,function(){e.element.classList.remove("player-
outroVisible"),t.classList.remove("controls-outro")})}function U()
{e.events.on(Et.configChanged,function()
{x(),e.config.view===bt.privateUnlocked&&y(),n(),ze=!0})}function z()
{e.events.on(Tt.reset,function(){b(),y(),w()}),Dt(window).on("resize",function()
{n()})}function W(){e.events.on(Et.enteredTinyMode,function(){Y=!
0,t.classList.add("tiny")}).on(Et.enteredMiniMode,function(){Y=!
1,t.classList.remove("tiny")}).on(Et.enteredNormalMode,function(){Y=!
1,t.classList.remove("tiny")})}function K(){var
t=e.config.user.progress,n=t/e.config.video.duration;!t||e.config.embed.autoplay||
e.config.embed.time||je||(l(n,t),d(n,t),Re=!0)}function X()
{if(e.config.embed.on_site){var n=new Mi;e.events.on(Et.cuePointAdded,function(i)
{if(i.data.visible){var
r=document.createElement("div");r.setAttribute("id","cuepoint-"+i.id),r.setAttribut
e("data-
time",i.time),r.classList.add("cuepoint"),r.classList.add("out"),r.appendChild(docu
ment.createElement("div"));var
o=i.time/e.config.video.duration*100;r.style.left=o+"%",n.set(i,r),oe.appendChild(r
),He=Un(t.querySelectorAll(".cuepoint")),window.requestAnimationFrame(function()
{return r.classList.remove("out")})}}),e.events.on(Et.cuePointRemoved,function(e)
{var
t=n.get(e);t&&(n.delete(e),t.classList.add("out"))}),Dt(t).on("transitionend",".cue
point",function(e)
{this.classList.contains("out")&&(oe.removeChild(this),He=Un(t.querySelectorAll(".c
uepoint")))})}}function $(){xe&&(E(t,".stereoscopic",function()
{e.events.fire(Et.stereoscopicButtonPressed)}),xe.classList.remove("hidden"),xe.hid
den=!1)}var
Y,G,Q,J,Z,ee,te,ne,ie,re,oe,ae,se,ue,ce,le,de,fe,ve,me,ge,_e,ke,Se,xe,Te,Ee=!1,Le=!
1,Pe=!1,Ce=!1,Ae=!1,Oe=!1,Me=!1,Fe=!1,Ie=!1,qe=!1,Re=!1,Be=!0,De=!1,je=!
1,Ne=null,Ve=null,He=[],Ue=null,ze=!0,We=null,Ke=null,Xe=!1,$e=!
1,Ye=e.config.embed.autoplay&&e.config.request.flags.autohide_controls;return
x(),L(),A(),C(),O(),N(),F(),I(),q(),R(),B(),D(),j(),V(),H(),U(),z(),K(),W(),X(),$
(),e.events.on(Et.playInitiated,function(){P(),Le=!0;var t=e.config.embed.time||
e.telecine.currentTime;c(t/e.config.video.duration,t),Re=!
0}),e.events.fire(Et.controlBarModuleReady),{}}function nt(e,t){function n()
{clearTimeout(L),L=null}function
i(){H&&(clearTimeout(L),L=setTimeout(s,P))}function r()
{Xt.element&&Xt.element.classList.contains("js-player-fullscreen")&&(O||
(t.classList.add("player-cursor-hide"),A=!0,O=!0))}function a()
{O&&(t.classList.remove("player-cursor-hide"),O=!1)}function s(t){if((j||D)&&!
V&&(n(),!document.activeElement||!document.body.classList.contains("showfocus")||!
W.contains(document.activeElement)&&!K.contains(document.activeElement)))
{e.events.fire(t?Et.mousedOut:Et.mouseTimeout),A=!0;var
i=tn.spatialPlayback&&e.config.video.spatial;i||
(z.classList.add("hidden"),z.setAttribute("hidden","")),C=!0,r()}}function u()
{j&&D||
(e.events.fire(Et.mousedOver),z.classList.remove("hidden"),z.removeAttribute("hidde
n")),i()}function c(){j||D?t.removeAttribute("tabindex"):j||D||N||
t.setAttribute("tabindex","0")}function l(){function c(){u()}function l(t)
{if(P=T,A)return void(A=!1);if(a(),0!==t.screenX&&t.screenX!==screen.width-1&&0!
==t.screenY&&t.screenY!==screen.height-1){if(g=!
0,tn.spatialPlayback&&e.config.video.spatial){var c=o(e.element),l=t.clientX-
c.left,d=t.clientY-c.top,f=4*ho,h=d>e.element.clientHeight-
fo,v=l>e.element.clientWidth-ho&&d<f;if(q||!h&&!v)return}C&&u(),i()}else
if(n(),r(),g){var p=!0;s(p),g=!1}}function d(){P=E,i()}function f(){var e=!
0;s(e)}function h(e){var t=K.contains(e.target)||
W.contains(e.target),n=M&&M.getWrapper().contains(e.target);if(j&&D||n){if(!t&&(j||
D)){var i=!0;s(i)}}else u()}function v(e){return"mouse"===e.pointerType||
e.pointerType===e.MSPOINTER_TYPE_MOUSE?(P=T,c(e)):(P=E,void h(e))}function p(e)
{if("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE)return
l(e)}function m(e){if("mouse"===e.pointerType||
e.pointerType===e.MSPOINTER_TYPE_MOUSE)return f(e)}var g=!0;return
tn.pointerEvents?void
Dt(t).on("pointerenter",v).on("pointermove",p).on("pointerleave",m):void
Dt(t).on("touchmove",d).on("touchend",h).on("mouseenter",c).on("mousemove",l).on("m
ouseleave",f)}function d(){e.events.on(Et.played,function(e){Y||0===e||
u()}).on(Et.paused,u).on([Et.bufferEnded,Et.scrubbingEnded,Et.volumeChanged],i).on(
Et.playInitiated,function(){H=!
0}),e.events.on(Et.overlayOpened,c).on(Et.controlBarVisibilityChanged,function(e)
{D=e,c()}).on(Et.sidedockVisibilityChanged,function(e){
j=e,c()}),e.events.on(Et.outroDisplayed,function(){V=!
0,u()}).on(Et.outroHidden,function(){V=!1})}function f(){function n(e)
{return(e.classList.contains("title")||e.classList.contains("target")||
X.contains(e.parentNode)&&"HEADER"===e.parentNode.tagName||$.contains(e))&&!
W.contains(e)}function i(t){if(!o&&2!==t.button&&t.target.classList&&n(t.target))
{var i=("pointerup"===t.type||"MSPointerUp"===t.type)&&"mouse"!
==t.pointerType&&t.pointerType!
==t.MSPOINTER_TYPE_MOUSE,r=H&&tn.spatialPlayback&&e.config.video.spatial&&F;if(tn.t
ouch||i){var s=e.telecine.supportedPresentationModes.indexOf("inline")!==-1&&!
tn.mobileAndroid;if(!r){if(H&&s)return;return void
e.events.fire(Et.playButtonPressed)}}a++,1===a&&setTimeout(function(){if(r){var
n=B&&B.x===t.clientX&&B.y===t.clientY;return 1===a&&n&&!
tn.mobileAndroid&&e.events.fire(e.telecine.paused?
Et.playButtonPressed:Et.pauseButtonPressed),1!
==a&&e.telecine.getEffectByName("ThreeSixtyEffect").snapToCenter(),void(a=0)}1===a?
e.events.fire(e.telecine.paused?
Et.playButtonPressed:Et.pauseButtonPressed):e.events.fire(Et.fullscreenButtonPresse
d),a=0},200)}}var r=!1,o=!1,a=0;e.events.on(Et.menuVisibilityChanged,function(e)
{o=e}),Dt(t).on(tn.pointerEvents?"pointerup":"click",i),Dt(t).on("mousedown",".vide
o-wrapper",function(e){if(!r)
{if(z.classList.remove("hidden"),z.removeAttribute("hidden"),2!==e.button){var
t;document.createEvent&&(t=document.createEvent("MouseEvents"),t.initMouseEvent("cl
ick",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),z.dispatchEvent(t))}return!
1}}).on("contextmenu",".video",function(e){return
z.classList.remove("hidden"),z.removeAttribute("hidden"),!
1}),e.events.on(Tt.toggleNativeControls,function(e){return e?(r=!0,void
z.classList.add("hidden")):(r=!1,void z.classList.remove("hidden"))})}function h()
{if(!tn.touch){var n,i;Dt(t).on("focus","a, button, input, [tabindex]",function()
{i=this,clearTimeout(n),n=null,document.activeElement===this&&u()}),Dt(t).on("blur"
,"a, button, input, [tabindex]",function()
{document.activeElement===this&&(n=setTimeout(s,50))}),t.addEventListener("focus",f
unction(e){u(),i&&i.focus()},!1),e.events.on(Et.overlayOpened,function(){N=!
0,t.removeAttribute("tabindex")}),e.events.on(Et.overlayClosed,function(){N=!
1})}}function v(){e.events.on(Et.didEnterFullscreen,function(e)
{r(),V&&u()}).on(Et.didExitFullscreen,function(e){return C=!0,e?void s():(u(),void
n())})}function p(){e.events.on([Et.playProgress,Et.seeked],function t(n)
{n>=U&&null===L&&(e.events.fire(Et.targetTimeReached),e.events.off([Et.playProgress
,Et.seeked],t))})}function m(){e.events.on(Tt.reset,function(){C=!0,A=!0,D=!0,j=!
1,H=!1,p(),n()})}function g()
{e.events.on(Tt.attachSpatialPlaybackEvents,_),e.events.on(Tt.toggleSpatialPlayback
,function(e){y(),F=e,w()})}function y(){$.classList.remove("threesixty-
video"),e.element.classList.remove("grabbable"),e.element.classList.remove("grabbin
g"),M&&M.hide()}function _(){var t=function(e){return function(){F&&e.apply(void
0,arguments)}};e.events.on(Tt.revealSpatialControls,t(function()
{e.element.classList.add("grabbable"),M&&M.updatePosition(e.element),!M||
M.visible||F.isStereo()||M.reveal()})),e.events.on(Et.ended,t(function()
{y()})),e.events.on(Et.cameraUpdate,t(function(e)
{M&&M.setAngle(e.lat,e.lon)})),e.events.on(Et.playInitiated,t(function()
{e.config.video.spatial&&b()})),e.events.on(Et.stereoscopicButtonPressed,t(function
(){w()}));var n=null,i=t(function(t){q||(q=!
0,t.preventDefault(),e.element.classList.add("grabbing"),B={x:t.clientX,y:t.clientY
},F.makeContact(B))}),r=t(function(e)
{q&&(w(),F.move({x:e.clientX,y:e.clientY}))}),o=t(function(t)
{q&&(e.element.classList.remove("grabbing"),F.releaseContact(!1),q=!
1)}),a=t(function(t){t.preventDefault(),F.isUserInteracting||(F.isUserInteracting=!
0),null!==n&&clearTimeout(n),w(),n=setTimeout(function()
{e.element.classList.remove("player-cursor-
hide"),e.element.classList.add("grabbable"),F.isUserInteracting=!
1},500),e.element.classList.add("player-cursor-
hide"),e.element.classList.remove("grabbable"),F.moveWheel({x:t.deltaX,y:t.deltaY})
}),s=t(function(e){q||(q=!
0,F.makeContact({x:e.touches[0].clientX,y:e.touches[0].clientY}))}),u=t(function(e)
{q&&(e.preventDefault(),w(),F.move({x:e.touches[0].clientX,y:e.touches[0].clientY})
)}),c=t(function(e){F.releaseContact(!0),q=!1}),l=t(function(e){q||
w(),F.moveDevice(e.alpha,e.beta,e.gamma,e.orientation)}),d=t(function(t){q=!
1,e.element.classList.remove("grabbing"),F.abandonMotion()}),f=function()
{M&&M.updatePosition(e.element),F.adjustRenderSize(),q=!1},h=t(f),v=t(function()
{f();var t=3,n=0,i=100,r=setInterval(function(){if(n++,n>t)return void
clearInterval(r);var
i=F.getRendererSize(),o=e.element.clientHeight,a=e.element.clientWidth;return a!
==i.width||o!==i.height?void F.adjustRenderSize():void
clearInterval(r)},i)});e.events.once(Et.playInitiated,function()
{window.addEventListener("resize",h),window.addEventListener("orientationchange",h)
,e.events.on([Et.enteredTinyMode,Et.enteredMiniMode,Et.enteredNormalMode],h),e.even
ts.on(Et.didEnterFullscreen,v),e.events.on(Et.didExitFullscreen,v),tn.android&&wind
ow.addEventListener("deviceorientation",l,!1),tn.pointerEvents?
(Dt(z).on("pointerdown",i),window.addEventListener("pointermove",r),window.addEvent
Listener("pointerup",o),window.addEventListener("pointerleave",d)):
(Dt(z).on("touchstart",s).on("mousedown",i).on("wheel",a),window.addEventListener("
touchmove",u),window.addEventListener("mousemove",r),window.addEventListener("mouse
up",o),window.addEventListener("touchend",c),window.addEventListener("mouseleave",d
))})}function b(){function n(){var e=t;if(!R){var
n=R=document.createElement("div");n.classList.add("cloaked"),n.classList.add("playe
r-alert-round"),n.classList.add("player-alert-round--top"),n.classList.add("player-
alert-round--threesixty"),e.appendChild(n)}}function i(e)
{R&&(R.innerHTML=Kt.render("threesixty_reminder",e))}function r(){i({showArrows:!
1,text:tn.android?"Look around":"Click and drag to look around"})}function o()
{i({showArrows:!1,text:tn.android?"Look around":"Use arrow keys to see more"})}var
a=e.telecine.getEffectByName("ThreeSixtyEffect"),s=7e3,u=14e3,c=3e3,l=e.config.embe
d.settings.spatial_compass;l?(M||(M=new lo(e.element.querySelector(".controls-
wrapper"),function()
{a.snapToCenter()})),M.updatePosition(e.element),M.reveal()):M&&M.hide(),e.events.o
nce(Et.firstTimeUpdate,function(){I.push(setTimeout(function()
{r(),x(R),k(R),setTimeout(function(){return S(R)},c)},s)),tn.android||
I.push(setTimeout(function(){o(),x(R),k(R),setTimeout(function(){return
S(R)},c)},u))}),n()}function w(){I.forEach(function(e){return
clearTimeout(e)}),I=[]}function k(e)
{e&&(e.classList.remove("cloaked"),window.requestAnimationFrame(function()
{e.classList.add("in")}))}function S(e)
{e&&(e.classList.add("leaving"),window.requestAnimationFrame(function()
{Dt(e).on("transitionend",function t(n)
{"opacity"===n.propertyName&&(e.classList.remove("in"),e.classList.remove("leaving"
),e.classList.add("cloaked"),Dt(e).off("transitionend",t))})}))}function x(e){var
t=o(W);return t.width>60?void e.classList.add("player-alert-bumpdown"):void
e.classList.remove("player-alert-bumpdown")}var T=2e3,E=4500,L=null,P=tn.touch?
E:T,C=!0,A=!0,O=!1,M=null,F=null,I=[],q=!1,R=null,B=null,D=!0,j=!1,N=!1,V=!1,H=!
1,U=1.75,z=t.querySelector(".target"),W=t.querySelector(".sidedock"),K=t.querySelec
tor(".controls"),X=t.querySelector(".title"),
$=t.querySelector(".video"),Y=e.config.embed.autoplay&&e.config.request.flags.autoh
ide_controls;return l(),d(),f(),h(),v(),p(),m(),g(),{}}function it(e,t){function
n(){return!C&&(e.config.view===bt.main||
e.config.view===bt.privateUnlocked)}function r()
{O&&"help"===P&&e.events.fire(Et.overlayCloseButtonPressed)}function o(e)
{return"number"!=typeof e.which&&(e.which=e.keyCode),e}function a(e)
{if("keypress"===e.type){var t=String.fromCharCode(e.which);return e.shiftKey||
(t=t.toLowerCase()),t}return e.which in Xo?
Xo[e.which]:String.fromCharCode(e.which).toLowerCase()}function s(e){return!
(e.ctrlKey||e.metaKey||e.altKey)&&(e.which in
Xo?"keydown"===e.type:"keypress"===e.type)}function u(e){var t=e.target||
e.srcElement;return"INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagNam
e||t.isContentEditable}function c(t){if(t=Array.isArray(t)?t:[t],O&&"help"===P)
{if(e.events.fire(Et.overlayCloseButtonPressed),t[0]===Tt.showOverlay&&"help"===t[1
])return!1;if(t[0]!==Tt.openVimeo)return setTimeout(function()
{e.events.fire.apply(null,t)},250),!1}return e.events.fire.apply(null,t),!
1}function l(t,n){if(!D){n&&!
e.telecine.paused&&e.events.fire(Et.pauseButtonPressed);var i=!
0;e.events.fire(Et.scrubbingStarted,i),D=!0}h(B),B+
+,1===B&&(R=e.config.video.fps);var r=n?1:R,o="right"===t?r:-
r,a=Math["right"===t?"ceil":"floor"]
(e.telecine.currentTime*e.config.video.fps);d(a+o)}function d(t){var
n=null,i=t/e.config.video.fps;e.events.fire(Tt.seek,n,i)}function f(t){R=F,B=0;var
n=t.shiftKey;e.events.fire(Et.scrubbingEnded,n),D=!1}function h(e){var
t=e,n=Math.ceil(F),i=Math.ceil(I-F),r=q;R=v(t,n,i,r)}function v(e,t,n,i){return
e/=i,e--,n*(e*e*e+1)+t}function p(e){var
t=M.focusableItems,n=t.indexOf(document.activeElement),i="up"===e?n-
1:n+1,r=null;return r=i>=t.length?t[0]:i<0?t[t.length-1]:t[i],!r||(r.focus(),!
1)}function g(){return!!M||(document.activeElement&&document.activeElement!
==document.body?void 0:
(e.events.fire(Et[e.telecine.paused?"playButtonPressed":"pauseButtonPressed"]),r(),
!1))}function y(){return M?
(M.element.contains(document.activeElement)&&M.button.focus(),M.hide(),!
1):document.activeElement&&t.contains(document.activeElement)?(i(),!0):O?
(e.events.fire(Et.overlayCloseButtonPressed),!1):void 0}function _(){if(M)return!
M.element.contains(document.activeElement)||
p("up");if(tn.spatialPlayback&&e.config.video.spatial)return
e.telecine.getEffectByName("ThreeSixtyEffect").keyPress("up"),!
1;if(e.config.embed.on_site&&document.activeElement&&!
t.contains(document.activeElement))return!0;r();var n=!1,i=!0;return
e.events.fire(Tt.changeVolume,Ko,n,i),!1}function b(){if(M)return!
M.element.contains(document.activeElement)||
p("down");if(tn.spatialPlayback&&e.config.video.spatial)return
e.telecine.getEffectByName("ThreeSixtyEffect").keyPress("down"),!
1;if(e.config.embed.on_site&&document.activeElement&&!
t.contains(document.activeElement))return!0;r();var n=!1,i=!0;return
e.events.fire(Tt.changeVolume,-Ko,n,i),!1}function w(t,n){if(M)return!
M.element.contains(document.activeElement)||
p("left"===n?"up":"down");if(r(),tn.spatialPlayback&&e.config.video.spatial)return
e.telecine.getEffectByName("ThreeSixtyEffect").keyPress(n),!
1;if(document.activeElement&&document.activeElement===A){var i=!1,o=!
0,a="left"===n?-Ko:Ko;return e.events.fire(Tt.changeVolume,a,i,o),!1}return
t.shiftKey||0===B?void l(n,t.shiftKey):void j(n,t.shiftKey)}function k()
{e.events.on(Et.overlayOpened,function(e){O=!0,P=e,"notsupported"===e&&(C=!
0)}),e.events.on(Et.overlayClosed,function(){O=!1,P=null})}function S()
{e.events.on(Et.menuVisibilityChanged,function(e,t){M=!!e&&t})}function x()
{e.events.on(Et.configChanged,function(e){e&&(C=!1)})}function T(){function t(e)
{if(o(e),s(e)&&!u(e)&&n()){var t=a(e);if(t in r){if("function"==typeof r[t])return
void(r[t](e,t)===!1&&(e.preventDefault(),e.stopPropagation()));c(r[t])===!
1&&(e.preventDefault(),e.stopPropagation())}}}function i(t){if(o(t),!u(t)&&n()){var
i=a(t);return
tn.spatialPlayback&&e.config.video.spatial&&("left"===i||"right"===i||"up"===i||"do
wn"===i)?void e.telecine.getEffectByName("ThreeSixtyEffect").keyUp(i):void("left"!
==i&&"right"!==i||f(t))}}var
r={l:Et.likeButtonPressed,w:Et.watchLaterButtonPressed,s:Et.shareButtonPressed,c:
[Et.ccButtonPressed,!0],h:[Et.hdButtonPressed,!0],f:Et.fullscreenButtonPressed,x:
[Et.effectButtonPressed,!0],e:[Et.effectButtonPressed,!
0],d:Et.debugButtonPressed,space:g,up:_,down:b,left:w,right:w,esc:y,"?":
[Tt.showOverlay,"help"]};e.config.embed.on_site||
(r.v=Tt.openVimeo),document.addEventListener("keydown",t,!
1),document.addEventListener("keypress",t,!1),document.addEventListener("keyup",i,!
1)}function E(){e.events.on(Et.becameActive,function(){C=!
1}).on(Et.becameInactive,function(){C=!
0}),e.config.embed.on_site&&document.querySelector(".player")===t&&(C=!1)}function
L(){var e=void 0,t=!1;document.body.addEventListener("keydown",function(n){9!
==n.which||document.body.classList.contains("showfocus")?27===n.which?
document.body.classList.remove("showfocus"):32!==n.which&&13!==n.which||(t=!
0,clearTimeout(e),e=setTimeout(function(){t=!
1},200)):document.body.classList.add("showfocus")}),document.body.addEventListener(
"click",function(e){t||document.body.classList.remove("showfocus")})}var P,C=!!
e.config.embed.on_site,A=t.querySelector(".volume"),O=!1,M=!
1,F=e.config.video.fps/5,I=Math.max(F,.618*e.config.video.duration),q=100,R=F,B=0,D
=!1,j=m(l,80);return k(),S(),x(),T(),E(),L(),{pause:function(){C=!
0},unpause:function(){C=!1}}}function rt(e,t){function n(e){var
n="watchlater"===e||"unwatchlater"===e?.5:.4,i=t.clientHeight;return
t.clientHeight>t.clientWidth&&(i=t.clientWidth),
{height:Math.round(i*n),width:Math.round(i*n*1.6)}}function i(e,t){var
n=e.querySelector(".hour-hand"),i=e.querySelector(".minute-hand");if(n&&i){var r=t?
1:-1,o=new Date,a=Math.abs(o.getHours()-12),s=o.getMinutes(),u=s/60*360-
135,c=a/12*360+s/60*5,l=1.5,d=c+30*l*r,f=u+360*l*r;if(tn.browser.firefox||
tn.browser.opera){var h="10
10";n.setAttribute("transform","rotate("+c+","+h+")"),i.setAttribute("transform","r
otate("+u+","+h+")");var
v=document.createElementNS("http://www.w3.org/2000/svg","animateTransform");v.setAt
tribute("attributeName","transform"),v.setAttribute("type","rotate"),v.setAttribute
("begin","0.1s"),v.setAttribute("repeatCount","indefinite");var p=v.cloneNode(!
1);p.setAttribute("from",c+" "+h),p.setAttribute("to",c+360*r+"
"+h),p.setAttribute("dur","0.8s"),n.appendChild(p);var m=v.cloneNode(!
1);m.setAttribute("from",u+" "+h),m.setAttribute("to",u+360*r+"
"+h),m.setAttribute("dur","9.6s"),i.appendChild(m)}else
n.style[tn.transformProperty+"Origin"]="46%
81.5%",i.style[tn.transformProperty+"Origin"]="25.5%
26.5%",n.style[tn.transformProperty]="rotate("+c+"deg)",i.style[tn.transformPropert
y]="rotate("+u+"deg)";window.requestAnimationFrame(function()
{e.classList.add("animate"),tn.browser.firefox||tn.browser.opera||
window.requestAnimationFrame(function()
{n.style[tn.transformProperty]="rotate("+d+"deg)",i.style[tn.transformProperty]="ro
tate("+f+"deg)"})})}}function r(e,r){if(null!==t.parentElement.offsetParent)
{t.classList.remove("hidden"),t.removeAttribute("hidden"),t.setAttribute("data-
name",e);var
a=n(e),s="width:"+a.width+"px;height:"+a.height+"px";d.style.cssText=s,d.innerHTML=
r,"watchlater"!==e&&"unwatchlater"!==e||
i(d,"watchlater"===e),clearTimeout(l),t.classList.remove("animate"),window.requestA
nimationFrame(function()
{t.classList.remove("invisible"),l=setTimeout(o,750)})}}function o()
{t.classList.add("animate"),t.classList.add("invisible")}function a()
{t.classList.remove("animate"),t.classList.remove("invisible"),t.classList.add("hid
den"),t.setAttribute("hidden",""),t.removeAttribute("data-
name"),d.innerHTML="",d.classList.remove("filled"),d.classList.remove("animate"),e.
events.fire(Et.notificationHidden)}function s(){e.events.on(Et.liked,function(e)
{e||r("like",Kt.render("icon_heart"))}),e.events.on(Et.unliked,function(e){e||
r("unlike",Kt.render("icon_broken_heart"))})}function u()
{e.events.on(Et.addedToWatchLater,function(e){e||
r("watchlater",Kt.render("icon_clock"))}),e.events.on(Et.removedFromWatchLater,func
tion(e){e||r("unwatchlater",Kt.render("icon_clock"))})}function c()
{Dt(t).on("transitionend",function(e)
{d.contains(e.target)&&"height"===e.propertyName?
setTimeout(o,100):e.target===t&&"opacity"===e.propertyName&&window.requestAnimation
Frame(a)})}var l,d=t.querySelector(".notification");return
c(),s(),u(),e.events.fire(Et.notificationModuleReady),{}}function ot(e,t){function
n(e){l(e,"facebook",{width:580,height:400})}function r(e){l(e,"twitter",
{width:550,height:420})}function o(e){l(e,"tumblr",{width:540,height:600})}function
a(){function n(){e.events.fire(Et.embedCodeCopied);var n=t.querySelector(".js-
embedCopy");n.innerHTML=n.getAttribute("data-success-
label"),clearTimeout(r),r=setTimeout(function(){n.innerHTML=n.getAttribute("data-
label")},2e3)}var r;Dt(t).on("transitionend",".js-share-screen",function(e)
{"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(s.fir
e(Et.embedViewEnd),this.classList.add("cloaked"))}).on("transitionend",".js-embed-
screen",function(e)
{"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(s.fir
e(Et.shareViewEnd),this.classList.add("cloaked"),v(t))}).on("copy","input[name=embe
d_code]",function(){e.events.fire(Et.embedCodeCopied)}),E(t,".js-
facebook",function(){return e.events.fire(Et.facebookButtonPressed,this.href),i(),!
1}),E(t,".js-twitter",function(){return
e.events.fire(Et.twitterButtonPressed,this.href),i(),!1}),E(t,".js-
tumblr",function(){return e.events.fire(Et.tumblrButtonPressed,this.href),i(),!
1}),E(t,".js-email",function(){return
e.events.fire(Et.emailButtonPressed),window.location=this.href,i(),!1}),E(t,".js-
embed",function(){return
e.events.fire(Et.embedButtonPressed),c.showEmbedView(),i(),!1}),E(t,".js-
embedCopy",function(){if(u){var
e=t.querySelector("input[name=embed_code]");e.select();try{document.execCommand("co
py")&&n()}catch(e){}return document.activeElement.blur(),!1}}),tn.touch?
Dt(t).on("focus","input[name=embed_code]",function(){var
e=this;setTimeout(function()
{e.setSelectionRange(0,9999),e.setAttribute("readonly","readonly")},0)}).on("blur",
"input",function()
{this.removeAttribute("readonly")}):Dt(t).on("click","input[name=embed_code]",funct
ion(){this.setSelectionRange(0,9999)}),s.on(Et.embedViewShown,function(){function
i(){var i=t.querySelector(".js-embedCopy"),r=new ZeroClipboard(i,
{moviePath:e.config.request.urls.zeroclip_swf,trustedDomains:
["*"],allowScriptAccess:"always"});r.on("complete",n)}if(!u&&tn.flash.installed)
{var r="zc_script_loaded";if(!document.getElementById(r)){var
o,a=document.createElement("script");return
a.setAttribute("id",r),a.setAttribute("src",e.config.request.urls.zeroclip_js),a.on
readystatechange=a.onload=function(){o||i(),o=!0},void
document.getElementsByTagName("head")[0].appendChild(a)}i()}})}var s=re(),u=!
1,c={get events(){return s},setup:function(){t.classList.remove("share2-embed-
active","share2-embed-
only"),e.config.embed.settings.share&&e.config.embed.settings.share.embed_only&&t.c
lassList.add("share2-embed-only");var i=t.querySelector(".js-
embedCopy");i&&(i.style.width=_(i,
["Copy","Copied!"])),e.events.on(Et.facebookButtonPressed,n).on(Et.twitterButtonPre
ssed,r).on(Et.tumblrButtonPressed,o)},destroy:function()
{e.events.off(Et.facebookButtonPressed,n).off(Et.twitterButtonPressed,r).off(Et.tum
blrButtonPressed,o)},getShareData:function(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:
{},n=(arguments[1],e.config.video.title),i=e.config.video.owner.name,r=e.config.vid
eo.share_url;return
u=document.queryCommandSupported&&document.queryCommandSupported("copy"),t.template
=Kt.render("share2",
{url:e.config.video.url,shareUrl:r,playerShareUrl:"https://"+e.config.player_url+"/
video/"+e.config.video.id+"/share",title:n,owner:i,embed:"public"===e.config.video.
embed_permission&&e.config.embed.settings.embed,embedOnly:e.config.embed.settings.s
hare&&e.config.embed.settings.share.embed_only,embedCode:e.config.video.embed_code,
copyButton:u||tn.flash.installed,customizeEmbed:!!e.config.video.url,readOnly:!
tn.touch,strings:{share:"Share",facebook:"Share on Facebook",twitter:"Share on
Twitter",tumblr:"Share on Tumblr",email:"Share via Email",emailSubject:"Check out
"+n+" from "+i+" on Vimeo",emailBody:"Check out "+n+" from "+i+" on
Vimeo.\n\nThe video is available for your viewing pleasure at "+r+"\n\nIf you like
this video, make sure you share it, too!\n\nVimeo
is filled with lots of amazing videos. See more at
https://vimeo.com.",embedCode:"Get embed
code",embedTitle:"Embed",embedSubtitle:"Add this video to your site with the embed
code below.",copy:"Copy",copySuccess:"Copied!",customize:'<a
href="'+e.config.video.url+'#embed" target="_blank">Customize this embed</a> on
Vimeo'}}),e.config.embed.settings.share&&e.config.embed.settings.share.embed_only&&
(t.wrapperClass="embed-only"),t},showShareView:function(){t.querySelector(".js-
share-screen").classList.remove("cloaked"),t.classList.remove("share2-embed-
active"),s.fire(Et.shareViewShown)},showEmbedView:function()
{e.config.embed.settings.share.embed_only||(t.querySelector(".js-embed-
screen").classList.remove("cloaked"),t.classList.add("share2-embed-
active")),s.fire(Et.embedViewShown)}};return a(),c}function at(e,t){function n(e)
{if("yes"===e.form.getAttribute("data-bubble")){e.form.setAttribute("data-
bubble","no");var
n=t.querySelector(".validationBubble2"),r=n.querySelector(".validationBubble2-
message");r.innerHTML=e.validationMessage||"There is an error with this input.";var
a=o(e),s=o(e.form);n.style.left=a.left-
s.left+"px",n.style.top=a.height+1+"px",n.classList.remove("validationBubble2-
hidden"),e.focus(),window.requestAnimationFrame(function()
{n.classList.add("validationBubble2-animate")}),i()}}function i(e){var
n=t.querySelector(".validationBubble2");if(n){if(e)return clearTimeout(d),void
n.classList.remove("validationBubble2-animate");var
i=5e3;clearTimeout(d),d=setTimeout(function()
{n.classList.remove("validationBubble2-animate")},i)}}function r(){var
e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.showBubble,o=void
0===r||r,a=t.querySelector("input[type=email]");return a.setAttribute("aria-
invalid","false"),a.setCustomValidity(""),a.checkValidity&&!a.checkValidity()?
(a.setAttribute("aria-
invalid","true"),a.validity.valueMissing&&a.setCustomValidity("Please enter your
email."),a.validity.typeMismatch&&a.setCustomValidity("Please enter a valid
email."),o&&n(a),!1):(i(!0),!0)}function a(){var
e=t.querySelector(".emailCapture2"),n=t.querySelector(".emailCapture2-
confirm");e.classList.add("emailCapture2-
invisible"),n.classList.remove("emailCapture2-confirm-
hidden"),window.requestAnimationFrame(function()
{window.requestAnimationFrame(function()
{n.classList.add("in"),setTimeout(f,2250)})})}function s(e,n,i){v(t);var
r=Un(e.querySelectorAll("input")),o=r.map(function(e){return e.name?
encodeURIComponent(e.name)
+"="+encodeURIComponent(e.value):encodeURIComponent(e.value)}).join("&"),a=3e3,s=ne
w XMLHttpRequest;s.open(e.method,e.action+window.location.search,!
0),s.setRequestHeader("Content-Type","application/x-www-form-
urlencoded"),s.withCredentials=!0,s.timeout=a,s.onload=function(){var
e;try{e=JSON.parse(s.responseText)}catch(e){}n(e,s)},s.onerror=function(e)
{i(e)},s.send(o)}function u(t){function i(t,n){return t===!1?void o(n.status,n):
(e.events.fire(Et.emailCaptureSuccess),void a())}function o(e)
{c.classList.remove("loading"),u.setCustomValidity("Uh oh. There was a problem.
Please try again."),u.setAttribute("aria-invalid","true"),n(u)}if(!r())return!1;var
u=t.querySelector("input[type=email]"),c=t.querySelector("input[type=submit]"),l={s
ignature:"signature",time:"timestamp",expires:"expires"};Object.keys(l).forEach(fun
ction(n){var
i=t.querySelector("input[name="+n+"]");i.value=e.config.request[l[n]]}),c.classList
.add("loading"),s(t,i,o)}function c(){Dt(t).on("click",".emailCapture2-form-
button--cancel",function(){f()}),Dt(t).on("click",".emailCapture2-form-button--
replay",function()
{e.events.fire(Et.playButtonPressed)}),Dt(t).on("click",".emailCapture2-form-
button--submit",function(){this.form.classList.add("emailCapture2-form-
submitted"),this.form.setAttribute("data-
bubble","yes"),r()}).on("submit",".emailCapture2-form",function(){return
e.events.fire(Et.emailCaptureSubmitted),u(this),!
1}).on(["focus","input"],".emailCapture2-form-input[type=email]",function()
{r({showBubble:!1})})}var l=re(),d=void 0,f=function()
{l.fire(Et.emailCaptureEnd)},h={get events(){return l},getData:function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},i=e.config.embed.email||{},r=n.custom_logo||i.custom_logo;if(r)var
o=O({width:150,height:75,baseUrl:r,webpSupport:e.config.request.flags.webp});return
t.template=Kt.render("email_capture2",{allowSkip:n.allow_skip||
i.allow_skip,customLogo:o,text:n.text||
i.text||"",action:"https://"+e.config.player_url+"/video/"+e.config.video.id+"/subm
it-email",confirmation:n.confirmation||i.confirmation||"Thanks! Your email was
successfully submitted.",referrer:e.config.request.referrer,strings:{email:"Email
address",fullName:"Name (optional)",nothanks:"No
thanks",submit:"Submit"}}),t.modal=!0,t.logo=!1,t.preventBackgroundClose=!
0,t.noblur=n.noblur,t}};return c(),h}function st(e,t){function n(e,t){return
t.indexOf(e)!==-1}function i(){return n(F,["text","vod","staticimage"])?1:n(F,
["link"])?n(F,["link"])&&2===B?2:1:2}function r(){if(n(e.config.embed.outro,
["vod"]))return F="vod",R=o(F),N===!0&&v(),_t.resolve(R);H=!0;var
t="https://"+e.config.player_url+"/video/"+e.config.video.id+"/outro?
on_site="+e.config.embed.on_site+"&type="+e.config.embed.outro;return h(t,
{withCredentials:!0}).then(function(e){return JSON.parse(e)}).then(function(e)
{return F=e.type,R=o(F,e.data),B=e.version,a(),R})}function o(t){var
i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},r=A(e.element.clientWidth*tn.devicePixelRatio,e.element.clientHeight*tn.devicePi
xelRatio),o=r.width,a=r.height;if(i.img_base&&(i.bgimage=O({width:o,height:a,baseUr
l:i.img_base,webpSupport:e.config.request.flags.webp})),n(t,["vod"])){var
s="undefined"!=typeof e.config.video.vod.is_preorder?
e.config.video.vod.is_preorder:!!
e.config.video.vod.date_available,u=e.config.video.vod.is_coming_soon,c=e.config.vi
deo.vod.date_available_formatted_datetime||
e.config.video.vod.date_available,l="Coming soon to Vimeo On
Demand.";u&&c&&(l="Coming soon to Vimeo On Demand on "+c+"."),s&&(l="Pre-order now.
Watch on
"+c+"."),i={purchased:e.config.user.purchased,title:e.config.video.vod.feature_titl
e,url:e.config.video.vod.url,currency:e.config.request.currency,countries:e.config.
video.vod.countries,country:e.config.request.country,buttons:e.config.video.vod.pur
chase_options,translationMap:e.config.request.dynamic_translation_map,isPreorder:s,
isComingSoon:u,releaseDate:c,strings:{watch:s?"Watch on "+c:"Watch
Now",preRelease:l}}}return n(t,
["videos","threevideos","promoted"])&&(e.config.user.following=i.following,i={conte
xts:Array.isArray(i)?i:
[i],owner:e.config.video.owner.id,bgimage:i.bgimage,following:i.following},i.contex
ts&&i.contexts.forEach(function(t){t.videos.forEach(function(n)
{n.fullTitle=n.title,n.byline="",n.owner.id!==i.owner&&(n.fullTitle=n.title+" from
"+n.owner.name,n.byline="from
"+n.owner.name),n.thumbnail_base&&(n.thumbnail=O({width:Math.round(o/t.videos.lengt
h),height:Math.round(a/t.videos.length),baseUrl:n.thumbnail_base,webpSupport:e.conf
ig.request.flags.webp}))})})),n(t,["share"])&&(i.strings={back:"Back"}),i}function
a(){R&&(R.bgimage&&M(R.bgimage),R.contexts&&R.contexts.forEach(function(e)
{e.videos.forEach(function(e){M(e.thumbnail)})}))}function s(){var
e=document.querySelector(".js-outro-followWrap");if(e){var
t=window.getComputedStyle(e),n=parseFloat(t.fontSize);e.style.width=e.clientWidth/n
+"em"}}function u()
{c(),Dt(window).off("resize",z),Dt(window).on("resize",z)}function c(){var
e=q.querySelector(".js-outro-linkWrapper");l(e,".js-outro-text"),l(e,".js-outro-
title"),l(e,".js-outro-linkWrap")}function l(e,t){var
n=e.querySelector(t);n&&(n.style.display="block",e.scrollWidth*e.scrollHeight>e.cli
entWidth*e.clientHeight&&(n.style.display="none"))}function d(){var
e=t.querySelector(".js-outro-
content"),n=P.getShareData();e.innerHTML=n.template,P.setup()}function f(){var
e=t.querySelector(".js-outro-
content"),n=C.getData({},R);e.innerHTML=n.template}function v(){if(n(F,
["beginning"]))return q.innerHTML="",void e.events.fire(Tt.reset);if(n(F,
["nothing"]))return D=!0,q.innerHTML="",void
e.events.fire(Et.outroDisplayed,null,i());if(null===R&&!H)return void
r().then(function(){return v()}).catch(function(){});if(R){if(n(F,
["videos","threevideos","promoted"])){var o=R.contexts.reduce(function(e,t){return
e+t.videos.length},0);if(0===o)return;R.showFollowButton=!
e.config.user.owner&&e.config.user.logged_in,R.strings={follow:"Follow",following:"
Following",unfollow:"Unfollow"}}R.target=!e.config.embed.on_site;var a=F;n(F,
["threevideos","promoted"])&&(a="videos"),2===i()&&(a+="2"),q.innerHTML=Kt.render("
outro_"+a,R),q.setAttribute("data-
type",a),t.classList.remove("hidden"),t.removeAttribute("hidden"),D=!0,n(F,
["videos","threevideos"])?s():2===i()&&n(F,["link"])?u():n(F,["share"])?d():n(F,
["email"])&&f(),window.requestAnimationFrame(function()
{window.requestAnimationFrame(function(){t.classList.add("in"),g()})})}}function
p(){D&&(P.destroy(),j=!1,D=!1,window.requestAnimationFrame(function()
{t.classList.remove("in"),e.events.fire(Et.outroHidden),L()}))}function g(){if(!
j&&t.clientWidth){Dt(window).off("resize",U),j=!0;var
n=[];R&&R.contexts&&R.contexts.forEach(function(e)
{e.videos&&e.videos.forEach(function(e){var t=e.id,i=q.querySelector('[data-video-
id="'+t+'"]');i&&i.clientWidth>0&&n.push(t)})}),e.events.fire(Et.outroDisplayed,n,i
())}}function y(){e.events.on(Et.playProgress,function(e,t,n){N=!1,!
H&&null===R&&e>=t-V&&r().catch(function(){})})}function _()
{e.events.on(Et.playInitiated,function(){n(e.config.embed.outro,
["nothing","beginning"])&&(F=e.config.embed.outro,R=!
1)}),e.events.on(Et.ended,function(){I=setTimeout(function()
{e.events.fire(Tt.showOutro)},W)}),e.events.on(Et.loadVideo,function()
{clearTimeout(I)}),e.events.on(Tt.showOutro,function(t,n)
{e.performDelegateAction(wt.showOutro,function(){t&&(F=t,R=null,H=!
1),n&&(n.data&&(R=o(t,n.data)),n.version&&(B=n.version||1)),N=!
0,v()})}),e.events.on(Tt.hideOutro,function(){p()}),Dt(t).on("click",".js-v
ideoLink",function(t)
{e.events.fire(Et.outroVideoPressed,parseInt(this.getAttribute("data-video-
id"),10),i())}),Dt(t).on("click",".js-cta",function(t)
{e.events.fire(Et.outroCtaPressed,this.href,i())}),Dt(t).on("click",".js-
link",function(t)
{e.events.fire(Et.outroLinkPressed,this.href,i())}),Dt(t).on("click",".js-
imageLink",function(t)
{e.events.fire(Et.outroImagePressed,this.href,i())}),Dt(t).on("transitionend",funct
ion(e){t.classList.contains("in")||
(t.classList.add("hidden"),t.setAttribute("hidden",""))},!
1),e.events.on([Et.played,Et.seeked,Et.scrubbingStarted],p)}function b(){E(t,".js-
outro-follow",function()
{e.events.fire(Et.followButtonPressed)}),Dt(t).on("mouseleave",".js-outro-
follow",function(e){var t=document.querySelector(".js-outro-
follow");t&&t.classList.remove("outro2-follow--
activated")}),e.events.on(Et.followed,function(){var e=document.querySelector(".js-
outro-follow");e&&(e.setAttribute("aria-pressed",!0),e.classList.add("outro2-
follow--activated"))}),e.events.on(Et.unfollowed,function(){var
e=document.querySelector(".js-outro-follow");e&&e.setAttribute("aria-pressed",!
1)})}function w(){e.events.on(Tt.showOverlay,function(){setTimeout(function()
{t.classList.add("hidden")},150)}),e.events.on(Et.overlayClosed,function()
{t.classList.contains("in")&&t.classList.remove("hidden")})}function k()
{e.events.on(Tt.reset,function(){R=null,H=!1})}function S(){E(t,".js-vod-
button",function(){var t=this.getAttribute("data-product-id");return
e.events.fire(Et.vodButtonPressed,t),!1}),E(t,".js-vod-watch",function(){if(!
("date_available"in e.config.video.vod))return
p(),e.events.fire(Et.vodButtonPressed),!1})}function x(){q&&(P=new
ot(e,q),P.events.on(Et.embedViewShown,function()
{e.config.embed.settings.share.embed_only||(t.querySelector(".js-
back").classList.remove("cloaked"),t.classList.add("embed-
active"))}).on(Et.shareViewShown,function(){t.classList.remove("embed-
active")}),E(t,".js-back",function(){return P.showShareView(),!
1}),P.events.on(Et.shareViewEnd,function(){t.querySelector(".js-
back").classList.add("cloaked")}))}function T(){q&&(C=new at(e,q))}function L()
{Dt(window).off("resize",U),Dt(window).on("resize",U)}var
P,C,F,I,q=t.querySelector(".js-outro"),R=null,B=1,D=!1,j=!1,N=!1,V=10,H=!
1,U=m(g,250),z=m(c,250),W=250;
return y(),_(),b(),w(),k(),S(),x(),T(),L(),{}}function ut(){return
$o[Math.floor(Math.random()*$o.length)]}function ct(e,t){function n(){var
e=o(t),n=o(ee),i=o(ie),r=n.bottom+(e.height-n.bottom)/2;return e.height-r-
i.height/2+"px"}function a(){var e=o(t),n=o(ee),i=o(te),r=e.height/2,a=n.bottom+
(e.height-n.bottom)/2;return{top:r-i.height/2+"px",transform:"translateY("+(a-r)
+"px)"}}function s(r,o){t.setAttribute("data-
name",r),ee.innerHTML=o.template,o.noblur||
(J=document.activeElement,i(J)),o.modal&&d(),o.preventBackgroundClose&&t.setAttribu
te("data-background-
close","false"),o.wrapperClass&&t.classList.add(o.wrapperClass),o.icon.type&&(o.log
o&&(ie.classList.remove("hidden"),te.classList.add("cloaked"),window.requestAnimati
onFrame(function()
{ie.innerHTML=Kt.render("logo"),ie.style.bottom=n()})),te.classList.remove("hidden"
),ne.innerHTML=o.icon.html,window.requestAnimationFrame(function(){var
e=a();te.style.top=e.top,te.style[tn.transformProperty]=e.transform}),t.setAttribut
e("data-icon",o.icon.type),te.setAttribute("data-
icon",o.icon.type),ne.setAttribute("data-icon",o.icon.type),"private-
unlocked"===r&&ne.classList.add("open")),t.classList.add("invisible"),t.classList.r
emove("hidden"),t.removeAttribute("hidden"),t.classList.add("in"),ae=o,oe=r,re=!
0,e.events.fire(Et.overlayOpened,r),e.element.classList.add("player-
overlayVisible"),["share","hd-not-allowed"].indexOf(r)>-
1&&v(t),window.requestAnimationFrame(function()
{t.classList.remove("invisible"),window.requestAnimationFrame(function()
{ee.classList.add("in"),Z.classList.add("in")})})}function u()
{ee.classList.remove("in"),ee.classList.add("out")}function c(n){if(!h()&&re)
{t.removeAttribute("data-background-
close"),Z.classList.remove("in"),Z.classList.add("out"),u(),t.classList.remove("in"
),t.classList.add("out"),clearTimeout(G),G=setTimeout(l,200),n&&n.preventDefault&&n
.preventDefault();var i=t.querySelector(".js-
back");i&&i.classList.add("cloaked"),se.destroy(),e.events.fire(Et.overlayClosed,oe
),e.element.classList.remove("player-overlayVisible"),re=!
1,oe=null,ae=null,window.requestAnimationFrame(function()
{J&&(r(J),J=null)})}}function l()
{t.setAttribute("hidden",""),t.removeAttribute("data-
name"),t.removeAttribute("data-
icon"),t.classList.add("hidden"),t.classList.remove("out"),t.classList.remove("embe
d-active"),t.classList.remove("modal"),t.classList.remove("embed-
only"),Z.classList.remove("out"),Z.classList.remove("in"),te.removeAttribute("data-
icon"),te.classList.add("hidden"),te.classList.remove("animate"),ne.removeAttribute
("data-
icon"),ne.innerHTML="",ie.classList.add("hidden"),ee.classList.remove("out"),ee.inn
erHTML="",e.events.fire(Et.overlayCleared)}function d()
{t.classList.add("modal"),t.setAttribute("data-modal","true")}function f()
{t.setAttribute("data-modal","false")}function h()
{return"true"===t.getAttribute("data-modal")}function p(e)
{if("yes"===e.form.getAttribute("data-bubble")){e.form.setAttribute("data-
bubble","no");var n=t.querySelector(".validation-
bubble"),i=n.querySelector(".validation-bubble-
message");i.innerHTML=e.validationMessage||"There is an error with this input.";var
r=o(e),a=o(e.form);n.style.left=r.left-
a.left+"px",n.style.top=r.height+1+"px",n.classList.remove("hidden"),e.focus(),wind
ow.requestAnimationFrame(function(){n.classList.add("animate")}),m()}}function m(e)
{var n=t.querySelector(".validation-bubble");if(n){if(e)return clearTimeout(Q),void
n.classList.remove("animate");clearTimeout(Q),Q=setTimeout(function()
{n.classList.remove("animate")},5e3)}}function g(e){var
n=t.querySelector("input[type=password]");return
n.form.classList.contains("submitted")?(n.setAttribute("aria-
invalid","false"),n.setCustomValidity(""),n.checkValidity&&!n.checkValidity()?
(n.setAttribute("aria-
invalid","true"),n.validity.valueMissing&&n.setCustomValidity("Please enter the
password."),e||p(n),!1):(m(!0),!0)):null}function y(e,n,i){v(t);var
r=Un(e.querySelectorAll("input")),o=r.map(function(e){return e.name?
encodeURIComponent(e.name)
+"="+encodeURIComponent(e.value):encodeURIComponent(e.value)}).join("&"),a=new
XMLHttpRequest;a.open(e.method,e.action+window.location.search,!
0),a.setRequestHeader("Content-Type","application/x-www-form-
urlencoded"),a.withCredentials=!0,a.timeout=3e3,a.onload=function(){var
e;try{e=JSON.parse(a.responseText)}catch(e){}n(e,a)},a.onerror=function(e)
{i(e)},a.send(o)}function _(){b(),k(),f(),u()}function b()
{ie.classList.add("animate")}function w()
{ie.classList.add("hidden"),ie.classList.remove("animate")}function k()
{te.classList.remove("cloaked"),te.classList.add("animate"),window.requestAnimation
Frame(function(){te.style[tn.transformProperty]="translateY(-10px)"})}function S()
{te.classList.add("centered"),te.style[tn.transformProperty]=""}function x()
{ne.classList.add("open")}function T(){ne.classList.add("pulled-back")}function L()
{ne.classList.add("out"),ne.classList.remove("pulled-back")}function P()
{Dt(t).on("transitionend",".overlay-logo",function(e)
{"opacity"===e.propertyName&&this.classList.contains("animate")&&w()}),Dt(t).on("tr
ansitionend",".overlay-icon-wrapper",function(e)
{e.propertyName.indexOf("transform")>-1&&(""===this.style[tn.transformProperty]?
(this.classList.remove("centered"),"lock"!==this.getAttribute("data-icon")||
ne.classList.contains("open")||ne.querySelector("canvas")?
T():setTimeout(x,100)):"translateY(-
10px)"===this.style[tn.transformProperty]&&S())}),Dt(t).on("transitionend",".overla
y-icon",function(e){e.propertyName.indexOf("transform")>-
1&&(this.classList.contains("out")?(f(),c()):this.classList.contains("pulled-
back")?L():this.classList.contains("open")&&T())})}function C(){return{modal:!
1,template:null,logo:!1,icon:{type:null,html:null}}}function A(t){return
t.icon={type:"lock",html:Kt.render("icon_lock")},t.modal=!0,t.logo=!
0,t.template=Kt.render("private_locked",
{action:"https://"+e.config.vimeo_url+"/log_in",strings:{title:"Private
Video",subtitle:"Log in to watch (if you have permission)",logIn:"Log
in",logInLabel:"Log in (opens in a new window)"}}),t}function O(t){return
t.icon={type:"lock",html:Kt.render("icon_lock")},t.template=Kt.render("password",
{action:"https://"+e.config.player_url+"/video/"+e.config.video.id+"/check-
password?referrer="+e.config.request.referrer,strings:{title:"Password
Required",subtitle:"If youve got it, enter it
below.",password:"Password",watch:"Watch Video"}}),t.modal=!0,t.logo=!!
e.config.embed.settings.branding,t}function M(e){return
e.icon={type:"lock",html:Kt.render("icon_lock")},e.template=Kt.render("private_unlo
cked",{strings:{title:"Private Video",subtitle:"You are logged in and have
permission to watch (congrats).",watch:"Watch Video"}}),e}function F(e,t){return
e.template=Kt.render("error",{title:t.title,message:t.message}),e.modal=!!
t.modal,e.logo=!!
t.logo,t.icon&&"lock"===t.icon&&(e.icon={type:"lock",html:Kt.render("icon_lock")}),
e}function I(t){return t.template=Kt.render("help",
{onSite:e.config.embed.on_site,strings:{title:"Keyboard Shortcuts",volumeUp:"Volume
up",volumeDown:"Volume down",scrubForward:"Scrub forward",scrubBackwards:"Scrub
backwards",like:"Like",share:"Share",watchLater:"Watch Later",captions:"Toggle
Captions",hd:"Toggle HD menu",fullscreen:"Toggle fullscreen",viewOnVimeo:"View on
Vimeo"}}),t}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:
{},n=t.redirectUrl,i=t.title,r=t.buttonText,o=t.ignoreText,a=t.bottomText,s=t.newWi
ndow;return e.template=Kt.render("overlay_app_redirect",
{redirectUrl:n,newWindow:s,strings:
{title:i,buttonText:r,ignoreText:o,bottomText:a}}),e.modal=!1,e.logo=!
1,e.preventBackgroundClose=!0,e}function R(){e.events.on(Tt.hideOverlay,function()
{var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};e.unmakeModal&&f(),c()}),e.events.on(Tt.showOverlay,function(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(){var
e=C();switch(t){case"share":return s(t,se.getShareData(e,n)),void
se.setup();case"private-locked":return void s(t,A(e));case"password":return void
s(t,O(e));case"private-unlocked":return void s(t,M(e));case"error":return void
s(t,F(e,n));case"help":return void s(t,I(e));case"email-capture":return void
s(t,ue.getData(e,n));case"app-redirect":return void s(t,q(e,n))}};return re&&!
n.nohide?"share"!==oe&&"help"!==oe&&"hd-not-allowed"!==oe||oe!==t?
(e.events.once(Et.overlayCleared,i),f(),void c()):void c():void
i()}),Dt(t).on("input","input",function()
{this.form.classList.add("interacted")}).on(["focus","blur"],"input",function(){m(!
0)}).on("transitionend",".validation-bubble",function(e)
{"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&this.c
lassList.add("hidden")}),e.events.on([Et.overlayCloseButtonPressed,Et.played],c),e.
events.on(Et.privateUnlocked,function(){"private-
locked"===oe&&(f(),c())}),e.events.on(Et.configChanged,function()
{"share"===oe&&(ae=se.getShareData(C()),ee.innerHTML=ae.template,se.setup())}),Dt(w
indow).on("resize",function(){if(re){ie.style.bottom=n();var
e=a();te.style.top=e.top,te.style[tn.transformProperty]=e.transform}})}function B()
{e.events.on(Et.ready,D),e.events.on(Et.configChanged,D),e.events.on(Et.playProgres
s,j),ue.events.on(Et.emailCaptureEnd,N)}function D(){var t=e.config.embed.email||
{};if(e.telecine){var n=t.timecode||
0;ce=e.telecine.currentTime>n}t&&"before"===t.position&&!
ce&&e.events.fire(Tt.showOverlay,"email-capture")}function j(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=e.config.embed.email||
{};n&&"during"===n.position&&(t<n.timecode&&(ce=!1),t>=n.timecode&&!ce&&(ce=!
0,e.events.fire(Tt.showOverlay,"email-capture")))}function N(){f(),c()}function V()
{se.events.on(Et.embedViewShown,function()
{e.config.embed.settings.share.embed_only||(t.querySelector(".js-
back").classList.remove("cloaked"),t.classList.add("embed-
active"))}).on(Et.shareViewShown,function(){t.classList.remove("embed-
active")}),E(t,".js-back",function(){return se.showShareView(),!
1}),se.events.on(Et.shareViewEnd,function(){t.querySelector(".js-
back").classList.add("cloaked")})}function
H(){Dt(ee).on("click",".popup",function(){return
e.events.fire(Tt.openPopup,"login-private-locked"),!1})}function U(){function t(t)
{function n(t,n){return t===!1?void i(n.status,n):
(e.events.fire(Et.passwordUnlocked,t),"icon-
hidden"===window.getComputedStyle(Z,":after").content?(f(),void c()):void
_())}function i(e){a.classList.remove("loading"),o.setCustomValidity("Uh oh. There
was a problem. Please try again."),o.setAttribute("aria-invalid","true"),p(o)}var
r=g();if(!r)return!1;var
o=t.querySelector("input[type=password]"),a=t.querySelector("input[type=submit]");a
.classList.add("loading"),y(t,n,i)}Dt(ee).on("click",".password
input[type=submit]",function()
{this.form.classList.add("submitted"),this.form.setAttribute("data-
bubble","yes"),g(!0)}).on("submit",".password form",function(){return t(this),!
1}).on(["focus","input"],[".password input[type=email]",".password
input[type=password]"],function(){g()})}function z(){E(ee,".unlocked
button",function(){var t=o(ne);0===t.width?(b(),f(),c()):_(),tn.iPad||tn.iPhone||
e.events.once(Et.overlayCleared,function()
{e.events.fire(Et.playButtonPressed)})})}function W()
{e.events.on(Et.stereoscopicButtonPressed,function()
{e.events.fire(Tt.showOverlay,"app-redirect",
{redirectUrl:e.doNotTrackEnabled?"https://play.google.com/store/apps/details?
id=com.vimeo.android.videoapp&hl=en":Ae(e.config.video.id,"player-spatial-
redirect"),title:"Headset viewing isnt currently supported in mobile
browsers.",buttonText:"Watch in the Vimeo
app",ignoreText:null,bottomText:null,newWindow:!
e.config.embed.on_site})}),Dt(ee).on("click",".app-redirect-ignore",function()
{c()}),Dt(ee).on("click","[data-new-window]",function(e){return
window.open(document.querySelector(".app-redirect-button").getAttribute("href")),!
1})}function K(){var t=function(e,t,n){var
i=window.location.search.indexOf("partypooper=1")>-1||
window.location.search.indexOf("fun=0")>-1;switch(e){case"not-
supported":return{name:"notsupported",title:i?"Sorry":ut(),message:n>.5?"There was
an issue playing this video.":"This video cant be played with your current
setup."};default:return{name:e,title:t&&t.title||"Sorry",message:t&&t.message||"The
re was an issue with playback."}}};e.events.on(Et.error,function(n){var
i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{modal:!0,final:!
0};if(i.final!==!1){var r=e.telecine?
e.telecine.currentTime:0,o=t(n,i,r),a=o.name,u=o.title,l=o.message,d=C();return
d.modal=i.modal,d.template=Kt.render("error",{title:u,message:l}),re?(c(),void
e.events.once(Et.overlayClosed,function(){return s(a,d)})):void s(a,d)}})}function
X(){e.events.on(Et.configChanged,function(){window.requestAnimationFrame(function()
{f(),c()})})}function $(){E(t,".js-close",function()
{e.events.fire(Et.overlayCloseButtonPressed)}),Dt(t).on(["click","touchend"],
[".window-wrapper",".js-share",".overlay-logo"],function(e)
{e.stopPropagation()}).on(["click","touchend"],[".overlay-cell","nav"],function()
{return"false"===t.getAttribute("data-background-close")||
(e.events.fire(Et.overlayCloseButtonPressed),!1)})}function Y()
{e.events.on(Tt.showOutro,function()
{t.classList.add("hidden")}),e.events.on(Et.outroHidden,function()
{t.classList.contains("in")&&t.classList.remove("hidden")})}var
G,Q,J,Z=t.querySelector(".overlay-
cell"),ee=t.querySelector(".overlay"),te=t.querySelector(".overlay-icon-
wrapper"),ne=te.querySelector(".overlay-icon"),ie=t.querySelector(".overlay-
logo"),re=!1,oe=null,ae=null,se=new ot(e,ee),ue=new at(e,ee),ce=!1;return
R(),P(),B(),V(),W(),H(),U(),z(),K(),X(),$
(),Y(),e.events.fire(Et.overlayModuleReady),{}}function lt(e,n){function i(e,t){var
n=".player-"+c+" ",i=n+e.join(","+n);if(t){var r=l+"
";i+=","+r+e.join(","+r)}return d&&(i=i.replace(/:hover/g,":active")),i=i.replace(/
&/g,"")}function r(){var e=document.createElement("style");return
e.setAttribute("data-
player",c),document.querySelector("head").appendChild(e),f=e.sheet}function o()
{for(;f.cssRules.length>0;)f.deleteRule(0)}function a(){f?o():r()}function s(e)
{a();var n=e.complement,r=new ue(23,35,34,.75),o=new
ue(0,0,0,.15),s=o.overlayOn(e);r.contrast(n).ratio<3&&n.lighten(5,3,r);var
u,c=e.lightness<40?e.clone().lighten(15,3,e):e.clone().darken(15,3,e);return
t(i(Yo,!0),"color:"+e.hex+" !important",f),t(i(Go,!0),"color:"+n.hex+" !
important",f),t(i(Qo),"color:"+e.hex,f),t(i(ea),"fill:"+e.hex,f),t(i(na),"stroke:"+
e.hex,f),t(i(ra),"background-color:"+e.hex,f),t(i(oa),"border-
color:"+e.hex,f),t(i(Jo),"color:"+n.hex,f),t(i(Zo),"fill:"+n.hex,f),t(i(ta),"fill:"
+c.hex,f),t(i(ia),"stroke:"+c.hex,f),t(i(fa),"border-
color:"+s.hex,f),t(i(ha),"background-
color:"+s.hex,f),e.luminance>.95&&(n=e.clone().darken(15,3,e),t(i(aa),"color:"+n.he
x,f),t(i(sa),"fill:"+n.hex,f),t(i(ua),"stroke:"+n.hex,f),c=n.clone().darken(15,3,n)
,t(i(ta),"fill:"+c.hex,f),t(i(ia),"stroke:"+c.hex,f)),e.yiq>175&&e.luminance<.95&&(
u=c.clone().darken(15,3,c),t(i(ta),"fill:"+u.hex,f),t(i(ia),"stroke:"+u.hex,f),t(i(
ca),"color:"+c.hex,f),t(i(la),"fill:"+c.hex,f),t(i(da),"stroke:"+c.hex,f)),
{main:e.hex,selected:c.hex,sidedockHover:u?c.hex:e.luminance>.95?
n.hex:ue.white.hex,sidedockSelected:e.luminance>.95?
n.hex:e.hex,sidedockSelectedHover:u?u.hex:c.hex}}function u()
{e.events.on(Tt.changeColor,function(t){var n;try{n=new ue(t)}catch(e){n=new
ue("00adef")}var
i=s(n);e.config._colors=i,e.config.embed.color=i.main.replace("#",""),e.events.fire
(Et.colorChanged,e.config.embed.color)}),e.events.fire(Tt.changeColor,e.config.embe
d.color)}var c=n.uuid,l=n.id,d=n.isMobileDevice,f=null;return u(),{}}function dt(e)
{function t(){e.events.on(Tt.openPopup,function(t,n){var
i="https://"+e.config.player_url,o=i+"/video/"+e.config.video.id,a=670,s=545;switch
(t){case"login-like":r=l(o+"/login/like","login",
{width:a,height:s}),e.events.fire(Et.popupOpened,t);break;case"login-watch-
later":r=l(o+"/login/watch-later","login",
{width:a,height:s}),e.events.fire(Et.popupOpened,t);break;case"login-private-
locked":r=l(o+"/login/private","login",
{width:a,height:s}),e.events.fire(Et.popupOpened,t);break;case"purchase":var
u=i+"/video/"+(e.config.video.vod.feature_id||e.config.video.id)
+"/purchase/vod";n&&n.productId&&(u+="/"+n.productId),u+="?
referrer="+encodeURIComponent(e.config.request.referrer),r=l(u,"purchase",
{width:790,height:670}),e.events.fire(Et.popupOpened,t)}}),window.closePopup=functi
on(t){if(r){try{r.close(),e.events.fire(Et.popupClosed,t)}catch(e)
{}r=null}}}function n(){e.config.embed.on_site||
(window.confirmPurchase=function(t,n,i){return n?void
e.loadVideo(t):void(i&&e.events.fire(Et.playButtonPressed))})}function i()
{e.config.embed.on_site||(window.confirmLoginAction=function(t,n)
{e.events.fire(Et.userLogIn,n)})}var r=null;return t(),n(),i(),{}}function ft(e,t)
{function n(){D&&(Y||(j&&$||V||z||Q)&&(N||(!H&&!U||V||z)&&(D=!
1,e.events.fire(Et.sidedockVisibilityChanged,D),(G||
t).classList.add("invisible"))))}function i(){if(!D&&!z&&!V){var n=G||
t;n.classList.add("invisible"),n.classList.remove("hidden"),n.removeAttribute("hidd
en"),t.classList.remove("hidden"),t.removeAttribute("hidden"),t.classList.contains(
"vod")&&t.classList.remove("vod"),setTimeout(function(){D=!
0,e.events.fire(Et.sidedockVisibilityChanged,D),n.classList.remove("invisible")},0)
}}function r(){j=!1,N=!1,Y=!1}function o(t,n,i){var r="data-label-"+i,o="add"!==i||
e.config.user.logged_in?r:"data-label-add-logged-out";t.setAttribute("aria-
label",t.getAttribute(o)),n.classList.add("hidden"),n.setAttribute("hidden",""),n.f
irstChild.innerHTML=t.getAttribute(r)}function a(){var
e=W.indexOf(this);K.forEach(function(t,n){n!
==e&&t&&t.classList.add("invisible")}),e>=0&&K[e]&&(K[e].classList.add("invisible")
,K[e].classList.remove("hidden"),K[e].removeAttribute("hidden",""),X=window.request
AnimationFrame(function(){X=window.requestAnimationFrame(function()
{K[e].classList.remove("invisible"),K[e].classList.add("visible")})}))}function s()
{var e="BUTTON"===this.tagName?
this:this.querySelector("button"),t=W.indexOf(e);t>=0&&K[t]&&(X&&(window.cancelAnim
ationFrame(X),X=null),K[t].classList.add("invisible"))}function u(){if(C){var
e=C.parentElement;G.insertBefore(e,G.firstChild)}}function c(){if(C){var
e=C.parentElement;t.insertBefore(e,G)}}function l(){if(e.config.view===bt.main||
e.config.view===bt.privateUnlocked){var
n=e.config.embed.settings,i=e.config.video.vod&&"purchase_options"in
e.config.video.vod&&e.config.video.vod.purchase_options.length,r=i&&e.config.video.
vod.is_coming_soon,o="ondemand.main"===e.config.embed.context,a=e.config.video.vod&
&e.config.user.purchased?
1:0,s=i&&n.vod&&S(e.config.video.vod.countries,e.config.request.country);s&&r&&o&&(
s=!1);var
c=i&&e.config.video.vod.purchase_options[0],l=null;c&&(l=w(e.config.request.dynamic
_translation_map,"label_string",e.config.request.currency,c)),t.innerHTML=Kt.render
("sidedock",{loggedIn:!!
e.config.user.logged_in,vodButton:s,purchased:a,vodPurchaseInfo:c,vodDisplayLabel:l
,likeButton:n.like,liked:e.config.user.liked,watchLaterButton:n.watch_later,addedTo
WatchLater:e.config.user.watch_later,collectionsButton:n.collections,shareButton:n.
share,strings:{like:"Like",likeLoggedOut:"Like (opens in a new
window)",unlike:"Unlike",watchLaterAdd:"Add to Watch
Later",watchLaterAddLoggedOut:"Add to Watch Later (opens in a new
window)",watchLaterRemove:"Remove from Watch Later",collections:"Add to
collections",share:n.share&&n.share.embed_only?"Embed":"Share"}}),C=t.querySelector
(".vod-button"),s&&(G=t.querySelector(".sidedock-inner"),a&&u());var d=G||t;i&&s&&!
e.config.embed.settings.instant_sidedock?t.classList.add("vod"):tn.touch&&(D=!
0,e.events.fire(Et.sidedockVisibilityChanged,D),d.classList.remove("hidden"),d.remo
veAttribute("hidden"),d.classList.remove("invisible")),A=t.querySelector(".like-
button"),O=t.querySelector(".like-label"),M=t.querySelector(".watch-later-
button"),F=t.querySelector(".watch-later-label"),I=t.querySelector(".collections-
button"),q=t.querySelector(".collections-label"),R=t.querySelector(".share-
button"),B=t.querySelector(".share-label"),W=[C,A,M,R,I],K=[null,O,F,B,q]}}function
d(){var
t=e.config.embed.settings.instant_sidedock,n=e.config.video.vod,r=n&&"purchase_opti
ons"in
n&&n.purchase_options.length,o=n&&S(e.config.video.vod.countries,e.config.request.c
ountry);(t||r&&o)&&(Q||i())}function f(){E(t,".vod-button",function(){var
t=C.getAttribute("data-product-
id");e.events.fire(Et.vodButtonPressed,t)},s),e.events.on(Et.outroDisplayed,functio
n(){u(),t.classList.add("sidedock-
outro2"),"share"===e.config.embed.outro&&(e.config.embed.settings.share=0,l())}),e.
events.on(Et.outroHidden,function(){c(),t.classList.remove("sidedock-
outro2"),"share"===e.config.embed.outro&&(e.config.embed.settings.share=1,l())})}fu
nction h(){E(t,".like-button",function()
{e.events.fire(Et.likeButtonPressed)},s),e.events.on(Et.liked,function()
{A&&(A.classList.add("on"),o(A,O,"remove"))}),e.events.on(Et.unliked,function()
{A&&(A.classList.remove("on"),o(A,O,"add"))})}function v(){E(t,".watch-later-
button",function()
{e.events.fire(Et.watchLaterButtonPressed)},s),e.events.on(Et.addedToWatchLater,fun
ction()
{M&&(M.classList.add("on"),o(M,F,"remove"))}),e.events.on(Et.removedFromWatchLater,
function(){M&&(M.classList.remove("on"),o(M,F,"add"))})}function p()
{E(t,".collections-button",function()
{e.events.fire(Et.collectionsButtonPressed)},s)}function m(){E(t,".share-
button",function(){return e.events.fire(e.config.embed.settings.share.embed_only?
Et.embedButtonPressed:Et.shareButtonPressed),!1},s)}function g(){var e=function(e)
{"opacity"===e.propertyName&&e.target.classList.contains("invisible")&&(e.target.cl
assList.add("hidden"),e.target.setAttribute("hidden",""),e.target.classList.remove(
"visible"))};Dt(t).on("blur","button",s).on("mouseleave",".box",s).on(["focus","poi
nterdown","touchstart","mouseenter"],"button",a).on("transitionend","label",e),E(t,
"label",function(){var e=K.indexOf(this);e>=0&&W[e].click()})}function y()
{e.events.on([Et.mousedOut,Et.mouseTimeout],n).on(Et.mousedOver,i).on(Et.targetTime
Reached,function(){$=!0,n()}).on(Et.played,function(){j=!
0}),Dt(t).on(["pointerenter","pointerleave","mouseenter","mouseleave"],function(e)
{return"pointerType"in e?void("mouse"!==e.pointerType&&e.pointerType!
==e.MSPOINTER_TYPE_MOUSE||
(N="pointerenter"===e.type||"MSPointerEnter"===e.type)):void(N="mouseover"===e.type
)}),Dt(t).on("transitionend",function(e){var n=G||
t;"opacity"===e.propertyName&&n.classList.contains("invisible")&&(n.classList.add("
hidden"),n.setAttribute("hidden",""),C&&n.contains(C)&&(t.classList.add("hidden"),t
.setAttribute("hidden","")))})}function _()
{e.events.on(Et.willEnterFullscreen,function(){N=!
1,n()}).on(Et.didExitFullscreen,function(e){e||(Y=!0)})}function b()
{e.events.on([Et.airPlayActivated],function(){H=!
0,i()}).on([Et.airPlayDeactivated],function(){H=!1})}function k()
{e.events.on(Et.pictureInPictureActivated,function(){U=!
0,i()}).on(Et.pictureInPictureDeactivated,function(){U=!1})}function x()
{e.events.on(Et.overlayOpened,function(){V=!0,N=!
1,n()}).on(Et.overlayClosed,function(){V=!1,i()})}function T()
{e.events.on(Et.alertVisibilityChanged,function(e){z=e,e&&n()})}function L()
{e.events.on(Et.configChanged,function(){l()})}function P()
{e.events.on(Tt.reset,function(){N=!1,$=!1,n(),r()})}var C,A,O,M,F,I,q,R,B,D=!1,j=!
1,N=!1,V=!1,H=!1,U=!1,z=!1,W=[],K=[],X=null,$=!1,Y=!
1,G=null,Q=e.config.embed.autoplay&&e.config.request.flags.autohide_controls;return
l(),d(),f(),h(),v(),p(),m(),g(),y(),_(),b(),k(),x(),T(),L(),P(),e.events.fire(Et.si
dedockModuleReady),{}}function ht(e,t){function n(){p=!
1,t.classList.add("invisible")}function i()
{t.classList.remove("hidden"),t.removeAttribute("hidden"),setTimeout(function(){p=!
0,t.classList.remove("invisible")},0)}function r(){if(p){if(g)return void
n();if(y)return void n();if(k)return void n();if(!_&&b)return w&&m?void 0:void
n()}}function o(){if(!p){if(_&&!g&&!y)return void i();if(w&&!S&&!k)return b||g||y?
e.config.embed.settings.info_on_pause&&w&&!g&&!y?void i():void 0:void i()}}function
a(){if(e.config.view===bt.main||e.config.view===bt.privateUnlocked){var n=!!
e.config.embed.settings.byline,i=null!
==e.config.video.owner.url,r=e.config.video.owner.url,o=0===e.config.embed.on_site,
a=e.config.embed.settings.spatial_label,s={linkToOwner:i,ownerLink:r,targetBlank:o,
showPortrait:!!
e.config.embed.settings.portrait,portraitImg:e.config.video.owner[tn.devicePixelRat
io>1?"img_2x":"img"],showByline:n,showTitle:!!
e.config.embed.settings.title,showTitleLink:null!
==e.config.video.url,titleLink:e.config.video.url,title:e.config.video.title,is360:
e.config.video.spatial&&a,strings:{}};if(e.config.embed.settings.byline){var
u=e.config.embed.settings.byline_badge,c="";u&&u.type&&(c=Kt.render("title_byline_b
adge",{targetBlank:o,cssClass:u.type,link:u.url||!1})),s.strings.byline="from
"+Kt.render("title_owner_byline",
{linkToOwner:i,ownerLink:r,targetBlank:o,owner:e.config.video.owner.name})+c}var
l=e.config.embed.settings.badge;if(l){var
d=tn.devicePixelRatio>1?"img_2x":"img";tn.svg&&l.svg&&(d="svg"),s.showPortrait=!
1,s.badge={link:l.link,img:l[d],offset:l.offset||!
1,width:l.width,height:l.height,name:l.name,shadow:l.shadow||!
1}}e.config.embed.autoplay&&(t.classList.add("hidden"),t.setAttribute("hidden",""))
,t.innerHTML=Kt.render("title",s)}}function s()
{e.events.on([Et.mousedOut,Et.mouseTimeout],r).on(Et.mousedOver,o).on(Et.playInitia
ted,function(){b=!0,w=!1,r()}).on([Et.playButtonPressed,Et.played],function(){w=!
1,S=!1,r()}).on(Et.paused,function(e,t){t||(w=!0,o())}).on(Et.ended,function(){k=!
0,r()}).on(Et.scrubbingStarted,function(){x=w,S=!
0}).on(Et.scrubbingEnded,function(){x&&(S=!
1)}).on(Et.willEnterFullscreen,function(){r()}).on(Et.didExitFullscreen,function(e)
{e||
o()}),Dt(t).on(["pointerenter","pointerleave","mouseenter","mouseleave"],function(e
){return"pointerType"in e?void("mouse"!==e.pointerType&&e.pointerType!
==e.MSPOINTER_TYPE_MOUSE||
(m="pointerenter"===e.type||"MSPointerEnter"===e.type)):void(m="mouseover"===e.type
)}),Dt(t).on("transitionend",function(e)
{"opacity"===e.propertyName&&t.classList.contains("invisible")&&(t.classList.add("h
idden"),t.setAttribute("hidden",""))},!1)}function u()
{e.events.on(Et.ended,function(e){r()})}function c()
{e.events.on([Et.airPlayActivated],function(){_=!
0,o()}).on([Et.airPlayDeactivated],function(){_=!1,r()})}function l()
{e.events.on(Et.overlayOpened,function(e){"notsupported"!==e&&"private-unlocked"!
==e&&"help"!==e&&(g=!0,m=!1,r())}).on(Et.overlayClosed,function(){g=!1,m=!
1,setTimeout(o,0)})}function d(){e.events.on(Et.outroDisplayed,function(e){y=!0,m=!
1,r()}).on(Et.outroHidden,function(){y=!1,m=!1,setTimeout(o,0)})}function f()
{E(t,".badge",function()
{e.events.fire(Et.badgePressed,e.config.embed.settings.badge.id)})}function h()
{e.events.on(Et.configChanged,function()
{a(),e.config.view===bt.privateUnlocked&&o()})}function v()
{e.events.on(Tt.reset,function(){b=!1,w=!0,k=!1,S=!1,o()})}var p=!0,m=!1,g=!1,y=!
1,_=!1,b=!1,w=!0,k=!1,S=!1,x=!1;return
a(),s(),u(),c(),l(),d(),f(),h(),v(),e.events.fire(Et.titleModuleReady),{}}function
vt(e){function t(e,t){for(;e&&e.parentElement&&Un(t).indexOf(e)===-
1;)e=e.parentElement;return e}function n(e){return
Un(e.parentNode.children).indexOf(e)}function i(t){var n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:e.children.length-1,r=-Math.round(t/c());return
Math.min(Math.max(r,n),i)}function r()
{_=e.style[tn.transitionProperty+"Duration"],Dt(e).on(tn.pointerEvents?"pointerdown
":["touchstart","mousedown"],d),Dt(e).on("click","a",a)}function o()
{Dt(e).off(tn.pointerEvents?"pointerdown":
["touchstart","mousedown"],d),Dt(e).off("click","a",a)}function a(){return!
1}function s(e){return function(t){var n=t?"on":"off",i={pointerdown:
["pointermove","pointerup"],MSPointerDown:["pointermove","pointerup"],touchstart:
["touchmove","touchend"],mousedown:["mousemove","mouseup"]};Dt(window)[n](i[e.type]
[0],f),Dt(window)[n](i[e.type][1],h)}}function u(t)
{e.style[tn.transitionProperty+"Duration"]=t}function c(){return
e.children[0].clientWidth}function l(e){var
t=[e.clientX,e.clientY],n=t[0],i=t[1];if(e.targetTouches&&e.targetTouches.length>0)
{var
r=[e.touches[0].pageX,e.touches[0].pageY];n=r[0],i=r[1]}return{x:n,y:i}}function
d(e){e.stopImmediatePropagation();var t=l(e),n=t.x,i=t.y;w.x=n-b.x,w.y=i-b.y,S=!
1,E=s(e),E(!0),u("0ms")}function f(e){var t=l(e),n=t.x,r=t.y;return
k.x=b.x,k.y=b.y,b.x=n-w.x,b.y=r-w.y,Math.abs(b.x-k.x)>Math.abs(b.y-k.y)?
(e.preventDefault(),S=!0,x=Date.now(),void m(b.x)):(E(!1),u(_),void
p(i(b.x)))}function h(e){if(e.stopImmediatePropagation(),E(!1),u(_),S)
{e.preventDefault();var t=b.x-k.x,n=Date.now()-x+1;return b.x+=50*t/n,void
p(i(b.x))}v(e,b.x)}function v(t,n){t.preventDefault();var
r=i(n),o=L(t.target,e.children);return o!==r?void p(o):void
y.fire("tap",o)}function p(e){b.x=-e*c(),m(b.x),y.fire("slide",e)}function m(t){var
n=i(t,-1,e.children.length);n!
==T&&(y.fire("focus",n),T=n),e.style[tn.transformProperty]="translateX("+t+"px)"}fu
nction g(e){var t=n(e);b.x=-t*c(),m(b.x)}re(this);var y=this,_=void
0,b={x:0,y:0},w={x:0,y:0},k={x:0,y:0},S=void 0,x=void 0,T=void 0,E=void
0,L=Mt(n,t);return{setUp:r,destroy:o,on:this.on,show:g}}function pt(e,t){function
n(){i(),Dt(window).on("resize",u)}function i(){var
n=a(t,s(e.element.offsetWidth));pt.changes.get(o)!
==n.props&&(pt.changes.set(o,n.props),e.events.fire(Et.spaceChanged,pt.changes.valu
es()))}function r(e){return pt.changes.get(o)[e]}var o=g(),a=function(e,t){return
e.filter(t).slice(-1)[0]},s=function(e){return function(t){return
e>=t.breakpoint}},u=m(i,80);return n(),{prop:r}}function mt(e,t){function n(e,t)
{for(;e&&e.parentElement&&Un(t).indexOf(e)===-1;)e=e.parentElement;return
e}function i(e){return Un(e.parentNode.children).indexOf(e)}function r(){S=new
vt(w),x=new pt(e,E);var t=function(e){return function(){k.size>0&&e.apply(void
0,arguments)}};e.events.on(Et.configChanged,o),e.events.on(Tt.addCard,_),e.events.o
n(Tt.removeCard,b),S.on("slide",t(g)),S.on("tap",t(p)),e.events.on(Et.spaceChanged,
t(s)),e.events.on(Et.playProgress,t(d)),Dt(document).on("click",".player-car
dsCorner .card",t(m)),o()}function o()
{if(v(),y(),Array.isArray(e.config.embed.cards)&&e.config.embed.cards.length)
{if(e.config.video.title){var t={className:"card--
contentInfo",timecode:0,headline:e.config.video.title,teaser:e.config.video.owner.n
ame,image:e.config.video.owner[tn.devicePixelRatio>1?"img_2x":"img"],id:"title-
card"};a(-1,t)}e.config.embed.cards.forEach(function(e)
{a(e.timecode,e)})}u(),c()}function a(t,n){var i=k.get(t),r=new
va(e,n);if(k.set(t,r),i)return w.replaceChild(r.element,i.element),r;var
o=k.keys().indexOf(t);return w.insertBefore(r.element,w.children[o]),r}function s()
{u(),c()}function u(){var t=k.size>0;e.element.classList.toggle("player-
withCards",t),e.element.classList.toggle("player-
cardsCarousel",t&&x.prop("carousel")),e.element.classList.toggle("player-
cardsCorner",t&&!x.prop("carousel"))}function c()
{S.destroy(),x.prop("carousel")&&S.setUp()}function l(e){var
t=k.values().filter(function(t){return t.isActive(e)}).slice(-1)[0];if(t)return
t;if(x.prop("carousel")){var n=k.values().slice(-1)[0];if(n&&e>n.end)return
n}return null}function d(e){var t=l(e);if(t!==T)return T=t,T&&"title-card"===T.id?
void(x.prop("carousel")&&f(T)):void f(T)}function f(t){if(v(),t){var
n=t.element;n.classList.add("card-
active"),x.prop("carousel")&&S.show(n),e.events.fire(Et.cardDisplayed,t.id,t.data)}
}function h(e){e.classList.remove("card-active")}function v()
{Un(t.querySelectorAll(".card-active")).forEach(h)}function p(t){var n=k.values()
[t];n.data.url&&"title-card"!
==n.id&&(e.events.fire(Et.cardPressed,n.id,n.data),e.telecine.paused||
e.events.fire(Et.pauseButtonPressed),window.open(n.data.url))}function m(t)
{t.preventDefault();var n=L(t.target,w.children),i=k.values()
[n];i.data.url&&"title-card"!
==i.id&&(e.events.fire(Et.cardPressed,i.id,i.data),e.telecine.paused||
e.events.fire(Et.pauseButtonPressed),window.open(i.data.url))}function g(t){var
n=k.values()[t];"title-card"!
==n.id&&e.events.fire(Et.cardDisplayed,n.id,n.data),e.events.fire(Tt.setTime,n.time
)}function y(){k.forEach(function(e,t){
e.element.parentNode.removeChild(e.element)}),k=new pa}function _(e){var
t=a(e.timecode,e);f(t),u()}function b(e){v();var
t=k.get(e.timecode).element;t.parentNode.removeChild(t),k.delete(e.timecode),u()}va
r w=t.querySelector(".js-cards"),k=new pa,S=void 0,x=void 0,T=void
0,E=[{breakpoint:0,props:{carousel:!0,bottom:60}},{breakpoint:415,props:{carousel:!
1,bottom:0}}],L=Mt(i,n);return r(),{}}function gt(e,t,i,r){function a(){var
t=B;B=y(e).replace(/["'\s]*/g,""),B&&t!==B&&"undefined"!=typeof
D[B]&&T.events.fire(D[B])}function s(){var t=(T.config.view===bt.main||
T.config.view===bt.privateUnlocked)&&T.config.embed.settings&&!
T.config.embed.settings.playbar;e.classList.toggle("no-
playbar",t),e.classList.toggle("with-fullscreen",!!
T.config.embed.settings.fullscreen);var
n=T.config.embed.settings.custom_logo;e.classList.toggle("with-custom-logo",!!
n),e.classList.toggle("with-sticky-custom-
logo",n&&n.sticky),e.classList.toggle("background-mode",!!
T.config.embed.settings.background),e.classList.toggle("touch-
support",tn.touch)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:T.config.video.url;if(!(!t||e&&e.metaKey))return t.indexOf("#")===-
1&&T.telecine.currentTime>0&&T.telecine.currentTime<T.config.video.duration-30&&!
T.telecine.paused&&(t+="#at="+Math.floor(T.telecine.currentTime)),T.config.embed.on
_site?void(window.location=t):
(window.open(t),n(e),T.events.fire(Et.pauseButtonPressed),!1)}function l()
{s(),T.events.on(Et.configChanged,s)}function d(){O=new _t(function(e,t){var
n=function(){return window.innerWidth>0&&window.innerHeight>0},i=null,r=function
t(){return clearTimeout(i),n()?void
e():void(i=setTimeout(t,250))};T.events.once(Et.ready,r),T.events.once(Et.error,r)}
)}function f(){var e=function(e,t){return T.verifyConfig().then(function(){var
n=T.config.request,i=n.signature,r=n.session,o=n.timestamp,a=n.expires,s="https://"
+T.config.player_url+"/video/"+T.config.video.id+"/"+e+"?
signature="+i+"&session="+r+"&time="+o+"&expires="+a;return h(s,
{method:t})}).catch(function(n){T.reportError(n,{extra:
{action:e,method:t}})})};T.events.on(Et.vodButtonPressed,function(e)
{if(T.config.user.purchased){if(!
T.config.video.vod.is_feature&&T.config.video.vod.feature_id)return void
T.loadVideo(T.config.video.vod.feature_id).then(function(){return
T.events.fire(Et.playButtonPressed),T.config.video.vod.feature_id}).catch(function(
e){T.reportError(e),T.events.fire(Tt.showOverlay,"error",
{title:"Sorry",message:"There was a problem. Please try
again."})});if(T.config.video.vod&&T.config.video.vod.is_coming_soon)return;return
void
T.events.fire(Et.playButtonPressed)}T.performDelegateAction(wt.purchase,function()
{T.events.fire(Tt.openPopup,"purchase",
{productId:e})},e)}),T.events.on(Et.likeButtonPressed,function(){return
T.config.user.logged_in?void(T.config.user.id!
==T.config.video.owner.id&&(T.config.user.liked?
T.performDelegateAction(wt.unlike,function()
{e("like","DELETE"),T.config.user.liked=!
1,T.events.fire(Et.unliked)}):T.performDelegateAction(wt.like,function()
{e("like","PUT"),T.config.user.liked=!0,T.events.fire(Et.liked)}))):void
T.performDelegateAction(wt.loginForm,function(){T.events.fire(Tt.openPopup,"login-
like")},"like")}),T.events.on(Et.watchLaterButtonPressed,function()
{if(T.config.video.url||"unlisted"===T.config.video.privacy)return
T.config.user.logged_in?T.config.user.watch_later?void
T.performDelegateAction(wt.removeFromWatchLater,function(){e("watch-
later","DELETE"),T.config.user.watch_later=!
1,T.events.fire(Et.removedFromWatchLater)}):void
T.performDelegateAction(wt.addToWatchLater,function(){e("watch-
later","PUT"),T.config.user.watch_later=!
0,T.events.fire(Et.addedToWatchLater)}):void
T.performDelegateAction(wt.loginForm,function(){T.events.fire(Tt.openPopup,"login-
watch-later")},"watch-later")}),T.events.on(Et.collectionsButtonPressed,function()
{T.performDelegateAction(wt.collectionsOverlay,function(){return
T.config.video.vod&&T.config.video.vod.url?void
u(null,T.config.video.vod.url+"#collections"):T.config.video.url?void
u(null,T.config.video.url+"#collections"):void
0})}),T.events.on(Et.shareButtonPressed,function(){var
e=T.config.embed.settings.share&&T.config.embed.settings.share.embed_only,t=functio
n(){T.events.fire(Tt.showOverlay,"share",e)};return Xt.element?void t():void
T.performDelegateAction(wt.shareOverlay,t)}),T.events.on(Et.embedButtonPressed,func
tion()
{T.config.embed.settings.share.embed_only&&T.performDelegateAction(wt.shareOverlay,
function(){T.events.fire(Tt.showOverlay,"share",!
0)})}),T.events.on(Et.followButtonPressed,function()
{if(T.config.user.logged_in&&T.config.user.id!==T.config.video.owner.id)
{if(T.config.user.following)return e("follow","DELETE"),T.config.user.following=!
1,void T.events.fire(Et.unfollowed);e("follow","PUT"),T.config.user.following=!
0,T.events.fire(Et.followed)}})}function v(){function t(){var
t=o(e),n=t.width,i=t.height,r="10px",a=450,s=1024,u=200;return i<=u?
r:n<a?"12px":n<=s?"11px":r}function n(){O.then(function(){var e=t();return
M.style.fontSize=e,F.style.fontSize=e,I.style.fontSize=e,!0}).catch(function()
{})}T.events.on(Et.didEnterFullscreen,n),T.events.on(Et.didExitFullscreen,n),window
.addEventListener("orientationchange",n),R&&(e.classList.add("mobile"),n())}functio
n p(){if(Dt(window).on("resize",a),"undefined"!=typeof MutationObserver){var t=new
MutationObserver(a);t.observe(e,{attributes:!0,attributeFilter:
["class"]})}}function m(){function t(){var
t=e;if(r&&r.getFullscreenElement&&"function"==typeof r.getFullscreenElement){var
n=r.getFullscreenElement();n&&n instanceof
HTMLElement&&n.contains(e)&&n.classList.contains("js-player-
fullscreen")&&(t=n)}return t}function n(e,n){return s?void(s=!1):void(o||(o=!
0,T.events.fire(Et.didEnterFullscreen,t()===e,a)))}function i(e){return s?void(s=!
1):void(o&&(o=!1,T.events.fire(Et.didExitFullscreen,a),a||
T.events.fire(Tt.toggleNativeControls,!1),a=!1))}T.config.embed.fullscreen=!
0,tn.iPad&&e.classList.add("no-fullscreen-api-support"),Xt.enabled&&!
tn.browser.bb10||tn.iPad||(e.classList.add("no-fullscreen-support"),tn.iOS||
(T.config.embed.fullscreen=!1));var o=!1,a=!1,s=!
1;T.events.on([Et.pictureInPictureActivated,Et.pictureInPictureDeactivated],functio
n(){s=!0}),T.events.on(Tt.forceFullscreen,function(){return Xt.enabled||
Xt.videoEnabled(e)?(T.events.fire(Et.willEnterFullscreen),a=!1,void
Xt.request(t())):void T.events.fire(Tt.toggleNativeControls,!
0)}),T.events.on(Et.fullscreenButtonPressed,function(){"picture-in-
picture"===T.telecine.presentationMode&&T.events.fire(Tt.deactivatePictureInPicture
),Xt.element?(T.events.fire(Et.willExitFullscreen),Xt.exit()):
(T.events.fire(Et.willEnterFullscreen),a=!0,Xt.request(t()))});var
u=Xt.onenter,c=Xt.onexit;if(Xt.onenter=function(e){if(!o)return t().contains(e)?
void n(e,!0):void("function"==typeof u&&u(e))},Xt.onexit=function(){return o?void
i(!0):void("function"==typeof c&&c())},Dt(e).on("click","a",function(e)
{Xt.element===t()&&Xt.exit()}),Dt(e).on("gestureend",function(e)
{e.scale>1&&T.events.fire(Et.fullscreenButtonPressed)}),"undefined"!=typeof
MSGesture){var l=1,d=new MSGesture;d.target=e,Dt(e).on("pointerdown",function(e)
{d.addPointer(e.pointerId)}).on(["MSGestureChange"],function(e)
{l*=e.scale}).on(["MSGestureEnd"],function(){(!o&&l>=2||
o&&l<1)&&T.events.fire(Et.fullscreenButtonPressed),l=1})}}function g(){E(e,"a[data-
clip-link]",u),T.events.on(Tt.openVimeo,u)}function _()
{l(),d(),f(),v(),p(),m(),g()}function b(){P||(P=new ct(T,e.querySelector(".overlay-
wrapper")))}function w(){C||(C=new lt(T,{uuid:T.uuid,id:e.id,isMobileDevice:!
1}))}function k(){A||(A=new dt(T))}function S(){b(),w(),k(),void new tt(T,M),void
new nt(T,e);var t=new it(T,e);void new rt(T,e.querySelector(".notification-
wrapper")),void new st(T,e.querySelector(".js-outro-wrapper")),void new
ft(T,F),void new ht(T,I),Object.defineProperties(L,{pauseKeyboard:{enumerable:!
0,value:t.pause},unpauseKeyboard:{enumerable:!
0,value:t.unpause}})}Kt.helpers=Bt;var x=c(i),T=new
Qe({element:e,delegate:r,cssLoadedPromise:x});e.classList.add("js-player-
fullscreen");var
L=T.externalApi,P=null,C=null,A=null,O=null,M=e.querySelector(".controls"),F=e.quer
ySelector(".sidedock"),I=e.querySelector(".title"),q=e.querySelector(".js-cards-
wrapper"),R=tn.mobileAndroid||tn.iPhone||tn.windowsPhone||
tn.browser.bb10,B="normal",D={tiny:Et.enteredTinyMode,mini:Et.enteredMiniMode,norma
l:Et.enteredNormalMode,none:Et.enteredNormalMode},j={initializationHandler:function
(){return S(),_(),_t.resolve()},postInitializationHandler:function(){return
T.telecine&&(void new Wo(e.querySelector(".stats-debug"),T),void new
mt(T,q)),_t.resolve()},authorizationHandler:function(e){e(),b(),w();var
t="Error",n="Unhandled video privacy";switch(T.config.view){case
bt.privatePassword:return new _t(function(e,t)
{T.events.fire(Tt.showOverlay,"password"),T.events.once(Et.passwordUnlocked,functio
n(t){e(t)})});case bt.privateLocked:k();var i="private-locked",r=null;return
T.config.user.logged_in&&(i="error",r={title:"Private Video",message:"Sorry, you
dont have permission to watch.",modal:!0,logo:!!
T.config.embed.settings.branding,icon:"lock"}),T.events.fire(Tt.showOverlay,i,r),_t
.reject();case bt.error:t=T.config.title,n=T.config.message}return
T.events.fire(Tt.showOverlay,"error",{title:t,message:n,modal:!
0}),_t.reject()}};return T.init(t,j).then(function(){return T.config.view!
==bt.privateUnlocked||T.config.embed.autoplay||
T.events.fire(Tt.showOverlay,"private-unlocked"),!0}).catch(function(t)
{T.reportError(t),b(),w(),e.classList.remove("loading"),T.events.fire(Et.error,"err
or",{message:"There was an error loading this video.",modal:!0,final:!0})}),L}var
yt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!
=typeof self?self:{},_t=e(function(e){!function(t,n,i){n[t]=n[t]||
i(),e.exports&&(e.exports=n[t])}("Promise","undefined"!=typeof yt?yt:yt,function()
{function e(e,t){f.add(e,t),d||(d=v(f.drain))}function t(e){var
t,n=typeof e;return null==e||"object"!=n&&"function"!=n||
(t=e.then),"function"==typeof t&&t}function n(){for(var e=0;e<this.chain.length;e+
+)i(this,1===this.state?
this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}func
tion i(e,n,i){var r,o;try{n===!1?i.reject(e.msg):(r=n===!0?e.msg:n.call(void
0,e.msg),r===i.promise?i.reject(TypeError("Promise-chain cycle")):(o=t(r))?
o.call(r,i.resolve,i.reject):i.resolve(r))}catch(e){i.reject(e)}}function r(i){var
a,u=this;if(!u.triggered){u.triggered=!0,u.def&&(u=u.def);try{(a=t(i))?e(function()
{var e=new s(u);try{a.call(i,function(){r.apply(e,arguments)},function()
{o.apply(e,arguments)})}catch(t){o.call(e,t)}}):
(u.msg=i,u.state=1,u.chain.length>0&&e(n,u))}catch(e){o.call(new s(u),e)}}}function
o(t){var i=this;i.triggered||(i.triggered=!
0,i.def&&(i=i.def),i.msg=t,i.state=2,i.chain.length>0&&e(n,i))}function a(e,t,n,i)
{for(var r=0;r<t.length;r++)!function(r){e.resolve(t[r]).then(function(e)
{n(r,e)},i)}(r)}function s(e){this.def=e,this.triggered=!1}function u(e)
{this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void
0}function c(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!
==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var i=new
u(this);this.then=function(t,r){var o={success:"function"!=typeof t||
t,failure:"function"==typeof r&&r};return o.promise=new
this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw
TypeError("Not a function");o.resolve=e,o.reject=t}),i.chain.push(o),0!
==i.state&&e(n,i),o.promise},this.catch=function(e){return this.then(void
0,e)};try{t.call(void 0,function(e){r.call(i,e)},function(e){o.call(i,e)})}catch(e)
{o.call(i,e)}}var l,d,f,h=Object.prototype.toString,v="undefined"!=typeof
setImmediate?function(e){return
setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",
{}),l=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!
0,configurable:i!==!1})}}catch(e){l=function(e,t,n){return e[t]=n,e}}f=function()
{function e(e,t){this.fn=e,this.self=t,this.next=void 0}var
t,n,i;return{add:function(r,o){i=new e(r,o),n?n.next=i:t=i,n=i,i=void
0},drain:function(){var e=t;for(t=n=d=void 0;e;)e.fn.call(e.self),e=e.next}}}();var
p=l({},"constructor",c,!1);return c.prototype=p,l(p,"__NPO__",0,!
1),l(c,"resolve",function(e){var t=this;return e&&"object"==typeof
e&&1===e.__NPO__?e:new t(function(t,n){if("function"!=typeof t||"function"!=typeof
n)throw TypeError("Not a function");t(e)})}),l(c,"reject",function(e){return new
this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw
TypeError("Not a function");n(e)})}),l(c,"all",function(e){var
t=this;return"[object Array]"!=h.call(e)?t.reject(TypeError("Not an
array")):0===e.length?t.resolve([]):new t(function(n,i){if("function"!=typeof
n||"function"!=typeof i)throw TypeError("Not a function");var
r=e.length,o=Array(r),s=0;a(t,e,function(e,t){o[e]=t,+
+s===r&&n(o)},i)})}),l(c,"race",function(e){var t=this;return"[object Array]"!
=h.call(e)?t.reject(TypeError("Not an array")):new t(function(n,i){if("function"!
=typeof n||"function"!=typeof i)throw TypeError("Not a
function");a(t,e,function(e,t)
{n(t)},i)})}),c})}),bt={main:1,privateLocked:2,privateUnlocked:3,privatePassword:4,
error:7,contentRating:9},wt={like:{will:"willLikeVideo",did:"didLikeVideo"},unlike:
{will:"willUnlikeVideo",did:"didUnlikeVideo"},addToWatchLater:
{will:"willAddToWatchLater",did:"didAddToWatchLater"},removeFromWatchLater:
{will:"willRemoveFromWatchLater",did:"didRemoveFromWatchLater"},purchase:
{will:"willOpenVodPurchaseForm",did:"didOpenVodPurchaseForm"},shareOverlay:
{will:"willOpenShareOverlay",did:"didOpenShareOverlay"},loginForm:
{will:"willOpenLoginForm",did:"didOpenLoginForm"},collectionsOverlay:
{will:"willOpenCollectionsOverlay",did:"didOpenCollectionsOverlay"},showOutro:
{will:"willShowOutro",did:"didShowOutro"},playLog:
{will:"willSendPlayLog",did:"didSendPlayLog"}},kt={"application/vnd.apple.mpegurl":
"hls","application/vnd.vimeo.dash+json":"dash","video/mp4":"progressive","video/web
m":"progressive","video/x-
flv":"progressive"},St={h264:"video/mp4",hls:"application/vnd.apple.mpegurl",dash:"
application/vnd.vimeo.dash+json",vp6:"video/x-
flv",vp8:"video/webm",webm:"video/webm",hds:"application/f4m"},xt={HTMLScanner:"htm
l",MediaSourceScanner:"html",SWFScanner:"flash"},Tt={seek:1,changeVolume:3,hideOver
lay:4,showOverlay:5,openPopup:6,reset:7,changeLoop:8,changeQuality:9,openVimeo:10,c
hangeColor:11,disableHd:14,disableVolume:15,enableVolume:16,disableCaptions:17,enab
leCaptions:18,forceFullscreen:19,turnCaptionsOn:20,turnCaptionsOff:21,toggleNativeC
ontrols:22,showOutro:23,hideOutro:24,setEffect:25,activatePictureInPicture:26,deact
ivatePictureInPicture:27,attachSpatialPlaybackEvents:28,toggleSpatialPlayback:29,re
vealSpatialControls:30,setTime:31,addCard:32,removeCard:33},Et={apiError:48,error:4
9,playInitiated:50,paused:51,played:52,loadProgress:53,playProgress:54,seeked:55,en
ded:56,bufferStarted:57,bufferEnded:58,volumeChanged:59,qualityChanged:60,targetTim
eReached:61,cueChanged:62,streamChanged:63,ranIntoBuffer:64,playbackResumed:65,adap
tiveBandwidth:66,resize:67,streamTargetChange:68,forcedQuality:69,cuepoint:70,first
TimeUpdate:71,droppedFrames:72,segmentDownloaded:73,fullscreenButtonPressed:100,pau
seButtonPressed:101,playButtonPressed:102,hdButtonPressed:103,ccButtonPressed:104,s
crubbingStarted:105,scrubbingEnded:106,volumeScrubbingStarted:107,volumeScrubbingEn
ded:108,controlBarVisibilityChanged:109,sidedockVisibilityChanged:110,menuVisibilit
yChanged:111,captionsChanged:112,cuePointAdded:113,cuePointRemoved:114,spatialMotio
nStart:115,spatialMotionEnd:116,stereoscopicButtonPressed:117,badgePressed:140,will
EnterFullscreen:150,didEnterFullscreen:151,willExitFullscreen:152,didExitFullscreen
:153,likeButtonPressed:200,watchLaterButtonPressed:201,shareButtonPressed:202,embed
ButtonPressed:203,vodButtonPressed:205,collectionsButtonPressed:206,followButtonPre
ssed:220,overlayOpened:250,overlayClosed:251,overlayCleared:252,overlayCloseButtonP
ressed:253,facebookButtonPressed:254,twitterButtonPressed:255,tumblrButtonPressed:2
56,emailButtonPressed:257,embedCodeCopied:258,popupOpened:259,effectButtonPressed:2
60,debugButtonPressed:261,emailCaptureSubmitted:262,popupClosed:263,shareViewShown:
264,embedViewShown:265,shareViewEnd:266,embedViewEnd:267,mousedOut:300,mousedOver:3
01,mouseTimeout:302,liked:303,unliked:304,addedToWatchLater:305,removedFromWatchLat
er:306,userLogIn:307,userLoggedIn:308,userLoggedOut:309,loginFailure:310,colorChang
ed:311,configChanged:312,passwordUnlocked:313,privateUnlocked:314,enteredTinyMode:3
15,enteredMiniMode:320,enteredNormalMode:316,signatureExpired:317,requestConfigRelo
aded:318,embedSettingChanged:319,outroDisplayed:321,outroHidden:322,outroVideoPress
ed:323,becameActive:324,becameInactive:325,tipped:326,emailCaptureSuccess:327,loadV
ideo:328,cameraUpdate:329,outroLinkPressed:330,followed:331,unfollowed:332,outroIma
gePressed:333,outroCtaPressed:334,hudDisplayed:335,hudHidden:336,cardDisplayed:337,
cardPressed:338,spaceChanged:339,emailCaptureEnd:340,titleModuleReady:350,sidedockM
oduleReady:351,controlBarModuleReady:352,videoModuleReady:353,overlayModuleReady:35
4,notificationModuleReady:355,statsModuleReady:356,apiModuleReady:357,analyticsModu
leReady:358,ready:359,telecineReady:360,notificationHidden:400,alertVisibilityChang
ed:401,airPlayAvailable:500,airPlayNotAvailable:501,airPlayActivated:502,airPlayDea
ctivated:503,airPlayButtonPressed:504,pictureInPictureAvailable:505,pictureInPictur
eNotAvailable:506,pictureInPictureActivated:507,pictureInPictureDeactivated:508},Lt
="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return
typeof e}:function(e){return e&&"function"==typeof
Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof
e},Pt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class
as a function")},Ct=function(){function e(e,t){for(var n=0;n<t.length;n++){var
i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return
n&&e(t.prototype,n),i&&e(t,i),t}}(),At=function(e,t,n){return t in e?
Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!
0}):e[t]=n,e},Ot=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var
a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!
==t);i=!0);}catch(e){r=!0,o=e}finally{try{!
i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n)
{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw
new TypeError("Invalid attempt to destructure non-iterable instance")}}
(),Mt=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n+
+)t[n]=arguments[n];return t.reduce(function(e,t){return function(){return
e(t.apply(void
0,arguments))}})},Ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","
`":"&#x60;"},It=b(Ft),qt=function(e){var t=function(t){return
e[t]},n="(?:"+Object.keys(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return
function(e){return e=String(e),i.test(e)?
e.replace(r,t):e}},Rt=(qt(Ft),qt(It)),Bt=Object.freeze({formatVodLabel:w,getDisplay
Price:k,isAvailableInCountry:S,translateFromRequest:x}),Dt=e(function(e){!
function(){function t(e,t,n){var
i="blur"==t||"focus"==t;e.element.addEventListener(t,n,i)}function n(e)
{e.preventDefault(),e.stopPropagation()}function i(e){return l?l:l=e.matches?
e.matches:e.webkitMatchesSelector?e.webkitMatchesSelector:e.mozMatchesSelector?
e.mozMatchesSelector:e.msMatchesSelector?e.msMatchesSelector:e.oMatchesSelector?
e.oMatchesSelector:c.matchesSelector}function r(e,t,n){if("_root"==t)return n;if(e!
==n)return i(e).call(e,t)?e:e.parentNode?(d++,r(e.parentNode,t,n)):void 0}function
o(e,t,n,i){h[e.id]||(h[e.id]={}),h[e.id][t]||(h[e.id][t]={}),h[e.id][t][n]||
(h[e.id][t][n]=[]),h[e.id][t][n].push(i)}function
a(e,t,n,i){if(h[e.id])if(t){if(!i&&!n)return void(h[e.id][t]={});if(!i)return void
delete h[e.id][t][n];if(h[e.id][t][n])for(var r=0;r<h[e.id][t][n].length;r+
+)if(h[e.id][t][n][r]===i){h[e.id][t][n].splice(r,1);break}}else for(var o in
h[e.id])h[e.id].hasOwnProperty(o)&&(h[e.id][o]={})}function s(e,t,n){if(h[e][n])
{var i,o,a=t.target||t.srcElement,s={},u=0,l=0;d=0;for(i in h[e][n])h[e]
[n].hasOwnProperty(i)&&(o=r(a,i,v[e].element),o&&c.matchesEvent(n,v[e].element,o,"_
root"==i,t)&&(d++,h[e][n][i].match=o,s[d]=h[e][n]
[i]));for(t.stopPropagation=function(){t.cancelBubble=!0},u=0;u<=d;u+
+)if(s[u])for(l=0;l<s[u].length;l++){if(s[u][l].call(s[u].match,t)===!1)return void
c.cancel(t);if(t.cancelBubble)return}}}function u(e,t,n,i){function r(e){return
function(t){s(l,t,e)}}if(this.element){e instanceof Array||(e=[e]),n||"function"!
=typeof t||(n=t,t="_root");var u,l=this.id;for(u=0;u<e.length;u++)i?
a(this,e[u],t,n):(h[l]&&h[l][e[u]]||
c.addEvent(this,e[u],r(e[u])),o(this,e[u],t,n));return this}}function c(e,t){if(!
(this instanceof c)){for(var n in v)if(v[n].element===e)return v[n];return f+
+,v[f]=new c(e,f),v[f]}this.element=e,this.id=t}var
l,d=0,f=0,h={},v={};c.prototype.on=function(e,t,n){return
u.call(this,e,t,n)},c.prototype.off=function(e,t,n){return u.call(this,e,t,n,!
0)},c.matchesSelector=function()
{},c.cancel=n,c.addEvent=t,c.matchesEvent=function(){return!
0},e.exports&&(e.exports=c),window.Gator=c}
()}),jt=Dt.addEvent,Nt="undefined"==typeof window.PointerEvent&&"undefined"!=typeof
window.MSPointerEvent,Vt={pointerdown:"MSPointerDown",pointerup:"MSPointerUp",point
ercancel:"MSPointerCancel",pointermove:"MSPointerMove",pointerenter:"MSPointerEnter
",pointerleave:"MSPointerLeave",pointerover:"MSPointerOver",pointerout:"MSPointerOu
t"},Ht="onmspointerenter"in document,Ut="onmspointerleave"in
document;Dt.addEvent=function(e,t,n)
{Nt&&Vt[t]&&(t=Vt[t]),"transitionend"===t&&(jt(e,"webkitTransitionEnd",n),jt(e,"otr
ansitionend",n)),"mouseenter"===t&&(t="mouseover"),"mouseleave"===t&&(t="mouseout")
,"MSPointerEnter"!==t||Ht||(t="MSPointerOver"),"MSPointerLeave"!==t||Ut||
(t="MSPointerOut"),jt(e,t,n)},Dt.matchesEvent=function(e,t,n,i,r){return!
("mouseenter"===e||"mouseleave"===e||!Ht&&"MSPointerEnter"===e||!
Ut&&"MSPointerLeave"===e)||T(t,n,i,r)};var zt={},Wt="en",Kt=e(function(e){!
function(){var t={};t.templates={},t.render=function(e,n){return t.templates[e]?
t.templates[e].call(t,n||
{}):""},t.map={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2
F;"},t.escape=function(e){return e.replace(/[&<>"'\/]/g,function(e){return
t.map[e]})},t.helpers={},t.templates.stream_studder=function(e){var t="<h3>
";return t+=this.render("icon_warning")||"",t+=' <span>Having issues? <button
class="player-alert-button-link button-link" aria-label="Switch to auto" data-
alert-autofocus data-close data-context="suggestion">Switch to Auto</button> for
smoother streaming.</span></h3>'},t.templates.warning_alert=function(e){var t="<h3>
";return t+=this.render("icon_warning")||"",t+="
<span>"+e.strings.text+"<span></h3>"},t.templates.buffer_pattern=function(e){var
t='<pattern id="'+e.id+'" patternUnits="userSpaceOnUse" x="0" y="0" width="10"
height="10" viewBox="0 0 10 10"><line x1="5" y1="-1" x2="-5" y2="10" stroke-
width="2" stroke="#666" stroke-linecap="butt" /><line x1="10" y1="-1" x2="0"
y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="15" y1="-
1" x2="5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt"
/></pattern>';return t},t.templates.card=function(e){var t='<div
class="card';return e.className&&(t+=" "+e.className),e.teaser&&(t+=" card-
hasDetail"),t+='"> ',e.url&&(t+='<a class="card-link" href="'+e.url+'"
target="_blank">'),t+=' <div class="card-inner"> ',e.image&&(t+=' <div class="card-
imageWrap js-cardImageWrap"><img class="card-image" src="'+e.image+'" alt=""></div>
'),t+=' <div class="card-body"><h3 class="card-text card-text--
title"><span>'+e.headline+"</span>
",e.url&&(t+=this.render("icon_card_arrow")||""),t+=" </h3> ",e.teaser&&(t+=' <p
class="card-text card-text--detail"> '+e.teaser+" </p> "),t+=" </div></div>
",e.url&&(t+="</a>"),t+="</div>"},t.templates.compass=function(e){var t='<svg
viewBox="0 0 36 36"> ';return t+=1==e.version?' <circle class="compass-background"
r="18" cx="18" cy="18"></circle><path class="compass-slice" transform="rotate(-45,
18, 18)" d="M0,0 m18,18 l12,0 A12,12 0 0,0 18,6 z"/><circle fill="none"
class="compass-ring" stoke-width="3" r="14.5" cx="18" cy="18"></circle><polygon
class="compass-dimple" points="16,3.5 18,1 20,3.5"/> ':' <circle class="compass-
background" r="18" cx="18" cy="18"></circle><path class="compass-slice"
transform="rotate(-30, 18, 18)" d="M0,0 m18,18 l13,0 A13,13 0 0,0
11.500000000000004,6.741669750802297 z"/><circle class="compass-centercircle" r="3"
cx="18" cy="18"></circle><path class="compass-line" stroke-linecap="round" d="M0,18
L36,18 z" /> ',t+="</svg>"},t.templates.email_capture2=function(e){var t='<div
class="emailCapture2-wrapper"><div class="emailCapture2"> ';return
e.customLogo&&(t+=' <div class="emailCapture2-logoWrap"><img src="'+e.customLogo+'"
alt="" class="emailCapture2-logo"></div> '),t+=' <h1 class="emailCapture2-
title">'+e.text+"</h1> ",e.subtitle&&(t+=' <p class="emailCapture2-
subtitle">'+e.subtitle+"</p> "),t+=' <form class="emailCapture2-form"
action="'+e.action+'" method="post" novalidate><div class="validationBubble2
validationBubble2-hidden"><div class="validationBubble2-arrowClipper"><div
class="validationBubble2-arrow"></div></div><div class="validationBubble2-
message"></div></div><input class="emailCapture2-form-input emailCapture2-form-
input--email" type="email" name="email" placeholder="'+e.strings.email+'" aria-
label="'+e.strings.email+'" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$"
required aria-required="true"><input class="emailCapture2-form-input" type="text"
name="name" placeholder="'+e.strings.fullName+'" aria-
label="'+e.strings.fullName+'" maxlength="180"><input type="hidden" name="referrer"
value="'+e.referrer+'"><input type="hidden" name="signature" value=""><input
type="hidden" name="time" value=""><input type="hidden" name="expires"
value=""><div class="emailCapture2-form-buttons"><input class="emailCapture2-form-
button emailCapture2-form-button--replay" type="button"
value="'+e.strings.nothanks+'"> ',e.allowSkip&&(t+=' <input class="emailCapture2-
form-button emailCapture2-form-button--cancel" type="button"
value="'+e.strings.nothanks+'"> '),t+=' <input class="emailCapture2-form-button
emailCapture2-form-button--submit" type="submit"
value="'+e.strings.submit+'"></div></form></div><div class="emailCapture2-confirm
emailCapture2-confirm-hidden"><div class="emailCapture2-confirm-box"><h1
class="emailCapture2-confirm-
title">'+e.confirmation+"</h1></div></div></div>"},t.templates.share2=function(e)
{var t='<div class="share2-wrapper js-share"><section class="share2-screen share2-
screen--share'+(e.embedOnly?" cloaked":"")+' js-share-screen"><h1 class="share2-
title share2-title--share">'+e.strings.share+'</h1><ul class="share2-buttons"><li
class="share2-buttons-item"><a class="share2-button share2-button--facebook js-
facebook" href="'+e.playerShareUrl+'/facebook" target="_blank"
title="'+e.strings.facebook+'" role="button" aria-
label="'+e.strings.facebook+'">';return
t+=this.render("icon_facebook")||"",t+='</a><li class="share2-buttons-item"><a
class="share2-button share2-button--twitter js-twitter"
href="'+e.playerShareUrl+'/twitter" target="_blank" title="'+e.strings.twitter+'"
role="button" aria-
label="'+e.strings.twitter+'">',t+=this.render("icon_twitter")||"",t+='</a><li
class="share2-buttons-item"><a class="share2-button share2-button--tumblr js-
tumblr" href="'+e.playerShareUrl+'/tumblr" target="_blank"
title="'+e.strings.tumblr+'" role="button" aria-
label="'+e.strings.tumblr+'">',t+=this.render("icon_tumblr")||"",t+="</a>
",e.url&&(t+=' <li class="share2-buttons-item"><a class="share2-button share2-
button--email js-email" href="mailto:?
subject=',t+=encodeURIComponent(e.strings.emailSubject)||"",t+="&amp;body=",t+=enco
deURIComponent(e.strings.emailBody)||"",t+='" title="'+e.strings.email+'"
role="button" aria-
label="'+e.strings.email+'">',t+=this.render("icon_mail")||"",t+="</a> "),t+="
</ul> ",e.embed&&(t+=' <ul class="share2-buttons"><li class="share2-buttons-
item"><a class="share2-button share2-button--embed js-embed" href="'+e.url+'#share"
target="_blank" title="'+e.strings.embedCode+'" role="button" aria-
label="'+e.strings.embedCode+'">',t+=this.render("icon_embed")||"",t+="</a></li></u
l> "),e.url&&(t+=' <p class="share2-footnote share2-footnote--share"><a
class="clip_url" href="'+e.shareUrl+'" target="_blank">'+e.shareUrl+"</a></p>
"),t+=" </section> ",e.embed&&(t+=' <section class="share2-screen share2-screen--
embed'+(e.embedOnly?"":" cloaked")+' js-embed-screen"><div class="share2-
embedWrapper"><h1 class="share2-title share2-title--
embed">'+e.strings.embedTitle+'</h1><p class="share2-subtitle share2-subtitle--
embed">'+e.strings.embedSubtitle+'</p><div class="share2-embedCode
form"><div><input class="share2-embedInput" type="text" name="embed_code"
title="Embed code" value="'+e.embedCode+'" spellcheck="false" aria-
readonly="true"',e.readOnly&&(t+=" readonly"),t+="></div> ",e.copyButton&&(t+='
<button class="share2-embedCopy js-embedCopy" data-clipboard-
text=\''+e.embedCode+"' data-label=\""+e.strings.copy+'" data-success-
label="'+e.strings.copySuccess+'">'+e.strings.copy+"</button> "),t+=" </div>
",e.customizeEmbed&&(t+=' <p class="share2-footnote share2-footnote--
embed">'+e.strings.customize+"</p> "),t+=" </div></section>
"),t+="</div>"},t.templates.controlbar_trailer=function(e){var t='<button
class="play trailer rounded-box" title="'+e.strings.playTrailer+'" aria-
label="'+e.strings.playTrailer+'"><div><span class="play-icon">';return
t+=this.render("icon_play")||"",t+="</span><p>"+e.text+"</p></div></button>",e.vime
oLogo.show&&(t+='
<div class="logo"> ',e.vimeoLogo.showLink&&(t+=' <a
href="'+e.vimeoLogo.url+'"',e.targetBlank&&(t+=' target="_blank"'),t+='
title="'+e.strings.watchOnVimeo+'" aria-label="'+e.strings.watchOnVimeo+'" data-
clip-link> '),t+=this.render("logo")||"",e.vimeoLogo.showLink&&(t+=" </a> "),t+="
</div>"),t+="",e.customLogo&&(t+=' <div class="custom-
logo',e.customLogo.sticky&&(t+=" sticky"),t+='"
style="width:'+e.customLogo.width+"px;height:"+e.customLogo.height+'px">
',e.customLogo.showLink&&(t+='<a href="'+e.customLogo.url+'"
target="_blank">'),t+=' <img src="'+e.customLogo.img+'" alt="">
',e.customLogo.showLink&&(t+="</a>"),t+="
</div>"),t+=""},t.templates.controlbar=function(e){var t='<button class="play
rounded-box state-'+e.playState+'" title="'+e.strings.play+'" data-title-
play="'+e.strings.play+'" data-title-pause="'+e.strings.pause+'" data-title-
replay="'+e.strings.replay+'" aria-label="'+e.strings.play+'"><div class="tiny-
bars"><svg width="100%" height="100%" viewBox="0 0 65 40"><defs><clipPath
id="rounded-border"><rect height="100%" width="100%" x="0" y="0"
rx="5"/></clipPath> ';return t+=this.render("buffer_pattern",{id:"tiny-
buffer"})||"",t+=' </defs><g clip-path="url(#rounded-border)"><rect class="buffer
hidden" height="3" width="110%" x="0" y="37" fill="url(#tiny-buffer)"/><rect
class="loaded" height="3" width="0" x="0" y="37" fill="#666"/><rect class="played
fill" height="3" width="0" x="0" y="37"/></g></svg></div><div class="play-
icon">',t+=this.render("icon_play")||"",t+='</div><div class="pause-
icon">',t+=this.render("icon_pause")||"",t+='</div><div class="replay-
icon">',t+=this.render("icon_replay")||"",t+='</div></button><div class="play-bar
rounded-box"><div class="progress"><div class="buffer hidden"><svg width="110%"
tabindex="-1"><defs> ',t+=this.render("buffer_pattern",{id:"buffer"})||"",t+='
</defs><rect fill="url(#buffer)" width="100%" height="100%" /></svg></div><div
class="loaded',e.rawDuration<60&&(t+=" short-video"),t+='" role="progressbar" aria-
label="'+e.strings.loadedBar+'" aria-valuemin="0" aria-valuemax="'+e.rawDuration+'"
aria-valuenow="0"></div><div class="played" role="progressbar" aria-
label="'+e.strings.playedBar+'" aria-valuemin="0" aria-valuemax="'+e.rawDuration+'"
aria-valuenow="0"></div><div class="cuepoints"></div><div class="thumb-preview
invisible hidden" role="presentation" aria-hidden="true"><div
class="thumb"></div></div><div class="ghost-timecode invisible hidden"
role="presentation" aria-hidden="true"><div class="box">00:00</div></div><div
class="timecode" role="presentation" aria-hidden="true"><div
class="box">'+e.duration+"</div></div></div> ",
e.volume&&(t+=' <div class="volume" role="slider" aria-label="'+e.strings.volume+'"
aria-valuemin="0" aria-valuemax="1"
tabindex="0"><div></div><div></div><div></div><div></div><div></div></div>
'),e.ccButton&&(t+=' <button class="toggle cc '+(e.ccOn?"on":"off")+'"
title="'+e.strings.captions+'"> ',t+=this.render("icon_cc")||"",t+=" </button>
"),e.hdButton&&(t+=' <button class="hd" title="'+e.strings.hd+'" aria-label="HD">
',t+=this.render("icon_hd")||"",t+=" </button> "),t+=' <button class="hidden toggle
effect off" title="'+e.strings.effect+'"><svg viewBox="0 0 210 200"
version="1.1"><g fill="none" fill-rule="evenodd"><circle class="red" fill="#f00"
cx="63.5" cy="136.5" r="63.5"/><circle class="blue" fill="#2653ff" cx="146.5"
cy="136.5" r="63.5"/><circle class="green" fill="#0f0" cx="104.5" cy="63.5"
r="63.5"/></g></svg></button> ',e.airplayButton&&(t+=' <button class="toggle
airplay off hidden" title="'+e.strings.airPlay+'" data-title-
off="'+e.strings.airPlay+'" data-title-on="'+e.strings.airPlayOff+'" hidden>
',t+=this.render("icon_airplay")||"",t+=" </button> "),e.stereoscopicButton&&(t+='
<button class="toggle stereoscopic off" title="'+e.strings.stereoscopic+'" data-
title-off="'+e.strings.stereoscopic+'" data-title-
on="'+e.strings.stereoscopicOff+'"> ',t+=this.render("icon_stereoscopic")||"",t+="
</button> "),t+=' <button class="pip hidden enter" title="'+e.strings.pipEnter+'"
data-title-enter="'+e.strings.pipEnter+'" data-title-
return="'+e.strings.pipReturn+'" hidden> ',t+=this.render("icon_pip")||"",t+='
</button><button class="fullscreen',e.fullscreenButton||(t+=" only-in-
fullscreen"),t+='" title="'+e.strings.enterFullscreen+'" data-title-
fullscreen="'+e.strings.enterFullscreen+'" data-title-
unfullscreen="'+e.strings.exitFullscreen+'" aria-
label="'+e.strings.fullscreen+'"><div class="fullscreen-
icon">',t+=this.render("icon_fullscreen")||"",t+='</div><div class="unfullscreen-
icon">',t+=this.render("icon_unfullscreen")||"",t+="</div></button>
",e.vimeoLogo.show&&(t+=' <div class="logo"> ',e.vimeoLogo.showLink&&(t+=' <a
href="'+e.vimeoLogo.url+'"',e.targetBlank&&(t+=' target="_blank"'),t+='
title="'+e.strings.watchOnVimeo+'" aria-label="'+e.strings.watchOnVimeo+'" data-
clip-link> '),t+=this.render("logo")||"",e.vimeoLogo.showLink&&(t+=" </a> "),t+="
</div> "),t+="</div> ",e.customLogo&&(t+=' <div class="custom-
logo',e.customLogo.sticky&&(t+=" sticky"),t+='"
style="width:'+e.customLogo.width+"px;height:"+e.customLogo.height+'px">
',e.customLogo.showLink&&(t+='<a href="'+e.customLogo.url+'"
target="_blank">'),t+=' <img src="'+e.customLogo.img+'" alt="">
',e.customLogo.showLink&&(t+="</a>"),t+="
</div>"),t+=""},t.templates.error=function(e){var t='<div class="window-wrapper
error"><h1>'+e.title+"</h1> ";return e.message&&(t+=" <p>"+e.message+"</p>
"),t+="</div>"},t.templates.help=function(e){var t='<div class="window-wrapper
help"><h1>'+e.strings.title+'</h1><dl><div class="volume-up secondary"><dt
class="arrow"></dt><dd>'+e.strings.volumeUp+'</dd></div><div class="volume-down
secondary"><dt class="arrow"></dt><dd>'+e.strings.volumeDown+'</dd></div><div
class="scrub-forward secondary"><dt
class="arrow"></dt><dd>'+e.strings.scrubForward+'</dd></div><div class="scrub-
backwards secondary"><dt
class="arrow"></dt><dd>'+e.strings.scrubBackwards+'</dd></div><div
class="like"><dt>L</dt><dd>'+e.strings.like+'</dd></div><div
class="share"><dt>S</dt><dd>'+e.strings.share+'</dd></div><div class="watch-
later"><dt>W</dt><dd>'+e.strings.watchLater+'</dd></div><div class="toggle-
captions"><dt>C</dt><dd>'+e.strings.captions+'</dd></div><div class="toggle-
hd"><dt>H</dt><dd>'+e.strings.hd+'</dd></div><div
class="fullscreen"><dt>F</dt><dd>'+e.strings.fullscreen+"</dd></div> ";return
e.onSite||(t+='<div class="view-on-
vimeo"><dt>V</dt><dd>'+e.strings.viewOnVimeo+"</dd></div>"),t+="
</dl></div>"},t.templates.icon_stereoscopic=function(e){var t='<svg viewBox="0 0 20
13" tabindex="-1"><path class="fill" d="M 18.74,0 1.2,0 C 0.55,0 0,0.57 0,1.27 L
0,11.73 C 0,12.43 0.55,13 1.23,13 L 6,13 c 0.54,0 1,-0.32 1.16,-0.79 L 8.55,8.74 C
8.79,8.16 9.35,7.75 10,7.75 c 0.65,0 1.21,0.41 1.45,0.99 l 1.39,3.47 c 0.19,0.47
0.62,0.79 1.11,0.79 l 4.79,0 C 19.45,13 20,12.43 20,11.73 L 20,1.27 C 20,0.57
19.45,0 18.74,0 M 5.22,8.58 C 4,8.58 3,7.55 3,6.29 3,5 4,4 5.22,4 6.44,4 7.43,5
7.43,6.29 7.43,7.55 6.44,8.58 5.22,8.58 m 9.56,0 C 13.56,8.58 12.57,7.55 12.57,6.29
12.57,5.03 13.56,4 14.78,4 16,4 17,5.03 17,6.29 17,7.55 16,8.58 14.78,8.58 Z"
/></svg>';return t},t.templates.icon_airplay=function(e){var t='<svg
class="airplay-icon" viewBox="0 0 44 36" tabindex="-1"><polygon class="fill"
points="0,0 44,0 44,27 34.5,27 31,23 40,23 40,4 4,4 4,23 13,23 9.5,27
0,27"/><polygon class="fill" points="7,36 22,18 37,36"/></svg>';return
t},t.templates.icon_back=function(e){var t='<svg class="icon-back" viewBox="0 0 64
64" preserveAspectRatio="xMidYMid" tabindex="-1"><path class="fill" d="M0 32l32
32v-20h32l0-24h-32v-20z"/></svg>';return
t},t.templates.icon_broken_heart=function(e){var t='<svg class="unlike-icon"
viewBox="0 0 110 81" preserveAspectRatio="xMidYMid" tabindex="-1"><path
class="fill" d="M82.496 1c-14.594 0-23.198 10.043-25.948 14.48l-6.77 10.727 13.661
8.543-13.661 12.535 5.695 15.348-9.686-15.348 11.389-11.975-11.969-7.402s4.22-14.27
4.621-15.521c.782-2.438.782-2.438-.813-3.289-5.516-2.944-12.608-8.098-21.509-8.098-
16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186
4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.753-24.523 9.684-
5.034 22.247-14.797 22.247-27.592 0-12.848-11.208-27.885-27.504-
27.885z"/></svg>';return t},t.templates.icon_card_arrow=function(e){var t='<svg
class="card-arrow" viewBox="0 0 10 10" preserveAspectRatio="xMidYMid" tabindex="-
1"><polygon class="fill" points="10 8.337 10 0 1.663 0 1.663 1.603 7.263 1.603 0
8.866 1.134 10 8.397 2.737 8.397 8.337"/></svg>';return
t},t.templates.icon_cc=function(e){var t='<svg viewBox="0 0 20 14" tabindex="-
1"><path class="fill" fill-rule="evenodd" clip-rule="evenodd" d="M17 0h-14c-1.657
0-3 1.343-3 3v8c0 1.656 1.343 3 3 3h14c1.657 0 3-1.344 3-3v-8c0-1.657-1.343-3-3-
3zm-7.271 8.282c-.145.923-.516 1.686-1.105 2.268-.597.591-1.369.89-2.294.89-1.138
0-2.049-.402-2.706-1.195-.647-.786-.975-1.866-.975-3.215 0-1.458.372-2.603 1.105-
3.403.65-.708 1.487-1.067 2.487-1.067 1.33 0 2.321.482 2.947 1.435.34.53.526
1.072.553 1.611l.013.236h-
1.984l-.044-.169c-.092-.355-.207-.622-.343-.793-.239-.298-.591-.443-1.076-.443-.483
0-.856.209-1.14.641-.298.455-.449 1.12-.449 1.977 0 .851.156 1.49.466
1.898.298.395.666.588 1.122.588.469 0 .814-.16
1.058-.491.138-.183.255-.472.351-.856l.042-.17h2.013l-.041.258zm7.582
0c-.145.923-.516 1.686-1.104 2.268-.598.591-1.369.89-2.294.89-1.139 0-2.049-.402-
2.707-1.195-.646-.785-.975-1.865-.975-3.214 0-1.458.372-2.603 1.106-3.403.649-.708
1.485-1.067 2.486-1.067 1.33 0 2.32.482 2.946 1.435.34.53.526 1.072.554
1.611l.012.236h-
1.9829999999999999l-.043-.169c-.092-.355-.208-.623-.344-.793-.238-.298-.591-.443-
1.076-.443-.483 0-.856.209-1.139.641-.299.455-.45 1.12-.45 1.977 0 .851.157
1.49.467 1.898.299.395.666.588 1.121.588.469 0 .814-.16
1.058-.491.138-.183.256-.472.352-.856l.042-.17h2.012l-.041.257z"/></svg>';return
t},t.templates.icon_check=function(e){var t='<svg class="check-icon" viewBox="0 0
12 12"><path class="fill" d="M10.9 2.9l-.7-.7c-.2-.2-.6-.2-.8-.1L5 6.6 2.6
4.1c-.2-.1-.6-.1-.7 0l-.8.8c-.1.1-.1.5 0 .7l3.1 3.1c.4.4 1 .4 1.4 0l5.1-
5.1c.3-.2.3-.6.2-.7z"/></svg>';return t},t.templates.icon_clock=function(e){var
t='<svg class="watch-later-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"
tabindex="-1"><polyline class="fill hour-hand" points="9.64,4.68 10.56,4.68
11.28,11.21 8.93,11.21 9.64,4.68" /><polyline class="fill minute-hand"
points="14.19,13.65 13.7,14.14 8.58,10.4 10.44,8.5 14.19,13.65" /><circle
class="stroke" cx="10" cy="10" r="8" stroke-width="2" /></svg>';return
t},t.templates.icon_close_new=function(e){var t='<svg class="icon-close-new"
viewBox="0 0 16 16" preserveAspectRatio="xMidYMid" tabindex="-1"><path class="fill"
d="M8.001 9.416l6.437 6.437a.497.497 0 0 0 .713-.001l.7-.7a.503.503 0 0 0 .
002-.714L9.416 8.001l6.437-6.436a.497.497 0 0 0-.001-.713l-.7-.7a.503.503 0 0
0-.714-.002L8.001 6.587 1.565.15a.497.497 0 0 0-.713.001l-.7.7a.503.503 0 0
0-.002.714L6.587 8 .15 14.438a.497.497 0 0 0 .001.713l.7.7a.503.503 0 0 0 .
714.002L8 9.416z"/></svg>';return t},t.templates.icon_close=function(e){var t='<svg
class="icon-close" viewBox="0 0 64 64" preserveAspectRatio="xMidYMid" tabindex="-
1"><path class="fill" d="M60 48.796l-16.812-16.796 16.812-16.796-11.204-11.204-
16.796 16.804-16.804-16.804-11.196 11.204 16.796 16.796-16.796 16.796 11.196 11.204
16.804-16.804 16.796 16.804z"/></svg>';return
t},t.templates.icon_collections=function(e){var t='<svg class="collections-icon"
viewBox="0 0 24 24" tabindex="-1"><path class="fill" d="M24 12c0-.3-.1-.6-.4-.8l-
2.7-2.3 2.4-1c.4-.1.7-.5.7-.9 0-.3-.1-.6-.4-.8l-7-6c-.1-.1-.4-.2-.6-.2-.1 0-.3
0-.4.1l-15 6c-.3.1-.6.5-.6.9 0 .3.1.6.4.8l2.7 2.3-2.4 1c-.4.1-.7.5-.7.9 0 .
3.1.6.4.8l2.7 2.3-2.4 1c-.4.1-.7.5-.7.9 0 .3.1.6.4.8l7 6c.1.1.4.2.6.2.1 0 .3 0 .
4-.1l15-6c.4-.1.6-.5.6-.9 0-.3-.1-.6-.4-.8l-2.7-2.3 2.4-1c.4-.1.7-.5.7-.9zm-8.2-
9.8l5.3 4.5-12.9 5.1-5.3-4.5 12.9-5.1zm5.3 14.5L8.2 21.8l-5.3-4.5 1.9-.8 2.6
2.2c.1.2.4.3.6.3.1 0 .3 0 .4-.1l10.5-4.2 2.2 2zm-12.9.1l-5.3-4.5 1.9-.8 2.6
2.2c.1.2.4.3.6.3.1 0 .3 0 .4-.1l10.5-4.2 2.3 1.9-13 5.2z"/></svg>';return
t},t.templates.icon_embed=function(e){var t='<svg class="embed-icon" viewBox="0 0
55 48" preserveAspectRatio="xMidYMid" tabindex="-1"><polygon class="fill"
points="16.019,16.385 11.968,13.131 0,24.543 12.082,35.955 16.132,32.703
7.439,24.543"/><polygon class="fill" points="42.92,13.131 38.868,16.384
47.561,24.542 38.981,32.701 43.033,35.955 55,24.542"/><polygon class="fill"
points="24.083,39.221 28.76,39.221 36.243,8.351 31.566,8.351"/></svg>';return
t},t.templates.icon_facebook=function(e){var t='<svg class="facebook-icon"
viewBox="0 0 64 64" preserveAspectRatio="xMidYMid" tabindex="-1"><path class="fill"
d="M35.992 64h-11.992v-32h-8v-11.028l8-0.004-0.013-6.497c0-8.997 2.44-14.471
13.037-14.471h8.824v11.030h-5.514c-4.127 0-4.325 1.541-4.325 4.418l-0.016
5.52h9.918l-1.169 11.028-8.741 0.004-0.008 32z"/></svg>';return
t},t.templates.icon_follow=function(e){var t='<svg class="icon icon-follow"
viewBox="0 0 24 24" preserveAspectRatio="xMidYMid" tabindex="-1"><defs><clipPath
id="icon-mask--check"><rect x="0" y="0" width="24" height="24"
/></clipPath></defs><path class="icon-path icon-path--plus fill" d="M24 10h-10v-
10h-4v10h-10v4h10v10h4v-10h10z"/><path class="icon-path icon-path--check fill"
d="M9 21.035l-9-8.638 2.791-2.87 6.156 5.874 12.21-12.436 2.843 2.817z" clip-
path="url(#icon-mask--check)"/><path class="icon-path icon-path--close fill"
d="M23.954 21.03l-9.184-9.095 9.092-9.174-2.832-2.807-9.09 9.179-9.176-9.088-2.81
2.81 9.186 9.105-9.095 9.184 2.81 2.81 9.112-9.192 9.18 9.1z"/></svg>';return
t},t.templates.icon_fullscreen=function(e){var t='<svg viewBox="0 0 12 12"
preserveAspectRatio="xMidYMid" tabindex="-1"><polyline class="fill" points="6,6
5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6)" /><polyline
class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9"
transform="translate(6,6) rotate(90)" /><polyline class="fill" points="6,6 5.9,2
4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(180)" /><polyline
class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9"
transform="translate(6,6) rotate(270)" /></svg>';return
t},t.templates.icon_hd=function(e){var t='<svg viewBox="';return
t+=e.notification?"-1 -1 104.717 49.035":"0 0 102.717 47.035",t+='"
preserveAspectRatio="xMidYMid" tabindex="-1"><path
class="',t+=e.stroke?"stroke":"fill",t+='" d="M100.014 6.758c-1.352-2.162-3.244-
3.781-5.676-5.134-2.434-1.083-5.947-1.624-10.274-1.624h-21.625l-7.297
47.035h21.895c2.434 0 5.676-.274 8.92-1.352 2.434-.542 4.596-1.627 7.03-3.785
2.161-1.621 4.324-4.055 5.675-7.028 1.621-2.701 2.973-6.757 3.786-11.623.269-
3.244.269-6.487.269-9.19-.54-2.704-1.352-5.138-2.703-7.299zm-12.433 16.76c-.541
3.783-1.352 6.485-2.165 8.109-1.08 1.893-2.162 2.703-3.782 3.514-1.083.541-3.515
1.082-6.217 1.082h-3.517l3.517-25.41h3.782c3.514 0 6.217.811 7.568 2.703 1.083
1.625 1.352 5.135.814 10.002z"/><path class="',t+=e.stroke?"stroke":"fill",t+='"
d="M37.572,0L35.14,16.491H19.463L21.895,0H7.027L0,47.035h14.866l2.703-
18.922h15.677l-
2.971,18.922h14.866L52.439,0H37.572z"/></svg>'},t.templates.icon_heart=function(e)
{var t='<svg class="like-icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid"
tabindex="-1"><path class="fill" d="M82.496 1c-14.698 0-25.969 11.785-27.496
13.457-1.526-1.672-12.798-13.457-27.494-13.457-16.299 0-27.506 15.037-27.506 27.885
0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-
6.174 23.57-19.752 32.755-24.523 9.684-5.034 22.245-14.797 22.245-27.592 0-12.848-
11.206-27.885-27.504-27.885z"/></svg>';return t},t.templates.icon_lock=function(e)
{var t='<svg viewBox="0 0 46 76" preserveAspectRatio="xMidYMid" tabindex="-1"><path
class="fill bolt" d="M5,42v-15C8,5 39,5 42,27v30h-7v-30C32,14 15,14
12,27v15z"/><rect class="fill" x="0" y="41" height="35" width="46" rx="4"
ry="4"/></svg>';return t},t.templates.icon_mail=function(e){var t='<svg
class="mail-icon" viewBox="0 0 72 72" preserveAspectRatio="xMidYMid" tabindex="-
1"><path class="fill" d="M71.754,57.6C71.9,57.169,72,56.718,72,56.241V16.759c0-
0.453-0.092-0.881-0.225-1.291l-23.487,19.86L71.754,57.6z"/><path class="fill"
d="M35.999,40.118l6.187-4.971l3.131-2.516L68.9,12.693c-0.387-0.113-0.789-0.193-
1.213-0.193H4.312c-0.424,0-0.827,0.08-
1.215,0.194l23.599,19.949l3.132,2.517L35.999,40.118z"/><path class="fill"
d="M67.688,60.5c0.405,0,0.791-0.074,1.164-0.18L45.157,37.843l-9.159,7.361l-9.145-
7.351L3.15,60.322C3.522,60.426,3.907,60.5,4.312,60.5H67.688z"/><path class="fill"
d="M0.226,15.468C0.092,15.878,0,16.307,0,16.759v39.482c0,0.478,0.099,0.929,0.247,1.
356l23.476-22.261L0.226,15.468z"/></svg>';return
t},t.templates.icon_pause=function(e){var t='<svg viewBox="0 0 20 20"
preserveAspectRatio="xMidYMid" tabindex="-1"><rect class="fill" width="6"
height="20" x="0" y="0" /><rect class="fill" width="6" height="20" x="12" y="0"
/></svg>';return t},t.templates.icon_pip=function(e){var t='<svg class="pip-icon"
viewBox="0 0 16 12"><polygon class="fill" points="6 8 1 8 1 1 14 1 14 6 15 6 15 0 0
0 0 9 6 9 6 8"/><rect class="fill" x="7" y="7" width="9" height="5"/><polyline
class="fill enter" transform="translate(4, 4) rotate(180) translate(-4, -4)"
points="5.33 2 5.33 3 3.67 3 5.67 5 5 5.67 3 3.67 3 5.33 2 5.33 2 2"/><polyline
class="fill return" points="5.33 2 5.33 3 3.67 3 5.67 5 5 5.67 3 3.67 3 5.33 2 5.33
2 2"/></svg>';return t},t.templates.icon_play=function(e){var t='<svg viewBox="0 0
20 20" preserveAspectRatio="xMidYMid" tabindex="-1"><polygon class="fill"
points="1,0 20,10 1,20" /></svg>';return t},t.templates.icon_prev=function(e){var
t='<svg class="icon-prev" viewBox="0 0 27 48" preserveAspectRatio="xMidYMid"
tabindex="-1"><path class="fill" d="M7.243,24L26.414,4.828c0.781-0.781,0.781-
2.047,0-2.828L25,0.586 c-0.781-0.781-2.047-0.781-2.828,0L0.879,21.879c-1.172,1.172-
1.172,3.071,0,4.243l21.293,21.293c0.781,0.781,2.047,0.781,2.828,0 L26.414,46c0.781-
0.781,0.781-2.047,0-2.828L7.243,24z"/></svg>';return
t},t.templates.icon_replay=function(e){var t='<svg viewBox="-387 605 16 16"
preserveAspectRatio="xMidYMid"><path class="fill" d="M-387 606v4c0 .6.4 1 1 1h4c.6
0 1-.4 1-1s-.4-1-1-1h-1.5c1.1-1.2 2.7-2 4.5-2 3.3 0 6 2.7 6 6s-2.7 6-6 6c-2.3 0-
4.4-1.3-5.4-3.4-.2-.5-.8-.7-1.3-.5-.5.2-.7.8-.5 1.3 1.3 2.8 4.2 4.6 7.2 4.6 4.4 0
8-3.6 8-8s-3.6-8-8-8c-2.3 0-4.5 1-6 2.7V606c0-.6-.4-1-1-1s-1 .4-1
1z"></path></svg>';return t},t.templates.icon_share=function(e){var t='<svg
class="share-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid" tabindex="-
1"><polygon class="fill" points="20,0 0,12 5,15 17,4 7,16 7,19 9,17
14,20"/></svg>';return t},t.templates.icon_tumblr=function(e){var t='<svg
class="tumblr-icon" viewBox="0 0 12 20" tabindex="-1"><path class="fill"
d="M7.865,19.958 C3.629,19.958 2.02,16.834 2.02,14.627 L2.02,8.105 L0,8.105
L0,5.527 C3.027,4.436 3.756,1.705 3.927,0.149 C3.938,0.042 4.022,0 4.07,0 L6.994,0
L6.994,5.084 L10.987,5.084 L10.987,8.105 L6.979,8.105 L6.979,14.318 C6.993,15.149
7.291,16.287 8.815,16.287 C8.843,16.287 8.872,16.287 8.9,16.286 C9.43,16.272
10.14,16.118 10.511,15.941 L11.471,18.788 C11.11,19.317 9.481,19.932 8.015,19.957
C7.964,19.958 7.915,19.958 7.865,19.958"/></svg>';return
t},t.templates.icon_twitter=function(e){var t='<svg class="twitter-icon" viewBox="0
0 274 223" preserveAspectRatio="xMidYMid" tabindex="-1"><path class="fill"
d="M85.98,222 C54.305,222 24.822,212.715 0,196.801 C4.388,197.319 8.853,197.584
13.38,197.584 C39.658,197.584 63.843,188.617 83.039,173.574 C58.495,173.121
37.781,156.905 30.644,134.621 C34.068,135.276 37.582,135.627 41.196,135.627
C46.312,135.627 51.267,134.942 55.974,133.66 C30.314,128.508 10.981,105.838
10.981,78.662 C10.981,78.426 10.981,78.191 10.985,77.957 C18.548,82.158
27.196,84.681 36.391,84.972 C21.341,74.914 11.438,57.746 11.438,38.287
C11.438,28.008 14.204,18.373 19.032,10.089 C46.696,44.023 88.025,66.353
134.641,68.692 C133.685,64.587 133.188,60.306 133.188,55.91 C133.188,24.935
158.302,-0.178 189.279,-0.178 C205.411,-0.178 219.988,6.634 230.22,17.535
C242.996,15.019 255,10.351 265.837,3.924 C261.649,17.021 252.756,28.013
241.175,34.955 C252.521,33.599 263.331,30.584 273.39,26.123 C265.87,37.371
256.36,47.25 245.402,55.158 C245.51,57.563 245.564,59.982 245.564,62.414
C245.564,136.533 189.148,222 85.98,222"/></svg>';return
t},t.templates.icon_unfullscreen=function(e){var t='<svg viewBox="0 0 12 12"
preserveAspectRatio="xMidYMid" tabindex="-1"><polyline class="fill" points="-1,-1
-1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6)
"/><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1
-5,-1.1" transform="translate(6,6) rotate(90)" /><polyline class="fill" points="-
1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6)
rotate(180)" /><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1
-4,-2.1 -5,-1.1" transform="translate(6,6) rotate(270)" /></svg>';return
t},t.templates.icon_vod_download=function(e){var t='<svg class="vod-download-icon"
viewBox="0 0 32 32" tabindex="-1"><path class="fill" d="M21.707 24.707l-5
5c-.39.39-1.024.39-1.414 0l-5-5c-.39-.39-.39-1.024 0-1.414l1.06-1.06c.392-.392
1.025-.392 1.415 0L14 23.462V15c0-.552.448-1 1-1h2c.552 0 1 .448 1 1v8.464l1.232-
1.232c.39-.39 1.024-.39 1.414 0l1.06 1.06c.392.39.392 1.025 0 1.415z"/><path
class="fill" d="M27.894 12.31c.063-.43.106-.864.106-1.31 0-4.97-4.03-9-9-9-3.6 0-
6.7 2.12-8.138 5.175C10.175 6.75 9.368 6.5 8.5 6.5 6.015 6.5 4 8.515 4 11c0 .
445.067.874.187 1.28C1.76 13.05 0 15.318 0 18c0 3.314 2.686 6 6 6h1c0-2.42 1.718-
4.436 4-4.9V15c0-2.21 1.79-4 4-4h2c2.21 0 4 1.79 4 4v4.1c2.282.464 4 2.48 4
4.9h1c3.314 0 6-2.686 6-6 0-2.65-1.72-4.896-4.106-5.69z"/></svg>';return
t},t.templates.icon_vod_rent=function(e){var t='<svg class="vod-rent-icon"
viewBox="0 0 32 32" tabindex="-1"><path class="fill" d="M23 11H9c-.552 0-1 .448-1
1v8c0 .552.448 1 1 1h14c.552 0 1-.448 1-1v-8c0-.552-.448-1-1-1z"/><path
class="fill" d="M32 22V10c-2.76 0-5-2.24-5-5H5c0 2.76-2.24 5-5 5v12c2.76 0 5 2.24 5
5h22c0-2.76 2.24-5 5-5zm-6-1c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V11c0-
1.105.895-2 2-2h16c1.105 0 2 .895 2 2v10z"/></svg>';return
t},t.templates.icon_vod_subscribe=function(e){var t='<svg class="vod-subscribe-
icon" viewBox="0 0 32 32" tabindex="-1"><path class="fill" d="M20 9v2c0 .552.448 1
1 1h10c.552 0 1-.448 1-1V1c0-.552-.448-1-1-1h-2c-.552 0-1 .448-1 1v4.445C24.98 2.01
20.523-.128 15.558.005
7.293.23.413 6.96.018 15.216-.42 24.41 6.905 32 16 32c8.47 0 15.404-6.583 15.964-
14.912.04-.585-.413-1.088-1-1.088H28.96c-.514 0-.956.388-.994.9C27.506 23.107
22.326 28 16 28 9.217 28 3.748 22.37 4.01 15.53 4.246 9.284 9.47 4.147 15.72 4.003
19.38 3.92 22.674 5.483 24.926 8H21c-.552 0-1 .448-1 1z"/><path class="fill" d="M13
20v-8l8 4"/></svg>';return t},t.templates.icon_vod=function(e){var t='<svg
class="vod-icon" viewBox="0 0 21 23" tabindex="-1"><path class="fill"
d="M19.602,4.716l-7.665-4.385C11.169-0.108,9.91-
0.111,9.139,0.327L1.4,4.721C0.63,5.158,0,6.234,0,7.112v8.776c0,0.878,0.63,1.955,1.3
98,2.393l0.526,0.3l7.176,4.09c0.77,0.438,2.028,0.438,2.798,0l7.702-4.39c0.77-
0.438,1.4-1.516,1.4-2.393V7.112C21,6.234,20.37,5.156,19.602,4.716z
M7.336,15.761L7.337,7.24l8.008,4.26L7.336,15.761z"/></svg>';return
t},t.templates.icon_warning=function(e){var t='<svg class="warning-icon"
tabindex="-1" width="36" height="32.326" viewBox="287.915 380.297 36 32.326"><path
d="M309.646 382.963c-2.052-3.555-5.41-3.555-7.462 0L288.79 406.16c-2.05 3.555-.372
6.463 3.732 6.463h26.786c4.104 0 5.783-2.908 3.73-6.463l-13.392-23.197zm-2 23.224c0
.983-.804 1.788-1.788 1.788-.983 0-1.788-.805-1.788-1.788 0-.984.805-1.79 1.788-
1.79s1.79.805 1.788 1.79zm-.317-7.76c-.254 2.604-.916 4.735-1.472 4.735-.557 0-
1.22-2.13-1.477-4.735-.255-2.604-.464-5.72-.464-6.925 0-1.204.87-2.19 1.935-2.19
1.066 0 1.936.986 1.936 2.19s-.205 4.32-.457 6.925z"/></svg>';return
t},t.templates.logo=function(e){var t='<svg viewBox="0 0 140 40"
preserveAspectRatio="xMidYMid" role="img" aria-label="Vimeo" tabindex="-
1"><title>Vimeo</title><g><path class="fill logo-v" d="M31.277 18.832c-.14 3.052-
2.27 7.229-6.39 12.531-4.259 5.536-7.863 8.306-10.811 8.306-1.825 0-3.371-1.687-
4.633-5.059l-2.529-9.275c-.938-3.372-1.943-5.06-3.019-5.06-.234 0-1.054.494-2.458
1.477l-1.474-1.901c1.546-1.358 3.071-2.717 4.572-4.078 2.062-1.783 3.609-2.72
4.642-2.814 2.438-.234 3.938 1.433 4.502 5.001.608 3.851 1.03 6.246 1.266 7.182.704
3.195 1.476 4.791 2.321 4.791.657 0 1.641-1.037 2.954-3.108 1.312-2.072 2.015-3.649
2.109-4.732.188-1.789-.516-2.686-2.109-2.686-.75 0-1.522.173-2.318.514 1.54-5.044
4.481-7.495 8.823-7.355 3.22.095 4.737 2.184 4.552 6.266z"/><path class="fill logo-
i" d="M50.613 28.713c-1.313 2.484-3.119 4.733-5.417 6.748-3.143 2.718-6.285 4.076-
9.425 4.076-1.456 0-2.57-.469-3.343-1.406-.773-.938-1.137-2.153-1.09-3.653.045-
1.548.526-3.938 1.441-7.173.914-3.232 1.373-4.967 1.373-5.201 0-1.218-.423-1.828-
1.266-1.828-.282 0-1.079.494-2.393 1.477l-1.618-1.901c1.501-1.358 3.001-2.717
4.502-4.078 2.017-1.783 3.518-2.72 4.504-2.814 1.546-.14 2.684.314 3.411 1.367.726
1.052.996 2.417.81 4.098-.61 2.852-1.268 6.472-1.972 10.864-.046 2.01.681 3.014
2.182 3.014.656 0 1.827-.693 3.518-2.083 1.406-1.156 2.555-2.243 3.447-3.262l1.336
1.755zm-6.12-25.016c-.047 1.168-.633 2.288-1.76 3.361-1.266 1.212-2.767 1.82-4.501
1.82-2.672 0-3.963-1.166-3.869-3.499.045-1.213.76-2.381 2.144-3.501 1.384-1.119
2.919-1.68 4.609-1.68.984 0 1.805.387 2.462 1.155.656.772.961 1.553.915
2.344z"/><path class="fill logo-m" d="M94.543 28.713c-1.314 2.484-3.117 4.733-5.416
6.748-3.145 2.718-6.285 4.076-9.426 4.076-3.051 0-4.527-1.687-4.432-5.06.045-
1.501.338-3.306.877-5.415.539-2.108.832-3.748.879-4.921.049-1.779-.492-2.673-1.623-
2.673-1.223 0-2.682 1.456-4.375 4.362-1.788 3.05-2.754 6.003-2.894 8.861-.095
2.02.103 3.568.592 4.645-3.272.096-5.565-.444-6.873-1.617-1.171-1.032-1.708-2.742-
1.614-5.135.045-1.501.276-3.001.69-4.502.414-1.5.644-2.837.69-4.011.095-1.734-.54-
2.604-1.9-2.604-1.177 0-2.444 1.339-3.806 4.011-1.361 2.673-2.113 5.465-2.253
8.371-.094 2.627.074 4.456.503 5.486-3.219.096-5.505-.582-6.857-2.035-1.122-1.214-
1.634-3.06-1.539-5.54.044-1.214.258-2.911.645-5.084.386-2.175.603-3.87.647-
5.087.093-.841-.119-1.263-.633-1.263-.281 0-1.079.475-2.393 1.424l-1.687-
1.901c.234-.184 1.71-1.545 4.432-4.078 1.969-1.828 3.306-2.766 4.009-2.812
1.219-.095 2.204.409 2.954 1.511s1.126 2.38 1.126 3.834c0 .469-.047.915-.14
1.336.703-1.077 1.523-2.017 2.463-2.814 2.156-1.874 4.572-2.931 7.245-3.166
2.298-.187 3.938.352 4.925 1.617.795 1.033 1.17 2.511 1.125 4.433.329-.28.681-.586
1.056-.915 1.078-1.267 2.133-2.273 3.164-3.023 1.736-1.267 3.541-1.97 5.418-2.112
2.25-.187 3.867.35 4.852 1.611.844 1.028 1.219 2.5 1.127 4.415-.047 1.309-.363
3.213-.949 5.712-.588 2.501-.879 3.936-.879 4.31-.049.982.047 1.659.279
2.034.236.373.797.559 1.689.559.656 0 1.826-.693 3.518-2.083 1.406-1.156 2.555-
2.243 3.447-3.262l1.337 1.757z"/><path class="fill logo-e" d="M120.922 28.642c-
1.361 2.249-4.033 4.495-8.02 6.743-4.971 2.856-10.012 4.284-15.125 4.284-3.797 0-
6.52-1.267-8.16-3.797-1.172-1.735-1.734-3.797-1.688-6.189.045-3.797 1.736-7.407
5.064-10.832 3.658-3.75 7.973-5.627 12.945-5.627 4.596 0 7.033 1.873 7.314
5.615.188 2.384-1.125 4.842-3.938 7.368-3.004 2.76-6.781 4.515-11.328 5.263.842
1.169 2.109 1.752 3.799 1.752 3.375 0 7.059-.855 11.045-2.574 2.859-1.207 5.111-
2.461 6.754-3.76l1.338 1.754zm-15.969-7.345c.045-1.259-.469-1.89-1.547-1.89-1.406
0-2.83.969-4.283 2.906-1.451 1.936-2.201 3.789-2.248 5.562-.025 0-.025.305 0 .911
2.295-.839 4.287-2.122 5.971-3.849 1.357-1.491 2.06-2.707 2.107-3.64z"/><path
class="fill logo-o" d="M140.018 23.926c-.189 4.31-1.781 8.031-4.783 11.169-3.002
3.137-6.73 4.706-11.186 4.706-3.705 0-6.52-1.195-8.441-3.585-1.404-1.777-2.182-
4.001-2.32-6.668-.236-4.029 1.217-7.729 4.361-11.101 3.377-3.746 7.619-5.618
12.732-5.618 3.281 0 5.766 1.102 7.457 3.301 1.594 2.015 2.32 4.614 2.18 7.796zm-
7.95-.264c.047-1.269-.129-2.434-.527-3.49-.4-1.057-.975-1.587-1.725-1.587-2.391 0-
4.361 1.293-5.906 3.877-1.316 2.115-2.02 4.371-2.111 6.766-.049 1.176.164 2.21.633
3.104.514 1.032 1.242 1.549 2.182 1.549 2.109 0 3.914-1.244 5.416-3.735 1.267-2.068
1.945-4.23 2.038-6.484z"/></g></svg>';return t},t.templates.outer=function(e){var
t='<div class="video-wrapper"><div class="video"><div
class="telecine"></div></div></div><div class="target"></div><div class="captions
hidden with-controls" hidden aria-live="assertive"><span></span></div><div
class="cards-wrapper js-cards-wrapper"><div class="cards js-cards"></div></div><div
class="outro2-wrapper js-outro-wrapper hidden" hidden><div class="outro2 js-outro"
role="dialog" aria-live="assertive"></div></div><div class="controls-wrapper"><div
class="title" role="contentinfo"></div><div class="controls"></div><div
class="sidedock hidden" role="toolbar" hidden></div></div><div class="overlay-
wrapper hidden" hidden><div class="overlay-bg"></div><div class="overlay-cell"><div
class="overlay" role="dialog" aria-live="assertive"></div><div class="overlay-icon-
wrapper hidden"><div class="overlay-icon"></div></div><div class="overlay-logo
logo"></div></div><nav><button class="nav-prevButton js-back cloaked" aria-
label="'+e.strings.back+'">';return
t+=this.render("icon_prev")||"",t+='</button><button class="nav-closeButton js-
close" aria-
label="'+e.strings.close+'">',t+=this.render("icon_close_new")||"",t+='</button></n
av></div><div class="notification-wrapper hidden" hidden><div class="notification-
cell"><div class="notification" role="dialog" aria-
live="assertive"></div></div></div><div class="stats-debug rounded-box hidden"
aria-hidden="true" hidden></div>'},t.templates.outro_email2=function(e){var t='<div
class="outro2-bg"';return e.bgimage&&(t+=' style="background-image:
url('+e.bgimage+');"'),t+='></div><div class="outro2-content outro2-content--email
outro2-shade js-outro-content"></div>'},t.templates.outro_image2=function(e){var
t='<div class="outro2-content outro2-content--image js-outro-content"> ';return
e.url&&(t+='<a class="outro2-imageLink js-imageLink" href="'+e.url+'"
target="_blank">'),e.bgimage&&(t+='<div class="outro2-image" style="background-
image: url('+e.bgimage+');"',e.alt_text&&(t+=' aria-label="'+e.alt_text+'"
role="img"'),t+="></div>"),e.url&&(t+="</a>"),t+="</div>"},t.templates.outro_link=f
unction(e){var t='<div class="outro2-content outro2-content--link outro2-shade js-
outro-content"> ';return e.text&&(t+=' <h1 class="outro1-linkTitle">
',e.url&&(t+='<a class="outro1-link js-link" href="'+e.url+'"
target="_blank">'),t+=" "+(e.text?e.text:e.url)+" ",e.url&&(t+="</a>"),t+=" </h1>
"),t+="</div>"},t.templates.outro_link2=function(e){var t='<div class="outro2-
bg"';return e.bgimage&&(t+=' style="background-image:
url('+e.bgimage+');"'),t+='></div><div class="outro2-content outro2-content--link
outro2-shade js-outro-content"><div class="outro2-linkWrapper js-outro-
linkWrapper"> ',e.title&&(t+='<h1 class="outro2-textTitle js-outro-
title">'+e.title+"</h1>"),e.description&&(t+='<p class="outro2-text js-outro-
text">'+e.description+"</p>"),e.text&&e.url&&(t+=' <div class="outro2-
buttonWrap"><a class="outro2-button js-cta" href="'+e.url+'" target="_blank"
title="'+e.text+'"><span>'+e.text+"</span></a></div> "),e.text2&&e.url2&&(t+=' <div
class="outro2-linkWrap js-outro-linkWrap"><a class="outro2-link js-link"
href="'+e.url2+'" target="_blank" title="'+e.text2+'">'+e.text2+"</a></div> "),t+="
</div></div>"},t.templates.outro_share2=function(e){var t='<div class="outro2-
bg"';return e.bgimage&&(t+=' style="background-image:
url('+e.bgimage+');"'),t+='></div><div class="outro2-content outro2-content--share
outro2-shade js-outro-content"></div><nav class="panel-nav"><button class="nav-
prevButton js-back cloaked" aria-
label="'+e.strings.back+'">',t+=this.render("icon_prev")||"",t+="</button></nav>"},
t.templates.outro_staticimage=function(e){var t='<div class="outro2-content outro2-
content--staticImage js-outro-content"><div class="outro1-staticImageWrapper">
';return e.url&&(t+='<a class="outro1-staticImageLink" href="'+e.url+'"
target="_blank">'),t+=' <img class="outro1-staticImage" src="'+e.svg_url+'">
',e.url&&(t+="</a>"),t+=" </div></div>"},t.templates.outro_text=function(e){var
t='<div class="outro2-content outro2-content--text outro2-shade js-outro-
content"><div class="outro1-textWrapper"><div
class="outro1-text">'+e.text+"</div></div></div>";return
t},t.templates.outro_videos2=function(e){var t='<div class="outro2-
bg"';e.bgimage&&(t+=' style="background-image:
url('+e.bgimage+');"'),t+='></div><div class="outro2-content outro2-content--videos
outro2-shade js-outro-content"> ';for(var n=0,i=e.contexts.length;n<i;n++){var
r=e.contexts[n];t+=' <div class="outro2-videosSection outro2-
videosSection--'+r.videos.length,r.promoted&&(t+=" outro2-videosSection--
promoted"),t+='"><div class="outro2-videosHeaderWrapper"><header class="outro2-
videosHeader"><h1 class="outro2-videosTitle">'+r.context+"</h1>
",e.showFollowButton&&!r.promoted&&(t+=' <div class="outro2-followWrap js-outro-
followWrap"><button class="outro2-follow js-outro-follow" aria-
label="'+e.strings.follow+'" aria-pressed="',t+=e.following?"true":"false",t+='">
',t+=this.render("icon_follow")||"",t+=' <span class="outro2-follow-text" data-
label-follow="'+e.strings.follow+'" data-label-following="'+e.strings.following+'"
data-label-unfollow="'+e.strings.unfollow+'"></span></button></div> '),t+='
</header></div><ul class="outro2-videos outro2-videos--'+r.videos.length+'">
';for(var o=0,a=r.videos.length;o<a;o++)t+=' <li><a class="outro2-videoLink js-
videoLink',1==n&&(t+=" hovered"),t+='" href="'+r.videos[o].url+'"',e.target&&(t+='
target="_blank"'),t+=' data-video-id="'+r.videos[o].id+'" aria-
label="'+r.videos[o].fullTitle+'"
title="',t+=this.escape(r.videos[o].fullTitle)||"",t+='"><div class="outro2-
imgWrapper"><img src="'+r.videos[o].thumbnail+'" alt="" width="295"
height="166"></div><header class="outro2-videoHeader"><h1 class="outro2-
videoTitle">',t+=this.escape(r.videos[o].title)||"",t+="</h1>
",r.videos[o].byline&&(t+=' <h2 class="outro2-
videoByline">',t+=this.escape(r.videos[o].byline)||"",t+="</h2> "),t+="
</header></a> ";t+=" </ul></div> "}return
t+="</div>"},t.templates.outro_vod=function(e){var t='<div class="outro2-content
outro2-content--vod outro2-shade js-outro-content"><div class="outro1-
vodWrapper"><h1 class="outro1-vodHeader"><a href="'+e.url+'"
target="_blank">';t+=this.escape(e.title)||"",t+="</a></h1> ";var
n=e.countries,i=e.country;if(this.helpers.isAvailableInCountry(n,i))if(e.purchased)
t+=' <a class="outro1-vodButton outro1-vodButton--watch js-vod-watch" role="button"
href="'+e.url+'" target="_blank">'+e.strings.watch+"</a> ";else{
if(!e.isComingSoon){t+=' <ul class="outro1-vod"> ';for(var
r=0,o=e.buttons.length;r<o;r++){t+=' <li class="outro1-vod-item"><a class="outro1-
vodButton outro1-vodButton--'+e.buttons[r].type+' js-vod-button" role="button"
href="'+e.url+"#buy="+e.buttons[r].product_id+'" target="_blank" data-product-
id="'+e.buttons[r].product_id+'" role="button"><div class="outro1-vodIcon">
',t+="buy"===e.buttons[r].type?
this.render("icon_vod_download")||"":"rent"===e.buttons[r].type?
this.render("icon_vod_rent")||"":"subscribe"===e.buttons[r].type?
this.render("icon_vod_subscribe")||"":this.render("icon_vod")||"",t+=" </div> ";var
a=e.currency,s=e.buttons[r];t+="
<p>"+this.helpers.formatVodLabel(e.translationMap,"outro_string",a,s)
+"</p></a></li> "}t+=" </ul> "}(e.isPreorder||e.isComingSoon)&&(t+="
<p>"+e.strings.preRelease+"</p> ")}return t+="
</div></div>"},t.templates.overlay_app_redirect=function(e){var t='<div
class="window-wrapper"> ';return e.strings.title&&(t+=' <div class="app-redirect-
title">'+e.strings.title+"</div> "),t+=' <div class="'+(e.strings.title?"":"app-
redirect--topspace")+'"><a class="app-redirect-button" href="'+e.redirectUrl+'"
role="button"',e.newWindow&&(t+=' data-new-window="1"
target="_blank"'),t+=">"+e.strings.buttonText+"</a></div>
",e.strings.ignoreText&&(t+=' <div class="app-redirect-
ignore">'+e.strings.ignoreText+"</div> "),e.strings.bottomText&&(t+=' <div
class="app-redirect-bottom-text">'+e.strings.bottomText+"</div>
"),t+="</div>"},t.templates.overlay_email_capture=function(e){var t='<div
class="window-wrapper email-capture form"><div class="email-capture-
form"><h1>'+e.text+'</h1><p class="subtitle">'+e.subtitle+'</p><form
action="'+e.action+'" method="post" novalidate><div class="validation-bubble
hidden"><div class="validation-bubble-arrow-clipper"><div class="validation-bubble-
arrow"></div></div><div class="validation-bubble-message"></div></div><input
type="email" name="email" placeholder="'+e.strings.email+'" aria-
label="'+e.strings.email+'" required aria-required="true"><input type="text"
name="name" placeholder="'+e.strings.fullName+'" aria-
label="'+e.strings.fullName+'" maxlength="180"><input type="hidden" name="referrer"
value="'+e.referrer+'"><input type="hidden" name="signature" value=""><input
type="hidden" name="time" value=""><input type="hidden" name="expires"
value=""><input type="submit" value="'+e.strings.submit+'"></form></div><div
class="email-capture-confirm hidden"><div class="check-icon-wrapper">';return
t+=this.render("icon_check")||"",t+="</div><h1>"+e.confirmation+"</h1></div></div>"
},t.templates.password=function(e){var t='<div class="window-wrapper password
form"><h1>'+e.strings.title+'</h1><p
class="subtitle">'+e.strings.subtitle+'</p><form action="'+e.action+'"
method="post" novalidate><div class="validation-bubble hidden"><div
class="validation-bubble-arrow-clipper"><div class="validation-bubble-
arrow"></div></div><div class="validation-bubble-message"></div></div><input
type="password" name="password" placeholder="'+e.strings.password+'" required aria-
required="true" aria-label="'+e.strings.password+'"><input type="submit"
value="'+e.strings.watch+'"></form></div>';return
t},t.templates.private_locked=function(e){var t='<div class="window-wrapper
login"><h1>'+e.strings.title+'</h1><p class="subtitle">'+e.strings.subtitle+'</p><a
href="'+e.action+'" class="popup" target="_blank" role="button" aria-
label="'+e.strings.logInLabel+'">'+e.strings.logIn+"</a></div>";return
t},t.templates.private_unlocked=function(e){var t='<div class="window-wrapper form
unlocked"><h1>'+e.strings.title+'</h1><p
class="subtitle">'+e.strings.subtitle+"</p><button>"+e.strings.watch+"</button></di
v>";return t},t.templates.sidedock=function(e){var t="";return e.vodButton&&(t+='
<div class="box" data-vod-expiring="'+e.vodPurchaseInfo.expiring+'" data-vod-
purchased="'+e.purchased+'"><button class="vod-button rounded-
box',e.purchased&&(t+=" on"),e.vodPurchaseInfo.expiring&&(t+=" expiring"),t+='"
data-product-id="'+e.vodPurchaseInfo.product_id+'"><div class="vod-button-
inner"><span class="vod-label">'+e.vodDisplayLabel+"</span>
",t+=this.render("icon_vod")||"",t+=' </div></button></div><div class="sidedock-
inner">'),e.likeButton&&(t+=' <div class="box"><label class="rounded-box hidden
like-label" role="presentation"><span>'+(e.liked?e.strings.unlike:e.strings.like)
+'</span></label><button class="like-button rounded-box',e.liked&&(t+=" on"),t+='"
aria-label="',t+=e.loggedOut?""+e.strings.likeLoggedOut:""+(e.liked?
e.strings.unlike:e.strings.like),t+='" data-label-add="'+e.strings.like+'" data-
label-add-logged-out="'+e.strings.likeLoggedOut+'" data-label-
remove="'+e.strings.unlike+'"> ',t+=this.render("icon_heart")||"",t+="
</button></div>"),e.watchLaterButton&&(t+=' <div class="box"><label class="rounded-
box hidden watch-later-label" role="presentation"><span>'+(e.addedToWatchLater?
e.strings.watchLaterRemove:e.strings.watchLaterAdd)+'</span></label><button
class="watch-later-button rounded-box',e.addedToWatchLater&&(t+=" on"),t+='" aria-
label="',t+=e.loggedOut?""+e.strings.watchLaterLoggedOut:""+(e.addedToWatchLater?
e.strings.watchLaterRemove:e.strings.watchLaterAdd),t+='" data-label-
add="'+e.strings.watchLaterAdd+'" data-label-add-logged-
out="'+e.strings.watchLaterAddLoggedOut+'" data-label-
remove="'+e.strings.watchLaterRemove+'"> ',t+=this.render("icon_clock")||"",t+="
</button></div>"),e.collectionsButton&&(t+=' <div class="box"><label
class="rounded-box hidden collections-label"
role="presentation"><span>'+e.strings.collections+'</span></label><button
class="collections-button rounded-box" aria-label="'+e.strings.collections+'">
',t+=this.render("icon_collections")||"",t+="
</button></div>"),e.shareButton&&(t+=' <div class="box"><label class="rounded-box
hidden share-label"
role="presentation"><span>'+e.strings.share+'</span></label><button class="share-
button rounded-box" aria-label="'+e.strings.share+'">
',t+=this.render("icon_share")||"",t+=" </button></div>"),e.vodButton&&(t+="
</div>"),t+=""},t.templates.stats_debug2=function(e){var t='<p><span class="stats-
debug-label">Clip ID:</span><span class="stats-debug-value stats-debug-clip-
id">'+e.clipId+"</span></p>";return e.isDash&&e.profileId&&(t+='<p><span
class="stats-debug-label">Profile ID:</span><span class="stats-debug-value stats-
debug-profile-id">'+e.profileId+"</span></p>"),t+='<p><span class="stats-debug-
label">Delivery:</span><span class="stats-debug-value stats-debug-
delivery">'+e.delivery+'</span></p><p><span class="stats-debug-
label">Playing:</span><span class="stats-debug-value stats-debug-
resolution">'+e.resolution+'</span></p><p><span class="stats-debug-label">Embed
size:</span><span class="stats-debug-value stats-debug-
dimensions">'+e.embedSize+"</span></p>",e.isDash&&(t+='<p><span class="stats-debug-
label">Separate AV:</span><span class="stats-debug-value stats-debug-test-
group">'+e.separateAudioVideo+"</span></p>"),t+="",e.testGroup&&(t+='<p><span
class="stats-debug-label">Tests:</span><span class="stats-debug-value stats-debug-
test-group">'+e.testGroup+"</span></p>"),t+="",e.isDash&&(t+='<p><span
class="stats-debug-label">Dropped frames:</span><span class="stats-debug-value
stats-debug-dropped-frames">'+e.droppedFrames+" /
"+e.totalFrames+"</span></p>"),t+="",e.isDash&&(t+='<p><span class="stats-debug-
label">Bandwidth:</span><span class="stats-debug-value stats-debug-
bandwidth">'+e.bandwidthKbps+'</span><span class="stats-debug-bandwidth-minmax">
(<span class="stats-debug-value stats-debug-bandwidth-
min">'+e.bandwidthMinKbps+'</span><span class="stats-debug-value stats-debug-
bandwidth-max">'+e.bandwidthMaxKbps+'</span>) </span></p><div class="stats-debug-
time-series">
'+e.bandwidthSeriesSvg+"</div>"),t+="",e.displayBufferOccupancy&&(t+='<p><span
class="stats-debug-label">Buffer Occupancy:</span><span class="stats-debug-value
stats-debug-buffer-percent">'+e.bufferOccupancyPercent+'</span></p><div
class="stats-debug-buffer-occupancy"> '+e.bufferOccupancySvg+"</div>"),t+='<button
class="stats-debug-close" aria-label="Close stats debug
panel">',t+=this.render("icon_close")||"",t+='</button><input type="text"
class="stats-debug-code"><a href="'+(e.openLinkHref?
e.openLinkHref:"javascript:void(0)")+'" class="stats-debug-copy" target="_blank"'+
(e.openLinkDisabled?' disabled="disabled"':"")
+">"+e.openLinkText+"</a>"},t.templates.threesixty_reminder=function(e){var t='<div
class="intro-wrap text-only"><div> ';return e.showArrows&&(t+=' <div class="key-
wrapper"><div class="key-row"><div class="key"><div class="arrow arrow-
top"></div></div></div><div class="key-row"><div class="key"><div class="arrow
arrow-left"></div></div><div class="key"><div class="arrow arrow-
down"></div></div><div class="key"><div class="arrow arrow-
right"></div></div></div></div> '),t+="
<div>"+e.text+"</div></div></div>"},t.templates.title_byline_badge=function(e){var
t="&nbsp;";return e.link&&(t+='<a tabindex="-1"
href="'+e.link+'"',e.targetBlank&&(t+=' target="_blank"'),t+=">"),t+=' <span
class="byline-badge
'+e.cssClass+'">'+e.cssClass+"</span>",e.link&&(t+="</a>"),t+=""},t.templates.title
_owner_byline=function(e){var t="";return e.linkToOwner?(t+='<a
href="'+e.ownerLink+'"',e.targetBlank&&(t+='
target="_blank"'),t+=">",t+=this.escape(e.owner)||"",t+="</a>"):(t+='<span
class="user">',t+=this.escape(e.owner)||"",t+="</span>"),t+=""},t.templates.title=f
unction(e){var t="<header> ";return e.badge&&(t+=' <div
class="badge',e.badge.shadow&&(t+=" shadow"),t+='"> ',e.badge.link&&(t+='<a
href="'+e.badge.link+'"',e.targetBlank&&(t+=' target="_blank"'),t+=">"),t+=' <img
src="'+e.badge.img+'"',e.badge.offset&&(t+=' style="margin-
top:'+e.badge.offset.y+"px;margin-left:"+e.badge.offset.x+'px"'),t+='
width="'+e.badge.width+'" height="'+e.badge.height+'" alt="'+e.badge.name+' Badge">
',e.badge.link&&(t+="</a>"),t+=" </div> "),e.showPortrait&&(t+=' <div
class="portrait" aria-hidden="true">
',e.linkToOwner&&(t+='<a tabindex="-1"
href="'+e.ownerLink+'"',e.targetBlank&&(t+=' target="_blank"'),t+=">"),t+=' <img
src="'+e.portraitImg+'" alt="" width="60" height="60">
',e.linkToOwner&&(t+="</a>"),t+=" </div> "),t+=' <div class="headers">
',e.showTitle&&(t+=" <h1> ",e.showTitleLink&&(t+='<a
href="'+e.titleLink+'"',e.targetBlank&&(t+=' target="_blank"'),t+=" data-clip-
link>"),t+=this.escape(e.title)||"",e.showTitleLink&&(t+="</a>"),e.is360&&(t+='<div
class="threesix-badge-title">360</div>'),t+=" </h1> "),e.showByline&&(t+=' <div
class="sub-title"><h2 class="byline-from">'+e.strings.byline+"</h2> ",e.is360&&!
e.showTitle&&(t+=' <div class="threesix-badge-byline">360</div> '),t+=" </div> "),!
e.is360||e.showByline||e.showTitle||(t+=' <div class="threesix-badge-
loner">360</div> '),t+=" </div></header>"},e.exports?
e.exports=t:window.Aftershave=t}()}),Xt=e(function(e){!function(t,n,i){function r()
{var e=Array.prototype.slice.apply(arguments),t=e.shift();p[t].forEach(function(t)
{"function"==typeof t&&t.apply(t,e)})}function o(e){return function(t,n)
{v.indexOf(t)!==-1&&e.call(this,t,n)}}function a(e){var
t=null;if("VIDEO"===e.tagName)t=e;else{var
n=e.getElementsByTagName("video");n[0]&&(t=n[0])}return t}function s(e){var
t=a(e);if(t&&t.webkitEnterFullscreen){try{t.readyState<t.HAVE_METADATA?
(t.addEventListener("loadedmetadata",function e()
{t.removeEventListener("loadedmetadata",e,!1),t.webkitEnterFullscreen(),y=!!
t.getAttribute("controls")},!1),t.load()):(t.webkitEnterFullscreen(),y=!!
t.getAttribute("controls")),g=t}catch(t){return E("not_supported",e)}return!
0}return E(void 0===f.request?"not_supported":"not_enabled",e)}function u()
{L.element||(T(),l())}function c()
{i&&"webkitfullscreenchange"===f.change&&t.addEventListener("resize",u,!1)}function
l(){i&&"webkitfullscreenchange"===f.change&&t.removeEventListener("resize",u,!
1)}var d=/i(Pad|Phone|
Pod)/.test(navigator.userAgent)&&parseInt(navigator.userAgent.replace(/^.*OS
(\d+)_(\d+).*$/,"$1.$2"),10)>=7,f=function(){var
e=n.createElement("video"),t={request:
["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","mozReques
tFullScreen","msRequestFullscreen"],exit:
["exitFullscreen","webkitCancelFullScreen","webkitExitFullscreen","mozCancelFullScr
een","msExitFullscreen"],enabled:
["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreen
Enabled"],element:
["fullscreenElement","webkitFullscreenElement","webkitCurrentFullScreenElement","mo
zFullScreenElement","msFullscreenElement"],change:
["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenCha
nge"],error:
["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"
]},i={};for(var r in t)for(var o=0,a=t[r].length;o<a;o++)if(t[r][o]in e||t[r][o]in
n||"on"+t[r][o].toLowerCase()in n){i[r]=t[r][o];break}return i}
(),h={ENTER:"enter",EXIT:"exit",CHANGE:"change",ERROR:"error"},v=[],p={},m=null;Obj
ect.keys(h).forEach(function(e){v.push(h[e]),p[h[e]]=[]});var
g=null,y=null,_=function(){},b=[],w=!1,k=!
1,S={chrome:navigator.userAgent.indexOf("Chrome")!==-
1,android:navigator.userAgent.indexOf("Android")!==-
1,safari:navigator.userAgent.indexOf("Safari")!==-
1,apple:navigator.userAgent.indexOf("Apple")!==-
1};S.chrome&&S.android&&(w=parseInt(navigator.userAgent.replace(/^.*Chrome\/
(\d+).*$/,"$1"),10)||!0),S.safari&&S.apple&&!S.chrome&&!
S.android&&(k=parseFloat(navigator.userAgent.replace(/^.*Version\/(\d+)\.
(\d+).*$/,"$1.$2"))||!0);var x=function(e){var t=b[b.length-1];t&&(e!
==t.element&&e!==g||!
t.hasEntered)&&("VIDEO"===e.tagName&&(g=e),1===b.length&&L.onenter(L.element),t.ent
er.call(t.element,e||t.element),t.hasEntered=!0,r(h.ENTER,L.element))},T=function()
{!g||y||d||
(g.setAttribute("controls","controls"),g.removeAttribute("controls")),g=null,y=null
;var e=b.pop();e&&(e.exit.call(e.element),r(h.EXIT,e.element),!
i&&m&&0===t.scrollY&&t.scrollTo(0,m),L.element||(b.forEach(function(e)
{e.exit.call(e.element),r(h.EXIT,e.element)}),b=[],L.onexit()))},E=function(e,t)
{if(b.length>0){var n=b.pop();t=t||
n.element,n.error.call(t,e),L.onerror(t,e),r(h.ERROR,t,e)}},L={request:function(e,r
,o,a){if(e=e||n.body,b.push({element:e,enter:r||_,exit:o||_,error:a||_}),void
0===f.request)return s(e);if(i&&n[f.enabled]===!1)return s(e);if(w!==!
1&&w<32)return s(e);if(i&&void 0===f.enabled)return
f.enabled="webkitFullscreenEnabled",e[f.request](),void setTimeout(function()
{n[f.element]?n[f.enabled]=!0:(n[f.enabled]=!1,s(e))},250);try{!
i&&t&&(m=t.scrollY),e[f.request](),k>=5.1&&setTimeout(function(){n[f.element]||
E(i?"not_enabled":"not_allowed",e)},100)}catch(t)
{E("not_enabled",e)}},exit:function(){l(),!n[f.exit]&&L.element?L.element[f.exit]
():n[f.exit]()},toggle:function(e,t,n,i){L.element?
L.exit():L.request(e,t,n,i)},videoEnabled:function(e){if(L.enabled)return!0;e=e||
n.body;var t=a(e);return!(!t||void
0===t.webkitSupportsFullscreen)&&(t.readyState<t.HAVE_METADATA?"maybe":t.webkitSupp
ortsFullscreen)},on:o(function(e,t){p[e].push(t)}),off:o(function(e,t){var
n=p[e].indexOf(t);n>-
1&&p[e].splice(n,1)}),onenter:_,onexit:_,onchange:_,onerror:_};try{Object.definePro
perties(L,{element:{enumerable:!0,get:function(){return
g&&g.webkitDisplayingFullscreen?g:n[f.element]||null}},enabled:{enumerable:!
0,get:function(){return"webkitCancelFullScreen"===f.exit&&!i||!(w!==!
1&&w<32)&&(n[f.enabled]||!1)}}})}catch(e){L.element=null,L.enabled=!
1}f.change&&n.addEventListener(f.change,function(e)
{if(L.onchange(L.element),r(h.CHANGE,L.element),L.element){var t=b[b.length-
2];t&&t.element===L.element?T():(x(L.element),c())}else T()},!
1),n.addEventListener("webkitbeginfullscreen",function(e){var t=!
0;if(b.length>0)for(var n=0,i=b.length;n<i;n++){var
o=a(b[n].element);if(o===e.srcElement){t=!
1;break}}t&&b.push({element:e.srcElement,enter:_,exit:_,error:_}),L.onchange(e.srcE
lement),r(h.CHANGE,L.srcElement),x(e.srcElement)},!
0),n.addEventListener("webkitendfullscreen",function(e)
{L.onchange(e.srcElement),r(h.CHANGE,e.srcElement),T(e.srcElement)},!
0),f.error&&n.addEventListener(f.error,function(e){E("not_allowed")},!1),e.exports?
e.exports=L:t.BigScreen=L}(window,document,self!==top)}),
$t=navigator.userAgent.toLowerCase(),Yt=!!L("android")&&(parseFloat($t.replace(/^.*
android (\d+)\.(\d+).*$/,"$1.$2"))||!0),Gt=window.devicePixelRatio||1,Qt=!(!
L("windows phone")&&!L("iemobile"))&&(parseFloat($t.replace(/^.* windows phone
(os )?(\d+)\.(\d+).*$/,"$2.$3"))||!0),Jt=!!
L("msie")&&parseFloat($t.replace(/^.*msie (\d+).*$/,"$1")),Zt=!!
L("trident")&&parseFloat($t.replace(/^.*trident\/(\d+)\.(\d+).*$/,"$1.$2"))+4,en=!!
(L("ipad;")||L("iphone;")||L("ipod touch;"))&&parseFloat($t.replace(/^.* os
(\d+)_(\d+).*$/,"$1.$2")),tn={airPlay:"WebKitPlaybackTargetAvailabilityEvent"in
window,android:Yt,iOS:en,mobileAndroid:Yt&&L("mobile"),browser:
{bb10:L("bb10"),chrome:L("chrome"),firefox:L("firefox"),ie:Jt||
Zt,edge:L("edge"),opera:L("opera"),safari:L("safari")&&L("apple")&&!L("chrome")&&!
L("android")},devicePixelRatio:Gt,flash:C(),iPhone:L("iphone;")||L("ipod touch;")||
L("ipod;"),iPad:L("ipad;"),iPadNonRetina:L("ipad;")&&Gt<2,mac:L("mac
os"),pointerEvents:window.navigator.pointerEnabled||
window.navigator.msPointerEnabled||!1,svg:!!document.createElementNS&&!!
document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:"o
ntouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||
L("windows phone")||window.navigator.maxTouchPoints>1||
window.navigator.msMaxTouchPoints||!
1,transformProperty:P("transform"),transitionProperty:P("transition"),windowsPhone:
Qt};if(tn.spatialPlayback=!(tn.browser.safari||tn.iOS||tn.iPad||
tn.browser.ie),tn.stereoscopic=tn.spatialPlayback&&tn.mobileAndroid,function()
{for(var e=["webkit","moz"],t=0;t<e.length&&!window.requestAnimationFrame;++t){var
n=e[t];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancel
AnimationFrame=window[n+"CancelAnimationFrame"]||
window[n+"CancelRequestAnimationFrame"]}!/iP(ad|hone|od).*OS
6/.test(window.navigator.userAgent)&&window.requestAnimationFrame&&window.cancelAni
mationFrame||(window.requestAnimationFrame=function(e){return
setTimeout(e,0)},window.cancelAnimationFrame=clearTimeout)}(),Number.isInteger||
(Number.isInteger=function(e){return"number"==typeof
e&&isFinite(e)&&Math.floor(e)===e}),!Object.setPrototypeOf&&!{}.__proto__){var
nn=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?
e.__proto__:nn.call(Object,e)}}if("undefined"!=typeof DOMTokenList){var
rn=function(){var e=document.createElement("div");return e.classList.toggle("test-
class",!1),!e.classList.contains("test-class")}();rn||!function(){var
e=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,n){return
n===!0?void this.add(t):n===!1?void this.remove(t):void e.call(this,t)}}()}var
on={isObject:I,isError:q},an=on,sn={collectWindowErrors:!0,debug:!
1},un="undefined"!=typeof window?window:"undefined"!=typeof yt?yt:"undefined"!
=typeof self?self:{},cn=[].slice,ln="?",dn=/^(?:[Uu]ncaught (?:exception: )?)?(?:
((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)
$/;sn.report=function(){function e(e){o(),d.push(e)}function t(e){for(var
t=d.length-1;t>=0;--t)d[t]===e&&d.splice(t,1)}function n(){a(),d=[]}function i(e,t)
{var n=null;if(!t||sn.collectWindowErrors){for(var i in
d)if(d.hasOwnProperty(i))try{d[i].apply(null,
[e].concat(cn.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function r(e,t,n,r,o)
{var
a=null;if(v)sn.computeStackTrace.augmentStackTraceWithInitialElement(v,t,n,e),s();e
lse if(o&&an.isError(o))a=sn.computeStackTrace(o),i(a,!0);else{var
u,l={url:t,line:n,column:r},d=void 0,f=e;if("[object
String]"==={}.toString.call(e)){var
u=e.match(dn);u&&(d=u[1],f=u[2])}l.func=ln,a={name:d,message:f,url:R(),stack:
[l]},i(a,!0)}return!!c&&c.apply(this,arguments)}function o(){l||
(c=un.onerror,un.onerror=r,l=!0)}function a(){l&&(un.onerror=c,l=!1,c=void
0)}function s(){var e=v,t=f;f=null,v=null,h=null,i.apply(null,[e,!
1].concat(t))}function
u(e,t){var n=cn.call(arguments,1);if(v){if(h===e)return;s()}var
i=sn.computeStackTrace(e);if(v=i,h=e,f=n,setTimeout(function()
{h===e&&s()},i.incomplete?2e3:0),t!==!1)throw e}var
c,l,d=[],f=null,h=null,v=null;return u.subscribe=e,u.unsubscribe=t,u.uninstall=n,u}
(),sn.computeStackTrace=function(){function e(e){if("undefined"!=typeof
e.stack&&e.stack){for(var t,n,i,r=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-
extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::
(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|
webpack|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\
[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::
(\d+))?\)?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::
(\d+))(?::(\d+))\)/,c=e.stack.split("\n"),l=[],d=(/^(.*) is
undefined$/.exec(e.message),0),f=c.length;d<f;++d){if(n=r.exec(c[d])){var
h=n[2]&&0===n[2].indexOf("native"),v=n[2]&&0===n[2].indexOf("eval");v&&(t=u.exec(n[
2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),i={url:h?null:n[2],func:n[1]||ln,args:h?
[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else
if(n=a.exec(c[d]))i={url:n[2],func:n[1]||ln,args:[],line:+n[3],column:n[4]?
+n[4]:null};else{if(!(n=o.exec(c[d])))continue;var v=n[3]&&n[3].indexOf(" >
eval")>-1;v&&(t=s.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==d||
n[5]||"undefined"==typeof e.columnNumber||
(l[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||ln,args:n[2]?n[2].split(","):
[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!
i.func&&i.line&&(i.func=ln),l.push(i)}return l.length?
{name:e.name,message:e.message,url:R(),stack:l}:null}}function t(e,t,n,i){var
r={url:t,line:n};if(r.url&&r.line){if(e.incomplete=!1,r.func||
(r.func=ln),e.stack.length>0&&e.stack[0].url===r.url)
{if(e.stack[0].line===r.line)return!1;if(!
e.stack[0].line&&e.stack[0].func===r.func)return e.stack[0].line=r.line,!1}return
e.stack.unshift(r),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,r)
{for(var o,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\
(/i,u=[],c={},l=!1,d=n.caller;d&&!l;d=d.caller)if(d!==i&&d!==sn.report)
{if(a={url:null,func:ln,line:null,column:null},d.name?a.func=d.name:
(o=s.exec(d.toString()))&&(a.func=o[1]),"undefined"==typeof
a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}c[""+d]?l=!
0:c[""+d]=!0,u.push(a)}r&&u.splice(0,r);var
f={name:e.name,message:e.message,url:R(),stack:u};return t(f,e.sourceURL||
e.fileName,e.line||e.lineNumber,e.message||e.description),f}function i(t,i){var
r=null;i=null==i?0:+i;try{if(r=e(t))return r}catch(e){if(sn.debug)throw
e}try{if(r=n(t,i+1))return r}catch(e){if(sn.debug)throw
e}return{name:t.name,message:t.message,url:R()}}return
i.augmentStackTraceWithInitialElement=t,i.computeStackTraceFromStackProp=e,i}();var
fn=sn,hn=e(function(e,t){function n(e,t){for(var n=0;n<e.length;+
+n)if(e[n]===t)return n;return-1}function i(e,t,n,i){return
JSON.stringify(e,r(t,i),n)}function r(e,t){var i=[],r=[];return
null==t&&(t=function(e,t){return i[0]===t?"[Circular ~]":"[Circular
~."+r.slice(0,n(i,t)).join(".")+"]"}),function(o,a){if(i.length>0){var
s=n(i,this);~s?i.splice(s+1):i.push(this),~s?
r.splice(s,1/0,o):r.push(o),~n(i,a)&&(a=t.call(this,o,a))}else i.push(a);return
null==e?a:e.call(this,o,a)}}t=e.exports=i,t.getSerialize=r});B.prototype=new
Error,B.prototype.constructor=B;var vn=B,pn=function(e,t,n){var i=e[t],r=e;if(t in
e){var o="warn"===t?"warning":t;e[t]=function(){var
e=[].slice.call(arguments),t=""+e.join(" "),a={level:o,logger:"console",extra:
{arguments:e}};n&&n(t,a),i&&Function.prototype.apply.call(i,r,e)}}},mn={wrapMethod:
pn},gn=fn,yn=hn,_n=vn,bn=on,wn=bn.isError,kn=bn.isObject,Sn=mn.wrapMethod,xn="sourc
e protocol user pass host port path".split(" "),Tn=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?
@)?([\w\.-]+)(?::(\d+))?(\/.*)/,En="undefined"!=typeof window?window:"undefined"!
=typeof yt?yt:"undefined"!=typeof self?self:
{},Ln=En.document,Pn=En.navigator;j.prototype={VERSION:"3.14.2",debug:!
1,TraceKit:gn,config:function(e,t){var n=this;if(n._globalServer)return
this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return
n;var i=n._globalOptions;t&&z(t,function(e,t){"tags"===e||"extra"===e||"user"===e?
n._globalContext[e]=t:i[e]=t}),n.setDSN(e),i.ignoreErrors.push(/^Script error\.?
$/),i.ignoreErrors.push(/^Javascript error: Script error\.? on line
0$/),i.ignoreErrors=$(i.ignoreErrors),i.ignoreUrls=!!i.ignoreUrls.length&&$
(i.ignoreUrls),i.whitelistUrls=!!i.whitelistUrls.length&&$
(i.whitelistUrls),i.includePaths=$
(i.includePaths),i.maxBreadcrumbs=Math.max(0,Math.min(i.maxBreadcrumbs||
100,100));var r={xhr:!0,console:!0,dom:!0,location:!
0},o=i.autoBreadcrumbs;return"[object Object]"==={}.toString.call(o)?o=W(r,o):o!==!
1&&(o=r),i.autoBreadcrumbs=o,gn.collectWindowErrors=!!
i.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!
e._isRavenInstalled&&(gn.report.subscribe(function()
{e._handleOnErrorStackInfo.apply(e,arguments)}),e._instrumentTryCatch(),e._globalOp
tions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInsta
lled=!
0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e)
{var
t=this,n=t._parseDSN(e),i=n.path.lastIndexOf("/"),r=n.path.substr(1,i);t._dsn=e,t._
globalKey=n.user,t._globalSecret=n.pass&&n.pass.substr(1),t._globalProject=n.path.s
ubstr(i+1),t._globalServer=t._getGlobalServer(n),t._globalEndpoint=t._globalServer+
"/"+r+"api/"+t._globalProject+"/store/",this._resetBackoff()},context:function(e,t,
n){return V(e)&&(n=t||[],t=e,e=void
0),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){function i(){var
i=[],o=arguments.length,a=!e||e&&e.deep!==!
1;for(n&&V(n)&&n.apply(this,arguments);o--;)i[o]=a?
r.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw
r._ignoreNextOnError(),r.captureException(t,e),t}}var r=this;if(N(t)&&!V(e))return
e;if(V(e)&&(t=e,e=void 0),!V(t))return t;try{if(t.__raven__)return
t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}for(var o in
t)X(t,o)&&(i[o]=t[o]);return
i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!
0,i.__inner__=t,i},uninstall:function(){return
gn.report.uninstall(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalE
rrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(e,t)
{if(!wn(e))return this.captureMessage(e,W({trimHeadFrames:1,stacktrace:!
0},t));this._lastCapturedException=e;try{var
n=gn.computeStackTrace(e);this._handleStackInfo(n,t)}catch(t){if(e!==t)throw
t}return this},captureMessage:function(e,t){if(!
this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e))
{t=t||{};var n=W({message:e+""},t);if(this._globalOptions.stacktrace||
t&&t.stacktrace){var i;try{throw new Error(e)}catch(e)
{i=e}i.name=null,t=W({fingerprint:e,trimHeadFrames:(t.trimHeadFrames||0)+1},t);var
r=gn.computeStackTrace(i),o=this._prepareFrames(r,t);n.stacktrace={frames:o.reverse
()}}return this._send(n),this}},captureBreadcrumb:function(e){var
t=W({timestamp:D()/1e3},e);if(V(this._globalOptions.breadcrumbCallback)){var
n=this._globalOptions.breadcrumbCallback(t);if(kn(n)&&!U(n))t=n;else if(n===!
1)return this}return
this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrum
bs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var
t=[].slice.call(arguments,1);return
this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUse
rContext:function(e){return
this._globalContext.user=e,this},setExtraContext:function(e){return
this._mergeContext("extra",e),this},setTagsContext:function(e){return
this._mergeContext("tags",e),this},clearContext:function(){return
this._globalContext={},this},getContext:function(){return
JSON.parse(yn(this._globalContext))},setEnvironment:function(e){return
this._globalOptions.environment=e,this},setRelease:function(e){return
this._globalOptions.release=e,this},setDataCallback:function(e){var
t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=V(e)?
function(n){return e(n,t)}:e,this},setBreadcrumbCallback:function(e){var
t=this._globalOptions.breadcrumbCallback;return
this._globalOptions.breadcrumbCallback=V(e)?function(n){return
e(n,t)}:e,this},setShouldSendCallback:function(e){var
t=this._globalOptions.shouldSendCallback;return
this._globalOptions.shouldSendCallback=V(e)?function(n){return
e(n,t)}:e,this},setTransport:function(e){return
this._globalOptions.transport=e,this},lastException:function(){return
this._lastCapturedException},lastEventId:function(){return
this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!
this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!
0,this._logDebug("error","Error: Raven has not been configured.")),!
1))},afterLoad:function(){var
e=En.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:functio
n(e){if(Ln){e=e||{};var t=e.eventId||this.lastEventId();if(!t)throw new _n("Missing
eventId");var n=e.dsn||this._dsn;if(!n)throw new _n("Missing DSN");var
i=encodeURIComponent,r="";r+="?eventId="+i(t),r+="&dsn="+i(n);var o=e.user||
this._globalContext.user;o&&(o.name&&(r+="&name="+i(o.name)),o.email&&(r+="&email="
+i(o.email)));var
a=this._getGlobalServer(this._parseDSN(n)),s=Ln.createElement("script");s.async=!
0,s.src=a+"/api/embed/error-page/"+r,(Ln.head||
Ln.body).appendChild(s)}},_ignoreNextOnError:function(){var
e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-
=1})},_triggerEvent:function(e,t){var n,i;if(this._hasDocument){t=t||
{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),Ln.createEvent?
(n=Ln.createEvent("HTMLEvents"),n.initEvent(e,!0,!0)):
(n=Ln.createEventObject(),n.eventType=e);for(i in
t)X(t,i)&&(n[i]=t[i]);if(Ln.createEvent)Ln.dispatchEvent(n);else
try{Ln.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e)
{}}},_breadcrumbEventHandler:function(e){var t=this;return
function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n)
{t._lastCapturedEvent=n;var i;try{i=J(n.target)}catch(e)
{i="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:i})}}},_keypressEventH
andler:function(){var e=this,t=1e3;return function(n){var i;try{i=n.target}catch(e)
{return}var r=i&&i.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||
i.isContentEditable)){var o=e._keypressTimeout;o||
e._breadcrumbEventHandler("input")
(n),clearTimeout(o),e._keypressTimeout=setTimeout(function()
{e._keypressTimeout=null},t)}}},_captureUrlChange:function(e,t){var
n=G(this._location.href),i=G(t),r=G(e);this._lastHref=t,n.protocol===i.protocol&&n.
host===i.host&&(t=i.relative),n.protocol===r.protocol&&n.host===r.host&&(e=r.relati
ve),this.captureBreadcrumb({category:"navigation",data:
{to:t,from:e}})},_instrumentTryCatch:function(){function e(e){return function(t,i)
{for(var r=new Array(arguments.length),o=0;o<r.length;++o)r[o]=arguments[o];var
a=r[0];return V(a)&&(r[0]=n.wrap(a)),e.apply?e.apply(this,r):e(r[0],r[1])}}function
t(e){var
t=En[e]&&En[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&
&(ie(t,"addEventListener",function(t){return function(i,o,a,s)
{try{o&&o.handleEvent&&(o.handleEvent=n.wrap(o.handleEvent))}catch(e){}var
u,c,l;return
r&&r.dom&&("EventTarget"===e||"Node"===e)&&(c=n._breadcrumbEventHandler("click"),l=
n._keypressEventHandler(),u=function(e){if(e){var t;try{t=e.type}catch(e)
{return}return"click"===t?c(e):"keypress"===t?l(e):void
0}}),t.call(this,i,n.wrap(o,void
0,u),a,s)}},i),ie(t,"removeEventListener",function(e){return function(t,n,i,r)
{try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(e){}return
e.call(this,t,n,i,r)}},i))}var
n=this,i=n._wrappedBuiltIns,r=this._globalOptions.autoBreadcrumbs;ie(En,"setTimeout
",e,i),ie(En,"setInterval",e,i),En.requestAnimationFrame&&ie(En,"requestAnimationFr
ame",function(e){return function(t){return e(n.wrap(t))}},i);for(var
o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMerger
Node","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabas
e","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","Mo
dalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue",
"TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpReq
uestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)t(o[a]);
},_instrumentBreadcrumbs:function(){function e(e,n){e in
n&&V(n[e])&&ie(n,e,function(e){return t.wrap(e)})}var
t=this,n=this._globalOptions.autoBreadcrumbs,i=t._wrappedBuiltIns;if(n.xhr&&"XMLHtt
pRequest"in En){var r=XMLHttpRequest.prototype;ie(r,"open",function(e){return
function(n,i){return H(i)&&i.indexOf(t._globalKey)===-
1&&(this.__raven_xhr={method:n,url:i,status_code:null}),e.apply(this,arguments)}},i
),ie(r,"send",function(n){return function(i){function r()
{if(o.__raven_xhr&&(1===o.readyState||4===o.readyState))
{try{o.__raven_xhr.status_code=o.status}catch(e)
{}t.captureBreadcrumb({type:"http",category:"xhr",data:o.__raven_xhr})}}for(var
o=this,a=["onload","onerror","onprogress"],s=0;s<a.length;s+
+)e(a[s],o);return"onreadystatechange"in o&&V(o.onreadystatechange)?
ie(o,"onreadystatechange",function(e){return t.wrap(e,void
0,r)}):o.onreadystatechange=r,n.apply(this,arguments)}},i)}n.xhr&&"fetch"in
En&&ie(En,"fetch",function(e){return function(n,i){for(var r=new
Array(arguments.length),o=0;o<r.length;++o)r[o]=arguments[o];var
a,s=r[0],u="GET";"string"==typeof s?a=s:
(a=s.url,s.method&&(u=s.method)),r[1]&&r[1].method&&(u=r[1].method);var
c={method:u,url:a,status_code:null};return
t.captureBreadcrumb({type:"http",category:"fetch",data:c}),e.apply(this,r).then(fun
ction(e){return
c.status_code=e.status,e})}},i),n.dom&&this._hasDocument&&(Ln.addEventListener?
(Ln.addEventListener("click",t._breadcrumbEventHandler("click"),!
1),Ln.addEventListener("keypress",t._keypressEventHandler(),!1)):
(Ln.attachEvent("onclick",t._breadcrumbEventHandler("click")),Ln.attachEvent("onkey
press",t._keypressEventHandler())));var o=En.chrome,a=o&&o.app&&o.app.runtime,s=!
a&&En.history&&history.pushState;if(n.location&&s){var
u=En.onpopstate;En.onpopstate=function(){var
e=t._location.href;if(t._captureUrlChange(t._lastHref,e),u)return
u.apply(this,arguments)},ie(history,"pushState",function(e){return function(){var
n=arguments.length>2?arguments[2]:void 0;return
n&&t._captureUrlChange(t._lastHref,n+""),e.apply(this,arguments)}},i)}if(n.console&
&"console"in En&&console.log){var c=function(e,n)
{t.captureBreadcrumb({message:e,level:n.level,category:"console"})};z(["debug","inf
o","warn","error","log"],function(e,t)
{Sn(console,t,c)})}},_restoreBuiltIns:function(){for(var
e;this._wrappedBuiltIns.length;){e=this._wrappedBuiltIns.shift();var
t=e[0],n=e[1],i=e[2];t[n]=i}},_drainPlugins:function(){var
e=this;z(this._plugins,function(t,n){var i=n[0],r=n[1];i.apply(e,
[e].concat(r))})},_parseDSN:function(e){var
t=Tn.exec(e),n={},i=7;try{for(;i--;)n[xn[i]]=t[i]||""}catch(t){throw new
_n("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new
_n("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-
key");return n},_getGlobalServer:function(e){var t="//"+e.host+
(e.port?":"+e.port:"");return
e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function()
{this._ignoreOnError||
this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var
n=this._prepareFrames(e,t);this._triggerEvent("handle",
{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t
)},_prepareFrames:function(e,t){var
n=this,i=[];if(e.stack&&e.stack.length&&(z(e.stack,function(e,t){var
r=n._normalizeFrame(t);r&&i.push(r)}),t&&t.trimHeadFrames))for(var
r=0;r<t.trimHeadFrames&&r<i.length;r++)i[r].in_app=!1;return
i=i.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e)
{if(e.url){var
t={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return
t.in_app=!(this._globalOptions.includePaths.test&&!
this._globalOptions.includePaths.test(t.filename)||/(Raven|
TraceKit)\./.test(t.function)||/raven\.(min\.)?
js$/.test(t.filename)),t}},_processException:function(e,t,n,i,r,o){var a;if((!
this._globalOptions.ignoreErrors.test||!
this._globalOptions.ignoreErrors.test(t))&&(t+="",r&&r.length?(n=r[0].filename||
n,r.reverse(),a={frames:r}):n&&(a={frames:[{filename:n,lineno:i,in_app:!0}]}),(!
this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!
this._globalOptions.whitelistUrls.test||
this._globalOptions.whitelistUrls.test(n)))){var s=W({exception:{values:
[{type:e,value:t,stacktrace:a}]},culprit:n},o);this._send(s)}},_trimPacket:function
(e){var
t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=K(e.message,t)),e.e
xception){var n=e.exception.values[0];n.value=K(n.value,t)}var i=e.request;return
i&&(i.url&&(i.url=K(i.url,this._globalOptions.maxUrlLength)),i.Referer&&(i.Referer=
K(i.Referer,this._globalOptions.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values
&&this._trimBreadcrumbs(e.breadcrumbs),e},_trimBreadcrumbs:function(e){for(var
t,n,i,r=["to","from","url"],o=0;o<e.values.length;+
+o)if(n=e.values[o],n.hasOwnProperty("data")&&kn(n.data)){i=n.data;for(var
a=0;a<r.length;+
+a)t=r[a],i.hasOwnProperty(t)&&(i[t]=K(i[t],this._globalOptions.maxUrlLength))}},_g
etHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return
this._hasNavigator&&Pn.userAgent&&(e.headers={"User-
Agent":navigator.userAgent}),this._hasDocument&&(Ln.location&&Ln.location.href&&(e.
url=Ln.location.href),Ln.referrer&&(e.headers||
(e.headers={}),e.headers.Referer=Ln.referrer)),e}},_resetBackoff:function()
{this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return
this._backoffDuration&&D()-
this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var
t=this._lastData;return!(!t||e.message!==t.message||e.culprit!
==t.culprit)&&(e.stacktrace||t.stacktrace?ne(e.stacktrace,t.stacktrace):!
e.exception&&!t.exception||
te(e.exception,t.exception))},_setBackoffState:function(e){if(!
this._shouldBackoff()){var t=e.status;if(400===t||401===t||429===t){var
n;try{n=e.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(e)
{}this._backoffDuration=n?n:2*this._backoffDuration||
1e3,this._backoffStart=D()}}},_send:function(e){var
t=this._globalOptions,n={project:this._globalProject,logger:t.logger,platform:"java
script"},i=this._getHttpData();if(i&&(n.request=i),e.trimHeadFrames&&delete
e.trimHeadFrames,e=W(n,e),e.tags=W(W({},this._globalContext.tags),e.tags),e.extra=W
(W({},this._globalContext.extra),e.extra),e.extra["session:duration"]=D()-
this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={valu
es:[].slice.call(this._breadcrumbs,0)}),U(e.tags)&&delete
e.tags,this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(
e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.serv
er_name=t.serverName),V(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!U(e)&&(!
V(t.shouldSendCallback)||t.shouldSendCallback(e)))return this._shouldBackoff()?void
this._logDebug("warn","Raven dropped error due to backoff:
",e):void("number"==typeof t.sampleRate?
Math.random()<t.sampleRate&&this._sendProcessedPayload(e):this._sendProcessedPayloa
d(e))},_getUuid:function(){return Q()},_sendProcessedPayload:function(e,t){var
n=this,i=this._globalOptions;if(this.isSetup()){if(this._lastEventId=e.event_id||
(e.event_id=this._getUuid()),e=this._trimPacket(e),!
this._globalOptions.allowDuplicates&&this._isRepeatData(e))return void
this._logDebug("warn","Raven dropped repeat event:
",e);this._lastData=e,this._logDebug("debug","Raven about to send:",e);var
r={sentry_version:"7",sentry_client:"raven-
js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(r.sentry_secret=
this._globalSecret);var
o=e.exception&&e.exception.values[0];this.captureBreadcrumb({category:"sentry",mess
age:o?(o.type?o.type+": ":"")
+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var
a=this._globalEndpoint;(i.transport||this._makeRequest).call(this,
{url:a,auth:r,data:e,options:i,onSuccess:function()
{n._resetBackoff(),n._triggerEvent("success",
{data:e,src:a}),t&&t()},onError:function(i){n._logDebug("error","Raven transport
failed to send:
",i),i.request&&n._setBackoffState(i.request),n._triggerEvent("failure",
{data:e,src:a}),i=i||new Error("Raven send failed (no additional details
provided)"),t&&t(i)}})}},_makeRequest:function(e){var t=new
XMLHttpRequest,n="withCredentials"in t||"undefined"!=typeof XDomainRequest;if(n)
{var i=e.url;"withCredentials"in t?t.onreadystatechange=function()
{if(4===t.readyState)if(200===t.status)e.onSuccess&&e.onSuccess();else
if(e.onError){var n=new Error("Sentry error code:
"+t.status);n.request=t,e.onError(n)}}:(t=new
XDomainRequest,i=i.replace(/^https?:/,""),e.onSuccess&&(t.onload=e.onSuccess),e.onE
rror&&(t.onerror=function(){var n=new Error("Sentry error code:
XDomainRequest");n.request=t,e.onError(n)})),t.open("POST",i+"?"+Y(e.auth)),t.send(
yn(e.data))}},_logDebug:function(e)
{this._originalConsoleMethods[e]&&this.debug&&Function.prototype.apply.call(this._o
riginalConsoleMethods[e],this._originalConsole,
[].slice.call(arguments,1))},_mergeContext:function(e,t){N(t)?delete
this._globalContext[e]:this._globalContext[e]=W(this._globalContext[e]||{},t)}};var
Cn=Object.prototype;"undefined"!=typeof
__false__&&__false__&&(j.utils={isUndefined:N,isFunction:V,isString:H,isObject:kn,i
sEmptyObject:U,isError:wn,each:z,objectMerge:W,truncate:K,hasKey:X,joinRegExp:
$,urlencode:Y,uuid4:Q,htmlTreeAsString:J,htmlElementAsString:Z,parseUrl:G,fill:ie})
,j.prototype.setUser=j.prototype.setUserContext,j.prototype.setReleaseContext=j.pro
totype.setRelease;var An=j,On=An,Mn="undefined"!=typeof window?window:"undefined"!
=typeof yt?yt:"undefined"!=typeof self?self:{},Fn=Mn.Raven,In=new
On;In.noConflict=function(){return Mn.Raven=Fn,In},In.afterLoad();var
qn=In;ue.prototype={get complement(){var e=this.clone();return e.rgb={red:255-
this.red,green:255-this.green,blue:255-this.blue},e},get hex(){return
ue.rgbToHex(this.red,this.green,this.blue)},set hex(e){return
this.rgba=ue.hexToRgb(e),this},get hsl()
{return"hsl("+this.hue+","+this.saturation+"%,"+Math.round(this.lightness)
+"%)"},set hsl(e)
{this.hue=e.hue,this.saturation=e.saturation,this.lightness=e.lightness;var
t=ue.hslToRgb(e.hue,e.saturation,e.lightness);return
this.red=t.red,this.green=t.green,this.blue=t.blue,this.alpha=t.alpha,this},get
luminance(){function e(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}var
t=e(this.red/255),n=e(this.green/255),i=e(this.blue/255),r=.2126*t+.7152*n+.0722*i;
return r},get rgb(){return"rgb("+this.red+","+this.green+","+this.blue+")"},set
rgb(e){return this.rgba=e,this},get rgba()
{return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"},set
rgba(e){this.red=e.red,this.green=e.green,this.blue=e.blue,this.alpha=e.alpha||
1;var t=ue.rgbToHsl(e.red,e.green,e.blue);return
this.hue=t.hue,this.saturation=t.saturation,this.lightness=t.lightness,this},get
yiq(){return(299*this.red+587*this.green+114*this.blue)/1e3},clone:function()
{return new ue(this)},lighten:function(e,t,n)
{if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness+e},t
&&n)for(var
i=n.contrast(this).ratio;i<t&&(this.lighten(5),i=n.contrast(this).ratio,!
(this.lightness>=100)););return this},darken:function(e,t,n)
{if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness-
e},t&&n)for(var
i=n.contrast(this).ratio;i<t&&(this.darken(5),i=n.contrast(this).ratio,!
(this.lightness<=0)););return this},overlayOn:function(e){if(this.alpha>=1)return
this;var t=this.clone();return t.rgba={red:t.red*this.alpha+e.red*e.alpha*(1-
this.alpha),green:t.green*this.alpha+e.green*e.alpha*(1-
this.alpha),blue:t.blue*this.alpha+e.blue*e.alpha*(1-
this.alpha),alpha:t.alpha+e.alpha*(1-this.alpha)},t},contrast:function(e){var
t=this.alpha;if(t>=1){e.alpha<1&&(e=e.overlayOn(this));var
n=this.luminance+.05,i=e.luminance+.05,r=n/i;return
i>n&&(r=1/r),r=Math.round(10*r)/10,{ratio:r,error:0,min:r,max:r}}var
o=this.overlayOn(ue.white).contrast(e).ratio,a=this.overlayOn(ue.black).contrast(e)
.ratio,s=Math.max(o,a),u={red:Math.min(Math.max(0,(e.red-this.red*t)/(1-
t)),255),green:Math.min(Math.max(0,(e.green-this.green*t)/(1-
t)),255),blue:Math.min(Math.max(0,(e.blue-this.blue*t)/(1-
t)),255)},c=this.clone();c.rgb=u;var
l=this.overlayOn(c).contrast(e).ratio;return{ratio:Math.round((l+s)/2*10)/10,error:
Math.round((s-l)/2*10)/10,min:l,max:s,closest:c,farthest:a===s?
ue.white:ue.black}},wcagAACompliant:function(e){return
this.contrast(e).ratio>=4.5},wcagAAACompliant:function(e){return
this.contrast(e).ratio>=7},yiqContrastColor:function(){return this.yiq>=120?new
ue(0,0,0):new ue(255,255,255)}},ue.hexToRgb=function(e){var t;return
e=String(e),3===e.length||4===e.length?(t=/^#?([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-
9])$/i.exec(e),t&&(t[1]+=t[1],t[2]+=t[2],t[3]+=t[3])):t=/^#?([A-Fa-f0-9]{2})([A-Fa-
f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t?
{red:parseInt(t[1],16),green:parseInt(t[2],16),blue:parseInt(t[3],16),alpha:1}:null
},ue.rgbToHex=function(e,t,n){return"#"+((1<<24)+(Math.round(e)<<16)+
(Math.round(t)<<8)+Math.round(n)).toString(16).slice(1)},ue.rgbToHsl=function(e,t,n
){e/=255,t/=255,n/=255;var
i=Math.max(e,t,n),r=Math.min(e,t,n),o=(i+r)/2,a=o,s=o;if(i===r)return{hue:0,saturat
ion:0,lightness:100*s};var u=i-r;return a=s>.5?u/(2-i-r):u/(i+r),i===e?o=(t-n)/u+
(t<n?6:0):i===t?o=(n-e)/u+2:i===n&&(o=(e-t)/u+4),o/=6,
{hue:Math.round(360*o),saturation:Math.round(100*a),lightness:Math.round(100*s)}},u
e.hslToRgb=function(e,t,n){function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),6*n<1?
e+6*(t-e)*n:2*n<1?t:3*n<2?e+(t-e)*(6*(2/3-
n)):e}if(e/=360,t/=100,n/=100,0===t)return{red:Math.floor(255*n),green:Math.floor(2
55*n),blue:Math.floor(255*n)};var r=n<.5?n*(1+t):n+t-t*n,o=2*n-
r;return{red:Math.floor(255*i(o,r,e+1/3)),green:Math.floor(255*i(o,r,e)),blue:Math.
floor(255*i(o,r,e-1/3))}},ue.hslToHex=function(e,t,n){var
i=ue.hslToRgb(e,t,n);return ue.rgbToHex(i.red,i.green,i.blue)},ue.white=new
ue("fff"),ue.black=new ue("000");var
Rn=6e4,Bn=window.Array.from,Dn=[1];"function"==typeof Bn&&Bn(Dn)===Dn&&(Bn=!1);var
jn,Nn,Vn,Hn,Un=Bn||function(e)
{return[].slice.call(e,0)},zn=["quality","volume","captions"],Wn=null,Kn=function()
{function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},i=n.displayTimeout,r=void 0===i?0:i,o=n.label,a=void
0===o?"Alert":o;Pt(this,e),re(this),this._container=t,this._visible=!
1,this._message=null,this._alert=null,this._alertLabel=a;var s=Math.round(r/1e3);0!
==s&&(this._alertLabel=a+" Will be dismissed in "+s+"
seconds"),this._displayTimer=null,this._displayTimeout=r,this._renderTemplate(),thi
s._attachEvents()}return Ct(e,[{key:"show",value:function(e){var
t=this;if(this._visible!==!0)
{clearTimeout(this._displayTimer),this._alert.classList.remove("hidden"),this._aler
t.removeAttribute("hidden"),window.requestAnimationFrame(function()
{t._alert.classList.add("in")});var n=this._alert.querySelector("[data-alert-
autofocus]")||this._alert;n.focus(),this._visible=!0,this.fire("show",e),0!
==this._displayTimeout&&(this._displayTimer=setTimeout(function()
{t.hide("timeout")},this._displayTimeout))}}},{key:"hide",value:function(e){var
t=this;this._visible!==!
1&&(clearTimeout(this._displayTimer),this._alert.classList.add("leaving"),window.re
questAnimationFrame(function(){var
e=t;t._setHideAttributes(),Dt(t._alert).on("transitionend",function t(n)
{"opacity"===n.propertyName&&(e._alert.classList.remove("leaving"),e._alert.classLi
st.add("hidden"),e._alert.setAttribute("hidden",""),Dt(e._alert).off("transitionend
",t))})}),this._visible=!1,this.fire("hide",e))}},
{key:"_setHideAttributes",value:function(){this._alert.classList.remove("in")}},
{key:"_renderTemplate",value:function(){this._alert||
(this._alert=document.createElement("div"),this._alert.setAttribute("role","alertdi
alog"),this._alert.setAttribute("aria-
label",this._alertLabel),this._alert.setAttribute("aria-
atomic","true"),this._alert.classList.add("player-
alert"),this._alert.classList.add("hidden"),this._alert.setAttribute("hidden",""),t
his._container.appendChild(this._alert),this._setHideAttributes()),this._message
instanceof HTMLElement?
(this._alert.innerHTML="",this._alert.appendChild(this._message)):
(this._alert.textContent=this._message,this._alert.innerHTML=this._message);var
e=document.createElement("button");e.setAttribute("data-
close",""),e.setAttribute("aria-label","Close
alert"),e.classList.add("close"),e.innerHTML=Kt.render("icon_close"),this._alert.ap
pendChild(e)}},{key:"_attachEvents",value:function(){var
e=this;Dt(this._alert).on("click","[data-close]",function(t){e.hide(t)})}},
{key:"visible",get:function(){return this._visible}},{key:"message",get:function()
{return this._message},set:function(e){e instanceof
HTMLElement&&this._message&&e.textContent===this._message.textContent||e!
==this._message&&(this._message=e,this._renderTemplate())}}]),e}
(),Xn="app.vimeo.com/",$n="key_live_jpj6Duy53e6MhounkriNljdgsBhGbf0d",Yn={object:!
0,symbol:!0},Gn=function(){var e;if("function"!=typeof Symbol)return!
1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!Yn[typeof
Symbol.iterator]&&(!!Yn[typeof Symbol.toPrimitive]&&!!Yn[typeof
Symbol.toStringTag])},Qn=function(){var e,t=Object.assign;return"function"==typeof
t&&(e={foo:"raz"},t(e,{bar:"dwa"},
{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")},Jn=function(){try{return
Object.keys("primitive"),!0}catch(e){return!1}},Zn=Object.keys,ei=function(e)
{return Zn(null==e?e:Object(e))},ti=Jn()?Object.keys:ei,ni=function(e)
{if(null==e)throw new TypeError("Cannot use null or undefined");return
e},ii=ti,ri=ni,oi=Math.max,ai=function(e,t){var
n,i,r,o=oi(arguments.length,2);for(e=Object(ri(e)),r=function(i)
{try{e[i]=t[i]}catch(e){n||(n=e)}},i=1;i<o;+
+i)t=arguments[i],ii(t).forEach(r);if(void 0!==n)throw n;return e},si=Qn()?
Object.assign:ai,ui=Array.prototype.forEach,ci=Object.create,li=function(e,t){var
n;for(n in e)t[n]=e[n]},di=function(e){var t=ci(null);return
ui.call(arguments,function(e){null!=e&&li(Object(e),t)}),t},fi=function(e)
{return"function"==typeof e},hi="razdwatrzy",vi=function(){return"function"==typeof
hi.contains&&(hi.contains("dwa")===!0&&hi.contains("foo")===!
1)},pi=String.prototype.indexOf,mi=function(e){return
pi.call(this,e,arguments[1])>-1},gi=vi()?
String.prototype.contains:mi,yi=e(function(e){var
t,n=si,i=di,r=fi,o=gi;t=e.exports=function(e,t){var r,a,s,u,c;return
arguments.length<2||"string"!=typeof e?(u=t,t=e,e=null):u=arguments[2],null==e?
(r=s=!0,a=!1):
(r=o.call(e,"c"),a=o.call(e,"e"),s=o.call(e,"w")),c={value:t,configurable:r,enumera
ble:a,writable:s},u?n(i(u),c):c},t.gs=function(e,t,a){var s,u,c,l;return"string"!
=typeof e?(c=a,a=t,t=e,e=null):c=arguments[3],null==t?t=void 0:r(t)?null==a?a=void
0:r(a)||(c=a,a=void 0):(c=t,t=a=void 0),null==e?(s=!0,u=!1):
(s=o.call(e,"c"),u=o.call(e,"e")),l={get:t,set:a,configurable:s,enumerable:u},c?
n(i(c),l):l}}),_i=function(e){return!!e&&("symbol"==typeof e||!!
e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringT
ag]))},bi=_i,wi=function(e){if(!bi(e))throw new TypeError(e+" is not a
symbol");return
e},ki=yi,Si=wi,xi=Object.create,Ti=Object.defineProperties,Ei=Object.defineProperty
,Li=Object.prototype,Pi=xi(null);if("function"==typeof Symbol)
{jn=Symbol;try{String(jn()),Hn=!0}catch(e){}}var Ci=function(){var
e=xi(null);return function(t){for(var n,i,r=0;e[t+(r||"")];)++r;return
t+=r||"",e[t]=!0,n="@@"+t,Ei(Li,n,ki.gs(null,function(e){i||(i=!
0,Ei(this,n,ki(e)),i=!1)})),n}}();Vn=function(e){if(this instanceof Vn)throw new
TypeError("TypeError: Symbol is not a constructor");return Nn(e)};var
Ai=Nn=function e(t){var n;if(this instanceof e)throw new TypeError("TypeError:
Symbol is not a constructor");return Hn?jn(t):(n=xi(Vn.prototype),t=void
0===t?"":String(t),Ti(n,{__description__:ki("",t),__name__:ki("",Ci(t))}))};Ti(Nn,
{for:ki(function(e){return Pi[e]?Pi[e]:Pi[e]=Nn(String(e))}),keyFor:ki(function(e)
{var t;Si(e);for(t in Pi)if(Pi[t]===e)return
t}),hasInstance:ki("",jn&&jn.hasInstance||
Nn("hasInstance")),isConcatSpreadable:ki("",jn&&jn.isConcatSpreadable||
Nn("isConcatSpreadable")),iterator:ki("",jn&&jn.iterator||
Nn("iterator")),match:ki("",jn&&jn.match||
Nn("match")),replace:ki("",jn&&jn.replace||Nn("replace")),search:k
i("",jn&&jn.search||Nn("search")),species:ki("",jn&&jn.species||
Nn("species")),split:ki("",jn&&jn.split||
Nn("split")),toPrimitive:ki("",jn&&jn.toPrimitive||
Nn("toPrimitive")),toStringTag:ki("",jn&&jn.toStringTag||
Nn("toStringTag")),unscopables:ki("",jn&&jn.unscopables||
Nn("unscopables"))}),Ti(Vn.prototype,{constructor:ki(Nn),toString:ki("",function()
{return this.__name__})}),Ti(Nn.prototype,{toString:ki(function(){return"Symbol
("+Si(this).__description__+")"}),valueOf:ki(function(){return
Si(this)})}),Ei(Nn.prototype,Nn.toPrimitive,ki("",function(){var
e=Si(this);return"symbol"==typeof e?
e:e.toString()})),Ei(Nn.prototype,Nn.toStringTag,ki("c","Symbol")),Ei(Vn.prototype,
Nn.toStringTag,ki("c",Nn.prototype[Nn.toStringTag])),Ei(Vn.prototype,Nn.toPrimitive
,ki("c",Nn.prototype[Nn.toPrimitive]));var Oi=Gn()?Symbol:Ai,Mi=window.WeakMap||
function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function()
{this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};return
n.prototype.set=function(t,n){if("object"!==("undefined"==typeof
t?"undefined":Lt(t))&&"function"!=typeof t)throw new TypeError("Invalid value used
as weak map key");var i=t[this.name];return i&&i[0]===t?i[1]=n:e(t,this.name,
{value:[t,n],writable:!0}),this},n.prototype.get=function(e){var
t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},n.prototype.delete=function(e){var
t=e[this.name];return!(!t||t[0]!==e)&&(t[0]=t[1]=void 0,!
0)},n.prototype.has=function(e){var t=e[this.name];return!!t&&t[0]===e},n}
(),Fi="function"==typeof Oi&&"symbol"==typeof Oi.iterator?function(e){return typeof
e}:function(e){return e&&"function"==typeof Oi&&e.constructor===Oi&&e!
==Oi.prototype?"symbol":typeof e},Ii=function(e,t){if(!(e instanceof t))throw new
TypeError("Cannot call a class as a function")},qi=function(){function e(e,t)
{for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!
1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return
n&&e(t.prototype,n),i&&e(t,i),t}}(),Ri=function(e,t,n){return t in e?
Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!
0}):e[t]=n,e},Bi=function e(t,n,i){null===t&&(t=Function.prototype);var
r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var
o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return
r.value;var a=r.get;if(void 0!==a)return a.call(i)},Di=function(e,t){if("function"!
=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a
function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:
{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?
Object.setPrototypeOf(e,t):e.__proto__=t)},ji=function(e,t){if(!e)throw new
ReferenceError("this hasn't been initialised - super() hasn't been called");return!
t||"object"!=typeof t&&"function"!=typeof t?e:t},Ni=function e(t,n,i,r){var
o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var
a=Object.getPrototypeOf(t);null!==a&&e(a,n,i,r)}else if("value"in
o&&o.writable)o.value=i;else{var s=o.set;void 0!==s&&s.call(r,i)}return
i},Vi=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var
a,s=e[Oi.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!
0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw
o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Oi.iterator in
Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-
iterable instance")}}(),Hi=function(e){if(Array.isArray(e)){for(var
t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return
Un(e)},TelecineError=function TelecineError(e,t)
{Ii(this,TelecineError),this.name=e,this.message=t,Object.freeze(this)},Ui=function
(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};Ii(this,e),this._telecine=t,this._element=t._element,this._options=n}return
qi(e,null,[{key:"displayName",get:function(){return"Effect"}},
{key:"supported",get:function(){return!1}},{key:"supportedScanners",get:function()
{return[]}}]),qi(e,[{key:"activate",value:function(){throw new
TelecineError("NotImplemented","The effect must implement the activate method.")}},
{key:"deactivate",value:function(){throw new TelecineError("NotImplemented","The
effect must implement the deactivate method.")}}]),e}
(),zi=/Firefox/.test(navigator.userAgent),Wi=/i(Phone|Pad|Pod
touch);/.test(navigator.userAgent),Ki=/Android/.test(navigator.userAgent),Xi=Ki&&/m
obile/.test(navigator.userAgent.toLowerCase()),
$i={firefox:zi,iOS:Wi,android:Ki,androidMobile:Xi},Yi=function(e){for(var
t=0,n=this.length;t<n;t++)if(this[t].id===""+e)return this[t];return
null},Gi=function(e,t){if(!e||void 0===e[t])throw Me(1,"INDEX_SIZE_ERR");return
e[t]};ze.from=function(e){if(!(e instanceof TimeRanges))throw new TypeError("Can
only create a TelecineTimeRange from a TimeRanges object.");for(var
t=[],n=[],i=0,r=e.length;i<r;i++)t.push(e.start(i)),n.push(e.end(i));return
ze(t,n)};var Qi,Ji=function(){function e(t){var n=this,i=arguments.length>1&&void
0!==arguments[1]?arguments[1]:
{};Ii(this,e),this._element=t,this._options=i,this._telecineVideo=null,this._curren
tFile=null,this._externalDisplays=[],Oe(this),this.on("play",function(){return
n._initMediaSession()})}return qi(e,null,[{key:"displayName",get:function()
{return"Scanner"}},{key:"supported",get:function(){return!1}},
{key:"supportedVideoTypes",get:function(){return[]}},
{key:"supportedAudioTypes",get:function(){return[]}},
{key:"supportedExternalDisplays",get:function(){return[]}},
{key:"supportsSettingVolume",get:function(){return!0}},
{key:"supportsTextTracks",get:function(){return!1}}]),qi(e,
[{key:"deactivate",value:function()
{this._telecineVideo&&(this._telecineVideo.off("filesrcupdate"),this._telecineVideo
.off("texttracksrcupdate"))}},{key:"reactivate",value:function(){}},
{key:"play",value:function(){return _t.reject(new
TelecineError("NotImplemented","The scanner must implement the play method."))}},
{key:"pause",value:function(){throw new TelecineError("NotImplemented","The scanner
must implement the pause method.")}},{key:"addTextTrack",value:function(e){return
this}},{key:"removeTextTrack",value:function(e){return this}},
{key:"getCuesForTrack",value:function(e){return[]}},
{key:"getActiveCuesForTrack",value:function(e){return[]}},
{key:"setModeForTrack",value:function(e,t){return this}},
{key:"setSrcForTrack",value:function(e,t){return this}},
{key:"addCuePoint",value:function(e){arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{};throw new TelecineError("CuePointsNotSupported","Cue points are not
supported in this scanner.")}},{key:"removeCuePoint",value:function(e){return!1}},
{key:"removeAllCuePoints",value:function(){return!1}},
{key:"showExternalDisplayPicker",value:function(e){if(!
this._externalDisplays.length)throw new
TelecineError("ExternalDisplayUnvailable","No external displays are
available.");if(!e)return void this._externalDisplays[0].showPicker();var
t=this._externalDisplays.filter(function(t){return
t.constructor.displayName.replace("ExternalDisplay","")===e})[0];if(!t)throw new
TelecineError("InvalidExternalDisplay","The specified external display is not
available.");t.showPicker()}},{key:"initDrm",value:function(){return!1}},
{key:"_pickFile",value:function(){if(this._files.length<1)return null;var
e=this._files.slice(0).sort(function(e,t){return e.priority-t.priority});return
e[0]}},{key:"_updateCurrentFile",value:function(){var e=this._pickFile();return e?
void(this.currentFile=e):void this.fire("scannererror",{reason:"all files
failed"})}},{key:"_switchToNextFile",value:function(){var
e=this._files.indexOf(this._currentFile);this._files.splice(e,1),this._updateCurren
tFile()}},{key:"_initMediaSession",value:function(){var e=this;if("mediaSession"in
navigator){var
t={title:this._telecineVideo.title,artist:this._telecineVideo.subtitle,artwork:
[]};this._telecineVideo.metadata.thumbnail&&t.artwork.push({src:this._telecineVideo
.metadata.thumbnail}),navigator.mediaSession.metadata=new
MediaMetadata(t),"function"==typeof
navigator.mediaSession.setActionHandler&&(navigator.mediaSession.setActionHandler("
play",function(){return
e.play()}),navigator.mediaSession.setActionHandler("pause",function(){return
e.pause()}),navigator.mediaSession.setActionHandler("seekforward",function()
{e.currentTime=Math.min(e.duration,e.currentTime+10)}),navigator.mediaSession.setAc
tionHandler("seekbackward",function(){e.currentTime=Math.max(0,e.currentTime-
10)}))}}},{key:"buffered",get:function(){return ze()}},
{key:"cuePoints",get:function(){return[]}},{key:"currentFile",get:function(){return
this._currentFile},set:function(e)
{this._currentFile=e,this.fire("currentfilechange",e)}},
{key:"currentTime",get:function(){return 0},set:function(e){}},
{key:"duration",get:function(){return NaN}},{key:"ended",get:function(){return!1}},
{key:"externalDisplayAvailable",get:function(){return
this._externalDisplays.some(function(e){return e.available})}},
{key:"externalDisplayActive",get:function(){return
this._externalDisplays.some(function(e){return e.active})}},
{key:"loop",get:function(){return!1},set:function(e){}},{key:"muted",get:function()
{return!1},set:function(e){}},{key:"paused",get:function(){return!0}},
{key:"playbackRate",get:function(){return 1},set:function(e){}},
{key:"preload",get:function(){return"none"},set:function(e){}},
{key:"presentationMode",get:function(){return"inline"},set:function(e)
{if(this.supportedPresentationModes.indexOf(e)===-1)throw new
TelecineError("InvalidPresentationMode","The "+e+" presentation mode is not
supported.")}},{key:"supportedPresentationModes",get:function(){return["inline"]}},
{key:"video",get:function(){return this._telecineVideo},set:function(e){var
t=this;this.reactivate(),this._telecineVideo!
==e&&(this._telecineVideo&&(this._telecineVideo.off("filesrcupdate"),this._telecine
Video.off("texttracksrcupdate")),this.removeAllCuePoints(),this._telecineVideo=e,th
is._files=e.files.filter(function(e){return
t.constructor.supportedVideoTypes.indexOf(e.mime)!==-
1}),this._telecineVideo.on("filesrcupdate",function(e)
{e===t._currentFile&&t._updateCurrentFile()}),this._telecineVideo.on("texttracksrcu
pdate",function(e)
{t.video.currentScanner&&t.video.currentScanner.setSrcForTrack(e,e.src)}),this._opt
ions.externalDisplays&&this._options.externalDisplays.length&&!function()
{t._externalDisplays=[];var
n=t.constructor.supportedExternalDisplays;Array.isArray(n)||(n=[]);var
i=n.map(function(e){return
e.displayName});t._options.externalDisplays.filter(function(e){return
e.supported&&i.indexOf(e.displayName)!==-1}).forEach(function(n){var i=new
n(e),r=n.displayName.replace("ExternalDisplay","");i.on("available",function()
{return t.fire("externaldisplayavailable",{type:r})}),i.on("unavailable",function()
{return t.fire("externaldisplayunavailable",{type:r})}),i.on("activated",function()
{"function"==typeof
t.onexternaldisplayactivated&&t.onexternaldisplayactivated(i),t.fire("externaldispl
ayactivated",{type:r})}),i.on("deactivated",function(){"function"==typeof
t.onexternaldisplaydeactivated&&t.onexternaldisplaydeactivated(i),t.fire("externald
isplaydeactivated",{type:r})}),t._externalDisplays.push(i)})}
(),this._updateCurrentFile())}},{key:"videoWidth",get:function(){return 0}},
{key:"videoHeight",get:function(){return 0}},{key:"volume",get:function(){return
1},set:function(e){}}]),e}
(),Zi=["abort","canplay","canplaythrough","durationchange","emptied","ended","error
","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ra
techange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiti
ng","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],
er=["externaldisplayavailable","externaldisplayunavailable","externaldisplayactivat
ed","externaldisplaydeactivated"],tr=["scannerchange","scannererror","fileerror","d
ownloadend","downloaderror","drmauthfailure","drmauthsuccess","drmfailure","emeunsu
pported","currentfilechange","streamchange","streambufferstart","streambufferend","
droppedframes","bandwidth","streamtargetchange","alert","presentationmodechange","c
uepoint","spatialunsupported","bufferoccupancy","manifesttimeout"],nr=[].concat(Zi,
er,tr),ir=new Mi,rr=function(){
function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};Ii(this,e);var i=parseFloat(t);if(isNaN(i))throw new TypeError("Time must be a
number.");if(i<0)throw new TypeError("Time must be a positive
number.");this.time=t,this.data=n,this.id=De();try{var r="undefined"==typeof
VTTCue?TextTrackCue:VTTCue;this.vttCue=new
r(t,t+.25,JSON.stringify(n)),this.vttCue.id=this.id}catch(e){throw new
TelecineError("CuePointsNotSupported","Cue points are not supported in this
browser.")}ir.set(this.vttCue,this),Object.freeze(this)}return qi(e,null,
[{key:"fromVTTCue",value:function(t){if(ir.has(t))return ir.get(t);var
n={};try{n=JSON.parse(t.text)}catch(e){}return new e(t.startTime,n)}}]),e}
(),or=function(){function e(t){var
n=this;Ii(this,e),this._interval=null,this._rates=[],this._averageRate=0,this._last
Checked=null,this._lastLoaded=0,this._scanner=t,this._scanner.on("loadstart",functi
on(){return n.startInterval()}),this._scanner.on("progress",function(){return
n.startInterval()}),this._scanner.on("ended",function(){return
n.stopInterval()})}return qi(e,[{key:"startInterval",value:function(){var
e=this;this._interval||(this._interval=window.setInterval(function(){return
e.updateDownloadRate()},1e3))}},{key:"stopInterval",value:function()
{window.clearInterval(this._interval)}},{key:"updateDownloadRate",value:function()
{for(var e=Be(),t=0,n=this._scanner.buffered,i=Array.isArray(n),r=0,n=i?
n:n[Oi.iterator]();;){var o;if(i){if(r>=n.length)break;o=n[r+
+]}else{if(r=n.next(),r.done)break;o=r.value}var a=o,s=Vi(a,2),u=s[0],c=s[1];t+=c-
u}if(!this._lastChecked)return
this._lastChecked=e,void(this._lastLoaded=t);if(this._lastLoaded!==t){var
l=Math.max(t-
this._lastLoaded,0);this._rates.push(l),this._rates=this._rates.slice(-
15),this._averageRate=this._rates.reduce(function(e,t){return
e+t})/this._rates.length,this._lastChecked=e,this._lastLoaded=t,Math.round(t)>=Math
.round(this._scanner.duration)&&this.stopInterval()}}},
{key:"averageDownloadRate",get:function(){return this._averageRate}}]),e}
(),ar=function(){function e(t){Ii(this,e),this._available=!1,this._active=!
1,this._video=t,Oe(this)}return qi(e,null,[{key:"displayName",get:function()
{return"ExternalDisplay"}},{key:"supported",get:function(){return!1}},
{key:"supportedVideoTypes",get:function(){return[]}}]),qi(e,
[{key:"showPicker",value:function(){}},{key:"getFile",value:function(){var
e=this.constructor.displayName.replace("ExternalDisplay","");if(this._video.externa
lDisplayFiles[e])return this._video.externalDisplayFiles[e];var
t=this.constructor.supportedVideoTypes,n=this._video.files.filter(function(e)
{return t.indexOf(e.mime)!==-1}).sort(function(e,n){return e.mime===n.mime?
e.priority-n.priority:t.indexOf(e.mime)-t.indexOf(n.mime)});if(!n.length)throw new
Error("No files available for "+this.constructor.displayName+" external
display.");return n[0]}},{key:"active",get:function(){return this._active}},
{key:"available",get:function(){return this._available}},
{key:"element",get:function(){return document.createElement("div")}}]),e}
(),AirPlayExternalDisplay=function(e){function AirPlayExternalDisplay(e)
{Ii(this,AirPlayExternalDisplay);var t=ji(this,(AirPlayExternalDisplay.__proto__||
Object.getPrototypeOf(AirPlayExternalDisplay)).call(this,e));return
t._videoElement=document.createElement("video"),t._videoElement.setAttribute("data-
airplay",""),t._videoElement.setAttribute("x-webkit-
airplay","allow"),t.addVideoEventListeners(),t}return
Di(AirPlayExternalDisplay,e),qi(AirPlayExternalDisplay,null,
[{key:"displayName",get:function(){return"AirPlayExternalDisplay"}},
{key:"supported",get:function(){return"WebKitPlaybackTargetAvailabilityEvent"in
window}},{key:"supportedVideoTypes",get:function()
{return["application/vnd.apple.mpegurl","video/mp4"]}}]),qi(AirPlayExternalDisplay,
[{key:"addVideoEventListeners",value:function(){var
e=this,t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:this._videoElement;t.addEventListener("webkitplaybacktargetavailabilit
ychanged",function(t){switch(t.availability){case"available":e._available||
(e._available=!0,e.fire("available"));break;case"not-
available":e._available&&(e._available=!
1,e.fire("unavailable"))}}),t.addEventListener("webkitcurrentplaybacktargetiswirele
sschanged",function(t){return t.target.webkitCurrentPlaybackTargetIsWireless?
(e._active=!0,void e.fire("activated")):(e._active=!1,void
e.fire("deactivated"))})}},{key:"showPicker",value:function(){var
e=this;this._videoElement.webkitShowPlaybackTargetPicker(),this.loadMetadata().then
(function(){return
e._videoElement.webkitShowPlaybackTargetPicker()}).catch(function(){})}},
{key:"loadMetadata",value:function(){var e=this;return
this._videoElement.readyState>=1?_t.resolve():new _t(function(t,n)
{e._videoElement.addEventListener("loadedmetadata",function()
{t()}),e._videoElement.src=e.getFile().src})}},{key:"element",get:function(){return
this._videoElement},set:function(e){if(!(e instanceof HTMLVideoElement))throw new
TypeError("The element for AirPlay must be a <video>.");e!
==this._videoElement&&(this.addVideoEventListeners(e),this._videoElement=e,this._vi
deoElement.setAttribute("x-webkit-airplay","allow"))}}]),AirPlayExternalDisplay}
(ar),sr=document.createElement("video"),ur={"application/vnd.apple.mpegurl":"applic
ation/vnd.apple.mpegurl","video/mp4":'video/mp4;
codecs="avc1.64001E"',"video/webm":'video/webm; codecs="vp8, vorbis"',"video/x-
flv":'video/x-flv; codecs="vp6"'},cr=function(){var e="undefined"==typeof
TextTrack?{}:TextTrack;return{disabled:"DISABLED"in e?
e.DISABLED:"disabled",hidden:"HIDDEN"in e?e.HIDDEN:"hidden",showing:"SHOWING"in e?
e.SHOWING:"showing"}}(),lr=function(){var
e=document.createElement("track");return"track"in e&&"oncuechange"in e.track}
(),dr=new Mi,fr=0,hr=1,vr=2,pr=3,mr=4,gr=function(e){function t(e){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ii(this,t);var
i=ji(this,(t.__proto__||
Object.getPrototypeOf(t)).call(this,e,n)),r=e.querySelector("video");return r||
(r=document.createElement("video"),r.preload="none",i._element.appendChild(r)),i._v
ideo=r,n.htmlScanner&&n.htmlScanner.controls&&(i._video.controls=!
0),i._boundHandleVideoEvent=i.handleVideoEvent.bind(i),i.addVideoEventListeners(),i
._downloadRate=new or(i),i._bufferTimer=null,i._readyState=fr,i._paused=!
0,i._preload="none",i._externalDisplayActivated=!1,i._inFullscreen=!1,i}return
Di(t,e),qi(t,null,[{key:"displayName",get:function(){return"HTMLScanner"}},
{key:"supported",get:function(){return t.supportedVideoTypes.length>0}},
{key:"supportedVideoTypes",get:function(){var e=[];if("function"!=typeof
sr.canPlayType)return e;for(var t in ur){var n=ur[t];
$i.android&&"application/vnd.apple.mpegurl"===t||(!$i.android||
$i.androidMobile||"video/mp4"!==t?
sr.canPlayType(n).replace(/^no$/,"")&&e.push(t):e.push(t))}return e}},
{key:"supportedExternalDisplays",get:function(){return[AirPlayExternalDisplay]}},
{key:"supportsSettingVolume",get:function(){if($i.android)return!1;var
e=sr.volume;return sr.volume=.5*e,sr.volume!==e}},
{key:"supportsTextTracks",get:function(){return"undefined"!=typeof
sr.textTracks&&sr.textTracks instanceof TextTrackList}}]),qi(t,
[{key:"deactivate",value:function(){Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"deactivate",this).call(this),this.removeVideoEv
entListeners(),this.removeSnapshot(),this._video.style.display="none"}},
{key:"reactivate",value:function(){Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"reactivate",this).call(this),this.addVideoEvent
Listeners(),this._video.style.display=""}},
{key:"addVideoEventListeners",value:function(){var
e=this,t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:this._video;Zi.forEach(function(n)
{t.addEventListener(n,e._boundHandleVideoEvent)})}},
{key:"removeVideoEventListeners",value:function(){var
e=this,t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:this._video;Zi.forEach(function(n)
{t.removeEventListener(n,e._boundHandleVideoEvent)})}},{key:"play",value:function()
{var e=this;this._video.preload="",this._paused=!1;var t=this._video.play();return
t instanceof _t?t:new _t(function(t,n)
{e._video.addEventListener("playing",function(){return t()})})}},
{key:"pause",value:function(){this._paused=!0,this._video.pause()}},
{key:"addTextTrack",value:function(e){var
n=this,i=document.createElement("track");i.id="telecine-
track-"+e.id,i.src=e.src,i.kind=e.kind,i.srclang=e.language,i.label=e.label,i.addEv
entListener("cuechange",function(){return
e.dispatchEvent("cuechange")}),this._video.addEventListener("timeupdate",function()
{n._video.webkitDisplayingFullscreen&&(e.mode=i.track.mode)});var r=function(){var
t=$i.iOS&&n._video.webkitDisplayingFullscreen;return e._modeHasBeenSet&&!t?
void(i.track.mode=cr[e.mode]):void(e.mode=i.track.mode)},o=[];return
i.addEventListener("load",r),["loadeddata","seeking"].forEach(function(e)
{n._video.addEventListener(e,r),o.push([e,r])}),e._modeHasBeenSet&&(i.track.mode=cr
[e.mode]),lr||!function(){var t=[],r=function(){var n=i.track;if(n&&"disabled"!
==cr[n.mode]){if(t.length!==n.activeCues.length)return
e.dispatchEvent("cuechange"),void(t=Un(n.activeCues));for(var
r=0,o=n.activeCues.length;r<o;r++)if(n.activeCues[r].startTime!
==t[r].startTime)return
e.dispatchEvent("cuechange"),void(t=Un(n.activeCues))}};n._video.addEventListener("
timeupdate",r),o.push(["timeupdate",r])}(),He(function(){return
n._video.appendChild(i)}),dr.set(e,o),Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"addTextTrack",this).call(this,e)}},
{key:"removeTextTrack",value:function(e){var
n=this,i=this._video.querySelector("#telecine-
track-"+e.id);i&&this._video.removeChild(i);var r=dr.get(e);return
Array.isArray(r)&&r.forEach(function(e){var
t=Vi(e,2),i=t[0],r=t[1];n._video.removeEventListener(i,r)}),Bi(t.prototype.__proto_
_||Object.getPrototypeOf(t.prototype),"removeTextTrack",this).call(this,e)}},
{key:"getCuesForTrack",value:function(e){var n=this.getTrackById("telecine-
track-"+e.id);return
n?Un(n.cues):Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"getCuesForTrack",this).call(this,e)}},
{key:"getActiveCuesForTrack",value:function(e){var n=this.getTrackById("telecine-
track-"+e.id);return n?Un(n.activeCues):Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"getActiveCuesForTrack",this).call(this,e)}},
{key:"setModeForTrack",value:function(e,n){var i=this.getTrackById("telecine-
track-"+e.id);return i&&i.mode!==cr[n]&&(i.mode=cr[n],lr||"disabled"===n||
e.dispatchEvent("cuechange")),Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"setModeForTrack",this).call(this,e,n)}},
{key:"setSrcForTrack",value:function(e,n){var
i=this._video.querySelector("#telecine-track-"+e.id);return
i&&null===i.track.cues&&(i.src=n),Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"setSrcForTrack",this).call(this,e,n)}},
{key:"addCuePoint",value:function(e){var t=this,n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};if(this._cuePointTrack||
(this._cuePointTrack=this._video.addTextTrack("metadata"),this._cuePointTrack.mode=
"hidden",this._cuePointTrack.addEventListener("cuechange",function(e)
{[].concat(Hi(e.target.activeCues)).forEach(function(e)
{t.fire("cuepoint",rr.fromVTTCue(e))})})),e=parseFloat(e),isNaN(e))throw new
TypeError("Time must be a number.");if(e<0||e>=this.duration)throw new
TypeError("Time must be a positive number less than the duration of the
video.");var i=new rr(e,n);return this._cuePointTrack.addCue(i.vttCue),i}},
{key:"removeCuePoint",value:function(e){if(!e)throw new
TelecineError("InvalidCuePoint","The specified cue point is not valid.");return
this._cuePointTrack.removeCue(e.vttCue),!0}},
{key:"removeAllCuePoints",value:function(){var e=this;return
this._cuePointTrack&&this._cuePointTrack.length&&[].concat(Hi(this._cuePointTrack.c
ues)).forEach(function(t){e._cuePointTrack.removeCue(t)}),!0}},
{key:"oncanplay",value:function(){return!1}},
{key:"oncanplaythrough",value:function(){return!1}},{key:"onerror",value:function()
{if(!this._video.error)return!1;switch(this._video.error.code){case
this._video.error.MEDIA_ERR_SRC_NOT_SUPPORTED:return this.fire("error",new
TelecineError("MediaSrcNotSupportedError","The media was not
suitable.")),this._switchToNextFile(),!1;case
this._video.error.MEDIA_ERR_DECODE:return this.fire("error",new
TelecineError("MediaDecodeError","The media could not be
decoded.")),this._switchToNextFile(),!1;case
this._video.error.MEDIA_ERR_NETWORK:return this.fire("error",new
TelecineError("MediaNetworkError","A network error ocurred while fetching the
media.")),!1;case this._video.error.MEDIA_ERR_ABORTED:return this.fire("error",new
TelecineError("MediaAbortedError","The user agent aborted the fetching of the
media.")),!1;default:return this.fire("error",new
TelecineError("MediaUnknownError","An unknown error occurred.")),!1}}},
{key:"onloadedmetadata",value:function(){this.readyState=hr}},
{key:"onloadeddata",value:function(){this.readyState=vr}},
{key:"onsuspend",value:function(){this.updateReadyState()}},
{key:"onplay",value:function(){return this._ignorePlayEvent?
(this._ignorePlayEvent=!1,!1):void(("picture-in-
picture"===this.presentationMode||"fullscreen"===this.presentationMode||
this._inFullscreen)&&(this._paused=!1))}},{key:"onpause",value:function(){return
window.clearTimeout(this._bufferTimer),this._ignorePauseEvent?
(this._ignorePauseEvent=!1,!1):void(("picture-in-
picture"===this.presentationMode||"fullscreen"===this.presentationMode||
this._inFullscreen)&&(this._paused=!0))}},{key:"onended",value:function()
{if(this._paused=!0,this._video.paused||
this._video.pause(),this.currentTime<this._video.duration)return!1}},
{key:"onprogress",value:function(){this.updateReadyState()}},
{key:"ontimeupdate",value:function(){var
e=this,t=Re(this.buffered,this.currentTime),n=Vi(t,2),i=n[1],r=1e3*(i-
this.currentTime);if(!
$i.firefox&&(r<.25&&this.currentTime+r<this.duration&&(this.readyState=vr),window.c
learTimeout(this._bufferTimer),!this.paused)){for(var
o=0,a=this.buffered,s=Array.isArray(a),u=0,a=s?a:a[Oi.iterator]();;){var c;if(s)
{if(u>=a.length)break;c=a[u++]}else{if(u=a.next(),u.done)break;c=u.value}var
l=c,d=Vi(l,2),f=d[0],h=d[1];o+=h-f}o>=this.duration||
(this._bufferTimer=window.setTimeout(function(){e._video.paused||
e.readyState>vr&&(e.readyState=vr)},1500))}}},{key:"onwaiting",value:function()
{return $i.firefox&&(this.readyState=vr),!1}},{key:"onemptied",value:function()
{this._readyState=fr}},{key:"onseeked",value:function()
{this.readyState<vr&&(this.readyState=vr),this.updateReadyState()}},
{key:"onwebkitbeginfullscreen",value:function(){this._inFullscreen=!0}},
{key:"onwebkitendfullscreen",value:function(){this._inFullscreen=!
1,this._video.paused&&(this._paused=!0)}},
{key:"onwebkitpresentationmodechanged",value:function()
{switch(this._video.webkitPresentationMode){case"picture-in-
picture":this._video.controls=!0;break;case"inline":var
e=this._options.htmlScanner&&this._options.htmlScanner.controls;e||
(this._video.controls=!
1)}this.fire("presentationmodechange",this._video.webkitPresentationMode)}},
{key:"shouldHandleVideoEvent",value:function(e){return!0}},
{key:"handleVideoEvent",value:function(e)
{e.target===this._video&&this.shouldHandleVideoEvent(e)!==!1&&("function"==typeof
this["on"+e.type]&&this["on"+e.type](e)===!1||this.fire(e.type))}},
{key:"swapVideo",value:function(e,t){var
n=e.paused;this.removeVideoEventListeners(e),e.parentElement.replaceChild(t,e),e.pa
use(),t.currentTime=e.currentTime,n||
t.play(),this.addVideoEventListeners(t),this._video=t}},
{key:"onexternaldisplayactivated",value:function(e)
{this._externalDisplayActivated||(this._video!
==e.element&&(this._originalVideo=this._video,this.swapVideo(this._video,e.element)
),this._externalDisplayActivated=!0)}},
{key:"onexternaldisplaydeactivated",value:function(e)
{this._externalDisplayActivated&&(this._originalVideo&&(this.swapVideo(e.element,th
is._originalVideo),this._originalVideo=null),this._externalDisplayActivated=!1)}},
{key:"setVideoSrc",value:function(e){this._video.src=e}},
{key:"canSeekTo",value:function(e){var
t=this.duration;if(t&&e>t&&(e=t),this._video.seekable.length>0)for(var
n=0,i=this._video.seekable.length;n<i;n+
+)if(this._video.seekable.start(n)<=e&&this._video.seekable.end(n)>=e)return!
0;return!1}},{key:"seekToTime",value:function(e){var t=this;return
this.canSeekTo(e)?(Re(this.buffered,e).length||
(this.readyState=hr),this._video.currentTime=e,_t.resolve(this._video.currentTime))
:new _t(function(n,i){var r=function i(){t.canSeekTo(e)&&(Zi.forEach(function(e)
{t._video.removeEventListener(e,i)}),Re(t.buffered,e).length||
(t.readyState=hr),t._video.currentTime=e,n(t._video.currentTime))};Zi.forEach(funct
ion(e){t._video.addEventListener(e,r)})})}},{key:"takeSnapshot",value:function()
{var e=this._element.querySelector("[telecine-snapshot]");e||
(e=document.createElement("canvas"),e.setAttribute("telecine-
snapshot",""),this._element.appendChild(e)),e.setAttribute("width",this._element.cl
ientWidth+"px"),e.setAttribute("height",this._element.clientHeight+"px"),e.style.di
splay="";var
t=Ue(this._video.clientWidth,this._video.clientHeight,this._video.videoWidth,this._
video.videoHeight),n=t.width,i=t.height,r=t.left,o=t.top;e.style.cssText="position:
absolute;width:"+n+"px;height:"+i+"px;left:"+r+"px;top:"+o+"px";var
a=e.getContext("2d");a.drawImage(this._video,0,0,e.width,e.height)}},
{key:"removeSnapshot",value:function(){var
e=this._element.querySelector("[telecine-snapshot]");e&&(e.style.display="none")}},
{key:"getTrackById",value:function(e){if("function"==typeof
this._video.textTracks.getTrackById)return
this._video.textTracks.getTrackById(e);var t=document.getElementById(e);return t?
t.track:null}},{key:"updateReadyState",value:function(){if(this.buffered.length)
{var e=this.duration-this.buffered.end(this.buffered.length-
1),t=e/this._downloadRate.averageDownloadRate,n=this.duration-
this.currentTime;if(isFinite(t)){var
i=Re(this.buffered,this.currentTime),r=Vi(i,2),o=r[1],a=o-this.currentTime;t<n?
this.readyState=mr:this.readyState===mr&&t>n?this.readyState=pr:a>2&&(t<=n/2||
a>10)&&(this.readyState=pr)}}}},{key:"initDrm",value:function(){var
e=this._telecineVideo.drmHandler;e&&e.init(this)}},{key:"buffered",get:function()
{return ze.from(this._video.buffered)}},{key:"cuePoints",get:function(){return
this._cuePointTrack?[].concat(Hi(this._cuePointTrack.cues)).map(function(e){return
rr.fromVTTCue(e)}):Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"cuePoints",this)}},
{key:"currentFile",get:function(){return Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"currentFile",this)},set:function(e){var
n=this,i=!this._video.paused,r=this.currentTime,o=!this._currentFile||e.video.id!
==this._currentFile.video.id;if(o||this.takeSnapshot(),this._ignorePlayEvent=!
1,this._ignorePauseEvent=!
1,this._currentFile=e,o&&(this._video.preload=this._preload),this.constructor===t&&
this._video.readyState>fr&&(this._video.currentTime=0),($i.iOS||
$i.android)&&this._currentFile.video.title){var
a=this._currentFile.video.title;this._currentFile.video.subtitle&&(a=a+"
"+this._currentFile.video.subtitle),this._video.setAttribute("title",a)}else
this._video.removeAttribute("title");this._readyState=fr,this.setVideoSrc(this._cur
rentFile.src,o),this.fire("currentfilechange",e),this.constructor!==t||o?
i&&(this._video.preload="",this._video.play()):
(this._video.preload="",this.seekToTime(r).then(function(e){return
i&&n._video.play(),e}).catch(function(){}),this.once("canplay",function(){return
n.removeSnapshot()}),this.once("playing",function(){return n.removeSnapshot()}))}},
{key:"currentTime",get:function(){return this._video.currentTime},set:function(e)
{this.seekToTime(e)}},{key:"duration",get:function(){return this._video.duration}},
{key:"ended",get:function(){return this._video.ended}},{key:"loop",get:function()
{return this._video.loop},set:function(e){this._video.loop=e}},
{key:"muted",get:function(){return
this._video.muted},set:function(e){this._video.muted=e}},
{key:"paused",get:function(){return this._paused}},
{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e)
{this.video.playbackRate=e}},{key:"preload",get:function(){return
this._preload},set:function(e){this._video.preload=e,this._preload=e}},
{key:"presentationMode",get:function(){return this._video.webkitPresentationMode?
this._video.webkitPresentationMode:Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"presentationMode",this)},set:function(e)
{Ni(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"presentationMode",e,this),"function"==typeof
this._video.webkitSetPresentationMode&&this._video.webkitSetPresentationMode(e),"in
line"===e&&(this._video.setAttribute("playsinline",""),this._video.setAttribute("we
bkit-playsinline",""))}},{key:"supportedPresentationModes",get:function(){var
e=Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"supportedPresentationModes",this);return"functi
on"==typeof
this._video.webkitSupportsPresentationMode&&this._video.webkitSupportsPresentationM
ode("picture-in-picture")&&e.push("picture-in-picture"),e}},
{key:"video",get:function(){return this._telecineVideo},set:function(e){var
n=this;Ni(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"video",e,this),
$i.iOS&&this._externalDisplays.forEach(function(e)
{"AirPlay"===e.constructor.displayName&&(e.element=n._video)}),this.initDrm()}},
{key:"videoWidth",get:function(){return this._video.videoWidth}},
{key:"videoHeight",get:function(){return this._video.videoHeight}},
{key:"volume",get:function(){return this._video.volume},set:function(e)
{this._video.volume=e}},{key:"readyState",get:function(){return
this._readyState},set:function(e){if(this._readyState!==e&&!
(this._video.readyState===hr&&e>hr)){var
t=this._readyState;this._readyState=e,t>=pr&&e<=vr&&(this.fire("waiting"),this._vid
eo.paused||(this._ignorePauseEvent=!
0,this._video.pause())),t<=vr&&e===pr&&(this.fire("canplay"),this._paused===!
1&&this._video.play()),e===mr&&(t<=vr&&(this.fire("canplay"),this._paused===!
1&&this._video.paused&&(this._ignorePlayEvent=!
0,this._video.play())),this.fire("canplaythrough"))}}}]),t}
(Ji),yr="function"==typeof Oi&&"symbol"==typeof Oi.iterator?function(e){return
typeof e}:function(e){return e&&"function"==typeof
Oi&&e.constructor===Oi?"symbol":typeof e},_r=function(e,t){if(!(e instanceof
t))throw new TypeError("Cannot call a class as a function")},br=function(){function
e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!
1,i.configurable=!0,"value"in i&&(i.writable=!
0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return
n&&e(t.prototype,n),i&&e(t,i),t}}(),wr=function(){function e(e,t){var n=[],i=!0,r=!
1,o=void 0;try{for(var a,s=e[Oi.iterator]();!
(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!
0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return
function(t,n){if(Array.isArray(t))return t;if(Oi.iterator in Object(t))return
e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable
instance")}}(),kr=[],Sr=function(){function e(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},i=n.retryCount,r=void 0===i?3:i,o=n.parallel,a=void 0===o?
1:o,s=n.includeWithSpeeds,u=void 0===s||
s;_r(this,e),this._queue=[],this._activeXhrRequests=new Set,this._retries=new
Mi,this._retryCount=r,this._running=!1,this._processingQueue=!
1,this._parallel=a,this._includeWithSpeeds=u,this._pendingFetchMap=new
Mi,Ye(this),window.addEventListener("online",function()
{t.start()}),window.addEventListener("offline",function()
{t.stop(),t.abort()})}return br(e,null,[{key:"getPercentileSpeed",value:function()
{var e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:5,t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:.8,n=kr.slice(-e);return Ke(n,t)}},
{key:"getAverageSpeed",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:5,t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:[],n=kr.slice(-e);return We(n,t)}},
{key:"getMedianSpeed",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:5,t=kr.slice(-e);return Xe(t)}},
{key:"getResponseSpeeds",value:function(){return kr}},
{key:"getTime",value:function(){return"undefined"!=typeof performance?
performance.now():(new Date).getTime()}},
{key:"calculateExponentialBackoff",value:function(e){return 500*Math.pow(2,e)
+Math.round(1e3*Math.random())}}]),br(e,[{key:"add",value:function(e,t,n){return
this._addSegmentToQueue(e,t,n),this._running&&!
this._processingQueue&&this._processQueue(),this}},{key:"start",value:function()
{return this._running?this:(this._running=!0,this._processQueue(),this)}},
{key:"stop",value:function(){return this._running=!1,this}},
{key:"abort",value:function(){var e=this,t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:null,n=this._queue.filter(function(e){return!t||
t===e[0].stream});n.forEach(function(t){var
n=e._getIdentifierFromData(t),i=wr(n,3),r=i[2];e.fire("downloadabort",r)}),this._qu
eue=this._queue.filter(function(e){return t&&t!
==e[0].stream}),this._activeXhrRequests.forEach(function(e){t&&t!==e.stream||
e.abort()})}},{key:"_insertAtPosition",value:function(e,t){for(var
n=0;n<this._queue.length;n++){var i=this._queue[n]
[0].priority;if(i>e.priority)break}this._queue.splice(n,0,[e,t])}},
{key:"_addSegmentToQueue",value:function(e,t,n){return
e.hasOwnProperty("priority")?void this._insertAtPosition(e,t):void
this._queue[n?"unshift":"push"]([e,t])}},{key:"_processQueue",value:function()
{if(this._running){this._processingQueue=!0;for(var e=this._parallel-
this._activeXhrRequests.size,t=0;t<e;t++)this._fetchOne()}}},
{key:"_retry",value:function(t,n,i){var
r=this,o=n[0],a=n[1];if(this._retries.get(o)||
this._retries.set(o,0),this._retries.set(o,this._retries.get(o)
+1),this._retries.get(o)>this._retryCount)return void
this._handleDownloadError(i,t.status);var
s=e.calculateExponentialBackoff(this._retries.get(o));setTimeout(function(){var e=!
0;r.add(o,a,e)},s)}},{key:"_handleXHRResponse",value:function(e,t,n,i){return
e.status>=500&&e.status<600?void this._retry(e,t,n):e.status>=400&&e.status<500?
void this._handleDownloadError(n,e.status):(this.fire("downloadend",n,{headers:
$e(e.getAllResponseHeaders())}),void i.call(this,new Uint8Array(e.response)))}},
{key:"_handleDownloadError",value:function(e,t){this.fire("downloaderror",e,t)}},
{key:"_getIdentifierFromData",value:function(e){var t=e[1],n=e[0],i=n;return
n.id&&(i=n.id),[n.url,n.byteRange,i,t]}},
{key:"_continueProcessingQueue",value:function(){return
0===this._activeXhrRequests.size&&0===this._queue.length?
void(this._processingQueue=!
1):void(this._activeXhrRequests.size<this._parallel&&this._processQueue())}},
{key:"_fetchOne",value:function(){var t=this;if(0===this._queue.length)return
void(this._processingQueue=!1);var
n=this._queue.shift(),i=this._getIdentifierFromData(n),r=wr(i,4),o=r[0],a=r[1],s=r[
2],u=r[3],c=n[0].includeWithBandwidthChecks,l=e.getTime(),d=new
XMLHttpRequest;d.stream=n[0].stream,d.addEventListener("progress",function(e)
{e.lengthComputable&&t._pendingFetchMap.set(d,
{bytesTotal:e.total,bytesLoaded:e.loaded,percent:e.loaded/e.total,identifier:s})}),
d.open("GET",o,!
0),d.responseType="arraybuffer",a&&d.setRequestHeader("Range","bytes="+a),d.onload=
function(i){t._activeXhrRequests.delete(d),t._pendingFetchMap.delete(d);var
r=(e.getTime()-l)/1e3,o=i.target.response.byteLength;if(o>40960){var
a=8*o,f=a/r;kr.length>100&&kr.shift(),t._includeWithSpeeds&&c&&kr.push(f)}t._handle
XHRResponse(d,n,s,u),t._continueProcessingQueue()},d.onerror=function()
{t._activeXhrRequests.delete(d),t._pendingFetchMap.delete(d),t._retry(d,n,s),t._con
tinueProcessingQueue()},d.onabort=function()
{t._pendingFetchMap.delete(d),t._activeXhrRequests.delete(d),t.fire("downloadabort"
,s),0===t._activeXhrRequests.size&&0===t._queue.length&&(t._processingQueue=!
1),t._continueProcessingQueue()},this.fire("downloadstart",s),this._activeXhrReques
ts.add(d),d.send()}},{key:"parallel",get:function(){return
this._parallel},set:function(e){this._parallel=e}},
{key:"pendingFetches",get:function(){var e=this,t=[];return
this._activeXhrRequests.forEach(function(n)
{e._pendingFetchMap.get(n)&&t.push(e._pendingFetchMap.get(n))}),t}}]),e}
(),xr=function(){function e(t)
{_r(this,e),Ye(this),this._sorcerer=t,this._sourceBuffer=null,this._activeStreamInd
ex=null,this._needsStreamSwitch=!1,this._needInitSegment=!
0,this._lastAppended=null,this._toRemove=[],this._streams=[],this._quotaExceeded=!
1,this._quotaExceededTimer=null,this._appendingFinalSegment=!
1,this._finalSegmentTime=void 0,this._addingInitSegment=!1}return br(e,
[{key:"addStream",value:function(e){var t=this;e.on("segmentadd",function(){return
t._process()});var n=this._streams.push(e)-
1;e.index=n,null===this._activeStreamIndex&&(this._setActiveIndex(n),this._needsStr
eamSwitch=!0)}},{key:"switchTo",value:function(e){var t=this,n=!
(arguments.length>1&&void 0!==arguments[1])||
arguments[1],i=e;"object"===("undefined"==typeof
e?"undefined":yr(e))&&(i=e.index);var r=this._activeStreamIndex!==i,o=r;if(!
r&&this._needsStreamSwitch&&(r=!0),r){this._needsStreamSwitch=!1;var
a=this._activeStreamIndex,s=this._streams[a];s&&o&&n&&s.abort(),this._switchToIndex
=i,this._setActiveIndex(i)}return this._process(),new _t(function(e){return r?
void(t._resolveSwitchComplete=function()
{t._switchToIndex===i&&(t._resolveSwitchComplete=null,e(),t.fire("streamchange",i))
}):void e()})}},{key:"isTimeInBuffer",value:function(e){for(var
t=0;t<this.sourceBuffer.buffered.length;t++){var
n=this.sourceBuffer.buffered.start(t),i=this.sourceBuffer.buffered.end(t);if(n<=e&&
i>=e)return!0}return!1}},{key:"hasAppendedFinalSegment",value:function(){return
void 0!==this._finalSegmentTime&&this.isTimeInBuffer(this._finalSegmentTime)}},
{key:"clear",value:function(){this._streams.forEach(function(e){e.clear()})}},
{key:"remove",value:function(e){var
t=this,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this._sorcerer._mediaSource.duration;return new _t(function(i,r)
{t._toRemove.push([e,n,i]),t._process()})}},{key:"_attachEvents",value:function()
{var
e=this;this.bound={handleUpdateEnd:this._handleUpdateEnd.bind(this)},this._sourceBu
ffer.addEventListener("updateend",this.bound.handleUpdateEnd),this._sorcerer.on("en
dofstream",function()
{e._handleUpdateEnd()}),this._sorcerer.on("ended",this.bound.handleEnded)}},
{key:"_handleUpdateEnd",value:function(e)
{this._appendingFinalSegment&&(this._finalSegmentTime=this._sourceBuffer.buffered.e
nd(this._sourceBuffer.buffered.length-
1),this._sorcerer._fireStreamHasEnded(),this._appendingFinalSegment=!
1),this._lastAppended&&(this.fire("appendbufferend",this._lastAppended),this._lastA
ppended=null,this._resolveSwitchComplete&&this._resolveSwitchComplete()),this._proc
ess()}},{key:"_removeEventListeners",value:function()
{this.bound&&(this._sourceBuffer&&this._sourceBuffer.removeEventListener("updateend
",this.bound.handleUpdateEnd),this._sorcerer.off("endofstream",this.bound.handleUpd
ateEnd),this._sorcerer.off("ended",this.bound.handleEnded))}},
{key:"_setActiveIndex",value:function(e){this._needInitSegment=!
0,this._activeStreamIndex=e,this._sorcerer._frameDropper.streamIndex=e}},
{key:"_process",value:function(){var
e=this,t=this._streams[this._activeStreamIndex];if(!this._sourceBuffer)return void
this.on("sourcebufferattach",this._process);if(t&&"closed"!
==this._sorcerer._mediaSource.readyState){var n=this._sourceBuffer;if(!n.updating)
{if(this._toRemove.length){var i=function(){var
t=e._toRemove.shift(),i=wr(t,3),r=i[0],o=i[1],a=i[2],s=e;n.addEventListener("update
end",function e(t)
{n.removeEventListener("updateend",e),a(),clearTimeout(s._quotaExceededTimer),s._qu
otaExceededTimer=setTimeout(function(){s._quotaExceeded=!1,s._process()},5e3)});var
u=r;return n.remove(u,o),{v:void 0}}();if("object"===("undefined"==typeof
i?"undefined":yr(i)))return i.v}if(!this._quotaExceeded&&!this._addingInitSegment)
{if(this._needInitSegment)return this._addingInitSegment=!
0,t.getInitSegment().then(function(t){return
e._lastAppended=null,n.appendBuffer(t),e._addingInitSegment=!
1,t}).catch(function(t){
e._addingInitSegment=!1}),void(this._needInitSegment=!1);var
r=t.getNextSegment();if(null!==r){var
o=t.getIdForSegment(r),a=t.isFinal(r);a&&(this._appendingFinalSegment=!
0),this._lastAppended=o,this.fire("appendbufferstart",o);try{n.appendBuffer(r)}catc
h(e){if("QuotaExceededError"===e.name){this._quotaExceeded=!0;var
s=6;if(this._sorcerer._video.currentTime>s){var
u=0,c=this._sorcerer._video.currentTime-
s;this._sorcerer.removeBuffer(u,c)}t._readyToAppend.unshift(r)}}}}}}}},
{key:"streams",get:function(){return this._streams}},
{key:"activeStreamIndex",get:function(){return this._activeStreamIndex}},
{key:"sourceBuffer",get:function(){return this._sourceBuffer},set:function(e)
{this._sourceBuffer=e,this._attachEvents(),this.fire("sourcebufferattach")}}]),e}
(),Tr=function(){function e(t){var n=this,i=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:new
Sr;_r(this,e),Ye(this),this._readyToAppend=[],this._initSegment=null,this._index=Na
N,this._codec=i,this._fetcher=r,this._fetcher.start(),this._bufferData=new
Mi,this._segmentToId={},this._getInitSegmentPromise=new _t(function(i,r){return
e.isValidSegmentUrl(t)?void n._fetcher.add({url:t.url||
t,byteRange:t.byteRange,id:null,stream:n},function(e){n._initSegment=e,i(e)}):
(n._initSegment=t,void i(t))})}return br(e,null,
[{key:"isValidSegmentUrl",value:function(e){return"string"==typeof
e||"string"==typeof e.url&&"string"==typeof e.byteRange}}]),br(e,
[{key:"getIdForSegment",value:function(t){return e.isValidSegmentUrl(t)?
this._segmentToId[t]:this._bufferData.get(t).id}},{key:"isFinal",value:function(e)
{return this._bufferData.get(e).final}},{key:"addSegment",value:function(t){var
n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},r=i.identifier,o=void 0===r?null:r,a=i.isFinalSegment,s=void 0!
==a&&a,u=i.loadOnly,c=void 0!==u&&u,l=i.priority,d=void 0===l?
0:l,f=i.includeWithBandwidthChecks,h=void 0===f||f;return new _t(function(i,r)
{return e.isValidSegmentUrl(t)?(n._segmentToId[t]=o||
t,n.fire("queued",n.getIdForSegment(t)),void n._fetcher.add({url:t.url||
t,byteRange:t.byteRange,id:n.getIdForSegment(t),stream:n,includeWithBandwidthChecks
:h,priority:d},function(e){n._bufferData.set(e,{id:o||
t,final:s}),n._readyToAppend.push(e),n.fire("bufferqueueadd",n.getIdForSegment(t)),
c||n.fire("segmentadd"),i()})):(n._bufferData.set(t,
{id:o,final:s}),n._readyToAppend.push(t),n.fire("bufferqueueadd",o),void i())})}},
{key:"clear",value:function(){this._readyToAppend=[]}},
{key:"abort",value:function(){var
e=this;this._getInitSegmentPromise.then(function(){e._fetcher.abort(e)})}},
{key:"getNextSegment",value:function(){return 0===this._readyToAppend.length?
null:this._readyToAppend.shift()}},{key:"getInitSegment",value:function(){return
this._getInitSegmentPromise}},{key:"codec",get:function(){return
this._codec},set:function(e){this._codec=e}},{key:"index",get:function(){return
this._index},set:function(e){this._index=e}},{key:"pendingFetches",get:function()
{return this._fetcher.pendingFetches}}]),e}(),Er=function(){function e(t)
{_r(this,e),this._video=t,this._running=!
1,this._droppedFramesTimeout=null,this._droppedFrameData={},this._decodedFrameData=
{},this._droppedFrames=0,this._decodedFrames=0,this._streamIndex="default",this.bou
nd={startCheckingDroppedFrames:this._startCheckingDroppedFrames.bind(this),stopChec
kingDroppedFrames:this._stopCheckingDroppedFrames.bind(this)}}return br(e,
[{key:"start",value:function(){return this._startCheckingDroppedFrames(),this}},
{key:"stop",value:function(){return this._stopCheckingDroppedFrames(),this}},
{key:"destroy",value:function()
{this._stopCheckingDroppedFrames(),this._removeEvents()}},
{key:"getDroppedFrameRate",value:function(e,t){var n=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:"average",i=this._droppedFrameData[t];if(!i)return
0;if(i.length<e)return 0;var r=i.slice(-e);return"median"===n?Xe(r):We(r)}},
{key:"getDroppedFrameTotal",value:function()
{return{dropped:this._getTotalDroppedFrames(),total:this._getTotalFrames()}}},
{key:"_attachEvents",value:function()
{this._video.addEventListener("playing",this.bound.startCheckingDroppedFrames),this
._video.addEventListener("pause",this.bound.stopCheckingDroppedFrames),this._video.
addEventListener("ended",this.bound.stopCheckingDroppedFrames)}},
{key:"_removeEvents",value:function()
{this._video.removeEventListener("playing",this.bound.startCheckingDroppedFrames),t
his._video.removeEventListener("pause",this.bound.stopCheckingDroppedFrames),this._
video.removeEventListener("ended",this.bound.stopCheckingDroppedFrames)}},
{key:"_startCheckingDroppedFrames",value:function(){this._running=!
0,this._checkDroppedFrames()}},{key:"_stopCheckingDroppedFrames",value:function()
{this._running=!1}},{key:"_checkDroppedFrames",value:function(){var
e=this;if(this._running&&null!==this._streamIndex)
{clearTimeout(this._droppedFramesTimeout);var t=this._getTotalDroppedFrames(),n=t-
this._droppedFrames;this._droppedFrames=t;var i=this._getTotalFrames(),r=i-
this._decodedFrames;this._decodedFrames=i,this._droppedFrameData[this._streamIndex]
||
(this._droppedFrameData[this._streamIndex]=[]),this._decodedFrameData[this._streamI
ndex]||
(this._decodedFrameData[this._streamIndex]=[]),this._droppedFrameData[this._streamI
ndex].length>100&&this._droppedFrameData[this._streamIndex].shift(),this._decodedFr
ameData[this._streamIndex].length>100&&this._decodedFrameData[this._streamIndex].sh
ift(),this._droppedFrameData[this._streamIndex].push(n),this._decodedFrameData[this
._streamIndex].push(r),this._droppedFramesTimeout=setTimeout(function()
{e._checkDroppedFrames()},1e3)}}},{key:"_getTotalDroppedFrames",value:function()
{return"function"==typeof this._video.getVideoPlaybackQuality?
this._video.getVideoPlaybackQuality().droppedVideoFrames:this._video.webkitDroppedF
rameCount||0}},{key:"_getTotalFrames",value:function(){if("function"==typeof
this._video.getVideoPlaybackQuality){var
e=this._video.getVideoPlaybackQuality();return e.totalVideoFrames-
e.droppedVideoFrames-e.corruptedVideoFrames}return
this._video.webkitDecodedFrameCount||0}},{key:"streamIndex",get:function(){return
this._streamIndex},set:function(e){this._streamIndex=e}}]),e}(),Lr=function()
{function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};_r(this,e),this._video=t,this._options=n,Ye(this),this._options.duration&&(this.
_options.duration=Math.ceil(100*this._options.duration)/100),this._bufferCount=0,th
is._frameDropper=new Er(t),this._mediaSource=new MediaSource,this._fetcher=new
Sr({parallel:1}),this._video.src=URL.createObjectURL(this._mediaSource),this._buffe
rsForCodec={},this._readyPromiseResolve=null,this._attachEvents()}return br(e,
[{key:"switchTo",value:function(e){return
1===this._bufferCount&&this.video.switchTo(e)}},
{key:"getCurrentSpeed",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"average":t,i=e.howMany,r=void
0===i?10:i,o=e.weights,a=void 0===o?[]:o,s=e.percentile,u=void 0===s?
null:s;return"average"===n?Sr.getAverageSpeed(r,a):"median"===n?
Sr.getMedianSpeed(r):Sr.getPercentileSpeed(r,u)}},
{key:"getResponseSpeeds",value:function(){return Sr.getResponseSpeeds()}},
{key:"getDroppedFrameRate",value:function(e){var t=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:this.activeStreamIndex,n=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:"average";return
this._frameDropper.getDroppedFrameRate(e,t,n)}},
{key:"getDroppedFrameTotal",value:function(){return
this._frameDropper.getDroppedFrameTotal()}},{key:"clear",value:function(){for(var e
in this._buffersForCodec)this._buffersForCodec[e].clear()}},
{key:"removeBuffer",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this._video.duration;if(e>t)return _t.resolve();var n=[];for(var i in
this._buffersForCodec)n.push(this._buffersForCodec[i].remove(e,t));return
_t.all(n)}},{key:"addStream",value:function(e,t){var
n=this,i=this._getCodecType(e);this._buffersForCodec[i]||!function()
{n._bufferCount+=1;var t=new
xr(n,i);n._buffersForCodec[i]=t,n.readyPromise.then(function(){var r=void
0;try{r=n._mediaSource.addSourceBuffer(e)}catch(e){if(22!==e.code)return void
n.fire("srcnotsupported",e);r=n._buffersForCodec[i]}n._options.duration&&(r.appendW
indowEnd=n._options.duration),t.sourceBuffer=r}),
["appendbufferstart","appendbufferend","streamchange"].forEach(function(e)
{t.on(e,function(t){n.fire(e,t)})})}();var r=new
Tr(t,e,this._fetcher);return["queued","bufferqueueadd"].forEach(function(e)
{r.on(e,function(t){n.fire(e,t)})}),this._buffersForCodec[i].addStream(r),r}},
{key:"destroy",value:function()
{this.clear(),this._removeEventListeners(),this._frameDropper.destroy(),this._fetch
er.abort(),this._video.src&&URL.revokeObjectURL(this._video.src)}},
{key:"_attachEvents",value:function(){var
e=this;this.bound={handleSourceOpen:this._handleSourceOpen.bind(this)},this.readyPr
omise=new _t(function(t,n)
{e._readyPromiseResolve=t,e._mediaSource.addEventListener("sourceopen",e.bound.hand
leSourceOpen)}),
["downloadstart","downloadend","downloadabort","downloaderror"].forEach(function(t)
{e._fetcher.on(t,function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r+
+)i[r]=arguments[r];e.fire.apply(e,[t].concat(i))})})}},
{key:"_sourceBuffersAreUpdating",value:function(){for(var
e=0;e<this._mediaSource.sourceBuffers.length;e+
+)if(this._mediaSource.sourceBuffers[e].updating)return!0;return!1}},
{key:"_fireStreamHasEnded",value:function(){for(var e in this._buffersForCodec){var
t=this._buffersForCodec[e];if(!
t.hasAppendedFinalSegment())return}"open"===this._mediaSource.readyState&&(this._so
urceBuffersAreUpdating()||
(this._mediaSource.endOfStream(),this.fire("endofstream")))}},
{key:"_handleSourceOpen",value:function()
{this._options.duration&&(this._mediaSource.duration=this._options.duration),this._
readyPromiseResolve(),this._mediaSource.removeEventListener("sourceopen",this.bound
.handleSourceOpen)}},{key:"_re
moveEventListeners",value:function(){for(var e in
this._buffersForCodec)this._buffersForCodec[e]._removeEventListeners()}},
{key:"_getCodecType",value:function(e){return
0===e.indexOf("audio")?"audio":"video"}},{key:"mediaSource",get:function(){return
this._mediaSource}},{key:"streams",get:function(){return
1===this._bufferCount&&this.video.streams}},{key:"activeStreamIndex",get:function()
{return 1===this._bufferCount&&this.video.activeStreamIndex}},
{key:"video",get:function(){return!!
this._buffersForCodec.video&&this._buffersForCodec.video}},
{key:"audio",get:function(){return!!
this._buffersForCodec.audio&&this._buffersForCodec.audio}}]),e}(),Pr=function()
{function e(t){Ii(this,e),this.scanner=t}return qi(e,null,
[{key:"displayName",get:function(){return"Brain"}}]),qi(e,
[{key:"shouldPowerUp",value:function(e,t){return!1}},
{key:"shouldPowerDown",value:function(e,t){return!1}},
{key:"canPowerUp",value:function(e,t){return 1!==e.length&&t<e.length-1}},
{key:"canPowerDown",value:function(e,t){return 1!==e.length&&t>0}},
{key:"filterStreams",value:function(e){return e}}]),e}(),Cr=function(e){function
t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ii(this,t);var
i=ji(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return
i._options=n,i.finalSegmentLoaded=!
1,i.blacklisted=[],i.whitelisted=[],i.MAX_LOADABLE_SEGMENTS_AUTO=3,i.MAX_LOADABLE_S
EGMENTS_LOCKED=15,i}return Di(t,e),qi(t,null,[{key:"displayName",get:function()
{return"Skyfire"}}]),qi(t,[{key:"shouldPowerUp",value:function(e,t,n){var
i=.85;n&&this._options.startingBandwidthThreshold&&(i=this._options.startingBandwid
thThreshold);var r=e.indexOf(t);if(r===-1&&(r=0),!this.canPowerUp(e,r))return!1;var
o=this.getCurrentSpeed();if(!o)return!1;var
a=this._getStreamFromSpeed(o,i,e);return a!==r&&a}},
{key:"shouldPowerDown",value:function(e,t){var n=e.indexOf(t),i=n===-1;if(i)return
e.length-1;if(!this.canPowerDown(e,n))return!1;var r=this.getCurrentSpeed();if(!
r)return!
1;if(this.hasTooManyDroppedFrames(n,t,this._options.droppedFrameSwitchPercent))retu
rn n-1;var o=this._getStreamFromSpeed(r,.9,e);return o!==n&&o}},
{key:"hasTooManyDroppedFrames",value:function(e,t,n){var
i=10,r=this.scanner.sorcerer.getDroppedFrameRate(i,e,"median"),o=t.framerate,a=r/o*
100;return a>=n&&(this.blacklist(e),!0)}},{key:"isTimeInBuffer",value:function(e)
{var t=this.scanner._video;return this._timesAreInRange(e,e,t.buffered)}},
{key:"getCurrentSpeed",value:function(){var e=3,t=[1,2,5];return
this.scanner.sorcerer.getCurrentSpeed({type:"average",howMany:e,weights:t})}},
{key:"getDistanceFromBuffer",value:function(e){for(var
t=e,n=this.scanner._video,i=0;i<n.buffered.length;i+
+)if(n.buffered.start(i)<=e&&n.buffered.end(i)>=e){t=n.buffered.end(i);break}return
t-e}},{key:"getTimeEstimateToLoad",value:function(e,t){if(null===t)return 3;var
n=t.segments[e],i=n.end-
n.start,r=this.getCurrentSpeed(),o=i*(t.bitrate+t.audioBitrate)/r;return 1.3*o}},
{key:"canPlayFromTimeInStream",value:function(e,t){if(!
this.isTimeInBuffer(e))return!1;if(!t)return!1;var n=this.getSegmentsToLoad(!
1,"video",t);if(0===n.length)return!0;var i=this.getDistanceFromBuffer(e);return
this.getTimeEstimateToLoad(n[0],t)<i}},{key:"getSegmentsToLoad",value:function(e)
{var t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:"video",n=arguments[2],i=this.scanner._video,r=this.scanner.currentTim
e,o=[],a=this._getSecondsToLoadAhead(r,i.duration,n),s=r+a,u=this.scanner.sorcerer[
t].activeStreamIndex,c=this.scanner._streams[t]
[u],l=this.scanner.sorcerer[t].sourceBuffer,d=null;l&&(d=l.buffered);for(var
f=0;f<c.segments.length;f++){var h=c.segments[f],v=f===c.segments.length-1;if(!
(h.end<r||h.start>s)){var p=r>=h.start&&r<h.end,m=this._isSegmentInBuffer(h,d,v);!
e&&m||e&&m&&p||(p?o.push(f):s>=h.start&&o.push(f))}}return o}},
{key:"blacklist",value:function(e){this.blacklisted[e]=1}},
{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:[];this.whitelisted=e}},{key:"filterStreams",value:function(e){for(var
t=this.scanner._video.clientWidth,n=this.scanner._video.clientHeight,i=[],r=void
0,o=!1,a=0;a<e.length;a+
+)if(r&&r[0]===e[a].width&&r[1]===e[a].height)i.push(e[a]);else{if(o)break;if(!
(this.blacklisted[a]&&this.whitelisted.indexOf(a)===-1||
this.whitelisted.length&&this.whitelisted.indexOf(a)===-
1))if(this.whitelisted.length)i.push(e[a]);else{var
s=this._getScaleFromDimensions(t,n,e[a].width,e[a].height),u=1e3/
(window.devicePixelRatio||1),c=n<u?1.75:1;s>=c&&(o=!
0),i.push(e[a]),r=[e[a].width,e[a].height]}}return i}},
{key:"_getStreamFromSpeed",value:function(e,t,n){for(var i=0,r=i;r<n.length;r+
+)e*t>n[r].bitrate+n[r].audioBitrate&&(i=r);return i}},
{key:"_getVisibleDimensions",value:function(e,t,n,i){var r=n/i,o=e-t*r,a=t-e/r,s=e-
o,u=t-a;return o>0&&(u=t),a>0&&(s=e),[s,u]}},
{key:"_getScaleFromDimensions",value:function(e,t,n,i){var
r=this._getVisibleDimensions(e,t,n,i),o=n*i;this.scanner.video&&this.scanner.video.
metadata.percentShown&&(o*=this.scanner.video.metadata.percentShown);var
a=window.devicePixelRatio||1,s=r[0]*r[1]*a*a;return o/s}},
{key:"_getSecondsToLoadAhead",value:function(e,t,n){var
i=12e3,r=n&&n.bitrate>i;return 1===this.whitelisted.length?r?
30:this.MAX_LOADABLE_SEGMENTS_LOCKED*this.segmentDuration:this.MAX_LOADABLE_SEGMENT
S_AUTO*this.segmentDuration}},{key:"_round",value:function(e){var
t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:3;if(e=parseFloat(e),isNaN(e))return 0;var n=Math.pow(10,t);return
Math.round(e*n)/n}},{key:"_timesAreInRange",value:function(e,t,n){var
i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!n)return!
1;t=Math.min(t,this.scanner._video.duration);for(var r=0;r<n.length;r++){var
o=this._round(n.start(r))-i,a=this._round(n.end(r))+i;if(o<=e&&a>=t)return!
0}return!1}},{key:"_hasSeparateStreams",value:function(){return
this.scanner._streams.video.length>0&&this.scanner._streams.audio.length>0}},
{key:"_isSegmentInBuffer",value:function(e,t,n){var i=1;return
this._hasSeparateStreams()&&(i=.05),n&&!this.finalSegmentLoaded?
(this.finalSegmentLoaded=!0,!1):this._timesAreInRange(e.start,e.end,t,i)}},
{key:"segmentDuration",get:function(){return 6}}]),t}
(Pr),Ar=2,Or=6,Mr=.85,Fr=function(e){function t(e){var n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:{};Ii(this,t);var i=ji(this,(t.__proto__||
Object.getPrototypeOf(t)).call(this,e));return
i._options=n,i.MAX_LOADABLE_SEGMENTS_AUTO=10,i.inVirginState=!0,i}return
Di(t,e),qi(t,null,[{key:"displayName",get:function(){return"BBA"}}]),qi(t,
[{key:"getSegmentsToLoad",value:function(e){var n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:"video",i=arguments[2];return
Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"getSegmentsToLoad",this).call(this,!1,n,i)}},
{key:"shouldPowerUp",value:function(e,t,n){var i=e.indexOf(t);if(i===-1&&(i=0),!
this.canPowerUp(e,i))return!1;var r=this.scanner.sorcerer.video._sourceBuffer?
this.scanner.sorcerer.video._sourceBuffer.buffered:null,o=this._getStreamFromBuffer
(r,e,i);return!(o<=i)&&o}},{key:"shouldPowerDown",value:function(e,t){var
n=e.indexOf(t),i=n===-1;if(i)return e.length-1;if(!this.canPowerDown(e,n))return!
1;var r=this.getCurrentSpeed();if(!r)return!
1;if(this.hasTooManyDroppedFrames(n,t,this._options.droppedFrameSwitchPercent))retu
rn n-1;var o=this.scanner.sorcerer.video._sourceBuffer?
this.scanner.sorcerer.video._sourceBuffer.buffered:null,a=this._getStreamFromBuffer
(o,e,n);return!(a>=n)&&a}},{key:"_getStreamFromBuffer",value:function(e,t,n){var
i=this,r=arguments.length>3&&void 0!
==arguments[3]&&arguments[3],o=this.segmentDuration*Or,a=this.getDistanceFromBuffer
(this.scanner.currentTime);if(this.scanner.sorcerer.video.streams[n].pendingFetches
.forEach(function(e){a+=e.percent*i.segmentDuration}),!
r&&this._isVirginBuffer(e,t)||!e){var s=this.getCurrentSpeed();return
this._getStreamFromSpeed(s,Mr,t)}if(a<=Ar*this.segmentDuration)return 0;var
u=Math.min(1,(a-Ar*this.segmentDuration)/o);if(a===this.scanner._video.duration-
this.scanner._video.currentTime&&(u=1),this.scanner.fire("bufferoccupancy",u),1===u
)return t.length-1;for(var c=[],l=1;l<t.length;l++)c.push(t[l].bitrate);var
d=u*c.slice(-1)[0],f=[];c.forEach(function(e){f.push(Math.abs(d-e))});var
h=f.indexOf(Math.min.apply(Math,f))+1,v=Math.max(0,n-1),p=d>c[v-1]&&d<=c[v]||
d>=c[v]&&d<c[v+1];return p?n:h}},{key:"_isVirginBuffer",value:function(e,t){return!
(!this.inVirginState||
this._getStreamFromSpeed(this.getCurrentSpeed(),Mr,t)===this._getStreamFromBuffer(e
,t,this.scanner.sorcerer.video.activeStreamIndex,!0))||
(this.inVirginState&&(this.inVirginState=!1),!1)}}]),t}
(Cr),Ir=1,qr=2,Rr=3,Br=4,Dr=1e4,jr=2e3,Nr=5,Vr="video",Hr="audio",Ur=function(e)
{function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};Ii(this,t);var i=ji(this,(t.__proto__||
Object.getPrototypeOf(t)).call(this,e,n));return
i.reset(),n.mediaSourceScanner&&(i._maxPreloadStreamIndex=n.mediaSourceScanner.maxP
reloadStreamIndex,i._shouldUseBBA=n.mediaSourceScanner.shouldUseBBA),i}return
Di(t,e),qi(t,null,[{key:"displayName",get:function(){return"MediaSourceScanner"}},
{key:"supported",get:function(){return"undefined"!=typeof MediaSource&&"undefined"!
=typeof Set}},{key:"supportedVideoTypes",get:function()
{return["application/vnd.vimeo.dash+json"]}}]),qi(t,
[{key:"deactivate",value:function(){Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"deactivate",this).call(this),this.sorcerer&&thi
s.sorcerer.destroy(),this.reset()}},{key:"reset",value:function()
{this._waitingOnSet=new Set,this._streamsForSegment={},this._shouldUseBBA?
this._brain=new Fr(this,this._options.mediaSourceScanner||{}):this._brain=new
Cr(this,this._options.mediaSourceScanner||{}),this._ready=!1,this._startedPlaying=!
1,this._manifest=null,this._streams={},this._streams[Hr]=[],this._streams[Vr]=[],th
is._audioStreams=[],this._onReady=null,this._baseUrl=null,this._lastTargetStreamId=
null,this._timeToSeekTo=null,this._resolveSeek=null,this._resolveStartPreload=null,
this._reloadingExistingVideo=!1,this._lastStreamIndex=null,th
is._checkSwitchUp=!1,this._clearBufferAtTime=!
1,this._preloadStream=null,this._removeBufferPromise=null,this._badPlaybackTimer=nu
ll,this._isBufferingTooLong=!1,this._ranIntoBuffer=!
1,this._bufferCount=0,this._restrictedStreamIndexes=[],this._switching={},this._fir
eEndedTimeout=null,this._firedFakeEndedEvent=!1}},
{key:"preloadStream",value:function(){var e=this;return this._preloadStream?
this._preloadStream:(this._preloadStream=new _t(function(t,n){var
i=1;e._streams.audio.length&&(i=2);var r=0,o=!
1,a=e.sorcerer.video.activeStreamIndex;e._restrictedStreamIndexes.length&&(a=e._str
eams[Vr].indexOf(e._manifest.video[e._restrictedStreamIndexes[0]]));var
s=e._brain.getSegmentsToLoad(!
1,Vr,e._getCurrentStream()),u=0;s.length>0&&(u=s[0]);var c=function(){var
t=arguments.length>0&&void 0!
==arguments[0]&&arguments[0];t&&(a=e.sorcerer.video.activeStreamIndex);for(var n in
e._streams)if(0!==e._streams[n].length){var
i=a;n===Hr&&(i=e._getAudioIndexFromVideo(a));var
s=e._getSegmentUrl(i,u,n),c=e._isFinalSegment(i,u),l=e.sorcerer[n].streams[i],d={st
ream:i,segment:u,type:n},f=!0,h=s;if(e._useRangeRequests()){var
v=e._getRangeForSegment(i,u,n);h={url:h,byteRange:v}}"audio"!==n||i!==o?
("audio"===n&&o===!1&&(o=i),l.addSegment(h,
{identifier:d,isFinalSegment:c,loadOnly:f,priority:0})):
(r+=1,e._handleAppendBufferEnd(d))}},l=function n(o){if(r+=1,!(r<i)&&o.segment===u)
{if(0===e._restrictedStreamIndexes.length){var s=!
0,l=e._getStreamIndexToLoad(s);if(l!==!1&&l>o.stream)return
e.sorcerer.video.switchTo(l,!
1),e._streams.audio.length&&e.sorcerer.audio.switchTo(e._getAudioIndexFromVideo(l),
!1),r=0,void c(!0)}var d=e._getCurrentStream(a),f=d.segments[0].end,h=!
0,v=e._getDuration(h);e.currentTime>=v&&(e.currentTime=v),e.currentTime>f&&(e.sorce
rer.clear(),e._waitingOnSet=new Set),e.sorcerer.video.switchTo(a,!
1),e._streams.audio.length&&e.sorcerer.audio.switchTo(e._getAudioIndexFromVideo(a),
!1),e.sorcerer.off("bufferqueueadd",n),e._ready=!
0,t()}};e.sorcerer.on("bufferqueueadd",l),c()}),this._preloadStream)}},
{key:"loadManifest",value:function(e){var t=this;return new _t(function(n,i){var
r=new XMLHttpRequest;r.open("GET",e,!0),r.timeout=jr,r.onload=function()
{if(r.status>=400)return t.reset(),void i("JSON manifest failed to
load.");try{n(JSON.parse(r.response))}catch(e){i()}},r.onerror=function()
{t.reset(),i("JSON manifest failed to load.")},r.ontimeout=function()
{t.reset(),t.fire("manifesttimeout"),i("JSON manifest timed out.")},r.send()})}},
{key:"setVideoSrc",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!
==arguments[2])||arguments[2];if(i&&!t&&this._onReady)
{if(("metadata"===this._preload||"none"===this._preload&&!this._paused)&&!
this._ready)return void this._onReady.then(function(){var
t=n._paused;n.setVideoSrc(e,t,!1)});if("auto"===this._preload)return void
this._onReady.then(function(){n.setVideoSrc(e,!1,!1)})}if(t)
{this.reset();try{this._video.currentTime=0}catch(e){}}t||!this._paused||
this.sorcerer||(t=!0);var
r="_initializeManifest";t&&(this._video.preload="",r="_initialize");var
o=e.split("/");o.pop();var a=o.join("/")+"/";this._reloadingExistingVideo=!
t,this._onReady=this._startPreload(e,this._preload).then(this.loadManifest.bind(thi
s)).then(function(e){return
n._baseUrl=a,e}).then(this[r].bind(this)),t&&"auto"===this._preload&&(this._onReady
=this._addCallbackToPromise(this._onReady,this.preloadStream.bind(this),!
1)),this._onReady=this._addCatchToPromise(this._onReady)}},
{key:"updateReadyState",value:function(){}},
{key:"lockStreamIndexes",value:function(){var
e=this,t=this._restrictedStreamIndexes.map(function(t){return
e._streams[Vr].indexOf(e._manifest.video[t])});if(this._video.paused||
(this._ignorePauseEvent=!0,this._video.pause()),this._switching[Vr]=!
1,this._brain.lock(t),this._startedPlaying||"auto"===this._preload){var
n=7,i=Math.max(this.currentTime-
n,0),r=Math.min(this.currentTime+n,this._video.duration);this.sorcerer.removeBuffer
(i,r).then(function(){return!e._startedPlaying&&"auto"===e._preload||e.ended?void
e._loadSegments():(e.seekToTime(e.currentTime),void(!
e._paused&&e._video.paused&&(e._ignorePlayEvent=!0,e.play())))})}}},
{key:"seekToTime",value:function(e){var t=this;if(e===this.currentTime)return
_t.resolve();this._shouldUseBBA&&(this._brain.inVirginState=!
0),clearTimeout(this._fireEndedTimeout),this._firedFakeEndedEvent=!1;var
n=null===this._timeToSeekTo;if(n||
(this._lastSeekReject&&(this._lastSeekReject(),this._lastSeekReject=null),this._see
kInProgressPromise=null,this._timeToSeekTo=null,this._resolveSeek=null),this._timeT
oSeekTo=e,this._ready)for(var i in this._streams)if(this._streams[i].length>0){var
r=this.sorcerer[i].activeStreamIndex,o=this.sorcerer[i].streams[r];o.abort()}return
this._seekInProgressPromise=this._getSeekReadyPromiseForTime(e),_t.all([this._onRea
dy,this._removeBufferPromise]).then(function()
{t._loadSegments()}),this._paused&&0===e&&this.fire("seeking"),this.readyState=Ir,!
n&&this._waitingOnPlay&&this.play(),this._onReady.then(function(){return
t._seekInProgressPromise}).catch(function(e){})}},
{key:"takeSnapshot",value:function(){}},{key:"initDrm",value:function(){}},
{key:"onstalled",value:function(){return!1}},{key:"onseeked",value:function(e)
{this._startedPlaying&&(this._loadSegments(),Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"onseeked",this).call(this,e))}},
{key:"onended",value:function(e)
{if(clearTimeout(this._fireEndedTimeout),this._firedFakeEndedEvent)return!
1;Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"onended",this).call(this,e);var n=6;return
this.sorcerer.removeBuffer(n),!0}},{key:"onseeking",value:function(e){var
t=this;this._startedPlaying&&(clearTimeout(this._seekTimeout),this._seekTimeout=set
Timeout(function(){t._loadSegments()},100))}},{key:"onloadeddata",value:function()
{var e=this;He(function(){e.readyState=Br})}},{key:"ontimeupdate",value:function(e)
{var t=this;if(clearTimeout(this._fireEndedTimeout),0===this.currentTime)return
this._startedPlaying;if(this._timeToSeekTo)return!1;if(this._startedPlaying||
(this._startedPlaying=!
0),this._clearBufferAtTime&&this.currentTime>=this._clearBufferAtTime){var
n=2;this.sorcerer.removeBuffer(0,this._clearBufferAtTime-
n),this._clearBufferAtTime=!1}this._loadSegments();var
i=this.sorcerer.getDroppedFrameTotal();this.fire("droppedframes",i);var
r=this.sorcerer.getResponseSpeeds(),o=this._streams[Vr]
[this.sorcerer.video.activeStreamIndex],a={speed:this._brain.getCurrentSpeed(),bitr
ate:o.bitrate,speeds:r};this.fire("bandwidth",a);var
s=this._video.buffered.length;if(!s)return!0;var u=this._video.buffered.end(s-
1);if(!this._firedFakeEndedEvent&&this.currentTime+.5>this._video.duration){var
c=500;this._fireEndedTimeout=setTimeout(function()
{t.onended(),t._firedFakeEndedEvent=!0,t.fire("ended",{simulated:!
0})},c)}if(Math.ceil(u)===Math.ceil(this._video.duration))return!0;var l=.2;return
Math.abs(this.currentTime-u)<l?!
this._ranIntoBuffer&&(this._bufferCount+=1,this.fire("streambufferstart",
{hasLowerStreamIndex:this.sorcerer[Vr].activeStreamIndex>0}),this._ranIntoBuffer=!
0,this._startBadPlaybackTimer(),this.readyState=qr,!1):void 0}},
{key:"onprogress",value:function()
{this._brain.canPlayFromTimeInStream(this.currentTime,this._getCurrentStream())&&(c
learTimeout(this._badPlaybackTimer),this.readyState<Rr&&(this.readyState=Br),this._
ranIntoBuffer&&(this.fire("streambufferend"),this._ranIntoBuffer=!1))}},
{key:"onplay",value:function(){return"picture-in-
picture"===this.presentationMode&&(this._paused=!1,!0)}},
{key:"onpause",value:function(){return"picture-in-
picture"===this.presentationMode&&(this._paused=!0,!0)}},
{key:"onwaiting",value:function(e){return!1}},{key:"onerror",value:function()
{return!!
this._video.error&&(this._video.error.code===this._video.error.MEDIA_ERR_DECODE?
(this.fire("scannererror",{reason:"encountered media decode error"}),!
1):Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"onerror",this).call(this))}},
{key:"pause",value:function(){var e=this;He(function()
{e.fire("pause")}),Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"pause",this).call(this)}},
{key:"play",value:function(){var e=this,t=null;return
this._firedFakeEndedEvent&&(this.currentTime=0),He(function()
{e.fire("play")}),this._waitingOnPlay=!0,this._paused=!1,$i.android&&!
this._ready&&(this._waitingOnPlay=!
1,t=this._video.play()),this._resolveStartPreload&&this._resolveStartPreload(),this
._reloadingExistingVideo||this._ready||"auto"===this._preload||
(this._onReady=this._addCallbackToPromise(this._onReady,this.preloadStream.bind(thi
s))),this._ready||this._startBadPlaybackTimer(),this._onReady.then(function()
{return _t.resolve(e._seekInProgressPromise)}).then(function(){return
e._waitingOnPlay=!1,e._streams.audio.length||
(e._video.currentTime=e.currentTime),e._paused||(t=e._video.play()),t})}},
{key:"_getAudioIndexFromVideo",value:function(e){return 0!
==this._streams.audio.length&&(this._streams.audio.length>1&&this._streams.video[e]
.bitrate>1e6?1:0)}},{key:"_addCallbackToPromise",value:function(e,t){var n=!
(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e.then(t);return
n&&(i=this._addCatchToPromise(i)),i}},{key:"_addCatchToPromise",value:function(e)
{var t=this;return e.catch(function(e){return t.fire("fileerror",{reason:e}),new
_t(function(e,t){})})}},{key:"_handleBufferForSeek",value:function()
{if(this._ready){var e=this._streams[Vr]
[this.sorcerer.video.activeStreamIndex],t=e.bitrate/1e3,n=12e3;t>n&&(this._removeBu
fferPromise=this.sorcerer.removeBuffer())}}},
{key:"_startPreload",value:function(e,t){var n=this;return new _t(function(i,r)
{return"none"!==t||n._reloadingExistingVideo&&!n._paused?void
i(e):void(n._resolveStartPreload=function(){i(e),n._resolveStartPreload=null})})}},
{key:"_getSeekReadyPromiseForTime",value:function(){var
e=this,t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:this._timeToSeekTo;return new _t(function(n,i){var r=!
e._startedPlaying&&0===t;return
r||e._brain.canPlayFromTimeInStream(t,e._getCurrentStream())?void n(t):
(e._handleBufferForSeek(),void(e._resolveSeek=n))}).then(function(t)
{e._timeToSeekTo=null,e._seekInProgressPromise=null,e.readyState=Br;var n=new
_t(function(t,n){e._lastSeekReject=n;var i=function n()
{t(e._video.currentTime),e._video.removeEventListener("seeked",n)};e._video.addEven
tListener("seeked",i)});return e._video.currentTime=t,n})}},
{key:"_handlePreloadChanged",value:function(e,t){"auto"!
==e&&"auto"===t&&(this._onReady=this._addCallbackToPromise(this._onReady,this.prelo
adStream.bind(this))),e!==t&&"none"!
==t&&this._resolveStartPreload&&this._resolveStartPreload()}},
{key:"_initializeManifest",value:function(e){var t=this;return new _t(function(n,i)
{t._manifest=e,t._streams[Vr]=t._sortStreams(e.video),e.audio&&(t._streams[Hr]=t._s
ortStreams(e.audio));for(var r=0;r<t._streams[Vr].length;r++){var o=0;if(e.audio)
{var a=t._streams[Hr][t._getAudioIndexFromVideo(r)];a&&(o=a.bitrate)}t._streams[Vr]
[r].audioBitrate=o}t._initDrm(t._streams[Vr],t._streams[Hr]),n()})}},
{key:"_setUpSorcerer",value:function(e,t)
{this.sorcerer&&this.sorcerer.destroy(),this.sorcerer=new Lr(e,t)}},
{key:"_getDuration",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]&&arguments[0],t=e?1/0:0;for(var n in
this._streams)this._streams[n].length&&(t=Math[e?"min":"max"](t,this._streams[n]
[0].duration));return t}},{key:"_initialize",value:function(e){var t=this;return
new _t(function(n,i){t._initializeManifest(e).then(function(){var
i=t._brain.filterStreams(t._streams[Vr]),r=i.length-
1,o=e.video[0];if(t._restrictedStreamIndexes.length&&(o=e.video[t._restrictedStream
Indexes[0]]),void 0!==t._maxPreloadStreamIndex){var
a=t._streams[Vr].indexOf(e.video[t._maxPreloadStreamIndex]);r<=a&&(o=t._streams[Vr]
[r])}t._setUpSorcerer(t._video,
{duration:t._getDuration()}),t.sorcerer.on("srcnotsupported",function()
{t.fire("scannererror",{reason:"this codec is not supported for mediasource
playback"})});var s=t._streams[Vr].indexOf(o),u=function(e)
{t._streams[e].forEach(function(n,i){var
r=t._getSegmentUrl(i,"init",e);if(t._useRangeRequests()&&t._streams[e]
[i].init_segment_range){
var
o=t._getRangeForSegment(i,"init",e);r={url:r,byteRange:o}}t.sorcerer.addStream(n.mi
me_type+'; codecs="'+t._streams[e][i].codecs+'"',r)})};for(var c in
t._streams)u(c);t.sorcerer.video.switchTo(s),t.sorcerer.on("queued",t._handleQueued
.bind(t)),t.sorcerer.on("downloadabort",t._handleAborted.bind(t)),t.sorcerer.on("ap
pendbufferend",t._handleAppendBufferEnd.bind(t)),t.sorcerer.on("downloadend",t._han
dleDownloadEnd.bind(t)),t.sorcerer.on("downloaderror",t._handleDownloadError.bind(t
)),t.sorcerer.video.on("streamchange",function(e)
{e>t._lastStreamIndex&&t.currentTime>0&&(t._checkSwitchUp=!
0),t._lastStreamIndex=e;var n=t._manifest.video.indexOf(t._streams[Vr]
[e]),i={index:n,streams:t._manifest.video};t.fire("streamchange",i),t._startBadPlay
backTimer()}),t.sorcerer.on("droppedframes",function(){return
t.fire("alert","droppedframes")}),t.sorcerer.mediaSource.addEventListener("sourceen
ded",function(){t.fire("progress")}),n()})})}},
{key:"_sortStreams",value:function(e){function t(e,t){var
n=e.width*e.height*e.bitrate,i=t.width*t.height*t.bitrate;return
e.width===t.width&&e.height===t.height?e.framerate-t.framerate:n-i}var
n=e.slice(0);return n.sort(t),n}},{key:"_useRangeRequests",value:function()
{return!!this._manifest.video[0].segments[0].range}},
{key:"_getRangeForSegment",value:function(e,t,n){return"init"===t?this._streams[n]
[e].init_segment_range:this._streams[n][e].segments[t].range}},
{key:"_getSegmentPriority",value:function(e,t){var n=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:Vr,i="init"===t;if(i)return 0;var r=this._streams[n]
[e].segments[t].start;return r}},{key:"_getSegmentUrl",value:function(e,t){var
n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vr,i="init"===t;if(i&&!
this._streams[n][e].init_segment_range&&this._streams[n]
[e].init_segment.indexOf(".")===-1){var r=this._streams[n][e].init_segment;return
Ne(r)}var
o=this._baseUrl,a=this._manifest.base_url&&this._manifest.base_url.indexOf("//")!
==-1;return a&&(o=this._manifest.base_url),this._manifest.base_url&&!
a&&(o+=this._manifest.base_url),this._streams[n][e].base_url&&(o+=this._streams[n]
[e].base_url),this._useRangeRequests()?o:"init"===t?o+=this._streams[n]
[e].init_segment:(this._streams[n][e].segments[t].url&&(o+=this._streams[n]
[e].segments[t].url),o)}},{key:"_key",value:function(e,t,n){return e+":"+t+":"+n}},
{key:"_isFinalSegment",value:function(e,t){return t===this._streams[Vr]
[e].segments.length-1}},
{key:"_getCurrentlyLoadingStreamsForSegment",value:function(e,t){var
n=[],i=this._streamsForSegment[e];if(!i)return n;for(var r=0;r<i.length;r+
+)this._waitingOnSet.has(this._key(i[r],e,t))&&n.push(i[r]);return n}},
{key:"_getCurrentStream",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:Vr;return"undefined"!=typeof
this.sorcerer&&(e=this.sorcerer[t].activeStreamIndex),this._streams[t][e]}},
{key:"_getStreamIndexToLoad",value:function(e){var
t=this._streams[Vr];if(t=this._brain.filterStreams(t),0===t.length)return!
1;if(this._switching[Vr])return!1;var n=t[t.length-1];if(n.id!
==this._lastTargetStreamId){this._lastTargetStreamId=n.id;var
i=this._streams[Vr].indexOf(n),r={index:i,streams:this._streams[Vr]};this.fire("str
eamtargetchange",r)}var
o=this._getCurrentStream(),a=this._brain.shouldPowerUp(t,o,e);return
this._checkForBadPlayback(),a===!1&&(a=this._brain.shouldPowerDown(t,o)),a===!1?
a:this._streams[Vr].indexOf(t[a])}},{key:"_startBadPlaybackTimer",value:function()
{var
e=this;clearTimeout(this._badPlaybackTimer),this._badPlaybackTimer=setTimeout(funct
ion(){e._isBufferingTooLong=!0,e._checkForBadPlayback()},Dr)}},
{key:"_checkForBadPlayback",value:function()
{this._isHavingBadPlaybackInCurrentQuality()&&this.fire("alert","streamstudder")}},
{key:"_isHavingBadPlaybackInCurrentQuality",value:function(){return!!
this._restrictedStreamIndexes.length&&(!(!
this._isBufferingTooLong&&this._bufferCount<Nr)&&(this._isBufferingTooLong,this._bu
fferCount>=Nr,this._isBufferingTooLong=!1,this._bufferCount=0,!0))}},
{key:"_loadSegmentsForType",value:function(){var e=this,t=arguments.length>0&&void
0!==arguments[0]?arguments[0]:Vr,n=this._getStreamIndexToLoad();t===Hr&&(n===!
1&&(n=this.sorcerer[Vr].activeStreamIndex),n=this._getAudioIndexFromVideo(n),this.s
orcerer[Hr].activeStreamIndex===n&&(n=!1));var i=!1;n!==!
1&&(i=n>this.sorcerer[t].activeStreamIndex,this._switching[t]=!
0,this.sorcerer[t].switchTo(n).then(function(){e._switching[t]=!1}));for(var
r=this._brain.getSegmentsToLoad(i,t,this._getCurrentStream()),o=this.sorcerer[t].ac
tiveStreamIndex,a=0;a<r.length;a++){var
s=this._getSegmentUrl(o,r[a],t),u=this._getCurrentlyLoadingStreamsForSegment(r[a],t
);if(!(u.length>1||1===u.length&&o<=u[0])){var
c=this._isFinalSegment(o,r[a],t),l={stream:o,segment:r[a],type:t},d=this.sorcerer[t
].streams[o],f=s;if(this._useRangeRequests()){var
h=this._getRangeForSegment(o,r[a],t);f={url:f,byteRange:h}}var
v=this._getSegmentPriority(o,r[a],t),p=t===Vr;d.addSegment(f,
{identifier:l,isFinalSegment:c,priority:v,includeWithBandwidthChecks:p})}}}},
{key:"_loadSegments",value:function(){var e=this;return
this._onReady.then(function(){for(var t in
e._streams)e._streams[t].length>0&&e._loadSegmentsForType(t)})}},
{key:"_handleQueued",value:function(e)
{this._waitingOnSet.add(this._key(e.stream,e.segment,e.type)),this._streamsForSegme
nt[e.segment]||
(this._streamsForSegment[e.segment]=[]),this._streamsForSegment[e.segment].indexOf(
e.stream)===-1&&this._streamsForSegment[e.segment].push(e.stream)}},
{key:"_clearWaitingOn",value:function(e){var
t=this,n=this._streamsForSegment[e.segment];n.forEach(function(n)
{t._waitingOnSet.delete(t._key(n,e.segment,e.type))})}},
{key:"_handleAborted",value:function(e)
{this._streamsForSegment[e.segment]&&this._clearWaitingOn(e)}},
{key:"_handleAppendBufferEnd",value:function(e)
{this._checkSwitchUp&&e.stream===this._lastStreamIndex&&(this._checkSwitchUp=!
1,this._clearBufferAtTime=this._streams[Vr]
[e.stream].segments[e.segment].start),this._streamsForSegment[e.segment]&&this._cle
arWaitingOn(e),null!
==this._timeToSeekTo&&this._resolveSeek&&this._brain.canPlayFromTimeInStream(this._
timeToSeekTo,this._getCurrentStream())&&(this._resolveSeek(this._timeToSeekTo),this
._resolveSeek=null)}},{key:"_handleDownloadEnd",value:function(e,t)
{this.fire("downloadend",{identifier:e,data:t})}},
{key:"_handleDownloadError",value:function(e,t)
{this._clearWaitingOn(e),this.fire("downloaderror",{identifier:e,status:t})}},
{key:"_initDrm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
[];if(this._telecineVideo.drmHandler){var n={audio:t.map(function(e){return
e.mime_type+';codecs="'+e.codecs+'"'}),video:e.map(function(e){return
e.mime_type+';codecs="'+e.codecs+'"'})};this._telecineVideo.drmHandler.init(this,n)
}}},{key:"preload",get:function(){return this._preload},set:function(e)
{this._handlePreloadChanged(this._preload,e),this._preload=e}},
{key:"videoWidth",get:function(){var e=this._getCurrentStream();return e?
e.width:this._video.videoWidth}},{key:"videoHeight",get:function(){var
e=this._getCurrentStream();return e?e.height:this._video.videoHeight}},
{key:"restrictedStreamIndexes",get:function(){return
this._restrictedStreamIndexes},set:function(){var e=this,t=arguments.length>0&&void
0!==arguments[0]?arguments[0]:[];this._restrictedStreamIndexes.join(",")!
==t.join(",")&&(this._restrictedStreamIndexes=t,this._onReady.then(function()
{return e.lockStreamIndexes()}))}},{key:"currentTime",get:function(){return
this._firedFakeEndedEvent?this._video.duration:null!==this._timeToSeekTo?
this._timeToSeekTo:this._video.currentTime},set:function(e){(this._startedPlaying||
0!==e)&&this.seekToTime(e)}}]),t}(gr),zr=function(e){function t(e){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ii(this,t);var
i=ji(this,(t.__proto__||
Object.getPrototypeOf(t)).call(this,e,n)),r=document.createElement("canvas");return
i._backingCanvas=r.getContext("2d"),i._resizeHandler=function(){return
i.onresize()},i}return Di(t,e),qi(t,null,[{key:"displayName",get:function()
{return"AsciiEffect"}},{key:"supported",get:function(){return!/iphone|
ipod/i.test(navigator.userAgent)}},{key:"supportedScanners",get:function()
{return[gr,Ur]}}]),qi(t,[{key:"activate",value:function(){return
window.addEventListener("resize",this._resizeHandler,!1),this._telecine.paused?void
this._renderFrame():void this._startRendering()}},
{key:"deactivate",value:function()
{this._stopRendering(),window.removeEventListener("resize",this._resizeHandler,!
1),this._element.removeChild(this._output)}},{key:"onplay",value:function()
{this._startRendering()}},{key:"onpause",value:function(){this._stopRendering()}},
{key:"onended",value:function(){this._stopRendering()}},
{key:"onseeked",value:function(){this._renderFrame()}},
{key:"onresize",value:function(){var
e=this._telecine._currentScanner._video,t=this._getRenderProperties(e.clientWidth,e
.clientHeight,this._telecine.videoWidth,this._telecine.videoHeight);this._adjustRen
derSize(this._output,t),this._telecine.paused&&this._renderFrame()}},
{key:"_getRenderProperties",value:function(e,t,n,i){var
r=Ue(e,t,n,i),o=Math.max(Math.min(Math.floor(r.height/10),60),10);this._options.col
or&&(o=Math.floor(o/2));var
a=document.createElement("pre");a.style.cssText="position:absolute;left:-
9001px;top:0;font-size:10px;margin:0;padding:0;line-
height:1",a.innerHTML="X",this._element.appendChild(a);var
s=t/o/a.clientHeight*10+"px";a.style.fontSize=s;for(var
u=a.clientHeight,c=Math.ceil(r.height/u),l=r.height-
c*u,d=parseFloat((l/c+u)/u),f=a.clientWidth,h=Math.ceil(r.width/f),v=[],p=0;p<h;p+
+)v.push("X");a.innerHTML=v.join("");var m=r.width-a.clientWidth,g=m/h+"px";return
this._element.removeChild(a),
{fontSize:s,lineHeight:d,letterSpacing:g,horizontalResolution:h,verticalResolution:
c,top:r.top}}},{key:"_createOutputElement",value:function(e){var
t=document.createElement("pre");return
t.style.cssText="position:absolute;left:0;top:0;margin:0;padding:0;background:#000;
width:100%;height:100%;text-
align:center",t.style.color=this._options.color?"#fff":"#0f0",this._adjustRenderSiz
e(t,e),this._telecine._currentScanner._video.setAttribute("crossorigin","anonymous"
),t}},{key:"_adjustRenderSize",value:function(e,t){var
n=t.fontSize,i=t.lineHeight,r=t.letterSpacing,o=t.horizontalResolution,a=t.vertical
Resolution,s=t.top;this._backingCanvas.width=o,this._backingCanvas.height=a,this._r
enderWidth=o,this._renderHeight=a,e.style.fontSize=n,e.style.lineHeight=i,e.style.l
etterSpacing=r,e.style.paddingTop=s+"px"}},{key:"_getFrame",value:function(e){var
t=arguments.length>1&&void 0!
==arguments[1]&&arguments[1];this._backingCanvas.drawImage(e,0,0,this._renderWidth,
this._renderHeight);var
n=null;try{n=this._backingCanvas.getImageData(0,0,this._renderWidth,this._renderHei
ght).data}catch(e){this._stopRendering()}for(var i=[],r=0;r<this._renderHeight;r++)
{for(var o=0;o<this._renderWidth;o++){var
a=4*(r*this._renderWidth+o),s=n[a],u=n[a+1],c=n[a+2],l=3*s+4*u+c>>>3;if(t){var d="
CGO08@"[Math.floor(l/256*7)];if(" "===d||s>=250&&u>=250&&c>=250)
{i.push(d);continue}i.push('<span
style="color:rgb('+s+","+u+","+c+')">'+d+"</span>")}else{var f="
.,:;iltfLG@"[Math.floor(l/256*13)];i.push(f)}}i.push("\n")}return i.join("")}},
{key:"_requestRenderAnimationFrame",value:function(){var
e=this;this._animationFrame&&window.cancelAnimationFrame(this._animationFrame),this
._content&&(this._animationFrame=window.requestAnimationFrame(function()
{e._output.innerHTML=e._content,e._content=null}))}},
{key:"_renderFrame",value:function(){if(!this._output){var
e=this._telecine._currentScanner._video,t=this._getRenderProperties(e.clientWidth,e
.clientHeight,this._telecine.videoWidth,this._telecine.videoHeight);this._output=th
is._createOutputElement(t),this._element.appendChild(this._output)}this._content=th
is._getFrame(this._telecine._currentScanner._video,this._options.color),this._reque
stRenderAnimationFrame()}},{key:"_startRendering",value:function(){var
e=this;this._interval&&window.clearInterval(this._interval);var
t=Math.min(Math.max(this._options.fps,15),30);this._interval=window.setInterval(fun
ction(){e._renderFrame()},1/t)}},{key:"_stopRendering",value:function()
{this._interval&&(window.clearInterval(this._interval),this._interval=null)}}]),t}
(Ui),Wr=function(){var e="Shockwave Flash",t="application/x-shockwave-
flash",n="ShockwaveFlash.ShockwaveFlash",i=window.navigator,r=0,o=!
1,a=null;if("undefined"!=typeof i.plugins&&"object"===Fi(i.plugins[e]))
{if(a=i.plugins[e].description,a&&("undefined"==typeof i.mimeTypes||!
i.mimeTypes[t]||i.mimeTypes[t].enabledPlugin)){o=!0,a=a.replace(/^.*\s+(\S+\s+\S+
$)/,"$1");var
s=parseInt(a.replace(/^(.*)\..*$/,"$1"),10),u=parseInt(a.replace(/^.*\.
(.*)\s.*$/,"$1"),10);r=parseFloat(s+"."+u)}}else if("undefined"!=typeof
window.ActiveXObject)try{var c=new
ActiveXObject(n);c&&(a=c.GetVariable("$version"),a&&(o=!0,a=a.split(" ")
[1].split(","),r=parseFloat(parseInt(a[0],10)+"."+parseInt(a[1],10))))}catch(e)
{}return{installed:o,version:r}}(),Kr=function(e){function t(e){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ii(this,t),!
n.swfScanner||!n.swfScanner.swfUrl)throw new Error("The url to the swf is required
to use the SWFScanner.");var i=ji(this,(t.__proto__||
Object.getPrototypeOf(t)).call(this,e,n)),r="flideo_"+De().replace(/-/g,"_");return
window[r]={onFlashEvent:function(e){return
i.onEvent(e)}},i._swf=i.createSwf(i._options.swfScanner.swfUrl,r+".onFlashReady"),i
._element.appendChild(i._swf),i._loaded=!1,i._volume=1,i._muted=!
1,i._loadedPromise=new _t(function(e,t){window[r].onFlashReady=function()
{i._loaded=!
0,i.attachVideoEvents(r+".onFlashEvent"),e()},setTimeout(t,1e4)}),i}return
Di(t,e),qi(t,null,[{key:"displayName",get:function(){return"SWFScanner"}},
{key:"supported",get:function(){return Wr.installed&&Wr.version>=10.1}},
{key:"supportedVideoTypes",get:function()
{return["application/vnd.apple.mpegurl","video/mp4","video/x-flv"]}}]),qi(t,
[{key:"deactivate",value:function()
{this._swf.parentElement.removeChild(this._swf)}},{key:"play",value:function(){var
e=this;return this._loadedPromise.then(function(){return e._swf._play()})}},
{key:"pause",value:function(){var e=this;this.onLoaded(function(){return
e._swf._pause()})}},{key:"attachVideoEvents",value:function(e){var
t=this;Zi.forEach(function(n){t._swf.api_addEventListener(n,e)})}},
{key:"createSwf",value:function(e,t){var
n=document.createElement("object");n.setAttribute("type","application/x-shockwave-
flash"),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribu
te("data",e);var
i={flashvars:"ready="+t,movie:e,allowfullscreen:"true",allowscriptaccess:"always",b
gcolor:"#000000",wmode:"opaque",quality:"high",scalemode:"noscale"};for(var r in i)
{var
o=document.createElement("param");o.setAttribute("name",r),o.setAttribute("value",i
[r]),n.appendChild(o)}return n}},{key:"onEvent",value:function(e)
{"function"==typeof this["on"+e.type]&&this["on"+e.type](e)===!1||
this.fire(e.type,e)}},{key:"onLoaded",value:function(e)
{this._loadedPromise=this._loadedPromise.then(e)}},{key:"onerror",value:function()
{var e=this._swf.getError(),t=e.code;switch(t){case 1:return this.fire("error",new
TelecineError("MediaAbortedError","The user agent aborted the fetching of the
media.")),!1;case 2:return this.fire("error",new
TelecineError("MediaNetworkError","A network error ocurred while fetching the
media.")),!1;case 3:return this.fire("error",new
TelecineError("MediaDecodeError","The media could not be
decoded.")),this._switchToNextFile(),!1;case 4:return this.fire("error",new
TelecineError("MediaSrcNotSupportedError","The media was not
suitable.")),this._switchToNextFile(),!1;default:return this.fire("error",new
TelecineError("MediaUnknownError","An unknown error occurred.")),!1}}},
{key:"buffered",get:function(){if(!this._loaded)return Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"buffered",this);var
e=this._swf.getBuffered(),n=e.start,i=e.end;return ze(n,i)}},
{key:"currentFile",get:function(){return Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"currentFile",this)},set:function(e){var
n=this,i=this._currentFile;Ni(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"currentFile",e,this),this.onLoaded(function()
{var t=!
n._swf.getPaused(),r=n._swf.getCurrentTime();n._swf.setSrc(e.src),n.fire("currentfi
lechange",e),i&&(n._swf.setCurrentTime(r),t&&n._swf._play())})}},
{key:"currentTime",get:function(){return this._loaded?
this._swf.getCurrentTime():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"currentTime",this)},set:function(e){var
t=this;this.onLoaded(function(){return t._swf.setCurrentTime(e)})}},
{key:"duration",get:function(){return this._loaded?
this._swf.getDuration():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"duration",this)}},{key:"ended",get:function()
{return this._loaded?this._swf.getEnded():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"ended",this)}},{key:"loop",get:function()
{return this._loaded?this._swf.getLoop():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"loop",this)},set:function(e){var
t=this;this.onLoaded(function(){return t._swf.setLoop(e)})}},
{key:"muted",get:function(){return this._muted},set:function(e){var
t=this;this._muted=e;var n=e===!0?0:this._volume;this.onLoaded(function(){return
t._swf.setVolume(n)})}},{key:"paused",get:function(){return this._loaded?
this._swf.getPaused():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"paused",this)}},
{key:"videoWidth",get:function(){return this._loaded?
this._swf.getVideoWidth():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"videoWidth",this)}},
{key:"videoHeight",get:function(){return this._loaded?
this._swf.getVideoHeight():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"videoHeight",this)}},
{key:"volume",get:function(){return this._loaded?
this._swf.getVolume():Bi(t.prototype.__proto__||
Object.getPrototypeOf(t.prototype),"volume",this)},set:function(e){var
t=this;this._volume=e,this.onLoaded(function(){return t._swf.setVolume(e)})}}]),t}
(Ji),Xr=new Mi,$r=new Mi,TelecineFile=function(){function TelecineFile(e,t){var
n=e.src,i=e.mime,r=e.id,o=void 0===r?De():r,a=e.priority,s=void 0===a?
0:a,u=e.metadata,c=void 0===u?{}:u;if(Ii(this,TelecineFile),!n)throw new
TypeError("Must provide a src for the file.");if(!i)throw new TypeError("Must
provide a mime type for the file.");Object.defineProperties(this,{mime:
{value:i,enumerable:!0},id:{value:""+o,enumerable:!0},metadata:
{value:c,enumerable:!0}}),this.video=t,this.priority=s,this.src=n}return
qi(TelecineFile,[{key:"priority",get:function(){return
Xr.get(this)},set:function(e){if(e=parseInt(e,10),"number"==typeof
e&&isFinite(e)&&Math.floor(e)===e&&e>=0)return void Xr.set(this,e);throw new
TypeError("The file priority must be an integer greater than or equal to 0.")}},
{key:"src",get:function(){return $r.get(this)},set:function(e)
{$r.set(this,e),this.video.fire("filesrcupdate",this)}},
{key:"restrictedStreamIndexes",get:function(){if(!
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.video.currentScanner),"r
estrictedStreamIndexes"))throw new ReferenceError("The current scanner does not
support streams.");return
this.video.currentScanner.restrictedStreamIndexes},set:function(){var
e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!
Array.isArray(e))throw new TypeError("Indexes must be an array.");if(!
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.video.currentScanner),"r
estrictedStreamIndexes"))throw new ReferenceError("The current scanner does not
support
streams.");this.video.currentScanner.restrictedStreamIndexes=e}}]),TelecineFile}
(),Yr=["disabled","hidden","showing"],Gr=["subtitles","captions","descriptions","ch
apters","metadata"],Qr=["ar","fa","he","iw","ku","ps","sd","ur","yi"],Jr=new
Mi,Zr=new Mi,TelecineTextTrack=function(){function TelecineTextTrack(e,t){var
n=e.kind,i=e.src,r=void 0===i?null:i,o=e.label,a=void
0===o?"":o,s=e.language,u=void 0===s?"":s,c=e.id,l=void 0===c?
De():c;if(Ii(this,TelecineTextTrack),Gr.indexOf(n)===-1)throw
Me(12,"SYNTAX_ERR","Syntax Error");Oe(this),Object.defineProperties(this,{kind:
{value:n,enumerable:!0},label:{value:a,enumerable:!0},language:
{value:u,enumerable:!0},id:{value:""+l,enumerable:!0},rtl:
{value:Qr.indexOf(u.substr(0,2))!==-1,enumerable:!
0}}),this.video=t,this.src=r,this._modeHasBeenSet=!1,Jr.set(this,"disabled")}return
qi(TelecineTextTrack,[{key:"dispatchEvent",value:function(e){this.fire(e,
{target:this})}},{key:"mode",get:function(){return Jr.get(this)},set:function(e)
{if(Yr.indexOf(e)>-1){if(this._modeHasBeenSet=!
0,Jr.get(this)===e)return;Jr.set(this,e),this.video.currentScanner&&this.video.curr
entScanner.setModeForTrack(this,e),this.dispatchEvent("modechange")}}},
{key:"src",get:function(){return Zr.get(this)},set:function(e)
{Zr.set(this,e),this.video.fire("texttracksrcupdate",this)}},
{key:"cues",get:function(){return this.video.currentScanner?
this.video.currentScanner.getCuesForTrack(this):[]}},
{key:"activeCues",get:function(){return this.video.currentScanner?
this.video.currentScanner.getActiveCuesForTrack(this):[]}}]),TelecineTextTrack}
(),eo=function(){function e(t,n)
{Ii(this,e),this._cdms=t.cdms,this._lrToken=t.lr_token,this._userId=t.user,this._as
setId=t.asset,this._useHls=n,this._licenseUrl=null,this._keySession=null,this._pref
erredKeySystem=null,this._encryptedEventName=null,this._boundGenerateRequest=this._
generateRequest.bind(this)}return qi(e,[{key:"init",value:function(e){var
t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return
this._video=e._video,this._scanner=e,this._canHandleEME()?
(this._licenseRequestMetadata=this._getLicenseRequestHeader(),this._getKeySystems(n
).then(function(e){if(e.forEach(function(e)
{e.keySystem&&(t._preferredKeySystem=e)}),!t._preferredKeySystem)return
t._scanner.fire("emeunsupported"),!1;var
n=t._getCdmFromSystem(t._preferredKeySystem);return
t._encryptedEventName="encrypted",t._licenseUrl=n.license_url,t._useHls&&(t._certif
icateUrl=n.certificate_url,t._encryptedEventName="webkitneedkey"),t._video.addEvent
Listener(t._encryptedEventName,t._boundGenerateRequest),t._useHls?
(t._video.webkitSetMediaKeys(t._preferredKeySystem.keySystem),!
0):t._video.mediaKeys?
(t._keySession=t._video.mediaKeys.createSession(),t._keySession.addEventListener("m
essage",function(e){return t._getLicense(e)}),!0):
(t._keySession=t._preferredKeySystem.keySystem.createSession(),t._keySession.addEve
ntListener("message",function(e){return
t._getLicense(e)}),t._video.setMediaKeys(t._preferredKeySystem.keySystem),!0)})):
(this._scanner.fire("emeunsupported"),!1)}},{key:"destroy",value:function()
{this._keySession&&this._keySession.sessionId&&this._keySession.close(),this._video
.removeEventListener(this._encryptedEventName,this._boundGenerateRequest)}},
{key:"_generateRequest",value:function(e){var
t=this;return"com.apple.fps.1_0"===this._preferredKeySystem.name?
(this._loadFairPlayCertificate().then(function(n)
{t._contentId="assetId="+t._assetId;var
i=t._concatInitDataIdAndCertificate(e.initData,t._contentId,n);return
t._keySession=t._preferredKeySystem.keySystem.createSession("video/mp4",i),t._keySe
ssion.addEventListener("webkitkeymessage",function(e){return t._getLicense(e)},!
1),n}).catch(function(e){t._scanner.fire(e.error,e.payload)}),!0):!
this._keySession.sessionId&&!
this._activeKeySession&&(this._activeKeySession=this._keySession.generateRequest(e.
initDataType,e.initData).catch(function(){t._scanner.fire("drmfailure")}),!0)}},
{key:"_getLicense",value:function(e){var t=this;return new _t(function(n,i)
{t._activeKeySession=null;var r=new
XMLHttpRequest;r.keySession=e.target,r.responseType="arraybuffer",r.open("POST",t._
licenseUrl),r.setRequestHeader("dt-custom-
data",window.btoa(JSON.stringify(t._licenseRequestMetadata)));var
o=e.message;if("com.microsoft.playready"===t._preferredKeySystem.name&&!function()
{var
n=t._unpackPlayReadyRequest(e.message),i=n[0];Object.keys(i).forEach(function(e)
{r.setRequestHeader([e],i[e])}),o=n[1]}
(),"com.apple.fps.1_0"===t._preferredKeySystem.name){var
a=btoa(String.fromCharCode.apply(null,o));a=encodeURIComponent(a),o="spc="+a+"&"+t.
_contentId,r.setRequestHeader("Content-type","application/x-www-form-
urlencoded")}r.onload=function(){if(403===r.status){var
e=JSON.parse(r.getResponseHeader("x-dt-error-message"));return void
i({error:"drmauthfailure",payload:
{text:e.error,code:e.error_code}})}if(r.status>=400)return void
i({error:"drmfailure"});try{t._scanner.fire("drmauthsuccess");var o=new
Uint8Array(r.response),a=o.buffer;"com.apple.fps.1_0"===t._preferredKeySystem.name&
&(a=t._unpackFairPlayLicenseResponse(btoa(String.fromCharCode.apply(null,o)))),r.ke
ySession.update(a),n()}catch(e){i("Error updating key session:
"+e)}},r.onerror=i,r.send(o)}).catch(function(e)
{t._scanner.fire(e.error,e.payload)})}},{key:"_canHandleEME",value:function(){var
e=!!
(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&
window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration
||window.WebKitMediaKeys);return e}},
{key:"_concatInitDataIdAndCertificate",value:function(e,t,n){"string"==typeof
t&&(t=Ve(t));var i=0,r=new
ArrayBuffer(e.byteLength+4+t.byteLength+4+n.byteLength),o=new DataView(r),a=new
Uint8Array(r,i,e.byteLength);a.set(e),i+=e.byteLength,o.setUint32(i,t.byteLength,!
0),i+=4;var s=new
Uint8Array(r,i,t.byteLength);s.set(t),i+=s.byteLength,o.setUint32(i,n.byteLength,!
0),i+=4;var u=new Uint8Array(r,i,n.byteLength);return u.set(n),new
Uint8Array(r,0,r.byteLength)}},{key:"_loadFairPlayCertificate",value:function(){var
e=this;return new _t(function(t,n){var i=new
XMLHttpRequest;i.responseType="arraybuffer",i.open("GET",e._certificateUrl),i.setRe
questHeader("dt-custom-
data",window.btoa(JSON.stringify(e._licenseRequestMetadata))),i.onload=function()
{if(403===i.status){var e=JSON.parse(i.getResponseHeader("x-dt-error-
message"));return void n({error:"drmauthfailure",payload:
{text:e.error,code:e.error_code}})}if(i.status>=400)return void
n({error:"drmfailure"});try{t(new Uint8Array(i.response))}catch(e)
{n(e)}},i.onerror=n,i.send()})}},{key:"_getCdmFromSystem",value:function(e){var
t=this,n=null;return Object.keys(this._cdms).forEach(function(i)
{e.name===t._cdms[i].id&&(n=t._cdms[i])}),n}},
{key:"_unpackFairPlayLicenseResponse",value:function(e){var
t=window.atob(e.trim());return"<ckc>"===t.substr(0,5)&&"</ckc>"===t.substr(-
6)&&(t=t.slice(5,-6)),new Uint8Array(atob(t).split("").map(function(e){return
e.charCodeAt(0)}))}},{key:"_unpackPlayReadyRequest",value:function(e){for(var
t=String.fromCharCode.apply(null,new Uint16Array(e)),n=(new
DOMParser).parseFromString(t,"application/xml"),i={},r=n.getElementsByTagName("Http
Header"),o=0;o<r.length;++o){var
a=r[o].querySelector("name"),s=r[o].querySelector("value");i[a.textContent]=s.textC
ontent}var u=n.querySelector("Challenge");return e=new
Uint8Array(atob(u.textContent).split("").map(function(e){return e.charCodeAt(0)})),
[i,e]}},{key:"_getLicenseRequestHeader",value:function(){var
e={},t=window.screen.availWidth+"x"+window.screen.availHeight,n=window.devicePixelR
atio;return
e.merchant="vimeo",e.sessionId=JSON.stringify({ua:navigator.userAgent,token:this._l
rToken,resolution:t,pixelRatio:n}),e.userId=this._userId,e}},
{key:"_getKeySystems",value:function(e){var t=this,n=e.audio||[],i=e.video||
[],r={persistentState:"optional",sessionTypes:
["temporary"]};i.length&&(r.videoCapabilities=i.map(function(e)
{return{contentType:e}})),n.length&&(r.audioCapabilities=n.map(function(e)
{return{contentType:e}}));var o=Object.keys(this._cdms).map(function(e){var
n=t._cdms[e].id;if(t._useHls){var i=null;try{i=new
window.WebKitMediaKeys(n)}catch(e){}return _t.resolve({name:n,keySystem:i})}return
navigator.requestMediaKeySystemAccess(n,[r,{}]).then(function(e){return
e.createMediaKeys()}).catch(function(e){}).then(function(e)
{return{name:n,keySystem:e}})});return _t.all(o)}}]),e}(),to=new
Mi,TelecineVideo=function(){function TelecineVideo(e){var
t=this,n=e.files,i=e.id,r=void 0===i?De():i,o=e.title,a=void 0===o?
null:o,s=e.subtitle,u=void 0===s?null:s,c=e.metadata,l=void 0===c?
{}:c,d=e.textTracks,f=void 0===d?qe():d,h=e.externalDisplayFiles,v=void 0===h?
{}:h;if(Ii(this,TelecineVideo),!n||!Array.isArray(n))throw new TypeError("Must
provide files for the video.");Oe(this);var p=Ie(n.map(function(e){return e
instanceof TelecineFile?(e.video=t,e):new
TelecineFile(e,t)})),m=qe(f.map(function(e){return e instanceof TelecineTextTrack?
(e.video=t,e):new TelecineTextTrack(e,t)}));Object.keys(v).forEach(function(e){!
v[e]||v[e]instanceof TelecineFile||(v[e]=new
TelecineFile(v[e],t))}),Object.defineProperties(this,{id:{value:""+r,enumerable:!
0},title:{value:a,enumerable:!0},subtitle:{value:u,enumerable:!0},metadata:
{value:l,enumerable:!0},files:{value:p,enumerable:!0},textTracks:
{value:m,enumerable:!0},externalDisplayFiles:{value:v,enumerable:!
0}}),l.drm&&(this._drmHandler=new eo(l.drm,l.useHls))}return qi(TelecineVideo,
[{key:"deactivate",value:function(){var
e=this;this._drmHandler&&this._drmHandler.destroy(),this.textTracks.forEach(functio
n(t){return e.currentScanner.removeTextTrack(t)})}},
{key:"drmHandler",get:function(){return this._drmHandler||null}},
{key:"currentFile",get:function(){return
this.currentScanner.currentFile},set:function(e)
{this.currentScanner.currentFile=e}},{key:"currentScanner",get:function(){return
to.get(this)},set:function(e){var
t=this;this.currentScanner&&this.currentScanner.constructor.supportsTextTracks&&thi
s.textTracks.forEach(function(e){return
t.currentScanner.removeTextTrack(e)}),e.constructor.supportsTextTracks&&this.textTr
acks.forEach(function(t){return
e.addTextTrack(t)}),to.set(this,e)}}]),TelecineVideo}(),no=function(){function
e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{};Ii(this,e),this._element=t,this._scanners=n,this._options=i,this._video=null,thi
s._textTracks=qe(),this._properties={},this._currentScanner=new
Ji,this._blacklistedScanners=[],this._activeEffects=[],Oe(this)}return qi(e,
[{key:"supportsEffect",value:function(e){var t=this;return!!
e.supported&&e.supportedScanners.some(function(e){return
t._getScannerName(t._currentScanner)===e.displayName})}},
{key:"getEffectByName",value:function(e){var t=this,n=null;return
this._activeEffects.forEach(function(i){e===t._getEffectName(i)&&(n=i)}),n}},
{key:"activateEffect",value:function(e,t){var n=new e(this,t);return
n.activate(),this._activeEffects.push(n),n}},
{key:"deactivateEffect",value:function(e){var
t=this;this._activeEffects.some(function(n,i){return
n.constructor===e&&(n.deactivate(),t._activeEffects.splice(i,1),!0)})}},
{key:"deactivateEffects",value:function(){var
e=this;this._activeEffects.forEach(function(t){return
e.deactivateEffect(t.constructor)})}},{key:"play",value:function(){if(!
this._video||this._video.files.length<1)throw new TelecineError("NoFiles","There
are no files to play.");var e=this._currentScanner.play();return
this._properties.paused=!1,e}},{key:"pause",value:function(){if(!this._video||
this._video.files.length<1)throw new TelecineError("NoFiles","There are no files to
play.");return this._currentScanner.pause(),this._properties.paused=!0,this}},
{key:"showExternalDisplayPicker",value:function(e){return
this._currentScanner.showExternalDisplayPicker(e)}},
{key:"supportsPresentationMode",value:function(e){return
this.supportedPresentationModes.indexOf(e)!==-1}},
{key:"addCuePoint",value:function(e,t){return
this._currentScanner.addCuePoint(e,t)}},{key:"removeCuePoint",value:function(e)
{return this._currentScanner.removeCuePoint(e)}},
{key:"removeAllCuePoints",value:function(){return
this._currentScanner.removeAllCuePoints()}},{key:"_findScanner",value:function()
{for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},t=e.textTrackSupport,n=void 0!==t&&t,i=this._video.files.map(function(e){return
e.mime}),r=this._scanners,o=r,a=Array.isArray(o),s=0,o=a?o:o[Oi.iterator]();;){var
u;if(a){if(s>=o.length)break;
u=o[s++]}else{if(s=o.next(),s.done)break;u=s.value}var c=u;if(c.supported&&(!n||
c.supportsTextTracks)&&this._blacklistedScanners.indexOf(this._getScannerName(c))==
=-1){var l=c.supportedVideoTypes;if(l.some(function(e){return i.indexOf(e)!==-
1}))return c}}return n?(this.fire("error",new
TelecineError("TextTracksNotSupported","None of the scanners support text tracks in
this browser.")),this._blacklistedScanners=[],this._findScanner()):null}},
{key:"_initScanner",value:function(e,t){var
n=this;if(this._currentScanner.constructor===e)return
void(this._currentScanner.video!
==t&&(t.currentScanner=this._currentScanner,this._currentScanner.video=t));this._cu
rrentScanner.deactivate();var i=new
e(this._element,this._options);nr.forEach(function(e){i.on(e,function(t){return
n._handleEvent(e,t,i)})}),this._currentScanner=i,t.currentScanner=i,this._currentSc
anner.video=t,Object.keys(this._properties).forEach(function(e){return"paused"===e?
void(n._properties.paused===!
1&&n._currentScanner.play()):void(n._currentScanner[e]=n._properties[e])}),this.fir
e("scannerchange",this._getScannerName(this._currentScanner))}},
{key:"_updateScanner",value:function(){if(null!==this._video){var
e=this._findScanner({textTrackSupport:this._video.textTracks.length>0});return e?
void this._initScanner(e,this._video):void this.fire("error",new
TelecineError("FilesNotPlayable","None of the files could be played in this
browser."))}}},{key:"_handleEvent",value:function(e,t,n)
{if(n===this._currentScanner){switch(e){case"error":return void(t instanceof
TelecineError&&this.fire("error",t));case"scannererror":this.fire("error",new
TelecineError("ScannerError","The current scanner can no longer be used because
"+t.reason)),this._blacklistedScanners.push(this._getScannerName(this._currentScann
er)),this._updateScanner([]);break;case"fileerror":this.fire("error",new
TelecineError("FileError","The current file can no longer be used because
"+t.reason)),this._currentScanner._switchToNextFile();break;case"downloaderror":thi
s.fire("error",new
TelecineError("DownloadError",t)),this._currentScanner._switchToNextFile();break;ca
se"emeunsupported":this.fire("error",new TelecineError("DRMFailure",
{text:null,code:"emeunsupported"}));break;case"drmfailure":this.fire("error",new
TelecineError("DRMFailure",
{text:null,code:null}));break;case"drmauthfailure":this.fire("error",new
TelecineError("DRMFailure",
{text:t.text,code:t.code}));break;case"drmauthsuccess":this.fire("drmauthsuccess");
break;case"timeupdate":this._properties.currentTime=this._currentScanner.currentTim
e;break;case"spatialunsupported":this.getEffectByName("ThreeSixtyEffect").deactivat
e();break;case"ended":this._properties.paused=!
0}this._activeEffects.forEach(function(t){"function"==typeof t["on"+e]&&t["on"+e]
()}),this.fire(e,t)}}},{key:"_getScannerName",value:function(e){return e instanceof
Ji?e.constructor.displayName:e.prototype.constructor.displayName}},
{key:"_getEffectName",value:function(e){return e instanceof Ui?
e.constructor.displayName:e.prototype.constructor.displayName}},
{key:"supportsSettingVolume",get:function(){return this._scanners.some(function(e)
{return e.supported&&e.supportsSettingVolume})}},
{key:"supportsTextTracks",get:function(){return this._scanners.some(function(e)
{return e.supported&&e.supportsTextTracks})}},{key:"activeEffects",get:function()
{return this._activeEffects}},{key:"buffered",get:function(){return
this._currentScanner.buffered}},{key:"cuePoints",get:function(){return
this._currentScanner.cuePoints}},{key:"currentFile",get:function(){return
this._currentScanner.currentFile},set:function(e){if("string"==typeof
e&&(e=this._files.filter(function(t){return t.id===e})[0]),!e)throw new
TelecineError("FileNotValid","The file is not
valid.");this._currentScanner.currentFile=e}},{key:"currentScanner",get:function()
{return this._getScannerName(this._currentScanner)}},
{key:"currentTime",get:function(){return
this._currentScanner.currentTime},set:function(e)
{this._properties.currentTime=e,this._currentScanner.currentTime=e}},
{key:"duration",get:function(){return this._currentScanner.duration}},
{key:"ended",get:function(){return this._currentScanner.ended}},
{key:"externalDisplayAvailable",get:function(){return
this._currentScanner.externalDisplayAvailable}},
{key:"externalDisplayActive",get:function(){return
this._currentScanner.externalDisplayActive}},{key:"loop",get:function(){return
this._currentScanner.loop},set:function(e)
{this._properties.loop=e,this._currentScanner.loop=e}},{key:"muted",get:function()
{return this._currentScanner.muted},set:function(e){this._properties.muted=!!
e,this._currentScanner.muted=!!e}},{key:"paused",get:function(){return
this._currentScanner.paused}},{key:"playbackRate",get:function(){return
this._currentScanner.playbackRate},set:function(e)
{this._properties.playbackRate=e,this._currentScanner.playbackRate=e}},
{key:"preload",get:function(){return this._currentScanner.preload},set:function(e)
{this._properties.preload=e,this._currentScanner.preload=e}},
{key:"presentationMode",get:function(){return
this._currentScanner.presentationMode},set:function(e)
{this._currentScanner.presentationMode=e}},
{key:"supportedPresentationModes",get:function(){return
this._currentScanner.supportedPresentationModes}},{key:"video",get:function()
{return this._video},set:function(e)
{this._video&&this._video.deactivate(),this._blacklistedScanners=[],this._video=new
TelecineVideo(e),this._updateScanner()}},{key:"videoWidth",get:function(){return
this._currentScanner.videoWidth}},{key:"videoHeight",get:function(){return
this._currentScanner.videoHeight}},{key:"volume",get:function(){return
this._currentScanner.volume},set:function(e){if(e<0||e>1)throw new
TelecineError("IndexSizeError","Failed to set the 'volume' property: The volume
provided ("+e+") is outside of the range [0,
1].");this._properties.volume=e,this._currentScanner.volume=e}}]),e}
(),io=50,ro=2,oo=20,ao=85,so=60,uo=500,co=function(e){function t(e){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ii(this,t);var
i=ji(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return
i._activated=!
1,i._camera=null,i._scene=null,i._renderer=null,i._animationFrame=null,i.isUserInte
racting=!
1,i._onMouseDownMouseX=0,i._onMouseDownMouseY=0,i._coordinates={lat:0,long:0},i._pr
eviousCoordinates={lat:0,long:0},i._onMouseDownCoordinates={lat:0,long:0},i._phi=0,
i._theta=0,i._distance=uo,i._video=i._telecine._currentScanner._video,i._rotation=0
,i._gyroVector={x:0,y:0},i._offset={lat:0,long:0},i._writeSpeeds={videoFps:i._optio
ns.fps,motionRenderSpeed:so},i._maxTimeBetweenWrites=1e3/i._writeSpeeds.videoFps,i.
_motionTimeouts=[],i._movingAutomatically=!1,i._deviceMotionHasOccurred=!
1,i._updateFromGyroscopePending=!1,i._keysPressed={up:!1,down:!1,left:!1,right:!
1},i}return Di(t,e),qi(t,[{key:"isUserInteracting",set:function(e){if(e!
==this._isUserInteracting)return this._isUserInteracting=e,e?
void(this._options.isMobile||
this._telecine.fire("motionstart")):void(this._options.isMobile||
this._telecine.fire("motionend"))},get:function(){return
this._isUserInteracting}}],[{key:"displayName",get:function()
{return"ThreeSixtyEffect"}},{key:"supported",get:function(){return!0}},
{key:"supportedScanners",get:function(){return[gr,Ur]}}]),qi(t,
[{key:"activate",value:function(){var e=this;return new _t(function(t,n)
{if(window.THREE)return void t();var
i=document.createElement("script");i.src=e._options.threeUrl,document.body.appendCh
ild(i),i.onload=function(){t()}}).then(function(){return e._initialize()})}},
{key:"_initialize",value:function(){this._activated=!0,this._camera=new
THREE.PerspectiveCamera(this._options.fieldOfView,this._video.clientWidth/this._vid
eo.clientHeight,1,2*uo),this._camera.target=new
THREE.Vector3(0,0,0),this._initializeAutoMovement(this._options.directorTimeline),t
his._scene=new THREE.Scene;var e=new
THREE.SphereBufferGeometry(uo,120,80);e.scale(-1,1,1),this._texture=new
THREE.VideoTexture(this._video),this._texture.minFilter=THREE.LinearFilter,this._te
xture.format=THREE.RGBFormat,"top-
bottom"===this._options.stereoMode&&(this._texture.offset.y=.5,this._texture.repeat
.set(1,.5)),"left-
right"===this._options.stereoMode&&(this._texture.offset.x=.5,this._texture.repeat.
set(.5,1));var t=new THREE.MeshBasicMaterial({map:this._texture}),n=new
THREE.Mesh(e,t);this._scene.add(n);try{this._renderer=new
THREE.WebGLRenderer}catch(e){return void
this._telecine._currentScanner.fire("spatialunsupported")}this._renderer.setPixelRa
tio(window.devicePixelRatio),this._output=document.createElement("div"),this._outpu
t.appendChild(this._renderer.domElement),this._element.appendChild(this._output),th
is._hideOutput(),this._telecine._currentScanner._video.setAttribute("crossorigin","
anonymous"),this._startRendering(),this._telecine._currentScanner.paused||
this._showOutput()}},{key:"onplay",value:function()
{this._activated&&(this._showOutput(),this.adjustRenderSize())}},
{key:"deactivate",value:function()
{this._output&&this._element.removeChild(this._output),this._stopRendering(),this._
activated=!1}},{key:"snapToCenter",value:function(){var
e=this;this._motionTimeouts.forEach(function(e){return clearTimeout(e)});var
t=50,n=this._coordinates.long>=180?360:0,i=0,r={long:(n-
this._coordinates.long)/11,lat:(i-
this._coordinates.lat)/11};this._rotation=0;for(var o=function(n)
{e._motionTimeouts.push(setTimeout(function(){0===n&&(e._movingAutomatically=!
0,e._options.isMobile||
(e._maxTimeBetweenWrites=1e3/e._writeSpeeds.motionRenderSpeed)),n===t-
1&&(e._movingAutomatically=!1,e._options.isMobile||
(e._maxTimeBetweenWrites=1e3/e._writeSpeeds.videoFps)),e._updateViewpoint(e._coordi
nates.lat+r.lat/Math.pow(1.1,n),e._coordinates.long+r.long/Math.pow(1.1,n)),e._offs
et.lat=THREE.Math.radToDeg(e._gyroVector.x)
+e._coordinates.lat+r.lat/Math.pow(1.1,n),e._offset.long=THREE.Math.radToDeg(e._gyr
oVector.y)
+e._coordinates.long+r.lat/Math.pow(1.1,n)},n*e._maxTimeBetweenWrites))},a=0;a<t;a+
+)o(a)}},{key:"activateStereoRendering",value:function(){this._stereo||(
this._stereo=new
THREE.StereoCamera,this._stereo.aspect=.5,this._renderer.setSize(this._video.client
Width,this._video.clientHeight),this.adjustRenderSize(),"mono"!
==this._options.stereoMode&&this._buildStereoAssets(),this._renderStereoScene())}},
{key:"deactivateStereoRendering",value:function()
{this._renderer.render(this._scene,this._camera),this._stereo=null,this.adjustRende
rSize(),this._update()}},{key:"toggleStereoRendering",value:function(){return
this._stereo?void this.deactivateStereo():void this.activateStereo()}},
{key:"isStereo",value:function(){return!!this._stereo}},
{key:"_buildStereoAssets",value:function(){this._stereoAssets={left:{scene:new
THREE.Scene,geometry:new THREE.SphereBufferGeometry(uo,120,80),texture:new
THREE.VideoTexture(this._video)},right:{scene:new THREE.Scene,geometry:new
THREE.SphereBufferGeometry(uo,120,80),texture:new
THREE.VideoTexture(this._video)}};for(var e in
this._stereoAssets)this._stereoAssets[e].texture.minFilter=THREE.LinearFilter,this.
_stereoAssets[e].texture.format=THREE.RGBFormat,this._stereoAssets[e].texture.offse
t.y=.5,this._stereoAssets[e].texture.repeat.set(1,.5),this._stereoAssets[e].materia
l=new
THREE.MeshBasicMaterial({map:this._stereoAssets[e].texture}),this._stereoAssets[e].
mesh=new
THREE.Mesh(this._stereoAssets[e].geometry,this._stereoAssets[e].material),this._ste
reoAssets[e].geometry.scale(-
1,1,1),this._stereoAssets[e].scene.add(this._stereoAssets[e].mesh)}},
{key:"_initializeAutoMovement",value:function(e){e&&e[0]&&"undefined"!=typeof
e[0].p&&"undefined"!==e[0].y&&this._updateViewpoint(e[0].p,e[0].y)}},
{key:"_renderStereoScene",value:function()
{this._scene.updateMatrixWorld(),null===this._camera.parent&&this._camera.updateMat
rixWorld(),this._stereo.update(this._camera);var
e=this._renderer.getSize();this._renderer.autoClear&&this._renderer.clear(),this._r
enderer.setScissorTest(!0);var t=this._stereoAssets?
{right:this._stereoAssets.right.scene,left:this._stereoAssets.left.scene}:
{right:this._scene,left:this._scene};this._renderer.setScissor(0,0,e.width/2,e.heig
ht),this._renderer.setViewport(0,0,e.width/2,e.height),this._renderer.render(t.righ
t,this._stereo.cameraR),this._renderer.setScissor(e.width/2,0,e.width/2,e.height),t
his._renderer.setViewport(e.width/2,0,e.width/2,e.height),this._renderer.render(t.l
eft,this._stereo.cameraL),this._renderer.setScissorTest(!1)}},
{key:"_updateViewpoint",value:function(e,t)
{this._previousCoordinates.long=this._coordinates.long,this._previousCoordinates.la
t=this._coordinates.lat,e%=360,this._coordinates.lat=Math.max(-ao,Math.min(ao,e)),t
%=360,t=t>=0?t:360+t,this._coordinates.long=t}},
{key:"makeContact",value:function(e){this.isUserInteracting=!
0,this._motionTimeouts.forEach(function(e){return
clearTimeout(e)}),this._movingAutomatically=!
1,this._contactPoint={x:e.x,y:e.y},this._onMouseDownCoordinates.long=this._coordina
tes.long,this._onMouseDownCoordinates.lat=this._coordinates.lat,this._motionStart={
long:this._coordinates.long,lat:this._coordinates.lat},this._options.isMobile||
(this._maxTimeBetweenWrites=1e3/this._writeSpeeds.motionRenderSpeed)}},
{key:"move",value:function(e)
{this._offset.lat=THREE.Math.radToDeg(this._gyroVector.x)
+this._previousCoordinates.lat,this._offset.long=THREE.Math.radToDeg(this._gyroVect
or.y)+this._previousCoordinates.long;var
t=this._motionStart.lat-.2*(this._contactPoint.y-e.y),n=.2*(this._contactPoint.x-
e.x)+this._motionStart.long;this._updateViewpoint(t,n)}},
{key:"moveWheel",value:function(e)
{this._offset.lat=THREE.Math.radToDeg(this._gyroVector.x)
+this._previousCoordinates.lat,this._offset.long=THREE.Math.radToDeg(this._gyroVect
or.y)+this._previousCoordinates.long;var
t=this._coordinates.lat-.1*e.y,n=this._coordinates.long+.1*e.x;this._updateViewpoin
t(t,n)}},{key:"moveDevice",value:function(e,t,n,i)
{this._updateFromGyroscopePending=!0;var r=new
THREE.Quaternion,o=window.orientation;null===o&&(o=this._video.clientWidth>this._vi
deo.clientHeight?90:0),e=e?THREE.Math.degToRad(e):0,t=t?
THREE.Math.degToRad(t):0,n=n?THREE.Math.degToRad(n):0;var a=o?
THREE.Math.degToRad(o):0,s=new THREE.Vector3(0,0,1),u=new THREE.Euler,c=new
THREE.Quaternion,l=new THREE.Quaternion(-
Math.sqrt(.5),0,0,Math.sqrt(.5));u.set(t,e,-
n,"YXZ"),r.setFromEuler(u),r.multiply(l),r.multiply(c.setFromAxisAngle(s,-
a)),this._gyroVector=(new
THREE.Euler).setFromQuaternion(r,"YXZ"),this._rotation=this._gyroVector.z,this.isUs
erInteracting||this._movingAutomatically||
this._updateViewpoint(THREE.Math.radToDeg(this._gyroVector.x)-this._offset.lat,-
THREE.Math.radToDeg(this._gyroVector.y)
+this._offset.long),this._deviceMotionHasOccurred||
(this.snapToCenter(),this._telecine.fire("motionstart"),this._deviceMotionHasOccurr
ed=!0)}},{key:"releaseContact",value:function(e)
{if(this._offset.lat=THREE.Math.radToDeg(this._gyroVector.x)-
this._coordinates.lat,this._offset.long=THREE.Math.radToDeg(this._gyroVector.y)
+this._coordinates.long,this.isUserInteracting=!1,this._motionStart&&!e){var
t=Math.hypot(this._coordinates.long-this._motionStart.long,this._coordinates.lat-
this._motionStart.lat);this._moveDueToMomentum(t)}}},
{key:"abandonMotion",value:function(){this.isUserInteracting=!
1,this._motionStart=null}},{key:"keyPress",value:function(e){this._keyIsDown()||
(this.isUserInteracting=!
0,this._motionTimeouts&&this._motionTimeouts.forEach(function(e){return
clearTimeout(e)})),this._keysPressed[e]||(this._keysPressed[e]=!0)}},
{key:"keyUp",value:function(e){this._keysPressed[e]=!1,this._keyIsDown()||
(this.isUserInteracting=!1,this._moveDueToMomentum(1/0))}},
{key:"_moveFromKeyPress",value:function(){var
e=this;Object.keys(this._keysPressed).forEach(function(t)
{if(e._keysPressed[t])switch(t)
{case"up":e._updateViewpoint(e._coordinates.lat+ro,e._coordinates.long);break;case"
down":e._updateViewpoint(e._coordinates.lat-
ro,e._coordinates.long);break;case"left":e._updateViewpoint(e._coordinates.lat,e._c
oordinates.long-
ro);break;case"right":e._updateViewpoint(e._coordinates.lat,e._coordinates.long+ro)
}})}},{key:"_keyIsDown",value:function(){var e=this;return
Object.keys(this._keysPressed).map(function(t){return
e._keysPressed[t]}).some(function(e){return e})}},
{key:"_moveDueToMomentum",value:function(e){var t=this;e>=oo&&!function(){var
n={long:t._coordinates.long-t._previousCoordinates.long,lat:t._coordinates.lat-
t._previousCoordinates.lat};e===1/0&&(n.long/=2,n.lat/=2);for(var i=function(e)
{t._motionTimeouts.push(setTimeout(function(){1===e&&(t._movingAutomatically=!
0),e===io-1&&(t._movingAutomatically=!
1,t._maxTimeBetweenWrites=1e3/t._writeSpeeds.videoFps);var
i=2/Math.pow(e,1.5);t._offset.lat=THREE.Math.radToDeg(t._gyroVector.x)
+t._coordinates.lat+n.lat,t._offset.long=THREE.Math.radToDeg(t._gyroVector.y)
+t._coordinates.long+n.long,t._updateViewpoint(t._coordinates.lat+n.lat*i,t._coordi
nates.long+n.long*i)},e*t._maxTimeBetweenWrites))},r=1;r<io;r++)i(r)}()}},
{key:"onseeked",value:function(){this._activated&&this._update()}},
{key:"onresize",value:function(){this.adjustRenderSize(),this.isUserInteracting=!
1}},{key:"_update",value:function()
{this._phi=THREE.Math.degToRad(90+this._coordinates.lat),this._theta=THREE.Math.deg
ToRad(this._coordinates.long),this._camera.position.x=this._distance*Math.sin(this.
_phi)*Math.cos(this._theta),this._camera.position.y=this._distance*Math.cos(this._p
hi),this._camera.position.z=this._distance*Math.sin(this._phi)*Math.sin(this._theta
),this._camera.lookAt(this._camera.target),this._camera.rotation.z+=this._rotation,
this._stereo?
this._renderStereoScene():this._renderer.render(this._scene,this._camera),this._tel
ecine.fire("cameraupdate",
{lon:this._coordinates.long,lat:this._coordinates.lat})}},
{key:"adjustRenderSize",value:function()
{this._camera.aspect=Math.max(1/3,Math.min(3,this._video.clientWidth/this._video.cl
ientHeight)),this._distance=Math.min(uo/2,this._options.dimensions.width/this._opti
ons.dimensions.height/this._camera.aspect*uo/2);var
e=Ue(this._video.clientWidth,this._video.clientHeight,this._camera.aspect,1);this._
camera.aspect=e.width/e.height,this._camera.updateProjectionMatrix(),this._renderer
.setSize(e.width,e.height),this._output.style.paddingTop=e.top+"px",this._renderer.
render(this._scene,this._camera)}},{key:"getRendererSize",value:function()
{return{height:this._renderer.domElement.clientHeight,width:this._renderer.domEleme
nt.clientWidth}}},{key:"_startRendering",value:function(){var
e=this;this._interval&&window.clearInterval(this._interval),this.adjustRenderSize()
;var t=1e3/so;this._interval=window.setInterval(function()
{e._renderFrame(),e._keyIsDown()&&e._moveFromKeyPress()},t)}},
{key:"_stopRendering",value:function()
{this._interval&&(window.clearInterval(this._interval),this._interval=null),this._m
otionTimeouts&&this._motionTimeouts.forEach(function(e){return clearTimeout(e)})}},
{key:"_renderFrame",value:function(){this._requestRenderAnimationFrame()}},
{key:"_requestRenderAnimationFrame",value:function(){var
e=this;this._animationFrame&&window.cancelAnimationFrame(this._animationFrame);var
t=this._movingAutomatically||this.isUserInteracting||
this._updateFromGyroscopePending||
this._keyIsDown();this._animationFrame=window.requestAnimationFrame(function(){(!
e._telecine._currentScanner.paused&&!e._telecine._currentScanner._ranIntoBuffer||
t)&&(e._update(),e._updateFromGyroscopePending=!1)})}},
{key:"_showOutput",value:function()
{this._styleOutput({backgroundColor:"#000",display:"block"})}},
{key:"_hideOutput",value:function()
{this._styleOutput({backgroundColor:"#000",display:"none"})}},
{key:"_styleOutput",value:function(){var e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:
{},t=e.backgroundColor,n=e.display;this._output.style.cssText="position:absolute;le
ft:0;top:0;margin-left:auto;margin-
right:auto;padding:0;background:"+t+";width:100%;height:100%;text-
align:center;display:"+n}},{key:"currentCoordinates",get:function(){return
this._coordinates},set:function(e){var t=Vi(e,2),n=t[0],i=t[1];if(n>90||n<-90)throw
new
RangeError("Latitude should be a float between -90 and 90.");if(i<0||i>360)throw
new RangeError("Longitude should be a float between 0 and
360.");this._updateViewpoint(n,i),this._update()}},
{key:"fieldOfView",get:function(){return this._camera.fov},set:function(e)
{this._camera.fov=e,this._camera.updateProjectionMatrix(),this._renderer.render(thi
s._scene,this._camera)}}],[{key:"frustumSurfaceArea",value:function(e,t,n){var
i=2*uo*2*Math.sin(Math.PI/180*(e/2)),r=i*t/n,o=i*r,a=4*Math.PI*Math.pow(uo,2),s=o/a
;return s}}]),t}(Ui),lo=function(){function e(t,n){var
i=this,r=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:1;Pt(this,e),re(this),this.version=r,this.visible=!1;var
o=this._wrap=document.createElement("div");o.classList.add("compass-
wrapper"),o.innerHTML=Kt.render("compass",
{version:r}),o.classList.add("cloaked"),t.appendChild(o),n&&o.addEventListener("cli
ck",n),this._layerSlice=o.querySelector(".compass-
slice"),this._lineSlice=o.querySelector(".compass-line");var a=function()
{i._mouseIn=!0},s=function(e){return function(){setTimeout(function(){i._mouseIn||
(i.fade(),i._mouseIn=!
1)},e)}};Dt(this._wrap).on("mousein",a).on("pointerin",a).on("mouseout",s(1e3)).on(
"pointerout",s(1e3)),s(2500)()}return Ct(e,[{key:"setAngle",value:function(e,t){var
n=this;this._animationFrame&&window.cancelAnimationFrame(this._animationFrame);var
i=0;1===this.version?i=-45:2===this.version&&(i=-30);var r=""+
(i+t),o=(e+85)/170,a=18;this._animationFrame=window.requestAnimationFrame(function(
){n._layerSlice.setAttribute("transform","rotate("+r+", "+a+",
"+a+")"),n._lineSlice&&n._lineSlice.setAttribute("d",n._getLinePath(o,a))})}},
{key:"_getLinePath",value:function(e,t){var n=5,i=2*t-
Math.round(2*t*e),r=2*Math.sqrt(2*i*t-Math.pow(i,2)),o=(2*t-r)/2,a=o+n,s=2*t-o-
n;return"M"+a+","+i+" L"+s+","+i+" z"}},{key:"reveal",value:function(){var
e=this;this._wrap.classList.remove("cloaked"),window.requestAnimationFrame(function
(){e._wrap.classList.add("in")}),this.visible=!0}},{key:"fade",value:function()
{this._wrap.classList.add("fade"),this.visible=!0}},{key:"hide",value:function()
{var
e=this;this._wrap.classList.remove("in"),this._wrap.classList.remove("fade"),this._
wrap.classList.add("leaving");var t=function t()
{"opacity"===event.propertyName&&(e._wrap.classList.remove("leaving"),e._wrap.class
List.add("cloaked"),e.visible=!
1),Dt(e._wrap).off("transitionend",t)};Dt(this._wrap).on("transitionend",t)}},
{key:"updatePosition",value:function(e){if(e){var
t=o(e),n=265,i=336;if(t.height<n)return this._wrap.classList.remove("align-
bottom"),void this._wrap.classList.add("hidden");if(t.height<i)return
this._wrap.classList.remove("hidden"),void this._wrap.classList.add("align-
bottom");this._wrap.classList.remove("hidden"),this._wrap.classList.remove("align-
bottom")}}},{key:"getWrapper",value:function(){return this._wrap}}]),e}
(),fo=55,ho=45,vo="markers",po="clip_id",mo="profile_id",go="player_size",yo="dropp
ed_frames",_o="total_frames",bo="bandwidth",wo="streams",ko="files",So="video_dims"
,xo="min_bandwidth",To="max_badwidth",Eo="buffer_occupancy",Lo="scanner",Po=[po,mo,
go,yo,_o,bo,vo,wo,ko,So,xo,To,Eo,Lo],Co=["streamchange","droppedframes","bandwidth"
,"scannerchange","streamtargetchange","seeked","ended","currentfilechange","buffero
ccupancy","streambufferstart"],Ao="seeked",Oo="ended",Mo="upswitch",Fo="downswitch"
,Io="resize",qo="scannerchange",Ro="filechange",Bo="bufferstart",Do=500,jo=function
(){return Date.now?Date.now():(new Date).getTime()},No=function(){function e(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function()
{};Pt(this,e),this.player=t,this.seriesStore={},this.telecineHandlers={},this.onDat
aChange=n}return Ct(e,[{key:"init",value:function()
{this._clearAllFields(),this._attachEvents(),this._setDefaults()}},
{key:"reset",value:function()
{this._clearAllFields(),this._setDefaults(),this.onDataChange()}},
{key:"setToSeries",value:function(e,t){return
this.seriesStore[e]=[t],this.onDataChange(),this.seriesStore[e]}},
{key:"addToSeries",value:function(e,t){this.seriesStore[e].push(t);var
n=25,i=this.seriesStore[e].length;return
i>Do&&this.seriesStore[e].splice(0,n),this.onDataChange(),this.seriesStore[e]}},
{key:"getCurrent",value:function(e){return this.seriesStore[e].slice(-1)[0]}},
{key:"getFirst",value:function(e){return this.seriesStore[e][0]}},
{key:"getSeries",value:function(e){return this.seriesStore[e]}},
{key:"addMarker",value:function(e,t){var n=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:
{};n.videoTime=this.player.telecine.currentTime,n.time=Date.now(),this.addToSeries(
vo,{type:e,title:t,data:n})}},{key:"_attachEvents",value:function(){var
e=this;Co.forEach(function(t){var n=function(n)
{e._handleTelecineEvent(t,n)};e.player.telecine.on(t,n)}),Dt(window).on("resize",m(
function(){e._handleResize()},500))}},{key:"_clearAllFields",value:function()
{this.seriesStore=Po.reduce(function(e,t){return e[t]=[],e},{})}},
{key:"_setDefaults",value:function(){var
e=this._getVideoDimensionsString();this.addToSeries(So,e);var
t=this.player.telecine.currentFile;this.addToSeries(ko,t);var
n=this.player.telecine.currentScanner;this.addToSeries(Lo,n),this.setToSeries(xo,0)
,this.setToSeries(To,0)}},{key:"_handleTelecineEvent",value:function(e,t){switch(e)
{case"bandwidth":var n=Math.round(100*t.speed)/100;this.addToSeries(bo,
{videoTime:this.player.telecine.currentTime,time:Date.now(),speed:n});var
i=this.getCurrent(To),r=this.getCurrent(xo);(!r||n<r)&&this.setToSeries(xo,n),(!i||
n>i)&&this.setToSeries(To,n);break;case"droppedframes":var
o=t.dropped,a=t.total;this.setToSeries(_o,a),this.setToSeries(yo,o);break;case"seek
ed":this.addMarker(Ao,"Seeked to
"+this.player.telecine.currentTime);break;case"ended":this.addMarker(Oo,"Ended");br
eak;case"streamchange":var
s=t.index,u=t.streams,c=this.player.config.request.files.dash.streams[s],l=u[s],d={
profile:c.profile,quality:c.quality,bitrate:l.bitrate,framerate:l.framerate,height:
l.height,width:l.width},f=this.getCurrent(wo),h=f?f.bitrate:null;if(h!
==d.bitrate&&null!==h){var
v=this._getResolutionString(f),p=this._getResolutionString(d);d.bitrate<h?
this.addMarker(Fo,"Downswitch from "+v+" to
"+p):d.bitrate>h&&this.addMarker(Mo,"Upswitch from "+v+" to
"+p)}this.addToSeries(wo,d);break;case"currentfilechange":var
m=this.getCurrent(ko),g=this.player.telecine.currentFile;this.addToSeries(ko,g);var
y=g.metadata.cdn,_=m?m.metadata.cdn:null,b=m?kt[m.mime]:null,w=kt[g.mime],k="CDN to
"+y+"/"+w;_&&(k="CDN from "+_+"/"+b+" to
"+y+"/"+w),this.addMarker(Ro,k);break;case"bufferoccupancy":var
S=Math.round(1e3*t)/1e3;this.addToSeries(Eo,
{videoTime:this.player.telecine.currentTime,time:jo(),bufferOccupancy:S});break;cas
e"scannerchange":var
x=this.getCurrent(Lo),T=this.player.telecine.currentScanner;this.setToSeries(Lo,T),
x&&this.addMarker(qo,"Scanner change to
"+T);break;case"streambufferstart":this.addMarker(Bo,"Buffering")}}},
{key:"_handleResize",value:function(e){var
t=this.getCurrent(So),n=this._getVideoDimensionsString();this.addToSeries(So,n);var
i=t?"Resized from "+t+" to "+n:"Resized to "+n;this.addMarker(Io,i)}},
{key:"_getVideoDimensionsString",value:function(){var
e=this._getVideoDimensions(),t=e.width,n=e.height,i=window.devicePixelRatio&&window
.devicePixelRatio>1?"@"+window.devicePixelRatio+"x":"";return t&&n?
parseInt(t,10)+""+parseInt(n,10)+" "+i:""}},
{key:"_getResolutionString",value:function(e){return
e.width+""+e.height+"@"+Math.round(e.framerate)+"
"+Math.round(e.bitrate/1e3).toLocaleString()+" Kbps"}},
{key:"_getVideoDimensions",value:function(){var
e=this.player.element.querySelector("video");if(!e)return{};var
t=window.getComputedStyle(e);if(!t)return{};var
n=t.width,i=t.height;return{width:n,height:i}}}]),e}
(),Vo=14,Ho=250,Uo=(Qi={},At(Qi,Ao,"#0088cc"),At(Qi,Oo,"#503873"),At(Qi,Mo,"#5a9e02
"),At(Qi,Fo,"#d93636"),At(Qi,Io,"#FF8A00"),At(Qi,qo,"#e9ff00"),At(Qi,Ro,"#b5d3e2"),
At(Qi,Bo,"#e812e0"),Qi),zo=function(e,t,n){return
Math.min(Math.max(e,t),n)},Wo=function(){function e(t,n){var
i=this;Pt(this,e),this.element=t,this.player=n,this.initTime=new
Date,this.templateExtra={openLinkText:"Open Link",openLinkDisabled:!
1,openLinkHref:null};var r=function(){i.render()};this.debugcollect=new
No(n,r),this.debugcollect.init(),this.attachEvents(),this.openLinkNum=0,this.active
=!1}return Ct(e,[{key:"render",value:function(){if(this.active){var
e=this._getTemplateData();this.element.innerHTML=Kt.render("stats_debug2",e)}}},
{key:"resetData",value:function(){this.debugcollect.reset(),this.render()}},
{key:"attachEvents",value:function(){var
e=this;this.player.events.on(Et.debugButtonPressed,function(){return
e.element.classList.contains("hidden")?void e.showPanel():void
e.hidePanel()}),this.player.events.on(Et.configChanged,function()
{e.resetData()}),E(this.element,".stats-debug-close",function()
{e.hidePanel()}),E(this.element,".stats-debug-copy",function(){return!
e.element.querySelector(".stats-debug-
copy").getAttribute("disabled")&&(e._startDebugLinkProgress(),e._copyStats(),!
1)})}},{key:"hidePanel",value:function()
{this.element.classList.add("hidden"),this.element.setAttribute("hidden",""),this.e
lement.setAttribute("aria-
hidden","true"),this.player.events.fire(Et.hudHidden),this.active=!1}},
{key:"showPanel",value:function()
{this.element.classList.remove("hidden"),this.element.removeAttribute("hidden"),thi
s.element.setAttribute("aria-
hidden","false"),this.player.events.fire(Et.hudDisplayed),this.active=!
0,this.render()}},{key:"_getTemplateData",value:function(){var
e=this.debugcollect.getCurrent(ko);if(!e)return{};var
t=e.metadata,n=this.debugcollect.getCurrent(Lo),i="MediaSourceScanner"===n,r=this.d
ebugcollect.getCurrent(wo),o=this.debugcollect.getCurrent(bo),a=new
Date(1e3*this.player.config.request.timestamp),s=new Date(new Date-
this.initTime+1e3*this.player.config.request.timestamp),u=this.debugcollect.getCurr
ent(So),c=r?r.profile+", "+we(r):null,l=kt[e.mime]+", cdn: "+t.cdn,d=r?
r.width+""+r.height+"@"+Math.round(r.framerate)+"
"+Math.round(r.bitrate/1e3).toLocaleString()+" Kbps":null,f=!(!
this.player.config.request.files||!
this.player.config.request.files.dash)&&this.player.config.request.files.dash.separ
ate_av,h=this._getTestGroups(),v=this.debugcollect.getCurrent(_o)||
0,p=this.debugcollect.getCurrent(yo)||0,m=o?
Math.floor(o.speed/1e3).toLocaleString()+"
Kbps":0,g=Math.floor(this.debugcollect.getCurrent(xo)/1e3).toLocaleString()+"
Kbps",y=Math.floor(this.debugcollect.getCurrent(To)/1e3).toLocaleString()+"
Kbps",_=i?
this._getBandwidthSeriesSvg():null,b=i&&this.player.config.request.ab_tests&&this.p
layer.config.request.ab_tests.bba&&this.player.config.request.ab_tests.bba.group,w=
this.debugcollect.getCurrent(Eo),k=w?
Math.floor(100*w.bufferOccupancy).toLocaleString()+"%":0,S=b?
this._getBufferOccupancySvg():null;return{clipId:this.player.config.video.id,delive
ry:l,resolution:d,embedSize:u,isDash:i,profileId:c,separateAudioVideo:f,testGroup:h
,totalFrames:v,droppedFrames:p,bandwidthKbps:m,bandwidthMinKbps:g,bandwidthMaxKbps:
y,startTime:a,debugTime:s,displayBufferOccupancy:b,bufferOccupancyPercent:k,bandwid
thSeriesSvg:_,bufferOccupancySvg:S,openLinkText:this.templateExtra.openLinkText,ope
nLinkDisabled:this.templateExtra.openLinkDisabled,openLinkHref:this.templateExtra.o
penLinkHref}}},{key:"_getTestGroups",value:function(){var e=this;return
Object.keys(this.player.config.request.ab_tests).map(function(t){return t+":
"+e.player.config.request.ab_tests[t].group}).join(", ")}},
{key:"_getBandwidthSeriesSvg",value:function(){for(var
e=Ho,t=Vo,n=this.debugcollect.getSeries(bo),i=this.debugcollect.getCurrent(To),r=n.
length,o=100,a=r<o?0:r-o,s=n[a],u=n[r-1],c=s?s.time:0,l=u?u.time:0,d=[],f=a;f<r;f+
+){var h=n[f],v=(h.time-c)/(l-c)*e,p=t-
t*h.speed/i;isNaN(p)&&(p=0),isNaN(v)&&(v=0),d.push(v+","+zo(p,0,t))}return'<svg
width="'+e+'" height="'+t+'" viewBox="0 0 '+e+" "+t+'">\n <g>\n
<polyline stroke="white" fill="none" points="'+d.join(" ")+'"></polyline>\n
</g>\n <g>\n '+this._getMarkerSvgPart(c,l)+"\n
</g>\n </svg>"}},{key:"_getBufferOccupancySvg",value:function(){for(var
e=Ho,t=Vo,n=this.debugcollect.getSeries(Eo)||[],i=n.length,r=200,o=i<r?0:i-
r,a=n[o],s=n[i-1],u=a?a.time:0,c=s?s.time:0,l=[],d=o;d<i;d++){
var f=n[d],h=(f.time-u)/(c-u)*e,v=t-
t*f.bufferOccupancy;isNaN(v)&&(v=0),isNaN(h)&&(h=0),l.push(h+","+zo(v,0,t))}return'
<svg width="'+e+'" height="'+t+'" viewBox="0 0 '+e+" "+t+'">\n <g>\n
<polyline stroke="white" fill="none" points="'+l.join(" ")+'"></polyline>\n
</g>\n <g>\n '+this._getMarkerSvgPart(u,c)+"\n
</g>\n </svg>"}},{key:"_getMarkerSvgPart",value:function(e,t){var
n=Vo,i=Ho,r=this.debugcollect.getSeries(vo)||[];return 0===r.length?
null:r.map(function(r){var o=r.data.time;if(o<e||o>t)return"";var a=(o-e)/(t-
e)*i;return isNaN(a)&&(a=0),"<g>\n <title>"+r.title+'</title>\n
<line class="stats-debug-marker" x1="'+a+'" y1="0" x2="'+a+'" y2="'+n+'" stroke-
width="1" stroke="'+Uo[r.type]+'" />\n </g>'}).join("")}},
{key:"_copyStats",value:function(){var
e=this,t=this._getTemplateData(),n=this.player.config.request.session+"_"+t.clipId+
"_"+this.openLinkNum,i={key:n,sessionId:this.player.config.request.session,clipId:t
.clipId,playing:t.resolution,dimensions:t.embedSize,delivery:t.delivery,ua:navigato
r.userAgent,referrer:this.player.config.request.referrer?
this.player.config.request.referrer:"",country:this.player.config.request.country,d
uration:this.player.telecine.duration,testGroup:this._getTestGroups(),profileId:t.p
rofileId,droppedFrames:t.droppedFrames,bandwidthNow:t.bandwidthKbps,bandwidthMin:t.
bandwidthMinKbps,bandwidthMax:t.bandwidthMaxKbps,startTime:t.startTime,debugTime:t.
debugTime},r=this.debugcollect.getSeries(bo),o=this.debugcollect.getSeries(Eo),a=th
is.debugcollect.getSeries(vo),s={timeSeriesMarkers:a,timeSeriesSpeeds:r,timeSeriesB
ufferOccupancy:o},u=Object.keys(i).map(function(e){return encodeURIComponent(e)
+"="+encodeURIComponent(i[e])}).join("&"),c="https://"+this.player.config.player_ur
l+"/debug/v2?"+u;this.openLinkNum++;var l=this.player.reportMessage("Debug info
copied for "+this.player.config.request.session,
{level:"info",extra:i});c+="&sentryId="+l,this._updateDebugLink(c),window.open(c),t
his._getStorageUrl(n).then(function(t){return
t=JSON.parse(t),e._createUpload(t.url)}).then(function(t){return
e._postToStorage(t,s)}).then(function(){try{delete i.ua}catch(e){}return!
0}).then(function(){return e._finishDebugLinkProgress(),!0}).catch(function(t)
{throw e._finishDebugLinkProgress(),t})}},{key:"_getStorageUrl",value:function(e)
{var
t=this.player.config.request.gc_debug.bucket,n="bucket="+t+"&resource="+e+"&content
_type="+encodeURIComponent("application/json; charset=UTF-
8"),i="https://"+this.player.config.player_url+"/debug/v2/storage?"+n;return
h(i)}},{key:"_createUpload",value:function(e){return new _t(function(t,n){var i=new
XMLHttpRequest;i.open("POST",e,!0),i.setRequestHeader("Content-
Type","application/json; charset=UTF-8"),i.setRequestHeader("x-goog-
resumable","start"),i.setRequestHeader("x-goog-acl","public-
read"),i.onload=function(){return i.status>=400?void n(new Error(i.status+" status
"+e)):void t(i.getResponseHeader("Location"))},i.onerror=function(){n(new
Error("XHR error"))},i.send()})}},{key:"_postToStorage",value:function(e,t){var
n=new Blob([JSON.stringify(t)],{type:"application/json"});return new
_t(function(t,i){var r=new XMLHttpRequest;r.open("PUT",e,!
0),r.setRequestHeader("Content-Type","application/json; charset=UTF-
8"),r.setRequestHeader("x-goog-resumable","start"),r.setRequestHeader("x-goog-
acl","public-read"),r.onload=function(){return r.status>=400?void i(new
Error(r.status+" status "+e)):void t(!0)},r.onerror=function(){i(new Error("XHR
error"))},r.send(n)})}},{key:"_updateDebugLink",value:function(e)
{this.templateExtra.openLinkHref=e,this.render()}},
{key:"_startDebugLinkProgress",value:function()
{this.templateExtra.openLinkText="Submitting...",this.templateExtra.openLinkDisable
d=!0,this.render()}},{key:"_finishDebugLinkProgress",value:function()
{this.templateExtra.openLinkText="Open Link",this.templateExtra.openLinkDisabled=!
1,this._updateDebugLink(null),this.render()}}]),e}
(),Ko=.05,Xo={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"
},$o="Uh Oh!,DOh!,Aw fiddlesticks!,Jeepers!,Oh dear!,Ouch!,Zoinks!,Awww,
snap!,Blast!,Curses!,ACK!,Aw shucks.,Major bummer.,Dag-nab-it!,Aargh!,Boo-hoo!,Ay
caramba!".split(","),Yo=[".title a"],Go=[".title a:hover"],Qo=["a",".button-
link",".overlay-wrapper .footnote.share a:hover",".title h1",".title
span.user",".menu li:hover",".menu li.active",".outro2-link:hover",".outro2-
videosTitle a:hover",".share2-footnote a:hover",".card-
link"],Jo=["a:hover",".button-link:hover"],Zo=[".overlay-wrapper .close:hover
.fill",".overlay-wrapper .back:hover .fill",".stats-debug-close:hover
.fill",".stats-debug-copy:hover",".card-link:hover .fill"],ea=[".play-bar .on
.fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover
.fill",".tiny-bars .fill",".sidedock .on .fill",".controls-outro a:hover
.fill",".card-link .fill"],ta=[".sidedock .on:hover .fill"],na=[".play-bar .on
.stroke",".sidedock .on .stroke"],ia=[".sidedock .on:hover .stroke"],ra=[".sidedock
button:hover","&.touch-support .sidedock button:active",".controls
.play:hover",".controls .play-bar .played","&.no-playbar .play-bar
button:not(.toggle):hover",".controls.tiny .play-bar
button:not(.toggle):hover",".controls .volume div",".overlay .buttons li",".overlay
.window-wrapper button",'.overlay .window-wrapper
input[type="submit"]','.overlay .window-wrapper a[role="button"]',".menu
li.active:before",".controls .replay:hover",".share2-buttons li","button.share2-
embedCopy",".outro2-button","a.outro1-vodButton",".emailCapture2-form-button--
submit",".emailCapture2-checkIconWrapper"],oa=[".menu
li.active:before"],aa=[".overlay .window-wrapper button",'.overlay .window-wrapper
input[type="submit"]','.overlay .window-wrapper a[role="button"]',".sidedock
button:hover",".sidedock button:hover .vod-label",".play:hover",".share2-footnote--
embed a",".outro2-button",".outro2-button:hover",".outro2-wrapper .outro2-
link:hover","button.share2-embedCopy",".outro1-vodWrapper a.outro1-
vodButton",".outro1-vodWrapper a.outro1-vodButton:hover"],sa=[".controls
.play:hover .fill",".sidedock button:hover .fill",".play-bar a:hover .fill",".play-
bar button:not(.toggle):hover .fill","&.no-playbar .play-bar
button:not(.toggle):hover .fill",".controls.tiny .play-bar
button:not(.toggle):hover .fill",".sidedock .on .fill",'.overlay .share2-wrapper
a[role="button"] .fill',".outro1-vodButton .fill",".emailCapture2-
checkIconWrapper .fill"],ua=[".controls .play:hover .stroke",".sidedock
button:hover .stroke",".sidedock .on .stroke"],ca=['.overlay-wrapper .overlay
a[role="button"]',".sidedock button:hover",".play:hover","button.share2-
embedCopy",".outro2-button",".outro2-button:hover",".outro1-vodWrapper a.outro1-
vodButton",".outro1-vodWrapper a.outro1-vodButton:hover","input.emailCapture2-form-
button--submit"],la=[".controls .play:hover .fill",".sidedock button:hover
.fill",".controls .play-bar .fullscreen.tiny:hover .fill",".share2-button
.fill",".outro1-vodButton .fill"],da=[".sidedock button:hover .stroke"],fa=[".menu
li:active:before"],ha=['.overlay .window-wrapper
input[type="submit"]:active',".overlay .embed-copy.zeroclipboard-is-
active",'.overlay a[role="button"]:active',".sidedock button:active",".outro1-
vodWrapper a.outro1-vodButton:active"],va=function(){function e(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pt(this,e);var
i=6,r=76,o=parseInt(r*tn.devicePixelRatio,10),a=parseFloat(n.timecode);if(isNaN(a))
throw new TypeError("Time must be a number.");if(a<0)throw new TypeError("Time must
be a positive
number.");this.time=a,this.data=n,this.id=n.id,this.displayTime=n.display_time||
i,n.image_url&&(n.image=O({width:o,height:o,baseUrl:n.image_url,webpSupport:t.confi
g.request.flags.webp,crop:!0})),this.renderTemplate()}return Ct(e,
[{key:"renderTemplate",value:function(){var
e=this,t=document.createElement("div");t.innerHTML=Kt.render("card",this.data),this
.element=t.children[0],this.data.image&&M(this.data.image).catch(function(t)
{e.element.querySelector(".js-cardImageWrap").style.display="none"})}},
{key:"isActive",value:function(e){return e>=this.time&&e<this.end}},
{key:"end",get:function(){return this.time+this.displayTime}}]),e}(),pa=function()
{function e(){var t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:function(e,t){return
e<t};Pt(this,e),this._data={},this._sortedKeys=[],this._sort=t}return Ct(e,
[{key:"_insert",value:function(e){var
t=this._sortedKeys.length;if(0===t)this._sortedKeys.push(e);else{for(var n=0;n<t;n+
+)if(this._sort(e,this._sortedKeys[n])){this._sortedKeys[n-1]!
==e&&this._sortedKeys.splice(n,0,e);break}n===t&&this._sortedKeys[n-1]!
==e&&this._sortedKeys.splice(n,0,e)}}},{key:"_binarySearch",value:function(e,t,n,i)
{if(i<n)return-1;var r=parseInt(n+(i-n)/2,10);return e[r]>t?
this._binarySearch(e,t,n,r-1):e[r]<t?this._binarySearch(e,t,r+1,i):r}},
{key:"delete",value:function(e){var
t=this._binarySearch(this._sortedKeys,e,0,this._sortedKeys.length);if(t===-1)throw
new Error("key does not exist");this._sortedKeys.splice(t,1),delete
this._data[e]}},{key:"set",value:function(e,t){return
this._data[e]=t,this._insert(e),this}},{key:"get",value:function(e){return
this._data[e]}},{key:"keys",value:function(){return this._sortedKeys.slice()}},
{key:"values",value:function(){var e=this;return this.keys().map(function(t){return
e._data[t]})}},{key:"forEach",value:function(e){for(var
t=this._sortedKeys.length,n=0;n<t&&e(this._data[this._sortedKeys[n]],this._sortedKe
ys[n],this)!==!1;n++);}},{key:"size",get:function(){return
this._sortedKeys.length}}]),e}();return pt.changes=new pa,window.BigScreen=Xt,gt}
();